@fleetless/sdk 5.1.0 → 5.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/CHANGELOG.md +10 -0
- package/README.md +1 -2
- package/dist/index.cjs +664 -170
- package/dist/index.d.cts +15 -3
- package/dist/index.d.ts +15 -3
- package/dist/index.js +664 -170
- package/package.json +2 -2
package/dist/index.d.cts
CHANGED
|
@@ -614,19 +614,30 @@ type ClientOidcErrorCode = z.infer<typeof clientOidcErrorCode>;
|
|
|
614
614
|
* MCP sign-in instead, which reads and decides the same interaction.
|
|
615
615
|
*
|
|
616
616
|
* `client_name_verified` is `z.literal(false)`, and that is the whole point of
|
|
617
|
-
* the field. The name comes from an **unauthenticated** dynamic registration
|
|
618
|
-
*
|
|
617
|
+
* the field. The name comes from an **unauthenticated** dynamic registration,
|
|
618
|
+
* or from a Client ID Metadata Document the client published about itself —
|
|
619
|
+
* either way the client typed it, nobody checked it — so a consent screen
|
|
619
620
|
* that rendered it as though it were an identity would be teaching people to
|
|
620
621
|
* trust a string an attacker chooses. A literal rather than a boolean because
|
|
621
622
|
* there is no verified case to distinguish: an app that reads this field at all
|
|
622
623
|
* has to handle the untrusted one, and a `true` branch would be dead code
|
|
623
624
|
* pretending to be a safeguard.
|
|
625
|
+
*
|
|
626
|
+
* **What was checked is `client_id_host`, and only for a metadata-document
|
|
627
|
+
* client**: the authorization server fetched the document from that host over
|
|
628
|
+
* HTTPS, and the document named the URL it was fetched from. That proves who
|
|
629
|
+
* controls the domain, nothing about the name. A consent screen shows the
|
|
630
|
+
* domain beside the name, and the redirect host beside both, because the
|
|
631
|
+
* redirect host is where the authorization code goes.
|
|
624
632
|
*/
|
|
625
633
|
declare const clientMcpInteraction: z.ZodObject<{
|
|
626
634
|
id: z.ZodString;
|
|
627
635
|
app_id: z.ZodUUID;
|
|
628
636
|
client_name: z.ZodNullable<z.ZodString>;
|
|
629
637
|
client_name_verified: z.ZodLiteral<false>;
|
|
638
|
+
client_id_host: z.ZodNullable<z.ZodString>;
|
|
639
|
+
redirect_uri_host: z.ZodString;
|
|
640
|
+
redirect_uri_loopback: z.ZodBoolean;
|
|
630
641
|
scopes: z.ZodArray<z.ZodString>;
|
|
631
642
|
already_granted: z.ZodBoolean;
|
|
632
643
|
expires_at: z.ZodISODateTime;
|
|
@@ -656,6 +667,7 @@ type ClientMcpInteraction = z.infer<typeof clientMcpInteraction>;
|
|
|
656
667
|
*/
|
|
657
668
|
declare const mcpConsentGrant: z.ZodObject<{
|
|
658
669
|
client_id: z.ZodString;
|
|
670
|
+
client_id_host: z.ZodNullable<z.ZodString>;
|
|
659
671
|
client_name: z.ZodNullable<z.ZodString>;
|
|
660
672
|
client_name_verified: z.ZodLiteral<false>;
|
|
661
673
|
granted_at: z.ZodISODateTime;
|
|
@@ -977,7 +989,7 @@ type RequiredMissingDetails = z.infer<typeof requiredMissingDetails>;
|
|
|
977
989
|
* list is the shared vocabulary, not a closed set, so a new refusal never
|
|
978
990
|
* needs a contracts release before it can be reported honestly.
|
|
979
991
|
*/
|
|
980
|
-
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", "record_referenced", "record_changed", "collection_not_found", "collection_removed", "reference_invalid", "required_missing", "robot_not_attached"];
|
|
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"];
|
|
981
993
|
type ErrorCode = (typeof ERROR_CODES)[number];
|
|
982
994
|
|
|
983
995
|
|
package/dist/index.d.ts
CHANGED
|
@@ -614,19 +614,30 @@ type ClientOidcErrorCode = z.infer<typeof clientOidcErrorCode>;
|
|
|
614
614
|
* MCP sign-in instead, which reads and decides the same interaction.
|
|
615
615
|
*
|
|
616
616
|
* `client_name_verified` is `z.literal(false)`, and that is the whole point of
|
|
617
|
-
* the field. The name comes from an **unauthenticated** dynamic registration
|
|
618
|
-
*
|
|
617
|
+
* the field. The name comes from an **unauthenticated** dynamic registration,
|
|
618
|
+
* or from a Client ID Metadata Document the client published about itself —
|
|
619
|
+
* either way the client typed it, nobody checked it — so a consent screen
|
|
619
620
|
* that rendered it as though it were an identity would be teaching people to
|
|
620
621
|
* trust a string an attacker chooses. A literal rather than a boolean because
|
|
621
622
|
* there is no verified case to distinguish: an app that reads this field at all
|
|
622
623
|
* has to handle the untrusted one, and a `true` branch would be dead code
|
|
623
624
|
* pretending to be a safeguard.
|
|
625
|
+
*
|
|
626
|
+
* **What was checked is `client_id_host`, and only for a metadata-document
|
|
627
|
+
* client**: the authorization server fetched the document from that host over
|
|
628
|
+
* HTTPS, and the document named the URL it was fetched from. That proves who
|
|
629
|
+
* controls the domain, nothing about the name. A consent screen shows the
|
|
630
|
+
* domain beside the name, and the redirect host beside both, because the
|
|
631
|
+
* redirect host is where the authorization code goes.
|
|
624
632
|
*/
|
|
625
633
|
declare const clientMcpInteraction: z.ZodObject<{
|
|
626
634
|
id: z.ZodString;
|
|
627
635
|
app_id: z.ZodUUID;
|
|
628
636
|
client_name: z.ZodNullable<z.ZodString>;
|
|
629
637
|
client_name_verified: z.ZodLiteral<false>;
|
|
638
|
+
client_id_host: z.ZodNullable<z.ZodString>;
|
|
639
|
+
redirect_uri_host: z.ZodString;
|
|
640
|
+
redirect_uri_loopback: z.ZodBoolean;
|
|
630
641
|
scopes: z.ZodArray<z.ZodString>;
|
|
631
642
|
already_granted: z.ZodBoolean;
|
|
632
643
|
expires_at: z.ZodISODateTime;
|
|
@@ -656,6 +667,7 @@ type ClientMcpInteraction = z.infer<typeof clientMcpInteraction>;
|
|
|
656
667
|
*/
|
|
657
668
|
declare const mcpConsentGrant: z.ZodObject<{
|
|
658
669
|
client_id: z.ZodString;
|
|
670
|
+
client_id_host: z.ZodNullable<z.ZodString>;
|
|
659
671
|
client_name: z.ZodNullable<z.ZodString>;
|
|
660
672
|
client_name_verified: z.ZodLiteral<false>;
|
|
661
673
|
granted_at: z.ZodISODateTime;
|
|
@@ -977,7 +989,7 @@ type RequiredMissingDetails = z.infer<typeof requiredMissingDetails>;
|
|
|
977
989
|
* list is the shared vocabulary, not a closed set, so a new refusal never
|
|
978
990
|
* needs a contracts release before it can be reported honestly.
|
|
979
991
|
*/
|
|
980
|
-
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", "record_referenced", "record_changed", "collection_not_found", "collection_removed", "reference_invalid", "required_missing", "robot_not_attached"];
|
|
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"];
|
|
981
993
|
type ErrorCode = (typeof ERROR_CODES)[number];
|
|
982
994
|
|
|
983
995
|
|