@aventurevc/api-schemas 0.8.42 → 0.8.44
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 +7 -0
- package/dist/http/problem-detail.js +14 -0
- package/dist/job/enqueue.d.ts +1 -0
- package/dist/job/enqueue.js +1 -0
- package/dist/news/news.d.ts +1 -0
- package/dist/news/news.js +1 -0
- package/dist/news/published-event.d.ts +52 -0
- package/dist/news/published-event.js +25 -0
- package/dist/news/subscription-arguments.d.ts +20 -0
- package/dist/news/subscription-arguments.js +19 -0
- package/dist/news/subscription-delivery-mode.d.ts +15 -0
- package/dist/news/subscription-delivery-mode.js +13 -0
- package/dist/news/subscription-delivery.d.ts +22 -0
- package/dist/news/subscription-delivery.js +21 -0
- package/dist/news/subscription-endpoint.d.ts +18 -0
- package/dist/news/subscription-endpoint.js +16 -0
- package/dist/news/subscription-event.d.ts +18 -0
- package/dist/news/subscription-event.js +16 -0
- package/dist/news/subscription-grant.d.ts +20 -0
- package/dist/news/subscription-grant.js +22 -0
- package/dist/news/subscription-key.d.ts +29 -0
- package/dist/news/subscription-key.js +20 -0
- package/dist/news/subscription.d.ts +35 -0
- package/dist/news/subscription.js +24 -0
- package/dist/openapi-component-manifest.js +33 -0
- package/dist/search/hit.d.ts +1 -0
- package/dist/search/hit.js +1 -0
- package/dist/search/search.d.ts +1 -0
- package/dist/search/search.js +1 -0
- package/dist/source/document-list.d.ts +1 -0
- package/dist/source/document-list.js +1 -0
- package/dist/web/search.d.ts +1 -0
- package/dist/web/search.js +1 -0
- package/package.json +1 -1
|
@@ -19,6 +19,12 @@ declare const ProblemDetailSchemaDefinition: z.ZodObject<{
|
|
|
19
19
|
JOBRUNR_STORAGE_UNAVAILABLE: "JOBRUNR_STORAGE_UNAVAILABLE";
|
|
20
20
|
billing_additional_usage_cap_reached: "billing_additional_usage_cap_reached";
|
|
21
21
|
billing_allowance_exhausted: "billing_allowance_exhausted";
|
|
22
|
+
callback_challenge_failed: "callback_challenge_failed";
|
|
23
|
+
callback_connection_refused: "callback_connection_refused";
|
|
24
|
+
callback_http_4xx: "callback_http_4xx";
|
|
25
|
+
callback_http_5xx: "callback_http_5xx";
|
|
26
|
+
callback_timeout: "callback_timeout";
|
|
27
|
+
callback_tls_error: "callback_tls_error";
|
|
22
28
|
frontend_cache_epoch_mode_not_targeted: "frontend_cache_epoch_mode_not_targeted";
|
|
23
29
|
geocode_provider_error: "geocode_provider_error";
|
|
24
30
|
github_fetch_failed: "github_fetch_failed";
|
|
@@ -40,6 +46,7 @@ declare const ProblemDetailSchemaDefinition: z.ZodObject<{
|
|
|
40
46
|
news_rss_article_fetch_failed: "news_rss_article_fetch_failed";
|
|
41
47
|
news_rss_feed_fetch_failed: "news_rss_feed_fetch_failed";
|
|
42
48
|
news_similarity_embedding_unavailable: "news_similarity_embedding_unavailable";
|
|
49
|
+
news_subscription_limit: "news_subscription_limit";
|
|
43
50
|
not_authorized: "not_authorized";
|
|
44
51
|
origin_detail_capacity: "origin_detail_capacity";
|
|
45
52
|
origin_detail_shutdown: "origin_detail_shutdown";
|
|
@@ -85,6 +85,20 @@ const ProblemDetailSchemaDefinition = z.object({
|
|
|
85
85
|
"news_rss_feed_fetch_failed",
|
|
86
86
|
/** RSS news-ingest article page fetch failed after retries or with the breaker open. Agent action: inspect the source article URL and upstream status; the ingest job may skip that article. */
|
|
87
87
|
"news_rss_article_fetch_failed",
|
|
88
|
+
/** News subscription webhook verification could not connect to delivery.url. Agent action: confirm the endpoint is publicly reachable over https, then subscribe again. */
|
|
89
|
+
"callback_connection_refused",
|
|
90
|
+
/** News subscription webhook verification timed out. Agent action: make the endpoint answer the challenge within the delivery read timeout, then subscribe again. */
|
|
91
|
+
"callback_timeout",
|
|
92
|
+
/** News subscription webhook verification failed the TLS handshake. Agent action: serve a publicly trusted certificate for the delivery.url host, then subscribe again. */
|
|
93
|
+
"callback_tls_error",
|
|
94
|
+
/** News subscription webhook verification got a 4xx answer. Agent action: make the endpoint accept the signed verification POST, then subscribe again. */
|
|
95
|
+
"callback_http_4xx",
|
|
96
|
+
/** News subscription webhook verification got a 5xx answer. Agent action: fix or wait for the endpoint, then subscribe again. */
|
|
97
|
+
"callback_http_5xx",
|
|
98
|
+
/** News subscription webhook verification got a 2xx answer whose body was not {"challenge":"<nonce>"} with the sent nonce. Agent action: echo the challenge exactly, then subscribe again. */
|
|
99
|
+
"callback_challenge_failed",
|
|
100
|
+
/** Caller already holds the maximum number of news subscriptions. Agent action: unsubscribe one before subscribing again. */
|
|
101
|
+
"news_subscription_limit",
|
|
88
102
|
/** Cloudflare R2 object fetch failed during a read operation. Agent action: retry once with backoff; persistent failure indicates R2 outage or asset deletion. */
|
|
89
103
|
"r2_fetch_failed",
|
|
90
104
|
/** Cloudflare R2 object delete failed during a cleanup operation. Agent action: surface; retrying may produce duplicate-delete errors. */
|
package/dist/job/enqueue.d.ts
CHANGED
|
@@ -9,6 +9,7 @@ type JobEnqueueDefinition = z.infer<typeof JobEnqueueSchemaDefinition>;
|
|
|
9
9
|
* Accepted asynchronous app job enqueue response.
|
|
10
10
|
*
|
|
11
11
|
* @openapiSchema JobEnqueue
|
|
12
|
+
* @endpoint GET /v1/web/searches/jobs/{jobId}
|
|
12
13
|
* @endpoint POST /v1/lookup-jobs
|
|
13
14
|
* @contractShape job.enqueue
|
|
14
15
|
* @contractRole canonical
|
package/dist/job/enqueue.js
CHANGED
|
@@ -10,6 +10,7 @@ const JobEnqueueSchemaDefinition = z.object({
|
|
|
10
10
|
* Accepted asynchronous app job enqueue response.
|
|
11
11
|
*
|
|
12
12
|
* @openapiSchema JobEnqueue
|
|
13
|
+
* @endpoint GET /v1/web/searches/jobs/{jobId}
|
|
13
14
|
* @endpoint POST /v1/lookup-jobs
|
|
14
15
|
* @contractShape job.enqueue
|
|
15
16
|
* @contractRole canonical
|
package/dist/news/news.d.ts
CHANGED
|
@@ -35,6 +35,7 @@ type NewsDefinition = z.infer<typeof NewsSchemaDefinition>;
|
|
|
35
35
|
* @endpoint POST /v1/search/all
|
|
36
36
|
* @usedBySchema EntityDetailSchema
|
|
37
37
|
* @usedBySchema NewsDetailSchema
|
|
38
|
+
* @usedBySchema NewsPublishedEventSchema
|
|
38
39
|
* @usedBySchema PageNewsSchema
|
|
39
40
|
* @usedBySchema PageResultNewsSchema
|
|
40
41
|
* @usedBySchema PersonGraphCareerContextSchema
|
package/dist/news/news.js
CHANGED
|
@@ -43,6 +43,7 @@ const NewsSchemaDefinition = z.object({
|
|
|
43
43
|
* @endpoint POST /v1/search/all
|
|
44
44
|
* @usedBySchema EntityDetailSchema
|
|
45
45
|
* @usedBySchema NewsDetailSchema
|
|
46
|
+
* @usedBySchema NewsPublishedEventSchema
|
|
46
47
|
* @usedBySchema PageNewsSchema
|
|
47
48
|
* @usedBySchema PageResultNewsSchema
|
|
48
49
|
* @usedBySchema PersonGraphCareerContextSchema
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { z } from "zod/v4";
|
|
2
|
+
declare const NewsPublishedEventSchemaDefinition: z.ZodObject<{
|
|
3
|
+
cursor: z.ZodString;
|
|
4
|
+
data: z.ZodType<{
|
|
5
|
+
author?: string | null | undefined;
|
|
6
|
+
category?: string | null | undefined;
|
|
7
|
+
createdAt?: string | null | undefined;
|
|
8
|
+
excerpt?: string | null | undefined;
|
|
9
|
+
externalNewsArticle?: boolean | null | undefined;
|
|
10
|
+
id: number;
|
|
11
|
+
newsImageThumbnail?: string | null | undefined;
|
|
12
|
+
newsUrlOriginal?: string | null | undefined;
|
|
13
|
+
publication?: string | null | undefined;
|
|
14
|
+
publishedAt?: string | null | undefined;
|
|
15
|
+
slug?: string | null | undefined;
|
|
16
|
+
title: string;
|
|
17
|
+
updatedAt?: string | null | undefined;
|
|
18
|
+
}, unknown, z.core.$ZodTypeInternals<{
|
|
19
|
+
author?: string | null | undefined;
|
|
20
|
+
category?: string | null | undefined;
|
|
21
|
+
createdAt?: string | null | undefined;
|
|
22
|
+
excerpt?: string | null | undefined;
|
|
23
|
+
externalNewsArticle?: boolean | null | undefined;
|
|
24
|
+
id: number;
|
|
25
|
+
newsImageThumbnail?: string | null | undefined;
|
|
26
|
+
newsUrlOriginal?: string | null | undefined;
|
|
27
|
+
publication?: string | null | undefined;
|
|
28
|
+
publishedAt?: string | null | undefined;
|
|
29
|
+
slug?: string | null | undefined;
|
|
30
|
+
title: string;
|
|
31
|
+
updatedAt?: string | null | undefined;
|
|
32
|
+
}, unknown>>;
|
|
33
|
+
eventId: z.ZodString;
|
|
34
|
+
name: z.ZodEnum<{
|
|
35
|
+
"entity.news.published": "entity.news.published";
|
|
36
|
+
}>;
|
|
37
|
+
timestamp: z.ZodISODateTime;
|
|
38
|
+
}, z.core.$strip>;
|
|
39
|
+
type NewsPublishedEventDefinition = z.infer<typeof NewsPublishedEventSchemaDefinition>;
|
|
40
|
+
/**
|
|
41
|
+
* Webhook POST body for one news article newly linked to the subscribed entity.
|
|
42
|
+
*
|
|
43
|
+
* @openapiSchema NewsPublishedEvent
|
|
44
|
+
* @usedByEndpoint none:external-root
|
|
45
|
+
* @shared composition:used as building block for other schemas news.published-event; not direct because nested fragment composes parent endpoint contracts
|
|
46
|
+
* @contractShape news.published-event
|
|
47
|
+
* @contractRole canonical
|
|
48
|
+
*/
|
|
49
|
+
export declare const NewsPublishedEventSchema: z.ZodType<NewsPublishedEventDefinition>;
|
|
50
|
+
export type NewsPublishedEvent = z.infer<typeof NewsPublishedEventSchema>;
|
|
51
|
+
export {};
|
|
52
|
+
//# sourceMappingURL=published-event.d.ts.map
|
|
@@ -0,0 +1,25 @@
|
|
|
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
|
+
import { z } from "zod/v4";
|
|
3
|
+
import { NewsSchema } from "./news.js";
|
|
4
|
+
import { NewsSubscriptionEventSchema } from "./subscription-event.js";
|
|
5
|
+
const NewsPublishedEventSchemaDefinition = z.object({
|
|
6
|
+
/** Opaque watermark to resume after this event. */
|
|
7
|
+
cursor: z.string(),
|
|
8
|
+
data: NewsSchema,
|
|
9
|
+
/** Deterministic event id, equal to the webhook-id header. */
|
|
10
|
+
eventId: z.string(),
|
|
11
|
+
name: NewsSubscriptionEventSchema,
|
|
12
|
+
/** When the article was linked to the entity. */
|
|
13
|
+
timestamp: z.iso.datetime({ offset: true }),
|
|
14
|
+
});
|
|
15
|
+
/**
|
|
16
|
+
* Webhook POST body for one news article newly linked to the subscribed entity.
|
|
17
|
+
*
|
|
18
|
+
* @openapiSchema NewsPublishedEvent
|
|
19
|
+
* @usedByEndpoint none:external-root
|
|
20
|
+
* @shared composition:used as building block for other schemas news.published-event; not direct because nested fragment composes parent endpoint contracts
|
|
21
|
+
* @contractShape news.published-event
|
|
22
|
+
* @contractRole canonical
|
|
23
|
+
*/
|
|
24
|
+
export const NewsPublishedEventSchema = NewsPublishedEventSchemaDefinition;
|
|
25
|
+
//# sourceMappingURL=published-event.js.map
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { z } from "zod/v4";
|
|
2
|
+
declare const NewsSubscriptionArgumentsSchemaDefinition: z.ZodObject<{
|
|
3
|
+
entityId: z.ZodUUID;
|
|
4
|
+
}, z.core.$strip>;
|
|
5
|
+
type NewsSubscriptionArgumentsDefinition = z.infer<typeof NewsSubscriptionArgumentsSchemaDefinition>;
|
|
6
|
+
/**
|
|
7
|
+
* Arguments of the entity.news.published event.
|
|
8
|
+
*
|
|
9
|
+
* @openapiSchema NewsSubscriptionArguments
|
|
10
|
+
* @endpoint PUT /v1/news/subscriptions
|
|
11
|
+
* @endpoint DELETE /v1/news/subscriptions
|
|
12
|
+
* @usedBySchema NewsSubscriptionKeySchema
|
|
13
|
+
* @usedBySchema NewsSubscriptionSchema
|
|
14
|
+
* @contractShape news.subscription-arguments
|
|
15
|
+
* @contractRole canonical
|
|
16
|
+
*/
|
|
17
|
+
export declare const NewsSubscriptionArgumentsSchema: z.ZodType<NewsSubscriptionArgumentsDefinition>;
|
|
18
|
+
export type NewsSubscriptionArguments = z.infer<typeof NewsSubscriptionArgumentsSchema>;
|
|
19
|
+
export {};
|
|
20
|
+
//# sourceMappingURL=subscription-arguments.d.ts.map
|
|
@@ -0,0 +1,19 @@
|
|
|
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
|
+
import { z } from "zod/v4";
|
|
3
|
+
const NewsSubscriptionArgumentsSchemaDefinition = z.object({
|
|
4
|
+
/** Entity whose newly linked public news is delivered. */
|
|
5
|
+
entityId: z.uuid(),
|
|
6
|
+
});
|
|
7
|
+
/**
|
|
8
|
+
* Arguments of the entity.news.published event.
|
|
9
|
+
*
|
|
10
|
+
* @openapiSchema NewsSubscriptionArguments
|
|
11
|
+
* @endpoint PUT /v1/news/subscriptions
|
|
12
|
+
* @endpoint DELETE /v1/news/subscriptions
|
|
13
|
+
* @usedBySchema NewsSubscriptionKeySchema
|
|
14
|
+
* @usedBySchema NewsSubscriptionSchema
|
|
15
|
+
* @contractShape news.subscription-arguments
|
|
16
|
+
* @contractRole canonical
|
|
17
|
+
*/
|
|
18
|
+
export const NewsSubscriptionArgumentsSchema = NewsSubscriptionArgumentsSchemaDefinition;
|
|
19
|
+
//# sourceMappingURL=subscription-arguments.js.map
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { z } from "zod/v4";
|
|
2
|
+
/**
|
|
3
|
+
* Event delivery mode
|
|
4
|
+
*
|
|
5
|
+
* @openapiSchema NewsSubscriptionDeliveryMode
|
|
6
|
+
* @endpoint PUT /v1/news/subscriptions
|
|
7
|
+
* @usedBySchema NewsSubscriptionDeliverySchema
|
|
8
|
+
* @contractShape news.subscription-delivery-mode
|
|
9
|
+
* @contractRole canonical
|
|
10
|
+
*/
|
|
11
|
+
export declare const NewsSubscriptionDeliveryModeSchema: z.ZodEnum<{
|
|
12
|
+
webhook: "webhook";
|
|
13
|
+
}>;
|
|
14
|
+
export type NewsSubscriptionDeliveryMode = z.infer<typeof NewsSubscriptionDeliveryModeSchema>;
|
|
15
|
+
//# sourceMappingURL=subscription-delivery-mode.d.ts.map
|
|
@@ -0,0 +1,13 @@
|
|
|
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
|
+
import { z } from "zod/v4";
|
|
3
|
+
/**
|
|
4
|
+
* Event delivery mode
|
|
5
|
+
*
|
|
6
|
+
* @openapiSchema NewsSubscriptionDeliveryMode
|
|
7
|
+
* @endpoint PUT /v1/news/subscriptions
|
|
8
|
+
* @usedBySchema NewsSubscriptionDeliverySchema
|
|
9
|
+
* @contractShape news.subscription-delivery-mode
|
|
10
|
+
* @contractRole canonical
|
|
11
|
+
*/
|
|
12
|
+
export const NewsSubscriptionDeliveryModeSchema = z.enum(["webhook"]);
|
|
13
|
+
//# sourceMappingURL=subscription-delivery-mode.js.map
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { z } from "zod/v4";
|
|
2
|
+
declare const NewsSubscriptionDeliverySchemaDefinition: z.ZodObject<{
|
|
3
|
+
mode: z.ZodEnum<{
|
|
4
|
+
webhook: "webhook";
|
|
5
|
+
}>;
|
|
6
|
+
secret: z.ZodString;
|
|
7
|
+
url: z.ZodString;
|
|
8
|
+
}, z.core.$strip>;
|
|
9
|
+
type NewsSubscriptionDeliveryDefinition = z.infer<typeof NewsSubscriptionDeliverySchemaDefinition>;
|
|
10
|
+
/**
|
|
11
|
+
* Webhook delivery target and secret.
|
|
12
|
+
*
|
|
13
|
+
* @openapiSchema NewsSubscriptionDelivery
|
|
14
|
+
* @endpoint PUT /v1/news/subscriptions
|
|
15
|
+
* @usedBySchema NewsSubscriptionSchema
|
|
16
|
+
* @contractShape news.subscription-delivery
|
|
17
|
+
* @contractRole canonical
|
|
18
|
+
*/
|
|
19
|
+
export declare const NewsSubscriptionDeliverySchema: z.ZodType<NewsSubscriptionDeliveryDefinition>;
|
|
20
|
+
export type NewsSubscriptionDelivery = z.infer<typeof NewsSubscriptionDeliverySchema>;
|
|
21
|
+
export {};
|
|
22
|
+
//# sourceMappingURL=subscription-delivery.d.ts.map
|
|
@@ -0,0 +1,21 @@
|
|
|
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
|
+
import { z } from "zod/v4";
|
|
3
|
+
import { NewsSubscriptionDeliveryModeSchema } from "./subscription-delivery-mode.js";
|
|
4
|
+
const NewsSubscriptionDeliverySchemaDefinition = z.object({
|
|
5
|
+
mode: NewsSubscriptionDeliveryModeSchema,
|
|
6
|
+
/** Standard Webhooks signing secret: whsec_ followed by base64 of 24 to 64 bytes. It is never returned. The CLI reads it only from --from-file, never a flag. */
|
|
7
|
+
secret: z.string(),
|
|
8
|
+
/** Public https endpoint that receives signed event POSTs. */
|
|
9
|
+
url: z.string().max(2048),
|
|
10
|
+
});
|
|
11
|
+
/**
|
|
12
|
+
* Webhook delivery target and secret.
|
|
13
|
+
*
|
|
14
|
+
* @openapiSchema NewsSubscriptionDelivery
|
|
15
|
+
* @endpoint PUT /v1/news/subscriptions
|
|
16
|
+
* @usedBySchema NewsSubscriptionSchema
|
|
17
|
+
* @contractShape news.subscription-delivery
|
|
18
|
+
* @contractRole canonical
|
|
19
|
+
*/
|
|
20
|
+
export const NewsSubscriptionDeliverySchema = NewsSubscriptionDeliverySchemaDefinition;
|
|
21
|
+
//# sourceMappingURL=subscription-delivery.js.map
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { z } from "zod/v4";
|
|
2
|
+
declare const NewsSubscriptionEndpointSchemaDefinition: z.ZodObject<{
|
|
3
|
+
url: z.ZodString;
|
|
4
|
+
}, z.core.$strip>;
|
|
5
|
+
type NewsSubscriptionEndpointDefinition = z.infer<typeof NewsSubscriptionEndpointSchemaDefinition>;
|
|
6
|
+
/**
|
|
7
|
+
* Webhook delivery target.
|
|
8
|
+
*
|
|
9
|
+
* @openapiSchema NewsSubscriptionEndpoint
|
|
10
|
+
* @endpoint DELETE /v1/news/subscriptions
|
|
11
|
+
* @usedBySchema NewsSubscriptionKeySchema
|
|
12
|
+
* @contractShape news.subscription-endpoint
|
|
13
|
+
* @contractRole canonical
|
|
14
|
+
*/
|
|
15
|
+
export declare const NewsSubscriptionEndpointSchema: z.ZodType<NewsSubscriptionEndpointDefinition>;
|
|
16
|
+
export type NewsSubscriptionEndpoint = z.infer<typeof NewsSubscriptionEndpointSchema>;
|
|
17
|
+
export {};
|
|
18
|
+
//# sourceMappingURL=subscription-endpoint.d.ts.map
|
|
@@ -0,0 +1,16 @@
|
|
|
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
|
+
import { z } from "zod/v4";
|
|
3
|
+
const NewsSubscriptionEndpointSchemaDefinition = z.object({
|
|
4
|
+
url: z.string(),
|
|
5
|
+
});
|
|
6
|
+
/**
|
|
7
|
+
* Webhook delivery target.
|
|
8
|
+
*
|
|
9
|
+
* @openapiSchema NewsSubscriptionEndpoint
|
|
10
|
+
* @endpoint DELETE /v1/news/subscriptions
|
|
11
|
+
* @usedBySchema NewsSubscriptionKeySchema
|
|
12
|
+
* @contractShape news.subscription-endpoint
|
|
13
|
+
* @contractRole canonical
|
|
14
|
+
*/
|
|
15
|
+
export const NewsSubscriptionEndpointSchema = NewsSubscriptionEndpointSchemaDefinition;
|
|
16
|
+
//# sourceMappingURL=subscription-endpoint.js.map
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { z } from "zod/v4";
|
|
2
|
+
/**
|
|
3
|
+
* Subscribable event name
|
|
4
|
+
*
|
|
5
|
+
* @openapiSchema NewsSubscriptionEvent
|
|
6
|
+
* @endpoint PUT /v1/news/subscriptions
|
|
7
|
+
* @endpoint DELETE /v1/news/subscriptions
|
|
8
|
+
* @usedBySchema NewsPublishedEventSchema
|
|
9
|
+
* @usedBySchema NewsSubscriptionKeySchema
|
|
10
|
+
* @usedBySchema NewsSubscriptionSchema
|
|
11
|
+
* @contractShape news.subscription-event
|
|
12
|
+
* @contractRole canonical
|
|
13
|
+
*/
|
|
14
|
+
export declare const NewsSubscriptionEventSchema: z.ZodEnum<{
|
|
15
|
+
"entity.news.published": "entity.news.published";
|
|
16
|
+
}>;
|
|
17
|
+
export type NewsSubscriptionEvent = z.infer<typeof NewsSubscriptionEventSchema>;
|
|
18
|
+
//# sourceMappingURL=subscription-event.d.ts.map
|
|
@@ -0,0 +1,16 @@
|
|
|
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
|
+
import { z } from "zod/v4";
|
|
3
|
+
/**
|
|
4
|
+
* Subscribable event name
|
|
5
|
+
*
|
|
6
|
+
* @openapiSchema NewsSubscriptionEvent
|
|
7
|
+
* @endpoint PUT /v1/news/subscriptions
|
|
8
|
+
* @endpoint DELETE /v1/news/subscriptions
|
|
9
|
+
* @usedBySchema NewsPublishedEventSchema
|
|
10
|
+
* @usedBySchema NewsSubscriptionKeySchema
|
|
11
|
+
* @usedBySchema NewsSubscriptionSchema
|
|
12
|
+
* @contractShape news.subscription-event
|
|
13
|
+
* @contractRole canonical
|
|
14
|
+
*/
|
|
15
|
+
export const NewsSubscriptionEventSchema = z.enum(["entity.news.published"]);
|
|
16
|
+
//# sourceMappingURL=subscription-event.js.map
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { z } from "zod/v4";
|
|
2
|
+
declare const NewsSubscriptionGrantSchemaDefinition: z.ZodObject<{
|
|
3
|
+
cursor: z.ZodString;
|
|
4
|
+
id: z.ZodString;
|
|
5
|
+
refreshBefore: z.ZodISODateTime;
|
|
6
|
+
truncated: z.ZodBoolean;
|
|
7
|
+
}, z.core.$strip>;
|
|
8
|
+
type NewsSubscriptionGrantDefinition = z.infer<typeof NewsSubscriptionGrantSchemaDefinition>;
|
|
9
|
+
/**
|
|
10
|
+
* Granted news subscription.
|
|
11
|
+
*
|
|
12
|
+
* @openapiSchema NewsSubscriptionGrant
|
|
13
|
+
* @endpoint PUT /v1/news/subscriptions
|
|
14
|
+
* @contractShape news.subscription-grant
|
|
15
|
+
* @contractRole canonical
|
|
16
|
+
*/
|
|
17
|
+
export declare const NewsSubscriptionGrantSchema: z.ZodType<NewsSubscriptionGrantDefinition>;
|
|
18
|
+
export type NewsSubscriptionGrant = z.infer<typeof NewsSubscriptionGrantSchema>;
|
|
19
|
+
export {};
|
|
20
|
+
//# sourceMappingURL=subscription-grant.d.ts.map
|
|
@@ -0,0 +1,22 @@
|
|
|
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
|
+
import { z } from "zod/v4";
|
|
3
|
+
const NewsSubscriptionGrantSchemaDefinition = z.object({
|
|
4
|
+
/** Opaque watermark the subscription delivers after. */
|
|
5
|
+
cursor: z.string(),
|
|
6
|
+
/** Stable subscription id; sent as X-MCP-Subscription-Id. */
|
|
7
|
+
id: z.string(),
|
|
8
|
+
/** The subscription expires unless refreshed before this instant. */
|
|
9
|
+
refreshBefore: z.iso.datetime({ offset: true }),
|
|
10
|
+
/** Whether events between the requested cursor and now were lost. */
|
|
11
|
+
truncated: z.boolean(),
|
|
12
|
+
});
|
|
13
|
+
/**
|
|
14
|
+
* Granted news subscription.
|
|
15
|
+
*
|
|
16
|
+
* @openapiSchema NewsSubscriptionGrant
|
|
17
|
+
* @endpoint PUT /v1/news/subscriptions
|
|
18
|
+
* @contractShape news.subscription-grant
|
|
19
|
+
* @contractRole canonical
|
|
20
|
+
*/
|
|
21
|
+
export const NewsSubscriptionGrantSchema = NewsSubscriptionGrantSchemaDefinition;
|
|
22
|
+
//# sourceMappingURL=subscription-grant.js.map
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { z } from "zod/v4";
|
|
2
|
+
declare const NewsSubscriptionKeySchemaDefinition: z.ZodObject<{
|
|
3
|
+
arguments: z.ZodType<{
|
|
4
|
+
entityId: string;
|
|
5
|
+
}, unknown, z.core.$ZodTypeInternals<{
|
|
6
|
+
entityId: string;
|
|
7
|
+
}, unknown>>;
|
|
8
|
+
delivery: z.ZodType<{
|
|
9
|
+
url: string;
|
|
10
|
+
}, unknown, z.core.$ZodTypeInternals<{
|
|
11
|
+
url: string;
|
|
12
|
+
}, unknown>>;
|
|
13
|
+
name: z.ZodEnum<{
|
|
14
|
+
"entity.news.published": "entity.news.published";
|
|
15
|
+
}>;
|
|
16
|
+
}, z.core.$strip>;
|
|
17
|
+
type NewsSubscriptionKeyDefinition = z.infer<typeof NewsSubscriptionKeySchemaDefinition>;
|
|
18
|
+
/**
|
|
19
|
+
* Identifies one subscription to remove by its event name, arguments, and url.
|
|
20
|
+
*
|
|
21
|
+
* @openapiSchema NewsSubscriptionKey
|
|
22
|
+
* @endpoint DELETE /v1/news/subscriptions
|
|
23
|
+
* @contractShape news.subscription-key
|
|
24
|
+
* @contractRole canonical
|
|
25
|
+
*/
|
|
26
|
+
export declare const NewsSubscriptionKeySchema: z.ZodType<NewsSubscriptionKeyDefinition>;
|
|
27
|
+
export type NewsSubscriptionKey = z.infer<typeof NewsSubscriptionKeySchema>;
|
|
28
|
+
export {};
|
|
29
|
+
//# sourceMappingURL=subscription-key.d.ts.map
|
|
@@ -0,0 +1,20 @@
|
|
|
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
|
+
import { z } from "zod/v4";
|
|
3
|
+
import { NewsSubscriptionArgumentsSchema } from "./subscription-arguments.js";
|
|
4
|
+
import { NewsSubscriptionEndpointSchema } from "./subscription-endpoint.js";
|
|
5
|
+
import { NewsSubscriptionEventSchema } from "./subscription-event.js";
|
|
6
|
+
const NewsSubscriptionKeySchemaDefinition = z.object({
|
|
7
|
+
arguments: NewsSubscriptionArgumentsSchema,
|
|
8
|
+
delivery: NewsSubscriptionEndpointSchema,
|
|
9
|
+
name: NewsSubscriptionEventSchema,
|
|
10
|
+
});
|
|
11
|
+
/**
|
|
12
|
+
* Identifies one subscription to remove by its event name, arguments, and url.
|
|
13
|
+
*
|
|
14
|
+
* @openapiSchema NewsSubscriptionKey
|
|
15
|
+
* @endpoint DELETE /v1/news/subscriptions
|
|
16
|
+
* @contractShape news.subscription-key
|
|
17
|
+
* @contractRole canonical
|
|
18
|
+
*/
|
|
19
|
+
export const NewsSubscriptionKeySchema = NewsSubscriptionKeySchemaDefinition;
|
|
20
|
+
//# sourceMappingURL=subscription-key.js.map
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { z } from "zod/v4";
|
|
2
|
+
declare const NewsSubscriptionSchemaDefinition: z.ZodObject<{
|
|
3
|
+
arguments: z.ZodType<{
|
|
4
|
+
entityId: string;
|
|
5
|
+
}, unknown, z.core.$ZodTypeInternals<{
|
|
6
|
+
entityId: string;
|
|
7
|
+
}, unknown>>;
|
|
8
|
+
cursor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
9
|
+
delivery: z.ZodType<{
|
|
10
|
+
mode: "webhook";
|
|
11
|
+
secret: string;
|
|
12
|
+
url: string;
|
|
13
|
+
}, unknown, z.core.$ZodTypeInternals<{
|
|
14
|
+
mode: "webhook";
|
|
15
|
+
secret: string;
|
|
16
|
+
url: string;
|
|
17
|
+
}, unknown>>;
|
|
18
|
+
name: z.ZodEnum<{
|
|
19
|
+
"entity.news.published": "entity.news.published";
|
|
20
|
+
}>;
|
|
21
|
+
ttlMs: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
22
|
+
}, z.core.$strip>;
|
|
23
|
+
type NewsSubscriptionDefinition = z.infer<typeof NewsSubscriptionSchemaDefinition>;
|
|
24
|
+
/**
|
|
25
|
+
* Subscribe or refresh one webhook subscription to news newly linked to an entity. The same caller, delivery url, event name, and arguments always address the same subscription, so repeating the call refreshes it.
|
|
26
|
+
*
|
|
27
|
+
* @openapiSchema NewsSubscription
|
|
28
|
+
* @endpoint PUT /v1/news/subscriptions
|
|
29
|
+
* @contractShape news.subscription
|
|
30
|
+
* @contractRole canonical
|
|
31
|
+
*/
|
|
32
|
+
export declare const NewsSubscriptionSchema: z.ZodType<NewsSubscriptionDefinition>;
|
|
33
|
+
export type NewsSubscription = z.infer<typeof NewsSubscriptionSchema>;
|
|
34
|
+
export {};
|
|
35
|
+
//# sourceMappingURL=subscription.d.ts.map
|
|
@@ -0,0 +1,24 @@
|
|
|
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
|
+
import { z } from "zod/v4";
|
|
3
|
+
import { NewsSubscriptionArgumentsSchema } from "./subscription-arguments.js";
|
|
4
|
+
import { NewsSubscriptionDeliverySchema } from "./subscription-delivery.js";
|
|
5
|
+
import { NewsSubscriptionEventSchema } from "./subscription-event.js";
|
|
6
|
+
const NewsSubscriptionSchemaDefinition = z.object({
|
|
7
|
+
arguments: NewsSubscriptionArgumentsSchema,
|
|
8
|
+
/** Opaque watermark from an earlier grant or event to resume after; null starts a new subscription from now and keeps an existing subscription's position. */
|
|
9
|
+
cursor: z.string().nullish(),
|
|
10
|
+
delivery: NewsSubscriptionDeliverySchema,
|
|
11
|
+
name: NewsSubscriptionEventSchema,
|
|
12
|
+
/** Requested subscription lifetime in milliseconds; the server caps it. */
|
|
13
|
+
ttlMs: z.number().int().min(1).nullish(),
|
|
14
|
+
});
|
|
15
|
+
/**
|
|
16
|
+
* Subscribe or refresh one webhook subscription to news newly linked to an entity. The same caller, delivery url, event name, and arguments always address the same subscription, so repeating the call refreshes it.
|
|
17
|
+
*
|
|
18
|
+
* @openapiSchema NewsSubscription
|
|
19
|
+
* @endpoint PUT /v1/news/subscriptions
|
|
20
|
+
* @contractShape news.subscription
|
|
21
|
+
* @contractRole canonical
|
|
22
|
+
*/
|
|
23
|
+
export const NewsSubscriptionSchema = NewsSubscriptionSchemaDefinition;
|
|
24
|
+
//# sourceMappingURL=subscription.js.map
|
|
@@ -537,6 +537,10 @@ export const OPENAPI_COMPONENT_MANIFEST = Object.freeze({
|
|
|
537
537
|
schemaName: "NewsFeedbackAcknowledgementSchema",
|
|
538
538
|
},
|
|
539
539
|
NewsMatchStatus: { modulePath: "news/match-status", schemaName: "NewsMatchStatusSchema" },
|
|
540
|
+
NewsPublishedEvent: {
|
|
541
|
+
modulePath: "news/published-event",
|
|
542
|
+
schemaName: "NewsPublishedEventSchema",
|
|
543
|
+
},
|
|
540
544
|
NewsResolvedEntityLink: {
|
|
541
545
|
modulePath: "news/resolved-entity-link",
|
|
542
546
|
schemaName: "NewsResolvedEntityLinkSchema",
|
|
@@ -549,6 +553,35 @@ export const OPENAPI_COMPONENT_MANIFEST = Object.freeze({
|
|
|
549
553
|
modulePath: "news/source-url-conflict",
|
|
550
554
|
schemaName: "NewsSourceUrlConflictSchema",
|
|
551
555
|
},
|
|
556
|
+
NewsSubscription: { modulePath: "news/subscription", schemaName: "NewsSubscriptionSchema" },
|
|
557
|
+
NewsSubscriptionArguments: {
|
|
558
|
+
modulePath: "news/subscription-arguments",
|
|
559
|
+
schemaName: "NewsSubscriptionArgumentsSchema",
|
|
560
|
+
},
|
|
561
|
+
NewsSubscriptionDelivery: {
|
|
562
|
+
modulePath: "news/subscription-delivery",
|
|
563
|
+
schemaName: "NewsSubscriptionDeliverySchema",
|
|
564
|
+
},
|
|
565
|
+
NewsSubscriptionDeliveryMode: {
|
|
566
|
+
modulePath: "news/subscription-delivery-mode",
|
|
567
|
+
schemaName: "NewsSubscriptionDeliveryModeSchema",
|
|
568
|
+
},
|
|
569
|
+
NewsSubscriptionEndpoint: {
|
|
570
|
+
modulePath: "news/subscription-endpoint",
|
|
571
|
+
schemaName: "NewsSubscriptionEndpointSchema",
|
|
572
|
+
},
|
|
573
|
+
NewsSubscriptionEvent: {
|
|
574
|
+
modulePath: "news/subscription-event",
|
|
575
|
+
schemaName: "NewsSubscriptionEventSchema",
|
|
576
|
+
},
|
|
577
|
+
NewsSubscriptionGrant: {
|
|
578
|
+
modulePath: "news/subscription-grant",
|
|
579
|
+
schemaName: "NewsSubscriptionGrantSchema",
|
|
580
|
+
},
|
|
581
|
+
NewsSubscriptionKey: {
|
|
582
|
+
modulePath: "news/subscription-key",
|
|
583
|
+
schemaName: "NewsSubscriptionKeySchema",
|
|
584
|
+
},
|
|
552
585
|
PageableObject: { modulePath: "pageable/object", schemaName: "PageableObjectSchema" },
|
|
553
586
|
PageBlogPost: { modulePath: "pagination/schemas", schemaName: "PageBlogPostSchema" },
|
|
554
587
|
PageClassification: {
|
package/dist/search/hit.d.ts
CHANGED
|
@@ -10,6 +10,7 @@ type SearchHitDefinition = z.infer<typeof SearchHitSchemaDefinition>;
|
|
|
10
10
|
* One normalized web-search hit with its title, URL, snippet, and relevance score
|
|
11
11
|
*
|
|
12
12
|
* @openapiSchema SearchHit
|
|
13
|
+
* @endpoint GET /v1/web/searches/jobs/{jobId}
|
|
13
14
|
* @endpoint POST /v1/web/search
|
|
14
15
|
* @usedBySchema WebSearchSchema
|
|
15
16
|
* @contractShape search.hit
|
package/dist/search/hit.js
CHANGED
|
@@ -10,6 +10,7 @@ const SearchHitSchemaDefinition = z.object({
|
|
|
10
10
|
* One normalized web-search hit with its title, URL, snippet, and relevance score
|
|
11
11
|
*
|
|
12
12
|
* @openapiSchema SearchHit
|
|
13
|
+
* @endpoint GET /v1/web/searches/jobs/{jobId}
|
|
13
14
|
* @endpoint POST /v1/web/search
|
|
14
15
|
* @usedBySchema WebSearchSchema
|
|
15
16
|
* @contractShape search.hit
|
package/dist/search/search.d.ts
CHANGED
|
@@ -13,6 +13,7 @@ type SearchDefinition = z.infer<typeof SearchSchemaDefinition>;
|
|
|
13
13
|
* Live web search request with cache controls
|
|
14
14
|
*
|
|
15
15
|
* @openapiSchema Search
|
|
16
|
+
* @endpoint GET /v1/web/searches/jobs/{jobId}
|
|
16
17
|
* @endpoint POST /v1/web/search
|
|
17
18
|
* @usedBySchema WebSearchSchema
|
|
18
19
|
* @contractShape search.search
|
package/dist/search/search.js
CHANGED
|
@@ -20,6 +20,7 @@ const SearchSchemaDefinition = z.object({
|
|
|
20
20
|
* Live web search request with cache controls
|
|
21
21
|
*
|
|
22
22
|
* @openapiSchema Search
|
|
23
|
+
* @endpoint GET /v1/web/searches/jobs/{jobId}
|
|
23
24
|
* @endpoint POST /v1/web/search
|
|
24
25
|
* @usedBySchema WebSearchSchema
|
|
25
26
|
* @contractShape search.search
|
|
@@ -20,6 +20,7 @@ type SourceDocumentListDefinition = z.infer<typeof SourceDocumentListSchemaDefin
|
|
|
20
20
|
* Metadata-only ledger row for source-document lists
|
|
21
21
|
*
|
|
22
22
|
* @openapiSchema SourceDocumentList
|
|
23
|
+
* @endpoint GET /v1/web/searches/jobs/{jobId}
|
|
23
24
|
* @endpoint POST /v1/web/search
|
|
24
25
|
* @usedBySchema WebSearchSchema
|
|
25
26
|
* @contractShape source.document-list
|
|
@@ -22,6 +22,7 @@ const SourceDocumentListSchemaDefinition = z.object({
|
|
|
22
22
|
* Metadata-only ledger row for source-document lists
|
|
23
23
|
*
|
|
24
24
|
* @openapiSchema SourceDocumentList
|
|
25
|
+
* @endpoint GET /v1/web/searches/jobs/{jobId}
|
|
25
26
|
* @endpoint POST /v1/web/search
|
|
26
27
|
* @usedBySchema WebSearchSchema
|
|
27
28
|
* @contractShape source.document-list
|
package/dist/web/search.d.ts
CHANGED
|
@@ -65,6 +65,7 @@ type WebSearchDefinition = z.infer<typeof WebSearchSchemaDefinition>;
|
|
|
65
65
|
* Live web search result with its backing source-document row and normalized items
|
|
66
66
|
*
|
|
67
67
|
* @openapiSchema WebSearch
|
|
68
|
+
* @endpoint GET /v1/web/searches/jobs/{jobId}
|
|
68
69
|
* @endpoint POST /v1/web/search
|
|
69
70
|
* @contractShape web.search
|
|
70
71
|
* @contractRole canonical
|
package/dist/web/search.js
CHANGED
|
@@ -15,6 +15,7 @@ const WebSearchSchemaDefinition = z.object({
|
|
|
15
15
|
* Live web search result with its backing source-document row and normalized items
|
|
16
16
|
*
|
|
17
17
|
* @openapiSchema WebSearch
|
|
18
|
+
* @endpoint GET /v1/web/searches/jobs/{jobId}
|
|
18
19
|
* @endpoint POST /v1/web/search
|
|
19
20
|
* @contractShape web.search
|
|
20
21
|
* @contractRole canonical
|