@omirion/orbit-sdk 0.1.0 → 0.2.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/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: attaching still requires `api:usb:attach`.
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: manifest **counts** instead of the manifests, so a page stays small. Read one type for the full contract.
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: only the fields sent change. `slug` is absent by design, being the identifier. A manifest sent here replaces the stored one wholesale.
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: the server keeps only its sha256, so a lost token can be replaced but never recovered.
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;
@@ -459,7 +459,7 @@ type FirmwareDeploymentTriggerRequest = {
459
459
  deviceIds: Array<string>;
460
460
  };
461
461
  /**
462
- * Cancellation intent. The body is optional: with no `force`, only a `pending` deployment cancels.
462
+ * Cancellation intent. The body is optional. With no `force`, only a `pending` deployment cancels.
463
463
  */
464
464
  type FirmwareDeploymentCancelRequest = {
465
465
  /**
@@ -468,7 +468,7 @@ type FirmwareDeploymentCancelRequest = {
468
468
  force?: boolean;
469
469
  };
470
470
  /**
471
- * Rollback intent. The body is optional: omit `reason` for a generic operator-issued message.
471
+ * Rollback intent. The body is optional. Omit `reason` for a generic operator-issued message.
472
472
  */
473
473
  type FirmwareDeploymentRollbackRequest = {
474
474
  /**
@@ -564,7 +564,7 @@ type CommandRequest = {
564
564
  */
565
565
  name: string;
566
566
  /**
567
- * 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.
567
+ * 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
568
  */
569
569
  args?: {
570
570
  [key: string]: string | number | boolean;
@@ -628,13 +628,6 @@ type FirmwareUploadRequest = {
628
628
  */
629
629
  description?: string | null;
630
630
  };
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
631
  /**
639
632
  * Event types deliverable to a webhook subscription.
640
633
  */
@@ -772,7 +765,7 @@ type ListProjectsData = {
772
765
  path?: never;
773
766
  query?: {
774
767
  /**
775
- * 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.
768
+ * 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
769
  */
777
770
  organizationId?: string;
778
771
  cursor?: string;
@@ -1305,9 +1298,9 @@ type UploadFirmwareErrors = {
1305
1298
  */
1306
1299
  404: ErrorResponse;
1307
1300
  /**
1308
- * A bundle with the same projectId+version+compatible already exists.
1301
+ * A bundle with the same projectId+version+compatible already exists (`code: E_BUNDLE_ALREADY_EXISTS`).
1309
1302
  */
1310
- 409: FirmwareConflictResponse;
1303
+ 409: ErrorResponse;
1311
1304
  /**
1312
1305
  * Bundle binary unreadable: a RAUC bundle with no `manifest.raucm`, or an MCUboot image with a bad header magic.
1313
1306
  */
@@ -2914,15 +2907,11 @@ declare class OrbitClient {
2914
2907
  }
2915
2908
 
2916
2909
  /**
2917
- * Typed errors. The `/api/v1` surface returns several different error envelope
2918
- * shapes; {@link normalizeError} folds them all into one typed hierarchy so
2919
- * callers can `catch` a specific class instead of inspecting status codes:
2920
- *
2921
- * - standard `{ errors: [{ code, message, field }] }`
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`)
2910
+ * Typed errors. The server renders every `/api/v1` error as the standard
2911
+ * `{ errors: [{ code, message, field }] }` envelope; {@link normalizeError}
2912
+ * maps it into one typed hierarchy so callers can `catch` a specific class
2913
+ * instead of inspecting status codes. The class is chosen by `code` where one
2914
+ * status carries several (409), by status otherwise.
2926
2915
  */
2927
2916
  interface OrbitErrorOptions {
2928
2917
  status?: number;
@@ -2979,8 +2968,19 @@ declare class ValidationError extends OrbitError {
2979
2968
  fieldErrors?: ValidationFieldError[];
2980
2969
  });
2981
2970
  }
2982
- /** 409, a firmware bundle with the same projectId+version+compatible exists. */
2983
- declare class BundleExistsError extends OrbitError {
2971
+ /**
2972
+ * 409, the request conflicts with the resource's current state (cancelling a
2973
+ * deployment already in a terminal state, rolling back a deployment that did
2974
+ * not succeed, deleting a bundle with an in-flight deployment, accepting an
2975
+ * admission that was already reviewed, ...).
2976
+ */
2977
+ declare class ConflictError extends OrbitError {
2978
+ }
2979
+ /**
2980
+ * 409 `E_BUNDLE_ALREADY_EXISTS`, a firmware bundle with the same
2981
+ * projectId+version+compatible exists.
2982
+ */
2983
+ declare class BundleExistsError extends ConflictError {
2984
2984
  }
2985
2985
  /** 502, the device is offline or the command transport failed. */
2986
2986
  declare class DeviceRpcError extends OrbitError {
@@ -3148,7 +3148,7 @@ declare const getProject: <ThrowOnError extends boolean = false>(options: Option
3148
3148
  *
3149
3149
  * 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
3150
  *
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`: an app token admits new devices and so consumes licensing seats.
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`, because an app token admits new devices and so consumes licensing seats.
3152
3152
  */
3153
3153
  declare const createProjectAppToken: <ThrowOnError extends boolean = false>(options: Options<CreateProjectAppTokenData, ThrowOnError>) => RequestResult<CreateProjectAppTokenResponses, CreateProjectAppTokenErrors, ThrowOnError>;
3154
3154
  /**
@@ -3228,7 +3228,7 @@ declare const rejectAdmission: <ThrowOnError extends boolean = false>(options: O
3228
3228
  /**
3229
3229
  * Dismiss an admission request
3230
3230
  *
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: 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.
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. 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
3232
  *
3233
3233
  * Requires the `api:admissions:manage` ability.
3234
3234
  */
@@ -3296,7 +3296,7 @@ declare const execDeviceCommand: <ThrowOnError extends boolean = false>(options:
3296
3296
  /**
3297
3297
  * Get a command invocation result
3298
3298
  *
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: 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.
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. 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
3300
  */
3301
3301
  declare const getDeviceCommandInvocation: <ThrowOnError extends boolean = false>(options: Options<GetDeviceCommandInvocationData, ThrowOnError>) => RequestResult<GetDeviceCommandInvocationResponses, GetDeviceCommandInvocationErrors, ThrowOnError>;
3302
3302
  /**
@@ -3320,7 +3320,7 @@ declare const getCommandManifest: <ThrowOnError extends boolean = false>(options
3320
3320
  /**
3321
3321
  * Declare the command manifest for a device type
3322
3322
  *
3323
- * 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.
3323
+ * 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
3324
  */
3325
3325
  declare const updateCommandManifest: <ThrowOnError extends boolean = false>(options: Options<UpdateCommandManifestData, ThrowOnError>) => RequestResult<UpdateCommandManifestResponses, UpdateCommandManifestErrors, ThrowOnError>;
3326
3326
  /**
@@ -3356,7 +3356,7 @@ declare const getDeviceType: <ThrowOnError extends boolean = false>(options: Opt
3356
3356
  /**
3357
3357
  * Update a device type
3358
3358
  *
3359
- * 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.
3359
+ * 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
3360
  *
3361
3361
  * Requires `api:device-types:manage`.
3362
3362
  */
@@ -3476,7 +3476,6 @@ type index_ExecDeviceCommandResponse = ExecDeviceCommandResponse;
3476
3476
  type index_ExecDeviceCommandResponses = ExecDeviceCommandResponses;
3477
3477
  type index_FirmwareBundle = FirmwareBundle;
3478
3478
  type index_FirmwareBundleListPage = FirmwareBundleListPage;
3479
- type index_FirmwareConflictResponse = FirmwareConflictResponse;
3480
3479
  type index_FirmwareDeployment = FirmwareDeployment;
3481
3480
  type index_FirmwareDeploymentCancelRequest = FirmwareDeploymentCancelRequest;
3482
3481
  type index_FirmwareDeploymentListPage = FirmwareDeploymentListPage;
@@ -3708,7 +3707,7 @@ declare const index_updateDeviceType: typeof updateDeviceType;
3708
3707
  declare const index_updateWebhook: typeof updateWebhook;
3709
3708
  declare const index_uploadFirmware: typeof uploadFirmware;
3710
3709
  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 };
3710
+ 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_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 };
3712
3711
  }
3713
3712
 
3714
- export { type Admission, type AdmissionAcceptRequest, type AdmissionAcceptResponse, type AdmissionListPage, AuthenticationError, BadRequestError, BundleExistsError, type CancelDeploymentParams, type CommandArgDefinition, type CommandDefinition, type CommandInvocation, type CommandManifest, type CommandRequest, type CommandResult, 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 FirmwareUploadResponse, 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 TelemetryHistory, type TelemetryHistoryParams, 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 WebhookCreateResponse, 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 };
3713
+ export { type Admission, type AdmissionAcceptRequest, type AdmissionAcceptResponse, 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 FirmwareUploadResponse, 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 TelemetryHistory, type TelemetryHistoryParams, 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 WebhookCreateResponse, 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 };
package/dist/index.d.ts 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: attaching still requires `api:usb:attach`.
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: manifest **counts** instead of the manifests, so a page stays small. Read one type for the full contract.
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: only the fields sent change. `slug` is absent by design, being the identifier. A manifest sent here replaces the stored one wholesale.
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: the server keeps only its sha256, so a lost token can be replaced but never recovered.
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;
@@ -459,7 +459,7 @@ type FirmwareDeploymentTriggerRequest = {
459
459
  deviceIds: Array<string>;
460
460
  };
461
461
  /**
462
- * Cancellation intent. The body is optional: with no `force`, only a `pending` deployment cancels.
462
+ * Cancellation intent. The body is optional. With no `force`, only a `pending` deployment cancels.
463
463
  */
464
464
  type FirmwareDeploymentCancelRequest = {
465
465
  /**
@@ -468,7 +468,7 @@ type FirmwareDeploymentCancelRequest = {
468
468
  force?: boolean;
469
469
  };
470
470
  /**
471
- * Rollback intent. The body is optional: omit `reason` for a generic operator-issued message.
471
+ * Rollback intent. The body is optional. Omit `reason` for a generic operator-issued message.
472
472
  */
473
473
  type FirmwareDeploymentRollbackRequest = {
474
474
  /**
@@ -564,7 +564,7 @@ type CommandRequest = {
564
564
  */
565
565
  name: string;
566
566
  /**
567
- * 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.
567
+ * 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
568
  */
569
569
  args?: {
570
570
  [key: string]: string | number | boolean;
@@ -628,13 +628,6 @@ type FirmwareUploadRequest = {
628
628
  */
629
629
  description?: string | null;
630
630
  };
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
631
  /**
639
632
  * Event types deliverable to a webhook subscription.
640
633
  */
@@ -772,7 +765,7 @@ type ListProjectsData = {
772
765
  path?: never;
773
766
  query?: {
774
767
  /**
775
- * 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.
768
+ * 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
769
  */
777
770
  organizationId?: string;
778
771
  cursor?: string;
@@ -1305,9 +1298,9 @@ type UploadFirmwareErrors = {
1305
1298
  */
1306
1299
  404: ErrorResponse;
1307
1300
  /**
1308
- * A bundle with the same projectId+version+compatible already exists.
1301
+ * A bundle with the same projectId+version+compatible already exists (`code: E_BUNDLE_ALREADY_EXISTS`).
1309
1302
  */
1310
- 409: FirmwareConflictResponse;
1303
+ 409: ErrorResponse;
1311
1304
  /**
1312
1305
  * Bundle binary unreadable: a RAUC bundle with no `manifest.raucm`, or an MCUboot image with a bad header magic.
1313
1306
  */
@@ -2914,15 +2907,11 @@ declare class OrbitClient {
2914
2907
  }
2915
2908
 
2916
2909
  /**
2917
- * Typed errors. The `/api/v1` surface returns several different error envelope
2918
- * shapes; {@link normalizeError} folds them all into one typed hierarchy so
2919
- * callers can `catch` a specific class instead of inspecting status codes:
2920
- *
2921
- * - standard `{ errors: [{ code, message, field }] }`
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`)
2910
+ * Typed errors. The server renders every `/api/v1` error as the standard
2911
+ * `{ errors: [{ code, message, field }] }` envelope; {@link normalizeError}
2912
+ * maps it into one typed hierarchy so callers can `catch` a specific class
2913
+ * instead of inspecting status codes. The class is chosen by `code` where one
2914
+ * status carries several (409), by status otherwise.
2926
2915
  */
2927
2916
  interface OrbitErrorOptions {
2928
2917
  status?: number;
@@ -2979,8 +2968,19 @@ declare class ValidationError extends OrbitError {
2979
2968
  fieldErrors?: ValidationFieldError[];
2980
2969
  });
2981
2970
  }
2982
- /** 409, a firmware bundle with the same projectId+version+compatible exists. */
2983
- declare class BundleExistsError extends OrbitError {
2971
+ /**
2972
+ * 409, the request conflicts with the resource's current state (cancelling a
2973
+ * deployment already in a terminal state, rolling back a deployment that did
2974
+ * not succeed, deleting a bundle with an in-flight deployment, accepting an
2975
+ * admission that was already reviewed, ...).
2976
+ */
2977
+ declare class ConflictError extends OrbitError {
2978
+ }
2979
+ /**
2980
+ * 409 `E_BUNDLE_ALREADY_EXISTS`, a firmware bundle with the same
2981
+ * projectId+version+compatible exists.
2982
+ */
2983
+ declare class BundleExistsError extends ConflictError {
2984
2984
  }
2985
2985
  /** 502, the device is offline or the command transport failed. */
2986
2986
  declare class DeviceRpcError extends OrbitError {
@@ -3148,7 +3148,7 @@ declare const getProject: <ThrowOnError extends boolean = false>(options: Option
3148
3148
  *
3149
3149
  * 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
3150
  *
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`: an app token admits new devices and so consumes licensing seats.
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`, because an app token admits new devices and so consumes licensing seats.
3152
3152
  */
3153
3153
  declare const createProjectAppToken: <ThrowOnError extends boolean = false>(options: Options<CreateProjectAppTokenData, ThrowOnError>) => RequestResult<CreateProjectAppTokenResponses, CreateProjectAppTokenErrors, ThrowOnError>;
3154
3154
  /**
@@ -3228,7 +3228,7 @@ declare const rejectAdmission: <ThrowOnError extends boolean = false>(options: O
3228
3228
  /**
3229
3229
  * Dismiss an admission request
3230
3230
  *
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: 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.
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. 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
3232
  *
3233
3233
  * Requires the `api:admissions:manage` ability.
3234
3234
  */
@@ -3296,7 +3296,7 @@ declare const execDeviceCommand: <ThrowOnError extends boolean = false>(options:
3296
3296
  /**
3297
3297
  * Get a command invocation result
3298
3298
  *
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: 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.
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. 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
3300
  */
3301
3301
  declare const getDeviceCommandInvocation: <ThrowOnError extends boolean = false>(options: Options<GetDeviceCommandInvocationData, ThrowOnError>) => RequestResult<GetDeviceCommandInvocationResponses, GetDeviceCommandInvocationErrors, ThrowOnError>;
3302
3302
  /**
@@ -3320,7 +3320,7 @@ declare const getCommandManifest: <ThrowOnError extends boolean = false>(options
3320
3320
  /**
3321
3321
  * Declare the command manifest for a device type
3322
3322
  *
3323
- * 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.
3323
+ * 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
3324
  */
3325
3325
  declare const updateCommandManifest: <ThrowOnError extends boolean = false>(options: Options<UpdateCommandManifestData, ThrowOnError>) => RequestResult<UpdateCommandManifestResponses, UpdateCommandManifestErrors, ThrowOnError>;
3326
3326
  /**
@@ -3356,7 +3356,7 @@ declare const getDeviceType: <ThrowOnError extends boolean = false>(options: Opt
3356
3356
  /**
3357
3357
  * Update a device type
3358
3358
  *
3359
- * 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.
3359
+ * 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
3360
  *
3361
3361
  * Requires `api:device-types:manage`.
3362
3362
  */
@@ -3476,7 +3476,6 @@ type index_ExecDeviceCommandResponse = ExecDeviceCommandResponse;
3476
3476
  type index_ExecDeviceCommandResponses = ExecDeviceCommandResponses;
3477
3477
  type index_FirmwareBundle = FirmwareBundle;
3478
3478
  type index_FirmwareBundleListPage = FirmwareBundleListPage;
3479
- type index_FirmwareConflictResponse = FirmwareConflictResponse;
3480
3479
  type index_FirmwareDeployment = FirmwareDeployment;
3481
3480
  type index_FirmwareDeploymentCancelRequest = FirmwareDeploymentCancelRequest;
3482
3481
  type index_FirmwareDeploymentListPage = FirmwareDeploymentListPage;
@@ -3708,7 +3707,7 @@ declare const index_updateDeviceType: typeof updateDeviceType;
3708
3707
  declare const index_updateWebhook: typeof updateWebhook;
3709
3708
  declare const index_uploadFirmware: typeof uploadFirmware;
3710
3709
  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 };
3710
+ 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_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 };
3712
3711
  }
3713
3712
 
3714
- export { type Admission, type AdmissionAcceptRequest, type AdmissionAcceptResponse, type AdmissionListPage, AuthenticationError, BadRequestError, BundleExistsError, type CancelDeploymentParams, type CommandArgDefinition, type CommandDefinition, type CommandInvocation, type CommandManifest, type CommandRequest, type CommandResult, 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 FirmwareUploadResponse, 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 TelemetryHistory, type TelemetryHistoryParams, 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 WebhookCreateResponse, 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 };
3713
+ export { type Admission, type AdmissionAcceptRequest, type AdmissionAcceptResponse, 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 FirmwareUploadResponse, 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 TelemetryHistory, type TelemetryHistoryParams, 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 WebhookCreateResponse, 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 };
package/dist/index.js CHANGED
@@ -1107,7 +1107,9 @@ var ValidationError = class extends OrbitError {
1107
1107
  this.fieldErrors = options.fieldErrors ?? [];
1108
1108
  }
1109
1109
  };
1110
- var BundleExistsError = class extends OrbitError {
1110
+ var ConflictError = class extends OrbitError {
1111
+ };
1112
+ var BundleExistsError = class extends ConflictError {
1111
1113
  };
1112
1114
  var DeviceRpcError = class extends OrbitError {
1113
1115
  };
@@ -1125,12 +1127,6 @@ var RateLimitError = class extends OrbitError {
1125
1127
  function extractErrorFields(body) {
1126
1128
  if (!body || typeof body !== "object") return {};
1127
1129
  const record = body;
1128
- if (typeof record.error === "string") {
1129
- return {
1130
- code: record.error,
1131
- message: typeof record.message === "string" ? record.message : record.error
1132
- };
1133
- }
1134
1130
  if (Array.isArray(record.errors) && record.errors.length > 0) {
1135
1131
  const first = record.errors[0];
1136
1132
  return {
@@ -1182,7 +1178,7 @@ function normalizeError(status, body, response) {
1182
1178
  case 404:
1183
1179
  return new ResourceNotFoundError(msg, base);
1184
1180
  case 409:
1185
- return new BundleExistsError(msg, base);
1181
+ return code === "E_BUNDLE_ALREADY_EXISTS" ? new BundleExistsError(msg, base) : new ConflictError(msg, base);
1186
1182
  case 422:
1187
1183
  return new ValidationError(msg, { ...base, fieldErrors: extractFieldErrors(body) });
1188
1184
  case 429:
@@ -1656,6 +1652,6 @@ __export(generated_exports, {
1656
1652
  uploadFirmware: () => uploadFirmware
1657
1653
  });
1658
1654
 
1659
- export { AuthenticationError, BadRequestError, BundleExistsError, DeviceRpcError, InsufficientScopeError, NetworkError, OrbitClient, OrbitError, RateLimitError, ResourceNotFoundError, ServerError, ValidationError, WEBHOOK_REPLAY_TOLERANCE_SECONDS, decodeSample, decodeSamples, normalizeError, paginate, parseRetryAfterSeconds, parseWebhookEvent, generated_exports as raw, signWebhookPayload, verifyWebhookSignature };
1655
+ export { AuthenticationError, BadRequestError, BundleExistsError, ConflictError, DeviceRpcError, InsufficientScopeError, NetworkError, OrbitClient, OrbitError, RateLimitError, ResourceNotFoundError, ServerError, ValidationError, WEBHOOK_REPLAY_TOLERANCE_SECONDS, decodeSample, decodeSamples, normalizeError, paginate, parseRetryAfterSeconds, parseWebhookEvent, generated_exports as raw, signWebhookPayload, verifyWebhookSignature };
1660
1656
  //# sourceMappingURL=index.js.map
1661
1657
  //# sourceMappingURL=index.js.map