@layer-drone/protocol 1.0.2 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +1226 -159
- package/dist/index.d.ts +1226 -159
- package/dist/index.js +878 -19
- package/dist/index.mjs +844 -16
- package/package.json +5 -3
- package/src/client/client.gen.ts +5 -1
- package/src/client/sdk.gen.ts +1209 -171
- package/src/client/transformers.gen.ts +390 -0
- package/src/client/types.gen.ts +1532 -139
package/src/client/sdk.gen.ts
CHANGED
|
@@ -8,22 +8,36 @@ import type {
|
|
|
8
8
|
import {
|
|
9
9
|
apiTokenControllerUpdateToken0V1ResponseTransformer,
|
|
10
10
|
apiTokenControllerUpdateToken1ResponseTransformer,
|
|
11
|
+
campaignsControllerCreateCampaignV2V2ResponseTransformer,
|
|
12
|
+
campaignsControllerGetCampaignV2V2ResponseTransformer,
|
|
13
|
+
campaignsControllerGetCampaignsV2V2ResponseTransformer,
|
|
14
|
+
campaignsControllerUpdateCampaignV2V2ResponseTransformer,
|
|
11
15
|
conditionsControllerGetSunAltitudeTimeLimits0V1ResponseTransformer,
|
|
12
16
|
conditionsControllerGetSunAltitudeTimeLimits1ResponseTransformer,
|
|
13
17
|
contractsControllerGetAllContracts0V1ResponseTransformer,
|
|
14
18
|
contractsControllerGetAllContracts1ResponseTransformer,
|
|
15
19
|
flightPlansControllerCreate0V1ResponseTransformer,
|
|
16
20
|
flightPlansControllerCreate1ResponseTransformer,
|
|
21
|
+
flightPlansControllerCreateV2V2ResponseTransformer,
|
|
17
22
|
flightPlansControllerGet0V1ResponseTransformer,
|
|
18
23
|
flightPlansControllerGet1ResponseTransformer,
|
|
19
24
|
flightPlansControllerGetMany0V1ResponseTransformer,
|
|
20
25
|
flightPlansControllerGetMany1ResponseTransformer,
|
|
26
|
+
flightPlansControllerGetManyV2V2ResponseTransformer,
|
|
27
|
+
flightPlansControllerGetV2V2ResponseTransformer,
|
|
28
|
+
flightPlansControllerUpdateV2V2ResponseTransformer,
|
|
21
29
|
flightReviewsControllerGetFlightReview0V1ResponseTransformer,
|
|
22
30
|
flightReviewsControllerGetFlightReview1ResponseTransformer,
|
|
23
31
|
flightReviewsControllerGetFlightReviews0V1ResponseTransformer,
|
|
24
32
|
flightReviewsControllerGetFlightReviews1ResponseTransformer,
|
|
33
|
+
flightsControllerCreateFlightV2V2ResponseTransformer,
|
|
25
34
|
flightsControllerGetFlight0V1ResponseTransformer,
|
|
26
35
|
flightsControllerGetFlight1ResponseTransformer,
|
|
36
|
+
flightsControllerGetFlightV2V2ResponseTransformer,
|
|
37
|
+
flightsControllerGetFlightsV2V2ResponseTransformer,
|
|
38
|
+
flightsControllerGetReviewV2V2ResponseTransformer,
|
|
39
|
+
flightsControllerRequestReviewV2V2ResponseTransformer,
|
|
40
|
+
flightsControllerSubmitProvenanceV2V2ResponseTransformer,
|
|
27
41
|
flightsControllerValidateFlight0V1ResponseTransformer,
|
|
28
42
|
flightsControllerValidateFlight1ResponseTransformer,
|
|
29
43
|
getProposalResponseTransformer,
|
|
@@ -36,12 +50,19 @@ import {
|
|
|
36
50
|
inboundWebhookConfigsControllerUpdate0V1ResponseTransformer,
|
|
37
51
|
inboundWebhookConfigsControllerUpdate1ResponseTransformer,
|
|
38
52
|
listProposalsResponseTransformer,
|
|
53
|
+
missionsControllerCancelMissionV2V2ResponseTransformer,
|
|
39
54
|
missionsControllerCreateMissions0V1ResponseTransformer,
|
|
40
55
|
missionsControllerCreateMissions1ResponseTransformer,
|
|
56
|
+
missionsControllerCreateMissionsV2V2ResponseTransformer,
|
|
41
57
|
missionsControllerGetMission0V1ResponseTransformer,
|
|
42
58
|
missionsControllerGetMission1ResponseTransformer,
|
|
59
|
+
missionsControllerGetMissionV2V2ResponseTransformer,
|
|
43
60
|
missionsControllerGetMissions0V1ResponseTransformer,
|
|
44
61
|
missionsControllerGetMissions1ResponseTransformer,
|
|
62
|
+
missionsControllerGetMissionsV2V2ResponseTransformer,
|
|
63
|
+
missionsControllerRetryMissionV2V2ResponseTransformer,
|
|
64
|
+
missionsControllerUpdateMissionV2V2ResponseTransformer,
|
|
65
|
+
rewardsControllerListRewardsV2V2ResponseTransformer,
|
|
45
66
|
webhooksControllerGet0V1ResponseTransformer,
|
|
46
67
|
webhooksControllerGet1ResponseTransformer,
|
|
47
68
|
webhooksControllerGetMany0V1ResponseTransformer,
|
|
@@ -52,8 +73,12 @@ import {
|
|
|
52
73
|
webhooksControllerUpdate1ResponseTransformer,
|
|
53
74
|
zonesControllerCreateZone0V1ResponseTransformer,
|
|
54
75
|
zonesControllerCreateZone1ResponseTransformer,
|
|
76
|
+
zonesControllerGetZone0V1ResponseTransformer,
|
|
77
|
+
zonesControllerGetZone1ResponseTransformer,
|
|
78
|
+
zonesControllerGetZoneV2V2ResponseTransformer,
|
|
55
79
|
zonesControllerUpdateZone0V1ResponseTransformer,
|
|
56
80
|
zonesControllerUpdateZone1ResponseTransformer,
|
|
81
|
+
zonesControllerUpdateZoneV2V2ResponseTransformer,
|
|
57
82
|
} from "./transformers.gen.js";
|
|
58
83
|
import type {
|
|
59
84
|
AlchemyControllerHandleWebhook0V1Data,
|
|
@@ -92,12 +117,24 @@ import type {
|
|
|
92
117
|
ApiTokenControllerUpdateToken1Data,
|
|
93
118
|
ApiTokenControllerUpdateToken1Errors,
|
|
94
119
|
ApiTokenControllerUpdateToken1Responses,
|
|
120
|
+
BackfillControllerTrigger0V1Data,
|
|
121
|
+
BackfillControllerTrigger0V1Errors,
|
|
122
|
+
BackfillControllerTrigger0V1Responses,
|
|
123
|
+
BackfillControllerTrigger1Data,
|
|
124
|
+
BackfillControllerTrigger1Errors,
|
|
125
|
+
BackfillControllerTrigger1Responses,
|
|
126
|
+
CampaignsControllerCancelCampaignV2V2Data,
|
|
127
|
+
CampaignsControllerCancelCampaignV2V2Errors,
|
|
128
|
+
CampaignsControllerCancelCampaignV2V2Responses,
|
|
95
129
|
CampaignsControllerCreate0V1Data,
|
|
96
130
|
CampaignsControllerCreate0V1Errors,
|
|
97
131
|
CampaignsControllerCreate0V1Responses,
|
|
98
132
|
CampaignsControllerCreate1Data,
|
|
99
133
|
CampaignsControllerCreate1Errors,
|
|
100
134
|
CampaignsControllerCreate1Responses,
|
|
135
|
+
CampaignsControllerCreateCampaignV2V2Data,
|
|
136
|
+
CampaignsControllerCreateCampaignV2V2Errors,
|
|
137
|
+
CampaignsControllerCreateCampaignV2V2Responses,
|
|
101
138
|
CampaignsControllerDelete0V1Data,
|
|
102
139
|
CampaignsControllerDelete0V1Errors,
|
|
103
140
|
CampaignsControllerDelete0V1Responses,
|
|
@@ -110,6 +147,12 @@ import type {
|
|
|
110
147
|
CampaignsControllerGet1Data,
|
|
111
148
|
CampaignsControllerGet1Errors,
|
|
112
149
|
CampaignsControllerGet1Responses,
|
|
150
|
+
CampaignsControllerGetCampaignV2V2Data,
|
|
151
|
+
CampaignsControllerGetCampaignV2V2Errors,
|
|
152
|
+
CampaignsControllerGetCampaignV2V2Responses,
|
|
153
|
+
CampaignsControllerGetCampaignsV2V2Data,
|
|
154
|
+
CampaignsControllerGetCampaignsV2V2Errors,
|
|
155
|
+
CampaignsControllerGetCampaignsV2V2Responses,
|
|
113
156
|
CampaignsControllerGetMany0V1Data,
|
|
114
157
|
CampaignsControllerGetMany0V1Errors,
|
|
115
158
|
CampaignsControllerGetMany0V1Responses,
|
|
@@ -122,6 +165,9 @@ import type {
|
|
|
122
165
|
CampaignsControllerUpdate1Data,
|
|
123
166
|
CampaignsControllerUpdate1Errors,
|
|
124
167
|
CampaignsControllerUpdate1Responses,
|
|
168
|
+
CampaignsControllerUpdateCampaignV2V2Data,
|
|
169
|
+
CampaignsControllerUpdateCampaignV2V2Errors,
|
|
170
|
+
CampaignsControllerUpdateCampaignV2V2Responses,
|
|
125
171
|
ConditionsControllerGetSunAltitudeTimeLimits0V1Data,
|
|
126
172
|
ConditionsControllerGetSunAltitudeTimeLimits0V1Responses,
|
|
127
173
|
ConditionsControllerGetSunAltitudeTimeLimits1Data,
|
|
@@ -180,6 +226,9 @@ import type {
|
|
|
180
226
|
FlightPlansControllerCreate1Data,
|
|
181
227
|
FlightPlansControllerCreate1Errors,
|
|
182
228
|
FlightPlansControllerCreate1Responses,
|
|
229
|
+
FlightPlansControllerCreateV2V2Data,
|
|
230
|
+
FlightPlansControllerCreateV2V2Errors,
|
|
231
|
+
FlightPlansControllerCreateV2V2Responses,
|
|
183
232
|
FlightPlansControllerGet0V1Data,
|
|
184
233
|
FlightPlansControllerGet0V1Errors,
|
|
185
234
|
FlightPlansControllerGet0V1Responses,
|
|
@@ -192,6 +241,15 @@ import type {
|
|
|
192
241
|
FlightPlansControllerGetMany1Data,
|
|
193
242
|
FlightPlansControllerGetMany1Errors,
|
|
194
243
|
FlightPlansControllerGetMany1Responses,
|
|
244
|
+
FlightPlansControllerGetManyV2V2Data,
|
|
245
|
+
FlightPlansControllerGetManyV2V2Errors,
|
|
246
|
+
FlightPlansControllerGetManyV2V2Responses,
|
|
247
|
+
FlightPlansControllerGetV2V2Data,
|
|
248
|
+
FlightPlansControllerGetV2V2Errors,
|
|
249
|
+
FlightPlansControllerGetV2V2Responses,
|
|
250
|
+
FlightPlansControllerUpdateV2V2Data,
|
|
251
|
+
FlightPlansControllerUpdateV2V2Errors,
|
|
252
|
+
FlightPlansControllerUpdateV2V2Responses,
|
|
195
253
|
FlightReviewsControllerGetFlightReview0V1Data,
|
|
196
254
|
FlightReviewsControllerGetFlightReview0V1Errors,
|
|
197
255
|
FlightReviewsControllerGetFlightReview0V1Responses,
|
|
@@ -204,6 +262,9 @@ import type {
|
|
|
204
262
|
FlightReviewsControllerGetFlightReviews1Data,
|
|
205
263
|
FlightReviewsControllerGetFlightReviews1Errors,
|
|
206
264
|
FlightReviewsControllerGetFlightReviews1Responses,
|
|
265
|
+
FlightsControllerCreateFlightV2V2Data,
|
|
266
|
+
FlightsControllerCreateFlightV2V2Errors,
|
|
267
|
+
FlightsControllerCreateFlightV2V2Responses,
|
|
207
268
|
FlightsControllerCreatePresignedUrls0V1Data,
|
|
208
269
|
FlightsControllerCreatePresignedUrls0V1Errors,
|
|
209
270
|
FlightsControllerCreatePresignedUrls0V1Responses,
|
|
@@ -216,12 +277,39 @@ import type {
|
|
|
216
277
|
FlightsControllerGenerateStorageKey1Data,
|
|
217
278
|
FlightsControllerGenerateStorageKey1Errors,
|
|
218
279
|
FlightsControllerGenerateStorageKey1Responses,
|
|
280
|
+
FlightsControllerGetExpectedImagesV2V2Data,
|
|
281
|
+
FlightsControllerGetExpectedImagesV2V2Errors,
|
|
282
|
+
FlightsControllerGetExpectedImagesV2V2Responses,
|
|
219
283
|
FlightsControllerGetFlight0V1Data,
|
|
220
284
|
FlightsControllerGetFlight0V1Errors,
|
|
221
285
|
FlightsControllerGetFlight0V1Responses,
|
|
222
286
|
FlightsControllerGetFlight1Data,
|
|
223
287
|
FlightsControllerGetFlight1Errors,
|
|
224
288
|
FlightsControllerGetFlight1Responses,
|
|
289
|
+
FlightsControllerGetFlightV2V2Data,
|
|
290
|
+
FlightsControllerGetFlightV2V2Errors,
|
|
291
|
+
FlightsControllerGetFlightV2V2Responses,
|
|
292
|
+
FlightsControllerGetFlightsV2V2Data,
|
|
293
|
+
FlightsControllerGetFlightsV2V2Errors,
|
|
294
|
+
FlightsControllerGetFlightsV2V2Responses,
|
|
295
|
+
FlightsControllerGetProvenanceKeyV2V2Data,
|
|
296
|
+
FlightsControllerGetProvenanceKeyV2V2Errors,
|
|
297
|
+
FlightsControllerGetProvenanceKeyV2V2Responses,
|
|
298
|
+
FlightsControllerGetProvenanceUploadUrlV2V2Data,
|
|
299
|
+
FlightsControllerGetProvenanceUploadUrlV2V2Errors,
|
|
300
|
+
FlightsControllerGetProvenanceUploadUrlV2V2Responses,
|
|
301
|
+
FlightsControllerGetReviewV2V2Data,
|
|
302
|
+
FlightsControllerGetReviewV2V2Errors,
|
|
303
|
+
FlightsControllerGetReviewV2V2Responses,
|
|
304
|
+
FlightsControllerImageUploadUrlsV2V2Data,
|
|
305
|
+
FlightsControllerImageUploadUrlsV2V2Errors,
|
|
306
|
+
FlightsControllerImageUploadUrlsV2V2Responses,
|
|
307
|
+
FlightsControllerRequestReviewV2V2Data,
|
|
308
|
+
FlightsControllerRequestReviewV2V2Errors,
|
|
309
|
+
FlightsControllerRequestReviewV2V2Responses,
|
|
310
|
+
FlightsControllerSubmitProvenanceV2V2Data,
|
|
311
|
+
FlightsControllerSubmitProvenanceV2V2Errors,
|
|
312
|
+
FlightsControllerSubmitProvenanceV2V2Responses,
|
|
225
313
|
FlightsControllerValidateFlight0V1Data,
|
|
226
314
|
FlightsControllerValidateFlight0V1Errors,
|
|
227
315
|
FlightsControllerValidateFlight0V1Responses,
|
|
@@ -268,30 +356,48 @@ import type {
|
|
|
268
356
|
ListProposalsData,
|
|
269
357
|
ListProposalsErrors,
|
|
270
358
|
ListProposalsResponses,
|
|
359
|
+
MissionsControllerCancelMissionV2V2Data,
|
|
360
|
+
MissionsControllerCancelMissionV2V2Errors,
|
|
361
|
+
MissionsControllerCancelMissionV2V2Responses,
|
|
271
362
|
MissionsControllerCreateMissions0V1Data,
|
|
272
363
|
MissionsControllerCreateMissions0V1Errors,
|
|
273
364
|
MissionsControllerCreateMissions0V1Responses,
|
|
274
365
|
MissionsControllerCreateMissions1Data,
|
|
275
366
|
MissionsControllerCreateMissions1Errors,
|
|
276
367
|
MissionsControllerCreateMissions1Responses,
|
|
368
|
+
MissionsControllerCreateMissionsV2V2Data,
|
|
369
|
+
MissionsControllerCreateMissionsV2V2Errors,
|
|
370
|
+
MissionsControllerCreateMissionsV2V2Responses,
|
|
277
371
|
MissionsControllerGetMission0V1Data,
|
|
278
372
|
MissionsControllerGetMission0V1Errors,
|
|
279
373
|
MissionsControllerGetMission0V1Responses,
|
|
280
374
|
MissionsControllerGetMission1Data,
|
|
281
375
|
MissionsControllerGetMission1Errors,
|
|
282
376
|
MissionsControllerGetMission1Responses,
|
|
377
|
+
MissionsControllerGetMissionV2V2Data,
|
|
378
|
+
MissionsControllerGetMissionV2V2Errors,
|
|
379
|
+
MissionsControllerGetMissionV2V2Responses,
|
|
283
380
|
MissionsControllerGetMissions0V1Data,
|
|
284
381
|
MissionsControllerGetMissions0V1Errors,
|
|
285
382
|
MissionsControllerGetMissions0V1Responses,
|
|
286
383
|
MissionsControllerGetMissions1Data,
|
|
287
384
|
MissionsControllerGetMissions1Errors,
|
|
288
385
|
MissionsControllerGetMissions1Responses,
|
|
386
|
+
MissionsControllerGetMissionsV2V2Data,
|
|
387
|
+
MissionsControllerGetMissionsV2V2Errors,
|
|
388
|
+
MissionsControllerGetMissionsV2V2Responses,
|
|
289
389
|
MissionsControllerRepriceMissions0V1Data,
|
|
290
390
|
MissionsControllerRepriceMissions0V1Errors,
|
|
291
391
|
MissionsControllerRepriceMissions0V1Responses,
|
|
292
392
|
MissionsControllerRepriceMissions1Data,
|
|
293
393
|
MissionsControllerRepriceMissions1Errors,
|
|
294
394
|
MissionsControllerRepriceMissions1Responses,
|
|
395
|
+
MissionsControllerRetryMissionV2V2Data,
|
|
396
|
+
MissionsControllerRetryMissionV2V2Errors,
|
|
397
|
+
MissionsControllerRetryMissionV2V2Responses,
|
|
398
|
+
MissionsControllerUpdateMissionV2V2Data,
|
|
399
|
+
MissionsControllerUpdateMissionV2V2Errors,
|
|
400
|
+
MissionsControllerUpdateMissionV2V2Responses,
|
|
295
401
|
MissionsControllerUpdateMissions0V1Data,
|
|
296
402
|
MissionsControllerUpdateMissions0V1Errors,
|
|
297
403
|
MissionsControllerUpdateMissions0V1Responses,
|
|
@@ -325,10 +431,9 @@ import type {
|
|
|
325
431
|
ReviewProposalData,
|
|
326
432
|
ReviewProposalErrors,
|
|
327
433
|
ReviewProposalResponses,
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
SchemaControllerGetEventSchema1Responses,
|
|
434
|
+
RewardsControllerListRewardsV2V2Data,
|
|
435
|
+
RewardsControllerListRewardsV2V2Errors,
|
|
436
|
+
RewardsControllerListRewardsV2V2Responses,
|
|
332
437
|
SubmitProposalData,
|
|
333
438
|
SubmitProposalErrors,
|
|
334
439
|
SubmitProposalResponses,
|
|
@@ -392,18 +497,33 @@ import type {
|
|
|
392
497
|
ZonesControllerCreateZone1Data,
|
|
393
498
|
ZonesControllerCreateZone1Errors,
|
|
394
499
|
ZonesControllerCreateZone1Responses,
|
|
500
|
+
ZonesControllerCreateZonesV2V2Data,
|
|
501
|
+
ZonesControllerCreateZonesV2V2Errors,
|
|
502
|
+
ZonesControllerCreateZonesV2V2Responses,
|
|
395
503
|
ZonesControllerDeleteZone0V1Data,
|
|
396
504
|
ZonesControllerDeleteZone0V1Errors,
|
|
397
505
|
ZonesControllerDeleteZone0V1Responses,
|
|
398
506
|
ZonesControllerDeleteZone1Data,
|
|
399
507
|
ZonesControllerDeleteZone1Errors,
|
|
400
508
|
ZonesControllerDeleteZone1Responses,
|
|
509
|
+
ZonesControllerGetZone0V1Data,
|
|
510
|
+
ZonesControllerGetZone0V1Errors,
|
|
511
|
+
ZonesControllerGetZone0V1Responses,
|
|
512
|
+
ZonesControllerGetZone1Data,
|
|
513
|
+
ZonesControllerGetZone1Errors,
|
|
514
|
+
ZonesControllerGetZone1Responses,
|
|
515
|
+
ZonesControllerGetZoneV2V2Data,
|
|
516
|
+
ZonesControllerGetZoneV2V2Errors,
|
|
517
|
+
ZonesControllerGetZoneV2V2Responses,
|
|
401
518
|
ZonesControllerUpdateZone0V1Data,
|
|
402
519
|
ZonesControllerUpdateZone0V1Errors,
|
|
403
520
|
ZonesControllerUpdateZone0V1Responses,
|
|
404
521
|
ZonesControllerUpdateZone1Data,
|
|
405
522
|
ZonesControllerUpdateZone1Errors,
|
|
406
523
|
ZonesControllerUpdateZone1Responses,
|
|
524
|
+
ZonesControllerUpdateZoneV2V2Data,
|
|
525
|
+
ZonesControllerUpdateZoneV2V2Errors,
|
|
526
|
+
ZonesControllerUpdateZoneV2V2Responses,
|
|
407
527
|
} from "./types.gen.js";
|
|
408
528
|
|
|
409
529
|
export type Options<
|
|
@@ -423,7 +543,7 @@ export type Options<
|
|
|
423
543
|
meta?: Record<string, unknown>;
|
|
424
544
|
};
|
|
425
545
|
|
|
426
|
-
export const apiControllerGetHello0V1 = <ThrowOnError extends boolean =
|
|
546
|
+
export const apiControllerGetHello0V1 = <ThrowOnError extends boolean = true>(
|
|
427
547
|
options?: Options<ApiControllerGetHello0V1Data, ThrowOnError>,
|
|
428
548
|
) => {
|
|
429
549
|
return (options?.client ?? _heyApiClient).get<
|
|
@@ -439,7 +559,7 @@ export const apiControllerGetHello0V1 = <ThrowOnError extends boolean = false>(
|
|
|
439
559
|
/**
|
|
440
560
|
* @deprecated
|
|
441
561
|
*/
|
|
442
|
-
export const apiControllerGetHello1 = <ThrowOnError extends boolean =
|
|
562
|
+
export const apiControllerGetHello1 = <ThrowOnError extends boolean = true>(
|
|
443
563
|
options?: Options<ApiControllerGetHello1Data, ThrowOnError>,
|
|
444
564
|
) => {
|
|
445
565
|
return (options?.client ?? _heyApiClient).get<
|
|
@@ -452,7 +572,7 @@ export const apiControllerGetHello1 = <ThrowOnError extends boolean = false>(
|
|
|
452
572
|
});
|
|
453
573
|
};
|
|
454
574
|
|
|
455
|
-
export const apiControllerGetError0V1 = <ThrowOnError extends boolean =
|
|
575
|
+
export const apiControllerGetError0V1 = <ThrowOnError extends boolean = true>(
|
|
456
576
|
options?: Options<ApiControllerGetError0V1Data, ThrowOnError>,
|
|
457
577
|
) => {
|
|
458
578
|
return (options?.client ?? _heyApiClient).get<
|
|
@@ -468,7 +588,7 @@ export const apiControllerGetError0V1 = <ThrowOnError extends boolean = false>(
|
|
|
468
588
|
/**
|
|
469
589
|
* @deprecated
|
|
470
590
|
*/
|
|
471
|
-
export const apiControllerGetError1 = <ThrowOnError extends boolean =
|
|
591
|
+
export const apiControllerGetError1 = <ThrowOnError extends boolean = true>(
|
|
472
592
|
options?: Options<ApiControllerGetError1Data, ThrowOnError>,
|
|
473
593
|
) => {
|
|
474
594
|
return (options?.client ?? _heyApiClient).get<
|
|
@@ -482,7 +602,7 @@ export const apiControllerGetError1 = <ThrowOnError extends boolean = false>(
|
|
|
482
602
|
};
|
|
483
603
|
|
|
484
604
|
export const apiTokenControllerCreateToken0V1 = <
|
|
485
|
-
ThrowOnError extends boolean =
|
|
605
|
+
ThrowOnError extends boolean = true,
|
|
486
606
|
>(
|
|
487
607
|
options: Options<ApiTokenControllerCreateToken0V1Data, ThrowOnError>,
|
|
488
608
|
) => {
|
|
@@ -510,7 +630,7 @@ export const apiTokenControllerCreateToken0V1 = <
|
|
|
510
630
|
* @deprecated
|
|
511
631
|
*/
|
|
512
632
|
export const apiTokenControllerCreateToken1 = <
|
|
513
|
-
ThrowOnError extends boolean =
|
|
633
|
+
ThrowOnError extends boolean = true,
|
|
514
634
|
>(
|
|
515
635
|
options: Options<ApiTokenControllerCreateToken1Data, ThrowOnError>,
|
|
516
636
|
) => {
|
|
@@ -535,7 +655,7 @@ export const apiTokenControllerCreateToken1 = <
|
|
|
535
655
|
};
|
|
536
656
|
|
|
537
657
|
export const apiTokenControllerDeleteToken0V1 = <
|
|
538
|
-
ThrowOnError extends boolean =
|
|
658
|
+
ThrowOnError extends boolean = true,
|
|
539
659
|
>(
|
|
540
660
|
options: Options<ApiTokenControllerDeleteToken0V1Data, ThrowOnError>,
|
|
541
661
|
) => {
|
|
@@ -556,7 +676,7 @@ export const apiTokenControllerDeleteToken0V1 = <
|
|
|
556
676
|
};
|
|
557
677
|
|
|
558
678
|
export const apiTokenControllerGetToken0V1 = <
|
|
559
|
-
ThrowOnError extends boolean =
|
|
679
|
+
ThrowOnError extends boolean = true,
|
|
560
680
|
>(
|
|
561
681
|
options: Options<ApiTokenControllerGetToken0V1Data, ThrowOnError>,
|
|
562
682
|
) => {
|
|
@@ -577,7 +697,7 @@ export const apiTokenControllerGetToken0V1 = <
|
|
|
577
697
|
};
|
|
578
698
|
|
|
579
699
|
export const apiTokenControllerUpdateToken0V1 = <
|
|
580
|
-
ThrowOnError extends boolean =
|
|
700
|
+
ThrowOnError extends boolean = true,
|
|
581
701
|
>(
|
|
582
702
|
options: Options<ApiTokenControllerUpdateToken0V1Data, ThrowOnError>,
|
|
583
703
|
) => {
|
|
@@ -606,7 +726,7 @@ export const apiTokenControllerUpdateToken0V1 = <
|
|
|
606
726
|
* @deprecated
|
|
607
727
|
*/
|
|
608
728
|
export const apiTokenControllerDeleteToken1 = <
|
|
609
|
-
ThrowOnError extends boolean =
|
|
729
|
+
ThrowOnError extends boolean = true,
|
|
610
730
|
>(
|
|
611
731
|
options: Options<ApiTokenControllerDeleteToken1Data, ThrowOnError>,
|
|
612
732
|
) => {
|
|
@@ -630,7 +750,7 @@ export const apiTokenControllerDeleteToken1 = <
|
|
|
630
750
|
* @deprecated
|
|
631
751
|
*/
|
|
632
752
|
export const apiTokenControllerGetToken1 = <
|
|
633
|
-
ThrowOnError extends boolean =
|
|
753
|
+
ThrowOnError extends boolean = true,
|
|
634
754
|
>(
|
|
635
755
|
options: Options<ApiTokenControllerGetToken1Data, ThrowOnError>,
|
|
636
756
|
) => {
|
|
@@ -654,7 +774,7 @@ export const apiTokenControllerGetToken1 = <
|
|
|
654
774
|
* @deprecated
|
|
655
775
|
*/
|
|
656
776
|
export const apiTokenControllerUpdateToken1 = <
|
|
657
|
-
ThrowOnError extends boolean =
|
|
777
|
+
ThrowOnError extends boolean = true,
|
|
658
778
|
>(
|
|
659
779
|
options: Options<ApiTokenControllerUpdateToken1Data, ThrowOnError>,
|
|
660
780
|
) => {
|
|
@@ -679,8 +799,65 @@ export const apiTokenControllerUpdateToken1 = <
|
|
|
679
799
|
});
|
|
680
800
|
};
|
|
681
801
|
|
|
802
|
+
/**
|
|
803
|
+
* Publish historic entity state to internal.backfill.* topics
|
|
804
|
+
* Starts a background scan that pages through every Zone, Mission, and FlightReview row and republishes each as a backfill event mirroring its protocol.* payload shape. Returns 202 immediately - the scan can outlast the request; final counts are logged on completion. Restrict the scan with the request body; omit `entities` to backfill all three.
|
|
805
|
+
*/
|
|
806
|
+
export const backfillControllerTrigger0V1 = <
|
|
807
|
+
ThrowOnError extends boolean = true,
|
|
808
|
+
>(
|
|
809
|
+
options: Options<BackfillControllerTrigger0V1Data, ThrowOnError>,
|
|
810
|
+
) => {
|
|
811
|
+
return (options.client ?? _heyApiClient).post<
|
|
812
|
+
BackfillControllerTrigger0V1Responses,
|
|
813
|
+
BackfillControllerTrigger0V1Errors,
|
|
814
|
+
ThrowOnError
|
|
815
|
+
>({
|
|
816
|
+
security: [
|
|
817
|
+
{
|
|
818
|
+
name: "x-api-token",
|
|
819
|
+
type: "apiKey",
|
|
820
|
+
},
|
|
821
|
+
],
|
|
822
|
+
url: "/v1/backfill",
|
|
823
|
+
...options,
|
|
824
|
+
headers: {
|
|
825
|
+
"Content-Type": "application/json",
|
|
826
|
+
...options.headers,
|
|
827
|
+
},
|
|
828
|
+
});
|
|
829
|
+
};
|
|
830
|
+
|
|
831
|
+
/**
|
|
832
|
+
* Publish historic entity state to internal.backfill.* topics
|
|
833
|
+
* Starts a background scan that pages through every Zone, Mission, and FlightReview row and republishes each as a backfill event mirroring its protocol.* payload shape. Returns 202 immediately - the scan can outlast the request; final counts are logged on completion. Restrict the scan with the request body; omit `entities` to backfill all three.
|
|
834
|
+
* @deprecated
|
|
835
|
+
*/
|
|
836
|
+
export const backfillControllerTrigger1 = <ThrowOnError extends boolean = true>(
|
|
837
|
+
options: Options<BackfillControllerTrigger1Data, ThrowOnError>,
|
|
838
|
+
) => {
|
|
839
|
+
return (options.client ?? _heyApiClient).post<
|
|
840
|
+
BackfillControllerTrigger1Responses,
|
|
841
|
+
BackfillControllerTrigger1Errors,
|
|
842
|
+
ThrowOnError
|
|
843
|
+
>({
|
|
844
|
+
security: [
|
|
845
|
+
{
|
|
846
|
+
name: "x-api-token",
|
|
847
|
+
type: "apiKey",
|
|
848
|
+
},
|
|
849
|
+
],
|
|
850
|
+
url: "/backfill",
|
|
851
|
+
...options,
|
|
852
|
+
headers: {
|
|
853
|
+
"Content-Type": "application/json",
|
|
854
|
+
...options.headers,
|
|
855
|
+
},
|
|
856
|
+
});
|
|
857
|
+
};
|
|
858
|
+
|
|
682
859
|
export const campaignsControllerGetMany0V1 = <
|
|
683
|
-
ThrowOnError extends boolean =
|
|
860
|
+
ThrowOnError extends boolean = true,
|
|
684
861
|
>(
|
|
685
862
|
options?: Options<CampaignsControllerGetMany0V1Data, ThrowOnError>,
|
|
686
863
|
) => {
|
|
@@ -694,6 +871,10 @@ export const campaignsControllerGetMany0V1 = <
|
|
|
694
871
|
name: "x-api-token",
|
|
695
872
|
type: "apiKey",
|
|
696
873
|
},
|
|
874
|
+
{
|
|
875
|
+
name: "x-api-token",
|
|
876
|
+
type: "apiKey",
|
|
877
|
+
},
|
|
697
878
|
],
|
|
698
879
|
url: "/v1/campaigns",
|
|
699
880
|
...options,
|
|
@@ -701,7 +882,7 @@ export const campaignsControllerGetMany0V1 = <
|
|
|
701
882
|
};
|
|
702
883
|
|
|
703
884
|
export const campaignsControllerCreate0V1 = <
|
|
704
|
-
ThrowOnError extends boolean =
|
|
885
|
+
ThrowOnError extends boolean = true,
|
|
705
886
|
>(
|
|
706
887
|
options: Options<CampaignsControllerCreate0V1Data, ThrowOnError>,
|
|
707
888
|
) => {
|
|
@@ -729,7 +910,7 @@ export const campaignsControllerCreate0V1 = <
|
|
|
729
910
|
* @deprecated
|
|
730
911
|
*/
|
|
731
912
|
export const campaignsControllerGetMany1 = <
|
|
732
|
-
ThrowOnError extends boolean =
|
|
913
|
+
ThrowOnError extends boolean = true,
|
|
733
914
|
>(
|
|
734
915
|
options?: Options<CampaignsControllerGetMany1Data, ThrowOnError>,
|
|
735
916
|
) => {
|
|
@@ -743,6 +924,10 @@ export const campaignsControllerGetMany1 = <
|
|
|
743
924
|
name: "x-api-token",
|
|
744
925
|
type: "apiKey",
|
|
745
926
|
},
|
|
927
|
+
{
|
|
928
|
+
name: "x-api-token",
|
|
929
|
+
type: "apiKey",
|
|
930
|
+
},
|
|
746
931
|
],
|
|
747
932
|
url: "/campaigns",
|
|
748
933
|
...options,
|
|
@@ -752,9 +937,7 @@ export const campaignsControllerGetMany1 = <
|
|
|
752
937
|
/**
|
|
753
938
|
* @deprecated
|
|
754
939
|
*/
|
|
755
|
-
export const campaignsControllerCreate1 = <
|
|
756
|
-
ThrowOnError extends boolean = false,
|
|
757
|
-
>(
|
|
940
|
+
export const campaignsControllerCreate1 = <ThrowOnError extends boolean = true>(
|
|
758
941
|
options: Options<CampaignsControllerCreate1Data, ThrowOnError>,
|
|
759
942
|
) => {
|
|
760
943
|
return (options.client ?? _heyApiClient).post<
|
|
@@ -778,7 +961,7 @@ export const campaignsControllerCreate1 = <
|
|
|
778
961
|
};
|
|
779
962
|
|
|
780
963
|
export const campaignsControllerDelete0V1 = <
|
|
781
|
-
ThrowOnError extends boolean =
|
|
964
|
+
ThrowOnError extends boolean = true,
|
|
782
965
|
>(
|
|
783
966
|
options: Options<CampaignsControllerDelete0V1Data, ThrowOnError>,
|
|
784
967
|
) => {
|
|
@@ -798,7 +981,7 @@ export const campaignsControllerDelete0V1 = <
|
|
|
798
981
|
});
|
|
799
982
|
};
|
|
800
983
|
|
|
801
|
-
export const campaignsControllerGet0V1 = <ThrowOnError extends boolean =
|
|
984
|
+
export const campaignsControllerGet0V1 = <ThrowOnError extends boolean = true>(
|
|
802
985
|
options: Options<CampaignsControllerGet0V1Data, ThrowOnError>,
|
|
803
986
|
) => {
|
|
804
987
|
return (options.client ?? _heyApiClient).get<
|
|
@@ -811,6 +994,10 @@ export const campaignsControllerGet0V1 = <ThrowOnError extends boolean = false>(
|
|
|
811
994
|
name: "x-api-token",
|
|
812
995
|
type: "apiKey",
|
|
813
996
|
},
|
|
997
|
+
{
|
|
998
|
+
name: "x-api-token",
|
|
999
|
+
type: "apiKey",
|
|
1000
|
+
},
|
|
814
1001
|
],
|
|
815
1002
|
url: "/v1/campaigns/{id}",
|
|
816
1003
|
...options,
|
|
@@ -818,7 +1005,7 @@ export const campaignsControllerGet0V1 = <ThrowOnError extends boolean = false>(
|
|
|
818
1005
|
};
|
|
819
1006
|
|
|
820
1007
|
export const campaignsControllerUpdate0V1 = <
|
|
821
|
-
ThrowOnError extends boolean =
|
|
1008
|
+
ThrowOnError extends boolean = true,
|
|
822
1009
|
>(
|
|
823
1010
|
options: Options<CampaignsControllerUpdate0V1Data, ThrowOnError>,
|
|
824
1011
|
) => {
|
|
@@ -845,9 +1032,7 @@ export const campaignsControllerUpdate0V1 = <
|
|
|
845
1032
|
/**
|
|
846
1033
|
* @deprecated
|
|
847
1034
|
*/
|
|
848
|
-
export const campaignsControllerDelete1 = <
|
|
849
|
-
ThrowOnError extends boolean = false,
|
|
850
|
-
>(
|
|
1035
|
+
export const campaignsControllerDelete1 = <ThrowOnError extends boolean = true>(
|
|
851
1036
|
options: Options<CampaignsControllerDelete1Data, ThrowOnError>,
|
|
852
1037
|
) => {
|
|
853
1038
|
return (options.client ?? _heyApiClient).delete<
|
|
@@ -869,7 +1054,7 @@ export const campaignsControllerDelete1 = <
|
|
|
869
1054
|
/**
|
|
870
1055
|
* @deprecated
|
|
871
1056
|
*/
|
|
872
|
-
export const campaignsControllerGet1 = <ThrowOnError extends boolean =
|
|
1057
|
+
export const campaignsControllerGet1 = <ThrowOnError extends boolean = true>(
|
|
873
1058
|
options: Options<CampaignsControllerGet1Data, ThrowOnError>,
|
|
874
1059
|
) => {
|
|
875
1060
|
return (options.client ?? _heyApiClient).get<
|
|
@@ -882,6 +1067,10 @@ export const campaignsControllerGet1 = <ThrowOnError extends boolean = false>(
|
|
|
882
1067
|
name: "x-api-token",
|
|
883
1068
|
type: "apiKey",
|
|
884
1069
|
},
|
|
1070
|
+
{
|
|
1071
|
+
name: "x-api-token",
|
|
1072
|
+
type: "apiKey",
|
|
1073
|
+
},
|
|
885
1074
|
],
|
|
886
1075
|
url: "/campaigns/{id}",
|
|
887
1076
|
...options,
|
|
@@ -891,9 +1080,7 @@ export const campaignsControllerGet1 = <ThrowOnError extends boolean = false>(
|
|
|
891
1080
|
/**
|
|
892
1081
|
* @deprecated
|
|
893
1082
|
*/
|
|
894
|
-
export const campaignsControllerUpdate1 = <
|
|
895
|
-
ThrowOnError extends boolean = false,
|
|
896
|
-
>(
|
|
1083
|
+
export const campaignsControllerUpdate1 = <ThrowOnError extends boolean = true>(
|
|
897
1084
|
options: Options<CampaignsControllerUpdate1Data, ThrowOnError>,
|
|
898
1085
|
) => {
|
|
899
1086
|
return (options.client ?? _heyApiClient).put<
|
|
@@ -917,7 +1104,7 @@ export const campaignsControllerUpdate1 = <
|
|
|
917
1104
|
};
|
|
918
1105
|
|
|
919
1106
|
export const conditionsControllerGetSunAltitudeTimeLimits0V1 = <
|
|
920
|
-
ThrowOnError extends boolean =
|
|
1107
|
+
ThrowOnError extends boolean = true,
|
|
921
1108
|
>(
|
|
922
1109
|
options: Options<
|
|
923
1110
|
ConditionsControllerGetSunAltitudeTimeLimits0V1Data,
|
|
@@ -940,7 +1127,7 @@ export const conditionsControllerGetSunAltitudeTimeLimits0V1 = <
|
|
|
940
1127
|
* @deprecated
|
|
941
1128
|
*/
|
|
942
1129
|
export const conditionsControllerGetSunAltitudeTimeLimits1 = <
|
|
943
|
-
ThrowOnError extends boolean =
|
|
1130
|
+
ThrowOnError extends boolean = true,
|
|
944
1131
|
>(
|
|
945
1132
|
options: Options<
|
|
946
1133
|
ConditionsControllerGetSunAltitudeTimeLimits1Data,
|
|
@@ -964,7 +1151,7 @@ export const conditionsControllerGetSunAltitudeTimeLimits1 = <
|
|
|
964
1151
|
* Retrieve all activity and ERC20 contracts
|
|
965
1152
|
*/
|
|
966
1153
|
export const contractsControllerGetAllContracts0V1 = <
|
|
967
|
-
ThrowOnError extends boolean =
|
|
1154
|
+
ThrowOnError extends boolean = true,
|
|
968
1155
|
>(
|
|
969
1156
|
options?: Options<ContractsControllerGetAllContracts0V1Data, ThrowOnError>,
|
|
970
1157
|
) => {
|
|
@@ -991,7 +1178,7 @@ export const contractsControllerGetAllContracts0V1 = <
|
|
|
991
1178
|
* Create either an activity contract or an ERC20 contract
|
|
992
1179
|
*/
|
|
993
1180
|
export const contractsControllerCreateContract0V1 = <
|
|
994
|
-
ThrowOnError extends boolean =
|
|
1181
|
+
ThrowOnError extends boolean = true,
|
|
995
1182
|
>(
|
|
996
1183
|
options: Options<ContractsControllerCreateContract0V1Data, ThrowOnError>,
|
|
997
1184
|
) => {
|
|
@@ -1021,7 +1208,7 @@ export const contractsControllerCreateContract0V1 = <
|
|
|
1021
1208
|
* @deprecated
|
|
1022
1209
|
*/
|
|
1023
1210
|
export const contractsControllerGetAllContracts1 = <
|
|
1024
|
-
ThrowOnError extends boolean =
|
|
1211
|
+
ThrowOnError extends boolean = true,
|
|
1025
1212
|
>(
|
|
1026
1213
|
options?: Options<ContractsControllerGetAllContracts1Data, ThrowOnError>,
|
|
1027
1214
|
) => {
|
|
@@ -1048,7 +1235,7 @@ export const contractsControllerGetAllContracts1 = <
|
|
|
1048
1235
|
* @deprecated
|
|
1049
1236
|
*/
|
|
1050
1237
|
export const contractsControllerCreateContract1 = <
|
|
1051
|
-
ThrowOnError extends boolean =
|
|
1238
|
+
ThrowOnError extends boolean = true,
|
|
1052
1239
|
>(
|
|
1053
1240
|
options: Options<ContractsControllerCreateContract1Data, ThrowOnError>,
|
|
1054
1241
|
) => {
|
|
@@ -1077,7 +1264,7 @@ export const contractsControllerCreateContract1 = <
|
|
|
1077
1264
|
* Delete a contract by ID and type
|
|
1078
1265
|
*/
|
|
1079
1266
|
export const contractsControllerDeleteContract0V1 = <
|
|
1080
|
-
ThrowOnError extends boolean =
|
|
1267
|
+
ThrowOnError extends boolean = true,
|
|
1081
1268
|
>(
|
|
1082
1269
|
options: Options<ContractsControllerDeleteContract0V1Data, ThrowOnError>,
|
|
1083
1270
|
) => {
|
|
@@ -1102,7 +1289,7 @@ export const contractsControllerDeleteContract0V1 = <
|
|
|
1102
1289
|
* Retrieve a specific contract by ID and type
|
|
1103
1290
|
*/
|
|
1104
1291
|
export const contractsControllerGetContract0V1 = <
|
|
1105
|
-
ThrowOnError extends boolean =
|
|
1292
|
+
ThrowOnError extends boolean = true,
|
|
1106
1293
|
>(
|
|
1107
1294
|
options: Options<ContractsControllerGetContract0V1Data, ThrowOnError>,
|
|
1108
1295
|
) => {
|
|
@@ -1127,7 +1314,7 @@ export const contractsControllerGetContract0V1 = <
|
|
|
1127
1314
|
* Update an existing contract
|
|
1128
1315
|
*/
|
|
1129
1316
|
export const contractsControllerUpdateContract0V1 = <
|
|
1130
|
-
ThrowOnError extends boolean =
|
|
1317
|
+
ThrowOnError extends boolean = true,
|
|
1131
1318
|
>(
|
|
1132
1319
|
options: Options<ContractsControllerUpdateContract0V1Data, ThrowOnError>,
|
|
1133
1320
|
) => {
|
|
@@ -1157,7 +1344,7 @@ export const contractsControllerUpdateContract0V1 = <
|
|
|
1157
1344
|
* @deprecated
|
|
1158
1345
|
*/
|
|
1159
1346
|
export const contractsControllerDeleteContract1 = <
|
|
1160
|
-
ThrowOnError extends boolean =
|
|
1347
|
+
ThrowOnError extends boolean = true,
|
|
1161
1348
|
>(
|
|
1162
1349
|
options: Options<ContractsControllerDeleteContract1Data, ThrowOnError>,
|
|
1163
1350
|
) => {
|
|
@@ -1183,7 +1370,7 @@ export const contractsControllerDeleteContract1 = <
|
|
|
1183
1370
|
* @deprecated
|
|
1184
1371
|
*/
|
|
1185
1372
|
export const contractsControllerGetContract1 = <
|
|
1186
|
-
ThrowOnError extends boolean =
|
|
1373
|
+
ThrowOnError extends boolean = true,
|
|
1187
1374
|
>(
|
|
1188
1375
|
options: Options<ContractsControllerGetContract1Data, ThrowOnError>,
|
|
1189
1376
|
) => {
|
|
@@ -1209,7 +1396,7 @@ export const contractsControllerGetContract1 = <
|
|
|
1209
1396
|
* @deprecated
|
|
1210
1397
|
*/
|
|
1211
1398
|
export const contractsControllerUpdateContract1 = <
|
|
1212
|
-
ThrowOnError extends boolean =
|
|
1399
|
+
ThrowOnError extends boolean = true,
|
|
1213
1400
|
>(
|
|
1214
1401
|
options: Options<ContractsControllerUpdateContract1Data, ThrowOnError>,
|
|
1215
1402
|
) => {
|
|
@@ -1238,7 +1425,7 @@ export const contractsControllerUpdateContract1 = <
|
|
|
1238
1425
|
* Consumes messages from a DLQ topic, increments the dlq-redrive-count header, and republishes them to the corresponding main topic. Messages with dlq-redrive-count >= 2 are skipped and logged.
|
|
1239
1426
|
*/
|
|
1240
1427
|
export const dlqRedriverControllerRedriveDlq0V1 = <
|
|
1241
|
-
ThrowOnError extends boolean =
|
|
1428
|
+
ThrowOnError extends boolean = true,
|
|
1242
1429
|
>(
|
|
1243
1430
|
options: Options<DlqRedriverControllerRedriveDlq0V1Data, ThrowOnError>,
|
|
1244
1431
|
) => {
|
|
@@ -1268,7 +1455,7 @@ export const dlqRedriverControllerRedriveDlq0V1 = <
|
|
|
1268
1455
|
* @deprecated
|
|
1269
1456
|
*/
|
|
1270
1457
|
export const dlqRedriverControllerRedriveDlq1 = <
|
|
1271
|
-
ThrowOnError extends boolean =
|
|
1458
|
+
ThrowOnError extends boolean = true,
|
|
1272
1459
|
>(
|
|
1273
1460
|
options: Options<DlqRedriverControllerRedriveDlq1Data, ThrowOnError>,
|
|
1274
1461
|
) => {
|
|
@@ -1293,7 +1480,7 @@ export const dlqRedriverControllerRedriveDlq1 = <
|
|
|
1293
1480
|
};
|
|
1294
1481
|
|
|
1295
1482
|
export const flightsControllerGenerateStorageKey0V1 = <
|
|
1296
|
-
ThrowOnError extends boolean =
|
|
1483
|
+
ThrowOnError extends boolean = true,
|
|
1297
1484
|
>(
|
|
1298
1485
|
options: Options<FlightsControllerGenerateStorageKey0V1Data, ThrowOnError>,
|
|
1299
1486
|
) => {
|
|
@@ -1317,7 +1504,7 @@ export const flightsControllerGenerateStorageKey0V1 = <
|
|
|
1317
1504
|
* @deprecated
|
|
1318
1505
|
*/
|
|
1319
1506
|
export const flightsControllerGenerateStorageKey1 = <
|
|
1320
|
-
ThrowOnError extends boolean =
|
|
1507
|
+
ThrowOnError extends boolean = true,
|
|
1321
1508
|
>(
|
|
1322
1509
|
options: Options<FlightsControllerGenerateStorageKey1Data, ThrowOnError>,
|
|
1323
1510
|
) => {
|
|
@@ -1338,7 +1525,7 @@ export const flightsControllerGenerateStorageKey1 = <
|
|
|
1338
1525
|
};
|
|
1339
1526
|
|
|
1340
1527
|
export const flightsControllerGetFlight0V1 = <
|
|
1341
|
-
ThrowOnError extends boolean =
|
|
1528
|
+
ThrowOnError extends boolean = true,
|
|
1342
1529
|
>(
|
|
1343
1530
|
options: Options<FlightsControllerGetFlight0V1Data, ThrowOnError>,
|
|
1344
1531
|
) => {
|
|
@@ -1363,7 +1550,7 @@ export const flightsControllerGetFlight0V1 = <
|
|
|
1363
1550
|
* @deprecated
|
|
1364
1551
|
*/
|
|
1365
1552
|
export const flightsControllerGetFlight1 = <
|
|
1366
|
-
ThrowOnError extends boolean =
|
|
1553
|
+
ThrowOnError extends boolean = true,
|
|
1367
1554
|
>(
|
|
1368
1555
|
options: Options<FlightsControllerGetFlight1Data, ThrowOnError>,
|
|
1369
1556
|
) => {
|
|
@@ -1385,7 +1572,7 @@ export const flightsControllerGetFlight1 = <
|
|
|
1385
1572
|
};
|
|
1386
1573
|
|
|
1387
1574
|
export const flightsControllerCreatePresignedUrls0V1 = <
|
|
1388
|
-
ThrowOnError extends boolean =
|
|
1575
|
+
ThrowOnError extends boolean = true,
|
|
1389
1576
|
>(
|
|
1390
1577
|
options: Options<FlightsControllerCreatePresignedUrls0V1Data, ThrowOnError>,
|
|
1391
1578
|
) => {
|
|
@@ -1413,7 +1600,7 @@ export const flightsControllerCreatePresignedUrls0V1 = <
|
|
|
1413
1600
|
* @deprecated
|
|
1414
1601
|
*/
|
|
1415
1602
|
export const flightsControllerCreatePresignedUrls1 = <
|
|
1416
|
-
ThrowOnError extends boolean =
|
|
1603
|
+
ThrowOnError extends boolean = true,
|
|
1417
1604
|
>(
|
|
1418
1605
|
options: Options<FlightsControllerCreatePresignedUrls1Data, ThrowOnError>,
|
|
1419
1606
|
) => {
|
|
@@ -1438,7 +1625,7 @@ export const flightsControllerCreatePresignedUrls1 = <
|
|
|
1438
1625
|
};
|
|
1439
1626
|
|
|
1440
1627
|
export const flightsControllerValidateFlight0V1 = <
|
|
1441
|
-
ThrowOnError extends boolean =
|
|
1628
|
+
ThrowOnError extends boolean = true,
|
|
1442
1629
|
>(
|
|
1443
1630
|
options: Options<FlightsControllerValidateFlight0V1Data, ThrowOnError>,
|
|
1444
1631
|
) => {
|
|
@@ -1467,7 +1654,7 @@ export const flightsControllerValidateFlight0V1 = <
|
|
|
1467
1654
|
* @deprecated
|
|
1468
1655
|
*/
|
|
1469
1656
|
export const flightsControllerValidateFlight1 = <
|
|
1470
|
-
ThrowOnError extends boolean =
|
|
1657
|
+
ThrowOnError extends boolean = true,
|
|
1471
1658
|
>(
|
|
1472
1659
|
options: Options<FlightsControllerValidateFlight1Data, ThrowOnError>,
|
|
1473
1660
|
) => {
|
|
@@ -1497,7 +1684,7 @@ export const flightsControllerValidateFlight1 = <
|
|
|
1497
1684
|
* Returns all available flight plan templates. These define capture patterns (map, panorama) that can be used for drone missions.
|
|
1498
1685
|
*/
|
|
1499
1686
|
export const flightPlansControllerGetMany0V1 = <
|
|
1500
|
-
ThrowOnError extends boolean =
|
|
1687
|
+
ThrowOnError extends boolean = true,
|
|
1501
1688
|
>(
|
|
1502
1689
|
options?: Options<FlightPlansControllerGetMany0V1Data, ThrowOnError>,
|
|
1503
1690
|
) => {
|
|
@@ -1511,6 +1698,10 @@ export const flightPlansControllerGetMany0V1 = <
|
|
|
1511
1698
|
name: "x-api-token",
|
|
1512
1699
|
type: "apiKey",
|
|
1513
1700
|
},
|
|
1701
|
+
{
|
|
1702
|
+
name: "x-api-token",
|
|
1703
|
+
type: "apiKey",
|
|
1704
|
+
},
|
|
1514
1705
|
],
|
|
1515
1706
|
responseTransformer: flightPlansControllerGetMany0V1ResponseTransformer,
|
|
1516
1707
|
url: "/v1/flight-plans",
|
|
@@ -1523,7 +1714,7 @@ export const flightPlansControllerGetMany0V1 = <
|
|
|
1523
1714
|
* Creates a new flight plan template with sections and connection strategy.
|
|
1524
1715
|
*/
|
|
1525
1716
|
export const flightPlansControllerCreate0V1 = <
|
|
1526
|
-
ThrowOnError extends boolean =
|
|
1717
|
+
ThrowOnError extends boolean = true,
|
|
1527
1718
|
>(
|
|
1528
1719
|
options: Options<FlightPlansControllerCreate0V1Data, ThrowOnError>,
|
|
1529
1720
|
) => {
|
|
@@ -1554,7 +1745,7 @@ export const flightPlansControllerCreate0V1 = <
|
|
|
1554
1745
|
* @deprecated
|
|
1555
1746
|
*/
|
|
1556
1747
|
export const flightPlansControllerGetMany1 = <
|
|
1557
|
-
ThrowOnError extends boolean =
|
|
1748
|
+
ThrowOnError extends boolean = true,
|
|
1558
1749
|
>(
|
|
1559
1750
|
options?: Options<FlightPlansControllerGetMany1Data, ThrowOnError>,
|
|
1560
1751
|
) => {
|
|
@@ -1568,6 +1759,10 @@ export const flightPlansControllerGetMany1 = <
|
|
|
1568
1759
|
name: "x-api-token",
|
|
1569
1760
|
type: "apiKey",
|
|
1570
1761
|
},
|
|
1762
|
+
{
|
|
1763
|
+
name: "x-api-token",
|
|
1764
|
+
type: "apiKey",
|
|
1765
|
+
},
|
|
1571
1766
|
],
|
|
1572
1767
|
responseTransformer: flightPlansControllerGetMany1ResponseTransformer,
|
|
1573
1768
|
url: "/flight-plans",
|
|
@@ -1581,7 +1776,7 @@ export const flightPlansControllerGetMany1 = <
|
|
|
1581
1776
|
* @deprecated
|
|
1582
1777
|
*/
|
|
1583
1778
|
export const flightPlansControllerCreate1 = <
|
|
1584
|
-
ThrowOnError extends boolean =
|
|
1779
|
+
ThrowOnError extends boolean = true,
|
|
1585
1780
|
>(
|
|
1586
1781
|
options: Options<FlightPlansControllerCreate1Data, ThrowOnError>,
|
|
1587
1782
|
) => {
|
|
@@ -1611,7 +1806,7 @@ export const flightPlansControllerCreate1 = <
|
|
|
1611
1806
|
* Returns a single flight plan template by its ID.
|
|
1612
1807
|
*/
|
|
1613
1808
|
export const flightPlansControllerGet0V1 = <
|
|
1614
|
-
ThrowOnError extends boolean =
|
|
1809
|
+
ThrowOnError extends boolean = true,
|
|
1615
1810
|
>(
|
|
1616
1811
|
options: Options<FlightPlansControllerGet0V1Data, ThrowOnError>,
|
|
1617
1812
|
) => {
|
|
@@ -1625,6 +1820,10 @@ export const flightPlansControllerGet0V1 = <
|
|
|
1625
1820
|
name: "x-api-token",
|
|
1626
1821
|
type: "apiKey",
|
|
1627
1822
|
},
|
|
1823
|
+
{
|
|
1824
|
+
name: "x-api-token",
|
|
1825
|
+
type: "apiKey",
|
|
1826
|
+
},
|
|
1628
1827
|
],
|
|
1629
1828
|
responseTransformer: flightPlansControllerGet0V1ResponseTransformer,
|
|
1630
1829
|
url: "/v1/flight-plans/{id}",
|
|
@@ -1637,7 +1836,7 @@ export const flightPlansControllerGet0V1 = <
|
|
|
1637
1836
|
* Returns a single flight plan template by its ID.
|
|
1638
1837
|
* @deprecated
|
|
1639
1838
|
*/
|
|
1640
|
-
export const flightPlansControllerGet1 = <ThrowOnError extends boolean =
|
|
1839
|
+
export const flightPlansControllerGet1 = <ThrowOnError extends boolean = true>(
|
|
1641
1840
|
options: Options<FlightPlansControllerGet1Data, ThrowOnError>,
|
|
1642
1841
|
) => {
|
|
1643
1842
|
return (options.client ?? _heyApiClient).get<
|
|
@@ -1650,6 +1849,10 @@ export const flightPlansControllerGet1 = <ThrowOnError extends boolean = false>(
|
|
|
1650
1849
|
name: "x-api-token",
|
|
1651
1850
|
type: "apiKey",
|
|
1652
1851
|
},
|
|
1852
|
+
{
|
|
1853
|
+
name: "x-api-token",
|
|
1854
|
+
type: "apiKey",
|
|
1855
|
+
},
|
|
1653
1856
|
],
|
|
1654
1857
|
responseTransformer: flightPlansControllerGet1ResponseTransformer,
|
|
1655
1858
|
url: "/flight-plans/{id}",
|
|
@@ -1661,7 +1864,7 @@ export const flightPlansControllerGet1 = <ThrowOnError extends boolean = false>(
|
|
|
1661
1864
|
* Get a flight review by ID
|
|
1662
1865
|
*/
|
|
1663
1866
|
export const flightReviewsControllerGetFlightReview0V1 = <
|
|
1664
|
-
ThrowOnError extends boolean =
|
|
1867
|
+
ThrowOnError extends boolean = true,
|
|
1665
1868
|
>(
|
|
1666
1869
|
options: Options<FlightReviewsControllerGetFlightReview0V1Data, ThrowOnError>,
|
|
1667
1870
|
) => {
|
|
@@ -1688,7 +1891,7 @@ export const flightReviewsControllerGetFlightReview0V1 = <
|
|
|
1688
1891
|
* @deprecated
|
|
1689
1892
|
*/
|
|
1690
1893
|
export const flightReviewsControllerGetFlightReview1 = <
|
|
1691
|
-
ThrowOnError extends boolean =
|
|
1894
|
+
ThrowOnError extends boolean = true,
|
|
1692
1895
|
>(
|
|
1693
1896
|
options: Options<FlightReviewsControllerGetFlightReview1Data, ThrowOnError>,
|
|
1694
1897
|
) => {
|
|
@@ -1714,7 +1917,7 @@ export const flightReviewsControllerGetFlightReview1 = <
|
|
|
1714
1917
|
* Get flight reviews by updated_at time range
|
|
1715
1918
|
*/
|
|
1716
1919
|
export const flightReviewsControllerGetFlightReviews0V1 = <
|
|
1717
|
-
ThrowOnError extends boolean =
|
|
1920
|
+
ThrowOnError extends boolean = true,
|
|
1718
1921
|
>(
|
|
1719
1922
|
options: Options<
|
|
1720
1923
|
FlightReviewsControllerGetFlightReviews0V1Data,
|
|
@@ -1744,7 +1947,7 @@ export const flightReviewsControllerGetFlightReviews0V1 = <
|
|
|
1744
1947
|
* @deprecated
|
|
1745
1948
|
*/
|
|
1746
1949
|
export const flightReviewsControllerGetFlightReviews1 = <
|
|
1747
|
-
ThrowOnError extends boolean =
|
|
1950
|
+
ThrowOnError extends boolean = true,
|
|
1748
1951
|
>(
|
|
1749
1952
|
options: Options<FlightReviewsControllerGetFlightReviews1Data, ThrowOnError>,
|
|
1750
1953
|
) => {
|
|
@@ -1767,7 +1970,7 @@ export const flightReviewsControllerGetFlightReviews1 = <
|
|
|
1767
1970
|
};
|
|
1768
1971
|
|
|
1769
1972
|
export const keysControllerGetProvenanceCryptoKey0V1 = <
|
|
1770
|
-
ThrowOnError extends boolean =
|
|
1973
|
+
ThrowOnError extends boolean = true,
|
|
1771
1974
|
>(
|
|
1772
1975
|
options?: Options<KeysControllerGetProvenanceCryptoKey0V1Data, ThrowOnError>,
|
|
1773
1976
|
) => {
|
|
@@ -1785,7 +1988,7 @@ export const keysControllerGetProvenanceCryptoKey0V1 = <
|
|
|
1785
1988
|
* @deprecated
|
|
1786
1989
|
*/
|
|
1787
1990
|
export const keysControllerGetProvenanceCryptoKey1 = <
|
|
1788
|
-
ThrowOnError extends boolean =
|
|
1991
|
+
ThrowOnError extends boolean = true,
|
|
1789
1992
|
>(
|
|
1790
1993
|
options?: Options<KeysControllerGetProvenanceCryptoKey1Data, ThrowOnError>,
|
|
1791
1994
|
) => {
|
|
@@ -1803,7 +2006,7 @@ export const keysControllerGetProvenanceCryptoKey1 = <
|
|
|
1803
2006
|
* Get a mission by ID
|
|
1804
2007
|
*/
|
|
1805
2008
|
export const missionsControllerGetMission0V1 = <
|
|
1806
|
-
ThrowOnError extends boolean =
|
|
2009
|
+
ThrowOnError extends boolean = true,
|
|
1807
2010
|
>(
|
|
1808
2011
|
options: Options<MissionsControllerGetMission0V1Data, ThrowOnError>,
|
|
1809
2012
|
) => {
|
|
@@ -1817,6 +2020,10 @@ export const missionsControllerGetMission0V1 = <
|
|
|
1817
2020
|
name: "x-api-token",
|
|
1818
2021
|
type: "apiKey",
|
|
1819
2022
|
},
|
|
2023
|
+
{
|
|
2024
|
+
name: "x-api-token",
|
|
2025
|
+
type: "apiKey",
|
|
2026
|
+
},
|
|
1820
2027
|
],
|
|
1821
2028
|
responseTransformer: missionsControllerGetMission0V1ResponseTransformer,
|
|
1822
2029
|
url: "/v1/missions/{id}",
|
|
@@ -1829,7 +2036,7 @@ export const missionsControllerGetMission0V1 = <
|
|
|
1829
2036
|
* @deprecated
|
|
1830
2037
|
*/
|
|
1831
2038
|
export const missionsControllerGetMission1 = <
|
|
1832
|
-
ThrowOnError extends boolean =
|
|
2039
|
+
ThrowOnError extends boolean = true,
|
|
1833
2040
|
>(
|
|
1834
2041
|
options: Options<MissionsControllerGetMission1Data, ThrowOnError>,
|
|
1835
2042
|
) => {
|
|
@@ -1843,6 +2050,10 @@ export const missionsControllerGetMission1 = <
|
|
|
1843
2050
|
name: "x-api-token",
|
|
1844
2051
|
type: "apiKey",
|
|
1845
2052
|
},
|
|
2053
|
+
{
|
|
2054
|
+
name: "x-api-token",
|
|
2055
|
+
type: "apiKey",
|
|
2056
|
+
},
|
|
1846
2057
|
],
|
|
1847
2058
|
responseTransformer: missionsControllerGetMission1ResponseTransformer,
|
|
1848
2059
|
url: "/missions/{id}",
|
|
@@ -1852,10 +2063,10 @@ export const missionsControllerGetMission1 = <
|
|
|
1852
2063
|
|
|
1853
2064
|
/**
|
|
1854
2065
|
* Get missions
|
|
1855
|
-
* Returns up to 500 missions per page, sorted by id ascending. All filters are optional. Use `page` (0-indexed, default 0) to paginate. `hasNextPage` is true when additional pages are available. `zone_id` may be repeated to filter by multiple zones.
|
|
2066
|
+
* Returns up to 500 missions per page, sorted by id ascending. All filters are optional. Use `page` (0-indexed, default 0) to paginate. `hasNextPage` is true when additional pages are available. `zone_id` may be repeated to filter by multiple zones. `campaignIds` (campaign UUIDs) and `campaignNames` may each be repeated; a mission matches if it belongs to any of the campaigns named across both filters.
|
|
1856
2067
|
*/
|
|
1857
2068
|
export const missionsControllerGetMissions0V1 = <
|
|
1858
|
-
ThrowOnError extends boolean =
|
|
2069
|
+
ThrowOnError extends boolean = true,
|
|
1859
2070
|
>(
|
|
1860
2071
|
options?: Options<MissionsControllerGetMissions0V1Data, ThrowOnError>,
|
|
1861
2072
|
) => {
|
|
@@ -1869,6 +2080,10 @@ export const missionsControllerGetMissions0V1 = <
|
|
|
1869
2080
|
name: "x-api-token",
|
|
1870
2081
|
type: "apiKey",
|
|
1871
2082
|
},
|
|
2083
|
+
{
|
|
2084
|
+
name: "x-api-token",
|
|
2085
|
+
type: "apiKey",
|
|
2086
|
+
},
|
|
1872
2087
|
],
|
|
1873
2088
|
responseTransformer: missionsControllerGetMissions0V1ResponseTransformer,
|
|
1874
2089
|
url: "/v1/missions",
|
|
@@ -1881,7 +2096,7 @@ export const missionsControllerGetMissions0V1 = <
|
|
|
1881
2096
|
* Create missions for specified zones and mission types.
|
|
1882
2097
|
*/
|
|
1883
2098
|
export const missionsControllerCreateMissions0V1 = <
|
|
1884
|
-
ThrowOnError extends boolean =
|
|
2099
|
+
ThrowOnError extends boolean = true,
|
|
1885
2100
|
>(
|
|
1886
2101
|
options: Options<MissionsControllerCreateMissions0V1Data, ThrowOnError>,
|
|
1887
2102
|
) => {
|
|
@@ -1911,7 +2126,7 @@ export const missionsControllerCreateMissions0V1 = <
|
|
|
1911
2126
|
* Update missions' rewards or cancel them altogether
|
|
1912
2127
|
*/
|
|
1913
2128
|
export const missionsControllerUpdateMissions0V1 = <
|
|
1914
|
-
ThrowOnError extends boolean =
|
|
2129
|
+
ThrowOnError extends boolean = true,
|
|
1915
2130
|
>(
|
|
1916
2131
|
options: Options<MissionsControllerUpdateMissions0V1Data, ThrowOnError>,
|
|
1917
2132
|
) => {
|
|
@@ -1937,11 +2152,11 @@ export const missionsControllerUpdateMissions0V1 = <
|
|
|
1937
2152
|
|
|
1938
2153
|
/**
|
|
1939
2154
|
* Get missions
|
|
1940
|
-
* Returns up to 500 missions per page, sorted by id ascending. All filters are optional. Use `page` (0-indexed, default 0) to paginate. `hasNextPage` is true when additional pages are available. `zone_id` may be repeated to filter by multiple zones.
|
|
2155
|
+
* Returns up to 500 missions per page, sorted by id ascending. All filters are optional. Use `page` (0-indexed, default 0) to paginate. `hasNextPage` is true when additional pages are available. `zone_id` may be repeated to filter by multiple zones. `campaignIds` (campaign UUIDs) and `campaignNames` may each be repeated; a mission matches if it belongs to any of the campaigns named across both filters.
|
|
1941
2156
|
* @deprecated
|
|
1942
2157
|
*/
|
|
1943
2158
|
export const missionsControllerGetMissions1 = <
|
|
1944
|
-
ThrowOnError extends boolean =
|
|
2159
|
+
ThrowOnError extends boolean = true,
|
|
1945
2160
|
>(
|
|
1946
2161
|
options?: Options<MissionsControllerGetMissions1Data, ThrowOnError>,
|
|
1947
2162
|
) => {
|
|
@@ -1955,6 +2170,10 @@ export const missionsControllerGetMissions1 = <
|
|
|
1955
2170
|
name: "x-api-token",
|
|
1956
2171
|
type: "apiKey",
|
|
1957
2172
|
},
|
|
2173
|
+
{
|
|
2174
|
+
name: "x-api-token",
|
|
2175
|
+
type: "apiKey",
|
|
2176
|
+
},
|
|
1958
2177
|
],
|
|
1959
2178
|
responseTransformer: missionsControllerGetMissions1ResponseTransformer,
|
|
1960
2179
|
url: "/missions",
|
|
@@ -1968,7 +2187,7 @@ export const missionsControllerGetMissions1 = <
|
|
|
1968
2187
|
* @deprecated
|
|
1969
2188
|
*/
|
|
1970
2189
|
export const missionsControllerCreateMissions1 = <
|
|
1971
|
-
ThrowOnError extends boolean =
|
|
2190
|
+
ThrowOnError extends boolean = true,
|
|
1972
2191
|
>(
|
|
1973
2192
|
options: Options<MissionsControllerCreateMissions1Data, ThrowOnError>,
|
|
1974
2193
|
) => {
|
|
@@ -1999,7 +2218,7 @@ export const missionsControllerCreateMissions1 = <
|
|
|
1999
2218
|
* @deprecated
|
|
2000
2219
|
*/
|
|
2001
2220
|
export const missionsControllerUpdateMissions1 = <
|
|
2002
|
-
ThrowOnError extends boolean =
|
|
2221
|
+
ThrowOnError extends boolean = true,
|
|
2003
2222
|
>(
|
|
2004
2223
|
options: Options<MissionsControllerUpdateMissions1Data, ThrowOnError>,
|
|
2005
2224
|
) => {
|
|
@@ -2028,7 +2247,7 @@ export const missionsControllerUpdateMissions1 = <
|
|
|
2028
2247
|
* Apply a scale factor to all open missions' vault amounts
|
|
2029
2248
|
*/
|
|
2030
2249
|
export const missionsControllerRepriceMissions0V1 = <
|
|
2031
|
-
ThrowOnError extends boolean =
|
|
2250
|
+
ThrowOnError extends boolean = true,
|
|
2032
2251
|
>(
|
|
2033
2252
|
options: Options<MissionsControllerRepriceMissions0V1Data, ThrowOnError>,
|
|
2034
2253
|
) => {
|
|
@@ -2058,7 +2277,7 @@ export const missionsControllerRepriceMissions0V1 = <
|
|
|
2058
2277
|
* @deprecated
|
|
2059
2278
|
*/
|
|
2060
2279
|
export const missionsControllerRepriceMissions1 = <
|
|
2061
|
-
ThrowOnError extends boolean =
|
|
2280
|
+
ThrowOnError extends boolean = true,
|
|
2062
2281
|
>(
|
|
2063
2282
|
options: Options<MissionsControllerRepriceMissions1Data, ThrowOnError>,
|
|
2064
2283
|
) => {
|
|
@@ -2086,7 +2305,7 @@ export const missionsControllerRepriceMissions1 = <
|
|
|
2086
2305
|
* List proposals (proxied to proposal-service)
|
|
2087
2306
|
* Returns up to 50 proposals per page, sorted by created_at descending. All filters are optional. Use `page` (0-indexed, default 0) to paginate.
|
|
2088
2307
|
*/
|
|
2089
|
-
export const listProposals = <ThrowOnError extends boolean =
|
|
2308
|
+
export const listProposals = <ThrowOnError extends boolean = true>(
|
|
2090
2309
|
options?: Options<ListProposalsData, ThrowOnError>,
|
|
2091
2310
|
) => {
|
|
2092
2311
|
return (options?.client ?? _heyApiClient).get<
|
|
@@ -2094,6 +2313,12 @@ export const listProposals = <ThrowOnError extends boolean = false>(
|
|
|
2094
2313
|
ListProposalsErrors,
|
|
2095
2314
|
ThrowOnError
|
|
2096
2315
|
>({
|
|
2316
|
+
security: [
|
|
2317
|
+
{
|
|
2318
|
+
name: "x-api-token",
|
|
2319
|
+
type: "apiKey",
|
|
2320
|
+
},
|
|
2321
|
+
],
|
|
2097
2322
|
responseTransformer: listProposalsResponseTransformer,
|
|
2098
2323
|
url: "/v1/proposals",
|
|
2099
2324
|
...options,
|
|
@@ -2103,7 +2328,7 @@ export const listProposals = <ThrowOnError extends boolean = false>(
|
|
|
2103
2328
|
/**
|
|
2104
2329
|
* Submit a proposal (proxied to proposal-service)
|
|
2105
2330
|
*/
|
|
2106
|
-
export const submitProposal = <ThrowOnError extends boolean =
|
|
2331
|
+
export const submitProposal = <ThrowOnError extends boolean = true>(
|
|
2107
2332
|
options: Options<SubmitProposalData, ThrowOnError>,
|
|
2108
2333
|
) => {
|
|
2109
2334
|
return (options.client ?? _heyApiClient).post<
|
|
@@ -2130,7 +2355,7 @@ export const submitProposal = <ThrowOnError extends boolean = false>(
|
|
|
2130
2355
|
* Get a proposal by ID (proxied to proposal-service)
|
|
2131
2356
|
* Returns full proposal detail including all change records.
|
|
2132
2357
|
*/
|
|
2133
|
-
export const getProposal = <ThrowOnError extends boolean =
|
|
2358
|
+
export const getProposal = <ThrowOnError extends boolean = true>(
|
|
2134
2359
|
options: Options<GetProposalData, ThrowOnError>,
|
|
2135
2360
|
) => {
|
|
2136
2361
|
return (options.client ?? _heyApiClient).get<
|
|
@@ -2138,6 +2363,12 @@ export const getProposal = <ThrowOnError extends boolean = false>(
|
|
|
2138
2363
|
GetProposalErrors,
|
|
2139
2364
|
ThrowOnError
|
|
2140
2365
|
>({
|
|
2366
|
+
security: [
|
|
2367
|
+
{
|
|
2368
|
+
name: "x-api-token",
|
|
2369
|
+
type: "apiKey",
|
|
2370
|
+
},
|
|
2371
|
+
],
|
|
2141
2372
|
responseTransformer: getProposalResponseTransformer,
|
|
2142
2373
|
url: "/v1/proposals/{id}",
|
|
2143
2374
|
...options,
|
|
@@ -2147,7 +2378,7 @@ export const getProposal = <ThrowOnError extends boolean = false>(
|
|
|
2147
2378
|
/**
|
|
2148
2379
|
* Approve or reject a proposal (proxied to proposal-service)
|
|
2149
2380
|
*/
|
|
2150
|
-
export const reviewProposal = <ThrowOnError extends boolean =
|
|
2381
|
+
export const reviewProposal = <ThrowOnError extends boolean = true>(
|
|
2151
2382
|
options: Options<ReviewProposalData, ThrowOnError>,
|
|
2152
2383
|
) => {
|
|
2153
2384
|
return (options.client ?? _heyApiClient).post<
|
|
@@ -2171,7 +2402,7 @@ export const reviewProposal = <ThrowOnError extends boolean = false>(
|
|
|
2171
2402
|
};
|
|
2172
2403
|
|
|
2173
2404
|
export const protocolTriggersApiControllerTriggerPayout0V1 = <
|
|
2174
|
-
ThrowOnError extends boolean =
|
|
2405
|
+
ThrowOnError extends boolean = true,
|
|
2175
2406
|
>(
|
|
2176
2407
|
options: Options<
|
|
2177
2408
|
ProtocolTriggersApiControllerTriggerPayout0V1Data,
|
|
@@ -2202,7 +2433,7 @@ export const protocolTriggersApiControllerTriggerPayout0V1 = <
|
|
|
2202
2433
|
* @deprecated
|
|
2203
2434
|
*/
|
|
2204
2435
|
export const protocolTriggersApiControllerTriggerPayout1 = <
|
|
2205
|
-
ThrowOnError extends boolean =
|
|
2436
|
+
ThrowOnError extends boolean = true,
|
|
2206
2437
|
>(
|
|
2207
2438
|
options: Options<
|
|
2208
2439
|
ProtocolTriggersApiControllerTriggerPayout1Data,
|
|
@@ -2230,7 +2461,7 @@ export const protocolTriggersApiControllerTriggerPayout1 = <
|
|
|
2230
2461
|
};
|
|
2231
2462
|
|
|
2232
2463
|
export const protocolTriggersApiControllerTriggerMissionClose0V1 = <
|
|
2233
|
-
ThrowOnError extends boolean =
|
|
2464
|
+
ThrowOnError extends boolean = true,
|
|
2234
2465
|
>(
|
|
2235
2466
|
options: Options<
|
|
2236
2467
|
ProtocolTriggersApiControllerTriggerMissionClose0V1Data,
|
|
@@ -2261,7 +2492,7 @@ export const protocolTriggersApiControllerTriggerMissionClose0V1 = <
|
|
|
2261
2492
|
* @deprecated
|
|
2262
2493
|
*/
|
|
2263
2494
|
export const protocolTriggersApiControllerTriggerMissionClose1 = <
|
|
2264
|
-
ThrowOnError extends boolean =
|
|
2495
|
+
ThrowOnError extends boolean = true,
|
|
2265
2496
|
>(
|
|
2266
2497
|
options: Options<
|
|
2267
2498
|
ProtocolTriggersApiControllerTriggerMissionClose1Data,
|
|
@@ -2289,7 +2520,7 @@ export const protocolTriggersApiControllerTriggerMissionClose1 = <
|
|
|
2289
2520
|
};
|
|
2290
2521
|
|
|
2291
2522
|
export const quotesControllerCreateQuote0V1 = <
|
|
2292
|
-
ThrowOnError extends boolean =
|
|
2523
|
+
ThrowOnError extends boolean = true,
|
|
2293
2524
|
>(
|
|
2294
2525
|
options: Options<QuotesControllerCreateQuote0V1Data, ThrowOnError>,
|
|
2295
2526
|
) => {
|
|
@@ -2317,7 +2548,7 @@ export const quotesControllerCreateQuote0V1 = <
|
|
|
2317
2548
|
* @deprecated
|
|
2318
2549
|
*/
|
|
2319
2550
|
export const quotesControllerCreateQuote1 = <
|
|
2320
|
-
ThrowOnError extends boolean =
|
|
2551
|
+
ThrowOnError extends boolean = true,
|
|
2321
2552
|
>(
|
|
2322
2553
|
options: Options<QuotesControllerCreateQuote1Data, ThrowOnError>,
|
|
2323
2554
|
) => {
|
|
@@ -2342,7 +2573,7 @@ export const quotesControllerCreateQuote1 = <
|
|
|
2342
2573
|
};
|
|
2343
2574
|
|
|
2344
2575
|
export const quotesControllerGetQuote0V1 = <
|
|
2345
|
-
ThrowOnError extends boolean =
|
|
2576
|
+
ThrowOnError extends boolean = true,
|
|
2346
2577
|
>(
|
|
2347
2578
|
options: Options<QuotesControllerGetQuote0V1Data, ThrowOnError>,
|
|
2348
2579
|
) => {
|
|
@@ -2365,7 +2596,7 @@ export const quotesControllerGetQuote0V1 = <
|
|
|
2365
2596
|
/**
|
|
2366
2597
|
* @deprecated
|
|
2367
2598
|
*/
|
|
2368
|
-
export const quotesControllerGetQuote1 = <ThrowOnError extends boolean =
|
|
2599
|
+
export const quotesControllerGetQuote1 = <ThrowOnError extends boolean = true>(
|
|
2369
2600
|
options: Options<QuotesControllerGetQuote1Data, ThrowOnError>,
|
|
2370
2601
|
) => {
|
|
2371
2602
|
return (options.client ?? _heyApiClient).get<
|
|
@@ -2384,39 +2615,6 @@ export const quotesControllerGetQuote1 = <ThrowOnError extends boolean = false>(
|
|
|
2384
2615
|
});
|
|
2385
2616
|
};
|
|
2386
2617
|
|
|
2387
|
-
export const schemaControllerGetEventSchema0V1 = <
|
|
2388
|
-
ThrowOnError extends boolean = false,
|
|
2389
|
-
>(
|
|
2390
|
-
options?: Options<SchemaControllerGetEventSchema0V1Data, ThrowOnError>,
|
|
2391
|
-
) => {
|
|
2392
|
-
return (options?.client ?? _heyApiClient).get<
|
|
2393
|
-
SchemaControllerGetEventSchema0V1Responses,
|
|
2394
|
-
unknown,
|
|
2395
|
-
ThrowOnError
|
|
2396
|
-
>({
|
|
2397
|
-
url: "/v1/schema/event",
|
|
2398
|
-
...options,
|
|
2399
|
-
});
|
|
2400
|
-
};
|
|
2401
|
-
|
|
2402
|
-
/**
|
|
2403
|
-
* @deprecated
|
|
2404
|
-
*/
|
|
2405
|
-
export const schemaControllerGetEventSchema1 = <
|
|
2406
|
-
ThrowOnError extends boolean = false,
|
|
2407
|
-
>(
|
|
2408
|
-
options?: Options<SchemaControllerGetEventSchema1Data, ThrowOnError>,
|
|
2409
|
-
) => {
|
|
2410
|
-
return (options?.client ?? _heyApiClient).get<
|
|
2411
|
-
SchemaControllerGetEventSchema1Responses,
|
|
2412
|
-
unknown,
|
|
2413
|
-
ThrowOnError
|
|
2414
|
-
>({
|
|
2415
|
-
url: "/schema/event",
|
|
2416
|
-
...options,
|
|
2417
|
-
});
|
|
2418
|
-
};
|
|
2419
|
-
|
|
2420
2618
|
/**
|
|
2421
2619
|
* Create new vault requests
|
|
2422
2620
|
* Create vault requests and publish to the internal.vault.requested queue.
|
|
@@ -2424,7 +2622,7 @@ export const schemaControllerGetEventSchema1 = <
|
|
|
2424
2622
|
* Api is meant for internal use to add data on chain manually.
|
|
2425
2623
|
*/
|
|
2426
2624
|
export const vaultsControllerCreateVaults0V1 = <
|
|
2427
|
-
ThrowOnError extends boolean =
|
|
2625
|
+
ThrowOnError extends boolean = true,
|
|
2428
2626
|
>(
|
|
2429
2627
|
options: Options<VaultsControllerCreateVaults0V1Data, ThrowOnError>,
|
|
2430
2628
|
) => {
|
|
@@ -2460,7 +2658,7 @@ export const vaultsControllerCreateVaults0V1 = <
|
|
|
2460
2658
|
* @deprecated
|
|
2461
2659
|
*/
|
|
2462
2660
|
export const vaultsControllerCreateVaults1 = <
|
|
2463
|
-
ThrowOnError extends boolean =
|
|
2661
|
+
ThrowOnError extends boolean = true,
|
|
2464
2662
|
>(
|
|
2465
2663
|
options: Options<VaultsControllerCreateVaults1Data, ThrowOnError>,
|
|
2466
2664
|
) => {
|
|
@@ -2489,7 +2687,7 @@ export const vaultsControllerCreateVaults1 = <
|
|
|
2489
2687
|
};
|
|
2490
2688
|
|
|
2491
2689
|
export const webhooksControllerGetMany0V1 = <
|
|
2492
|
-
ThrowOnError extends boolean =
|
|
2690
|
+
ThrowOnError extends boolean = true,
|
|
2493
2691
|
>(
|
|
2494
2692
|
options: Options<WebhooksControllerGetMany0V1Data, ThrowOnError>,
|
|
2495
2693
|
) => {
|
|
@@ -2511,7 +2709,7 @@ export const webhooksControllerGetMany0V1 = <
|
|
|
2511
2709
|
};
|
|
2512
2710
|
|
|
2513
2711
|
export const webhooksControllerCreate0V1 = <
|
|
2514
|
-
ThrowOnError extends boolean =
|
|
2712
|
+
ThrowOnError extends boolean = true,
|
|
2515
2713
|
>(
|
|
2516
2714
|
options: Options<WebhooksControllerCreate0V1Data, ThrowOnError>,
|
|
2517
2715
|
) => {
|
|
@@ -2538,9 +2736,7 @@ export const webhooksControllerCreate0V1 = <
|
|
|
2538
2736
|
/**
|
|
2539
2737
|
* @deprecated
|
|
2540
2738
|
*/
|
|
2541
|
-
export const webhooksControllerGetMany1 = <
|
|
2542
|
-
ThrowOnError extends boolean = false,
|
|
2543
|
-
>(
|
|
2739
|
+
export const webhooksControllerGetMany1 = <ThrowOnError extends boolean = true>(
|
|
2544
2740
|
options: Options<WebhooksControllerGetMany1Data, ThrowOnError>,
|
|
2545
2741
|
) => {
|
|
2546
2742
|
return (options.client ?? _heyApiClient).get<
|
|
@@ -2563,7 +2759,7 @@ export const webhooksControllerGetMany1 = <
|
|
|
2563
2759
|
/**
|
|
2564
2760
|
* @deprecated
|
|
2565
2761
|
*/
|
|
2566
|
-
export const webhooksControllerCreate1 = <ThrowOnError extends boolean =
|
|
2762
|
+
export const webhooksControllerCreate1 = <ThrowOnError extends boolean = true>(
|
|
2567
2763
|
options: Options<WebhooksControllerCreate1Data, ThrowOnError>,
|
|
2568
2764
|
) => {
|
|
2569
2765
|
return (options.client ?? _heyApiClient).post<
|
|
@@ -2587,7 +2783,7 @@ export const webhooksControllerCreate1 = <ThrowOnError extends boolean = false>(
|
|
|
2587
2783
|
};
|
|
2588
2784
|
|
|
2589
2785
|
export const webhooksControllerDelete0V1 = <
|
|
2590
|
-
ThrowOnError extends boolean =
|
|
2786
|
+
ThrowOnError extends boolean = true,
|
|
2591
2787
|
>(
|
|
2592
2788
|
options: Options<WebhooksControllerDelete0V1Data, ThrowOnError>,
|
|
2593
2789
|
) => {
|
|
@@ -2607,7 +2803,7 @@ export const webhooksControllerDelete0V1 = <
|
|
|
2607
2803
|
});
|
|
2608
2804
|
};
|
|
2609
2805
|
|
|
2610
|
-
export const webhooksControllerGet0V1 = <ThrowOnError extends boolean =
|
|
2806
|
+
export const webhooksControllerGet0V1 = <ThrowOnError extends boolean = true>(
|
|
2611
2807
|
options: Options<WebhooksControllerGet0V1Data, ThrowOnError>,
|
|
2612
2808
|
) => {
|
|
2613
2809
|
return (options.client ?? _heyApiClient).get<
|
|
@@ -2628,7 +2824,7 @@ export const webhooksControllerGet0V1 = <ThrowOnError extends boolean = false>(
|
|
|
2628
2824
|
};
|
|
2629
2825
|
|
|
2630
2826
|
export const webhooksControllerUpdate0V1 = <
|
|
2631
|
-
ThrowOnError extends boolean =
|
|
2827
|
+
ThrowOnError extends boolean = true,
|
|
2632
2828
|
>(
|
|
2633
2829
|
options: Options<WebhooksControllerUpdate0V1Data, ThrowOnError>,
|
|
2634
2830
|
) => {
|
|
@@ -2656,7 +2852,7 @@ export const webhooksControllerUpdate0V1 = <
|
|
|
2656
2852
|
/**
|
|
2657
2853
|
* @deprecated
|
|
2658
2854
|
*/
|
|
2659
|
-
export const webhooksControllerDelete1 = <ThrowOnError extends boolean =
|
|
2855
|
+
export const webhooksControllerDelete1 = <ThrowOnError extends boolean = true>(
|
|
2660
2856
|
options: Options<WebhooksControllerDelete1Data, ThrowOnError>,
|
|
2661
2857
|
) => {
|
|
2662
2858
|
return (options.client ?? _heyApiClient).delete<
|
|
@@ -2678,7 +2874,7 @@ export const webhooksControllerDelete1 = <ThrowOnError extends boolean = false>(
|
|
|
2678
2874
|
/**
|
|
2679
2875
|
* @deprecated
|
|
2680
2876
|
*/
|
|
2681
|
-
export const webhooksControllerGet1 = <ThrowOnError extends boolean =
|
|
2877
|
+
export const webhooksControllerGet1 = <ThrowOnError extends boolean = true>(
|
|
2682
2878
|
options: Options<WebhooksControllerGet1Data, ThrowOnError>,
|
|
2683
2879
|
) => {
|
|
2684
2880
|
return (options.client ?? _heyApiClient).get<
|
|
@@ -2701,7 +2897,7 @@ export const webhooksControllerGet1 = <ThrowOnError extends boolean = false>(
|
|
|
2701
2897
|
/**
|
|
2702
2898
|
* @deprecated
|
|
2703
2899
|
*/
|
|
2704
|
-
export const webhooksControllerUpdate1 = <ThrowOnError extends boolean =
|
|
2900
|
+
export const webhooksControllerUpdate1 = <ThrowOnError extends boolean = true>(
|
|
2705
2901
|
options: Options<WebhooksControllerUpdate1Data, ThrowOnError>,
|
|
2706
2902
|
) => {
|
|
2707
2903
|
return (options.client ?? _heyApiClient).put<
|
|
@@ -2726,7 +2922,7 @@ export const webhooksControllerUpdate1 = <ThrowOnError extends boolean = false>(
|
|
|
2726
2922
|
};
|
|
2727
2923
|
|
|
2728
2924
|
export const webhooksControllerRegenerateSecret0V1 = <
|
|
2729
|
-
ThrowOnError extends boolean =
|
|
2925
|
+
ThrowOnError extends boolean = true,
|
|
2730
2926
|
>(
|
|
2731
2927
|
options: Options<WebhooksControllerRegenerateSecret0V1Data, ThrowOnError>,
|
|
2732
2928
|
) => {
|
|
@@ -2756,7 +2952,7 @@ export const webhooksControllerRegenerateSecret0V1 = <
|
|
|
2756
2952
|
* @deprecated
|
|
2757
2953
|
*/
|
|
2758
2954
|
export const webhooksControllerRegenerateSecret1 = <
|
|
2759
|
-
ThrowOnError extends boolean =
|
|
2955
|
+
ThrowOnError extends boolean = true,
|
|
2760
2956
|
>(
|
|
2761
2957
|
options: Options<WebhooksControllerRegenerateSecret1Data, ThrowOnError>,
|
|
2762
2958
|
) => {
|
|
@@ -2781,7 +2977,7 @@ export const webhooksControllerRegenerateSecret1 = <
|
|
|
2781
2977
|
});
|
|
2782
2978
|
};
|
|
2783
2979
|
|
|
2784
|
-
export const webhooksControllerTest0V1 = <ThrowOnError extends boolean =
|
|
2980
|
+
export const webhooksControllerTest0V1 = <ThrowOnError extends boolean = true>(
|
|
2785
2981
|
options: Options<WebhooksControllerTest0V1Data, ThrowOnError>,
|
|
2786
2982
|
) => {
|
|
2787
2983
|
return (options.client ?? _heyApiClient).post<
|
|
@@ -2803,7 +2999,7 @@ export const webhooksControllerTest0V1 = <ThrowOnError extends boolean = false>(
|
|
|
2803
2999
|
/**
|
|
2804
3000
|
* @deprecated
|
|
2805
3001
|
*/
|
|
2806
|
-
export const webhooksControllerTest1 = <ThrowOnError extends boolean =
|
|
3002
|
+
export const webhooksControllerTest1 = <ThrowOnError extends boolean = true>(
|
|
2807
3003
|
options: Options<WebhooksControllerTest1Data, ThrowOnError>,
|
|
2808
3004
|
) => {
|
|
2809
3005
|
return (options.client ?? _heyApiClient).post<
|
|
@@ -2823,7 +3019,7 @@ export const webhooksControllerTest1 = <ThrowOnError extends boolean = false>(
|
|
|
2823
3019
|
};
|
|
2824
3020
|
|
|
2825
3021
|
export const webhooksControllerGetStatus0V1 = <
|
|
2826
|
-
ThrowOnError extends boolean =
|
|
3022
|
+
ThrowOnError extends boolean = true,
|
|
2827
3023
|
>(
|
|
2828
3024
|
options: Options<WebhooksControllerGetStatus0V1Data, ThrowOnError>,
|
|
2829
3025
|
) => {
|
|
@@ -2847,7 +3043,7 @@ export const webhooksControllerGetStatus0V1 = <
|
|
|
2847
3043
|
* @deprecated
|
|
2848
3044
|
*/
|
|
2849
3045
|
export const webhooksControllerGetStatus1 = <
|
|
2850
|
-
ThrowOnError extends boolean =
|
|
3046
|
+
ThrowOnError extends boolean = true,
|
|
2851
3047
|
>(
|
|
2852
3048
|
options: Options<WebhooksControllerGetStatus1Data, ThrowOnError>,
|
|
2853
3049
|
) => {
|
|
@@ -2871,7 +3067,7 @@ export const webhooksControllerGetStatus1 = <
|
|
|
2871
3067
|
* Create a zone
|
|
2872
3068
|
*/
|
|
2873
3069
|
export const zonesControllerCreateZone0V1 = <
|
|
2874
|
-
ThrowOnError extends boolean =
|
|
3070
|
+
ThrowOnError extends boolean = true,
|
|
2875
3071
|
>(
|
|
2876
3072
|
options: Options<ZonesControllerCreateZone0V1Data, ThrowOnError>,
|
|
2877
3073
|
) => {
|
|
@@ -2900,9 +3096,7 @@ export const zonesControllerCreateZone0V1 = <
|
|
|
2900
3096
|
* Create a zone
|
|
2901
3097
|
* @deprecated
|
|
2902
3098
|
*/
|
|
2903
|
-
export const zonesControllerCreateZone1 = <
|
|
2904
|
-
ThrowOnError extends boolean = false,
|
|
2905
|
-
>(
|
|
3099
|
+
export const zonesControllerCreateZone1 = <ThrowOnError extends boolean = true>(
|
|
2906
3100
|
options: Options<ZonesControllerCreateZone1Data, ThrowOnError>,
|
|
2907
3101
|
) => {
|
|
2908
3102
|
return (options.client ?? _heyApiClient).post<
|
|
@@ -2930,7 +3124,7 @@ export const zonesControllerCreateZone1 = <
|
|
|
2930
3124
|
* Delete a zone
|
|
2931
3125
|
*/
|
|
2932
3126
|
export const zonesControllerDeleteZone0V1 = <
|
|
2933
|
-
ThrowOnError extends boolean =
|
|
3127
|
+
ThrowOnError extends boolean = true,
|
|
2934
3128
|
>(
|
|
2935
3129
|
options: Options<ZonesControllerDeleteZone0V1Data, ThrowOnError>,
|
|
2936
3130
|
) => {
|
|
@@ -2950,11 +3144,38 @@ export const zonesControllerDeleteZone0V1 = <
|
|
|
2950
3144
|
});
|
|
2951
3145
|
};
|
|
2952
3146
|
|
|
3147
|
+
/**
|
|
3148
|
+
* Get a zone by id
|
|
3149
|
+
*/
|
|
3150
|
+
export const zonesControllerGetZone0V1 = <ThrowOnError extends boolean = true>(
|
|
3151
|
+
options: Options<ZonesControllerGetZone0V1Data, ThrowOnError>,
|
|
3152
|
+
) => {
|
|
3153
|
+
return (options.client ?? _heyApiClient).get<
|
|
3154
|
+
ZonesControllerGetZone0V1Responses,
|
|
3155
|
+
ZonesControllerGetZone0V1Errors,
|
|
3156
|
+
ThrowOnError
|
|
3157
|
+
>({
|
|
3158
|
+
security: [
|
|
3159
|
+
{
|
|
3160
|
+
name: "x-api-token",
|
|
3161
|
+
type: "apiKey",
|
|
3162
|
+
},
|
|
3163
|
+
{
|
|
3164
|
+
name: "x-api-token",
|
|
3165
|
+
type: "apiKey",
|
|
3166
|
+
},
|
|
3167
|
+
],
|
|
3168
|
+
responseTransformer: zonesControllerGetZone0V1ResponseTransformer,
|
|
3169
|
+
url: "/v1/zones/{id}",
|
|
3170
|
+
...options,
|
|
3171
|
+
});
|
|
3172
|
+
};
|
|
3173
|
+
|
|
2953
3174
|
/**
|
|
2954
3175
|
* Update a zone
|
|
2955
3176
|
*/
|
|
2956
3177
|
export const zonesControllerUpdateZone0V1 = <
|
|
2957
|
-
ThrowOnError extends boolean =
|
|
3178
|
+
ThrowOnError extends boolean = true,
|
|
2958
3179
|
>(
|
|
2959
3180
|
options: Options<ZonesControllerUpdateZone0V1Data, ThrowOnError>,
|
|
2960
3181
|
) => {
|
|
@@ -2983,9 +3204,7 @@ export const zonesControllerUpdateZone0V1 = <
|
|
|
2983
3204
|
* Delete a zone
|
|
2984
3205
|
* @deprecated
|
|
2985
3206
|
*/
|
|
2986
|
-
export const zonesControllerDeleteZone1 = <
|
|
2987
|
-
ThrowOnError extends boolean = false,
|
|
2988
|
-
>(
|
|
3207
|
+
export const zonesControllerDeleteZone1 = <ThrowOnError extends boolean = true>(
|
|
2989
3208
|
options: Options<ZonesControllerDeleteZone1Data, ThrowOnError>,
|
|
2990
3209
|
) => {
|
|
2991
3210
|
return (options.client ?? _heyApiClient).delete<
|
|
@@ -3004,13 +3223,39 @@ export const zonesControllerDeleteZone1 = <
|
|
|
3004
3223
|
});
|
|
3005
3224
|
};
|
|
3006
3225
|
|
|
3226
|
+
/**
|
|
3227
|
+
* Get a zone by id
|
|
3228
|
+
* @deprecated
|
|
3229
|
+
*/
|
|
3230
|
+
export const zonesControllerGetZone1 = <ThrowOnError extends boolean = true>(
|
|
3231
|
+
options: Options<ZonesControllerGetZone1Data, ThrowOnError>,
|
|
3232
|
+
) => {
|
|
3233
|
+
return (options.client ?? _heyApiClient).get<
|
|
3234
|
+
ZonesControllerGetZone1Responses,
|
|
3235
|
+
ZonesControllerGetZone1Errors,
|
|
3236
|
+
ThrowOnError
|
|
3237
|
+
>({
|
|
3238
|
+
security: [
|
|
3239
|
+
{
|
|
3240
|
+
name: "x-api-token",
|
|
3241
|
+
type: "apiKey",
|
|
3242
|
+
},
|
|
3243
|
+
{
|
|
3244
|
+
name: "x-api-token",
|
|
3245
|
+
type: "apiKey",
|
|
3246
|
+
},
|
|
3247
|
+
],
|
|
3248
|
+
responseTransformer: zonesControllerGetZone1ResponseTransformer,
|
|
3249
|
+
url: "/zones/{id}",
|
|
3250
|
+
...options,
|
|
3251
|
+
});
|
|
3252
|
+
};
|
|
3253
|
+
|
|
3007
3254
|
/**
|
|
3008
3255
|
* Update a zone
|
|
3009
3256
|
* @deprecated
|
|
3010
3257
|
*/
|
|
3011
|
-
export const zonesControllerUpdateZone1 = <
|
|
3012
|
-
ThrowOnError extends boolean = false,
|
|
3013
|
-
>(
|
|
3258
|
+
export const zonesControllerUpdateZone1 = <ThrowOnError extends boolean = true>(
|
|
3014
3259
|
options: Options<ZonesControllerUpdateZone1Data, ThrowOnError>,
|
|
3015
3260
|
) => {
|
|
3016
3261
|
return (options.client ?? _heyApiClient).put<
|
|
@@ -3039,7 +3284,7 @@ export const zonesControllerUpdateZone1 = <
|
|
|
3039
3284
|
* For each mission ID, reads MissionData + MissionEscrow on-chain, loads off-chain JSON from the missions bucket, and upserts event-proc.vaults / missions / campaigns.
|
|
3040
3285
|
*/
|
|
3041
3286
|
export const eventProcessorMissionsSyncControllerResyncMissions0V1 = <
|
|
3042
|
-
ThrowOnError extends boolean =
|
|
3287
|
+
ThrowOnError extends boolean = true,
|
|
3043
3288
|
>(
|
|
3044
3289
|
options: Options<
|
|
3045
3290
|
EventProcessorMissionsSyncControllerResyncMissions0V1Data,
|
|
@@ -3072,7 +3317,7 @@ export const eventProcessorMissionsSyncControllerResyncMissions0V1 = <
|
|
|
3072
3317
|
* @deprecated
|
|
3073
3318
|
*/
|
|
3074
3319
|
export const eventProcessorMissionsSyncControllerResyncMissions1 = <
|
|
3075
|
-
ThrowOnError extends boolean =
|
|
3320
|
+
ThrowOnError extends boolean = true,
|
|
3076
3321
|
>(
|
|
3077
3322
|
options: Options<
|
|
3078
3323
|
EventProcessorMissionsSyncControllerResyncMissions1Data,
|
|
@@ -3104,7 +3349,7 @@ export const eventProcessorMissionsSyncControllerResyncMissions1 = <
|
|
|
3104
3349
|
* For each flight ID, reads FlightReviews on-chain, resolves validation log URI like the indexer, fetches optional S3 validation log, and upserts event-proc.flight_reviews.
|
|
3105
3350
|
*/
|
|
3106
3351
|
export const eventProcessorFlightReviewsSyncControllerResyncFlightReviews0V1 = <
|
|
3107
|
-
ThrowOnError extends boolean =
|
|
3352
|
+
ThrowOnError extends boolean = true,
|
|
3108
3353
|
>(
|
|
3109
3354
|
options: Options<
|
|
3110
3355
|
EventProcessorFlightReviewsSyncControllerResyncFlightReviews0V1Data,
|
|
@@ -3137,7 +3382,7 @@ export const eventProcessorFlightReviewsSyncControllerResyncFlightReviews0V1 = <
|
|
|
3137
3382
|
* @deprecated
|
|
3138
3383
|
*/
|
|
3139
3384
|
export const eventProcessorFlightReviewsSyncControllerResyncFlightReviews1 = <
|
|
3140
|
-
ThrowOnError extends boolean =
|
|
3385
|
+
ThrowOnError extends boolean = true,
|
|
3141
3386
|
>(
|
|
3142
3387
|
options: Options<
|
|
3143
3388
|
EventProcessorFlightReviewsSyncControllerResyncFlightReviews1Data,
|
|
@@ -3165,7 +3410,7 @@ export const eventProcessorFlightReviewsSyncControllerResyncFlightReviews1 = <
|
|
|
3165
3410
|
};
|
|
3166
3411
|
|
|
3167
3412
|
export const alchemyControllerHandleWebhook0V1 = <
|
|
3168
|
-
ThrowOnError extends boolean =
|
|
3413
|
+
ThrowOnError extends boolean = true,
|
|
3169
3414
|
>(
|
|
3170
3415
|
options: Options<AlchemyControllerHandleWebhook0V1Data, ThrowOnError>,
|
|
3171
3416
|
) => {
|
|
@@ -3187,7 +3432,7 @@ export const alchemyControllerHandleWebhook0V1 = <
|
|
|
3187
3432
|
* @deprecated
|
|
3188
3433
|
*/
|
|
3189
3434
|
export const alchemyControllerHandleWebhook1 = <
|
|
3190
|
-
ThrowOnError extends boolean =
|
|
3435
|
+
ThrowOnError extends boolean = true,
|
|
3191
3436
|
>(
|
|
3192
3437
|
options: Options<AlchemyControllerHandleWebhook1Data, ThrowOnError>,
|
|
3193
3438
|
) => {
|
|
@@ -3209,7 +3454,7 @@ export const alchemyControllerHandleWebhook1 = <
|
|
|
3209
3454
|
* Get all inbound webhook configs
|
|
3210
3455
|
*/
|
|
3211
3456
|
export const inboundWebhookConfigsControllerGetMany0V1 = <
|
|
3212
|
-
ThrowOnError extends boolean =
|
|
3457
|
+
ThrowOnError extends boolean = true,
|
|
3213
3458
|
>(
|
|
3214
3459
|
options?: Options<
|
|
3215
3460
|
InboundWebhookConfigsControllerGetMany0V1Data,
|
|
@@ -3241,7 +3486,7 @@ export const inboundWebhookConfigsControllerGetMany0V1 = <
|
|
|
3241
3486
|
* [Detailed Instructions](https://github.com/spexigeo/layer-drone/blob/main/apps/protocol-api/src/modules/api/webhooks/inbound/alchemy/README.md)
|
|
3242
3487
|
*/
|
|
3243
3488
|
export const inboundWebhookConfigsControllerCreate0V1 = <
|
|
3244
|
-
ThrowOnError extends boolean =
|
|
3489
|
+
ThrowOnError extends boolean = true,
|
|
3245
3490
|
>(
|
|
3246
3491
|
options: Options<InboundWebhookConfigsControllerCreate0V1Data, ThrowOnError>,
|
|
3247
3492
|
) => {
|
|
@@ -3272,7 +3517,7 @@ export const inboundWebhookConfigsControllerCreate0V1 = <
|
|
|
3272
3517
|
* @deprecated
|
|
3273
3518
|
*/
|
|
3274
3519
|
export const inboundWebhookConfigsControllerGetMany1 = <
|
|
3275
|
-
ThrowOnError extends boolean =
|
|
3520
|
+
ThrowOnError extends boolean = true,
|
|
3276
3521
|
>(
|
|
3277
3522
|
options?: Options<InboundWebhookConfigsControllerGetMany1Data, ThrowOnError>,
|
|
3278
3523
|
) => {
|
|
@@ -3302,7 +3547,7 @@ export const inboundWebhookConfigsControllerGetMany1 = <
|
|
|
3302
3547
|
* @deprecated
|
|
3303
3548
|
*/
|
|
3304
3549
|
export const inboundWebhookConfigsControllerCreate1 = <
|
|
3305
|
-
ThrowOnError extends boolean =
|
|
3550
|
+
ThrowOnError extends boolean = true,
|
|
3306
3551
|
>(
|
|
3307
3552
|
options: Options<InboundWebhookConfigsControllerCreate1Data, ThrowOnError>,
|
|
3308
3553
|
) => {
|
|
@@ -3332,7 +3577,7 @@ export const inboundWebhookConfigsControllerCreate1 = <
|
|
|
3332
3577
|
* Delete an inbound webhook config
|
|
3333
3578
|
*/
|
|
3334
3579
|
export const inboundWebhookConfigsControllerDelete0V1 = <
|
|
3335
|
-
ThrowOnError extends boolean =
|
|
3580
|
+
ThrowOnError extends boolean = true,
|
|
3336
3581
|
>(
|
|
3337
3582
|
options: Options<InboundWebhookConfigsControllerDelete0V1Data, ThrowOnError>,
|
|
3338
3583
|
) => {
|
|
@@ -3356,7 +3601,7 @@ export const inboundWebhookConfigsControllerDelete0V1 = <
|
|
|
3356
3601
|
* Get an inbound webhook config by id
|
|
3357
3602
|
*/
|
|
3358
3603
|
export const inboundWebhookConfigsControllerGet0V1 = <
|
|
3359
|
-
ThrowOnError extends boolean =
|
|
3604
|
+
ThrowOnError extends boolean = true,
|
|
3360
3605
|
>(
|
|
3361
3606
|
options: Options<InboundWebhookConfigsControllerGet0V1Data, ThrowOnError>,
|
|
3362
3607
|
) => {
|
|
@@ -3382,7 +3627,7 @@ export const inboundWebhookConfigsControllerGet0V1 = <
|
|
|
3382
3627
|
* Update an inbound webhook config
|
|
3383
3628
|
*/
|
|
3384
3629
|
export const inboundWebhookConfigsControllerUpdate0V1 = <
|
|
3385
|
-
ThrowOnError extends boolean =
|
|
3630
|
+
ThrowOnError extends boolean = true,
|
|
3386
3631
|
>(
|
|
3387
3632
|
options: Options<InboundWebhookConfigsControllerUpdate0V1Data, ThrowOnError>,
|
|
3388
3633
|
) => {
|
|
@@ -3413,7 +3658,7 @@ export const inboundWebhookConfigsControllerUpdate0V1 = <
|
|
|
3413
3658
|
* @deprecated
|
|
3414
3659
|
*/
|
|
3415
3660
|
export const inboundWebhookConfigsControllerDelete1 = <
|
|
3416
|
-
ThrowOnError extends boolean =
|
|
3661
|
+
ThrowOnError extends boolean = true,
|
|
3417
3662
|
>(
|
|
3418
3663
|
options: Options<InboundWebhookConfigsControllerDelete1Data, ThrowOnError>,
|
|
3419
3664
|
) => {
|
|
@@ -3438,7 +3683,7 @@ export const inboundWebhookConfigsControllerDelete1 = <
|
|
|
3438
3683
|
* @deprecated
|
|
3439
3684
|
*/
|
|
3440
3685
|
export const inboundWebhookConfigsControllerGet1 = <
|
|
3441
|
-
ThrowOnError extends boolean =
|
|
3686
|
+
ThrowOnError extends boolean = true,
|
|
3442
3687
|
>(
|
|
3443
3688
|
options: Options<InboundWebhookConfigsControllerGet1Data, ThrowOnError>,
|
|
3444
3689
|
) => {
|
|
@@ -3464,7 +3709,7 @@ export const inboundWebhookConfigsControllerGet1 = <
|
|
|
3464
3709
|
* @deprecated
|
|
3465
3710
|
*/
|
|
3466
3711
|
export const inboundWebhookConfigsControllerUpdate1 = <
|
|
3467
|
-
ThrowOnError extends boolean =
|
|
3712
|
+
ThrowOnError extends boolean = true,
|
|
3468
3713
|
>(
|
|
3469
3714
|
options: Options<InboundWebhookConfigsControllerUpdate1Data, ThrowOnError>,
|
|
3470
3715
|
) => {
|
|
@@ -3489,3 +3734,796 @@ export const inboundWebhookConfigsControllerUpdate1 = <
|
|
|
3489
3734
|
},
|
|
3490
3735
|
});
|
|
3491
3736
|
};
|
|
3737
|
+
|
|
3738
|
+
/**
|
|
3739
|
+
* List campaigns (mission-fulfillment)
|
|
3740
|
+
* Returns campaigns from mission-fulfillment.
|
|
3741
|
+
*/
|
|
3742
|
+
export const campaignsControllerGetCampaignsV2V2 = <
|
|
3743
|
+
ThrowOnError extends boolean = true,
|
|
3744
|
+
>(
|
|
3745
|
+
options?: Options<CampaignsControllerGetCampaignsV2V2Data, ThrowOnError>,
|
|
3746
|
+
) => {
|
|
3747
|
+
return (options?.client ?? _heyApiClient).get<
|
|
3748
|
+
CampaignsControllerGetCampaignsV2V2Responses,
|
|
3749
|
+
CampaignsControllerGetCampaignsV2V2Errors,
|
|
3750
|
+
ThrowOnError
|
|
3751
|
+
>({
|
|
3752
|
+
security: [
|
|
3753
|
+
{
|
|
3754
|
+
name: "x-api-token",
|
|
3755
|
+
type: "apiKey",
|
|
3756
|
+
},
|
|
3757
|
+
],
|
|
3758
|
+
responseTransformer: campaignsControllerGetCampaignsV2V2ResponseTransformer,
|
|
3759
|
+
url: "/v2/campaigns",
|
|
3760
|
+
...options,
|
|
3761
|
+
});
|
|
3762
|
+
};
|
|
3763
|
+
|
|
3764
|
+
/**
|
|
3765
|
+
* Create a campaign (mission-fulfillment)
|
|
3766
|
+
* Creates a campaign in mission-fulfillment.
|
|
3767
|
+
*/
|
|
3768
|
+
export const campaignsControllerCreateCampaignV2V2 = <
|
|
3769
|
+
ThrowOnError extends boolean = true,
|
|
3770
|
+
>(
|
|
3771
|
+
options: Options<CampaignsControllerCreateCampaignV2V2Data, ThrowOnError>,
|
|
3772
|
+
) => {
|
|
3773
|
+
return (options.client ?? _heyApiClient).post<
|
|
3774
|
+
CampaignsControllerCreateCampaignV2V2Responses,
|
|
3775
|
+
CampaignsControllerCreateCampaignV2V2Errors,
|
|
3776
|
+
ThrowOnError
|
|
3777
|
+
>({
|
|
3778
|
+
security: [
|
|
3779
|
+
{
|
|
3780
|
+
name: "x-api-token",
|
|
3781
|
+
type: "apiKey",
|
|
3782
|
+
},
|
|
3783
|
+
],
|
|
3784
|
+
responseTransformer:
|
|
3785
|
+
campaignsControllerCreateCampaignV2V2ResponseTransformer,
|
|
3786
|
+
url: "/v2/campaigns",
|
|
3787
|
+
...options,
|
|
3788
|
+
headers: {
|
|
3789
|
+
"Content-Type": "application/json",
|
|
3790
|
+
...options.headers,
|
|
3791
|
+
},
|
|
3792
|
+
});
|
|
3793
|
+
};
|
|
3794
|
+
|
|
3795
|
+
/**
|
|
3796
|
+
* Get a campaign by id (mission-fulfillment)
|
|
3797
|
+
* Returns a campaign from mission-fulfillment.
|
|
3798
|
+
*/
|
|
3799
|
+
export const campaignsControllerGetCampaignV2V2 = <
|
|
3800
|
+
ThrowOnError extends boolean = true,
|
|
3801
|
+
>(
|
|
3802
|
+
options: Options<CampaignsControllerGetCampaignV2V2Data, ThrowOnError>,
|
|
3803
|
+
) => {
|
|
3804
|
+
return (options.client ?? _heyApiClient).get<
|
|
3805
|
+
CampaignsControllerGetCampaignV2V2Responses,
|
|
3806
|
+
CampaignsControllerGetCampaignV2V2Errors,
|
|
3807
|
+
ThrowOnError
|
|
3808
|
+
>({
|
|
3809
|
+
security: [
|
|
3810
|
+
{
|
|
3811
|
+
name: "x-api-token",
|
|
3812
|
+
type: "apiKey",
|
|
3813
|
+
},
|
|
3814
|
+
],
|
|
3815
|
+
responseTransformer: campaignsControllerGetCampaignV2V2ResponseTransformer,
|
|
3816
|
+
url: "/v2/campaigns/{id}",
|
|
3817
|
+
...options,
|
|
3818
|
+
});
|
|
3819
|
+
};
|
|
3820
|
+
|
|
3821
|
+
/**
|
|
3822
|
+
* Update a campaign (mission-fulfillment)
|
|
3823
|
+
* Updates a campaign in mission-fulfillment.
|
|
3824
|
+
*/
|
|
3825
|
+
export const campaignsControllerUpdateCampaignV2V2 = <
|
|
3826
|
+
ThrowOnError extends boolean = true,
|
|
3827
|
+
>(
|
|
3828
|
+
options: Options<CampaignsControllerUpdateCampaignV2V2Data, ThrowOnError>,
|
|
3829
|
+
) => {
|
|
3830
|
+
return (options.client ?? _heyApiClient).patch<
|
|
3831
|
+
CampaignsControllerUpdateCampaignV2V2Responses,
|
|
3832
|
+
CampaignsControllerUpdateCampaignV2V2Errors,
|
|
3833
|
+
ThrowOnError
|
|
3834
|
+
>({
|
|
3835
|
+
security: [
|
|
3836
|
+
{
|
|
3837
|
+
name: "x-api-token",
|
|
3838
|
+
type: "apiKey",
|
|
3839
|
+
},
|
|
3840
|
+
],
|
|
3841
|
+
responseTransformer:
|
|
3842
|
+
campaignsControllerUpdateCampaignV2V2ResponseTransformer,
|
|
3843
|
+
url: "/v2/campaigns/{id}",
|
|
3844
|
+
...options,
|
|
3845
|
+
headers: {
|
|
3846
|
+
"Content-Type": "application/json",
|
|
3847
|
+
...options.headers,
|
|
3848
|
+
},
|
|
3849
|
+
});
|
|
3850
|
+
};
|
|
3851
|
+
|
|
3852
|
+
/**
|
|
3853
|
+
* Cancel a campaign (mission-fulfillment)
|
|
3854
|
+
* Cancels a campaign in mission-fulfillment.
|
|
3855
|
+
*/
|
|
3856
|
+
export const campaignsControllerCancelCampaignV2V2 = <
|
|
3857
|
+
ThrowOnError extends boolean = true,
|
|
3858
|
+
>(
|
|
3859
|
+
options: Options<CampaignsControllerCancelCampaignV2V2Data, ThrowOnError>,
|
|
3860
|
+
) => {
|
|
3861
|
+
return (options.client ?? _heyApiClient).post<
|
|
3862
|
+
CampaignsControllerCancelCampaignV2V2Responses,
|
|
3863
|
+
CampaignsControllerCancelCampaignV2V2Errors,
|
|
3864
|
+
ThrowOnError
|
|
3865
|
+
>({
|
|
3866
|
+
security: [
|
|
3867
|
+
{
|
|
3868
|
+
name: "x-api-token",
|
|
3869
|
+
type: "apiKey",
|
|
3870
|
+
},
|
|
3871
|
+
],
|
|
3872
|
+
url: "/v2/campaigns/{id}/cancel",
|
|
3873
|
+
...options,
|
|
3874
|
+
});
|
|
3875
|
+
};
|
|
3876
|
+
|
|
3877
|
+
/**
|
|
3878
|
+
* Get all flight plans (mission-fulfillment)
|
|
3879
|
+
* Returns flight plans from mission-fulfillment.
|
|
3880
|
+
*/
|
|
3881
|
+
export const flightPlansControllerGetManyV2V2 = <
|
|
3882
|
+
ThrowOnError extends boolean = true,
|
|
3883
|
+
>(
|
|
3884
|
+
options?: Options<FlightPlansControllerGetManyV2V2Data, ThrowOnError>,
|
|
3885
|
+
) => {
|
|
3886
|
+
return (options?.client ?? _heyApiClient).get<
|
|
3887
|
+
FlightPlansControllerGetManyV2V2Responses,
|
|
3888
|
+
FlightPlansControllerGetManyV2V2Errors,
|
|
3889
|
+
ThrowOnError
|
|
3890
|
+
>({
|
|
3891
|
+
security: [
|
|
3892
|
+
{
|
|
3893
|
+
name: "x-api-token",
|
|
3894
|
+
type: "apiKey",
|
|
3895
|
+
},
|
|
3896
|
+
],
|
|
3897
|
+
responseTransformer: flightPlansControllerGetManyV2V2ResponseTransformer,
|
|
3898
|
+
url: "/v2/flight-plans",
|
|
3899
|
+
...options,
|
|
3900
|
+
});
|
|
3901
|
+
};
|
|
3902
|
+
|
|
3903
|
+
/**
|
|
3904
|
+
* Create a flight plan (mission-fulfillment)
|
|
3905
|
+
* Creates a flight plan in mission-fulfillment.
|
|
3906
|
+
*/
|
|
3907
|
+
export const flightPlansControllerCreateV2V2 = <
|
|
3908
|
+
ThrowOnError extends boolean = true,
|
|
3909
|
+
>(
|
|
3910
|
+
options: Options<FlightPlansControllerCreateV2V2Data, ThrowOnError>,
|
|
3911
|
+
) => {
|
|
3912
|
+
return (options.client ?? _heyApiClient).post<
|
|
3913
|
+
FlightPlansControllerCreateV2V2Responses,
|
|
3914
|
+
FlightPlansControllerCreateV2V2Errors,
|
|
3915
|
+
ThrowOnError
|
|
3916
|
+
>({
|
|
3917
|
+
security: [
|
|
3918
|
+
{
|
|
3919
|
+
name: "x-api-token",
|
|
3920
|
+
type: "apiKey",
|
|
3921
|
+
},
|
|
3922
|
+
],
|
|
3923
|
+
responseTransformer: flightPlansControllerCreateV2V2ResponseTransformer,
|
|
3924
|
+
url: "/v2/flight-plans",
|
|
3925
|
+
...options,
|
|
3926
|
+
headers: {
|
|
3927
|
+
"Content-Type": "application/json",
|
|
3928
|
+
...options.headers,
|
|
3929
|
+
},
|
|
3930
|
+
});
|
|
3931
|
+
};
|
|
3932
|
+
|
|
3933
|
+
/**
|
|
3934
|
+
* Get a flight plan by ID (mission-fulfillment)
|
|
3935
|
+
* Returns a single flight plan from mission-fulfillment by its UUID.
|
|
3936
|
+
*/
|
|
3937
|
+
export const flightPlansControllerGetV2V2 = <
|
|
3938
|
+
ThrowOnError extends boolean = true,
|
|
3939
|
+
>(
|
|
3940
|
+
options: Options<FlightPlansControllerGetV2V2Data, ThrowOnError>,
|
|
3941
|
+
) => {
|
|
3942
|
+
return (options.client ?? _heyApiClient).get<
|
|
3943
|
+
FlightPlansControllerGetV2V2Responses,
|
|
3944
|
+
FlightPlansControllerGetV2V2Errors,
|
|
3945
|
+
ThrowOnError
|
|
3946
|
+
>({
|
|
3947
|
+
security: [
|
|
3948
|
+
{
|
|
3949
|
+
name: "x-api-token",
|
|
3950
|
+
type: "apiKey",
|
|
3951
|
+
},
|
|
3952
|
+
],
|
|
3953
|
+
responseTransformer: flightPlansControllerGetV2V2ResponseTransformer,
|
|
3954
|
+
url: "/v2/flight-plans/{id}",
|
|
3955
|
+
...options,
|
|
3956
|
+
});
|
|
3957
|
+
};
|
|
3958
|
+
|
|
3959
|
+
/**
|
|
3960
|
+
* Edit a flight plan (mission-fulfillment)
|
|
3961
|
+
* Copy-on-write update of a flight plan in mission-fulfillment.
|
|
3962
|
+
*/
|
|
3963
|
+
export const flightPlansControllerUpdateV2V2 = <
|
|
3964
|
+
ThrowOnError extends boolean = true,
|
|
3965
|
+
>(
|
|
3966
|
+
options: Options<FlightPlansControllerUpdateV2V2Data, ThrowOnError>,
|
|
3967
|
+
) => {
|
|
3968
|
+
return (options.client ?? _heyApiClient).put<
|
|
3969
|
+
FlightPlansControllerUpdateV2V2Responses,
|
|
3970
|
+
FlightPlansControllerUpdateV2V2Errors,
|
|
3971
|
+
ThrowOnError
|
|
3972
|
+
>({
|
|
3973
|
+
security: [
|
|
3974
|
+
{
|
|
3975
|
+
name: "x-api-token",
|
|
3976
|
+
type: "apiKey",
|
|
3977
|
+
},
|
|
3978
|
+
],
|
|
3979
|
+
responseTransformer: flightPlansControllerUpdateV2V2ResponseTransformer,
|
|
3980
|
+
url: "/v2/flight-plans/{id}",
|
|
3981
|
+
...options,
|
|
3982
|
+
headers: {
|
|
3983
|
+
"Content-Type": "application/json",
|
|
3984
|
+
...options.headers,
|
|
3985
|
+
},
|
|
3986
|
+
});
|
|
3987
|
+
};
|
|
3988
|
+
|
|
3989
|
+
/**
|
|
3990
|
+
* List flights (mission-fulfillment)
|
|
3991
|
+
* Returns flights from mission-fulfillment.
|
|
3992
|
+
*/
|
|
3993
|
+
export const flightsControllerGetFlightsV2V2 = <
|
|
3994
|
+
ThrowOnError extends boolean = true,
|
|
3995
|
+
>(
|
|
3996
|
+
options?: Options<FlightsControllerGetFlightsV2V2Data, ThrowOnError>,
|
|
3997
|
+
) => {
|
|
3998
|
+
return (options?.client ?? _heyApiClient).get<
|
|
3999
|
+
FlightsControllerGetFlightsV2V2Responses,
|
|
4000
|
+
FlightsControllerGetFlightsV2V2Errors,
|
|
4001
|
+
ThrowOnError
|
|
4002
|
+
>({
|
|
4003
|
+
security: [
|
|
4004
|
+
{
|
|
4005
|
+
name: "x-api-token",
|
|
4006
|
+
type: "apiKey",
|
|
4007
|
+
},
|
|
4008
|
+
],
|
|
4009
|
+
responseTransformer: flightsControllerGetFlightsV2V2ResponseTransformer,
|
|
4010
|
+
url: "/v2/flights",
|
|
4011
|
+
...options,
|
|
4012
|
+
});
|
|
4013
|
+
};
|
|
4014
|
+
|
|
4015
|
+
/**
|
|
4016
|
+
* Create a flight (mission-fulfillment)
|
|
4017
|
+
* Creates a flight in mission-fulfillment.
|
|
4018
|
+
*/
|
|
4019
|
+
export const flightsControllerCreateFlightV2V2 = <
|
|
4020
|
+
ThrowOnError extends boolean = true,
|
|
4021
|
+
>(
|
|
4022
|
+
options: Options<FlightsControllerCreateFlightV2V2Data, ThrowOnError>,
|
|
4023
|
+
) => {
|
|
4024
|
+
return (options.client ?? _heyApiClient).post<
|
|
4025
|
+
FlightsControllerCreateFlightV2V2Responses,
|
|
4026
|
+
FlightsControllerCreateFlightV2V2Errors,
|
|
4027
|
+
ThrowOnError
|
|
4028
|
+
>({
|
|
4029
|
+
security: [
|
|
4030
|
+
{
|
|
4031
|
+
name: "x-api-token",
|
|
4032
|
+
type: "apiKey",
|
|
4033
|
+
},
|
|
4034
|
+
],
|
|
4035
|
+
responseTransformer: flightsControllerCreateFlightV2V2ResponseTransformer,
|
|
4036
|
+
url: "/v2/flights",
|
|
4037
|
+
...options,
|
|
4038
|
+
headers: {
|
|
4039
|
+
"Content-Type": "application/json",
|
|
4040
|
+
...options.headers,
|
|
4041
|
+
},
|
|
4042
|
+
});
|
|
4043
|
+
};
|
|
4044
|
+
|
|
4045
|
+
/**
|
|
4046
|
+
* Get the provenance signing key (mission-fulfillment)
|
|
4047
|
+
* Returns the provenance key from mission-fulfillment.
|
|
4048
|
+
*/
|
|
4049
|
+
export const flightsControllerGetProvenanceKeyV2V2 = <
|
|
4050
|
+
ThrowOnError extends boolean = true,
|
|
4051
|
+
>(
|
|
4052
|
+
options?: Options<FlightsControllerGetProvenanceKeyV2V2Data, ThrowOnError>,
|
|
4053
|
+
) => {
|
|
4054
|
+
return (options?.client ?? _heyApiClient).get<
|
|
4055
|
+
FlightsControllerGetProvenanceKeyV2V2Responses,
|
|
4056
|
+
FlightsControllerGetProvenanceKeyV2V2Errors,
|
|
4057
|
+
ThrowOnError
|
|
4058
|
+
>({
|
|
4059
|
+
security: [
|
|
4060
|
+
{
|
|
4061
|
+
name: "x-api-token",
|
|
4062
|
+
type: "apiKey",
|
|
4063
|
+
},
|
|
4064
|
+
],
|
|
4065
|
+
url: "/v2/flights/provenance-key",
|
|
4066
|
+
...options,
|
|
4067
|
+
});
|
|
4068
|
+
};
|
|
4069
|
+
|
|
4070
|
+
/**
|
|
4071
|
+
* Get a flight by id (mission-fulfillment)
|
|
4072
|
+
* Returns a flight from mission-fulfillment.
|
|
4073
|
+
*/
|
|
4074
|
+
export const flightsControllerGetFlightV2V2 = <
|
|
4075
|
+
ThrowOnError extends boolean = true,
|
|
4076
|
+
>(
|
|
4077
|
+
options: Options<FlightsControllerGetFlightV2V2Data, ThrowOnError>,
|
|
4078
|
+
) => {
|
|
4079
|
+
return (options.client ?? _heyApiClient).get<
|
|
4080
|
+
FlightsControllerGetFlightV2V2Responses,
|
|
4081
|
+
FlightsControllerGetFlightV2V2Errors,
|
|
4082
|
+
ThrowOnError
|
|
4083
|
+
>({
|
|
4084
|
+
security: [
|
|
4085
|
+
{
|
|
4086
|
+
name: "x-api-token",
|
|
4087
|
+
type: "apiKey",
|
|
4088
|
+
},
|
|
4089
|
+
],
|
|
4090
|
+
responseTransformer: flightsControllerGetFlightV2V2ResponseTransformer,
|
|
4091
|
+
url: "/v2/flights/{id}",
|
|
4092
|
+
...options,
|
|
4093
|
+
});
|
|
4094
|
+
};
|
|
4095
|
+
|
|
4096
|
+
/**
|
|
4097
|
+
* List a flight's expected images (mission-fulfillment)
|
|
4098
|
+
* Returns a flight's expected images from mission-fulfillment.
|
|
4099
|
+
*/
|
|
4100
|
+
export const flightsControllerGetExpectedImagesV2V2 = <
|
|
4101
|
+
ThrowOnError extends boolean = true,
|
|
4102
|
+
>(
|
|
4103
|
+
options: Options<FlightsControllerGetExpectedImagesV2V2Data, ThrowOnError>,
|
|
4104
|
+
) => {
|
|
4105
|
+
return (options.client ?? _heyApiClient).get<
|
|
4106
|
+
FlightsControllerGetExpectedImagesV2V2Responses,
|
|
4107
|
+
FlightsControllerGetExpectedImagesV2V2Errors,
|
|
4108
|
+
ThrowOnError
|
|
4109
|
+
>({
|
|
4110
|
+
security: [
|
|
4111
|
+
{
|
|
4112
|
+
name: "x-api-token",
|
|
4113
|
+
type: "apiKey",
|
|
4114
|
+
},
|
|
4115
|
+
],
|
|
4116
|
+
url: "/v2/flights/{id}/expected-images",
|
|
4117
|
+
...options,
|
|
4118
|
+
});
|
|
4119
|
+
};
|
|
4120
|
+
|
|
4121
|
+
/**
|
|
4122
|
+
* Get a flight's provenance upload URL (mission-fulfillment)
|
|
4123
|
+
* Returns a flight's provenance upload URL from mission-fulfillment.
|
|
4124
|
+
*/
|
|
4125
|
+
export const flightsControllerGetProvenanceUploadUrlV2V2 = <
|
|
4126
|
+
ThrowOnError extends boolean = true,
|
|
4127
|
+
>(
|
|
4128
|
+
options: Options<
|
|
4129
|
+
FlightsControllerGetProvenanceUploadUrlV2V2Data,
|
|
4130
|
+
ThrowOnError
|
|
4131
|
+
>,
|
|
4132
|
+
) => {
|
|
4133
|
+
return (options.client ?? _heyApiClient).get<
|
|
4134
|
+
FlightsControllerGetProvenanceUploadUrlV2V2Responses,
|
|
4135
|
+
FlightsControllerGetProvenanceUploadUrlV2V2Errors,
|
|
4136
|
+
ThrowOnError
|
|
4137
|
+
>({
|
|
4138
|
+
security: [
|
|
4139
|
+
{
|
|
4140
|
+
name: "x-api-token",
|
|
4141
|
+
type: "apiKey",
|
|
4142
|
+
},
|
|
4143
|
+
],
|
|
4144
|
+
url: "/v2/flights/{id}/provenance-upload-url",
|
|
4145
|
+
...options,
|
|
4146
|
+
});
|
|
4147
|
+
};
|
|
4148
|
+
|
|
4149
|
+
/**
|
|
4150
|
+
* Get a flight's review (mission-fulfillment)
|
|
4151
|
+
* Returns a flight's review from mission-fulfillment.
|
|
4152
|
+
*/
|
|
4153
|
+
export const flightsControllerGetReviewV2V2 = <
|
|
4154
|
+
ThrowOnError extends boolean = true,
|
|
4155
|
+
>(
|
|
4156
|
+
options: Options<FlightsControllerGetReviewV2V2Data, ThrowOnError>,
|
|
4157
|
+
) => {
|
|
4158
|
+
return (options.client ?? _heyApiClient).get<
|
|
4159
|
+
FlightsControllerGetReviewV2V2Responses,
|
|
4160
|
+
FlightsControllerGetReviewV2V2Errors,
|
|
4161
|
+
ThrowOnError
|
|
4162
|
+
>({
|
|
4163
|
+
security: [
|
|
4164
|
+
{
|
|
4165
|
+
name: "x-api-token",
|
|
4166
|
+
type: "apiKey",
|
|
4167
|
+
},
|
|
4168
|
+
],
|
|
4169
|
+
responseTransformer: flightsControllerGetReviewV2V2ResponseTransformer,
|
|
4170
|
+
url: "/v2/flights/{id}/review",
|
|
4171
|
+
...options,
|
|
4172
|
+
});
|
|
4173
|
+
};
|
|
4174
|
+
|
|
4175
|
+
/**
|
|
4176
|
+
* Request a flight's review (mission-fulfillment)
|
|
4177
|
+
* Requests a review for a flight in mission-fulfillment.
|
|
4178
|
+
*/
|
|
4179
|
+
export const flightsControllerRequestReviewV2V2 = <
|
|
4180
|
+
ThrowOnError extends boolean = true,
|
|
4181
|
+
>(
|
|
4182
|
+
options: Options<FlightsControllerRequestReviewV2V2Data, ThrowOnError>,
|
|
4183
|
+
) => {
|
|
4184
|
+
return (options.client ?? _heyApiClient).post<
|
|
4185
|
+
FlightsControllerRequestReviewV2V2Responses,
|
|
4186
|
+
FlightsControllerRequestReviewV2V2Errors,
|
|
4187
|
+
ThrowOnError
|
|
4188
|
+
>({
|
|
4189
|
+
security: [
|
|
4190
|
+
{
|
|
4191
|
+
name: "x-api-token",
|
|
4192
|
+
type: "apiKey",
|
|
4193
|
+
},
|
|
4194
|
+
],
|
|
4195
|
+
responseTransformer: flightsControllerRequestReviewV2V2ResponseTransformer,
|
|
4196
|
+
url: "/v2/flights/{id}/review",
|
|
4197
|
+
...options,
|
|
4198
|
+
});
|
|
4199
|
+
};
|
|
4200
|
+
|
|
4201
|
+
/**
|
|
4202
|
+
* Create expected-image upload URLs (mission-fulfillment)
|
|
4203
|
+
* Creates upload URLs for a flight's expected images in mission-fulfillment.
|
|
4204
|
+
*/
|
|
4205
|
+
export const flightsControllerImageUploadUrlsV2V2 = <
|
|
4206
|
+
ThrowOnError extends boolean = true,
|
|
4207
|
+
>(
|
|
4208
|
+
options: Options<FlightsControllerImageUploadUrlsV2V2Data, ThrowOnError>,
|
|
4209
|
+
) => {
|
|
4210
|
+
return (options.client ?? _heyApiClient).post<
|
|
4211
|
+
FlightsControllerImageUploadUrlsV2V2Responses,
|
|
4212
|
+
FlightsControllerImageUploadUrlsV2V2Errors,
|
|
4213
|
+
ThrowOnError
|
|
4214
|
+
>({
|
|
4215
|
+
security: [
|
|
4216
|
+
{
|
|
4217
|
+
name: "x-api-token",
|
|
4218
|
+
type: "apiKey",
|
|
4219
|
+
},
|
|
4220
|
+
],
|
|
4221
|
+
url: "/v2/flights/{id}/expected-images/upload-urls",
|
|
4222
|
+
...options,
|
|
4223
|
+
headers: {
|
|
4224
|
+
"Content-Type": "application/json",
|
|
4225
|
+
...options.headers,
|
|
4226
|
+
},
|
|
4227
|
+
});
|
|
4228
|
+
};
|
|
4229
|
+
|
|
4230
|
+
/**
|
|
4231
|
+
* Submit a flight's provenance (mission-fulfillment)
|
|
4232
|
+
* Submits a flight's provenance to mission-fulfillment.
|
|
4233
|
+
*/
|
|
4234
|
+
export const flightsControllerSubmitProvenanceV2V2 = <
|
|
4235
|
+
ThrowOnError extends boolean = true,
|
|
4236
|
+
>(
|
|
4237
|
+
options: Options<FlightsControllerSubmitProvenanceV2V2Data, ThrowOnError>,
|
|
4238
|
+
) => {
|
|
4239
|
+
return (options.client ?? _heyApiClient).post<
|
|
4240
|
+
FlightsControllerSubmitProvenanceV2V2Responses,
|
|
4241
|
+
FlightsControllerSubmitProvenanceV2V2Errors,
|
|
4242
|
+
ThrowOnError
|
|
4243
|
+
>({
|
|
4244
|
+
security: [
|
|
4245
|
+
{
|
|
4246
|
+
name: "x-api-token",
|
|
4247
|
+
type: "apiKey",
|
|
4248
|
+
},
|
|
4249
|
+
],
|
|
4250
|
+
responseTransformer:
|
|
4251
|
+
flightsControllerSubmitProvenanceV2V2ResponseTransformer,
|
|
4252
|
+
url: "/v2/flights/{id}/provenance",
|
|
4253
|
+
...options,
|
|
4254
|
+
});
|
|
4255
|
+
};
|
|
4256
|
+
|
|
4257
|
+
/**
|
|
4258
|
+
* Get missions (mission-fulfillment)
|
|
4259
|
+
* Returns missions from mission-fulfillment.
|
|
4260
|
+
*/
|
|
4261
|
+
export const missionsControllerGetMissionsV2V2 = <
|
|
4262
|
+
ThrowOnError extends boolean = true,
|
|
4263
|
+
>(
|
|
4264
|
+
options?: Options<MissionsControllerGetMissionsV2V2Data, ThrowOnError>,
|
|
4265
|
+
) => {
|
|
4266
|
+
return (options?.client ?? _heyApiClient).get<
|
|
4267
|
+
MissionsControllerGetMissionsV2V2Responses,
|
|
4268
|
+
MissionsControllerGetMissionsV2V2Errors,
|
|
4269
|
+
ThrowOnError
|
|
4270
|
+
>({
|
|
4271
|
+
security: [
|
|
4272
|
+
{
|
|
4273
|
+
name: "x-api-token",
|
|
4274
|
+
type: "apiKey",
|
|
4275
|
+
},
|
|
4276
|
+
],
|
|
4277
|
+
responseTransformer: missionsControllerGetMissionsV2V2ResponseTransformer,
|
|
4278
|
+
url: "/v2/missions",
|
|
4279
|
+
...options,
|
|
4280
|
+
});
|
|
4281
|
+
};
|
|
4282
|
+
|
|
4283
|
+
/**
|
|
4284
|
+
* Create new missions (mission-fulfillment)
|
|
4285
|
+
* Creates missions in mission-fulfillment.
|
|
4286
|
+
*/
|
|
4287
|
+
export const missionsControllerCreateMissionsV2V2 = <
|
|
4288
|
+
ThrowOnError extends boolean = true,
|
|
4289
|
+
>(
|
|
4290
|
+
options: Options<MissionsControllerCreateMissionsV2V2Data, ThrowOnError>,
|
|
4291
|
+
) => {
|
|
4292
|
+
return (options.client ?? _heyApiClient).post<
|
|
4293
|
+
MissionsControllerCreateMissionsV2V2Responses,
|
|
4294
|
+
MissionsControllerCreateMissionsV2V2Errors,
|
|
4295
|
+
ThrowOnError
|
|
4296
|
+
>({
|
|
4297
|
+
security: [
|
|
4298
|
+
{
|
|
4299
|
+
name: "x-api-token",
|
|
4300
|
+
type: "apiKey",
|
|
4301
|
+
},
|
|
4302
|
+
],
|
|
4303
|
+
responseTransformer:
|
|
4304
|
+
missionsControllerCreateMissionsV2V2ResponseTransformer,
|
|
4305
|
+
url: "/v2/missions",
|
|
4306
|
+
...options,
|
|
4307
|
+
headers: {
|
|
4308
|
+
"Content-Type": "application/json",
|
|
4309
|
+
...options.headers,
|
|
4310
|
+
},
|
|
4311
|
+
});
|
|
4312
|
+
};
|
|
4313
|
+
|
|
4314
|
+
/**
|
|
4315
|
+
* Get a mission by ID (mission-fulfillment)
|
|
4316
|
+
* Returns a mission from mission-fulfillment.
|
|
4317
|
+
*/
|
|
4318
|
+
export const missionsControllerGetMissionV2V2 = <
|
|
4319
|
+
ThrowOnError extends boolean = true,
|
|
4320
|
+
>(
|
|
4321
|
+
options: Options<MissionsControllerGetMissionV2V2Data, ThrowOnError>,
|
|
4322
|
+
) => {
|
|
4323
|
+
return (options.client ?? _heyApiClient).get<
|
|
4324
|
+
MissionsControllerGetMissionV2V2Responses,
|
|
4325
|
+
MissionsControllerGetMissionV2V2Errors,
|
|
4326
|
+
ThrowOnError
|
|
4327
|
+
>({
|
|
4328
|
+
security: [
|
|
4329
|
+
{
|
|
4330
|
+
name: "x-api-token",
|
|
4331
|
+
type: "apiKey",
|
|
4332
|
+
},
|
|
4333
|
+
],
|
|
4334
|
+
responseTransformer: missionsControllerGetMissionV2V2ResponseTransformer,
|
|
4335
|
+
url: "/v2/missions/{id}",
|
|
4336
|
+
...options,
|
|
4337
|
+
});
|
|
4338
|
+
};
|
|
4339
|
+
|
|
4340
|
+
/**
|
|
4341
|
+
* Update a mission (mission-fulfillment)
|
|
4342
|
+
* Updates a mission in mission-fulfillment.
|
|
4343
|
+
*/
|
|
4344
|
+
export const missionsControllerUpdateMissionV2V2 = <
|
|
4345
|
+
ThrowOnError extends boolean = true,
|
|
4346
|
+
>(
|
|
4347
|
+
options: Options<MissionsControllerUpdateMissionV2V2Data, ThrowOnError>,
|
|
4348
|
+
) => {
|
|
4349
|
+
return (options.client ?? _heyApiClient).patch<
|
|
4350
|
+
MissionsControllerUpdateMissionV2V2Responses,
|
|
4351
|
+
MissionsControllerUpdateMissionV2V2Errors,
|
|
4352
|
+
ThrowOnError
|
|
4353
|
+
>({
|
|
4354
|
+
security: [
|
|
4355
|
+
{
|
|
4356
|
+
name: "x-api-token",
|
|
4357
|
+
type: "apiKey",
|
|
4358
|
+
},
|
|
4359
|
+
],
|
|
4360
|
+
responseTransformer: missionsControllerUpdateMissionV2V2ResponseTransformer,
|
|
4361
|
+
url: "/v2/missions/{id}",
|
|
4362
|
+
...options,
|
|
4363
|
+
headers: {
|
|
4364
|
+
"Content-Type": "application/json",
|
|
4365
|
+
...options.headers,
|
|
4366
|
+
},
|
|
4367
|
+
});
|
|
4368
|
+
};
|
|
4369
|
+
|
|
4370
|
+
/**
|
|
4371
|
+
* Cancel a mission (mission-fulfillment)
|
|
4372
|
+
* Cancels a mission in mission-fulfillment.
|
|
4373
|
+
*/
|
|
4374
|
+
export const missionsControllerCancelMissionV2V2 = <
|
|
4375
|
+
ThrowOnError extends boolean = true,
|
|
4376
|
+
>(
|
|
4377
|
+
options: Options<MissionsControllerCancelMissionV2V2Data, ThrowOnError>,
|
|
4378
|
+
) => {
|
|
4379
|
+
return (options.client ?? _heyApiClient).post<
|
|
4380
|
+
MissionsControllerCancelMissionV2V2Responses,
|
|
4381
|
+
MissionsControllerCancelMissionV2V2Errors,
|
|
4382
|
+
ThrowOnError
|
|
4383
|
+
>({
|
|
4384
|
+
security: [
|
|
4385
|
+
{
|
|
4386
|
+
name: "x-api-token",
|
|
4387
|
+
type: "apiKey",
|
|
4388
|
+
},
|
|
4389
|
+
],
|
|
4390
|
+
responseTransformer: missionsControllerCancelMissionV2V2ResponseTransformer,
|
|
4391
|
+
url: "/v2/missions/{id}/cancel",
|
|
4392
|
+
...options,
|
|
4393
|
+
});
|
|
4394
|
+
};
|
|
4395
|
+
|
|
4396
|
+
/**
|
|
4397
|
+
* Re-emit a Mission's Outbound Command (mission-fulfillment)
|
|
4398
|
+
* Proxied to mission-fulfillment.
|
|
4399
|
+
*/
|
|
4400
|
+
export const missionsControllerRetryMissionV2V2 = <
|
|
4401
|
+
ThrowOnError extends boolean = true,
|
|
4402
|
+
>(
|
|
4403
|
+
options: Options<MissionsControllerRetryMissionV2V2Data, ThrowOnError>,
|
|
4404
|
+
) => {
|
|
4405
|
+
return (options.client ?? _heyApiClient).post<
|
|
4406
|
+
MissionsControllerRetryMissionV2V2Responses,
|
|
4407
|
+
MissionsControllerRetryMissionV2V2Errors,
|
|
4408
|
+
ThrowOnError
|
|
4409
|
+
>({
|
|
4410
|
+
security: [
|
|
4411
|
+
{
|
|
4412
|
+
name: "x-api-token",
|
|
4413
|
+
type: "apiKey",
|
|
4414
|
+
},
|
|
4415
|
+
],
|
|
4416
|
+
responseTransformer: missionsControllerRetryMissionV2V2ResponseTransformer,
|
|
4417
|
+
url: "/v2/missions/{id}/retry",
|
|
4418
|
+
...options,
|
|
4419
|
+
});
|
|
4420
|
+
};
|
|
4421
|
+
|
|
4422
|
+
/**
|
|
4423
|
+
* List rewards (mission-fulfillment)
|
|
4424
|
+
* Returns rewards from mission-fulfillment.
|
|
4425
|
+
*/
|
|
4426
|
+
export const rewardsControllerListRewardsV2V2 = <
|
|
4427
|
+
ThrowOnError extends boolean = true,
|
|
4428
|
+
>(
|
|
4429
|
+
options?: Options<RewardsControllerListRewardsV2V2Data, ThrowOnError>,
|
|
4430
|
+
) => {
|
|
4431
|
+
return (options?.client ?? _heyApiClient).get<
|
|
4432
|
+
RewardsControllerListRewardsV2V2Responses,
|
|
4433
|
+
RewardsControllerListRewardsV2V2Errors,
|
|
4434
|
+
ThrowOnError
|
|
4435
|
+
>({
|
|
4436
|
+
security: [
|
|
4437
|
+
{
|
|
4438
|
+
name: "x-api-token",
|
|
4439
|
+
type: "apiKey",
|
|
4440
|
+
},
|
|
4441
|
+
],
|
|
4442
|
+
responseTransformer: rewardsControllerListRewardsV2V2ResponseTransformer,
|
|
4443
|
+
url: "/v2/rewards",
|
|
4444
|
+
...options,
|
|
4445
|
+
});
|
|
4446
|
+
};
|
|
4447
|
+
|
|
4448
|
+
/**
|
|
4449
|
+
* Create zones (mission-fulfillment)
|
|
4450
|
+
* Creates one or more zones in mission-fulfillment.
|
|
4451
|
+
*/
|
|
4452
|
+
export const zonesControllerCreateZonesV2V2 = <
|
|
4453
|
+
ThrowOnError extends boolean = true,
|
|
4454
|
+
>(
|
|
4455
|
+
options: Options<ZonesControllerCreateZonesV2V2Data, ThrowOnError>,
|
|
4456
|
+
) => {
|
|
4457
|
+
return (options.client ?? _heyApiClient).post<
|
|
4458
|
+
ZonesControllerCreateZonesV2V2Responses,
|
|
4459
|
+
ZonesControllerCreateZonesV2V2Errors,
|
|
4460
|
+
ThrowOnError
|
|
4461
|
+
>({
|
|
4462
|
+
security: [
|
|
4463
|
+
{
|
|
4464
|
+
name: "x-api-token",
|
|
4465
|
+
type: "apiKey",
|
|
4466
|
+
},
|
|
4467
|
+
],
|
|
4468
|
+
url: "/v2/zones",
|
|
4469
|
+
...options,
|
|
4470
|
+
headers: {
|
|
4471
|
+
"Content-Type": "application/json",
|
|
4472
|
+
...options.headers,
|
|
4473
|
+
},
|
|
4474
|
+
});
|
|
4475
|
+
};
|
|
4476
|
+
|
|
4477
|
+
/**
|
|
4478
|
+
* Get a zone by id (mission-fulfillment)
|
|
4479
|
+
* Returns a zone from mission-fulfillment.
|
|
4480
|
+
*/
|
|
4481
|
+
export const zonesControllerGetZoneV2V2 = <ThrowOnError extends boolean = true>(
|
|
4482
|
+
options: Options<ZonesControllerGetZoneV2V2Data, ThrowOnError>,
|
|
4483
|
+
) => {
|
|
4484
|
+
return (options.client ?? _heyApiClient).get<
|
|
4485
|
+
ZonesControllerGetZoneV2V2Responses,
|
|
4486
|
+
ZonesControllerGetZoneV2V2Errors,
|
|
4487
|
+
ThrowOnError
|
|
4488
|
+
>({
|
|
4489
|
+
security: [
|
|
4490
|
+
{
|
|
4491
|
+
name: "x-api-token",
|
|
4492
|
+
type: "apiKey",
|
|
4493
|
+
},
|
|
4494
|
+
],
|
|
4495
|
+
responseTransformer: zonesControllerGetZoneV2V2ResponseTransformer,
|
|
4496
|
+
url: "/v2/zones/{id}",
|
|
4497
|
+
...options,
|
|
4498
|
+
});
|
|
4499
|
+
};
|
|
4500
|
+
|
|
4501
|
+
/**
|
|
4502
|
+
* Update a zone (mission-fulfillment)
|
|
4503
|
+
* Updates a zone in mission-fulfillment.
|
|
4504
|
+
*/
|
|
4505
|
+
export const zonesControllerUpdateZoneV2V2 = <
|
|
4506
|
+
ThrowOnError extends boolean = true,
|
|
4507
|
+
>(
|
|
4508
|
+
options: Options<ZonesControllerUpdateZoneV2V2Data, ThrowOnError>,
|
|
4509
|
+
) => {
|
|
4510
|
+
return (options.client ?? _heyApiClient).put<
|
|
4511
|
+
ZonesControllerUpdateZoneV2V2Responses,
|
|
4512
|
+
ZonesControllerUpdateZoneV2V2Errors,
|
|
4513
|
+
ThrowOnError
|
|
4514
|
+
>({
|
|
4515
|
+
security: [
|
|
4516
|
+
{
|
|
4517
|
+
name: "x-api-token",
|
|
4518
|
+
type: "apiKey",
|
|
4519
|
+
},
|
|
4520
|
+
],
|
|
4521
|
+
responseTransformer: zonesControllerUpdateZoneV2V2ResponseTransformer,
|
|
4522
|
+
url: "/v2/zones/{id}",
|
|
4523
|
+
...options,
|
|
4524
|
+
headers: {
|
|
4525
|
+
"Content-Type": "application/json",
|
|
4526
|
+
...options.headers,
|
|
4527
|
+
},
|
|
4528
|
+
});
|
|
4529
|
+
};
|