@layer-drone/protocol 0.8.0 → 1.0.1
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 +1593 -330
- package/dist/index.d.ts +1593 -330
- package/dist/index.js +1553 -393
- package/dist/index.mjs +1433 -340
- package/package.json +1 -1
- package/src/client/sdk.gen.ts +2585 -599
- package/src/client/transformers.gen.ts +304 -77
- package/src/client/types.gen.ts +2223 -491
package/src/client/sdk.gen.ts
CHANGED
|
@@ -6,184 +6,404 @@ import type {
|
|
|
6
6
|
TDataShape,
|
|
7
7
|
} from "./client/index.js";
|
|
8
8
|
import {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
9
|
+
apiTokenControllerUpdateToken0V1ResponseTransformer,
|
|
10
|
+
apiTokenControllerUpdateToken1ResponseTransformer,
|
|
11
|
+
conditionsControllerGetSunAltitudeTimeLimits0V1ResponseTransformer,
|
|
12
|
+
conditionsControllerGetSunAltitudeTimeLimits1ResponseTransformer,
|
|
13
|
+
contractsControllerGetAllContracts0V1ResponseTransformer,
|
|
14
|
+
contractsControllerGetAllContracts1ResponseTransformer,
|
|
15
|
+
flightPlansControllerCreate0V1ResponseTransformer,
|
|
16
|
+
flightPlansControllerCreate1ResponseTransformer,
|
|
17
|
+
flightPlansControllerGet0V1ResponseTransformer,
|
|
18
|
+
flightPlansControllerGet1ResponseTransformer,
|
|
19
|
+
flightPlansControllerGetMany0V1ResponseTransformer,
|
|
20
|
+
flightPlansControllerGetMany1ResponseTransformer,
|
|
21
|
+
flightReviewsControllerGetFlightReview0V1ResponseTransformer,
|
|
22
|
+
flightReviewsControllerGetFlightReview1ResponseTransformer,
|
|
23
|
+
flightReviewsControllerGetFlightReviews0V1ResponseTransformer,
|
|
24
|
+
flightReviewsControllerGetFlightReviews1ResponseTransformer,
|
|
25
|
+
flightsControllerGetFlight0V1ResponseTransformer,
|
|
26
|
+
flightsControllerGetFlight1ResponseTransformer,
|
|
27
|
+
flightsControllerValidateFlight0V1ResponseTransformer,
|
|
28
|
+
flightsControllerValidateFlight1ResponseTransformer,
|
|
29
|
+
getProposalResponseTransformer,
|
|
30
|
+
inboundWebhookConfigsControllerCreate0V1ResponseTransformer,
|
|
31
|
+
inboundWebhookConfigsControllerCreate1ResponseTransformer,
|
|
32
|
+
inboundWebhookConfigsControllerGet0V1ResponseTransformer,
|
|
33
|
+
inboundWebhookConfigsControllerGet1ResponseTransformer,
|
|
34
|
+
inboundWebhookConfigsControllerGetMany0V1ResponseTransformer,
|
|
35
|
+
inboundWebhookConfigsControllerGetMany1ResponseTransformer,
|
|
36
|
+
inboundWebhookConfigsControllerUpdate0V1ResponseTransformer,
|
|
37
|
+
inboundWebhookConfigsControllerUpdate1ResponseTransformer,
|
|
38
|
+
listProposalsResponseTransformer,
|
|
39
|
+
missionsControllerCreateMissions0V1ResponseTransformer,
|
|
40
|
+
missionsControllerCreateMissions1ResponseTransformer,
|
|
41
|
+
missionsControllerGetMission0V1ResponseTransformer,
|
|
42
|
+
missionsControllerGetMission1ResponseTransformer,
|
|
43
|
+
missionsControllerGetMissions0V1ResponseTransformer,
|
|
44
|
+
missionsControllerGetMissions1ResponseTransformer,
|
|
45
|
+
webhooksControllerGet0V1ResponseTransformer,
|
|
46
|
+
webhooksControllerGet1ResponseTransformer,
|
|
47
|
+
webhooksControllerGetMany0V1ResponseTransformer,
|
|
48
|
+
webhooksControllerGetMany1ResponseTransformer,
|
|
49
|
+
webhooksControllerRegenerateSecret0V1ResponseTransformer,
|
|
50
|
+
webhooksControllerRegenerateSecret1ResponseTransformer,
|
|
51
|
+
webhooksControllerUpdate0V1ResponseTransformer,
|
|
52
|
+
webhooksControllerUpdate1ResponseTransformer,
|
|
53
|
+
zonesControllerCreateZone0V1ResponseTransformer,
|
|
54
|
+
zonesControllerCreateZone1ResponseTransformer,
|
|
55
|
+
zonesControllerUpdateZone0V1ResponseTransformer,
|
|
56
|
+
zonesControllerUpdateZone1ResponseTransformer,
|
|
32
57
|
} from "./transformers.gen.js";
|
|
33
58
|
import type {
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
59
|
+
AlchemyControllerHandleWebhook0V1Data,
|
|
60
|
+
AlchemyControllerHandleWebhook0V1Responses,
|
|
61
|
+
AlchemyControllerHandleWebhook1Data,
|
|
62
|
+
AlchemyControllerHandleWebhook1Responses,
|
|
63
|
+
ApiControllerGetError0V1Data,
|
|
64
|
+
ApiControllerGetError0V1Responses,
|
|
65
|
+
ApiControllerGetError1Data,
|
|
66
|
+
ApiControllerGetError1Responses,
|
|
67
|
+
ApiControllerGetHello0V1Data,
|
|
68
|
+
ApiControllerGetHello0V1Responses,
|
|
69
|
+
ApiControllerGetHello1Data,
|
|
70
|
+
ApiControllerGetHello1Responses,
|
|
71
|
+
ApiTokenControllerCreateToken0V1Data,
|
|
72
|
+
ApiTokenControllerCreateToken0V1Errors,
|
|
73
|
+
ApiTokenControllerCreateToken0V1Responses,
|
|
74
|
+
ApiTokenControllerCreateToken1Data,
|
|
75
|
+
ApiTokenControllerCreateToken1Errors,
|
|
76
|
+
ApiTokenControllerCreateToken1Responses,
|
|
77
|
+
ApiTokenControllerDeleteToken0V1Data,
|
|
78
|
+
ApiTokenControllerDeleteToken0V1Errors,
|
|
79
|
+
ApiTokenControllerDeleteToken0V1Responses,
|
|
80
|
+
ApiTokenControllerDeleteToken1Data,
|
|
81
|
+
ApiTokenControllerDeleteToken1Errors,
|
|
82
|
+
ApiTokenControllerDeleteToken1Responses,
|
|
83
|
+
ApiTokenControllerGetToken0V1Data,
|
|
84
|
+
ApiTokenControllerGetToken0V1Errors,
|
|
85
|
+
ApiTokenControllerGetToken0V1Responses,
|
|
86
|
+
ApiTokenControllerGetToken1Data,
|
|
87
|
+
ApiTokenControllerGetToken1Errors,
|
|
88
|
+
ApiTokenControllerGetToken1Responses,
|
|
89
|
+
ApiTokenControllerUpdateToken0V1Data,
|
|
90
|
+
ApiTokenControllerUpdateToken0V1Errors,
|
|
91
|
+
ApiTokenControllerUpdateToken0V1Responses,
|
|
92
|
+
ApiTokenControllerUpdateToken1Data,
|
|
93
|
+
ApiTokenControllerUpdateToken1Errors,
|
|
94
|
+
ApiTokenControllerUpdateToken1Responses,
|
|
95
|
+
CampaignsControllerCreate0V1Data,
|
|
96
|
+
CampaignsControllerCreate0V1Errors,
|
|
97
|
+
CampaignsControllerCreate0V1Responses,
|
|
98
|
+
CampaignsControllerCreate1Data,
|
|
99
|
+
CampaignsControllerCreate1Errors,
|
|
100
|
+
CampaignsControllerCreate1Responses,
|
|
101
|
+
CampaignsControllerDelete0V1Data,
|
|
102
|
+
CampaignsControllerDelete0V1Errors,
|
|
103
|
+
CampaignsControllerDelete0V1Responses,
|
|
104
|
+
CampaignsControllerDelete1Data,
|
|
105
|
+
CampaignsControllerDelete1Errors,
|
|
106
|
+
CampaignsControllerDelete1Responses,
|
|
107
|
+
CampaignsControllerGet0V1Data,
|
|
108
|
+
CampaignsControllerGet0V1Errors,
|
|
109
|
+
CampaignsControllerGet0V1Responses,
|
|
110
|
+
CampaignsControllerGet1Data,
|
|
111
|
+
CampaignsControllerGet1Errors,
|
|
112
|
+
CampaignsControllerGet1Responses,
|
|
113
|
+
CampaignsControllerGetMany0V1Data,
|
|
114
|
+
CampaignsControllerGetMany0V1Errors,
|
|
115
|
+
CampaignsControllerGetMany0V1Responses,
|
|
116
|
+
CampaignsControllerGetMany1Data,
|
|
117
|
+
CampaignsControllerGetMany1Errors,
|
|
118
|
+
CampaignsControllerGetMany1Responses,
|
|
119
|
+
CampaignsControllerUpdate0V1Data,
|
|
120
|
+
CampaignsControllerUpdate0V1Errors,
|
|
121
|
+
CampaignsControllerUpdate0V1Responses,
|
|
122
|
+
CampaignsControllerUpdate1Data,
|
|
123
|
+
CampaignsControllerUpdate1Errors,
|
|
124
|
+
CampaignsControllerUpdate1Responses,
|
|
125
|
+
ConditionsControllerGetSunAltitudeTimeLimits0V1Data,
|
|
126
|
+
ConditionsControllerGetSunAltitudeTimeLimits0V1Responses,
|
|
127
|
+
ConditionsControllerGetSunAltitudeTimeLimits1Data,
|
|
128
|
+
ConditionsControllerGetSunAltitudeTimeLimits1Responses,
|
|
129
|
+
ContractsControllerCreateContract0V1Data,
|
|
130
|
+
ContractsControllerCreateContract0V1Errors,
|
|
131
|
+
ContractsControllerCreateContract0V1Responses,
|
|
132
|
+
ContractsControllerCreateContract1Data,
|
|
133
|
+
ContractsControllerCreateContract1Errors,
|
|
134
|
+
ContractsControllerCreateContract1Responses,
|
|
135
|
+
ContractsControllerDeleteContract0V1Data,
|
|
136
|
+
ContractsControllerDeleteContract0V1Errors,
|
|
137
|
+
ContractsControllerDeleteContract0V1Responses,
|
|
138
|
+
ContractsControllerDeleteContract1Data,
|
|
139
|
+
ContractsControllerDeleteContract1Errors,
|
|
140
|
+
ContractsControllerDeleteContract1Responses,
|
|
141
|
+
ContractsControllerGetAllContracts0V1Data,
|
|
142
|
+
ContractsControllerGetAllContracts0V1Errors,
|
|
143
|
+
ContractsControllerGetAllContracts0V1Responses,
|
|
144
|
+
ContractsControllerGetAllContracts1Data,
|
|
145
|
+
ContractsControllerGetAllContracts1Errors,
|
|
146
|
+
ContractsControllerGetAllContracts1Responses,
|
|
147
|
+
ContractsControllerGetContract0V1Data,
|
|
148
|
+
ContractsControllerGetContract0V1Errors,
|
|
149
|
+
ContractsControllerGetContract0V1Responses,
|
|
150
|
+
ContractsControllerGetContract1Data,
|
|
151
|
+
ContractsControllerGetContract1Errors,
|
|
152
|
+
ContractsControllerGetContract1Responses,
|
|
153
|
+
ContractsControllerUpdateContract0V1Data,
|
|
154
|
+
ContractsControllerUpdateContract0V1Errors,
|
|
155
|
+
ContractsControllerUpdateContract0V1Responses,
|
|
156
|
+
ContractsControllerUpdateContract1Data,
|
|
157
|
+
ContractsControllerUpdateContract1Errors,
|
|
158
|
+
ContractsControllerUpdateContract1Responses,
|
|
159
|
+
DlqRedriverControllerRedriveDlq0V1Data,
|
|
160
|
+
DlqRedriverControllerRedriveDlq0V1Errors,
|
|
161
|
+
DlqRedriverControllerRedriveDlq0V1Responses,
|
|
162
|
+
DlqRedriverControllerRedriveDlq1Data,
|
|
163
|
+
DlqRedriverControllerRedriveDlq1Errors,
|
|
164
|
+
DlqRedriverControllerRedriveDlq1Responses,
|
|
165
|
+
EventProcessorFlightReviewsSyncControllerResyncFlightReviews0V1Data,
|
|
166
|
+
EventProcessorFlightReviewsSyncControllerResyncFlightReviews0V1Errors,
|
|
167
|
+
EventProcessorFlightReviewsSyncControllerResyncFlightReviews0V1Responses,
|
|
168
|
+
EventProcessorFlightReviewsSyncControllerResyncFlightReviews1Data,
|
|
169
|
+
EventProcessorFlightReviewsSyncControllerResyncFlightReviews1Errors,
|
|
170
|
+
EventProcessorFlightReviewsSyncControllerResyncFlightReviews1Responses,
|
|
171
|
+
EventProcessorMissionsSyncControllerResyncMissions0V1Data,
|
|
172
|
+
EventProcessorMissionsSyncControllerResyncMissions0V1Errors,
|
|
173
|
+
EventProcessorMissionsSyncControllerResyncMissions0V1Responses,
|
|
174
|
+
EventProcessorMissionsSyncControllerResyncMissions1Data,
|
|
175
|
+
EventProcessorMissionsSyncControllerResyncMissions1Errors,
|
|
176
|
+
EventProcessorMissionsSyncControllerResyncMissions1Responses,
|
|
177
|
+
FlightPlansControllerCreate0V1Data,
|
|
178
|
+
FlightPlansControllerCreate0V1Errors,
|
|
179
|
+
FlightPlansControllerCreate0V1Responses,
|
|
180
|
+
FlightPlansControllerCreate1Data,
|
|
181
|
+
FlightPlansControllerCreate1Errors,
|
|
182
|
+
FlightPlansControllerCreate1Responses,
|
|
183
|
+
FlightPlansControllerGet0V1Data,
|
|
184
|
+
FlightPlansControllerGet0V1Errors,
|
|
185
|
+
FlightPlansControllerGet0V1Responses,
|
|
186
|
+
FlightPlansControllerGet1Data,
|
|
187
|
+
FlightPlansControllerGet1Errors,
|
|
188
|
+
FlightPlansControllerGet1Responses,
|
|
189
|
+
FlightPlansControllerGetMany0V1Data,
|
|
190
|
+
FlightPlansControllerGetMany0V1Errors,
|
|
191
|
+
FlightPlansControllerGetMany0V1Responses,
|
|
192
|
+
FlightPlansControllerGetMany1Data,
|
|
193
|
+
FlightPlansControllerGetMany1Errors,
|
|
194
|
+
FlightPlansControllerGetMany1Responses,
|
|
195
|
+
FlightReviewsControllerGetFlightReview0V1Data,
|
|
196
|
+
FlightReviewsControllerGetFlightReview0V1Errors,
|
|
197
|
+
FlightReviewsControllerGetFlightReview0V1Responses,
|
|
198
|
+
FlightReviewsControllerGetFlightReview1Data,
|
|
199
|
+
FlightReviewsControllerGetFlightReview1Errors,
|
|
200
|
+
FlightReviewsControllerGetFlightReview1Responses,
|
|
201
|
+
FlightReviewsControllerGetFlightReviews0V1Data,
|
|
202
|
+
FlightReviewsControllerGetFlightReviews0V1Errors,
|
|
203
|
+
FlightReviewsControllerGetFlightReviews0V1Responses,
|
|
204
|
+
FlightReviewsControllerGetFlightReviews1Data,
|
|
205
|
+
FlightReviewsControllerGetFlightReviews1Errors,
|
|
206
|
+
FlightReviewsControllerGetFlightReviews1Responses,
|
|
207
|
+
FlightsControllerCreatePresignedUrls0V1Data,
|
|
208
|
+
FlightsControllerCreatePresignedUrls0V1Errors,
|
|
209
|
+
FlightsControllerCreatePresignedUrls0V1Responses,
|
|
210
|
+
FlightsControllerCreatePresignedUrls1Data,
|
|
211
|
+
FlightsControllerCreatePresignedUrls1Errors,
|
|
212
|
+
FlightsControllerCreatePresignedUrls1Responses,
|
|
213
|
+
FlightsControllerGenerateStorageKey0V1Data,
|
|
214
|
+
FlightsControllerGenerateStorageKey0V1Errors,
|
|
215
|
+
FlightsControllerGenerateStorageKey0V1Responses,
|
|
216
|
+
FlightsControllerGenerateStorageKey1Data,
|
|
217
|
+
FlightsControllerGenerateStorageKey1Errors,
|
|
218
|
+
FlightsControllerGenerateStorageKey1Responses,
|
|
219
|
+
FlightsControllerGetFlight0V1Data,
|
|
220
|
+
FlightsControllerGetFlight0V1Errors,
|
|
221
|
+
FlightsControllerGetFlight0V1Responses,
|
|
222
|
+
FlightsControllerGetFlight1Data,
|
|
223
|
+
FlightsControllerGetFlight1Errors,
|
|
224
|
+
FlightsControllerGetFlight1Responses,
|
|
225
|
+
FlightsControllerValidateFlight0V1Data,
|
|
226
|
+
FlightsControllerValidateFlight0V1Errors,
|
|
227
|
+
FlightsControllerValidateFlight0V1Responses,
|
|
228
|
+
FlightsControllerValidateFlight1Data,
|
|
229
|
+
FlightsControllerValidateFlight1Errors,
|
|
230
|
+
FlightsControllerValidateFlight1Responses,
|
|
231
|
+
GetProposalData,
|
|
232
|
+
GetProposalErrors,
|
|
233
|
+
GetProposalResponses,
|
|
234
|
+
InboundWebhookConfigsControllerCreate0V1Data,
|
|
235
|
+
InboundWebhookConfigsControllerCreate0V1Errors,
|
|
236
|
+
InboundWebhookConfigsControllerCreate0V1Responses,
|
|
237
|
+
InboundWebhookConfigsControllerCreate1Data,
|
|
238
|
+
InboundWebhookConfigsControllerCreate1Errors,
|
|
239
|
+
InboundWebhookConfigsControllerCreate1Responses,
|
|
240
|
+
InboundWebhookConfigsControllerDelete0V1Data,
|
|
241
|
+
InboundWebhookConfigsControllerDelete0V1Errors,
|
|
242
|
+
InboundWebhookConfigsControllerDelete0V1Responses,
|
|
243
|
+
InboundWebhookConfigsControllerDelete1Data,
|
|
244
|
+
InboundWebhookConfigsControllerDelete1Errors,
|
|
245
|
+
InboundWebhookConfigsControllerDelete1Responses,
|
|
246
|
+
InboundWebhookConfigsControllerGet0V1Data,
|
|
247
|
+
InboundWebhookConfigsControllerGet0V1Errors,
|
|
248
|
+
InboundWebhookConfigsControllerGet0V1Responses,
|
|
249
|
+
InboundWebhookConfigsControllerGet1Data,
|
|
250
|
+
InboundWebhookConfigsControllerGet1Errors,
|
|
251
|
+
InboundWebhookConfigsControllerGet1Responses,
|
|
252
|
+
InboundWebhookConfigsControllerGetMany0V1Data,
|
|
253
|
+
InboundWebhookConfigsControllerGetMany0V1Errors,
|
|
254
|
+
InboundWebhookConfigsControllerGetMany0V1Responses,
|
|
255
|
+
InboundWebhookConfigsControllerGetMany1Data,
|
|
256
|
+
InboundWebhookConfigsControllerGetMany1Errors,
|
|
257
|
+
InboundWebhookConfigsControllerGetMany1Responses,
|
|
258
|
+
InboundWebhookConfigsControllerUpdate0V1Data,
|
|
259
|
+
InboundWebhookConfigsControllerUpdate0V1Errors,
|
|
260
|
+
InboundWebhookConfigsControllerUpdate0V1Responses,
|
|
261
|
+
InboundWebhookConfigsControllerUpdate1Data,
|
|
262
|
+
InboundWebhookConfigsControllerUpdate1Errors,
|
|
263
|
+
InboundWebhookConfigsControllerUpdate1Responses,
|
|
264
|
+
KeysControllerGetProvenanceCryptoKey0V1Data,
|
|
265
|
+
KeysControllerGetProvenanceCryptoKey0V1Responses,
|
|
266
|
+
KeysControllerGetProvenanceCryptoKey1Data,
|
|
267
|
+
KeysControllerGetProvenanceCryptoKey1Responses,
|
|
268
|
+
ListProposalsData,
|
|
269
|
+
ListProposalsErrors,
|
|
270
|
+
ListProposalsResponses,
|
|
271
|
+
MissionsControllerCreateMissions0V1Data,
|
|
272
|
+
MissionsControllerCreateMissions0V1Errors,
|
|
273
|
+
MissionsControllerCreateMissions0V1Responses,
|
|
274
|
+
MissionsControllerCreateMissions1Data,
|
|
275
|
+
MissionsControllerCreateMissions1Errors,
|
|
276
|
+
MissionsControllerCreateMissions1Responses,
|
|
277
|
+
MissionsControllerGetMission0V1Data,
|
|
278
|
+
MissionsControllerGetMission0V1Errors,
|
|
279
|
+
MissionsControllerGetMission0V1Responses,
|
|
280
|
+
MissionsControllerGetMission1Data,
|
|
281
|
+
MissionsControllerGetMission1Errors,
|
|
282
|
+
MissionsControllerGetMission1Responses,
|
|
283
|
+
MissionsControllerGetMissions0V1Data,
|
|
284
|
+
MissionsControllerGetMissions0V1Errors,
|
|
285
|
+
MissionsControllerGetMissions0V1Responses,
|
|
286
|
+
MissionsControllerGetMissions1Data,
|
|
287
|
+
MissionsControllerGetMissions1Errors,
|
|
288
|
+
MissionsControllerGetMissions1Responses,
|
|
289
|
+
MissionsControllerRepriceMissions0V1Data,
|
|
290
|
+
MissionsControllerRepriceMissions0V1Errors,
|
|
291
|
+
MissionsControllerRepriceMissions0V1Responses,
|
|
292
|
+
MissionsControllerRepriceMissions1Data,
|
|
293
|
+
MissionsControllerRepriceMissions1Errors,
|
|
294
|
+
MissionsControllerRepriceMissions1Responses,
|
|
295
|
+
MissionsControllerUpdateMissions0V1Data,
|
|
296
|
+
MissionsControllerUpdateMissions0V1Errors,
|
|
297
|
+
MissionsControllerUpdateMissions0V1Responses,
|
|
298
|
+
MissionsControllerUpdateMissions1Data,
|
|
299
|
+
MissionsControllerUpdateMissions1Errors,
|
|
300
|
+
MissionsControllerUpdateMissions1Responses,
|
|
301
|
+
ProtocolTriggersApiControllerTriggerMissionClose0V1Data,
|
|
302
|
+
ProtocolTriggersApiControllerTriggerMissionClose0V1Errors,
|
|
303
|
+
ProtocolTriggersApiControllerTriggerMissionClose0V1Responses,
|
|
304
|
+
ProtocolTriggersApiControllerTriggerMissionClose1Data,
|
|
305
|
+
ProtocolTriggersApiControllerTriggerMissionClose1Errors,
|
|
306
|
+
ProtocolTriggersApiControllerTriggerMissionClose1Responses,
|
|
307
|
+
ProtocolTriggersApiControllerTriggerPayout0V1Data,
|
|
308
|
+
ProtocolTriggersApiControllerTriggerPayout0V1Errors,
|
|
309
|
+
ProtocolTriggersApiControllerTriggerPayout0V1Responses,
|
|
310
|
+
ProtocolTriggersApiControllerTriggerPayout1Data,
|
|
311
|
+
ProtocolTriggersApiControllerTriggerPayout1Errors,
|
|
312
|
+
ProtocolTriggersApiControllerTriggerPayout1Responses,
|
|
313
|
+
QuotesControllerCreateQuote0V1Data,
|
|
314
|
+
QuotesControllerCreateQuote0V1Errors,
|
|
315
|
+
QuotesControllerCreateQuote0V1Responses,
|
|
316
|
+
QuotesControllerCreateQuote1Data,
|
|
317
|
+
QuotesControllerCreateQuote1Errors,
|
|
318
|
+
QuotesControllerCreateQuote1Responses,
|
|
319
|
+
QuotesControllerGetQuote0V1Data,
|
|
320
|
+
QuotesControllerGetQuote0V1Errors,
|
|
321
|
+
QuotesControllerGetQuote0V1Responses,
|
|
322
|
+
QuotesControllerGetQuote1Data,
|
|
323
|
+
QuotesControllerGetQuote1Errors,
|
|
324
|
+
QuotesControllerGetQuote1Responses,
|
|
325
|
+
ReviewProposalData,
|
|
326
|
+
ReviewProposalErrors,
|
|
327
|
+
ReviewProposalResponses,
|
|
328
|
+
SchemaControllerGetEventSchema0V1Data,
|
|
329
|
+
SchemaControllerGetEventSchema0V1Responses,
|
|
330
|
+
SchemaControllerGetEventSchema1Data,
|
|
331
|
+
SchemaControllerGetEventSchema1Responses,
|
|
332
|
+
SubmitProposalData,
|
|
333
|
+
SubmitProposalErrors,
|
|
334
|
+
SubmitProposalResponses,
|
|
335
|
+
VaultsControllerCreateVaults0V1Data,
|
|
336
|
+
VaultsControllerCreateVaults0V1Errors,
|
|
337
|
+
VaultsControllerCreateVaults0V1Responses,
|
|
338
|
+
VaultsControllerCreateVaults1Data,
|
|
339
|
+
VaultsControllerCreateVaults1Errors,
|
|
340
|
+
VaultsControllerCreateVaults1Responses,
|
|
341
|
+
WebhooksControllerCreate0V1Data,
|
|
342
|
+
WebhooksControllerCreate0V1Errors,
|
|
343
|
+
WebhooksControllerCreate0V1Responses,
|
|
344
|
+
WebhooksControllerCreate1Data,
|
|
345
|
+
WebhooksControllerCreate1Errors,
|
|
346
|
+
WebhooksControllerCreate1Responses,
|
|
347
|
+
WebhooksControllerDelete0V1Data,
|
|
348
|
+
WebhooksControllerDelete0V1Errors,
|
|
349
|
+
WebhooksControllerDelete0V1Responses,
|
|
350
|
+
WebhooksControllerDelete1Data,
|
|
351
|
+
WebhooksControllerDelete1Errors,
|
|
352
|
+
WebhooksControllerDelete1Responses,
|
|
353
|
+
WebhooksControllerGet0V1Data,
|
|
354
|
+
WebhooksControllerGet0V1Errors,
|
|
355
|
+
WebhooksControllerGet0V1Responses,
|
|
356
|
+
WebhooksControllerGet1Data,
|
|
357
|
+
WebhooksControllerGet1Errors,
|
|
358
|
+
WebhooksControllerGet1Responses,
|
|
359
|
+
WebhooksControllerGetMany0V1Data,
|
|
360
|
+
WebhooksControllerGetMany0V1Errors,
|
|
361
|
+
WebhooksControllerGetMany0V1Responses,
|
|
362
|
+
WebhooksControllerGetMany1Data,
|
|
363
|
+
WebhooksControllerGetMany1Errors,
|
|
364
|
+
WebhooksControllerGetMany1Responses,
|
|
365
|
+
WebhooksControllerGetStatus0V1Data,
|
|
366
|
+
WebhooksControllerGetStatus0V1Errors,
|
|
367
|
+
WebhooksControllerGetStatus0V1Responses,
|
|
368
|
+
WebhooksControllerGetStatus1Data,
|
|
369
|
+
WebhooksControllerGetStatus1Errors,
|
|
370
|
+
WebhooksControllerGetStatus1Responses,
|
|
371
|
+
WebhooksControllerRegenerateSecret0V1Data,
|
|
372
|
+
WebhooksControllerRegenerateSecret0V1Errors,
|
|
373
|
+
WebhooksControllerRegenerateSecret0V1Responses,
|
|
374
|
+
WebhooksControllerRegenerateSecret1Data,
|
|
375
|
+
WebhooksControllerRegenerateSecret1Errors,
|
|
376
|
+
WebhooksControllerRegenerateSecret1Responses,
|
|
377
|
+
WebhooksControllerTest0V1Data,
|
|
378
|
+
WebhooksControllerTest0V1Errors,
|
|
379
|
+
WebhooksControllerTest0V1Responses,
|
|
380
|
+
WebhooksControllerTest1Data,
|
|
381
|
+
WebhooksControllerTest1Errors,
|
|
382
|
+
WebhooksControllerTest1Responses,
|
|
383
|
+
WebhooksControllerUpdate0V1Data,
|
|
384
|
+
WebhooksControllerUpdate0V1Errors,
|
|
385
|
+
WebhooksControllerUpdate0V1Responses,
|
|
386
|
+
WebhooksControllerUpdate1Data,
|
|
387
|
+
WebhooksControllerUpdate1Errors,
|
|
388
|
+
WebhooksControllerUpdate1Responses,
|
|
389
|
+
ZonesControllerCreateZone0V1Data,
|
|
390
|
+
ZonesControllerCreateZone0V1Errors,
|
|
391
|
+
ZonesControllerCreateZone0V1Responses,
|
|
392
|
+
ZonesControllerCreateZone1Data,
|
|
393
|
+
ZonesControllerCreateZone1Errors,
|
|
394
|
+
ZonesControllerCreateZone1Responses,
|
|
395
|
+
ZonesControllerDeleteZone0V1Data,
|
|
396
|
+
ZonesControllerDeleteZone0V1Errors,
|
|
397
|
+
ZonesControllerDeleteZone0V1Responses,
|
|
398
|
+
ZonesControllerDeleteZone1Data,
|
|
399
|
+
ZonesControllerDeleteZone1Errors,
|
|
400
|
+
ZonesControllerDeleteZone1Responses,
|
|
401
|
+
ZonesControllerUpdateZone0V1Data,
|
|
402
|
+
ZonesControllerUpdateZone0V1Errors,
|
|
403
|
+
ZonesControllerUpdateZone0V1Responses,
|
|
404
|
+
ZonesControllerUpdateZone1Data,
|
|
405
|
+
ZonesControllerUpdateZone1Errors,
|
|
406
|
+
ZonesControllerUpdateZone1Responses,
|
|
187
407
|
} from "./types.gen.js";
|
|
188
408
|
|
|
189
409
|
export type Options<
|
|
@@ -203,86 +423,72 @@ export type Options<
|
|
|
203
423
|
meta?: Record<string, unknown>;
|
|
204
424
|
};
|
|
205
425
|
|
|
206
|
-
export const
|
|
207
|
-
options?: Options<
|
|
426
|
+
export const apiControllerGetHello0V1 = <ThrowOnError extends boolean = false>(
|
|
427
|
+
options?: Options<ApiControllerGetHello0V1Data, ThrowOnError>,
|
|
208
428
|
) => {
|
|
209
429
|
return (options?.client ?? _heyApiClient).get<
|
|
210
|
-
|
|
430
|
+
ApiControllerGetHello0V1Responses,
|
|
211
431
|
unknown,
|
|
212
432
|
ThrowOnError
|
|
213
433
|
>({
|
|
214
|
-
url: "/",
|
|
434
|
+
url: "/v1",
|
|
215
435
|
...options,
|
|
216
436
|
});
|
|
217
437
|
};
|
|
218
438
|
|
|
219
|
-
|
|
220
|
-
|
|
439
|
+
/**
|
|
440
|
+
* @deprecated
|
|
441
|
+
*/
|
|
442
|
+
export const apiControllerGetHello1 = <ThrowOnError extends boolean = false>(
|
|
443
|
+
options?: Options<ApiControllerGetHello1Data, ThrowOnError>,
|
|
221
444
|
) => {
|
|
222
445
|
return (options?.client ?? _heyApiClient).get<
|
|
223
|
-
|
|
446
|
+
ApiControllerGetHello1Responses,
|
|
224
447
|
unknown,
|
|
225
448
|
ThrowOnError
|
|
226
449
|
>({
|
|
227
|
-
url: "/
|
|
450
|
+
url: "/",
|
|
228
451
|
...options,
|
|
229
452
|
});
|
|
230
453
|
};
|
|
231
454
|
|
|
232
|
-
export const
|
|
233
|
-
|
|
234
|
-
>(
|
|
235
|
-
options: Options<ApiTokenControllerCreateTokenData, ThrowOnError>,
|
|
455
|
+
export const apiControllerGetError0V1 = <ThrowOnError extends boolean = false>(
|
|
456
|
+
options?: Options<ApiControllerGetError0V1Data, ThrowOnError>,
|
|
236
457
|
) => {
|
|
237
|
-
return (options
|
|
238
|
-
|
|
239
|
-
|
|
458
|
+
return (options?.client ?? _heyApiClient).get<
|
|
459
|
+
ApiControllerGetError0V1Responses,
|
|
460
|
+
unknown,
|
|
240
461
|
ThrowOnError
|
|
241
462
|
>({
|
|
242
|
-
|
|
243
|
-
{
|
|
244
|
-
name: "x-api-token",
|
|
245
|
-
type: "apiKey",
|
|
246
|
-
},
|
|
247
|
-
],
|
|
248
|
-
url: "/tokens",
|
|
463
|
+
url: "/v1/debug-sentry",
|
|
249
464
|
...options,
|
|
250
|
-
headers: {
|
|
251
|
-
"Content-Type": "application/json",
|
|
252
|
-
...options.headers,
|
|
253
|
-
},
|
|
254
465
|
});
|
|
255
466
|
};
|
|
256
467
|
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
468
|
+
/**
|
|
469
|
+
* @deprecated
|
|
470
|
+
*/
|
|
471
|
+
export const apiControllerGetError1 = <ThrowOnError extends boolean = false>(
|
|
472
|
+
options?: Options<ApiControllerGetError1Data, ThrowOnError>,
|
|
261
473
|
) => {
|
|
262
|
-
return (options
|
|
263
|
-
|
|
264
|
-
|
|
474
|
+
return (options?.client ?? _heyApiClient).get<
|
|
475
|
+
ApiControllerGetError1Responses,
|
|
476
|
+
unknown,
|
|
265
477
|
ThrowOnError
|
|
266
478
|
>({
|
|
267
|
-
|
|
268
|
-
{
|
|
269
|
-
name: "x-api-token",
|
|
270
|
-
type: "apiKey",
|
|
271
|
-
},
|
|
272
|
-
],
|
|
273
|
-
url: "/tokens/{id}",
|
|
479
|
+
url: "/debug-sentry",
|
|
274
480
|
...options,
|
|
275
481
|
});
|
|
276
482
|
};
|
|
277
483
|
|
|
278
|
-
export const
|
|
484
|
+
export const apiTokenControllerCreateToken0V1 = <
|
|
279
485
|
ThrowOnError extends boolean = false,
|
|
280
486
|
>(
|
|
281
|
-
options: Options<
|
|
487
|
+
options: Options<ApiTokenControllerCreateToken0V1Data, ThrowOnError>,
|
|
282
488
|
) => {
|
|
283
|
-
return (options.client ?? _heyApiClient).
|
|
284
|
-
|
|
285
|
-
|
|
489
|
+
return (options.client ?? _heyApiClient).post<
|
|
490
|
+
ApiTokenControllerCreateToken0V1Responses,
|
|
491
|
+
ApiTokenControllerCreateToken0V1Errors,
|
|
286
492
|
ThrowOnError
|
|
287
493
|
>({
|
|
288
494
|
security: [
|
|
@@ -291,19 +497,26 @@ export const apiTokenControllerGetToken = <
|
|
|
291
497
|
type: "apiKey",
|
|
292
498
|
},
|
|
293
499
|
],
|
|
294
|
-
url: "/tokens
|
|
500
|
+
url: "/v1/tokens",
|
|
295
501
|
...options,
|
|
502
|
+
headers: {
|
|
503
|
+
"Content-Type": "application/json",
|
|
504
|
+
...options.headers,
|
|
505
|
+
},
|
|
296
506
|
});
|
|
297
507
|
};
|
|
298
508
|
|
|
299
|
-
|
|
509
|
+
/**
|
|
510
|
+
* @deprecated
|
|
511
|
+
*/
|
|
512
|
+
export const apiTokenControllerCreateToken1 = <
|
|
300
513
|
ThrowOnError extends boolean = false,
|
|
301
514
|
>(
|
|
302
|
-
options: Options<
|
|
515
|
+
options: Options<ApiTokenControllerCreateToken1Data, ThrowOnError>,
|
|
303
516
|
) => {
|
|
304
|
-
return (options.client ?? _heyApiClient).
|
|
305
|
-
|
|
306
|
-
|
|
517
|
+
return (options.client ?? _heyApiClient).post<
|
|
518
|
+
ApiTokenControllerCreateToken1Responses,
|
|
519
|
+
ApiTokenControllerCreateToken1Errors,
|
|
307
520
|
ThrowOnError
|
|
308
521
|
>({
|
|
309
522
|
security: [
|
|
@@ -312,8 +525,7 @@ export const apiTokenControllerUpdateToken = <
|
|
|
312
525
|
type: "apiKey",
|
|
313
526
|
},
|
|
314
527
|
],
|
|
315
|
-
|
|
316
|
-
url: "/tokens/{id}",
|
|
528
|
+
url: "/tokens",
|
|
317
529
|
...options,
|
|
318
530
|
headers: {
|
|
319
531
|
"Content-Type": "application/json",
|
|
@@ -322,38 +534,35 @@ export const apiTokenControllerUpdateToken = <
|
|
|
322
534
|
});
|
|
323
535
|
};
|
|
324
536
|
|
|
325
|
-
export const
|
|
537
|
+
export const apiTokenControllerDeleteToken0V1 = <
|
|
326
538
|
ThrowOnError extends boolean = false,
|
|
327
539
|
>(
|
|
328
|
-
options: Options<
|
|
329
|
-
ConditionsControllerGetSunAltitudeTimeLimitsData,
|
|
330
|
-
ThrowOnError
|
|
331
|
-
>,
|
|
540
|
+
options: Options<ApiTokenControllerDeleteToken0V1Data, ThrowOnError>,
|
|
332
541
|
) => {
|
|
333
|
-
return (options.client ?? _heyApiClient).
|
|
334
|
-
|
|
335
|
-
|
|
542
|
+
return (options.client ?? _heyApiClient).delete<
|
|
543
|
+
ApiTokenControllerDeleteToken0V1Responses,
|
|
544
|
+
ApiTokenControllerDeleteToken0V1Errors,
|
|
336
545
|
ThrowOnError
|
|
337
546
|
>({
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
547
|
+
security: [
|
|
548
|
+
{
|
|
549
|
+
name: "x-api-token",
|
|
550
|
+
type: "apiKey",
|
|
551
|
+
},
|
|
552
|
+
],
|
|
553
|
+
url: "/v1/tokens/{id}",
|
|
341
554
|
...options,
|
|
342
555
|
});
|
|
343
556
|
};
|
|
344
557
|
|
|
345
|
-
|
|
346
|
-
* Get all contracts
|
|
347
|
-
* Retrieve all activity and ERC20 contracts
|
|
348
|
-
*/
|
|
349
|
-
export const contractsControllerGetAllContracts = <
|
|
558
|
+
export const apiTokenControllerGetToken0V1 = <
|
|
350
559
|
ThrowOnError extends boolean = false,
|
|
351
560
|
>(
|
|
352
|
-
options
|
|
561
|
+
options: Options<ApiTokenControllerGetToken0V1Data, ThrowOnError>,
|
|
353
562
|
) => {
|
|
354
|
-
return (options
|
|
355
|
-
|
|
356
|
-
|
|
563
|
+
return (options.client ?? _heyApiClient).get<
|
|
564
|
+
ApiTokenControllerGetToken0V1Responses,
|
|
565
|
+
ApiTokenControllerGetToken0V1Errors,
|
|
357
566
|
ThrowOnError
|
|
358
567
|
>({
|
|
359
568
|
security: [
|
|
@@ -362,24 +571,19 @@ export const contractsControllerGetAllContracts = <
|
|
|
362
571
|
type: "apiKey",
|
|
363
572
|
},
|
|
364
573
|
],
|
|
365
|
-
|
|
366
|
-
url: "/contracts",
|
|
574
|
+
url: "/v1/tokens/{id}",
|
|
367
575
|
...options,
|
|
368
576
|
});
|
|
369
577
|
};
|
|
370
578
|
|
|
371
|
-
|
|
372
|
-
* Create a new contract
|
|
373
|
-
* Create either an activity contract or an ERC20 contract
|
|
374
|
-
*/
|
|
375
|
-
export const contractsControllerCreateContract = <
|
|
579
|
+
export const apiTokenControllerUpdateToken0V1 = <
|
|
376
580
|
ThrowOnError extends boolean = false,
|
|
377
581
|
>(
|
|
378
|
-
options: Options<
|
|
582
|
+
options: Options<ApiTokenControllerUpdateToken0V1Data, ThrowOnError>,
|
|
379
583
|
) => {
|
|
380
|
-
return (options.client ?? _heyApiClient).
|
|
381
|
-
|
|
382
|
-
|
|
584
|
+
return (options.client ?? _heyApiClient).patch<
|
|
585
|
+
ApiTokenControllerUpdateToken0V1Responses,
|
|
586
|
+
ApiTokenControllerUpdateToken0V1Errors,
|
|
383
587
|
ThrowOnError
|
|
384
588
|
>({
|
|
385
589
|
security: [
|
|
@@ -388,7 +592,8 @@ export const contractsControllerCreateContract = <
|
|
|
388
592
|
type: "apiKey",
|
|
389
593
|
},
|
|
390
594
|
],
|
|
391
|
-
|
|
595
|
+
responseTransformer: apiTokenControllerUpdateToken0V1ResponseTransformer,
|
|
596
|
+
url: "/v1/tokens/{id}",
|
|
392
597
|
...options,
|
|
393
598
|
headers: {
|
|
394
599
|
"Content-Type": "application/json",
|
|
@@ -398,17 +603,16 @@ export const contractsControllerCreateContract = <
|
|
|
398
603
|
};
|
|
399
604
|
|
|
400
605
|
/**
|
|
401
|
-
*
|
|
402
|
-
* Delete a contract by ID and type
|
|
606
|
+
* @deprecated
|
|
403
607
|
*/
|
|
404
|
-
export const
|
|
608
|
+
export const apiTokenControllerDeleteToken1 = <
|
|
405
609
|
ThrowOnError extends boolean = false,
|
|
406
610
|
>(
|
|
407
|
-
options: Options<
|
|
611
|
+
options: Options<ApiTokenControllerDeleteToken1Data, ThrowOnError>,
|
|
408
612
|
) => {
|
|
409
613
|
return (options.client ?? _heyApiClient).delete<
|
|
410
|
-
|
|
411
|
-
|
|
614
|
+
ApiTokenControllerDeleteToken1Responses,
|
|
615
|
+
ApiTokenControllerDeleteToken1Errors,
|
|
412
616
|
ThrowOnError
|
|
413
617
|
>({
|
|
414
618
|
security: [
|
|
@@ -417,23 +621,22 @@ export const contractsControllerDeleteContract = <
|
|
|
417
621
|
type: "apiKey",
|
|
418
622
|
},
|
|
419
623
|
],
|
|
420
|
-
url: "/
|
|
624
|
+
url: "/tokens/{id}",
|
|
421
625
|
...options,
|
|
422
626
|
});
|
|
423
627
|
};
|
|
424
628
|
|
|
425
629
|
/**
|
|
426
|
-
*
|
|
427
|
-
* Retrieve a specific contract by ID and type
|
|
630
|
+
* @deprecated
|
|
428
631
|
*/
|
|
429
|
-
export const
|
|
632
|
+
export const apiTokenControllerGetToken1 = <
|
|
430
633
|
ThrowOnError extends boolean = false,
|
|
431
634
|
>(
|
|
432
|
-
options: Options<
|
|
635
|
+
options: Options<ApiTokenControllerGetToken1Data, ThrowOnError>,
|
|
433
636
|
) => {
|
|
434
637
|
return (options.client ?? _heyApiClient).get<
|
|
435
|
-
|
|
436
|
-
|
|
638
|
+
ApiTokenControllerGetToken1Responses,
|
|
639
|
+
ApiTokenControllerGetToken1Errors,
|
|
437
640
|
ThrowOnError
|
|
438
641
|
>({
|
|
439
642
|
security: [
|
|
@@ -442,23 +645,22 @@ export const contractsControllerGetContract = <
|
|
|
442
645
|
type: "apiKey",
|
|
443
646
|
},
|
|
444
647
|
],
|
|
445
|
-
url: "/
|
|
648
|
+
url: "/tokens/{id}",
|
|
446
649
|
...options,
|
|
447
650
|
});
|
|
448
651
|
};
|
|
449
652
|
|
|
450
653
|
/**
|
|
451
|
-
*
|
|
452
|
-
* Update an existing contract
|
|
654
|
+
* @deprecated
|
|
453
655
|
*/
|
|
454
|
-
export const
|
|
656
|
+
export const apiTokenControllerUpdateToken1 = <
|
|
455
657
|
ThrowOnError extends boolean = false,
|
|
456
658
|
>(
|
|
457
|
-
options: Options<
|
|
659
|
+
options: Options<ApiTokenControllerUpdateToken1Data, ThrowOnError>,
|
|
458
660
|
) => {
|
|
459
661
|
return (options.client ?? _heyApiClient).patch<
|
|
460
|
-
|
|
461
|
-
|
|
662
|
+
ApiTokenControllerUpdateToken1Responses,
|
|
663
|
+
ApiTokenControllerUpdateToken1Errors,
|
|
462
664
|
ThrowOnError
|
|
463
665
|
>({
|
|
464
666
|
security: [
|
|
@@ -467,7 +669,8 @@ export const contractsControllerUpdateContract = <
|
|
|
467
669
|
type: "apiKey",
|
|
468
670
|
},
|
|
469
671
|
],
|
|
470
|
-
|
|
672
|
+
responseTransformer: apiTokenControllerUpdateToken1ResponseTransformer,
|
|
673
|
+
url: "/tokens/{id}",
|
|
471
674
|
...options,
|
|
472
675
|
headers: {
|
|
473
676
|
"Content-Type": "application/json",
|
|
@@ -476,18 +679,14 @@ export const contractsControllerUpdateContract = <
|
|
|
476
679
|
});
|
|
477
680
|
};
|
|
478
681
|
|
|
479
|
-
|
|
480
|
-
* Redrive messages from a DLQ topic back to its main topic
|
|
481
|
-
* 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.
|
|
482
|
-
*/
|
|
483
|
-
export const dlqRedriverControllerRedriveDlq = <
|
|
682
|
+
export const campaignsControllerGetMany0V1 = <
|
|
484
683
|
ThrowOnError extends boolean = false,
|
|
485
684
|
>(
|
|
486
|
-
options
|
|
685
|
+
options?: Options<CampaignsControllerGetMany0V1Data, ThrowOnError>,
|
|
487
686
|
) => {
|
|
488
|
-
return (options
|
|
489
|
-
|
|
490
|
-
|
|
687
|
+
return (options?.client ?? _heyApiClient).get<
|
|
688
|
+
CampaignsControllerGetMany0V1Responses,
|
|
689
|
+
CampaignsControllerGetMany0V1Errors,
|
|
491
690
|
ThrowOnError
|
|
492
691
|
>({
|
|
493
692
|
security: [
|
|
@@ -496,23 +695,19 @@ export const dlqRedriverControllerRedriveDlq = <
|
|
|
496
695
|
type: "apiKey",
|
|
497
696
|
},
|
|
498
697
|
],
|
|
499
|
-
url: "/
|
|
698
|
+
url: "/v1/campaigns",
|
|
500
699
|
...options,
|
|
501
|
-
headers: {
|
|
502
|
-
"Content-Type": "application/json",
|
|
503
|
-
...options.headers,
|
|
504
|
-
},
|
|
505
700
|
});
|
|
506
701
|
};
|
|
507
702
|
|
|
508
|
-
export const
|
|
703
|
+
export const campaignsControllerCreate0V1 = <
|
|
509
704
|
ThrowOnError extends boolean = false,
|
|
510
705
|
>(
|
|
511
|
-
options: Options<
|
|
706
|
+
options: Options<CampaignsControllerCreate0V1Data, ThrowOnError>,
|
|
512
707
|
) => {
|
|
513
|
-
return (options.client ?? _heyApiClient).
|
|
514
|
-
|
|
515
|
-
|
|
708
|
+
return (options.client ?? _heyApiClient).post<
|
|
709
|
+
CampaignsControllerCreate0V1Responses,
|
|
710
|
+
CampaignsControllerCreate0V1Errors,
|
|
516
711
|
ThrowOnError
|
|
517
712
|
>({
|
|
518
713
|
security: [
|
|
@@ -521,19 +716,26 @@ export const flightsControllerGenerateStorageKey = <
|
|
|
521
716
|
type: "apiKey",
|
|
522
717
|
},
|
|
523
718
|
],
|
|
524
|
-
url: "/
|
|
719
|
+
url: "/v1/campaigns",
|
|
525
720
|
...options,
|
|
721
|
+
headers: {
|
|
722
|
+
"Content-Type": "application/json",
|
|
723
|
+
...options.headers,
|
|
724
|
+
},
|
|
526
725
|
});
|
|
527
726
|
};
|
|
528
727
|
|
|
529
|
-
|
|
728
|
+
/**
|
|
729
|
+
* @deprecated
|
|
730
|
+
*/
|
|
731
|
+
export const campaignsControllerGetMany1 = <
|
|
530
732
|
ThrowOnError extends boolean = false,
|
|
531
733
|
>(
|
|
532
|
-
options
|
|
734
|
+
options?: Options<CampaignsControllerGetMany1Data, ThrowOnError>,
|
|
533
735
|
) => {
|
|
534
|
-
return (options
|
|
535
|
-
|
|
536
|
-
|
|
736
|
+
return (options?.client ?? _heyApiClient).get<
|
|
737
|
+
CampaignsControllerGetMany1Responses,
|
|
738
|
+
CampaignsControllerGetMany1Errors,
|
|
537
739
|
ThrowOnError
|
|
538
740
|
>({
|
|
539
741
|
security: [
|
|
@@ -542,20 +744,22 @@ export const flightsControllerGetFlight = <
|
|
|
542
744
|
type: "apiKey",
|
|
543
745
|
},
|
|
544
746
|
],
|
|
545
|
-
|
|
546
|
-
url: "/flights/{flightId}",
|
|
747
|
+
url: "/campaigns",
|
|
547
748
|
...options,
|
|
548
749
|
});
|
|
549
750
|
};
|
|
550
751
|
|
|
551
|
-
|
|
752
|
+
/**
|
|
753
|
+
* @deprecated
|
|
754
|
+
*/
|
|
755
|
+
export const campaignsControllerCreate1 = <
|
|
552
756
|
ThrowOnError extends boolean = false,
|
|
553
757
|
>(
|
|
554
|
-
options: Options<
|
|
758
|
+
options: Options<CampaignsControllerCreate1Data, ThrowOnError>,
|
|
555
759
|
) => {
|
|
556
760
|
return (options.client ?? _heyApiClient).post<
|
|
557
|
-
|
|
558
|
-
|
|
761
|
+
CampaignsControllerCreate1Responses,
|
|
762
|
+
CampaignsControllerCreate1Errors,
|
|
559
763
|
ThrowOnError
|
|
560
764
|
>({
|
|
561
765
|
security: [
|
|
@@ -564,7 +768,7 @@ export const flightsControllerCreatePresignedUrls = <
|
|
|
564
768
|
type: "apiKey",
|
|
565
769
|
},
|
|
566
770
|
],
|
|
567
|
-
url: "/
|
|
771
|
+
url: "/campaigns",
|
|
568
772
|
...options,
|
|
569
773
|
headers: {
|
|
570
774
|
"Content-Type": "application/json",
|
|
@@ -573,14 +777,14 @@ export const flightsControllerCreatePresignedUrls = <
|
|
|
573
777
|
});
|
|
574
778
|
};
|
|
575
779
|
|
|
576
|
-
export const
|
|
780
|
+
export const campaignsControllerDelete0V1 = <
|
|
577
781
|
ThrowOnError extends boolean = false,
|
|
578
782
|
>(
|
|
579
|
-
options: Options<
|
|
783
|
+
options: Options<CampaignsControllerDelete0V1Data, ThrowOnError>,
|
|
580
784
|
) => {
|
|
581
|
-
return (options.client ?? _heyApiClient).
|
|
582
|
-
|
|
583
|
-
|
|
785
|
+
return (options.client ?? _heyApiClient).delete<
|
|
786
|
+
CampaignsControllerDelete0V1Responses,
|
|
787
|
+
CampaignsControllerDelete0V1Errors,
|
|
584
788
|
ThrowOnError
|
|
585
789
|
>({
|
|
586
790
|
security: [
|
|
@@ -589,28 +793,17 @@ export const flightsControllerValidateFlight = <
|
|
|
589
793
|
type: "apiKey",
|
|
590
794
|
},
|
|
591
795
|
],
|
|
592
|
-
|
|
593
|
-
url: "/flights",
|
|
796
|
+
url: "/v1/campaigns/{id}",
|
|
594
797
|
...options,
|
|
595
|
-
headers: {
|
|
596
|
-
"Content-Type": "application/json",
|
|
597
|
-
...options.headers,
|
|
598
|
-
},
|
|
599
798
|
});
|
|
600
799
|
};
|
|
601
800
|
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
* Returns all available flight plan templates. These define capture patterns (map, panorama) that can be used for drone missions.
|
|
605
|
-
*/
|
|
606
|
-
export const flightPlansControllerGetMany = <
|
|
607
|
-
ThrowOnError extends boolean = false,
|
|
608
|
-
>(
|
|
609
|
-
options?: Options<FlightPlansControllerGetManyData, ThrowOnError>,
|
|
801
|
+
export const campaignsControllerGet0V1 = <ThrowOnError extends boolean = false>(
|
|
802
|
+
options: Options<CampaignsControllerGet0V1Data, ThrowOnError>,
|
|
610
803
|
) => {
|
|
611
|
-
return (options
|
|
612
|
-
|
|
613
|
-
|
|
804
|
+
return (options.client ?? _heyApiClient).get<
|
|
805
|
+
CampaignsControllerGet0V1Responses,
|
|
806
|
+
CampaignsControllerGet0V1Errors,
|
|
614
807
|
ThrowOnError
|
|
615
808
|
>({
|
|
616
809
|
security: [
|
|
@@ -619,24 +812,19 @@ export const flightPlansControllerGetMany = <
|
|
|
619
812
|
type: "apiKey",
|
|
620
813
|
},
|
|
621
814
|
],
|
|
622
|
-
|
|
623
|
-
url: "/flight-plans",
|
|
815
|
+
url: "/v1/campaigns/{id}",
|
|
624
816
|
...options,
|
|
625
817
|
});
|
|
626
818
|
};
|
|
627
819
|
|
|
628
|
-
|
|
629
|
-
* Create a new flight plan
|
|
630
|
-
* Creates a new flight plan template with sections and connection strategy.
|
|
631
|
-
*/
|
|
632
|
-
export const flightPlansControllerCreate = <
|
|
820
|
+
export const campaignsControllerUpdate0V1 = <
|
|
633
821
|
ThrowOnError extends boolean = false,
|
|
634
822
|
>(
|
|
635
|
-
options: Options<
|
|
823
|
+
options: Options<CampaignsControllerUpdate0V1Data, ThrowOnError>,
|
|
636
824
|
) => {
|
|
637
|
-
return (options.client ?? _heyApiClient).
|
|
638
|
-
|
|
639
|
-
|
|
825
|
+
return (options.client ?? _heyApiClient).put<
|
|
826
|
+
CampaignsControllerUpdate0V1Responses,
|
|
827
|
+
CampaignsControllerUpdate0V1Errors,
|
|
640
828
|
ThrowOnError
|
|
641
829
|
>({
|
|
642
830
|
security: [
|
|
@@ -645,8 +833,7 @@ export const flightPlansControllerCreate = <
|
|
|
645
833
|
type: "apiKey",
|
|
646
834
|
},
|
|
647
835
|
],
|
|
648
|
-
|
|
649
|
-
url: "/flight-plans",
|
|
836
|
+
url: "/v1/campaigns/{id}",
|
|
650
837
|
...options,
|
|
651
838
|
headers: {
|
|
652
839
|
"Content-Type": "application/json",
|
|
@@ -656,15 +843,16 @@ export const flightPlansControllerCreate = <
|
|
|
656
843
|
};
|
|
657
844
|
|
|
658
845
|
/**
|
|
659
|
-
*
|
|
660
|
-
* Returns a single flight plan template by its ID.
|
|
846
|
+
* @deprecated
|
|
661
847
|
*/
|
|
662
|
-
export const
|
|
663
|
-
|
|
848
|
+
export const campaignsControllerDelete1 = <
|
|
849
|
+
ThrowOnError extends boolean = false,
|
|
850
|
+
>(
|
|
851
|
+
options: Options<CampaignsControllerDelete1Data, ThrowOnError>,
|
|
664
852
|
) => {
|
|
665
|
-
return (options.client ?? _heyApiClient).
|
|
666
|
-
|
|
667
|
-
|
|
853
|
+
return (options.client ?? _heyApiClient).delete<
|
|
854
|
+
CampaignsControllerDelete1Responses,
|
|
855
|
+
CampaignsControllerDelete1Errors,
|
|
668
856
|
ThrowOnError
|
|
669
857
|
>({
|
|
670
858
|
security: [
|
|
@@ -673,23 +861,20 @@ export const flightPlansControllerGet = <ThrowOnError extends boolean = false>(
|
|
|
673
861
|
type: "apiKey",
|
|
674
862
|
},
|
|
675
863
|
],
|
|
676
|
-
|
|
677
|
-
url: "/flight-plans/{id}",
|
|
864
|
+
url: "/campaigns/{id}",
|
|
678
865
|
...options,
|
|
679
866
|
});
|
|
680
867
|
};
|
|
681
868
|
|
|
682
869
|
/**
|
|
683
|
-
*
|
|
870
|
+
* @deprecated
|
|
684
871
|
*/
|
|
685
|
-
export const
|
|
686
|
-
|
|
687
|
-
>(
|
|
688
|
-
options: Options<FlightReviewsControllerGetFlightReviewData, ThrowOnError>,
|
|
872
|
+
export const campaignsControllerGet1 = <ThrowOnError extends boolean = false>(
|
|
873
|
+
options: Options<CampaignsControllerGet1Data, ThrowOnError>,
|
|
689
874
|
) => {
|
|
690
875
|
return (options.client ?? _heyApiClient).get<
|
|
691
|
-
|
|
692
|
-
|
|
876
|
+
CampaignsControllerGet1Responses,
|
|
877
|
+
CampaignsControllerGet1Errors,
|
|
693
878
|
ThrowOnError
|
|
694
879
|
>({
|
|
695
880
|
security: [
|
|
@@ -698,24 +883,22 @@ export const flightReviewsControllerGetFlightReview = <
|
|
|
698
883
|
type: "apiKey",
|
|
699
884
|
},
|
|
700
885
|
],
|
|
701
|
-
|
|
702
|
-
flightReviewsControllerGetFlightReviewResponseTransformer,
|
|
703
|
-
url: "/flight-reviews/{id}",
|
|
886
|
+
url: "/campaigns/{id}",
|
|
704
887
|
...options,
|
|
705
888
|
});
|
|
706
889
|
};
|
|
707
890
|
|
|
708
891
|
/**
|
|
709
|
-
*
|
|
892
|
+
* @deprecated
|
|
710
893
|
*/
|
|
711
|
-
export const
|
|
894
|
+
export const campaignsControllerUpdate1 = <
|
|
712
895
|
ThrowOnError extends boolean = false,
|
|
713
896
|
>(
|
|
714
|
-
options: Options<
|
|
897
|
+
options: Options<CampaignsControllerUpdate1Data, ThrowOnError>,
|
|
715
898
|
) => {
|
|
716
|
-
return (options.client ?? _heyApiClient).
|
|
717
|
-
|
|
718
|
-
|
|
899
|
+
return (options.client ?? _heyApiClient).put<
|
|
900
|
+
CampaignsControllerUpdate1Responses,
|
|
901
|
+
CampaignsControllerUpdate1Errors,
|
|
719
902
|
ThrowOnError
|
|
720
903
|
>({
|
|
721
904
|
security: [
|
|
@@ -724,65 +907,70 @@ export const flightReviewsControllerGetFlightReviews = <
|
|
|
724
907
|
type: "apiKey",
|
|
725
908
|
},
|
|
726
909
|
],
|
|
727
|
-
|
|
728
|
-
flightReviewsControllerGetFlightReviewsResponseTransformer,
|
|
729
|
-
url: "/flight-reviews",
|
|
910
|
+
url: "/campaigns/{id}",
|
|
730
911
|
...options,
|
|
912
|
+
headers: {
|
|
913
|
+
"Content-Type": "application/json",
|
|
914
|
+
...options.headers,
|
|
915
|
+
},
|
|
731
916
|
});
|
|
732
917
|
};
|
|
733
918
|
|
|
734
|
-
export const
|
|
919
|
+
export const conditionsControllerGetSunAltitudeTimeLimits0V1 = <
|
|
735
920
|
ThrowOnError extends boolean = false,
|
|
736
921
|
>(
|
|
737
|
-
options
|
|
922
|
+
options: Options<
|
|
923
|
+
ConditionsControllerGetSunAltitudeTimeLimits0V1Data,
|
|
924
|
+
ThrowOnError
|
|
925
|
+
>,
|
|
738
926
|
) => {
|
|
739
|
-
return (options
|
|
740
|
-
|
|
927
|
+
return (options.client ?? _heyApiClient).get<
|
|
928
|
+
ConditionsControllerGetSunAltitudeTimeLimits0V1Responses,
|
|
741
929
|
unknown,
|
|
742
930
|
ThrowOnError
|
|
743
931
|
>({
|
|
744
|
-
|
|
932
|
+
responseTransformer:
|
|
933
|
+
conditionsControllerGetSunAltitudeTimeLimits0V1ResponseTransformer,
|
|
934
|
+
url: "/v1/conditions/sun-altitude",
|
|
745
935
|
...options,
|
|
746
936
|
});
|
|
747
937
|
};
|
|
748
938
|
|
|
749
939
|
/**
|
|
750
|
-
*
|
|
940
|
+
* @deprecated
|
|
751
941
|
*/
|
|
752
|
-
export const
|
|
942
|
+
export const conditionsControllerGetSunAltitudeTimeLimits1 = <
|
|
753
943
|
ThrowOnError extends boolean = false,
|
|
754
944
|
>(
|
|
755
|
-
options: Options<
|
|
945
|
+
options: Options<
|
|
946
|
+
ConditionsControllerGetSunAltitudeTimeLimits1Data,
|
|
947
|
+
ThrowOnError
|
|
948
|
+
>,
|
|
756
949
|
) => {
|
|
757
950
|
return (options.client ?? _heyApiClient).get<
|
|
758
|
-
|
|
759
|
-
|
|
951
|
+
ConditionsControllerGetSunAltitudeTimeLimits1Responses,
|
|
952
|
+
unknown,
|
|
760
953
|
ThrowOnError
|
|
761
954
|
>({
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
type: "apiKey",
|
|
766
|
-
},
|
|
767
|
-
],
|
|
768
|
-
responseTransformer: missionsControllerGetMissionResponseTransformer,
|
|
769
|
-
url: "/missions/{id}",
|
|
955
|
+
responseTransformer:
|
|
956
|
+
conditionsControllerGetSunAltitudeTimeLimits1ResponseTransformer,
|
|
957
|
+
url: "/conditions/sun-altitude",
|
|
770
958
|
...options,
|
|
771
959
|
});
|
|
772
960
|
};
|
|
773
961
|
|
|
774
962
|
/**
|
|
775
|
-
* Get
|
|
776
|
-
*
|
|
963
|
+
* Get all contracts
|
|
964
|
+
* Retrieve all activity and ERC20 contracts
|
|
777
965
|
*/
|
|
778
|
-
export const
|
|
966
|
+
export const contractsControllerGetAllContracts0V1 = <
|
|
779
967
|
ThrowOnError extends boolean = false,
|
|
780
968
|
>(
|
|
781
|
-
options?: Options<
|
|
969
|
+
options?: Options<ContractsControllerGetAllContracts0V1Data, ThrowOnError>,
|
|
782
970
|
) => {
|
|
783
971
|
return (options?.client ?? _heyApiClient).get<
|
|
784
|
-
|
|
785
|
-
|
|
972
|
+
ContractsControllerGetAllContracts0V1Responses,
|
|
973
|
+
ContractsControllerGetAllContracts0V1Errors,
|
|
786
974
|
ThrowOnError
|
|
787
975
|
>({
|
|
788
976
|
security: [
|
|
@@ -791,24 +979,25 @@ export const missionsControllerGetMissions = <
|
|
|
791
979
|
type: "apiKey",
|
|
792
980
|
},
|
|
793
981
|
],
|
|
794
|
-
responseTransformer:
|
|
795
|
-
|
|
982
|
+
responseTransformer:
|
|
983
|
+
contractsControllerGetAllContracts0V1ResponseTransformer,
|
|
984
|
+
url: "/v1/contracts",
|
|
796
985
|
...options,
|
|
797
986
|
});
|
|
798
987
|
};
|
|
799
988
|
|
|
800
989
|
/**
|
|
801
|
-
* Create new
|
|
802
|
-
* Create
|
|
990
|
+
* Create a new contract
|
|
991
|
+
* Create either an activity contract or an ERC20 contract
|
|
803
992
|
*/
|
|
804
|
-
export const
|
|
993
|
+
export const contractsControllerCreateContract0V1 = <
|
|
805
994
|
ThrowOnError extends boolean = false,
|
|
806
995
|
>(
|
|
807
|
-
options: Options<
|
|
996
|
+
options: Options<ContractsControllerCreateContract0V1Data, ThrowOnError>,
|
|
808
997
|
) => {
|
|
809
998
|
return (options.client ?? _heyApiClient).post<
|
|
810
|
-
|
|
811
|
-
|
|
999
|
+
ContractsControllerCreateContract0V1Responses,
|
|
1000
|
+
ContractsControllerCreateContract0V1Errors,
|
|
812
1001
|
ThrowOnError
|
|
813
1002
|
>({
|
|
814
1003
|
security: [
|
|
@@ -817,8 +1006,7 @@ export const missionsControllerCreateMissions = <
|
|
|
817
1006
|
type: "apiKey",
|
|
818
1007
|
},
|
|
819
1008
|
],
|
|
820
|
-
|
|
821
|
-
url: "/missions",
|
|
1009
|
+
url: "/v1/contracts",
|
|
822
1010
|
...options,
|
|
823
1011
|
headers: {
|
|
824
1012
|
"Content-Type": "application/json",
|
|
@@ -828,17 +1016,18 @@ export const missionsControllerCreateMissions = <
|
|
|
828
1016
|
};
|
|
829
1017
|
|
|
830
1018
|
/**
|
|
831
|
-
*
|
|
832
|
-
*
|
|
1019
|
+
* Get all contracts
|
|
1020
|
+
* Retrieve all activity and ERC20 contracts
|
|
1021
|
+
* @deprecated
|
|
833
1022
|
*/
|
|
834
|
-
export const
|
|
1023
|
+
export const contractsControllerGetAllContracts1 = <
|
|
835
1024
|
ThrowOnError extends boolean = false,
|
|
836
1025
|
>(
|
|
837
|
-
options
|
|
1026
|
+
options?: Options<ContractsControllerGetAllContracts1Data, ThrowOnError>,
|
|
838
1027
|
) => {
|
|
839
|
-
return (options
|
|
840
|
-
|
|
841
|
-
|
|
1028
|
+
return (options?.client ?? _heyApiClient).get<
|
|
1029
|
+
ContractsControllerGetAllContracts1Responses,
|
|
1030
|
+
ContractsControllerGetAllContracts1Errors,
|
|
842
1031
|
ThrowOnError
|
|
843
1032
|
>({
|
|
844
1033
|
security: [
|
|
@@ -847,27 +1036,25 @@ export const missionsControllerUpdateMissions = <
|
|
|
847
1036
|
type: "apiKey",
|
|
848
1037
|
},
|
|
849
1038
|
],
|
|
850
|
-
|
|
1039
|
+
responseTransformer: contractsControllerGetAllContracts1ResponseTransformer,
|
|
1040
|
+
url: "/contracts",
|
|
851
1041
|
...options,
|
|
852
|
-
headers: {
|
|
853
|
-
"Content-Type": "application/json",
|
|
854
|
-
...options.headers,
|
|
855
|
-
},
|
|
856
1042
|
});
|
|
857
1043
|
};
|
|
858
1044
|
|
|
859
1045
|
/**
|
|
860
|
-
*
|
|
861
|
-
*
|
|
1046
|
+
* Create a new contract
|
|
1047
|
+
* Create either an activity contract or an ERC20 contract
|
|
1048
|
+
* @deprecated
|
|
862
1049
|
*/
|
|
863
|
-
export const
|
|
1050
|
+
export const contractsControllerCreateContract1 = <
|
|
864
1051
|
ThrowOnError extends boolean = false,
|
|
865
1052
|
>(
|
|
866
|
-
options: Options<
|
|
1053
|
+
options: Options<ContractsControllerCreateContract1Data, ThrowOnError>,
|
|
867
1054
|
) => {
|
|
868
|
-
return (options.client ?? _heyApiClient).
|
|
869
|
-
|
|
870
|
-
|
|
1055
|
+
return (options.client ?? _heyApiClient).post<
|
|
1056
|
+
ContractsControllerCreateContract1Responses,
|
|
1057
|
+
ContractsControllerCreateContract1Errors,
|
|
871
1058
|
ThrowOnError
|
|
872
1059
|
>({
|
|
873
1060
|
security: [
|
|
@@ -876,7 +1063,7 @@ export const missionsControllerRepriceMissions = <
|
|
|
876
1063
|
type: "apiKey",
|
|
877
1064
|
},
|
|
878
1065
|
],
|
|
879
|
-
url: "/
|
|
1066
|
+
url: "/contracts",
|
|
880
1067
|
...options,
|
|
881
1068
|
headers: {
|
|
882
1069
|
"Content-Type": "application/json",
|
|
@@ -885,17 +1072,18 @@ export const missionsControllerRepriceMissions = <
|
|
|
885
1072
|
});
|
|
886
1073
|
};
|
|
887
1074
|
|
|
888
|
-
|
|
1075
|
+
/**
|
|
1076
|
+
* Delete a contract
|
|
1077
|
+
* Delete a contract by ID and type
|
|
1078
|
+
*/
|
|
1079
|
+
export const contractsControllerDeleteContract0V1 = <
|
|
889
1080
|
ThrowOnError extends boolean = false,
|
|
890
1081
|
>(
|
|
891
|
-
options: Options<
|
|
892
|
-
ProtocolTriggersApiControllerTriggerPayoutData,
|
|
893
|
-
ThrowOnError
|
|
894
|
-
>,
|
|
1082
|
+
options: Options<ContractsControllerDeleteContract0V1Data, ThrowOnError>,
|
|
895
1083
|
) => {
|
|
896
|
-
return (options.client ?? _heyApiClient).
|
|
897
|
-
|
|
898
|
-
|
|
1084
|
+
return (options.client ?? _heyApiClient).delete<
|
|
1085
|
+
ContractsControllerDeleteContract0V1Responses,
|
|
1086
|
+
ContractsControllerDeleteContract0V1Errors,
|
|
899
1087
|
ThrowOnError
|
|
900
1088
|
>({
|
|
901
1089
|
security: [
|
|
@@ -904,26 +1092,23 @@ export const protocolTriggersApiControllerTriggerPayout = <
|
|
|
904
1092
|
type: "apiKey",
|
|
905
1093
|
},
|
|
906
1094
|
],
|
|
907
|
-
url: "/
|
|
1095
|
+
url: "/v1/contracts/{id}",
|
|
908
1096
|
...options,
|
|
909
|
-
headers: {
|
|
910
|
-
"Content-Type": "application/json",
|
|
911
|
-
...options.headers,
|
|
912
|
-
},
|
|
913
1097
|
});
|
|
914
1098
|
};
|
|
915
1099
|
|
|
916
|
-
|
|
1100
|
+
/**
|
|
1101
|
+
* Get a contract by ID
|
|
1102
|
+
* Retrieve a specific contract by ID and type
|
|
1103
|
+
*/
|
|
1104
|
+
export const contractsControllerGetContract0V1 = <
|
|
917
1105
|
ThrowOnError extends boolean = false,
|
|
918
1106
|
>(
|
|
919
|
-
options: Options<
|
|
920
|
-
ProtocolTriggersApiControllerTriggerMissionCloseData,
|
|
921
|
-
ThrowOnError
|
|
922
|
-
>,
|
|
1107
|
+
options: Options<ContractsControllerGetContract0V1Data, ThrowOnError>,
|
|
923
1108
|
) => {
|
|
924
|
-
return (options.client ?? _heyApiClient).
|
|
925
|
-
|
|
926
|
-
|
|
1109
|
+
return (options.client ?? _heyApiClient).get<
|
|
1110
|
+
ContractsControllerGetContract0V1Responses,
|
|
1111
|
+
ContractsControllerGetContract0V1Errors,
|
|
927
1112
|
ThrowOnError
|
|
928
1113
|
>({
|
|
929
1114
|
security: [
|
|
@@ -932,23 +1117,23 @@ export const protocolTriggersApiControllerTriggerMissionClose = <
|
|
|
932
1117
|
type: "apiKey",
|
|
933
1118
|
},
|
|
934
1119
|
],
|
|
935
|
-
url: "/
|
|
1120
|
+
url: "/v1/contracts/{id}",
|
|
936
1121
|
...options,
|
|
937
|
-
headers: {
|
|
938
|
-
"Content-Type": "application/json",
|
|
939
|
-
...options.headers,
|
|
940
|
-
},
|
|
941
1122
|
});
|
|
942
1123
|
};
|
|
943
1124
|
|
|
944
|
-
|
|
1125
|
+
/**
|
|
1126
|
+
* Update a contract
|
|
1127
|
+
* Update an existing contract
|
|
1128
|
+
*/
|
|
1129
|
+
export const contractsControllerUpdateContract0V1 = <
|
|
945
1130
|
ThrowOnError extends boolean = false,
|
|
946
1131
|
>(
|
|
947
|
-
options: Options<
|
|
1132
|
+
options: Options<ContractsControllerUpdateContract0V1Data, ThrowOnError>,
|
|
948
1133
|
) => {
|
|
949
|
-
return (options.client ?? _heyApiClient).
|
|
950
|
-
|
|
951
|
-
|
|
1134
|
+
return (options.client ?? _heyApiClient).patch<
|
|
1135
|
+
ContractsControllerUpdateContract0V1Responses,
|
|
1136
|
+
ContractsControllerUpdateContract0V1Errors,
|
|
952
1137
|
ThrowOnError
|
|
953
1138
|
>({
|
|
954
1139
|
security: [
|
|
@@ -957,7 +1142,7 @@ export const quotesControllerCreateQuote = <
|
|
|
957
1142
|
type: "apiKey",
|
|
958
1143
|
},
|
|
959
1144
|
],
|
|
960
|
-
url: "/
|
|
1145
|
+
url: "/v1/contracts/{id}",
|
|
961
1146
|
...options,
|
|
962
1147
|
headers: {
|
|
963
1148
|
"Content-Type": "application/json",
|
|
@@ -966,12 +1151,19 @@ export const quotesControllerCreateQuote = <
|
|
|
966
1151
|
});
|
|
967
1152
|
};
|
|
968
1153
|
|
|
969
|
-
|
|
970
|
-
|
|
1154
|
+
/**
|
|
1155
|
+
* Delete a contract
|
|
1156
|
+
* Delete a contract by ID and type
|
|
1157
|
+
* @deprecated
|
|
1158
|
+
*/
|
|
1159
|
+
export const contractsControllerDeleteContract1 = <
|
|
1160
|
+
ThrowOnError extends boolean = false,
|
|
1161
|
+
>(
|
|
1162
|
+
options: Options<ContractsControllerDeleteContract1Data, ThrowOnError>,
|
|
971
1163
|
) => {
|
|
972
|
-
return (options.client ?? _heyApiClient).
|
|
973
|
-
|
|
974
|
-
|
|
1164
|
+
return (options.client ?? _heyApiClient).delete<
|
|
1165
|
+
ContractsControllerDeleteContract1Responses,
|
|
1166
|
+
ContractsControllerDeleteContract1Errors,
|
|
975
1167
|
ThrowOnError
|
|
976
1168
|
>({
|
|
977
1169
|
security: [
|
|
@@ -980,19 +1172,1244 @@ export const quotesControllerGetQuote = <ThrowOnError extends boolean = false>(
|
|
|
980
1172
|
type: "apiKey",
|
|
981
1173
|
},
|
|
982
1174
|
],
|
|
983
|
-
url: "/
|
|
1175
|
+
url: "/contracts/{id}",
|
|
984
1176
|
...options,
|
|
985
1177
|
});
|
|
986
1178
|
};
|
|
987
1179
|
|
|
988
|
-
|
|
1180
|
+
/**
|
|
1181
|
+
* Get a contract by ID
|
|
1182
|
+
* Retrieve a specific contract by ID and type
|
|
1183
|
+
* @deprecated
|
|
1184
|
+
*/
|
|
1185
|
+
export const contractsControllerGetContract1 = <
|
|
1186
|
+
ThrowOnError extends boolean = false,
|
|
1187
|
+
>(
|
|
1188
|
+
options: Options<ContractsControllerGetContract1Data, ThrowOnError>,
|
|
1189
|
+
) => {
|
|
1190
|
+
return (options.client ?? _heyApiClient).get<
|
|
1191
|
+
ContractsControllerGetContract1Responses,
|
|
1192
|
+
ContractsControllerGetContract1Errors,
|
|
1193
|
+
ThrowOnError
|
|
1194
|
+
>({
|
|
1195
|
+
security: [
|
|
1196
|
+
{
|
|
1197
|
+
name: "x-api-token",
|
|
1198
|
+
type: "apiKey",
|
|
1199
|
+
},
|
|
1200
|
+
],
|
|
1201
|
+
url: "/contracts/{id}",
|
|
1202
|
+
...options,
|
|
1203
|
+
});
|
|
1204
|
+
};
|
|
1205
|
+
|
|
1206
|
+
/**
|
|
1207
|
+
* Update a contract
|
|
1208
|
+
* Update an existing contract
|
|
1209
|
+
* @deprecated
|
|
1210
|
+
*/
|
|
1211
|
+
export const contractsControllerUpdateContract1 = <
|
|
1212
|
+
ThrowOnError extends boolean = false,
|
|
1213
|
+
>(
|
|
1214
|
+
options: Options<ContractsControllerUpdateContract1Data, ThrowOnError>,
|
|
1215
|
+
) => {
|
|
1216
|
+
return (options.client ?? _heyApiClient).patch<
|
|
1217
|
+
ContractsControllerUpdateContract1Responses,
|
|
1218
|
+
ContractsControllerUpdateContract1Errors,
|
|
1219
|
+
ThrowOnError
|
|
1220
|
+
>({
|
|
1221
|
+
security: [
|
|
1222
|
+
{
|
|
1223
|
+
name: "x-api-token",
|
|
1224
|
+
type: "apiKey",
|
|
1225
|
+
},
|
|
1226
|
+
],
|
|
1227
|
+
url: "/contracts/{id}",
|
|
1228
|
+
...options,
|
|
1229
|
+
headers: {
|
|
1230
|
+
"Content-Type": "application/json",
|
|
1231
|
+
...options.headers,
|
|
1232
|
+
},
|
|
1233
|
+
});
|
|
1234
|
+
};
|
|
1235
|
+
|
|
1236
|
+
/**
|
|
1237
|
+
* Redrive messages from a DLQ topic back to its main topic
|
|
1238
|
+
* 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
|
+
*/
|
|
1240
|
+
export const dlqRedriverControllerRedriveDlq0V1 = <
|
|
1241
|
+
ThrowOnError extends boolean = false,
|
|
1242
|
+
>(
|
|
1243
|
+
options: Options<DlqRedriverControllerRedriveDlq0V1Data, ThrowOnError>,
|
|
1244
|
+
) => {
|
|
1245
|
+
return (options.client ?? _heyApiClient).post<
|
|
1246
|
+
DlqRedriverControllerRedriveDlq0V1Responses,
|
|
1247
|
+
DlqRedriverControllerRedriveDlq0V1Errors,
|
|
1248
|
+
ThrowOnError
|
|
1249
|
+
>({
|
|
1250
|
+
security: [
|
|
1251
|
+
{
|
|
1252
|
+
name: "x-api-token",
|
|
1253
|
+
type: "apiKey",
|
|
1254
|
+
},
|
|
1255
|
+
],
|
|
1256
|
+
url: "/v1/dlq-redriver/redrive",
|
|
1257
|
+
...options,
|
|
1258
|
+
headers: {
|
|
1259
|
+
"Content-Type": "application/json",
|
|
1260
|
+
...options.headers,
|
|
1261
|
+
},
|
|
1262
|
+
});
|
|
1263
|
+
};
|
|
1264
|
+
|
|
1265
|
+
/**
|
|
1266
|
+
* Redrive messages from a DLQ topic back to its main topic
|
|
1267
|
+
* 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.
|
|
1268
|
+
* @deprecated
|
|
1269
|
+
*/
|
|
1270
|
+
export const dlqRedriverControllerRedriveDlq1 = <
|
|
1271
|
+
ThrowOnError extends boolean = false,
|
|
1272
|
+
>(
|
|
1273
|
+
options: Options<DlqRedriverControllerRedriveDlq1Data, ThrowOnError>,
|
|
1274
|
+
) => {
|
|
1275
|
+
return (options.client ?? _heyApiClient).post<
|
|
1276
|
+
DlqRedriverControllerRedriveDlq1Responses,
|
|
1277
|
+
DlqRedriverControllerRedriveDlq1Errors,
|
|
1278
|
+
ThrowOnError
|
|
1279
|
+
>({
|
|
1280
|
+
security: [
|
|
1281
|
+
{
|
|
1282
|
+
name: "x-api-token",
|
|
1283
|
+
type: "apiKey",
|
|
1284
|
+
},
|
|
1285
|
+
],
|
|
1286
|
+
url: "/dlq-redriver/redrive",
|
|
1287
|
+
...options,
|
|
1288
|
+
headers: {
|
|
1289
|
+
"Content-Type": "application/json",
|
|
1290
|
+
...options.headers,
|
|
1291
|
+
},
|
|
1292
|
+
});
|
|
1293
|
+
};
|
|
1294
|
+
|
|
1295
|
+
export const flightsControllerGenerateStorageKey0V1 = <
|
|
1296
|
+
ThrowOnError extends boolean = false,
|
|
1297
|
+
>(
|
|
1298
|
+
options: Options<FlightsControllerGenerateStorageKey0V1Data, ThrowOnError>,
|
|
1299
|
+
) => {
|
|
1300
|
+
return (options.client ?? _heyApiClient).get<
|
|
1301
|
+
FlightsControllerGenerateStorageKey0V1Responses,
|
|
1302
|
+
FlightsControllerGenerateStorageKey0V1Errors,
|
|
1303
|
+
ThrowOnError
|
|
1304
|
+
>({
|
|
1305
|
+
security: [
|
|
1306
|
+
{
|
|
1307
|
+
name: "x-api-token",
|
|
1308
|
+
type: "apiKey",
|
|
1309
|
+
},
|
|
1310
|
+
],
|
|
1311
|
+
url: "/v1/flights/storage-key",
|
|
1312
|
+
...options,
|
|
1313
|
+
});
|
|
1314
|
+
};
|
|
1315
|
+
|
|
1316
|
+
/**
|
|
1317
|
+
* @deprecated
|
|
1318
|
+
*/
|
|
1319
|
+
export const flightsControllerGenerateStorageKey1 = <
|
|
1320
|
+
ThrowOnError extends boolean = false,
|
|
1321
|
+
>(
|
|
1322
|
+
options: Options<FlightsControllerGenerateStorageKey1Data, ThrowOnError>,
|
|
1323
|
+
) => {
|
|
1324
|
+
return (options.client ?? _heyApiClient).get<
|
|
1325
|
+
FlightsControllerGenerateStorageKey1Responses,
|
|
1326
|
+
FlightsControllerGenerateStorageKey1Errors,
|
|
1327
|
+
ThrowOnError
|
|
1328
|
+
>({
|
|
1329
|
+
security: [
|
|
1330
|
+
{
|
|
1331
|
+
name: "x-api-token",
|
|
1332
|
+
type: "apiKey",
|
|
1333
|
+
},
|
|
1334
|
+
],
|
|
1335
|
+
url: "/flights/storage-key",
|
|
1336
|
+
...options,
|
|
1337
|
+
});
|
|
1338
|
+
};
|
|
1339
|
+
|
|
1340
|
+
export const flightsControllerGetFlight0V1 = <
|
|
1341
|
+
ThrowOnError extends boolean = false,
|
|
1342
|
+
>(
|
|
1343
|
+
options: Options<FlightsControllerGetFlight0V1Data, ThrowOnError>,
|
|
1344
|
+
) => {
|
|
1345
|
+
return (options.client ?? _heyApiClient).get<
|
|
1346
|
+
FlightsControllerGetFlight0V1Responses,
|
|
1347
|
+
FlightsControllerGetFlight0V1Errors,
|
|
1348
|
+
ThrowOnError
|
|
1349
|
+
>({
|
|
1350
|
+
security: [
|
|
1351
|
+
{
|
|
1352
|
+
name: "x-api-token",
|
|
1353
|
+
type: "apiKey",
|
|
1354
|
+
},
|
|
1355
|
+
],
|
|
1356
|
+
responseTransformer: flightsControllerGetFlight0V1ResponseTransformer,
|
|
1357
|
+
url: "/v1/flights/{flightId}",
|
|
1358
|
+
...options,
|
|
1359
|
+
});
|
|
1360
|
+
};
|
|
1361
|
+
|
|
1362
|
+
/**
|
|
1363
|
+
* @deprecated
|
|
1364
|
+
*/
|
|
1365
|
+
export const flightsControllerGetFlight1 = <
|
|
1366
|
+
ThrowOnError extends boolean = false,
|
|
1367
|
+
>(
|
|
1368
|
+
options: Options<FlightsControllerGetFlight1Data, ThrowOnError>,
|
|
1369
|
+
) => {
|
|
1370
|
+
return (options.client ?? _heyApiClient).get<
|
|
1371
|
+
FlightsControllerGetFlight1Responses,
|
|
1372
|
+
FlightsControllerGetFlight1Errors,
|
|
1373
|
+
ThrowOnError
|
|
1374
|
+
>({
|
|
1375
|
+
security: [
|
|
1376
|
+
{
|
|
1377
|
+
name: "x-api-token",
|
|
1378
|
+
type: "apiKey",
|
|
1379
|
+
},
|
|
1380
|
+
],
|
|
1381
|
+
responseTransformer: flightsControllerGetFlight1ResponseTransformer,
|
|
1382
|
+
url: "/flights/{flightId}",
|
|
1383
|
+
...options,
|
|
1384
|
+
});
|
|
1385
|
+
};
|
|
1386
|
+
|
|
1387
|
+
export const flightsControllerCreatePresignedUrls0V1 = <
|
|
1388
|
+
ThrowOnError extends boolean = false,
|
|
1389
|
+
>(
|
|
1390
|
+
options: Options<FlightsControllerCreatePresignedUrls0V1Data, ThrowOnError>,
|
|
1391
|
+
) => {
|
|
1392
|
+
return (options.client ?? _heyApiClient).post<
|
|
1393
|
+
FlightsControllerCreatePresignedUrls0V1Responses,
|
|
1394
|
+
FlightsControllerCreatePresignedUrls0V1Errors,
|
|
1395
|
+
ThrowOnError
|
|
1396
|
+
>({
|
|
1397
|
+
security: [
|
|
1398
|
+
{
|
|
1399
|
+
name: "x-api-token",
|
|
1400
|
+
type: "apiKey",
|
|
1401
|
+
},
|
|
1402
|
+
],
|
|
1403
|
+
url: "/v1/flights/files",
|
|
1404
|
+
...options,
|
|
1405
|
+
headers: {
|
|
1406
|
+
"Content-Type": "application/json",
|
|
1407
|
+
...options.headers,
|
|
1408
|
+
},
|
|
1409
|
+
});
|
|
1410
|
+
};
|
|
1411
|
+
|
|
1412
|
+
/**
|
|
1413
|
+
* @deprecated
|
|
1414
|
+
*/
|
|
1415
|
+
export const flightsControllerCreatePresignedUrls1 = <
|
|
1416
|
+
ThrowOnError extends boolean = false,
|
|
1417
|
+
>(
|
|
1418
|
+
options: Options<FlightsControllerCreatePresignedUrls1Data, ThrowOnError>,
|
|
1419
|
+
) => {
|
|
1420
|
+
return (options.client ?? _heyApiClient).post<
|
|
1421
|
+
FlightsControllerCreatePresignedUrls1Responses,
|
|
1422
|
+
FlightsControllerCreatePresignedUrls1Errors,
|
|
1423
|
+
ThrowOnError
|
|
1424
|
+
>({
|
|
1425
|
+
security: [
|
|
1426
|
+
{
|
|
1427
|
+
name: "x-api-token",
|
|
1428
|
+
type: "apiKey",
|
|
1429
|
+
},
|
|
1430
|
+
],
|
|
1431
|
+
url: "/flights/files",
|
|
1432
|
+
...options,
|
|
1433
|
+
headers: {
|
|
1434
|
+
"Content-Type": "application/json",
|
|
1435
|
+
...options.headers,
|
|
1436
|
+
},
|
|
1437
|
+
});
|
|
1438
|
+
};
|
|
1439
|
+
|
|
1440
|
+
export const flightsControllerValidateFlight0V1 = <
|
|
1441
|
+
ThrowOnError extends boolean = false,
|
|
1442
|
+
>(
|
|
1443
|
+
options: Options<FlightsControllerValidateFlight0V1Data, ThrowOnError>,
|
|
1444
|
+
) => {
|
|
1445
|
+
return (options.client ?? _heyApiClient).post<
|
|
1446
|
+
FlightsControllerValidateFlight0V1Responses,
|
|
1447
|
+
FlightsControllerValidateFlight0V1Errors,
|
|
1448
|
+
ThrowOnError
|
|
1449
|
+
>({
|
|
1450
|
+
security: [
|
|
1451
|
+
{
|
|
1452
|
+
name: "x-api-token",
|
|
1453
|
+
type: "apiKey",
|
|
1454
|
+
},
|
|
1455
|
+
],
|
|
1456
|
+
responseTransformer: flightsControllerValidateFlight0V1ResponseTransformer,
|
|
1457
|
+
url: "/v1/flights",
|
|
1458
|
+
...options,
|
|
1459
|
+
headers: {
|
|
1460
|
+
"Content-Type": "application/json",
|
|
1461
|
+
...options.headers,
|
|
1462
|
+
},
|
|
1463
|
+
});
|
|
1464
|
+
};
|
|
1465
|
+
|
|
1466
|
+
/**
|
|
1467
|
+
* @deprecated
|
|
1468
|
+
*/
|
|
1469
|
+
export const flightsControllerValidateFlight1 = <
|
|
1470
|
+
ThrowOnError extends boolean = false,
|
|
1471
|
+
>(
|
|
1472
|
+
options: Options<FlightsControllerValidateFlight1Data, ThrowOnError>,
|
|
1473
|
+
) => {
|
|
1474
|
+
return (options.client ?? _heyApiClient).post<
|
|
1475
|
+
FlightsControllerValidateFlight1Responses,
|
|
1476
|
+
FlightsControllerValidateFlight1Errors,
|
|
1477
|
+
ThrowOnError
|
|
1478
|
+
>({
|
|
1479
|
+
security: [
|
|
1480
|
+
{
|
|
1481
|
+
name: "x-api-token",
|
|
1482
|
+
type: "apiKey",
|
|
1483
|
+
},
|
|
1484
|
+
],
|
|
1485
|
+
responseTransformer: flightsControllerValidateFlight1ResponseTransformer,
|
|
1486
|
+
url: "/flights",
|
|
1487
|
+
...options,
|
|
1488
|
+
headers: {
|
|
1489
|
+
"Content-Type": "application/json",
|
|
1490
|
+
...options.headers,
|
|
1491
|
+
},
|
|
1492
|
+
});
|
|
1493
|
+
};
|
|
1494
|
+
|
|
1495
|
+
/**
|
|
1496
|
+
* Get all flight plans
|
|
1497
|
+
* Returns all available flight plan templates. These define capture patterns (map, panorama) that can be used for drone missions.
|
|
1498
|
+
*/
|
|
1499
|
+
export const flightPlansControllerGetMany0V1 = <
|
|
989
1500
|
ThrowOnError extends boolean = false,
|
|
990
1501
|
>(
|
|
991
|
-
options?: Options<
|
|
1502
|
+
options?: Options<FlightPlansControllerGetMany0V1Data, ThrowOnError>,
|
|
992
1503
|
) => {
|
|
993
1504
|
return (options?.client ?? _heyApiClient).get<
|
|
994
|
-
|
|
995
|
-
|
|
1505
|
+
FlightPlansControllerGetMany0V1Responses,
|
|
1506
|
+
FlightPlansControllerGetMany0V1Errors,
|
|
1507
|
+
ThrowOnError
|
|
1508
|
+
>({
|
|
1509
|
+
security: [
|
|
1510
|
+
{
|
|
1511
|
+
name: "x-api-token",
|
|
1512
|
+
type: "apiKey",
|
|
1513
|
+
},
|
|
1514
|
+
],
|
|
1515
|
+
responseTransformer: flightPlansControllerGetMany0V1ResponseTransformer,
|
|
1516
|
+
url: "/v1/flight-plans",
|
|
1517
|
+
...options,
|
|
1518
|
+
});
|
|
1519
|
+
};
|
|
1520
|
+
|
|
1521
|
+
/**
|
|
1522
|
+
* Create a new flight plan
|
|
1523
|
+
* Creates a new flight plan template with sections and connection strategy.
|
|
1524
|
+
*/
|
|
1525
|
+
export const flightPlansControllerCreate0V1 = <
|
|
1526
|
+
ThrowOnError extends boolean = false,
|
|
1527
|
+
>(
|
|
1528
|
+
options: Options<FlightPlansControllerCreate0V1Data, ThrowOnError>,
|
|
1529
|
+
) => {
|
|
1530
|
+
return (options.client ?? _heyApiClient).post<
|
|
1531
|
+
FlightPlansControllerCreate0V1Responses,
|
|
1532
|
+
FlightPlansControllerCreate0V1Errors,
|
|
1533
|
+
ThrowOnError
|
|
1534
|
+
>({
|
|
1535
|
+
security: [
|
|
1536
|
+
{
|
|
1537
|
+
name: "x-api-token",
|
|
1538
|
+
type: "apiKey",
|
|
1539
|
+
},
|
|
1540
|
+
],
|
|
1541
|
+
responseTransformer: flightPlansControllerCreate0V1ResponseTransformer,
|
|
1542
|
+
url: "/v1/flight-plans",
|
|
1543
|
+
...options,
|
|
1544
|
+
headers: {
|
|
1545
|
+
"Content-Type": "application/json",
|
|
1546
|
+
...options.headers,
|
|
1547
|
+
},
|
|
1548
|
+
});
|
|
1549
|
+
};
|
|
1550
|
+
|
|
1551
|
+
/**
|
|
1552
|
+
* Get all flight plans
|
|
1553
|
+
* Returns all available flight plan templates. These define capture patterns (map, panorama) that can be used for drone missions.
|
|
1554
|
+
* @deprecated
|
|
1555
|
+
*/
|
|
1556
|
+
export const flightPlansControllerGetMany1 = <
|
|
1557
|
+
ThrowOnError extends boolean = false,
|
|
1558
|
+
>(
|
|
1559
|
+
options?: Options<FlightPlansControllerGetMany1Data, ThrowOnError>,
|
|
1560
|
+
) => {
|
|
1561
|
+
return (options?.client ?? _heyApiClient).get<
|
|
1562
|
+
FlightPlansControllerGetMany1Responses,
|
|
1563
|
+
FlightPlansControllerGetMany1Errors,
|
|
1564
|
+
ThrowOnError
|
|
1565
|
+
>({
|
|
1566
|
+
security: [
|
|
1567
|
+
{
|
|
1568
|
+
name: "x-api-token",
|
|
1569
|
+
type: "apiKey",
|
|
1570
|
+
},
|
|
1571
|
+
],
|
|
1572
|
+
responseTransformer: flightPlansControllerGetMany1ResponseTransformer,
|
|
1573
|
+
url: "/flight-plans",
|
|
1574
|
+
...options,
|
|
1575
|
+
});
|
|
1576
|
+
};
|
|
1577
|
+
|
|
1578
|
+
/**
|
|
1579
|
+
* Create a new flight plan
|
|
1580
|
+
* Creates a new flight plan template with sections and connection strategy.
|
|
1581
|
+
* @deprecated
|
|
1582
|
+
*/
|
|
1583
|
+
export const flightPlansControllerCreate1 = <
|
|
1584
|
+
ThrowOnError extends boolean = false,
|
|
1585
|
+
>(
|
|
1586
|
+
options: Options<FlightPlansControllerCreate1Data, ThrowOnError>,
|
|
1587
|
+
) => {
|
|
1588
|
+
return (options.client ?? _heyApiClient).post<
|
|
1589
|
+
FlightPlansControllerCreate1Responses,
|
|
1590
|
+
FlightPlansControllerCreate1Errors,
|
|
1591
|
+
ThrowOnError
|
|
1592
|
+
>({
|
|
1593
|
+
security: [
|
|
1594
|
+
{
|
|
1595
|
+
name: "x-api-token",
|
|
1596
|
+
type: "apiKey",
|
|
1597
|
+
},
|
|
1598
|
+
],
|
|
1599
|
+
responseTransformer: flightPlansControllerCreate1ResponseTransformer,
|
|
1600
|
+
url: "/flight-plans",
|
|
1601
|
+
...options,
|
|
1602
|
+
headers: {
|
|
1603
|
+
"Content-Type": "application/json",
|
|
1604
|
+
...options.headers,
|
|
1605
|
+
},
|
|
1606
|
+
});
|
|
1607
|
+
};
|
|
1608
|
+
|
|
1609
|
+
/**
|
|
1610
|
+
* Get a flight plan by ID
|
|
1611
|
+
* Returns a single flight plan template by its ID.
|
|
1612
|
+
*/
|
|
1613
|
+
export const flightPlansControllerGet0V1 = <
|
|
1614
|
+
ThrowOnError extends boolean = false,
|
|
1615
|
+
>(
|
|
1616
|
+
options: Options<FlightPlansControllerGet0V1Data, ThrowOnError>,
|
|
1617
|
+
) => {
|
|
1618
|
+
return (options.client ?? _heyApiClient).get<
|
|
1619
|
+
FlightPlansControllerGet0V1Responses,
|
|
1620
|
+
FlightPlansControllerGet0V1Errors,
|
|
1621
|
+
ThrowOnError
|
|
1622
|
+
>({
|
|
1623
|
+
security: [
|
|
1624
|
+
{
|
|
1625
|
+
name: "x-api-token",
|
|
1626
|
+
type: "apiKey",
|
|
1627
|
+
},
|
|
1628
|
+
],
|
|
1629
|
+
responseTransformer: flightPlansControllerGet0V1ResponseTransformer,
|
|
1630
|
+
url: "/v1/flight-plans/{id}",
|
|
1631
|
+
...options,
|
|
1632
|
+
});
|
|
1633
|
+
};
|
|
1634
|
+
|
|
1635
|
+
/**
|
|
1636
|
+
* Get a flight plan by ID
|
|
1637
|
+
* Returns a single flight plan template by its ID.
|
|
1638
|
+
* @deprecated
|
|
1639
|
+
*/
|
|
1640
|
+
export const flightPlansControllerGet1 = <ThrowOnError extends boolean = false>(
|
|
1641
|
+
options: Options<FlightPlansControllerGet1Data, ThrowOnError>,
|
|
1642
|
+
) => {
|
|
1643
|
+
return (options.client ?? _heyApiClient).get<
|
|
1644
|
+
FlightPlansControllerGet1Responses,
|
|
1645
|
+
FlightPlansControllerGet1Errors,
|
|
1646
|
+
ThrowOnError
|
|
1647
|
+
>({
|
|
1648
|
+
security: [
|
|
1649
|
+
{
|
|
1650
|
+
name: "x-api-token",
|
|
1651
|
+
type: "apiKey",
|
|
1652
|
+
},
|
|
1653
|
+
],
|
|
1654
|
+
responseTransformer: flightPlansControllerGet1ResponseTransformer,
|
|
1655
|
+
url: "/flight-plans/{id}",
|
|
1656
|
+
...options,
|
|
1657
|
+
});
|
|
1658
|
+
};
|
|
1659
|
+
|
|
1660
|
+
/**
|
|
1661
|
+
* Get a flight review by ID
|
|
1662
|
+
*/
|
|
1663
|
+
export const flightReviewsControllerGetFlightReview0V1 = <
|
|
1664
|
+
ThrowOnError extends boolean = false,
|
|
1665
|
+
>(
|
|
1666
|
+
options: Options<FlightReviewsControllerGetFlightReview0V1Data, ThrowOnError>,
|
|
1667
|
+
) => {
|
|
1668
|
+
return (options.client ?? _heyApiClient).get<
|
|
1669
|
+
FlightReviewsControllerGetFlightReview0V1Responses,
|
|
1670
|
+
FlightReviewsControllerGetFlightReview0V1Errors,
|
|
1671
|
+
ThrowOnError
|
|
1672
|
+
>({
|
|
1673
|
+
security: [
|
|
1674
|
+
{
|
|
1675
|
+
name: "x-api-token",
|
|
1676
|
+
type: "apiKey",
|
|
1677
|
+
},
|
|
1678
|
+
],
|
|
1679
|
+
responseTransformer:
|
|
1680
|
+
flightReviewsControllerGetFlightReview0V1ResponseTransformer,
|
|
1681
|
+
url: "/v1/flight-reviews/{id}",
|
|
1682
|
+
...options,
|
|
1683
|
+
});
|
|
1684
|
+
};
|
|
1685
|
+
|
|
1686
|
+
/**
|
|
1687
|
+
* Get a flight review by ID
|
|
1688
|
+
* @deprecated
|
|
1689
|
+
*/
|
|
1690
|
+
export const flightReviewsControllerGetFlightReview1 = <
|
|
1691
|
+
ThrowOnError extends boolean = false,
|
|
1692
|
+
>(
|
|
1693
|
+
options: Options<FlightReviewsControllerGetFlightReview1Data, ThrowOnError>,
|
|
1694
|
+
) => {
|
|
1695
|
+
return (options.client ?? _heyApiClient).get<
|
|
1696
|
+
FlightReviewsControllerGetFlightReview1Responses,
|
|
1697
|
+
FlightReviewsControllerGetFlightReview1Errors,
|
|
1698
|
+
ThrowOnError
|
|
1699
|
+
>({
|
|
1700
|
+
security: [
|
|
1701
|
+
{
|
|
1702
|
+
name: "x-api-token",
|
|
1703
|
+
type: "apiKey",
|
|
1704
|
+
},
|
|
1705
|
+
],
|
|
1706
|
+
responseTransformer:
|
|
1707
|
+
flightReviewsControllerGetFlightReview1ResponseTransformer,
|
|
1708
|
+
url: "/flight-reviews/{id}",
|
|
1709
|
+
...options,
|
|
1710
|
+
});
|
|
1711
|
+
};
|
|
1712
|
+
|
|
1713
|
+
/**
|
|
1714
|
+
* Get flight reviews by updated_at time range
|
|
1715
|
+
*/
|
|
1716
|
+
export const flightReviewsControllerGetFlightReviews0V1 = <
|
|
1717
|
+
ThrowOnError extends boolean = false,
|
|
1718
|
+
>(
|
|
1719
|
+
options: Options<
|
|
1720
|
+
FlightReviewsControllerGetFlightReviews0V1Data,
|
|
1721
|
+
ThrowOnError
|
|
1722
|
+
>,
|
|
1723
|
+
) => {
|
|
1724
|
+
return (options.client ?? _heyApiClient).get<
|
|
1725
|
+
FlightReviewsControllerGetFlightReviews0V1Responses,
|
|
1726
|
+
FlightReviewsControllerGetFlightReviews0V1Errors,
|
|
1727
|
+
ThrowOnError
|
|
1728
|
+
>({
|
|
1729
|
+
security: [
|
|
1730
|
+
{
|
|
1731
|
+
name: "x-api-token",
|
|
1732
|
+
type: "apiKey",
|
|
1733
|
+
},
|
|
1734
|
+
],
|
|
1735
|
+
responseTransformer:
|
|
1736
|
+
flightReviewsControllerGetFlightReviews0V1ResponseTransformer,
|
|
1737
|
+
url: "/v1/flight-reviews",
|
|
1738
|
+
...options,
|
|
1739
|
+
});
|
|
1740
|
+
};
|
|
1741
|
+
|
|
1742
|
+
/**
|
|
1743
|
+
* Get flight reviews by updated_at time range
|
|
1744
|
+
* @deprecated
|
|
1745
|
+
*/
|
|
1746
|
+
export const flightReviewsControllerGetFlightReviews1 = <
|
|
1747
|
+
ThrowOnError extends boolean = false,
|
|
1748
|
+
>(
|
|
1749
|
+
options: Options<FlightReviewsControllerGetFlightReviews1Data, ThrowOnError>,
|
|
1750
|
+
) => {
|
|
1751
|
+
return (options.client ?? _heyApiClient).get<
|
|
1752
|
+
FlightReviewsControllerGetFlightReviews1Responses,
|
|
1753
|
+
FlightReviewsControllerGetFlightReviews1Errors,
|
|
1754
|
+
ThrowOnError
|
|
1755
|
+
>({
|
|
1756
|
+
security: [
|
|
1757
|
+
{
|
|
1758
|
+
name: "x-api-token",
|
|
1759
|
+
type: "apiKey",
|
|
1760
|
+
},
|
|
1761
|
+
],
|
|
1762
|
+
responseTransformer:
|
|
1763
|
+
flightReviewsControllerGetFlightReviews1ResponseTransformer,
|
|
1764
|
+
url: "/flight-reviews",
|
|
1765
|
+
...options,
|
|
1766
|
+
});
|
|
1767
|
+
};
|
|
1768
|
+
|
|
1769
|
+
export const keysControllerGetProvenanceCryptoKey0V1 = <
|
|
1770
|
+
ThrowOnError extends boolean = false,
|
|
1771
|
+
>(
|
|
1772
|
+
options?: Options<KeysControllerGetProvenanceCryptoKey0V1Data, ThrowOnError>,
|
|
1773
|
+
) => {
|
|
1774
|
+
return (options?.client ?? _heyApiClient).get<
|
|
1775
|
+
KeysControllerGetProvenanceCryptoKey0V1Responses,
|
|
1776
|
+
unknown,
|
|
1777
|
+
ThrowOnError
|
|
1778
|
+
>({
|
|
1779
|
+
url: "/v1/keys",
|
|
1780
|
+
...options,
|
|
1781
|
+
});
|
|
1782
|
+
};
|
|
1783
|
+
|
|
1784
|
+
/**
|
|
1785
|
+
* @deprecated
|
|
1786
|
+
*/
|
|
1787
|
+
export const keysControllerGetProvenanceCryptoKey1 = <
|
|
1788
|
+
ThrowOnError extends boolean = false,
|
|
1789
|
+
>(
|
|
1790
|
+
options?: Options<KeysControllerGetProvenanceCryptoKey1Data, ThrowOnError>,
|
|
1791
|
+
) => {
|
|
1792
|
+
return (options?.client ?? _heyApiClient).get<
|
|
1793
|
+
KeysControllerGetProvenanceCryptoKey1Responses,
|
|
1794
|
+
unknown,
|
|
1795
|
+
ThrowOnError
|
|
1796
|
+
>({
|
|
1797
|
+
url: "/keys",
|
|
1798
|
+
...options,
|
|
1799
|
+
});
|
|
1800
|
+
};
|
|
1801
|
+
|
|
1802
|
+
/**
|
|
1803
|
+
* Get a mission by ID
|
|
1804
|
+
*/
|
|
1805
|
+
export const missionsControllerGetMission0V1 = <
|
|
1806
|
+
ThrowOnError extends boolean = false,
|
|
1807
|
+
>(
|
|
1808
|
+
options: Options<MissionsControllerGetMission0V1Data, ThrowOnError>,
|
|
1809
|
+
) => {
|
|
1810
|
+
return (options.client ?? _heyApiClient).get<
|
|
1811
|
+
MissionsControllerGetMission0V1Responses,
|
|
1812
|
+
MissionsControllerGetMission0V1Errors,
|
|
1813
|
+
ThrowOnError
|
|
1814
|
+
>({
|
|
1815
|
+
security: [
|
|
1816
|
+
{
|
|
1817
|
+
name: "x-api-token",
|
|
1818
|
+
type: "apiKey",
|
|
1819
|
+
},
|
|
1820
|
+
],
|
|
1821
|
+
responseTransformer: missionsControllerGetMission0V1ResponseTransformer,
|
|
1822
|
+
url: "/v1/missions/{id}",
|
|
1823
|
+
...options,
|
|
1824
|
+
});
|
|
1825
|
+
};
|
|
1826
|
+
|
|
1827
|
+
/**
|
|
1828
|
+
* Get a mission by ID
|
|
1829
|
+
* @deprecated
|
|
1830
|
+
*/
|
|
1831
|
+
export const missionsControllerGetMission1 = <
|
|
1832
|
+
ThrowOnError extends boolean = false,
|
|
1833
|
+
>(
|
|
1834
|
+
options: Options<MissionsControllerGetMission1Data, ThrowOnError>,
|
|
1835
|
+
) => {
|
|
1836
|
+
return (options.client ?? _heyApiClient).get<
|
|
1837
|
+
MissionsControllerGetMission1Responses,
|
|
1838
|
+
MissionsControllerGetMission1Errors,
|
|
1839
|
+
ThrowOnError
|
|
1840
|
+
>({
|
|
1841
|
+
security: [
|
|
1842
|
+
{
|
|
1843
|
+
name: "x-api-token",
|
|
1844
|
+
type: "apiKey",
|
|
1845
|
+
},
|
|
1846
|
+
],
|
|
1847
|
+
responseTransformer: missionsControllerGetMission1ResponseTransformer,
|
|
1848
|
+
url: "/missions/{id}",
|
|
1849
|
+
...options,
|
|
1850
|
+
});
|
|
1851
|
+
};
|
|
1852
|
+
|
|
1853
|
+
/**
|
|
1854
|
+
* 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.
|
|
1856
|
+
*/
|
|
1857
|
+
export const missionsControllerGetMissions0V1 = <
|
|
1858
|
+
ThrowOnError extends boolean = false,
|
|
1859
|
+
>(
|
|
1860
|
+
options?: Options<MissionsControllerGetMissions0V1Data, ThrowOnError>,
|
|
1861
|
+
) => {
|
|
1862
|
+
return (options?.client ?? _heyApiClient).get<
|
|
1863
|
+
MissionsControllerGetMissions0V1Responses,
|
|
1864
|
+
MissionsControllerGetMissions0V1Errors,
|
|
1865
|
+
ThrowOnError
|
|
1866
|
+
>({
|
|
1867
|
+
security: [
|
|
1868
|
+
{
|
|
1869
|
+
name: "x-api-token",
|
|
1870
|
+
type: "apiKey",
|
|
1871
|
+
},
|
|
1872
|
+
],
|
|
1873
|
+
responseTransformer: missionsControllerGetMissions0V1ResponseTransformer,
|
|
1874
|
+
url: "/v1/missions",
|
|
1875
|
+
...options,
|
|
1876
|
+
});
|
|
1877
|
+
};
|
|
1878
|
+
|
|
1879
|
+
/**
|
|
1880
|
+
* Create new missions
|
|
1881
|
+
* Create missions for specified zones and mission types.
|
|
1882
|
+
*/
|
|
1883
|
+
export const missionsControllerCreateMissions0V1 = <
|
|
1884
|
+
ThrowOnError extends boolean = false,
|
|
1885
|
+
>(
|
|
1886
|
+
options: Options<MissionsControllerCreateMissions0V1Data, ThrowOnError>,
|
|
1887
|
+
) => {
|
|
1888
|
+
return (options.client ?? _heyApiClient).post<
|
|
1889
|
+
MissionsControllerCreateMissions0V1Responses,
|
|
1890
|
+
MissionsControllerCreateMissions0V1Errors,
|
|
1891
|
+
ThrowOnError
|
|
1892
|
+
>({
|
|
1893
|
+
security: [
|
|
1894
|
+
{
|
|
1895
|
+
name: "x-api-token",
|
|
1896
|
+
type: "apiKey",
|
|
1897
|
+
},
|
|
1898
|
+
],
|
|
1899
|
+
responseTransformer: missionsControllerCreateMissions0V1ResponseTransformer,
|
|
1900
|
+
url: "/v1/missions",
|
|
1901
|
+
...options,
|
|
1902
|
+
headers: {
|
|
1903
|
+
"Content-Type": "application/json",
|
|
1904
|
+
...options.headers,
|
|
1905
|
+
},
|
|
1906
|
+
});
|
|
1907
|
+
};
|
|
1908
|
+
|
|
1909
|
+
/**
|
|
1910
|
+
* Update missions
|
|
1911
|
+
* Update missions' rewards or cancel them altogether
|
|
1912
|
+
*/
|
|
1913
|
+
export const missionsControllerUpdateMissions0V1 = <
|
|
1914
|
+
ThrowOnError extends boolean = false,
|
|
1915
|
+
>(
|
|
1916
|
+
options: Options<MissionsControllerUpdateMissions0V1Data, ThrowOnError>,
|
|
1917
|
+
) => {
|
|
1918
|
+
return (options.client ?? _heyApiClient).put<
|
|
1919
|
+
MissionsControllerUpdateMissions0V1Responses,
|
|
1920
|
+
MissionsControllerUpdateMissions0V1Errors,
|
|
1921
|
+
ThrowOnError
|
|
1922
|
+
>({
|
|
1923
|
+
security: [
|
|
1924
|
+
{
|
|
1925
|
+
name: "x-api-token",
|
|
1926
|
+
type: "apiKey",
|
|
1927
|
+
},
|
|
1928
|
+
],
|
|
1929
|
+
url: "/v1/missions",
|
|
1930
|
+
...options,
|
|
1931
|
+
headers: {
|
|
1932
|
+
"Content-Type": "application/json",
|
|
1933
|
+
...options.headers,
|
|
1934
|
+
},
|
|
1935
|
+
});
|
|
1936
|
+
};
|
|
1937
|
+
|
|
1938
|
+
/**
|
|
1939
|
+
* 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.
|
|
1941
|
+
* @deprecated
|
|
1942
|
+
*/
|
|
1943
|
+
export const missionsControllerGetMissions1 = <
|
|
1944
|
+
ThrowOnError extends boolean = false,
|
|
1945
|
+
>(
|
|
1946
|
+
options?: Options<MissionsControllerGetMissions1Data, ThrowOnError>,
|
|
1947
|
+
) => {
|
|
1948
|
+
return (options?.client ?? _heyApiClient).get<
|
|
1949
|
+
MissionsControllerGetMissions1Responses,
|
|
1950
|
+
MissionsControllerGetMissions1Errors,
|
|
1951
|
+
ThrowOnError
|
|
1952
|
+
>({
|
|
1953
|
+
security: [
|
|
1954
|
+
{
|
|
1955
|
+
name: "x-api-token",
|
|
1956
|
+
type: "apiKey",
|
|
1957
|
+
},
|
|
1958
|
+
],
|
|
1959
|
+
responseTransformer: missionsControllerGetMissions1ResponseTransformer,
|
|
1960
|
+
url: "/missions",
|
|
1961
|
+
...options,
|
|
1962
|
+
});
|
|
1963
|
+
};
|
|
1964
|
+
|
|
1965
|
+
/**
|
|
1966
|
+
* Create new missions
|
|
1967
|
+
* Create missions for specified zones and mission types.
|
|
1968
|
+
* @deprecated
|
|
1969
|
+
*/
|
|
1970
|
+
export const missionsControllerCreateMissions1 = <
|
|
1971
|
+
ThrowOnError extends boolean = false,
|
|
1972
|
+
>(
|
|
1973
|
+
options: Options<MissionsControllerCreateMissions1Data, ThrowOnError>,
|
|
1974
|
+
) => {
|
|
1975
|
+
return (options.client ?? _heyApiClient).post<
|
|
1976
|
+
MissionsControllerCreateMissions1Responses,
|
|
1977
|
+
MissionsControllerCreateMissions1Errors,
|
|
1978
|
+
ThrowOnError
|
|
1979
|
+
>({
|
|
1980
|
+
security: [
|
|
1981
|
+
{
|
|
1982
|
+
name: "x-api-token",
|
|
1983
|
+
type: "apiKey",
|
|
1984
|
+
},
|
|
1985
|
+
],
|
|
1986
|
+
responseTransformer: missionsControllerCreateMissions1ResponseTransformer,
|
|
1987
|
+
url: "/missions",
|
|
1988
|
+
...options,
|
|
1989
|
+
headers: {
|
|
1990
|
+
"Content-Type": "application/json",
|
|
1991
|
+
...options.headers,
|
|
1992
|
+
},
|
|
1993
|
+
});
|
|
1994
|
+
};
|
|
1995
|
+
|
|
1996
|
+
/**
|
|
1997
|
+
* Update missions
|
|
1998
|
+
* Update missions' rewards or cancel them altogether
|
|
1999
|
+
* @deprecated
|
|
2000
|
+
*/
|
|
2001
|
+
export const missionsControllerUpdateMissions1 = <
|
|
2002
|
+
ThrowOnError extends boolean = false,
|
|
2003
|
+
>(
|
|
2004
|
+
options: Options<MissionsControllerUpdateMissions1Data, ThrowOnError>,
|
|
2005
|
+
) => {
|
|
2006
|
+
return (options.client ?? _heyApiClient).put<
|
|
2007
|
+
MissionsControllerUpdateMissions1Responses,
|
|
2008
|
+
MissionsControllerUpdateMissions1Errors,
|
|
2009
|
+
ThrowOnError
|
|
2010
|
+
>({
|
|
2011
|
+
security: [
|
|
2012
|
+
{
|
|
2013
|
+
name: "x-api-token",
|
|
2014
|
+
type: "apiKey",
|
|
2015
|
+
},
|
|
2016
|
+
],
|
|
2017
|
+
url: "/missions",
|
|
2018
|
+
...options,
|
|
2019
|
+
headers: {
|
|
2020
|
+
"Content-Type": "application/json",
|
|
2021
|
+
...options.headers,
|
|
2022
|
+
},
|
|
2023
|
+
});
|
|
2024
|
+
};
|
|
2025
|
+
|
|
2026
|
+
/**
|
|
2027
|
+
* Reprice missions
|
|
2028
|
+
* Apply a scale factor to all open missions' vault amounts
|
|
2029
|
+
*/
|
|
2030
|
+
export const missionsControllerRepriceMissions0V1 = <
|
|
2031
|
+
ThrowOnError extends boolean = false,
|
|
2032
|
+
>(
|
|
2033
|
+
options: Options<MissionsControllerRepriceMissions0V1Data, ThrowOnError>,
|
|
2034
|
+
) => {
|
|
2035
|
+
return (options.client ?? _heyApiClient).put<
|
|
2036
|
+
MissionsControllerRepriceMissions0V1Responses,
|
|
2037
|
+
MissionsControllerRepriceMissions0V1Errors,
|
|
2038
|
+
ThrowOnError
|
|
2039
|
+
>({
|
|
2040
|
+
security: [
|
|
2041
|
+
{
|
|
2042
|
+
name: "x-api-token",
|
|
2043
|
+
type: "apiKey",
|
|
2044
|
+
},
|
|
2045
|
+
],
|
|
2046
|
+
url: "/v1/missions/amounts",
|
|
2047
|
+
...options,
|
|
2048
|
+
headers: {
|
|
2049
|
+
"Content-Type": "application/json",
|
|
2050
|
+
...options.headers,
|
|
2051
|
+
},
|
|
2052
|
+
});
|
|
2053
|
+
};
|
|
2054
|
+
|
|
2055
|
+
/**
|
|
2056
|
+
* Reprice missions
|
|
2057
|
+
* Apply a scale factor to all open missions' vault amounts
|
|
2058
|
+
* @deprecated
|
|
2059
|
+
*/
|
|
2060
|
+
export const missionsControllerRepriceMissions1 = <
|
|
2061
|
+
ThrowOnError extends boolean = false,
|
|
2062
|
+
>(
|
|
2063
|
+
options: Options<MissionsControllerRepriceMissions1Data, ThrowOnError>,
|
|
2064
|
+
) => {
|
|
2065
|
+
return (options.client ?? _heyApiClient).put<
|
|
2066
|
+
MissionsControllerRepriceMissions1Responses,
|
|
2067
|
+
MissionsControllerRepriceMissions1Errors,
|
|
2068
|
+
ThrowOnError
|
|
2069
|
+
>({
|
|
2070
|
+
security: [
|
|
2071
|
+
{
|
|
2072
|
+
name: "x-api-token",
|
|
2073
|
+
type: "apiKey",
|
|
2074
|
+
},
|
|
2075
|
+
],
|
|
2076
|
+
url: "/missions/amounts",
|
|
2077
|
+
...options,
|
|
2078
|
+
headers: {
|
|
2079
|
+
"Content-Type": "application/json",
|
|
2080
|
+
...options.headers,
|
|
2081
|
+
},
|
|
2082
|
+
});
|
|
2083
|
+
};
|
|
2084
|
+
|
|
2085
|
+
/**
|
|
2086
|
+
* List proposals (proxied to proposal-service)
|
|
2087
|
+
* 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
|
+
*/
|
|
2089
|
+
export const listProposals = <ThrowOnError extends boolean = false>(
|
|
2090
|
+
options?: Options<ListProposalsData, ThrowOnError>,
|
|
2091
|
+
) => {
|
|
2092
|
+
return (options?.client ?? _heyApiClient).get<
|
|
2093
|
+
ListProposalsResponses,
|
|
2094
|
+
ListProposalsErrors,
|
|
2095
|
+
ThrowOnError
|
|
2096
|
+
>({
|
|
2097
|
+
responseTransformer: listProposalsResponseTransformer,
|
|
2098
|
+
url: "/v1/proposals",
|
|
2099
|
+
...options,
|
|
2100
|
+
});
|
|
2101
|
+
};
|
|
2102
|
+
|
|
2103
|
+
/**
|
|
2104
|
+
* Submit a proposal (proxied to proposal-service)
|
|
2105
|
+
*/
|
|
2106
|
+
export const submitProposal = <ThrowOnError extends boolean = false>(
|
|
2107
|
+
options: Options<SubmitProposalData, ThrowOnError>,
|
|
2108
|
+
) => {
|
|
2109
|
+
return (options.client ?? _heyApiClient).post<
|
|
2110
|
+
SubmitProposalResponses,
|
|
2111
|
+
SubmitProposalErrors,
|
|
2112
|
+
ThrowOnError
|
|
2113
|
+
>({
|
|
2114
|
+
security: [
|
|
2115
|
+
{
|
|
2116
|
+
name: "x-api-token",
|
|
2117
|
+
type: "apiKey",
|
|
2118
|
+
},
|
|
2119
|
+
],
|
|
2120
|
+
url: "/v1/proposals",
|
|
2121
|
+
...options,
|
|
2122
|
+
headers: {
|
|
2123
|
+
"Content-Type": "application/json",
|
|
2124
|
+
...options.headers,
|
|
2125
|
+
},
|
|
2126
|
+
});
|
|
2127
|
+
};
|
|
2128
|
+
|
|
2129
|
+
/**
|
|
2130
|
+
* Get a proposal by ID (proxied to proposal-service)
|
|
2131
|
+
* Returns full proposal detail including all change records.
|
|
2132
|
+
*/
|
|
2133
|
+
export const getProposal = <ThrowOnError extends boolean = false>(
|
|
2134
|
+
options: Options<GetProposalData, ThrowOnError>,
|
|
2135
|
+
) => {
|
|
2136
|
+
return (options.client ?? _heyApiClient).get<
|
|
2137
|
+
GetProposalResponses,
|
|
2138
|
+
GetProposalErrors,
|
|
2139
|
+
ThrowOnError
|
|
2140
|
+
>({
|
|
2141
|
+
responseTransformer: getProposalResponseTransformer,
|
|
2142
|
+
url: "/v1/proposals/{id}",
|
|
2143
|
+
...options,
|
|
2144
|
+
});
|
|
2145
|
+
};
|
|
2146
|
+
|
|
2147
|
+
/**
|
|
2148
|
+
* Approve or reject a proposal (proxied to proposal-service)
|
|
2149
|
+
*/
|
|
2150
|
+
export const reviewProposal = <ThrowOnError extends boolean = false>(
|
|
2151
|
+
options: Options<ReviewProposalData, ThrowOnError>,
|
|
2152
|
+
) => {
|
|
2153
|
+
return (options.client ?? _heyApiClient).post<
|
|
2154
|
+
ReviewProposalResponses,
|
|
2155
|
+
ReviewProposalErrors,
|
|
2156
|
+
ThrowOnError
|
|
2157
|
+
>({
|
|
2158
|
+
security: [
|
|
2159
|
+
{
|
|
2160
|
+
name: "x-api-token",
|
|
2161
|
+
type: "apiKey",
|
|
2162
|
+
},
|
|
2163
|
+
],
|
|
2164
|
+
url: "/v1/proposals/{id}/review",
|
|
2165
|
+
...options,
|
|
2166
|
+
headers: {
|
|
2167
|
+
"Content-Type": "application/json",
|
|
2168
|
+
...options.headers,
|
|
2169
|
+
},
|
|
2170
|
+
});
|
|
2171
|
+
};
|
|
2172
|
+
|
|
2173
|
+
export const protocolTriggersApiControllerTriggerPayout0V1 = <
|
|
2174
|
+
ThrowOnError extends boolean = false,
|
|
2175
|
+
>(
|
|
2176
|
+
options: Options<
|
|
2177
|
+
ProtocolTriggersApiControllerTriggerPayout0V1Data,
|
|
2178
|
+
ThrowOnError
|
|
2179
|
+
>,
|
|
2180
|
+
) => {
|
|
2181
|
+
return (options.client ?? _heyApiClient).post<
|
|
2182
|
+
ProtocolTriggersApiControllerTriggerPayout0V1Responses,
|
|
2183
|
+
ProtocolTriggersApiControllerTriggerPayout0V1Errors,
|
|
2184
|
+
ThrowOnError
|
|
2185
|
+
>({
|
|
2186
|
+
security: [
|
|
2187
|
+
{
|
|
2188
|
+
name: "x-api-token",
|
|
2189
|
+
type: "apiKey",
|
|
2190
|
+
},
|
|
2191
|
+
],
|
|
2192
|
+
url: "/v1/protocol-triggers/missions/payout",
|
|
2193
|
+
...options,
|
|
2194
|
+
headers: {
|
|
2195
|
+
"Content-Type": "application/json",
|
|
2196
|
+
...options.headers,
|
|
2197
|
+
},
|
|
2198
|
+
});
|
|
2199
|
+
};
|
|
2200
|
+
|
|
2201
|
+
/**
|
|
2202
|
+
* @deprecated
|
|
2203
|
+
*/
|
|
2204
|
+
export const protocolTriggersApiControllerTriggerPayout1 = <
|
|
2205
|
+
ThrowOnError extends boolean = false,
|
|
2206
|
+
>(
|
|
2207
|
+
options: Options<
|
|
2208
|
+
ProtocolTriggersApiControllerTriggerPayout1Data,
|
|
2209
|
+
ThrowOnError
|
|
2210
|
+
>,
|
|
2211
|
+
) => {
|
|
2212
|
+
return (options.client ?? _heyApiClient).post<
|
|
2213
|
+
ProtocolTriggersApiControllerTriggerPayout1Responses,
|
|
2214
|
+
ProtocolTriggersApiControllerTriggerPayout1Errors,
|
|
2215
|
+
ThrowOnError
|
|
2216
|
+
>({
|
|
2217
|
+
security: [
|
|
2218
|
+
{
|
|
2219
|
+
name: "x-api-token",
|
|
2220
|
+
type: "apiKey",
|
|
2221
|
+
},
|
|
2222
|
+
],
|
|
2223
|
+
url: "/protocol-triggers/missions/payout",
|
|
2224
|
+
...options,
|
|
2225
|
+
headers: {
|
|
2226
|
+
"Content-Type": "application/json",
|
|
2227
|
+
...options.headers,
|
|
2228
|
+
},
|
|
2229
|
+
});
|
|
2230
|
+
};
|
|
2231
|
+
|
|
2232
|
+
export const protocolTriggersApiControllerTriggerMissionClose0V1 = <
|
|
2233
|
+
ThrowOnError extends boolean = false,
|
|
2234
|
+
>(
|
|
2235
|
+
options: Options<
|
|
2236
|
+
ProtocolTriggersApiControllerTriggerMissionClose0V1Data,
|
|
2237
|
+
ThrowOnError
|
|
2238
|
+
>,
|
|
2239
|
+
) => {
|
|
2240
|
+
return (options.client ?? _heyApiClient).post<
|
|
2241
|
+
ProtocolTriggersApiControllerTriggerMissionClose0V1Responses,
|
|
2242
|
+
ProtocolTriggersApiControllerTriggerMissionClose0V1Errors,
|
|
2243
|
+
ThrowOnError
|
|
2244
|
+
>({
|
|
2245
|
+
security: [
|
|
2246
|
+
{
|
|
2247
|
+
name: "x-api-token",
|
|
2248
|
+
type: "apiKey",
|
|
2249
|
+
},
|
|
2250
|
+
],
|
|
2251
|
+
url: "/v1/protocol-triggers/missions/close",
|
|
2252
|
+
...options,
|
|
2253
|
+
headers: {
|
|
2254
|
+
"Content-Type": "application/json",
|
|
2255
|
+
...options.headers,
|
|
2256
|
+
},
|
|
2257
|
+
});
|
|
2258
|
+
};
|
|
2259
|
+
|
|
2260
|
+
/**
|
|
2261
|
+
* @deprecated
|
|
2262
|
+
*/
|
|
2263
|
+
export const protocolTriggersApiControllerTriggerMissionClose1 = <
|
|
2264
|
+
ThrowOnError extends boolean = false,
|
|
2265
|
+
>(
|
|
2266
|
+
options: Options<
|
|
2267
|
+
ProtocolTriggersApiControllerTriggerMissionClose1Data,
|
|
2268
|
+
ThrowOnError
|
|
2269
|
+
>,
|
|
2270
|
+
) => {
|
|
2271
|
+
return (options.client ?? _heyApiClient).post<
|
|
2272
|
+
ProtocolTriggersApiControllerTriggerMissionClose1Responses,
|
|
2273
|
+
ProtocolTriggersApiControllerTriggerMissionClose1Errors,
|
|
2274
|
+
ThrowOnError
|
|
2275
|
+
>({
|
|
2276
|
+
security: [
|
|
2277
|
+
{
|
|
2278
|
+
name: "x-api-token",
|
|
2279
|
+
type: "apiKey",
|
|
2280
|
+
},
|
|
2281
|
+
],
|
|
2282
|
+
url: "/protocol-triggers/missions/close",
|
|
2283
|
+
...options,
|
|
2284
|
+
headers: {
|
|
2285
|
+
"Content-Type": "application/json",
|
|
2286
|
+
...options.headers,
|
|
2287
|
+
},
|
|
2288
|
+
});
|
|
2289
|
+
};
|
|
2290
|
+
|
|
2291
|
+
export const quotesControllerCreateQuote0V1 = <
|
|
2292
|
+
ThrowOnError extends boolean = false,
|
|
2293
|
+
>(
|
|
2294
|
+
options: Options<QuotesControllerCreateQuote0V1Data, ThrowOnError>,
|
|
2295
|
+
) => {
|
|
2296
|
+
return (options.client ?? _heyApiClient).post<
|
|
2297
|
+
QuotesControllerCreateQuote0V1Responses,
|
|
2298
|
+
QuotesControllerCreateQuote0V1Errors,
|
|
2299
|
+
ThrowOnError
|
|
2300
|
+
>({
|
|
2301
|
+
security: [
|
|
2302
|
+
{
|
|
2303
|
+
name: "x-api-token",
|
|
2304
|
+
type: "apiKey",
|
|
2305
|
+
},
|
|
2306
|
+
],
|
|
2307
|
+
url: "/v1/quotes",
|
|
2308
|
+
...options,
|
|
2309
|
+
headers: {
|
|
2310
|
+
"Content-Type": "application/json",
|
|
2311
|
+
...options.headers,
|
|
2312
|
+
},
|
|
2313
|
+
});
|
|
2314
|
+
};
|
|
2315
|
+
|
|
2316
|
+
/**
|
|
2317
|
+
* @deprecated
|
|
2318
|
+
*/
|
|
2319
|
+
export const quotesControllerCreateQuote1 = <
|
|
2320
|
+
ThrowOnError extends boolean = false,
|
|
2321
|
+
>(
|
|
2322
|
+
options: Options<QuotesControllerCreateQuote1Data, ThrowOnError>,
|
|
2323
|
+
) => {
|
|
2324
|
+
return (options.client ?? _heyApiClient).post<
|
|
2325
|
+
QuotesControllerCreateQuote1Responses,
|
|
2326
|
+
QuotesControllerCreateQuote1Errors,
|
|
2327
|
+
ThrowOnError
|
|
2328
|
+
>({
|
|
2329
|
+
security: [
|
|
2330
|
+
{
|
|
2331
|
+
name: "x-api-token",
|
|
2332
|
+
type: "apiKey",
|
|
2333
|
+
},
|
|
2334
|
+
],
|
|
2335
|
+
url: "/quotes",
|
|
2336
|
+
...options,
|
|
2337
|
+
headers: {
|
|
2338
|
+
"Content-Type": "application/json",
|
|
2339
|
+
...options.headers,
|
|
2340
|
+
},
|
|
2341
|
+
});
|
|
2342
|
+
};
|
|
2343
|
+
|
|
2344
|
+
export const quotesControllerGetQuote0V1 = <
|
|
2345
|
+
ThrowOnError extends boolean = false,
|
|
2346
|
+
>(
|
|
2347
|
+
options: Options<QuotesControllerGetQuote0V1Data, ThrowOnError>,
|
|
2348
|
+
) => {
|
|
2349
|
+
return (options.client ?? _heyApiClient).get<
|
|
2350
|
+
QuotesControllerGetQuote0V1Responses,
|
|
2351
|
+
QuotesControllerGetQuote0V1Errors,
|
|
2352
|
+
ThrowOnError
|
|
2353
|
+
>({
|
|
2354
|
+
security: [
|
|
2355
|
+
{
|
|
2356
|
+
name: "x-api-token",
|
|
2357
|
+
type: "apiKey",
|
|
2358
|
+
},
|
|
2359
|
+
],
|
|
2360
|
+
url: "/v1/quotes/{id}",
|
|
2361
|
+
...options,
|
|
2362
|
+
});
|
|
2363
|
+
};
|
|
2364
|
+
|
|
2365
|
+
/**
|
|
2366
|
+
* @deprecated
|
|
2367
|
+
*/
|
|
2368
|
+
export const quotesControllerGetQuote1 = <ThrowOnError extends boolean = false>(
|
|
2369
|
+
options: Options<QuotesControllerGetQuote1Data, ThrowOnError>,
|
|
2370
|
+
) => {
|
|
2371
|
+
return (options.client ?? _heyApiClient).get<
|
|
2372
|
+
QuotesControllerGetQuote1Responses,
|
|
2373
|
+
QuotesControllerGetQuote1Errors,
|
|
2374
|
+
ThrowOnError
|
|
2375
|
+
>({
|
|
2376
|
+
security: [
|
|
2377
|
+
{
|
|
2378
|
+
name: "x-api-token",
|
|
2379
|
+
type: "apiKey",
|
|
2380
|
+
},
|
|
2381
|
+
],
|
|
2382
|
+
url: "/quotes/{id}",
|
|
2383
|
+
...options,
|
|
2384
|
+
});
|
|
2385
|
+
};
|
|
2386
|
+
|
|
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,
|
|
996
2413
|
ThrowOnError
|
|
997
2414
|
>({
|
|
998
2415
|
url: "/schema/event",
|
|
@@ -1001,19 +2418,351 @@ export const schemaControllerGetEventSchema = <
|
|
|
1001
2418
|
};
|
|
1002
2419
|
|
|
1003
2420
|
/**
|
|
1004
|
-
* Create new vault requests
|
|
1005
|
-
* Create vault requests and publish to the internal.vault.requested queue.
|
|
1006
|
-
* Accepts a list of vaults with optional vaultId.
|
|
1007
|
-
* Api is meant for internal use to add data on chain manually.
|
|
2421
|
+
* Create new vault requests
|
|
2422
|
+
* Create vault requests and publish to the internal.vault.requested queue.
|
|
2423
|
+
* Accepts a list of vaults with optional vaultId.
|
|
2424
|
+
* Api is meant for internal use to add data on chain manually.
|
|
2425
|
+
*/
|
|
2426
|
+
export const vaultsControllerCreateVaults0V1 = <
|
|
2427
|
+
ThrowOnError extends boolean = false,
|
|
2428
|
+
>(
|
|
2429
|
+
options: Options<VaultsControllerCreateVaults0V1Data, ThrowOnError>,
|
|
2430
|
+
) => {
|
|
2431
|
+
return (options.client ?? _heyApiClient).post<
|
|
2432
|
+
VaultsControllerCreateVaults0V1Responses,
|
|
2433
|
+
VaultsControllerCreateVaults0V1Errors,
|
|
2434
|
+
ThrowOnError
|
|
2435
|
+
>({
|
|
2436
|
+
security: [
|
|
2437
|
+
{
|
|
2438
|
+
name: "x-api-token",
|
|
2439
|
+
type: "apiKey",
|
|
2440
|
+
},
|
|
2441
|
+
{
|
|
2442
|
+
name: "x-api-token",
|
|
2443
|
+
type: "apiKey",
|
|
2444
|
+
},
|
|
2445
|
+
],
|
|
2446
|
+
url: "/v1/vaults",
|
|
2447
|
+
...options,
|
|
2448
|
+
headers: {
|
|
2449
|
+
"Content-Type": "application/json",
|
|
2450
|
+
...options.headers,
|
|
2451
|
+
},
|
|
2452
|
+
});
|
|
2453
|
+
};
|
|
2454
|
+
|
|
2455
|
+
/**
|
|
2456
|
+
* Create new vault requests
|
|
2457
|
+
* Create vault requests and publish to the internal.vault.requested queue.
|
|
2458
|
+
* Accepts a list of vaults with optional vaultId.
|
|
2459
|
+
* Api is meant for internal use to add data on chain manually.
|
|
2460
|
+
* @deprecated
|
|
2461
|
+
*/
|
|
2462
|
+
export const vaultsControllerCreateVaults1 = <
|
|
2463
|
+
ThrowOnError extends boolean = false,
|
|
2464
|
+
>(
|
|
2465
|
+
options: Options<VaultsControllerCreateVaults1Data, ThrowOnError>,
|
|
2466
|
+
) => {
|
|
2467
|
+
return (options.client ?? _heyApiClient).post<
|
|
2468
|
+
VaultsControllerCreateVaults1Responses,
|
|
2469
|
+
VaultsControllerCreateVaults1Errors,
|
|
2470
|
+
ThrowOnError
|
|
2471
|
+
>({
|
|
2472
|
+
security: [
|
|
2473
|
+
{
|
|
2474
|
+
name: "x-api-token",
|
|
2475
|
+
type: "apiKey",
|
|
2476
|
+
},
|
|
2477
|
+
{
|
|
2478
|
+
name: "x-api-token",
|
|
2479
|
+
type: "apiKey",
|
|
2480
|
+
},
|
|
2481
|
+
],
|
|
2482
|
+
url: "/vaults",
|
|
2483
|
+
...options,
|
|
2484
|
+
headers: {
|
|
2485
|
+
"Content-Type": "application/json",
|
|
2486
|
+
...options.headers,
|
|
2487
|
+
},
|
|
2488
|
+
});
|
|
2489
|
+
};
|
|
2490
|
+
|
|
2491
|
+
export const webhooksControllerGetMany0V1 = <
|
|
2492
|
+
ThrowOnError extends boolean = false,
|
|
2493
|
+
>(
|
|
2494
|
+
options: Options<WebhooksControllerGetMany0V1Data, ThrowOnError>,
|
|
2495
|
+
) => {
|
|
2496
|
+
return (options.client ?? _heyApiClient).get<
|
|
2497
|
+
WebhooksControllerGetMany0V1Responses,
|
|
2498
|
+
WebhooksControllerGetMany0V1Errors,
|
|
2499
|
+
ThrowOnError
|
|
2500
|
+
>({
|
|
2501
|
+
security: [
|
|
2502
|
+
{
|
|
2503
|
+
name: "x-api-token",
|
|
2504
|
+
type: "apiKey",
|
|
2505
|
+
},
|
|
2506
|
+
],
|
|
2507
|
+
responseTransformer: webhooksControllerGetMany0V1ResponseTransformer,
|
|
2508
|
+
url: "/v1/org/{org_id}/webhooks",
|
|
2509
|
+
...options,
|
|
2510
|
+
});
|
|
2511
|
+
};
|
|
2512
|
+
|
|
2513
|
+
export const webhooksControllerCreate0V1 = <
|
|
2514
|
+
ThrowOnError extends boolean = false,
|
|
2515
|
+
>(
|
|
2516
|
+
options: Options<WebhooksControllerCreate0V1Data, ThrowOnError>,
|
|
2517
|
+
) => {
|
|
2518
|
+
return (options.client ?? _heyApiClient).post<
|
|
2519
|
+
WebhooksControllerCreate0V1Responses,
|
|
2520
|
+
WebhooksControllerCreate0V1Errors,
|
|
2521
|
+
ThrowOnError
|
|
2522
|
+
>({
|
|
2523
|
+
security: [
|
|
2524
|
+
{
|
|
2525
|
+
name: "x-api-token",
|
|
2526
|
+
type: "apiKey",
|
|
2527
|
+
},
|
|
2528
|
+
],
|
|
2529
|
+
url: "/v1/org/{org_id}/webhooks",
|
|
2530
|
+
...options,
|
|
2531
|
+
headers: {
|
|
2532
|
+
"Content-Type": "application/json",
|
|
2533
|
+
...options.headers,
|
|
2534
|
+
},
|
|
2535
|
+
});
|
|
2536
|
+
};
|
|
2537
|
+
|
|
2538
|
+
/**
|
|
2539
|
+
* @deprecated
|
|
2540
|
+
*/
|
|
2541
|
+
export const webhooksControllerGetMany1 = <
|
|
2542
|
+
ThrowOnError extends boolean = false,
|
|
2543
|
+
>(
|
|
2544
|
+
options: Options<WebhooksControllerGetMany1Data, ThrowOnError>,
|
|
2545
|
+
) => {
|
|
2546
|
+
return (options.client ?? _heyApiClient).get<
|
|
2547
|
+
WebhooksControllerGetMany1Responses,
|
|
2548
|
+
WebhooksControllerGetMany1Errors,
|
|
2549
|
+
ThrowOnError
|
|
2550
|
+
>({
|
|
2551
|
+
security: [
|
|
2552
|
+
{
|
|
2553
|
+
name: "x-api-token",
|
|
2554
|
+
type: "apiKey",
|
|
2555
|
+
},
|
|
2556
|
+
],
|
|
2557
|
+
responseTransformer: webhooksControllerGetMany1ResponseTransformer,
|
|
2558
|
+
url: "/org/{org_id}/webhooks",
|
|
2559
|
+
...options,
|
|
2560
|
+
});
|
|
2561
|
+
};
|
|
2562
|
+
|
|
2563
|
+
/**
|
|
2564
|
+
* @deprecated
|
|
2565
|
+
*/
|
|
2566
|
+
export const webhooksControllerCreate1 = <ThrowOnError extends boolean = false>(
|
|
2567
|
+
options: Options<WebhooksControllerCreate1Data, ThrowOnError>,
|
|
2568
|
+
) => {
|
|
2569
|
+
return (options.client ?? _heyApiClient).post<
|
|
2570
|
+
WebhooksControllerCreate1Responses,
|
|
2571
|
+
WebhooksControllerCreate1Errors,
|
|
2572
|
+
ThrowOnError
|
|
2573
|
+
>({
|
|
2574
|
+
security: [
|
|
2575
|
+
{
|
|
2576
|
+
name: "x-api-token",
|
|
2577
|
+
type: "apiKey",
|
|
2578
|
+
},
|
|
2579
|
+
],
|
|
2580
|
+
url: "/org/{org_id}/webhooks",
|
|
2581
|
+
...options,
|
|
2582
|
+
headers: {
|
|
2583
|
+
"Content-Type": "application/json",
|
|
2584
|
+
...options.headers,
|
|
2585
|
+
},
|
|
2586
|
+
});
|
|
2587
|
+
};
|
|
2588
|
+
|
|
2589
|
+
export const webhooksControllerDelete0V1 = <
|
|
2590
|
+
ThrowOnError extends boolean = false,
|
|
2591
|
+
>(
|
|
2592
|
+
options: Options<WebhooksControllerDelete0V1Data, ThrowOnError>,
|
|
2593
|
+
) => {
|
|
2594
|
+
return (options.client ?? _heyApiClient).delete<
|
|
2595
|
+
WebhooksControllerDelete0V1Responses,
|
|
2596
|
+
WebhooksControllerDelete0V1Errors,
|
|
2597
|
+
ThrowOnError
|
|
2598
|
+
>({
|
|
2599
|
+
security: [
|
|
2600
|
+
{
|
|
2601
|
+
name: "x-api-token",
|
|
2602
|
+
type: "apiKey",
|
|
2603
|
+
},
|
|
2604
|
+
],
|
|
2605
|
+
url: "/v1/org/{org_id}/webhooks/{id}",
|
|
2606
|
+
...options,
|
|
2607
|
+
});
|
|
2608
|
+
};
|
|
2609
|
+
|
|
2610
|
+
export const webhooksControllerGet0V1 = <ThrowOnError extends boolean = false>(
|
|
2611
|
+
options: Options<WebhooksControllerGet0V1Data, ThrowOnError>,
|
|
2612
|
+
) => {
|
|
2613
|
+
return (options.client ?? _heyApiClient).get<
|
|
2614
|
+
WebhooksControllerGet0V1Responses,
|
|
2615
|
+
WebhooksControllerGet0V1Errors,
|
|
2616
|
+
ThrowOnError
|
|
2617
|
+
>({
|
|
2618
|
+
security: [
|
|
2619
|
+
{
|
|
2620
|
+
name: "x-api-token",
|
|
2621
|
+
type: "apiKey",
|
|
2622
|
+
},
|
|
2623
|
+
],
|
|
2624
|
+
responseTransformer: webhooksControllerGet0V1ResponseTransformer,
|
|
2625
|
+
url: "/v1/org/{org_id}/webhooks/{id}",
|
|
2626
|
+
...options,
|
|
2627
|
+
});
|
|
2628
|
+
};
|
|
2629
|
+
|
|
2630
|
+
export const webhooksControllerUpdate0V1 = <
|
|
2631
|
+
ThrowOnError extends boolean = false,
|
|
2632
|
+
>(
|
|
2633
|
+
options: Options<WebhooksControllerUpdate0V1Data, ThrowOnError>,
|
|
2634
|
+
) => {
|
|
2635
|
+
return (options.client ?? _heyApiClient).put<
|
|
2636
|
+
WebhooksControllerUpdate0V1Responses,
|
|
2637
|
+
WebhooksControllerUpdate0V1Errors,
|
|
2638
|
+
ThrowOnError
|
|
2639
|
+
>({
|
|
2640
|
+
security: [
|
|
2641
|
+
{
|
|
2642
|
+
name: "x-api-token",
|
|
2643
|
+
type: "apiKey",
|
|
2644
|
+
},
|
|
2645
|
+
],
|
|
2646
|
+
responseTransformer: webhooksControllerUpdate0V1ResponseTransformer,
|
|
2647
|
+
url: "/v1/org/{org_id}/webhooks/{id}",
|
|
2648
|
+
...options,
|
|
2649
|
+
headers: {
|
|
2650
|
+
"Content-Type": "application/json",
|
|
2651
|
+
...options.headers,
|
|
2652
|
+
},
|
|
2653
|
+
});
|
|
2654
|
+
};
|
|
2655
|
+
|
|
2656
|
+
/**
|
|
2657
|
+
* @deprecated
|
|
2658
|
+
*/
|
|
2659
|
+
export const webhooksControllerDelete1 = <ThrowOnError extends boolean = false>(
|
|
2660
|
+
options: Options<WebhooksControllerDelete1Data, ThrowOnError>,
|
|
2661
|
+
) => {
|
|
2662
|
+
return (options.client ?? _heyApiClient).delete<
|
|
2663
|
+
WebhooksControllerDelete1Responses,
|
|
2664
|
+
WebhooksControllerDelete1Errors,
|
|
2665
|
+
ThrowOnError
|
|
2666
|
+
>({
|
|
2667
|
+
security: [
|
|
2668
|
+
{
|
|
2669
|
+
name: "x-api-token",
|
|
2670
|
+
type: "apiKey",
|
|
2671
|
+
},
|
|
2672
|
+
],
|
|
2673
|
+
url: "/org/{org_id}/webhooks/{id}",
|
|
2674
|
+
...options,
|
|
2675
|
+
});
|
|
2676
|
+
};
|
|
2677
|
+
|
|
2678
|
+
/**
|
|
2679
|
+
* @deprecated
|
|
2680
|
+
*/
|
|
2681
|
+
export const webhooksControllerGet1 = <ThrowOnError extends boolean = false>(
|
|
2682
|
+
options: Options<WebhooksControllerGet1Data, ThrowOnError>,
|
|
2683
|
+
) => {
|
|
2684
|
+
return (options.client ?? _heyApiClient).get<
|
|
2685
|
+
WebhooksControllerGet1Responses,
|
|
2686
|
+
WebhooksControllerGet1Errors,
|
|
2687
|
+
ThrowOnError
|
|
2688
|
+
>({
|
|
2689
|
+
security: [
|
|
2690
|
+
{
|
|
2691
|
+
name: "x-api-token",
|
|
2692
|
+
type: "apiKey",
|
|
2693
|
+
},
|
|
2694
|
+
],
|
|
2695
|
+
responseTransformer: webhooksControllerGet1ResponseTransformer,
|
|
2696
|
+
url: "/org/{org_id}/webhooks/{id}",
|
|
2697
|
+
...options,
|
|
2698
|
+
});
|
|
2699
|
+
};
|
|
2700
|
+
|
|
2701
|
+
/**
|
|
2702
|
+
* @deprecated
|
|
2703
|
+
*/
|
|
2704
|
+
export const webhooksControllerUpdate1 = <ThrowOnError extends boolean = false>(
|
|
2705
|
+
options: Options<WebhooksControllerUpdate1Data, ThrowOnError>,
|
|
2706
|
+
) => {
|
|
2707
|
+
return (options.client ?? _heyApiClient).put<
|
|
2708
|
+
WebhooksControllerUpdate1Responses,
|
|
2709
|
+
WebhooksControllerUpdate1Errors,
|
|
2710
|
+
ThrowOnError
|
|
2711
|
+
>({
|
|
2712
|
+
security: [
|
|
2713
|
+
{
|
|
2714
|
+
name: "x-api-token",
|
|
2715
|
+
type: "apiKey",
|
|
2716
|
+
},
|
|
2717
|
+
],
|
|
2718
|
+
responseTransformer: webhooksControllerUpdate1ResponseTransformer,
|
|
2719
|
+
url: "/org/{org_id}/webhooks/{id}",
|
|
2720
|
+
...options,
|
|
2721
|
+
headers: {
|
|
2722
|
+
"Content-Type": "application/json",
|
|
2723
|
+
...options.headers,
|
|
2724
|
+
},
|
|
2725
|
+
});
|
|
2726
|
+
};
|
|
2727
|
+
|
|
2728
|
+
export const webhooksControllerRegenerateSecret0V1 = <
|
|
2729
|
+
ThrowOnError extends boolean = false,
|
|
2730
|
+
>(
|
|
2731
|
+
options: Options<WebhooksControllerRegenerateSecret0V1Data, ThrowOnError>,
|
|
2732
|
+
) => {
|
|
2733
|
+
return (options.client ?? _heyApiClient).post<
|
|
2734
|
+
WebhooksControllerRegenerateSecret0V1Responses,
|
|
2735
|
+
WebhooksControllerRegenerateSecret0V1Errors,
|
|
2736
|
+
ThrowOnError
|
|
2737
|
+
>({
|
|
2738
|
+
security: [
|
|
2739
|
+
{
|
|
2740
|
+
name: "x-api-token",
|
|
2741
|
+
type: "apiKey",
|
|
2742
|
+
},
|
|
2743
|
+
],
|
|
2744
|
+
responseTransformer:
|
|
2745
|
+
webhooksControllerRegenerateSecret0V1ResponseTransformer,
|
|
2746
|
+
url: "/v1/org/{org_id}/webhooks/{id}/regenerate-secret",
|
|
2747
|
+
...options,
|
|
2748
|
+
headers: {
|
|
2749
|
+
"Content-Type": "application/json",
|
|
2750
|
+
...options.headers,
|
|
2751
|
+
},
|
|
2752
|
+
});
|
|
2753
|
+
};
|
|
2754
|
+
|
|
2755
|
+
/**
|
|
2756
|
+
* @deprecated
|
|
1008
2757
|
*/
|
|
1009
|
-
export const
|
|
2758
|
+
export const webhooksControllerRegenerateSecret1 = <
|
|
1010
2759
|
ThrowOnError extends boolean = false,
|
|
1011
2760
|
>(
|
|
1012
|
-
options: Options<
|
|
2761
|
+
options: Options<WebhooksControllerRegenerateSecret1Data, ThrowOnError>,
|
|
1013
2762
|
) => {
|
|
1014
2763
|
return (options.client ?? _heyApiClient).post<
|
|
1015
|
-
|
|
1016
|
-
|
|
2764
|
+
WebhooksControllerRegenerateSecret1Responses,
|
|
2765
|
+
WebhooksControllerRegenerateSecret1Errors,
|
|
1017
2766
|
ThrowOnError
|
|
1018
2767
|
>({
|
|
1019
2768
|
security: [
|
|
@@ -1021,12 +2770,9 @@ export const vaultsControllerCreateVaults = <
|
|
|
1021
2770
|
name: "x-api-token",
|
|
1022
2771
|
type: "apiKey",
|
|
1023
2772
|
},
|
|
1024
|
-
{
|
|
1025
|
-
name: "x-api-token",
|
|
1026
|
-
type: "apiKey",
|
|
1027
|
-
},
|
|
1028
2773
|
],
|
|
1029
|
-
|
|
2774
|
+
responseTransformer: webhooksControllerRegenerateSecret1ResponseTransformer,
|
|
2775
|
+
url: "/org/{org_id}/webhooks/{id}/regenerate-secret",
|
|
1030
2776
|
...options,
|
|
1031
2777
|
headers: {
|
|
1032
2778
|
"Content-Type": "application/json",
|
|
@@ -1035,12 +2781,12 @@ export const vaultsControllerCreateVaults = <
|
|
|
1035
2781
|
});
|
|
1036
2782
|
};
|
|
1037
2783
|
|
|
1038
|
-
export const
|
|
1039
|
-
options: Options<
|
|
2784
|
+
export const webhooksControllerTest0V1 = <ThrowOnError extends boolean = false>(
|
|
2785
|
+
options: Options<WebhooksControllerTest0V1Data, ThrowOnError>,
|
|
1040
2786
|
) => {
|
|
1041
|
-
return (options.client ?? _heyApiClient).
|
|
1042
|
-
|
|
1043
|
-
|
|
2787
|
+
return (options.client ?? _heyApiClient).post<
|
|
2788
|
+
WebhooksControllerTest0V1Responses,
|
|
2789
|
+
WebhooksControllerTest0V1Errors,
|
|
1044
2790
|
ThrowOnError
|
|
1045
2791
|
>({
|
|
1046
2792
|
security: [
|
|
@@ -1049,18 +2795,20 @@ export const webhooksControllerGetMany = <ThrowOnError extends boolean = false>(
|
|
|
1049
2795
|
type: "apiKey",
|
|
1050
2796
|
},
|
|
1051
2797
|
],
|
|
1052
|
-
|
|
1053
|
-
url: "/org/{org_id}/webhooks",
|
|
2798
|
+
url: "/v1/org/{org_id}/webhooks/{id}/test",
|
|
1054
2799
|
...options,
|
|
1055
2800
|
});
|
|
1056
2801
|
};
|
|
1057
2802
|
|
|
1058
|
-
|
|
1059
|
-
|
|
2803
|
+
/**
|
|
2804
|
+
* @deprecated
|
|
2805
|
+
*/
|
|
2806
|
+
export const webhooksControllerTest1 = <ThrowOnError extends boolean = false>(
|
|
2807
|
+
options: Options<WebhooksControllerTest1Data, ThrowOnError>,
|
|
1060
2808
|
) => {
|
|
1061
2809
|
return (options.client ?? _heyApiClient).post<
|
|
1062
|
-
|
|
1063
|
-
|
|
2810
|
+
WebhooksControllerTest1Responses,
|
|
2811
|
+
WebhooksControllerTest1Errors,
|
|
1064
2812
|
ThrowOnError
|
|
1065
2813
|
>({
|
|
1066
2814
|
security: [
|
|
@@ -1069,21 +2817,19 @@ export const webhooksControllerCreate = <ThrowOnError extends boolean = false>(
|
|
|
1069
2817
|
type: "apiKey",
|
|
1070
2818
|
},
|
|
1071
2819
|
],
|
|
1072
|
-
url: "/org/{org_id}/webhooks",
|
|
2820
|
+
url: "/org/{org_id}/webhooks/{id}/test",
|
|
1073
2821
|
...options,
|
|
1074
|
-
headers: {
|
|
1075
|
-
"Content-Type": "application/json",
|
|
1076
|
-
...options.headers,
|
|
1077
|
-
},
|
|
1078
2822
|
});
|
|
1079
2823
|
};
|
|
1080
2824
|
|
|
1081
|
-
export const
|
|
1082
|
-
|
|
2825
|
+
export const webhooksControllerGetStatus0V1 = <
|
|
2826
|
+
ThrowOnError extends boolean = false,
|
|
2827
|
+
>(
|
|
2828
|
+
options: Options<WebhooksControllerGetStatus0V1Data, ThrowOnError>,
|
|
1083
2829
|
) => {
|
|
1084
|
-
return (options.client ?? _heyApiClient).
|
|
1085
|
-
|
|
1086
|
-
|
|
2830
|
+
return (options.client ?? _heyApiClient).get<
|
|
2831
|
+
WebhooksControllerGetStatus0V1Responses,
|
|
2832
|
+
WebhooksControllerGetStatus0V1Errors,
|
|
1087
2833
|
ThrowOnError
|
|
1088
2834
|
>({
|
|
1089
2835
|
security: [
|
|
@@ -1092,17 +2838,22 @@ export const webhooksControllerDelete = <ThrowOnError extends boolean = false>(
|
|
|
1092
2838
|
type: "apiKey",
|
|
1093
2839
|
},
|
|
1094
2840
|
],
|
|
1095
|
-
url: "/org/{org_id}/webhooks/{id}",
|
|
2841
|
+
url: "/v1/org/{org_id}/webhooks/{id}/status",
|
|
1096
2842
|
...options,
|
|
1097
2843
|
});
|
|
1098
2844
|
};
|
|
1099
2845
|
|
|
1100
|
-
|
|
1101
|
-
|
|
2846
|
+
/**
|
|
2847
|
+
* @deprecated
|
|
2848
|
+
*/
|
|
2849
|
+
export const webhooksControllerGetStatus1 = <
|
|
2850
|
+
ThrowOnError extends boolean = false,
|
|
2851
|
+
>(
|
|
2852
|
+
options: Options<WebhooksControllerGetStatus1Data, ThrowOnError>,
|
|
1102
2853
|
) => {
|
|
1103
2854
|
return (options.client ?? _heyApiClient).get<
|
|
1104
|
-
|
|
1105
|
-
|
|
2855
|
+
WebhooksControllerGetStatus1Responses,
|
|
2856
|
+
WebhooksControllerGetStatus1Errors,
|
|
1106
2857
|
ThrowOnError
|
|
1107
2858
|
>({
|
|
1108
2859
|
security: [
|
|
@@ -1111,18 +2862,22 @@ export const webhooksControllerGet = <ThrowOnError extends boolean = false>(
|
|
|
1111
2862
|
type: "apiKey",
|
|
1112
2863
|
},
|
|
1113
2864
|
],
|
|
1114
|
-
|
|
1115
|
-
url: "/org/{org_id}/webhooks/{id}",
|
|
2865
|
+
url: "/org/{org_id}/webhooks/{id}/status",
|
|
1116
2866
|
...options,
|
|
1117
2867
|
});
|
|
1118
2868
|
};
|
|
1119
2869
|
|
|
1120
|
-
|
|
1121
|
-
|
|
2870
|
+
/**
|
|
2871
|
+
* Create a zone
|
|
2872
|
+
*/
|
|
2873
|
+
export const zonesControllerCreateZone0V1 = <
|
|
2874
|
+
ThrowOnError extends boolean = false,
|
|
2875
|
+
>(
|
|
2876
|
+
options: Options<ZonesControllerCreateZone0V1Data, ThrowOnError>,
|
|
1122
2877
|
) => {
|
|
1123
|
-
return (options.client ?? _heyApiClient).
|
|
1124
|
-
|
|
1125
|
-
|
|
2878
|
+
return (options.client ?? _heyApiClient).post<
|
|
2879
|
+
ZonesControllerCreateZone0V1Responses,
|
|
2880
|
+
ZonesControllerCreateZone0V1Errors,
|
|
1126
2881
|
ThrowOnError
|
|
1127
2882
|
>({
|
|
1128
2883
|
security: [
|
|
@@ -1131,8 +2886,8 @@ export const webhooksControllerUpdate = <ThrowOnError extends boolean = false>(
|
|
|
1131
2886
|
type: "apiKey",
|
|
1132
2887
|
},
|
|
1133
2888
|
],
|
|
1134
|
-
responseTransformer:
|
|
1135
|
-
url: "/
|
|
2889
|
+
responseTransformer: zonesControllerCreateZone0V1ResponseTransformer,
|
|
2890
|
+
url: "/v1/zones",
|
|
1136
2891
|
...options,
|
|
1137
2892
|
headers: {
|
|
1138
2893
|
"Content-Type": "application/json",
|
|
@@ -1141,14 +2896,18 @@ export const webhooksControllerUpdate = <ThrowOnError extends boolean = false>(
|
|
|
1141
2896
|
});
|
|
1142
2897
|
};
|
|
1143
2898
|
|
|
1144
|
-
|
|
2899
|
+
/**
|
|
2900
|
+
* Create a zone
|
|
2901
|
+
* @deprecated
|
|
2902
|
+
*/
|
|
2903
|
+
export const zonesControllerCreateZone1 = <
|
|
1145
2904
|
ThrowOnError extends boolean = false,
|
|
1146
2905
|
>(
|
|
1147
|
-
options: Options<
|
|
2906
|
+
options: Options<ZonesControllerCreateZone1Data, ThrowOnError>,
|
|
1148
2907
|
) => {
|
|
1149
2908
|
return (options.client ?? _heyApiClient).post<
|
|
1150
|
-
|
|
1151
|
-
|
|
2909
|
+
ZonesControllerCreateZone1Responses,
|
|
2910
|
+
ZonesControllerCreateZone1Errors,
|
|
1152
2911
|
ThrowOnError
|
|
1153
2912
|
>({
|
|
1154
2913
|
security: [
|
|
@@ -1157,8 +2916,8 @@ export const webhooksControllerRegenerateSecret = <
|
|
|
1157
2916
|
type: "apiKey",
|
|
1158
2917
|
},
|
|
1159
2918
|
],
|
|
1160
|
-
responseTransformer:
|
|
1161
|
-
url: "/
|
|
2919
|
+
responseTransformer: zonesControllerCreateZone1ResponseTransformer,
|
|
2920
|
+
url: "/zones",
|
|
1162
2921
|
...options,
|
|
1163
2922
|
headers: {
|
|
1164
2923
|
"Content-Type": "application/json",
|
|
@@ -1167,12 +2926,17 @@ export const webhooksControllerRegenerateSecret = <
|
|
|
1167
2926
|
});
|
|
1168
2927
|
};
|
|
1169
2928
|
|
|
1170
|
-
|
|
1171
|
-
|
|
2929
|
+
/**
|
|
2930
|
+
* Delete a zone
|
|
2931
|
+
*/
|
|
2932
|
+
export const zonesControllerDeleteZone0V1 = <
|
|
2933
|
+
ThrowOnError extends boolean = false,
|
|
2934
|
+
>(
|
|
2935
|
+
options: Options<ZonesControllerDeleteZone0V1Data, ThrowOnError>,
|
|
1172
2936
|
) => {
|
|
1173
|
-
return (options.client ?? _heyApiClient).
|
|
1174
|
-
|
|
1175
|
-
|
|
2937
|
+
return (options.client ?? _heyApiClient).delete<
|
|
2938
|
+
ZonesControllerDeleteZone0V1Responses,
|
|
2939
|
+
ZonesControllerDeleteZone0V1Errors,
|
|
1176
2940
|
ThrowOnError
|
|
1177
2941
|
>({
|
|
1178
2942
|
security: [
|
|
@@ -1181,19 +2945,22 @@ export const webhooksControllerTest = <ThrowOnError extends boolean = false>(
|
|
|
1181
2945
|
type: "apiKey",
|
|
1182
2946
|
},
|
|
1183
2947
|
],
|
|
1184
|
-
url: "/
|
|
2948
|
+
url: "/v1/zones/{id}",
|
|
1185
2949
|
...options,
|
|
1186
2950
|
});
|
|
1187
2951
|
};
|
|
1188
2952
|
|
|
1189
|
-
|
|
2953
|
+
/**
|
|
2954
|
+
* Update a zone
|
|
2955
|
+
*/
|
|
2956
|
+
export const zonesControllerUpdateZone0V1 = <
|
|
1190
2957
|
ThrowOnError extends boolean = false,
|
|
1191
2958
|
>(
|
|
1192
|
-
options: Options<
|
|
2959
|
+
options: Options<ZonesControllerUpdateZone0V1Data, ThrowOnError>,
|
|
1193
2960
|
) => {
|
|
1194
|
-
return (options.client ?? _heyApiClient).
|
|
1195
|
-
|
|
1196
|
-
|
|
2961
|
+
return (options.client ?? _heyApiClient).put<
|
|
2962
|
+
ZonesControllerUpdateZone0V1Responses,
|
|
2963
|
+
ZonesControllerUpdateZone0V1Errors,
|
|
1197
2964
|
ThrowOnError
|
|
1198
2965
|
>({
|
|
1199
2966
|
security: [
|
|
@@ -1202,20 +2969,28 @@ export const webhooksControllerGetStatus = <
|
|
|
1202
2969
|
type: "apiKey",
|
|
1203
2970
|
},
|
|
1204
2971
|
],
|
|
1205
|
-
|
|
2972
|
+
responseTransformer: zonesControllerUpdateZone0V1ResponseTransformer,
|
|
2973
|
+
url: "/v1/zones/{id}",
|
|
1206
2974
|
...options,
|
|
2975
|
+
headers: {
|
|
2976
|
+
"Content-Type": "application/json",
|
|
2977
|
+
...options.headers,
|
|
2978
|
+
},
|
|
1207
2979
|
});
|
|
1208
2980
|
};
|
|
1209
2981
|
|
|
1210
2982
|
/**
|
|
1211
|
-
*
|
|
2983
|
+
* Delete a zone
|
|
2984
|
+
* @deprecated
|
|
1212
2985
|
*/
|
|
1213
|
-
export const
|
|
1214
|
-
|
|
2986
|
+
export const zonesControllerDeleteZone1 = <
|
|
2987
|
+
ThrowOnError extends boolean = false,
|
|
2988
|
+
>(
|
|
2989
|
+
options: Options<ZonesControllerDeleteZone1Data, ThrowOnError>,
|
|
1215
2990
|
) => {
|
|
1216
|
-
return (options.client ?? _heyApiClient).
|
|
1217
|
-
|
|
1218
|
-
|
|
2991
|
+
return (options.client ?? _heyApiClient).delete<
|
|
2992
|
+
ZonesControllerDeleteZone1Responses,
|
|
2993
|
+
ZonesControllerDeleteZone1Errors,
|
|
1219
2994
|
ThrowOnError
|
|
1220
2995
|
>({
|
|
1221
2996
|
security: [
|
|
@@ -1224,25 +2999,23 @@ export const zonesControllerCreateZone = <ThrowOnError extends boolean = false>(
|
|
|
1224
2999
|
type: "apiKey",
|
|
1225
3000
|
},
|
|
1226
3001
|
],
|
|
1227
|
-
|
|
1228
|
-
url: "/zones",
|
|
3002
|
+
url: "/zones/{id}",
|
|
1229
3003
|
...options,
|
|
1230
|
-
headers: {
|
|
1231
|
-
"Content-Type": "application/json",
|
|
1232
|
-
...options.headers,
|
|
1233
|
-
},
|
|
1234
3004
|
});
|
|
1235
3005
|
};
|
|
1236
3006
|
|
|
1237
3007
|
/**
|
|
1238
|
-
*
|
|
3008
|
+
* Update a zone
|
|
3009
|
+
* @deprecated
|
|
1239
3010
|
*/
|
|
1240
|
-
export const
|
|
1241
|
-
|
|
3011
|
+
export const zonesControllerUpdateZone1 = <
|
|
3012
|
+
ThrowOnError extends boolean = false,
|
|
3013
|
+
>(
|
|
3014
|
+
options: Options<ZonesControllerUpdateZone1Data, ThrowOnError>,
|
|
1242
3015
|
) => {
|
|
1243
|
-
return (options.client ?? _heyApiClient).
|
|
1244
|
-
|
|
1245
|
-
|
|
3016
|
+
return (options.client ?? _heyApiClient).put<
|
|
3017
|
+
ZonesControllerUpdateZone1Responses,
|
|
3018
|
+
ZonesControllerUpdateZone1Errors,
|
|
1246
3019
|
ThrowOnError
|
|
1247
3020
|
>({
|
|
1248
3021
|
security: [
|
|
@@ -1251,20 +3024,31 @@ export const zonesControllerDeleteZone = <ThrowOnError extends boolean = false>(
|
|
|
1251
3024
|
type: "apiKey",
|
|
1252
3025
|
},
|
|
1253
3026
|
],
|
|
3027
|
+
responseTransformer: zonesControllerUpdateZone1ResponseTransformer,
|
|
1254
3028
|
url: "/zones/{id}",
|
|
1255
3029
|
...options,
|
|
3030
|
+
headers: {
|
|
3031
|
+
"Content-Type": "application/json",
|
|
3032
|
+
...options.headers,
|
|
3033
|
+
},
|
|
1256
3034
|
});
|
|
1257
3035
|
};
|
|
1258
3036
|
|
|
1259
3037
|
/**
|
|
1260
|
-
*
|
|
3038
|
+
* Force mission state resync from RPC
|
|
3039
|
+
* For each mission ID, reads MissionData + MissionEscrow on-chain, loads off-chain JSON from the missions bucket, and upserts event-proc.vaults / missions / campaigns.
|
|
1261
3040
|
*/
|
|
1262
|
-
export const
|
|
1263
|
-
|
|
3041
|
+
export const eventProcessorMissionsSyncControllerResyncMissions0V1 = <
|
|
3042
|
+
ThrowOnError extends boolean = false,
|
|
3043
|
+
>(
|
|
3044
|
+
options: Options<
|
|
3045
|
+
EventProcessorMissionsSyncControllerResyncMissions0V1Data,
|
|
3046
|
+
ThrowOnError
|
|
3047
|
+
>,
|
|
1264
3048
|
) => {
|
|
1265
3049
|
return (options.client ?? _heyApiClient).put<
|
|
1266
|
-
|
|
1267
|
-
|
|
3050
|
+
EventProcessorMissionsSyncControllerResyncMissions0V1Responses,
|
|
3051
|
+
EventProcessorMissionsSyncControllerResyncMissions0V1Errors,
|
|
1268
3052
|
ThrowOnError
|
|
1269
3053
|
>({
|
|
1270
3054
|
security: [
|
|
@@ -1273,8 +3057,7 @@ export const zonesControllerUpdateZone = <ThrowOnError extends boolean = false>(
|
|
|
1273
3057
|
type: "apiKey",
|
|
1274
3058
|
},
|
|
1275
3059
|
],
|
|
1276
|
-
|
|
1277
|
-
url: "/zones/{id}",
|
|
3060
|
+
url: "/v1/event-processor/missions/sync",
|
|
1278
3061
|
...options,
|
|
1279
3062
|
headers: {
|
|
1280
3063
|
"Content-Type": "application/json",
|
|
@@ -1286,18 +3069,19 @@ export const zonesControllerUpdateZone = <ThrowOnError extends boolean = false>(
|
|
|
1286
3069
|
/**
|
|
1287
3070
|
* Force mission state resync from RPC
|
|
1288
3071
|
* For each mission ID, reads MissionData + MissionEscrow on-chain, loads off-chain JSON from the missions bucket, and upserts event-proc.vaults / missions / campaigns.
|
|
3072
|
+
* @deprecated
|
|
1289
3073
|
*/
|
|
1290
|
-
export const
|
|
3074
|
+
export const eventProcessorMissionsSyncControllerResyncMissions1 = <
|
|
1291
3075
|
ThrowOnError extends boolean = false,
|
|
1292
3076
|
>(
|
|
1293
3077
|
options: Options<
|
|
1294
|
-
|
|
3078
|
+
EventProcessorMissionsSyncControllerResyncMissions1Data,
|
|
1295
3079
|
ThrowOnError
|
|
1296
3080
|
>,
|
|
1297
3081
|
) => {
|
|
1298
3082
|
return (options.client ?? _heyApiClient).put<
|
|
1299
|
-
|
|
1300
|
-
|
|
3083
|
+
EventProcessorMissionsSyncControllerResyncMissions1Responses,
|
|
3084
|
+
EventProcessorMissionsSyncControllerResyncMissions1Errors,
|
|
1301
3085
|
ThrowOnError
|
|
1302
3086
|
>({
|
|
1303
3087
|
security: [
|
|
@@ -1319,17 +3103,50 @@ export const eventProcessorMissionsSyncControllerResyncMissions = <
|
|
|
1319
3103
|
* Force flight review state resync from RPC
|
|
1320
3104
|
* 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.
|
|
1321
3105
|
*/
|
|
1322
|
-
export const
|
|
3106
|
+
export const eventProcessorFlightReviewsSyncControllerResyncFlightReviews0V1 = <
|
|
3107
|
+
ThrowOnError extends boolean = false,
|
|
3108
|
+
>(
|
|
3109
|
+
options: Options<
|
|
3110
|
+
EventProcessorFlightReviewsSyncControllerResyncFlightReviews0V1Data,
|
|
3111
|
+
ThrowOnError
|
|
3112
|
+
>,
|
|
3113
|
+
) => {
|
|
3114
|
+
return (options.client ?? _heyApiClient).put<
|
|
3115
|
+
EventProcessorFlightReviewsSyncControllerResyncFlightReviews0V1Responses,
|
|
3116
|
+
EventProcessorFlightReviewsSyncControllerResyncFlightReviews0V1Errors,
|
|
3117
|
+
ThrowOnError
|
|
3118
|
+
>({
|
|
3119
|
+
security: [
|
|
3120
|
+
{
|
|
3121
|
+
name: "x-api-token",
|
|
3122
|
+
type: "apiKey",
|
|
3123
|
+
},
|
|
3124
|
+
],
|
|
3125
|
+
url: "/v1/event-processor/flightreviews",
|
|
3126
|
+
...options,
|
|
3127
|
+
headers: {
|
|
3128
|
+
"Content-Type": "application/json",
|
|
3129
|
+
...options.headers,
|
|
3130
|
+
},
|
|
3131
|
+
});
|
|
3132
|
+
};
|
|
3133
|
+
|
|
3134
|
+
/**
|
|
3135
|
+
* Force flight review state resync from RPC
|
|
3136
|
+
* 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.
|
|
3137
|
+
* @deprecated
|
|
3138
|
+
*/
|
|
3139
|
+
export const eventProcessorFlightReviewsSyncControllerResyncFlightReviews1 = <
|
|
1323
3140
|
ThrowOnError extends boolean = false,
|
|
1324
3141
|
>(
|
|
1325
3142
|
options: Options<
|
|
1326
|
-
|
|
3143
|
+
EventProcessorFlightReviewsSyncControllerResyncFlightReviews1Data,
|
|
1327
3144
|
ThrowOnError
|
|
1328
3145
|
>,
|
|
1329
3146
|
) => {
|
|
1330
3147
|
return (options.client ?? _heyApiClient).put<
|
|
1331
|
-
|
|
1332
|
-
|
|
3148
|
+
EventProcessorFlightReviewsSyncControllerResyncFlightReviews1Responses,
|
|
3149
|
+
EventProcessorFlightReviewsSyncControllerResyncFlightReviews1Errors,
|
|
1333
3150
|
ThrowOnError
|
|
1334
3151
|
>({
|
|
1335
3152
|
security: [
|
|
@@ -1347,13 +3164,35 @@ export const eventProcessorFlightReviewsSyncControllerResyncFlightReviews = <
|
|
|
1347
3164
|
});
|
|
1348
3165
|
};
|
|
1349
3166
|
|
|
1350
|
-
export const
|
|
3167
|
+
export const alchemyControllerHandleWebhook0V1 = <
|
|
3168
|
+
ThrowOnError extends boolean = false,
|
|
3169
|
+
>(
|
|
3170
|
+
options: Options<AlchemyControllerHandleWebhook0V1Data, ThrowOnError>,
|
|
3171
|
+
) => {
|
|
3172
|
+
return (options.client ?? _heyApiClient).post<
|
|
3173
|
+
AlchemyControllerHandleWebhook0V1Responses,
|
|
3174
|
+
unknown,
|
|
3175
|
+
ThrowOnError
|
|
3176
|
+
>({
|
|
3177
|
+
url: "/v1/webhooks/inbound/alchemy",
|
|
3178
|
+
...options,
|
|
3179
|
+
headers: {
|
|
3180
|
+
"Content-Type": "application/json",
|
|
3181
|
+
...options.headers,
|
|
3182
|
+
},
|
|
3183
|
+
});
|
|
3184
|
+
};
|
|
3185
|
+
|
|
3186
|
+
/**
|
|
3187
|
+
* @deprecated
|
|
3188
|
+
*/
|
|
3189
|
+
export const alchemyControllerHandleWebhook1 = <
|
|
1351
3190
|
ThrowOnError extends boolean = false,
|
|
1352
3191
|
>(
|
|
1353
|
-
options: Options<
|
|
3192
|
+
options: Options<AlchemyControllerHandleWebhook1Data, ThrowOnError>,
|
|
1354
3193
|
) => {
|
|
1355
3194
|
return (options.client ?? _heyApiClient).post<
|
|
1356
|
-
|
|
3195
|
+
AlchemyControllerHandleWebhook1Responses,
|
|
1357
3196
|
unknown,
|
|
1358
3197
|
ThrowOnError
|
|
1359
3198
|
>({
|
|
@@ -1369,14 +3208,77 @@ export const alchemyControllerHandleWebhook = <
|
|
|
1369
3208
|
/**
|
|
1370
3209
|
* Get all inbound webhook configs
|
|
1371
3210
|
*/
|
|
1372
|
-
export const
|
|
3211
|
+
export const inboundWebhookConfigsControllerGetMany0V1 = <
|
|
3212
|
+
ThrowOnError extends boolean = false,
|
|
3213
|
+
>(
|
|
3214
|
+
options?: Options<
|
|
3215
|
+
InboundWebhookConfigsControllerGetMany0V1Data,
|
|
3216
|
+
ThrowOnError
|
|
3217
|
+
>,
|
|
3218
|
+
) => {
|
|
3219
|
+
return (options?.client ?? _heyApiClient).get<
|
|
3220
|
+
InboundWebhookConfigsControllerGetMany0V1Responses,
|
|
3221
|
+
InboundWebhookConfigsControllerGetMany0V1Errors,
|
|
3222
|
+
ThrowOnError
|
|
3223
|
+
>({
|
|
3224
|
+
security: [
|
|
3225
|
+
{
|
|
3226
|
+
name: "x-api-token",
|
|
3227
|
+
type: "apiKey",
|
|
3228
|
+
},
|
|
3229
|
+
],
|
|
3230
|
+
responseTransformer:
|
|
3231
|
+
inboundWebhookConfigsControllerGetMany0V1ResponseTransformer,
|
|
3232
|
+
url: "/v1/webhooks/inbound/configs",
|
|
3233
|
+
...options,
|
|
3234
|
+
});
|
|
3235
|
+
};
|
|
3236
|
+
|
|
3237
|
+
/**
|
|
3238
|
+
* Add a configuration for an inbound webhook
|
|
3239
|
+
* The config added here helps the api process the webhook events received
|
|
3240
|
+
* by the /webhooks/inbound/alchemy endpoint.
|
|
3241
|
+
* [Detailed Instructions](https://github.com/spexigeo/layer-drone/blob/main/apps/protocol-api/src/modules/api/webhooks/inbound/alchemy/README.md)
|
|
3242
|
+
*/
|
|
3243
|
+
export const inboundWebhookConfigsControllerCreate0V1 = <
|
|
3244
|
+
ThrowOnError extends boolean = false,
|
|
3245
|
+
>(
|
|
3246
|
+
options: Options<InboundWebhookConfigsControllerCreate0V1Data, ThrowOnError>,
|
|
3247
|
+
) => {
|
|
3248
|
+
return (options.client ?? _heyApiClient).post<
|
|
3249
|
+
InboundWebhookConfigsControllerCreate0V1Responses,
|
|
3250
|
+
InboundWebhookConfigsControllerCreate0V1Errors,
|
|
3251
|
+
ThrowOnError
|
|
3252
|
+
>({
|
|
3253
|
+
security: [
|
|
3254
|
+
{
|
|
3255
|
+
name: "x-api-token",
|
|
3256
|
+
type: "apiKey",
|
|
3257
|
+
},
|
|
3258
|
+
],
|
|
3259
|
+
responseTransformer:
|
|
3260
|
+
inboundWebhookConfigsControllerCreate0V1ResponseTransformer,
|
|
3261
|
+
url: "/v1/webhooks/inbound/configs",
|
|
3262
|
+
...options,
|
|
3263
|
+
headers: {
|
|
3264
|
+
"Content-Type": "application/json",
|
|
3265
|
+
...options.headers,
|
|
3266
|
+
},
|
|
3267
|
+
});
|
|
3268
|
+
};
|
|
3269
|
+
|
|
3270
|
+
/**
|
|
3271
|
+
* Get all inbound webhook configs
|
|
3272
|
+
* @deprecated
|
|
3273
|
+
*/
|
|
3274
|
+
export const inboundWebhookConfigsControllerGetMany1 = <
|
|
1373
3275
|
ThrowOnError extends boolean = false,
|
|
1374
3276
|
>(
|
|
1375
|
-
options?: Options<
|
|
3277
|
+
options?: Options<InboundWebhookConfigsControllerGetMany1Data, ThrowOnError>,
|
|
1376
3278
|
) => {
|
|
1377
3279
|
return (options?.client ?? _heyApiClient).get<
|
|
1378
|
-
|
|
1379
|
-
|
|
3280
|
+
InboundWebhookConfigsControllerGetMany1Responses,
|
|
3281
|
+
InboundWebhookConfigsControllerGetMany1Errors,
|
|
1380
3282
|
ThrowOnError
|
|
1381
3283
|
>({
|
|
1382
3284
|
security: [
|
|
@@ -1386,7 +3288,7 @@ export const inboundWebhookConfigsControllerGetMany = <
|
|
|
1386
3288
|
},
|
|
1387
3289
|
],
|
|
1388
3290
|
responseTransformer:
|
|
1389
|
-
|
|
3291
|
+
inboundWebhookConfigsControllerGetMany1ResponseTransformer,
|
|
1390
3292
|
url: "/webhooks/inbound/configs",
|
|
1391
3293
|
...options,
|
|
1392
3294
|
});
|
|
@@ -1397,15 +3299,16 @@ export const inboundWebhookConfigsControllerGetMany = <
|
|
|
1397
3299
|
* The config added here helps the api process the webhook events received
|
|
1398
3300
|
* by the /webhooks/inbound/alchemy endpoint.
|
|
1399
3301
|
* [Detailed Instructions](https://github.com/spexigeo/layer-drone/blob/main/apps/protocol-api/src/modules/api/webhooks/inbound/alchemy/README.md)
|
|
3302
|
+
* @deprecated
|
|
1400
3303
|
*/
|
|
1401
|
-
export const
|
|
3304
|
+
export const inboundWebhookConfigsControllerCreate1 = <
|
|
1402
3305
|
ThrowOnError extends boolean = false,
|
|
1403
3306
|
>(
|
|
1404
|
-
options: Options<
|
|
3307
|
+
options: Options<InboundWebhookConfigsControllerCreate1Data, ThrowOnError>,
|
|
1405
3308
|
) => {
|
|
1406
3309
|
return (options.client ?? _heyApiClient).post<
|
|
1407
|
-
|
|
1408
|
-
|
|
3310
|
+
InboundWebhookConfigsControllerCreate1Responses,
|
|
3311
|
+
InboundWebhookConfigsControllerCreate1Errors,
|
|
1409
3312
|
ThrowOnError
|
|
1410
3313
|
>({
|
|
1411
3314
|
security: [
|
|
@@ -1415,7 +3318,7 @@ export const inboundWebhookConfigsControllerCreate = <
|
|
|
1415
3318
|
},
|
|
1416
3319
|
],
|
|
1417
3320
|
responseTransformer:
|
|
1418
|
-
|
|
3321
|
+
inboundWebhookConfigsControllerCreate1ResponseTransformer,
|
|
1419
3322
|
url: "/webhooks/inbound/configs",
|
|
1420
3323
|
...options,
|
|
1421
3324
|
headers: {
|
|
@@ -1428,14 +3331,95 @@ export const inboundWebhookConfigsControllerCreate = <
|
|
|
1428
3331
|
/**
|
|
1429
3332
|
* Delete an inbound webhook config
|
|
1430
3333
|
*/
|
|
1431
|
-
export const
|
|
3334
|
+
export const inboundWebhookConfigsControllerDelete0V1 = <
|
|
3335
|
+
ThrowOnError extends boolean = false,
|
|
3336
|
+
>(
|
|
3337
|
+
options: Options<InboundWebhookConfigsControllerDelete0V1Data, ThrowOnError>,
|
|
3338
|
+
) => {
|
|
3339
|
+
return (options.client ?? _heyApiClient).delete<
|
|
3340
|
+
InboundWebhookConfigsControllerDelete0V1Responses,
|
|
3341
|
+
InboundWebhookConfigsControllerDelete0V1Errors,
|
|
3342
|
+
ThrowOnError
|
|
3343
|
+
>({
|
|
3344
|
+
security: [
|
|
3345
|
+
{
|
|
3346
|
+
name: "x-api-token",
|
|
3347
|
+
type: "apiKey",
|
|
3348
|
+
},
|
|
3349
|
+
],
|
|
3350
|
+
url: "/v1/webhooks/inbound/configs/{id}",
|
|
3351
|
+
...options,
|
|
3352
|
+
});
|
|
3353
|
+
};
|
|
3354
|
+
|
|
3355
|
+
/**
|
|
3356
|
+
* Get an inbound webhook config by id
|
|
3357
|
+
*/
|
|
3358
|
+
export const inboundWebhookConfigsControllerGet0V1 = <
|
|
3359
|
+
ThrowOnError extends boolean = false,
|
|
3360
|
+
>(
|
|
3361
|
+
options: Options<InboundWebhookConfigsControllerGet0V1Data, ThrowOnError>,
|
|
3362
|
+
) => {
|
|
3363
|
+
return (options.client ?? _heyApiClient).get<
|
|
3364
|
+
InboundWebhookConfigsControllerGet0V1Responses,
|
|
3365
|
+
InboundWebhookConfigsControllerGet0V1Errors,
|
|
3366
|
+
ThrowOnError
|
|
3367
|
+
>({
|
|
3368
|
+
security: [
|
|
3369
|
+
{
|
|
3370
|
+
name: "x-api-token",
|
|
3371
|
+
type: "apiKey",
|
|
3372
|
+
},
|
|
3373
|
+
],
|
|
3374
|
+
responseTransformer:
|
|
3375
|
+
inboundWebhookConfigsControllerGet0V1ResponseTransformer,
|
|
3376
|
+
url: "/v1/webhooks/inbound/configs/{id}",
|
|
3377
|
+
...options,
|
|
3378
|
+
});
|
|
3379
|
+
};
|
|
3380
|
+
|
|
3381
|
+
/**
|
|
3382
|
+
* Update an inbound webhook config
|
|
3383
|
+
*/
|
|
3384
|
+
export const inboundWebhookConfigsControllerUpdate0V1 = <
|
|
3385
|
+
ThrowOnError extends boolean = false,
|
|
3386
|
+
>(
|
|
3387
|
+
options: Options<InboundWebhookConfigsControllerUpdate0V1Data, ThrowOnError>,
|
|
3388
|
+
) => {
|
|
3389
|
+
return (options.client ?? _heyApiClient).put<
|
|
3390
|
+
InboundWebhookConfigsControllerUpdate0V1Responses,
|
|
3391
|
+
InboundWebhookConfigsControllerUpdate0V1Errors,
|
|
3392
|
+
ThrowOnError
|
|
3393
|
+
>({
|
|
3394
|
+
security: [
|
|
3395
|
+
{
|
|
3396
|
+
name: "x-api-token",
|
|
3397
|
+
type: "apiKey",
|
|
3398
|
+
},
|
|
3399
|
+
],
|
|
3400
|
+
responseTransformer:
|
|
3401
|
+
inboundWebhookConfigsControllerUpdate0V1ResponseTransformer,
|
|
3402
|
+
url: "/v1/webhooks/inbound/configs/{id}",
|
|
3403
|
+
...options,
|
|
3404
|
+
headers: {
|
|
3405
|
+
"Content-Type": "application/json",
|
|
3406
|
+
...options.headers,
|
|
3407
|
+
},
|
|
3408
|
+
});
|
|
3409
|
+
};
|
|
3410
|
+
|
|
3411
|
+
/**
|
|
3412
|
+
* Delete an inbound webhook config
|
|
3413
|
+
* @deprecated
|
|
3414
|
+
*/
|
|
3415
|
+
export const inboundWebhookConfigsControllerDelete1 = <
|
|
1432
3416
|
ThrowOnError extends boolean = false,
|
|
1433
3417
|
>(
|
|
1434
|
-
options: Options<
|
|
3418
|
+
options: Options<InboundWebhookConfigsControllerDelete1Data, ThrowOnError>,
|
|
1435
3419
|
) => {
|
|
1436
3420
|
return (options.client ?? _heyApiClient).delete<
|
|
1437
|
-
|
|
1438
|
-
|
|
3421
|
+
InboundWebhookConfigsControllerDelete1Responses,
|
|
3422
|
+
InboundWebhookConfigsControllerDelete1Errors,
|
|
1439
3423
|
ThrowOnError
|
|
1440
3424
|
>({
|
|
1441
3425
|
security: [
|
|
@@ -1451,15 +3435,16 @@ export const inboundWebhookConfigsControllerDelete = <
|
|
|
1451
3435
|
|
|
1452
3436
|
/**
|
|
1453
3437
|
* Get an inbound webhook config by id
|
|
3438
|
+
* @deprecated
|
|
1454
3439
|
*/
|
|
1455
|
-
export const
|
|
3440
|
+
export const inboundWebhookConfigsControllerGet1 = <
|
|
1456
3441
|
ThrowOnError extends boolean = false,
|
|
1457
3442
|
>(
|
|
1458
|
-
options: Options<
|
|
3443
|
+
options: Options<InboundWebhookConfigsControllerGet1Data, ThrowOnError>,
|
|
1459
3444
|
) => {
|
|
1460
3445
|
return (options.client ?? _heyApiClient).get<
|
|
1461
|
-
|
|
1462
|
-
|
|
3446
|
+
InboundWebhookConfigsControllerGet1Responses,
|
|
3447
|
+
InboundWebhookConfigsControllerGet1Errors,
|
|
1463
3448
|
ThrowOnError
|
|
1464
3449
|
>({
|
|
1465
3450
|
security: [
|
|
@@ -1468,7 +3453,7 @@ export const inboundWebhookConfigsControllerGet = <
|
|
|
1468
3453
|
type: "apiKey",
|
|
1469
3454
|
},
|
|
1470
3455
|
],
|
|
1471
|
-
responseTransformer:
|
|
3456
|
+
responseTransformer: inboundWebhookConfigsControllerGet1ResponseTransformer,
|
|
1472
3457
|
url: "/webhooks/inbound/configs/{id}",
|
|
1473
3458
|
...options,
|
|
1474
3459
|
});
|
|
@@ -1476,15 +3461,16 @@ export const inboundWebhookConfigsControllerGet = <
|
|
|
1476
3461
|
|
|
1477
3462
|
/**
|
|
1478
3463
|
* Update an inbound webhook config
|
|
3464
|
+
* @deprecated
|
|
1479
3465
|
*/
|
|
1480
|
-
export const
|
|
3466
|
+
export const inboundWebhookConfigsControllerUpdate1 = <
|
|
1481
3467
|
ThrowOnError extends boolean = false,
|
|
1482
3468
|
>(
|
|
1483
|
-
options: Options<
|
|
3469
|
+
options: Options<InboundWebhookConfigsControllerUpdate1Data, ThrowOnError>,
|
|
1484
3470
|
) => {
|
|
1485
3471
|
return (options.client ?? _heyApiClient).put<
|
|
1486
|
-
|
|
1487
|
-
|
|
3472
|
+
InboundWebhookConfigsControllerUpdate1Responses,
|
|
3473
|
+
InboundWebhookConfigsControllerUpdate1Errors,
|
|
1488
3474
|
ThrowOnError
|
|
1489
3475
|
>({
|
|
1490
3476
|
security: [
|
|
@@ -1494,7 +3480,7 @@ export const inboundWebhookConfigsControllerUpdate = <
|
|
|
1494
3480
|
},
|
|
1495
3481
|
],
|
|
1496
3482
|
responseTransformer:
|
|
1497
|
-
|
|
3483
|
+
inboundWebhookConfigsControllerUpdate1ResponseTransformer,
|
|
1498
3484
|
url: "/webhooks/inbound/configs/{id}",
|
|
1499
3485
|
...options,
|
|
1500
3486
|
headers: {
|