@layer-drone/protocol 0.0.3 → 0.0.5
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/client/client.gen.d.ts +4 -0
- package/dist/client/client.gen.js +6 -0
- package/dist/client/client.gen.js.map +1 -0
- package/dist/client/index.d.ts +2 -0
- package/dist/client/index.js +19 -0
- package/dist/client/index.js.map +1 -0
- package/dist/client/sdk.gen.d.ts +26 -0
- package/dist/client/sdk.gen.js +279 -0
- package/dist/client/sdk.gen.js.map +1 -0
- package/dist/client/types.gen.d.ts +416 -0
- package/dist/client/types.gen.js +3 -0
- package/dist/client/types.gen.js.map +1 -0
- package/dist/event/index.d.ts +2 -0
- package/dist/event/index.js +19 -0
- package/dist/event/index.js.map +1 -0
- package/dist/event/parser.d.ts +17 -0
- package/dist/event/parser.js +20 -0
- package/dist/event/parser.js.map +1 -0
- package/dist/event/types.gen.d.ts +63 -0
- package/dist/event/types.gen.js +29 -0
- package/dist/event/types.gen.js.map +1 -0
- package/dist/index.d.mts +528 -0
- package/dist/index.d.ts +528 -0
- package/dist/index.js +372 -0
- package/dist/index.js.map +1 -0
- package/dist/index.mjs +326 -0
- package/dist/tsconfig.tsbuildinfo +1 -0
- package/package.json +6 -1
- package/.eslintrc.js +0 -19
- package/.prettierrc.js +0 -4
- package/.turbo/turbo-build.log +0 -18
- package/.turbo/turbo-lint.log +0 -4
- package/CHANGELOG.md +0 -8
- package/openapi-ts.config.ts +0 -7
- package/scripts/generate-event-type.ts +0 -35
- package/tsconfig.json +0 -12
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,528 @@
|
|
|
1
|
+
import * as _hey_api_client_fetch from '@hey-api/client-fetch';
|
|
2
|
+
import { TDataShape, Options as Options$1, Client } from '@hey-api/client-fetch';
|
|
3
|
+
import { z } from 'zod';
|
|
4
|
+
|
|
5
|
+
type GetProvenanceCryptoKeyResponse = {
|
|
6
|
+
KeyId: string;
|
|
7
|
+
PublicKey: string;
|
|
8
|
+
KeySpec?: "ECC_NIST_P256" | "ECC_NIST_P384" | "ECC_NIST_P521" | "ECC_SECG_P256K1" | "HMAC_224" | "HMAC_256" | "HMAC_384" | "HMAC_512" | "RSA_2048" | "RSA_3072" | "RSA_4096" | "SM2" | "SYMMETRIC_DEFAULT";
|
|
9
|
+
KeyUsage?: "ENCRYPT_DECRYPT" | "GENERATE_VERIFY_MAC" | "KEY_AGREEMENT" | "SIGN_VERIFY";
|
|
10
|
+
EncryptionAlgorithms?: Array<"RSAES_OAEP_SHA_1" | "RSAES_OAEP_SHA_256" | "SM2PKE" | "SYMMETRIC_DEFAULT">;
|
|
11
|
+
};
|
|
12
|
+
type DepositRewardsRequestDto = {
|
|
13
|
+
caller: string;
|
|
14
|
+
amount: number;
|
|
15
|
+
vaultId: number;
|
|
16
|
+
vaultManagerAddress?: string;
|
|
17
|
+
};
|
|
18
|
+
type DepositRewardsResponseDto = {
|
|
19
|
+
MessageId: string;
|
|
20
|
+
};
|
|
21
|
+
type DistributeRewardsRequestDto = {
|
|
22
|
+
amounts: {
|
|
23
|
+
[key: string]: number;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
type DistributeRewardsResponseDto = {
|
|
27
|
+
MessageId: string;
|
|
28
|
+
};
|
|
29
|
+
type CreateApiTokenResponseDto = {
|
|
30
|
+
id: string;
|
|
31
|
+
name: string;
|
|
32
|
+
deleted_at: string | null;
|
|
33
|
+
last_used: string | null;
|
|
34
|
+
org: number;
|
|
35
|
+
scopes: Array<"manageTokens" | "manageFlights" | "manageWebhooks" | "all"> | null;
|
|
36
|
+
};
|
|
37
|
+
type CreateApiTokenRequestDto = {
|
|
38
|
+
name: string;
|
|
39
|
+
scopes: Array<"manageTokens" | "manageFlights" | "manageWebhooks" | "all">;
|
|
40
|
+
orgId: number;
|
|
41
|
+
};
|
|
42
|
+
type UpdateApiTokenRequestDto = {
|
|
43
|
+
name?: string;
|
|
44
|
+
scopes?: Array<"manageTokens" | "manageFlights" | "manageWebhooks" | "all">;
|
|
45
|
+
};
|
|
46
|
+
type UpdateApiTokenResponseDto = {
|
|
47
|
+
id: string;
|
|
48
|
+
name: string;
|
|
49
|
+
deleted_at: string | null;
|
|
50
|
+
last_used: string | null;
|
|
51
|
+
org: number;
|
|
52
|
+
scopes: Array<"manageTokens" | "manageFlights" | "manageWebhooks" | "all"> | null;
|
|
53
|
+
};
|
|
54
|
+
type CreateFileRequestDto = {
|
|
55
|
+
filenames: Array<string>;
|
|
56
|
+
flightId: number;
|
|
57
|
+
};
|
|
58
|
+
type ValidateFlightDto = {
|
|
59
|
+
pilotAddress: string;
|
|
60
|
+
flightId: number;
|
|
61
|
+
flightManifestUri?: string;
|
|
62
|
+
};
|
|
63
|
+
type CreateWebhookBody = {
|
|
64
|
+
name: string;
|
|
65
|
+
url: string;
|
|
66
|
+
event_types: Array<"test" | "protocol.flight.submitted" | "*">;
|
|
67
|
+
active: boolean;
|
|
68
|
+
};
|
|
69
|
+
type CreateWebhookResponse = {
|
|
70
|
+
id: number;
|
|
71
|
+
secret: string;
|
|
72
|
+
};
|
|
73
|
+
type GetWebhooksResponse = Array<{
|
|
74
|
+
id: number;
|
|
75
|
+
name: string;
|
|
76
|
+
url: string;
|
|
77
|
+
event_types: Array<"test" | "protocol.flight.submitted" | "*">;
|
|
78
|
+
active: boolean;
|
|
79
|
+
failure_count: number;
|
|
80
|
+
last_failure_reason: string | null;
|
|
81
|
+
created_at: string;
|
|
82
|
+
updated_at: string;
|
|
83
|
+
}>;
|
|
84
|
+
type GetWebhookResponse = {
|
|
85
|
+
id: number;
|
|
86
|
+
name: string;
|
|
87
|
+
url: string;
|
|
88
|
+
event_types: Array<"test" | "protocol.flight.submitted" | "*">;
|
|
89
|
+
active: boolean;
|
|
90
|
+
failure_count: number;
|
|
91
|
+
last_failure_reason: string | null;
|
|
92
|
+
created_at: string;
|
|
93
|
+
updated_at: string;
|
|
94
|
+
};
|
|
95
|
+
type UpdateWebhookBody = {
|
|
96
|
+
name?: string;
|
|
97
|
+
url?: string;
|
|
98
|
+
event_types?: Array<"test" | "protocol.flight.submitted" | "*">;
|
|
99
|
+
active?: boolean;
|
|
100
|
+
};
|
|
101
|
+
type UpdateWebhookResponse = {
|
|
102
|
+
id: number;
|
|
103
|
+
name: string;
|
|
104
|
+
url: string;
|
|
105
|
+
event_types: Array<"test" | "protocol.flight.submitted" | "*">;
|
|
106
|
+
active: boolean;
|
|
107
|
+
failure_count: number;
|
|
108
|
+
last_failure_reason: string | null;
|
|
109
|
+
created_at: string;
|
|
110
|
+
updated_at: string;
|
|
111
|
+
};
|
|
112
|
+
type DeleteWebhookResponse = {
|
|
113
|
+
message: string;
|
|
114
|
+
};
|
|
115
|
+
type RegenerateWebhookSecretResponseDto = {
|
|
116
|
+
secret: string;
|
|
117
|
+
};
|
|
118
|
+
type TestWebhookResponse = {
|
|
119
|
+
success: boolean;
|
|
120
|
+
};
|
|
121
|
+
type GetWebhookStatusResponse = {
|
|
122
|
+
status: "inactive" | "error" | "connected" | "connecting";
|
|
123
|
+
error?: string | null;
|
|
124
|
+
};
|
|
125
|
+
type AppControllerGetHelloData = {
|
|
126
|
+
body?: never;
|
|
127
|
+
path?: never;
|
|
128
|
+
query?: never;
|
|
129
|
+
url: "/";
|
|
130
|
+
};
|
|
131
|
+
type AppControllerGetHelloResponses = {
|
|
132
|
+
200: unknown;
|
|
133
|
+
};
|
|
134
|
+
type KeysControllerGetProvenanceCryptoKeyData = {
|
|
135
|
+
body?: never;
|
|
136
|
+
path?: never;
|
|
137
|
+
query?: never;
|
|
138
|
+
url: "/keys";
|
|
139
|
+
};
|
|
140
|
+
type KeysControllerGetProvenanceCryptoKeyResponses = {
|
|
141
|
+
200: GetProvenanceCryptoKeyResponse;
|
|
142
|
+
};
|
|
143
|
+
type KeysControllerGetProvenanceCryptoKeyResponse = KeysControllerGetProvenanceCryptoKeyResponses[keyof KeysControllerGetProvenanceCryptoKeyResponses];
|
|
144
|
+
type RewardsControllerDepositRewardsData = {
|
|
145
|
+
body: DepositRewardsRequestDto;
|
|
146
|
+
path?: never;
|
|
147
|
+
query?: never;
|
|
148
|
+
url: "/rewards/deposit";
|
|
149
|
+
};
|
|
150
|
+
type RewardsControllerDepositRewardsErrors = {
|
|
151
|
+
401: unknown;
|
|
152
|
+
403: unknown;
|
|
153
|
+
};
|
|
154
|
+
type RewardsControllerDepositRewardsResponses = {
|
|
155
|
+
200: DepositRewardsResponseDto;
|
|
156
|
+
};
|
|
157
|
+
type RewardsControllerDepositRewardsResponse = RewardsControllerDepositRewardsResponses[keyof RewardsControllerDepositRewardsResponses];
|
|
158
|
+
type RewardsControllerDistributeRewardsData = {
|
|
159
|
+
body: DistributeRewardsRequestDto;
|
|
160
|
+
path?: never;
|
|
161
|
+
query?: never;
|
|
162
|
+
url: "/rewards/distribute";
|
|
163
|
+
};
|
|
164
|
+
type RewardsControllerDistributeRewardsErrors = {
|
|
165
|
+
401: unknown;
|
|
166
|
+
403: unknown;
|
|
167
|
+
};
|
|
168
|
+
type RewardsControllerDistributeRewardsResponses = {
|
|
169
|
+
200: DistributeRewardsResponseDto;
|
|
170
|
+
};
|
|
171
|
+
type RewardsControllerDistributeRewardsResponse = RewardsControllerDistributeRewardsResponses[keyof RewardsControllerDistributeRewardsResponses];
|
|
172
|
+
type ApiTokenControllerCreateTokenData = {
|
|
173
|
+
body: CreateApiTokenRequestDto;
|
|
174
|
+
path?: never;
|
|
175
|
+
query?: never;
|
|
176
|
+
url: "/tokens";
|
|
177
|
+
};
|
|
178
|
+
type ApiTokenControllerCreateTokenErrors = {
|
|
179
|
+
401: unknown;
|
|
180
|
+
403: unknown;
|
|
181
|
+
};
|
|
182
|
+
type ApiTokenControllerCreateTokenResponses = {
|
|
183
|
+
200: CreateApiTokenResponseDto;
|
|
184
|
+
201: unknown;
|
|
185
|
+
};
|
|
186
|
+
type ApiTokenControllerCreateTokenResponse = ApiTokenControllerCreateTokenResponses[keyof ApiTokenControllerCreateTokenResponses];
|
|
187
|
+
type ApiTokenControllerDeleteTokenData = {
|
|
188
|
+
body?: never;
|
|
189
|
+
path: {
|
|
190
|
+
id: string;
|
|
191
|
+
};
|
|
192
|
+
query?: never;
|
|
193
|
+
url: "/tokens/{id}";
|
|
194
|
+
};
|
|
195
|
+
type ApiTokenControllerDeleteTokenErrors = {
|
|
196
|
+
401: unknown;
|
|
197
|
+
403: unknown;
|
|
198
|
+
};
|
|
199
|
+
type ApiTokenControllerDeleteTokenResponses = {
|
|
200
|
+
200: unknown;
|
|
201
|
+
};
|
|
202
|
+
type ApiTokenControllerGetTokenData = {
|
|
203
|
+
body?: never;
|
|
204
|
+
path: {
|
|
205
|
+
id: string;
|
|
206
|
+
};
|
|
207
|
+
query?: never;
|
|
208
|
+
url: "/tokens/{id}";
|
|
209
|
+
};
|
|
210
|
+
type ApiTokenControllerGetTokenErrors = {
|
|
211
|
+
401: unknown;
|
|
212
|
+
403: unknown;
|
|
213
|
+
};
|
|
214
|
+
type ApiTokenControllerGetTokenResponses = {
|
|
215
|
+
200: unknown;
|
|
216
|
+
};
|
|
217
|
+
type ApiTokenControllerUpdateTokenData = {
|
|
218
|
+
body: UpdateApiTokenRequestDto;
|
|
219
|
+
path: {
|
|
220
|
+
id: string;
|
|
221
|
+
};
|
|
222
|
+
query?: never;
|
|
223
|
+
url: "/tokens/{id}";
|
|
224
|
+
};
|
|
225
|
+
type ApiTokenControllerUpdateTokenErrors = {
|
|
226
|
+
401: unknown;
|
|
227
|
+
403: unknown;
|
|
228
|
+
};
|
|
229
|
+
type ApiTokenControllerUpdateTokenResponses = {
|
|
230
|
+
200: UpdateApiTokenResponseDto;
|
|
231
|
+
};
|
|
232
|
+
type ApiTokenControllerUpdateTokenResponse = ApiTokenControllerUpdateTokenResponses[keyof ApiTokenControllerUpdateTokenResponses];
|
|
233
|
+
type FlightsControllerGenerateFlightIdData = {
|
|
234
|
+
body?: never;
|
|
235
|
+
path?: never;
|
|
236
|
+
query: {
|
|
237
|
+
missionId: number;
|
|
238
|
+
pilotAddress: string;
|
|
239
|
+
};
|
|
240
|
+
url: "/flights/id";
|
|
241
|
+
};
|
|
242
|
+
type FlightsControllerGenerateFlightIdErrors = {
|
|
243
|
+
401: unknown;
|
|
244
|
+
403: unknown;
|
|
245
|
+
};
|
|
246
|
+
type FlightsControllerGenerateFlightIdResponses = {
|
|
247
|
+
200: unknown;
|
|
248
|
+
};
|
|
249
|
+
type FlightsControllerCreatePresignedUrlsData = {
|
|
250
|
+
body: CreateFileRequestDto;
|
|
251
|
+
path?: never;
|
|
252
|
+
query?: never;
|
|
253
|
+
url: "/flights/files";
|
|
254
|
+
};
|
|
255
|
+
type FlightsControllerCreatePresignedUrlsErrors = {
|
|
256
|
+
401: unknown;
|
|
257
|
+
403: unknown;
|
|
258
|
+
};
|
|
259
|
+
type FlightsControllerCreatePresignedUrlsResponses = {
|
|
260
|
+
201: unknown;
|
|
261
|
+
};
|
|
262
|
+
type FlightsControllerValidateFlightData = {
|
|
263
|
+
body: ValidateFlightDto;
|
|
264
|
+
path?: never;
|
|
265
|
+
query?: never;
|
|
266
|
+
url: "/flights";
|
|
267
|
+
};
|
|
268
|
+
type FlightsControllerValidateFlightErrors = {
|
|
269
|
+
401: unknown;
|
|
270
|
+
403: unknown;
|
|
271
|
+
};
|
|
272
|
+
type FlightsControllerValidateFlightResponses = {
|
|
273
|
+
201: unknown;
|
|
274
|
+
};
|
|
275
|
+
type SchemaControllerGetEventSchemaData = {
|
|
276
|
+
body?: never;
|
|
277
|
+
path?: never;
|
|
278
|
+
query?: never;
|
|
279
|
+
url: "/schema/event";
|
|
280
|
+
};
|
|
281
|
+
type SchemaControllerGetEventSchemaResponses = {
|
|
282
|
+
200: unknown;
|
|
283
|
+
};
|
|
284
|
+
type WebhooksControllerGetManyData = {
|
|
285
|
+
body?: never;
|
|
286
|
+
path: {
|
|
287
|
+
org_id: number;
|
|
288
|
+
};
|
|
289
|
+
query?: never;
|
|
290
|
+
url: "/org/{org_id}/webhooks";
|
|
291
|
+
};
|
|
292
|
+
type WebhooksControllerGetManyErrors = {
|
|
293
|
+
401: unknown;
|
|
294
|
+
403: unknown;
|
|
295
|
+
};
|
|
296
|
+
type WebhooksControllerGetManyResponses = {
|
|
297
|
+
200: GetWebhooksResponse;
|
|
298
|
+
};
|
|
299
|
+
type WebhooksControllerGetManyResponse = WebhooksControllerGetManyResponses[keyof WebhooksControllerGetManyResponses];
|
|
300
|
+
type WebhooksControllerCreateData = {
|
|
301
|
+
body: CreateWebhookBody;
|
|
302
|
+
path: {
|
|
303
|
+
org_id: number;
|
|
304
|
+
};
|
|
305
|
+
query?: never;
|
|
306
|
+
url: "/org/{org_id}/webhooks";
|
|
307
|
+
};
|
|
308
|
+
type WebhooksControllerCreateErrors = {
|
|
309
|
+
401: unknown;
|
|
310
|
+
403: unknown;
|
|
311
|
+
};
|
|
312
|
+
type WebhooksControllerCreateResponses = {
|
|
313
|
+
201: CreateWebhookResponse;
|
|
314
|
+
};
|
|
315
|
+
type WebhooksControllerCreateResponse = WebhooksControllerCreateResponses[keyof WebhooksControllerCreateResponses];
|
|
316
|
+
type WebhooksControllerDeleteData = {
|
|
317
|
+
body?: never;
|
|
318
|
+
path: {
|
|
319
|
+
org_id: number;
|
|
320
|
+
id: number;
|
|
321
|
+
};
|
|
322
|
+
query?: never;
|
|
323
|
+
url: "/org/{org_id}/webhooks/{id}";
|
|
324
|
+
};
|
|
325
|
+
type WebhooksControllerDeleteErrors = {
|
|
326
|
+
401: unknown;
|
|
327
|
+
403: unknown;
|
|
328
|
+
};
|
|
329
|
+
type WebhooksControllerDeleteResponses = {
|
|
330
|
+
200: DeleteWebhookResponse;
|
|
331
|
+
};
|
|
332
|
+
type WebhooksControllerDeleteResponse = WebhooksControllerDeleteResponses[keyof WebhooksControllerDeleteResponses];
|
|
333
|
+
type WebhooksControllerGetData = {
|
|
334
|
+
body?: never;
|
|
335
|
+
path: {
|
|
336
|
+
org_id: number;
|
|
337
|
+
id: number;
|
|
338
|
+
};
|
|
339
|
+
query?: never;
|
|
340
|
+
url: "/org/{org_id}/webhooks/{id}";
|
|
341
|
+
};
|
|
342
|
+
type WebhooksControllerGetErrors = {
|
|
343
|
+
401: unknown;
|
|
344
|
+
403: unknown;
|
|
345
|
+
};
|
|
346
|
+
type WebhooksControllerGetResponses = {
|
|
347
|
+
200: GetWebhookResponse;
|
|
348
|
+
};
|
|
349
|
+
type WebhooksControllerGetResponse = WebhooksControllerGetResponses[keyof WebhooksControllerGetResponses];
|
|
350
|
+
type WebhooksControllerUpdateData = {
|
|
351
|
+
body: UpdateWebhookBody;
|
|
352
|
+
path: {
|
|
353
|
+
org_id: number;
|
|
354
|
+
id: number;
|
|
355
|
+
};
|
|
356
|
+
query?: never;
|
|
357
|
+
url: "/org/{org_id}/webhooks/{id}";
|
|
358
|
+
};
|
|
359
|
+
type WebhooksControllerUpdateErrors = {
|
|
360
|
+
401: unknown;
|
|
361
|
+
403: unknown;
|
|
362
|
+
};
|
|
363
|
+
type WebhooksControllerUpdateResponses = {
|
|
364
|
+
200: UpdateWebhookResponse;
|
|
365
|
+
};
|
|
366
|
+
type WebhooksControllerUpdateResponse = WebhooksControllerUpdateResponses[keyof WebhooksControllerUpdateResponses];
|
|
367
|
+
type WebhooksControllerRegenerateSecretData = {
|
|
368
|
+
body?: never;
|
|
369
|
+
path: {
|
|
370
|
+
org_id: number;
|
|
371
|
+
id: number;
|
|
372
|
+
};
|
|
373
|
+
query?: never;
|
|
374
|
+
url: "/org/{org_id}/webhooks/{id}/regenerate-secret";
|
|
375
|
+
};
|
|
376
|
+
type WebhooksControllerRegenerateSecretErrors = {
|
|
377
|
+
401: unknown;
|
|
378
|
+
403: unknown;
|
|
379
|
+
};
|
|
380
|
+
type WebhooksControllerRegenerateSecretResponses = {
|
|
381
|
+
200: RegenerateWebhookSecretResponseDto;
|
|
382
|
+
};
|
|
383
|
+
type WebhooksControllerRegenerateSecretResponse = WebhooksControllerRegenerateSecretResponses[keyof WebhooksControllerRegenerateSecretResponses];
|
|
384
|
+
type WebhooksControllerTestData = {
|
|
385
|
+
body?: never;
|
|
386
|
+
path: {
|
|
387
|
+
org_id: number;
|
|
388
|
+
id: number;
|
|
389
|
+
};
|
|
390
|
+
query?: never;
|
|
391
|
+
url: "/org/{org_id}/webhooks/{id}/test";
|
|
392
|
+
};
|
|
393
|
+
type WebhooksControllerTestErrors = {
|
|
394
|
+
401: unknown;
|
|
395
|
+
403: unknown;
|
|
396
|
+
};
|
|
397
|
+
type WebhooksControllerTestResponses = {
|
|
398
|
+
200: TestWebhookResponse;
|
|
399
|
+
};
|
|
400
|
+
type WebhooksControllerTestResponse = WebhooksControllerTestResponses[keyof WebhooksControllerTestResponses];
|
|
401
|
+
type WebhooksControllerGetStatusData = {
|
|
402
|
+
body?: never;
|
|
403
|
+
path: {
|
|
404
|
+
org_id: number;
|
|
405
|
+
id: number;
|
|
406
|
+
};
|
|
407
|
+
query?: never;
|
|
408
|
+
url: "/org/{org_id}/webhooks/{id}/status";
|
|
409
|
+
};
|
|
410
|
+
type WebhooksControllerGetStatusErrors = {
|
|
411
|
+
401: unknown;
|
|
412
|
+
403: unknown;
|
|
413
|
+
};
|
|
414
|
+
type WebhooksControllerGetStatusResponses = {
|
|
415
|
+
200: GetWebhookStatusResponse;
|
|
416
|
+
};
|
|
417
|
+
type WebhooksControllerGetStatusResponse = WebhooksControllerGetStatusResponses[keyof WebhooksControllerGetStatusResponses];
|
|
418
|
+
type ClientOptions = {
|
|
419
|
+
baseUrl: string;
|
|
420
|
+
};
|
|
421
|
+
|
|
422
|
+
type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean> = Options$1<TData, ThrowOnError> & {
|
|
423
|
+
client?: Client;
|
|
424
|
+
meta?: Record<string, unknown>;
|
|
425
|
+
};
|
|
426
|
+
declare const appControllerGetHello: <ThrowOnError extends boolean = false>(options?: Options<AppControllerGetHelloData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<unknown, unknown, ThrowOnError>;
|
|
427
|
+
declare const keysControllerGetProvenanceCryptoKey: <ThrowOnError extends boolean = false>(options?: Options<KeysControllerGetProvenanceCryptoKeyData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<GetProvenanceCryptoKeyResponse, unknown, ThrowOnError>;
|
|
428
|
+
declare const rewardsControllerDepositRewards: <ThrowOnError extends boolean = false>(options: Options<RewardsControllerDepositRewardsData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<DepositRewardsResponseDto, unknown, ThrowOnError>;
|
|
429
|
+
declare const rewardsControllerDistributeRewards: <ThrowOnError extends boolean = false>(options: Options<RewardsControllerDistributeRewardsData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<DistributeRewardsResponseDto, unknown, ThrowOnError>;
|
|
430
|
+
declare const apiTokenControllerCreateToken: <ThrowOnError extends boolean = false>(options: Options<ApiTokenControllerCreateTokenData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<unknown, unknown, ThrowOnError>;
|
|
431
|
+
declare const apiTokenControllerDeleteToken: <ThrowOnError extends boolean = false>(options: Options<ApiTokenControllerDeleteTokenData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<unknown, unknown, ThrowOnError>;
|
|
432
|
+
declare const apiTokenControllerGetToken: <ThrowOnError extends boolean = false>(options: Options<ApiTokenControllerGetTokenData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<unknown, unknown, ThrowOnError>;
|
|
433
|
+
declare const apiTokenControllerUpdateToken: <ThrowOnError extends boolean = false>(options: Options<ApiTokenControllerUpdateTokenData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<UpdateApiTokenResponseDto, unknown, ThrowOnError>;
|
|
434
|
+
declare const flightsControllerGenerateFlightId: <ThrowOnError extends boolean = false>(options: Options<FlightsControllerGenerateFlightIdData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<unknown, unknown, ThrowOnError>;
|
|
435
|
+
declare const flightsControllerCreatePresignedUrls: <ThrowOnError extends boolean = false>(options: Options<FlightsControllerCreatePresignedUrlsData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<unknown, unknown, ThrowOnError>;
|
|
436
|
+
declare const flightsControllerValidateFlight: <ThrowOnError extends boolean = false>(options: Options<FlightsControllerValidateFlightData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<unknown, unknown, ThrowOnError>;
|
|
437
|
+
declare const schemaControllerGetEventSchema: <ThrowOnError extends boolean = false>(options?: Options<SchemaControllerGetEventSchemaData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<unknown, unknown, ThrowOnError>;
|
|
438
|
+
declare const webhooksControllerGetMany: <ThrowOnError extends boolean = false>(options: Options<WebhooksControllerGetManyData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<GetWebhooksResponse, unknown, ThrowOnError>;
|
|
439
|
+
declare const webhooksControllerCreate: <ThrowOnError extends boolean = false>(options: Options<WebhooksControllerCreateData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<CreateWebhookResponse, unknown, ThrowOnError>;
|
|
440
|
+
declare const webhooksControllerDelete: <ThrowOnError extends boolean = false>(options: Options<WebhooksControllerDeleteData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<DeleteWebhookResponse, unknown, ThrowOnError>;
|
|
441
|
+
declare const webhooksControllerGet: <ThrowOnError extends boolean = false>(options: Options<WebhooksControllerGetData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<GetWebhookResponse, unknown, ThrowOnError>;
|
|
442
|
+
declare const webhooksControllerUpdate: <ThrowOnError extends boolean = false>(options: Options<WebhooksControllerUpdateData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<UpdateWebhookResponse, unknown, ThrowOnError>;
|
|
443
|
+
declare const webhooksControllerRegenerateSecret: <ThrowOnError extends boolean = false>(options: Options<WebhooksControllerRegenerateSecretData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<RegenerateWebhookSecretResponseDto, unknown, ThrowOnError>;
|
|
444
|
+
declare const webhooksControllerTest: <ThrowOnError extends boolean = false>(options: Options<WebhooksControllerTestData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<TestWebhookResponse, unknown, ThrowOnError>;
|
|
445
|
+
declare const webhooksControllerGetStatus: <ThrowOnError extends boolean = false>(options: Options<WebhooksControllerGetStatusData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<GetWebhookStatusResponse, unknown, ThrowOnError>;
|
|
446
|
+
|
|
447
|
+
declare const Event: z.ZodUnion<[z.ZodObject<{
|
|
448
|
+
id: z.ZodString;
|
|
449
|
+
event_type: z.ZodLiteral<"test">;
|
|
450
|
+
timestamp: z.ZodString;
|
|
451
|
+
data: z.ZodObject<{
|
|
452
|
+
message: z.ZodString;
|
|
453
|
+
}, "strict", z.ZodTypeAny, {
|
|
454
|
+
message: string;
|
|
455
|
+
}, {
|
|
456
|
+
message: string;
|
|
457
|
+
}>;
|
|
458
|
+
}, "strict", z.ZodTypeAny, {
|
|
459
|
+
id: string;
|
|
460
|
+
event_type: "test";
|
|
461
|
+
timestamp: string;
|
|
462
|
+
data: {
|
|
463
|
+
message: string;
|
|
464
|
+
};
|
|
465
|
+
}, {
|
|
466
|
+
id: string;
|
|
467
|
+
event_type: "test";
|
|
468
|
+
timestamp: string;
|
|
469
|
+
data: {
|
|
470
|
+
message: string;
|
|
471
|
+
};
|
|
472
|
+
}>, z.ZodObject<{
|
|
473
|
+
id: z.ZodAny;
|
|
474
|
+
event_type: z.ZodLiteral<"protocol.flight.submitted">;
|
|
475
|
+
timestamp: z.ZodAny;
|
|
476
|
+
data: z.ZodObject<{
|
|
477
|
+
flightId: z.ZodNumber;
|
|
478
|
+
pilotAddress: z.ZodString;
|
|
479
|
+
flightManifestUri: z.ZodString;
|
|
480
|
+
}, "strict", z.ZodTypeAny, {
|
|
481
|
+
pilotAddress: string;
|
|
482
|
+
flightId: number;
|
|
483
|
+
flightManifestUri: string;
|
|
484
|
+
}, {
|
|
485
|
+
pilotAddress: string;
|
|
486
|
+
flightId: number;
|
|
487
|
+
flightManifestUri: string;
|
|
488
|
+
}>;
|
|
489
|
+
}, "strict", z.ZodTypeAny, {
|
|
490
|
+
event_type: "protocol.flight.submitted";
|
|
491
|
+
data: {
|
|
492
|
+
pilotAddress: string;
|
|
493
|
+
flightId: number;
|
|
494
|
+
flightManifestUri: string;
|
|
495
|
+
};
|
|
496
|
+
id?: any;
|
|
497
|
+
timestamp?: any;
|
|
498
|
+
}, {
|
|
499
|
+
event_type: "protocol.flight.submitted";
|
|
500
|
+
data: {
|
|
501
|
+
pilotAddress: string;
|
|
502
|
+
flightId: number;
|
|
503
|
+
flightManifestUri: string;
|
|
504
|
+
};
|
|
505
|
+
id?: any;
|
|
506
|
+
timestamp?: any;
|
|
507
|
+
}>]>;
|
|
508
|
+
type Event = z.infer<typeof Event>;
|
|
509
|
+
|
|
510
|
+
declare function parseWebhookEvent(req: Request, webhookSecret: string): {
|
|
511
|
+
id: string;
|
|
512
|
+
event_type: "test";
|
|
513
|
+
timestamp: string;
|
|
514
|
+
data: {
|
|
515
|
+
message: string;
|
|
516
|
+
};
|
|
517
|
+
} | {
|
|
518
|
+
event_type: "protocol.flight.submitted";
|
|
519
|
+
data: {
|
|
520
|
+
pilotAddress: string;
|
|
521
|
+
flightId: number;
|
|
522
|
+
flightManifestUri: string;
|
|
523
|
+
};
|
|
524
|
+
id?: any;
|
|
525
|
+
timestamp?: any;
|
|
526
|
+
};
|
|
527
|
+
|
|
528
|
+
export { type ApiTokenControllerCreateTokenData, type ApiTokenControllerCreateTokenErrors, type ApiTokenControllerCreateTokenResponse, type ApiTokenControllerCreateTokenResponses, type ApiTokenControllerDeleteTokenData, type ApiTokenControllerDeleteTokenErrors, type ApiTokenControllerDeleteTokenResponses, type ApiTokenControllerGetTokenData, type ApiTokenControllerGetTokenErrors, type ApiTokenControllerGetTokenResponses, type ApiTokenControllerUpdateTokenData, type ApiTokenControllerUpdateTokenErrors, type ApiTokenControllerUpdateTokenResponse, type ApiTokenControllerUpdateTokenResponses, type AppControllerGetHelloData, type AppControllerGetHelloResponses, type ClientOptions, type CreateApiTokenRequestDto, type CreateApiTokenResponseDto, type CreateFileRequestDto, type CreateWebhookBody, type CreateWebhookResponse, type DeleteWebhookResponse, type DepositRewardsRequestDto, type DepositRewardsResponseDto, type DistributeRewardsRequestDto, type DistributeRewardsResponseDto, Event, type FlightsControllerCreatePresignedUrlsData, type FlightsControllerCreatePresignedUrlsErrors, type FlightsControllerCreatePresignedUrlsResponses, type FlightsControllerGenerateFlightIdData, type FlightsControllerGenerateFlightIdErrors, type FlightsControllerGenerateFlightIdResponses, type FlightsControllerValidateFlightData, type FlightsControllerValidateFlightErrors, type FlightsControllerValidateFlightResponses, type GetProvenanceCryptoKeyResponse, type GetWebhookResponse, type GetWebhookStatusResponse, type GetWebhooksResponse, type KeysControllerGetProvenanceCryptoKeyData, type KeysControllerGetProvenanceCryptoKeyResponse, type KeysControllerGetProvenanceCryptoKeyResponses, type Options, type RegenerateWebhookSecretResponseDto, type RewardsControllerDepositRewardsData, type RewardsControllerDepositRewardsErrors, type RewardsControllerDepositRewardsResponse, type RewardsControllerDepositRewardsResponses, type RewardsControllerDistributeRewardsData, type RewardsControllerDistributeRewardsErrors, type RewardsControllerDistributeRewardsResponse, type RewardsControllerDistributeRewardsResponses, type SchemaControllerGetEventSchemaData, type SchemaControllerGetEventSchemaResponses, type TestWebhookResponse, type UpdateApiTokenRequestDto, type UpdateApiTokenResponseDto, type UpdateWebhookBody, type UpdateWebhookResponse, type ValidateFlightDto, type WebhooksControllerCreateData, type WebhooksControllerCreateErrors, type WebhooksControllerCreateResponse, type WebhooksControllerCreateResponses, type WebhooksControllerDeleteData, type WebhooksControllerDeleteErrors, type WebhooksControllerDeleteResponse, type WebhooksControllerDeleteResponses, type WebhooksControllerGetData, type WebhooksControllerGetErrors, type WebhooksControllerGetManyData, type WebhooksControllerGetManyErrors, type WebhooksControllerGetManyResponse, type WebhooksControllerGetManyResponses, type WebhooksControllerGetResponse, type WebhooksControllerGetResponses, type WebhooksControllerGetStatusData, type WebhooksControllerGetStatusErrors, type WebhooksControllerGetStatusResponse, type WebhooksControllerGetStatusResponses, type WebhooksControllerRegenerateSecretData, type WebhooksControllerRegenerateSecretErrors, type WebhooksControllerRegenerateSecretResponse, type WebhooksControllerRegenerateSecretResponses, type WebhooksControllerTestData, type WebhooksControllerTestErrors, type WebhooksControllerTestResponse, type WebhooksControllerTestResponses, type WebhooksControllerUpdateData, type WebhooksControllerUpdateErrors, type WebhooksControllerUpdateResponse, type WebhooksControllerUpdateResponses, apiTokenControllerCreateToken, apiTokenControllerDeleteToken, apiTokenControllerGetToken, apiTokenControllerUpdateToken, appControllerGetHello, flightsControllerCreatePresignedUrls, flightsControllerGenerateFlightId, flightsControllerValidateFlight, keysControllerGetProvenanceCryptoKey, parseWebhookEvent, rewardsControllerDepositRewards, rewardsControllerDistributeRewards, schemaControllerGetEventSchema, webhooksControllerCreate, webhooksControllerDelete, webhooksControllerGet, webhooksControllerGetMany, webhooksControllerGetStatus, webhooksControllerRegenerateSecret, webhooksControllerTest, webhooksControllerUpdate };
|