@layer-drone/protocol 0.0.17 → 0.0.18-alpha

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.js CHANGED
@@ -22,11 +22,11 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
22
22
  var index_exports = {};
23
23
  __export(index_exports, {
24
24
  Event: () => Event,
25
+ apiControllerGetHello: () => apiControllerGetHello,
25
26
  apiTokenControllerCreateToken: () => apiTokenControllerCreateToken,
26
27
  apiTokenControllerDeleteToken: () => apiTokenControllerDeleteToken,
27
28
  apiTokenControllerGetToken: () => apiTokenControllerGetToken,
28
29
  apiTokenControllerUpdateToken: () => apiTokenControllerUpdateToken,
29
- appControllerGetHello: () => appControllerGetHello,
30
30
  buildClientParams: () => buildClientParams,
31
31
  conditionsControllerGetSunAltitudeTimeLimits: () => conditionsControllerGetSunAltitudeTimeLimits,
32
32
  createClient: () => createClient,
@@ -39,7 +39,6 @@ __export(index_exports, {
39
39
  jsonBodySerializer: () => jsonBodySerializer,
40
40
  keysControllerGetProvenanceCryptoKey: () => keysControllerGetProvenanceCryptoKey,
41
41
  mergeHeaders: () => mergeHeaders,
42
- missionsControllerClaimRewards: () => missionsControllerClaimRewards,
43
42
  missionsControllerCreateMissions: () => missionsControllerCreateMissions,
44
43
  missionsControllerUpdateMissions: () => missionsControllerUpdateMissions,
45
44
  parseWebhookEvent: () => parseWebhookEvent,
@@ -756,23 +755,6 @@ var apiTokenControllerUpdateTokenResponseTransformer = /* @__PURE__ */ __name(as
756
755
  data = updateApiTokenResponseDtoSchemaResponseTransformer(data);
757
756
  return data;
758
757
  }, "apiTokenControllerUpdateTokenResponseTransformer");
759
- var flightDtoSchemaResponseTransformer = /* @__PURE__ */ __name((data) => {
760
- data.token_id = BigInt(data.token_id.toString());
761
- data.mission_id = BigInt(data.mission_id.toString());
762
- return data;
763
- }, "flightDtoSchemaResponseTransformer");
764
- var flightsControllerGetFlightResponseTransformer = /* @__PURE__ */ __name(async (data) => {
765
- data = flightDtoSchemaResponseTransformer(data);
766
- return data;
767
- }, "flightsControllerGetFlightResponseTransformer");
768
- var validateFlightResponseDtoSchemaResponseTransformer = /* @__PURE__ */ __name((data) => {
769
- data.flightId = BigInt(data.flightId.toString());
770
- return data;
771
- }, "validateFlightResponseDtoSchemaResponseTransformer");
772
- var flightsControllerValidateFlightResponseTransformer = /* @__PURE__ */ __name(async (data) => {
773
- data = validateFlightResponseDtoSchemaResponseTransformer(data);
774
- return data;
775
- }, "flightsControllerValidateFlightResponseTransformer");
776
758
  var getTimeLimitsForSunAltitudeResponseSchemaResponseTransformer = /* @__PURE__ */ __name((data) => {
777
759
  data.OptimalSunAltitudePeriod.StartTime = new Date(data.OptimalSunAltitudePeriod.StartTime);
778
760
  data.OptimalSunAltitudePeriod.EndTime = new Date(data.OptimalSunAltitudePeriod.EndTime);
@@ -784,48 +766,22 @@ var conditionsControllerGetSunAltitudeTimeLimitsResponseTransformer = /* @__PURE
784
766
  data = getTimeLimitsForSunAltitudeResponseSchemaResponseTransformer(data);
785
767
  return data;
786
768
  }, "conditionsControllerGetSunAltitudeTimeLimitsResponseTransformer");
769
+ var validateFlightResponseDtoSchemaResponseTransformer = /* @__PURE__ */ __name((data) => {
770
+ data.flightId = BigInt(data.flightId.toString());
771
+ return data;
772
+ }, "validateFlightResponseDtoSchemaResponseTransformer");
773
+ var flightsControllerValidateFlightResponseTransformer = /* @__PURE__ */ __name(async (data) => {
774
+ data = validateFlightResponseDtoSchemaResponseTransformer(data);
775
+ return data;
776
+ }, "flightsControllerValidateFlightResponseTransformer");
787
777
 
788
778
  // src/client/sdk.gen.ts
789
- var appControllerGetHello = /* @__PURE__ */ __name((options) => {
779
+ var apiControllerGetHello = /* @__PURE__ */ __name((options) => {
790
780
  return (options?.client ?? client).get({
791
781
  url: "/",
792
782
  ...options
793
783
  });
794
- }, "appControllerGetHello");
795
- var keysControllerGetProvenanceCryptoKey = /* @__PURE__ */ __name((options) => {
796
- return (options?.client ?? client).get({
797
- url: "/keys",
798
- ...options
799
- });
800
- }, "keysControllerGetProvenanceCryptoKey");
801
- var quotesControllerCreateQuote = /* @__PURE__ */ __name((options) => {
802
- return (options.client ?? client).post({
803
- security: [
804
- {
805
- name: "x-api-token",
806
- type: "apiKey"
807
- }
808
- ],
809
- url: "/quotes",
810
- ...options,
811
- headers: {
812
- "Content-Type": "application/json",
813
- ...options.headers
814
- }
815
- });
816
- }, "quotesControllerCreateQuote");
817
- var quotesControllerGetQuote = /* @__PURE__ */ __name((options) => {
818
- return (options.client ?? client).get({
819
- security: [
820
- {
821
- name: "x-api-token",
822
- type: "apiKey"
823
- }
824
- ],
825
- url: "/quotes/{id}",
826
- ...options
827
- });
828
- }, "quotesControllerGetQuote");
784
+ }, "apiControllerGetHello");
829
785
  var apiTokenControllerCreateToken = /* @__PURE__ */ __name((options) => {
830
786
  return (options.client ?? client).post({
831
787
  security: [
@@ -883,36 +839,13 @@ var apiTokenControllerUpdateToken = /* @__PURE__ */ __name((options) => {
883
839
  }
884
840
  });
885
841
  }, "apiTokenControllerUpdateToken");
886
- var missionsControllerCreateMissions = /* @__PURE__ */ __name((options) => {
887
- return (options.client ?? client).post({
888
- url: "/missions",
889
- ...options,
890
- headers: {
891
- "Content-Type": "application/json",
892
- ...options.headers
893
- }
894
- });
895
- }, "missionsControllerCreateMissions");
896
- var missionsControllerUpdateMissions = /* @__PURE__ */ __name((options) => {
897
- return (options.client ?? client).put({
898
- url: "/missions",
899
- ...options,
900
- headers: {
901
- "Content-Type": "application/json",
902
- ...options.headers
903
- }
904
- });
905
- }, "missionsControllerUpdateMissions");
906
- var missionsControllerClaimRewards = /* @__PURE__ */ __name((options) => {
907
- return (options.client ?? client).post({
908
- url: "/missions/{id}/rewards",
909
- ...options,
910
- headers: {
911
- "Content-Type": "application/json",
912
- ...options.headers
913
- }
842
+ var conditionsControllerGetSunAltitudeTimeLimits = /* @__PURE__ */ __name((options) => {
843
+ return (options.client ?? client).get({
844
+ responseTransformer: conditionsControllerGetSunAltitudeTimeLimitsResponseTransformer,
845
+ url: "/conditions/sun-altitude",
846
+ ...options
914
847
  });
915
- }, "missionsControllerClaimRewards");
848
+ }, "conditionsControllerGetSunAltitudeTimeLimits");
916
849
  var flightsControllerGenerateStorageKey = /* @__PURE__ */ __name((options) => {
917
850
  return (options.client ?? client).get({
918
851
  security: [
@@ -933,7 +866,6 @@ var flightsControllerGetFlight = /* @__PURE__ */ __name((options) => {
933
866
  type: "apiKey"
934
867
  }
935
868
  ],
936
- responseTransformer: flightsControllerGetFlightResponseTransformer,
937
869
  url: "/flights/{flightId}",
938
870
  ...options
939
871
  });
@@ -971,13 +903,60 @@ var flightsControllerValidateFlight = /* @__PURE__ */ __name((options) => {
971
903
  }
972
904
  });
973
905
  }, "flightsControllerValidateFlight");
974
- var conditionsControllerGetSunAltitudeTimeLimits = /* @__PURE__ */ __name((options) => {
906
+ var keysControllerGetProvenanceCryptoKey = /* @__PURE__ */ __name((options) => {
907
+ return (options?.client ?? client).get({
908
+ url: "/keys",
909
+ ...options
910
+ });
911
+ }, "keysControllerGetProvenanceCryptoKey");
912
+ var missionsControllerCreateMissions = /* @__PURE__ */ __name((options) => {
913
+ return (options.client ?? client).post({
914
+ url: "/missions",
915
+ ...options,
916
+ headers: {
917
+ "Content-Type": "application/json",
918
+ ...options.headers
919
+ }
920
+ });
921
+ }, "missionsControllerCreateMissions");
922
+ var missionsControllerUpdateMissions = /* @__PURE__ */ __name((options) => {
923
+ return (options.client ?? client).put({
924
+ url: "/missions",
925
+ ...options,
926
+ headers: {
927
+ "Content-Type": "application/json",
928
+ ...options.headers
929
+ }
930
+ });
931
+ }, "missionsControllerUpdateMissions");
932
+ var quotesControllerCreateQuote = /* @__PURE__ */ __name((options) => {
933
+ return (options.client ?? client).post({
934
+ security: [
935
+ {
936
+ name: "x-api-token",
937
+ type: "apiKey"
938
+ }
939
+ ],
940
+ url: "/quotes",
941
+ ...options,
942
+ headers: {
943
+ "Content-Type": "application/json",
944
+ ...options.headers
945
+ }
946
+ });
947
+ }, "quotesControllerCreateQuote");
948
+ var quotesControllerGetQuote = /* @__PURE__ */ __name((options) => {
975
949
  return (options.client ?? client).get({
976
- responseTransformer: conditionsControllerGetSunAltitudeTimeLimitsResponseTransformer,
977
- url: "/conditions/sun-altitude",
950
+ security: [
951
+ {
952
+ name: "x-api-token",
953
+ type: "apiKey"
954
+ }
955
+ ],
956
+ url: "/quotes/{id}",
978
957
  ...options
979
958
  });
980
- }, "conditionsControllerGetSunAltitudeTimeLimits");
959
+ }, "quotesControllerGetQuote");
981
960
  var schemaControllerGetEventSchema = /* @__PURE__ */ __name((options) => {
982
961
  return (options?.client ?? client).get({
983
962
  url: "/schema/event",
@@ -1100,20 +1079,6 @@ var Event = import_zod.z.union([
1100
1079
  message: import_zod.z.string()
1101
1080
  }).strict()
1102
1081
  }).strict(),
1103
- import_zod.z.object({
1104
- id: import_zod.z.any(),
1105
- event_type: import_zod.z.literal("protocol.flight.submitted"),
1106
- timestamp: import_zod.z.any(),
1107
- data: import_zod.z.object({
1108
- storageKey: import_zod.z.string(),
1109
- pilotAddress: import_zod.z.string(),
1110
- flightManifestUri: import_zod.z.string(),
1111
- missionId: import_zod.z.object({
1112
- __type: import_zod.z.literal("bigint"),
1113
- value: import_zod.z.string()
1114
- }).transform((wire) => BigInt(wire.value))
1115
- }).strict()
1116
- }).strict(),
1117
1082
  import_zod.z.object({
1118
1083
  id: import_zod.z.any(),
1119
1084
  event_type: import_zod.z.literal("protocol.mission.created"),
@@ -1139,7 +1104,6 @@ var Event = import_zod.z.union([
1139
1104
  captureEndTime: import_zod.z.string().datetime({
1140
1105
  offset: true
1141
1106
  }),
1142
- detailsHash: import_zod.z.string(),
1143
1107
  requestor: import_zod.z.string().regex(new RegExp("^0x[a-fA-F0-9]{40}$"))
1144
1108
  }).strict()
1145
1109
  }).strict(),
@@ -1161,45 +1125,61 @@ var Event = import_zod.z.union([
1161
1125
  }).strict(),
1162
1126
  import_zod.z.object({
1163
1127
  id: import_zod.z.any(),
1164
- event_type: import_zod.z.literal("protocol.flight.reviewed"),
1128
+ event_type: import_zod.z.literal("protocol.mission.paid"),
1165
1129
  timestamp: import_zod.z.any(),
1166
1130
  data: import_zod.z.object({
1131
+ recipient: import_zod.z.any(),
1167
1132
  flightId: import_zod.z.object({
1168
1133
  __type: import_zod.z.literal("bigint"),
1169
1134
  value: import_zod.z.string()
1170
1135
  }).transform((wire) => BigInt(wire.value)),
1171
- isApproved: import_zod.z.boolean(),
1172
- validationLogUri: import_zod.z.string(),
1173
- validator: import_zod.z.string(),
1174
- filesHash: import_zod.z.string(),
1175
- storageKey: import_zod.z.string(),
1176
1136
  missionId: import_zod.z.object({
1177
1137
  __type: import_zod.z.literal("bigint"),
1178
1138
  value: import_zod.z.string()
1139
+ }).transform((wire) => BigInt(wire.value)),
1140
+ vaultId: import_zod.z.object({
1141
+ __type: import_zod.z.literal("bigint"),
1142
+ value: import_zod.z.string()
1143
+ }).transform((wire) => BigInt(wire.value)),
1144
+ amount: import_zod.z.object({
1145
+ __type: import_zod.z.literal("bigint"),
1146
+ value: import_zod.z.string()
1179
1147
  }).transform((wire) => BigInt(wire.value))
1180
1148
  }).strict()
1181
1149
  }).strict(),
1182
1150
  import_zod.z.object({
1183
1151
  id: import_zod.z.any(),
1184
- event_type: import_zod.z.literal("internal.flight.reviewed"),
1152
+ event_type: import_zod.z.literal("protocol.flight.submitted"),
1185
1153
  timestamp: import_zod.z.any(),
1186
1154
  data: import_zod.z.object({
1187
- isApproved: import_zod.z.boolean(),
1188
1155
  storageKey: import_zod.z.string(),
1189
- provenanceDataVersion: import_zod.z.string(),
1190
- validationLogUri: import_zod.z.string(),
1191
- provenanceDataUri: import_zod.z.string(),
1192
- tokenId: import_zod.z.object({
1156
+ pilotAddress: import_zod.z.string(),
1157
+ flightManifestUri: import_zod.z.string(),
1158
+ missionId: import_zod.z.object({
1193
1159
  __type: import_zod.z.literal("bigint"),
1194
1160
  value: import_zod.z.string()
1195
- }).transform((wire) => BigInt(wire.value)),
1196
- missionId: import_zod.z.object({
1161
+ }).transform((wire) => BigInt(wire.value))
1162
+ }).strict()
1163
+ }).strict(),
1164
+ import_zod.z.object({
1165
+ id: import_zod.z.any(),
1166
+ event_type: import_zod.z.literal("protocol.flight.reviewed"),
1167
+ timestamp: import_zod.z.any(),
1168
+ data: import_zod.z.object({
1169
+ flightId: import_zod.z.object({
1197
1170
  __type: import_zod.z.literal("bigint"),
1198
1171
  value: import_zod.z.string()
1199
1172
  }).transform((wire) => BigInt(wire.value)),
1200
- validator: import_zod.z.any(),
1173
+ owner: import_zod.z.any(),
1174
+ isApproved: import_zod.z.boolean(),
1175
+ validationLogUri: import_zod.z.string(),
1176
+ validator: import_zod.z.string(),
1201
1177
  filesHash: import_zod.z.string(),
1202
- to: import_zod.z.any()
1178
+ storageKey: import_zod.z.string(),
1179
+ missionId: import_zod.z.object({
1180
+ __type: import_zod.z.literal("bigint"),
1181
+ value: import_zod.z.string()
1182
+ }).transform((wire) => BigInt(wire.value))
1203
1183
  }).strict()
1204
1184
  }).strict()
1205
1185
  ]);
@@ -1231,11 +1211,11 @@ __name(getSecretHeader, "getSecretHeader");
1231
1211
  // Annotate the CommonJS export names for ESM import in node:
1232
1212
  0 && (module.exports = {
1233
1213
  Event,
1214
+ apiControllerGetHello,
1234
1215
  apiTokenControllerCreateToken,
1235
1216
  apiTokenControllerDeleteToken,
1236
1217
  apiTokenControllerGetToken,
1237
1218
  apiTokenControllerUpdateToken,
1238
- appControllerGetHello,
1239
1219
  buildClientParams,
1240
1220
  conditionsControllerGetSunAltitudeTimeLimits,
1241
1221
  createClient,
@@ -1248,7 +1228,6 @@ __name(getSecretHeader, "getSecretHeader");
1248
1228
  jsonBodySerializer,
1249
1229
  keysControllerGetProvenanceCryptoKey,
1250
1230
  mergeHeaders,
1251
- missionsControllerClaimRewards,
1252
1231
  missionsControllerCreateMissions,
1253
1232
  missionsControllerUpdateMissions,
1254
1233
  parseWebhookEvent,
package/dist/index.mjs CHANGED
@@ -699,23 +699,6 @@ var apiTokenControllerUpdateTokenResponseTransformer = /* @__PURE__ */ __name(as
699
699
  data = updateApiTokenResponseDtoSchemaResponseTransformer(data);
700
700
  return data;
701
701
  }, "apiTokenControllerUpdateTokenResponseTransformer");
702
- var flightDtoSchemaResponseTransformer = /* @__PURE__ */ __name((data) => {
703
- data.token_id = BigInt(data.token_id.toString());
704
- data.mission_id = BigInt(data.mission_id.toString());
705
- return data;
706
- }, "flightDtoSchemaResponseTransformer");
707
- var flightsControllerGetFlightResponseTransformer = /* @__PURE__ */ __name(async (data) => {
708
- data = flightDtoSchemaResponseTransformer(data);
709
- return data;
710
- }, "flightsControllerGetFlightResponseTransformer");
711
- var validateFlightResponseDtoSchemaResponseTransformer = /* @__PURE__ */ __name((data) => {
712
- data.flightId = BigInt(data.flightId.toString());
713
- return data;
714
- }, "validateFlightResponseDtoSchemaResponseTransformer");
715
- var flightsControllerValidateFlightResponseTransformer = /* @__PURE__ */ __name(async (data) => {
716
- data = validateFlightResponseDtoSchemaResponseTransformer(data);
717
- return data;
718
- }, "flightsControllerValidateFlightResponseTransformer");
719
702
  var getTimeLimitsForSunAltitudeResponseSchemaResponseTransformer = /* @__PURE__ */ __name((data) => {
720
703
  data.OptimalSunAltitudePeriod.StartTime = new Date(data.OptimalSunAltitudePeriod.StartTime);
721
704
  data.OptimalSunAltitudePeriod.EndTime = new Date(data.OptimalSunAltitudePeriod.EndTime);
@@ -727,48 +710,22 @@ var conditionsControllerGetSunAltitudeTimeLimitsResponseTransformer = /* @__PURE
727
710
  data = getTimeLimitsForSunAltitudeResponseSchemaResponseTransformer(data);
728
711
  return data;
729
712
  }, "conditionsControllerGetSunAltitudeTimeLimitsResponseTransformer");
713
+ var validateFlightResponseDtoSchemaResponseTransformer = /* @__PURE__ */ __name((data) => {
714
+ data.flightId = BigInt(data.flightId.toString());
715
+ return data;
716
+ }, "validateFlightResponseDtoSchemaResponseTransformer");
717
+ var flightsControllerValidateFlightResponseTransformer = /* @__PURE__ */ __name(async (data) => {
718
+ data = validateFlightResponseDtoSchemaResponseTransformer(data);
719
+ return data;
720
+ }, "flightsControllerValidateFlightResponseTransformer");
730
721
 
731
722
  // src/client/sdk.gen.ts
732
- var appControllerGetHello = /* @__PURE__ */ __name((options) => {
723
+ var apiControllerGetHello = /* @__PURE__ */ __name((options) => {
733
724
  return (options?.client ?? client).get({
734
725
  url: "/",
735
726
  ...options
736
727
  });
737
- }, "appControllerGetHello");
738
- var keysControllerGetProvenanceCryptoKey = /* @__PURE__ */ __name((options) => {
739
- return (options?.client ?? client).get({
740
- url: "/keys",
741
- ...options
742
- });
743
- }, "keysControllerGetProvenanceCryptoKey");
744
- var quotesControllerCreateQuote = /* @__PURE__ */ __name((options) => {
745
- return (options.client ?? client).post({
746
- security: [
747
- {
748
- name: "x-api-token",
749
- type: "apiKey"
750
- }
751
- ],
752
- url: "/quotes",
753
- ...options,
754
- headers: {
755
- "Content-Type": "application/json",
756
- ...options.headers
757
- }
758
- });
759
- }, "quotesControllerCreateQuote");
760
- var quotesControllerGetQuote = /* @__PURE__ */ __name((options) => {
761
- return (options.client ?? client).get({
762
- security: [
763
- {
764
- name: "x-api-token",
765
- type: "apiKey"
766
- }
767
- ],
768
- url: "/quotes/{id}",
769
- ...options
770
- });
771
- }, "quotesControllerGetQuote");
728
+ }, "apiControllerGetHello");
772
729
  var apiTokenControllerCreateToken = /* @__PURE__ */ __name((options) => {
773
730
  return (options.client ?? client).post({
774
731
  security: [
@@ -826,36 +783,13 @@ var apiTokenControllerUpdateToken = /* @__PURE__ */ __name((options) => {
826
783
  }
827
784
  });
828
785
  }, "apiTokenControllerUpdateToken");
829
- var missionsControllerCreateMissions = /* @__PURE__ */ __name((options) => {
830
- return (options.client ?? client).post({
831
- url: "/missions",
832
- ...options,
833
- headers: {
834
- "Content-Type": "application/json",
835
- ...options.headers
836
- }
837
- });
838
- }, "missionsControllerCreateMissions");
839
- var missionsControllerUpdateMissions = /* @__PURE__ */ __name((options) => {
840
- return (options.client ?? client).put({
841
- url: "/missions",
842
- ...options,
843
- headers: {
844
- "Content-Type": "application/json",
845
- ...options.headers
846
- }
847
- });
848
- }, "missionsControllerUpdateMissions");
849
- var missionsControllerClaimRewards = /* @__PURE__ */ __name((options) => {
850
- return (options.client ?? client).post({
851
- url: "/missions/{id}/rewards",
852
- ...options,
853
- headers: {
854
- "Content-Type": "application/json",
855
- ...options.headers
856
- }
786
+ var conditionsControllerGetSunAltitudeTimeLimits = /* @__PURE__ */ __name((options) => {
787
+ return (options.client ?? client).get({
788
+ responseTransformer: conditionsControllerGetSunAltitudeTimeLimitsResponseTransformer,
789
+ url: "/conditions/sun-altitude",
790
+ ...options
857
791
  });
858
- }, "missionsControllerClaimRewards");
792
+ }, "conditionsControllerGetSunAltitudeTimeLimits");
859
793
  var flightsControllerGenerateStorageKey = /* @__PURE__ */ __name((options) => {
860
794
  return (options.client ?? client).get({
861
795
  security: [
@@ -876,7 +810,6 @@ var flightsControllerGetFlight = /* @__PURE__ */ __name((options) => {
876
810
  type: "apiKey"
877
811
  }
878
812
  ],
879
- responseTransformer: flightsControllerGetFlightResponseTransformer,
880
813
  url: "/flights/{flightId}",
881
814
  ...options
882
815
  });
@@ -914,13 +847,60 @@ var flightsControllerValidateFlight = /* @__PURE__ */ __name((options) => {
914
847
  }
915
848
  });
916
849
  }, "flightsControllerValidateFlight");
917
- var conditionsControllerGetSunAltitudeTimeLimits = /* @__PURE__ */ __name((options) => {
850
+ var keysControllerGetProvenanceCryptoKey = /* @__PURE__ */ __name((options) => {
851
+ return (options?.client ?? client).get({
852
+ url: "/keys",
853
+ ...options
854
+ });
855
+ }, "keysControllerGetProvenanceCryptoKey");
856
+ var missionsControllerCreateMissions = /* @__PURE__ */ __name((options) => {
857
+ return (options.client ?? client).post({
858
+ url: "/missions",
859
+ ...options,
860
+ headers: {
861
+ "Content-Type": "application/json",
862
+ ...options.headers
863
+ }
864
+ });
865
+ }, "missionsControllerCreateMissions");
866
+ var missionsControllerUpdateMissions = /* @__PURE__ */ __name((options) => {
867
+ return (options.client ?? client).put({
868
+ url: "/missions",
869
+ ...options,
870
+ headers: {
871
+ "Content-Type": "application/json",
872
+ ...options.headers
873
+ }
874
+ });
875
+ }, "missionsControllerUpdateMissions");
876
+ var quotesControllerCreateQuote = /* @__PURE__ */ __name((options) => {
877
+ return (options.client ?? client).post({
878
+ security: [
879
+ {
880
+ name: "x-api-token",
881
+ type: "apiKey"
882
+ }
883
+ ],
884
+ url: "/quotes",
885
+ ...options,
886
+ headers: {
887
+ "Content-Type": "application/json",
888
+ ...options.headers
889
+ }
890
+ });
891
+ }, "quotesControllerCreateQuote");
892
+ var quotesControllerGetQuote = /* @__PURE__ */ __name((options) => {
918
893
  return (options.client ?? client).get({
919
- responseTransformer: conditionsControllerGetSunAltitudeTimeLimitsResponseTransformer,
920
- url: "/conditions/sun-altitude",
894
+ security: [
895
+ {
896
+ name: "x-api-token",
897
+ type: "apiKey"
898
+ }
899
+ ],
900
+ url: "/quotes/{id}",
921
901
  ...options
922
902
  });
923
- }, "conditionsControllerGetSunAltitudeTimeLimits");
903
+ }, "quotesControllerGetQuote");
924
904
  var schemaControllerGetEventSchema = /* @__PURE__ */ __name((options) => {
925
905
  return (options?.client ?? client).get({
926
906
  url: "/schema/event",
@@ -1043,20 +1023,6 @@ var Event = z.union([
1043
1023
  message: z.string()
1044
1024
  }).strict()
1045
1025
  }).strict(),
1046
- z.object({
1047
- id: z.any(),
1048
- event_type: z.literal("protocol.flight.submitted"),
1049
- timestamp: z.any(),
1050
- data: z.object({
1051
- storageKey: z.string(),
1052
- pilotAddress: z.string(),
1053
- flightManifestUri: z.string(),
1054
- missionId: z.object({
1055
- __type: z.literal("bigint"),
1056
- value: z.string()
1057
- }).transform((wire) => BigInt(wire.value))
1058
- }).strict()
1059
- }).strict(),
1060
1026
  z.object({
1061
1027
  id: z.any(),
1062
1028
  event_type: z.literal("protocol.mission.created"),
@@ -1082,7 +1048,6 @@ var Event = z.union([
1082
1048
  captureEndTime: z.string().datetime({
1083
1049
  offset: true
1084
1050
  }),
1085
- detailsHash: z.string(),
1086
1051
  requestor: z.string().regex(new RegExp("^0x[a-fA-F0-9]{40}$"))
1087
1052
  }).strict()
1088
1053
  }).strict(),
@@ -1104,45 +1069,61 @@ var Event = z.union([
1104
1069
  }).strict(),
1105
1070
  z.object({
1106
1071
  id: z.any(),
1107
- event_type: z.literal("protocol.flight.reviewed"),
1072
+ event_type: z.literal("protocol.mission.paid"),
1108
1073
  timestamp: z.any(),
1109
1074
  data: z.object({
1075
+ recipient: z.any(),
1110
1076
  flightId: z.object({
1111
1077
  __type: z.literal("bigint"),
1112
1078
  value: z.string()
1113
1079
  }).transform((wire) => BigInt(wire.value)),
1114
- isApproved: z.boolean(),
1115
- validationLogUri: z.string(),
1116
- validator: z.string(),
1117
- filesHash: z.string(),
1118
- storageKey: z.string(),
1119
1080
  missionId: z.object({
1120
1081
  __type: z.literal("bigint"),
1121
1082
  value: z.string()
1083
+ }).transform((wire) => BigInt(wire.value)),
1084
+ vaultId: z.object({
1085
+ __type: z.literal("bigint"),
1086
+ value: z.string()
1087
+ }).transform((wire) => BigInt(wire.value)),
1088
+ amount: z.object({
1089
+ __type: z.literal("bigint"),
1090
+ value: z.string()
1122
1091
  }).transform((wire) => BigInt(wire.value))
1123
1092
  }).strict()
1124
1093
  }).strict(),
1125
1094
  z.object({
1126
1095
  id: z.any(),
1127
- event_type: z.literal("internal.flight.reviewed"),
1096
+ event_type: z.literal("protocol.flight.submitted"),
1128
1097
  timestamp: z.any(),
1129
1098
  data: z.object({
1130
- isApproved: z.boolean(),
1131
1099
  storageKey: z.string(),
1132
- provenanceDataVersion: z.string(),
1133
- validationLogUri: z.string(),
1134
- provenanceDataUri: z.string(),
1135
- tokenId: z.object({
1100
+ pilotAddress: z.string(),
1101
+ flightManifestUri: z.string(),
1102
+ missionId: z.object({
1136
1103
  __type: z.literal("bigint"),
1137
1104
  value: z.string()
1138
- }).transform((wire) => BigInt(wire.value)),
1139
- missionId: z.object({
1105
+ }).transform((wire) => BigInt(wire.value))
1106
+ }).strict()
1107
+ }).strict(),
1108
+ z.object({
1109
+ id: z.any(),
1110
+ event_type: z.literal("protocol.flight.reviewed"),
1111
+ timestamp: z.any(),
1112
+ data: z.object({
1113
+ flightId: z.object({
1140
1114
  __type: z.literal("bigint"),
1141
1115
  value: z.string()
1142
1116
  }).transform((wire) => BigInt(wire.value)),
1143
- validator: z.any(),
1117
+ owner: z.any(),
1118
+ isApproved: z.boolean(),
1119
+ validationLogUri: z.string(),
1120
+ validator: z.string(),
1144
1121
  filesHash: z.string(),
1145
- to: z.any()
1122
+ storageKey: z.string(),
1123
+ missionId: z.object({
1124
+ __type: z.literal("bigint"),
1125
+ value: z.string()
1126
+ }).transform((wire) => BigInt(wire.value))
1146
1127
  }).strict()
1147
1128
  }).strict()
1148
1129
  ]);
@@ -1173,11 +1154,11 @@ function getSecretHeader(headers) {
1173
1154
  __name(getSecretHeader, "getSecretHeader");
1174
1155
  export {
1175
1156
  Event,
1157
+ apiControllerGetHello,
1176
1158
  apiTokenControllerCreateToken,
1177
1159
  apiTokenControllerDeleteToken,
1178
1160
  apiTokenControllerGetToken,
1179
1161
  apiTokenControllerUpdateToken,
1180
- appControllerGetHello,
1181
1162
  buildClientParams,
1182
1163
  conditionsControllerGetSunAltitudeTimeLimits,
1183
1164
  createClient,
@@ -1190,7 +1171,6 @@ export {
1190
1171
  jsonBodySerializer,
1191
1172
  keysControllerGetProvenanceCryptoKey,
1192
1173
  mergeHeaders,
1193
- missionsControllerClaimRewards,
1194
1174
  missionsControllerCreateMissions,
1195
1175
  missionsControllerUpdateMissions,
1196
1176
  parseWebhookEvent,