@kulupu-linku/sona 0.1.3 → 0.1.4

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.
Files changed (2) hide show
  1. package/dist/client.d.ts +56 -8
  2. package/package.json +1 -1
package/dist/client.d.ts CHANGED
@@ -15,7 +15,13 @@ declare const app: hono_hono_base.HonoBase<hono.Env, hono_types.MergeSchemaPath<
15
15
  param: {
16
16
  word: string;
17
17
  };
18
- }, never> & hono.ToSchema<"get", "/luka_pona/fingerspelling", {
18
+ }, {
19
+ ok: true;
20
+ data: any;
21
+ } | {
22
+ ok: false;
23
+ message: string;
24
+ }> & hono.ToSchema<"get", "/luka_pona/fingerspelling", {
19
25
  query: {
20
26
  lang?: string | undefined;
21
27
  };
@@ -27,7 +33,13 @@ declare const app: hono_hono_base.HonoBase<hono.Env, hono_types.MergeSchemaPath<
27
33
  param: {
28
34
  sign: string;
29
35
  };
30
- }, never> & hono.ToSchema<"get", "/luka_pona/signs", {
36
+ }, {
37
+ ok: true;
38
+ data: any;
39
+ } | {
40
+ ok: false;
41
+ message: string;
42
+ }> & hono.ToSchema<"get", "/luka_pona/signs", {
31
43
  query: {
32
44
  lang?: string | undefined;
33
45
  };
@@ -39,11 +51,23 @@ declare const app: hono_hono_base.HonoBase<hono.Env, hono_types.MergeSchemaPath<
39
51
  param: {
40
52
  sign: string;
41
53
  };
42
- }, never> & hono.ToSchema<"get", "/fonts", unknown, never> & hono.ToSchema<"get", "/fonts/:font", {
54
+ }, {
55
+ ok: true;
56
+ data: any;
57
+ } | {
58
+ ok: false;
59
+ message: string;
60
+ }> & hono.ToSchema<"get", "/fonts", unknown, never> & hono.ToSchema<"get", "/fonts/:font", {
43
61
  param: {
44
62
  font: string;
45
63
  };
46
- }, never>, "/v1"> & hono.ToSchema<"get", "/", unknown, {}>, "/">;
64
+ }, {
65
+ ok: true;
66
+ data: any;
67
+ } | {
68
+ ok: false;
69
+ message: string;
70
+ }>, "/v1"> & hono.ToSchema<"get", "/", unknown, {}>, "/">;
47
71
 
48
72
  type AppType = typeof app;
49
73
 
@@ -92,7 +116,13 @@ declare const client: {
92
116
  word: string;
93
117
  };
94
118
  };
95
- output: never;
119
+ output: {
120
+ ok: true;
121
+ data: any;
122
+ } | {
123
+ ok: false;
124
+ message: string;
125
+ };
96
126
  };
97
127
  }>;
98
128
  };
@@ -131,7 +161,13 @@ declare const client: {
131
161
  sign: string;
132
162
  };
133
163
  };
134
- output: never;
164
+ output: {
165
+ ok: true;
166
+ data: any;
167
+ } | {
168
+ ok: false;
169
+ message: string;
170
+ };
135
171
  };
136
172
  }>;
137
173
  };
@@ -171,7 +207,13 @@ declare const client: {
171
207
  sign: string;
172
208
  };
173
209
  };
174
- output: never;
210
+ output: {
211
+ ok: true;
212
+ data: any;
213
+ } | {
214
+ ok: false;
215
+ message: string;
216
+ };
175
217
  };
176
218
  }>;
177
219
  };
@@ -200,7 +242,13 @@ declare const client: {
200
242
  font: string;
201
243
  };
202
244
  };
203
- output: never;
245
+ output: {
246
+ ok: true;
247
+ data: any;
248
+ } | {
249
+ ok: false;
250
+ message: string;
251
+ };
204
252
  };
205
253
  }>;
206
254
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kulupu-linku/sona",
3
- "version": "0.1.3",
3
+ "version": "0.1.4",
4
4
  "description": "A library providing TypeScript types and Zod schemas for the sona API",
5
5
  "homepage": "https://linku.la/",
6
6
  "bugs": {