@layer-drone/protocol 0.0.9-alpha.2 → 0.0.9
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 +207 -42
- package/dist/index.d.ts +207 -42
- package/dist/index.js +709 -13
- package/dist/index.mjs +701 -11
- package/package.json +2 -2
- package/src/client/client/client.ts +181 -0
- package/src/client/client/index.ts +22 -0
- package/src/client/client/types.ts +215 -0
- package/src/client/client/utils.ts +415 -0
- package/src/client/client.gen.ts +2 -3
- package/src/client/core/auth.ts +40 -0
- package/src/client/core/bodySerializer.ts +84 -0
- package/src/client/core/params.ts +141 -0
- package/src/client/core/pathSerializer.ts +179 -0
- package/src/client/core/types.ts +98 -0
- package/src/client/index.ts +2 -2
- package/src/client/sdk.gen.ts +130 -92
- package/src/client/transformers.gen.ts +1 -1
- package/src/index.ts +2 -1
package/src/client/sdk.gen.ts
CHANGED
|
@@ -1,57 +1,81 @@
|
|
|
1
1
|
// This file is auto-generated by @hey-api/openapi-ts
|
|
2
|
+
import { client as _heyApiClient } from "./client.gen.js";
|
|
2
3
|
import type {
|
|
3
4
|
Client,
|
|
4
5
|
Options as ClientOptions,
|
|
5
6
|
TDataShape,
|
|
6
|
-
} from "
|
|
7
|
-
|
|
8
|
-
import { client as _heyApiClient } from "./client.gen";
|
|
7
|
+
} from "./client/index.js";
|
|
9
8
|
import {
|
|
10
9
|
apiTokenControllerUpdateTokenResponseTransformer,
|
|
11
10
|
conditionsControllerGetSunAltitudeTimeLimitsResponseTransformer,
|
|
12
|
-
} from "./transformers.gen";
|
|
11
|
+
} from "./transformers.gen.js";
|
|
13
12
|
import type {
|
|
14
13
|
ApiTokenControllerCreateTokenData,
|
|
15
|
-
|
|
14
|
+
ApiTokenControllerCreateTokenErrors,
|
|
15
|
+
ApiTokenControllerCreateTokenResponses,
|
|
16
16
|
ApiTokenControllerDeleteTokenData,
|
|
17
|
+
ApiTokenControllerDeleteTokenErrors,
|
|
18
|
+
ApiTokenControllerDeleteTokenResponses,
|
|
17
19
|
ApiTokenControllerGetTokenData,
|
|
20
|
+
ApiTokenControllerGetTokenErrors,
|
|
21
|
+
ApiTokenControllerGetTokenResponses,
|
|
18
22
|
ApiTokenControllerUpdateTokenData,
|
|
19
|
-
|
|
23
|
+
ApiTokenControllerUpdateTokenErrors,
|
|
24
|
+
ApiTokenControllerUpdateTokenResponses,
|
|
20
25
|
AppControllerGetHelloData,
|
|
26
|
+
AppControllerGetHelloResponses,
|
|
21
27
|
ConditionsControllerGetSunAltitudeTimeLimitsData,
|
|
22
|
-
|
|
28
|
+
ConditionsControllerGetSunAltitudeTimeLimitsResponses,
|
|
23
29
|
FlightsControllerCreatePresignedUrlsData,
|
|
24
|
-
|
|
30
|
+
FlightsControllerCreatePresignedUrlsErrors,
|
|
31
|
+
FlightsControllerCreatePresignedUrlsResponses,
|
|
25
32
|
FlightsControllerGenerateFlightIdData,
|
|
26
|
-
|
|
33
|
+
FlightsControllerGenerateFlightIdErrors,
|
|
34
|
+
FlightsControllerGenerateFlightIdResponses,
|
|
27
35
|
FlightsControllerValidateFlightData,
|
|
28
|
-
|
|
36
|
+
FlightsControllerValidateFlightErrors,
|
|
37
|
+
FlightsControllerValidateFlightResponses,
|
|
29
38
|
KeysControllerGetProvenanceCryptoKeyData,
|
|
30
|
-
|
|
39
|
+
KeysControllerGetProvenanceCryptoKeyResponses,
|
|
31
40
|
QuotesControllerCreateQuoteData,
|
|
41
|
+
QuotesControllerCreateQuoteErrors,
|
|
42
|
+
QuotesControllerCreateQuoteResponses,
|
|
32
43
|
QuotesControllerGetQuoteData,
|
|
44
|
+
QuotesControllerGetQuoteErrors,
|
|
45
|
+
QuotesControllerGetQuoteResponses,
|
|
33
46
|
RewardsControllerDepositRewardsData,
|
|
34
|
-
|
|
47
|
+
RewardsControllerDepositRewardsErrors,
|
|
48
|
+
RewardsControllerDepositRewardsResponses,
|
|
35
49
|
RewardsControllerDistributeRewardsData,
|
|
36
|
-
|
|
50
|
+
RewardsControllerDistributeRewardsErrors,
|
|
51
|
+
RewardsControllerDistributeRewardsResponses,
|
|
37
52
|
SchemaControllerGetEventSchemaData,
|
|
53
|
+
SchemaControllerGetEventSchemaResponses,
|
|
38
54
|
WebhooksControllerCreateData,
|
|
39
|
-
|
|
55
|
+
WebhooksControllerCreateErrors,
|
|
56
|
+
WebhooksControllerCreateResponses,
|
|
40
57
|
WebhooksControllerDeleteData,
|
|
41
|
-
|
|
58
|
+
WebhooksControllerDeleteErrors,
|
|
59
|
+
WebhooksControllerDeleteResponses,
|
|
42
60
|
WebhooksControllerGetData,
|
|
61
|
+
WebhooksControllerGetErrors,
|
|
43
62
|
WebhooksControllerGetManyData,
|
|
44
|
-
|
|
45
|
-
|
|
63
|
+
WebhooksControllerGetManyErrors,
|
|
64
|
+
WebhooksControllerGetManyResponses,
|
|
65
|
+
WebhooksControllerGetResponses,
|
|
46
66
|
WebhooksControllerGetStatusData,
|
|
47
|
-
|
|
67
|
+
WebhooksControllerGetStatusErrors,
|
|
68
|
+
WebhooksControllerGetStatusResponses,
|
|
48
69
|
WebhooksControllerRegenerateSecretData,
|
|
49
|
-
|
|
70
|
+
WebhooksControllerRegenerateSecretErrors,
|
|
71
|
+
WebhooksControllerRegenerateSecretResponses,
|
|
50
72
|
WebhooksControllerTestData,
|
|
51
|
-
|
|
73
|
+
WebhooksControllerTestErrors,
|
|
74
|
+
WebhooksControllerTestResponses,
|
|
52
75
|
WebhooksControllerUpdateData,
|
|
53
|
-
|
|
54
|
-
|
|
76
|
+
WebhooksControllerUpdateErrors,
|
|
77
|
+
WebhooksControllerUpdateResponses,
|
|
78
|
+
} from "./types.gen.js";
|
|
55
79
|
|
|
56
80
|
export type Options<
|
|
57
81
|
TData extends TDataShape = TDataShape,
|
|
@@ -73,12 +97,14 @@ export type Options<
|
|
|
73
97
|
export const appControllerGetHello = <ThrowOnError extends boolean = false>(
|
|
74
98
|
options?: Options<AppControllerGetHelloData, ThrowOnError>,
|
|
75
99
|
) => {
|
|
76
|
-
return (options?.client ?? _heyApiClient).get<
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
100
|
+
return (options?.client ?? _heyApiClient).get<
|
|
101
|
+
AppControllerGetHelloResponses,
|
|
102
|
+
unknown,
|
|
103
|
+
ThrowOnError
|
|
104
|
+
>({
|
|
105
|
+
url: "/",
|
|
106
|
+
...options,
|
|
107
|
+
});
|
|
82
108
|
};
|
|
83
109
|
|
|
84
110
|
export const keysControllerGetProvenanceCryptoKey = <
|
|
@@ -87,7 +113,7 @@ export const keysControllerGetProvenanceCryptoKey = <
|
|
|
87
113
|
options?: Options<KeysControllerGetProvenanceCryptoKeyData, ThrowOnError>,
|
|
88
114
|
) => {
|
|
89
115
|
return (options?.client ?? _heyApiClient).get<
|
|
90
|
-
|
|
116
|
+
KeysControllerGetProvenanceCryptoKeyResponses,
|
|
91
117
|
unknown,
|
|
92
118
|
ThrowOnError
|
|
93
119
|
>({
|
|
@@ -102,8 +128,8 @@ export const rewardsControllerDepositRewards = <
|
|
|
102
128
|
options: Options<RewardsControllerDepositRewardsData, ThrowOnError>,
|
|
103
129
|
) => {
|
|
104
130
|
return (options.client ?? _heyApiClient).post<
|
|
105
|
-
|
|
106
|
-
|
|
131
|
+
RewardsControllerDepositRewardsResponses,
|
|
132
|
+
RewardsControllerDepositRewardsErrors,
|
|
107
133
|
ThrowOnError
|
|
108
134
|
>({
|
|
109
135
|
security: [
|
|
@@ -116,7 +142,7 @@ export const rewardsControllerDepositRewards = <
|
|
|
116
142
|
...options,
|
|
117
143
|
headers: {
|
|
118
144
|
"Content-Type": "application/json",
|
|
119
|
-
...options
|
|
145
|
+
...options.headers,
|
|
120
146
|
},
|
|
121
147
|
});
|
|
122
148
|
};
|
|
@@ -127,8 +153,8 @@ export const rewardsControllerDistributeRewards = <
|
|
|
127
153
|
options: Options<RewardsControllerDistributeRewardsData, ThrowOnError>,
|
|
128
154
|
) => {
|
|
129
155
|
return (options.client ?? _heyApiClient).post<
|
|
130
|
-
|
|
131
|
-
|
|
156
|
+
RewardsControllerDistributeRewardsResponses,
|
|
157
|
+
RewardsControllerDistributeRewardsErrors,
|
|
132
158
|
ThrowOnError
|
|
133
159
|
>({
|
|
134
160
|
security: [
|
|
@@ -141,7 +167,7 @@ export const rewardsControllerDistributeRewards = <
|
|
|
141
167
|
...options,
|
|
142
168
|
headers: {
|
|
143
169
|
"Content-Type": "application/json",
|
|
144
|
-
...options
|
|
170
|
+
...options.headers,
|
|
145
171
|
},
|
|
146
172
|
});
|
|
147
173
|
};
|
|
@@ -152,8 +178,8 @@ export const apiTokenControllerCreateToken = <
|
|
|
152
178
|
options: Options<ApiTokenControllerCreateTokenData, ThrowOnError>,
|
|
153
179
|
) => {
|
|
154
180
|
return (options.client ?? _heyApiClient).post<
|
|
155
|
-
|
|
156
|
-
|
|
181
|
+
ApiTokenControllerCreateTokenResponses,
|
|
182
|
+
ApiTokenControllerCreateTokenErrors,
|
|
157
183
|
ThrowOnError
|
|
158
184
|
>({
|
|
159
185
|
security: [
|
|
@@ -166,7 +192,7 @@ export const apiTokenControllerCreateToken = <
|
|
|
166
192
|
...options,
|
|
167
193
|
headers: {
|
|
168
194
|
"Content-Type": "application/json",
|
|
169
|
-
...options
|
|
195
|
+
...options.headers,
|
|
170
196
|
},
|
|
171
197
|
});
|
|
172
198
|
};
|
|
@@ -177,8 +203,8 @@ export const apiTokenControllerDeleteToken = <
|
|
|
177
203
|
options: Options<ApiTokenControllerDeleteTokenData, ThrowOnError>,
|
|
178
204
|
) => {
|
|
179
205
|
return (options.client ?? _heyApiClient).delete<
|
|
180
|
-
|
|
181
|
-
|
|
206
|
+
ApiTokenControllerDeleteTokenResponses,
|
|
207
|
+
ApiTokenControllerDeleteTokenErrors,
|
|
182
208
|
ThrowOnError
|
|
183
209
|
>({
|
|
184
210
|
security: [
|
|
@@ -197,7 +223,11 @@ export const apiTokenControllerGetToken = <
|
|
|
197
223
|
>(
|
|
198
224
|
options: Options<ApiTokenControllerGetTokenData, ThrowOnError>,
|
|
199
225
|
) => {
|
|
200
|
-
return (options.client ?? _heyApiClient).get<
|
|
226
|
+
return (options.client ?? _heyApiClient).get<
|
|
227
|
+
ApiTokenControllerGetTokenResponses,
|
|
228
|
+
ApiTokenControllerGetTokenErrors,
|
|
229
|
+
ThrowOnError
|
|
230
|
+
>({
|
|
201
231
|
security: [
|
|
202
232
|
{
|
|
203
233
|
name: "x-api-token",
|
|
@@ -215,8 +245,8 @@ export const apiTokenControllerUpdateToken = <
|
|
|
215
245
|
options: Options<ApiTokenControllerUpdateTokenData, ThrowOnError>,
|
|
216
246
|
) => {
|
|
217
247
|
return (options.client ?? _heyApiClient).patch<
|
|
218
|
-
|
|
219
|
-
|
|
248
|
+
ApiTokenControllerUpdateTokenResponses,
|
|
249
|
+
ApiTokenControllerUpdateTokenErrors,
|
|
220
250
|
ThrowOnError
|
|
221
251
|
>({
|
|
222
252
|
security: [
|
|
@@ -230,7 +260,7 @@ export const apiTokenControllerUpdateToken = <
|
|
|
230
260
|
...options,
|
|
231
261
|
headers: {
|
|
232
262
|
"Content-Type": "application/json",
|
|
233
|
-
...options
|
|
263
|
+
...options.headers,
|
|
234
264
|
},
|
|
235
265
|
});
|
|
236
266
|
};
|
|
@@ -240,28 +270,34 @@ export const quotesControllerCreateQuote = <
|
|
|
240
270
|
>(
|
|
241
271
|
options: Options<QuotesControllerCreateQuoteData, ThrowOnError>,
|
|
242
272
|
) => {
|
|
243
|
-
return (options.client ?? _heyApiClient).post<
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
...options,
|
|
253
|
-
headers: {
|
|
254
|
-
"Content-Type": "application/json",
|
|
255
|
-
...options?.headers,
|
|
273
|
+
return (options.client ?? _heyApiClient).post<
|
|
274
|
+
QuotesControllerCreateQuoteResponses,
|
|
275
|
+
QuotesControllerCreateQuoteErrors,
|
|
276
|
+
ThrowOnError
|
|
277
|
+
>({
|
|
278
|
+
security: [
|
|
279
|
+
{
|
|
280
|
+
name: "x-api-token",
|
|
281
|
+
type: "apiKey",
|
|
256
282
|
},
|
|
283
|
+
],
|
|
284
|
+
url: "/quotes",
|
|
285
|
+
...options,
|
|
286
|
+
headers: {
|
|
287
|
+
"Content-Type": "application/json",
|
|
288
|
+
...options.headers,
|
|
257
289
|
},
|
|
258
|
-
);
|
|
290
|
+
});
|
|
259
291
|
};
|
|
260
292
|
|
|
261
293
|
export const quotesControllerGetQuote = <ThrowOnError extends boolean = false>(
|
|
262
294
|
options: Options<QuotesControllerGetQuoteData, ThrowOnError>,
|
|
263
295
|
) => {
|
|
264
|
-
return (options.client ?? _heyApiClient).get<
|
|
296
|
+
return (options.client ?? _heyApiClient).get<
|
|
297
|
+
QuotesControllerGetQuoteResponses,
|
|
298
|
+
QuotesControllerGetQuoteErrors,
|
|
299
|
+
ThrowOnError
|
|
300
|
+
>({
|
|
265
301
|
security: [
|
|
266
302
|
{
|
|
267
303
|
name: "x-api-token",
|
|
@@ -279,8 +315,8 @@ export const flightsControllerGenerateFlightId = <
|
|
|
279
315
|
options: Options<FlightsControllerGenerateFlightIdData, ThrowOnError>,
|
|
280
316
|
) => {
|
|
281
317
|
return (options.client ?? _heyApiClient).get<
|
|
282
|
-
|
|
283
|
-
|
|
318
|
+
FlightsControllerGenerateFlightIdResponses,
|
|
319
|
+
FlightsControllerGenerateFlightIdErrors,
|
|
284
320
|
ThrowOnError
|
|
285
321
|
>({
|
|
286
322
|
security: [
|
|
@@ -300,8 +336,8 @@ export const flightsControllerCreatePresignedUrls = <
|
|
|
300
336
|
options: Options<FlightsControllerCreatePresignedUrlsData, ThrowOnError>,
|
|
301
337
|
) => {
|
|
302
338
|
return (options.client ?? _heyApiClient).post<
|
|
303
|
-
|
|
304
|
-
|
|
339
|
+
FlightsControllerCreatePresignedUrlsResponses,
|
|
340
|
+
FlightsControllerCreatePresignedUrlsErrors,
|
|
305
341
|
ThrowOnError
|
|
306
342
|
>({
|
|
307
343
|
security: [
|
|
@@ -314,7 +350,7 @@ export const flightsControllerCreatePresignedUrls = <
|
|
|
314
350
|
...options,
|
|
315
351
|
headers: {
|
|
316
352
|
"Content-Type": "application/json",
|
|
317
|
-
...options
|
|
353
|
+
...options.headers,
|
|
318
354
|
},
|
|
319
355
|
});
|
|
320
356
|
};
|
|
@@ -325,8 +361,8 @@ export const flightsControllerValidateFlight = <
|
|
|
325
361
|
options: Options<FlightsControllerValidateFlightData, ThrowOnError>,
|
|
326
362
|
) => {
|
|
327
363
|
return (options.client ?? _heyApiClient).post<
|
|
328
|
-
|
|
329
|
-
|
|
364
|
+
FlightsControllerValidateFlightResponses,
|
|
365
|
+
FlightsControllerValidateFlightErrors,
|
|
330
366
|
ThrowOnError
|
|
331
367
|
>({
|
|
332
368
|
security: [
|
|
@@ -339,7 +375,7 @@ export const flightsControllerValidateFlight = <
|
|
|
339
375
|
...options,
|
|
340
376
|
headers: {
|
|
341
377
|
"Content-Type": "application/json",
|
|
342
|
-
...options
|
|
378
|
+
...options.headers,
|
|
343
379
|
},
|
|
344
380
|
});
|
|
345
381
|
};
|
|
@@ -353,7 +389,7 @@ export const conditionsControllerGetSunAltitudeTimeLimits = <
|
|
|
353
389
|
>,
|
|
354
390
|
) => {
|
|
355
391
|
return (options.client ?? _heyApiClient).get<
|
|
356
|
-
|
|
392
|
+
ConditionsControllerGetSunAltitudeTimeLimitsResponses,
|
|
357
393
|
unknown,
|
|
358
394
|
ThrowOnError
|
|
359
395
|
>({
|
|
@@ -369,20 +405,22 @@ export const schemaControllerGetEventSchema = <
|
|
|
369
405
|
>(
|
|
370
406
|
options?: Options<SchemaControllerGetEventSchemaData, ThrowOnError>,
|
|
371
407
|
) => {
|
|
372
|
-
return (options?.client ?? _heyApiClient).get<
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
408
|
+
return (options?.client ?? _heyApiClient).get<
|
|
409
|
+
SchemaControllerGetEventSchemaResponses,
|
|
410
|
+
unknown,
|
|
411
|
+
ThrowOnError
|
|
412
|
+
>({
|
|
413
|
+
url: "/schema/event",
|
|
414
|
+
...options,
|
|
415
|
+
});
|
|
378
416
|
};
|
|
379
417
|
|
|
380
418
|
export const webhooksControllerGetMany = <ThrowOnError extends boolean = false>(
|
|
381
419
|
options: Options<WebhooksControllerGetManyData, ThrowOnError>,
|
|
382
420
|
) => {
|
|
383
421
|
return (options.client ?? _heyApiClient).get<
|
|
384
|
-
|
|
385
|
-
|
|
422
|
+
WebhooksControllerGetManyResponses,
|
|
423
|
+
WebhooksControllerGetManyErrors,
|
|
386
424
|
ThrowOnError
|
|
387
425
|
>({
|
|
388
426
|
security: [
|
|
@@ -400,8 +438,8 @@ export const webhooksControllerCreate = <ThrowOnError extends boolean = false>(
|
|
|
400
438
|
options: Options<WebhooksControllerCreateData, ThrowOnError>,
|
|
401
439
|
) => {
|
|
402
440
|
return (options.client ?? _heyApiClient).post<
|
|
403
|
-
|
|
404
|
-
|
|
441
|
+
WebhooksControllerCreateResponses,
|
|
442
|
+
WebhooksControllerCreateErrors,
|
|
405
443
|
ThrowOnError
|
|
406
444
|
>({
|
|
407
445
|
security: [
|
|
@@ -414,7 +452,7 @@ export const webhooksControllerCreate = <ThrowOnError extends boolean = false>(
|
|
|
414
452
|
...options,
|
|
415
453
|
headers: {
|
|
416
454
|
"Content-Type": "application/json",
|
|
417
|
-
...options
|
|
455
|
+
...options.headers,
|
|
418
456
|
},
|
|
419
457
|
});
|
|
420
458
|
};
|
|
@@ -423,8 +461,8 @@ export const webhooksControllerDelete = <ThrowOnError extends boolean = false>(
|
|
|
423
461
|
options: Options<WebhooksControllerDeleteData, ThrowOnError>,
|
|
424
462
|
) => {
|
|
425
463
|
return (options.client ?? _heyApiClient).delete<
|
|
426
|
-
|
|
427
|
-
|
|
464
|
+
WebhooksControllerDeleteResponses,
|
|
465
|
+
WebhooksControllerDeleteErrors,
|
|
428
466
|
ThrowOnError
|
|
429
467
|
>({
|
|
430
468
|
security: [
|
|
@@ -442,8 +480,8 @@ export const webhooksControllerGet = <ThrowOnError extends boolean = false>(
|
|
|
442
480
|
options: Options<WebhooksControllerGetData, ThrowOnError>,
|
|
443
481
|
) => {
|
|
444
482
|
return (options.client ?? _heyApiClient).get<
|
|
445
|
-
|
|
446
|
-
|
|
483
|
+
WebhooksControllerGetResponses,
|
|
484
|
+
WebhooksControllerGetErrors,
|
|
447
485
|
ThrowOnError
|
|
448
486
|
>({
|
|
449
487
|
security: [
|
|
@@ -461,8 +499,8 @@ export const webhooksControllerUpdate = <ThrowOnError extends boolean = false>(
|
|
|
461
499
|
options: Options<WebhooksControllerUpdateData, ThrowOnError>,
|
|
462
500
|
) => {
|
|
463
501
|
return (options.client ?? _heyApiClient).put<
|
|
464
|
-
|
|
465
|
-
|
|
502
|
+
WebhooksControllerUpdateResponses,
|
|
503
|
+
WebhooksControllerUpdateErrors,
|
|
466
504
|
ThrowOnError
|
|
467
505
|
>({
|
|
468
506
|
security: [
|
|
@@ -475,7 +513,7 @@ export const webhooksControllerUpdate = <ThrowOnError extends boolean = false>(
|
|
|
475
513
|
...options,
|
|
476
514
|
headers: {
|
|
477
515
|
"Content-Type": "application/json",
|
|
478
|
-
...options
|
|
516
|
+
...options.headers,
|
|
479
517
|
},
|
|
480
518
|
});
|
|
481
519
|
};
|
|
@@ -486,8 +524,8 @@ export const webhooksControllerRegenerateSecret = <
|
|
|
486
524
|
options: Options<WebhooksControllerRegenerateSecretData, ThrowOnError>,
|
|
487
525
|
) => {
|
|
488
526
|
return (options.client ?? _heyApiClient).post<
|
|
489
|
-
|
|
490
|
-
|
|
527
|
+
WebhooksControllerRegenerateSecretResponses,
|
|
528
|
+
WebhooksControllerRegenerateSecretErrors,
|
|
491
529
|
ThrowOnError
|
|
492
530
|
>({
|
|
493
531
|
security: [
|
|
@@ -505,8 +543,8 @@ export const webhooksControllerTest = <ThrowOnError extends boolean = false>(
|
|
|
505
543
|
options: Options<WebhooksControllerTestData, ThrowOnError>,
|
|
506
544
|
) => {
|
|
507
545
|
return (options.client ?? _heyApiClient).post<
|
|
508
|
-
|
|
509
|
-
|
|
546
|
+
WebhooksControllerTestResponses,
|
|
547
|
+
WebhooksControllerTestErrors,
|
|
510
548
|
ThrowOnError
|
|
511
549
|
>({
|
|
512
550
|
security: [
|
|
@@ -526,8 +564,8 @@ export const webhooksControllerGetStatus = <
|
|
|
526
564
|
options: Options<WebhooksControllerGetStatusData, ThrowOnError>,
|
|
527
565
|
) => {
|
|
528
566
|
return (options.client ?? _heyApiClient).get<
|
|
529
|
-
|
|
530
|
-
|
|
567
|
+
WebhooksControllerGetStatusResponses,
|
|
568
|
+
WebhooksControllerGetStatusErrors,
|
|
531
569
|
ThrowOnError
|
|
532
570
|
>({
|
|
533
571
|
security: [
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import type {
|
|
3
3
|
ApiTokenControllerUpdateTokenResponse,
|
|
4
4
|
ConditionsControllerGetSunAltitudeTimeLimitsResponse,
|
|
5
|
-
} from "./types.gen";
|
|
5
|
+
} from "./types.gen.js";
|
|
6
6
|
|
|
7
7
|
const updateApiTokenResponseDtoSchemaResponseTransformer = (data: any) => {
|
|
8
8
|
data.deleted_at = new Date(data.deleted_at);
|
package/src/index.ts
CHANGED