@fleetless/sdk 5.2.0 → 5.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/README.md +3 -1
- package/dist/index.cjs +132 -68
- package/dist/index.d.cts +57 -2
- package/dist/index.d.ts +57 -2
- package/dist/index.js +132 -68
- package/package.json +2 -2
package/dist/index.d.cts
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;
|
|
@@ -989,7 +1031,7 @@ type RequiredMissingDetails = z.infer<typeof requiredMissingDetails>;
|
|
|
989
1031
|
* list is the shared vocabulary, not a closed set, so a new refusal never
|
|
990
1032
|
* needs a contracts release before it can be reported honestly.
|
|
991
1033
|
*/
|
|
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"];
|
|
1034
|
+
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
1035
|
type ErrorCode = (typeof ERROR_CODES)[number];
|
|
994
1036
|
|
|
995
1037
|
|
|
@@ -1770,7 +1812,14 @@ interface ActionsApi {
|
|
|
1770
1812
|
cancel(robotId: string, slug: string, jobId?: string | null, options?: SendCommandOptions): Promise<Job | null>;
|
|
1771
1813
|
/**
|
|
1772
1814
|
* Subscribes to the slug's job: state, feedback, progress and result, as
|
|
1773
|
-
* they happen.
|
|
1815
|
+
* they happen.
|
|
1816
|
+
*
|
|
1817
|
+
* **A result can be omitted.** The robot sends no frame over 1.5 MiB, so an
|
|
1818
|
+
* action whose result is larger (a map, a point cloud) ends with its state
|
|
1819
|
+
* unchanged — `succeeded` stays `succeeded` — `result: null` and
|
|
1820
|
+
* `job.result_omitted` (`reason: 'too_large'`, the result's `bytes`, the
|
|
1821
|
+
* robot's `limit_bytes`). The robot keeps nothing it did not send; there is
|
|
1822
|
+
* 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
1823
|
* is what makes late delivery after a reconnect and a second observer
|
|
1775
1824
|
* watching the same job both work without special-casing either. Naming a
|
|
1776
1825
|
* job to `cancel` does not change this: a slug is still a *place a job may
|
|
@@ -3521,6 +3570,12 @@ interface ServicesApi {
|
|
|
3521
3570
|
* no feedback, no progress, no cancel — so this call already waits for
|
|
3522
3571
|
* the terminal state internally.
|
|
3523
3572
|
*
|
|
3573
|
+
* **A response over 1.5 MiB as JSON resolves as `null`.** The robot sends
|
|
3574
|
+
* no larger frame, so the call still succeeds and its job carries
|
|
3575
|
+
* `result_omitted` (`reason: 'too_large'`, the response's `bytes`) beside a
|
|
3576
|
+
* `null` result; the REST answer carries the same field. Expose a smaller
|
|
3577
|
+
* response if the value matters.
|
|
3578
|
+
*
|
|
3524
3579
|
* `options.patienceMs` bounds the **whole wait** for a service call —
|
|
3525
3580
|
* unlike an action, where it bounds acceptance only — because a service
|
|
3526
3581
|
* has no further state to observe once it settles; the platform gives up
|
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;
|
|
@@ -989,7 +1031,7 @@ type RequiredMissingDetails = z.infer<typeof requiredMissingDetails>;
|
|
|
989
1031
|
* list is the shared vocabulary, not a closed set, so a new refusal never
|
|
990
1032
|
* needs a contracts release before it can be reported honestly.
|
|
991
1033
|
*/
|
|
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"];
|
|
1034
|
+
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
1035
|
type ErrorCode = (typeof ERROR_CODES)[number];
|
|
994
1036
|
|
|
995
1037
|
|
|
@@ -1770,7 +1812,14 @@ interface ActionsApi {
|
|
|
1770
1812
|
cancel(robotId: string, slug: string, jobId?: string | null, options?: SendCommandOptions): Promise<Job | null>;
|
|
1771
1813
|
/**
|
|
1772
1814
|
* Subscribes to the slug's job: state, feedback, progress and result, as
|
|
1773
|
-
* they happen.
|
|
1815
|
+
* they happen.
|
|
1816
|
+
*
|
|
1817
|
+
* **A result can be omitted.** The robot sends no frame over 1.5 MiB, so an
|
|
1818
|
+
* action whose result is larger (a map, a point cloud) ends with its state
|
|
1819
|
+
* unchanged — `succeeded` stays `succeeded` — `result: null` and
|
|
1820
|
+
* `job.result_omitted` (`reason: 'too_large'`, the result's `bytes`, the
|
|
1821
|
+
* robot's `limit_bytes`). The robot keeps nothing it did not send; there is
|
|
1822
|
+
* 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
1823
|
* is what makes late delivery after a reconnect and a second observer
|
|
1775
1824
|
* watching the same job both work without special-casing either. Naming a
|
|
1776
1825
|
* job to `cancel` does not change this: a slug is still a *place a job may
|
|
@@ -3521,6 +3570,12 @@ interface ServicesApi {
|
|
|
3521
3570
|
* no feedback, no progress, no cancel — so this call already waits for
|
|
3522
3571
|
* the terminal state internally.
|
|
3523
3572
|
*
|
|
3573
|
+
* **A response over 1.5 MiB as JSON resolves as `null`.** The robot sends
|
|
3574
|
+
* no larger frame, so the call still succeeds and its job carries
|
|
3575
|
+
* `result_omitted` (`reason: 'too_large'`, the response's `bytes`) beside a
|
|
3576
|
+
* `null` result; the REST answer carries the same field. Expose a smaller
|
|
3577
|
+
* response if the value matters.
|
|
3578
|
+
*
|
|
3524
3579
|
* `options.patienceMs` bounds the **whole wait** for a service call —
|
|
3525
3580
|
* unlike an action, where it bounds acceptance only — because a service
|
|
3526
3581
|
* has no further state to observe once it settles; the platform gives up
|