@aventurevc/api-schemas 0.8.88 → 0.8.89
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.
|
@@ -11,7 +11,11 @@ type SharedSearchListDefinition = z.infer<typeof SharedSearchListSchemaDefinitio
|
|
|
11
11
|
*
|
|
12
12
|
* @openapiSchema SharedSearchList
|
|
13
13
|
* @endpoint GET /v1/search/shared
|
|
14
|
+
* @endpoint GET /v1/search/shared/{id}
|
|
15
|
+
* @endpoint GET /v1/search/shared/slug/{slug}
|
|
16
|
+
* @endpoint POST /v1/search/shared
|
|
14
17
|
* @usedBySchema CursorSliceSharedSearchListSchema
|
|
18
|
+
* @usedBySchema SharedSearchSchema
|
|
15
19
|
* @contractShape shared.search-list
|
|
16
20
|
* @contractRole canonical
|
|
17
21
|
*/
|
|
@@ -16,7 +16,11 @@ const SharedSearchListSchemaDefinition = z.object({
|
|
|
16
16
|
*
|
|
17
17
|
* @openapiSchema SharedSearchList
|
|
18
18
|
* @endpoint GET /v1/search/shared
|
|
19
|
+
* @endpoint GET /v1/search/shared/{id}
|
|
20
|
+
* @endpoint GET /v1/search/shared/slug/{slug}
|
|
21
|
+
* @endpoint POST /v1/search/shared
|
|
19
22
|
* @usedBySchema CursorSliceSharedSearchListSchema
|
|
23
|
+
* @usedBySchema SharedSearchSchema
|
|
20
24
|
* @contractShape shared.search-list
|
|
21
25
|
* @contractRole canonical
|
|
22
26
|
*/
|
package/dist/shared/search.d.ts
CHANGED
|
@@ -1,8 +1,16 @@
|
|
|
1
1
|
import { z } from "zod/v4";
|
|
2
2
|
declare const SharedSearchSchemaDefinition: z.ZodObject<{
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
publication: z.ZodType<{
|
|
4
|
+
createdAt: string;
|
|
5
|
+
id: string;
|
|
6
|
+
query: string;
|
|
7
|
+
slug: string;
|
|
8
|
+
}, unknown, z.core.$ZodTypeInternals<{
|
|
9
|
+
createdAt: string;
|
|
10
|
+
id: string;
|
|
11
|
+
query: string;
|
|
12
|
+
slug: string;
|
|
13
|
+
}, unknown>>;
|
|
6
14
|
result: z.ZodType<{
|
|
7
15
|
entity: {
|
|
8
16
|
answer?: {
|
|
@@ -7008,7 +7016,6 @@ declare const SharedSearchSchemaDefinition: z.ZodObject<{
|
|
|
7008
7016
|
unavailable: ("entity" | "news" | "person")[];
|
|
7009
7017
|
};
|
|
7010
7018
|
}, unknown>>;
|
|
7011
|
-
slug: z.ZodString;
|
|
7012
7019
|
}, z.core.$strip>;
|
|
7013
7020
|
type SharedSearchDefinition = z.infer<typeof SharedSearchSchemaDefinition>;
|
|
7014
7021
|
/**
|
package/dist/shared/search.js
CHANGED
|
@@ -1,17 +1,10 @@
|
|
|
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
3
|
import { FederatedSearchSchema } from "../federated/search.js";
|
|
4
|
+
import { SharedSearchListSchema } from "./search-list.js";
|
|
4
5
|
const SharedSearchSchemaDefinition = z.object({
|
|
5
|
-
|
|
6
|
-
/** Stable shared-search UUID */
|
|
7
|
-
id: z.uuid(),
|
|
8
|
-
query: z.string(),
|
|
6
|
+
publication: SharedSearchListSchema,
|
|
9
7
|
result: FederatedSearchSchema,
|
|
10
|
-
/** Canonical lowercase URL slug for the resource */
|
|
11
|
-
slug: z
|
|
12
|
-
.string()
|
|
13
|
-
.regex(/^[a-z0-9_-]+$/)
|
|
14
|
-
.max(255),
|
|
15
8
|
});
|
|
16
9
|
/**
|
|
17
10
|
* A saved public search query and answer.
|