@omirion/orbit-sdk 0.1.1 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +29 -19
- package/dist/index.cjs +235 -74
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +176 -103
- package/dist/index.d.ts +176 -103
- package/dist/index.js +235 -75
- package/dist/index.js.map +1 -1
- package/examples/device-rpc-flow/README.md +43 -0
- package/examples/device-rpc-flow/index.tsx +502 -0
- package/examples/device-rpc-flow/package.json +23 -0
- package/examples/device-rpc-flow/tsconfig.json +14 -0
- package/examples/webhook-listener/README.md +41 -0
- package/examples/webhook-listener/index.ts +110 -0
- package/examples/webhook-listener/package.json +19 -0
- package/examples/webhook-listener/tsconfig.json +13 -0
- package/package.json +2 -1
package/dist/index.d.cts
CHANGED
|
@@ -108,7 +108,7 @@ type DeviceType = {
|
|
|
108
108
|
} | null;
|
|
109
109
|
commandManifest: CommandManifest | null;
|
|
110
110
|
/**
|
|
111
|
-
* Which USB peripherals a device of this type may export over USB/IP. Declaring one grants nothing on its own
|
|
111
|
+
* Which USB peripherals a device of this type may export over USB/IP. Declaring one grants nothing on its own, attaching still requires `api:usb:attach`.
|
|
112
112
|
*/
|
|
113
113
|
usbManifest: {
|
|
114
114
|
[key: string]: unknown;
|
|
@@ -123,7 +123,7 @@ type DeviceType = {
|
|
|
123
123
|
updatedAt: string;
|
|
124
124
|
};
|
|
125
125
|
/**
|
|
126
|
-
* Compact device type for list responses
|
|
126
|
+
* Compact device type for list responses. It carries manifest **counts** instead of the manifests, so a page stays small. Read one type for the full contract.
|
|
127
127
|
*/
|
|
128
128
|
type DeviceTypeListItem = {
|
|
129
129
|
id: string;
|
|
@@ -176,7 +176,7 @@ type DeviceTypeCreateRequest = {
|
|
|
176
176
|
dispatchProfile?: string;
|
|
177
177
|
};
|
|
178
178
|
/**
|
|
179
|
-
* Partial update
|
|
179
|
+
* Partial update, only the fields sent change. `slug` is absent by design, being the identifier. A manifest sent here replaces the stored one wholesale.
|
|
180
180
|
*/
|
|
181
181
|
type DeviceTypeUpdateRequest = {
|
|
182
182
|
name?: string;
|
|
@@ -198,7 +198,7 @@ type DeviceTypeUpdateRequest = {
|
|
|
198
198
|
dispatchProfile?: string;
|
|
199
199
|
};
|
|
200
200
|
/**
|
|
201
|
-
* A newly minted provisioning (app) token. `token` is the plaintext value, returned exactly once
|
|
201
|
+
* A newly minted provisioning (app) token. `token` is the plaintext value, returned exactly once. The server keeps only its sha256, so a lost token can be replaced but never recovered.
|
|
202
202
|
*/
|
|
203
203
|
type ProjectAppToken = {
|
|
204
204
|
project: Project;
|
|
@@ -327,7 +327,7 @@ type AdmissionAcceptRequest = {
|
|
|
327
327
|
/**
|
|
328
328
|
* The reviewed admission and the device it provisioned.
|
|
329
329
|
*/
|
|
330
|
-
type
|
|
330
|
+
type AdmissionAcceptance = {
|
|
331
331
|
admission: Admission;
|
|
332
332
|
device: Device;
|
|
333
333
|
};
|
|
@@ -340,12 +340,6 @@ type TelemetrySample = {
|
|
|
340
340
|
};
|
|
341
341
|
recordedAt: string;
|
|
342
342
|
};
|
|
343
|
-
/**
|
|
344
|
-
* Time-ordered (ascending) telemetry samples for a window.
|
|
345
|
-
*/
|
|
346
|
-
type TelemetryHistory = {
|
|
347
|
-
data: Array<TelemetrySample>;
|
|
348
|
-
};
|
|
349
343
|
/**
|
|
350
344
|
* Definition of a single metric a device type can report.
|
|
351
345
|
*/
|
|
@@ -415,9 +409,6 @@ type FirmwareBundleListPage = {
|
|
|
415
409
|
data: Array<FirmwareBundle>;
|
|
416
410
|
meta: PageMeta;
|
|
417
411
|
};
|
|
418
|
-
type FirmwareUploadResponse = {
|
|
419
|
-
bundle: FirmwareBundle;
|
|
420
|
-
};
|
|
421
412
|
/**
|
|
422
413
|
* A firmware rollout to a single device. `status` walks `pending → downloading → installing → succeeded` (or `failed` / `canceled` / `rolled_back`); `phase`, `progressPercent`, `message` and `error` reflect the latest agent report.
|
|
423
414
|
*/
|
|
@@ -459,7 +450,7 @@ type FirmwareDeploymentTriggerRequest = {
|
|
|
459
450
|
deviceIds: Array<string>;
|
|
460
451
|
};
|
|
461
452
|
/**
|
|
462
|
-
* Cancellation intent. The body is optional
|
|
453
|
+
* Cancellation intent. The body is optional. With no `force`, only a `pending` deployment cancels.
|
|
463
454
|
*/
|
|
464
455
|
type FirmwareDeploymentCancelRequest = {
|
|
465
456
|
/**
|
|
@@ -468,7 +459,7 @@ type FirmwareDeploymentCancelRequest = {
|
|
|
468
459
|
force?: boolean;
|
|
469
460
|
};
|
|
470
461
|
/**
|
|
471
|
-
* Rollback intent. The body is optional
|
|
462
|
+
* Rollback intent. The body is optional. Omit `reason` for a generic operator-issued message.
|
|
472
463
|
*/
|
|
473
464
|
type FirmwareDeploymentRollbackRequest = {
|
|
474
465
|
/**
|
|
@@ -476,12 +467,6 @@ type FirmwareDeploymentRollbackRequest = {
|
|
|
476
467
|
*/
|
|
477
468
|
reason?: string;
|
|
478
469
|
};
|
|
479
|
-
/**
|
|
480
|
-
* The deployments created by the trigger, one per targeted device.
|
|
481
|
-
*/
|
|
482
|
-
type FirmwareDeploymentTriggerResponse = {
|
|
483
|
-
deployments: Array<FirmwareDeployment>;
|
|
484
|
-
};
|
|
485
470
|
/**
|
|
486
471
|
* Outcome of a dispatch. `queued` says which of the two it is, and is the field to branch on: `false` (HTTP 200, interactive device) means the device ran the command and the result fields below are populated; `true` (HTTP 202, queued device) means it was accepted for store-and-forward delivery and no result exists yet, so poll `GET /api/v1/devices/{id}/commands/{invocationId}` until `status` is terminal.
|
|
487
472
|
*/
|
|
@@ -564,7 +549,7 @@ type CommandRequest = {
|
|
|
564
549
|
*/
|
|
565
550
|
name: string;
|
|
566
551
|
/**
|
|
567
|
-
* Typed key/value arguments (max 64 entries). Values may be strings, numbers, or booleans. Keep payloads small
|
|
552
|
+
* Typed key/value arguments (max 64 entries). Values may be strings, numbers, or booleans. Keep payloads small (MCU-class modems cap MQTT publishes around 4 KiB).
|
|
568
553
|
*/
|
|
569
554
|
args?: {
|
|
570
555
|
[key: string]: string | number | boolean;
|
|
@@ -628,13 +613,6 @@ type FirmwareUploadRequest = {
|
|
|
628
613
|
*/
|
|
629
614
|
description?: string | null;
|
|
630
615
|
};
|
|
631
|
-
/**
|
|
632
|
-
* Conflict body for a duplicate bundle (distinct from the standard error envelope).
|
|
633
|
-
*/
|
|
634
|
-
type FirmwareConflictResponse = {
|
|
635
|
-
error: string;
|
|
636
|
-
message: string;
|
|
637
|
-
};
|
|
638
616
|
/**
|
|
639
617
|
* Event types deliverable to a webhook subscription.
|
|
640
618
|
*/
|
|
@@ -694,7 +672,7 @@ type WebhookCreateRequest = {
|
|
|
694
672
|
eventTypes: Array<WebhookEventType>;
|
|
695
673
|
retryPolicy?: WebhookRetryPolicy;
|
|
696
674
|
};
|
|
697
|
-
type
|
|
675
|
+
type WebhookCreated = WebhookSubscription & {
|
|
698
676
|
/**
|
|
699
677
|
* HMAC-SHA256 signing secret (`whsec_…`). Shown only here.
|
|
700
678
|
*/
|
|
@@ -747,6 +725,78 @@ type WebhookDeliveryPage = {
|
|
|
747
725
|
data: Array<WebhookDelivery>;
|
|
748
726
|
meta: PageMeta;
|
|
749
727
|
};
|
|
728
|
+
type IdentityResponse = {
|
|
729
|
+
data: Identity;
|
|
730
|
+
};
|
|
731
|
+
type ProjectResponse = {
|
|
732
|
+
data: Project;
|
|
733
|
+
};
|
|
734
|
+
type ProjectAppTokenResponse = {
|
|
735
|
+
data: ProjectAppToken;
|
|
736
|
+
};
|
|
737
|
+
type DeviceTypeResponse = {
|
|
738
|
+
data: DeviceType;
|
|
739
|
+
};
|
|
740
|
+
type DeviceResponse = {
|
|
741
|
+
data: Device;
|
|
742
|
+
};
|
|
743
|
+
type DeviceTokenResetResponse = {
|
|
744
|
+
data: DeviceTokenReset;
|
|
745
|
+
};
|
|
746
|
+
type AdmissionResponse = {
|
|
747
|
+
data: Admission;
|
|
748
|
+
};
|
|
749
|
+
type AdmissionAcceptanceResponse = {
|
|
750
|
+
data: AdmissionAcceptance;
|
|
751
|
+
};
|
|
752
|
+
/**
|
|
753
|
+
* The most recent sample of a device, `null` when it has never reported.
|
|
754
|
+
*/
|
|
755
|
+
type LatestTelemetryResponse = {
|
|
756
|
+
data: TelemetrySample | null;
|
|
757
|
+
};
|
|
758
|
+
/**
|
|
759
|
+
* Time-ordered (ascending) telemetry samples for a window.
|
|
760
|
+
*/
|
|
761
|
+
type TelemetryHistoryResponse = {
|
|
762
|
+
data: Array<TelemetrySample>;
|
|
763
|
+
};
|
|
764
|
+
/**
|
|
765
|
+
* The metric manifest of a device's type, `null` when it declares none.
|
|
766
|
+
*/
|
|
767
|
+
type TelemetryManifestResponse = {
|
|
768
|
+
data: TelemetryManifest | null;
|
|
769
|
+
};
|
|
770
|
+
type FirmwareBundleResponse = {
|
|
771
|
+
data: FirmwareBundle;
|
|
772
|
+
};
|
|
773
|
+
type FirmwareDeploymentResponse = {
|
|
774
|
+
data: FirmwareDeployment;
|
|
775
|
+
};
|
|
776
|
+
/**
|
|
777
|
+
* The deployments created by a trigger, one per targeted device.
|
|
778
|
+
*/
|
|
779
|
+
type FirmwareDeploymentsResponse = {
|
|
780
|
+
data: Array<FirmwareDeployment>;
|
|
781
|
+
};
|
|
782
|
+
type CommandResultResponse = {
|
|
783
|
+
data: CommandResult;
|
|
784
|
+
};
|
|
785
|
+
type CommandInvocationResponse = {
|
|
786
|
+
data: CommandInvocation;
|
|
787
|
+
};
|
|
788
|
+
/**
|
|
789
|
+
* The command manifest of a device type, `null` when none is declared.
|
|
790
|
+
*/
|
|
791
|
+
type CommandManifestResponse = {
|
|
792
|
+
data: CommandManifest | null;
|
|
793
|
+
};
|
|
794
|
+
type WebhookSubscriptionResponse = {
|
|
795
|
+
data: WebhookSubscription;
|
|
796
|
+
};
|
|
797
|
+
type WebhookCreatedResponse = {
|
|
798
|
+
data: WebhookCreated;
|
|
799
|
+
};
|
|
750
800
|
type GetIdentityData = {
|
|
751
801
|
body?: never;
|
|
752
802
|
path?: never;
|
|
@@ -764,7 +814,7 @@ type GetIdentityResponses = {
|
|
|
764
814
|
/**
|
|
765
815
|
* The authenticated identity.
|
|
766
816
|
*/
|
|
767
|
-
200:
|
|
817
|
+
200: IdentityResponse;
|
|
768
818
|
};
|
|
769
819
|
type GetIdentityResponse = GetIdentityResponses[keyof GetIdentityResponses];
|
|
770
820
|
type ListProjectsData = {
|
|
@@ -772,7 +822,7 @@ type ListProjectsData = {
|
|
|
772
822
|
path?: never;
|
|
773
823
|
query?: {
|
|
774
824
|
/**
|
|
775
|
-
* Restrict to one organisation. Narrows the reachable set, never widens it
|
|
825
|
+
* Restrict to one organisation. Narrows the reachable set, never widens it. An organisation the caller cannot reach yields an empty page rather than a 403.
|
|
776
826
|
*/
|
|
777
827
|
organizationId?: string;
|
|
778
828
|
cursor?: string;
|
|
@@ -825,7 +875,7 @@ type GetProjectResponses = {
|
|
|
825
875
|
/**
|
|
826
876
|
* The project.
|
|
827
877
|
*/
|
|
828
|
-
200:
|
|
878
|
+
200: ProjectResponse;
|
|
829
879
|
};
|
|
830
880
|
type GetProjectResponse = GetProjectResponses[keyof GetProjectResponses];
|
|
831
881
|
type CreateProjectAppTokenData = {
|
|
@@ -859,7 +909,7 @@ type CreateProjectAppTokenResponses = {
|
|
|
859
909
|
/**
|
|
860
910
|
* The project and its new plaintext token.
|
|
861
911
|
*/
|
|
862
|
-
201:
|
|
912
|
+
201: ProjectAppTokenResponse;
|
|
863
913
|
};
|
|
864
914
|
type CreateProjectAppTokenResponse = CreateProjectAppTokenResponses[keyof CreateProjectAppTokenResponses];
|
|
865
915
|
type RotateProjectAppTokenData = {
|
|
@@ -889,7 +939,7 @@ type RotateProjectAppTokenResponses = {
|
|
|
889
939
|
/**
|
|
890
940
|
* The project and its new plaintext token.
|
|
891
941
|
*/
|
|
892
|
-
200:
|
|
942
|
+
200: ProjectAppTokenResponse;
|
|
893
943
|
};
|
|
894
944
|
type RotateProjectAppTokenResponse = RotateProjectAppTokenResponses[keyof RotateProjectAppTokenResponses];
|
|
895
945
|
type ListDevicesData = {
|
|
@@ -988,7 +1038,7 @@ type GetDeviceResponses = {
|
|
|
988
1038
|
/**
|
|
989
1039
|
* The device.
|
|
990
1040
|
*/
|
|
991
|
-
200:
|
|
1041
|
+
200: DeviceResponse;
|
|
992
1042
|
};
|
|
993
1043
|
type GetDeviceResponse = GetDeviceResponses[keyof GetDeviceResponses];
|
|
994
1044
|
type ResetDeviceTokenData = {
|
|
@@ -1018,7 +1068,7 @@ type ResetDeviceTokenResponses = {
|
|
|
1018
1068
|
/**
|
|
1019
1069
|
* The rotated device token.
|
|
1020
1070
|
*/
|
|
1021
|
-
200:
|
|
1071
|
+
200: DeviceTokenResetResponse;
|
|
1022
1072
|
};
|
|
1023
1073
|
type ResetDeviceTokenResponse = ResetDeviceTokenResponses[keyof ResetDeviceTokenResponses];
|
|
1024
1074
|
type GetLatestTelemetryData = {
|
|
@@ -1046,9 +1096,9 @@ type GetLatestTelemetryErrors = {
|
|
|
1046
1096
|
type GetLatestTelemetryError = GetLatestTelemetryErrors[keyof GetLatestTelemetryErrors];
|
|
1047
1097
|
type GetLatestTelemetryResponses = {
|
|
1048
1098
|
/**
|
|
1049
|
-
*
|
|
1099
|
+
* The latest telemetry sample under `data`, `null` if unavailable.
|
|
1050
1100
|
*/
|
|
1051
|
-
200:
|
|
1101
|
+
200: LatestTelemetryResponse;
|
|
1052
1102
|
};
|
|
1053
1103
|
type GetLatestTelemetryResponse = GetLatestTelemetryResponses[keyof GetLatestTelemetryResponses];
|
|
1054
1104
|
type GetTelemetryHistoryData = {
|
|
@@ -1080,7 +1130,7 @@ type GetTelemetryHistoryResponses = {
|
|
|
1080
1130
|
/**
|
|
1081
1131
|
* Time-ordered (asc) telemetry samples.
|
|
1082
1132
|
*/
|
|
1083
|
-
200:
|
|
1133
|
+
200: TelemetryHistoryResponse;
|
|
1084
1134
|
};
|
|
1085
1135
|
type GetTelemetryHistoryResponse = GetTelemetryHistoryResponses[keyof GetTelemetryHistoryResponses];
|
|
1086
1136
|
type GetTelemetryManifestData = {
|
|
@@ -1108,9 +1158,9 @@ type GetTelemetryManifestErrors = {
|
|
|
1108
1158
|
type GetTelemetryManifestError = GetTelemetryManifestErrors[keyof GetTelemetryManifestErrors];
|
|
1109
1159
|
type GetTelemetryManifestResponses = {
|
|
1110
1160
|
/**
|
|
1111
|
-
* The device type's manifest
|
|
1161
|
+
* The device type's manifest under `data`, `null` when none is declared.
|
|
1112
1162
|
*/
|
|
1113
|
-
200:
|
|
1163
|
+
200: TelemetryManifestResponse;
|
|
1114
1164
|
};
|
|
1115
1165
|
type GetTelemetryManifestResponse = GetTelemetryManifestResponses[keyof GetTelemetryManifestResponses];
|
|
1116
1166
|
type ListAdmissionsData = {
|
|
@@ -1176,7 +1226,7 @@ type GetAdmissionResponses = {
|
|
|
1176
1226
|
/**
|
|
1177
1227
|
* The admission request.
|
|
1178
1228
|
*/
|
|
1179
|
-
200:
|
|
1229
|
+
200: AdmissionResponse;
|
|
1180
1230
|
};
|
|
1181
1231
|
type GetAdmissionResponse = GetAdmissionResponses[keyof GetAdmissionResponses];
|
|
1182
1232
|
type AcceptAdmissionData = {
|
|
@@ -1214,7 +1264,7 @@ type AcceptAdmissionResponses = {
|
|
|
1214
1264
|
/**
|
|
1215
1265
|
* The reviewed admission and the newly provisioned device.
|
|
1216
1266
|
*/
|
|
1217
|
-
200:
|
|
1267
|
+
200: AdmissionAcceptanceResponse;
|
|
1218
1268
|
};
|
|
1219
1269
|
type AcceptAdmissionResponse = AcceptAdmissionResponses[keyof AcceptAdmissionResponses];
|
|
1220
1270
|
type RejectAdmissionData = {
|
|
@@ -1248,7 +1298,7 @@ type RejectAdmissionResponses = {
|
|
|
1248
1298
|
/**
|
|
1249
1299
|
* The rejected admission.
|
|
1250
1300
|
*/
|
|
1251
|
-
200:
|
|
1301
|
+
200: AdmissionResponse;
|
|
1252
1302
|
};
|
|
1253
1303
|
type RejectAdmissionResponse = RejectAdmissionResponses[keyof RejectAdmissionResponses];
|
|
1254
1304
|
type DismissAdmissionData = {
|
|
@@ -1282,7 +1332,7 @@ type DismissAdmissionResponses = {
|
|
|
1282
1332
|
/**
|
|
1283
1333
|
* The dismissed admission.
|
|
1284
1334
|
*/
|
|
1285
|
-
200:
|
|
1335
|
+
200: AdmissionResponse;
|
|
1286
1336
|
};
|
|
1287
1337
|
type DismissAdmissionResponse = DismissAdmissionResponses[keyof DismissAdmissionResponses];
|
|
1288
1338
|
type UploadFirmwareData = {
|
|
@@ -1305,9 +1355,9 @@ type UploadFirmwareErrors = {
|
|
|
1305
1355
|
*/
|
|
1306
1356
|
404: ErrorResponse;
|
|
1307
1357
|
/**
|
|
1308
|
-
* A bundle with the same projectId+version+compatible already exists.
|
|
1358
|
+
* A bundle with the same projectId+version+compatible already exists (`code: E_BUNDLE_ALREADY_EXISTS`).
|
|
1309
1359
|
*/
|
|
1310
|
-
409:
|
|
1360
|
+
409: ErrorResponse;
|
|
1311
1361
|
/**
|
|
1312
1362
|
* Bundle binary unreadable: a RAUC bundle with no `manifest.raucm`, or an MCUboot image with a bad header magic.
|
|
1313
1363
|
*/
|
|
@@ -1318,7 +1368,7 @@ type UploadFirmwareResponses = {
|
|
|
1318
1368
|
/**
|
|
1319
1369
|
* Bundle accepted and stored.
|
|
1320
1370
|
*/
|
|
1321
|
-
200:
|
|
1371
|
+
200: FirmwareBundleResponse;
|
|
1322
1372
|
};
|
|
1323
1373
|
type UploadFirmwareResponse = UploadFirmwareResponses[keyof UploadFirmwareResponses];
|
|
1324
1374
|
type ListFirmwareBundlesData = {
|
|
@@ -1420,7 +1470,7 @@ type GetFirmwareBundleResponses = {
|
|
|
1420
1470
|
/**
|
|
1421
1471
|
* The bundle.
|
|
1422
1472
|
*/
|
|
1423
|
-
200:
|
|
1473
|
+
200: FirmwareBundleResponse;
|
|
1424
1474
|
};
|
|
1425
1475
|
type GetFirmwareBundleResponse = GetFirmwareBundleResponses[keyof GetFirmwareBundleResponses];
|
|
1426
1476
|
type ListFirmwareDeploymentsData = {
|
|
@@ -1486,7 +1536,7 @@ type TriggerFirmwareDeploymentResponses = {
|
|
|
1486
1536
|
/**
|
|
1487
1537
|
* The created deployments (one per device).
|
|
1488
1538
|
*/
|
|
1489
|
-
200:
|
|
1539
|
+
200: FirmwareDeploymentsResponse;
|
|
1490
1540
|
};
|
|
1491
1541
|
type TriggerFirmwareDeploymentResponse = TriggerFirmwareDeploymentResponses[keyof TriggerFirmwareDeploymentResponses];
|
|
1492
1542
|
type GetFirmwareDeploymentData = {
|
|
@@ -1516,7 +1566,7 @@ type GetFirmwareDeploymentResponses = {
|
|
|
1516
1566
|
/**
|
|
1517
1567
|
* The deployment.
|
|
1518
1568
|
*/
|
|
1519
|
-
200:
|
|
1569
|
+
200: FirmwareDeploymentResponse;
|
|
1520
1570
|
};
|
|
1521
1571
|
type GetFirmwareDeploymentResponse = GetFirmwareDeploymentResponses[keyof GetFirmwareDeploymentResponses];
|
|
1522
1572
|
type CancelFirmwareDeploymentData = {
|
|
@@ -1550,7 +1600,7 @@ type CancelFirmwareDeploymentResponses = {
|
|
|
1550
1600
|
/**
|
|
1551
1601
|
* The canceled deployment.
|
|
1552
1602
|
*/
|
|
1553
|
-
200:
|
|
1603
|
+
200: FirmwareDeploymentResponse;
|
|
1554
1604
|
};
|
|
1555
1605
|
type CancelFirmwareDeploymentResponse = CancelFirmwareDeploymentResponses[keyof CancelFirmwareDeploymentResponses];
|
|
1556
1606
|
type RollbackFirmwareDeploymentData = {
|
|
@@ -1588,7 +1638,7 @@ type RollbackFirmwareDeploymentResponses = {
|
|
|
1588
1638
|
/**
|
|
1589
1639
|
* The new synthetic rollback deployment.
|
|
1590
1640
|
*/
|
|
1591
|
-
200:
|
|
1641
|
+
200: FirmwareDeploymentResponse;
|
|
1592
1642
|
};
|
|
1593
1643
|
type RollbackFirmwareDeploymentResponse = RollbackFirmwareDeploymentResponses[keyof RollbackFirmwareDeploymentResponses];
|
|
1594
1644
|
type ExecDeviceCommandData = {
|
|
@@ -1626,11 +1676,11 @@ type ExecDeviceCommandResponses = {
|
|
|
1626
1676
|
/**
|
|
1627
1677
|
* Interactive device: command completed; returns status + captured output.
|
|
1628
1678
|
*/
|
|
1629
|
-
200:
|
|
1679
|
+
200: CommandResultResponse;
|
|
1630
1680
|
/**
|
|
1631
1681
|
* Queued device: command accepted for store-and-forward delivery; returns the invocation id and status. Poll `GET /api/v1/devices/{id}/commands/{invocationId}` for the eventual result.
|
|
1632
1682
|
*/
|
|
1633
|
-
202:
|
|
1683
|
+
202: CommandResultResponse;
|
|
1634
1684
|
};
|
|
1635
1685
|
type ExecDeviceCommandResponse = ExecDeviceCommandResponses[keyof ExecDeviceCommandResponses];
|
|
1636
1686
|
type GetDeviceCommandInvocationData = {
|
|
@@ -1661,7 +1711,7 @@ type GetDeviceCommandInvocationResponses = {
|
|
|
1661
1711
|
/**
|
|
1662
1712
|
* The invocation record: lifecycle status plus the result when terminal.
|
|
1663
1713
|
*/
|
|
1664
|
-
200:
|
|
1714
|
+
200: CommandInvocationResponse;
|
|
1665
1715
|
};
|
|
1666
1716
|
type GetDeviceCommandInvocationResponse = GetDeviceCommandInvocationResponses[keyof GetDeviceCommandInvocationResponses];
|
|
1667
1717
|
type GetDeviceCommandsData = {
|
|
@@ -1689,9 +1739,9 @@ type GetDeviceCommandsErrors = {
|
|
|
1689
1739
|
type GetDeviceCommandsError = GetDeviceCommandsErrors[keyof GetDeviceCommandsErrors];
|
|
1690
1740
|
type GetDeviceCommandsResponses = {
|
|
1691
1741
|
/**
|
|
1692
|
-
* The device type's command manifest
|
|
1742
|
+
* The device type's command manifest under `data`, `null` when none is declared.
|
|
1693
1743
|
*/
|
|
1694
|
-
200:
|
|
1744
|
+
200: CommandManifestResponse;
|
|
1695
1745
|
};
|
|
1696
1746
|
type GetDeviceCommandsResponse = GetDeviceCommandsResponses[keyof GetDeviceCommandsResponses];
|
|
1697
1747
|
type DeleteCommandManifestData = {
|
|
@@ -1750,9 +1800,9 @@ type GetCommandManifestErrors = {
|
|
|
1750
1800
|
type GetCommandManifestError = GetCommandManifestErrors[keyof GetCommandManifestErrors];
|
|
1751
1801
|
type GetCommandManifestResponses = {
|
|
1752
1802
|
/**
|
|
1753
|
-
* The command manifest
|
|
1803
|
+
* The command manifest under `data`, `null` when none is declared.
|
|
1754
1804
|
*/
|
|
1755
|
-
200:
|
|
1805
|
+
200: CommandManifestResponse;
|
|
1756
1806
|
};
|
|
1757
1807
|
type GetCommandManifestResponse = GetCommandManifestResponses[keyof GetCommandManifestResponses];
|
|
1758
1808
|
type UpdateCommandManifestData = {
|
|
@@ -1785,9 +1835,9 @@ type UpdateCommandManifestErrors = {
|
|
|
1785
1835
|
type UpdateCommandManifestError = UpdateCommandManifestErrors[keyof UpdateCommandManifestErrors];
|
|
1786
1836
|
type UpdateCommandManifestResponses = {
|
|
1787
1837
|
/**
|
|
1788
|
-
* The stored command manifest
|
|
1838
|
+
* The stored command manifest under `data`.
|
|
1789
1839
|
*/
|
|
1790
|
-
200:
|
|
1840
|
+
200: CommandManifestResponse;
|
|
1791
1841
|
};
|
|
1792
1842
|
type UpdateCommandManifestResponse = UpdateCommandManifestResponses[keyof UpdateCommandManifestResponses];
|
|
1793
1843
|
type ListDeviceTypesData = {
|
|
@@ -1862,7 +1912,7 @@ type CreateDeviceTypeResponses = {
|
|
|
1862
1912
|
/**
|
|
1863
1913
|
* The created device type.
|
|
1864
1914
|
*/
|
|
1865
|
-
201:
|
|
1915
|
+
201: DeviceTypeResponse;
|
|
1866
1916
|
};
|
|
1867
1917
|
type CreateDeviceTypeResponse = CreateDeviceTypeResponses[keyof CreateDeviceTypeResponses];
|
|
1868
1918
|
type DeleteDeviceTypeData = {
|
|
@@ -1927,7 +1977,7 @@ type GetDeviceTypeResponses = {
|
|
|
1927
1977
|
/**
|
|
1928
1978
|
* The device type.
|
|
1929
1979
|
*/
|
|
1930
|
-
200:
|
|
1980
|
+
200: DeviceTypeResponse;
|
|
1931
1981
|
};
|
|
1932
1982
|
type GetDeviceTypeResponse = GetDeviceTypeResponses[keyof GetDeviceTypeResponses];
|
|
1933
1983
|
type UpdateDeviceTypeData = {
|
|
@@ -1962,7 +2012,7 @@ type UpdateDeviceTypeResponses = {
|
|
|
1962
2012
|
/**
|
|
1963
2013
|
* The updated device type.
|
|
1964
2014
|
*/
|
|
1965
|
-
200:
|
|
2015
|
+
200: DeviceTypeResponse;
|
|
1966
2016
|
};
|
|
1967
2017
|
type UpdateDeviceTypeResponse = UpdateDeviceTypeResponses[keyof UpdateDeviceTypeResponses];
|
|
1968
2018
|
type ListWebhooksData = {
|
|
@@ -2018,7 +2068,7 @@ type CreateWebhookResponses = {
|
|
|
2018
2068
|
/**
|
|
2019
2069
|
* The created subscription, with the one-time signing secret.
|
|
2020
2070
|
*/
|
|
2021
|
-
201:
|
|
2071
|
+
201: WebhookCreatedResponse;
|
|
2022
2072
|
};
|
|
2023
2073
|
type CreateWebhookResponse = CreateWebhookResponses[keyof CreateWebhookResponses];
|
|
2024
2074
|
type DeleteWebhookData = {
|
|
@@ -2077,7 +2127,7 @@ type GetWebhookResponses = {
|
|
|
2077
2127
|
/**
|
|
2078
2128
|
* The subscription.
|
|
2079
2129
|
*/
|
|
2080
|
-
200:
|
|
2130
|
+
200: WebhookSubscriptionResponse;
|
|
2081
2131
|
};
|
|
2082
2132
|
type GetWebhookResponse = GetWebhookResponses[keyof GetWebhookResponses];
|
|
2083
2133
|
type UpdateWebhookData = {
|
|
@@ -2111,7 +2161,7 @@ type UpdateWebhookResponses = {
|
|
|
2111
2161
|
/**
|
|
2112
2162
|
* The updated subscription.
|
|
2113
2163
|
*/
|
|
2114
|
-
200:
|
|
2164
|
+
200: WebhookSubscriptionResponse;
|
|
2115
2165
|
};
|
|
2116
2166
|
type UpdateWebhookResponse = UpdateWebhookResponses[keyof UpdateWebhookResponses];
|
|
2117
2167
|
type ListWebhookDeliveriesData = {
|
|
@@ -2479,13 +2529,13 @@ type Options$1<TData extends TDataShape = TDataShape, ThrowOnError extends boole
|
|
|
2479
2529
|
* USB/IP passthrough, the two HTTP calls that precede the tunnel.
|
|
2480
2530
|
*
|
|
2481
2531
|
* Hand-written, unlike every other operation here: these endpoints are
|
|
2482
|
-
* deliberately absent from the published spec (`api/v1
|
|
2532
|
+
* deliberately absent from the published spec (`docs/architecture/api/v1-design.md` scopes the
|
|
2483
2533
|
* public API to backend integration), so there is nothing to generate from.
|
|
2484
2534
|
* They stay in the SDK anyway to keep bearer auth, retries and typed errors in
|
|
2485
2535
|
* one client.
|
|
2486
2536
|
*
|
|
2487
|
-
* The shapes below must therefore be kept in step with the server by hand
|
|
2488
|
-
* `app/controllers/usbip_controller.ts` and `#types/usb_manifest`.
|
|
2537
|
+
* The shapes below must therefore be kept in step with the server by hand,
|
|
2538
|
+
* against `app/controllers/usbip_controller.ts` and `#types/usb_manifest`.
|
|
2489
2539
|
*/
|
|
2490
2540
|
|
|
2491
2541
|
/** One VID:PID a peripheral can present. Four lowercase hex digits each. */
|
|
@@ -2515,8 +2565,9 @@ interface UsbExportDefinition {
|
|
|
2515
2565
|
serials?: string[];
|
|
2516
2566
|
description?: string;
|
|
2517
2567
|
}
|
|
2568
|
+
/** The wire envelope of `GET /devices/:id/usb/exportable`, the list under `data`. */
|
|
2518
2569
|
interface UsbExportList {
|
|
2519
|
-
|
|
2570
|
+
data: UsbExportDefinition[];
|
|
2520
2571
|
}
|
|
2521
2572
|
interface UsbTicketRequest {
|
|
2522
2573
|
deviceId: string;
|
|
@@ -2538,7 +2589,7 @@ interface UsbTicketResponse {
|
|
|
2538
2589
|
* Device shell: the one HTTP call that precedes the WebSocket session.
|
|
2539
2590
|
*
|
|
2540
2591
|
* Hand-written for the same reason as `usb.ts`. These endpoints are
|
|
2541
|
-
* deliberately absent from the published spec (`api/v1
|
|
2592
|
+
* deliberately absent from the published spec (`docs/architecture/api/v1-design.md` scopes the
|
|
2542
2593
|
* public API to backend integration), so there is nothing to generate from.
|
|
2543
2594
|
* They stay in the SDK anyway to keep bearer auth, retries and typed errors in
|
|
2544
2595
|
* one client.
|
|
@@ -2791,7 +2842,7 @@ declare class OrbitClient {
|
|
|
2791
2842
|
/** An admission request by id. */
|
|
2792
2843
|
get: (id: string) => Promise<Admission>;
|
|
2793
2844
|
/** Accept a pending admission, provisioning a device (returns admission + device). */
|
|
2794
|
-
accept: (id: string, params: AdmissionAcceptRequest) => Promise<
|
|
2845
|
+
accept: (id: string, params: AdmissionAcceptRequest) => Promise<AdmissionAcceptance>;
|
|
2795
2846
|
/** Reject a pending admission permanently. */
|
|
2796
2847
|
reject: (id: string) => Promise<Admission>;
|
|
2797
2848
|
/**
|
|
@@ -2898,7 +2949,7 @@ declare class OrbitClient {
|
|
|
2898
2949
|
/** Every subscription across all pages, fetched lazily. */
|
|
2899
2950
|
iterate: (params?: IterateWebhooksParams) => AsyncGenerator<WebhookSubscription, void, unknown>;
|
|
2900
2951
|
/** Create a subscription. The signing `secret` is only in this response, store it now. */
|
|
2901
|
-
create: (params: WebhookCreateRequest) => Promise<
|
|
2952
|
+
create: (params: WebhookCreateRequest) => Promise<WebhookCreated>;
|
|
2902
2953
|
/** A subscription by id (without its secret). */
|
|
2903
2954
|
get: (id: string) => Promise<WebhookSubscription>;
|
|
2904
2955
|
/** Update the URL, event-type filter and/or enabled flag. */
|
|
@@ -2914,15 +2965,11 @@ declare class OrbitClient {
|
|
|
2914
2965
|
}
|
|
2915
2966
|
|
|
2916
2967
|
/**
|
|
2917
|
-
* Typed errors. The `/api/v1`
|
|
2918
|
-
*
|
|
2919
|
-
* callers can `catch` a specific class
|
|
2920
|
-
*
|
|
2921
|
-
*
|
|
2922
|
-
* - device-RPC (502) `{ errors: [{ code, message }] }` (no `field`)
|
|
2923
|
-
* - firmware (409) `{ error, message }` (e.g. BUNDLE_ALREADY_EXISTS)
|
|
2924
|
-
* - validation (422) `{ errors: [{ message, rule, field }] }`
|
|
2925
|
-
* - bare auth (401) `{ errors: [{ message }] }` (no `code`)
|
|
2968
|
+
* Typed errors. The server renders every `/api/v1` error as the standard
|
|
2969
|
+
* `{ errors: [{ code, message, field }] }` envelope; {@link normalizeError}
|
|
2970
|
+
* maps it into one typed hierarchy so callers can `catch` a specific class
|
|
2971
|
+
* instead of inspecting status codes. The class is chosen by `code` where one
|
|
2972
|
+
* status carries several (409), by status otherwise.
|
|
2926
2973
|
*/
|
|
2927
2974
|
interface OrbitErrorOptions {
|
|
2928
2975
|
status?: number;
|
|
@@ -2979,8 +3026,19 @@ declare class ValidationError extends OrbitError {
|
|
|
2979
3026
|
fieldErrors?: ValidationFieldError[];
|
|
2980
3027
|
});
|
|
2981
3028
|
}
|
|
2982
|
-
/**
|
|
2983
|
-
|
|
3029
|
+
/**
|
|
3030
|
+
* 409, the request conflicts with the resource's current state (cancelling a
|
|
3031
|
+
* deployment already in a terminal state, rolling back a deployment that did
|
|
3032
|
+
* not succeed, deleting a bundle with an in-flight deployment, accepting an
|
|
3033
|
+
* admission that was already reviewed, ...).
|
|
3034
|
+
*/
|
|
3035
|
+
declare class ConflictError extends OrbitError {
|
|
3036
|
+
}
|
|
3037
|
+
/**
|
|
3038
|
+
* 409 `E_BUNDLE_ALREADY_EXISTS`, a firmware bundle with the same
|
|
3039
|
+
* projectId+version+compatible exists.
|
|
3040
|
+
*/
|
|
3041
|
+
declare class BundleExistsError extends ConflictError {
|
|
2984
3042
|
}
|
|
2985
3043
|
/** 502, the device is offline or the command transport failed. */
|
|
2986
3044
|
declare class DeviceRpcError extends OrbitError {
|
|
@@ -3148,7 +3206,7 @@ declare const getProject: <ThrowOnError extends boolean = false>(options: Option
|
|
|
3148
3206
|
*
|
|
3149
3207
|
* Mints the `omr_prj_…` token devices present to enrol into this project. The plaintext value is returned **once, in this response, and is never retrievable again**. The server stores only its sha256. Store it before discarding the response.
|
|
3150
3208
|
*
|
|
3151
|
-
* Refuses with 409 when the project already has one; use the rotate endpoint to replace it. Requires `api:projects:manage`, deliberately separate from `api:projects:read
|
|
3209
|
+
* Refuses with 409 when the project already has one; use the rotate endpoint to replace it. Requires `api:projects:manage`, deliberately separate from `api:projects:read`, because an app token admits new devices and so consumes licensing seats.
|
|
3152
3210
|
*/
|
|
3153
3211
|
declare const createProjectAppToken: <ThrowOnError extends boolean = false>(options: Options<CreateProjectAppTokenData, ThrowOnError>) => RequestResult<CreateProjectAppTokenResponses, CreateProjectAppTokenErrors, ThrowOnError>;
|
|
3154
3212
|
/**
|
|
@@ -3186,7 +3244,7 @@ declare const resetDeviceToken: <ThrowOnError extends boolean = false>(options:
|
|
|
3186
3244
|
/**
|
|
3187
3245
|
* Latest telemetry sample for a device
|
|
3188
3246
|
*
|
|
3189
|
-
* Returns the most recent telemetry sample
|
|
3247
|
+
* Returns the most recent telemetry sample under `data`, `null` if the device has never reported.
|
|
3190
3248
|
*/
|
|
3191
3249
|
declare const getLatestTelemetry: <ThrowOnError extends boolean = false>(options: Options<GetLatestTelemetryData, ThrowOnError>) => RequestResult<GetLatestTelemetryResponses, GetLatestTelemetryErrors, ThrowOnError>;
|
|
3192
3250
|
/**
|
|
@@ -3198,7 +3256,7 @@ declare const getTelemetryHistory: <ThrowOnError extends boolean = false>(option
|
|
|
3198
3256
|
/**
|
|
3199
3257
|
* Metric manifest for a device
|
|
3200
3258
|
*
|
|
3201
|
-
* The metric definitions (label, unit, type, range) of the device's type, i.e. the schema its telemetry samples decode against
|
|
3259
|
+
* The metric definitions (label, unit, type, range) of the device's type, i.e. the schema its telemetry samples decode against, under `data`. `null` when the device type declares no manifest. Requires the `api:telemetry:read` ability.
|
|
3202
3260
|
*/
|
|
3203
3261
|
declare const getTelemetryManifest: <ThrowOnError extends boolean = false>(options: Options<GetTelemetryManifestData, ThrowOnError>) => RequestResult<GetTelemetryManifestResponses, GetTelemetryManifestErrors, ThrowOnError>;
|
|
3204
3262
|
/**
|
|
@@ -3228,7 +3286,7 @@ declare const rejectAdmission: <ThrowOnError extends boolean = false>(options: O
|
|
|
3228
3286
|
/**
|
|
3229
3287
|
* Dismiss an admission request
|
|
3230
3288
|
*
|
|
3231
|
-
* Dismisses a pending admission without provisioning a device and without refusing the unit permanently. Unlike `reject`, this is not a verdict the device has to live with
|
|
3289
|
+
* Dismisses a pending admission without provisioning a device and without refusing the unit permanently. Unlike `reject`, this is not a verdict the device has to live with. The next time the same fingerprint asks to enrol, the request reopens as `pending` and appears in the queue again. Use it for "not now" (an unrecognised unit, a fleet you are not ready to admit); use `reject` when the unit must stay out.
|
|
3232
3290
|
*
|
|
3233
3291
|
* Requires the `api:admissions:manage` ability.
|
|
3234
3292
|
*/
|
|
@@ -3296,7 +3354,7 @@ declare const execDeviceCommand: <ThrowOnError extends boolean = false>(options:
|
|
|
3296
3354
|
/**
|
|
3297
3355
|
* Get a command invocation result
|
|
3298
3356
|
*
|
|
3299
|
-
* Returns the durable record of a single command invocation. Its lifecycle `status` and, once terminal, its result (`success`, `exitCode`, `output`, `error`, `durationMs`). This is the pull counterpart to the `command.result` webhook
|
|
3357
|
+
* Returns the durable record of a single command invocation. Its lifecycle `status` and, once terminal, its result (`success`, `exitCode`, `output`, `error`, `durationMs`). This is the pull counterpart to the `command.result` webhook. Poll it after a queued (202) dispatch to retrieve the eventual outcome, so a missed or unsubscribed webhook delivery never makes a recorded result unrecoverable. The `invocationId` is the value returned by `POST /api/v1/devices/{id}/command`. Requires the `api:command:exec` ability and project scope over the device.
|
|
3300
3358
|
*/
|
|
3301
3359
|
declare const getDeviceCommandInvocation: <ThrowOnError extends boolean = false>(options: Options<GetDeviceCommandInvocationData, ThrowOnError>) => RequestResult<GetDeviceCommandInvocationResponses, GetDeviceCommandInvocationErrors, ThrowOnError>;
|
|
3302
3360
|
/**
|
|
@@ -3320,7 +3378,7 @@ declare const getCommandManifest: <ThrowOnError extends boolean = false>(options
|
|
|
3320
3378
|
/**
|
|
3321
3379
|
* Declare the command manifest for a device type
|
|
3322
3380
|
*
|
|
3323
|
-
* Replaces the whole command manifest document for the device type (it is a single contract, not a collection of rows). Takes effect immediately
|
|
3381
|
+
* Replaces the whole command manifest document for the device type (it is a single contract, not a collection of rows). Takes effect immediately. Subsequent `POST /api/v1/devices/{id}/command` calls are validated against the new manifest. Requires the `api:device-types:manage` ability.
|
|
3324
3382
|
*/
|
|
3325
3383
|
declare const updateCommandManifest: <ThrowOnError extends boolean = false>(options: Options<UpdateCommandManifestData, ThrowOnError>) => RequestResult<UpdateCommandManifestResponses, UpdateCommandManifestErrors, ThrowOnError>;
|
|
3326
3384
|
/**
|
|
@@ -3356,7 +3414,7 @@ declare const getDeviceType: <ThrowOnError extends boolean = false>(options: Opt
|
|
|
3356
3414
|
/**
|
|
3357
3415
|
* Update a device type
|
|
3358
3416
|
*
|
|
3359
|
-
* Partial update
|
|
3417
|
+
* Partial update. Every field is optional and only the ones sent change. The slug is the identifier and cannot be changed; create a new type instead. Sending a manifest replaces it wholesale rather than merging into it.
|
|
3360
3418
|
*
|
|
3361
3419
|
* Requires `api:device-types:manage`.
|
|
3362
3420
|
*/
|
|
@@ -3405,8 +3463,10 @@ type index_AcceptAdmissionResponse = AcceptAdmissionResponse;
|
|
|
3405
3463
|
type index_AcceptAdmissionResponses = AcceptAdmissionResponses;
|
|
3406
3464
|
type index_Admission = Admission;
|
|
3407
3465
|
type index_AdmissionAcceptRequest = AdmissionAcceptRequest;
|
|
3408
|
-
type
|
|
3466
|
+
type index_AdmissionAcceptance = AdmissionAcceptance;
|
|
3467
|
+
type index_AdmissionAcceptanceResponse = AdmissionAcceptanceResponse;
|
|
3409
3468
|
type index_AdmissionListPage = AdmissionListPage;
|
|
3469
|
+
type index_AdmissionResponse = AdmissionResponse;
|
|
3410
3470
|
type index_CancelFirmwareDeploymentData = CancelFirmwareDeploymentData;
|
|
3411
3471
|
type index_CancelFirmwareDeploymentError = CancelFirmwareDeploymentError;
|
|
3412
3472
|
type index_CancelFirmwareDeploymentErrors = CancelFirmwareDeploymentErrors;
|
|
@@ -3415,9 +3475,12 @@ type index_CancelFirmwareDeploymentResponses = CancelFirmwareDeploymentResponses
|
|
|
3415
3475
|
type index_CommandArgDefinition = CommandArgDefinition;
|
|
3416
3476
|
type index_CommandDefinition = CommandDefinition;
|
|
3417
3477
|
type index_CommandInvocation = CommandInvocation;
|
|
3478
|
+
type index_CommandInvocationResponse = CommandInvocationResponse;
|
|
3418
3479
|
type index_CommandManifest = CommandManifest;
|
|
3480
|
+
type index_CommandManifestResponse = CommandManifestResponse;
|
|
3419
3481
|
type index_CommandRequest = CommandRequest;
|
|
3420
3482
|
type index_CommandResult = CommandResult;
|
|
3483
|
+
type index_CommandResultResponse = CommandResultResponse;
|
|
3421
3484
|
type index_CreateDeviceTypeData = CreateDeviceTypeData;
|
|
3422
3485
|
type index_CreateDeviceTypeError = CreateDeviceTypeError;
|
|
3423
3486
|
type index_CreateDeviceTypeErrors = CreateDeviceTypeErrors;
|
|
@@ -3456,11 +3519,14 @@ type index_DeleteWebhookResponses = DeleteWebhookResponses;
|
|
|
3456
3519
|
type index_Device = Device;
|
|
3457
3520
|
type index_DeviceListItem = DeviceListItem;
|
|
3458
3521
|
type index_DeviceListPage = DeviceListPage;
|
|
3522
|
+
type index_DeviceResponse = DeviceResponse;
|
|
3459
3523
|
type index_DeviceTokenReset = DeviceTokenReset;
|
|
3524
|
+
type index_DeviceTokenResetResponse = DeviceTokenResetResponse;
|
|
3460
3525
|
type index_DeviceType = DeviceType;
|
|
3461
3526
|
type index_DeviceTypeCreateRequest = DeviceTypeCreateRequest;
|
|
3462
3527
|
type index_DeviceTypeListItem = DeviceTypeListItem;
|
|
3463
3528
|
type index_DeviceTypeListPage = DeviceTypeListPage;
|
|
3529
|
+
type index_DeviceTypeResponse = DeviceTypeResponse;
|
|
3464
3530
|
type index_DeviceTypeUpdateRequest = DeviceTypeUpdateRequest;
|
|
3465
3531
|
type index_DismissAdmissionData = DismissAdmissionData;
|
|
3466
3532
|
type index_DismissAdmissionError = DismissAdmissionError;
|
|
@@ -3476,15 +3542,15 @@ type index_ExecDeviceCommandResponse = ExecDeviceCommandResponse;
|
|
|
3476
3542
|
type index_ExecDeviceCommandResponses = ExecDeviceCommandResponses;
|
|
3477
3543
|
type index_FirmwareBundle = FirmwareBundle;
|
|
3478
3544
|
type index_FirmwareBundleListPage = FirmwareBundleListPage;
|
|
3479
|
-
type
|
|
3545
|
+
type index_FirmwareBundleResponse = FirmwareBundleResponse;
|
|
3480
3546
|
type index_FirmwareDeployment = FirmwareDeployment;
|
|
3481
3547
|
type index_FirmwareDeploymentCancelRequest = FirmwareDeploymentCancelRequest;
|
|
3482
3548
|
type index_FirmwareDeploymentListPage = FirmwareDeploymentListPage;
|
|
3549
|
+
type index_FirmwareDeploymentResponse = FirmwareDeploymentResponse;
|
|
3483
3550
|
type index_FirmwareDeploymentRollbackRequest = FirmwareDeploymentRollbackRequest;
|
|
3484
3551
|
type index_FirmwareDeploymentTriggerRequest = FirmwareDeploymentTriggerRequest;
|
|
3485
|
-
type
|
|
3552
|
+
type index_FirmwareDeploymentsResponse = FirmwareDeploymentsResponse;
|
|
3486
3553
|
type index_FirmwareUploadRequest = FirmwareUploadRequest;
|
|
3487
|
-
type index_FirmwareUploadResponse = FirmwareUploadResponse;
|
|
3488
3554
|
type index_GetAdmissionData = GetAdmissionData;
|
|
3489
3555
|
type index_GetAdmissionError = GetAdmissionError;
|
|
3490
3556
|
type index_GetAdmissionErrors = GetAdmissionErrors;
|
|
@@ -3557,8 +3623,10 @@ type index_GetWebhookResponse = GetWebhookResponse;
|
|
|
3557
3623
|
type index_GetWebhookResponses = GetWebhookResponses;
|
|
3558
3624
|
type index_Identity = Identity;
|
|
3559
3625
|
type index_IdentityProject = IdentityProject;
|
|
3626
|
+
type index_IdentityResponse = IdentityResponse;
|
|
3560
3627
|
type index_IdentityToken = IdentityToken;
|
|
3561
3628
|
type index_IdentityUser = IdentityUser;
|
|
3629
|
+
type index_LatestTelemetryResponse = LatestTelemetryResponse;
|
|
3562
3630
|
type index_ListAdmissionsData = ListAdmissionsData;
|
|
3563
3631
|
type index_ListAdmissionsError = ListAdmissionsError;
|
|
3564
3632
|
type index_ListAdmissionsErrors = ListAdmissionsErrors;
|
|
@@ -3605,7 +3673,9 @@ type index_Options<TData extends TDataShape = TDataShape, ThrowOnError extends b
|
|
|
3605
3673
|
type index_PageMeta = PageMeta;
|
|
3606
3674
|
type index_Project = Project;
|
|
3607
3675
|
type index_ProjectAppToken = ProjectAppToken;
|
|
3676
|
+
type index_ProjectAppTokenResponse = ProjectAppTokenResponse;
|
|
3608
3677
|
type index_ProjectListPage = ProjectListPage;
|
|
3678
|
+
type index_ProjectResponse = ProjectResponse;
|
|
3609
3679
|
type index_RejectAdmissionData = RejectAdmissionData;
|
|
3610
3680
|
type index_RejectAdmissionError = RejectAdmissionError;
|
|
3611
3681
|
type index_RejectAdmissionErrors = RejectAdmissionErrors;
|
|
@@ -3626,8 +3696,9 @@ type index_RotateProjectAppTokenError = RotateProjectAppTokenError;
|
|
|
3626
3696
|
type index_RotateProjectAppTokenErrors = RotateProjectAppTokenErrors;
|
|
3627
3697
|
type index_RotateProjectAppTokenResponse = RotateProjectAppTokenResponse;
|
|
3628
3698
|
type index_RotateProjectAppTokenResponses = RotateProjectAppTokenResponses;
|
|
3629
|
-
type
|
|
3699
|
+
type index_TelemetryHistoryResponse = TelemetryHistoryResponse;
|
|
3630
3700
|
type index_TelemetryManifest = TelemetryManifest;
|
|
3701
|
+
type index_TelemetryManifestResponse = TelemetryManifestResponse;
|
|
3631
3702
|
type index_TelemetrySample = TelemetrySample;
|
|
3632
3703
|
type index_TriggerFirmwareDeploymentData = TriggerFirmwareDeploymentData;
|
|
3633
3704
|
type index_TriggerFirmwareDeploymentError = TriggerFirmwareDeploymentError;
|
|
@@ -3655,7 +3726,8 @@ type index_UploadFirmwareErrors = UploadFirmwareErrors;
|
|
|
3655
3726
|
type index_UploadFirmwareResponse = UploadFirmwareResponse;
|
|
3656
3727
|
type index_UploadFirmwareResponses = UploadFirmwareResponses;
|
|
3657
3728
|
type index_WebhookCreateRequest = WebhookCreateRequest;
|
|
3658
|
-
type
|
|
3729
|
+
type index_WebhookCreated = WebhookCreated;
|
|
3730
|
+
type index_WebhookCreatedResponse = WebhookCreatedResponse;
|
|
3659
3731
|
type index_WebhookDelivery = WebhookDelivery;
|
|
3660
3732
|
type index_WebhookDeliveryAttempt = WebhookDeliveryAttempt;
|
|
3661
3733
|
type index_WebhookDeliveryPage = WebhookDeliveryPage;
|
|
@@ -3663,6 +3735,7 @@ type index_WebhookEventType = WebhookEventType;
|
|
|
3663
3735
|
type index_WebhookRetryPolicy = WebhookRetryPolicy;
|
|
3664
3736
|
type index_WebhookSubscription = WebhookSubscription;
|
|
3665
3737
|
type index_WebhookSubscriptionPage = WebhookSubscriptionPage;
|
|
3738
|
+
type index_WebhookSubscriptionResponse = WebhookSubscriptionResponse;
|
|
3666
3739
|
type index_WebhookUpdateRequest = WebhookUpdateRequest;
|
|
3667
3740
|
declare const index_acceptAdmission: typeof acceptAdmission;
|
|
3668
3741
|
declare const index_cancelFirmwareDeployment: typeof cancelFirmwareDeployment;
|
|
@@ -3708,7 +3781,7 @@ declare const index_updateDeviceType: typeof updateDeviceType;
|
|
|
3708
3781
|
declare const index_updateWebhook: typeof updateWebhook;
|
|
3709
3782
|
declare const index_uploadFirmware: typeof uploadFirmware;
|
|
3710
3783
|
declare namespace index {
|
|
3711
|
-
export { type index_AcceptAdmissionData as AcceptAdmissionData, type index_AcceptAdmissionError as AcceptAdmissionError, type index_AcceptAdmissionErrors as AcceptAdmissionErrors, type index_AcceptAdmissionResponse as AcceptAdmissionResponse, type index_AcceptAdmissionResponses as AcceptAdmissionResponses, type index_Admission as Admission, type index_AdmissionAcceptRequest as AdmissionAcceptRequest, type index_AdmissionAcceptResponse as AdmissionAcceptResponse, type index_AdmissionListPage as AdmissionListPage, type index_CancelFirmwareDeploymentData as CancelFirmwareDeploymentData, type index_CancelFirmwareDeploymentError as CancelFirmwareDeploymentError, type index_CancelFirmwareDeploymentErrors as CancelFirmwareDeploymentErrors, type index_CancelFirmwareDeploymentResponse as CancelFirmwareDeploymentResponse, type index_CancelFirmwareDeploymentResponses as CancelFirmwareDeploymentResponses, type ClientOptions$1 as ClientOptions, type index_CommandArgDefinition as CommandArgDefinition, type index_CommandDefinition as CommandDefinition, type index_CommandInvocation as CommandInvocation, type index_CommandManifest as CommandManifest, type index_CommandRequest as CommandRequest, type index_CommandResult as CommandResult, type index_CreateDeviceTypeData as CreateDeviceTypeData, type index_CreateDeviceTypeError as CreateDeviceTypeError, type index_CreateDeviceTypeErrors as CreateDeviceTypeErrors, type index_CreateDeviceTypeResponse as CreateDeviceTypeResponse, type index_CreateDeviceTypeResponses as CreateDeviceTypeResponses, type index_CreateProjectAppTokenData as CreateProjectAppTokenData, type index_CreateProjectAppTokenError as CreateProjectAppTokenError, type index_CreateProjectAppTokenErrors as CreateProjectAppTokenErrors, type index_CreateProjectAppTokenResponse as CreateProjectAppTokenResponse, type index_CreateProjectAppTokenResponses as CreateProjectAppTokenResponses, type index_CreateWebhookData as CreateWebhookData, type index_CreateWebhookError as CreateWebhookError, type index_CreateWebhookErrors as CreateWebhookErrors, type index_CreateWebhookResponse as CreateWebhookResponse, type index_CreateWebhookResponses as CreateWebhookResponses, type index_DeleteCommandManifestData as DeleteCommandManifestData, type index_DeleteCommandManifestError as DeleteCommandManifestError, type index_DeleteCommandManifestErrors as DeleteCommandManifestErrors, type index_DeleteCommandManifestResponses as DeleteCommandManifestResponses, type index_DeleteDeviceData as DeleteDeviceData, type index_DeleteDeviceError as DeleteDeviceError, type index_DeleteDeviceErrors as DeleteDeviceErrors, type index_DeleteDeviceResponses as DeleteDeviceResponses, type index_DeleteDeviceTypeData as DeleteDeviceTypeData, type index_DeleteDeviceTypeError as DeleteDeviceTypeError, type index_DeleteDeviceTypeErrors as DeleteDeviceTypeErrors, type index_DeleteDeviceTypeResponses as DeleteDeviceTypeResponses, type index_DeleteFirmwareBundleData as DeleteFirmwareBundleData, type index_DeleteFirmwareBundleError as DeleteFirmwareBundleError, type index_DeleteFirmwareBundleErrors as DeleteFirmwareBundleErrors, type index_DeleteFirmwareBundleResponses as DeleteFirmwareBundleResponses, type index_DeleteWebhookData as DeleteWebhookData, type index_DeleteWebhookError as DeleteWebhookError, type index_DeleteWebhookErrors as DeleteWebhookErrors, type index_DeleteWebhookResponses as DeleteWebhookResponses, type index_Device as Device, type index_DeviceListItem as DeviceListItem, type index_DeviceListPage as DeviceListPage, type index_DeviceTokenReset as DeviceTokenReset, type index_DeviceType as DeviceType, type index_DeviceTypeCreateRequest as DeviceTypeCreateRequest, type index_DeviceTypeListItem as DeviceTypeListItem, type index_DeviceTypeListPage as DeviceTypeListPage, type index_DeviceTypeUpdateRequest as DeviceTypeUpdateRequest, type index_DismissAdmissionData as DismissAdmissionData, type index_DismissAdmissionError as DismissAdmissionError, type index_DismissAdmissionErrors as DismissAdmissionErrors, type index_DismissAdmissionResponse as DismissAdmissionResponse, type index_DismissAdmissionResponses as DismissAdmissionResponses, type index_ErrorItem as ErrorItem, type index_ErrorResponse as ErrorResponse, type index_ExecDeviceCommandData as ExecDeviceCommandData, type index_ExecDeviceCommandError as ExecDeviceCommandError, type index_ExecDeviceCommandErrors as ExecDeviceCommandErrors, type index_ExecDeviceCommandResponse as ExecDeviceCommandResponse, type index_ExecDeviceCommandResponses as ExecDeviceCommandResponses, type index_FirmwareBundle as FirmwareBundle, type index_FirmwareBundleListPage as FirmwareBundleListPage, type index_FirmwareConflictResponse as FirmwareConflictResponse, type index_FirmwareDeployment as FirmwareDeployment, type index_FirmwareDeploymentCancelRequest as FirmwareDeploymentCancelRequest, type index_FirmwareDeploymentListPage as FirmwareDeploymentListPage, type index_FirmwareDeploymentRollbackRequest as FirmwareDeploymentRollbackRequest, type index_FirmwareDeploymentTriggerRequest as FirmwareDeploymentTriggerRequest, type index_FirmwareDeploymentTriggerResponse as FirmwareDeploymentTriggerResponse, type index_FirmwareUploadRequest as FirmwareUploadRequest, type index_FirmwareUploadResponse as FirmwareUploadResponse, type index_GetAdmissionData as GetAdmissionData, type index_GetAdmissionError as GetAdmissionError, type index_GetAdmissionErrors as GetAdmissionErrors, type index_GetAdmissionResponse as GetAdmissionResponse, type index_GetAdmissionResponses as GetAdmissionResponses, type index_GetCommandManifestData as GetCommandManifestData, type index_GetCommandManifestError as GetCommandManifestError, type index_GetCommandManifestErrors as GetCommandManifestErrors, type index_GetCommandManifestResponse as GetCommandManifestResponse, type index_GetCommandManifestResponses as GetCommandManifestResponses, type index_GetDeviceCommandInvocationData as GetDeviceCommandInvocationData, type index_GetDeviceCommandInvocationError as GetDeviceCommandInvocationError, type index_GetDeviceCommandInvocationErrors as GetDeviceCommandInvocationErrors, type index_GetDeviceCommandInvocationResponse as GetDeviceCommandInvocationResponse, type index_GetDeviceCommandInvocationResponses as GetDeviceCommandInvocationResponses, type index_GetDeviceCommandsData as GetDeviceCommandsData, type index_GetDeviceCommandsError as GetDeviceCommandsError, type index_GetDeviceCommandsErrors as GetDeviceCommandsErrors, type index_GetDeviceCommandsResponse as GetDeviceCommandsResponse, type index_GetDeviceCommandsResponses as GetDeviceCommandsResponses, type index_GetDeviceData as GetDeviceData, type index_GetDeviceError as GetDeviceError, type index_GetDeviceErrors as GetDeviceErrors, type index_GetDeviceResponse as GetDeviceResponse, type index_GetDeviceResponses as GetDeviceResponses, type index_GetDeviceTypeData as GetDeviceTypeData, type index_GetDeviceTypeError as GetDeviceTypeError, type index_GetDeviceTypeErrors as GetDeviceTypeErrors, type index_GetDeviceTypeResponse as GetDeviceTypeResponse, type index_GetDeviceTypeResponses as GetDeviceTypeResponses, type index_GetFirmwareBundleData as GetFirmwareBundleData, type index_GetFirmwareBundleError as GetFirmwareBundleError, type index_GetFirmwareBundleErrors as GetFirmwareBundleErrors, type index_GetFirmwareBundleResponse as GetFirmwareBundleResponse, type index_GetFirmwareBundleResponses as GetFirmwareBundleResponses, type index_GetFirmwareDeploymentData as GetFirmwareDeploymentData, type index_GetFirmwareDeploymentError as GetFirmwareDeploymentError, type index_GetFirmwareDeploymentErrors as GetFirmwareDeploymentErrors, type index_GetFirmwareDeploymentResponse as GetFirmwareDeploymentResponse, type index_GetFirmwareDeploymentResponses as GetFirmwareDeploymentResponses, type index_GetIdentityData as GetIdentityData, type index_GetIdentityError as GetIdentityError, type index_GetIdentityErrors as GetIdentityErrors, type index_GetIdentityResponse as GetIdentityResponse, type index_GetIdentityResponses as GetIdentityResponses, type index_GetLatestTelemetryData as GetLatestTelemetryData, type index_GetLatestTelemetryError as GetLatestTelemetryError, type index_GetLatestTelemetryErrors as GetLatestTelemetryErrors, type index_GetLatestTelemetryResponse as GetLatestTelemetryResponse, type index_GetLatestTelemetryResponses as GetLatestTelemetryResponses, type index_GetProjectData as GetProjectData, type index_GetProjectError as GetProjectError, type index_GetProjectErrors as GetProjectErrors, type index_GetProjectResponse as GetProjectResponse, type index_GetProjectResponses as GetProjectResponses, type index_GetTelemetryHistoryData as GetTelemetryHistoryData, type index_GetTelemetryHistoryError as GetTelemetryHistoryError, type index_GetTelemetryHistoryErrors as GetTelemetryHistoryErrors, type index_GetTelemetryHistoryResponse as GetTelemetryHistoryResponse, type index_GetTelemetryHistoryResponses as GetTelemetryHistoryResponses, type index_GetTelemetryManifestData as GetTelemetryManifestData, type index_GetTelemetryManifestError as GetTelemetryManifestError, type index_GetTelemetryManifestErrors as GetTelemetryManifestErrors, type index_GetTelemetryManifestResponse as GetTelemetryManifestResponse, type index_GetTelemetryManifestResponses as GetTelemetryManifestResponses, type index_GetWebhookData as GetWebhookData, type index_GetWebhookError as GetWebhookError, type index_GetWebhookErrors as GetWebhookErrors, type index_GetWebhookResponse as GetWebhookResponse, type index_GetWebhookResponses as GetWebhookResponses, type index_Identity as Identity, type index_IdentityProject as IdentityProject, type index_IdentityToken as IdentityToken, type index_IdentityUser as IdentityUser, type index_ListAdmissionsData as ListAdmissionsData, type index_ListAdmissionsError as ListAdmissionsError, type index_ListAdmissionsErrors as ListAdmissionsErrors, type index_ListAdmissionsResponse as ListAdmissionsResponse, type index_ListAdmissionsResponses as ListAdmissionsResponses, type index_ListDeviceTypesData as ListDeviceTypesData, type index_ListDeviceTypesError as ListDeviceTypesError, type index_ListDeviceTypesErrors as ListDeviceTypesErrors, type index_ListDeviceTypesResponse as ListDeviceTypesResponse, type index_ListDeviceTypesResponses as ListDeviceTypesResponses, type index_ListDevicesData as ListDevicesData, type index_ListDevicesError as ListDevicesError, type index_ListDevicesErrors as ListDevicesErrors, type index_ListDevicesResponse as ListDevicesResponse, type index_ListDevicesResponses as ListDevicesResponses, type index_ListFirmwareBundlesData as ListFirmwareBundlesData, type index_ListFirmwareBundlesError as ListFirmwareBundlesError, type index_ListFirmwareBundlesErrors as ListFirmwareBundlesErrors, type index_ListFirmwareBundlesResponse as ListFirmwareBundlesResponse, type index_ListFirmwareBundlesResponses as ListFirmwareBundlesResponses, type index_ListFirmwareDeploymentsData as ListFirmwareDeploymentsData, type index_ListFirmwareDeploymentsError as ListFirmwareDeploymentsError, type index_ListFirmwareDeploymentsErrors as ListFirmwareDeploymentsErrors, type index_ListFirmwareDeploymentsResponse as ListFirmwareDeploymentsResponse, type index_ListFirmwareDeploymentsResponses as ListFirmwareDeploymentsResponses, type index_ListProjectsData as ListProjectsData, type index_ListProjectsError as ListProjectsError, type index_ListProjectsErrors as ListProjectsErrors, type index_ListProjectsResponse as ListProjectsResponse, type index_ListProjectsResponses as ListProjectsResponses, type index_ListWebhookDeliveriesData as ListWebhookDeliveriesData, type index_ListWebhookDeliveriesError as ListWebhookDeliveriesError, type index_ListWebhookDeliveriesErrors as ListWebhookDeliveriesErrors, type index_ListWebhookDeliveriesResponse as ListWebhookDeliveriesResponse, type index_ListWebhookDeliveriesResponses as ListWebhookDeliveriesResponses, type index_ListWebhooksData as ListWebhooksData, type index_ListWebhooksError as ListWebhooksError, type index_ListWebhooksErrors as ListWebhooksErrors, type index_ListWebhooksResponse as ListWebhooksResponse, type index_ListWebhooksResponses as ListWebhooksResponses, type index_MetricDefinition as MetricDefinition, type index_MetricGroup as MetricGroup, type index_Options as Options, type index_PageMeta as PageMeta, type index_Project as Project, type index_ProjectAppToken as ProjectAppToken, type index_ProjectListPage as ProjectListPage, type index_RejectAdmissionData as RejectAdmissionData, type index_RejectAdmissionError as RejectAdmissionError, type index_RejectAdmissionErrors as RejectAdmissionErrors, type index_RejectAdmissionResponse as RejectAdmissionResponse, type index_RejectAdmissionResponses as RejectAdmissionResponses, type index_ResetDeviceTokenData as ResetDeviceTokenData, type index_ResetDeviceTokenError as ResetDeviceTokenError, type index_ResetDeviceTokenErrors as ResetDeviceTokenErrors, type index_ResetDeviceTokenResponse as ResetDeviceTokenResponse, type index_ResetDeviceTokenResponses as ResetDeviceTokenResponses, type index_RollbackFirmwareDeploymentData as RollbackFirmwareDeploymentData, type index_RollbackFirmwareDeploymentError as RollbackFirmwareDeploymentError, type index_RollbackFirmwareDeploymentErrors as RollbackFirmwareDeploymentErrors, type index_RollbackFirmwareDeploymentResponse as RollbackFirmwareDeploymentResponse, type index_RollbackFirmwareDeploymentResponses as RollbackFirmwareDeploymentResponses, type index_RotateProjectAppTokenData as RotateProjectAppTokenData, type index_RotateProjectAppTokenError as RotateProjectAppTokenError, type index_RotateProjectAppTokenErrors as RotateProjectAppTokenErrors, type index_RotateProjectAppTokenResponse as RotateProjectAppTokenResponse, type index_RotateProjectAppTokenResponses as RotateProjectAppTokenResponses, type index_TelemetryHistory as TelemetryHistory, type index_TelemetryManifest as TelemetryManifest, type index_TelemetrySample as TelemetrySample, type index_TriggerFirmwareDeploymentData as TriggerFirmwareDeploymentData, type index_TriggerFirmwareDeploymentError as TriggerFirmwareDeploymentError, type index_TriggerFirmwareDeploymentErrors as TriggerFirmwareDeploymentErrors, type index_TriggerFirmwareDeploymentResponse as TriggerFirmwareDeploymentResponse, type index_TriggerFirmwareDeploymentResponses as TriggerFirmwareDeploymentResponses, type index_UpdateCommandManifestData as UpdateCommandManifestData, type index_UpdateCommandManifestError as UpdateCommandManifestError, type index_UpdateCommandManifestErrors as UpdateCommandManifestErrors, type index_UpdateCommandManifestResponse as UpdateCommandManifestResponse, type index_UpdateCommandManifestResponses as UpdateCommandManifestResponses, type index_UpdateDeviceTypeData as UpdateDeviceTypeData, type index_UpdateDeviceTypeError as UpdateDeviceTypeError, type index_UpdateDeviceTypeErrors as UpdateDeviceTypeErrors, type index_UpdateDeviceTypeResponse as UpdateDeviceTypeResponse, type index_UpdateDeviceTypeResponses as UpdateDeviceTypeResponses, type index_UpdateWebhookData as UpdateWebhookData, type index_UpdateWebhookError as UpdateWebhookError, type index_UpdateWebhookErrors as UpdateWebhookErrors, type index_UpdateWebhookResponse as UpdateWebhookResponse, type index_UpdateWebhookResponses as UpdateWebhookResponses, type index_UploadFirmwareData as UploadFirmwareData, type index_UploadFirmwareError as UploadFirmwareError, type index_UploadFirmwareErrors as UploadFirmwareErrors, type index_UploadFirmwareResponse as UploadFirmwareResponse, type index_UploadFirmwareResponses as UploadFirmwareResponses, type index_WebhookCreateRequest as WebhookCreateRequest, type index_WebhookCreateResponse as WebhookCreateResponse, type index_WebhookDelivery as WebhookDelivery, type index_WebhookDeliveryAttempt as WebhookDeliveryAttempt, type index_WebhookDeliveryPage as WebhookDeliveryPage, type index_WebhookEventType as WebhookEventType, type index_WebhookRetryPolicy as WebhookRetryPolicy, type index_WebhookSubscription as WebhookSubscription, type index_WebhookSubscriptionPage as WebhookSubscriptionPage, type index_WebhookUpdateRequest as WebhookUpdateRequest, index_acceptAdmission as acceptAdmission, index_cancelFirmwareDeployment as cancelFirmwareDeployment, index_createDeviceType as createDeviceType, index_createProjectAppToken as createProjectAppToken, index_createWebhook as createWebhook, index_deleteCommandManifest as deleteCommandManifest, index_deleteDevice as deleteDevice, index_deleteDeviceType as deleteDeviceType, index_deleteFirmwareBundle as deleteFirmwareBundle, index_deleteWebhook as deleteWebhook, index_dismissAdmission as dismissAdmission, index_execDeviceCommand as execDeviceCommand, index_getAdmission as getAdmission, index_getCommandManifest as getCommandManifest, index_getDevice as getDevice, index_getDeviceCommandInvocation as getDeviceCommandInvocation, index_getDeviceCommands as getDeviceCommands, index_getDeviceType as getDeviceType, index_getFirmwareBundle as getFirmwareBundle, index_getFirmwareDeployment as getFirmwareDeployment, index_getIdentity as getIdentity, index_getLatestTelemetry as getLatestTelemetry, index_getProject as getProject, index_getTelemetryHistory as getTelemetryHistory, index_getTelemetryManifest as getTelemetryManifest, index_getWebhook as getWebhook, index_listAdmissions as listAdmissions, index_listDeviceTypes as listDeviceTypes, index_listDevices as listDevices, index_listFirmwareBundles as listFirmwareBundles, index_listFirmwareDeployments as listFirmwareDeployments, index_listProjects as listProjects, index_listWebhookDeliveries as listWebhookDeliveries, index_listWebhooks as listWebhooks, index_rejectAdmission as rejectAdmission, index_resetDeviceToken as resetDeviceToken, index_rollbackFirmwareDeployment as rollbackFirmwareDeployment, index_rotateProjectAppToken as rotateProjectAppToken, index_triggerFirmwareDeployment as triggerFirmwareDeployment, index_updateCommandManifest as updateCommandManifest, index_updateDeviceType as updateDeviceType, index_updateWebhook as updateWebhook, index_uploadFirmware as uploadFirmware };
|
|
3784
|
+
export { type index_AcceptAdmissionData as AcceptAdmissionData, type index_AcceptAdmissionError as AcceptAdmissionError, type index_AcceptAdmissionErrors as AcceptAdmissionErrors, type index_AcceptAdmissionResponse as AcceptAdmissionResponse, type index_AcceptAdmissionResponses as AcceptAdmissionResponses, type index_Admission as Admission, type index_AdmissionAcceptRequest as AdmissionAcceptRequest, type index_AdmissionAcceptance as AdmissionAcceptance, type index_AdmissionAcceptanceResponse as AdmissionAcceptanceResponse, type index_AdmissionListPage as AdmissionListPage, type index_AdmissionResponse as AdmissionResponse, type index_CancelFirmwareDeploymentData as CancelFirmwareDeploymentData, type index_CancelFirmwareDeploymentError as CancelFirmwareDeploymentError, type index_CancelFirmwareDeploymentErrors as CancelFirmwareDeploymentErrors, type index_CancelFirmwareDeploymentResponse as CancelFirmwareDeploymentResponse, type index_CancelFirmwareDeploymentResponses as CancelFirmwareDeploymentResponses, type ClientOptions$1 as ClientOptions, type index_CommandArgDefinition as CommandArgDefinition, type index_CommandDefinition as CommandDefinition, type index_CommandInvocation as CommandInvocation, type index_CommandInvocationResponse as CommandInvocationResponse, type index_CommandManifest as CommandManifest, type index_CommandManifestResponse as CommandManifestResponse, type index_CommandRequest as CommandRequest, type index_CommandResult as CommandResult, type index_CommandResultResponse as CommandResultResponse, type index_CreateDeviceTypeData as CreateDeviceTypeData, type index_CreateDeviceTypeError as CreateDeviceTypeError, type index_CreateDeviceTypeErrors as CreateDeviceTypeErrors, type index_CreateDeviceTypeResponse as CreateDeviceTypeResponse, type index_CreateDeviceTypeResponses as CreateDeviceTypeResponses, type index_CreateProjectAppTokenData as CreateProjectAppTokenData, type index_CreateProjectAppTokenError as CreateProjectAppTokenError, type index_CreateProjectAppTokenErrors as CreateProjectAppTokenErrors, type index_CreateProjectAppTokenResponse as CreateProjectAppTokenResponse, type index_CreateProjectAppTokenResponses as CreateProjectAppTokenResponses, type index_CreateWebhookData as CreateWebhookData, type index_CreateWebhookError as CreateWebhookError, type index_CreateWebhookErrors as CreateWebhookErrors, type index_CreateWebhookResponse as CreateWebhookResponse, type index_CreateWebhookResponses as CreateWebhookResponses, type index_DeleteCommandManifestData as DeleteCommandManifestData, type index_DeleteCommandManifestError as DeleteCommandManifestError, type index_DeleteCommandManifestErrors as DeleteCommandManifestErrors, type index_DeleteCommandManifestResponses as DeleteCommandManifestResponses, type index_DeleteDeviceData as DeleteDeviceData, type index_DeleteDeviceError as DeleteDeviceError, type index_DeleteDeviceErrors as DeleteDeviceErrors, type index_DeleteDeviceResponses as DeleteDeviceResponses, type index_DeleteDeviceTypeData as DeleteDeviceTypeData, type index_DeleteDeviceTypeError as DeleteDeviceTypeError, type index_DeleteDeviceTypeErrors as DeleteDeviceTypeErrors, type index_DeleteDeviceTypeResponses as DeleteDeviceTypeResponses, type index_DeleteFirmwareBundleData as DeleteFirmwareBundleData, type index_DeleteFirmwareBundleError as DeleteFirmwareBundleError, type index_DeleteFirmwareBundleErrors as DeleteFirmwareBundleErrors, type index_DeleteFirmwareBundleResponses as DeleteFirmwareBundleResponses, type index_DeleteWebhookData as DeleteWebhookData, type index_DeleteWebhookError as DeleteWebhookError, type index_DeleteWebhookErrors as DeleteWebhookErrors, type index_DeleteWebhookResponses as DeleteWebhookResponses, type index_Device as Device, type index_DeviceListItem as DeviceListItem, type index_DeviceListPage as DeviceListPage, type index_DeviceResponse as DeviceResponse, type index_DeviceTokenReset as DeviceTokenReset, type index_DeviceTokenResetResponse as DeviceTokenResetResponse, type index_DeviceType as DeviceType, type index_DeviceTypeCreateRequest as DeviceTypeCreateRequest, type index_DeviceTypeListItem as DeviceTypeListItem, type index_DeviceTypeListPage as DeviceTypeListPage, type index_DeviceTypeResponse as DeviceTypeResponse, type index_DeviceTypeUpdateRequest as DeviceTypeUpdateRequest, type index_DismissAdmissionData as DismissAdmissionData, type index_DismissAdmissionError as DismissAdmissionError, type index_DismissAdmissionErrors as DismissAdmissionErrors, type index_DismissAdmissionResponse as DismissAdmissionResponse, type index_DismissAdmissionResponses as DismissAdmissionResponses, type index_ErrorItem as ErrorItem, type index_ErrorResponse as ErrorResponse, type index_ExecDeviceCommandData as ExecDeviceCommandData, type index_ExecDeviceCommandError as ExecDeviceCommandError, type index_ExecDeviceCommandErrors as ExecDeviceCommandErrors, type index_ExecDeviceCommandResponse as ExecDeviceCommandResponse, type index_ExecDeviceCommandResponses as ExecDeviceCommandResponses, type index_FirmwareBundle as FirmwareBundle, type index_FirmwareBundleListPage as FirmwareBundleListPage, type index_FirmwareBundleResponse as FirmwareBundleResponse, type index_FirmwareDeployment as FirmwareDeployment, type index_FirmwareDeploymentCancelRequest as FirmwareDeploymentCancelRequest, type index_FirmwareDeploymentListPage as FirmwareDeploymentListPage, type index_FirmwareDeploymentResponse as FirmwareDeploymentResponse, type index_FirmwareDeploymentRollbackRequest as FirmwareDeploymentRollbackRequest, type index_FirmwareDeploymentTriggerRequest as FirmwareDeploymentTriggerRequest, type index_FirmwareDeploymentsResponse as FirmwareDeploymentsResponse, type index_FirmwareUploadRequest as FirmwareUploadRequest, type index_GetAdmissionData as GetAdmissionData, type index_GetAdmissionError as GetAdmissionError, type index_GetAdmissionErrors as GetAdmissionErrors, type index_GetAdmissionResponse as GetAdmissionResponse, type index_GetAdmissionResponses as GetAdmissionResponses, type index_GetCommandManifestData as GetCommandManifestData, type index_GetCommandManifestError as GetCommandManifestError, type index_GetCommandManifestErrors as GetCommandManifestErrors, type index_GetCommandManifestResponse as GetCommandManifestResponse, type index_GetCommandManifestResponses as GetCommandManifestResponses, type index_GetDeviceCommandInvocationData as GetDeviceCommandInvocationData, type index_GetDeviceCommandInvocationError as GetDeviceCommandInvocationError, type index_GetDeviceCommandInvocationErrors as GetDeviceCommandInvocationErrors, type index_GetDeviceCommandInvocationResponse as GetDeviceCommandInvocationResponse, type index_GetDeviceCommandInvocationResponses as GetDeviceCommandInvocationResponses, type index_GetDeviceCommandsData as GetDeviceCommandsData, type index_GetDeviceCommandsError as GetDeviceCommandsError, type index_GetDeviceCommandsErrors as GetDeviceCommandsErrors, type index_GetDeviceCommandsResponse as GetDeviceCommandsResponse, type index_GetDeviceCommandsResponses as GetDeviceCommandsResponses, type index_GetDeviceData as GetDeviceData, type index_GetDeviceError as GetDeviceError, type index_GetDeviceErrors as GetDeviceErrors, type index_GetDeviceResponse as GetDeviceResponse, type index_GetDeviceResponses as GetDeviceResponses, type index_GetDeviceTypeData as GetDeviceTypeData, type index_GetDeviceTypeError as GetDeviceTypeError, type index_GetDeviceTypeErrors as GetDeviceTypeErrors, type index_GetDeviceTypeResponse as GetDeviceTypeResponse, type index_GetDeviceTypeResponses as GetDeviceTypeResponses, type index_GetFirmwareBundleData as GetFirmwareBundleData, type index_GetFirmwareBundleError as GetFirmwareBundleError, type index_GetFirmwareBundleErrors as GetFirmwareBundleErrors, type index_GetFirmwareBundleResponse as GetFirmwareBundleResponse, type index_GetFirmwareBundleResponses as GetFirmwareBundleResponses, type index_GetFirmwareDeploymentData as GetFirmwareDeploymentData, type index_GetFirmwareDeploymentError as GetFirmwareDeploymentError, type index_GetFirmwareDeploymentErrors as GetFirmwareDeploymentErrors, type index_GetFirmwareDeploymentResponse as GetFirmwareDeploymentResponse, type index_GetFirmwareDeploymentResponses as GetFirmwareDeploymentResponses, type index_GetIdentityData as GetIdentityData, type index_GetIdentityError as GetIdentityError, type index_GetIdentityErrors as GetIdentityErrors, type index_GetIdentityResponse as GetIdentityResponse, type index_GetIdentityResponses as GetIdentityResponses, type index_GetLatestTelemetryData as GetLatestTelemetryData, type index_GetLatestTelemetryError as GetLatestTelemetryError, type index_GetLatestTelemetryErrors as GetLatestTelemetryErrors, type index_GetLatestTelemetryResponse as GetLatestTelemetryResponse, type index_GetLatestTelemetryResponses as GetLatestTelemetryResponses, type index_GetProjectData as GetProjectData, type index_GetProjectError as GetProjectError, type index_GetProjectErrors as GetProjectErrors, type index_GetProjectResponse as GetProjectResponse, type index_GetProjectResponses as GetProjectResponses, type index_GetTelemetryHistoryData as GetTelemetryHistoryData, type index_GetTelemetryHistoryError as GetTelemetryHistoryError, type index_GetTelemetryHistoryErrors as GetTelemetryHistoryErrors, type index_GetTelemetryHistoryResponse as GetTelemetryHistoryResponse, type index_GetTelemetryHistoryResponses as GetTelemetryHistoryResponses, type index_GetTelemetryManifestData as GetTelemetryManifestData, type index_GetTelemetryManifestError as GetTelemetryManifestError, type index_GetTelemetryManifestErrors as GetTelemetryManifestErrors, type index_GetTelemetryManifestResponse as GetTelemetryManifestResponse, type index_GetTelemetryManifestResponses as GetTelemetryManifestResponses, type index_GetWebhookData as GetWebhookData, type index_GetWebhookError as GetWebhookError, type index_GetWebhookErrors as GetWebhookErrors, type index_GetWebhookResponse as GetWebhookResponse, type index_GetWebhookResponses as GetWebhookResponses, type index_Identity as Identity, type index_IdentityProject as IdentityProject, type index_IdentityResponse as IdentityResponse, type index_IdentityToken as IdentityToken, type index_IdentityUser as IdentityUser, type index_LatestTelemetryResponse as LatestTelemetryResponse, type index_ListAdmissionsData as ListAdmissionsData, type index_ListAdmissionsError as ListAdmissionsError, type index_ListAdmissionsErrors as ListAdmissionsErrors, type index_ListAdmissionsResponse as ListAdmissionsResponse, type index_ListAdmissionsResponses as ListAdmissionsResponses, type index_ListDeviceTypesData as ListDeviceTypesData, type index_ListDeviceTypesError as ListDeviceTypesError, type index_ListDeviceTypesErrors as ListDeviceTypesErrors, type index_ListDeviceTypesResponse as ListDeviceTypesResponse, type index_ListDeviceTypesResponses as ListDeviceTypesResponses, type index_ListDevicesData as ListDevicesData, type index_ListDevicesError as ListDevicesError, type index_ListDevicesErrors as ListDevicesErrors, type index_ListDevicesResponse as ListDevicesResponse, type index_ListDevicesResponses as ListDevicesResponses, type index_ListFirmwareBundlesData as ListFirmwareBundlesData, type index_ListFirmwareBundlesError as ListFirmwareBundlesError, type index_ListFirmwareBundlesErrors as ListFirmwareBundlesErrors, type index_ListFirmwareBundlesResponse as ListFirmwareBundlesResponse, type index_ListFirmwareBundlesResponses as ListFirmwareBundlesResponses, type index_ListFirmwareDeploymentsData as ListFirmwareDeploymentsData, type index_ListFirmwareDeploymentsError as ListFirmwareDeploymentsError, type index_ListFirmwareDeploymentsErrors as ListFirmwareDeploymentsErrors, type index_ListFirmwareDeploymentsResponse as ListFirmwareDeploymentsResponse, type index_ListFirmwareDeploymentsResponses as ListFirmwareDeploymentsResponses, type index_ListProjectsData as ListProjectsData, type index_ListProjectsError as ListProjectsError, type index_ListProjectsErrors as ListProjectsErrors, type index_ListProjectsResponse as ListProjectsResponse, type index_ListProjectsResponses as ListProjectsResponses, type index_ListWebhookDeliveriesData as ListWebhookDeliveriesData, type index_ListWebhookDeliveriesError as ListWebhookDeliveriesError, type index_ListWebhookDeliveriesErrors as ListWebhookDeliveriesErrors, type index_ListWebhookDeliveriesResponse as ListWebhookDeliveriesResponse, type index_ListWebhookDeliveriesResponses as ListWebhookDeliveriesResponses, type index_ListWebhooksData as ListWebhooksData, type index_ListWebhooksError as ListWebhooksError, type index_ListWebhooksErrors as ListWebhooksErrors, type index_ListWebhooksResponse as ListWebhooksResponse, type index_ListWebhooksResponses as ListWebhooksResponses, type index_MetricDefinition as MetricDefinition, type index_MetricGroup as MetricGroup, type index_Options as Options, type index_PageMeta as PageMeta, type index_Project as Project, type index_ProjectAppToken as ProjectAppToken, type index_ProjectAppTokenResponse as ProjectAppTokenResponse, type index_ProjectListPage as ProjectListPage, type index_ProjectResponse as ProjectResponse, type index_RejectAdmissionData as RejectAdmissionData, type index_RejectAdmissionError as RejectAdmissionError, type index_RejectAdmissionErrors as RejectAdmissionErrors, type index_RejectAdmissionResponse as RejectAdmissionResponse, type index_RejectAdmissionResponses as RejectAdmissionResponses, type index_ResetDeviceTokenData as ResetDeviceTokenData, type index_ResetDeviceTokenError as ResetDeviceTokenError, type index_ResetDeviceTokenErrors as ResetDeviceTokenErrors, type index_ResetDeviceTokenResponse as ResetDeviceTokenResponse, type index_ResetDeviceTokenResponses as ResetDeviceTokenResponses, type index_RollbackFirmwareDeploymentData as RollbackFirmwareDeploymentData, type index_RollbackFirmwareDeploymentError as RollbackFirmwareDeploymentError, type index_RollbackFirmwareDeploymentErrors as RollbackFirmwareDeploymentErrors, type index_RollbackFirmwareDeploymentResponse as RollbackFirmwareDeploymentResponse, type index_RollbackFirmwareDeploymentResponses as RollbackFirmwareDeploymentResponses, type index_RotateProjectAppTokenData as RotateProjectAppTokenData, type index_RotateProjectAppTokenError as RotateProjectAppTokenError, type index_RotateProjectAppTokenErrors as RotateProjectAppTokenErrors, type index_RotateProjectAppTokenResponse as RotateProjectAppTokenResponse, type index_RotateProjectAppTokenResponses as RotateProjectAppTokenResponses, type index_TelemetryHistoryResponse as TelemetryHistoryResponse, type index_TelemetryManifest as TelemetryManifest, type index_TelemetryManifestResponse as TelemetryManifestResponse, type index_TelemetrySample as TelemetrySample, type index_TriggerFirmwareDeploymentData as TriggerFirmwareDeploymentData, type index_TriggerFirmwareDeploymentError as TriggerFirmwareDeploymentError, type index_TriggerFirmwareDeploymentErrors as TriggerFirmwareDeploymentErrors, type index_TriggerFirmwareDeploymentResponse as TriggerFirmwareDeploymentResponse, type index_TriggerFirmwareDeploymentResponses as TriggerFirmwareDeploymentResponses, type index_UpdateCommandManifestData as UpdateCommandManifestData, type index_UpdateCommandManifestError as UpdateCommandManifestError, type index_UpdateCommandManifestErrors as UpdateCommandManifestErrors, type index_UpdateCommandManifestResponse as UpdateCommandManifestResponse, type index_UpdateCommandManifestResponses as UpdateCommandManifestResponses, type index_UpdateDeviceTypeData as UpdateDeviceTypeData, type index_UpdateDeviceTypeError as UpdateDeviceTypeError, type index_UpdateDeviceTypeErrors as UpdateDeviceTypeErrors, type index_UpdateDeviceTypeResponse as UpdateDeviceTypeResponse, type index_UpdateDeviceTypeResponses as UpdateDeviceTypeResponses, type index_UpdateWebhookData as UpdateWebhookData, type index_UpdateWebhookError as UpdateWebhookError, type index_UpdateWebhookErrors as UpdateWebhookErrors, type index_UpdateWebhookResponse as UpdateWebhookResponse, type index_UpdateWebhookResponses as UpdateWebhookResponses, type index_UploadFirmwareData as UploadFirmwareData, type index_UploadFirmwareError as UploadFirmwareError, type index_UploadFirmwareErrors as UploadFirmwareErrors, type index_UploadFirmwareResponse as UploadFirmwareResponse, type index_UploadFirmwareResponses as UploadFirmwareResponses, type index_WebhookCreateRequest as WebhookCreateRequest, type index_WebhookCreated as WebhookCreated, type index_WebhookCreatedResponse as WebhookCreatedResponse, type index_WebhookDelivery as WebhookDelivery, type index_WebhookDeliveryAttempt as WebhookDeliveryAttempt, type index_WebhookDeliveryPage as WebhookDeliveryPage, type index_WebhookEventType as WebhookEventType, type index_WebhookRetryPolicy as WebhookRetryPolicy, type index_WebhookSubscription as WebhookSubscription, type index_WebhookSubscriptionPage as WebhookSubscriptionPage, type index_WebhookSubscriptionResponse as WebhookSubscriptionResponse, type index_WebhookUpdateRequest as WebhookUpdateRequest, index_acceptAdmission as acceptAdmission, index_cancelFirmwareDeployment as cancelFirmwareDeployment, index_createDeviceType as createDeviceType, index_createProjectAppToken as createProjectAppToken, index_createWebhook as createWebhook, index_deleteCommandManifest as deleteCommandManifest, index_deleteDevice as deleteDevice, index_deleteDeviceType as deleteDeviceType, index_deleteFirmwareBundle as deleteFirmwareBundle, index_deleteWebhook as deleteWebhook, index_dismissAdmission as dismissAdmission, index_execDeviceCommand as execDeviceCommand, index_getAdmission as getAdmission, index_getCommandManifest as getCommandManifest, index_getDevice as getDevice, index_getDeviceCommandInvocation as getDeviceCommandInvocation, index_getDeviceCommands as getDeviceCommands, index_getDeviceType as getDeviceType, index_getFirmwareBundle as getFirmwareBundle, index_getFirmwareDeployment as getFirmwareDeployment, index_getIdentity as getIdentity, index_getLatestTelemetry as getLatestTelemetry, index_getProject as getProject, index_getTelemetryHistory as getTelemetryHistory, index_getTelemetryManifest as getTelemetryManifest, index_getWebhook as getWebhook, index_listAdmissions as listAdmissions, index_listDeviceTypes as listDeviceTypes, index_listDevices as listDevices, index_listFirmwareBundles as listFirmwareBundles, index_listFirmwareDeployments as listFirmwareDeployments, index_listProjects as listProjects, index_listWebhookDeliveries as listWebhookDeliveries, index_listWebhooks as listWebhooks, index_rejectAdmission as rejectAdmission, index_resetDeviceToken as resetDeviceToken, index_rollbackFirmwareDeployment as rollbackFirmwareDeployment, index_rotateProjectAppToken as rotateProjectAppToken, index_triggerFirmwareDeployment as triggerFirmwareDeployment, index_updateCommandManifest as updateCommandManifest, index_updateDeviceType as updateDeviceType, index_updateWebhook as updateWebhook, index_uploadFirmware as uploadFirmware };
|
|
3712
3785
|
}
|
|
3713
3786
|
|
|
3714
|
-
export { type Admission, type AdmissionAcceptRequest, type
|
|
3787
|
+
export { type Admission, type AdmissionAcceptRequest, type AdmissionAcceptance, type AdmissionListPage, AuthenticationError, BadRequestError, BundleExistsError, type CancelDeploymentParams, type CommandArgDefinition, type CommandDefinition, type CommandInvocation, type CommandManifest, type CommandRequest, type CommandResult, ConflictError, type DecodedMetric, type Device, type DeviceListItem, type DeviceListPage, DeviceRpcError, type DeviceTokenReset, type DeviceType, type DeviceTypeCreateRequest, type DeviceTypeListItem, type DeviceTypeListPage, type DeviceTypeUpdateRequest, type ErrorItem, type ErrorResponse, type FirmwareBundle, type FirmwareBundleListPage, type FirmwareDeployment, type FirmwareDeploymentCancelRequest, type FirmwareDeploymentListPage, type FirmwareDeploymentTriggerRequest, type Identity, type IdentityProject, type IdentityToken, type IdentityUser, InsufficientScopeError, type IterateBundlesParams, type IterateDeploymentsParams, type IterateDevicesParams, type IterateWebhookDeliveriesParams, type IterateWebhooksParams, type ListBundlesParams, type ListDeploymentsParams, type ListDevicesParams, type ListWebhooksParams, type MetricDefinition, type MetricGroup, NetworkError, OrbitClient, type OrbitClientOptions, OrbitError, type OrbitErrorOptions, type OrbitWebhookEvent, type Page, type PageMeta, type Project, type ProjectAppToken, type ProjectListPage, RateLimitError, ResourceNotFoundError, ServerError, type TelemetryHistoryParams, type TelemetryHistoryResponse, type TelemetryManifest, type TelemetrySample, type TerminalTicketRequest, type TerminalTicketResponse, type UploadFirmwareParams, type UsbDeviceIdentifier, type UsbExportDefinition, type UsbExportList, type UsbTicketRequest, type UsbTicketResponse, ValidationError, type ValidationFieldError, type VerifyWebhookSignatureParams, WEBHOOK_REPLAY_TOLERANCE_SECONDS, type WebhookCreateRequest, type WebhookCreated, type WebhookDeliveriesParams, type WebhookDelivery, type WebhookDeliveryPage, type WebhookEventType, type WebhookSubscription, type WebhookSubscriptionPage, type WebhookUpdateRequest, decodeSample, decodeSamples, normalizeError, paginate, parseRetryAfterSeconds, parseWebhookEvent, index as raw, signWebhookPayload, verifyWebhookSignature };
|