@kulupu-linku/sona 2.1.1 → 2.1.3
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/{index-7uKIarVW.d.mts → index-CXZD3SOl.d.mts} +78 -6
- package/dist/lib/v1/client.d.mts +97 -25
- package/dist/lib/v2/client.d.mts +97 -25
- package/dist/server/index.d.mts +1 -1
- package/dist/server/index.mjs +1 -1
- package/dist/server/v1/index.mjs +1 -1
- package/dist/server/v2/index.d.mts +78 -6
- package/dist/server/v2/index.mjs +1 -1
- package/dist/server/versioning.d.mts +78 -6
- package/dist/server/versioning.mjs +1 -1
- package/dist/{v1-Da4_o5R1.mjs → v1-C6ZFa_PR.mjs} +113 -21
- package/package.json +1 -1
|
@@ -715,7 +715,11 @@ declare const app: _$hono_hono_base0.HonoBase<{}, ({
|
|
|
715
715
|
} & {
|
|
716
716
|
"/words": {
|
|
717
717
|
$get: {
|
|
718
|
-
input: {
|
|
718
|
+
input: {
|
|
719
|
+
query: {
|
|
720
|
+
lang?: string | undefined;
|
|
721
|
+
};
|
|
722
|
+
};
|
|
719
723
|
output: {
|
|
720
724
|
[x: string]: {
|
|
721
725
|
id: string;
|
|
@@ -777,6 +781,10 @@ declare const app: _$hono_hono_base0.HonoBase<{}, ({
|
|
|
777
781
|
"/words/:word": {
|
|
778
782
|
$get: {
|
|
779
783
|
input: {
|
|
784
|
+
query: {
|
|
785
|
+
lang?: string | undefined;
|
|
786
|
+
};
|
|
787
|
+
} & {
|
|
780
788
|
param: {
|
|
781
789
|
word: string;
|
|
782
790
|
};
|
|
@@ -839,6 +847,10 @@ declare const app: _$hono_hono_base0.HonoBase<{}, ({
|
|
|
839
847
|
status: 200;
|
|
840
848
|
} | {
|
|
841
849
|
input: {
|
|
850
|
+
query: {
|
|
851
|
+
lang?: string | undefined;
|
|
852
|
+
};
|
|
853
|
+
} & {
|
|
842
854
|
param: {
|
|
843
855
|
word: string;
|
|
844
856
|
};
|
|
@@ -854,7 +866,11 @@ declare const app: _$hono_hono_base0.HonoBase<{}, ({
|
|
|
854
866
|
} & {
|
|
855
867
|
"/glyphs": {
|
|
856
868
|
$get: {
|
|
857
|
-
input: {
|
|
869
|
+
input: {
|
|
870
|
+
query: {
|
|
871
|
+
lang?: string | undefined;
|
|
872
|
+
};
|
|
873
|
+
};
|
|
858
874
|
output: {
|
|
859
875
|
[x: string]: {
|
|
860
876
|
id: string;
|
|
@@ -891,6 +907,10 @@ declare const app: _$hono_hono_base0.HonoBase<{}, ({
|
|
|
891
907
|
"/glyphs/:glyph": {
|
|
892
908
|
$get: {
|
|
893
909
|
input: {
|
|
910
|
+
query: {
|
|
911
|
+
lang?: string | undefined;
|
|
912
|
+
};
|
|
913
|
+
} & {
|
|
894
914
|
param: {
|
|
895
915
|
glyph: string;
|
|
896
916
|
};
|
|
@@ -928,6 +948,10 @@ declare const app: _$hono_hono_base0.HonoBase<{}, ({
|
|
|
928
948
|
status: 200;
|
|
929
949
|
} | {
|
|
930
950
|
input: {
|
|
951
|
+
query: {
|
|
952
|
+
lang?: string | undefined;
|
|
953
|
+
};
|
|
954
|
+
} & {
|
|
931
955
|
param: {
|
|
932
956
|
glyph: string;
|
|
933
957
|
};
|
|
@@ -952,7 +976,11 @@ declare const app: _$hono_hono_base0.HonoBase<{}, ({
|
|
|
952
976
|
} & {
|
|
953
977
|
"/sandbox/words": {
|
|
954
978
|
$get: {
|
|
955
|
-
input: {
|
|
979
|
+
input: {
|
|
980
|
+
query: {
|
|
981
|
+
lang?: string | undefined;
|
|
982
|
+
};
|
|
983
|
+
};
|
|
956
984
|
output: {
|
|
957
985
|
[x: string]: {
|
|
958
986
|
id: string;
|
|
@@ -1014,6 +1042,10 @@ declare const app: _$hono_hono_base0.HonoBase<{}, ({
|
|
|
1014
1042
|
"/sandbox/words/:word": {
|
|
1015
1043
|
$get: {
|
|
1016
1044
|
input: {
|
|
1045
|
+
query: {
|
|
1046
|
+
lang?: string | undefined;
|
|
1047
|
+
};
|
|
1048
|
+
} & {
|
|
1017
1049
|
param: {
|
|
1018
1050
|
word: string;
|
|
1019
1051
|
};
|
|
@@ -1076,6 +1108,10 @@ declare const app: _$hono_hono_base0.HonoBase<{}, ({
|
|
|
1076
1108
|
status: 200;
|
|
1077
1109
|
} | {
|
|
1078
1110
|
input: {
|
|
1111
|
+
query: {
|
|
1112
|
+
lang?: string | undefined;
|
|
1113
|
+
};
|
|
1114
|
+
} & {
|
|
1079
1115
|
param: {
|
|
1080
1116
|
word: string;
|
|
1081
1117
|
};
|
|
@@ -1091,7 +1127,11 @@ declare const app: _$hono_hono_base0.HonoBase<{}, ({
|
|
|
1091
1127
|
} & {
|
|
1092
1128
|
"/sandbox/glyphs": {
|
|
1093
1129
|
$get: {
|
|
1094
|
-
input: {
|
|
1130
|
+
input: {
|
|
1131
|
+
query: {
|
|
1132
|
+
lang?: string | undefined;
|
|
1133
|
+
};
|
|
1134
|
+
};
|
|
1095
1135
|
output: {
|
|
1096
1136
|
[x: string]: {
|
|
1097
1137
|
id: string;
|
|
@@ -1128,6 +1168,10 @@ declare const app: _$hono_hono_base0.HonoBase<{}, ({
|
|
|
1128
1168
|
"/sandbox/glyphs/:glyph": {
|
|
1129
1169
|
$get: {
|
|
1130
1170
|
input: {
|
|
1171
|
+
query: {
|
|
1172
|
+
lang?: string | undefined;
|
|
1173
|
+
};
|
|
1174
|
+
} & {
|
|
1131
1175
|
param: {
|
|
1132
1176
|
glyph: string;
|
|
1133
1177
|
};
|
|
@@ -1165,6 +1209,10 @@ declare const app: _$hono_hono_base0.HonoBase<{}, ({
|
|
|
1165
1209
|
status: 200;
|
|
1166
1210
|
} | {
|
|
1167
1211
|
input: {
|
|
1212
|
+
query: {
|
|
1213
|
+
lang?: string | undefined;
|
|
1214
|
+
};
|
|
1215
|
+
} & {
|
|
1168
1216
|
param: {
|
|
1169
1217
|
glyph: string;
|
|
1170
1218
|
};
|
|
@@ -1180,7 +1228,11 @@ declare const app: _$hono_hono_base0.HonoBase<{}, ({
|
|
|
1180
1228
|
} & {
|
|
1181
1229
|
"/luka_pona/signs": {
|
|
1182
1230
|
$get: {
|
|
1183
|
-
input: {
|
|
1231
|
+
input: {
|
|
1232
|
+
query: {
|
|
1233
|
+
lang?: string | undefined;
|
|
1234
|
+
};
|
|
1235
|
+
};
|
|
1184
1236
|
output: {
|
|
1185
1237
|
[x: string]: {
|
|
1186
1238
|
id: string;
|
|
@@ -1220,6 +1272,10 @@ declare const app: _$hono_hono_base0.HonoBase<{}, ({
|
|
|
1220
1272
|
"/luka_pona/signs/:sign": {
|
|
1221
1273
|
$get: {
|
|
1222
1274
|
input: {
|
|
1275
|
+
query: {
|
|
1276
|
+
lang?: string | undefined;
|
|
1277
|
+
};
|
|
1278
|
+
} & {
|
|
1223
1279
|
param: {
|
|
1224
1280
|
sign: string;
|
|
1225
1281
|
};
|
|
@@ -1260,6 +1316,10 @@ declare const app: _$hono_hono_base0.HonoBase<{}, ({
|
|
|
1260
1316
|
status: 200;
|
|
1261
1317
|
} | {
|
|
1262
1318
|
input: {
|
|
1319
|
+
query: {
|
|
1320
|
+
lang?: string | undefined;
|
|
1321
|
+
};
|
|
1322
|
+
} & {
|
|
1263
1323
|
param: {
|
|
1264
1324
|
sign: string;
|
|
1265
1325
|
};
|
|
@@ -1275,7 +1335,11 @@ declare const app: _$hono_hono_base0.HonoBase<{}, ({
|
|
|
1275
1335
|
} & {
|
|
1276
1336
|
"/luka_pona/fingerspellings": {
|
|
1277
1337
|
$get: {
|
|
1278
|
-
input: {
|
|
1338
|
+
input: {
|
|
1339
|
+
query: {
|
|
1340
|
+
lang?: string | undefined;
|
|
1341
|
+
};
|
|
1342
|
+
};
|
|
1279
1343
|
output: {
|
|
1280
1344
|
[x: string]: {
|
|
1281
1345
|
id: string;
|
|
@@ -1310,6 +1374,10 @@ declare const app: _$hono_hono_base0.HonoBase<{}, ({
|
|
|
1310
1374
|
"/luka_pona/fingerspellings/:fingerspelling": {
|
|
1311
1375
|
$get: {
|
|
1312
1376
|
input: {
|
|
1377
|
+
query: {
|
|
1378
|
+
lang?: string | undefined;
|
|
1379
|
+
};
|
|
1380
|
+
} & {
|
|
1313
1381
|
param: {
|
|
1314
1382
|
fingerspelling: string;
|
|
1315
1383
|
};
|
|
@@ -1345,6 +1413,10 @@ declare const app: _$hono_hono_base0.HonoBase<{}, ({
|
|
|
1345
1413
|
status: 200;
|
|
1346
1414
|
} | {
|
|
1347
1415
|
input: {
|
|
1416
|
+
query: {
|
|
1417
|
+
lang?: string | undefined;
|
|
1418
|
+
};
|
|
1419
|
+
} & {
|
|
1348
1420
|
param: {
|
|
1349
1421
|
fingerspelling: string;
|
|
1350
1422
|
};
|
package/dist/lib/v1/client.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as AppType } from "../../index-
|
|
1
|
+
import { t as AppType } from "../../index-CXZD3SOl.mjs";
|
|
2
2
|
import * as _$hono_client0 from "hono/client";
|
|
3
3
|
import * as _$hono_utils_http_status0 from "hono/utils/http-status";
|
|
4
4
|
|
|
@@ -24,15 +24,6 @@ declare const client: (args?: {
|
|
|
24
24
|
status: _$hono_utils_http_status0.ContentfulStatusCode;
|
|
25
25
|
};
|
|
26
26
|
}>;
|
|
27
|
-
} & {
|
|
28
|
-
v1: _$hono_client0.ClientRequest<string, "/v1", {
|
|
29
|
-
$get: {
|
|
30
|
-
input: {};
|
|
31
|
-
output: undefined;
|
|
32
|
-
outputFormat: "redirect";
|
|
33
|
-
status: 302;
|
|
34
|
-
};
|
|
35
|
-
}>;
|
|
36
27
|
} & {
|
|
37
28
|
v1: {
|
|
38
29
|
words: _$hono_client0.ClientRequest<string, "/v1/words", {
|
|
@@ -153,6 +144,15 @@ declare const client: (args?: {
|
|
|
153
144
|
}>;
|
|
154
145
|
};
|
|
155
146
|
};
|
|
147
|
+
} & {
|
|
148
|
+
v1: _$hono_client0.ClientRequest<string, "/v1", {
|
|
149
|
+
$get: {
|
|
150
|
+
input: {};
|
|
151
|
+
output: undefined;
|
|
152
|
+
outputFormat: "redirect";
|
|
153
|
+
status: 302;
|
|
154
|
+
};
|
|
155
|
+
}>;
|
|
156
156
|
} & {
|
|
157
157
|
v1: {
|
|
158
158
|
words: {
|
|
@@ -752,20 +752,15 @@ declare const client: (args?: {
|
|
|
752
752
|
}>;
|
|
753
753
|
};
|
|
754
754
|
};
|
|
755
|
-
} & {
|
|
756
|
-
v2: _$hono_client0.ClientRequest<string, "/v2", {
|
|
757
|
-
$get: {
|
|
758
|
-
input: {};
|
|
759
|
-
output: undefined;
|
|
760
|
-
outputFormat: "redirect";
|
|
761
|
-
status: 302;
|
|
762
|
-
};
|
|
763
|
-
}>;
|
|
764
755
|
} & {
|
|
765
756
|
v2: {
|
|
766
757
|
words: _$hono_client0.ClientRequest<string, "/v2/words", {
|
|
767
758
|
$get: {
|
|
768
|
-
input: {
|
|
759
|
+
input: {
|
|
760
|
+
query: {
|
|
761
|
+
lang?: string | undefined;
|
|
762
|
+
};
|
|
763
|
+
};
|
|
769
764
|
output: {
|
|
770
765
|
[x: string]: {
|
|
771
766
|
id: string;
|
|
@@ -829,7 +824,11 @@ declare const client: (args?: {
|
|
|
829
824
|
sandbox: {
|
|
830
825
|
words: _$hono_client0.ClientRequest<string, "/v2/sandbox/words", {
|
|
831
826
|
$get: {
|
|
832
|
-
input: {
|
|
827
|
+
input: {
|
|
828
|
+
query: {
|
|
829
|
+
lang?: string | undefined;
|
|
830
|
+
};
|
|
831
|
+
};
|
|
833
832
|
output: {
|
|
834
833
|
[x: string]: {
|
|
835
834
|
id: string;
|
|
@@ -889,12 +888,25 @@ declare const client: (args?: {
|
|
|
889
888
|
}>;
|
|
890
889
|
};
|
|
891
890
|
};
|
|
891
|
+
} & {
|
|
892
|
+
v2: _$hono_client0.ClientRequest<string, "/v2", {
|
|
893
|
+
$get: {
|
|
894
|
+
input: {};
|
|
895
|
+
output: undefined;
|
|
896
|
+
outputFormat: "redirect";
|
|
897
|
+
status: 302;
|
|
898
|
+
};
|
|
899
|
+
}>;
|
|
892
900
|
} & {
|
|
893
901
|
v2: {
|
|
894
902
|
words: {
|
|
895
903
|
":word": _$hono_client0.ClientRequest<string, "/v2/words/:word", {
|
|
896
904
|
$get: {
|
|
897
905
|
input: {
|
|
906
|
+
query: {
|
|
907
|
+
lang?: string | undefined;
|
|
908
|
+
};
|
|
909
|
+
} & {
|
|
898
910
|
param: {
|
|
899
911
|
word: string;
|
|
900
912
|
};
|
|
@@ -957,6 +969,10 @@ declare const client: (args?: {
|
|
|
957
969
|
status: 200;
|
|
958
970
|
} | {
|
|
959
971
|
input: {
|
|
972
|
+
query: {
|
|
973
|
+
lang?: string | undefined;
|
|
974
|
+
};
|
|
975
|
+
} & {
|
|
960
976
|
param: {
|
|
961
977
|
word: string;
|
|
962
978
|
};
|
|
@@ -975,7 +991,11 @@ declare const client: (args?: {
|
|
|
975
991
|
v2: {
|
|
976
992
|
glyphs: _$hono_client0.ClientRequest<string, "/v2/glyphs", {
|
|
977
993
|
$get: {
|
|
978
|
-
input: {
|
|
994
|
+
input: {
|
|
995
|
+
query: {
|
|
996
|
+
lang?: string | undefined;
|
|
997
|
+
};
|
|
998
|
+
};
|
|
979
999
|
output: {
|
|
980
1000
|
[x: string]: {
|
|
981
1001
|
id: string;
|
|
@@ -1015,6 +1035,10 @@ declare const client: (args?: {
|
|
|
1015
1035
|
":glyph": _$hono_client0.ClientRequest<string, "/v2/glyphs/:glyph", {
|
|
1016
1036
|
$get: {
|
|
1017
1037
|
input: {
|
|
1038
|
+
query: {
|
|
1039
|
+
lang?: string | undefined;
|
|
1040
|
+
};
|
|
1041
|
+
} & {
|
|
1018
1042
|
param: {
|
|
1019
1043
|
glyph: string;
|
|
1020
1044
|
};
|
|
@@ -1052,6 +1076,10 @@ declare const client: (args?: {
|
|
|
1052
1076
|
status: 200;
|
|
1053
1077
|
} | {
|
|
1054
1078
|
input: {
|
|
1079
|
+
query: {
|
|
1080
|
+
lang?: string | undefined;
|
|
1081
|
+
};
|
|
1082
|
+
} & {
|
|
1055
1083
|
param: {
|
|
1056
1084
|
glyph: string;
|
|
1057
1085
|
};
|
|
@@ -1084,6 +1112,10 @@ declare const client: (args?: {
|
|
|
1084
1112
|
":word": _$hono_client0.ClientRequest<string, "/v2/sandbox/words/:word", {
|
|
1085
1113
|
$get: {
|
|
1086
1114
|
input: {
|
|
1115
|
+
query: {
|
|
1116
|
+
lang?: string | undefined;
|
|
1117
|
+
};
|
|
1118
|
+
} & {
|
|
1087
1119
|
param: {
|
|
1088
1120
|
word: string;
|
|
1089
1121
|
};
|
|
@@ -1146,6 +1178,10 @@ declare const client: (args?: {
|
|
|
1146
1178
|
status: 200;
|
|
1147
1179
|
} | {
|
|
1148
1180
|
input: {
|
|
1181
|
+
query: {
|
|
1182
|
+
lang?: string | undefined;
|
|
1183
|
+
};
|
|
1184
|
+
} & {
|
|
1149
1185
|
param: {
|
|
1150
1186
|
word: string;
|
|
1151
1187
|
};
|
|
@@ -1166,7 +1202,11 @@ declare const client: (args?: {
|
|
|
1166
1202
|
sandbox: {
|
|
1167
1203
|
glyphs: _$hono_client0.ClientRequest<string, "/v2/sandbox/glyphs", {
|
|
1168
1204
|
$get: {
|
|
1169
|
-
input: {
|
|
1205
|
+
input: {
|
|
1206
|
+
query: {
|
|
1207
|
+
lang?: string | undefined;
|
|
1208
|
+
};
|
|
1209
|
+
};
|
|
1170
1210
|
output: {
|
|
1171
1211
|
[x: string]: {
|
|
1172
1212
|
id: string;
|
|
@@ -1208,6 +1248,10 @@ declare const client: (args?: {
|
|
|
1208
1248
|
":glyph": _$hono_client0.ClientRequest<string, "/v2/sandbox/glyphs/:glyph", {
|
|
1209
1249
|
$get: {
|
|
1210
1250
|
input: {
|
|
1251
|
+
query: {
|
|
1252
|
+
lang?: string | undefined;
|
|
1253
|
+
};
|
|
1254
|
+
} & {
|
|
1211
1255
|
param: {
|
|
1212
1256
|
glyph: string;
|
|
1213
1257
|
};
|
|
@@ -1245,6 +1289,10 @@ declare const client: (args?: {
|
|
|
1245
1289
|
status: 200;
|
|
1246
1290
|
} | {
|
|
1247
1291
|
input: {
|
|
1292
|
+
query: {
|
|
1293
|
+
lang?: string | undefined;
|
|
1294
|
+
};
|
|
1295
|
+
} & {
|
|
1248
1296
|
param: {
|
|
1249
1297
|
glyph: string;
|
|
1250
1298
|
};
|
|
@@ -1265,7 +1313,11 @@ declare const client: (args?: {
|
|
|
1265
1313
|
luka_pona: {
|
|
1266
1314
|
signs: _$hono_client0.ClientRequest<string, "/v2/luka_pona/signs", {
|
|
1267
1315
|
$get: {
|
|
1268
|
-
input: {
|
|
1316
|
+
input: {
|
|
1317
|
+
query: {
|
|
1318
|
+
lang?: string | undefined;
|
|
1319
|
+
};
|
|
1320
|
+
};
|
|
1269
1321
|
output: {
|
|
1270
1322
|
[x: string]: {
|
|
1271
1323
|
id: string;
|
|
@@ -1310,6 +1362,10 @@ declare const client: (args?: {
|
|
|
1310
1362
|
":sign": _$hono_client0.ClientRequest<string, "/v2/luka_pona/signs/:sign", {
|
|
1311
1363
|
$get: {
|
|
1312
1364
|
input: {
|
|
1365
|
+
query: {
|
|
1366
|
+
lang?: string | undefined;
|
|
1367
|
+
};
|
|
1368
|
+
} & {
|
|
1313
1369
|
param: {
|
|
1314
1370
|
sign: string;
|
|
1315
1371
|
};
|
|
@@ -1350,6 +1406,10 @@ declare const client: (args?: {
|
|
|
1350
1406
|
status: 200;
|
|
1351
1407
|
} | {
|
|
1352
1408
|
input: {
|
|
1409
|
+
query: {
|
|
1410
|
+
lang?: string | undefined;
|
|
1411
|
+
};
|
|
1412
|
+
} & {
|
|
1353
1413
|
param: {
|
|
1354
1414
|
sign: string;
|
|
1355
1415
|
};
|
|
@@ -1370,7 +1430,11 @@ declare const client: (args?: {
|
|
|
1370
1430
|
luka_pona: {
|
|
1371
1431
|
fingerspellings: _$hono_client0.ClientRequest<string, "/v2/luka_pona/fingerspellings", {
|
|
1372
1432
|
$get: {
|
|
1373
|
-
input: {
|
|
1433
|
+
input: {
|
|
1434
|
+
query: {
|
|
1435
|
+
lang?: string | undefined;
|
|
1436
|
+
};
|
|
1437
|
+
};
|
|
1374
1438
|
output: {
|
|
1375
1439
|
[x: string]: {
|
|
1376
1440
|
id: string;
|
|
@@ -1410,6 +1474,10 @@ declare const client: (args?: {
|
|
|
1410
1474
|
":fingerspelling": _$hono_client0.ClientRequest<string, "/v2/luka_pona/fingerspellings/:fingerspelling", {
|
|
1411
1475
|
$get: {
|
|
1412
1476
|
input: {
|
|
1477
|
+
query: {
|
|
1478
|
+
lang?: string | undefined;
|
|
1479
|
+
};
|
|
1480
|
+
} & {
|
|
1413
1481
|
param: {
|
|
1414
1482
|
fingerspelling: string;
|
|
1415
1483
|
};
|
|
@@ -1445,6 +1513,10 @@ declare const client: (args?: {
|
|
|
1445
1513
|
status: 200;
|
|
1446
1514
|
} | {
|
|
1447
1515
|
input: {
|
|
1516
|
+
query: {
|
|
1517
|
+
lang?: string | undefined;
|
|
1518
|
+
};
|
|
1519
|
+
} & {
|
|
1448
1520
|
param: {
|
|
1449
1521
|
fingerspelling: string;
|
|
1450
1522
|
};
|
package/dist/lib/v2/client.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as AppType } from "../../index-
|
|
1
|
+
import { t as AppType } from "../../index-CXZD3SOl.mjs";
|
|
2
2
|
import * as _$hono_client0 from "hono/client";
|
|
3
3
|
import * as _$hono_utils_http_status0 from "hono/utils/http-status";
|
|
4
4
|
|
|
@@ -24,15 +24,6 @@ declare const client: (args?: {
|
|
|
24
24
|
status: _$hono_utils_http_status0.ContentfulStatusCode;
|
|
25
25
|
};
|
|
26
26
|
}>;
|
|
27
|
-
} & {
|
|
28
|
-
v1: _$hono_client0.ClientRequest<string, "/v1", {
|
|
29
|
-
$get: {
|
|
30
|
-
input: {};
|
|
31
|
-
output: undefined;
|
|
32
|
-
outputFormat: "redirect";
|
|
33
|
-
status: 302;
|
|
34
|
-
};
|
|
35
|
-
}>;
|
|
36
27
|
} & {
|
|
37
28
|
v1: {
|
|
38
29
|
words: _$hono_client0.ClientRequest<string, "/v1/words", {
|
|
@@ -153,6 +144,15 @@ declare const client: (args?: {
|
|
|
153
144
|
}>;
|
|
154
145
|
};
|
|
155
146
|
};
|
|
147
|
+
} & {
|
|
148
|
+
v1: _$hono_client0.ClientRequest<string, "/v1", {
|
|
149
|
+
$get: {
|
|
150
|
+
input: {};
|
|
151
|
+
output: undefined;
|
|
152
|
+
outputFormat: "redirect";
|
|
153
|
+
status: 302;
|
|
154
|
+
};
|
|
155
|
+
}>;
|
|
156
156
|
} & {
|
|
157
157
|
v1: {
|
|
158
158
|
words: {
|
|
@@ -752,20 +752,15 @@ declare const client: (args?: {
|
|
|
752
752
|
}>;
|
|
753
753
|
};
|
|
754
754
|
};
|
|
755
|
-
} & {
|
|
756
|
-
v2: _$hono_client0.ClientRequest<string, "/v2", {
|
|
757
|
-
$get: {
|
|
758
|
-
input: {};
|
|
759
|
-
output: undefined;
|
|
760
|
-
outputFormat: "redirect";
|
|
761
|
-
status: 302;
|
|
762
|
-
};
|
|
763
|
-
}>;
|
|
764
755
|
} & {
|
|
765
756
|
v2: {
|
|
766
757
|
words: _$hono_client0.ClientRequest<string, "/v2/words", {
|
|
767
758
|
$get: {
|
|
768
|
-
input: {
|
|
759
|
+
input: {
|
|
760
|
+
query: {
|
|
761
|
+
lang?: string | undefined;
|
|
762
|
+
};
|
|
763
|
+
};
|
|
769
764
|
output: {
|
|
770
765
|
[x: string]: {
|
|
771
766
|
id: string;
|
|
@@ -829,7 +824,11 @@ declare const client: (args?: {
|
|
|
829
824
|
sandbox: {
|
|
830
825
|
words: _$hono_client0.ClientRequest<string, "/v2/sandbox/words", {
|
|
831
826
|
$get: {
|
|
832
|
-
input: {
|
|
827
|
+
input: {
|
|
828
|
+
query: {
|
|
829
|
+
lang?: string | undefined;
|
|
830
|
+
};
|
|
831
|
+
};
|
|
833
832
|
output: {
|
|
834
833
|
[x: string]: {
|
|
835
834
|
id: string;
|
|
@@ -889,12 +888,25 @@ declare const client: (args?: {
|
|
|
889
888
|
}>;
|
|
890
889
|
};
|
|
891
890
|
};
|
|
891
|
+
} & {
|
|
892
|
+
v2: _$hono_client0.ClientRequest<string, "/v2", {
|
|
893
|
+
$get: {
|
|
894
|
+
input: {};
|
|
895
|
+
output: undefined;
|
|
896
|
+
outputFormat: "redirect";
|
|
897
|
+
status: 302;
|
|
898
|
+
};
|
|
899
|
+
}>;
|
|
892
900
|
} & {
|
|
893
901
|
v2: {
|
|
894
902
|
words: {
|
|
895
903
|
":word": _$hono_client0.ClientRequest<string, "/v2/words/:word", {
|
|
896
904
|
$get: {
|
|
897
905
|
input: {
|
|
906
|
+
query: {
|
|
907
|
+
lang?: string | undefined;
|
|
908
|
+
};
|
|
909
|
+
} & {
|
|
898
910
|
param: {
|
|
899
911
|
word: string;
|
|
900
912
|
};
|
|
@@ -957,6 +969,10 @@ declare const client: (args?: {
|
|
|
957
969
|
status: 200;
|
|
958
970
|
} | {
|
|
959
971
|
input: {
|
|
972
|
+
query: {
|
|
973
|
+
lang?: string | undefined;
|
|
974
|
+
};
|
|
975
|
+
} & {
|
|
960
976
|
param: {
|
|
961
977
|
word: string;
|
|
962
978
|
};
|
|
@@ -975,7 +991,11 @@ declare const client: (args?: {
|
|
|
975
991
|
v2: {
|
|
976
992
|
glyphs: _$hono_client0.ClientRequest<string, "/v2/glyphs", {
|
|
977
993
|
$get: {
|
|
978
|
-
input: {
|
|
994
|
+
input: {
|
|
995
|
+
query: {
|
|
996
|
+
lang?: string | undefined;
|
|
997
|
+
};
|
|
998
|
+
};
|
|
979
999
|
output: {
|
|
980
1000
|
[x: string]: {
|
|
981
1001
|
id: string;
|
|
@@ -1015,6 +1035,10 @@ declare const client: (args?: {
|
|
|
1015
1035
|
":glyph": _$hono_client0.ClientRequest<string, "/v2/glyphs/:glyph", {
|
|
1016
1036
|
$get: {
|
|
1017
1037
|
input: {
|
|
1038
|
+
query: {
|
|
1039
|
+
lang?: string | undefined;
|
|
1040
|
+
};
|
|
1041
|
+
} & {
|
|
1018
1042
|
param: {
|
|
1019
1043
|
glyph: string;
|
|
1020
1044
|
};
|
|
@@ -1052,6 +1076,10 @@ declare const client: (args?: {
|
|
|
1052
1076
|
status: 200;
|
|
1053
1077
|
} | {
|
|
1054
1078
|
input: {
|
|
1079
|
+
query: {
|
|
1080
|
+
lang?: string | undefined;
|
|
1081
|
+
};
|
|
1082
|
+
} & {
|
|
1055
1083
|
param: {
|
|
1056
1084
|
glyph: string;
|
|
1057
1085
|
};
|
|
@@ -1084,6 +1112,10 @@ declare const client: (args?: {
|
|
|
1084
1112
|
":word": _$hono_client0.ClientRequest<string, "/v2/sandbox/words/:word", {
|
|
1085
1113
|
$get: {
|
|
1086
1114
|
input: {
|
|
1115
|
+
query: {
|
|
1116
|
+
lang?: string | undefined;
|
|
1117
|
+
};
|
|
1118
|
+
} & {
|
|
1087
1119
|
param: {
|
|
1088
1120
|
word: string;
|
|
1089
1121
|
};
|
|
@@ -1146,6 +1178,10 @@ declare const client: (args?: {
|
|
|
1146
1178
|
status: 200;
|
|
1147
1179
|
} | {
|
|
1148
1180
|
input: {
|
|
1181
|
+
query: {
|
|
1182
|
+
lang?: string | undefined;
|
|
1183
|
+
};
|
|
1184
|
+
} & {
|
|
1149
1185
|
param: {
|
|
1150
1186
|
word: string;
|
|
1151
1187
|
};
|
|
@@ -1166,7 +1202,11 @@ declare const client: (args?: {
|
|
|
1166
1202
|
sandbox: {
|
|
1167
1203
|
glyphs: _$hono_client0.ClientRequest<string, "/v2/sandbox/glyphs", {
|
|
1168
1204
|
$get: {
|
|
1169
|
-
input: {
|
|
1205
|
+
input: {
|
|
1206
|
+
query: {
|
|
1207
|
+
lang?: string | undefined;
|
|
1208
|
+
};
|
|
1209
|
+
};
|
|
1170
1210
|
output: {
|
|
1171
1211
|
[x: string]: {
|
|
1172
1212
|
id: string;
|
|
@@ -1208,6 +1248,10 @@ declare const client: (args?: {
|
|
|
1208
1248
|
":glyph": _$hono_client0.ClientRequest<string, "/v2/sandbox/glyphs/:glyph", {
|
|
1209
1249
|
$get: {
|
|
1210
1250
|
input: {
|
|
1251
|
+
query: {
|
|
1252
|
+
lang?: string | undefined;
|
|
1253
|
+
};
|
|
1254
|
+
} & {
|
|
1211
1255
|
param: {
|
|
1212
1256
|
glyph: string;
|
|
1213
1257
|
};
|
|
@@ -1245,6 +1289,10 @@ declare const client: (args?: {
|
|
|
1245
1289
|
status: 200;
|
|
1246
1290
|
} | {
|
|
1247
1291
|
input: {
|
|
1292
|
+
query: {
|
|
1293
|
+
lang?: string | undefined;
|
|
1294
|
+
};
|
|
1295
|
+
} & {
|
|
1248
1296
|
param: {
|
|
1249
1297
|
glyph: string;
|
|
1250
1298
|
};
|
|
@@ -1265,7 +1313,11 @@ declare const client: (args?: {
|
|
|
1265
1313
|
luka_pona: {
|
|
1266
1314
|
signs: _$hono_client0.ClientRequest<string, "/v2/luka_pona/signs", {
|
|
1267
1315
|
$get: {
|
|
1268
|
-
input: {
|
|
1316
|
+
input: {
|
|
1317
|
+
query: {
|
|
1318
|
+
lang?: string | undefined;
|
|
1319
|
+
};
|
|
1320
|
+
};
|
|
1269
1321
|
output: {
|
|
1270
1322
|
[x: string]: {
|
|
1271
1323
|
id: string;
|
|
@@ -1310,6 +1362,10 @@ declare const client: (args?: {
|
|
|
1310
1362
|
":sign": _$hono_client0.ClientRequest<string, "/v2/luka_pona/signs/:sign", {
|
|
1311
1363
|
$get: {
|
|
1312
1364
|
input: {
|
|
1365
|
+
query: {
|
|
1366
|
+
lang?: string | undefined;
|
|
1367
|
+
};
|
|
1368
|
+
} & {
|
|
1313
1369
|
param: {
|
|
1314
1370
|
sign: string;
|
|
1315
1371
|
};
|
|
@@ -1350,6 +1406,10 @@ declare const client: (args?: {
|
|
|
1350
1406
|
status: 200;
|
|
1351
1407
|
} | {
|
|
1352
1408
|
input: {
|
|
1409
|
+
query: {
|
|
1410
|
+
lang?: string | undefined;
|
|
1411
|
+
};
|
|
1412
|
+
} & {
|
|
1353
1413
|
param: {
|
|
1354
1414
|
sign: string;
|
|
1355
1415
|
};
|
|
@@ -1370,7 +1430,11 @@ declare const client: (args?: {
|
|
|
1370
1430
|
luka_pona: {
|
|
1371
1431
|
fingerspellings: _$hono_client0.ClientRequest<string, "/v2/luka_pona/fingerspellings", {
|
|
1372
1432
|
$get: {
|
|
1373
|
-
input: {
|
|
1433
|
+
input: {
|
|
1434
|
+
query: {
|
|
1435
|
+
lang?: string | undefined;
|
|
1436
|
+
};
|
|
1437
|
+
};
|
|
1374
1438
|
output: {
|
|
1375
1439
|
[x: string]: {
|
|
1376
1440
|
id: string;
|
|
@@ -1410,6 +1474,10 @@ declare const client: (args?: {
|
|
|
1410
1474
|
":fingerspelling": _$hono_client0.ClientRequest<string, "/v2/luka_pona/fingerspellings/:fingerspelling", {
|
|
1411
1475
|
$get: {
|
|
1412
1476
|
input: {
|
|
1477
|
+
query: {
|
|
1478
|
+
lang?: string | undefined;
|
|
1479
|
+
};
|
|
1480
|
+
} & {
|
|
1413
1481
|
param: {
|
|
1414
1482
|
fingerspelling: string;
|
|
1415
1483
|
};
|
|
@@ -1445,6 +1513,10 @@ declare const client: (args?: {
|
|
|
1445
1513
|
status: 200;
|
|
1446
1514
|
} | {
|
|
1447
1515
|
input: {
|
|
1516
|
+
query: {
|
|
1517
|
+
lang?: string | undefined;
|
|
1518
|
+
};
|
|
1519
|
+
} & {
|
|
1448
1520
|
param: {
|
|
1449
1521
|
fingerspelling: string;
|
|
1450
1522
|
};
|
package/dist/server/index.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as app, t as AppType } from "../index-
|
|
1
|
+
import { n as app, t as AppType } from "../index-CXZD3SOl.mjs";
|
|
2
2
|
export { AppType, app as default };
|
package/dist/server/index.mjs
CHANGED
package/dist/server/v1/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as config, r as languagesFilter, t as app } from "../../v1-
|
|
1
|
+
import { n as config, r as languagesFilter, t as app } from "../../v1-C6ZFa_PR.mjs";
|
|
2
2
|
export { config, app as default, languagesFilter };
|
|
@@ -333,7 +333,11 @@ declare const app: _$hono_hono_base0.HonoBase<_$hono_types0.BlankEnv, {
|
|
|
333
333
|
} & {
|
|
334
334
|
"/words": {
|
|
335
335
|
$get: {
|
|
336
|
-
input: {
|
|
336
|
+
input: {
|
|
337
|
+
query: {
|
|
338
|
+
lang?: string | undefined;
|
|
339
|
+
};
|
|
340
|
+
};
|
|
337
341
|
output: {
|
|
338
342
|
[x: string]: {
|
|
339
343
|
id: string;
|
|
@@ -395,6 +399,10 @@ declare const app: _$hono_hono_base0.HonoBase<_$hono_types0.BlankEnv, {
|
|
|
395
399
|
"/words/:word": {
|
|
396
400
|
$get: {
|
|
397
401
|
input: {
|
|
402
|
+
query: {
|
|
403
|
+
lang?: string | undefined;
|
|
404
|
+
};
|
|
405
|
+
} & {
|
|
398
406
|
param: {
|
|
399
407
|
word: string;
|
|
400
408
|
};
|
|
@@ -457,6 +465,10 @@ declare const app: _$hono_hono_base0.HonoBase<_$hono_types0.BlankEnv, {
|
|
|
457
465
|
status: 200;
|
|
458
466
|
} | {
|
|
459
467
|
input: {
|
|
468
|
+
query: {
|
|
469
|
+
lang?: string | undefined;
|
|
470
|
+
};
|
|
471
|
+
} & {
|
|
460
472
|
param: {
|
|
461
473
|
word: string;
|
|
462
474
|
};
|
|
@@ -472,7 +484,11 @@ declare const app: _$hono_hono_base0.HonoBase<_$hono_types0.BlankEnv, {
|
|
|
472
484
|
} & {
|
|
473
485
|
"/glyphs": {
|
|
474
486
|
$get: {
|
|
475
|
-
input: {
|
|
487
|
+
input: {
|
|
488
|
+
query: {
|
|
489
|
+
lang?: string | undefined;
|
|
490
|
+
};
|
|
491
|
+
};
|
|
476
492
|
output: {
|
|
477
493
|
[x: string]: {
|
|
478
494
|
id: string;
|
|
@@ -509,6 +525,10 @@ declare const app: _$hono_hono_base0.HonoBase<_$hono_types0.BlankEnv, {
|
|
|
509
525
|
"/glyphs/:glyph": {
|
|
510
526
|
$get: {
|
|
511
527
|
input: {
|
|
528
|
+
query: {
|
|
529
|
+
lang?: string | undefined;
|
|
530
|
+
};
|
|
531
|
+
} & {
|
|
512
532
|
param: {
|
|
513
533
|
glyph: string;
|
|
514
534
|
};
|
|
@@ -546,6 +566,10 @@ declare const app: _$hono_hono_base0.HonoBase<_$hono_types0.BlankEnv, {
|
|
|
546
566
|
status: 200;
|
|
547
567
|
} | {
|
|
548
568
|
input: {
|
|
569
|
+
query: {
|
|
570
|
+
lang?: string | undefined;
|
|
571
|
+
};
|
|
572
|
+
} & {
|
|
549
573
|
param: {
|
|
550
574
|
glyph: string;
|
|
551
575
|
};
|
|
@@ -570,7 +594,11 @@ declare const app: _$hono_hono_base0.HonoBase<_$hono_types0.BlankEnv, {
|
|
|
570
594
|
} & {
|
|
571
595
|
"/sandbox/words": {
|
|
572
596
|
$get: {
|
|
573
|
-
input: {
|
|
597
|
+
input: {
|
|
598
|
+
query: {
|
|
599
|
+
lang?: string | undefined;
|
|
600
|
+
};
|
|
601
|
+
};
|
|
574
602
|
output: {
|
|
575
603
|
[x: string]: {
|
|
576
604
|
id: string;
|
|
@@ -632,6 +660,10 @@ declare const app: _$hono_hono_base0.HonoBase<_$hono_types0.BlankEnv, {
|
|
|
632
660
|
"/sandbox/words/:word": {
|
|
633
661
|
$get: {
|
|
634
662
|
input: {
|
|
663
|
+
query: {
|
|
664
|
+
lang?: string | undefined;
|
|
665
|
+
};
|
|
666
|
+
} & {
|
|
635
667
|
param: {
|
|
636
668
|
word: string;
|
|
637
669
|
};
|
|
@@ -694,6 +726,10 @@ declare const app: _$hono_hono_base0.HonoBase<_$hono_types0.BlankEnv, {
|
|
|
694
726
|
status: 200;
|
|
695
727
|
} | {
|
|
696
728
|
input: {
|
|
729
|
+
query: {
|
|
730
|
+
lang?: string | undefined;
|
|
731
|
+
};
|
|
732
|
+
} & {
|
|
697
733
|
param: {
|
|
698
734
|
word: string;
|
|
699
735
|
};
|
|
@@ -709,7 +745,11 @@ declare const app: _$hono_hono_base0.HonoBase<_$hono_types0.BlankEnv, {
|
|
|
709
745
|
} & {
|
|
710
746
|
"/sandbox/glyphs": {
|
|
711
747
|
$get: {
|
|
712
|
-
input: {
|
|
748
|
+
input: {
|
|
749
|
+
query: {
|
|
750
|
+
lang?: string | undefined;
|
|
751
|
+
};
|
|
752
|
+
};
|
|
713
753
|
output: {
|
|
714
754
|
[x: string]: {
|
|
715
755
|
id: string;
|
|
@@ -746,6 +786,10 @@ declare const app: _$hono_hono_base0.HonoBase<_$hono_types0.BlankEnv, {
|
|
|
746
786
|
"/sandbox/glyphs/:glyph": {
|
|
747
787
|
$get: {
|
|
748
788
|
input: {
|
|
789
|
+
query: {
|
|
790
|
+
lang?: string | undefined;
|
|
791
|
+
};
|
|
792
|
+
} & {
|
|
749
793
|
param: {
|
|
750
794
|
glyph: string;
|
|
751
795
|
};
|
|
@@ -783,6 +827,10 @@ declare const app: _$hono_hono_base0.HonoBase<_$hono_types0.BlankEnv, {
|
|
|
783
827
|
status: 200;
|
|
784
828
|
} | {
|
|
785
829
|
input: {
|
|
830
|
+
query: {
|
|
831
|
+
lang?: string | undefined;
|
|
832
|
+
};
|
|
833
|
+
} & {
|
|
786
834
|
param: {
|
|
787
835
|
glyph: string;
|
|
788
836
|
};
|
|
@@ -798,7 +846,11 @@ declare const app: _$hono_hono_base0.HonoBase<_$hono_types0.BlankEnv, {
|
|
|
798
846
|
} & {
|
|
799
847
|
"/luka_pona/signs": {
|
|
800
848
|
$get: {
|
|
801
|
-
input: {
|
|
849
|
+
input: {
|
|
850
|
+
query: {
|
|
851
|
+
lang?: string | undefined;
|
|
852
|
+
};
|
|
853
|
+
};
|
|
802
854
|
output: {
|
|
803
855
|
[x: string]: {
|
|
804
856
|
id: string;
|
|
@@ -838,6 +890,10 @@ declare const app: _$hono_hono_base0.HonoBase<_$hono_types0.BlankEnv, {
|
|
|
838
890
|
"/luka_pona/signs/:sign": {
|
|
839
891
|
$get: {
|
|
840
892
|
input: {
|
|
893
|
+
query: {
|
|
894
|
+
lang?: string | undefined;
|
|
895
|
+
};
|
|
896
|
+
} & {
|
|
841
897
|
param: {
|
|
842
898
|
sign: string;
|
|
843
899
|
};
|
|
@@ -878,6 +934,10 @@ declare const app: _$hono_hono_base0.HonoBase<_$hono_types0.BlankEnv, {
|
|
|
878
934
|
status: 200;
|
|
879
935
|
} | {
|
|
880
936
|
input: {
|
|
937
|
+
query: {
|
|
938
|
+
lang?: string | undefined;
|
|
939
|
+
};
|
|
940
|
+
} & {
|
|
881
941
|
param: {
|
|
882
942
|
sign: string;
|
|
883
943
|
};
|
|
@@ -893,7 +953,11 @@ declare const app: _$hono_hono_base0.HonoBase<_$hono_types0.BlankEnv, {
|
|
|
893
953
|
} & {
|
|
894
954
|
"/luka_pona/fingerspellings": {
|
|
895
955
|
$get: {
|
|
896
|
-
input: {
|
|
956
|
+
input: {
|
|
957
|
+
query: {
|
|
958
|
+
lang?: string | undefined;
|
|
959
|
+
};
|
|
960
|
+
};
|
|
897
961
|
output: {
|
|
898
962
|
[x: string]: {
|
|
899
963
|
id: string;
|
|
@@ -928,6 +992,10 @@ declare const app: _$hono_hono_base0.HonoBase<_$hono_types0.BlankEnv, {
|
|
|
928
992
|
"/luka_pona/fingerspellings/:fingerspelling": {
|
|
929
993
|
$get: {
|
|
930
994
|
input: {
|
|
995
|
+
query: {
|
|
996
|
+
lang?: string | undefined;
|
|
997
|
+
};
|
|
998
|
+
} & {
|
|
931
999
|
param: {
|
|
932
1000
|
fingerspelling: string;
|
|
933
1001
|
};
|
|
@@ -963,6 +1031,10 @@ declare const app: _$hono_hono_base0.HonoBase<_$hono_types0.BlankEnv, {
|
|
|
963
1031
|
status: 200;
|
|
964
1032
|
} | {
|
|
965
1033
|
input: {
|
|
1034
|
+
query: {
|
|
1035
|
+
lang?: string | undefined;
|
|
1036
|
+
};
|
|
1037
|
+
} & {
|
|
966
1038
|
param: {
|
|
967
1039
|
fingerspelling: string;
|
|
968
1040
|
};
|
package/dist/server/v2/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { c as config, l as fetchData, s as app } from "../../v1-
|
|
1
|
+
import { c as config, l as fetchData, s as app } from "../../v1-C6ZFa_PR.mjs";
|
|
2
2
|
export { config, app as default, fetchData };
|
|
@@ -1238,7 +1238,11 @@ declare const apps: {
|
|
|
1238
1238
|
} & {
|
|
1239
1239
|
"/words": {
|
|
1240
1240
|
$get: {
|
|
1241
|
-
input: {
|
|
1241
|
+
input: {
|
|
1242
|
+
query: {
|
|
1243
|
+
lang?: string | undefined;
|
|
1244
|
+
};
|
|
1245
|
+
};
|
|
1242
1246
|
output: {
|
|
1243
1247
|
[x: string]: {
|
|
1244
1248
|
id: string;
|
|
@@ -1300,6 +1304,10 @@ declare const apps: {
|
|
|
1300
1304
|
"/words/:word": {
|
|
1301
1305
|
$get: {
|
|
1302
1306
|
input: {
|
|
1307
|
+
query: {
|
|
1308
|
+
lang?: string | undefined;
|
|
1309
|
+
};
|
|
1310
|
+
} & {
|
|
1303
1311
|
param: {
|
|
1304
1312
|
word: string;
|
|
1305
1313
|
};
|
|
@@ -1362,6 +1370,10 @@ declare const apps: {
|
|
|
1362
1370
|
status: 200;
|
|
1363
1371
|
} | {
|
|
1364
1372
|
input: {
|
|
1373
|
+
query: {
|
|
1374
|
+
lang?: string | undefined;
|
|
1375
|
+
};
|
|
1376
|
+
} & {
|
|
1365
1377
|
param: {
|
|
1366
1378
|
word: string;
|
|
1367
1379
|
};
|
|
@@ -1377,7 +1389,11 @@ declare const apps: {
|
|
|
1377
1389
|
} & {
|
|
1378
1390
|
"/glyphs": {
|
|
1379
1391
|
$get: {
|
|
1380
|
-
input: {
|
|
1392
|
+
input: {
|
|
1393
|
+
query: {
|
|
1394
|
+
lang?: string | undefined;
|
|
1395
|
+
};
|
|
1396
|
+
};
|
|
1381
1397
|
output: {
|
|
1382
1398
|
[x: string]: {
|
|
1383
1399
|
id: string;
|
|
@@ -1414,6 +1430,10 @@ declare const apps: {
|
|
|
1414
1430
|
"/glyphs/:glyph": {
|
|
1415
1431
|
$get: {
|
|
1416
1432
|
input: {
|
|
1433
|
+
query: {
|
|
1434
|
+
lang?: string | undefined;
|
|
1435
|
+
};
|
|
1436
|
+
} & {
|
|
1417
1437
|
param: {
|
|
1418
1438
|
glyph: string;
|
|
1419
1439
|
};
|
|
@@ -1451,6 +1471,10 @@ declare const apps: {
|
|
|
1451
1471
|
status: 200;
|
|
1452
1472
|
} | {
|
|
1453
1473
|
input: {
|
|
1474
|
+
query: {
|
|
1475
|
+
lang?: string | undefined;
|
|
1476
|
+
};
|
|
1477
|
+
} & {
|
|
1454
1478
|
param: {
|
|
1455
1479
|
glyph: string;
|
|
1456
1480
|
};
|
|
@@ -1475,7 +1499,11 @@ declare const apps: {
|
|
|
1475
1499
|
} & {
|
|
1476
1500
|
"/sandbox/words": {
|
|
1477
1501
|
$get: {
|
|
1478
|
-
input: {
|
|
1502
|
+
input: {
|
|
1503
|
+
query: {
|
|
1504
|
+
lang?: string | undefined;
|
|
1505
|
+
};
|
|
1506
|
+
};
|
|
1479
1507
|
output: {
|
|
1480
1508
|
[x: string]: {
|
|
1481
1509
|
id: string;
|
|
@@ -1537,6 +1565,10 @@ declare const apps: {
|
|
|
1537
1565
|
"/sandbox/words/:word": {
|
|
1538
1566
|
$get: {
|
|
1539
1567
|
input: {
|
|
1568
|
+
query: {
|
|
1569
|
+
lang?: string | undefined;
|
|
1570
|
+
};
|
|
1571
|
+
} & {
|
|
1540
1572
|
param: {
|
|
1541
1573
|
word: string;
|
|
1542
1574
|
};
|
|
@@ -1599,6 +1631,10 @@ declare const apps: {
|
|
|
1599
1631
|
status: 200;
|
|
1600
1632
|
} | {
|
|
1601
1633
|
input: {
|
|
1634
|
+
query: {
|
|
1635
|
+
lang?: string | undefined;
|
|
1636
|
+
};
|
|
1637
|
+
} & {
|
|
1602
1638
|
param: {
|
|
1603
1639
|
word: string;
|
|
1604
1640
|
};
|
|
@@ -1614,7 +1650,11 @@ declare const apps: {
|
|
|
1614
1650
|
} & {
|
|
1615
1651
|
"/sandbox/glyphs": {
|
|
1616
1652
|
$get: {
|
|
1617
|
-
input: {
|
|
1653
|
+
input: {
|
|
1654
|
+
query: {
|
|
1655
|
+
lang?: string | undefined;
|
|
1656
|
+
};
|
|
1657
|
+
};
|
|
1618
1658
|
output: {
|
|
1619
1659
|
[x: string]: {
|
|
1620
1660
|
id: string;
|
|
@@ -1651,6 +1691,10 @@ declare const apps: {
|
|
|
1651
1691
|
"/sandbox/glyphs/:glyph": {
|
|
1652
1692
|
$get: {
|
|
1653
1693
|
input: {
|
|
1694
|
+
query: {
|
|
1695
|
+
lang?: string | undefined;
|
|
1696
|
+
};
|
|
1697
|
+
} & {
|
|
1654
1698
|
param: {
|
|
1655
1699
|
glyph: string;
|
|
1656
1700
|
};
|
|
@@ -1688,6 +1732,10 @@ declare const apps: {
|
|
|
1688
1732
|
status: 200;
|
|
1689
1733
|
} | {
|
|
1690
1734
|
input: {
|
|
1735
|
+
query: {
|
|
1736
|
+
lang?: string | undefined;
|
|
1737
|
+
};
|
|
1738
|
+
} & {
|
|
1691
1739
|
param: {
|
|
1692
1740
|
glyph: string;
|
|
1693
1741
|
};
|
|
@@ -1703,7 +1751,11 @@ declare const apps: {
|
|
|
1703
1751
|
} & {
|
|
1704
1752
|
"/luka_pona/signs": {
|
|
1705
1753
|
$get: {
|
|
1706
|
-
input: {
|
|
1754
|
+
input: {
|
|
1755
|
+
query: {
|
|
1756
|
+
lang?: string | undefined;
|
|
1757
|
+
};
|
|
1758
|
+
};
|
|
1707
1759
|
output: {
|
|
1708
1760
|
[x: string]: {
|
|
1709
1761
|
id: string;
|
|
@@ -1743,6 +1795,10 @@ declare const apps: {
|
|
|
1743
1795
|
"/luka_pona/signs/:sign": {
|
|
1744
1796
|
$get: {
|
|
1745
1797
|
input: {
|
|
1798
|
+
query: {
|
|
1799
|
+
lang?: string | undefined;
|
|
1800
|
+
};
|
|
1801
|
+
} & {
|
|
1746
1802
|
param: {
|
|
1747
1803
|
sign: string;
|
|
1748
1804
|
};
|
|
@@ -1783,6 +1839,10 @@ declare const apps: {
|
|
|
1783
1839
|
status: 200;
|
|
1784
1840
|
} | {
|
|
1785
1841
|
input: {
|
|
1842
|
+
query: {
|
|
1843
|
+
lang?: string | undefined;
|
|
1844
|
+
};
|
|
1845
|
+
} & {
|
|
1786
1846
|
param: {
|
|
1787
1847
|
sign: string;
|
|
1788
1848
|
};
|
|
@@ -1798,7 +1858,11 @@ declare const apps: {
|
|
|
1798
1858
|
} & {
|
|
1799
1859
|
"/luka_pona/fingerspellings": {
|
|
1800
1860
|
$get: {
|
|
1801
|
-
input: {
|
|
1861
|
+
input: {
|
|
1862
|
+
query: {
|
|
1863
|
+
lang?: string | undefined;
|
|
1864
|
+
};
|
|
1865
|
+
};
|
|
1802
1866
|
output: {
|
|
1803
1867
|
[x: string]: {
|
|
1804
1868
|
id: string;
|
|
@@ -1833,6 +1897,10 @@ declare const apps: {
|
|
|
1833
1897
|
"/luka_pona/fingerspellings/:fingerspelling": {
|
|
1834
1898
|
$get: {
|
|
1835
1899
|
input: {
|
|
1900
|
+
query: {
|
|
1901
|
+
lang?: string | undefined;
|
|
1902
|
+
};
|
|
1903
|
+
} & {
|
|
1836
1904
|
param: {
|
|
1837
1905
|
fingerspelling: string;
|
|
1838
1906
|
};
|
|
@@ -1868,6 +1936,10 @@ declare const apps: {
|
|
|
1868
1936
|
status: 200;
|
|
1869
1937
|
} | {
|
|
1870
1938
|
input: {
|
|
1939
|
+
query: {
|
|
1940
|
+
lang?: string | undefined;
|
|
1941
|
+
};
|
|
1942
|
+
} & {
|
|
1871
1943
|
param: {
|
|
1872
1944
|
fingerspelling: string;
|
|
1873
1945
|
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as fetchFile, i as apps, o as versions } from "../v1-
|
|
1
|
+
import { a as fetchFile, i as apps, o as versions } from "../v1-C6ZFa_PR.mjs";
|
|
2
2
|
export { apps, fetchFile, versions };
|
|
@@ -71,27 +71,119 @@ const langParamtoLangcode = async (langParam) => {
|
|
|
71
71
|
if (!langParam) return "en";
|
|
72
72
|
return langIdCoalesce(langParam, await fetchData("languages"));
|
|
73
73
|
};
|
|
74
|
-
const
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
const
|
|
81
|
-
return
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
const
|
|
74
|
+
const app$1 = new Hono().get("/", (c) => c.redirect("/v2/words")).get("/words", langValidator, async (c) => {
|
|
75
|
+
const data = await fetchData("words", await langParamtoLangcode(c.req.query("lang")));
|
|
76
|
+
return c.json(data, 200);
|
|
77
|
+
}).get("/words/:word", langValidator, zValidator("param", z.object({ word: z.string() })), async (c) => {
|
|
78
|
+
const data = await fetchData("words", await langParamtoLangcode(c.req.query("lang")));
|
|
79
|
+
const id = c.req.param("word");
|
|
80
|
+
const itemData = data[id];
|
|
81
|
+
return itemData ? c.json({
|
|
82
|
+
success: true,
|
|
83
|
+
data: itemData
|
|
84
|
+
}, 200) : c.json({
|
|
85
|
+
success: false,
|
|
86
|
+
message: `Could not find the word ${id}`
|
|
87
|
+
}, 400);
|
|
88
|
+
}).get("/glyphs", langValidator, async (c) => {
|
|
89
|
+
const data = await fetchData("glyphs", await langParamtoLangcode(c.req.query("lang")));
|
|
90
|
+
return c.json(data, 200);
|
|
91
|
+
}).get("/glyphs/:glyph", langValidator, zValidator("param", z.object({ glyph: z.string() })), async (c) => {
|
|
92
|
+
const data = await fetchData("glyphs", await langParamtoLangcode(c.req.query("lang")));
|
|
93
|
+
const id = c.req.param("glyph");
|
|
94
|
+
const itemData = data[id];
|
|
95
|
+
return itemData ? c.json({
|
|
96
|
+
success: true,
|
|
97
|
+
data: itemData
|
|
98
|
+
}, 200) : c.json({
|
|
99
|
+
success: false,
|
|
100
|
+
message: `Could not find the glyph ${id}`
|
|
101
|
+
}, 400);
|
|
102
|
+
}).get("/sandbox", (c) => c.redirect("/v2/sandbox/words")).get("/sandbox/words", langValidator, async (c) => {
|
|
103
|
+
const data = await fetchData("sandbox_words", await langParamtoLangcode(c.req.query("lang")));
|
|
104
|
+
return c.json(data, 200);
|
|
105
|
+
}).get("/sandbox/words/:word", langValidator, zValidator("param", z.object({ word: z.string() })), async (c) => {
|
|
106
|
+
const data = await fetchData("sandbox_words", await langParamtoLangcode(c.req.query("lang")));
|
|
107
|
+
const id = c.req.param("word");
|
|
108
|
+
const itemData = data[id];
|
|
109
|
+
return itemData ? c.json({
|
|
110
|
+
success: true,
|
|
111
|
+
data: itemData
|
|
112
|
+
}, 200) : c.json({
|
|
113
|
+
success: false,
|
|
114
|
+
message: `Could not find the sandbox word ${id}`
|
|
115
|
+
}, 400);
|
|
116
|
+
}).get("/sandbox/glyphs", langValidator, async (c) => {
|
|
117
|
+
const data = await fetchData("sandbox_glyphs", await langParamtoLangcode(c.req.query("lang")));
|
|
118
|
+
return c.json(data, 200);
|
|
119
|
+
}).get("/sandbox/glyphs/:glyph", langValidator, zValidator("param", z.object({ glyph: z.string() })), async (c) => {
|
|
120
|
+
const data = await fetchData("sandbox_glyphs", await langParamtoLangcode(c.req.query("lang")));
|
|
121
|
+
const id = c.req.param("glyph");
|
|
122
|
+
const itemData = data[id];
|
|
123
|
+
return itemData ? c.json({
|
|
124
|
+
success: true,
|
|
125
|
+
data: itemData
|
|
126
|
+
}, 200) : c.json({
|
|
127
|
+
success: false,
|
|
128
|
+
message: `Could not find the sandbox glyph ${id}`
|
|
129
|
+
}, 400);
|
|
130
|
+
}).get("/luka_pona/signs", langValidator, async (c) => {
|
|
131
|
+
const data = await fetchData("signs", await langParamtoLangcode(c.req.query("lang")));
|
|
132
|
+
return c.json(data, 200);
|
|
133
|
+
}).get("/luka_pona/signs/:sign", langValidator, zValidator("param", z.object({ sign: z.string() })), async (c) => {
|
|
134
|
+
const data = await fetchData("signs", await langParamtoLangcode(c.req.query("lang")));
|
|
135
|
+
const id = c.req.param("sign");
|
|
136
|
+
const itemData = data[id];
|
|
137
|
+
return itemData ? c.json({
|
|
138
|
+
success: true,
|
|
139
|
+
data: itemData
|
|
140
|
+
}, 200) : c.json({
|
|
141
|
+
success: false,
|
|
142
|
+
message: `Could not find the sign ${id}`
|
|
143
|
+
}, 400);
|
|
144
|
+
}).get("/luka_pona/fingerspellings", langValidator, async (c) => {
|
|
145
|
+
const data = await fetchData("fingerspellings", await langParamtoLangcode(c.req.query("lang")));
|
|
146
|
+
return c.json(data, 200);
|
|
147
|
+
}).get("/luka_pona/fingerspellings/:fingerspelling", langValidator, zValidator("param", z.object({ fingerspelling: z.string() })), async (c) => {
|
|
148
|
+
const data = await fetchData("fingerspellings", await langParamtoLangcode(c.req.query("lang")));
|
|
149
|
+
const id = c.req.param("fingerspelling");
|
|
150
|
+
const itemData = data[id];
|
|
151
|
+
return itemData ? c.json({
|
|
152
|
+
success: true,
|
|
153
|
+
data: itemData
|
|
154
|
+
}, 200) : c.json({
|
|
155
|
+
success: false,
|
|
156
|
+
message: `Could not find the fingerspelling ${id}`
|
|
157
|
+
}, 400);
|
|
158
|
+
}).get("/fonts", async (c) => {
|
|
159
|
+
const data = await fetchData("fonts");
|
|
160
|
+
return c.json(data, 200);
|
|
161
|
+
}).get("/fonts/:font", zValidator("param", z.object({ font: z.string() })), async (c) => {
|
|
162
|
+
const data = await fetchData("fonts");
|
|
163
|
+
const id = c.req.param("font");
|
|
164
|
+
const itemData = data[id];
|
|
165
|
+
return itemData ? c.json({
|
|
166
|
+
success: true,
|
|
167
|
+
data: itemData
|
|
168
|
+
}, 200) : c.json({
|
|
169
|
+
success: false,
|
|
170
|
+
message: `Could not find the font ${id}`
|
|
171
|
+
}, 400);
|
|
172
|
+
}).get("/languages", async (c) => {
|
|
173
|
+
const data = await fetchData("languages");
|
|
174
|
+
return c.json(data, 200);
|
|
175
|
+
}).get("/languages/:language", zValidator("param", z.object({ language: z.string() })), async (c) => {
|
|
176
|
+
const data = await fetchData("languages");
|
|
177
|
+
const id = c.req.param("language");
|
|
178
|
+
const itemData = data[id];
|
|
179
|
+
return itemData ? c.json({
|
|
180
|
+
success: true,
|
|
181
|
+
data: itemData
|
|
182
|
+
}, 200) : c.json({
|
|
183
|
+
success: false,
|
|
184
|
+
message: `Could not find the language ${id}`
|
|
185
|
+
}, 400);
|
|
186
|
+
});
|
|
95
187
|
//#endregion
|
|
96
188
|
//#region src/server/versioning.ts
|
|
97
189
|
const IMPORT_ROOT = "/src/raw/";
|