@kulupu-linku/sona 0.3.5 → 0.3.7
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/client.d.ts +1 -0
- package/dist/client.js +80 -73
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -1
- package/dist/lib/client.d.ts +33 -32
- package/dist/lib/client.test.d.ts +0 -1
- package/dist/lib/index.d.ts +0 -1
- package/dist/lib/types.d.ts +0 -1
- package/dist/lib/utils.d.ts +0 -1
- package/dist/server/index.d.ts +33 -32
- package/dist/server/utils.d.ts +0 -1
- package/dist/server/v1/index.d.ts +28 -29
- package/dist/server/versioning.d.ts +29 -30
- package/dist/{utils-GfUvEzD4.js → utils-B3Jq5OVZ.js} +50 -56
- package/dist/utils.d.ts +1 -0
- package/dist/utils.js +1 -1
- package/package.json +3 -3
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { Hono } from 'hono';
|
|
2
2
|
import { z } from 'zod';
|
|
3
|
-
|
|
4
3
|
export declare const BASE_URL = "https://raw.githubusercontent.com/lipu-linku/sona";
|
|
5
4
|
export type ApiVersion = "v1";
|
|
6
5
|
export type Versions = {
|
|
@@ -1746,13 +1745,13 @@ export type FilesToVariables<V extends ApiVersion, T extends Versions[ApiVersion
|
|
|
1746
1745
|
[K in keyof T]: T[K]["schema"] extends z.ZodType ? T[K]["schema"]["_output"] : never;
|
|
1747
1746
|
};
|
|
1748
1747
|
export declare const apps: {
|
|
1749
|
-
readonly v1: Hono<
|
|
1748
|
+
readonly v1: Hono<import('hono/types').BlankEnv, {
|
|
1750
1749
|
"/": {
|
|
1751
1750
|
$get: {
|
|
1752
1751
|
input: {};
|
|
1753
|
-
output:
|
|
1754
|
-
outputFormat:
|
|
1755
|
-
status:
|
|
1752
|
+
output: undefined;
|
|
1753
|
+
outputFormat: "redirect";
|
|
1754
|
+
status: 302;
|
|
1756
1755
|
};
|
|
1757
1756
|
};
|
|
1758
1757
|
} & {
|
|
@@ -1822,7 +1821,7 @@ export declare const apps: {
|
|
|
1822
1821
|
};
|
|
1823
1822
|
};
|
|
1824
1823
|
outputFormat: "json";
|
|
1825
|
-
status:
|
|
1824
|
+
status: 200;
|
|
1826
1825
|
};
|
|
1827
1826
|
};
|
|
1828
1827
|
} & {
|
|
@@ -1834,7 +1833,7 @@ export declare const apps: {
|
|
|
1834
1833
|
};
|
|
1835
1834
|
} & {
|
|
1836
1835
|
param: {
|
|
1837
|
-
word: string
|
|
1836
|
+
word: string;
|
|
1838
1837
|
};
|
|
1839
1838
|
};
|
|
1840
1839
|
output: {
|
|
@@ -1897,7 +1896,7 @@ export declare const apps: {
|
|
|
1897
1896
|
};
|
|
1898
1897
|
};
|
|
1899
1898
|
outputFormat: "json";
|
|
1900
|
-
status:
|
|
1899
|
+
status: 200;
|
|
1901
1900
|
} | {
|
|
1902
1901
|
input: {
|
|
1903
1902
|
query: {
|
|
@@ -1905,7 +1904,7 @@ export declare const apps: {
|
|
|
1905
1904
|
};
|
|
1906
1905
|
} & {
|
|
1907
1906
|
param: {
|
|
1908
|
-
word: string
|
|
1907
|
+
word: string;
|
|
1909
1908
|
};
|
|
1910
1909
|
};
|
|
1911
1910
|
output: {
|
|
@@ -1983,7 +1982,7 @@ export declare const apps: {
|
|
|
1983
1982
|
};
|
|
1984
1983
|
};
|
|
1985
1984
|
outputFormat: "json";
|
|
1986
|
-
status:
|
|
1985
|
+
status: 200;
|
|
1987
1986
|
};
|
|
1988
1987
|
};
|
|
1989
1988
|
} & {
|
|
@@ -1995,7 +1994,7 @@ export declare const apps: {
|
|
|
1995
1994
|
};
|
|
1996
1995
|
} & {
|
|
1997
1996
|
param: {
|
|
1998
|
-
word: string
|
|
1997
|
+
word: string;
|
|
1999
1998
|
};
|
|
2000
1999
|
};
|
|
2001
2000
|
output: {
|
|
@@ -2058,7 +2057,7 @@ export declare const apps: {
|
|
|
2058
2057
|
};
|
|
2059
2058
|
};
|
|
2060
2059
|
outputFormat: "json";
|
|
2061
|
-
status:
|
|
2060
|
+
status: 200;
|
|
2062
2061
|
} | {
|
|
2063
2062
|
input: {
|
|
2064
2063
|
query: {
|
|
@@ -2066,7 +2065,7 @@ export declare const apps: {
|
|
|
2066
2065
|
};
|
|
2067
2066
|
} & {
|
|
2068
2067
|
param: {
|
|
2069
|
-
word: string
|
|
2068
|
+
word: string;
|
|
2070
2069
|
};
|
|
2071
2070
|
};
|
|
2072
2071
|
output: {
|
|
@@ -2114,7 +2113,7 @@ export declare const apps: {
|
|
|
2114
2113
|
};
|
|
2115
2114
|
};
|
|
2116
2115
|
outputFormat: "json";
|
|
2117
|
-
status:
|
|
2116
|
+
status: 200;
|
|
2118
2117
|
};
|
|
2119
2118
|
};
|
|
2120
2119
|
} & {
|
|
@@ -2126,7 +2125,7 @@ export declare const apps: {
|
|
|
2126
2125
|
};
|
|
2127
2126
|
} & {
|
|
2128
2127
|
param: {
|
|
2129
|
-
sign: string
|
|
2128
|
+
sign: string;
|
|
2130
2129
|
};
|
|
2131
2130
|
};
|
|
2132
2131
|
output: {
|
|
@@ -2159,7 +2158,7 @@ export declare const apps: {
|
|
|
2159
2158
|
};
|
|
2160
2159
|
};
|
|
2161
2160
|
outputFormat: "json";
|
|
2162
|
-
status:
|
|
2161
|
+
status: 200;
|
|
2163
2162
|
} | {
|
|
2164
2163
|
input: {
|
|
2165
2164
|
query: {
|
|
@@ -2167,7 +2166,7 @@ export declare const apps: {
|
|
|
2167
2166
|
};
|
|
2168
2167
|
} & {
|
|
2169
2168
|
param: {
|
|
2170
|
-
sign: string
|
|
2169
|
+
sign: string;
|
|
2171
2170
|
};
|
|
2172
2171
|
};
|
|
2173
2172
|
output: {
|
|
@@ -2219,7 +2218,7 @@ export declare const apps: {
|
|
|
2219
2218
|
};
|
|
2220
2219
|
};
|
|
2221
2220
|
outputFormat: "json";
|
|
2222
|
-
status:
|
|
2221
|
+
status: 200;
|
|
2223
2222
|
};
|
|
2224
2223
|
};
|
|
2225
2224
|
} & {
|
|
@@ -2231,7 +2230,7 @@ export declare const apps: {
|
|
|
2231
2230
|
};
|
|
2232
2231
|
} & {
|
|
2233
2232
|
param: {
|
|
2234
|
-
sign: string
|
|
2233
|
+
sign: string;
|
|
2235
2234
|
};
|
|
2236
2235
|
};
|
|
2237
2236
|
output: {
|
|
@@ -2268,7 +2267,7 @@ export declare const apps: {
|
|
|
2268
2267
|
};
|
|
2269
2268
|
};
|
|
2270
2269
|
outputFormat: "json";
|
|
2271
|
-
status:
|
|
2270
|
+
status: 200;
|
|
2272
2271
|
} | {
|
|
2273
2272
|
input: {
|
|
2274
2273
|
query: {
|
|
@@ -2276,7 +2275,7 @@ export declare const apps: {
|
|
|
2276
2275
|
};
|
|
2277
2276
|
} & {
|
|
2278
2277
|
param: {
|
|
2279
|
-
sign: string
|
|
2278
|
+
sign: string;
|
|
2280
2279
|
};
|
|
2281
2280
|
};
|
|
2282
2281
|
output: {
|
|
@@ -2313,7 +2312,7 @@ export declare const apps: {
|
|
|
2313
2312
|
};
|
|
2314
2313
|
};
|
|
2315
2314
|
outputFormat: "json";
|
|
2316
|
-
status:
|
|
2315
|
+
status: 200;
|
|
2317
2316
|
};
|
|
2318
2317
|
};
|
|
2319
2318
|
} & {
|
|
@@ -2321,7 +2320,7 @@ export declare const apps: {
|
|
|
2321
2320
|
$get: {
|
|
2322
2321
|
input: {
|
|
2323
2322
|
param: {
|
|
2324
|
-
font: string
|
|
2323
|
+
font: string;
|
|
2325
2324
|
};
|
|
2326
2325
|
};
|
|
2327
2326
|
output: {
|
|
@@ -2347,11 +2346,11 @@ export declare const apps: {
|
|
|
2347
2346
|
};
|
|
2348
2347
|
};
|
|
2349
2348
|
outputFormat: "json";
|
|
2350
|
-
status:
|
|
2349
|
+
status: 200;
|
|
2351
2350
|
} | {
|
|
2352
2351
|
input: {
|
|
2353
2352
|
param: {
|
|
2354
|
-
font: string
|
|
2353
|
+
font: string;
|
|
2355
2354
|
};
|
|
2356
2355
|
};
|
|
2357
2356
|
output: {
|
|
@@ -2379,7 +2378,7 @@ export declare const apps: {
|
|
|
2379
2378
|
};
|
|
2380
2379
|
};
|
|
2381
2380
|
outputFormat: "json";
|
|
2382
|
-
status:
|
|
2381
|
+
status: 200;
|
|
2383
2382
|
};
|
|
2384
2383
|
};
|
|
2385
2384
|
} & {
|
|
@@ -2387,7 +2386,7 @@ export declare const apps: {
|
|
|
2387
2386
|
$get: {
|
|
2388
2387
|
input: {
|
|
2389
2388
|
param: {
|
|
2390
|
-
language: string
|
|
2389
|
+
language: string;
|
|
2391
2390
|
};
|
|
2392
2391
|
};
|
|
2393
2392
|
output: {
|
|
@@ -2404,11 +2403,11 @@ export declare const apps: {
|
|
|
2404
2403
|
};
|
|
2405
2404
|
};
|
|
2406
2405
|
outputFormat: "json";
|
|
2407
|
-
status:
|
|
2406
|
+
status: 200;
|
|
2408
2407
|
} | {
|
|
2409
2408
|
input: {
|
|
2410
2409
|
param: {
|
|
2411
|
-
language: string
|
|
2410
|
+
language: string;
|
|
2412
2411
|
};
|
|
2413
2412
|
};
|
|
2414
2413
|
output: {
|
|
@@ -2421,4 +2420,4 @@ export declare const apps: {
|
|
|
2421
2420
|
};
|
|
2422
2421
|
}, "/">;
|
|
2423
2422
|
};
|
|
2424
|
-
export declare const fetchFile: <S extends z.ZodType
|
|
2423
|
+
export declare const fetchFile: <S extends z.ZodType>(version: ApiVersion, schema: S, filename: string) => Promise<z.SafeParseReturnType<z.input<S>, z.output<S>>>;
|