gomtm 0.0.8 → 0.0.9

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.
@@ -0,0 +1,23 @@
1
+ import { createStore, Getter, SetStateAction, Setter, WritableAtom } from 'jotai';
2
+ import { ReactNode } from 'react';
3
+ export declare function AtomsHydrator({ atomValues, store, children, }: {
4
+ atomValues: Iterable<readonly [WritableAtom<unknown, [any], unknown>, unknown]>;
5
+ store?: ReturnType<typeof createStore>;
6
+ children: ReactNode;
7
+ }): ReactNode;
8
+ export default function atomWithDebounce<T>(initialValue: T, delayMilliseconds?: number, shouldDebounceOnReset?: boolean): {
9
+ currentValueAtom: import("jotai").Atom<T>;
10
+ isDebouncingAtom: import("jotai").PrimitiveAtom<boolean> & {
11
+ init: boolean;
12
+ };
13
+ clearTimeoutAtom: WritableAtom<null, [_arg: unknown], void> & {
14
+ init: null;
15
+ };
16
+ debouncedValueAtom: WritableAtom<T, [update: SetStateAction<T>], void> & {
17
+ init: T;
18
+ };
19
+ };
20
+ export declare function atomWithRefresh<T>(fn: (get: Getter) => T): WritableAtom<T, [], void>;
21
+ type Callback<Value> = (get: Getter, set: Setter, newVal: Value, prevVal: Value) => void;
22
+ export declare function atomWithListeners<Value>(initialValue: Value): readonly [WritableAtom<Value, [arg: SetStateAction<Value>], void>, (callback: Callback<Value>) => void];
23
+ export {};
@@ -0,0 +1,96 @@
1
+ "use client";
2
+ import { atom, useSetAtom } from "jotai";
3
+ import { useHydrateAtoms } from "jotai/utils";
4
+ import { useEffect } from "react";
5
+ function AtomsHydrator({
6
+ atomValues,
7
+ store,
8
+ children
9
+ }) {
10
+ useHydrateAtoms(new Map(atomValues), { store });
11
+ return children;
12
+ }
13
+ function atomWithDebounce(initialValue, delayMilliseconds = 500, shouldDebounceOnReset = false) {
14
+ const prevTimeoutAtom = atom(
15
+ void 0
16
+ );
17
+ const _currentValueAtom = atom(initialValue);
18
+ const isDebouncingAtom = atom(false);
19
+ const debouncedValueAtom = atom(
20
+ initialValue,
21
+ (get, set, update) => {
22
+ clearTimeout(get(prevTimeoutAtom));
23
+ const prevValue = get(_currentValueAtom);
24
+ const nextValue = typeof update === "function" ? update(prevValue) : update;
25
+ const onDebounceStart = () => {
26
+ set(_currentValueAtom, nextValue);
27
+ set(isDebouncingAtom, true);
28
+ };
29
+ const onDebounceEnd = () => {
30
+ set(debouncedValueAtom, nextValue);
31
+ set(isDebouncingAtom, false);
32
+ };
33
+ onDebounceStart();
34
+ if (!shouldDebounceOnReset && nextValue === initialValue) {
35
+ onDebounceEnd();
36
+ return;
37
+ }
38
+ const nextTimeoutId = setTimeout(() => {
39
+ onDebounceEnd();
40
+ }, delayMilliseconds);
41
+ set(prevTimeoutAtom, nextTimeoutId);
42
+ }
43
+ );
44
+ const clearTimeoutAtom = atom(null, (get, set, _arg) => {
45
+ clearTimeout(get(prevTimeoutAtom));
46
+ set(isDebouncingAtom, false);
47
+ });
48
+ return {
49
+ currentValueAtom: atom((get) => get(_currentValueAtom)),
50
+ isDebouncingAtom,
51
+ clearTimeoutAtom,
52
+ debouncedValueAtom
53
+ };
54
+ }
55
+ function atomWithRefresh(fn) {
56
+ const refreshCounter = atom(0);
57
+ return atom(
58
+ (get) => {
59
+ get(refreshCounter);
60
+ return fn(get);
61
+ },
62
+ (_, set) => set(refreshCounter, (i) => i + 1)
63
+ );
64
+ }
65
+ function atomWithListeners(initialValue) {
66
+ const baseAtom = atom(initialValue);
67
+ const listenersAtom = atom([]);
68
+ const anAtom = atom(
69
+ (get) => get(baseAtom),
70
+ (get, set, arg) => {
71
+ const prevVal = get(baseAtom);
72
+ set(baseAtom, arg);
73
+ const newVal = get(baseAtom);
74
+ get(listenersAtom).forEach((callback) => {
75
+ callback(get, set, newVal, prevVal);
76
+ });
77
+ }
78
+ );
79
+ const useListener = (callback) => {
80
+ const setListeners = useSetAtom(listenersAtom);
81
+ useEffect(() => {
82
+ setListeners((prev) => [...prev, callback]);
83
+ return () => setListeners((prev) => {
84
+ const index = prev.indexOf(callback);
85
+ return [...prev.slice(0, index), ...prev.slice(index + 1)];
86
+ });
87
+ }, [setListeners, callback]);
88
+ };
89
+ return [anAtom, useListener];
90
+ }
91
+ export {
92
+ AtomsHydrator,
93
+ atomWithListeners,
94
+ atomWithRefresh,
95
+ atomWithDebounce as default
96
+ };
@@ -0,0 +1,18 @@
1
+ import * as z from "zod";
2
+ export declare const crawlerConfigSchema: z.ZodObject<{
3
+ entryUrls: z.ZodString;
4
+ proxy: z.ZodOptional<z.ZodString>;
5
+ maxRequestsPerCrawl: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
6
+ queueName: z.ZodOptional<z.ZodString>;
7
+ }, "strip", z.ZodTypeAny, {
8
+ entryUrls: string;
9
+ proxy?: string | undefined;
10
+ maxRequestsPerCrawl?: number | undefined;
11
+ queueName?: string | undefined;
12
+ }, {
13
+ entryUrls: string;
14
+ proxy?: string | undefined;
15
+ maxRequestsPerCrawl?: number | undefined;
16
+ queueName?: string | undefined;
17
+ }>;
18
+ export type CrawlerConfigType = z.infer<typeof crawlerConfigSchema>;
@@ -0,0 +1,10 @@
1
+ import * as z from "zod";
2
+ const crawlerConfigSchema = z.object({
3
+ entryUrls: z.string(),
4
+ proxy: z.string().optional(),
5
+ maxRequestsPerCrawl: z.number().default(1e3).optional(),
6
+ queueName: z.string().optional()
7
+ });
8
+ export {
9
+ crawlerConfigSchema
10
+ };
@@ -0,0 +1,57 @@
1
+ import { z } from "zod";
2
+ export type Literal = boolean | number | string;
3
+ export type Json = Literal | {
4
+ [key: string]: Json;
5
+ } | Json[];
6
+ export declare const literalSchema: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>;
7
+ export declare const jsonSchema: z.ZodSchema<Json>;
8
+ export declare const commonListInputSchema: z.ZodObject<{
9
+ keyword: z.ZodOptional<z.ZodString>;
10
+ limit: z.ZodOptional<z.ZodNumber>;
11
+ cursor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
12
+ }, "strip", z.ZodTypeAny, {
13
+ keyword?: string | undefined;
14
+ limit?: number | undefined;
15
+ cursor?: string | null | undefined;
16
+ }, {
17
+ keyword?: string | undefined;
18
+ limit?: number | undefined;
19
+ cursor?: string | null | undefined;
20
+ }>;
21
+ export declare const getByIdInputSchema: z.ZodObject<{
22
+ id: z.ZodString;
23
+ }, "strip", z.ZodTypeAny, {
24
+ id: string;
25
+ }, {
26
+ id: string;
27
+ }>;
28
+ export declare const EntityItemBaseSchema: z.ZodObject<{
29
+ id: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
30
+ }, "strip", z.ZodTypeAny, {
31
+ id?: string | number | undefined;
32
+ }, {
33
+ id?: string | number | undefined;
34
+ }>;
35
+ export type EntityBaseItem = z.infer<typeof EntityItemBaseSchema>;
36
+ export declare const deleteByIdSchema: z.ZodObject<{
37
+ id: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
38
+ }, "strip", z.ZodTypeAny, {
39
+ id?: string | number | undefined;
40
+ }, {
41
+ id?: string | number | undefined;
42
+ }>;
43
+ export interface ComponentWithViewType {
44
+ viewType: {
45
+ name: string;
46
+ };
47
+ }
48
+ export declare const PaginateQuery: z.ZodObject<{
49
+ limit: z.ZodOptional<z.ZodNumber>;
50
+ cursor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
51
+ }, "strip", z.ZodTypeAny, {
52
+ limit?: number | undefined;
53
+ cursor?: string | null | undefined;
54
+ }, {
55
+ limit?: number | undefined;
56
+ cursor?: string | null | undefined;
57
+ }>;
@@ -0,0 +1,30 @@
1
+ import { z } from "zod";
2
+ const literalSchema = z.union([z.string(), z.number(), z.boolean()]);
3
+ const jsonSchema = z.lazy(() => z.union([literalSchema, z.array(jsonSchema), z.record(jsonSchema)]));
4
+ const commonListInputSchema = z.object({
5
+ keyword: z.string().optional(),
6
+ limit: z.number().min(1).max(100).optional(),
7
+ cursor: z.string().nullish()
8
+ });
9
+ const getByIdInputSchema = z.object({
10
+ id: z.string()
11
+ });
12
+ const EntityItemBaseSchema = z.object({
13
+ id: z.string().or(z.number()).optional()
14
+ });
15
+ const deleteByIdSchema = z.object({
16
+ id: z.string().or(z.number()).optional()
17
+ });
18
+ const PaginateQuery = z.object({
19
+ limit: z.number().min(1).max(1e3).optional(),
20
+ cursor: z.string().nullish()
21
+ });
22
+ export {
23
+ EntityItemBaseSchema,
24
+ PaginateQuery,
25
+ commonListInputSchema,
26
+ deleteByIdSchema,
27
+ getByIdInputSchema,
28
+ jsonSchema,
29
+ literalSchema
30
+ };
@@ -0,0 +1,33 @@
1
+ import * as z from "zod";
2
+ export declare const userAuthSchema: z.ZodObject<{
3
+ email: z.ZodString;
4
+ }, "strip", z.ZodTypeAny, {
5
+ email: string;
6
+ }, {
7
+ email: string;
8
+ }>;
9
+ export type AuthLoginInput = z.infer<typeof AuthLoginInput>;
10
+ export declare const AuthLoginInput: z.ZodObject<{
11
+ username: z.ZodString;
12
+ password: z.ZodString;
13
+ persistent: z.ZodOptional<z.ZodBoolean>;
14
+ }, "strip", z.ZodTypeAny, {
15
+ username: string;
16
+ password: string;
17
+ persistent?: boolean | undefined;
18
+ }, {
19
+ username: string;
20
+ password: string;
21
+ persistent?: boolean | undefined;
22
+ }>;
23
+ export type AuthLoginOut = z.infer<typeof AuthLoginOut>;
24
+ export declare const AuthLoginOut: z.ZodObject<{
25
+ ok: z.ZodBoolean;
26
+ token: z.ZodOptional<z.ZodString>;
27
+ }, "strip", z.ZodTypeAny, {
28
+ ok: boolean;
29
+ token?: string | undefined;
30
+ }, {
31
+ ok: boolean;
32
+ token?: string | undefined;
33
+ }>;
@@ -0,0 +1,18 @@
1
+ import * as z from "zod";
2
+ const userAuthSchema = z.object({
3
+ email: z.string().email()
4
+ });
5
+ const AuthLoginInput = z.object({
6
+ username: z.string(),
7
+ password: z.string(),
8
+ persistent: z.boolean().optional()
9
+ });
10
+ const AuthLoginOut = z.object({
11
+ ok: z.boolean(),
12
+ token: z.string().optional()
13
+ });
14
+ export {
15
+ AuthLoginInput,
16
+ AuthLoginOut,
17
+ userAuthSchema
18
+ };
@@ -0,0 +1,17 @@
1
+ import * as z from "zod";
2
+ export declare const blogListQueryInputSchema: z.ZodObject<{
3
+ keyword: z.ZodOptional<z.ZodString>;
4
+ slug: z.ZodOptional<z.ZodString>;
5
+ limit: z.ZodOptional<z.ZodNumber>;
6
+ cursor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7
+ }, "strip", z.ZodTypeAny, {
8
+ keyword?: string | undefined;
9
+ slug?: string | undefined;
10
+ limit?: number | undefined;
11
+ cursor?: string | null | undefined;
12
+ }, {
13
+ keyword?: string | undefined;
14
+ slug?: string | undefined;
15
+ limit?: number | undefined;
16
+ cursor?: string | null | undefined;
17
+ }>;
@@ -0,0 +1,10 @@
1
+ import * as z from "zod";
2
+ const blogListQueryInputSchema = z.object({
3
+ keyword: z.string().optional(),
4
+ slug: z.string().optional(),
5
+ limit: z.number().min(1).max(1e3).optional(),
6
+ cursor: z.string().nullish()
7
+ });
8
+ export {
9
+ blogListQueryInputSchema
10
+ };
@@ -0,0 +1,17 @@
1
+ import * as z from "zod";
2
+ export declare const crawlerListQueryInputSchema: z.ZodObject<{
3
+ q: z.ZodOptional<z.ZodString>;
4
+ name: z.ZodOptional<z.ZodString>;
5
+ limit: z.ZodDefault<z.ZodNumber>;
6
+ cursor: z.ZodOptional<z.ZodString>;
7
+ }, "strip", z.ZodTypeAny, {
8
+ limit: number;
9
+ q?: string | undefined;
10
+ name?: string | undefined;
11
+ cursor?: string | undefined;
12
+ }, {
13
+ q?: string | undefined;
14
+ name?: string | undefined;
15
+ limit?: number | undefined;
16
+ cursor?: string | undefined;
17
+ }>;
@@ -0,0 +1,10 @@
1
+ import * as z from "zod";
2
+ const crawlerListQueryInputSchema = z.object({
3
+ q: z.string().optional(),
4
+ name: z.string().optional(),
5
+ limit: z.number().default(12),
6
+ cursor: z.string().optional()
7
+ });
8
+ export {
9
+ crawlerListQueryInputSchema
10
+ };
@@ -0,0 +1,8 @@
1
+ import { z } from "zod";
2
+ export declare const env: z.SafeParseReturnType<{
3
+ DATABASE_URL: string;
4
+ NODE_ENV: "development" | "test" | "production";
5
+ }, {
6
+ DATABASE_URL: string;
7
+ NODE_ENV: "development" | "test" | "production";
8
+ }>;
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+ const envSchema = z.object({
3
+ DATABASE_URL: z.string().url(),
4
+ NODE_ENV: z.enum(["development", "test", "production"])
5
+ });
6
+ const env = envSchema.safeParse(process.env);
7
+ export {
8
+ env
9
+ };
@@ -0,0 +1,34 @@
1
+ import * as z from "zod";
2
+ export declare const postPatchSchema: z.ZodObject<{
3
+ title: z.ZodOptional<z.ZodString>;
4
+ content: z.ZodOptional<z.ZodAny>;
5
+ }, "strip", z.ZodTypeAny, {
6
+ title?: string | undefined;
7
+ content?: any;
8
+ }, {
9
+ title?: string | undefined;
10
+ content?: any;
11
+ }>;
12
+ export declare const postListQueryInputSchema: z.ZodObject<{
13
+ q: z.ZodOptional<z.ZodString>;
14
+ }, "strip", z.ZodTypeAny, {
15
+ q?: string | undefined;
16
+ }, {
17
+ q?: string | undefined;
18
+ }>;
19
+ export declare const createPostSchema: z.ZodObject<{
20
+ appId: z.ZodString;
21
+ title: z.ZodString;
22
+ content: z.ZodString;
23
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
24
+ }, "strip", z.ZodTypeAny, {
25
+ title: string;
26
+ content: string;
27
+ appId: string;
28
+ tags?: string[] | undefined;
29
+ }, {
30
+ title: string;
31
+ content: string;
32
+ appId: string;
33
+ tags?: string[] | undefined;
34
+ }>;
@@ -0,0 +1,28 @@
1
+ import * as z from "zod";
2
+ const postPatchSchema = z.object({
3
+ title: z.string().min(3).max(128).optional(),
4
+ // TODO: Type this properly from editorjs block types?
5
+ content: z.any().optional()
6
+ });
7
+ const postListQueryInputSchema = z.object({
8
+ q: z.string().optional()
9
+ // siteId: z.string().optional(),
10
+ // categoryId: z.number().optional(),
11
+ // slug: z.string().optional(),
12
+ // tags: z.string().optional(),
13
+ // limit: z.number().min(1).max(100).optional(),
14
+ // cursor: z.string().nullish(),
15
+ });
16
+ const createPostSchema = z.object({
17
+ // blogId: z.string(),
18
+ appId: z.string(),
19
+ // categoryId: z.string(),
20
+ title: z.string(),
21
+ content: z.string(),
22
+ tags: z.array(z.string()).optional()
23
+ });
24
+ export {
25
+ createPostSchema,
26
+ postListQueryInputSchema,
27
+ postPatchSchema
28
+ };
@@ -0,0 +1,18 @@
1
+ import * as z from "zod";
2
+ export declare const spHandleBySlugsInput: z.ZodObject<{
3
+ domain: z.ZodString;
4
+ url: z.ZodString;
5
+ }, "strip", z.ZodTypeAny, {
6
+ url: string;
7
+ domain: string;
8
+ }, {
9
+ url: string;
10
+ domain: string;
11
+ }>;
12
+ export declare const spImportDataInput: z.ZodObject<{
13
+ jsonData: z.ZodString;
14
+ }, "strip", z.ZodTypeAny, {
15
+ jsonData: string;
16
+ }, {
17
+ jsonData: string;
18
+ }>;
@@ -0,0 +1,12 @@
1
+ import * as z from "zod";
2
+ const spHandleBySlugsInput = z.object({
3
+ domain: z.string(),
4
+ url: z.string()
5
+ });
6
+ const spImportDataInput = z.object({
7
+ jsonData: z.string()
8
+ });
9
+ export {
10
+ spHandleBySlugsInput,
11
+ spImportDataInput
12
+ };
@@ -0,0 +1,62 @@
1
+ import { z } from "zod";
2
+ export declare const spContentModiListInput: z.ZodOptional<z.ZodNullable<z.ZodNullable<z.ZodOptional<z.ZodObject<{
3
+ spRouteId: z.ZodOptional<z.ZodString>;
4
+ }, "strip", z.ZodTypeAny, {
5
+ spRouteId?: string | undefined;
6
+ }, {
7
+ spRouteId?: string | undefined;
8
+ }>>>>>;
9
+ export declare const spContentModiGetInput: z.ZodObject<{
10
+ id: z.ZodString;
11
+ }, "strip", z.ZodTypeAny, {
12
+ id: string;
13
+ }, {
14
+ id: string;
15
+ }>;
16
+ export declare const spContentModiCreateInput: z.ZodObject<{
17
+ spRouteId: z.ZodString;
18
+ matchContentType: z.ZodString;
19
+ title: z.ZodOptional<z.ZodString>;
20
+ sel: z.ZodString;
21
+ action: z.ZodString;
22
+ value: z.ZodString;
23
+ }, "strip", z.ZodTypeAny, {
24
+ value: string;
25
+ action: string;
26
+ sel: string;
27
+ spRouteId: string;
28
+ matchContentType: string;
29
+ title?: string | undefined;
30
+ }, {
31
+ value: string;
32
+ action: string;
33
+ sel: string;
34
+ spRouteId: string;
35
+ matchContentType: string;
36
+ title?: string | undefined;
37
+ }>;
38
+ export declare const spContentModiSaveInput: z.ZodObject<{
39
+ id: z.ZodString;
40
+ matchContentType: z.ZodString;
41
+ spRouteId: z.ZodString;
42
+ title: z.ZodOptional<z.ZodString>;
43
+ sel: z.ZodString;
44
+ action: z.ZodString;
45
+ value: z.ZodString;
46
+ }, "strip", z.ZodTypeAny, {
47
+ id: string;
48
+ value: string;
49
+ action: string;
50
+ sel: string;
51
+ spRouteId: string;
52
+ matchContentType: string;
53
+ title?: string | undefined;
54
+ }, {
55
+ id: string;
56
+ value: string;
57
+ action: string;
58
+ sel: string;
59
+ spRouteId: string;
60
+ matchContentType: string;
61
+ title?: string | undefined;
62
+ }>;
@@ -0,0 +1,30 @@
1
+ import { z } from "zod";
2
+ const spContentModiListInput = z.object({
3
+ spRouteId: z.string().optional()
4
+ }).optional().nullable().nullish();
5
+ const spContentModiGetInput = z.object({
6
+ id: z.string()
7
+ });
8
+ const spContentModiCreateInput = z.object({
9
+ spRouteId: z.string(),
10
+ matchContentType: z.string(),
11
+ title: z.string().optional(),
12
+ sel: z.string(),
13
+ action: z.string(),
14
+ value: z.string()
15
+ });
16
+ const spContentModiSaveInput = z.object({
17
+ id: z.string(),
18
+ matchContentType: z.string(),
19
+ spRouteId: z.string(),
20
+ title: z.string().optional(),
21
+ sel: z.string(),
22
+ action: z.string(),
23
+ value: z.string()
24
+ });
25
+ export {
26
+ spContentModiCreateInput,
27
+ spContentModiGetInput,
28
+ spContentModiListInput,
29
+ spContentModiSaveInput
30
+ };
@@ -0,0 +1,8 @@
1
+ import * as z from "zod";
2
+ export declare const spHostGetHostInput: z.ZodObject<{
3
+ host: z.ZodOptional<z.ZodString>;
4
+ }, "strip", z.ZodTypeAny, {
5
+ host?: string | undefined;
6
+ }, {
7
+ host?: string | undefined;
8
+ }>;
@@ -0,0 +1,7 @@
1
+ import * as z from "zod";
2
+ const spHostGetHostInput = z.object({
3
+ host: z.string().optional()
4
+ });
5
+ export {
6
+ spHostGetHostInput
7
+ };
@@ -0,0 +1,14 @@
1
+ import * as z from "zod";
2
+ export declare const spPageGetBySlugsInput: z.ZodObject<{
3
+ host: z.ZodOptional<z.ZodString>;
4
+ path: z.ZodOptional<z.ZodString>;
5
+ searchParams: z.ZodOptional<z.ZodString>;
6
+ }, "strip", z.ZodTypeAny, {
7
+ host?: string | undefined;
8
+ path?: string | undefined;
9
+ searchParams?: string | undefined;
10
+ }, {
11
+ host?: string | undefined;
12
+ path?: string | undefined;
13
+ searchParams?: string | undefined;
14
+ }>;
@@ -0,0 +1,9 @@
1
+ import * as z from "zod";
2
+ const spPageGetBySlugsInput = z.object({
3
+ host: z.string().optional(),
4
+ path: z.string().optional(),
5
+ searchParams: z.string().optional()
6
+ });
7
+ export {
8
+ spPageGetBySlugsInput
9
+ };
@@ -0,0 +1,57 @@
1
+ import * as z from "zod";
2
+ export declare const spRouteListInput: z.ZodOptional<z.ZodNullable<z.ZodNullable<z.ZodOptional<z.ZodObject<{
3
+ spProjectId: z.ZodOptional<z.ZodString>;
4
+ }, "strip", z.ZodTypeAny, {
5
+ spProjectId?: string | undefined;
6
+ }, {
7
+ spProjectId?: string | undefined;
8
+ }>>>>>;
9
+ export declare const spRouteGetInput: z.ZodObject<{
10
+ id: z.ZodString;
11
+ }, "strip", z.ZodTypeAny, {
12
+ id: string;
13
+ }, {
14
+ id: string;
15
+ }>;
16
+ export declare const spRouteCreateInput: z.ZodObject<{
17
+ spProjectId: z.ZodString;
18
+ title: z.ZodString;
19
+ hostPattern: z.ZodString;
20
+ pathPattern: z.ZodString;
21
+ value: z.ZodString;
22
+ }, "strip", z.ZodTypeAny, {
23
+ title: string;
24
+ spProjectId: string;
25
+ hostPattern: string;
26
+ pathPattern: string;
27
+ value: string;
28
+ }, {
29
+ title: string;
30
+ spProjectId: string;
31
+ hostPattern: string;
32
+ pathPattern: string;
33
+ value: string;
34
+ }>;
35
+ export type SpRouteSaveInput = z.infer<typeof SpRouteSaveInput>;
36
+ export declare const SpRouteSaveInput: z.ZodObject<{
37
+ id: z.ZodString;
38
+ spProjectId: z.ZodString;
39
+ title: z.ZodString;
40
+ hostPattern: z.ZodString;
41
+ pathPattern: z.ZodString;
42
+ value: z.ZodString;
43
+ }, "strip", z.ZodTypeAny, {
44
+ id: string;
45
+ title: string;
46
+ spProjectId: string;
47
+ hostPattern: string;
48
+ pathPattern: string;
49
+ value: string;
50
+ }, {
51
+ id: string;
52
+ title: string;
53
+ spProjectId: string;
54
+ hostPattern: string;
55
+ pathPattern: string;
56
+ value: string;
57
+ }>;