@fleetless/sdk 5.2.0 → 5.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +18 -0
- package/README.md +3 -1
- package/dist/index.cjs +1310 -1090
- package/dist/index.d.cts +205 -7
- package/dist/index.d.ts +205 -7
- package/dist/index.js +1308 -1090
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -152,6 +152,13 @@ declare const job: z.ZodObject<{
|
|
|
152
152
|
updated_at: z.ZodISODateTime;
|
|
153
153
|
seq: z.ZodNumber;
|
|
154
154
|
result: z.ZodNullable<z.ZodUnknown>;
|
|
155
|
+
result_omitted: z.ZodOptional<z.ZodObject<{
|
|
156
|
+
reason: z.ZodEnum<{
|
|
157
|
+
too_large: "too_large";
|
|
158
|
+
}>;
|
|
159
|
+
bytes: z.ZodNumber;
|
|
160
|
+
limit_bytes: z.ZodNumber;
|
|
161
|
+
}, z.core.$strip>>;
|
|
155
162
|
error: z.ZodNullable<z.ZodObject<{
|
|
156
163
|
code: z.ZodString;
|
|
157
164
|
message: z.ZodString;
|
|
@@ -192,6 +199,13 @@ declare const jobEvent: z.ZodObject<{
|
|
|
192
199
|
updated_at: z.ZodISODateTime;
|
|
193
200
|
seq: z.ZodNumber;
|
|
194
201
|
result: z.ZodNullable<z.ZodUnknown>;
|
|
202
|
+
result_omitted: z.ZodOptional<z.ZodObject<{
|
|
203
|
+
reason: z.ZodEnum<{
|
|
204
|
+
too_large: "too_large";
|
|
205
|
+
}>;
|
|
206
|
+
bytes: z.ZodNumber;
|
|
207
|
+
limit_bytes: z.ZodNumber;
|
|
208
|
+
}, z.core.$strip>>;
|
|
195
209
|
error: z.ZodNullable<z.ZodObject<{
|
|
196
210
|
code: z.ZodString;
|
|
197
211
|
message: z.ZodString;
|
|
@@ -200,6 +214,13 @@ declare const jobEvent: z.ZodObject<{
|
|
|
200
214
|
}, z.core.$strip>;
|
|
201
215
|
feedback: z.ZodNullable<z.ZodUnknown>;
|
|
202
216
|
progress: z.ZodNullable<z.ZodNumber>;
|
|
217
|
+
result_omitted: z.ZodOptional<z.ZodObject<{
|
|
218
|
+
reason: z.ZodEnum<{
|
|
219
|
+
too_large: "too_large";
|
|
220
|
+
}>;
|
|
221
|
+
bytes: z.ZodNumber;
|
|
222
|
+
limit_bytes: z.ZodNumber;
|
|
223
|
+
}, z.core.$strip>>;
|
|
203
224
|
timestamp_ms: z.ZodNumber;
|
|
204
225
|
}, z.core.$strip>;
|
|
205
226
|
type JobEvent = z.infer<typeof jobEvent>;
|
|
@@ -233,6 +254,13 @@ declare const busyDetails: z.ZodObject<{
|
|
|
233
254
|
updated_at: z.ZodISODateTime;
|
|
234
255
|
seq: z.ZodNumber;
|
|
235
256
|
result: z.ZodNullable<z.ZodUnknown>;
|
|
257
|
+
result_omitted: z.ZodOptional<z.ZodObject<{
|
|
258
|
+
reason: z.ZodEnum<{
|
|
259
|
+
too_large: "too_large";
|
|
260
|
+
}>;
|
|
261
|
+
bytes: z.ZodNumber;
|
|
262
|
+
limit_bytes: z.ZodNumber;
|
|
263
|
+
}, z.core.$strip>>;
|
|
236
264
|
error: z.ZodNullable<z.ZodObject<{
|
|
237
265
|
code: z.ZodString;
|
|
238
266
|
message: z.ZodString;
|
|
@@ -268,6 +296,13 @@ declare const jobRun: z.ZodObject<{
|
|
|
268
296
|
ended_at: z.ZodNullable<z.ZodISODateTime>;
|
|
269
297
|
duration_ms: z.ZodNullable<z.ZodNumber>;
|
|
270
298
|
result: z.ZodNullable<z.ZodUnknown>;
|
|
299
|
+
result_omitted: z.ZodOptional<z.ZodObject<{
|
|
300
|
+
reason: z.ZodEnum<{
|
|
301
|
+
too_large: "too_large";
|
|
302
|
+
}>;
|
|
303
|
+
bytes: z.ZodNumber;
|
|
304
|
+
limit_bytes: z.ZodNumber;
|
|
305
|
+
}, z.core.$strip>>;
|
|
271
306
|
error: z.ZodNullable<z.ZodObject<{
|
|
272
307
|
code: z.ZodString;
|
|
273
308
|
message: z.ZodString;
|
|
@@ -310,6 +345,13 @@ declare const jobRunListResponse: z.ZodObject<{
|
|
|
310
345
|
ended_at: z.ZodNullable<z.ZodISODateTime>;
|
|
311
346
|
duration_ms: z.ZodNullable<z.ZodNumber>;
|
|
312
347
|
result: z.ZodNullable<z.ZodUnknown>;
|
|
348
|
+
result_omitted: z.ZodOptional<z.ZodObject<{
|
|
349
|
+
reason: z.ZodEnum<{
|
|
350
|
+
too_large: "too_large";
|
|
351
|
+
}>;
|
|
352
|
+
bytes: z.ZodNumber;
|
|
353
|
+
limit_bytes: z.ZodNumber;
|
|
354
|
+
}, z.core.$strip>>;
|
|
313
355
|
error: z.ZodNullable<z.ZodObject<{
|
|
314
356
|
code: z.ZodString;
|
|
315
357
|
message: z.ZodString;
|
|
@@ -464,6 +506,43 @@ declare const datapointEvent: z.ZodObject<{
|
|
|
464
506
|
timestamp_ms: z.ZodNumber;
|
|
465
507
|
}, z.core.$strip>;
|
|
466
508
|
type DatapointEvent = z.infer<typeof datapointEvent>;
|
|
509
|
+
/**
|
|
510
|
+
* A change in the health of something the developer configured.
|
|
511
|
+
*
|
|
512
|
+
* The push half of `resourceHealthState`; the REST list is the snapshot half,
|
|
513
|
+
* and neither is useful alone — a page that loads after the change would see
|
|
514
|
+
* nothing, and a page that never reloads would never learn.
|
|
515
|
+
*
|
|
516
|
+
* Delivered on the **developer** socket and scoped to the org, not to a
|
|
517
|
+
* subscription: the whole point is to reach somebody who is *not* currently
|
|
518
|
+
* looking at the thing that broke.
|
|
519
|
+
*/
|
|
520
|
+
/**
|
|
521
|
+
/**
|
|
522
|
+
* Why a live camera session ended.
|
|
523
|
+
*
|
|
524
|
+
* **The reason travels WITH the ending, rather than being read afterwards from
|
|
525
|
+
* a state.** Some of these states are sticky — nothing moves a camera out of
|
|
526
|
+
* `stopped_by_config_change` — so a client that reads the current state at the
|
|
527
|
+
* moment a stream ends reports a configuration change from hours ago as the
|
|
528
|
+
* cause of an unrelated ending.
|
|
529
|
+
*
|
|
530
|
+
* A state read after the fact answers "what is true now". A viewer needs "what
|
|
531
|
+
* happened to my session", and only an event carries that.
|
|
532
|
+
*/
|
|
533
|
+
declare const liveSessionEndReason: z.ZodEnum<{
|
|
534
|
+
unknown: "unknown";
|
|
535
|
+
expired: "expired";
|
|
536
|
+
plan_limit: "plan_limit";
|
|
537
|
+
publish_failed: "publish_failed";
|
|
538
|
+
robot_offline: "robot_offline";
|
|
539
|
+
config_changed: "config_changed";
|
|
540
|
+
revoked: "revoked";
|
|
541
|
+
released_by_peer: "released_by_peer";
|
|
542
|
+
start_refused: "start_refused";
|
|
543
|
+
robot_deleted: "robot_deleted";
|
|
544
|
+
}>;
|
|
545
|
+
type LiveSessionEndReason = z.infer<typeof liveSessionEndReason>;
|
|
467
546
|
/**
|
|
468
547
|
* One change to a record the subscriber can see. `record` is the whole record,
|
|
469
548
|
* up to 1 MB, in the shape the REST routes answer.
|
|
@@ -739,6 +818,17 @@ declare const clientRobotListItem: z.ZodObject<{
|
|
|
739
818
|
health_reason: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
740
819
|
job_query_unanswered: "job_query_unanswered";
|
|
741
820
|
}>>>;
|
|
821
|
+
failsafe: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
822
|
+
ok: "ok";
|
|
823
|
+
failed: "failed";
|
|
824
|
+
}>>>;
|
|
825
|
+
failsafe_reason: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
826
|
+
self_test: "self_test";
|
|
827
|
+
late_fire: "late_fire";
|
|
828
|
+
not_alive: "not_alive";
|
|
829
|
+
crashed: "crashed";
|
|
830
|
+
}>>>;
|
|
831
|
+
failsafe_lateness_ms: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
742
832
|
}, z.core.$strip>;
|
|
743
833
|
published_version: z.ZodNullable<z.ZodNumber>;
|
|
744
834
|
id: z.ZodUUID;
|
|
@@ -897,6 +987,52 @@ declare const assetListResponse: z.ZodObject<{
|
|
|
897
987
|
type AssetListResponse = z.infer<typeof assetListResponse>;
|
|
898
988
|
|
|
899
989
|
|
|
990
|
+
/**
|
|
991
|
+
* Why the robot refused to start a camera's live video, as a class
|
|
992
|
+
* (fleetless/fleetless#1126). The cloud maps the bridge's `error.code` to one
|
|
993
|
+
* of these and to a fixed sentence; the bridge's `error.message` is free text
|
|
994
|
+
* and never leaves the cloud, because a camera password has appeared in one.
|
|
995
|
+
*
|
|
996
|
+
* - `low_bandwidth` — the bridge is in low-bandwidth mode and refuses new
|
|
997
|
+
* streams until the link recovers. Snapshots go on. Not an error.
|
|
998
|
+
* - `source_auth` — the camera source refused the configured credentials.
|
|
999
|
+
* - `source_unreachable` — the camera source could not be reached or used.
|
|
1000
|
+
* - `not_startable` — the bridge could not start this camera's live video
|
|
1001
|
+
* for a reason of its own configuration or encoder; the bridge's log names
|
|
1002
|
+
* it.
|
|
1003
|
+
* - `unknown` — a code this cloud does not know yet.
|
|
1004
|
+
*
|
|
1005
|
+
* A consumer that switches over it has a fallback to keep: the list can
|
|
1006
|
+
* grow in a minor.
|
|
1007
|
+
*/
|
|
1008
|
+
declare const LIVE_START_REFUSALS: readonly ["low_bandwidth", "source_auth", "source_unreachable", "not_startable", "unknown"];
|
|
1009
|
+
declare const liveStartRefusal: z.ZodEnum<{
|
|
1010
|
+
unknown: "unknown";
|
|
1011
|
+
low_bandwidth: "low_bandwidth";
|
|
1012
|
+
source_auth: "source_auth";
|
|
1013
|
+
source_unreachable: "source_unreachable";
|
|
1014
|
+
not_startable: "not_startable";
|
|
1015
|
+
}>;
|
|
1016
|
+
type LiveStartRefusal = z.infer<typeof liveStartRefusal>;
|
|
1017
|
+
/**
|
|
1018
|
+
* The `details` of a `409 camera_offline` refusal of `POST
|
|
1019
|
+
* /api/robots/:id/cameras/:slug/live` (fleetless/fleetless#1126): the robot
|
|
1020
|
+
* already refused the current attempt to start this camera's live video. The
|
|
1021
|
+
* error's `message` is the cloud's fixed sentence for `refusal`, never the
|
|
1022
|
+
* robot's own words.
|
|
1023
|
+
*/
|
|
1024
|
+
declare const cameraOfflineDetails: z.ZodObject<{
|
|
1025
|
+
refusal: z.ZodEnum<{
|
|
1026
|
+
unknown: "unknown";
|
|
1027
|
+
low_bandwidth: "low_bandwidth";
|
|
1028
|
+
source_auth: "source_auth";
|
|
1029
|
+
source_unreachable: "source_unreachable";
|
|
1030
|
+
not_startable: "not_startable";
|
|
1031
|
+
}>;
|
|
1032
|
+
}, z.core.$strip>;
|
|
1033
|
+
type CameraOfflineDetails = z.infer<typeof cameraOfflineDetails>;
|
|
1034
|
+
|
|
1035
|
+
|
|
900
1036
|
/**
|
|
901
1037
|
* One violated parameter rule. `details` on the envelope stays `unknown` — codes
|
|
902
1038
|
* are an open set, so their payloads cannot all be enumerated — but the
|
|
@@ -989,7 +1125,7 @@ type RequiredMissingDetails = z.infer<typeof requiredMissingDetails>;
|
|
|
989
1125
|
* list is the shared vocabulary, not a closed set, so a new refusal never
|
|
990
1126
|
* needs a contracts release before it can be reported honestly.
|
|
991
1127
|
*/
|
|
992
|
-
declare const ERROR_CODES: readonly ["not_found", "validation_error", "bad_request", "unknown_datapoint", "invalid_token", "protocol_mismatch", "bridge_too_old", "invalid_frame", "duplicate_slug", "reserved_slug", "unknown_slug", "unknown_field_path", "unknown_type", "unknown_topic", "invalid_rate", "invalid_range", "config_conflict", "no_data", "robot_offline", "bridge_timeout", "unauthorized", "forbidden", "invalid_credentials", "token_expired", "token_revoked", "email_taken", "identifier_taken", "weak_password", "account_blocked", "busy", "parameter_invalid", "cancel_rejected", "job_lost", "operator_verified_stopped", "job_unknown_to_bridge", "action_server_lost", "action_failed", "goal_rejected", "goal_send_failed", "result_failed", "goal_uncontrollable", "bridge_disconnected", "config_changed", "publisher_busy", "unknown_command", "not_subscribable", "camera_offline", "no_snapshot_yet", "live_unavailable", "wrong_kind", "not_recorded", "not_aggregatable", "quota_exceeded", "credential_in_use", "goal_timeout", "robot_in_use", "robot_deletion_partial", "job_queue_full", "invalid_uuid", "rate_limited", "tier_required", "token_spent", "service_timeout", "asset_missing", "dynamic_registration_disabled", "client_limit_reached", "idp_unavailable", "mcp_disabled", "tool_not_available", "capability_required", "last_owner", "role_cycle", "role_key_taken", "confirmation_required", "target_state_conflict", "job_state_conflict", "signup_closed", "draft_not_a_document", "internal_error", "not_cancellable", "unsupported_media_type", "wrong_browser", "invalid_yaml", "unstorable_yaml", "registration_closed", "domain_not_allowed", "email_unverified", "origin_not_allowed", "template_invalid", "provider_disabled", "provider_misconfigured", "invalid_redirect_uri", "interaction_expired", "invalid_code", "method_not_allowed", "plan_limit", "plan_required", "org_locked", "file_too_large", "billing_unavailable", "legal_offer_unavailable", "payment_provider_unavailable", "history_migrating", "billing_documents_unavailable", "support_read_only", "support_forbidden", "logo_draw_unavailable", "plan_purchase_closed", "record_referenced", "record_changed", "collection_not_found", "collection_removed", "reference_invalid", "required_missing", "robot_not_attached"];
|
|
1128
|
+
declare const ERROR_CODES: readonly ["not_found", "validation_error", "bad_request", "unknown_datapoint", "invalid_token", "protocol_mismatch", "bridge_too_old", "invalid_frame", "duplicate_slug", "reserved_slug", "unknown_slug", "unknown_field_path", "datapoint_large_message", "unknown_type", "unknown_topic", "invalid_rate", "invalid_range", "config_conflict", "no_data", "robot_offline", "bridge_timeout", "unauthorized", "forbidden", "invalid_credentials", "token_expired", "token_revoked", "email_taken", "identifier_taken", "weak_password", "account_blocked", "busy", "parameter_invalid", "cancel_rejected", "job_lost", "operator_verified_stopped", "job_unknown_to_bridge", "action_server_lost", "action_failed", "goal_rejected", "goal_send_failed", "result_failed", "goal_uncontrollable", "bridge_disconnected", "config_changed", "publisher_busy", "unknown_command", "not_subscribable", "camera_offline", "no_snapshot_yet", "live_unavailable", "wrong_kind", "not_recorded", "not_aggregatable", "quota_exceeded", "credential_in_use", "goal_timeout", "robot_in_use", "robot_deletion_partial", "job_queue_full", "invalid_uuid", "rate_limited", "tier_required", "token_spent", "service_timeout", "asset_missing", "dynamic_registration_disabled", "client_limit_reached", "idp_unavailable", "mcp_disabled", "tool_not_available", "capability_required", "last_owner", "role_cycle", "role_key_taken", "confirmation_required", "target_state_conflict", "job_state_conflict", "signup_closed", "draft_not_a_document", "internal_error", "not_cancellable", "unsupported_media_type", "wrong_browser", "invalid_yaml", "unstorable_yaml", "registration_closed", "domain_not_allowed", "email_unverified", "origin_not_allowed", "template_invalid", "provider_disabled", "provider_misconfigured", "invalid_redirect_uri", "interaction_expired", "invalid_code", "method_not_allowed", "plan_limit", "plan_required", "org_locked", "file_too_large", "billing_unavailable", "legal_offer_unavailable", "payment_provider_unavailable", "history_migrating", "billing_documents_unavailable", "support_read_only", "support_forbidden", "logo_draw_unavailable", "plan_purchase_closed", "record_referenced", "record_changed", "collection_not_found", "collection_removed", "reference_invalid", "required_missing", "robot_not_attached"];
|
|
993
1129
|
type ErrorCode = (typeof ERROR_CODES)[number];
|
|
994
1130
|
|
|
995
1131
|
|
|
@@ -1770,7 +1906,14 @@ interface ActionsApi {
|
|
|
1770
1906
|
cancel(robotId: string, slug: string, jobId?: string | null, options?: SendCommandOptions): Promise<Job | null>;
|
|
1771
1907
|
/**
|
|
1772
1908
|
* Subscribes to the slug's job: state, feedback, progress and result, as
|
|
1773
|
-
* they happen.
|
|
1909
|
+
* they happen.
|
|
1910
|
+
*
|
|
1911
|
+
* **A result can be omitted.** The robot sends no frame over 1.5 MiB, so an
|
|
1912
|
+
* action whose result is larger (a map, a point cloud) ends with its state
|
|
1913
|
+
* unchanged — `succeeded` stays `succeeded` — `result: null` and
|
|
1914
|
+
* `job.result_omitted` (`reason: 'too_large'`, the result's `bytes`, the
|
|
1915
|
+
* robot's `limit_bytes`). The robot keeps nothing it did not send; there is
|
|
1916
|
+
* no later way to fetch it. Feedback too large to send arrives as `null`. State is observed **by slug**, not by job id — this
|
|
1774
1917
|
* is what makes late delivery after a reconnect and a second observer
|
|
1775
1918
|
* watching the same job both work without special-casing either. Naming a
|
|
1776
1919
|
* job to `cancel` does not change this: a slug is still a *place a job may
|
|
@@ -2720,6 +2863,33 @@ interface AuthApi {
|
|
|
2720
2863
|
revokeMcpGrant(clientId: string): Promise<void>;
|
|
2721
2864
|
}
|
|
2722
2865
|
|
|
2866
|
+
/**
|
|
2867
|
+
* Why a live camera session ended, as the cloud told the holder
|
|
2868
|
+
* (`live_session` on the realtime channel). What `CameraLiveSession.onEnded`
|
|
2869
|
+
* hands its handler.
|
|
2870
|
+
*/
|
|
2871
|
+
interface CameraLiveEnded {
|
|
2872
|
+
/**
|
|
2873
|
+
* Why it ended. `start_refused`: the robot refused to start the camera's
|
|
2874
|
+
* live video (the first start, or the restart after a bridge reconnect);
|
|
2875
|
+
* `publish_failed`: a running stream stopped. A newer cloud may send a reason this version does
|
|
2876
|
+
* not name yet; treat an unknown one as `unknown`.
|
|
2877
|
+
*/
|
|
2878
|
+
reason: LiveSessionEndReason;
|
|
2879
|
+
/**
|
|
2880
|
+
* A sentence the cloud wrote, safe to show a person, or `null`. Never the
|
|
2881
|
+
* robot's own words. With `start_refused` it says why, e.g. "The robot's
|
|
2882
|
+
* link is weak, so live video is paused. Snapshots go on."
|
|
2883
|
+
*/
|
|
2884
|
+
detail: string | null;
|
|
2885
|
+
/**
|
|
2886
|
+
* With `start_refused`, the refusal as a class: `low_bandwidth`,
|
|
2887
|
+
* `source_auth`, `source_unreachable`, `not_startable` or `unknown`.
|
|
2888
|
+
* `null` for every other reason.
|
|
2889
|
+
*/
|
|
2890
|
+
refusal: LiveStartRefusal | null;
|
|
2891
|
+
}
|
|
2892
|
+
|
|
2723
2893
|
/**
|
|
2724
2894
|
* The snapshot's metadata alone, without the bytes. All fields
|
|
2725
2895
|
* are `null` together when nothing has been captured yet for this camera —
|
|
@@ -2828,11 +2998,32 @@ interface CameraLiveSession {
|
|
|
2828
2998
|
* new, additive signal to design, not a change to this method's contract.
|
|
2829
2999
|
*/
|
|
2830
3000
|
release(): Promise<void>;
|
|
3001
|
+
/**
|
|
3002
|
+
* Calls `handler` once when the cloud ends **this** session, with why:
|
|
3003
|
+
* `{ reason, detail, refusal }`. Returns the function that stops listening.
|
|
3004
|
+
*
|
|
3005
|
+
* The ending that matters most is `start_refused`: the robot refused to
|
|
3006
|
+
* start the camera's live video (a weak link, a source that refuses the
|
|
3007
|
+
* credentials or cannot be reached), so the `Room` would never receive a
|
|
3008
|
+
* track. `detail` is a sentence safe to show, `refusal` the class. Other
|
|
3009
|
+
* endings: `publish_failed` (it stopped after starting), `config_changed`,
|
|
3010
|
+
* `robot_offline`, `revoked`, `released_by_peer` and the rest of
|
|
3011
|
+
* `LiveSessionEndReason`.
|
|
3012
|
+
*
|
|
3013
|
+
* It listens on the client's realtime channel, which `live()` opens and
|
|
3014
|
+
* waits for before taking the hold, so an ending that comes at once is not
|
|
3015
|
+
* missed; one that came before this call is delivered right away. If the
|
|
3016
|
+
* channel cannot connect (no WebSocket in the environment, say), the
|
|
3017
|
+
* handler is never called. Disconnect the `Room` and call `release()` in
|
|
3018
|
+
* the handler as after any other ending.
|
|
3019
|
+
*/
|
|
3020
|
+
onEnded(handler: (ended: CameraLiveEnded) => void): () => void;
|
|
2831
3021
|
}
|
|
2832
3022
|
/**
|
|
2833
3023
|
* A robot's cameras, reachable as `client.cameras`: what exists, the latest
|
|
2834
|
-
* still frame, and a live video session. All of it is REST
|
|
2835
|
-
* channel
|
|
3024
|
+
* still frame, and a live video session. All of it is REST, except that
|
|
3025
|
+
* `live()` opens the realtime channel so `onEnded` can hear why a session
|
|
3026
|
+
* ended.
|
|
2836
3027
|
*/
|
|
2837
3028
|
interface CamerasApi {
|
|
2838
3029
|
/** Every camera exposed on this robot, as descriptors — the same per-robot list the other kinds use. */
|
|
@@ -3521,6 +3712,12 @@ interface ServicesApi {
|
|
|
3521
3712
|
* no feedback, no progress, no cancel — so this call already waits for
|
|
3522
3713
|
* the terminal state internally.
|
|
3523
3714
|
*
|
|
3715
|
+
* **A response over 1.5 MiB as JSON resolves as `null`.** The robot sends
|
|
3716
|
+
* no larger frame, so the call still succeeds and its job carries
|
|
3717
|
+
* `result_omitted` (`reason: 'too_large'`, the response's `bytes`) beside a
|
|
3718
|
+
* `null` result; the REST answer carries the same field. Expose a smaller
|
|
3719
|
+
* response if the value matters.
|
|
3720
|
+
*
|
|
3524
3721
|
* `options.patienceMs` bounds the **whole wait** for a service call —
|
|
3525
3722
|
* unlike an action, where it bounds acceptance only — because a service
|
|
3526
3723
|
* has no further state to observe once it settles; the platform gives up
|
|
@@ -3643,7 +3840,7 @@ interface FleetlessClient {
|
|
|
3643
3840
|
* Closes the realtime channel and stops it from reconnecting. Safe with
|
|
3644
3841
|
* no subscription ever made, and safe to call twice. A Node script (the
|
|
3645
3842
|
* exact use case `serverKey` is for) that never calls this after
|
|
3646
|
-
* subscribing will not exit on its own — an open WebSocket keeps the
|
|
3843
|
+
* subscribing or after `cameras.live()` will not exit on its own — an open WebSocket keeps the
|
|
3647
3844
|
* event loop alive. `auth.logout()` calls this automatically; call it
|
|
3648
3845
|
* yourself if the process should exit without logging out (e.g. a
|
|
3649
3846
|
* server-side shutdown).
|
|
@@ -3660,8 +3857,9 @@ interface FleetlessClient {
|
|
|
3660
3857
|
* as exactly one.
|
|
3661
3858
|
*
|
|
3662
3859
|
* Nothing is fetched here: the realtime channel opens on the first
|
|
3663
|
-
* subscription and closes on `close()` or
|
|
3860
|
+
* subscription or the first `cameras.live()`, and closes on `close()` or
|
|
3861
|
+
* `auth.logout()`.
|
|
3664
3862
|
*/
|
|
3665
3863
|
declare function createClient(options: FleetlessClientOptions): FleetlessClient;
|
|
3666
3864
|
|
|
3667
|
-
export { type AcceptInvitationOptions, type ActionsApi, type Asset, type AssetBytes, type AssetListResponse, type AssetsApi, type AuthApi, type BeginOidcLoginOptions, type BeginTwoFactorSetupOptions, type BusyDetails, CANCEL_RETURN_CODES, type CameraDescriptor, type CameraLiveSession, type CameraSnapshot, type CameraSnapshotMeta, type CamerasApi, type CancelRejectedDetails, type CancelReturnCode, type ClientIdentity, type ClientMcpInteraction, type ClientOidcErrorCode, type ClientRobotListItem, type CollectionActor, type CollectionBinding, type CollectionDefinition, type CollectionDefinitions, type CollectionEvent, type CollectionField, type CollectionHistoryOptions, type CollectionHistoryPage, type CollectionListOptions, type CollectionPage, type CollectionRecord, type CollectionRevision, type CollectionSubscribeOptions, type CollectionsApi, type CompleteOidcLoginOptions, type ConfirmTwoFactorSetupOptions, type CreateMeshLoaderOptions, type CredentialSource, type DatapointEvent, type DatapointSubscription, type DatapointSubscriptionHandlers, type DatapointValue, type DatapointsApi, type FleetlessClient, type FleetlessClientConfig, type FleetlessClientOptions, FleetlessError, type FleetlessErrorCode, type FleetlessErrorOptions, type HistoryAggregation, type HistoryBucketsResponse, type HistoryOptions, type HistorySamplesResponse, InMemoryTokenStore, type InvokeOptions, type Job, type JobEvent, type JobHistoryOptions, type JobOrigin, type JobRun, type JobRunListResponse, type JobState, type JobSubscription, type JobSubscriptionHandlers, type JobsApi, type McpCapabilities, type McpConsentGrant, type McpExposure, type McpInteractionDecision, type McpRobotDatasheet, type MeshLoaderDelegate, type OidcLoginRequest, type ParameterInvalidDetails, type ParameterViolation, type PrepareUrdfSceneOptions, type ProviderButton, type PublishersApi, type RateLimitDetails, type RecordChangedDetails, type RecordReferencedDetails, type ReferenceInvalidDetails, type RegisterOptions, type RequiredMissingDetails, type RobotsApi, SDK_ERROR_CODES, type SdkErrorCode, type SendCommandOptions, type ServicesApi, type SignInMethods, type SignInResult, type StoredSession, type TokenStore, type TwoFactorSetup, type TwoFactorSetupConfirmation, type UrdfCompleteness, type UrdfSceneManager, type UrdfSceneResources, type VerifyTwoFactorOptions, cancelRejectedDetails, createClient, parameterInvalidDetails, recordChangedDetails, recordReferencedDetails, referenceInvalidDetails, requiredMissingDetails };
|
|
3865
|
+
export { type AcceptInvitationOptions, type ActionsApi, type Asset, type AssetBytes, type AssetListResponse, type AssetsApi, type AuthApi, type BeginOidcLoginOptions, type BeginTwoFactorSetupOptions, type BusyDetails, CANCEL_RETURN_CODES, type CameraDescriptor, type CameraLiveEnded, type CameraLiveSession, type CameraOfflineDetails, type CameraSnapshot, type CameraSnapshotMeta, type CamerasApi, type CancelRejectedDetails, type CancelReturnCode, type ClientIdentity, type ClientMcpInteraction, type ClientOidcErrorCode, type ClientRobotListItem, type CollectionActor, type CollectionBinding, type CollectionDefinition, type CollectionDefinitions, type CollectionEvent, type CollectionField, type CollectionHistoryOptions, type CollectionHistoryPage, type CollectionListOptions, type CollectionPage, type CollectionRecord, type CollectionRevision, type CollectionSubscribeOptions, type CollectionsApi, type CompleteOidcLoginOptions, type ConfirmTwoFactorSetupOptions, type CreateMeshLoaderOptions, type CredentialSource, type DatapointEvent, type DatapointSubscription, type DatapointSubscriptionHandlers, type DatapointValue, type DatapointsApi, type FleetlessClient, type FleetlessClientConfig, type FleetlessClientOptions, FleetlessError, type FleetlessErrorCode, type FleetlessErrorOptions, type HistoryAggregation, type HistoryBucketsResponse, type HistoryOptions, type HistorySamplesResponse, InMemoryTokenStore, type InvokeOptions, type Job, type JobEvent, type JobHistoryOptions, type JobOrigin, type JobRun, type JobRunListResponse, type JobState, type JobSubscription, type JobSubscriptionHandlers, type JobsApi, LIVE_START_REFUSALS, type LiveSessionEndReason, type LiveStartRefusal, type McpCapabilities, type McpConsentGrant, type McpExposure, type McpInteractionDecision, type McpRobotDatasheet, type MeshLoaderDelegate, type OidcLoginRequest, type ParameterInvalidDetails, type ParameterViolation, type PrepareUrdfSceneOptions, type ProviderButton, type PublishersApi, type RateLimitDetails, type RecordChangedDetails, type RecordReferencedDetails, type ReferenceInvalidDetails, type RegisterOptions, type RequiredMissingDetails, type RobotsApi, SDK_ERROR_CODES, type SdkErrorCode, type SendCommandOptions, type ServicesApi, type SignInMethods, type SignInResult, type StoredSession, type TokenStore, type TwoFactorSetup, type TwoFactorSetupConfirmation, type UrdfCompleteness, type UrdfSceneManager, type UrdfSceneResources, type VerifyTwoFactorOptions, cameraOfflineDetails, cancelRejectedDetails, createClient, parameterInvalidDetails, recordChangedDetails, recordReferencedDetails, referenceInvalidDetails, requiredMissingDetails };
|