@layer-drone/protocol 2.1.0 → 2.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/package.json +2 -1
- package/src/client/sdk.gen.ts +229 -0
- package/src/client/transformers.gen.ts +84 -0
- package/src/client/types.gen.ts +330 -15
- package/src/event/types.gen.ts +9 -0
- package/dist/index.d.mts +0 -7086
- package/dist/index.d.ts +0 -7086
- package/dist/index.js +0 -4046
- package/dist/index.mjs +0 -3858
package/dist/index.js
DELETED
|
@@ -1,4046 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
7
|
-
var __export = (target, all) => {
|
|
8
|
-
for (var name in all)
|
|
9
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
-
};
|
|
11
|
-
var __copyProps = (to, from, except, desc) => {
|
|
12
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
-
for (let key of __getOwnPropNames(from))
|
|
14
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
-
}
|
|
17
|
-
return to;
|
|
18
|
-
};
|
|
19
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
20
|
-
|
|
21
|
-
// src/index.ts
|
|
22
|
-
var index_exports = {};
|
|
23
|
-
__export(index_exports, {
|
|
24
|
-
Event: () => Event,
|
|
25
|
-
WEBHOOK_PREVIOUS_SECRET_EXPIRES_AT_HEADER: () => WEBHOOK_PREVIOUS_SECRET_EXPIRES_AT_HEADER,
|
|
26
|
-
WEBHOOK_PREVIOUS_SECRET_HEADER: () => WEBHOOK_PREVIOUS_SECRET_HEADER,
|
|
27
|
-
WEBHOOK_SECRET_HEADER: () => WEBHOOK_SECRET_HEADER,
|
|
28
|
-
alchemyControllerHandleWebhook0V1: () => alchemyControllerHandleWebhook0V1,
|
|
29
|
-
alchemyControllerHandleWebhook1: () => alchemyControllerHandleWebhook1,
|
|
30
|
-
apiControllerGetError0V1: () => apiControllerGetError0V1,
|
|
31
|
-
apiControllerGetError1: () => apiControllerGetError1,
|
|
32
|
-
apiControllerGetHello0V1: () => apiControllerGetHello0V1,
|
|
33
|
-
apiControllerGetHello1: () => apiControllerGetHello1,
|
|
34
|
-
apiTokenControllerCreateToken0V1: () => apiTokenControllerCreateToken0V1,
|
|
35
|
-
apiTokenControllerCreateToken1: () => apiTokenControllerCreateToken1,
|
|
36
|
-
apiTokenControllerDeleteToken0V1: () => apiTokenControllerDeleteToken0V1,
|
|
37
|
-
apiTokenControllerDeleteToken1: () => apiTokenControllerDeleteToken1,
|
|
38
|
-
apiTokenControllerGetToken0V1: () => apiTokenControllerGetToken0V1,
|
|
39
|
-
apiTokenControllerGetToken1: () => apiTokenControllerGetToken1,
|
|
40
|
-
apiTokenControllerUpdateToken0V1: () => apiTokenControllerUpdateToken0V1,
|
|
41
|
-
apiTokenControllerUpdateToken1: () => apiTokenControllerUpdateToken1,
|
|
42
|
-
backfillControllerTrigger0V1: () => backfillControllerTrigger0V1,
|
|
43
|
-
backfillControllerTrigger1: () => backfillControllerTrigger1,
|
|
44
|
-
buildClientParams: () => buildClientParams,
|
|
45
|
-
campaignsControllerCancelCampaignV2V2: () => campaignsControllerCancelCampaignV2V2,
|
|
46
|
-
campaignsControllerCreate0V1: () => campaignsControllerCreate0V1,
|
|
47
|
-
campaignsControllerCreate1: () => campaignsControllerCreate1,
|
|
48
|
-
campaignsControllerCreateCampaignV2V2: () => campaignsControllerCreateCampaignV2V2,
|
|
49
|
-
campaignsControllerDelete0V1: () => campaignsControllerDelete0V1,
|
|
50
|
-
campaignsControllerDelete1: () => campaignsControllerDelete1,
|
|
51
|
-
campaignsControllerGet0V1: () => campaignsControllerGet0V1,
|
|
52
|
-
campaignsControllerGet1: () => campaignsControllerGet1,
|
|
53
|
-
campaignsControllerGetCampaignV2V2: () => campaignsControllerGetCampaignV2V2,
|
|
54
|
-
campaignsControllerGetCampaignsV2V2: () => campaignsControllerGetCampaignsV2V2,
|
|
55
|
-
campaignsControllerGetMany0V1: () => campaignsControllerGetMany0V1,
|
|
56
|
-
campaignsControllerGetMany1: () => campaignsControllerGetMany1,
|
|
57
|
-
campaignsControllerUpdate0V1: () => campaignsControllerUpdate0V1,
|
|
58
|
-
campaignsControllerUpdate1: () => campaignsControllerUpdate1,
|
|
59
|
-
campaignsControllerUpdateCampaignV2V2: () => campaignsControllerUpdateCampaignV2V2,
|
|
60
|
-
conditionsControllerGetSunAltitudeTimeLimits0V1: () => conditionsControllerGetSunAltitudeTimeLimits0V1,
|
|
61
|
-
conditionsControllerGetSunAltitudeTimeLimits1: () => conditionsControllerGetSunAltitudeTimeLimits1,
|
|
62
|
-
contractsControllerCreateContract0V1: () => contractsControllerCreateContract0V1,
|
|
63
|
-
contractsControllerCreateContract1: () => contractsControllerCreateContract1,
|
|
64
|
-
contractsControllerDeleteContract0V1: () => contractsControllerDeleteContract0V1,
|
|
65
|
-
contractsControllerDeleteContract1: () => contractsControllerDeleteContract1,
|
|
66
|
-
contractsControllerGetAllContracts0V1: () => contractsControllerGetAllContracts0V1,
|
|
67
|
-
contractsControllerGetAllContracts1: () => contractsControllerGetAllContracts1,
|
|
68
|
-
contractsControllerGetContract0V1: () => contractsControllerGetContract0V1,
|
|
69
|
-
contractsControllerGetContract1: () => contractsControllerGetContract1,
|
|
70
|
-
contractsControllerUpdateContract0V1: () => contractsControllerUpdateContract0V1,
|
|
71
|
-
contractsControllerUpdateContract1: () => contractsControllerUpdateContract1,
|
|
72
|
-
createClient: () => createClient,
|
|
73
|
-
createConfig: () => createConfig,
|
|
74
|
-
dlqRedriverControllerRedriveDlq0V1: () => dlqRedriverControllerRedriveDlq0V1,
|
|
75
|
-
dlqRedriverControllerRedriveDlq1: () => dlqRedriverControllerRedriveDlq1,
|
|
76
|
-
eventProcessorFlightReviewsSyncControllerResyncFlightReviews0V1: () => eventProcessorFlightReviewsSyncControllerResyncFlightReviews0V1,
|
|
77
|
-
eventProcessorFlightReviewsSyncControllerResyncFlightReviews1: () => eventProcessorFlightReviewsSyncControllerResyncFlightReviews1,
|
|
78
|
-
eventProcessorMissionsSyncControllerResyncMissions0V1: () => eventProcessorMissionsSyncControllerResyncMissions0V1,
|
|
79
|
-
eventProcessorMissionsSyncControllerResyncMissions1: () => eventProcessorMissionsSyncControllerResyncMissions1,
|
|
80
|
-
flightPlansControllerCreate0V1: () => flightPlansControllerCreate0V1,
|
|
81
|
-
flightPlansControllerCreate1: () => flightPlansControllerCreate1,
|
|
82
|
-
flightPlansControllerCreateV2V2: () => flightPlansControllerCreateV2V2,
|
|
83
|
-
flightPlansControllerExpandV2V2: () => flightPlansControllerExpandV2V2,
|
|
84
|
-
flightPlansControllerGet0V1: () => flightPlansControllerGet0V1,
|
|
85
|
-
flightPlansControllerGet1: () => flightPlansControllerGet1,
|
|
86
|
-
flightPlansControllerGetMany0V1: () => flightPlansControllerGetMany0V1,
|
|
87
|
-
flightPlansControllerGetMany1: () => flightPlansControllerGetMany1,
|
|
88
|
-
flightPlansControllerGetManyV2V2: () => flightPlansControllerGetManyV2V2,
|
|
89
|
-
flightPlansControllerGetV2V2: () => flightPlansControllerGetV2V2,
|
|
90
|
-
flightPlansControllerUpdateV2V2: () => flightPlansControllerUpdateV2V2,
|
|
91
|
-
flightReviewsControllerGetFlightReview0V1: () => flightReviewsControllerGetFlightReview0V1,
|
|
92
|
-
flightReviewsControllerGetFlightReview1: () => flightReviewsControllerGetFlightReview1,
|
|
93
|
-
flightReviewsControllerGetFlightReviews0V1: () => flightReviewsControllerGetFlightReviews0V1,
|
|
94
|
-
flightReviewsControllerGetFlightReviews1: () => flightReviewsControllerGetFlightReviews1,
|
|
95
|
-
flightsControllerCreateFlightV2V2: () => flightsControllerCreateFlightV2V2,
|
|
96
|
-
flightsControllerCreatePresignedUrls0V1: () => flightsControllerCreatePresignedUrls0V1,
|
|
97
|
-
flightsControllerCreatePresignedUrls1: () => flightsControllerCreatePresignedUrls1,
|
|
98
|
-
flightsControllerGenerateStorageKey0V1: () => flightsControllerGenerateStorageKey0V1,
|
|
99
|
-
flightsControllerGenerateStorageKey1: () => flightsControllerGenerateStorageKey1,
|
|
100
|
-
flightsControllerGetExpectedImagesV2V2: () => flightsControllerGetExpectedImagesV2V2,
|
|
101
|
-
flightsControllerGetFlight0V1: () => flightsControllerGetFlight0V1,
|
|
102
|
-
flightsControllerGetFlight1: () => flightsControllerGetFlight1,
|
|
103
|
-
flightsControllerGetFlightV2V2: () => flightsControllerGetFlightV2V2,
|
|
104
|
-
flightsControllerGetFlightsV2V2: () => flightsControllerGetFlightsV2V2,
|
|
105
|
-
flightsControllerGetProvenanceKeyV2V2: () => flightsControllerGetProvenanceKeyV2V2,
|
|
106
|
-
flightsControllerGetProvenanceUploadUrlV2V2: () => flightsControllerGetProvenanceUploadUrlV2V2,
|
|
107
|
-
flightsControllerGetReviewV2V2: () => flightsControllerGetReviewV2V2,
|
|
108
|
-
flightsControllerImageUploadUrlsV2V2: () => flightsControllerImageUploadUrlsV2V2,
|
|
109
|
-
flightsControllerRequestReviewV2V2: () => flightsControllerRequestReviewV2V2,
|
|
110
|
-
flightsControllerSubmitProvenanceV2V2: () => flightsControllerSubmitProvenanceV2V2,
|
|
111
|
-
flightsControllerValidateFlight0V1: () => flightsControllerValidateFlight0V1,
|
|
112
|
-
flightsControllerValidateFlight1: () => flightsControllerValidateFlight1,
|
|
113
|
-
formDataBodySerializer: () => formDataBodySerializer,
|
|
114
|
-
getProposal: () => getProposal,
|
|
115
|
-
inboundWebhookConfigsControllerCreate0V1: () => inboundWebhookConfigsControllerCreate0V1,
|
|
116
|
-
inboundWebhookConfigsControllerCreate1: () => inboundWebhookConfigsControllerCreate1,
|
|
117
|
-
inboundWebhookConfigsControllerDelete0V1: () => inboundWebhookConfigsControllerDelete0V1,
|
|
118
|
-
inboundWebhookConfigsControllerDelete1: () => inboundWebhookConfigsControllerDelete1,
|
|
119
|
-
inboundWebhookConfigsControllerGet0V1: () => inboundWebhookConfigsControllerGet0V1,
|
|
120
|
-
inboundWebhookConfigsControllerGet1: () => inboundWebhookConfigsControllerGet1,
|
|
121
|
-
inboundWebhookConfigsControllerGetMany0V1: () => inboundWebhookConfigsControllerGetMany0V1,
|
|
122
|
-
inboundWebhookConfigsControllerGetMany1: () => inboundWebhookConfigsControllerGetMany1,
|
|
123
|
-
inboundWebhookConfigsControllerUpdate0V1: () => inboundWebhookConfigsControllerUpdate0V1,
|
|
124
|
-
inboundWebhookConfigsControllerUpdate1: () => inboundWebhookConfigsControllerUpdate1,
|
|
125
|
-
jsonBodySerializer: () => jsonBodySerializer,
|
|
126
|
-
keysControllerGetProvenanceCryptoKey0V1: () => keysControllerGetProvenanceCryptoKey0V1,
|
|
127
|
-
keysControllerGetProvenanceCryptoKey1: () => keysControllerGetProvenanceCryptoKey1,
|
|
128
|
-
listProposals: () => listProposals,
|
|
129
|
-
mergeHeaders: () => mergeHeaders,
|
|
130
|
-
missionsControllerCancelMissionV2V2: () => missionsControllerCancelMissionV2V2,
|
|
131
|
-
missionsControllerCreateMissions0V1: () => missionsControllerCreateMissions0V1,
|
|
132
|
-
missionsControllerCreateMissions1: () => missionsControllerCreateMissions1,
|
|
133
|
-
missionsControllerCreateMissionsV2V2: () => missionsControllerCreateMissionsV2V2,
|
|
134
|
-
missionsControllerGetMission0V1: () => missionsControllerGetMission0V1,
|
|
135
|
-
missionsControllerGetMission1: () => missionsControllerGetMission1,
|
|
136
|
-
missionsControllerGetMissionV2V2: () => missionsControllerGetMissionV2V2,
|
|
137
|
-
missionsControllerGetMissions0V1: () => missionsControllerGetMissions0V1,
|
|
138
|
-
missionsControllerGetMissions1: () => missionsControllerGetMissions1,
|
|
139
|
-
missionsControllerGetMissionsV2V2: () => missionsControllerGetMissionsV2V2,
|
|
140
|
-
missionsControllerRepriceMissions0V1: () => missionsControllerRepriceMissions0V1,
|
|
141
|
-
missionsControllerRepriceMissions1: () => missionsControllerRepriceMissions1,
|
|
142
|
-
missionsControllerRetryMissionV2V2: () => missionsControllerRetryMissionV2V2,
|
|
143
|
-
missionsControllerUpdateMissionV2V2: () => missionsControllerUpdateMissionV2V2,
|
|
144
|
-
missionsControllerUpdateMissions0V1: () => missionsControllerUpdateMissions0V1,
|
|
145
|
-
missionsControllerUpdateMissions1: () => missionsControllerUpdateMissions1,
|
|
146
|
-
parseWebhookEvent: () => parseWebhookEvent,
|
|
147
|
-
protocolTriggersApiControllerTriggerMissionClose0V1: () => protocolTriggersApiControllerTriggerMissionClose0V1,
|
|
148
|
-
protocolTriggersApiControllerTriggerMissionClose1: () => protocolTriggersApiControllerTriggerMissionClose1,
|
|
149
|
-
protocolTriggersApiControllerTriggerPayout0V1: () => protocolTriggersApiControllerTriggerPayout0V1,
|
|
150
|
-
protocolTriggersApiControllerTriggerPayout1: () => protocolTriggersApiControllerTriggerPayout1,
|
|
151
|
-
quotesControllerCreateQuote0V1: () => quotesControllerCreateQuote0V1,
|
|
152
|
-
quotesControllerCreateQuote1: () => quotesControllerCreateQuote1,
|
|
153
|
-
quotesControllerGetQuote0V1: () => quotesControllerGetQuote0V1,
|
|
154
|
-
quotesControllerGetQuote1: () => quotesControllerGetQuote1,
|
|
155
|
-
reviewProposal: () => reviewProposal,
|
|
156
|
-
rewardsControllerListRewardsV2V2: () => rewardsControllerListRewardsV2V2,
|
|
157
|
-
submitProposal: () => submitProposal,
|
|
158
|
-
urlSearchParamsBodySerializer: () => urlSearchParamsBodySerializer,
|
|
159
|
-
vaultsControllerCreateVaults0V1: () => vaultsControllerCreateVaults0V1,
|
|
160
|
-
vaultsControllerCreateVaults1: () => vaultsControllerCreateVaults1,
|
|
161
|
-
webhooksControllerCreate0V1: () => webhooksControllerCreate0V1,
|
|
162
|
-
webhooksControllerCreate1: () => webhooksControllerCreate1,
|
|
163
|
-
webhooksControllerDelete0V1: () => webhooksControllerDelete0V1,
|
|
164
|
-
webhooksControllerDelete1: () => webhooksControllerDelete1,
|
|
165
|
-
webhooksControllerGet0V1: () => webhooksControllerGet0V1,
|
|
166
|
-
webhooksControllerGet1: () => webhooksControllerGet1,
|
|
167
|
-
webhooksControllerGetMany0V1: () => webhooksControllerGetMany0V1,
|
|
168
|
-
webhooksControllerGetMany1: () => webhooksControllerGetMany1,
|
|
169
|
-
webhooksControllerGetStatus0V1: () => webhooksControllerGetStatus0V1,
|
|
170
|
-
webhooksControllerGetStatus1: () => webhooksControllerGetStatus1,
|
|
171
|
-
webhooksControllerRegenerateSecret0V1: () => webhooksControllerRegenerateSecret0V1,
|
|
172
|
-
webhooksControllerRegenerateSecret1: () => webhooksControllerRegenerateSecret1,
|
|
173
|
-
webhooksControllerTest0V1: () => webhooksControllerTest0V1,
|
|
174
|
-
webhooksControllerTest1: () => webhooksControllerTest1,
|
|
175
|
-
webhooksControllerUpdate0V1: () => webhooksControllerUpdate0V1,
|
|
176
|
-
webhooksControllerUpdate1: () => webhooksControllerUpdate1,
|
|
177
|
-
zonesControllerCreateZone0V1: () => zonesControllerCreateZone0V1,
|
|
178
|
-
zonesControllerCreateZone1: () => zonesControllerCreateZone1,
|
|
179
|
-
zonesControllerCreateZonesV2V2: () => zonesControllerCreateZonesV2V2,
|
|
180
|
-
zonesControllerDeleteZone0V1: () => zonesControllerDeleteZone0V1,
|
|
181
|
-
zonesControllerDeleteZone1: () => zonesControllerDeleteZone1,
|
|
182
|
-
zonesControllerGetZone0V1: () => zonesControllerGetZone0V1,
|
|
183
|
-
zonesControllerGetZone1: () => zonesControllerGetZone1,
|
|
184
|
-
zonesControllerGetZoneV2V2: () => zonesControllerGetZoneV2V2,
|
|
185
|
-
zonesControllerUpdateZone0V1: () => zonesControllerUpdateZone0V1,
|
|
186
|
-
zonesControllerUpdateZone1: () => zonesControllerUpdateZone1,
|
|
187
|
-
zonesControllerUpdateZoneV2V2: () => zonesControllerUpdateZoneV2V2
|
|
188
|
-
});
|
|
189
|
-
module.exports = __toCommonJS(index_exports);
|
|
190
|
-
|
|
191
|
-
// src/client/core/bodySerializer.ts
|
|
192
|
-
var serializeFormDataPair = /* @__PURE__ */ __name((data, key, value) => {
|
|
193
|
-
if (typeof value === "string" || value instanceof Blob) {
|
|
194
|
-
data.append(key, value);
|
|
195
|
-
} else {
|
|
196
|
-
data.append(key, JSON.stringify(value));
|
|
197
|
-
}
|
|
198
|
-
}, "serializeFormDataPair");
|
|
199
|
-
var serializeUrlSearchParamsPair = /* @__PURE__ */ __name((data, key, value) => {
|
|
200
|
-
if (typeof value === "string") {
|
|
201
|
-
data.append(key, value);
|
|
202
|
-
} else {
|
|
203
|
-
data.append(key, JSON.stringify(value));
|
|
204
|
-
}
|
|
205
|
-
}, "serializeUrlSearchParamsPair");
|
|
206
|
-
var formDataBodySerializer = {
|
|
207
|
-
bodySerializer: /* @__PURE__ */ __name((body) => {
|
|
208
|
-
const data = new FormData();
|
|
209
|
-
Object.entries(body).forEach(([key, value]) => {
|
|
210
|
-
if (value === void 0 || value === null) {
|
|
211
|
-
return;
|
|
212
|
-
}
|
|
213
|
-
if (Array.isArray(value)) {
|
|
214
|
-
value.forEach((v) => serializeFormDataPair(data, key, v));
|
|
215
|
-
} else {
|
|
216
|
-
serializeFormDataPair(data, key, value);
|
|
217
|
-
}
|
|
218
|
-
});
|
|
219
|
-
return data;
|
|
220
|
-
}, "bodySerializer")
|
|
221
|
-
};
|
|
222
|
-
var jsonBodySerializer = {
|
|
223
|
-
bodySerializer: /* @__PURE__ */ __name((body) => JSON.stringify(body, (key, value) => typeof value === "bigint" ? value.toString() : value), "bodySerializer")
|
|
224
|
-
};
|
|
225
|
-
var urlSearchParamsBodySerializer = {
|
|
226
|
-
bodySerializer: /* @__PURE__ */ __name((body) => {
|
|
227
|
-
const data = new URLSearchParams();
|
|
228
|
-
Object.entries(body).forEach(([key, value]) => {
|
|
229
|
-
if (value === void 0 || value === null) {
|
|
230
|
-
return;
|
|
231
|
-
}
|
|
232
|
-
if (Array.isArray(value)) {
|
|
233
|
-
value.forEach((v) => serializeUrlSearchParamsPair(data, key, v));
|
|
234
|
-
} else {
|
|
235
|
-
serializeUrlSearchParamsPair(data, key, value);
|
|
236
|
-
}
|
|
237
|
-
});
|
|
238
|
-
return data.toString();
|
|
239
|
-
}, "bodySerializer")
|
|
240
|
-
};
|
|
241
|
-
|
|
242
|
-
// src/client/core/params.ts
|
|
243
|
-
var extraPrefixesMap = {
|
|
244
|
-
$body_: "body",
|
|
245
|
-
$headers_: "headers",
|
|
246
|
-
$path_: "path",
|
|
247
|
-
$query_: "query"
|
|
248
|
-
};
|
|
249
|
-
var extraPrefixes = Object.entries(extraPrefixesMap);
|
|
250
|
-
var buildKeyMap = /* @__PURE__ */ __name((fields, map) => {
|
|
251
|
-
if (!map) {
|
|
252
|
-
map = /* @__PURE__ */ new Map();
|
|
253
|
-
}
|
|
254
|
-
for (const config of fields) {
|
|
255
|
-
if ("in" in config) {
|
|
256
|
-
if (config.key) {
|
|
257
|
-
map.set(config.key, {
|
|
258
|
-
in: config.in,
|
|
259
|
-
map: config.map
|
|
260
|
-
});
|
|
261
|
-
}
|
|
262
|
-
} else if (config.args) {
|
|
263
|
-
buildKeyMap(config.args, map);
|
|
264
|
-
}
|
|
265
|
-
}
|
|
266
|
-
return map;
|
|
267
|
-
}, "buildKeyMap");
|
|
268
|
-
var stripEmptySlots = /* @__PURE__ */ __name((params) => {
|
|
269
|
-
for (const [slot, value] of Object.entries(params)) {
|
|
270
|
-
if (value && typeof value === "object" && !Object.keys(value).length) {
|
|
271
|
-
delete params[slot];
|
|
272
|
-
}
|
|
273
|
-
}
|
|
274
|
-
}, "stripEmptySlots");
|
|
275
|
-
var buildClientParams = /* @__PURE__ */ __name((args, fields) => {
|
|
276
|
-
const params = {
|
|
277
|
-
body: {},
|
|
278
|
-
headers: {},
|
|
279
|
-
path: {},
|
|
280
|
-
query: {}
|
|
281
|
-
};
|
|
282
|
-
const map = buildKeyMap(fields);
|
|
283
|
-
let config;
|
|
284
|
-
for (const [index, arg] of args.entries()) {
|
|
285
|
-
if (fields[index]) {
|
|
286
|
-
config = fields[index];
|
|
287
|
-
}
|
|
288
|
-
if (!config) {
|
|
289
|
-
continue;
|
|
290
|
-
}
|
|
291
|
-
if ("in" in config) {
|
|
292
|
-
if (config.key) {
|
|
293
|
-
const field = map.get(config.key);
|
|
294
|
-
const name = field.map || config.key;
|
|
295
|
-
params[field.in][name] = arg;
|
|
296
|
-
} else {
|
|
297
|
-
params.body = arg;
|
|
298
|
-
}
|
|
299
|
-
} else {
|
|
300
|
-
for (const [key, value] of Object.entries(arg ?? {})) {
|
|
301
|
-
const field = map.get(key);
|
|
302
|
-
if (field) {
|
|
303
|
-
const name = field.map || key;
|
|
304
|
-
params[field.in][name] = value;
|
|
305
|
-
} else {
|
|
306
|
-
const extra = extraPrefixes.find(([prefix]) => key.startsWith(prefix));
|
|
307
|
-
if (extra) {
|
|
308
|
-
const [prefix, slot] = extra;
|
|
309
|
-
params[slot][key.slice(prefix.length)] = value;
|
|
310
|
-
} else {
|
|
311
|
-
for (const [slot, allowed] of Object.entries(config.allowExtra ?? {})) {
|
|
312
|
-
if (allowed) {
|
|
313
|
-
params[slot][key] = value;
|
|
314
|
-
break;
|
|
315
|
-
}
|
|
316
|
-
}
|
|
317
|
-
}
|
|
318
|
-
}
|
|
319
|
-
}
|
|
320
|
-
}
|
|
321
|
-
}
|
|
322
|
-
stripEmptySlots(params);
|
|
323
|
-
return params;
|
|
324
|
-
}, "buildClientParams");
|
|
325
|
-
|
|
326
|
-
// src/client/core/auth.ts
|
|
327
|
-
var getAuthToken = /* @__PURE__ */ __name(async (auth, callback) => {
|
|
328
|
-
const token = typeof callback === "function" ? await callback(auth) : callback;
|
|
329
|
-
if (!token) {
|
|
330
|
-
return;
|
|
331
|
-
}
|
|
332
|
-
if (auth.scheme === "bearer") {
|
|
333
|
-
return `Bearer ${token}`;
|
|
334
|
-
}
|
|
335
|
-
if (auth.scheme === "basic") {
|
|
336
|
-
return `Basic ${btoa(token)}`;
|
|
337
|
-
}
|
|
338
|
-
return token;
|
|
339
|
-
}, "getAuthToken");
|
|
340
|
-
|
|
341
|
-
// src/client/core/pathSerializer.ts
|
|
342
|
-
var separatorArrayExplode = /* @__PURE__ */ __name((style) => {
|
|
343
|
-
switch (style) {
|
|
344
|
-
case "label":
|
|
345
|
-
return ".";
|
|
346
|
-
case "matrix":
|
|
347
|
-
return ";";
|
|
348
|
-
case "simple":
|
|
349
|
-
return ",";
|
|
350
|
-
default:
|
|
351
|
-
return "&";
|
|
352
|
-
}
|
|
353
|
-
}, "separatorArrayExplode");
|
|
354
|
-
var separatorArrayNoExplode = /* @__PURE__ */ __name((style) => {
|
|
355
|
-
switch (style) {
|
|
356
|
-
case "form":
|
|
357
|
-
return ",";
|
|
358
|
-
case "pipeDelimited":
|
|
359
|
-
return "|";
|
|
360
|
-
case "spaceDelimited":
|
|
361
|
-
return "%20";
|
|
362
|
-
default:
|
|
363
|
-
return ",";
|
|
364
|
-
}
|
|
365
|
-
}, "separatorArrayNoExplode");
|
|
366
|
-
var separatorObjectExplode = /* @__PURE__ */ __name((style) => {
|
|
367
|
-
switch (style) {
|
|
368
|
-
case "label":
|
|
369
|
-
return ".";
|
|
370
|
-
case "matrix":
|
|
371
|
-
return ";";
|
|
372
|
-
case "simple":
|
|
373
|
-
return ",";
|
|
374
|
-
default:
|
|
375
|
-
return "&";
|
|
376
|
-
}
|
|
377
|
-
}, "separatorObjectExplode");
|
|
378
|
-
var serializeArrayParam = /* @__PURE__ */ __name(({ allowReserved, explode, name, style, value }) => {
|
|
379
|
-
if (!explode) {
|
|
380
|
-
const joinedValues2 = (allowReserved ? value : value.map((v) => encodeURIComponent(v))).join(separatorArrayNoExplode(style));
|
|
381
|
-
switch (style) {
|
|
382
|
-
case "label":
|
|
383
|
-
return `.${joinedValues2}`;
|
|
384
|
-
case "matrix":
|
|
385
|
-
return `;${name}=${joinedValues2}`;
|
|
386
|
-
case "simple":
|
|
387
|
-
return joinedValues2;
|
|
388
|
-
default:
|
|
389
|
-
return `${name}=${joinedValues2}`;
|
|
390
|
-
}
|
|
391
|
-
}
|
|
392
|
-
const separator = separatorArrayExplode(style);
|
|
393
|
-
const joinedValues = value.map((v) => {
|
|
394
|
-
if (style === "label" || style === "simple") {
|
|
395
|
-
return allowReserved ? v : encodeURIComponent(v);
|
|
396
|
-
}
|
|
397
|
-
return serializePrimitiveParam({
|
|
398
|
-
allowReserved,
|
|
399
|
-
name,
|
|
400
|
-
value: v
|
|
401
|
-
});
|
|
402
|
-
}).join(separator);
|
|
403
|
-
return style === "label" || style === "matrix" ? separator + joinedValues : joinedValues;
|
|
404
|
-
}, "serializeArrayParam");
|
|
405
|
-
var serializePrimitiveParam = /* @__PURE__ */ __name(({ allowReserved, name, value }) => {
|
|
406
|
-
if (value === void 0 || value === null) {
|
|
407
|
-
return "";
|
|
408
|
-
}
|
|
409
|
-
if (typeof value === "object") {
|
|
410
|
-
throw new Error("Deeply-nested arrays/objects aren\u2019t supported. Provide your own `querySerializer()` to handle these.");
|
|
411
|
-
}
|
|
412
|
-
return `${name}=${allowReserved ? value : encodeURIComponent(value)}`;
|
|
413
|
-
}, "serializePrimitiveParam");
|
|
414
|
-
var serializeObjectParam = /* @__PURE__ */ __name(({ allowReserved, explode, name, style, value, valueOnly }) => {
|
|
415
|
-
if (value instanceof Date) {
|
|
416
|
-
return valueOnly ? value.toISOString() : `${name}=${value.toISOString()}`;
|
|
417
|
-
}
|
|
418
|
-
if (style !== "deepObject" && !explode) {
|
|
419
|
-
let values = [];
|
|
420
|
-
Object.entries(value).forEach(([key, v]) => {
|
|
421
|
-
values = [
|
|
422
|
-
...values,
|
|
423
|
-
key,
|
|
424
|
-
allowReserved ? v : encodeURIComponent(v)
|
|
425
|
-
];
|
|
426
|
-
});
|
|
427
|
-
const joinedValues2 = values.join(",");
|
|
428
|
-
switch (style) {
|
|
429
|
-
case "form":
|
|
430
|
-
return `${name}=${joinedValues2}`;
|
|
431
|
-
case "label":
|
|
432
|
-
return `.${joinedValues2}`;
|
|
433
|
-
case "matrix":
|
|
434
|
-
return `;${name}=${joinedValues2}`;
|
|
435
|
-
default:
|
|
436
|
-
return joinedValues2;
|
|
437
|
-
}
|
|
438
|
-
}
|
|
439
|
-
const separator = separatorObjectExplode(style);
|
|
440
|
-
const joinedValues = Object.entries(value).map(([key, v]) => serializePrimitiveParam({
|
|
441
|
-
allowReserved,
|
|
442
|
-
name: style === "deepObject" ? `${name}[${key}]` : key,
|
|
443
|
-
value: v
|
|
444
|
-
})).join(separator);
|
|
445
|
-
return style === "label" || style === "matrix" ? separator + joinedValues : joinedValues;
|
|
446
|
-
}, "serializeObjectParam");
|
|
447
|
-
|
|
448
|
-
// src/client/client/utils.ts
|
|
449
|
-
var PATH_PARAM_RE = /\{[^{}]+\}/g;
|
|
450
|
-
var defaultPathSerializer = /* @__PURE__ */ __name(({ path, url: _url }) => {
|
|
451
|
-
let url = _url;
|
|
452
|
-
const matches = _url.match(PATH_PARAM_RE);
|
|
453
|
-
if (matches) {
|
|
454
|
-
for (const match of matches) {
|
|
455
|
-
let explode = false;
|
|
456
|
-
let name = match.substring(1, match.length - 1);
|
|
457
|
-
let style = "simple";
|
|
458
|
-
if (name.endsWith("*")) {
|
|
459
|
-
explode = true;
|
|
460
|
-
name = name.substring(0, name.length - 1);
|
|
461
|
-
}
|
|
462
|
-
if (name.startsWith(".")) {
|
|
463
|
-
name = name.substring(1);
|
|
464
|
-
style = "label";
|
|
465
|
-
} else if (name.startsWith(";")) {
|
|
466
|
-
name = name.substring(1);
|
|
467
|
-
style = "matrix";
|
|
468
|
-
}
|
|
469
|
-
const value = path[name];
|
|
470
|
-
if (value === void 0 || value === null) {
|
|
471
|
-
continue;
|
|
472
|
-
}
|
|
473
|
-
if (Array.isArray(value)) {
|
|
474
|
-
url = url.replace(match, serializeArrayParam({
|
|
475
|
-
explode,
|
|
476
|
-
name,
|
|
477
|
-
style,
|
|
478
|
-
value
|
|
479
|
-
}));
|
|
480
|
-
continue;
|
|
481
|
-
}
|
|
482
|
-
if (typeof value === "object") {
|
|
483
|
-
url = url.replace(match, serializeObjectParam({
|
|
484
|
-
explode,
|
|
485
|
-
name,
|
|
486
|
-
style,
|
|
487
|
-
value,
|
|
488
|
-
valueOnly: true
|
|
489
|
-
}));
|
|
490
|
-
continue;
|
|
491
|
-
}
|
|
492
|
-
if (style === "matrix") {
|
|
493
|
-
url = url.replace(match, `;${serializePrimitiveParam({
|
|
494
|
-
name,
|
|
495
|
-
value
|
|
496
|
-
})}`);
|
|
497
|
-
continue;
|
|
498
|
-
}
|
|
499
|
-
const replaceValue = encodeURIComponent(style === "label" ? `.${value}` : value);
|
|
500
|
-
url = url.replace(match, replaceValue);
|
|
501
|
-
}
|
|
502
|
-
}
|
|
503
|
-
return url;
|
|
504
|
-
}, "defaultPathSerializer");
|
|
505
|
-
var createQuerySerializer = /* @__PURE__ */ __name(({ allowReserved, array, object } = {}) => {
|
|
506
|
-
const querySerializer = /* @__PURE__ */ __name((queryParams) => {
|
|
507
|
-
const search = [];
|
|
508
|
-
if (queryParams && typeof queryParams === "object") {
|
|
509
|
-
for (const name in queryParams) {
|
|
510
|
-
const value = queryParams[name];
|
|
511
|
-
if (value === void 0 || value === null) {
|
|
512
|
-
continue;
|
|
513
|
-
}
|
|
514
|
-
if (Array.isArray(value)) {
|
|
515
|
-
const serializedArray = serializeArrayParam({
|
|
516
|
-
allowReserved,
|
|
517
|
-
explode: true,
|
|
518
|
-
name,
|
|
519
|
-
style: "form",
|
|
520
|
-
value,
|
|
521
|
-
...array
|
|
522
|
-
});
|
|
523
|
-
if (serializedArray) search.push(serializedArray);
|
|
524
|
-
} else if (typeof value === "object") {
|
|
525
|
-
const serializedObject = serializeObjectParam({
|
|
526
|
-
allowReserved,
|
|
527
|
-
explode: true,
|
|
528
|
-
name,
|
|
529
|
-
style: "deepObject",
|
|
530
|
-
value,
|
|
531
|
-
...object
|
|
532
|
-
});
|
|
533
|
-
if (serializedObject) search.push(serializedObject);
|
|
534
|
-
} else {
|
|
535
|
-
const serializedPrimitive = serializePrimitiveParam({
|
|
536
|
-
allowReserved,
|
|
537
|
-
name,
|
|
538
|
-
value
|
|
539
|
-
});
|
|
540
|
-
if (serializedPrimitive) search.push(serializedPrimitive);
|
|
541
|
-
}
|
|
542
|
-
}
|
|
543
|
-
}
|
|
544
|
-
return search.join("&");
|
|
545
|
-
}, "querySerializer");
|
|
546
|
-
return querySerializer;
|
|
547
|
-
}, "createQuerySerializer");
|
|
548
|
-
var getParseAs = /* @__PURE__ */ __name((contentType) => {
|
|
549
|
-
if (!contentType) {
|
|
550
|
-
return "stream";
|
|
551
|
-
}
|
|
552
|
-
const cleanContent = contentType.split(";")[0]?.trim();
|
|
553
|
-
if (!cleanContent) {
|
|
554
|
-
return;
|
|
555
|
-
}
|
|
556
|
-
if (cleanContent.startsWith("application/json") || cleanContent.endsWith("+json")) {
|
|
557
|
-
return "json";
|
|
558
|
-
}
|
|
559
|
-
if (cleanContent === "multipart/form-data") {
|
|
560
|
-
return "formData";
|
|
561
|
-
}
|
|
562
|
-
if ([
|
|
563
|
-
"application/",
|
|
564
|
-
"audio/",
|
|
565
|
-
"image/",
|
|
566
|
-
"video/"
|
|
567
|
-
].some((type) => cleanContent.startsWith(type))) {
|
|
568
|
-
return "blob";
|
|
569
|
-
}
|
|
570
|
-
if (cleanContent.startsWith("text/")) {
|
|
571
|
-
return "text";
|
|
572
|
-
}
|
|
573
|
-
}, "getParseAs");
|
|
574
|
-
var setAuthParams = /* @__PURE__ */ __name(async ({ security, ...options }) => {
|
|
575
|
-
for (const auth of security) {
|
|
576
|
-
const token = await getAuthToken(auth, options.auth);
|
|
577
|
-
if (!token) {
|
|
578
|
-
continue;
|
|
579
|
-
}
|
|
580
|
-
const name = auth.name ?? "Authorization";
|
|
581
|
-
switch (auth.in) {
|
|
582
|
-
case "query":
|
|
583
|
-
if (!options.query) {
|
|
584
|
-
options.query = {};
|
|
585
|
-
}
|
|
586
|
-
options.query[name] = token;
|
|
587
|
-
break;
|
|
588
|
-
case "cookie":
|
|
589
|
-
options.headers.append("Cookie", `${name}=${token}`);
|
|
590
|
-
break;
|
|
591
|
-
case "header":
|
|
592
|
-
default:
|
|
593
|
-
options.headers.set(name, token);
|
|
594
|
-
break;
|
|
595
|
-
}
|
|
596
|
-
return;
|
|
597
|
-
}
|
|
598
|
-
}, "setAuthParams");
|
|
599
|
-
var buildUrl = /* @__PURE__ */ __name((options) => {
|
|
600
|
-
const url = getUrl({
|
|
601
|
-
baseUrl: options.baseUrl,
|
|
602
|
-
path: options.path,
|
|
603
|
-
query: options.query,
|
|
604
|
-
querySerializer: typeof options.querySerializer === "function" ? options.querySerializer : createQuerySerializer(options.querySerializer),
|
|
605
|
-
url: options.url
|
|
606
|
-
});
|
|
607
|
-
return url;
|
|
608
|
-
}, "buildUrl");
|
|
609
|
-
var getUrl = /* @__PURE__ */ __name(({ baseUrl, path, query, querySerializer, url: _url }) => {
|
|
610
|
-
const pathUrl = _url.startsWith("/") ? _url : `/${_url}`;
|
|
611
|
-
let url = (baseUrl ?? "") + pathUrl;
|
|
612
|
-
if (path) {
|
|
613
|
-
url = defaultPathSerializer({
|
|
614
|
-
path,
|
|
615
|
-
url
|
|
616
|
-
});
|
|
617
|
-
}
|
|
618
|
-
let search = query ? querySerializer(query) : "";
|
|
619
|
-
if (search.startsWith("?")) {
|
|
620
|
-
search = search.substring(1);
|
|
621
|
-
}
|
|
622
|
-
if (search) {
|
|
623
|
-
url += `?${search}`;
|
|
624
|
-
}
|
|
625
|
-
return url;
|
|
626
|
-
}, "getUrl");
|
|
627
|
-
var mergeConfigs = /* @__PURE__ */ __name((a, b) => {
|
|
628
|
-
const config = {
|
|
629
|
-
...a,
|
|
630
|
-
...b
|
|
631
|
-
};
|
|
632
|
-
if (config.baseUrl?.endsWith("/")) {
|
|
633
|
-
config.baseUrl = config.baseUrl.substring(0, config.baseUrl.length - 1);
|
|
634
|
-
}
|
|
635
|
-
config.headers = mergeHeaders(a.headers, b.headers);
|
|
636
|
-
return config;
|
|
637
|
-
}, "mergeConfigs");
|
|
638
|
-
var mergeHeaders = /* @__PURE__ */ __name((...headers) => {
|
|
639
|
-
const mergedHeaders = new Headers();
|
|
640
|
-
for (const header of headers) {
|
|
641
|
-
if (!header || typeof header !== "object") {
|
|
642
|
-
continue;
|
|
643
|
-
}
|
|
644
|
-
const iterator = header instanceof Headers ? header.entries() : Object.entries(header);
|
|
645
|
-
for (const [key, value] of iterator) {
|
|
646
|
-
if (value === null) {
|
|
647
|
-
mergedHeaders.delete(key);
|
|
648
|
-
} else if (Array.isArray(value)) {
|
|
649
|
-
for (const v of value) {
|
|
650
|
-
mergedHeaders.append(key, v);
|
|
651
|
-
}
|
|
652
|
-
} else if (value !== void 0) {
|
|
653
|
-
mergedHeaders.set(key, typeof value === "object" ? JSON.stringify(value) : value);
|
|
654
|
-
}
|
|
655
|
-
}
|
|
656
|
-
}
|
|
657
|
-
return mergedHeaders;
|
|
658
|
-
}, "mergeHeaders");
|
|
659
|
-
var Interceptors = class Interceptors2 {
|
|
660
|
-
static {
|
|
661
|
-
__name(this, "Interceptors");
|
|
662
|
-
}
|
|
663
|
-
_fns;
|
|
664
|
-
constructor() {
|
|
665
|
-
this._fns = [];
|
|
666
|
-
}
|
|
667
|
-
clear() {
|
|
668
|
-
this._fns = [];
|
|
669
|
-
}
|
|
670
|
-
getInterceptorIndex(id) {
|
|
671
|
-
if (typeof id === "number") {
|
|
672
|
-
return this._fns[id] ? id : -1;
|
|
673
|
-
} else {
|
|
674
|
-
return this._fns.indexOf(id);
|
|
675
|
-
}
|
|
676
|
-
}
|
|
677
|
-
exists(id) {
|
|
678
|
-
const index = this.getInterceptorIndex(id);
|
|
679
|
-
return !!this._fns[index];
|
|
680
|
-
}
|
|
681
|
-
eject(id) {
|
|
682
|
-
const index = this.getInterceptorIndex(id);
|
|
683
|
-
if (this._fns[index]) {
|
|
684
|
-
this._fns[index] = null;
|
|
685
|
-
}
|
|
686
|
-
}
|
|
687
|
-
update(id, fn) {
|
|
688
|
-
const index = this.getInterceptorIndex(id);
|
|
689
|
-
if (this._fns[index]) {
|
|
690
|
-
this._fns[index] = fn;
|
|
691
|
-
return id;
|
|
692
|
-
} else {
|
|
693
|
-
return false;
|
|
694
|
-
}
|
|
695
|
-
}
|
|
696
|
-
use(fn) {
|
|
697
|
-
this._fns = [
|
|
698
|
-
...this._fns,
|
|
699
|
-
fn
|
|
700
|
-
];
|
|
701
|
-
return this._fns.length - 1;
|
|
702
|
-
}
|
|
703
|
-
};
|
|
704
|
-
var createInterceptors = /* @__PURE__ */ __name(() => ({
|
|
705
|
-
error: new Interceptors(),
|
|
706
|
-
request: new Interceptors(),
|
|
707
|
-
response: new Interceptors()
|
|
708
|
-
}), "createInterceptors");
|
|
709
|
-
var defaultQuerySerializer = createQuerySerializer({
|
|
710
|
-
allowReserved: false,
|
|
711
|
-
array: {
|
|
712
|
-
explode: true,
|
|
713
|
-
style: "form"
|
|
714
|
-
},
|
|
715
|
-
object: {
|
|
716
|
-
explode: true,
|
|
717
|
-
style: "deepObject"
|
|
718
|
-
}
|
|
719
|
-
});
|
|
720
|
-
var defaultHeaders = {
|
|
721
|
-
"Content-Type": "application/json"
|
|
722
|
-
};
|
|
723
|
-
var createConfig = /* @__PURE__ */ __name((override = {}) => ({
|
|
724
|
-
...jsonBodySerializer,
|
|
725
|
-
headers: defaultHeaders,
|
|
726
|
-
parseAs: "auto",
|
|
727
|
-
querySerializer: defaultQuerySerializer,
|
|
728
|
-
...override
|
|
729
|
-
}), "createConfig");
|
|
730
|
-
|
|
731
|
-
// src/client/client/client.ts
|
|
732
|
-
var createClient = /* @__PURE__ */ __name((config = {}) => {
|
|
733
|
-
let _config = mergeConfigs(createConfig(), config);
|
|
734
|
-
const getConfig = /* @__PURE__ */ __name(() => ({
|
|
735
|
-
..._config
|
|
736
|
-
}), "getConfig");
|
|
737
|
-
const setConfig = /* @__PURE__ */ __name((config2) => {
|
|
738
|
-
_config = mergeConfigs(_config, config2);
|
|
739
|
-
return getConfig();
|
|
740
|
-
}, "setConfig");
|
|
741
|
-
const interceptors = createInterceptors();
|
|
742
|
-
const request = /* @__PURE__ */ __name(async (options) => {
|
|
743
|
-
const opts = {
|
|
744
|
-
..._config,
|
|
745
|
-
...options,
|
|
746
|
-
fetch: options.fetch ?? _config.fetch ?? globalThis.fetch,
|
|
747
|
-
headers: mergeHeaders(_config.headers, options.headers)
|
|
748
|
-
};
|
|
749
|
-
if (opts.security) {
|
|
750
|
-
await setAuthParams({
|
|
751
|
-
...opts,
|
|
752
|
-
security: opts.security
|
|
753
|
-
});
|
|
754
|
-
}
|
|
755
|
-
if (opts.body && opts.bodySerializer) {
|
|
756
|
-
opts.body = opts.bodySerializer(opts.body);
|
|
757
|
-
}
|
|
758
|
-
if (opts.body === void 0 || opts.body === "") {
|
|
759
|
-
opts.headers.delete("Content-Type");
|
|
760
|
-
}
|
|
761
|
-
const url = buildUrl(opts);
|
|
762
|
-
const requestInit = {
|
|
763
|
-
redirect: "follow",
|
|
764
|
-
...opts
|
|
765
|
-
};
|
|
766
|
-
let request2 = new Request(url, requestInit);
|
|
767
|
-
for (const fn of interceptors.request._fns) {
|
|
768
|
-
if (fn) {
|
|
769
|
-
request2 = await fn(request2, opts);
|
|
770
|
-
}
|
|
771
|
-
}
|
|
772
|
-
const _fetch = opts.fetch;
|
|
773
|
-
let response = await _fetch(request2);
|
|
774
|
-
for (const fn of interceptors.response._fns) {
|
|
775
|
-
if (fn) {
|
|
776
|
-
response = await fn(response, request2, opts);
|
|
777
|
-
}
|
|
778
|
-
}
|
|
779
|
-
const result = {
|
|
780
|
-
request: request2,
|
|
781
|
-
response
|
|
782
|
-
};
|
|
783
|
-
if (response.ok) {
|
|
784
|
-
if (response.status === 204 || response.headers.get("Content-Length") === "0") {
|
|
785
|
-
return opts.responseStyle === "data" ? {} : {
|
|
786
|
-
data: {},
|
|
787
|
-
...result
|
|
788
|
-
};
|
|
789
|
-
}
|
|
790
|
-
const parseAs = (opts.parseAs === "auto" ? getParseAs(response.headers.get("Content-Type")) : opts.parseAs) ?? "json";
|
|
791
|
-
if (parseAs === "stream") {
|
|
792
|
-
return opts.responseStyle === "data" ? response.body : {
|
|
793
|
-
data: response.body,
|
|
794
|
-
...result
|
|
795
|
-
};
|
|
796
|
-
}
|
|
797
|
-
let data = await response[parseAs]();
|
|
798
|
-
if (parseAs === "json") {
|
|
799
|
-
if (opts.responseValidator) {
|
|
800
|
-
await opts.responseValidator(data);
|
|
801
|
-
}
|
|
802
|
-
if (opts.responseTransformer) {
|
|
803
|
-
data = await opts.responseTransformer(data);
|
|
804
|
-
}
|
|
805
|
-
}
|
|
806
|
-
return opts.responseStyle === "data" ? data : {
|
|
807
|
-
data,
|
|
808
|
-
...result
|
|
809
|
-
};
|
|
810
|
-
}
|
|
811
|
-
let error = await response.text();
|
|
812
|
-
try {
|
|
813
|
-
error = JSON.parse(error);
|
|
814
|
-
} catch {
|
|
815
|
-
}
|
|
816
|
-
let finalError = error;
|
|
817
|
-
for (const fn of interceptors.error._fns) {
|
|
818
|
-
if (fn) {
|
|
819
|
-
finalError = await fn(error, response, request2, opts);
|
|
820
|
-
}
|
|
821
|
-
}
|
|
822
|
-
finalError = finalError || {};
|
|
823
|
-
if (opts.throwOnError) {
|
|
824
|
-
throw finalError;
|
|
825
|
-
}
|
|
826
|
-
return opts.responseStyle === "data" ? void 0 : {
|
|
827
|
-
error: finalError,
|
|
828
|
-
...result
|
|
829
|
-
};
|
|
830
|
-
}, "request");
|
|
831
|
-
return {
|
|
832
|
-
buildUrl,
|
|
833
|
-
connect: /* @__PURE__ */ __name((options) => request({
|
|
834
|
-
...options,
|
|
835
|
-
method: "CONNECT"
|
|
836
|
-
}), "connect"),
|
|
837
|
-
delete: /* @__PURE__ */ __name((options) => request({
|
|
838
|
-
...options,
|
|
839
|
-
method: "DELETE"
|
|
840
|
-
}), "delete"),
|
|
841
|
-
get: /* @__PURE__ */ __name((options) => request({
|
|
842
|
-
...options,
|
|
843
|
-
method: "GET"
|
|
844
|
-
}), "get"),
|
|
845
|
-
getConfig,
|
|
846
|
-
head: /* @__PURE__ */ __name((options) => request({
|
|
847
|
-
...options,
|
|
848
|
-
method: "HEAD"
|
|
849
|
-
}), "head"),
|
|
850
|
-
interceptors,
|
|
851
|
-
options: /* @__PURE__ */ __name((options) => request({
|
|
852
|
-
...options,
|
|
853
|
-
method: "OPTIONS"
|
|
854
|
-
}), "options"),
|
|
855
|
-
patch: /* @__PURE__ */ __name((options) => request({
|
|
856
|
-
...options,
|
|
857
|
-
method: "PATCH"
|
|
858
|
-
}), "patch"),
|
|
859
|
-
post: /* @__PURE__ */ __name((options) => request({
|
|
860
|
-
...options,
|
|
861
|
-
method: "POST"
|
|
862
|
-
}), "post"),
|
|
863
|
-
put: /* @__PURE__ */ __name((options) => request({
|
|
864
|
-
...options,
|
|
865
|
-
method: "PUT"
|
|
866
|
-
}), "put"),
|
|
867
|
-
request,
|
|
868
|
-
setConfig,
|
|
869
|
-
trace: /* @__PURE__ */ __name((options) => request({
|
|
870
|
-
...options,
|
|
871
|
-
method: "TRACE"
|
|
872
|
-
}), "trace")
|
|
873
|
-
};
|
|
874
|
-
}, "createClient");
|
|
875
|
-
|
|
876
|
-
// src/client/client.gen.ts
|
|
877
|
-
var client = createClient(createConfig({
|
|
878
|
-
throwOnError: true
|
|
879
|
-
}));
|
|
880
|
-
|
|
881
|
-
// src/client/transformers.gen.ts
|
|
882
|
-
var updateApiTokenResponseDtoSchemaResponseTransformer = /* @__PURE__ */ __name((data) => {
|
|
883
|
-
data.deleted_at = new Date(data.deleted_at);
|
|
884
|
-
data.last_used = new Date(data.last_used);
|
|
885
|
-
return data;
|
|
886
|
-
}, "updateApiTokenResponseDtoSchemaResponseTransformer");
|
|
887
|
-
var apiTokenControllerUpdateToken0V1ResponseTransformer = /* @__PURE__ */ __name(async (data) => {
|
|
888
|
-
data = updateApiTokenResponseDtoSchemaResponseTransformer(data);
|
|
889
|
-
return data;
|
|
890
|
-
}, "apiTokenControllerUpdateToken0V1ResponseTransformer");
|
|
891
|
-
var apiTokenControllerUpdateToken1ResponseTransformer = /* @__PURE__ */ __name(async (data) => {
|
|
892
|
-
data = updateApiTokenResponseDtoSchemaResponseTransformer(data);
|
|
893
|
-
return data;
|
|
894
|
-
}, "apiTokenControllerUpdateToken1ResponseTransformer");
|
|
895
|
-
var getTimeLimitsForSunAltitudeResponseSchemaResponseTransformer = /* @__PURE__ */ __name((data) => {
|
|
896
|
-
data.OptimalSunAltitudePeriod.StartTime = new Date(data.OptimalSunAltitudePeriod.StartTime);
|
|
897
|
-
data.OptimalSunAltitudePeriod.EndTime = new Date(data.OptimalSunAltitudePeriod.EndTime);
|
|
898
|
-
data.DaylightPeriod.StartTime = new Date(data.DaylightPeriod.StartTime);
|
|
899
|
-
data.DaylightPeriod.EndTime = new Date(data.DaylightPeriod.EndTime);
|
|
900
|
-
return data;
|
|
901
|
-
}, "getTimeLimitsForSunAltitudeResponseSchemaResponseTransformer");
|
|
902
|
-
var conditionsControllerGetSunAltitudeTimeLimits0V1ResponseTransformer = /* @__PURE__ */ __name(async (data) => {
|
|
903
|
-
data = getTimeLimitsForSunAltitudeResponseSchemaResponseTransformer(data);
|
|
904
|
-
return data;
|
|
905
|
-
}, "conditionsControllerGetSunAltitudeTimeLimits0V1ResponseTransformer");
|
|
906
|
-
var conditionsControllerGetSunAltitudeTimeLimits1ResponseTransformer = /* @__PURE__ */ __name(async (data) => {
|
|
907
|
-
data = getTimeLimitsForSunAltitudeResponseSchemaResponseTransformer(data);
|
|
908
|
-
return data;
|
|
909
|
-
}, "conditionsControllerGetSunAltitudeTimeLimits1ResponseTransformer");
|
|
910
|
-
var getContractsResponseDtoSchemaResponseTransformer = /* @__PURE__ */ __name((data) => {
|
|
911
|
-
data.data = data.data.map((item) => {
|
|
912
|
-
if (item.deployedAt) {
|
|
913
|
-
item.deployedAt = new Date(item.deployedAt);
|
|
914
|
-
}
|
|
915
|
-
return item;
|
|
916
|
-
});
|
|
917
|
-
return data;
|
|
918
|
-
}, "getContractsResponseDtoSchemaResponseTransformer");
|
|
919
|
-
var contractsControllerGetAllContracts0V1ResponseTransformer = /* @__PURE__ */ __name(async (data) => {
|
|
920
|
-
data = getContractsResponseDtoSchemaResponseTransformer(data);
|
|
921
|
-
return data;
|
|
922
|
-
}, "contractsControllerGetAllContracts0V1ResponseTransformer");
|
|
923
|
-
var contractsControllerGetAllContracts1ResponseTransformer = /* @__PURE__ */ __name(async (data) => {
|
|
924
|
-
data = getContractsResponseDtoSchemaResponseTransformer(data);
|
|
925
|
-
return data;
|
|
926
|
-
}, "contractsControllerGetAllContracts1ResponseTransformer");
|
|
927
|
-
var flightDtoSchemaResponseTransformer = /* @__PURE__ */ __name((data) => {
|
|
928
|
-
data.payout.createdAt = new Date(data.payout.createdAt);
|
|
929
|
-
return data;
|
|
930
|
-
}, "flightDtoSchemaResponseTransformer");
|
|
931
|
-
var flightsControllerGetFlight0V1ResponseTransformer = /* @__PURE__ */ __name(async (data) => {
|
|
932
|
-
data = flightDtoSchemaResponseTransformer(data);
|
|
933
|
-
return data;
|
|
934
|
-
}, "flightsControllerGetFlight0V1ResponseTransformer");
|
|
935
|
-
var flightsControllerGetFlight1ResponseTransformer = /* @__PURE__ */ __name(async (data) => {
|
|
936
|
-
data = flightDtoSchemaResponseTransformer(data);
|
|
937
|
-
return data;
|
|
938
|
-
}, "flightsControllerGetFlight1ResponseTransformer");
|
|
939
|
-
var validateFlightResponseDtoSchemaResponseTransformer = /* @__PURE__ */ __name((data) => {
|
|
940
|
-
data.flightId = BigInt(data.flightId.toString());
|
|
941
|
-
return data;
|
|
942
|
-
}, "validateFlightResponseDtoSchemaResponseTransformer");
|
|
943
|
-
var flightsControllerValidateFlight0V1ResponseTransformer = /* @__PURE__ */ __name(async (data) => {
|
|
944
|
-
data = validateFlightResponseDtoSchemaResponseTransformer(data);
|
|
945
|
-
return data;
|
|
946
|
-
}, "flightsControllerValidateFlight0V1ResponseTransformer");
|
|
947
|
-
var flightsControllerValidateFlight1ResponseTransformer = /* @__PURE__ */ __name(async (data) => {
|
|
948
|
-
data = validateFlightResponseDtoSchemaResponseTransformer(data);
|
|
949
|
-
return data;
|
|
950
|
-
}, "flightsControllerValidateFlight1ResponseTransformer");
|
|
951
|
-
var getFlightPlansResponseSchemaResponseTransformer = /* @__PURE__ */ __name((data) => {
|
|
952
|
-
data.data = data.data.map((item) => {
|
|
953
|
-
item.created_at = new Date(item.created_at);
|
|
954
|
-
item.updated_at = new Date(item.updated_at);
|
|
955
|
-
return item;
|
|
956
|
-
});
|
|
957
|
-
return data;
|
|
958
|
-
}, "getFlightPlansResponseSchemaResponseTransformer");
|
|
959
|
-
var flightPlansControllerGetMany0V1ResponseTransformer = /* @__PURE__ */ __name(async (data) => {
|
|
960
|
-
data = getFlightPlansResponseSchemaResponseTransformer(data);
|
|
961
|
-
return data;
|
|
962
|
-
}, "flightPlansControllerGetMany0V1ResponseTransformer");
|
|
963
|
-
var createFlightPlanResponseSchemaResponseTransformer = /* @__PURE__ */ __name((data) => {
|
|
964
|
-
data.created_at = new Date(data.created_at);
|
|
965
|
-
data.updated_at = new Date(data.updated_at);
|
|
966
|
-
return data;
|
|
967
|
-
}, "createFlightPlanResponseSchemaResponseTransformer");
|
|
968
|
-
var flightPlansControllerCreate0V1ResponseTransformer = /* @__PURE__ */ __name(async (data) => {
|
|
969
|
-
data = createFlightPlanResponseSchemaResponseTransformer(data);
|
|
970
|
-
return data;
|
|
971
|
-
}, "flightPlansControllerCreate0V1ResponseTransformer");
|
|
972
|
-
var flightPlansControllerGetMany1ResponseTransformer = /* @__PURE__ */ __name(async (data) => {
|
|
973
|
-
data = getFlightPlansResponseSchemaResponseTransformer(data);
|
|
974
|
-
return data;
|
|
975
|
-
}, "flightPlansControllerGetMany1ResponseTransformer");
|
|
976
|
-
var flightPlansControllerCreate1ResponseTransformer = /* @__PURE__ */ __name(async (data) => {
|
|
977
|
-
data = createFlightPlanResponseSchemaResponseTransformer(data);
|
|
978
|
-
return data;
|
|
979
|
-
}, "flightPlansControllerCreate1ResponseTransformer");
|
|
980
|
-
var getFlightPlanResponseSchemaResponseTransformer = /* @__PURE__ */ __name((data) => {
|
|
981
|
-
data.created_at = new Date(data.created_at);
|
|
982
|
-
data.updated_at = new Date(data.updated_at);
|
|
983
|
-
return data;
|
|
984
|
-
}, "getFlightPlanResponseSchemaResponseTransformer");
|
|
985
|
-
var flightPlansControllerGet0V1ResponseTransformer = /* @__PURE__ */ __name(async (data) => {
|
|
986
|
-
data = getFlightPlanResponseSchemaResponseTransformer(data);
|
|
987
|
-
return data;
|
|
988
|
-
}, "flightPlansControllerGet0V1ResponseTransformer");
|
|
989
|
-
var flightPlansControllerGet1ResponseTransformer = /* @__PURE__ */ __name(async (data) => {
|
|
990
|
-
data = getFlightPlanResponseSchemaResponseTransformer(data);
|
|
991
|
-
return data;
|
|
992
|
-
}, "flightPlansControllerGet1ResponseTransformer");
|
|
993
|
-
var getFlightReviewResponseDtoSchemaResponseTransformer = /* @__PURE__ */ __name((data) => {
|
|
994
|
-
data.createdAt = new Date(data.createdAt);
|
|
995
|
-
data.updatedAt = new Date(data.updatedAt);
|
|
996
|
-
return data;
|
|
997
|
-
}, "getFlightReviewResponseDtoSchemaResponseTransformer");
|
|
998
|
-
var flightReviewsControllerGetFlightReview0V1ResponseTransformer = /* @__PURE__ */ __name(async (data) => {
|
|
999
|
-
data = getFlightReviewResponseDtoSchemaResponseTransformer(data);
|
|
1000
|
-
return data;
|
|
1001
|
-
}, "flightReviewsControllerGetFlightReview0V1ResponseTransformer");
|
|
1002
|
-
var flightReviewsControllerGetFlightReview1ResponseTransformer = /* @__PURE__ */ __name(async (data) => {
|
|
1003
|
-
data = getFlightReviewResponseDtoSchemaResponseTransformer(data);
|
|
1004
|
-
return data;
|
|
1005
|
-
}, "flightReviewsControllerGetFlightReview1ResponseTransformer");
|
|
1006
|
-
var getFlightReviewsResponseDtoSchemaResponseTransformer = /* @__PURE__ */ __name((data) => {
|
|
1007
|
-
data.flightReviews = data.flightReviews.map((item) => {
|
|
1008
|
-
item.createdAt = new Date(item.createdAt);
|
|
1009
|
-
item.updatedAt = new Date(item.updatedAt);
|
|
1010
|
-
return item;
|
|
1011
|
-
});
|
|
1012
|
-
return data;
|
|
1013
|
-
}, "getFlightReviewsResponseDtoSchemaResponseTransformer");
|
|
1014
|
-
var flightReviewsControllerGetFlightReviews0V1ResponseTransformer = /* @__PURE__ */ __name(async (data) => {
|
|
1015
|
-
data = getFlightReviewsResponseDtoSchemaResponseTransformer(data);
|
|
1016
|
-
return data;
|
|
1017
|
-
}, "flightReviewsControllerGetFlightReviews0V1ResponseTransformer");
|
|
1018
|
-
var flightReviewsControllerGetFlightReviews1ResponseTransformer = /* @__PURE__ */ __name(async (data) => {
|
|
1019
|
-
data = getFlightReviewsResponseDtoSchemaResponseTransformer(data);
|
|
1020
|
-
return data;
|
|
1021
|
-
}, "flightReviewsControllerGetFlightReviews1ResponseTransformer");
|
|
1022
|
-
var getMissionResponseDtoSchemaResponseTransformer = /* @__PURE__ */ __name((data) => {
|
|
1023
|
-
data.captureStartTime = new Date(data.captureStartTime);
|
|
1024
|
-
data.captureEndTime = new Date(data.captureEndTime);
|
|
1025
|
-
data.createdAt = new Date(data.createdAt);
|
|
1026
|
-
data.updatedAt = new Date(data.updatedAt);
|
|
1027
|
-
if (data.payout) {
|
|
1028
|
-
data.payout.createdAt = new Date(data.payout.createdAt);
|
|
1029
|
-
}
|
|
1030
|
-
if (data.vault) {
|
|
1031
|
-
data.vault.createdAt = new Date(data.vault.createdAt);
|
|
1032
|
-
data.vault.updatedAt = new Date(data.vault.updatedAt);
|
|
1033
|
-
}
|
|
1034
|
-
return data;
|
|
1035
|
-
}, "getMissionResponseDtoSchemaResponseTransformer");
|
|
1036
|
-
var missionsControllerGetMission0V1ResponseTransformer = /* @__PURE__ */ __name(async (data) => {
|
|
1037
|
-
data = getMissionResponseDtoSchemaResponseTransformer(data);
|
|
1038
|
-
return data;
|
|
1039
|
-
}, "missionsControllerGetMission0V1ResponseTransformer");
|
|
1040
|
-
var missionsControllerGetMission1ResponseTransformer = /* @__PURE__ */ __name(async (data) => {
|
|
1041
|
-
data = getMissionResponseDtoSchemaResponseTransformer(data);
|
|
1042
|
-
return data;
|
|
1043
|
-
}, "missionsControllerGetMission1ResponseTransformer");
|
|
1044
|
-
var getMissionsResponseDtoSchemaResponseTransformer = /* @__PURE__ */ __name((data) => {
|
|
1045
|
-
data.missions = data.missions.map((item) => {
|
|
1046
|
-
item.captureStartTime = new Date(item.captureStartTime);
|
|
1047
|
-
item.captureEndTime = new Date(item.captureEndTime);
|
|
1048
|
-
item.createdAt = new Date(item.createdAt);
|
|
1049
|
-
item.updatedAt = new Date(item.updatedAt);
|
|
1050
|
-
if (item.payout) {
|
|
1051
|
-
item.payout.createdAt = new Date(item.payout.createdAt);
|
|
1052
|
-
}
|
|
1053
|
-
if (item.vault) {
|
|
1054
|
-
item.vault.createdAt = new Date(item.vault.createdAt);
|
|
1055
|
-
item.vault.updatedAt = new Date(item.vault.updatedAt);
|
|
1056
|
-
}
|
|
1057
|
-
return item;
|
|
1058
|
-
});
|
|
1059
|
-
return data;
|
|
1060
|
-
}, "getMissionsResponseDtoSchemaResponseTransformer");
|
|
1061
|
-
var missionsControllerGetMissions0V1ResponseTransformer = /* @__PURE__ */ __name(async (data) => {
|
|
1062
|
-
data = getMissionsResponseDtoSchemaResponseTransformer(data);
|
|
1063
|
-
return data;
|
|
1064
|
-
}, "missionsControllerGetMissions0V1ResponseTransformer");
|
|
1065
|
-
var createMissionResponseDtoSchemaResponseTransformer = /* @__PURE__ */ __name((data) => {
|
|
1066
|
-
data.data.missions = data.data.missions.map((item) => {
|
|
1067
|
-
item.captureStartTime = new Date(item.captureStartTime);
|
|
1068
|
-
item.captureEndTime = new Date(item.captureEndTime);
|
|
1069
|
-
return item;
|
|
1070
|
-
});
|
|
1071
|
-
return data;
|
|
1072
|
-
}, "createMissionResponseDtoSchemaResponseTransformer");
|
|
1073
|
-
var missionsControllerCreateMissions0V1ResponseTransformer = /* @__PURE__ */ __name(async (data) => {
|
|
1074
|
-
data = createMissionResponseDtoSchemaResponseTransformer(data);
|
|
1075
|
-
return data;
|
|
1076
|
-
}, "missionsControllerCreateMissions0V1ResponseTransformer");
|
|
1077
|
-
var missionsControllerGetMissions1ResponseTransformer = /* @__PURE__ */ __name(async (data) => {
|
|
1078
|
-
data = getMissionsResponseDtoSchemaResponseTransformer(data);
|
|
1079
|
-
return data;
|
|
1080
|
-
}, "missionsControllerGetMissions1ResponseTransformer");
|
|
1081
|
-
var missionsControllerCreateMissions1ResponseTransformer = /* @__PURE__ */ __name(async (data) => {
|
|
1082
|
-
data = createMissionResponseDtoSchemaResponseTransformer(data);
|
|
1083
|
-
return data;
|
|
1084
|
-
}, "missionsControllerCreateMissions1ResponseTransformer");
|
|
1085
|
-
var getProposalsResponseDtoSchemaResponseTransformer = /* @__PURE__ */ __name((data) => {
|
|
1086
|
-
data.proposals = data.proposals.map((item) => {
|
|
1087
|
-
item.created_at = new Date(item.created_at);
|
|
1088
|
-
return item;
|
|
1089
|
-
});
|
|
1090
|
-
return data;
|
|
1091
|
-
}, "getProposalsResponseDtoSchemaResponseTransformer");
|
|
1092
|
-
var listProposalsResponseTransformer = /* @__PURE__ */ __name(async (data) => {
|
|
1093
|
-
data = getProposalsResponseDtoSchemaResponseTransformer(data);
|
|
1094
|
-
return data;
|
|
1095
|
-
}, "listProposalsResponseTransformer");
|
|
1096
|
-
var getProposalResponseDtoSchemaResponseTransformer = /* @__PURE__ */ __name((data) => {
|
|
1097
|
-
data.created_at = new Date(data.created_at);
|
|
1098
|
-
data.changes = data.changes.map((item) => {
|
|
1099
|
-
item.dispatched_at = new Date(item.dispatched_at);
|
|
1100
|
-
item.verified_at = new Date(item.verified_at);
|
|
1101
|
-
item.failed_at = new Date(item.failed_at);
|
|
1102
|
-
return item;
|
|
1103
|
-
});
|
|
1104
|
-
return data;
|
|
1105
|
-
}, "getProposalResponseDtoSchemaResponseTransformer");
|
|
1106
|
-
var getProposalResponseTransformer = /* @__PURE__ */ __name(async (data) => {
|
|
1107
|
-
data = getProposalResponseDtoSchemaResponseTransformer(data);
|
|
1108
|
-
return data;
|
|
1109
|
-
}, "getProposalResponseTransformer");
|
|
1110
|
-
var getWebhooksResponseSchemaResponseTransformer = /* @__PURE__ */ __name((data) => {
|
|
1111
|
-
data = data.map((item) => {
|
|
1112
|
-
item.previous_secret_expires_at = new Date(item.previous_secret_expires_at);
|
|
1113
|
-
return item;
|
|
1114
|
-
});
|
|
1115
|
-
return data;
|
|
1116
|
-
}, "getWebhooksResponseSchemaResponseTransformer");
|
|
1117
|
-
var webhooksControllerGetMany0V1ResponseTransformer = /* @__PURE__ */ __name(async (data) => {
|
|
1118
|
-
data = getWebhooksResponseSchemaResponseTransformer(data);
|
|
1119
|
-
return data;
|
|
1120
|
-
}, "webhooksControllerGetMany0V1ResponseTransformer");
|
|
1121
|
-
var webhooksControllerGetMany1ResponseTransformer = /* @__PURE__ */ __name(async (data) => {
|
|
1122
|
-
data = getWebhooksResponseSchemaResponseTransformer(data);
|
|
1123
|
-
return data;
|
|
1124
|
-
}, "webhooksControllerGetMany1ResponseTransformer");
|
|
1125
|
-
var getWebhookResponseSchemaResponseTransformer = /* @__PURE__ */ __name((data) => {
|
|
1126
|
-
data.previous_secret_expires_at = new Date(data.previous_secret_expires_at);
|
|
1127
|
-
return data;
|
|
1128
|
-
}, "getWebhookResponseSchemaResponseTransformer");
|
|
1129
|
-
var webhooksControllerGet0V1ResponseTransformer = /* @__PURE__ */ __name(async (data) => {
|
|
1130
|
-
data = getWebhookResponseSchemaResponseTransformer(data);
|
|
1131
|
-
return data;
|
|
1132
|
-
}, "webhooksControllerGet0V1ResponseTransformer");
|
|
1133
|
-
var updateWebhookResponseSchemaResponseTransformer = /* @__PURE__ */ __name((data) => {
|
|
1134
|
-
data.previous_secret_expires_at = new Date(data.previous_secret_expires_at);
|
|
1135
|
-
return data;
|
|
1136
|
-
}, "updateWebhookResponseSchemaResponseTransformer");
|
|
1137
|
-
var webhooksControllerUpdate0V1ResponseTransformer = /* @__PURE__ */ __name(async (data) => {
|
|
1138
|
-
data = updateWebhookResponseSchemaResponseTransformer(data);
|
|
1139
|
-
return data;
|
|
1140
|
-
}, "webhooksControllerUpdate0V1ResponseTransformer");
|
|
1141
|
-
var webhooksControllerGet1ResponseTransformer = /* @__PURE__ */ __name(async (data) => {
|
|
1142
|
-
data = getWebhookResponseSchemaResponseTransformer(data);
|
|
1143
|
-
return data;
|
|
1144
|
-
}, "webhooksControllerGet1ResponseTransformer");
|
|
1145
|
-
var webhooksControllerUpdate1ResponseTransformer = /* @__PURE__ */ __name(async (data) => {
|
|
1146
|
-
data = updateWebhookResponseSchemaResponseTransformer(data);
|
|
1147
|
-
return data;
|
|
1148
|
-
}, "webhooksControllerUpdate1ResponseTransformer");
|
|
1149
|
-
var regenerateWebhookSecretResponseDtoSchemaResponseTransformer = /* @__PURE__ */ __name((data) => {
|
|
1150
|
-
data.previous_secret_expires_at = new Date(data.previous_secret_expires_at);
|
|
1151
|
-
return data;
|
|
1152
|
-
}, "regenerateWebhookSecretResponseDtoSchemaResponseTransformer");
|
|
1153
|
-
var webhooksControllerRegenerateSecret0V1ResponseTransformer = /* @__PURE__ */ __name(async (data) => {
|
|
1154
|
-
data = regenerateWebhookSecretResponseDtoSchemaResponseTransformer(data);
|
|
1155
|
-
return data;
|
|
1156
|
-
}, "webhooksControllerRegenerateSecret0V1ResponseTransformer");
|
|
1157
|
-
var webhooksControllerRegenerateSecret1ResponseTransformer = /* @__PURE__ */ __name(async (data) => {
|
|
1158
|
-
data = regenerateWebhookSecretResponseDtoSchemaResponseTransformer(data);
|
|
1159
|
-
return data;
|
|
1160
|
-
}, "webhooksControllerRegenerateSecret1ResponseTransformer");
|
|
1161
|
-
var zoneResponseDtoSchemaResponseTransformer = /* @__PURE__ */ __name((data) => {
|
|
1162
|
-
data.created_at = new Date(data.created_at);
|
|
1163
|
-
data.updated_at = new Date(data.updated_at);
|
|
1164
|
-
return data;
|
|
1165
|
-
}, "zoneResponseDtoSchemaResponseTransformer");
|
|
1166
|
-
var zonesControllerCreateZone0V1ResponseTransformer = /* @__PURE__ */ __name(async (data) => {
|
|
1167
|
-
data = zoneResponseDtoSchemaResponseTransformer(data);
|
|
1168
|
-
return data;
|
|
1169
|
-
}, "zonesControllerCreateZone0V1ResponseTransformer");
|
|
1170
|
-
var zonesControllerCreateZone1ResponseTransformer = /* @__PURE__ */ __name(async (data) => {
|
|
1171
|
-
data = zoneResponseDtoSchemaResponseTransformer(data);
|
|
1172
|
-
return data;
|
|
1173
|
-
}, "zonesControllerCreateZone1ResponseTransformer");
|
|
1174
|
-
var zonesControllerGetZone0V1ResponseTransformer = /* @__PURE__ */ __name(async (data) => {
|
|
1175
|
-
data = zoneResponseDtoSchemaResponseTransformer(data);
|
|
1176
|
-
return data;
|
|
1177
|
-
}, "zonesControllerGetZone0V1ResponseTransformer");
|
|
1178
|
-
var zonesControllerUpdateZone0V1ResponseTransformer = /* @__PURE__ */ __name(async (data) => {
|
|
1179
|
-
data = zoneResponseDtoSchemaResponseTransformer(data);
|
|
1180
|
-
return data;
|
|
1181
|
-
}, "zonesControllerUpdateZone0V1ResponseTransformer");
|
|
1182
|
-
var zonesControllerGetZone1ResponseTransformer = /* @__PURE__ */ __name(async (data) => {
|
|
1183
|
-
data = zoneResponseDtoSchemaResponseTransformer(data);
|
|
1184
|
-
return data;
|
|
1185
|
-
}, "zonesControllerGetZone1ResponseTransformer");
|
|
1186
|
-
var zonesControllerUpdateZone1ResponseTransformer = /* @__PURE__ */ __name(async (data) => {
|
|
1187
|
-
data = zoneResponseDtoSchemaResponseTransformer(data);
|
|
1188
|
-
return data;
|
|
1189
|
-
}, "zonesControllerUpdateZone1ResponseTransformer");
|
|
1190
|
-
var getInboundWebhookConfigsResponseSchemaResponseTransformer = /* @__PURE__ */ __name((data) => {
|
|
1191
|
-
data = data.map((item) => {
|
|
1192
|
-
item.created_at = new Date(item.created_at);
|
|
1193
|
-
item.updated_at = new Date(item.updated_at);
|
|
1194
|
-
return item;
|
|
1195
|
-
});
|
|
1196
|
-
return data;
|
|
1197
|
-
}, "getInboundWebhookConfigsResponseSchemaResponseTransformer");
|
|
1198
|
-
var inboundWebhookConfigsControllerGetMany0V1ResponseTransformer = /* @__PURE__ */ __name(async (data) => {
|
|
1199
|
-
data = getInboundWebhookConfigsResponseSchemaResponseTransformer(data);
|
|
1200
|
-
return data;
|
|
1201
|
-
}, "inboundWebhookConfigsControllerGetMany0V1ResponseTransformer");
|
|
1202
|
-
var createInboundWebhookConfigResponseSchemaResponseTransformer = /* @__PURE__ */ __name((data) => {
|
|
1203
|
-
data.created_at = new Date(data.created_at);
|
|
1204
|
-
data.updated_at = new Date(data.updated_at);
|
|
1205
|
-
return data;
|
|
1206
|
-
}, "createInboundWebhookConfigResponseSchemaResponseTransformer");
|
|
1207
|
-
var inboundWebhookConfigsControllerCreate0V1ResponseTransformer = /* @__PURE__ */ __name(async (data) => {
|
|
1208
|
-
data = createInboundWebhookConfigResponseSchemaResponseTransformer(data);
|
|
1209
|
-
return data;
|
|
1210
|
-
}, "inboundWebhookConfigsControllerCreate0V1ResponseTransformer");
|
|
1211
|
-
var inboundWebhookConfigsControllerGetMany1ResponseTransformer = /* @__PURE__ */ __name(async (data) => {
|
|
1212
|
-
data = getInboundWebhookConfigsResponseSchemaResponseTransformer(data);
|
|
1213
|
-
return data;
|
|
1214
|
-
}, "inboundWebhookConfigsControllerGetMany1ResponseTransformer");
|
|
1215
|
-
var inboundWebhookConfigsControllerCreate1ResponseTransformer = /* @__PURE__ */ __name(async (data) => {
|
|
1216
|
-
data = createInboundWebhookConfigResponseSchemaResponseTransformer(data);
|
|
1217
|
-
return data;
|
|
1218
|
-
}, "inboundWebhookConfigsControllerCreate1ResponseTransformer");
|
|
1219
|
-
var getInboundWebhookConfigResponseSchemaResponseTransformer = /* @__PURE__ */ __name((data) => {
|
|
1220
|
-
data.created_at = new Date(data.created_at);
|
|
1221
|
-
data.updated_at = new Date(data.updated_at);
|
|
1222
|
-
return data;
|
|
1223
|
-
}, "getInboundWebhookConfigResponseSchemaResponseTransformer");
|
|
1224
|
-
var inboundWebhookConfigsControllerGet0V1ResponseTransformer = /* @__PURE__ */ __name(async (data) => {
|
|
1225
|
-
data = getInboundWebhookConfigResponseSchemaResponseTransformer(data);
|
|
1226
|
-
return data;
|
|
1227
|
-
}, "inboundWebhookConfigsControllerGet0V1ResponseTransformer");
|
|
1228
|
-
var updateInboundWebhookConfigResponseSchemaResponseTransformer = /* @__PURE__ */ __name((data) => {
|
|
1229
|
-
data.created_at = new Date(data.created_at);
|
|
1230
|
-
data.updated_at = new Date(data.updated_at);
|
|
1231
|
-
return data;
|
|
1232
|
-
}, "updateInboundWebhookConfigResponseSchemaResponseTransformer");
|
|
1233
|
-
var inboundWebhookConfigsControllerUpdate0V1ResponseTransformer = /* @__PURE__ */ __name(async (data) => {
|
|
1234
|
-
data = updateInboundWebhookConfigResponseSchemaResponseTransformer(data);
|
|
1235
|
-
return data;
|
|
1236
|
-
}, "inboundWebhookConfigsControllerUpdate0V1ResponseTransformer");
|
|
1237
|
-
var inboundWebhookConfigsControllerGet1ResponseTransformer = /* @__PURE__ */ __name(async (data) => {
|
|
1238
|
-
data = getInboundWebhookConfigResponseSchemaResponseTransformer(data);
|
|
1239
|
-
return data;
|
|
1240
|
-
}, "inboundWebhookConfigsControllerGet1ResponseTransformer");
|
|
1241
|
-
var inboundWebhookConfigsControllerUpdate1ResponseTransformer = /* @__PURE__ */ __name(async (data) => {
|
|
1242
|
-
data = updateInboundWebhookConfigResponseSchemaResponseTransformer(data);
|
|
1243
|
-
return data;
|
|
1244
|
-
}, "inboundWebhookConfigsControllerUpdate1ResponseTransformer");
|
|
1245
|
-
var listCampaignsResponseDtoSchemaResponseTransformer = /* @__PURE__ */ __name((data) => {
|
|
1246
|
-
data.data = data.data.map((item) => {
|
|
1247
|
-
if (item.start_date) {
|
|
1248
|
-
item.start_date = new Date(item.start_date);
|
|
1249
|
-
}
|
|
1250
|
-
if (item.end_date) {
|
|
1251
|
-
item.end_date = new Date(item.end_date);
|
|
1252
|
-
}
|
|
1253
|
-
item.created_at = new Date(item.created_at);
|
|
1254
|
-
item.updated_at = new Date(item.updated_at);
|
|
1255
|
-
return item;
|
|
1256
|
-
});
|
|
1257
|
-
return data;
|
|
1258
|
-
}, "listCampaignsResponseDtoSchemaResponseTransformer");
|
|
1259
|
-
var campaignsControllerGetCampaignsV2V2ResponseTransformer = /* @__PURE__ */ __name(async (data) => {
|
|
1260
|
-
data = listCampaignsResponseDtoSchemaResponseTransformer(data);
|
|
1261
|
-
return data;
|
|
1262
|
-
}, "campaignsControllerGetCampaignsV2V2ResponseTransformer");
|
|
1263
|
-
var campaignResponseDtoSchemaResponseTransformer = /* @__PURE__ */ __name((data) => {
|
|
1264
|
-
if (data.start_date) {
|
|
1265
|
-
data.start_date = new Date(data.start_date);
|
|
1266
|
-
}
|
|
1267
|
-
if (data.end_date) {
|
|
1268
|
-
data.end_date = new Date(data.end_date);
|
|
1269
|
-
}
|
|
1270
|
-
data.created_at = new Date(data.created_at);
|
|
1271
|
-
data.updated_at = new Date(data.updated_at);
|
|
1272
|
-
return data;
|
|
1273
|
-
}, "campaignResponseDtoSchemaResponseTransformer");
|
|
1274
|
-
var campaignsControllerCreateCampaignV2V2ResponseTransformer = /* @__PURE__ */ __name(async (data) => {
|
|
1275
|
-
data = campaignResponseDtoSchemaResponseTransformer(data);
|
|
1276
|
-
return data;
|
|
1277
|
-
}, "campaignsControllerCreateCampaignV2V2ResponseTransformer");
|
|
1278
|
-
var campaignsControllerGetCampaignV2V2ResponseTransformer = /* @__PURE__ */ __name(async (data) => {
|
|
1279
|
-
data = campaignResponseDtoSchemaResponseTransformer(data);
|
|
1280
|
-
return data;
|
|
1281
|
-
}, "campaignsControllerGetCampaignV2V2ResponseTransformer");
|
|
1282
|
-
var campaignsControllerUpdateCampaignV2V2ResponseTransformer = /* @__PURE__ */ __name(async (data) => {
|
|
1283
|
-
data = campaignResponseDtoSchemaResponseTransformer(data);
|
|
1284
|
-
return data;
|
|
1285
|
-
}, "campaignsControllerUpdateCampaignV2V2ResponseTransformer");
|
|
1286
|
-
var missionFulfillmentGetFlightPlansResponseSchemaResponseTransformer = /* @__PURE__ */ __name((data) => {
|
|
1287
|
-
data.data = data.data.map((item) => {
|
|
1288
|
-
item.created_at = new Date(item.created_at);
|
|
1289
|
-
item.updated_at = new Date(item.updated_at);
|
|
1290
|
-
return item;
|
|
1291
|
-
});
|
|
1292
|
-
return data;
|
|
1293
|
-
}, "missionFulfillmentGetFlightPlansResponseSchemaResponseTransformer");
|
|
1294
|
-
var flightPlansControllerGetManyV2V2ResponseTransformer = /* @__PURE__ */ __name(async (data) => {
|
|
1295
|
-
data = missionFulfillmentGetFlightPlansResponseSchemaResponseTransformer(data);
|
|
1296
|
-
return data;
|
|
1297
|
-
}, "flightPlansControllerGetManyV2V2ResponseTransformer");
|
|
1298
|
-
var flightPlanResponseSchemaResponseTransformer = /* @__PURE__ */ __name((data) => {
|
|
1299
|
-
data.created_at = new Date(data.created_at);
|
|
1300
|
-
data.updated_at = new Date(data.updated_at);
|
|
1301
|
-
return data;
|
|
1302
|
-
}, "flightPlanResponseSchemaResponseTransformer");
|
|
1303
|
-
var flightPlansControllerCreateV2V2ResponseTransformer = /* @__PURE__ */ __name(async (data) => {
|
|
1304
|
-
data = flightPlanResponseSchemaResponseTransformer(data);
|
|
1305
|
-
return data;
|
|
1306
|
-
}, "flightPlansControllerCreateV2V2ResponseTransformer");
|
|
1307
|
-
var flightPlansControllerGetV2V2ResponseTransformer = /* @__PURE__ */ __name(async (data) => {
|
|
1308
|
-
data = flightPlanResponseSchemaResponseTransformer(data);
|
|
1309
|
-
return data;
|
|
1310
|
-
}, "flightPlansControllerGetV2V2ResponseTransformer");
|
|
1311
|
-
var flightPlansControllerUpdateV2V2ResponseTransformer = /* @__PURE__ */ __name(async (data) => {
|
|
1312
|
-
data = flightPlanResponseSchemaResponseTransformer(data);
|
|
1313
|
-
return data;
|
|
1314
|
-
}, "flightPlansControllerUpdateV2V2ResponseTransformer");
|
|
1315
|
-
var listFlightsResponseSchemaResponseTransformer = /* @__PURE__ */ __name((data) => {
|
|
1316
|
-
data.data = data.data.map((item) => {
|
|
1317
|
-
item.created_at = new Date(item.created_at);
|
|
1318
|
-
item.updated_at = new Date(item.updated_at);
|
|
1319
|
-
return item;
|
|
1320
|
-
});
|
|
1321
|
-
return data;
|
|
1322
|
-
}, "listFlightsResponseSchemaResponseTransformer");
|
|
1323
|
-
var flightsControllerGetFlightsV2V2ResponseTransformer = /* @__PURE__ */ __name(async (data) => {
|
|
1324
|
-
data = listFlightsResponseSchemaResponseTransformer(data);
|
|
1325
|
-
return data;
|
|
1326
|
-
}, "flightsControllerGetFlightsV2V2ResponseTransformer");
|
|
1327
|
-
var createFlightResponseSchemaResponseTransformer = /* @__PURE__ */ __name((data) => {
|
|
1328
|
-
data.flight.created_at = new Date(data.flight.created_at);
|
|
1329
|
-
data.flight.updated_at = new Date(data.flight.updated_at);
|
|
1330
|
-
return data;
|
|
1331
|
-
}, "createFlightResponseSchemaResponseTransformer");
|
|
1332
|
-
var flightsControllerCreateFlightV2V2ResponseTransformer = /* @__PURE__ */ __name(async (data) => {
|
|
1333
|
-
data = createFlightResponseSchemaResponseTransformer(data);
|
|
1334
|
-
return data;
|
|
1335
|
-
}, "flightsControllerCreateFlightV2V2ResponseTransformer");
|
|
1336
|
-
var flightResponseSchemaResponseTransformer = /* @__PURE__ */ __name((data) => {
|
|
1337
|
-
data.created_at = new Date(data.created_at);
|
|
1338
|
-
data.updated_at = new Date(data.updated_at);
|
|
1339
|
-
return data;
|
|
1340
|
-
}, "flightResponseSchemaResponseTransformer");
|
|
1341
|
-
var flightsControllerGetFlightV2V2ResponseTransformer = /* @__PURE__ */ __name(async (data) => {
|
|
1342
|
-
data = flightResponseSchemaResponseTransformer(data);
|
|
1343
|
-
return data;
|
|
1344
|
-
}, "flightsControllerGetFlightV2V2ResponseTransformer");
|
|
1345
|
-
var flightReviewResponseSchemaResponseTransformer = /* @__PURE__ */ __name((data) => {
|
|
1346
|
-
data.created_at = new Date(data.created_at);
|
|
1347
|
-
data.updated_at = new Date(data.updated_at);
|
|
1348
|
-
if (data.reviewed_at) {
|
|
1349
|
-
data.reviewed_at = new Date(data.reviewed_at);
|
|
1350
|
-
}
|
|
1351
|
-
if (data.confirmed_at) {
|
|
1352
|
-
data.confirmed_at = new Date(data.confirmed_at);
|
|
1353
|
-
}
|
|
1354
|
-
return data;
|
|
1355
|
-
}, "flightReviewResponseSchemaResponseTransformer");
|
|
1356
|
-
var flightsControllerGetReviewV2V2ResponseTransformer = /* @__PURE__ */ __name(async (data) => {
|
|
1357
|
-
data = flightReviewResponseSchemaResponseTransformer(data);
|
|
1358
|
-
return data;
|
|
1359
|
-
}, "flightsControllerGetReviewV2V2ResponseTransformer");
|
|
1360
|
-
var flightsControllerRequestReviewV2V2ResponseTransformer = /* @__PURE__ */ __name(async (data) => {
|
|
1361
|
-
data = flightReviewResponseSchemaResponseTransformer(data);
|
|
1362
|
-
return data;
|
|
1363
|
-
}, "flightsControllerRequestReviewV2V2ResponseTransformer");
|
|
1364
|
-
var flightsControllerSubmitProvenanceV2V2ResponseTransformer = /* @__PURE__ */ __name(async (data) => {
|
|
1365
|
-
data = flightResponseSchemaResponseTransformer(data);
|
|
1366
|
-
return data;
|
|
1367
|
-
}, "flightsControllerSubmitProvenanceV2V2ResponseTransformer");
|
|
1368
|
-
var listMissionsResponseSchemaResponseTransformer = /* @__PURE__ */ __name((data) => {
|
|
1369
|
-
data.data = data.data.map((item) => {
|
|
1370
|
-
item.capture_start_time = new Date(item.capture_start_time);
|
|
1371
|
-
item.capture_end_time = new Date(item.capture_end_time);
|
|
1372
|
-
if (item.confirmed_at) {
|
|
1373
|
-
item.confirmed_at = new Date(item.confirmed_at);
|
|
1374
|
-
}
|
|
1375
|
-
if (item.confirmations) {
|
|
1376
|
-
item.confirmations = item.confirmations.map((item2) => {
|
|
1377
|
-
item2.block_timestamp = new Date(item2.block_timestamp);
|
|
1378
|
-
item2.recorded_at = new Date(item2.recorded_at);
|
|
1379
|
-
return item2;
|
|
1380
|
-
});
|
|
1381
|
-
}
|
|
1382
|
-
if (item.hold) {
|
|
1383
|
-
item.hold.expires_at = new Date(item.hold.expires_at);
|
|
1384
|
-
if (item.hold.released_at) {
|
|
1385
|
-
item.hold.released_at = new Date(item.hold.released_at);
|
|
1386
|
-
}
|
|
1387
|
-
item.hold.created_at = new Date(item.hold.created_at);
|
|
1388
|
-
item.hold.updated_at = new Date(item.hold.updated_at);
|
|
1389
|
-
}
|
|
1390
|
-
if (item.closed_at) {
|
|
1391
|
-
item.closed_at = new Date(item.closed_at);
|
|
1392
|
-
}
|
|
1393
|
-
item.created_at = new Date(item.created_at);
|
|
1394
|
-
item.updated_at = new Date(item.updated_at);
|
|
1395
|
-
return item;
|
|
1396
|
-
});
|
|
1397
|
-
return data;
|
|
1398
|
-
}, "listMissionsResponseSchemaResponseTransformer");
|
|
1399
|
-
var missionsControllerGetMissionsV2V2ResponseTransformer = /* @__PURE__ */ __name(async (data) => {
|
|
1400
|
-
data = listMissionsResponseSchemaResponseTransformer(data);
|
|
1401
|
-
return data;
|
|
1402
|
-
}, "missionsControllerGetMissionsV2V2ResponseTransformer");
|
|
1403
|
-
var createMissionsResponseSchemaResponseTransformer = /* @__PURE__ */ __name((data) => {
|
|
1404
|
-
data.results = data.results.map((item) => {
|
|
1405
|
-
item.mission.capture_start_time = new Date(item.mission.capture_start_time);
|
|
1406
|
-
item.mission.capture_end_time = new Date(item.mission.capture_end_time);
|
|
1407
|
-
if (item.mission.confirmed_at) {
|
|
1408
|
-
item.mission.confirmed_at = new Date(item.mission.confirmed_at);
|
|
1409
|
-
}
|
|
1410
|
-
if (item.mission.confirmations) {
|
|
1411
|
-
item.mission.confirmations = item.mission.confirmations.map((item2) => {
|
|
1412
|
-
item2.block_timestamp = new Date(item2.block_timestamp);
|
|
1413
|
-
item2.recorded_at = new Date(item2.recorded_at);
|
|
1414
|
-
return item2;
|
|
1415
|
-
});
|
|
1416
|
-
}
|
|
1417
|
-
if (item.mission.hold) {
|
|
1418
|
-
item.mission.hold.expires_at = new Date(item.mission.hold.expires_at);
|
|
1419
|
-
if (item.mission.hold.released_at) {
|
|
1420
|
-
item.mission.hold.released_at = new Date(item.mission.hold.released_at);
|
|
1421
|
-
}
|
|
1422
|
-
item.mission.hold.created_at = new Date(item.mission.hold.created_at);
|
|
1423
|
-
item.mission.hold.updated_at = new Date(item.mission.hold.updated_at);
|
|
1424
|
-
}
|
|
1425
|
-
if (item.mission.closed_at) {
|
|
1426
|
-
item.mission.closed_at = new Date(item.mission.closed_at);
|
|
1427
|
-
}
|
|
1428
|
-
item.mission.created_at = new Date(item.mission.created_at);
|
|
1429
|
-
item.mission.updated_at = new Date(item.mission.updated_at);
|
|
1430
|
-
return item;
|
|
1431
|
-
});
|
|
1432
|
-
return data;
|
|
1433
|
-
}, "createMissionsResponseSchemaResponseTransformer");
|
|
1434
|
-
var missionsControllerCreateMissionsV2V2ResponseTransformer = /* @__PURE__ */ __name(async (data) => {
|
|
1435
|
-
data = createMissionsResponseSchemaResponseTransformer(data);
|
|
1436
|
-
return data;
|
|
1437
|
-
}, "missionsControllerCreateMissionsV2V2ResponseTransformer");
|
|
1438
|
-
var missionResponseSchemaResponseTransformer = /* @__PURE__ */ __name((data) => {
|
|
1439
|
-
data.capture_start_time = new Date(data.capture_start_time);
|
|
1440
|
-
data.capture_end_time = new Date(data.capture_end_time);
|
|
1441
|
-
if (data.confirmed_at) {
|
|
1442
|
-
data.confirmed_at = new Date(data.confirmed_at);
|
|
1443
|
-
}
|
|
1444
|
-
if (data.confirmations) {
|
|
1445
|
-
data.confirmations = data.confirmations.map((item) => {
|
|
1446
|
-
item.block_timestamp = new Date(item.block_timestamp);
|
|
1447
|
-
item.recorded_at = new Date(item.recorded_at);
|
|
1448
|
-
return item;
|
|
1449
|
-
});
|
|
1450
|
-
}
|
|
1451
|
-
if (data.hold) {
|
|
1452
|
-
data.hold.expires_at = new Date(data.hold.expires_at);
|
|
1453
|
-
if (data.hold.released_at) {
|
|
1454
|
-
data.hold.released_at = new Date(data.hold.released_at);
|
|
1455
|
-
}
|
|
1456
|
-
data.hold.created_at = new Date(data.hold.created_at);
|
|
1457
|
-
data.hold.updated_at = new Date(data.hold.updated_at);
|
|
1458
|
-
}
|
|
1459
|
-
if (data.closed_at) {
|
|
1460
|
-
data.closed_at = new Date(data.closed_at);
|
|
1461
|
-
}
|
|
1462
|
-
data.created_at = new Date(data.created_at);
|
|
1463
|
-
data.updated_at = new Date(data.updated_at);
|
|
1464
|
-
return data;
|
|
1465
|
-
}, "missionResponseSchemaResponseTransformer");
|
|
1466
|
-
var missionsControllerGetMissionV2V2ResponseTransformer = /* @__PURE__ */ __name(async (data) => {
|
|
1467
|
-
data = missionResponseSchemaResponseTransformer(data);
|
|
1468
|
-
return data;
|
|
1469
|
-
}, "missionsControllerGetMissionV2V2ResponseTransformer");
|
|
1470
|
-
var missionsControllerUpdateMissionV2V2ResponseTransformer = /* @__PURE__ */ __name(async (data) => {
|
|
1471
|
-
data = missionResponseSchemaResponseTransformer(data);
|
|
1472
|
-
return data;
|
|
1473
|
-
}, "missionsControllerUpdateMissionV2V2ResponseTransformer");
|
|
1474
|
-
var missionsControllerCancelMissionV2V2ResponseTransformer = /* @__PURE__ */ __name(async (data) => {
|
|
1475
|
-
data = missionResponseSchemaResponseTransformer(data);
|
|
1476
|
-
return data;
|
|
1477
|
-
}, "missionsControllerCancelMissionV2V2ResponseTransformer");
|
|
1478
|
-
var missionsControllerRetryMissionV2V2ResponseTransformer = /* @__PURE__ */ __name(async (data) => {
|
|
1479
|
-
data = missionResponseSchemaResponseTransformer(data);
|
|
1480
|
-
return data;
|
|
1481
|
-
}, "missionsControllerRetryMissionV2V2ResponseTransformer");
|
|
1482
|
-
var listRewardsResponseSchemaResponseTransformer = /* @__PURE__ */ __name((data) => {
|
|
1483
|
-
data.data = data.data.map((item) => {
|
|
1484
|
-
item.created_at = new Date(item.created_at);
|
|
1485
|
-
item.updated_at = new Date(item.updated_at);
|
|
1486
|
-
return item;
|
|
1487
|
-
});
|
|
1488
|
-
return data;
|
|
1489
|
-
}, "listRewardsResponseSchemaResponseTransformer");
|
|
1490
|
-
var rewardsControllerListRewardsV2V2ResponseTransformer = /* @__PURE__ */ __name(async (data) => {
|
|
1491
|
-
data = listRewardsResponseSchemaResponseTransformer(data);
|
|
1492
|
-
return data;
|
|
1493
|
-
}, "rewardsControllerListRewardsV2V2ResponseTransformer");
|
|
1494
|
-
var missionFulfillmentZoneResponseDtoSchemaResponseTransformer = /* @__PURE__ */ __name((data) => {
|
|
1495
|
-
data.created_at = new Date(data.created_at);
|
|
1496
|
-
data.updated_at = new Date(data.updated_at);
|
|
1497
|
-
return data;
|
|
1498
|
-
}, "missionFulfillmentZoneResponseDtoSchemaResponseTransformer");
|
|
1499
|
-
var zonesControllerGetZoneV2V2ResponseTransformer = /* @__PURE__ */ __name(async (data) => {
|
|
1500
|
-
data = missionFulfillmentZoneResponseDtoSchemaResponseTransformer(data);
|
|
1501
|
-
return data;
|
|
1502
|
-
}, "zonesControllerGetZoneV2V2ResponseTransformer");
|
|
1503
|
-
var zonesControllerUpdateZoneV2V2ResponseTransformer = /* @__PURE__ */ __name(async (data) => {
|
|
1504
|
-
data = missionFulfillmentZoneResponseDtoSchemaResponseTransformer(data);
|
|
1505
|
-
return data;
|
|
1506
|
-
}, "zonesControllerUpdateZoneV2V2ResponseTransformer");
|
|
1507
|
-
|
|
1508
|
-
// src/client/sdk.gen.ts
|
|
1509
|
-
var apiControllerGetHello0V1 = /* @__PURE__ */ __name((options) => {
|
|
1510
|
-
return (options?.client ?? client).get({
|
|
1511
|
-
url: "/v1",
|
|
1512
|
-
...options
|
|
1513
|
-
});
|
|
1514
|
-
}, "apiControllerGetHello0V1");
|
|
1515
|
-
var apiControllerGetHello1 = /* @__PURE__ */ __name((options) => {
|
|
1516
|
-
return (options?.client ?? client).get({
|
|
1517
|
-
url: "/",
|
|
1518
|
-
...options
|
|
1519
|
-
});
|
|
1520
|
-
}, "apiControllerGetHello1");
|
|
1521
|
-
var apiControllerGetError0V1 = /* @__PURE__ */ __name((options) => {
|
|
1522
|
-
return (options?.client ?? client).get({
|
|
1523
|
-
url: "/v1/debug-sentry",
|
|
1524
|
-
...options
|
|
1525
|
-
});
|
|
1526
|
-
}, "apiControllerGetError0V1");
|
|
1527
|
-
var apiControllerGetError1 = /* @__PURE__ */ __name((options) => {
|
|
1528
|
-
return (options?.client ?? client).get({
|
|
1529
|
-
url: "/debug-sentry",
|
|
1530
|
-
...options
|
|
1531
|
-
});
|
|
1532
|
-
}, "apiControllerGetError1");
|
|
1533
|
-
var apiTokenControllerCreateToken0V1 = /* @__PURE__ */ __name((options) => {
|
|
1534
|
-
return (options.client ?? client).post({
|
|
1535
|
-
security: [
|
|
1536
|
-
{
|
|
1537
|
-
name: "x-api-token",
|
|
1538
|
-
type: "apiKey"
|
|
1539
|
-
}
|
|
1540
|
-
],
|
|
1541
|
-
url: "/v1/tokens",
|
|
1542
|
-
...options,
|
|
1543
|
-
headers: {
|
|
1544
|
-
"Content-Type": "application/json",
|
|
1545
|
-
...options.headers
|
|
1546
|
-
}
|
|
1547
|
-
});
|
|
1548
|
-
}, "apiTokenControllerCreateToken0V1");
|
|
1549
|
-
var apiTokenControllerCreateToken1 = /* @__PURE__ */ __name((options) => {
|
|
1550
|
-
return (options.client ?? client).post({
|
|
1551
|
-
security: [
|
|
1552
|
-
{
|
|
1553
|
-
name: "x-api-token",
|
|
1554
|
-
type: "apiKey"
|
|
1555
|
-
}
|
|
1556
|
-
],
|
|
1557
|
-
url: "/tokens",
|
|
1558
|
-
...options,
|
|
1559
|
-
headers: {
|
|
1560
|
-
"Content-Type": "application/json",
|
|
1561
|
-
...options.headers
|
|
1562
|
-
}
|
|
1563
|
-
});
|
|
1564
|
-
}, "apiTokenControllerCreateToken1");
|
|
1565
|
-
var apiTokenControllerDeleteToken0V1 = /* @__PURE__ */ __name((options) => {
|
|
1566
|
-
return (options.client ?? client).delete({
|
|
1567
|
-
security: [
|
|
1568
|
-
{
|
|
1569
|
-
name: "x-api-token",
|
|
1570
|
-
type: "apiKey"
|
|
1571
|
-
}
|
|
1572
|
-
],
|
|
1573
|
-
url: "/v1/tokens/{id}",
|
|
1574
|
-
...options
|
|
1575
|
-
});
|
|
1576
|
-
}, "apiTokenControllerDeleteToken0V1");
|
|
1577
|
-
var apiTokenControllerGetToken0V1 = /* @__PURE__ */ __name((options) => {
|
|
1578
|
-
return (options.client ?? client).get({
|
|
1579
|
-
security: [
|
|
1580
|
-
{
|
|
1581
|
-
name: "x-api-token",
|
|
1582
|
-
type: "apiKey"
|
|
1583
|
-
}
|
|
1584
|
-
],
|
|
1585
|
-
url: "/v1/tokens/{id}",
|
|
1586
|
-
...options
|
|
1587
|
-
});
|
|
1588
|
-
}, "apiTokenControllerGetToken0V1");
|
|
1589
|
-
var apiTokenControllerUpdateToken0V1 = /* @__PURE__ */ __name((options) => {
|
|
1590
|
-
return (options.client ?? client).patch({
|
|
1591
|
-
security: [
|
|
1592
|
-
{
|
|
1593
|
-
name: "x-api-token",
|
|
1594
|
-
type: "apiKey"
|
|
1595
|
-
}
|
|
1596
|
-
],
|
|
1597
|
-
responseTransformer: apiTokenControllerUpdateToken0V1ResponseTransformer,
|
|
1598
|
-
url: "/v1/tokens/{id}",
|
|
1599
|
-
...options,
|
|
1600
|
-
headers: {
|
|
1601
|
-
"Content-Type": "application/json",
|
|
1602
|
-
...options.headers
|
|
1603
|
-
}
|
|
1604
|
-
});
|
|
1605
|
-
}, "apiTokenControllerUpdateToken0V1");
|
|
1606
|
-
var apiTokenControllerDeleteToken1 = /* @__PURE__ */ __name((options) => {
|
|
1607
|
-
return (options.client ?? client).delete({
|
|
1608
|
-
security: [
|
|
1609
|
-
{
|
|
1610
|
-
name: "x-api-token",
|
|
1611
|
-
type: "apiKey"
|
|
1612
|
-
}
|
|
1613
|
-
],
|
|
1614
|
-
url: "/tokens/{id}",
|
|
1615
|
-
...options
|
|
1616
|
-
});
|
|
1617
|
-
}, "apiTokenControllerDeleteToken1");
|
|
1618
|
-
var apiTokenControllerGetToken1 = /* @__PURE__ */ __name((options) => {
|
|
1619
|
-
return (options.client ?? client).get({
|
|
1620
|
-
security: [
|
|
1621
|
-
{
|
|
1622
|
-
name: "x-api-token",
|
|
1623
|
-
type: "apiKey"
|
|
1624
|
-
}
|
|
1625
|
-
],
|
|
1626
|
-
url: "/tokens/{id}",
|
|
1627
|
-
...options
|
|
1628
|
-
});
|
|
1629
|
-
}, "apiTokenControllerGetToken1");
|
|
1630
|
-
var apiTokenControllerUpdateToken1 = /* @__PURE__ */ __name((options) => {
|
|
1631
|
-
return (options.client ?? client).patch({
|
|
1632
|
-
security: [
|
|
1633
|
-
{
|
|
1634
|
-
name: "x-api-token",
|
|
1635
|
-
type: "apiKey"
|
|
1636
|
-
}
|
|
1637
|
-
],
|
|
1638
|
-
responseTransformer: apiTokenControllerUpdateToken1ResponseTransformer,
|
|
1639
|
-
url: "/tokens/{id}",
|
|
1640
|
-
...options,
|
|
1641
|
-
headers: {
|
|
1642
|
-
"Content-Type": "application/json",
|
|
1643
|
-
...options.headers
|
|
1644
|
-
}
|
|
1645
|
-
});
|
|
1646
|
-
}, "apiTokenControllerUpdateToken1");
|
|
1647
|
-
var backfillControllerTrigger0V1 = /* @__PURE__ */ __name((options) => {
|
|
1648
|
-
return (options.client ?? client).post({
|
|
1649
|
-
security: [
|
|
1650
|
-
{
|
|
1651
|
-
name: "x-api-token",
|
|
1652
|
-
type: "apiKey"
|
|
1653
|
-
}
|
|
1654
|
-
],
|
|
1655
|
-
url: "/v1/backfill",
|
|
1656
|
-
...options,
|
|
1657
|
-
headers: {
|
|
1658
|
-
"Content-Type": "application/json",
|
|
1659
|
-
...options.headers
|
|
1660
|
-
}
|
|
1661
|
-
});
|
|
1662
|
-
}, "backfillControllerTrigger0V1");
|
|
1663
|
-
var backfillControllerTrigger1 = /* @__PURE__ */ __name((options) => {
|
|
1664
|
-
return (options.client ?? client).post({
|
|
1665
|
-
security: [
|
|
1666
|
-
{
|
|
1667
|
-
name: "x-api-token",
|
|
1668
|
-
type: "apiKey"
|
|
1669
|
-
}
|
|
1670
|
-
],
|
|
1671
|
-
url: "/backfill",
|
|
1672
|
-
...options,
|
|
1673
|
-
headers: {
|
|
1674
|
-
"Content-Type": "application/json",
|
|
1675
|
-
...options.headers
|
|
1676
|
-
}
|
|
1677
|
-
});
|
|
1678
|
-
}, "backfillControllerTrigger1");
|
|
1679
|
-
var campaignsControllerGetMany0V1 = /* @__PURE__ */ __name((options) => {
|
|
1680
|
-
return (options?.client ?? client).get({
|
|
1681
|
-
security: [
|
|
1682
|
-
{
|
|
1683
|
-
name: "x-api-token",
|
|
1684
|
-
type: "apiKey"
|
|
1685
|
-
},
|
|
1686
|
-
{
|
|
1687
|
-
name: "x-api-token",
|
|
1688
|
-
type: "apiKey"
|
|
1689
|
-
}
|
|
1690
|
-
],
|
|
1691
|
-
url: "/v1/campaigns",
|
|
1692
|
-
...options
|
|
1693
|
-
});
|
|
1694
|
-
}, "campaignsControllerGetMany0V1");
|
|
1695
|
-
var campaignsControllerCreate0V1 = /* @__PURE__ */ __name((options) => {
|
|
1696
|
-
return (options.client ?? client).post({
|
|
1697
|
-
security: [
|
|
1698
|
-
{
|
|
1699
|
-
name: "x-api-token",
|
|
1700
|
-
type: "apiKey"
|
|
1701
|
-
}
|
|
1702
|
-
],
|
|
1703
|
-
url: "/v1/campaigns",
|
|
1704
|
-
...options,
|
|
1705
|
-
headers: {
|
|
1706
|
-
"Content-Type": "application/json",
|
|
1707
|
-
...options.headers
|
|
1708
|
-
}
|
|
1709
|
-
});
|
|
1710
|
-
}, "campaignsControllerCreate0V1");
|
|
1711
|
-
var campaignsControllerGetMany1 = /* @__PURE__ */ __name((options) => {
|
|
1712
|
-
return (options?.client ?? client).get({
|
|
1713
|
-
security: [
|
|
1714
|
-
{
|
|
1715
|
-
name: "x-api-token",
|
|
1716
|
-
type: "apiKey"
|
|
1717
|
-
},
|
|
1718
|
-
{
|
|
1719
|
-
name: "x-api-token",
|
|
1720
|
-
type: "apiKey"
|
|
1721
|
-
}
|
|
1722
|
-
],
|
|
1723
|
-
url: "/campaigns",
|
|
1724
|
-
...options
|
|
1725
|
-
});
|
|
1726
|
-
}, "campaignsControllerGetMany1");
|
|
1727
|
-
var campaignsControllerCreate1 = /* @__PURE__ */ __name((options) => {
|
|
1728
|
-
return (options.client ?? client).post({
|
|
1729
|
-
security: [
|
|
1730
|
-
{
|
|
1731
|
-
name: "x-api-token",
|
|
1732
|
-
type: "apiKey"
|
|
1733
|
-
}
|
|
1734
|
-
],
|
|
1735
|
-
url: "/campaigns",
|
|
1736
|
-
...options,
|
|
1737
|
-
headers: {
|
|
1738
|
-
"Content-Type": "application/json",
|
|
1739
|
-
...options.headers
|
|
1740
|
-
}
|
|
1741
|
-
});
|
|
1742
|
-
}, "campaignsControllerCreate1");
|
|
1743
|
-
var campaignsControllerDelete0V1 = /* @__PURE__ */ __name((options) => {
|
|
1744
|
-
return (options.client ?? client).delete({
|
|
1745
|
-
security: [
|
|
1746
|
-
{
|
|
1747
|
-
name: "x-api-token",
|
|
1748
|
-
type: "apiKey"
|
|
1749
|
-
}
|
|
1750
|
-
],
|
|
1751
|
-
url: "/v1/campaigns/{id}",
|
|
1752
|
-
...options
|
|
1753
|
-
});
|
|
1754
|
-
}, "campaignsControllerDelete0V1");
|
|
1755
|
-
var campaignsControllerGet0V1 = /* @__PURE__ */ __name((options) => {
|
|
1756
|
-
return (options.client ?? client).get({
|
|
1757
|
-
security: [
|
|
1758
|
-
{
|
|
1759
|
-
name: "x-api-token",
|
|
1760
|
-
type: "apiKey"
|
|
1761
|
-
},
|
|
1762
|
-
{
|
|
1763
|
-
name: "x-api-token",
|
|
1764
|
-
type: "apiKey"
|
|
1765
|
-
}
|
|
1766
|
-
],
|
|
1767
|
-
url: "/v1/campaigns/{id}",
|
|
1768
|
-
...options
|
|
1769
|
-
});
|
|
1770
|
-
}, "campaignsControllerGet0V1");
|
|
1771
|
-
var campaignsControllerUpdate0V1 = /* @__PURE__ */ __name((options) => {
|
|
1772
|
-
return (options.client ?? client).put({
|
|
1773
|
-
security: [
|
|
1774
|
-
{
|
|
1775
|
-
name: "x-api-token",
|
|
1776
|
-
type: "apiKey"
|
|
1777
|
-
}
|
|
1778
|
-
],
|
|
1779
|
-
url: "/v1/campaigns/{id}",
|
|
1780
|
-
...options,
|
|
1781
|
-
headers: {
|
|
1782
|
-
"Content-Type": "application/json",
|
|
1783
|
-
...options.headers
|
|
1784
|
-
}
|
|
1785
|
-
});
|
|
1786
|
-
}, "campaignsControllerUpdate0V1");
|
|
1787
|
-
var campaignsControllerDelete1 = /* @__PURE__ */ __name((options) => {
|
|
1788
|
-
return (options.client ?? client).delete({
|
|
1789
|
-
security: [
|
|
1790
|
-
{
|
|
1791
|
-
name: "x-api-token",
|
|
1792
|
-
type: "apiKey"
|
|
1793
|
-
}
|
|
1794
|
-
],
|
|
1795
|
-
url: "/campaigns/{id}",
|
|
1796
|
-
...options
|
|
1797
|
-
});
|
|
1798
|
-
}, "campaignsControllerDelete1");
|
|
1799
|
-
var campaignsControllerGet1 = /* @__PURE__ */ __name((options) => {
|
|
1800
|
-
return (options.client ?? client).get({
|
|
1801
|
-
security: [
|
|
1802
|
-
{
|
|
1803
|
-
name: "x-api-token",
|
|
1804
|
-
type: "apiKey"
|
|
1805
|
-
},
|
|
1806
|
-
{
|
|
1807
|
-
name: "x-api-token",
|
|
1808
|
-
type: "apiKey"
|
|
1809
|
-
}
|
|
1810
|
-
],
|
|
1811
|
-
url: "/campaigns/{id}",
|
|
1812
|
-
...options
|
|
1813
|
-
});
|
|
1814
|
-
}, "campaignsControllerGet1");
|
|
1815
|
-
var campaignsControllerUpdate1 = /* @__PURE__ */ __name((options) => {
|
|
1816
|
-
return (options.client ?? client).put({
|
|
1817
|
-
security: [
|
|
1818
|
-
{
|
|
1819
|
-
name: "x-api-token",
|
|
1820
|
-
type: "apiKey"
|
|
1821
|
-
}
|
|
1822
|
-
],
|
|
1823
|
-
url: "/campaigns/{id}",
|
|
1824
|
-
...options,
|
|
1825
|
-
headers: {
|
|
1826
|
-
"Content-Type": "application/json",
|
|
1827
|
-
...options.headers
|
|
1828
|
-
}
|
|
1829
|
-
});
|
|
1830
|
-
}, "campaignsControllerUpdate1");
|
|
1831
|
-
var conditionsControllerGetSunAltitudeTimeLimits0V1 = /* @__PURE__ */ __name((options) => {
|
|
1832
|
-
return (options.client ?? client).get({
|
|
1833
|
-
responseTransformer: conditionsControllerGetSunAltitudeTimeLimits0V1ResponseTransformer,
|
|
1834
|
-
url: "/v1/conditions/sun-altitude",
|
|
1835
|
-
...options
|
|
1836
|
-
});
|
|
1837
|
-
}, "conditionsControllerGetSunAltitudeTimeLimits0V1");
|
|
1838
|
-
var conditionsControllerGetSunAltitudeTimeLimits1 = /* @__PURE__ */ __name((options) => {
|
|
1839
|
-
return (options.client ?? client).get({
|
|
1840
|
-
responseTransformer: conditionsControllerGetSunAltitudeTimeLimits1ResponseTransformer,
|
|
1841
|
-
url: "/conditions/sun-altitude",
|
|
1842
|
-
...options
|
|
1843
|
-
});
|
|
1844
|
-
}, "conditionsControllerGetSunAltitudeTimeLimits1");
|
|
1845
|
-
var contractsControllerGetAllContracts0V1 = /* @__PURE__ */ __name((options) => {
|
|
1846
|
-
return (options?.client ?? client).get({
|
|
1847
|
-
security: [
|
|
1848
|
-
{
|
|
1849
|
-
name: "x-api-token",
|
|
1850
|
-
type: "apiKey"
|
|
1851
|
-
}
|
|
1852
|
-
],
|
|
1853
|
-
responseTransformer: contractsControllerGetAllContracts0V1ResponseTransformer,
|
|
1854
|
-
url: "/v1/contracts",
|
|
1855
|
-
...options
|
|
1856
|
-
});
|
|
1857
|
-
}, "contractsControllerGetAllContracts0V1");
|
|
1858
|
-
var contractsControllerCreateContract0V1 = /* @__PURE__ */ __name((options) => {
|
|
1859
|
-
return (options.client ?? client).post({
|
|
1860
|
-
security: [
|
|
1861
|
-
{
|
|
1862
|
-
name: "x-api-token",
|
|
1863
|
-
type: "apiKey"
|
|
1864
|
-
}
|
|
1865
|
-
],
|
|
1866
|
-
url: "/v1/contracts",
|
|
1867
|
-
...options,
|
|
1868
|
-
headers: {
|
|
1869
|
-
"Content-Type": "application/json",
|
|
1870
|
-
...options.headers
|
|
1871
|
-
}
|
|
1872
|
-
});
|
|
1873
|
-
}, "contractsControllerCreateContract0V1");
|
|
1874
|
-
var contractsControllerGetAllContracts1 = /* @__PURE__ */ __name((options) => {
|
|
1875
|
-
return (options?.client ?? client).get({
|
|
1876
|
-
security: [
|
|
1877
|
-
{
|
|
1878
|
-
name: "x-api-token",
|
|
1879
|
-
type: "apiKey"
|
|
1880
|
-
}
|
|
1881
|
-
],
|
|
1882
|
-
responseTransformer: contractsControllerGetAllContracts1ResponseTransformer,
|
|
1883
|
-
url: "/contracts",
|
|
1884
|
-
...options
|
|
1885
|
-
});
|
|
1886
|
-
}, "contractsControllerGetAllContracts1");
|
|
1887
|
-
var contractsControllerCreateContract1 = /* @__PURE__ */ __name((options) => {
|
|
1888
|
-
return (options.client ?? client).post({
|
|
1889
|
-
security: [
|
|
1890
|
-
{
|
|
1891
|
-
name: "x-api-token",
|
|
1892
|
-
type: "apiKey"
|
|
1893
|
-
}
|
|
1894
|
-
],
|
|
1895
|
-
url: "/contracts",
|
|
1896
|
-
...options,
|
|
1897
|
-
headers: {
|
|
1898
|
-
"Content-Type": "application/json",
|
|
1899
|
-
...options.headers
|
|
1900
|
-
}
|
|
1901
|
-
});
|
|
1902
|
-
}, "contractsControllerCreateContract1");
|
|
1903
|
-
var contractsControllerDeleteContract0V1 = /* @__PURE__ */ __name((options) => {
|
|
1904
|
-
return (options.client ?? client).delete({
|
|
1905
|
-
security: [
|
|
1906
|
-
{
|
|
1907
|
-
name: "x-api-token",
|
|
1908
|
-
type: "apiKey"
|
|
1909
|
-
}
|
|
1910
|
-
],
|
|
1911
|
-
url: "/v1/contracts/{id}",
|
|
1912
|
-
...options
|
|
1913
|
-
});
|
|
1914
|
-
}, "contractsControllerDeleteContract0V1");
|
|
1915
|
-
var contractsControllerGetContract0V1 = /* @__PURE__ */ __name((options) => {
|
|
1916
|
-
return (options.client ?? client).get({
|
|
1917
|
-
security: [
|
|
1918
|
-
{
|
|
1919
|
-
name: "x-api-token",
|
|
1920
|
-
type: "apiKey"
|
|
1921
|
-
}
|
|
1922
|
-
],
|
|
1923
|
-
url: "/v1/contracts/{id}",
|
|
1924
|
-
...options
|
|
1925
|
-
});
|
|
1926
|
-
}, "contractsControllerGetContract0V1");
|
|
1927
|
-
var contractsControllerUpdateContract0V1 = /* @__PURE__ */ __name((options) => {
|
|
1928
|
-
return (options.client ?? client).patch({
|
|
1929
|
-
security: [
|
|
1930
|
-
{
|
|
1931
|
-
name: "x-api-token",
|
|
1932
|
-
type: "apiKey"
|
|
1933
|
-
}
|
|
1934
|
-
],
|
|
1935
|
-
url: "/v1/contracts/{id}",
|
|
1936
|
-
...options,
|
|
1937
|
-
headers: {
|
|
1938
|
-
"Content-Type": "application/json",
|
|
1939
|
-
...options.headers
|
|
1940
|
-
}
|
|
1941
|
-
});
|
|
1942
|
-
}, "contractsControllerUpdateContract0V1");
|
|
1943
|
-
var contractsControllerDeleteContract1 = /* @__PURE__ */ __name((options) => {
|
|
1944
|
-
return (options.client ?? client).delete({
|
|
1945
|
-
security: [
|
|
1946
|
-
{
|
|
1947
|
-
name: "x-api-token",
|
|
1948
|
-
type: "apiKey"
|
|
1949
|
-
}
|
|
1950
|
-
],
|
|
1951
|
-
url: "/contracts/{id}",
|
|
1952
|
-
...options
|
|
1953
|
-
});
|
|
1954
|
-
}, "contractsControllerDeleteContract1");
|
|
1955
|
-
var contractsControllerGetContract1 = /* @__PURE__ */ __name((options) => {
|
|
1956
|
-
return (options.client ?? client).get({
|
|
1957
|
-
security: [
|
|
1958
|
-
{
|
|
1959
|
-
name: "x-api-token",
|
|
1960
|
-
type: "apiKey"
|
|
1961
|
-
}
|
|
1962
|
-
],
|
|
1963
|
-
url: "/contracts/{id}",
|
|
1964
|
-
...options
|
|
1965
|
-
});
|
|
1966
|
-
}, "contractsControllerGetContract1");
|
|
1967
|
-
var contractsControllerUpdateContract1 = /* @__PURE__ */ __name((options) => {
|
|
1968
|
-
return (options.client ?? client).patch({
|
|
1969
|
-
security: [
|
|
1970
|
-
{
|
|
1971
|
-
name: "x-api-token",
|
|
1972
|
-
type: "apiKey"
|
|
1973
|
-
}
|
|
1974
|
-
],
|
|
1975
|
-
url: "/contracts/{id}",
|
|
1976
|
-
...options,
|
|
1977
|
-
headers: {
|
|
1978
|
-
"Content-Type": "application/json",
|
|
1979
|
-
...options.headers
|
|
1980
|
-
}
|
|
1981
|
-
});
|
|
1982
|
-
}, "contractsControllerUpdateContract1");
|
|
1983
|
-
var dlqRedriverControllerRedriveDlq0V1 = /* @__PURE__ */ __name((options) => {
|
|
1984
|
-
return (options.client ?? client).post({
|
|
1985
|
-
security: [
|
|
1986
|
-
{
|
|
1987
|
-
name: "x-api-token",
|
|
1988
|
-
type: "apiKey"
|
|
1989
|
-
}
|
|
1990
|
-
],
|
|
1991
|
-
url: "/v1/dlq-redriver/redrive",
|
|
1992
|
-
...options,
|
|
1993
|
-
headers: {
|
|
1994
|
-
"Content-Type": "application/json",
|
|
1995
|
-
...options.headers
|
|
1996
|
-
}
|
|
1997
|
-
});
|
|
1998
|
-
}, "dlqRedriverControllerRedriveDlq0V1");
|
|
1999
|
-
var dlqRedriverControllerRedriveDlq1 = /* @__PURE__ */ __name((options) => {
|
|
2000
|
-
return (options.client ?? client).post({
|
|
2001
|
-
security: [
|
|
2002
|
-
{
|
|
2003
|
-
name: "x-api-token",
|
|
2004
|
-
type: "apiKey"
|
|
2005
|
-
}
|
|
2006
|
-
],
|
|
2007
|
-
url: "/dlq-redriver/redrive",
|
|
2008
|
-
...options,
|
|
2009
|
-
headers: {
|
|
2010
|
-
"Content-Type": "application/json",
|
|
2011
|
-
...options.headers
|
|
2012
|
-
}
|
|
2013
|
-
});
|
|
2014
|
-
}, "dlqRedriverControllerRedriveDlq1");
|
|
2015
|
-
var flightsControllerGenerateStorageKey0V1 = /* @__PURE__ */ __name((options) => {
|
|
2016
|
-
return (options.client ?? client).get({
|
|
2017
|
-
security: [
|
|
2018
|
-
{
|
|
2019
|
-
name: "x-api-token",
|
|
2020
|
-
type: "apiKey"
|
|
2021
|
-
}
|
|
2022
|
-
],
|
|
2023
|
-
url: "/v1/flights/storage-key",
|
|
2024
|
-
...options
|
|
2025
|
-
});
|
|
2026
|
-
}, "flightsControllerGenerateStorageKey0V1");
|
|
2027
|
-
var flightsControllerGenerateStorageKey1 = /* @__PURE__ */ __name((options) => {
|
|
2028
|
-
return (options.client ?? client).get({
|
|
2029
|
-
security: [
|
|
2030
|
-
{
|
|
2031
|
-
name: "x-api-token",
|
|
2032
|
-
type: "apiKey"
|
|
2033
|
-
}
|
|
2034
|
-
],
|
|
2035
|
-
url: "/flights/storage-key",
|
|
2036
|
-
...options
|
|
2037
|
-
});
|
|
2038
|
-
}, "flightsControllerGenerateStorageKey1");
|
|
2039
|
-
var flightsControllerGetFlight0V1 = /* @__PURE__ */ __name((options) => {
|
|
2040
|
-
return (options.client ?? client).get({
|
|
2041
|
-
security: [
|
|
2042
|
-
{
|
|
2043
|
-
name: "x-api-token",
|
|
2044
|
-
type: "apiKey"
|
|
2045
|
-
}
|
|
2046
|
-
],
|
|
2047
|
-
responseTransformer: flightsControllerGetFlight0V1ResponseTransformer,
|
|
2048
|
-
url: "/v1/flights/{flightId}",
|
|
2049
|
-
...options
|
|
2050
|
-
});
|
|
2051
|
-
}, "flightsControllerGetFlight0V1");
|
|
2052
|
-
var flightsControllerGetFlight1 = /* @__PURE__ */ __name((options) => {
|
|
2053
|
-
return (options.client ?? client).get({
|
|
2054
|
-
security: [
|
|
2055
|
-
{
|
|
2056
|
-
name: "x-api-token",
|
|
2057
|
-
type: "apiKey"
|
|
2058
|
-
}
|
|
2059
|
-
],
|
|
2060
|
-
responseTransformer: flightsControllerGetFlight1ResponseTransformer,
|
|
2061
|
-
url: "/flights/{flightId}",
|
|
2062
|
-
...options
|
|
2063
|
-
});
|
|
2064
|
-
}, "flightsControllerGetFlight1");
|
|
2065
|
-
var flightsControllerCreatePresignedUrls0V1 = /* @__PURE__ */ __name((options) => {
|
|
2066
|
-
return (options.client ?? client).post({
|
|
2067
|
-
security: [
|
|
2068
|
-
{
|
|
2069
|
-
name: "x-api-token",
|
|
2070
|
-
type: "apiKey"
|
|
2071
|
-
}
|
|
2072
|
-
],
|
|
2073
|
-
url: "/v1/flights/files",
|
|
2074
|
-
...options,
|
|
2075
|
-
headers: {
|
|
2076
|
-
"Content-Type": "application/json",
|
|
2077
|
-
...options.headers
|
|
2078
|
-
}
|
|
2079
|
-
});
|
|
2080
|
-
}, "flightsControllerCreatePresignedUrls0V1");
|
|
2081
|
-
var flightsControllerCreatePresignedUrls1 = /* @__PURE__ */ __name((options) => {
|
|
2082
|
-
return (options.client ?? client).post({
|
|
2083
|
-
security: [
|
|
2084
|
-
{
|
|
2085
|
-
name: "x-api-token",
|
|
2086
|
-
type: "apiKey"
|
|
2087
|
-
}
|
|
2088
|
-
],
|
|
2089
|
-
url: "/flights/files",
|
|
2090
|
-
...options,
|
|
2091
|
-
headers: {
|
|
2092
|
-
"Content-Type": "application/json",
|
|
2093
|
-
...options.headers
|
|
2094
|
-
}
|
|
2095
|
-
});
|
|
2096
|
-
}, "flightsControllerCreatePresignedUrls1");
|
|
2097
|
-
var flightsControllerValidateFlight0V1 = /* @__PURE__ */ __name((options) => {
|
|
2098
|
-
return (options.client ?? client).post({
|
|
2099
|
-
security: [
|
|
2100
|
-
{
|
|
2101
|
-
name: "x-api-token",
|
|
2102
|
-
type: "apiKey"
|
|
2103
|
-
}
|
|
2104
|
-
],
|
|
2105
|
-
responseTransformer: flightsControllerValidateFlight0V1ResponseTransformer,
|
|
2106
|
-
url: "/v1/flights",
|
|
2107
|
-
...options,
|
|
2108
|
-
headers: {
|
|
2109
|
-
"Content-Type": "application/json",
|
|
2110
|
-
...options.headers
|
|
2111
|
-
}
|
|
2112
|
-
});
|
|
2113
|
-
}, "flightsControllerValidateFlight0V1");
|
|
2114
|
-
var flightsControllerValidateFlight1 = /* @__PURE__ */ __name((options) => {
|
|
2115
|
-
return (options.client ?? client).post({
|
|
2116
|
-
security: [
|
|
2117
|
-
{
|
|
2118
|
-
name: "x-api-token",
|
|
2119
|
-
type: "apiKey"
|
|
2120
|
-
}
|
|
2121
|
-
],
|
|
2122
|
-
responseTransformer: flightsControllerValidateFlight1ResponseTransformer,
|
|
2123
|
-
url: "/flights",
|
|
2124
|
-
...options,
|
|
2125
|
-
headers: {
|
|
2126
|
-
"Content-Type": "application/json",
|
|
2127
|
-
...options.headers
|
|
2128
|
-
}
|
|
2129
|
-
});
|
|
2130
|
-
}, "flightsControllerValidateFlight1");
|
|
2131
|
-
var flightPlansControllerGetMany0V1 = /* @__PURE__ */ __name((options) => {
|
|
2132
|
-
return (options?.client ?? client).get({
|
|
2133
|
-
security: [
|
|
2134
|
-
{
|
|
2135
|
-
name: "x-api-token",
|
|
2136
|
-
type: "apiKey"
|
|
2137
|
-
},
|
|
2138
|
-
{
|
|
2139
|
-
name: "x-api-token",
|
|
2140
|
-
type: "apiKey"
|
|
2141
|
-
}
|
|
2142
|
-
],
|
|
2143
|
-
responseTransformer: flightPlansControllerGetMany0V1ResponseTransformer,
|
|
2144
|
-
url: "/v1/flight-plans",
|
|
2145
|
-
...options
|
|
2146
|
-
});
|
|
2147
|
-
}, "flightPlansControllerGetMany0V1");
|
|
2148
|
-
var flightPlansControllerCreate0V1 = /* @__PURE__ */ __name((options) => {
|
|
2149
|
-
return (options.client ?? client).post({
|
|
2150
|
-
security: [
|
|
2151
|
-
{
|
|
2152
|
-
name: "x-api-token",
|
|
2153
|
-
type: "apiKey"
|
|
2154
|
-
}
|
|
2155
|
-
],
|
|
2156
|
-
responseTransformer: flightPlansControllerCreate0V1ResponseTransformer,
|
|
2157
|
-
url: "/v1/flight-plans",
|
|
2158
|
-
...options,
|
|
2159
|
-
headers: {
|
|
2160
|
-
"Content-Type": "application/json",
|
|
2161
|
-
...options.headers
|
|
2162
|
-
}
|
|
2163
|
-
});
|
|
2164
|
-
}, "flightPlansControllerCreate0V1");
|
|
2165
|
-
var flightPlansControllerGetMany1 = /* @__PURE__ */ __name((options) => {
|
|
2166
|
-
return (options?.client ?? client).get({
|
|
2167
|
-
security: [
|
|
2168
|
-
{
|
|
2169
|
-
name: "x-api-token",
|
|
2170
|
-
type: "apiKey"
|
|
2171
|
-
},
|
|
2172
|
-
{
|
|
2173
|
-
name: "x-api-token",
|
|
2174
|
-
type: "apiKey"
|
|
2175
|
-
}
|
|
2176
|
-
],
|
|
2177
|
-
responseTransformer: flightPlansControllerGetMany1ResponseTransformer,
|
|
2178
|
-
url: "/flight-plans",
|
|
2179
|
-
...options
|
|
2180
|
-
});
|
|
2181
|
-
}, "flightPlansControllerGetMany1");
|
|
2182
|
-
var flightPlansControllerCreate1 = /* @__PURE__ */ __name((options) => {
|
|
2183
|
-
return (options.client ?? client).post({
|
|
2184
|
-
security: [
|
|
2185
|
-
{
|
|
2186
|
-
name: "x-api-token",
|
|
2187
|
-
type: "apiKey"
|
|
2188
|
-
}
|
|
2189
|
-
],
|
|
2190
|
-
responseTransformer: flightPlansControllerCreate1ResponseTransformer,
|
|
2191
|
-
url: "/flight-plans",
|
|
2192
|
-
...options,
|
|
2193
|
-
headers: {
|
|
2194
|
-
"Content-Type": "application/json",
|
|
2195
|
-
...options.headers
|
|
2196
|
-
}
|
|
2197
|
-
});
|
|
2198
|
-
}, "flightPlansControllerCreate1");
|
|
2199
|
-
var flightPlansControllerGet0V1 = /* @__PURE__ */ __name((options) => {
|
|
2200
|
-
return (options.client ?? client).get({
|
|
2201
|
-
security: [
|
|
2202
|
-
{
|
|
2203
|
-
name: "x-api-token",
|
|
2204
|
-
type: "apiKey"
|
|
2205
|
-
},
|
|
2206
|
-
{
|
|
2207
|
-
name: "x-api-token",
|
|
2208
|
-
type: "apiKey"
|
|
2209
|
-
}
|
|
2210
|
-
],
|
|
2211
|
-
responseTransformer: flightPlansControllerGet0V1ResponseTransformer,
|
|
2212
|
-
url: "/v1/flight-plans/{id}",
|
|
2213
|
-
...options
|
|
2214
|
-
});
|
|
2215
|
-
}, "flightPlansControllerGet0V1");
|
|
2216
|
-
var flightPlansControllerGet1 = /* @__PURE__ */ __name((options) => {
|
|
2217
|
-
return (options.client ?? client).get({
|
|
2218
|
-
security: [
|
|
2219
|
-
{
|
|
2220
|
-
name: "x-api-token",
|
|
2221
|
-
type: "apiKey"
|
|
2222
|
-
},
|
|
2223
|
-
{
|
|
2224
|
-
name: "x-api-token",
|
|
2225
|
-
type: "apiKey"
|
|
2226
|
-
}
|
|
2227
|
-
],
|
|
2228
|
-
responseTransformer: flightPlansControllerGet1ResponseTransformer,
|
|
2229
|
-
url: "/flight-plans/{id}",
|
|
2230
|
-
...options
|
|
2231
|
-
});
|
|
2232
|
-
}, "flightPlansControllerGet1");
|
|
2233
|
-
var flightReviewsControllerGetFlightReview0V1 = /* @__PURE__ */ __name((options) => {
|
|
2234
|
-
return (options.client ?? client).get({
|
|
2235
|
-
security: [
|
|
2236
|
-
{
|
|
2237
|
-
name: "x-api-token",
|
|
2238
|
-
type: "apiKey"
|
|
2239
|
-
}
|
|
2240
|
-
],
|
|
2241
|
-
responseTransformer: flightReviewsControllerGetFlightReview0V1ResponseTransformer,
|
|
2242
|
-
url: "/v1/flight-reviews/{id}",
|
|
2243
|
-
...options
|
|
2244
|
-
});
|
|
2245
|
-
}, "flightReviewsControllerGetFlightReview0V1");
|
|
2246
|
-
var flightReviewsControllerGetFlightReview1 = /* @__PURE__ */ __name((options) => {
|
|
2247
|
-
return (options.client ?? client).get({
|
|
2248
|
-
security: [
|
|
2249
|
-
{
|
|
2250
|
-
name: "x-api-token",
|
|
2251
|
-
type: "apiKey"
|
|
2252
|
-
}
|
|
2253
|
-
],
|
|
2254
|
-
responseTransformer: flightReviewsControllerGetFlightReview1ResponseTransformer,
|
|
2255
|
-
url: "/flight-reviews/{id}",
|
|
2256
|
-
...options
|
|
2257
|
-
});
|
|
2258
|
-
}, "flightReviewsControllerGetFlightReview1");
|
|
2259
|
-
var flightReviewsControllerGetFlightReviews0V1 = /* @__PURE__ */ __name((options) => {
|
|
2260
|
-
return (options.client ?? client).get({
|
|
2261
|
-
security: [
|
|
2262
|
-
{
|
|
2263
|
-
name: "x-api-token",
|
|
2264
|
-
type: "apiKey"
|
|
2265
|
-
}
|
|
2266
|
-
],
|
|
2267
|
-
responseTransformer: flightReviewsControllerGetFlightReviews0V1ResponseTransformer,
|
|
2268
|
-
url: "/v1/flight-reviews",
|
|
2269
|
-
...options
|
|
2270
|
-
});
|
|
2271
|
-
}, "flightReviewsControllerGetFlightReviews0V1");
|
|
2272
|
-
var flightReviewsControllerGetFlightReviews1 = /* @__PURE__ */ __name((options) => {
|
|
2273
|
-
return (options.client ?? client).get({
|
|
2274
|
-
security: [
|
|
2275
|
-
{
|
|
2276
|
-
name: "x-api-token",
|
|
2277
|
-
type: "apiKey"
|
|
2278
|
-
}
|
|
2279
|
-
],
|
|
2280
|
-
responseTransformer: flightReviewsControllerGetFlightReviews1ResponseTransformer,
|
|
2281
|
-
url: "/flight-reviews",
|
|
2282
|
-
...options
|
|
2283
|
-
});
|
|
2284
|
-
}, "flightReviewsControllerGetFlightReviews1");
|
|
2285
|
-
var keysControllerGetProvenanceCryptoKey0V1 = /* @__PURE__ */ __name((options) => {
|
|
2286
|
-
return (options?.client ?? client).get({
|
|
2287
|
-
url: "/v1/keys",
|
|
2288
|
-
...options
|
|
2289
|
-
});
|
|
2290
|
-
}, "keysControllerGetProvenanceCryptoKey0V1");
|
|
2291
|
-
var keysControllerGetProvenanceCryptoKey1 = /* @__PURE__ */ __name((options) => {
|
|
2292
|
-
return (options?.client ?? client).get({
|
|
2293
|
-
url: "/keys",
|
|
2294
|
-
...options
|
|
2295
|
-
});
|
|
2296
|
-
}, "keysControllerGetProvenanceCryptoKey1");
|
|
2297
|
-
var missionsControllerGetMission0V1 = /* @__PURE__ */ __name((options) => {
|
|
2298
|
-
return (options.client ?? client).get({
|
|
2299
|
-
security: [
|
|
2300
|
-
{
|
|
2301
|
-
name: "x-api-token",
|
|
2302
|
-
type: "apiKey"
|
|
2303
|
-
},
|
|
2304
|
-
{
|
|
2305
|
-
name: "x-api-token",
|
|
2306
|
-
type: "apiKey"
|
|
2307
|
-
}
|
|
2308
|
-
],
|
|
2309
|
-
responseTransformer: missionsControllerGetMission0V1ResponseTransformer,
|
|
2310
|
-
url: "/v1/missions/{id}",
|
|
2311
|
-
...options
|
|
2312
|
-
});
|
|
2313
|
-
}, "missionsControllerGetMission0V1");
|
|
2314
|
-
var missionsControllerGetMission1 = /* @__PURE__ */ __name((options) => {
|
|
2315
|
-
return (options.client ?? client).get({
|
|
2316
|
-
security: [
|
|
2317
|
-
{
|
|
2318
|
-
name: "x-api-token",
|
|
2319
|
-
type: "apiKey"
|
|
2320
|
-
},
|
|
2321
|
-
{
|
|
2322
|
-
name: "x-api-token",
|
|
2323
|
-
type: "apiKey"
|
|
2324
|
-
}
|
|
2325
|
-
],
|
|
2326
|
-
responseTransformer: missionsControllerGetMission1ResponseTransformer,
|
|
2327
|
-
url: "/missions/{id}",
|
|
2328
|
-
...options
|
|
2329
|
-
});
|
|
2330
|
-
}, "missionsControllerGetMission1");
|
|
2331
|
-
var missionsControllerGetMissions0V1 = /* @__PURE__ */ __name((options) => {
|
|
2332
|
-
return (options?.client ?? client).get({
|
|
2333
|
-
security: [
|
|
2334
|
-
{
|
|
2335
|
-
name: "x-api-token",
|
|
2336
|
-
type: "apiKey"
|
|
2337
|
-
},
|
|
2338
|
-
{
|
|
2339
|
-
name: "x-api-token",
|
|
2340
|
-
type: "apiKey"
|
|
2341
|
-
}
|
|
2342
|
-
],
|
|
2343
|
-
responseTransformer: missionsControllerGetMissions0V1ResponseTransformer,
|
|
2344
|
-
url: "/v1/missions",
|
|
2345
|
-
...options
|
|
2346
|
-
});
|
|
2347
|
-
}, "missionsControllerGetMissions0V1");
|
|
2348
|
-
var missionsControllerCreateMissions0V1 = /* @__PURE__ */ __name((options) => {
|
|
2349
|
-
return (options.client ?? client).post({
|
|
2350
|
-
security: [
|
|
2351
|
-
{
|
|
2352
|
-
name: "x-api-token",
|
|
2353
|
-
type: "apiKey"
|
|
2354
|
-
}
|
|
2355
|
-
],
|
|
2356
|
-
responseTransformer: missionsControllerCreateMissions0V1ResponseTransformer,
|
|
2357
|
-
url: "/v1/missions",
|
|
2358
|
-
...options,
|
|
2359
|
-
headers: {
|
|
2360
|
-
"Content-Type": "application/json",
|
|
2361
|
-
...options.headers
|
|
2362
|
-
}
|
|
2363
|
-
});
|
|
2364
|
-
}, "missionsControllerCreateMissions0V1");
|
|
2365
|
-
var missionsControllerUpdateMissions0V1 = /* @__PURE__ */ __name((options) => {
|
|
2366
|
-
return (options.client ?? client).put({
|
|
2367
|
-
security: [
|
|
2368
|
-
{
|
|
2369
|
-
name: "x-api-token",
|
|
2370
|
-
type: "apiKey"
|
|
2371
|
-
}
|
|
2372
|
-
],
|
|
2373
|
-
url: "/v1/missions",
|
|
2374
|
-
...options,
|
|
2375
|
-
headers: {
|
|
2376
|
-
"Content-Type": "application/json",
|
|
2377
|
-
...options.headers
|
|
2378
|
-
}
|
|
2379
|
-
});
|
|
2380
|
-
}, "missionsControllerUpdateMissions0V1");
|
|
2381
|
-
var missionsControllerGetMissions1 = /* @__PURE__ */ __name((options) => {
|
|
2382
|
-
return (options?.client ?? client).get({
|
|
2383
|
-
security: [
|
|
2384
|
-
{
|
|
2385
|
-
name: "x-api-token",
|
|
2386
|
-
type: "apiKey"
|
|
2387
|
-
},
|
|
2388
|
-
{
|
|
2389
|
-
name: "x-api-token",
|
|
2390
|
-
type: "apiKey"
|
|
2391
|
-
}
|
|
2392
|
-
],
|
|
2393
|
-
responseTransformer: missionsControllerGetMissions1ResponseTransformer,
|
|
2394
|
-
url: "/missions",
|
|
2395
|
-
...options
|
|
2396
|
-
});
|
|
2397
|
-
}, "missionsControllerGetMissions1");
|
|
2398
|
-
var missionsControllerCreateMissions1 = /* @__PURE__ */ __name((options) => {
|
|
2399
|
-
return (options.client ?? client).post({
|
|
2400
|
-
security: [
|
|
2401
|
-
{
|
|
2402
|
-
name: "x-api-token",
|
|
2403
|
-
type: "apiKey"
|
|
2404
|
-
}
|
|
2405
|
-
],
|
|
2406
|
-
responseTransformer: missionsControllerCreateMissions1ResponseTransformer,
|
|
2407
|
-
url: "/missions",
|
|
2408
|
-
...options,
|
|
2409
|
-
headers: {
|
|
2410
|
-
"Content-Type": "application/json",
|
|
2411
|
-
...options.headers
|
|
2412
|
-
}
|
|
2413
|
-
});
|
|
2414
|
-
}, "missionsControllerCreateMissions1");
|
|
2415
|
-
var missionsControllerUpdateMissions1 = /* @__PURE__ */ __name((options) => {
|
|
2416
|
-
return (options.client ?? client).put({
|
|
2417
|
-
security: [
|
|
2418
|
-
{
|
|
2419
|
-
name: "x-api-token",
|
|
2420
|
-
type: "apiKey"
|
|
2421
|
-
}
|
|
2422
|
-
],
|
|
2423
|
-
url: "/missions",
|
|
2424
|
-
...options,
|
|
2425
|
-
headers: {
|
|
2426
|
-
"Content-Type": "application/json",
|
|
2427
|
-
...options.headers
|
|
2428
|
-
}
|
|
2429
|
-
});
|
|
2430
|
-
}, "missionsControllerUpdateMissions1");
|
|
2431
|
-
var missionsControllerRepriceMissions0V1 = /* @__PURE__ */ __name((options) => {
|
|
2432
|
-
return (options.client ?? client).put({
|
|
2433
|
-
security: [
|
|
2434
|
-
{
|
|
2435
|
-
name: "x-api-token",
|
|
2436
|
-
type: "apiKey"
|
|
2437
|
-
}
|
|
2438
|
-
],
|
|
2439
|
-
url: "/v1/missions/amounts",
|
|
2440
|
-
...options,
|
|
2441
|
-
headers: {
|
|
2442
|
-
"Content-Type": "application/json",
|
|
2443
|
-
...options.headers
|
|
2444
|
-
}
|
|
2445
|
-
});
|
|
2446
|
-
}, "missionsControllerRepriceMissions0V1");
|
|
2447
|
-
var missionsControllerRepriceMissions1 = /* @__PURE__ */ __name((options) => {
|
|
2448
|
-
return (options.client ?? client).put({
|
|
2449
|
-
security: [
|
|
2450
|
-
{
|
|
2451
|
-
name: "x-api-token",
|
|
2452
|
-
type: "apiKey"
|
|
2453
|
-
}
|
|
2454
|
-
],
|
|
2455
|
-
url: "/missions/amounts",
|
|
2456
|
-
...options,
|
|
2457
|
-
headers: {
|
|
2458
|
-
"Content-Type": "application/json",
|
|
2459
|
-
...options.headers
|
|
2460
|
-
}
|
|
2461
|
-
});
|
|
2462
|
-
}, "missionsControllerRepriceMissions1");
|
|
2463
|
-
var listProposals = /* @__PURE__ */ __name((options) => {
|
|
2464
|
-
return (options?.client ?? client).get({
|
|
2465
|
-
security: [
|
|
2466
|
-
{
|
|
2467
|
-
name: "x-api-token",
|
|
2468
|
-
type: "apiKey"
|
|
2469
|
-
}
|
|
2470
|
-
],
|
|
2471
|
-
responseTransformer: listProposalsResponseTransformer,
|
|
2472
|
-
url: "/v1/proposals",
|
|
2473
|
-
...options
|
|
2474
|
-
});
|
|
2475
|
-
}, "listProposals");
|
|
2476
|
-
var submitProposal = /* @__PURE__ */ __name((options) => {
|
|
2477
|
-
return (options.client ?? client).post({
|
|
2478
|
-
security: [
|
|
2479
|
-
{
|
|
2480
|
-
name: "x-api-token",
|
|
2481
|
-
type: "apiKey"
|
|
2482
|
-
}
|
|
2483
|
-
],
|
|
2484
|
-
url: "/v1/proposals",
|
|
2485
|
-
...options,
|
|
2486
|
-
headers: {
|
|
2487
|
-
"Content-Type": "application/json",
|
|
2488
|
-
...options.headers
|
|
2489
|
-
}
|
|
2490
|
-
});
|
|
2491
|
-
}, "submitProposal");
|
|
2492
|
-
var getProposal = /* @__PURE__ */ __name((options) => {
|
|
2493
|
-
return (options.client ?? client).get({
|
|
2494
|
-
security: [
|
|
2495
|
-
{
|
|
2496
|
-
name: "x-api-token",
|
|
2497
|
-
type: "apiKey"
|
|
2498
|
-
}
|
|
2499
|
-
],
|
|
2500
|
-
responseTransformer: getProposalResponseTransformer,
|
|
2501
|
-
url: "/v1/proposals/{id}",
|
|
2502
|
-
...options
|
|
2503
|
-
});
|
|
2504
|
-
}, "getProposal");
|
|
2505
|
-
var reviewProposal = /* @__PURE__ */ __name((options) => {
|
|
2506
|
-
return (options.client ?? client).post({
|
|
2507
|
-
security: [
|
|
2508
|
-
{
|
|
2509
|
-
name: "x-api-token",
|
|
2510
|
-
type: "apiKey"
|
|
2511
|
-
}
|
|
2512
|
-
],
|
|
2513
|
-
url: "/v1/proposals/{id}/review",
|
|
2514
|
-
...options,
|
|
2515
|
-
headers: {
|
|
2516
|
-
"Content-Type": "application/json",
|
|
2517
|
-
...options.headers
|
|
2518
|
-
}
|
|
2519
|
-
});
|
|
2520
|
-
}, "reviewProposal");
|
|
2521
|
-
var protocolTriggersApiControllerTriggerPayout0V1 = /* @__PURE__ */ __name((options) => {
|
|
2522
|
-
return (options.client ?? client).post({
|
|
2523
|
-
security: [
|
|
2524
|
-
{
|
|
2525
|
-
name: "x-api-token",
|
|
2526
|
-
type: "apiKey"
|
|
2527
|
-
}
|
|
2528
|
-
],
|
|
2529
|
-
url: "/v1/protocol-triggers/missions/payout",
|
|
2530
|
-
...options,
|
|
2531
|
-
headers: {
|
|
2532
|
-
"Content-Type": "application/json",
|
|
2533
|
-
...options.headers
|
|
2534
|
-
}
|
|
2535
|
-
});
|
|
2536
|
-
}, "protocolTriggersApiControllerTriggerPayout0V1");
|
|
2537
|
-
var protocolTriggersApiControllerTriggerPayout1 = /* @__PURE__ */ __name((options) => {
|
|
2538
|
-
return (options.client ?? client).post({
|
|
2539
|
-
security: [
|
|
2540
|
-
{
|
|
2541
|
-
name: "x-api-token",
|
|
2542
|
-
type: "apiKey"
|
|
2543
|
-
}
|
|
2544
|
-
],
|
|
2545
|
-
url: "/protocol-triggers/missions/payout",
|
|
2546
|
-
...options,
|
|
2547
|
-
headers: {
|
|
2548
|
-
"Content-Type": "application/json",
|
|
2549
|
-
...options.headers
|
|
2550
|
-
}
|
|
2551
|
-
});
|
|
2552
|
-
}, "protocolTriggersApiControllerTriggerPayout1");
|
|
2553
|
-
var protocolTriggersApiControllerTriggerMissionClose0V1 = /* @__PURE__ */ __name((options) => {
|
|
2554
|
-
return (options.client ?? client).post({
|
|
2555
|
-
security: [
|
|
2556
|
-
{
|
|
2557
|
-
name: "x-api-token",
|
|
2558
|
-
type: "apiKey"
|
|
2559
|
-
}
|
|
2560
|
-
],
|
|
2561
|
-
url: "/v1/protocol-triggers/missions/close",
|
|
2562
|
-
...options,
|
|
2563
|
-
headers: {
|
|
2564
|
-
"Content-Type": "application/json",
|
|
2565
|
-
...options.headers
|
|
2566
|
-
}
|
|
2567
|
-
});
|
|
2568
|
-
}, "protocolTriggersApiControllerTriggerMissionClose0V1");
|
|
2569
|
-
var protocolTriggersApiControllerTriggerMissionClose1 = /* @__PURE__ */ __name((options) => {
|
|
2570
|
-
return (options.client ?? client).post({
|
|
2571
|
-
security: [
|
|
2572
|
-
{
|
|
2573
|
-
name: "x-api-token",
|
|
2574
|
-
type: "apiKey"
|
|
2575
|
-
}
|
|
2576
|
-
],
|
|
2577
|
-
url: "/protocol-triggers/missions/close",
|
|
2578
|
-
...options,
|
|
2579
|
-
headers: {
|
|
2580
|
-
"Content-Type": "application/json",
|
|
2581
|
-
...options.headers
|
|
2582
|
-
}
|
|
2583
|
-
});
|
|
2584
|
-
}, "protocolTriggersApiControllerTriggerMissionClose1");
|
|
2585
|
-
var quotesControllerCreateQuote0V1 = /* @__PURE__ */ __name((options) => {
|
|
2586
|
-
return (options.client ?? client).post({
|
|
2587
|
-
security: [
|
|
2588
|
-
{
|
|
2589
|
-
name: "x-api-token",
|
|
2590
|
-
type: "apiKey"
|
|
2591
|
-
}
|
|
2592
|
-
],
|
|
2593
|
-
url: "/v1/quotes",
|
|
2594
|
-
...options,
|
|
2595
|
-
headers: {
|
|
2596
|
-
"Content-Type": "application/json",
|
|
2597
|
-
...options.headers
|
|
2598
|
-
}
|
|
2599
|
-
});
|
|
2600
|
-
}, "quotesControllerCreateQuote0V1");
|
|
2601
|
-
var quotesControllerCreateQuote1 = /* @__PURE__ */ __name((options) => {
|
|
2602
|
-
return (options.client ?? client).post({
|
|
2603
|
-
security: [
|
|
2604
|
-
{
|
|
2605
|
-
name: "x-api-token",
|
|
2606
|
-
type: "apiKey"
|
|
2607
|
-
}
|
|
2608
|
-
],
|
|
2609
|
-
url: "/quotes",
|
|
2610
|
-
...options,
|
|
2611
|
-
headers: {
|
|
2612
|
-
"Content-Type": "application/json",
|
|
2613
|
-
...options.headers
|
|
2614
|
-
}
|
|
2615
|
-
});
|
|
2616
|
-
}, "quotesControllerCreateQuote1");
|
|
2617
|
-
var quotesControllerGetQuote0V1 = /* @__PURE__ */ __name((options) => {
|
|
2618
|
-
return (options.client ?? client).get({
|
|
2619
|
-
security: [
|
|
2620
|
-
{
|
|
2621
|
-
name: "x-api-token",
|
|
2622
|
-
type: "apiKey"
|
|
2623
|
-
}
|
|
2624
|
-
],
|
|
2625
|
-
url: "/v1/quotes/{id}",
|
|
2626
|
-
...options
|
|
2627
|
-
});
|
|
2628
|
-
}, "quotesControllerGetQuote0V1");
|
|
2629
|
-
var quotesControllerGetQuote1 = /* @__PURE__ */ __name((options) => {
|
|
2630
|
-
return (options.client ?? client).get({
|
|
2631
|
-
security: [
|
|
2632
|
-
{
|
|
2633
|
-
name: "x-api-token",
|
|
2634
|
-
type: "apiKey"
|
|
2635
|
-
}
|
|
2636
|
-
],
|
|
2637
|
-
url: "/quotes/{id}",
|
|
2638
|
-
...options
|
|
2639
|
-
});
|
|
2640
|
-
}, "quotesControllerGetQuote1");
|
|
2641
|
-
var vaultsControllerCreateVaults0V1 = /* @__PURE__ */ __name((options) => {
|
|
2642
|
-
return (options.client ?? client).post({
|
|
2643
|
-
security: [
|
|
2644
|
-
{
|
|
2645
|
-
name: "x-api-token",
|
|
2646
|
-
type: "apiKey"
|
|
2647
|
-
},
|
|
2648
|
-
{
|
|
2649
|
-
name: "x-api-token",
|
|
2650
|
-
type: "apiKey"
|
|
2651
|
-
}
|
|
2652
|
-
],
|
|
2653
|
-
url: "/v1/vaults",
|
|
2654
|
-
...options,
|
|
2655
|
-
headers: {
|
|
2656
|
-
"Content-Type": "application/json",
|
|
2657
|
-
...options.headers
|
|
2658
|
-
}
|
|
2659
|
-
});
|
|
2660
|
-
}, "vaultsControllerCreateVaults0V1");
|
|
2661
|
-
var vaultsControllerCreateVaults1 = /* @__PURE__ */ __name((options) => {
|
|
2662
|
-
return (options.client ?? client).post({
|
|
2663
|
-
security: [
|
|
2664
|
-
{
|
|
2665
|
-
name: "x-api-token",
|
|
2666
|
-
type: "apiKey"
|
|
2667
|
-
},
|
|
2668
|
-
{
|
|
2669
|
-
name: "x-api-token",
|
|
2670
|
-
type: "apiKey"
|
|
2671
|
-
}
|
|
2672
|
-
],
|
|
2673
|
-
url: "/vaults",
|
|
2674
|
-
...options,
|
|
2675
|
-
headers: {
|
|
2676
|
-
"Content-Type": "application/json",
|
|
2677
|
-
...options.headers
|
|
2678
|
-
}
|
|
2679
|
-
});
|
|
2680
|
-
}, "vaultsControllerCreateVaults1");
|
|
2681
|
-
var webhooksControllerGetMany0V1 = /* @__PURE__ */ __name((options) => {
|
|
2682
|
-
return (options.client ?? client).get({
|
|
2683
|
-
security: [
|
|
2684
|
-
{
|
|
2685
|
-
name: "x-api-token",
|
|
2686
|
-
type: "apiKey"
|
|
2687
|
-
}
|
|
2688
|
-
],
|
|
2689
|
-
responseTransformer: webhooksControllerGetMany0V1ResponseTransformer,
|
|
2690
|
-
url: "/v1/org/{org_id}/webhooks",
|
|
2691
|
-
...options
|
|
2692
|
-
});
|
|
2693
|
-
}, "webhooksControllerGetMany0V1");
|
|
2694
|
-
var webhooksControllerCreate0V1 = /* @__PURE__ */ __name((options) => {
|
|
2695
|
-
return (options.client ?? client).post({
|
|
2696
|
-
security: [
|
|
2697
|
-
{
|
|
2698
|
-
name: "x-api-token",
|
|
2699
|
-
type: "apiKey"
|
|
2700
|
-
}
|
|
2701
|
-
],
|
|
2702
|
-
url: "/v1/org/{org_id}/webhooks",
|
|
2703
|
-
...options,
|
|
2704
|
-
headers: {
|
|
2705
|
-
"Content-Type": "application/json",
|
|
2706
|
-
...options.headers
|
|
2707
|
-
}
|
|
2708
|
-
});
|
|
2709
|
-
}, "webhooksControllerCreate0V1");
|
|
2710
|
-
var webhooksControllerGetMany1 = /* @__PURE__ */ __name((options) => {
|
|
2711
|
-
return (options.client ?? client).get({
|
|
2712
|
-
security: [
|
|
2713
|
-
{
|
|
2714
|
-
name: "x-api-token",
|
|
2715
|
-
type: "apiKey"
|
|
2716
|
-
}
|
|
2717
|
-
],
|
|
2718
|
-
responseTransformer: webhooksControllerGetMany1ResponseTransformer,
|
|
2719
|
-
url: "/org/{org_id}/webhooks",
|
|
2720
|
-
...options
|
|
2721
|
-
});
|
|
2722
|
-
}, "webhooksControllerGetMany1");
|
|
2723
|
-
var webhooksControllerCreate1 = /* @__PURE__ */ __name((options) => {
|
|
2724
|
-
return (options.client ?? client).post({
|
|
2725
|
-
security: [
|
|
2726
|
-
{
|
|
2727
|
-
name: "x-api-token",
|
|
2728
|
-
type: "apiKey"
|
|
2729
|
-
}
|
|
2730
|
-
],
|
|
2731
|
-
url: "/org/{org_id}/webhooks",
|
|
2732
|
-
...options,
|
|
2733
|
-
headers: {
|
|
2734
|
-
"Content-Type": "application/json",
|
|
2735
|
-
...options.headers
|
|
2736
|
-
}
|
|
2737
|
-
});
|
|
2738
|
-
}, "webhooksControllerCreate1");
|
|
2739
|
-
var webhooksControllerDelete0V1 = /* @__PURE__ */ __name((options) => {
|
|
2740
|
-
return (options.client ?? client).delete({
|
|
2741
|
-
security: [
|
|
2742
|
-
{
|
|
2743
|
-
name: "x-api-token",
|
|
2744
|
-
type: "apiKey"
|
|
2745
|
-
}
|
|
2746
|
-
],
|
|
2747
|
-
url: "/v1/org/{org_id}/webhooks/{id}",
|
|
2748
|
-
...options
|
|
2749
|
-
});
|
|
2750
|
-
}, "webhooksControllerDelete0V1");
|
|
2751
|
-
var webhooksControllerGet0V1 = /* @__PURE__ */ __name((options) => {
|
|
2752
|
-
return (options.client ?? client).get({
|
|
2753
|
-
security: [
|
|
2754
|
-
{
|
|
2755
|
-
name: "x-api-token",
|
|
2756
|
-
type: "apiKey"
|
|
2757
|
-
}
|
|
2758
|
-
],
|
|
2759
|
-
responseTransformer: webhooksControllerGet0V1ResponseTransformer,
|
|
2760
|
-
url: "/v1/org/{org_id}/webhooks/{id}",
|
|
2761
|
-
...options
|
|
2762
|
-
});
|
|
2763
|
-
}, "webhooksControllerGet0V1");
|
|
2764
|
-
var webhooksControllerUpdate0V1 = /* @__PURE__ */ __name((options) => {
|
|
2765
|
-
return (options.client ?? client).put({
|
|
2766
|
-
security: [
|
|
2767
|
-
{
|
|
2768
|
-
name: "x-api-token",
|
|
2769
|
-
type: "apiKey"
|
|
2770
|
-
}
|
|
2771
|
-
],
|
|
2772
|
-
responseTransformer: webhooksControllerUpdate0V1ResponseTransformer,
|
|
2773
|
-
url: "/v1/org/{org_id}/webhooks/{id}",
|
|
2774
|
-
...options,
|
|
2775
|
-
headers: {
|
|
2776
|
-
"Content-Type": "application/json",
|
|
2777
|
-
...options.headers
|
|
2778
|
-
}
|
|
2779
|
-
});
|
|
2780
|
-
}, "webhooksControllerUpdate0V1");
|
|
2781
|
-
var webhooksControllerDelete1 = /* @__PURE__ */ __name((options) => {
|
|
2782
|
-
return (options.client ?? client).delete({
|
|
2783
|
-
security: [
|
|
2784
|
-
{
|
|
2785
|
-
name: "x-api-token",
|
|
2786
|
-
type: "apiKey"
|
|
2787
|
-
}
|
|
2788
|
-
],
|
|
2789
|
-
url: "/org/{org_id}/webhooks/{id}",
|
|
2790
|
-
...options
|
|
2791
|
-
});
|
|
2792
|
-
}, "webhooksControllerDelete1");
|
|
2793
|
-
var webhooksControllerGet1 = /* @__PURE__ */ __name((options) => {
|
|
2794
|
-
return (options.client ?? client).get({
|
|
2795
|
-
security: [
|
|
2796
|
-
{
|
|
2797
|
-
name: "x-api-token",
|
|
2798
|
-
type: "apiKey"
|
|
2799
|
-
}
|
|
2800
|
-
],
|
|
2801
|
-
responseTransformer: webhooksControllerGet1ResponseTransformer,
|
|
2802
|
-
url: "/org/{org_id}/webhooks/{id}",
|
|
2803
|
-
...options
|
|
2804
|
-
});
|
|
2805
|
-
}, "webhooksControllerGet1");
|
|
2806
|
-
var webhooksControllerUpdate1 = /* @__PURE__ */ __name((options) => {
|
|
2807
|
-
return (options.client ?? client).put({
|
|
2808
|
-
security: [
|
|
2809
|
-
{
|
|
2810
|
-
name: "x-api-token",
|
|
2811
|
-
type: "apiKey"
|
|
2812
|
-
}
|
|
2813
|
-
],
|
|
2814
|
-
responseTransformer: webhooksControllerUpdate1ResponseTransformer,
|
|
2815
|
-
url: "/org/{org_id}/webhooks/{id}",
|
|
2816
|
-
...options,
|
|
2817
|
-
headers: {
|
|
2818
|
-
"Content-Type": "application/json",
|
|
2819
|
-
...options.headers
|
|
2820
|
-
}
|
|
2821
|
-
});
|
|
2822
|
-
}, "webhooksControllerUpdate1");
|
|
2823
|
-
var webhooksControllerRegenerateSecret0V1 = /* @__PURE__ */ __name((options) => {
|
|
2824
|
-
return (options.client ?? client).post({
|
|
2825
|
-
security: [
|
|
2826
|
-
{
|
|
2827
|
-
name: "x-api-token",
|
|
2828
|
-
type: "apiKey"
|
|
2829
|
-
}
|
|
2830
|
-
],
|
|
2831
|
-
responseTransformer: webhooksControllerRegenerateSecret0V1ResponseTransformer,
|
|
2832
|
-
url: "/v1/org/{org_id}/webhooks/{id}/regenerate-secret",
|
|
2833
|
-
...options,
|
|
2834
|
-
headers: {
|
|
2835
|
-
"Content-Type": "application/json",
|
|
2836
|
-
...options.headers
|
|
2837
|
-
}
|
|
2838
|
-
});
|
|
2839
|
-
}, "webhooksControllerRegenerateSecret0V1");
|
|
2840
|
-
var webhooksControllerRegenerateSecret1 = /* @__PURE__ */ __name((options) => {
|
|
2841
|
-
return (options.client ?? client).post({
|
|
2842
|
-
security: [
|
|
2843
|
-
{
|
|
2844
|
-
name: "x-api-token",
|
|
2845
|
-
type: "apiKey"
|
|
2846
|
-
}
|
|
2847
|
-
],
|
|
2848
|
-
responseTransformer: webhooksControllerRegenerateSecret1ResponseTransformer,
|
|
2849
|
-
url: "/org/{org_id}/webhooks/{id}/regenerate-secret",
|
|
2850
|
-
...options,
|
|
2851
|
-
headers: {
|
|
2852
|
-
"Content-Type": "application/json",
|
|
2853
|
-
...options.headers
|
|
2854
|
-
}
|
|
2855
|
-
});
|
|
2856
|
-
}, "webhooksControllerRegenerateSecret1");
|
|
2857
|
-
var webhooksControllerTest0V1 = /* @__PURE__ */ __name((options) => {
|
|
2858
|
-
return (options.client ?? client).post({
|
|
2859
|
-
security: [
|
|
2860
|
-
{
|
|
2861
|
-
name: "x-api-token",
|
|
2862
|
-
type: "apiKey"
|
|
2863
|
-
}
|
|
2864
|
-
],
|
|
2865
|
-
url: "/v1/org/{org_id}/webhooks/{id}/test",
|
|
2866
|
-
...options
|
|
2867
|
-
});
|
|
2868
|
-
}, "webhooksControllerTest0V1");
|
|
2869
|
-
var webhooksControllerTest1 = /* @__PURE__ */ __name((options) => {
|
|
2870
|
-
return (options.client ?? client).post({
|
|
2871
|
-
security: [
|
|
2872
|
-
{
|
|
2873
|
-
name: "x-api-token",
|
|
2874
|
-
type: "apiKey"
|
|
2875
|
-
}
|
|
2876
|
-
],
|
|
2877
|
-
url: "/org/{org_id}/webhooks/{id}/test",
|
|
2878
|
-
...options
|
|
2879
|
-
});
|
|
2880
|
-
}, "webhooksControllerTest1");
|
|
2881
|
-
var webhooksControllerGetStatus0V1 = /* @__PURE__ */ __name((options) => {
|
|
2882
|
-
return (options.client ?? client).get({
|
|
2883
|
-
security: [
|
|
2884
|
-
{
|
|
2885
|
-
name: "x-api-token",
|
|
2886
|
-
type: "apiKey"
|
|
2887
|
-
}
|
|
2888
|
-
],
|
|
2889
|
-
url: "/v1/org/{org_id}/webhooks/{id}/status",
|
|
2890
|
-
...options
|
|
2891
|
-
});
|
|
2892
|
-
}, "webhooksControllerGetStatus0V1");
|
|
2893
|
-
var webhooksControllerGetStatus1 = /* @__PURE__ */ __name((options) => {
|
|
2894
|
-
return (options.client ?? client).get({
|
|
2895
|
-
security: [
|
|
2896
|
-
{
|
|
2897
|
-
name: "x-api-token",
|
|
2898
|
-
type: "apiKey"
|
|
2899
|
-
}
|
|
2900
|
-
],
|
|
2901
|
-
url: "/org/{org_id}/webhooks/{id}/status",
|
|
2902
|
-
...options
|
|
2903
|
-
});
|
|
2904
|
-
}, "webhooksControllerGetStatus1");
|
|
2905
|
-
var zonesControllerCreateZone0V1 = /* @__PURE__ */ __name((options) => {
|
|
2906
|
-
return (options.client ?? client).post({
|
|
2907
|
-
security: [
|
|
2908
|
-
{
|
|
2909
|
-
name: "x-api-token",
|
|
2910
|
-
type: "apiKey"
|
|
2911
|
-
}
|
|
2912
|
-
],
|
|
2913
|
-
responseTransformer: zonesControllerCreateZone0V1ResponseTransformer,
|
|
2914
|
-
url: "/v1/zones",
|
|
2915
|
-
...options,
|
|
2916
|
-
headers: {
|
|
2917
|
-
"Content-Type": "application/json",
|
|
2918
|
-
...options.headers
|
|
2919
|
-
}
|
|
2920
|
-
});
|
|
2921
|
-
}, "zonesControllerCreateZone0V1");
|
|
2922
|
-
var zonesControllerCreateZone1 = /* @__PURE__ */ __name((options) => {
|
|
2923
|
-
return (options.client ?? client).post({
|
|
2924
|
-
security: [
|
|
2925
|
-
{
|
|
2926
|
-
name: "x-api-token",
|
|
2927
|
-
type: "apiKey"
|
|
2928
|
-
}
|
|
2929
|
-
],
|
|
2930
|
-
responseTransformer: zonesControllerCreateZone1ResponseTransformer,
|
|
2931
|
-
url: "/zones",
|
|
2932
|
-
...options,
|
|
2933
|
-
headers: {
|
|
2934
|
-
"Content-Type": "application/json",
|
|
2935
|
-
...options.headers
|
|
2936
|
-
}
|
|
2937
|
-
});
|
|
2938
|
-
}, "zonesControllerCreateZone1");
|
|
2939
|
-
var zonesControllerDeleteZone0V1 = /* @__PURE__ */ __name((options) => {
|
|
2940
|
-
return (options.client ?? client).delete({
|
|
2941
|
-
security: [
|
|
2942
|
-
{
|
|
2943
|
-
name: "x-api-token",
|
|
2944
|
-
type: "apiKey"
|
|
2945
|
-
}
|
|
2946
|
-
],
|
|
2947
|
-
url: "/v1/zones/{id}",
|
|
2948
|
-
...options
|
|
2949
|
-
});
|
|
2950
|
-
}, "zonesControllerDeleteZone0V1");
|
|
2951
|
-
var zonesControllerGetZone0V1 = /* @__PURE__ */ __name((options) => {
|
|
2952
|
-
return (options.client ?? client).get({
|
|
2953
|
-
security: [
|
|
2954
|
-
{
|
|
2955
|
-
name: "x-api-token",
|
|
2956
|
-
type: "apiKey"
|
|
2957
|
-
},
|
|
2958
|
-
{
|
|
2959
|
-
name: "x-api-token",
|
|
2960
|
-
type: "apiKey"
|
|
2961
|
-
}
|
|
2962
|
-
],
|
|
2963
|
-
responseTransformer: zonesControllerGetZone0V1ResponseTransformer,
|
|
2964
|
-
url: "/v1/zones/{id}",
|
|
2965
|
-
...options
|
|
2966
|
-
});
|
|
2967
|
-
}, "zonesControllerGetZone0V1");
|
|
2968
|
-
var zonesControllerUpdateZone0V1 = /* @__PURE__ */ __name((options) => {
|
|
2969
|
-
return (options.client ?? client).put({
|
|
2970
|
-
security: [
|
|
2971
|
-
{
|
|
2972
|
-
name: "x-api-token",
|
|
2973
|
-
type: "apiKey"
|
|
2974
|
-
}
|
|
2975
|
-
],
|
|
2976
|
-
responseTransformer: zonesControllerUpdateZone0V1ResponseTransformer,
|
|
2977
|
-
url: "/v1/zones/{id}",
|
|
2978
|
-
...options,
|
|
2979
|
-
headers: {
|
|
2980
|
-
"Content-Type": "application/json",
|
|
2981
|
-
...options.headers
|
|
2982
|
-
}
|
|
2983
|
-
});
|
|
2984
|
-
}, "zonesControllerUpdateZone0V1");
|
|
2985
|
-
var zonesControllerDeleteZone1 = /* @__PURE__ */ __name((options) => {
|
|
2986
|
-
return (options.client ?? client).delete({
|
|
2987
|
-
security: [
|
|
2988
|
-
{
|
|
2989
|
-
name: "x-api-token",
|
|
2990
|
-
type: "apiKey"
|
|
2991
|
-
}
|
|
2992
|
-
],
|
|
2993
|
-
url: "/zones/{id}",
|
|
2994
|
-
...options
|
|
2995
|
-
});
|
|
2996
|
-
}, "zonesControllerDeleteZone1");
|
|
2997
|
-
var zonesControllerGetZone1 = /* @__PURE__ */ __name((options) => {
|
|
2998
|
-
return (options.client ?? client).get({
|
|
2999
|
-
security: [
|
|
3000
|
-
{
|
|
3001
|
-
name: "x-api-token",
|
|
3002
|
-
type: "apiKey"
|
|
3003
|
-
},
|
|
3004
|
-
{
|
|
3005
|
-
name: "x-api-token",
|
|
3006
|
-
type: "apiKey"
|
|
3007
|
-
}
|
|
3008
|
-
],
|
|
3009
|
-
responseTransformer: zonesControllerGetZone1ResponseTransformer,
|
|
3010
|
-
url: "/zones/{id}",
|
|
3011
|
-
...options
|
|
3012
|
-
});
|
|
3013
|
-
}, "zonesControllerGetZone1");
|
|
3014
|
-
var zonesControllerUpdateZone1 = /* @__PURE__ */ __name((options) => {
|
|
3015
|
-
return (options.client ?? client).put({
|
|
3016
|
-
security: [
|
|
3017
|
-
{
|
|
3018
|
-
name: "x-api-token",
|
|
3019
|
-
type: "apiKey"
|
|
3020
|
-
}
|
|
3021
|
-
],
|
|
3022
|
-
responseTransformer: zonesControllerUpdateZone1ResponseTransformer,
|
|
3023
|
-
url: "/zones/{id}",
|
|
3024
|
-
...options,
|
|
3025
|
-
headers: {
|
|
3026
|
-
"Content-Type": "application/json",
|
|
3027
|
-
...options.headers
|
|
3028
|
-
}
|
|
3029
|
-
});
|
|
3030
|
-
}, "zonesControllerUpdateZone1");
|
|
3031
|
-
var eventProcessorMissionsSyncControllerResyncMissions0V1 = /* @__PURE__ */ __name((options) => {
|
|
3032
|
-
return (options.client ?? client).put({
|
|
3033
|
-
security: [
|
|
3034
|
-
{
|
|
3035
|
-
name: "x-api-token",
|
|
3036
|
-
type: "apiKey"
|
|
3037
|
-
}
|
|
3038
|
-
],
|
|
3039
|
-
url: "/v1/event-processor/missions/sync",
|
|
3040
|
-
...options,
|
|
3041
|
-
headers: {
|
|
3042
|
-
"Content-Type": "application/json",
|
|
3043
|
-
...options.headers
|
|
3044
|
-
}
|
|
3045
|
-
});
|
|
3046
|
-
}, "eventProcessorMissionsSyncControllerResyncMissions0V1");
|
|
3047
|
-
var eventProcessorMissionsSyncControllerResyncMissions1 = /* @__PURE__ */ __name((options) => {
|
|
3048
|
-
return (options.client ?? client).put({
|
|
3049
|
-
security: [
|
|
3050
|
-
{
|
|
3051
|
-
name: "x-api-token",
|
|
3052
|
-
type: "apiKey"
|
|
3053
|
-
}
|
|
3054
|
-
],
|
|
3055
|
-
url: "/event-processor/missions/sync",
|
|
3056
|
-
...options,
|
|
3057
|
-
headers: {
|
|
3058
|
-
"Content-Type": "application/json",
|
|
3059
|
-
...options.headers
|
|
3060
|
-
}
|
|
3061
|
-
});
|
|
3062
|
-
}, "eventProcessorMissionsSyncControllerResyncMissions1");
|
|
3063
|
-
var eventProcessorFlightReviewsSyncControllerResyncFlightReviews0V1 = /* @__PURE__ */ __name((options) => {
|
|
3064
|
-
return (options.client ?? client).put({
|
|
3065
|
-
security: [
|
|
3066
|
-
{
|
|
3067
|
-
name: "x-api-token",
|
|
3068
|
-
type: "apiKey"
|
|
3069
|
-
}
|
|
3070
|
-
],
|
|
3071
|
-
url: "/v1/event-processor/flightreviews",
|
|
3072
|
-
...options,
|
|
3073
|
-
headers: {
|
|
3074
|
-
"Content-Type": "application/json",
|
|
3075
|
-
...options.headers
|
|
3076
|
-
}
|
|
3077
|
-
});
|
|
3078
|
-
}, "eventProcessorFlightReviewsSyncControllerResyncFlightReviews0V1");
|
|
3079
|
-
var eventProcessorFlightReviewsSyncControllerResyncFlightReviews1 = /* @__PURE__ */ __name((options) => {
|
|
3080
|
-
return (options.client ?? client).put({
|
|
3081
|
-
security: [
|
|
3082
|
-
{
|
|
3083
|
-
name: "x-api-token",
|
|
3084
|
-
type: "apiKey"
|
|
3085
|
-
}
|
|
3086
|
-
],
|
|
3087
|
-
url: "/event-processor/flightreviews",
|
|
3088
|
-
...options,
|
|
3089
|
-
headers: {
|
|
3090
|
-
"Content-Type": "application/json",
|
|
3091
|
-
...options.headers
|
|
3092
|
-
}
|
|
3093
|
-
});
|
|
3094
|
-
}, "eventProcessorFlightReviewsSyncControllerResyncFlightReviews1");
|
|
3095
|
-
var alchemyControllerHandleWebhook0V1 = /* @__PURE__ */ __name((options) => {
|
|
3096
|
-
return (options.client ?? client).post({
|
|
3097
|
-
url: "/v1/webhooks/inbound/alchemy",
|
|
3098
|
-
...options,
|
|
3099
|
-
headers: {
|
|
3100
|
-
"Content-Type": "application/json",
|
|
3101
|
-
...options.headers
|
|
3102
|
-
}
|
|
3103
|
-
});
|
|
3104
|
-
}, "alchemyControllerHandleWebhook0V1");
|
|
3105
|
-
var alchemyControllerHandleWebhook1 = /* @__PURE__ */ __name((options) => {
|
|
3106
|
-
return (options.client ?? client).post({
|
|
3107
|
-
url: "/webhooks/inbound/alchemy",
|
|
3108
|
-
...options,
|
|
3109
|
-
headers: {
|
|
3110
|
-
"Content-Type": "application/json",
|
|
3111
|
-
...options.headers
|
|
3112
|
-
}
|
|
3113
|
-
});
|
|
3114
|
-
}, "alchemyControllerHandleWebhook1");
|
|
3115
|
-
var inboundWebhookConfigsControllerGetMany0V1 = /* @__PURE__ */ __name((options) => {
|
|
3116
|
-
return (options?.client ?? client).get({
|
|
3117
|
-
security: [
|
|
3118
|
-
{
|
|
3119
|
-
name: "x-api-token",
|
|
3120
|
-
type: "apiKey"
|
|
3121
|
-
}
|
|
3122
|
-
],
|
|
3123
|
-
responseTransformer: inboundWebhookConfigsControllerGetMany0V1ResponseTransformer,
|
|
3124
|
-
url: "/v1/webhooks/inbound/configs",
|
|
3125
|
-
...options
|
|
3126
|
-
});
|
|
3127
|
-
}, "inboundWebhookConfigsControllerGetMany0V1");
|
|
3128
|
-
var inboundWebhookConfigsControllerCreate0V1 = /* @__PURE__ */ __name((options) => {
|
|
3129
|
-
return (options.client ?? client).post({
|
|
3130
|
-
security: [
|
|
3131
|
-
{
|
|
3132
|
-
name: "x-api-token",
|
|
3133
|
-
type: "apiKey"
|
|
3134
|
-
}
|
|
3135
|
-
],
|
|
3136
|
-
responseTransformer: inboundWebhookConfigsControllerCreate0V1ResponseTransformer,
|
|
3137
|
-
url: "/v1/webhooks/inbound/configs",
|
|
3138
|
-
...options,
|
|
3139
|
-
headers: {
|
|
3140
|
-
"Content-Type": "application/json",
|
|
3141
|
-
...options.headers
|
|
3142
|
-
}
|
|
3143
|
-
});
|
|
3144
|
-
}, "inboundWebhookConfigsControllerCreate0V1");
|
|
3145
|
-
var inboundWebhookConfigsControllerGetMany1 = /* @__PURE__ */ __name((options) => {
|
|
3146
|
-
return (options?.client ?? client).get({
|
|
3147
|
-
security: [
|
|
3148
|
-
{
|
|
3149
|
-
name: "x-api-token",
|
|
3150
|
-
type: "apiKey"
|
|
3151
|
-
}
|
|
3152
|
-
],
|
|
3153
|
-
responseTransformer: inboundWebhookConfigsControllerGetMany1ResponseTransformer,
|
|
3154
|
-
url: "/webhooks/inbound/configs",
|
|
3155
|
-
...options
|
|
3156
|
-
});
|
|
3157
|
-
}, "inboundWebhookConfigsControllerGetMany1");
|
|
3158
|
-
var inboundWebhookConfigsControllerCreate1 = /* @__PURE__ */ __name((options) => {
|
|
3159
|
-
return (options.client ?? client).post({
|
|
3160
|
-
security: [
|
|
3161
|
-
{
|
|
3162
|
-
name: "x-api-token",
|
|
3163
|
-
type: "apiKey"
|
|
3164
|
-
}
|
|
3165
|
-
],
|
|
3166
|
-
responseTransformer: inboundWebhookConfigsControllerCreate1ResponseTransformer,
|
|
3167
|
-
url: "/webhooks/inbound/configs",
|
|
3168
|
-
...options,
|
|
3169
|
-
headers: {
|
|
3170
|
-
"Content-Type": "application/json",
|
|
3171
|
-
...options.headers
|
|
3172
|
-
}
|
|
3173
|
-
});
|
|
3174
|
-
}, "inboundWebhookConfigsControllerCreate1");
|
|
3175
|
-
var inboundWebhookConfigsControllerDelete0V1 = /* @__PURE__ */ __name((options) => {
|
|
3176
|
-
return (options.client ?? client).delete({
|
|
3177
|
-
security: [
|
|
3178
|
-
{
|
|
3179
|
-
name: "x-api-token",
|
|
3180
|
-
type: "apiKey"
|
|
3181
|
-
}
|
|
3182
|
-
],
|
|
3183
|
-
url: "/v1/webhooks/inbound/configs/{id}",
|
|
3184
|
-
...options
|
|
3185
|
-
});
|
|
3186
|
-
}, "inboundWebhookConfigsControllerDelete0V1");
|
|
3187
|
-
var inboundWebhookConfigsControllerGet0V1 = /* @__PURE__ */ __name((options) => {
|
|
3188
|
-
return (options.client ?? client).get({
|
|
3189
|
-
security: [
|
|
3190
|
-
{
|
|
3191
|
-
name: "x-api-token",
|
|
3192
|
-
type: "apiKey"
|
|
3193
|
-
}
|
|
3194
|
-
],
|
|
3195
|
-
responseTransformer: inboundWebhookConfigsControllerGet0V1ResponseTransformer,
|
|
3196
|
-
url: "/v1/webhooks/inbound/configs/{id}",
|
|
3197
|
-
...options
|
|
3198
|
-
});
|
|
3199
|
-
}, "inboundWebhookConfigsControllerGet0V1");
|
|
3200
|
-
var inboundWebhookConfigsControllerUpdate0V1 = /* @__PURE__ */ __name((options) => {
|
|
3201
|
-
return (options.client ?? client).put({
|
|
3202
|
-
security: [
|
|
3203
|
-
{
|
|
3204
|
-
name: "x-api-token",
|
|
3205
|
-
type: "apiKey"
|
|
3206
|
-
}
|
|
3207
|
-
],
|
|
3208
|
-
responseTransformer: inboundWebhookConfigsControllerUpdate0V1ResponseTransformer,
|
|
3209
|
-
url: "/v1/webhooks/inbound/configs/{id}",
|
|
3210
|
-
...options,
|
|
3211
|
-
headers: {
|
|
3212
|
-
"Content-Type": "application/json",
|
|
3213
|
-
...options.headers
|
|
3214
|
-
}
|
|
3215
|
-
});
|
|
3216
|
-
}, "inboundWebhookConfigsControllerUpdate0V1");
|
|
3217
|
-
var inboundWebhookConfigsControllerDelete1 = /* @__PURE__ */ __name((options) => {
|
|
3218
|
-
return (options.client ?? client).delete({
|
|
3219
|
-
security: [
|
|
3220
|
-
{
|
|
3221
|
-
name: "x-api-token",
|
|
3222
|
-
type: "apiKey"
|
|
3223
|
-
}
|
|
3224
|
-
],
|
|
3225
|
-
url: "/webhooks/inbound/configs/{id}",
|
|
3226
|
-
...options
|
|
3227
|
-
});
|
|
3228
|
-
}, "inboundWebhookConfigsControllerDelete1");
|
|
3229
|
-
var inboundWebhookConfigsControllerGet1 = /* @__PURE__ */ __name((options) => {
|
|
3230
|
-
return (options.client ?? client).get({
|
|
3231
|
-
security: [
|
|
3232
|
-
{
|
|
3233
|
-
name: "x-api-token",
|
|
3234
|
-
type: "apiKey"
|
|
3235
|
-
}
|
|
3236
|
-
],
|
|
3237
|
-
responseTransformer: inboundWebhookConfigsControllerGet1ResponseTransformer,
|
|
3238
|
-
url: "/webhooks/inbound/configs/{id}",
|
|
3239
|
-
...options
|
|
3240
|
-
});
|
|
3241
|
-
}, "inboundWebhookConfigsControllerGet1");
|
|
3242
|
-
var inboundWebhookConfigsControllerUpdate1 = /* @__PURE__ */ __name((options) => {
|
|
3243
|
-
return (options.client ?? client).put({
|
|
3244
|
-
security: [
|
|
3245
|
-
{
|
|
3246
|
-
name: "x-api-token",
|
|
3247
|
-
type: "apiKey"
|
|
3248
|
-
}
|
|
3249
|
-
],
|
|
3250
|
-
responseTransformer: inboundWebhookConfigsControllerUpdate1ResponseTransformer,
|
|
3251
|
-
url: "/webhooks/inbound/configs/{id}",
|
|
3252
|
-
...options,
|
|
3253
|
-
headers: {
|
|
3254
|
-
"Content-Type": "application/json",
|
|
3255
|
-
...options.headers
|
|
3256
|
-
}
|
|
3257
|
-
});
|
|
3258
|
-
}, "inboundWebhookConfigsControllerUpdate1");
|
|
3259
|
-
var campaignsControllerGetCampaignsV2V2 = /* @__PURE__ */ __name((options) => {
|
|
3260
|
-
return (options?.client ?? client).get({
|
|
3261
|
-
security: [
|
|
3262
|
-
{
|
|
3263
|
-
name: "x-api-token",
|
|
3264
|
-
type: "apiKey"
|
|
3265
|
-
}
|
|
3266
|
-
],
|
|
3267
|
-
responseTransformer: campaignsControllerGetCampaignsV2V2ResponseTransformer,
|
|
3268
|
-
url: "/v2/campaigns",
|
|
3269
|
-
...options
|
|
3270
|
-
});
|
|
3271
|
-
}, "campaignsControllerGetCampaignsV2V2");
|
|
3272
|
-
var campaignsControllerCreateCampaignV2V2 = /* @__PURE__ */ __name((options) => {
|
|
3273
|
-
return (options.client ?? client).post({
|
|
3274
|
-
security: [
|
|
3275
|
-
{
|
|
3276
|
-
name: "x-api-token",
|
|
3277
|
-
type: "apiKey"
|
|
3278
|
-
}
|
|
3279
|
-
],
|
|
3280
|
-
responseTransformer: campaignsControllerCreateCampaignV2V2ResponseTransformer,
|
|
3281
|
-
url: "/v2/campaigns",
|
|
3282
|
-
...options,
|
|
3283
|
-
headers: {
|
|
3284
|
-
"Content-Type": "application/json",
|
|
3285
|
-
...options.headers
|
|
3286
|
-
}
|
|
3287
|
-
});
|
|
3288
|
-
}, "campaignsControllerCreateCampaignV2V2");
|
|
3289
|
-
var campaignsControllerGetCampaignV2V2 = /* @__PURE__ */ __name((options) => {
|
|
3290
|
-
return (options.client ?? client).get({
|
|
3291
|
-
security: [
|
|
3292
|
-
{
|
|
3293
|
-
name: "x-api-token",
|
|
3294
|
-
type: "apiKey"
|
|
3295
|
-
}
|
|
3296
|
-
],
|
|
3297
|
-
responseTransformer: campaignsControllerGetCampaignV2V2ResponseTransformer,
|
|
3298
|
-
url: "/v2/campaigns/{id}",
|
|
3299
|
-
...options
|
|
3300
|
-
});
|
|
3301
|
-
}, "campaignsControllerGetCampaignV2V2");
|
|
3302
|
-
var campaignsControllerUpdateCampaignV2V2 = /* @__PURE__ */ __name((options) => {
|
|
3303
|
-
return (options.client ?? client).patch({
|
|
3304
|
-
security: [
|
|
3305
|
-
{
|
|
3306
|
-
name: "x-api-token",
|
|
3307
|
-
type: "apiKey"
|
|
3308
|
-
}
|
|
3309
|
-
],
|
|
3310
|
-
responseTransformer: campaignsControllerUpdateCampaignV2V2ResponseTransformer,
|
|
3311
|
-
url: "/v2/campaigns/{id}",
|
|
3312
|
-
...options,
|
|
3313
|
-
headers: {
|
|
3314
|
-
"Content-Type": "application/json",
|
|
3315
|
-
...options.headers
|
|
3316
|
-
}
|
|
3317
|
-
});
|
|
3318
|
-
}, "campaignsControllerUpdateCampaignV2V2");
|
|
3319
|
-
var campaignsControllerCancelCampaignV2V2 = /* @__PURE__ */ __name((options) => {
|
|
3320
|
-
return (options.client ?? client).post({
|
|
3321
|
-
security: [
|
|
3322
|
-
{
|
|
3323
|
-
name: "x-api-token",
|
|
3324
|
-
type: "apiKey"
|
|
3325
|
-
}
|
|
3326
|
-
],
|
|
3327
|
-
url: "/v2/campaigns/{id}/cancel",
|
|
3328
|
-
...options
|
|
3329
|
-
});
|
|
3330
|
-
}, "campaignsControllerCancelCampaignV2V2");
|
|
3331
|
-
var flightPlansControllerGetManyV2V2 = /* @__PURE__ */ __name((options) => {
|
|
3332
|
-
return (options?.client ?? client).get({
|
|
3333
|
-
security: [
|
|
3334
|
-
{
|
|
3335
|
-
name: "x-api-token",
|
|
3336
|
-
type: "apiKey"
|
|
3337
|
-
}
|
|
3338
|
-
],
|
|
3339
|
-
responseTransformer: flightPlansControllerGetManyV2V2ResponseTransformer,
|
|
3340
|
-
url: "/v2/flight-plans",
|
|
3341
|
-
...options
|
|
3342
|
-
});
|
|
3343
|
-
}, "flightPlansControllerGetManyV2V2");
|
|
3344
|
-
var flightPlansControllerCreateV2V2 = /* @__PURE__ */ __name((options) => {
|
|
3345
|
-
return (options.client ?? client).post({
|
|
3346
|
-
security: [
|
|
3347
|
-
{
|
|
3348
|
-
name: "x-api-token",
|
|
3349
|
-
type: "apiKey"
|
|
3350
|
-
}
|
|
3351
|
-
],
|
|
3352
|
-
responseTransformer: flightPlansControllerCreateV2V2ResponseTransformer,
|
|
3353
|
-
url: "/v2/flight-plans",
|
|
3354
|
-
...options,
|
|
3355
|
-
headers: {
|
|
3356
|
-
"Content-Type": "application/json",
|
|
3357
|
-
...options.headers
|
|
3358
|
-
}
|
|
3359
|
-
});
|
|
3360
|
-
}, "flightPlansControllerCreateV2V2");
|
|
3361
|
-
var flightPlansControllerGetV2V2 = /* @__PURE__ */ __name((options) => {
|
|
3362
|
-
return (options.client ?? client).get({
|
|
3363
|
-
security: [
|
|
3364
|
-
{
|
|
3365
|
-
name: "x-api-token",
|
|
3366
|
-
type: "apiKey"
|
|
3367
|
-
}
|
|
3368
|
-
],
|
|
3369
|
-
responseTransformer: flightPlansControllerGetV2V2ResponseTransformer,
|
|
3370
|
-
url: "/v2/flight-plans/{id}",
|
|
3371
|
-
...options
|
|
3372
|
-
});
|
|
3373
|
-
}, "flightPlansControllerGetV2V2");
|
|
3374
|
-
var flightPlansControllerUpdateV2V2 = /* @__PURE__ */ __name((options) => {
|
|
3375
|
-
return (options.client ?? client).put({
|
|
3376
|
-
security: [
|
|
3377
|
-
{
|
|
3378
|
-
name: "x-api-token",
|
|
3379
|
-
type: "apiKey"
|
|
3380
|
-
}
|
|
3381
|
-
],
|
|
3382
|
-
responseTransformer: flightPlansControllerUpdateV2V2ResponseTransformer,
|
|
3383
|
-
url: "/v2/flight-plans/{id}",
|
|
3384
|
-
...options,
|
|
3385
|
-
headers: {
|
|
3386
|
-
"Content-Type": "application/json",
|
|
3387
|
-
...options.headers
|
|
3388
|
-
}
|
|
3389
|
-
});
|
|
3390
|
-
}, "flightPlansControllerUpdateV2V2");
|
|
3391
|
-
var flightPlansControllerExpandV2V2 = /* @__PURE__ */ __name((options) => {
|
|
3392
|
-
return (options.client ?? client).post({
|
|
3393
|
-
security: [
|
|
3394
|
-
{
|
|
3395
|
-
name: "x-api-token",
|
|
3396
|
-
type: "apiKey"
|
|
3397
|
-
}
|
|
3398
|
-
],
|
|
3399
|
-
url: "/v2/flight-plans/{id}/expand",
|
|
3400
|
-
...options,
|
|
3401
|
-
headers: {
|
|
3402
|
-
"Content-Type": "application/json",
|
|
3403
|
-
...options.headers
|
|
3404
|
-
}
|
|
3405
|
-
});
|
|
3406
|
-
}, "flightPlansControllerExpandV2V2");
|
|
3407
|
-
var flightsControllerGetFlightsV2V2 = /* @__PURE__ */ __name((options) => {
|
|
3408
|
-
return (options?.client ?? client).get({
|
|
3409
|
-
security: [
|
|
3410
|
-
{
|
|
3411
|
-
name: "x-api-token",
|
|
3412
|
-
type: "apiKey"
|
|
3413
|
-
}
|
|
3414
|
-
],
|
|
3415
|
-
responseTransformer: flightsControllerGetFlightsV2V2ResponseTransformer,
|
|
3416
|
-
url: "/v2/flights",
|
|
3417
|
-
...options
|
|
3418
|
-
});
|
|
3419
|
-
}, "flightsControllerGetFlightsV2V2");
|
|
3420
|
-
var flightsControllerCreateFlightV2V2 = /* @__PURE__ */ __name((options) => {
|
|
3421
|
-
return (options.client ?? client).post({
|
|
3422
|
-
security: [
|
|
3423
|
-
{
|
|
3424
|
-
name: "x-api-token",
|
|
3425
|
-
type: "apiKey"
|
|
3426
|
-
}
|
|
3427
|
-
],
|
|
3428
|
-
responseTransformer: flightsControllerCreateFlightV2V2ResponseTransformer,
|
|
3429
|
-
url: "/v2/flights",
|
|
3430
|
-
...options,
|
|
3431
|
-
headers: {
|
|
3432
|
-
"Content-Type": "application/json",
|
|
3433
|
-
...options.headers
|
|
3434
|
-
}
|
|
3435
|
-
});
|
|
3436
|
-
}, "flightsControllerCreateFlightV2V2");
|
|
3437
|
-
var flightsControllerGetProvenanceKeyV2V2 = /* @__PURE__ */ __name((options) => {
|
|
3438
|
-
return (options?.client ?? client).get({
|
|
3439
|
-
security: [
|
|
3440
|
-
{
|
|
3441
|
-
name: "x-api-token",
|
|
3442
|
-
type: "apiKey"
|
|
3443
|
-
}
|
|
3444
|
-
],
|
|
3445
|
-
url: "/v2/flights/provenance-key",
|
|
3446
|
-
...options
|
|
3447
|
-
});
|
|
3448
|
-
}, "flightsControllerGetProvenanceKeyV2V2");
|
|
3449
|
-
var flightsControllerGetFlightV2V2 = /* @__PURE__ */ __name((options) => {
|
|
3450
|
-
return (options.client ?? client).get({
|
|
3451
|
-
security: [
|
|
3452
|
-
{
|
|
3453
|
-
name: "x-api-token",
|
|
3454
|
-
type: "apiKey"
|
|
3455
|
-
}
|
|
3456
|
-
],
|
|
3457
|
-
responseTransformer: flightsControllerGetFlightV2V2ResponseTransformer,
|
|
3458
|
-
url: "/v2/flights/{id}",
|
|
3459
|
-
...options
|
|
3460
|
-
});
|
|
3461
|
-
}, "flightsControllerGetFlightV2V2");
|
|
3462
|
-
var flightsControllerGetExpectedImagesV2V2 = /* @__PURE__ */ __name((options) => {
|
|
3463
|
-
return (options.client ?? client).get({
|
|
3464
|
-
security: [
|
|
3465
|
-
{
|
|
3466
|
-
name: "x-api-token",
|
|
3467
|
-
type: "apiKey"
|
|
3468
|
-
}
|
|
3469
|
-
],
|
|
3470
|
-
url: "/v2/flights/{id}/expected-images",
|
|
3471
|
-
...options
|
|
3472
|
-
});
|
|
3473
|
-
}, "flightsControllerGetExpectedImagesV2V2");
|
|
3474
|
-
var flightsControllerGetProvenanceUploadUrlV2V2 = /* @__PURE__ */ __name((options) => {
|
|
3475
|
-
return (options.client ?? client).get({
|
|
3476
|
-
security: [
|
|
3477
|
-
{
|
|
3478
|
-
name: "x-api-token",
|
|
3479
|
-
type: "apiKey"
|
|
3480
|
-
}
|
|
3481
|
-
],
|
|
3482
|
-
url: "/v2/flights/{id}/provenance-upload-url",
|
|
3483
|
-
...options
|
|
3484
|
-
});
|
|
3485
|
-
}, "flightsControllerGetProvenanceUploadUrlV2V2");
|
|
3486
|
-
var flightsControllerGetReviewV2V2 = /* @__PURE__ */ __name((options) => {
|
|
3487
|
-
return (options.client ?? client).get({
|
|
3488
|
-
security: [
|
|
3489
|
-
{
|
|
3490
|
-
name: "x-api-token",
|
|
3491
|
-
type: "apiKey"
|
|
3492
|
-
}
|
|
3493
|
-
],
|
|
3494
|
-
responseTransformer: flightsControllerGetReviewV2V2ResponseTransformer,
|
|
3495
|
-
url: "/v2/flights/{id}/review",
|
|
3496
|
-
...options
|
|
3497
|
-
});
|
|
3498
|
-
}, "flightsControllerGetReviewV2V2");
|
|
3499
|
-
var flightsControllerRequestReviewV2V2 = /* @__PURE__ */ __name((options) => {
|
|
3500
|
-
return (options.client ?? client).post({
|
|
3501
|
-
security: [
|
|
3502
|
-
{
|
|
3503
|
-
name: "x-api-token",
|
|
3504
|
-
type: "apiKey"
|
|
3505
|
-
}
|
|
3506
|
-
],
|
|
3507
|
-
responseTransformer: flightsControllerRequestReviewV2V2ResponseTransformer,
|
|
3508
|
-
url: "/v2/flights/{id}/review",
|
|
3509
|
-
...options
|
|
3510
|
-
});
|
|
3511
|
-
}, "flightsControllerRequestReviewV2V2");
|
|
3512
|
-
var flightsControllerImageUploadUrlsV2V2 = /* @__PURE__ */ __name((options) => {
|
|
3513
|
-
return (options.client ?? client).post({
|
|
3514
|
-
security: [
|
|
3515
|
-
{
|
|
3516
|
-
name: "x-api-token",
|
|
3517
|
-
type: "apiKey"
|
|
3518
|
-
}
|
|
3519
|
-
],
|
|
3520
|
-
url: "/v2/flights/{id}/expected-images/upload-urls",
|
|
3521
|
-
...options,
|
|
3522
|
-
headers: {
|
|
3523
|
-
"Content-Type": "application/json",
|
|
3524
|
-
...options.headers
|
|
3525
|
-
}
|
|
3526
|
-
});
|
|
3527
|
-
}, "flightsControllerImageUploadUrlsV2V2");
|
|
3528
|
-
var flightsControllerSubmitProvenanceV2V2 = /* @__PURE__ */ __name((options) => {
|
|
3529
|
-
return (options.client ?? client).post({
|
|
3530
|
-
security: [
|
|
3531
|
-
{
|
|
3532
|
-
name: "x-api-token",
|
|
3533
|
-
type: "apiKey"
|
|
3534
|
-
}
|
|
3535
|
-
],
|
|
3536
|
-
responseTransformer: flightsControllerSubmitProvenanceV2V2ResponseTransformer,
|
|
3537
|
-
url: "/v2/flights/{id}/provenance",
|
|
3538
|
-
...options
|
|
3539
|
-
});
|
|
3540
|
-
}, "flightsControllerSubmitProvenanceV2V2");
|
|
3541
|
-
var missionsControllerGetMissionsV2V2 = /* @__PURE__ */ __name((options) => {
|
|
3542
|
-
return (options?.client ?? client).get({
|
|
3543
|
-
security: [
|
|
3544
|
-
{
|
|
3545
|
-
name: "x-api-token",
|
|
3546
|
-
type: "apiKey"
|
|
3547
|
-
}
|
|
3548
|
-
],
|
|
3549
|
-
responseTransformer: missionsControllerGetMissionsV2V2ResponseTransformer,
|
|
3550
|
-
url: "/v2/missions",
|
|
3551
|
-
...options
|
|
3552
|
-
});
|
|
3553
|
-
}, "missionsControllerGetMissionsV2V2");
|
|
3554
|
-
var missionsControllerCreateMissionsV2V2 = /* @__PURE__ */ __name((options) => {
|
|
3555
|
-
return (options.client ?? client).post({
|
|
3556
|
-
security: [
|
|
3557
|
-
{
|
|
3558
|
-
name: "x-api-token",
|
|
3559
|
-
type: "apiKey"
|
|
3560
|
-
}
|
|
3561
|
-
],
|
|
3562
|
-
responseTransformer: missionsControllerCreateMissionsV2V2ResponseTransformer,
|
|
3563
|
-
url: "/v2/missions",
|
|
3564
|
-
...options,
|
|
3565
|
-
headers: {
|
|
3566
|
-
"Content-Type": "application/json",
|
|
3567
|
-
...options.headers
|
|
3568
|
-
}
|
|
3569
|
-
});
|
|
3570
|
-
}, "missionsControllerCreateMissionsV2V2");
|
|
3571
|
-
var missionsControllerGetMissionV2V2 = /* @__PURE__ */ __name((options) => {
|
|
3572
|
-
return (options.client ?? client).get({
|
|
3573
|
-
security: [
|
|
3574
|
-
{
|
|
3575
|
-
name: "x-api-token",
|
|
3576
|
-
type: "apiKey"
|
|
3577
|
-
}
|
|
3578
|
-
],
|
|
3579
|
-
responseTransformer: missionsControllerGetMissionV2V2ResponseTransformer,
|
|
3580
|
-
url: "/v2/missions/{id}",
|
|
3581
|
-
...options
|
|
3582
|
-
});
|
|
3583
|
-
}, "missionsControllerGetMissionV2V2");
|
|
3584
|
-
var missionsControllerUpdateMissionV2V2 = /* @__PURE__ */ __name((options) => {
|
|
3585
|
-
return (options.client ?? client).patch({
|
|
3586
|
-
security: [
|
|
3587
|
-
{
|
|
3588
|
-
name: "x-api-token",
|
|
3589
|
-
type: "apiKey"
|
|
3590
|
-
}
|
|
3591
|
-
],
|
|
3592
|
-
responseTransformer: missionsControllerUpdateMissionV2V2ResponseTransformer,
|
|
3593
|
-
url: "/v2/missions/{id}",
|
|
3594
|
-
...options,
|
|
3595
|
-
headers: {
|
|
3596
|
-
"Content-Type": "application/json",
|
|
3597
|
-
...options.headers
|
|
3598
|
-
}
|
|
3599
|
-
});
|
|
3600
|
-
}, "missionsControllerUpdateMissionV2V2");
|
|
3601
|
-
var missionsControllerCancelMissionV2V2 = /* @__PURE__ */ __name((options) => {
|
|
3602
|
-
return (options.client ?? client).post({
|
|
3603
|
-
security: [
|
|
3604
|
-
{
|
|
3605
|
-
name: "x-api-token",
|
|
3606
|
-
type: "apiKey"
|
|
3607
|
-
}
|
|
3608
|
-
],
|
|
3609
|
-
responseTransformer: missionsControllerCancelMissionV2V2ResponseTransformer,
|
|
3610
|
-
url: "/v2/missions/{id}/cancel",
|
|
3611
|
-
...options
|
|
3612
|
-
});
|
|
3613
|
-
}, "missionsControllerCancelMissionV2V2");
|
|
3614
|
-
var missionsControllerRetryMissionV2V2 = /* @__PURE__ */ __name((options) => {
|
|
3615
|
-
return (options.client ?? client).post({
|
|
3616
|
-
security: [
|
|
3617
|
-
{
|
|
3618
|
-
name: "x-api-token",
|
|
3619
|
-
type: "apiKey"
|
|
3620
|
-
}
|
|
3621
|
-
],
|
|
3622
|
-
responseTransformer: missionsControllerRetryMissionV2V2ResponseTransformer,
|
|
3623
|
-
url: "/v2/missions/{id}/retry",
|
|
3624
|
-
...options
|
|
3625
|
-
});
|
|
3626
|
-
}, "missionsControllerRetryMissionV2V2");
|
|
3627
|
-
var rewardsControllerListRewardsV2V2 = /* @__PURE__ */ __name((options) => {
|
|
3628
|
-
return (options?.client ?? client).get({
|
|
3629
|
-
security: [
|
|
3630
|
-
{
|
|
3631
|
-
name: "x-api-token",
|
|
3632
|
-
type: "apiKey"
|
|
3633
|
-
}
|
|
3634
|
-
],
|
|
3635
|
-
responseTransformer: rewardsControllerListRewardsV2V2ResponseTransformer,
|
|
3636
|
-
url: "/v2/rewards",
|
|
3637
|
-
...options
|
|
3638
|
-
});
|
|
3639
|
-
}, "rewardsControllerListRewardsV2V2");
|
|
3640
|
-
var zonesControllerCreateZonesV2V2 = /* @__PURE__ */ __name((options) => {
|
|
3641
|
-
return (options.client ?? client).post({
|
|
3642
|
-
security: [
|
|
3643
|
-
{
|
|
3644
|
-
name: "x-api-token",
|
|
3645
|
-
type: "apiKey"
|
|
3646
|
-
}
|
|
3647
|
-
],
|
|
3648
|
-
url: "/v2/zones",
|
|
3649
|
-
...options,
|
|
3650
|
-
headers: {
|
|
3651
|
-
"Content-Type": "application/json",
|
|
3652
|
-
...options.headers
|
|
3653
|
-
}
|
|
3654
|
-
});
|
|
3655
|
-
}, "zonesControllerCreateZonesV2V2");
|
|
3656
|
-
var zonesControllerGetZoneV2V2 = /* @__PURE__ */ __name((options) => {
|
|
3657
|
-
return (options.client ?? client).get({
|
|
3658
|
-
security: [
|
|
3659
|
-
{
|
|
3660
|
-
name: "x-api-token",
|
|
3661
|
-
type: "apiKey"
|
|
3662
|
-
}
|
|
3663
|
-
],
|
|
3664
|
-
responseTransformer: zonesControllerGetZoneV2V2ResponseTransformer,
|
|
3665
|
-
url: "/v2/zones/{id}",
|
|
3666
|
-
...options
|
|
3667
|
-
});
|
|
3668
|
-
}, "zonesControllerGetZoneV2V2");
|
|
3669
|
-
var zonesControllerUpdateZoneV2V2 = /* @__PURE__ */ __name((options) => {
|
|
3670
|
-
return (options.client ?? client).put({
|
|
3671
|
-
security: [
|
|
3672
|
-
{
|
|
3673
|
-
name: "x-api-token",
|
|
3674
|
-
type: "apiKey"
|
|
3675
|
-
}
|
|
3676
|
-
],
|
|
3677
|
-
responseTransformer: zonesControllerUpdateZoneV2V2ResponseTransformer,
|
|
3678
|
-
url: "/v2/zones/{id}",
|
|
3679
|
-
...options,
|
|
3680
|
-
headers: {
|
|
3681
|
-
"Content-Type": "application/json",
|
|
3682
|
-
...options.headers
|
|
3683
|
-
}
|
|
3684
|
-
});
|
|
3685
|
-
}, "zonesControllerUpdateZoneV2V2");
|
|
3686
|
-
|
|
3687
|
-
// src/event/types.gen.ts
|
|
3688
|
-
var import_zod = require("zod");
|
|
3689
|
-
var Event = import_zod.z.union([
|
|
3690
|
-
import_zod.z.object({
|
|
3691
|
-
id: import_zod.z.string(),
|
|
3692
|
-
event_type: import_zod.z.literal("test"),
|
|
3693
|
-
timestamp: import_zod.z.string(),
|
|
3694
|
-
data: import_zod.z.object({
|
|
3695
|
-
message: import_zod.z.string()
|
|
3696
|
-
}).catchall(import_zod.z.any())
|
|
3697
|
-
}).catchall(import_zod.z.any()),
|
|
3698
|
-
import_zod.z.object({
|
|
3699
|
-
id: import_zod.z.string(),
|
|
3700
|
-
event_type: import_zod.z.literal("protocol.mission.created"),
|
|
3701
|
-
timestamp: import_zod.z.string(),
|
|
3702
|
-
data: import_zod.z.object({
|
|
3703
|
-
version: import_zod.z.literal(1),
|
|
3704
|
-
id: import_zod.z.object({
|
|
3705
|
-
__type: import_zod.z.literal("bigint"),
|
|
3706
|
-
value: import_zod.z.string()
|
|
3707
|
-
}).transform((wire) => BigInt(wire.value)),
|
|
3708
|
-
vaultId: import_zod.z.object({
|
|
3709
|
-
__type: import_zod.z.literal("bigint"),
|
|
3710
|
-
value: import_zod.z.string()
|
|
3711
|
-
}).transform((wire) => BigInt(wire.value)),
|
|
3712
|
-
amount: import_zod.z.object({
|
|
3713
|
-
__type: import_zod.z.literal("bigint"),
|
|
3714
|
-
value: import_zod.z.string()
|
|
3715
|
-
}).transform((wire) => BigInt(wire.value)),
|
|
3716
|
-
zoneId: import_zod.z.string(),
|
|
3717
|
-
flightPlanId: import_zod.z.number(),
|
|
3718
|
-
campaigns: import_zod.z.array(import_zod.z.string()),
|
|
3719
|
-
captureStartTime: import_zod.z.string().datetime({
|
|
3720
|
-
offset: true
|
|
3721
|
-
}),
|
|
3722
|
-
captureEndTime: import_zod.z.string().datetime({
|
|
3723
|
-
offset: true
|
|
3724
|
-
}),
|
|
3725
|
-
isReservable: import_zod.z.boolean(),
|
|
3726
|
-
requestor: import_zod.z.string().regex(new RegExp("^0x[a-fA-F0-9]{40}$")),
|
|
3727
|
-
collateralTokenAddress: import_zod.z.string().regex(new RegExp("^0x[a-fA-F0-9]{40}$")),
|
|
3728
|
-
chainId: import_zod.z.number(),
|
|
3729
|
-
tags: import_zod.z.record(import_zod.z.string())
|
|
3730
|
-
}).catchall(import_zod.z.any())
|
|
3731
|
-
}).catchall(import_zod.z.any()),
|
|
3732
|
-
import_zod.z.object({
|
|
3733
|
-
id: import_zod.z.string(),
|
|
3734
|
-
event_type: import_zod.z.literal("protocol.mission.updated"),
|
|
3735
|
-
timestamp: import_zod.z.string(),
|
|
3736
|
-
data: import_zod.z.object({
|
|
3737
|
-
version: import_zod.z.literal(1),
|
|
3738
|
-
id: import_zod.z.object({
|
|
3739
|
-
__type: import_zod.z.literal("bigint"),
|
|
3740
|
-
value: import_zod.z.string()
|
|
3741
|
-
}).transform((wire) => BigInt(wire.value)),
|
|
3742
|
-
amount: import_zod.z.object({
|
|
3743
|
-
__type: import_zod.z.literal("bigint"),
|
|
3744
|
-
value: import_zod.z.string()
|
|
3745
|
-
}).transform((wire) => BigInt(wire.value)).optional(),
|
|
3746
|
-
isOpen: import_zod.z.boolean().optional(),
|
|
3747
|
-
campaigns: import_zod.z.array(import_zod.z.string()).optional()
|
|
3748
|
-
}).catchall(import_zod.z.any())
|
|
3749
|
-
}).catchall(import_zod.z.any()),
|
|
3750
|
-
import_zod.z.object({
|
|
3751
|
-
id: import_zod.z.string(),
|
|
3752
|
-
event_type: import_zod.z.literal("protocol.mission.paid"),
|
|
3753
|
-
timestamp: import_zod.z.string(),
|
|
3754
|
-
data: import_zod.z.object({
|
|
3755
|
-
version: import_zod.z.literal(1),
|
|
3756
|
-
recipient: import_zod.z.string().regex(new RegExp("^0x[a-fA-F0-9]{40}$")),
|
|
3757
|
-
flightId: import_zod.z.object({
|
|
3758
|
-
__type: import_zod.z.literal("bigint"),
|
|
3759
|
-
value: import_zod.z.string()
|
|
3760
|
-
}).transform((wire) => BigInt(wire.value)),
|
|
3761
|
-
missionId: import_zod.z.object({
|
|
3762
|
-
__type: import_zod.z.literal("bigint"),
|
|
3763
|
-
value: import_zod.z.string()
|
|
3764
|
-
}).transform((wire) => BigInt(wire.value)),
|
|
3765
|
-
vaultId: import_zod.z.object({
|
|
3766
|
-
__type: import_zod.z.literal("bigint"),
|
|
3767
|
-
value: import_zod.z.string()
|
|
3768
|
-
}).transform((wire) => BigInt(wire.value)),
|
|
3769
|
-
amount: import_zod.z.object({
|
|
3770
|
-
__type: import_zod.z.literal("bigint"),
|
|
3771
|
-
value: import_zod.z.string()
|
|
3772
|
-
}).transform((wire) => BigInt(wire.value)),
|
|
3773
|
-
storageKey: import_zod.z.string()
|
|
3774
|
-
}).catchall(import_zod.z.any())
|
|
3775
|
-
}).catchall(import_zod.z.any()),
|
|
3776
|
-
import_zod.z.object({
|
|
3777
|
-
id: import_zod.z.string(),
|
|
3778
|
-
event_type: import_zod.z.literal("protocol.flight.submitted"),
|
|
3779
|
-
timestamp: import_zod.z.string(),
|
|
3780
|
-
data: import_zod.z.object({
|
|
3781
|
-
version: import_zod.z.literal(1),
|
|
3782
|
-
storageKey: import_zod.z.string(),
|
|
3783
|
-
pilotAddress: import_zod.z.string(),
|
|
3784
|
-
flightManifestUri: import_zod.z.string(),
|
|
3785
|
-
missionId: import_zod.z.object({
|
|
3786
|
-
__type: import_zod.z.literal("bigint"),
|
|
3787
|
-
value: import_zod.z.string()
|
|
3788
|
-
}).transform((wire) => BigInt(wire.value))
|
|
3789
|
-
}).catchall(import_zod.z.any())
|
|
3790
|
-
}).catchall(import_zod.z.any()),
|
|
3791
|
-
import_zod.z.object({
|
|
3792
|
-
id: import_zod.z.string(),
|
|
3793
|
-
event_type: import_zod.z.literal("protocol.flight.reviewed"),
|
|
3794
|
-
timestamp: import_zod.z.string(),
|
|
3795
|
-
data: import_zod.z.object({
|
|
3796
|
-
version: import_zod.z.literal(1),
|
|
3797
|
-
flightId: import_zod.z.object({
|
|
3798
|
-
__type: import_zod.z.literal("bigint"),
|
|
3799
|
-
value: import_zod.z.string()
|
|
3800
|
-
}).transform((wire) => BigInt(wire.value)),
|
|
3801
|
-
owner: import_zod.z.string().regex(new RegExp("^0x[a-fA-F0-9]{40}$")),
|
|
3802
|
-
isApproved: import_zod.z.boolean(),
|
|
3803
|
-
validationLogUri: import_zod.z.string(),
|
|
3804
|
-
validator: import_zod.z.string(),
|
|
3805
|
-
filesHash: import_zod.z.string(),
|
|
3806
|
-
storageKey: import_zod.z.string(),
|
|
3807
|
-
missionId: import_zod.z.object({
|
|
3808
|
-
__type: import_zod.z.literal("bigint"),
|
|
3809
|
-
value: import_zod.z.string()
|
|
3810
|
-
}).transform((wire) => BigInt(wire.value))
|
|
3811
|
-
}).catchall(import_zod.z.any())
|
|
3812
|
-
}).catchall(import_zod.z.any()),
|
|
3813
|
-
import_zod.z.object({
|
|
3814
|
-
id: import_zod.z.string(),
|
|
3815
|
-
event_type: import_zod.z.literal("protocol.zone"),
|
|
3816
|
-
timestamp: import_zod.z.string(),
|
|
3817
|
-
data: import_zod.z.object({
|
|
3818
|
-
version: import_zod.z.literal(1),
|
|
3819
|
-
data: import_zod.z.object({
|
|
3820
|
-
id: import_zod.z.string(),
|
|
3821
|
-
region_id: import_zod.z.number(),
|
|
3822
|
-
is_flyable: import_zod.z.boolean(),
|
|
3823
|
-
deleted_at: import_zod.z.string().datetime({
|
|
3824
|
-
offset: true
|
|
3825
|
-
}).optional()
|
|
3826
|
-
}).catchall(import_zod.z.any()),
|
|
3827
|
-
changes: import_zod.z.object({
|
|
3828
|
-
region_id: import_zod.z.number().optional(),
|
|
3829
|
-
is_flyable: import_zod.z.boolean().optional(),
|
|
3830
|
-
deleted_at: import_zod.z.string().datetime({
|
|
3831
|
-
offset: true
|
|
3832
|
-
}).optional()
|
|
3833
|
-
}).catchall(import_zod.z.any()).optional()
|
|
3834
|
-
}).catchall(import_zod.z.any())
|
|
3835
|
-
}).catchall(import_zod.z.any())
|
|
3836
|
-
]);
|
|
3837
|
-
|
|
3838
|
-
// src/event/parser.ts
|
|
3839
|
-
var WEBHOOK_SECRET_HEADER = "X-Webhook-Secret";
|
|
3840
|
-
var WEBHOOK_PREVIOUS_SECRET_HEADER = "X-Webhook-Previous-Secret";
|
|
3841
|
-
var WEBHOOK_PREVIOUS_SECRET_EXPIRES_AT_HEADER = "X-Webhook-Previous-Secret-Expires-At";
|
|
3842
|
-
function parseWebhookEvent(req, webhookSecret) {
|
|
3843
|
-
const incoming = getFirstHeader(req.headers, WEBHOOK_SECRET_HEADER);
|
|
3844
|
-
if (typeof incoming !== "string") {
|
|
3845
|
-
throw new Error("Webhook request signature is not a string");
|
|
3846
|
-
}
|
|
3847
|
-
if (!Buffer.isBuffer(req.body)) {
|
|
3848
|
-
throw new Error("Webhook request body is not a Buffer");
|
|
3849
|
-
}
|
|
3850
|
-
if (incoming === webhookSecret) {
|
|
3851
|
-
return Event.parse(JSON.parse(req.body.toString("utf-8")));
|
|
3852
|
-
}
|
|
3853
|
-
const announcedPrevious = getFirstHeader(req.headers, WEBHOOK_PREVIOUS_SECRET_HEADER);
|
|
3854
|
-
const expiresRaw = getFirstHeader(req.headers, WEBHOOK_PREVIOUS_SECRET_EXPIRES_AT_HEADER);
|
|
3855
|
-
if (announcedPrevious === void 0 || expiresRaw === void 0) {
|
|
3856
|
-
throw new Error("Invalid webhook secret");
|
|
3857
|
-
}
|
|
3858
|
-
const expiresAt = new Date(expiresRaw);
|
|
3859
|
-
if (Number.isNaN(expiresAt.getTime())) {
|
|
3860
|
-
throw new Error("Invalid webhook secret");
|
|
3861
|
-
}
|
|
3862
|
-
if (Date.now() >= expiresAt.getTime()) {
|
|
3863
|
-
throw new Error("Invalid webhook secret");
|
|
3864
|
-
}
|
|
3865
|
-
if (webhookSecret === announcedPrevious) {
|
|
3866
|
-
return Event.parse(JSON.parse(req.body.toString("utf-8")));
|
|
3867
|
-
}
|
|
3868
|
-
throw new Error("Invalid webhook secret");
|
|
3869
|
-
}
|
|
3870
|
-
__name(parseWebhookEvent, "parseWebhookEvent");
|
|
3871
|
-
function getFirstHeader(headers, canonicalName) {
|
|
3872
|
-
const lower = canonicalName.toLowerCase();
|
|
3873
|
-
let value = headers[canonicalName] ?? headers[lower];
|
|
3874
|
-
if (Array.isArray(value)) {
|
|
3875
|
-
value = value[0];
|
|
3876
|
-
}
|
|
3877
|
-
return typeof value === "string" ? value : void 0;
|
|
3878
|
-
}
|
|
3879
|
-
__name(getFirstHeader, "getFirstHeader");
|
|
3880
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
3881
|
-
0 && (module.exports = {
|
|
3882
|
-
Event,
|
|
3883
|
-
WEBHOOK_PREVIOUS_SECRET_EXPIRES_AT_HEADER,
|
|
3884
|
-
WEBHOOK_PREVIOUS_SECRET_HEADER,
|
|
3885
|
-
WEBHOOK_SECRET_HEADER,
|
|
3886
|
-
alchemyControllerHandleWebhook0V1,
|
|
3887
|
-
alchemyControllerHandleWebhook1,
|
|
3888
|
-
apiControllerGetError0V1,
|
|
3889
|
-
apiControllerGetError1,
|
|
3890
|
-
apiControllerGetHello0V1,
|
|
3891
|
-
apiControllerGetHello1,
|
|
3892
|
-
apiTokenControllerCreateToken0V1,
|
|
3893
|
-
apiTokenControllerCreateToken1,
|
|
3894
|
-
apiTokenControllerDeleteToken0V1,
|
|
3895
|
-
apiTokenControllerDeleteToken1,
|
|
3896
|
-
apiTokenControllerGetToken0V1,
|
|
3897
|
-
apiTokenControllerGetToken1,
|
|
3898
|
-
apiTokenControllerUpdateToken0V1,
|
|
3899
|
-
apiTokenControllerUpdateToken1,
|
|
3900
|
-
backfillControllerTrigger0V1,
|
|
3901
|
-
backfillControllerTrigger1,
|
|
3902
|
-
buildClientParams,
|
|
3903
|
-
campaignsControllerCancelCampaignV2V2,
|
|
3904
|
-
campaignsControllerCreate0V1,
|
|
3905
|
-
campaignsControllerCreate1,
|
|
3906
|
-
campaignsControllerCreateCampaignV2V2,
|
|
3907
|
-
campaignsControllerDelete0V1,
|
|
3908
|
-
campaignsControllerDelete1,
|
|
3909
|
-
campaignsControllerGet0V1,
|
|
3910
|
-
campaignsControllerGet1,
|
|
3911
|
-
campaignsControllerGetCampaignV2V2,
|
|
3912
|
-
campaignsControllerGetCampaignsV2V2,
|
|
3913
|
-
campaignsControllerGetMany0V1,
|
|
3914
|
-
campaignsControllerGetMany1,
|
|
3915
|
-
campaignsControllerUpdate0V1,
|
|
3916
|
-
campaignsControllerUpdate1,
|
|
3917
|
-
campaignsControllerUpdateCampaignV2V2,
|
|
3918
|
-
conditionsControllerGetSunAltitudeTimeLimits0V1,
|
|
3919
|
-
conditionsControllerGetSunAltitudeTimeLimits1,
|
|
3920
|
-
contractsControllerCreateContract0V1,
|
|
3921
|
-
contractsControllerCreateContract1,
|
|
3922
|
-
contractsControllerDeleteContract0V1,
|
|
3923
|
-
contractsControllerDeleteContract1,
|
|
3924
|
-
contractsControllerGetAllContracts0V1,
|
|
3925
|
-
contractsControllerGetAllContracts1,
|
|
3926
|
-
contractsControllerGetContract0V1,
|
|
3927
|
-
contractsControllerGetContract1,
|
|
3928
|
-
contractsControllerUpdateContract0V1,
|
|
3929
|
-
contractsControllerUpdateContract1,
|
|
3930
|
-
createClient,
|
|
3931
|
-
createConfig,
|
|
3932
|
-
dlqRedriverControllerRedriveDlq0V1,
|
|
3933
|
-
dlqRedriverControllerRedriveDlq1,
|
|
3934
|
-
eventProcessorFlightReviewsSyncControllerResyncFlightReviews0V1,
|
|
3935
|
-
eventProcessorFlightReviewsSyncControllerResyncFlightReviews1,
|
|
3936
|
-
eventProcessorMissionsSyncControllerResyncMissions0V1,
|
|
3937
|
-
eventProcessorMissionsSyncControllerResyncMissions1,
|
|
3938
|
-
flightPlansControllerCreate0V1,
|
|
3939
|
-
flightPlansControllerCreate1,
|
|
3940
|
-
flightPlansControllerCreateV2V2,
|
|
3941
|
-
flightPlansControllerExpandV2V2,
|
|
3942
|
-
flightPlansControllerGet0V1,
|
|
3943
|
-
flightPlansControllerGet1,
|
|
3944
|
-
flightPlansControllerGetMany0V1,
|
|
3945
|
-
flightPlansControllerGetMany1,
|
|
3946
|
-
flightPlansControllerGetManyV2V2,
|
|
3947
|
-
flightPlansControllerGetV2V2,
|
|
3948
|
-
flightPlansControllerUpdateV2V2,
|
|
3949
|
-
flightReviewsControllerGetFlightReview0V1,
|
|
3950
|
-
flightReviewsControllerGetFlightReview1,
|
|
3951
|
-
flightReviewsControllerGetFlightReviews0V1,
|
|
3952
|
-
flightReviewsControllerGetFlightReviews1,
|
|
3953
|
-
flightsControllerCreateFlightV2V2,
|
|
3954
|
-
flightsControllerCreatePresignedUrls0V1,
|
|
3955
|
-
flightsControllerCreatePresignedUrls1,
|
|
3956
|
-
flightsControllerGenerateStorageKey0V1,
|
|
3957
|
-
flightsControllerGenerateStorageKey1,
|
|
3958
|
-
flightsControllerGetExpectedImagesV2V2,
|
|
3959
|
-
flightsControllerGetFlight0V1,
|
|
3960
|
-
flightsControllerGetFlight1,
|
|
3961
|
-
flightsControllerGetFlightV2V2,
|
|
3962
|
-
flightsControllerGetFlightsV2V2,
|
|
3963
|
-
flightsControllerGetProvenanceKeyV2V2,
|
|
3964
|
-
flightsControllerGetProvenanceUploadUrlV2V2,
|
|
3965
|
-
flightsControllerGetReviewV2V2,
|
|
3966
|
-
flightsControllerImageUploadUrlsV2V2,
|
|
3967
|
-
flightsControllerRequestReviewV2V2,
|
|
3968
|
-
flightsControllerSubmitProvenanceV2V2,
|
|
3969
|
-
flightsControllerValidateFlight0V1,
|
|
3970
|
-
flightsControllerValidateFlight1,
|
|
3971
|
-
formDataBodySerializer,
|
|
3972
|
-
getProposal,
|
|
3973
|
-
inboundWebhookConfigsControllerCreate0V1,
|
|
3974
|
-
inboundWebhookConfigsControllerCreate1,
|
|
3975
|
-
inboundWebhookConfigsControllerDelete0V1,
|
|
3976
|
-
inboundWebhookConfigsControllerDelete1,
|
|
3977
|
-
inboundWebhookConfigsControllerGet0V1,
|
|
3978
|
-
inboundWebhookConfigsControllerGet1,
|
|
3979
|
-
inboundWebhookConfigsControllerGetMany0V1,
|
|
3980
|
-
inboundWebhookConfigsControllerGetMany1,
|
|
3981
|
-
inboundWebhookConfigsControllerUpdate0V1,
|
|
3982
|
-
inboundWebhookConfigsControllerUpdate1,
|
|
3983
|
-
jsonBodySerializer,
|
|
3984
|
-
keysControllerGetProvenanceCryptoKey0V1,
|
|
3985
|
-
keysControllerGetProvenanceCryptoKey1,
|
|
3986
|
-
listProposals,
|
|
3987
|
-
mergeHeaders,
|
|
3988
|
-
missionsControllerCancelMissionV2V2,
|
|
3989
|
-
missionsControllerCreateMissions0V1,
|
|
3990
|
-
missionsControllerCreateMissions1,
|
|
3991
|
-
missionsControllerCreateMissionsV2V2,
|
|
3992
|
-
missionsControllerGetMission0V1,
|
|
3993
|
-
missionsControllerGetMission1,
|
|
3994
|
-
missionsControllerGetMissionV2V2,
|
|
3995
|
-
missionsControllerGetMissions0V1,
|
|
3996
|
-
missionsControllerGetMissions1,
|
|
3997
|
-
missionsControllerGetMissionsV2V2,
|
|
3998
|
-
missionsControllerRepriceMissions0V1,
|
|
3999
|
-
missionsControllerRepriceMissions1,
|
|
4000
|
-
missionsControllerRetryMissionV2V2,
|
|
4001
|
-
missionsControllerUpdateMissionV2V2,
|
|
4002
|
-
missionsControllerUpdateMissions0V1,
|
|
4003
|
-
missionsControllerUpdateMissions1,
|
|
4004
|
-
parseWebhookEvent,
|
|
4005
|
-
protocolTriggersApiControllerTriggerMissionClose0V1,
|
|
4006
|
-
protocolTriggersApiControllerTriggerMissionClose1,
|
|
4007
|
-
protocolTriggersApiControllerTriggerPayout0V1,
|
|
4008
|
-
protocolTriggersApiControllerTriggerPayout1,
|
|
4009
|
-
quotesControllerCreateQuote0V1,
|
|
4010
|
-
quotesControllerCreateQuote1,
|
|
4011
|
-
quotesControllerGetQuote0V1,
|
|
4012
|
-
quotesControllerGetQuote1,
|
|
4013
|
-
reviewProposal,
|
|
4014
|
-
rewardsControllerListRewardsV2V2,
|
|
4015
|
-
submitProposal,
|
|
4016
|
-
urlSearchParamsBodySerializer,
|
|
4017
|
-
vaultsControllerCreateVaults0V1,
|
|
4018
|
-
vaultsControllerCreateVaults1,
|
|
4019
|
-
webhooksControllerCreate0V1,
|
|
4020
|
-
webhooksControllerCreate1,
|
|
4021
|
-
webhooksControllerDelete0V1,
|
|
4022
|
-
webhooksControllerDelete1,
|
|
4023
|
-
webhooksControllerGet0V1,
|
|
4024
|
-
webhooksControllerGet1,
|
|
4025
|
-
webhooksControllerGetMany0V1,
|
|
4026
|
-
webhooksControllerGetMany1,
|
|
4027
|
-
webhooksControllerGetStatus0V1,
|
|
4028
|
-
webhooksControllerGetStatus1,
|
|
4029
|
-
webhooksControllerRegenerateSecret0V1,
|
|
4030
|
-
webhooksControllerRegenerateSecret1,
|
|
4031
|
-
webhooksControllerTest0V1,
|
|
4032
|
-
webhooksControllerTest1,
|
|
4033
|
-
webhooksControllerUpdate0V1,
|
|
4034
|
-
webhooksControllerUpdate1,
|
|
4035
|
-
zonesControllerCreateZone0V1,
|
|
4036
|
-
zonesControllerCreateZone1,
|
|
4037
|
-
zonesControllerCreateZonesV2V2,
|
|
4038
|
-
zonesControllerDeleteZone0V1,
|
|
4039
|
-
zonesControllerDeleteZone1,
|
|
4040
|
-
zonesControllerGetZone0V1,
|
|
4041
|
-
zonesControllerGetZone1,
|
|
4042
|
-
zonesControllerGetZoneV2V2,
|
|
4043
|
-
zonesControllerUpdateZone0V1,
|
|
4044
|
-
zonesControllerUpdateZone1,
|
|
4045
|
-
zonesControllerUpdateZoneV2V2
|
|
4046
|
-
});
|