@layer-drone/protocol 0.0.8 → 0.0.9-alpha.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.
@@ -1,53 +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 "@hey-api/client-fetch";
7
-
8
- import { client as _heyApiClient } from "./client.gen";
7
+ } from "./client/index.js";
8
+ import {
9
+ apiTokenControllerUpdateTokenResponseTransformer,
10
+ conditionsControllerGetSunAltitudeTimeLimitsResponseTransformer,
11
+ } from "./transformers.gen.js";
9
12
  import type {
10
13
  ApiTokenControllerCreateTokenData,
11
- ApiTokenControllerCreateTokenResponse,
14
+ ApiTokenControllerCreateTokenErrors,
15
+ ApiTokenControllerCreateTokenResponses,
12
16
  ApiTokenControllerDeleteTokenData,
17
+ ApiTokenControllerDeleteTokenErrors,
18
+ ApiTokenControllerDeleteTokenResponses,
13
19
  ApiTokenControllerGetTokenData,
20
+ ApiTokenControllerGetTokenErrors,
21
+ ApiTokenControllerGetTokenResponses,
14
22
  ApiTokenControllerUpdateTokenData,
15
- ApiTokenControllerUpdateTokenResponse,
23
+ ApiTokenControllerUpdateTokenErrors,
24
+ ApiTokenControllerUpdateTokenResponses,
16
25
  AppControllerGetHelloData,
26
+ AppControllerGetHelloResponses,
17
27
  ConditionsControllerGetSunAltitudeTimeLimitsData,
18
- ConditionsControllerGetSunAltitudeTimeLimitsResponse,
28
+ ConditionsControllerGetSunAltitudeTimeLimitsResponses,
19
29
  FlightsControllerCreatePresignedUrlsData,
20
- FlightsControllerCreatePresignedUrlsResponse,
30
+ FlightsControllerCreatePresignedUrlsErrors,
31
+ FlightsControllerCreatePresignedUrlsResponses,
21
32
  FlightsControllerGenerateFlightIdData,
22
- FlightsControllerGenerateFlightIdResponse,
33
+ FlightsControllerGenerateFlightIdErrors,
34
+ FlightsControllerGenerateFlightIdResponses,
23
35
  FlightsControllerValidateFlightData,
24
- FlightsControllerValidateFlightResponse,
36
+ FlightsControllerValidateFlightErrors,
37
+ FlightsControllerValidateFlightResponses,
25
38
  KeysControllerGetProvenanceCryptoKeyData,
26
- KeysControllerGetProvenanceCryptoKeyResponse,
39
+ KeysControllerGetProvenanceCryptoKeyResponses,
27
40
  QuotesControllerCreateQuoteData,
41
+ QuotesControllerCreateQuoteErrors,
42
+ QuotesControllerCreateQuoteResponses,
28
43
  QuotesControllerGetQuoteData,
44
+ QuotesControllerGetQuoteErrors,
45
+ QuotesControllerGetQuoteResponses,
29
46
  RewardsControllerDepositRewardsData,
30
- RewardsControllerDepositRewardsResponse,
47
+ RewardsControllerDepositRewardsErrors,
48
+ RewardsControllerDepositRewardsResponses,
31
49
  RewardsControllerDistributeRewardsData,
32
- RewardsControllerDistributeRewardsResponse,
50
+ RewardsControllerDistributeRewardsErrors,
51
+ RewardsControllerDistributeRewardsResponses,
33
52
  SchemaControllerGetEventSchemaData,
53
+ SchemaControllerGetEventSchemaResponses,
34
54
  WebhooksControllerCreateData,
35
- WebhooksControllerCreateResponse,
55
+ WebhooksControllerCreateErrors,
56
+ WebhooksControllerCreateResponses,
36
57
  WebhooksControllerDeleteData,
37
- WebhooksControllerDeleteResponse,
58
+ WebhooksControllerDeleteErrors,
59
+ WebhooksControllerDeleteResponses,
38
60
  WebhooksControllerGetData,
61
+ WebhooksControllerGetErrors,
39
62
  WebhooksControllerGetManyData,
40
- WebhooksControllerGetManyResponse,
41
- WebhooksControllerGetResponse,
63
+ WebhooksControllerGetManyErrors,
64
+ WebhooksControllerGetManyResponses,
65
+ WebhooksControllerGetResponses,
42
66
  WebhooksControllerGetStatusData,
43
- WebhooksControllerGetStatusResponse,
67
+ WebhooksControllerGetStatusErrors,
68
+ WebhooksControllerGetStatusResponses,
44
69
  WebhooksControllerRegenerateSecretData,
45
- WebhooksControllerRegenerateSecretResponse,
70
+ WebhooksControllerRegenerateSecretErrors,
71
+ WebhooksControllerRegenerateSecretResponses,
46
72
  WebhooksControllerTestData,
47
- WebhooksControllerTestResponse,
73
+ WebhooksControllerTestErrors,
74
+ WebhooksControllerTestResponses,
48
75
  WebhooksControllerUpdateData,
49
- WebhooksControllerUpdateResponse,
50
- } from "./types.gen";
76
+ WebhooksControllerUpdateErrors,
77
+ WebhooksControllerUpdateResponses,
78
+ } from "./types.gen.js";
51
79
 
