@layer-drone/protocol 0.1.3 → 0.3.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 +869 -5
- package/dist/index.d.ts +869 -5
- package/dist/index.js +380 -1
- package/dist/index.mjs +362 -1
- package/package.json +2 -2
- package/src/client/sdk.gen.ts +539 -0
- package/src/client/transformers.gen.ts +130 -0
- package/src/client/types.gen.ts +967 -0
- package/src/event/types.gen.ts +11 -0
package/dist/index.js
CHANGED
|
@@ -22,6 +22,7 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
22
22
|
var index_exports = {};
|
|
23
23
|
__export(index_exports, {
|
|
24
24
|
Event: () => Event,
|
|
25
|
+
alchemyControllerHandleWebhook: () => alchemyControllerHandleWebhook,
|
|
25
26
|
apiControllerGetError: () => apiControllerGetError,
|
|
26
27
|
apiControllerGetHello: () => apiControllerGetHello,
|
|
27
28
|
apiTokenControllerCreateToken: () => apiTokenControllerCreateToken,
|
|
@@ -30,16 +31,31 @@ __export(index_exports, {
|
|
|
30
31
|
apiTokenControllerUpdateToken: () => apiTokenControllerUpdateToken,
|
|
31
32
|
buildClientParams: () => buildClientParams,
|
|
32
33
|
conditionsControllerGetSunAltitudeTimeLimits: () => conditionsControllerGetSunAltitudeTimeLimits,
|
|
34
|
+
contractsControllerCreateContract: () => contractsControllerCreateContract,
|
|
35
|
+
contractsControllerDeleteContract: () => contractsControllerDeleteContract,
|
|
36
|
+
contractsControllerGetAllContracts: () => contractsControllerGetAllContracts,
|
|
37
|
+
contractsControllerGetContract: () => contractsControllerGetContract,
|
|
38
|
+
contractsControllerUpdateContract: () => contractsControllerUpdateContract,
|
|
33
39
|
createClient: () => createClient,
|
|
34
40
|
createConfig: () => createConfig,
|
|
41
|
+
dlqRedriverControllerRedriveDlq: () => dlqRedriverControllerRedriveDlq,
|
|
42
|
+
flightPlansControllerCreate: () => flightPlansControllerCreate,
|
|
43
|
+
flightPlansControllerGet: () => flightPlansControllerGet,
|
|
44
|
+
flightPlansControllerGetMany: () => flightPlansControllerGetMany,
|
|
35
45
|
flightsControllerCreatePresignedUrls: () => flightsControllerCreatePresignedUrls,
|
|
36
46
|
flightsControllerGenerateStorageKey: () => flightsControllerGenerateStorageKey,
|
|
37
47
|
flightsControllerGetFlight: () => flightsControllerGetFlight,
|
|
38
48
|
flightsControllerValidateFlight: () => flightsControllerValidateFlight,
|
|
39
49
|
formDataBodySerializer: () => formDataBodySerializer,
|
|
50
|
+
inboundWebhookConfigsControllerCreate: () => inboundWebhookConfigsControllerCreate,
|
|
51
|
+
inboundWebhookConfigsControllerDelete: () => inboundWebhookConfigsControllerDelete,
|
|
52
|
+
inboundWebhookConfigsControllerGet: () => inboundWebhookConfigsControllerGet,
|
|
53
|
+
inboundWebhookConfigsControllerGetMany: () => inboundWebhookConfigsControllerGetMany,
|
|
54
|
+
inboundWebhookConfigsControllerUpdate: () => inboundWebhookConfigsControllerUpdate,
|
|
40
55
|
jsonBodySerializer: () => jsonBodySerializer,
|
|
41
56
|
keysControllerGetProvenanceCryptoKey: () => keysControllerGetProvenanceCryptoKey,
|
|
42
57
|
mergeHeaders: () => mergeHeaders,
|
|
58
|
+
missionsControllerCloseMission: () => missionsControllerCloseMission,
|
|
43
59
|
missionsControllerCreateMissions: () => missionsControllerCreateMissions,
|
|
44
60
|
missionsControllerRepriceMissions: () => missionsControllerRepriceMissions,
|
|
45
61
|
missionsControllerUpdateMissions: () => missionsControllerUpdateMissions,
|
|
@@ -47,7 +63,9 @@ __export(index_exports, {
|
|
|
47
63
|
quotesControllerCreateQuote: () => quotesControllerCreateQuote,
|
|
48
64
|
quotesControllerGetQuote: () => quotesControllerGetQuote,
|
|
49
65
|
schemaControllerGetEventSchema: () => schemaControllerGetEventSchema,
|
|
66
|
+
schemaControllerGetFlightPlanSchema: () => schemaControllerGetFlightPlanSchema,
|
|
50
67
|
urlSearchParamsBodySerializer: () => urlSearchParamsBodySerializer,
|
|
68
|
+
vaultsControllerCreateVaults: () => vaultsControllerCreateVaults,
|
|
51
69
|
webhooksControllerCreate: () => webhooksControllerCreate,
|
|
52
70
|
webhooksControllerDelete: () => webhooksControllerDelete,
|
|
53
71
|
webhooksControllerGet: () => webhooksControllerGet,
|
|
@@ -768,6 +786,19 @@ var conditionsControllerGetSunAltitudeTimeLimitsResponseTransformer = /* @__PURE
|
|
|
768
786
|
data = getTimeLimitsForSunAltitudeResponseSchemaResponseTransformer(data);
|
|
769
787
|
return data;
|
|
770
788
|
}, "conditionsControllerGetSunAltitudeTimeLimitsResponseTransformer");
|
|
789
|
+
var getContractsResponseDtoSchemaResponseTransformer = /* @__PURE__ */ __name((data) => {
|
|
790
|
+
data.data = data.data.map((item) => {
|
|
791
|
+
if (item.deployedAt) {
|
|
792
|
+
item.deployedAt = new Date(item.deployedAt);
|
|
793
|
+
}
|
|
794
|
+
return item;
|
|
795
|
+
});
|
|
796
|
+
return data;
|
|
797
|
+
}, "getContractsResponseDtoSchemaResponseTransformer");
|
|
798
|
+
var contractsControllerGetAllContractsResponseTransformer = /* @__PURE__ */ __name(async (data) => {
|
|
799
|
+
data = getContractsResponseDtoSchemaResponseTransformer(data);
|
|
800
|
+
return data;
|
|
801
|
+
}, "contractsControllerGetAllContractsResponseTransformer");
|
|
771
802
|
var validateFlightResponseDtoSchemaResponseTransformer = /* @__PURE__ */ __name((data) => {
|
|
772
803
|
data.flightId = BigInt(data.flightId.toString());
|
|
773
804
|
return data;
|
|
@@ -776,6 +807,36 @@ var flightsControllerValidateFlightResponseTransformer = /* @__PURE__ */ __name(
|
|
|
776
807
|
data = validateFlightResponseDtoSchemaResponseTransformer(data);
|
|
777
808
|
return data;
|
|
778
809
|
}, "flightsControllerValidateFlightResponseTransformer");
|
|
810
|
+
var getFlightPlansResponseSchemaResponseTransformer = /* @__PURE__ */ __name((data) => {
|
|
811
|
+
data.data = data.data.map((item) => {
|
|
812
|
+
item.created_at = new Date(item.created_at);
|
|
813
|
+
item.updated_at = new Date(item.updated_at);
|
|
814
|
+
return item;
|
|
815
|
+
});
|
|
816
|
+
return data;
|
|
817
|
+
}, "getFlightPlansResponseSchemaResponseTransformer");
|
|
818
|
+
var flightPlansControllerGetManyResponseTransformer = /* @__PURE__ */ __name(async (data) => {
|
|
819
|
+
data = getFlightPlansResponseSchemaResponseTransformer(data);
|
|
820
|
+
return data;
|
|
821
|
+
}, "flightPlansControllerGetManyResponseTransformer");
|
|
822
|
+
var createFlightPlanResponseSchemaResponseTransformer = /* @__PURE__ */ __name((data) => {
|
|
823
|
+
data.created_at = new Date(data.created_at);
|
|
824
|
+
data.updated_at = new Date(data.updated_at);
|
|
825
|
+
return data;
|
|
826
|
+
}, "createFlightPlanResponseSchemaResponseTransformer");
|
|
827
|
+
var flightPlansControllerCreateResponseTransformer = /* @__PURE__ */ __name(async (data) => {
|
|
828
|
+
data = createFlightPlanResponseSchemaResponseTransformer(data);
|
|
829
|
+
return data;
|
|
830
|
+
}, "flightPlansControllerCreateResponseTransformer");
|
|
831
|
+
var getFlightPlanResponseSchemaResponseTransformer = /* @__PURE__ */ __name((data) => {
|
|
832
|
+
data.created_at = new Date(data.created_at);
|
|
833
|
+
data.updated_at = new Date(data.updated_at);
|
|
834
|
+
return data;
|
|
835
|
+
}, "getFlightPlanResponseSchemaResponseTransformer");
|
|
836
|
+
var flightPlansControllerGetResponseTransformer = /* @__PURE__ */ __name(async (data) => {
|
|
837
|
+
data = getFlightPlanResponseSchemaResponseTransformer(data);
|
|
838
|
+
return data;
|
|
839
|
+
}, "flightPlansControllerGetResponseTransformer");
|
|
779
840
|
var createMissionResponseDtoSchemaResponseTransformer = /* @__PURE__ */ __name((data) => {
|
|
780
841
|
data.data.missions = data.data.missions.map((item) => {
|
|
781
842
|
item.captureStartTime = new Date(item.captureStartTime);
|
|
@@ -788,6 +849,45 @@ var missionsControllerCreateMissionsResponseTransformer = /* @__PURE__ */ __name
|
|
|
788
849
|
data = createMissionResponseDtoSchemaResponseTransformer(data);
|
|
789
850
|
return data;
|
|
790
851
|
}, "missionsControllerCreateMissionsResponseTransformer");
|
|
852
|
+
var getInboundWebhookConfigsResponseSchemaResponseTransformer = /* @__PURE__ */ __name((data) => {
|
|
853
|
+
data = data.map((item) => {
|
|
854
|
+
item.created_at = new Date(item.created_at);
|
|
855
|
+
item.updated_at = new Date(item.updated_at);
|
|
856
|
+
return item;
|
|
857
|
+
});
|
|
858
|
+
return data;
|
|
859
|
+
}, "getInboundWebhookConfigsResponseSchemaResponseTransformer");
|
|
860
|
+
var inboundWebhookConfigsControllerGetManyResponseTransformer = /* @__PURE__ */ __name(async (data) => {
|
|
861
|
+
data = getInboundWebhookConfigsResponseSchemaResponseTransformer(data);
|
|
862
|
+
return data;
|
|
863
|
+
}, "inboundWebhookConfigsControllerGetManyResponseTransformer");
|
|
864
|
+
var createInboundWebhookConfigResponseSchemaResponseTransformer = /* @__PURE__ */ __name((data) => {
|
|
865
|
+
data.created_at = new Date(data.created_at);
|
|
866
|
+
data.updated_at = new Date(data.updated_at);
|
|
867
|
+
return data;
|
|
868
|
+
}, "createInboundWebhookConfigResponseSchemaResponseTransformer");
|
|
869
|
+
var inboundWebhookConfigsControllerCreateResponseTransformer = /* @__PURE__ */ __name(async (data) => {
|
|
870
|
+
data = createInboundWebhookConfigResponseSchemaResponseTransformer(data);
|
|
871
|
+
return data;
|
|
872
|
+
}, "inboundWebhookConfigsControllerCreateResponseTransformer");
|
|
873
|
+
var getInboundWebhookConfigResponseSchemaResponseTransformer = /* @__PURE__ */ __name((data) => {
|
|
874
|
+
data.created_at = new Date(data.created_at);
|
|
875
|
+
data.updated_at = new Date(data.updated_at);
|
|
876
|
+
return data;
|
|
877
|
+
}, "getInboundWebhookConfigResponseSchemaResponseTransformer");
|
|
878
|
+
var inboundWebhookConfigsControllerGetResponseTransformer = /* @__PURE__ */ __name(async (data) => {
|
|
879
|
+
data = getInboundWebhookConfigResponseSchemaResponseTransformer(data);
|
|
880
|
+
return data;
|
|
881
|
+
}, "inboundWebhookConfigsControllerGetResponseTransformer");
|
|
882
|
+
var updateInboundWebhookConfigResponseSchemaResponseTransformer = /* @__PURE__ */ __name((data) => {
|
|
883
|
+
data.created_at = new Date(data.created_at);
|
|
884
|
+
data.updated_at = new Date(data.updated_at);
|
|
885
|
+
return data;
|
|
886
|
+
}, "updateInboundWebhookConfigResponseSchemaResponseTransformer");
|
|
887
|
+
var inboundWebhookConfigsControllerUpdateResponseTransformer = /* @__PURE__ */ __name(async (data) => {
|
|
888
|
+
data = updateInboundWebhookConfigResponseSchemaResponseTransformer(data);
|
|
889
|
+
return data;
|
|
890
|
+
}, "inboundWebhookConfigsControllerUpdateResponseTransformer");
|
|
791
891
|
|
|
792
892
|
// src/client/sdk.gen.ts
|
|
793
893
|
var apiControllerGetHello = /* @__PURE__ */ __name((options) => {
|
|
@@ -866,6 +966,91 @@ var conditionsControllerGetSunAltitudeTimeLimits = /* @__PURE__ */ __name((optio
|
|
|
866
966
|
...options
|
|
867
967
|
});
|
|
868
968
|
}, "conditionsControllerGetSunAltitudeTimeLimits");
|
|
969
|
+
var contractsControllerGetAllContracts = /* @__PURE__ */ __name((options) => {
|
|
970
|
+
return (options?.client ?? client).get({
|
|
971
|
+
security: [
|
|
972
|
+
{
|
|
973
|
+
name: "x-api-token",
|
|
974
|
+
type: "apiKey"
|
|
975
|
+
}
|
|
976
|
+
],
|
|
977
|
+
responseTransformer: contractsControllerGetAllContractsResponseTransformer,
|
|
978
|
+
url: "/contracts",
|
|
979
|
+
...options
|
|
980
|
+
});
|
|
981
|
+
}, "contractsControllerGetAllContracts");
|
|
982
|
+
var contractsControllerCreateContract = /* @__PURE__ */ __name((options) => {
|
|
983
|
+
return (options.client ?? client).post({
|
|
984
|
+
security: [
|
|
985
|
+
{
|
|
986
|
+
name: "x-api-token",
|
|
987
|
+
type: "apiKey"
|
|
988
|
+
}
|
|
989
|
+
],
|
|
990
|
+
url: "/contracts",
|
|
991
|
+
...options,
|
|
992
|
+
headers: {
|
|
993
|
+
"Content-Type": "application/json",
|
|
994
|
+
...options.headers
|
|
995
|
+
}
|
|
996
|
+
});
|
|
997
|
+
}, "contractsControllerCreateContract");
|
|
998
|
+
var contractsControllerDeleteContract = /* @__PURE__ */ __name((options) => {
|
|
999
|
+
return (options.client ?? client).delete({
|
|
1000
|
+
security: [
|
|
1001
|
+
{
|
|
1002
|
+
name: "x-api-token",
|
|
1003
|
+
type: "apiKey"
|
|
1004
|
+
}
|
|
1005
|
+
],
|
|
1006
|
+
url: "/contracts/{id}",
|
|
1007
|
+
...options
|
|
1008
|
+
});
|
|
1009
|
+
}, "contractsControllerDeleteContract");
|
|
1010
|
+
var contractsControllerGetContract = /* @__PURE__ */ __name((options) => {
|
|
1011
|
+
return (options.client ?? client).get({
|
|
1012
|
+
security: [
|
|
1013
|
+
{
|
|
1014
|
+
name: "x-api-token",
|
|
1015
|
+
type: "apiKey"
|
|
1016
|
+
}
|
|
1017
|
+
],
|
|
1018
|
+
url: "/contracts/{id}",
|
|
1019
|
+
...options
|
|
1020
|
+
});
|
|
1021
|
+
}, "contractsControllerGetContract");
|
|
1022
|
+
var contractsControllerUpdateContract = /* @__PURE__ */ __name((options) => {
|
|
1023
|
+
return (options.client ?? client).patch({
|
|
1024
|
+
security: [
|
|
1025
|
+
{
|
|
1026
|
+
name: "x-api-token",
|
|
1027
|
+
type: "apiKey"
|
|
1028
|
+
}
|
|
1029
|
+
],
|
|
1030
|
+
url: "/contracts/{id}",
|
|
1031
|
+
...options,
|
|
1032
|
+
headers: {
|
|
1033
|
+
"Content-Type": "application/json",
|
|
1034
|
+
...options.headers
|
|
1035
|
+
}
|
|
1036
|
+
});
|
|
1037
|
+
}, "contractsControllerUpdateContract");
|
|
1038
|
+
var dlqRedriverControllerRedriveDlq = /* @__PURE__ */ __name((options) => {
|
|
1039
|
+
return (options.client ?? client).post({
|
|
1040
|
+
security: [
|
|
1041
|
+
{
|
|
1042
|
+
name: "x-api-token",
|
|
1043
|
+
type: "apiKey"
|
|
1044
|
+
}
|
|
1045
|
+
],
|
|
1046
|
+
url: "/dlq-redriver/redrive",
|
|
1047
|
+
...options,
|
|
1048
|
+
headers: {
|
|
1049
|
+
"Content-Type": "application/json",
|
|
1050
|
+
...options.headers
|
|
1051
|
+
}
|
|
1052
|
+
});
|
|
1053
|
+
}, "dlqRedriverControllerRedriveDlq");
|
|
869
1054
|
var flightsControllerGenerateStorageKey = /* @__PURE__ */ __name((options) => {
|
|
870
1055
|
return (options.client ?? client).get({
|
|
871
1056
|
security: [
|
|
@@ -923,6 +1108,49 @@ var flightsControllerValidateFlight = /* @__PURE__ */ __name((options) => {
|
|
|
923
1108
|
}
|
|
924
1109
|
});
|
|
925
1110
|
}, "flightsControllerValidateFlight");
|
|
1111
|
+
var flightPlansControllerGetMany = /* @__PURE__ */ __name((options) => {
|
|
1112
|
+
return (options?.client ?? client).get({
|
|
1113
|
+
security: [
|
|
1114
|
+
{
|
|
1115
|
+
name: "x-api-token",
|
|
1116
|
+
type: "apiKey"
|
|
1117
|
+
}
|
|
1118
|
+
],
|
|
1119
|
+
responseTransformer: flightPlansControllerGetManyResponseTransformer,
|
|
1120
|
+
url: "/flight-plans",
|
|
1121
|
+
...options
|
|
1122
|
+
});
|
|
1123
|
+
}, "flightPlansControllerGetMany");
|
|
1124
|
+
var flightPlansControllerCreate = /* @__PURE__ */ __name((options) => {
|
|
1125
|
+
return (options.client ?? client).post({
|
|
1126
|
+
security: [
|
|
1127
|
+
{
|
|
1128
|
+
name: "x-api-token",
|
|
1129
|
+
type: "apiKey"
|
|
1130
|
+
}
|
|
1131
|
+
],
|
|
1132
|
+
responseTransformer: flightPlansControllerCreateResponseTransformer,
|
|
1133
|
+
url: "/flight-plans",
|
|
1134
|
+
...options,
|
|
1135
|
+
headers: {
|
|
1136
|
+
"Content-Type": "application/json",
|
|
1137
|
+
...options.headers
|
|
1138
|
+
}
|
|
1139
|
+
});
|
|
1140
|
+
}, "flightPlansControllerCreate");
|
|
1141
|
+
var flightPlansControllerGet = /* @__PURE__ */ __name((options) => {
|
|
1142
|
+
return (options.client ?? client).get({
|
|
1143
|
+
security: [
|
|
1144
|
+
{
|
|
1145
|
+
name: "x-api-token",
|
|
1146
|
+
type: "apiKey"
|
|
1147
|
+
}
|
|
1148
|
+
],
|
|
1149
|
+
responseTransformer: flightPlansControllerGetResponseTransformer,
|
|
1150
|
+
url: "/flight-plans/{id}",
|
|
1151
|
+
...options
|
|
1152
|
+
});
|
|
1153
|
+
}, "flightPlansControllerGet");
|
|
926
1154
|
var keysControllerGetProvenanceCryptoKey = /* @__PURE__ */ __name((options) => {
|
|
927
1155
|
return (options?.client ?? client).get({
|
|
928
1156
|
url: "/keys",
|
|
@@ -978,6 +1206,22 @@ var missionsControllerRepriceMissions = /* @__PURE__ */ __name((options) => {
|
|
|
978
1206
|
}
|
|
979
1207
|
});
|
|
980
1208
|
}, "missionsControllerRepriceMissions");
|
|
1209
|
+
var missionsControllerCloseMission = /* @__PURE__ */ __name((options) => {
|
|
1210
|
+
return (options.client ?? client).post({
|
|
1211
|
+
security: [
|
|
1212
|
+
{
|
|
1213
|
+
name: "x-api-token",
|
|
1214
|
+
type: "apiKey"
|
|
1215
|
+
}
|
|
1216
|
+
],
|
|
1217
|
+
url: "/missions/{id}/close",
|
|
1218
|
+
...options,
|
|
1219
|
+
headers: {
|
|
1220
|
+
"Content-Type": "application/json",
|
|
1221
|
+
...options.headers
|
|
1222
|
+
}
|
|
1223
|
+
});
|
|
1224
|
+
}, "missionsControllerCloseMission");
|
|
981
1225
|
var quotesControllerCreateQuote = /* @__PURE__ */ __name((options) => {
|
|
982
1226
|
return (options.client ?? client).post({
|
|
983
1227
|
security: [
|
|
@@ -1012,6 +1256,32 @@ var schemaControllerGetEventSchema = /* @__PURE__ */ __name((options) => {
|
|
|
1012
1256
|
...options
|
|
1013
1257
|
});
|
|
1014
1258
|
}, "schemaControllerGetEventSchema");
|
|
1259
|
+
var schemaControllerGetFlightPlanSchema = /* @__PURE__ */ __name((options) => {
|
|
1260
|
+
return (options?.client ?? client).get({
|
|
1261
|
+
url: "/schema/flight-plan",
|
|
1262
|
+
...options
|
|
1263
|
+
});
|
|
1264
|
+
}, "schemaControllerGetFlightPlanSchema");
|
|
1265
|
+
var vaultsControllerCreateVaults = /* @__PURE__ */ __name((options) => {
|
|
1266
|
+
return (options.client ?? client).post({
|
|
1267
|
+
security: [
|
|
1268
|
+
{
|
|
1269
|
+
name: "x-api-token",
|
|
1270
|
+
type: "apiKey"
|
|
1271
|
+
},
|
|
1272
|
+
{
|
|
1273
|
+
name: "x-api-token",
|
|
1274
|
+
type: "apiKey"
|
|
1275
|
+
}
|
|
1276
|
+
],
|
|
1277
|
+
url: "/vaults",
|
|
1278
|
+
...options,
|
|
1279
|
+
headers: {
|
|
1280
|
+
"Content-Type": "application/json",
|
|
1281
|
+
...options.headers
|
|
1282
|
+
}
|
|
1283
|
+
});
|
|
1284
|
+
}, "vaultsControllerCreateVaults");
|
|
1015
1285
|
var webhooksControllerGetMany = /* @__PURE__ */ __name((options) => {
|
|
1016
1286
|
return (options.client ?? client).get({
|
|
1017
1287
|
security: [
|
|
@@ -1116,6 +1386,88 @@ var webhooksControllerGetStatus = /* @__PURE__ */ __name((options) => {
|
|
|
1116
1386
|
...options
|
|
1117
1387
|
});
|
|
1118
1388
|
}, "webhooksControllerGetStatus");
|
|
1389
|
+
var alchemyControllerHandleWebhook = /* @__PURE__ */ __name((options) => {
|
|
1390
|
+
return (options.client ?? client).post({
|
|
1391
|
+
url: "/webhooks/inbound/alchemy",
|
|
1392
|
+
...options,
|
|
1393
|
+
headers: {
|
|
1394
|
+
"Content-Type": "application/json",
|
|
1395
|
+
...options.headers
|
|
1396
|
+
}
|
|
1397
|
+
});
|
|
1398
|
+
}, "alchemyControllerHandleWebhook");
|
|
1399
|
+
var inboundWebhookConfigsControllerGetMany = /* @__PURE__ */ __name((options) => {
|
|
1400
|
+
return (options?.client ?? client).get({
|
|
1401
|
+
security: [
|
|
1402
|
+
{
|
|
1403
|
+
name: "x-api-token",
|
|
1404
|
+
type: "apiKey"
|
|
1405
|
+
}
|
|
1406
|
+
],
|
|
1407
|
+
responseTransformer: inboundWebhookConfigsControllerGetManyResponseTransformer,
|
|
1408
|
+
url: "/webhooks/inbound/configs",
|
|
1409
|
+
...options
|
|
1410
|
+
});
|
|
1411
|
+
}, "inboundWebhookConfigsControllerGetMany");
|
|
1412
|
+
var inboundWebhookConfigsControllerCreate = /* @__PURE__ */ __name((options) => {
|
|
1413
|
+
return (options.client ?? client).post({
|
|
1414
|
+
security: [
|
|
1415
|
+
{
|
|
1416
|
+
name: "x-api-token",
|
|
1417
|
+
type: "apiKey"
|
|
1418
|
+
}
|
|
1419
|
+
],
|
|
1420
|
+
responseTransformer: inboundWebhookConfigsControllerCreateResponseTransformer,
|
|
1421
|
+
url: "/webhooks/inbound/configs",
|
|
1422
|
+
...options,
|
|
1423
|
+
headers: {
|
|
1424
|
+
"Content-Type": "application/json",
|
|
1425
|
+
...options.headers
|
|
1426
|
+
}
|
|
1427
|
+
});
|
|
1428
|
+
}, "inboundWebhookConfigsControllerCreate");
|
|
1429
|
+
var inboundWebhookConfigsControllerDelete = /* @__PURE__ */ __name((options) => {
|
|
1430
|
+
return (options.client ?? client).delete({
|
|
1431
|
+
security: [
|
|
1432
|
+
{
|
|
1433
|
+
name: "x-api-token",
|
|
1434
|
+
type: "apiKey"
|
|
1435
|
+
}
|
|
1436
|
+
],
|
|
1437
|
+
url: "/webhooks/inbound/configs/{id}",
|
|
1438
|
+
...options
|
|
1439
|
+
});
|
|
1440
|
+
}, "inboundWebhookConfigsControllerDelete");
|
|
1441
|
+
var inboundWebhookConfigsControllerGet = /* @__PURE__ */ __name((options) => {
|
|
1442
|
+
return (options.client ?? client).get({
|
|
1443
|
+
security: [
|
|
1444
|
+
{
|
|
1445
|
+
name: "x-api-token",
|
|
1446
|
+
type: "apiKey"
|
|
1447
|
+
}
|
|
1448
|
+
],
|
|
1449
|
+
responseTransformer: inboundWebhookConfigsControllerGetResponseTransformer,
|
|
1450
|
+
url: "/webhooks/inbound/configs/{id}",
|
|
1451
|
+
...options
|
|
1452
|
+
});
|
|
1453
|
+
}, "inboundWebhookConfigsControllerGet");
|
|
1454
|
+
var inboundWebhookConfigsControllerUpdate = /* @__PURE__ */ __name((options) => {
|
|
1455
|
+
return (options.client ?? client).put({
|
|
1456
|
+
security: [
|
|
1457
|
+
{
|
|
1458
|
+
name: "x-api-token",
|
|
1459
|
+
type: "apiKey"
|
|
1460
|
+
}
|
|
1461
|
+
],
|
|
1462
|
+
responseTransformer: inboundWebhookConfigsControllerUpdateResponseTransformer,
|
|
1463
|
+
url: "/webhooks/inbound/configs/{id}",
|
|
1464
|
+
...options,
|
|
1465
|
+
headers: {
|
|
1466
|
+
"Content-Type": "application/json",
|
|
1467
|
+
...options.headers
|
|
1468
|
+
}
|
|
1469
|
+
});
|
|
1470
|
+
}, "inboundWebhookConfigsControllerUpdate");
|
|
1119
1471
|
|
|
1120
1472
|
// src/event/types.gen.ts
|
|
1121
1473
|
var import_zod = require("zod");
|
|
@@ -1133,6 +1485,7 @@ var Event = import_zod.z.union([
|
|
|
1133
1485
|
event_type: import_zod.z.literal("protocol.mission.created"),
|
|
1134
1486
|
timestamp: import_zod.z.string(),
|
|
1135
1487
|
data: import_zod.z.object({
|
|
1488
|
+
version: import_zod.z.literal(1),
|
|
1136
1489
|
id: import_zod.z.object({
|
|
1137
1490
|
__type: import_zod.z.literal("bigint"),
|
|
1138
1491
|
value: import_zod.z.string()
|
|
@@ -1154,7 +1507,11 @@ var Event = import_zod.z.union([
|
|
|
1154
1507
|
captureEndTime: import_zod.z.string().datetime({
|
|
1155
1508
|
offset: true
|
|
1156
1509
|
}),
|
|
1157
|
-
|
|
1510
|
+
isReservable: import_zod.z.boolean(),
|
|
1511
|
+
requestor: import_zod.z.string().regex(new RegExp("^0x[a-fA-F0-9]{40}$")),
|
|
1512
|
+
collateralTokenAddress: import_zod.z.string().regex(new RegExp("^0x[a-fA-F0-9]{40}$")),
|
|
1513
|
+
chainId: import_zod.z.number(),
|
|
1514
|
+
tags: import_zod.z.record(import_zod.z.string())
|
|
1158
1515
|
}).catchall(import_zod.z.any())
|
|
1159
1516
|
}).catchall(import_zod.z.any()),
|
|
1160
1517
|
import_zod.z.object({
|
|
@@ -1162,6 +1519,7 @@ var Event = import_zod.z.union([
|
|
|
1162
1519
|
event_type: import_zod.z.literal("protocol.mission.updated"),
|
|
1163
1520
|
timestamp: import_zod.z.string(),
|
|
1164
1521
|
data: import_zod.z.object({
|
|
1522
|
+
version: import_zod.z.literal(1),
|
|
1165
1523
|
id: import_zod.z.object({
|
|
1166
1524
|
__type: import_zod.z.literal("bigint"),
|
|
1167
1525
|
value: import_zod.z.string()
|
|
@@ -1179,6 +1537,7 @@ var Event = import_zod.z.union([
|
|
|
1179
1537
|
event_type: import_zod.z.literal("protocol.mission.paid"),
|
|
1180
1538
|
timestamp: import_zod.z.string(),
|
|
1181
1539
|
data: import_zod.z.object({
|
|
1540
|
+
version: import_zod.z.literal(1),
|
|
1182
1541
|
recipient: import_zod.z.string().regex(new RegExp("^0x[a-fA-F0-9]{40}$")),
|
|
1183
1542
|
flightId: import_zod.z.object({
|
|
1184
1543
|
__type: import_zod.z.literal("bigint"),
|
|
@@ -1204,6 +1563,7 @@ var Event = import_zod.z.union([
|
|
|
1204
1563
|
event_type: import_zod.z.literal("protocol.flight.submitted"),
|
|
1205
1564
|
timestamp: import_zod.z.string(),
|
|
1206
1565
|
data: import_zod.z.object({
|
|
1566
|
+
version: import_zod.z.literal(1),
|
|
1207
1567
|
storageKey: import_zod.z.string(),
|
|
1208
1568
|
pilotAddress: import_zod.z.string(),
|
|
1209
1569
|
flightManifestUri: import_zod.z.string(),
|
|
@@ -1218,6 +1578,7 @@ var Event = import_zod.z.union([
|
|
|
1218
1578
|
event_type: import_zod.z.literal("protocol.flight.reviewed"),
|
|
1219
1579
|
timestamp: import_zod.z.string(),
|
|
1220
1580
|
data: import_zod.z.object({
|
|
1581
|
+
version: import_zod.z.literal(1),
|
|
1221
1582
|
flightId: import_zod.z.object({
|
|
1222
1583
|
__type: import_zod.z.literal("bigint"),
|
|
1223
1584
|
value: import_zod.z.string()
|
|
@@ -1263,6 +1624,7 @@ __name(getSecretHeader, "getSecretHeader");
|
|
|
1263
1624
|
// Annotate the CommonJS export names for ESM import in node:
|
|
1264
1625
|
0 && (module.exports = {
|
|
1265
1626
|
Event,
|
|
1627
|
+
alchemyControllerHandleWebhook,
|
|
1266
1628
|
apiControllerGetError,
|
|
1267
1629
|
apiControllerGetHello,
|
|
1268
1630
|
apiTokenControllerCreateToken,
|
|
@@ -1271,16 +1633,31 @@ __name(getSecretHeader, "getSecretHeader");
|
|
|
1271
1633
|
apiTokenControllerUpdateToken,
|
|
1272
1634
|
buildClientParams,
|
|
1273
1635
|
conditionsControllerGetSunAltitudeTimeLimits,
|
|
1636
|
+
contractsControllerCreateContract,
|
|
1637
|
+
contractsControllerDeleteContract,
|
|
1638
|
+
contractsControllerGetAllContracts,
|
|
1639
|
+
contractsControllerGetContract,
|
|
1640
|
+
contractsControllerUpdateContract,
|
|
1274
1641
|
createClient,
|
|
1275
1642
|
createConfig,
|
|
1643
|
+
dlqRedriverControllerRedriveDlq,
|
|
1644
|
+
flightPlansControllerCreate,
|
|
1645
|
+
flightPlansControllerGet,
|
|
1646
|
+
flightPlansControllerGetMany,
|
|
1276
1647
|
flightsControllerCreatePresignedUrls,
|
|
1277
1648
|
flightsControllerGenerateStorageKey,
|
|
1278
1649
|
flightsControllerGetFlight,
|
|
1279
1650
|
flightsControllerValidateFlight,
|
|
1280
1651
|
formDataBodySerializer,
|
|
1652
|
+
inboundWebhookConfigsControllerCreate,
|
|
1653
|
+
inboundWebhookConfigsControllerDelete,
|
|
1654
|
+
inboundWebhookConfigsControllerGet,
|
|
1655
|
+
inboundWebhookConfigsControllerGetMany,
|
|
1656
|
+
inboundWebhookConfigsControllerUpdate,
|
|
1281
1657
|
jsonBodySerializer,
|
|
1282
1658
|
keysControllerGetProvenanceCryptoKey,
|
|
1283
1659
|
mergeHeaders,
|
|
1660
|
+
missionsControllerCloseMission,
|
|
1284
1661
|
missionsControllerCreateMissions,
|
|
1285
1662
|
missionsControllerRepriceMissions,
|
|
1286
1663
|
missionsControllerUpdateMissions,
|
|
@@ -1288,7 +1665,9 @@ __name(getSecretHeader, "getSecretHeader");
|
|
|
1288
1665
|
quotesControllerCreateQuote,
|
|
1289
1666
|
quotesControllerGetQuote,
|
|
1290
1667
|
schemaControllerGetEventSchema,
|
|
1668
|
+
schemaControllerGetFlightPlanSchema,
|
|
1291
1669
|
urlSearchParamsBodySerializer,
|
|
1670
|
+
vaultsControllerCreateVaults,
|
|
1292
1671
|
webhooksControllerCreate,
|
|
1293
1672
|
webhooksControllerDelete,
|
|
1294
1673
|
webhooksControllerGet,
|