@layer-drone/protocol 0.1.2 → 0.2.0
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.d.mts +690 -12
- package/dist/index.d.ts +690 -12
- package/dist/index.js +324 -1
- package/dist/index.mjs +309 -1
- package/package.json +5 -4
- package/src/client/sdk.gen.ts +464 -0
- package/src/client/transformers.gen.ts +102 -0
- package/src/client/types.gen.ts +779 -32
- package/src/event/types.gen.ts +11 -0
package/dist/index.mjs
CHANGED
|
@@ -710,6 +710,19 @@ var conditionsControllerGetSunAltitudeTimeLimitsResponseTransformer = /* @__PURE
|
|
|
710
710
|
data = getTimeLimitsForSunAltitudeResponseSchemaResponseTransformer(data);
|
|
711
711
|
return data;
|
|
712
712
|
}, "conditionsControllerGetSunAltitudeTimeLimitsResponseTransformer");
|
|
713
|
+
var getContractsResponseDtoSchemaResponseTransformer = /* @__PURE__ */ __name((data) => {
|
|
714
|
+
data.data = data.data.map((item) => {
|
|
715
|
+
if (item.deployedAt) {
|
|
716
|
+
item.deployedAt = new Date(item.deployedAt);
|
|
717
|
+
}
|
|
718
|
+
return item;
|
|
719
|
+
});
|
|
720
|
+
return data;
|
|
721
|
+
}, "getContractsResponseDtoSchemaResponseTransformer");
|
|
722
|
+
var contractsControllerGetAllContractsResponseTransformer = /* @__PURE__ */ __name(async (data) => {
|
|
723
|
+
data = getContractsResponseDtoSchemaResponseTransformer(data);
|
|
724
|
+
return data;
|
|
725
|
+
}, "contractsControllerGetAllContractsResponseTransformer");
|
|
713
726
|
var validateFlightResponseDtoSchemaResponseTransformer = /* @__PURE__ */ __name((data) => {
|
|
714
727
|
data.flightId = BigInt(data.flightId.toString());
|
|
715
728
|
return data;
|
|
@@ -718,6 +731,57 @@ var flightsControllerValidateFlightResponseTransformer = /* @__PURE__ */ __name(
|
|
|
718
731
|
data = validateFlightResponseDtoSchemaResponseTransformer(data);
|
|
719
732
|
return data;
|
|
720
733
|
}, "flightsControllerValidateFlightResponseTransformer");
|
|
734
|
+
var createMissionResponseDtoSchemaResponseTransformer = /* @__PURE__ */ __name((data) => {
|
|
735
|
+
data.data.missions = data.data.missions.map((item) => {
|
|
736
|
+
item.captureStartTime = new Date(item.captureStartTime);
|
|
737
|
+
item.captureEndTime = new Date(item.captureEndTime);
|
|
738
|
+
return item;
|
|
739
|
+
});
|
|
740
|
+
return data;
|
|
741
|
+
}, "createMissionResponseDtoSchemaResponseTransformer");
|
|
742
|
+
var missionsControllerCreateMissionsResponseTransformer = /* @__PURE__ */ __name(async (data) => {
|
|
743
|
+
data = createMissionResponseDtoSchemaResponseTransformer(data);
|
|
744
|
+
return data;
|
|
745
|
+
}, "missionsControllerCreateMissionsResponseTransformer");
|
|
746
|
+
var getInboundWebhookConfigsResponseSchemaResponseTransformer = /* @__PURE__ */ __name((data) => {
|
|
747
|
+
data = data.map((item) => {
|
|
748
|
+
item.created_at = new Date(item.created_at);
|
|
749
|
+
item.updated_at = new Date(item.updated_at);
|
|
750
|
+
return item;
|
|
751
|
+
});
|
|
752
|
+
return data;
|
|
753
|
+
}, "getInboundWebhookConfigsResponseSchemaResponseTransformer");
|
|
754
|
+
var inboundWebhookConfigsControllerGetManyResponseTransformer = /* @__PURE__ */ __name(async (data) => {
|
|
755
|
+
data = getInboundWebhookConfigsResponseSchemaResponseTransformer(data);
|
|
756
|
+
return data;
|
|
757
|
+
}, "inboundWebhookConfigsControllerGetManyResponseTransformer");
|
|
758
|
+
var createInboundWebhookConfigResponseSchemaResponseTransformer = /* @__PURE__ */ __name((data) => {
|
|
759
|
+
data.created_at = new Date(data.created_at);
|
|
760
|
+
data.updated_at = new Date(data.updated_at);
|
|
761
|
+
return data;
|
|
762
|
+
}, "createInboundWebhookConfigResponseSchemaResponseTransformer");
|
|
763
|
+
var inboundWebhookConfigsControllerCreateResponseTransformer = /* @__PURE__ */ __name(async (data) => {
|
|
764
|
+
data = createInboundWebhookConfigResponseSchemaResponseTransformer(data);
|
|
765
|
+
return data;
|
|
766
|
+
}, "inboundWebhookConfigsControllerCreateResponseTransformer");
|
|
767
|
+
var getInboundWebhookConfigResponseSchemaResponseTransformer = /* @__PURE__ */ __name((data) => {
|
|
768
|
+
data.created_at = new Date(data.created_at);
|
|
769
|
+
data.updated_at = new Date(data.updated_at);
|
|
770
|
+
return data;
|
|
771
|
+
}, "getInboundWebhookConfigResponseSchemaResponseTransformer");
|
|
772
|
+
var inboundWebhookConfigsControllerGetResponseTransformer = /* @__PURE__ */ __name(async (data) => {
|
|
773
|
+
data = getInboundWebhookConfigResponseSchemaResponseTransformer(data);
|
|
774
|
+
return data;
|
|
775
|
+
}, "inboundWebhookConfigsControllerGetResponseTransformer");
|
|
776
|
+
var updateInboundWebhookConfigResponseSchemaResponseTransformer = /* @__PURE__ */ __name((data) => {
|
|
777
|
+
data.created_at = new Date(data.created_at);
|
|
778
|
+
data.updated_at = new Date(data.updated_at);
|
|
779
|
+
return data;
|
|
780
|
+
}, "updateInboundWebhookConfigResponseSchemaResponseTransformer");
|
|
781
|
+
var inboundWebhookConfigsControllerUpdateResponseTransformer = /* @__PURE__ */ __name(async (data) => {
|
|
782
|
+
data = updateInboundWebhookConfigResponseSchemaResponseTransformer(data);
|
|
783
|
+
return data;
|
|
784
|
+
}, "inboundWebhookConfigsControllerUpdateResponseTransformer");
|
|
721
785
|
|
|
722
786
|
// src/client/sdk.gen.ts
|
|
723
787
|
var apiControllerGetHello = /* @__PURE__ */ __name((options) => {
|
|
@@ -796,6 +860,91 @@ var conditionsControllerGetSunAltitudeTimeLimits = /* @__PURE__ */ __name((optio
|
|
|
796
860
|
...options
|
|
797
861
|
});
|
|
798
862
|
}, "conditionsControllerGetSunAltitudeTimeLimits");
|
|
863
|
+
var contractsControllerGetAllContracts = /* @__PURE__ */ __name((options) => {
|
|
864
|
+
return (options?.client ?? client).get({
|
|
865
|
+
security: [
|
|
866
|
+
{
|
|
867
|
+
name: "x-api-token",
|
|
868
|
+
type: "apiKey"
|
|
869
|
+
}
|
|
870
|
+
],
|
|
871
|
+
responseTransformer: contractsControllerGetAllContractsResponseTransformer,
|
|
872
|
+
url: "/contracts",
|
|
873
|
+
...options
|
|
874
|
+
});
|
|
875
|
+
}, "contractsControllerGetAllContracts");
|
|
876
|
+
var contractsControllerCreateContract = /* @__PURE__ */ __name((options) => {
|
|
877
|
+
return (options.client ?? client).post({
|
|
878
|
+
security: [
|
|
879
|
+
{
|
|
880
|
+
name: "x-api-token",
|
|
881
|
+
type: "apiKey"
|
|
882
|
+
}
|
|
883
|
+
],
|
|
884
|
+
url: "/contracts",
|
|
885
|
+
...options,
|
|
886
|
+
headers: {
|
|
887
|
+
"Content-Type": "application/json",
|
|
888
|
+
...options.headers
|
|
889
|
+
}
|
|
890
|
+
});
|
|
891
|
+
}, "contractsControllerCreateContract");
|
|
892
|
+
var contractsControllerDeleteContract = /* @__PURE__ */ __name((options) => {
|
|
893
|
+
return (options.client ?? client).delete({
|
|
894
|
+
security: [
|
|
895
|
+
{
|
|
896
|
+
name: "x-api-token",
|
|
897
|
+
type: "apiKey"
|
|
898
|
+
}
|
|
899
|
+
],
|
|
900
|
+
url: "/contracts/{id}",
|
|
901
|
+
...options
|
|
902
|
+
});
|
|
903
|
+
}, "contractsControllerDeleteContract");
|
|
904
|
+
var contractsControllerGetContract = /* @__PURE__ */ __name((options) => {
|
|
905
|
+
return (options.client ?? client).get({
|
|
906
|
+
security: [
|
|
907
|
+
{
|
|
908
|
+
name: "x-api-token",
|
|
909
|
+
type: "apiKey"
|
|
910
|
+
}
|
|
911
|
+
],
|
|
912
|
+
url: "/contracts/{id}",
|
|
913
|
+
...options
|
|
914
|
+
});
|
|
915
|
+
}, "contractsControllerGetContract");
|
|
916
|
+
var contractsControllerUpdateContract = /* @__PURE__ */ __name((options) => {
|
|
917
|
+
return (options.client ?? client).patch({
|
|
918
|
+
security: [
|
|
919
|
+
{
|
|
920
|
+
name: "x-api-token",
|
|
921
|
+
type: "apiKey"
|
|
922
|
+
}
|
|
923
|
+
],
|
|
924
|
+
url: "/contracts/{id}",
|
|
925
|
+
...options,
|
|
926
|
+
headers: {
|
|
927
|
+
"Content-Type": "application/json",
|
|
928
|
+
...options.headers
|
|
929
|
+
}
|
|
930
|
+
});
|
|
931
|
+
}, "contractsControllerUpdateContract");
|
|
932
|
+
var dlqRedriverControllerRedriveDlq = /* @__PURE__ */ __name((options) => {
|
|
933
|
+
return (options.client ?? client).post({
|
|
934
|
+
security: [
|
|
935
|
+
{
|
|
936
|
+
name: "x-api-token",
|
|
937
|
+
type: "apiKey"
|
|
938
|
+
}
|
|
939
|
+
],
|
|
940
|
+
url: "/dlq-redriver/redrive",
|
|
941
|
+
...options,
|
|
942
|
+
headers: {
|
|
943
|
+
"Content-Type": "application/json",
|
|
944
|
+
...options.headers
|
|
945
|
+
}
|
|
946
|
+
});
|
|
947
|
+
}, "dlqRedriverControllerRedriveDlq");
|
|
799
948
|
var flightsControllerGenerateStorageKey = /* @__PURE__ */ __name((options) => {
|
|
800
949
|
return (options.client ?? client).get({
|
|
801
950
|
security: [
|
|
@@ -867,6 +1016,7 @@ var missionsControllerCreateMissions = /* @__PURE__ */ __name((options) => {
|
|
|
867
1016
|
type: "apiKey"
|
|
868
1017
|
}
|
|
869
1018
|
],
|
|
1019
|
+
responseTransformer: missionsControllerCreateMissionsResponseTransformer,
|
|
870
1020
|
url: "/missions",
|
|
871
1021
|
...options,
|
|
872
1022
|
headers: {
|
|
@@ -891,6 +1041,38 @@ var missionsControllerUpdateMissions = /* @__PURE__ */ __name((options) => {
|
|
|
891
1041
|
}
|
|
892
1042
|
});
|
|
893
1043
|
}, "missionsControllerUpdateMissions");
|
|
1044
|
+
var missionsControllerRepriceMissions = /* @__PURE__ */ __name((options) => {
|
|
1045
|
+
return (options.client ?? client).put({
|
|
1046
|
+
security: [
|
|
1047
|
+
{
|
|
1048
|
+
name: "x-api-token",
|
|
1049
|
+
type: "apiKey"
|
|
1050
|
+
}
|
|
1051
|
+
],
|
|
1052
|
+
url: "/missions/amounts",
|
|
1053
|
+
...options,
|
|
1054
|
+
headers: {
|
|
1055
|
+
"Content-Type": "application/json",
|
|
1056
|
+
...options.headers
|
|
1057
|
+
}
|
|
1058
|
+
});
|
|
1059
|
+
}, "missionsControllerRepriceMissions");
|
|
1060
|
+
var missionsControllerCloseMission = /* @__PURE__ */ __name((options) => {
|
|
1061
|
+
return (options.client ?? client).post({
|
|
1062
|
+
security: [
|
|
1063
|
+
{
|
|
1064
|
+
name: "x-api-token",
|
|
1065
|
+
type: "apiKey"
|
|
1066
|
+
}
|
|
1067
|
+
],
|
|
1068
|
+
url: "/missions/{id}/close",
|
|
1069
|
+
...options,
|
|
1070
|
+
headers: {
|
|
1071
|
+
"Content-Type": "application/json",
|
|
1072
|
+
...options.headers
|
|
1073
|
+
}
|
|
1074
|
+
});
|
|
1075
|
+
}, "missionsControllerCloseMission");
|
|
894
1076
|
var quotesControllerCreateQuote = /* @__PURE__ */ __name((options) => {
|
|
895
1077
|
return (options.client ?? client).post({
|
|
896
1078
|
security: [
|
|
@@ -925,6 +1107,26 @@ var schemaControllerGetEventSchema = /* @__PURE__ */ __name((options) => {
|
|
|
925
1107
|
...options
|
|
926
1108
|
});
|
|
927
1109
|
}, "schemaControllerGetEventSchema");
|
|
1110
|
+
var vaultsControllerCreateVaults = /* @__PURE__ */ __name((options) => {
|
|
1111
|
+
return (options.client ?? client).post({
|
|
1112
|
+
security: [
|
|
1113
|
+
{
|
|
1114
|
+
name: "x-api-token",
|
|
1115
|
+
type: "apiKey"
|
|
1116
|
+
},
|
|
1117
|
+
{
|
|
1118
|
+
name: "x-api-token",
|
|
1119
|
+
type: "apiKey"
|
|
1120
|
+
}
|
|
1121
|
+
],
|
|
1122
|
+
url: "/vaults",
|
|
1123
|
+
...options,
|
|
1124
|
+
headers: {
|
|
1125
|
+
"Content-Type": "application/json",
|
|
1126
|
+
...options.headers
|
|
1127
|
+
}
|
|
1128
|
+
});
|
|
1129
|
+
}, "vaultsControllerCreateVaults");
|
|
928
1130
|
var webhooksControllerGetMany = /* @__PURE__ */ __name((options) => {
|
|
929
1131
|
return (options.client ?? client).get({
|
|
930
1132
|
security: [
|
|
@@ -1029,6 +1231,88 @@ var webhooksControllerGetStatus = /* @__PURE__ */ __name((options) => {
|
|
|
1029
1231
|
...options
|
|
1030
1232
|
});
|
|
1031
1233
|
}, "webhooksControllerGetStatus");
|
|
1234
|
+
var alchemyControllerHandleWebhook = /* @__PURE__ */ __name((options) => {
|
|
1235
|
+
return (options.client ?? client).post({
|
|
1236
|
+
url: "/webhooks/inbound/alchemy",
|
|
1237
|
+
...options,
|
|
1238
|
+
headers: {
|
|
1239
|
+
"Content-Type": "application/json",
|
|
1240
|
+
...options.headers
|
|
1241
|
+
}
|
|
1242
|
+
});
|
|
1243
|
+
}, "alchemyControllerHandleWebhook");
|
|
1244
|
+
var inboundWebhookConfigsControllerGetMany = /* @__PURE__ */ __name((options) => {
|
|
1245
|
+
return (options?.client ?? client).get({
|
|
1246
|
+
security: [
|
|
1247
|
+
{
|
|
1248
|
+
name: "x-api-token",
|
|
1249
|
+
type: "apiKey"
|
|
1250
|
+
}
|
|
1251
|
+
],
|
|
1252
|
+
responseTransformer: inboundWebhookConfigsControllerGetManyResponseTransformer,
|
|
1253
|
+
url: "/webhooks/inbound/configs",
|
|
1254
|
+
...options
|
|
1255
|
+
});
|
|
1256
|
+
}, "inboundWebhookConfigsControllerGetMany");
|
|
1257
|
+
var inboundWebhookConfigsControllerCreate = /* @__PURE__ */ __name((options) => {
|
|
1258
|
+
return (options.client ?? client).post({
|
|
1259
|
+
security: [
|
|
1260
|
+
{
|
|
1261
|
+
name: "x-api-token",
|
|
1262
|
+
type: "apiKey"
|
|
1263
|
+
}
|
|
1264
|
+
],
|
|
1265
|
+
responseTransformer: inboundWebhookConfigsControllerCreateResponseTransformer,
|
|
1266
|
+
url: "/webhooks/inbound/configs",
|
|
1267
|
+
...options,
|
|
1268
|
+
headers: {
|
|
1269
|
+
"Content-Type": "application/json",
|
|
1270
|
+
...options.headers
|
|
1271
|
+
}
|
|
1272
|
+
});
|
|
1273
|
+
}, "inboundWebhookConfigsControllerCreate");
|
|
1274
|
+
var inboundWebhookConfigsControllerDelete = /* @__PURE__ */ __name((options) => {
|
|
1275
|
+
return (options.client ?? client).delete({
|
|
1276
|
+
security: [
|
|
1277
|
+
{
|
|
1278
|
+
name: "x-api-token",
|
|
1279
|
+
type: "apiKey"
|
|
1280
|
+
}
|
|
1281
|
+
],
|
|
1282
|
+
url: "/webhooks/inbound/configs/{id}",
|
|
1283
|
+
...options
|
|
1284
|
+
});
|
|
1285
|
+
}, "inboundWebhookConfigsControllerDelete");
|
|
1286
|
+
var inboundWebhookConfigsControllerGet = /* @__PURE__ */ __name((options) => {
|
|
1287
|
+
return (options.client ?? client).get({
|
|
1288
|
+
security: [
|
|
1289
|
+
{
|
|
1290
|
+
name: "x-api-token",
|
|
1291
|
+
type: "apiKey"
|
|
1292
|
+
}
|
|
1293
|
+
],
|
|
1294
|
+
responseTransformer: inboundWebhookConfigsControllerGetResponseTransformer,
|
|
1295
|
+
url: "/webhooks/inbound/configs/{id}",
|
|
1296
|
+
...options
|
|
1297
|
+
});
|
|
1298
|
+
}, "inboundWebhookConfigsControllerGet");
|
|
1299
|
+
var inboundWebhookConfigsControllerUpdate = /* @__PURE__ */ __name((options) => {
|
|
1300
|
+
return (options.client ?? client).put({
|
|
1301
|
+
security: [
|
|
1302
|
+
{
|
|
1303
|
+
name: "x-api-token",
|
|
1304
|
+
type: "apiKey"
|
|
1305
|
+
}
|
|
1306
|
+
],
|
|
1307
|
+
responseTransformer: inboundWebhookConfigsControllerUpdateResponseTransformer,
|
|
1308
|
+
url: "/webhooks/inbound/configs/{id}",
|
|
1309
|
+
...options,
|
|
1310
|
+
headers: {
|
|
1311
|
+
"Content-Type": "application/json",
|
|
1312
|
+
...options.headers
|
|
1313
|
+
}
|
|
1314
|
+
});
|
|
1315
|
+
}, "inboundWebhookConfigsControllerUpdate");
|
|
1032
1316
|
|
|
1033
1317
|
// src/event/types.gen.ts
|
|
1034
1318
|
import { z } from "zod";
|
|
@@ -1046,6 +1330,7 @@ var Event = z.union([
|
|
|
1046
1330
|
event_type: z.literal("protocol.mission.created"),
|
|
1047
1331
|
timestamp: z.string(),
|
|
1048
1332
|
data: z.object({
|
|
1333
|
+
version: z.literal(1),
|
|
1049
1334
|
id: z.object({
|
|
1050
1335
|
__type: z.literal("bigint"),
|
|
1051
1336
|
value: z.string()
|
|
@@ -1067,7 +1352,11 @@ var Event = z.union([
|
|
|
1067
1352
|
captureEndTime: z.string().datetime({
|
|
1068
1353
|
offset: true
|
|
1069
1354
|
}),
|
|
1070
|
-
|
|
1355
|
+
isReservable: z.boolean(),
|
|
1356
|
+
requestor: z.string().regex(new RegExp("^0x[a-fA-F0-9]{40}$")),
|
|
1357
|
+
collateralTokenAddress: z.string().regex(new RegExp("^0x[a-fA-F0-9]{40}$")),
|
|
1358
|
+
chainId: z.number(),
|
|
1359
|
+
tags: z.record(z.string())
|
|
1071
1360
|
}).catchall(z.any())
|
|
1072
1361
|
}).catchall(z.any()),
|
|
1073
1362
|
z.object({
|
|
@@ -1075,6 +1364,7 @@ var Event = z.union([
|
|
|
1075
1364
|
event_type: z.literal("protocol.mission.updated"),
|
|
1076
1365
|
timestamp: z.string(),
|
|
1077
1366
|
data: z.object({
|
|
1367
|
+
version: z.literal(1),
|
|
1078
1368
|
id: z.object({
|
|
1079
1369
|
__type: z.literal("bigint"),
|
|
1080
1370
|
value: z.string()
|
|
@@ -1092,6 +1382,7 @@ var Event = z.union([
|
|
|
1092
1382
|
event_type: z.literal("protocol.mission.paid"),
|
|
1093
1383
|
timestamp: z.string(),
|
|
1094
1384
|
data: z.object({
|
|
1385
|
+
version: z.literal(1),
|
|
1095
1386
|
recipient: z.string().regex(new RegExp("^0x[a-fA-F0-9]{40}$")),
|
|
1096
1387
|
flightId: z.object({
|
|
1097
1388
|
__type: z.literal("bigint"),
|
|
@@ -1117,6 +1408,7 @@ var Event = z.union([
|
|
|
1117
1408
|
event_type: z.literal("protocol.flight.submitted"),
|
|
1118
1409
|
timestamp: z.string(),
|
|
1119
1410
|
data: z.object({
|
|
1411
|
+
version: z.literal(1),
|
|
1120
1412
|
storageKey: z.string(),
|
|
1121
1413
|
pilotAddress: z.string(),
|
|
1122
1414
|
flightManifestUri: z.string(),
|
|
@@ -1131,6 +1423,7 @@ var Event = z.union([
|
|
|
1131
1423
|
event_type: z.literal("protocol.flight.reviewed"),
|
|
1132
1424
|
timestamp: z.string(),
|
|
1133
1425
|
data: z.object({
|
|
1426
|
+
version: z.literal(1),
|
|
1134
1427
|
flightId: z.object({
|
|
1135
1428
|
__type: z.literal("bigint"),
|
|
1136
1429
|
value: z.string()
|
|
@@ -1175,6 +1468,7 @@ function getSecretHeader(headers) {
|
|
|
1175
1468
|
__name(getSecretHeader, "getSecretHeader");
|
|
1176
1469
|
export {
|
|
1177
1470
|
Event,
|
|
1471
|
+
alchemyControllerHandleWebhook,
|
|
1178
1472
|
apiControllerGetError,
|
|
1179
1473
|
apiControllerGetHello,
|
|
1180
1474
|
apiTokenControllerCreateToken,
|
|
@@ -1183,23 +1477,37 @@ export {
|
|
|
1183
1477
|
apiTokenControllerUpdateToken,
|
|
1184
1478
|
buildClientParams,
|
|
1185
1479
|
conditionsControllerGetSunAltitudeTimeLimits,
|
|
1480
|
+
contractsControllerCreateContract,
|
|
1481
|
+
contractsControllerDeleteContract,
|
|
1482
|
+
contractsControllerGetAllContracts,
|
|
1483
|
+
contractsControllerGetContract,
|
|
1484
|
+
contractsControllerUpdateContract,
|
|
1186
1485
|
createClient,
|
|
1187
1486
|
createConfig,
|
|
1487
|
+
dlqRedriverControllerRedriveDlq,
|
|
1188
1488
|
flightsControllerCreatePresignedUrls,
|
|
1189
1489
|
flightsControllerGenerateStorageKey,
|
|
1190
1490
|
flightsControllerGetFlight,
|
|
1191
1491
|
flightsControllerValidateFlight,
|
|
1192
1492
|
formDataBodySerializer,
|
|
1493
|
+
inboundWebhookConfigsControllerCreate,
|
|
1494
|
+
inboundWebhookConfigsControllerDelete,
|
|
1495
|
+
inboundWebhookConfigsControllerGet,
|
|
1496
|
+
inboundWebhookConfigsControllerGetMany,
|
|
1497
|
+
inboundWebhookConfigsControllerUpdate,
|
|
1193
1498
|
jsonBodySerializer,
|
|
1194
1499
|
keysControllerGetProvenanceCryptoKey,
|
|
1195
1500
|
mergeHeaders,
|
|
1501
|
+
missionsControllerCloseMission,
|
|
1196
1502
|
missionsControllerCreateMissions,
|
|
1503
|
+
missionsControllerRepriceMissions,
|
|
1197
1504
|
missionsControllerUpdateMissions,
|
|
1198
1505
|
parseWebhookEvent,
|
|
1199
1506
|
quotesControllerCreateQuote,
|
|
1200
1507
|
quotesControllerGetQuote,
|
|
1201
1508
|
schemaControllerGetEventSchema,
|
|
1202
1509
|
urlSearchParamsBodySerializer,
|
|
1510
|
+
vaultsControllerCreateVaults,
|
|
1203
1511
|
webhooksControllerCreate,
|
|
1204
1512
|
webhooksControllerDelete,
|
|
1205
1513
|
webhooksControllerGet,
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@layer-drone/protocol",
|
|
3
3
|
"description": "Layer Drone protocol SDK with typed API client and event parsing",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.2.0",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"files": [
|
|
7
7
|
"dist",
|
|
@@ -20,7 +20,8 @@
|
|
|
20
20
|
"@types/express": "^4.17.17",
|
|
21
21
|
"@types/jest": "^29.5.2",
|
|
22
22
|
"@types/node": "^20.3.1",
|
|
23
|
-
"
|
|
23
|
+
"csv-parse": "^6.1.0",
|
|
24
|
+
"express": "^4.17.7",
|
|
24
25
|
"jest": "^29.7.0",
|
|
25
26
|
"json-refs": "^3.0.15",
|
|
26
27
|
"json-schema-to-zod": "^2.6.1",
|
|
@@ -37,8 +38,8 @@
|
|
|
37
38
|
"zod": "^3.x.x"
|
|
38
39
|
},
|
|
39
40
|
"scripts": {
|
|
40
|
-
"build": "tsup src/index.ts --format cjs,esm --dts",
|
|
41
|
-
"dev": "tsup src/index.ts --format cjs,esm --dts --watch",
|
|
41
|
+
"build": "tsup src/index.ts --tsconfig tsconfig.build.json --format cjs,esm --dts",
|
|
42
|
+
"dev": "tsup src/index.ts --tsconfig tsconfig.build.json --format cjs,esm --dts --watch",
|
|
42
43
|
"lint": "eslint \"{src,apps,libs,test}/**/*.ts\"",
|
|
43
44
|
"generate-api": "openapi-ts",
|
|
44
45
|
"generate-event": "ts-node ./scripts/generate-event-type.ts",
|