52
80
  export type Options<
53
81
  TData extends TDataShape = TDataShape,
@@ -69,12 +97,14 @@ export type Options<
69
97
  export const appControllerGetHello = <ThrowOnError extends boolean = false>(
70
98
  options?: Options<AppControllerGetHelloData, ThrowOnError>,
71
99
  ) => {
72
- return (options?.client ?? _heyApiClient).get<unknown, unknown, ThrowOnError>(
73
- {
74
- url: "/",
75
- ...options,
76
- },
77
- );
100
+ return (options?.client ?? _heyApiClient).get<
101
+ AppControllerGetHelloResponses,
102
+ unknown,
103
+ ThrowOnError
104
+ >({
105
+ url: "/",
106
+ ...options,
107
+ });
78
108
  };
79
109
 
80
110
  export const keysControllerGetProvenanceCryptoKey = <
@@ -83,7 +113,7 @@ export const keysControllerGetProvenanceCryptoKey = <
83
113
  options?: Options<KeysControllerGetProvenanceCryptoKeyData, ThrowOnError>,
84
114
  ) => {
85
115
  return (options?.client ?? _heyApiClient).get<
86
- KeysControllerGetProvenanceCryptoKeyResponse,
116
+ KeysControllerGetProvenanceCryptoKeyResponses,
87
117
  unknown,
88
118
  ThrowOnError
89
119
  >({
@@ -98,8 +128,8 @@ export const rewardsControllerDepositRewards = <
98
128
  options: Options<RewardsControllerDepositRewardsData, ThrowOnError>,
99
129
  ) => {
100
130
  return (options.client ?? _heyApiClient).post<
101
- RewardsControllerDepositRewardsResponse,
102
- unknown,
131
+ RewardsControllerDepositRewardsResponses,
132
+ RewardsControllerDepositRewardsErrors,
103
133
  ThrowOnError
104
134
  >({
105
135
  security: [
@@ -112,7 +142,7 @@ export const rewardsControllerDepositRewards = <
112
142
  ...options,
113
143
  headers: {
114
144
  "Content-Type": "application/json",
115
- ...options?.headers,
145
+ ...options.headers,
116
146
  },
117
147
  });
118
148
  };
@@ -123,8 +153,8 @@ export const rewardsControllerDistributeRewards = <
123
153
  options: Options<RewardsControllerDistributeRewardsData, ThrowOnError>,
124
154
  ) => {
125
155
  return (options.client ?? _heyApiClient).post<
126
- RewardsControllerDistributeRewardsResponse,
127
- unknown,
156
+ RewardsControllerDistributeRewardsResponses,
157
+ RewardsControllerDistributeRewardsErrors,
128
158
  ThrowOnError
129
159
  >({
130
160
  security: [
@@ -137,7 +167,7 @@ export const rewardsControllerDistributeRewards = <
137
167
  ...options,
138
168
  headers: {
139
169
  "Content-Type": "application/json",
140
- ...options?.headers,
170
+ ...options.headers,
141
171
  },
142
172
  });
143
173
  };
@@ -148,8 +178,8 @@ export const apiTokenControllerCreateToken = <
148
178
  options: Options<ApiTokenControllerCreateTokenData, ThrowOnError>,
149
179
  ) => {
150
180
  return (options.client ?? _heyApiClient).post<
151
- ApiTokenControllerCreateTokenResponse,
152
- unknown,
181
+ ApiTokenControllerCreateTokenResponses,
182
+ ApiTokenControllerCreateTokenErrors,
153
183
  ThrowOnError
154
184
  >({
155
185
  security: [
@@ -162,7 +192,7 @@ export const apiTokenControllerCreateToken = <
162
192
  ...options,
163
193
  headers: {
164
194
  "Content-Type": "application/json",
165
- ...options?.headers,
195
+ ...options.headers,
166
196
  },
167
197
  });
168
198
  };
@@ -173,8 +203,8 @@ export const apiTokenControllerDeleteToken = <
173
203
  options: Options<ApiTokenControllerDeleteTokenData, ThrowOnError>,
174
204
  ) => {
175
205
  return (options.client ?? _heyApiClient).delete<
176
- unknown,
177
- unknown,
206
+ ApiTokenControllerDeleteTokenResponses,
207
+ ApiTokenControllerDeleteTokenErrors,
178
208
  ThrowOnError
179
209
  >({
180
210
  security: [
@@ -193,7 +223,11 @@ export const apiTokenControllerGetToken = <
193
223
  >(
194
224
  options: Options<ApiTokenControllerGetTokenData, ThrowOnError>,
195
225
  ) => {
196
- return (options.client ?? _heyApiClient).get<unknown, unknown, ThrowOnError>({
226
+ return (options.client ?? _heyApiClient).get<
227
+ ApiTokenControllerGetTokenResponses,
228
+ ApiTokenControllerGetTokenErrors,
229
+ ThrowOnError
230
+ >({
197
231
  security: [
198
232
  {
199
233
  name: "x-api-token",
@@ -211,8 +245,8 @@ export const apiTokenControllerUpdateToken = <
211
245
  options: Options<ApiTokenControllerUpdateTokenData, ThrowOnError>,
212
246
  ) => {
213
247
  return (options.client ?? _heyApiClient).patch<
214
- ApiTokenControllerUpdateTokenResponse,
215
- unknown,
248
+ ApiTokenControllerUpdateTokenResponses,
249
+ ApiTokenControllerUpdateTokenErrors,
216
250
  ThrowOnError
217
251
  >({
218
252
  security: [
@@ -221,11 +255,12 @@ export const apiTokenControllerUpdateToken = <
221
255
  type: "apiKey",
222
256
  },
223
257
  ],
258
+ responseTransformer: apiTokenControllerUpdateTokenResponseTransformer,
224
259
  url: "/tokens/{id}",
225
260
  ...options,
226
261
  headers: {
227
262
  "Content-Type": "application/json",
228
- ...options?.headers,
263
+ ...options.headers,
229
264
  },
230
265
  });
231
266
  };
@@ -235,28 +270,34 @@ export const quotesControllerCreateQuote = <
235
270
  >(
236
271
  options: Options<QuotesControllerCreateQuoteData, ThrowOnError>,
237
272
  ) => {
238
- return (options.client ?? _heyApiClient).post<unknown, unknown, ThrowOnError>(
239
- {
240
- security: [
241
- {
242
- name: "x-api-token",
243
- type: "apiKey",
244
- },
245
- ],
246
- url: "/quotes",
247
- ...options,
248
- headers: {
249
- "Content-Type": "application/json",
250
- ...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",
251
282
  },
283
+ ],
284
+ url: "/quotes",
285
+ ...options,
286
+ headers: {
287
+ "Content-Type": "application/json",
288
+ ...options.headers,
252
289
  },
253
- );
290
+ });
254
291
  };
255
292
 
256
293
  export const quotesControllerGetQuote = <ThrowOnError extends boolean = false>(
257
294
  options: Options<QuotesControllerGetQuoteData, ThrowOnError>,
258
295
  ) => {
259
- return (options.client ?? _heyApiClient).get<unknown, unknown, ThrowOnError>({
296
+ return (options.client ?? _heyApiClient).get<
297
+ QuotesControllerGetQuoteResponses,
298
+ QuotesControllerGetQuoteErrors,
299
+ ThrowOnError
300
+ >({
260
301
  security: [
261
302
  {
262
303
  name: "x-api-token",
@@ -274,8 +315,8 @@ export const flightsControllerGenerateFlightId = <
274
315
  options: Options<FlightsControllerGenerateFlightIdData, ThrowOnError>,
275
316
  ) => {
276
317
  return (options.client ?? _heyApiClient).get<
277
- FlightsControllerGenerateFlightIdResponse,
278
- unknown,
318
+ FlightsControllerGenerateFlightIdResponses,
319
+ FlightsControllerGenerateFlightIdErrors,
279
320
  ThrowOnError
280
321
  >({
281
322
  security: [
@@ -295,8 +336,8 @@ export const flightsControllerCreatePresignedUrls = <
295
336
  options: Options<FlightsControllerCreatePresignedUrlsData, ThrowOnError>,
296
337
  ) => {
297
338
  return (options.client ?? _heyApiClient).post<
298
- FlightsControllerCreatePresignedUrlsResponse,
299
- unknown,
339
+ FlightsControllerCreatePresignedUrlsResponses,
340
+ FlightsControllerCreatePresignedUrlsErrors,
300
341
  ThrowOnError
301
342
  >({
302
343
  security: [
@@ -309,7 +350,7 @@ export const flightsControllerCreatePresignedUrls = <
309
350
  ...options,
310
351
  headers: {
311
352
  "Content-Type": "application/json",
312
- ...options?.headers,
353
+ ...options.headers,
313
354
  },
314
355
  });
315
356
  };
@@ -320,8 +361,8 @@ export const flightsControllerValidateFlight = <
320
361
  options: Options<FlightsControllerValidateFlightData, ThrowOnError>,
321
362
  ) => {
322
363
  return (options.client ?? _heyApiClient).post<
323
- FlightsControllerValidateFlightResponse,
324
- unknown,
364
+ FlightsControllerValidateFlightResponses,
365
+ FlightsControllerValidateFlightErrors,
325
366
  ThrowOnError
326
367
  >({
327
368
  security: [
@@ -334,7 +375,7 @@ export const flightsControllerValidateFlight = <
334
375
  ...options,
335
376
  headers: {
336
377
  "Content-Type": "application/json",
337
- ...options?.headers,
378
+ ...options.headers,
338
379
  },
339
380
  });
340
381
  };
@@ -348,10 +389,12 @@ export const conditionsControllerGetSunAltitudeTimeLimits = <
348
389
  >,
349
390
  ) => {
350
391
  return (options.client ?? _heyApiClient).get<
351
- ConditionsControllerGetSunAltitudeTimeLimitsResponse,
392
+ ConditionsControllerGetSunAltitudeTimeLimitsResponses,
352
393
  unknown,
353
394
  ThrowOnError
354
395
  >({
396
+ responseTransformer:
397
+ conditionsControllerGetSunAltitudeTimeLimitsResponseTransformer,
355
398
  url: "/conditions/sun-altitude",
356
399
  ...options,
357
400
  });
@@ -362,20 +405,22 @@ export const schemaControllerGetEventSchema = <
362
405
  >(
363
406
  options?: Options<SchemaControllerGetEventSchemaData, ThrowOnError>,
364
407
  ) => {
365
- return (options?.client ?? _heyApiClient).get<unknown, unknown, ThrowOnError>(
366
- {
367
- url: "/schema/event",
368
- ...options,
369
- },
370
- );
408
+ return (options?.client ?? _heyApiClient).get<
409
+ SchemaControllerGetEventSchemaResponses,
410
+ unknown,
411
+ ThrowOnError
412
+ >({
413
+ url: "/schema/event",
414
+ ...options,
415
+ });
371
416
  };
372
417
 
373
418
  export const webhooksControllerGetMany = <ThrowOnError extends boolean = false>(
374
419
  options: Options<WebhooksControllerGetManyData, ThrowOnError>,
375
420
  ) => {
376
421
  return (options.client ?? _heyApiClient).get<
377
- WebhooksControllerGetManyResponse,
378
- unknown,
422
+ WebhooksControllerGetManyResponses,
423
+ WebhooksControllerGetManyErrors,
379
424
  ThrowOnError
380
425
  >({
381
426
  security: [
@@ -393,8 +438,8 @@ export const webhooksControllerCreate = <ThrowOnError extends boolean = false>(
393
438
  options: Options<WebhooksControllerCreateData, ThrowOnError>,
394
439
  ) => {
395
440
  return (options.client ?? _heyApiClient).post<
396
- WebhooksControllerCreateResponse,
397
- unknown,
441
+ WebhooksControllerCreateResponses,
442
+ WebhooksControllerCreateErrors,
398
443
  ThrowOnError
399
444
  >({
400
445
  security: [
@@ -407,7 +452,7 @@ export const webhooksControllerCreate = <ThrowOnError extends boolean = false>(
407
452
  ...options,
408
453
  headers: {
409
454
  "Content-Type": "application/json",
410
- ...options?.headers,
455
+ ...options.headers,
411
456
  },
412
457
  });
413
458
  };
@@ -416,8 +461,8 @@ export const webhooksControllerDelete = <ThrowOnError extends boolean = false>(
416
461
  options: Options<WebhooksControllerDeleteData, ThrowOnError>,
417
462
  ) => {
418
463
  return (options.client ?? _heyApiClient).delete<
419
- WebhooksControllerDeleteResponse,
420
- unknown,
464
+ WebhooksControllerDeleteResponses,
465
+ WebhooksControllerDeleteErrors,
421
466
  ThrowOnError
422
467
  >({
423
468
  security: [
@@ -435,8 +480,8 @@ export const webhooksControllerGet = <ThrowOnError extends boolean = false>(
435
480
  options: Options<WebhooksControllerGetData, ThrowOnError>,
436
481
  ) => {
437
482
  return (options.client ?? _heyApiClient).get<
438
- WebhooksControllerGetResponse,
439
- unknown,
483
+ WebhooksControllerGetResponses,
484
+ WebhooksControllerGetErrors,
440
485
  ThrowOnError
441
486
  >({
442
487
  security: [
@@ -454,8 +499,8 @@ export const webhooksControllerUpdate = <ThrowOnError extends boolean = false>(
454
499
  options: Options<WebhooksControllerUpdateData, ThrowOnError>,
455
500
  ) => {
456
501
  return (options.client ?? _heyApiClient).put<
457
- WebhooksControllerUpdateResponse,
458
- unknown,
502
+ WebhooksControllerUpdateResponses,
503
+ WebhooksControllerUpdateErrors,
459
504
  ThrowOnError
460
505
  >({
461
506
  security: [
@@ -468,7 +513,7 @@ export const webhooksControllerUpdate = <ThrowOnError extends boolean = false>(
468
513
  ...options,
469
514
  headers: {
470
515
  "Content-Type": "application/json",
471
- ...options?.headers,
516
+ ...options.headers,
472
517
  },
473
518
  });
474
519
  };
@@ -479,8 +524,8 @@ export const webhooksControllerRegenerateSecret = <
479
524
  options: Options<WebhooksControllerRegenerateSecretData, ThrowOnError>,
480
525
  ) => {
481
526
  return (options.client ?? _heyApiClient).post<
482
- WebhooksControllerRegenerateSecretResponse,
483
- unknown,
527
+ WebhooksControllerRegenerateSecretResponses,
528
+ WebhooksControllerRegenerateSecretErrors,
484
529
  ThrowOnError
485
530
  >({
486
531
  security: [
@@ -498,8 +543,8 @@ export const webhooksControllerTest = <ThrowOnError extends boolean = false>(
498
543
  options: Options<WebhooksControllerTestData, ThrowOnError>,
499
544
  ) => {
500
545
  return (options.client ?? _heyApiClient).post<
501
- WebhooksControllerTestResponse,
502
- unknown,
546
+ WebhooksControllerTestResponses,
547
+ WebhooksControllerTestErrors,
503
548
  ThrowOnError
504
549
  >({
505
550
  security: [
@@ -519,8 +564,8 @@ export const webhooksControllerGetStatus = <
519
564
  options: Options<WebhooksControllerGetStatusData, ThrowOnError>,
520
565
  ) => {
521
566
  return (options.client ?? _heyApiClient).get<
522
- WebhooksControllerGetStatusResponse,
523
- unknown,
567
+ WebhooksControllerGetStatusResponses,
568
+ WebhooksControllerGetStatusErrors,
524
569
  ThrowOnError
525
570
  >({
526
571
  security: [
@@ -0,0 +1,40 @@
1
+ // This file is auto-generated by @hey-api/openapi-ts
2
+ import type {
3
+ ApiTokenControllerUpdateTokenResponse,
4
+ ConditionsControllerGetSunAltitudeTimeLimitsResponse,
5
+ } from "./types.gen.js";
6
+
7
+ const updateApiTokenResponseDtoSchemaResponseTransformer = (data: any) => {
8
+ data.deleted_at = new Date(data.deleted_at);
9
+ data.last_used = new Date(data.last_used);
10
+ return data;
11
+ };
12
+
13
+ export const apiTokenControllerUpdateTokenResponseTransformer = async (
14
+ data: any,
15
+ ): Promise<ApiTokenControllerUpdateTokenResponse> => {
16
+ data = updateApiTokenResponseDtoSchemaResponseTransformer(data);
17
+ return data;
18
+ };
19
+
20
+ const getTimeLimitsForSunAltitudeResponseSchemaResponseTransformer = (
21
+ data: any,
22
+ ) => {
23
+ data.OptimalSunAltitudePeriod.StartTime = new Date(
24
+ data.OptimalSunAltitudePeriod.StartTime,
25
+ );
26
+ data.OptimalSunAltitudePeriod.EndTime = new Date(
27
+ data.OptimalSunAltitudePeriod.EndTime,
28
+ );
29
+ data.DaylightPeriod.StartTime = new Date(data.DaylightPeriod.StartTime);
30
+ data.DaylightPeriod.EndTime = new Date(data.DaylightPeriod.EndTime);
31
+ return data;
32
+ };
33
+
34
+ export const conditionsControllerGetSunAltitudeTimeLimitsResponseTransformer =
35
+ async (
36
+ data: any,
37
+ ): Promise<ConditionsControllerGetSunAltitudeTimeLimitsResponse> => {
38
+ data = getTimeLimitsForSunAltitudeResponseSchemaResponseTransformer(data);
39
+ return data;
40
+ };
@@ -32,7 +32,7 @@ export type DepositRewardsRequestDto = {
32
32
  /**
33
33
  * An integer where the last 18 places are decimal places
34
34
  */
35
- amount: number;
35
+ amount: bigint;
36
36
  vaultId: number;
37
37
  vaultManagerAddress?: string;
38
38
  };
@@ -54,12 +54,10 @@ export type DistributeRewardsResponseDto = {
54
54
  export type CreateApiTokenResponseDto = {
55
55
  id: string;
56
56
  name: string;
57
- deleted_at: string | null;
58
- last_used: string | null;
57
+ deleted_at: Date;
58
+ last_used: Date;
59
59
  org: number;
60
- scopes: Array<
61
- "manageTokens" | "manageFlights" | "manageWebhooks" | "all"
62
- > | null;
60
+ scopes: Array<"manageTokens" | "manageFlights" | "manageWebhooks" | "all">;
63
61
  };
64
62
 
65
63
  export type CreateApiTokenRequestDto = {
@@ -76,12 +74,10 @@ export type UpdateApiTokenRequestDto = {
76
74
  export type UpdateApiTokenResponseDto = {
77
75
  id: string;
78
76
  name: string;
79
- deleted_at: string | null;
80
- last_used: string | null;
77
+ deleted_at: Date;
78
+ last_used: Date;
81
79
  org: number;
82
- scopes: Array<
83
- "manageTokens" | "manageFlights" | "manageWebhooks" | "all"
84
- > | null;
80
+ scopes: Array<"manageTokens" | "manageFlights" | "manageWebhooks" | "all">;
85
81
  };
86
82
 
87
83
  export type CreateQuoteRequestDto = {
@@ -114,13 +110,13 @@ export type ValidateFlightResponseDto = {
114
110
 
115
111
  export type GetTimeLimitsForSunAltitudeResponse = {
116
112
  OptimalSunAltitudePeriod: {
117
- StartTime: string;
118
- EndTime: string;
113
+ StartTime: Date;
114
+ EndTime: Date;
119
115
  SunAltitudeAtLimits: number;
120
116
  };
121
117
  DaylightPeriod: {
122
- StartTime: string;
123
- EndTime: string;
118
+ StartTime: Date;
119
+ EndTime: Date;
124
120
  SunAltitudeAtLimits: number;
125
121
  };
126
122
  SunAltitudeInDegrees: number;
@@ -145,7 +141,7 @@ export type GetWebhooksResponse = Array<{
145
141
  event_types: Array<"test" | "protocol.flight.submitted" | "*">;
146
142
  active: boolean;
147
143
  failure_count: number;
148
- last_failure_reason: string | null;
144
+ last_failure_reason: string;
149
145
  created_at: string;
150
146
  updated_at: string;
151
147
  }>;
@@ -157,7 +153,7 @@ export type GetWebhookResponse = {
157
153
  event_types: Array<"test" | "protocol.flight.submitted" | "*">;
158
154
  active: boolean;
159
155
  failure_count: number;
160
- last_failure_reason: string | null;
156
+ last_failure_reason: string;
161
157
  created_at: string;
162
158
  updated_at: string;
163
159
  };
@@ -176,7 +172,7 @@ export type UpdateWebhookResponse = {
176
172
  event_types: Array<"test" | "protocol.flight.submitted" | "*">;
177
173
  active: boolean;
178
174
  failure_count: number;
179
- last_failure_reason: string | null;
175
+ last_failure_reason: string;
180
176
  created_at: string;
181
177
  updated_at: string;
182
178
  };
@@ -195,7 +191,7 @@ export type TestWebhookResponse = {
195
191
 
196
192
  export type GetWebhookStatusResponse = {
197
193
  status: "inactive" | "error" | "connected" | "connecting";
198
- error?: string | null;
194
+ error?: string;
199
195
  };
200
196
 
201
197
  export type AppControllerGetHelloData = {
@@ -456,9 +452,9 @@ export type ConditionsControllerGetSunAltitudeTimeLimitsData = {
456
452
  */
457
453
  lon: number;
458
454
  /**
459
- * Local time in ISO time format with correct timezone YYYY-MM-DDTHH:MM:SS+hh:mm'
455
+ * Local time in ISO time format with correct timezone YYYY-MM-DDTHH:MM:SS+hh:mm
460
456
  */
461
- time: string;
457
+ time: Date;
462
458
  };
463
459
  url: "/conditions/sun-altitude";
464
460
  };
package/src/index.ts CHANGED
@@ -1,2 +1,3 @@
1
1
  export * from "./client";
2
+ export * from "./client/client.gen";
2
3
  export * from "./event";