@spacefast/common 0.0.3 → 0.0.5
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/contracts/access.d.ts +4 -4
- package/dist/contracts/activity.d.ts +4 -4
- package/dist/contracts/annotations.d.ts +1 -1
- package/dist/contracts/api-keys.d.ts +6 -6
- package/dist/contracts/archives.d.ts +14 -14
- package/dist/contracts/billing.d.ts +21 -21
- package/dist/contracts/builds.d.ts +8 -8
- package/dist/contracts/channels.d.ts +2 -2
- package/dist/contracts/common.d.ts +5 -5
- package/dist/contracts/continuation.d.ts +66 -0
- package/dist/contracts/continuation.js +91 -0
- package/dist/contracts/deployments.d.ts +18 -18
- package/dist/contracts/device-auth.d.ts +6 -6
- package/dist/contracts/domains.d.ts +247 -247
- package/dist/contracts/enums.d.ts +2 -2
- package/dist/contracts/error-code-meta.d.ts +12 -0
- package/dist/contracts/error-code-meta.js +3 -0
- package/dist/contracts/error-codes.d.ts +1 -1
- package/dist/contracts/error-codes.js +3 -0
- package/dist/contracts/events.d.ts +12 -12
- package/dist/contracts/features.d.ts +17 -17
- package/dist/contracts/git.d.ts +3 -3
- package/dist/contracts/internal.d.ts +3 -3
- package/dist/contracts/mcp.d.ts +34 -34
- package/dist/contracts/me.d.ts +8 -8
- package/dist/contracts/operations.d.ts +2 -2
- package/dist/contracts/plan-policy.d.ts +4 -4
- package/dist/contracts/platform.d.ts +3 -3
- package/dist/contracts/repository-connections.d.ts +5 -5
- package/dist/contracts/resources.d.ts +15 -15
- package/dist/contracts/runtime-api.d.ts +4 -4
- package/dist/contracts/sites.d.ts +26 -26
- package/dist/contracts/spaces.d.ts +179 -89
- package/dist/contracts/spaces.js +57 -3
- package/dist/contracts/superadmin-emails.d.ts +3 -3
- package/dist/contracts/superadmin-queues.d.ts +58 -58
- package/dist/contracts/superadmin-spaces.d.ts +275 -9
- package/dist/contracts/superadmin-spaces.js +24 -0
- package/dist/contracts/superadmin-tenants.d.ts +8 -8
- package/dist/contracts/superadmin.d.ts +12 -12
- package/dist/contracts/tags.d.ts +38 -38
- package/dist/contracts/teams.d.ts +26 -8
- package/dist/contracts/teams.js +20 -0
- package/dist/contracts/transfers.d.ts +9 -9
- package/dist/contracts/variables.d.ts +14 -14
- package/dist/contracts/webhooks.d.ts +4 -4
- package/dist/contracts/zero.d.ts +8 -8
- package/dist/docs/agent-prose.js +8 -4
- package/dist/docs/agent-setup.js +3 -2
- package/dist/docs/error-docs.js +12 -0
- package/dist/utils/query-keys.d.ts +2 -2
- package/dist/utils/static-runtime-policy.d.ts +21 -0
- package/dist/utils/static-runtime-policy.js +119 -3
- package/package.json +1 -1
|
@@ -69,12 +69,12 @@ export declare const siteClass: z.ZodEnum<{
|
|
|
69
69
|
}>;
|
|
70
70
|
export declare const publishSourceKindValues: readonly ["direct_upload", "cli", "dashboard", "api", "git", "import", "agent", "build", "variable_update", "config_update"];
|
|
71
71
|
export declare const publishSourceKind: z.ZodEnum<{
|
|
72
|
+
api: "api";
|
|
73
|
+
dashboard: "dashboard";
|
|
72
74
|
build: "build";
|
|
73
75
|
agent: "agent";
|
|
74
|
-
api: "api";
|
|
75
76
|
direct_upload: "direct_upload";
|
|
76
77
|
cli: "cli";
|
|
77
|
-
dashboard: "dashboard";
|
|
78
78
|
git: "git";
|
|
79
79
|
import: "import";
|
|
80
80
|
variable_update: "variable_update";
|
|
@@ -492,6 +492,10 @@ export declare const ERROR_CODE_META: {
|
|
|
492
492
|
readonly retryable: false;
|
|
493
493
|
readonly recovery: "re_auth";
|
|
494
494
|
};
|
|
495
|
+
readonly invalid_continuation_token: {
|
|
496
|
+
readonly retryable: false;
|
|
497
|
+
readonly recovery: "re_auth";
|
|
498
|
+
};
|
|
495
499
|
readonly invalid_data_location: {
|
|
496
500
|
readonly retryable: false;
|
|
497
501
|
readonly recovery: "fix_input";
|
|
@@ -580,6 +584,14 @@ export declare const ERROR_CODE_META: {
|
|
|
580
584
|
readonly retryable: false;
|
|
581
585
|
readonly recovery: "fix_input";
|
|
582
586
|
};
|
|
587
|
+
readonly invitation_email_mismatch: {
|
|
588
|
+
readonly retryable: false;
|
|
589
|
+
readonly recovery: "fix_input";
|
|
590
|
+
};
|
|
591
|
+
readonly invitation_expired: {
|
|
592
|
+
readonly retryable: false;
|
|
593
|
+
readonly recovery: "fix_input";
|
|
594
|
+
};
|
|
583
595
|
readonly invitation_not_pending: {
|
|
584
596
|
readonly retryable: false;
|
|
585
597
|
readonly recovery: "fix_input";
|
|
@@ -125,6 +125,7 @@ export const ERROR_CODE_META = {
|
|
|
125
125
|
inject_snippet_too_large: { retryable: false, recovery: "fix_input" },
|
|
126
126
|
internal_error: { retryable: true, recovery: "retry" },
|
|
127
127
|
invalid_claim_token: { retryable: false, recovery: "re_auth" },
|
|
128
|
+
invalid_continuation_token: { retryable: false, recovery: "re_auth" },
|
|
128
129
|
invalid_data_location: { retryable: false, recovery: "fix_input" },
|
|
129
130
|
invalid_device_code: { retryable: false, recovery: "re_auth" },
|
|
130
131
|
invalid_domain: { retryable: false, recovery: "fix_input" },
|
|
@@ -147,6 +148,8 @@ export const ERROR_CODE_META = {
|
|
|
147
148
|
invalid_zero_realtime_event: { retryable: false, recovery: "fix_input" },
|
|
148
149
|
invalid_zero_realtime_replay_query: { retryable: false, recovery: "fix_input" },
|
|
149
150
|
invitation_already_exists: { retryable: false, recovery: "fix_input" },
|
|
151
|
+
invitation_email_mismatch: { retryable: false, recovery: "fix_input" },
|
|
152
|
+
invitation_expired: { retryable: false, recovery: "fix_input" },
|
|
150
153
|
invitation_not_pending: { retryable: false, recovery: "fix_input" },
|
|
151
154
|
ip_blocked: { retryable: false, recovery: "contact_support" },
|
|
152
155
|
job_not_found: { retryable: false, recovery: "fix_input" },
|
|
@@ -2,7 +2,7 @@ import { ERROR_DOCS_BASE_URL } from "../brand.js";
|
|
|
2
2
|
export { ERROR_DOCS_BASE_URL };
|
|
3
3
|
/** `docsUrl` derivation rule: docs origin + `/{code}`. Asserted by the conformance suite. */
|
|
4
4
|
export declare function errorDocsUrl(code: string): string;
|
|
5
|
-
export declare const ERROR_CODES: readonly ["abuse_report_invalid_transition", "abuse_report_rate_limited", "abuse_takedown", "access_denied", "account_suspended", "ambiguous_space_slug", "anonymous_expired", "anonymous_pool_unavailable", "anonymous_publish_rate_limited", "archive_body_required", "archive_too_large", "auth_code_required", "authorization_pending", "billing_receipt_invalid", "billing_receipt_not_bound_to_team", "billing_store_not_configured", "billing_subscription_conflict", "billing_unknown_product", "build_command_missing", "build_execution_unavailable", "build_failed", "build_install_failed", "build_no_index_html", "build_not_created", "build_oom", "build_output_dir_missing", "build_timeout", "cache_purge_domain_required", "cache_purge_path_required", "channel_name_reserved", "channel_pointer_moved", "channel_unsupported", "claim_blocked_takedown", "claim_target_not_found", "claimed_space_quota_exceeded", "cli_upgrade_required", "config_file_too_large", "config_invalid", "config_meta_too_long", "config_templates_over_limit", "credential_expired", "credential_not_yet_valid", "credential_retired", "credential_revoked", "csam_blocked", "csam_policy_floor", "data_location_immutable", "device_authorization_failed", "device_verification_rate_limited", "dns_export_required", "dns_field_conflict", "dns_field_not_applicable", "dns_import_partial_visibility", "dns_provider_auth_expired", "dns_provider_batch_unsupported", "dns_provider_change_pending", "dns_provider_conflict", "dns_provider_connection_in_use", "dns_provider_connection_unavailable", "dns_provider_controlled_desired_state", "dns_provider_credentials_expired", "dns_provider_feature_descriptors", "dns_provider_feature_unavailable", "dns_provider_field_unsupported", "dns_provider_future_authoritative_backend", "dns_provider_missing_permission", "dns_provider_not_connected", "dns_provider_operation_failed", "dns_provider_permission_denied", "dns_provider_rate_limited", "dns_provider_replace_all_requires_fresh_plan", "dns_provider_replace_all_write_strategy", "dns_provider_snapshot_stale", "dns_provider_snapshot_unavailable", "dns_provider_temporarily_unavailable", "dns_provider_timeout", "dns_provider_validation_failed", "dns_provider_workflow_templates", "dns_provider_zone_not_found", "dns_record_conflicts_with_managed", "dns_record_managed", "dns_record_not_found", "domain_already_exists", "domain_bound", "domain_facet_already_managed", "domain_facet_external", "domain_facet_not_applicable", "domain_hostname_site_mismatch", "domain_in_use", "domain_lookup_rate_limited", "domain_not_bound", "domain_quota_exceeded", "domain_registration_active", "domain_registration_not_renewable", "domain_reserved_suffix", "domain_transfer_active", "domain_wildcard_label", "domain_wildcard_not_enabled", "download_required", "duplicate_version_path", "event_payload_too_large", "event_rate_limited", "expired_token", "export_archive_not_ready", "export_version_not_found", "feature_unavailable", "files_mode_does_not_support_spa", "forbidden", "free_external_proxy_disabled", "free_headers_basic_auth_disabled", "idempotency_conflict_in_progress", "idempotency_key_reused", "immutable_version_requires_login", "import_archive_not_uploaded", "import_not_cancelable", "import_not_waiting_for_archive", "incumbent_controls_dns", "inject_invalid", "inject_snippet_too_large", "internal_error", "invalid_claim_token", "invalid_data_location", "invalid_device_code", "invalid_domain", "invalid_domain_name", "invalid_file_path", "invalid_grant", "invalid_publish_archive", "invalid_publish_path", "invalid_publish_payload", "invalid_request", "invalid_runtime_event", "invalid_space", "invalid_space_mode", "invalid_user_code", "invalid_version_path", "invalid_webhook_events", "invalid_webhook_payload", "invalid_webhook_signature", "invalid_webhook_url", "invalid_zero_realtime_event", "invalid_zero_realtime_replay_query", "invitation_already_exists", "invitation_not_pending", "ip_blocked", "job_not_found", "job_not_promotable", "job_not_removable", "job_not_retryable", "last_owner", "log_retention_clamped", "lost_domain_control", "malware_detected", "managed_domain_protected", "manifest_body_too_large", "manifest_duplicate_path", "manifest_too_many_files", "member_already_exists", "missing_route_param", "nameserver_delegation_required", "nameserver_divergence", "noop_publish", "not_enrolled", "not_found", "path_case_collision", "path_too_long", "plan_grant_already_active", "plan_grant_already_revoked", "platform_tenant_immutable_client", "policy_exceeds_grantor", "principal_space_mismatch", "provider_error", "provider_job_failed", "provider_job_timeout", "provider_runtime_feature_unsupported", "provider_site_id_required", "proxy_upstream_denied", "proxy_upstream_unresolved", "publish_archive_compression_ratio_exceeded", "publish_archive_expanded_size_exceeded", "publish_archive_file_count_exceeded", "publish_archive_too_large", "publish_config_unsupported", "publish_failed", "publish_file_missing", "publish_setup_failed", "publish_upload_failed", "publish_verification_failed", "queue_not_found", "rate_limited", "registration_expired", "registration_expiring", "routing_rules_over_plan", "runtime_action_forbidden", "runtime_api_not_found", "runtime_callback_forbidden", "runtime_engine_zip_missing", "runtime_hostname_unassigned", "runtime_instance_mismatch", "runtime_jti_missing", "runtime_jti_replayed", "runtime_jwks_key_missing", "runtime_logs_unavailable", "runtime_management_unavailable", "runtime_not_provisioned", "runtime_operation_missing", "runtime_scope_forbidden", "runtime_token_bad_signature", "runtime_token_expired", "runtime_token_invalid", "runtime_unauthorized", "runtime_upload_operation_not_supported", "runtime_upload_required", "scan_pending", "secret_variable_in_template", "site_already_deleted", "site_capacity_exceeded", "site_has_live_spaces", "site_not_static", "site_required", "site_suspended", "slow_down", "space_already_claimed", "space_claim_unavailable", "space_disabled", "space_expired", "space_has_active_version", "space_import_archive_invalid", "space_import_archive_too_large", "space_import_config_only_archive", "space_import_runtime_schema_unsupported", "space_moving", "space_no_live_version", "space_not_disabled", "space_not_restorable", "space_ref_ambiguous", "space_ref_required", "space_transferring", "space_unclaimed", "ssl_renewal_blocked", "static_control_file_not_supported", "static_runtime_control_path_not_supported", "static_runtime_required", "storage_quota_exceeded", "storage_usage_unavailable", "stripe_error", "superseded_by_publish", "takeover_notice_window", "team_ref_required", "team_required", "team_slug_conflict", "template_file_too_large", "template_not_in_version", "template_variable_unresolved", "tenant_id_mismatch", "tenant_not_found", "tenant_not_granted", "tenant_past_due", "tenant_selection_required", "tenant_suspended", "theme_value_invalid", "transfer_cross_tenant_unsupported", "transfer_move_failed", "transfer_not_cancelable", "transfer_source_changed", "transfer_target_same_as_source", "unauthorized", "unsupported_publish_media_type", "upload_hash_mismatch", "upload_path_not_canonical", "upload_path_not_declared", "upload_session_cap_exceeded", "upload_size_mismatch", "user_banned", "validation_error", "variable_cascade_failed", "verification_required", "version_already_live", "version_artifact_not_found", "version_busy", "version_canceled", "version_closed", "version_expired", "version_failed", "version_file_count_exceeded", "version_file_not_found", "version_file_too_large", "version_files_missing", "version_in_use", "version_live", "version_no_publishable_files", "version_not_finalizable", "version_not_found", "version_not_prepared", "version_not_promotable", "version_not_ready", "version_quota_exceeded", "version_total_bytes_exceeded", "webhook_delivery_budget_exceeded", "whois_unavailable", "wp_cloud_anonymous_pool_required", "wp_cloud_assignment_kind_mismatch", "wp_cloud_assignment_space_mismatch", "wp_cloud_assignment_team_mismatch", "wp_cloud_client_in_use", "wp_cloud_client_not_found", "wp_cloud_site_still_assigned", "wp_cloud_team_shared_site_exists", "wp_cloud_webhook_secret_not_configured", "zero_artifact_abi_mismatch", "zero_artifact_invalid", "zero_artifact_malformed", "zero_artifact_path_invalid", "zero_artifact_unreadable", "zero_auth_unavailable", "zero_blob_key_invalid", "zero_blob_store_full", "zero_blob_too_large", "zero_blob_value_invalid", "zero_bootstrap_encode_failed", "zero_bytecode_hash_mismatch", "zero_bytecode_invalid", "zero_bytecode_path_invalid", "zero_bytecode_unreadable", "zero_client_bundle_not_loaded", "zero_db_connect_failed", "zero_db_execute_failed", "zero_db_host_install_failed", "zero_db_operation_invalid", "zero_db_operation_too_large", "zero_db_param_invalid", "zero_db_query_failed", "zero_db_row_invalid", "zero_db_sql_invalid", "zero_db_too_many_params", "zero_db_transaction_commit_failed", "zero_db_transaction_invalid", "zero_db_transaction_start_failed", "zero_db_url_invalid", "zero_db_url_missing", "zero_dev_endpoint_failed", "zero_dump_query_invalid", "zero_endpoint_index_invalid", "zero_endpoint_index_malformed", "zero_endpoint_index_path_invalid", "zero_endpoint_index_unreadable", "zero_endpoint_mismatch", "zero_endpoint_not_found", "zero_envelope_encode_failed", "zero_js_context_init_failed", "zero_js_execution_failed", "zero_js_execution_timeout", "zero_js_globals_failed", "zero_js_response_malformed", "zero_js_runtime_init_failed", "zero_log_query_invalid", "zero_method_not_allowed", "zero_query_name_missing", "zero_realtime_forbidden", "zero_realtime_message_invalid", "zero_realtime_operation_unsupported", "zero_realtime_query_invalid", "zero_realtime_space_required", "zero_realtime_unavailable", "zero_realtime_websocket_forbidden", "zero_replay_failed", "zero_replay_query_invalid", "zero_replay_unavailable", "zero_request_body_too_large", "zero_response_too_large", "zero_run_operation_unsupported", "zero_runner_envelope_invalid", "zero_runner_failed", "zero_runner_invalid_body", "zero_runner_invalid_response", "zero_runner_invalid_status", "zero_runner_protocol_unsupported", "zero_runner_response_encode_failed", "zero_runner_stdin_invalid", "zero_runner_stdin_too_large", "zero_runner_unavailable", "zero_source_compile_failed", "zero_source_hash_mismatch", "zero_source_invalid", "zero_source_path_invalid", "zero_source_unreadable"];
|
|
5
|
+
export declare const ERROR_CODES: readonly ["abuse_report_invalid_transition", "abuse_report_rate_limited", "abuse_takedown", "access_denied", "account_suspended", "ambiguous_space_slug", "anonymous_expired", "anonymous_pool_unavailable", "anonymous_publish_rate_limited", "archive_body_required", "archive_too_large", "auth_code_required", "authorization_pending", "billing_receipt_invalid", "billing_receipt_not_bound_to_team", "billing_store_not_configured", "billing_subscription_conflict", "billing_unknown_product", "build_command_missing", "build_execution_unavailable", "build_failed", "build_install_failed", "build_no_index_html", "build_not_created", "build_oom", "build_output_dir_missing", "build_timeout", "cache_purge_domain_required", "cache_purge_path_required", "channel_name_reserved", "channel_pointer_moved", "channel_unsupported", "claim_blocked_takedown", "claim_target_not_found", "claimed_space_quota_exceeded", "cli_upgrade_required", "config_file_too_large", "config_invalid", "config_meta_too_long", "config_templates_over_limit", "credential_expired", "credential_not_yet_valid", "credential_retired", "credential_revoked", "csam_blocked", "csam_policy_floor", "data_location_immutable", "device_authorization_failed", "device_verification_rate_limited", "dns_export_required", "dns_field_conflict", "dns_field_not_applicable", "dns_import_partial_visibility", "dns_provider_auth_expired", "dns_provider_batch_unsupported", "dns_provider_change_pending", "dns_provider_conflict", "dns_provider_connection_in_use", "dns_provider_connection_unavailable", "dns_provider_controlled_desired_state", "dns_provider_credentials_expired", "dns_provider_feature_descriptors", "dns_provider_feature_unavailable", "dns_provider_field_unsupported", "dns_provider_future_authoritative_backend", "dns_provider_missing_permission", "dns_provider_not_connected", "dns_provider_operation_failed", "dns_provider_permission_denied", "dns_provider_rate_limited", "dns_provider_replace_all_requires_fresh_plan", "dns_provider_replace_all_write_strategy", "dns_provider_snapshot_stale", "dns_provider_snapshot_unavailable", "dns_provider_temporarily_unavailable", "dns_provider_timeout", "dns_provider_validation_failed", "dns_provider_workflow_templates", "dns_provider_zone_not_found", "dns_record_conflicts_with_managed", "dns_record_managed", "dns_record_not_found", "domain_already_exists", "domain_bound", "domain_facet_already_managed", "domain_facet_external", "domain_facet_not_applicable", "domain_hostname_site_mismatch", "domain_in_use", "domain_lookup_rate_limited", "domain_not_bound", "domain_quota_exceeded", "domain_registration_active", "domain_registration_not_renewable", "domain_reserved_suffix", "domain_transfer_active", "domain_wildcard_label", "domain_wildcard_not_enabled", "download_required", "duplicate_version_path", "event_payload_too_large", "event_rate_limited", "expired_token", "export_archive_not_ready", "export_version_not_found", "feature_unavailable", "files_mode_does_not_support_spa", "forbidden", "free_external_proxy_disabled", "free_headers_basic_auth_disabled", "idempotency_conflict_in_progress", "idempotency_key_reused", "immutable_version_requires_login", "import_archive_not_uploaded", "import_not_cancelable", "import_not_waiting_for_archive", "incumbent_controls_dns", "inject_invalid", "inject_snippet_too_large", "internal_error", "invalid_claim_token", "invalid_continuation_token", "invalid_data_location", "invalid_device_code", "invalid_domain", "invalid_domain_name", "invalid_file_path", "invalid_grant", "invalid_publish_archive", "invalid_publish_path", "invalid_publish_payload", "invalid_request", "invalid_runtime_event", "invalid_space", "invalid_space_mode", "invalid_user_code", "invalid_version_path", "invalid_webhook_events", "invalid_webhook_payload", "invalid_webhook_signature", "invalid_webhook_url", "invalid_zero_realtime_event", "invalid_zero_realtime_replay_query", "invitation_already_exists", "invitation_email_mismatch", "invitation_expired", "invitation_not_pending", "ip_blocked", "job_not_found", "job_not_promotable", "job_not_removable", "job_not_retryable", "last_owner", "log_retention_clamped", "lost_domain_control", "malware_detected", "managed_domain_protected", "manifest_body_too_large", "manifest_duplicate_path", "manifest_too_many_files", "member_already_exists", "missing_route_param", "nameserver_delegation_required", "nameserver_divergence", "noop_publish", "not_enrolled", "not_found", "path_case_collision", "path_too_long", "plan_grant_already_active", "plan_grant_already_revoked", "platform_tenant_immutable_client", "policy_exceeds_grantor", "principal_space_mismatch", "provider_error", "provider_job_failed", "provider_job_timeout", "provider_runtime_feature_unsupported", "provider_site_id_required", "proxy_upstream_denied", "proxy_upstream_unresolved", "publish_archive_compression_ratio_exceeded", "publish_archive_expanded_size_exceeded", "publish_archive_file_count_exceeded", "publish_archive_too_large", "publish_config_unsupported", "publish_failed", "publish_file_missing", "publish_setup_failed", "publish_upload_failed", "publish_verification_failed", "queue_not_found", "rate_limited", "registration_expired", "registration_expiring", "routing_rules_over_plan", "runtime_action_forbidden", "runtime_api_not_found", "runtime_callback_forbidden", "runtime_engine_zip_missing", "runtime_hostname_unassigned", "runtime_instance_mismatch", "runtime_jti_missing", "runtime_jti_replayed", "runtime_jwks_key_missing", "runtime_logs_unavailable", "runtime_management_unavailable", "runtime_not_provisioned", "runtime_operation_missing", "runtime_scope_forbidden", "runtime_token_bad_signature", "runtime_token_expired", "runtime_token_invalid", "runtime_unauthorized", "runtime_upload_operation_not_supported", "runtime_upload_required", "scan_pending", "secret_variable_in_template", "site_already_deleted", "site_capacity_exceeded", "site_has_live_spaces", "site_not_static", "site_required", "site_suspended", "slow_down", "space_already_claimed", "space_claim_unavailable", "space_disabled", "space_expired", "space_has_active_version", "space_import_archive_invalid", "space_import_archive_too_large", "space_import_config_only_archive", "space_import_runtime_schema_unsupported", "space_moving", "space_no_live_version", "space_not_disabled", "space_not_restorable", "space_ref_ambiguous", "space_ref_required", "space_transferring", "space_unclaimed", "ssl_renewal_blocked", "static_control_file_not_supported", "static_runtime_control_path_not_supported", "static_runtime_required", "storage_quota_exceeded", "storage_usage_unavailable", "stripe_error", "superseded_by_publish", "takeover_notice_window", "team_ref_required", "team_required", "team_slug_conflict", "template_file_too_large", "template_not_in_version", "template_variable_unresolved", "tenant_id_mismatch", "tenant_not_found", "tenant_not_granted", "tenant_past_due", "tenant_selection_required", "tenant_suspended", "theme_value_invalid", "transfer_cross_tenant_unsupported", "transfer_move_failed", "transfer_not_cancelable", "transfer_source_changed", "transfer_target_same_as_source", "unauthorized", "unsupported_publish_media_type", "upload_hash_mismatch", "upload_path_not_canonical", "upload_path_not_declared", "upload_session_cap_exceeded", "upload_size_mismatch", "user_banned", "validation_error", "variable_cascade_failed", "verification_required", "version_already_live", "version_artifact_not_found", "version_busy", "version_canceled", "version_closed", "version_expired", "version_failed", "version_file_count_exceeded", "version_file_not_found", "version_file_too_large", "version_files_missing", "version_in_use", "version_live", "version_no_publishable_files", "version_not_finalizable", "version_not_found", "version_not_prepared", "version_not_promotable", "version_not_ready", "version_quota_exceeded", "version_total_bytes_exceeded", "webhook_delivery_budget_exceeded", "whois_unavailable", "wp_cloud_anonymous_pool_required", "wp_cloud_assignment_kind_mismatch", "wp_cloud_assignment_space_mismatch", "wp_cloud_assignment_team_mismatch", "wp_cloud_client_in_use", "wp_cloud_client_not_found", "wp_cloud_site_still_assigned", "wp_cloud_team_shared_site_exists", "wp_cloud_webhook_secret_not_configured", "zero_artifact_abi_mismatch", "zero_artifact_invalid", "zero_artifact_malformed", "zero_artifact_path_invalid", "zero_artifact_unreadable", "zero_auth_unavailable", "zero_blob_key_invalid", "zero_blob_store_full", "zero_blob_too_large", "zero_blob_value_invalid", "zero_bootstrap_encode_failed", "zero_bytecode_hash_mismatch", "zero_bytecode_invalid", "zero_bytecode_path_invalid", "zero_bytecode_unreadable", "zero_client_bundle_not_loaded", "zero_db_connect_failed", "zero_db_execute_failed", "zero_db_host_install_failed", "zero_db_operation_invalid", "zero_db_operation_too_large", "zero_db_param_invalid", "zero_db_query_failed", "zero_db_row_invalid", "zero_db_sql_invalid", "zero_db_too_many_params", "zero_db_transaction_commit_failed", "zero_db_transaction_invalid", "zero_db_transaction_start_failed", "zero_db_url_invalid", "zero_db_url_missing", "zero_dev_endpoint_failed", "zero_dump_query_invalid", "zero_endpoint_index_invalid", "zero_endpoint_index_malformed", "zero_endpoint_index_path_invalid", "zero_endpoint_index_unreadable", "zero_endpoint_mismatch", "zero_endpoint_not_found", "zero_envelope_encode_failed", "zero_js_context_init_failed", "zero_js_execution_failed", "zero_js_execution_timeout", "zero_js_globals_failed", "zero_js_response_malformed", "zero_js_runtime_init_failed", "zero_log_query_invalid", "zero_method_not_allowed", "zero_query_name_missing", "zero_realtime_forbidden", "zero_realtime_message_invalid", "zero_realtime_operation_unsupported", "zero_realtime_query_invalid", "zero_realtime_space_required", "zero_realtime_unavailable", "zero_realtime_websocket_forbidden", "zero_replay_failed", "zero_replay_query_invalid", "zero_replay_unavailable", "zero_request_body_too_large", "zero_response_too_large", "zero_run_operation_unsupported", "zero_runner_envelope_invalid", "zero_runner_failed", "zero_runner_invalid_body", "zero_runner_invalid_response", "zero_runner_invalid_status", "zero_runner_protocol_unsupported", "zero_runner_response_encode_failed", "zero_runner_stdin_invalid", "zero_runner_stdin_too_large", "zero_runner_unavailable", "zero_source_compile_failed", "zero_source_hash_mismatch", "zero_source_invalid", "zero_source_path_invalid", "zero_source_unreadable"];
|
|
6
6
|
export type ErrorCode = (typeof ERROR_CODES)[number];
|
|
7
7
|
export declare function isErrorCode(value: string): value is ErrorCode;
|
|
8
8
|
/**
|
|
@@ -136,6 +136,7 @@ export const ERROR_CODES = [
|
|
|
136
136
|
"inject_snippet_too_large",
|
|
137
137
|
"internal_error",
|
|
138
138
|
"invalid_claim_token",
|
|
139
|
+
"invalid_continuation_token",
|
|
139
140
|
"invalid_data_location",
|
|
140
141
|
"invalid_device_code",
|
|
141
142
|
"invalid_domain",
|
|
@@ -158,6 +159,8 @@ export const ERROR_CODES = [
|
|
|
158
159
|
"invalid_zero_realtime_event",
|
|
159
160
|
"invalid_zero_realtime_replay_query",
|
|
160
161
|
"invitation_already_exists",
|
|
162
|
+
"invitation_email_mismatch",
|
|
163
|
+
"invitation_expired",
|
|
161
164
|
"invitation_not_pending",
|
|
162
165
|
"ip_blocked",
|
|
163
166
|
"job_not_found",
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
export declare const eventSourceSchema: z.ZodEnum<{
|
|
3
|
-
|
|
3
|
+
www: "www";
|
|
4
4
|
dashboard: "dashboard";
|
|
5
|
+
cli: "cli";
|
|
5
6
|
other: "other";
|
|
6
|
-
www: "www";
|
|
7
7
|
"domain-ssh": "domain-ssh";
|
|
8
8
|
"control-plane": "control-plane";
|
|
9
9
|
}>;
|
|
@@ -28,7 +28,7 @@ export declare const eventActorSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
28
28
|
export type EventActor = z.infer<typeof eventActorSchema>;
|
|
29
29
|
export declare const EVENT_CATALOG: {
|
|
30
30
|
"client.page_viewed": {
|
|
31
|
-
sources: ("
|
|
31
|
+
sources: ("www" | "dashboard")[];
|
|
32
32
|
actors: ("analytics_id" | "anonymous_id")[];
|
|
33
33
|
properties: z.ZodObject<{
|
|
34
34
|
path: z.ZodString;
|
|
@@ -36,7 +36,7 @@ export declare const EVENT_CATALOG: {
|
|
|
36
36
|
}, z.core.$strict>;
|
|
37
37
|
};
|
|
38
38
|
"client.web_vital.measured": {
|
|
39
|
-
sources: ("
|
|
39
|
+
sources: ("www" | "dashboard")[];
|
|
40
40
|
actors: ("analytics_id" | "anonymous_id")[];
|
|
41
41
|
properties: z.ZodObject<{
|
|
42
42
|
metric: z.ZodEnum<{
|
|
@@ -51,7 +51,7 @@ export declare const EVENT_CATALOG: {
|
|
|
51
51
|
}, z.core.$strict>;
|
|
52
52
|
};
|
|
53
53
|
"client.error.observed": {
|
|
54
|
-
sources: ("
|
|
54
|
+
sources: ("www" | "dashboard" | "cli" | "other")[];
|
|
55
55
|
actors: ("analytics_id" | "anonymous_id" | "anonymous_machine")[];
|
|
56
56
|
properties: z.ZodObject<{
|
|
57
57
|
error_class: z.ZodString;
|
|
@@ -68,27 +68,27 @@ export declare const EVENT_CATALOG: {
|
|
|
68
68
|
}, z.core.$strict>;
|
|
69
69
|
};
|
|
70
70
|
"browser.funnel.claim_page_viewed": {
|
|
71
|
-
sources: ("
|
|
71
|
+
sources: ("www" | "dashboard")[];
|
|
72
72
|
actors: ("analytics_id" | "anonymous_id")[];
|
|
73
73
|
properties: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>>;
|
|
74
74
|
};
|
|
75
75
|
"browser.funnel.claim_token_validated": {
|
|
76
|
-
sources: ("
|
|
76
|
+
sources: ("www" | "dashboard")[];
|
|
77
77
|
actors: ("analytics_id" | "anonymous_id")[];
|
|
78
78
|
properties: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>>;
|
|
79
79
|
};
|
|
80
80
|
"browser.funnel.space_claimed": {
|
|
81
|
-
sources: ("
|
|
81
|
+
sources: ("www" | "dashboard")[];
|
|
82
82
|
actors: ("analytics_id" | "anonymous_id")[];
|
|
83
83
|
properties: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>>;
|
|
84
84
|
};
|
|
85
85
|
"browser.funnel.claim_rescue_countdown_viewed": {
|
|
86
|
-
sources: ("
|
|
86
|
+
sources: ("www" | "dashboard")[];
|
|
87
87
|
actors: ("analytics_id" | "anonymous_id")[];
|
|
88
88
|
properties: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>>;
|
|
89
89
|
};
|
|
90
90
|
"browser.funnel.claim_reminder_requested": {
|
|
91
|
-
sources: ("
|
|
91
|
+
sources: ("www" | "dashboard")[];
|
|
92
92
|
actors: ("analytics_id" | "anonymous_id")[];
|
|
93
93
|
properties: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>>;
|
|
94
94
|
};
|
|
@@ -334,10 +334,10 @@ export declare const EVENT_MAX_EVENTS_PER_REQUEST = 20;
|
|
|
334
334
|
export declare const EVENT_BODY_CAP_BYTES: number;
|
|
335
335
|
export declare const eventIngestSchema: z.ZodObject<{
|
|
336
336
|
source: z.ZodDefault<z.ZodEnum<{
|
|
337
|
-
|
|
337
|
+
www: "www";
|
|
338
338
|
dashboard: "dashboard";
|
|
339
|
+
cli: "cli";
|
|
339
340
|
other: "other";
|
|
340
|
-
www: "www";
|
|
341
341
|
"domain-ssh": "domain-ssh";
|
|
342
342
|
"control-plane": "control-plane";
|
|
343
343
|
}>>;
|
|
@@ -2,15 +2,16 @@ import { z } from "zod";
|
|
|
2
2
|
export declare const PLAN_CODES: readonly ["free", "personal", "work", "enterprise", "internal"];
|
|
3
3
|
export declare const planCodeSchema: z.ZodEnum<{
|
|
4
4
|
free: "free";
|
|
5
|
-
|
|
5
|
+
internal: "internal";
|
|
6
6
|
work: "work";
|
|
7
|
+
personal: "personal";
|
|
7
8
|
enterprise: "enterprise";
|
|
8
|
-
internal: "internal";
|
|
9
9
|
}>;
|
|
10
10
|
export type PlanCode = z.infer<typeof planCodeSchema>;
|
|
11
11
|
export declare const DEFAULT_PLAN_CODE: PlanCode;
|
|
12
12
|
export declare const FEATURE_KEYS: readonly ["plans.paid.available", "anonymous.publishing", "beta.enrollment_gate", "domains.search", "domains.registration", "domains.dns_management", "domains.proxy_bindings", "annotations.preview_loader", "annotations.comments", "annotations.anonymous_reviewers", "annotations.cli", "annotations.notices", "annotations.spacefast_token", "annotations.published_comments", "sites.dedicated_runtime", "shelf", "tags", "zero"];
|
|
13
13
|
export declare const featureKeySchema: z.ZodEnum<{
|
|
14
|
+
zero: "zero";
|
|
14
15
|
"plans.paid.available": "plans.paid.available";
|
|
15
16
|
"anonymous.publishing": "anonymous.publishing";
|
|
16
17
|
"beta.enrollment_gate": "beta.enrollment_gate";
|
|
@@ -28,13 +29,12 @@ export declare const featureKeySchema: z.ZodEnum<{
|
|
|
28
29
|
"sites.dedicated_runtime": "sites.dedicated_runtime";
|
|
29
30
|
shelf: "shelf";
|
|
30
31
|
tags: "tags";
|
|
31
|
-
zero: "zero";
|
|
32
32
|
}>;
|
|
33
33
|
export type FeatureKey = z.infer<typeof featureKeySchema>;
|
|
34
34
|
export declare const FEATURE_OVERRIDE_STATES: readonly ["enabled", "disabled", "kill_switch"];
|
|
35
35
|
export declare const featureOverrideStateSchema: z.ZodEnum<{
|
|
36
|
-
enabled: "enabled";
|
|
37
36
|
disabled: "disabled";
|
|
37
|
+
enabled: "enabled";
|
|
38
38
|
kill_switch: "kill_switch";
|
|
39
39
|
}>;
|
|
40
40
|
export type FeatureOverrideState = z.infer<typeof featureOverrideStateSchema>;
|
|
@@ -61,10 +61,10 @@ export type PlanLimits = z.infer<typeof planLimitsSchema>;
|
|
|
61
61
|
export declare const teamEntitlementsSchema: z.ZodObject<{
|
|
62
62
|
planCode: z.ZodEnum<{
|
|
63
63
|
free: "free";
|
|
64
|
-
|
|
64
|
+
internal: "internal";
|
|
65
65
|
work: "work";
|
|
66
|
+
personal: "personal";
|
|
66
67
|
enterprise: "enterprise";
|
|
67
|
-
internal: "internal";
|
|
68
68
|
}>;
|
|
69
69
|
limits: z.ZodObject<{
|
|
70
70
|
storageBytes: z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<"unlimited">]>;
|
|
@@ -93,10 +93,10 @@ export type TeamEntitlements = z.infer<typeof teamEntitlementsSchema>;
|
|
|
93
93
|
export declare const teamEntitlementsResponseSchema: z.ZodObject<{
|
|
94
94
|
planCode: z.ZodEnum<{
|
|
95
95
|
free: "free";
|
|
96
|
-
|
|
96
|
+
internal: "internal";
|
|
97
97
|
work: "work";
|
|
98
|
+
personal: "personal";
|
|
98
99
|
enterprise: "enterprise";
|
|
99
|
-
internal: "internal";
|
|
100
100
|
}>;
|
|
101
101
|
headersBasicAuth: z.ZodBoolean;
|
|
102
102
|
externalProxy: z.ZodBoolean;
|
|
@@ -104,9 +104,9 @@ export declare const teamEntitlementsResponseSchema: z.ZodObject<{
|
|
|
104
104
|
analyticsHourlyGranularity: z.ZodBoolean;
|
|
105
105
|
versionDiagnosticsIncluded: z.ZodBoolean;
|
|
106
106
|
limits: z.ZodObject<{
|
|
107
|
-
storageBytes: z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<"unlimited">]>;
|
|
108
107
|
teamMembers: z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<"unlimited">]>;
|
|
109
108
|
subTeams: z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<"unlimited">]>;
|
|
109
|
+
storageBytes: z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<"unlimited">]>;
|
|
110
110
|
externalDomainGroups: z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<"unlimited">]>;
|
|
111
111
|
publicImmutableVersionWindowDays: z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<"unlimited">]>;
|
|
112
112
|
maxFileBytes: z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<"unlimited">]>;
|
|
@@ -142,12 +142,13 @@ export declare const PLAN_DEFINITIONS: Record<PlanCode, PlanDefinition>;
|
|
|
142
142
|
export declare const FEATURE_DEFINITIONS: Record<FeatureKey, FeatureDefinition>;
|
|
143
143
|
export declare const featureStateSourceSchema: z.ZodEnum<{
|
|
144
144
|
default: "default";
|
|
145
|
+
override: "override";
|
|
145
146
|
kill_switch: "kill_switch";
|
|
146
147
|
env: "env";
|
|
147
|
-
override: "override";
|
|
148
148
|
}>;
|
|
149
149
|
export declare const FeatureStateSchema: z.ZodObject<{
|
|
150
150
|
key: z.ZodEnum<{
|
|
151
|
+
zero: "zero";
|
|
151
152
|
"plans.paid.available": "plans.paid.available";
|
|
152
153
|
"anonymous.publishing": "anonymous.publishing";
|
|
153
154
|
"beta.enrollment_gate": "beta.enrollment_gate";
|
|
@@ -165,25 +166,25 @@ export declare const FeatureStateSchema: z.ZodObject<{
|
|
|
165
166
|
"sites.dedicated_runtime": "sites.dedicated_runtime";
|
|
166
167
|
shelf: "shelf";
|
|
167
168
|
tags: "tags";
|
|
168
|
-
zero: "zero";
|
|
169
169
|
}>;
|
|
170
170
|
enabled: z.ZodBoolean;
|
|
171
171
|
source: z.ZodEnum<{
|
|
172
172
|
default: "default";
|
|
173
|
+
override: "override";
|
|
173
174
|
kill_switch: "kill_switch";
|
|
174
175
|
env: "env";
|
|
175
|
-
override: "override";
|
|
176
176
|
}>;
|
|
177
177
|
}, z.core.$strip>;
|
|
178
178
|
export declare const FeatureStateResponseSchema: z.ZodObject<{
|
|
179
179
|
planCode: z.ZodEnum<{
|
|
180
180
|
free: "free";
|
|
181
|
-
|
|
181
|
+
internal: "internal";
|
|
182
182
|
work: "work";
|
|
183
|
+
personal: "personal";
|
|
183
184
|
enterprise: "enterprise";
|
|
184
|
-
internal: "internal";
|
|
185
185
|
}>;
|
|
186
186
|
features: z.ZodRecord<z.ZodEnum<{
|
|
187
|
+
zero: "zero";
|
|
187
188
|
"plans.paid.available": "plans.paid.available";
|
|
188
189
|
"anonymous.publishing": "anonymous.publishing";
|
|
189
190
|
"beta.enrollment_gate": "beta.enrollment_gate";
|
|
@@ -201,9 +202,9 @@ export declare const FeatureStateResponseSchema: z.ZodObject<{
|
|
|
201
202
|
"sites.dedicated_runtime": "sites.dedicated_runtime";
|
|
202
203
|
shelf: "shelf";
|
|
203
204
|
tags: "tags";
|
|
204
|
-
zero: "zero";
|
|
205
205
|
}>, z.ZodObject<{
|
|
206
206
|
key: z.ZodEnum<{
|
|
207
|
+
zero: "zero";
|
|
207
208
|
"plans.paid.available": "plans.paid.available";
|
|
208
209
|
"anonymous.publishing": "anonymous.publishing";
|
|
209
210
|
"beta.enrollment_gate": "beta.enrollment_gate";
|
|
@@ -221,14 +222,13 @@ export declare const FeatureStateResponseSchema: z.ZodObject<{
|
|
|
221
222
|
"sites.dedicated_runtime": "sites.dedicated_runtime";
|
|
222
223
|
shelf: "shelf";
|
|
223
224
|
tags: "tags";
|
|
224
|
-
zero: "zero";
|
|
225
225
|
}>;
|
|
226
226
|
enabled: z.ZodBoolean;
|
|
227
227
|
source: z.ZodEnum<{
|
|
228
228
|
default: "default";
|
|
229
|
+
override: "override";
|
|
229
230
|
kill_switch: "kill_switch";
|
|
230
231
|
env: "env";
|
|
231
|
-
override: "override";
|
|
232
232
|
}>;
|
|
233
233
|
}, z.core.$strip>>;
|
|
234
234
|
}, z.core.$strip>;
|
package/dist/contracts/git.d.ts
CHANGED
|
@@ -2,19 +2,19 @@ import { z } from "zod";
|
|
|
2
2
|
export declare const buildTargetValues: readonly ["production", "preview"];
|
|
3
3
|
export declare const buildTriggerValues: readonly ["manual", "push", "pull_request", "retry"];
|
|
4
4
|
export declare const buildTarget: z.ZodEnum<{
|
|
5
|
-
production: "production";
|
|
6
5
|
preview: "preview";
|
|
6
|
+
production: "production";
|
|
7
7
|
}>;
|
|
8
8
|
export declare const buildTrigger: z.ZodEnum<{
|
|
9
|
-
retry: "retry";
|
|
10
9
|
push: "push";
|
|
11
10
|
pull_request: "pull_request";
|
|
12
11
|
manual: "manual";
|
|
12
|
+
retry: "retry";
|
|
13
13
|
}>;
|
|
14
14
|
export declare const buildEnvironmentScopeValues: readonly ["runtime", "build", "build:production", "build:preview"];
|
|
15
15
|
export declare const buildEnvironmentScope: z.ZodEnum<{
|
|
16
|
-
runtime: "runtime";
|
|
17
16
|
build: "build";
|
|
17
|
+
runtime: "runtime";
|
|
18
18
|
"build:production": "build:production";
|
|
19
19
|
"build:preview": "build:preview";
|
|
20
20
|
}>;
|
|
@@ -18,8 +18,8 @@ export declare const pendingUploadSchema: z.ZodObject<{
|
|
|
18
18
|
sourceUrl: z.ZodOptional<z.ZodString>;
|
|
19
19
|
}, z.core.$strip>;
|
|
20
20
|
export declare const uploadSessionModeSchema: z.ZodEnum<{
|
|
21
|
-
dist: "dist";
|
|
22
21
|
source: "source";
|
|
22
|
+
dist: "dist";
|
|
23
23
|
}>;
|
|
24
24
|
export declare const uploadTargetSchema: z.ZodObject<{
|
|
25
25
|
path: z.ZodString;
|
|
@@ -41,8 +41,8 @@ export declare const uploadTargetSchema: z.ZodObject<{
|
|
|
41
41
|
export declare const uploadInstructionsSchema: z.ZodObject<{
|
|
42
42
|
id: z.ZodString;
|
|
43
43
|
mode: z.ZodEnum<{
|
|
44
|
-
dist: "dist";
|
|
45
44
|
source: "source";
|
|
45
|
+
dist: "dist";
|
|
46
46
|
}>;
|
|
47
47
|
expiresAt: z.ZodString;
|
|
48
48
|
summary: z.ZodObject<{
|
|
@@ -90,9 +90,9 @@ export declare const uploadInstructionsSchema: z.ZodObject<{
|
|
|
90
90
|
message: z.ZodString;
|
|
91
91
|
path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
92
92
|
provider: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
93
|
+
registrar: "registrar";
|
|
93
94
|
wpcloud: "wpcloud";
|
|
94
95
|
dns: "dns";
|
|
95
|
-
registrar: "registrar";
|
|
96
96
|
runtime: "runtime";
|
|
97
97
|
}>>>;
|
|
98
98
|
details: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|