export type ClientOptions = { baseUrl: 'https://{region}.sentry.io' | 'https://{region}.sentry.io' | (string & {}); }; /** * Allows parameters to be defined in snake case, but passed as camel case. * * Errors are output in camel case. */ export type ActionFilterValidator = { id?: number; /** * * `any` * * `any-short` * * `all` * * `none` */ logicType: 'any' | 'any-short' | 'all' | 'none'; conditions?: Array<{ id?: number; type: 'age_comparison'; comparison: { comparisonType: 'older' | 'newer'; value: number; time: 'minute' | 'hour' | 'day' | 'week'; }; conditionResult: boolean; } | { id?: number; type: 'assigned_to'; comparison: { targetType: 'Unassigned' | 'Team' | 'Member'; targetIdentifier?: number | string; }; conditionResult: boolean; } | { id?: number; type: 'event_attribute'; comparison: ({ attribute: 'message' | 'platform' | 'environment' | 'type' | 'error.handled' | 'error.unhandled' | 'error.main_thread' | 'exception.type' | 'exception.value' | 'user.id' | 'user.email' | 'user.username' | 'user.ip_address' | 'http.method' | 'http.url' | 'http.status_code' | 'sdk.name' | 'stacktrace.code' | 'stacktrace.module' | 'stacktrace.filename' | 'stacktrace.abs_path' | 'stacktrace.package' | 'unreal.crash_type' | 'app.in_foreground' | 'os.distribution_name' | 'os.distribution_version' | 'symbolicated_in_app' | 'ota_updates.channel' | 'ota_updates.runtime_version' | 'ota_updates.update_id'; match: 'is' | 'ns'; } | { attribute: 'message' | 'platform' | 'environment' | 'type' | 'error.handled' | 'error.unhandled' | 'error.main_thread' | 'exception.type' | 'exception.value' | 'user.id' | 'user.email' | 'user.username' | 'user.ip_address' | 'http.method' | 'http.url' | 'http.status_code' | 'sdk.name' | 'stacktrace.code' | 'stacktrace.module' | 'stacktrace.filename' | 'stacktrace.abs_path' | 'stacktrace.package' | 'unreal.crash_type' | 'app.in_foreground' | 'os.distribution_name' | 'os.distribution_version' | 'symbolicated_in_app' | 'ota_updates.channel' | 'ota_updates.runtime_version' | 'ota_updates.update_id'; match: unknown; value: string; }) & { attribute?: 'message' | 'platform' | 'environment' | 'type' | 'error.handled' | 'error.unhandled' | 'error.main_thread' | 'exception.type' | 'exception.value' | 'user.id' | 'user.email' | 'user.username' | 'user.ip_address' | 'http.method' | 'http.url' | 'http.status_code' | 'sdk.name' | 'stacktrace.code' | 'stacktrace.module' | 'stacktrace.filename' | 'stacktrace.abs_path' | 'stacktrace.package' | 'unreal.crash_type' | 'app.in_foreground' | 'os.distribution_name' | 'os.distribution_version' | 'symbolicated_in_app' | 'ota_updates.channel' | 'ota_updates.runtime_version' | 'ota_updates.update_id'; match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; value?: string; }; conditionResult: boolean; } | { id?: number; type: 'event_frequency_count'; comparison: { interval: '1m' | '5m' | '15m' | '1h' | '1d' | '1w' | '30d'; value: number; filters?: Array<(({ key: string; match: 'is' | 'ns'; } | { key: string; match: unknown; value: string; }) & { key?: string; match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; value?: string; }) | (({ attribute: 'message' | 'platform' | 'environment' | 'type' | 'error.handled' | 'error.unhandled' | 'error.main_thread' | 'exception.type' | 'exception.value' | 'user.id' | 'user.email' | 'user.username' | 'user.ip_address' | 'http.method' | 'http.url' | 'http.status_code' | 'sdk.name' | 'stacktrace.code' | 'stacktrace.module' | 'stacktrace.filename' | 'stacktrace.abs_path' | 'stacktrace.package' | 'unreal.crash_type' | 'app.in_foreground' | 'os.distribution_name' | 'os.distribution_version' | 'symbolicated_in_app' | 'ota_updates.channel' | 'ota_updates.runtime_version' | 'ota_updates.update_id'; match: 'is' | 'ns'; } | { attribute: 'message' | 'platform' | 'environment' | 'type' | 'error.handled' | 'error.unhandled' | 'error.main_thread' | 'exception.type' | 'exception.value' | 'user.id' | 'user.email' | 'user.username' | 'user.ip_address' | 'http.method' | 'http.url' | 'http.status_code' | 'sdk.name' | 'stacktrace.code' | 'stacktrace.module' | 'stacktrace.filename' | 'stacktrace.abs_path' | 'stacktrace.package' | 'unreal.crash_type' | 'app.in_foreground' | 'os.distribution_name' | 'os.distribution_version' | 'symbolicated_in_app' | 'ota_updates.channel' | 'ota_updates.runtime_version' | 'ota_updates.update_id'; match: unknown; value: string; }) & { attribute?: 'message' | 'platform' | 'environment' | 'type' | 'error.handled' | 'error.unhandled' | 'error.main_thread' | 'exception.type' | 'exception.value' | 'user.id' | 'user.email' | 'user.username' | 'user.ip_address' | 'http.method' | 'http.url' | 'http.status_code' | 'sdk.name' | 'stacktrace.code' | 'stacktrace.module' | 'stacktrace.filename' | 'stacktrace.abs_path' | 'stacktrace.package' | 'unreal.crash_type' | 'app.in_foreground' | 'os.distribution_name' | 'os.distribution_version' | 'symbolicated_in_app' | 'ota_updates.channel' | 'ota_updates.runtime_version' | 'ota_updates.update_id'; match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; value?: string; })>; }; conditionResult: boolean; } | { id?: number; type: 'event_frequency_percent'; comparison: { interval: '1m' | '5m' | '15m' | '1h' | '1d' | '1w' | '30d'; value: number; comparisonInterval: '5m' | '15m' | '1h' | '1d' | '1w' | '30d'; filters?: Array<(({ key: string; match: 'is' | 'ns'; } | { key: string; match: unknown; value: string; }) & { key?: string; match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; value?: string; }) | (({ attribute: 'message' | 'platform' | 'environment' | 'type' | 'error.handled' | 'error.unhandled' | 'error.main_thread' | 'exception.type' | 'exception.value' | 'user.id' | 'user.email' | 'user.username' | 'user.ip_address' | 'http.method' | 'http.url' | 'http.status_code' | 'sdk.name' | 'stacktrace.code' | 'stacktrace.module' | 'stacktrace.filename' | 'stacktrace.abs_path' | 'stacktrace.package' | 'unreal.crash_type' | 'app.in_foreground' | 'os.distribution_name' | 'os.distribution_version' | 'symbolicated_in_app' | 'ota_updates.channel' | 'ota_updates.runtime_version' | 'ota_updates.update_id'; match: 'is' | 'ns'; } | { attribute: 'message' | 'platform' | 'environment' | 'type' | 'error.handled' | 'error.unhandled' | 'error.main_thread' | 'exception.type' | 'exception.value' | 'user.id' | 'user.email' | 'user.username' | 'user.ip_address' | 'http.method' | 'http.url' | 'http.status_code' | 'sdk.name' | 'stacktrace.code' | 'stacktrace.module' | 'stacktrace.filename' | 'stacktrace.abs_path' | 'stacktrace.package' | 'unreal.crash_type' | 'app.in_foreground' | 'os.distribution_name' | 'os.distribution_version' | 'symbolicated_in_app' | 'ota_updates.channel' | 'ota_updates.runtime_version' | 'ota_updates.update_id'; match: unknown; value: string; }) & { attribute?: 'message' | 'platform' | 'environment' | 'type' | 'error.handled' | 'error.unhandled' | 'error.main_thread' | 'exception.type' | 'exception.value' | 'user.id' | 'user.email' | 'user.username' | 'user.ip_address' | 'http.method' | 'http.url' | 'http.status_code' | 'sdk.name' | 'stacktrace.code' | 'stacktrace.module' | 'stacktrace.filename' | 'stacktrace.abs_path' | 'stacktrace.package' | 'unreal.crash_type' | 'app.in_foreground' | 'os.distribution_name' | 'os.distribution_version' | 'symbolicated_in_app' | 'ota_updates.channel' | 'ota_updates.runtime_version' | 'ota_updates.update_id'; match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; value?: string; })>; }; conditionResult: boolean; } | { id?: number; type: 'event_unique_user_frequency_count'; comparison: { interval: '1m' | '5m' | '15m' | '1h' | '1d' | '1w' | '30d'; value: number; filters?: Array<(({ key: string; match: 'is' | 'ns'; } | { key: string; match: unknown; value: string; }) & { key?: string; match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; value?: string; }) | (({ attribute: 'message' | 'platform' | 'environment' | 'type' | 'error.handled' | 'error.unhandled' | 'error.main_thread' | 'exception.type' | 'exception.value' | 'user.id' | 'user.email' | 'user.username' | 'user.ip_address' | 'http.method' | 'http.url' | 'http.status_code' | 'sdk.name' | 'stacktrace.code' | 'stacktrace.module' | 'stacktrace.filename' | 'stacktrace.abs_path' | 'stacktrace.package' | 'unreal.crash_type' | 'app.in_foreground' | 'os.distribution_name' | 'os.distribution_version' | 'symbolicated_in_app' | 'ota_updates.channel' | 'ota_updates.runtime_version' | 'ota_updates.update_id'; match: 'is' | 'ns'; } | { attribute: 'message' | 'platform' | 'environment' | 'type' | 'error.handled' | 'error.unhandled' | 'error.main_thread' | 'exception.type' | 'exception.value' | 'user.id' | 'user.email' | 'user.username' | 'user.ip_address' | 'http.method' | 'http.url' | 'http.status_code' | 'sdk.name' | 'stacktrace.code' | 'stacktrace.module' | 'stacktrace.filename' | 'stacktrace.abs_path' | 'stacktrace.package' | 'unreal.crash_type' | 'app.in_foreground' | 'os.distribution_name' | 'os.distribution_version' | 'symbolicated_in_app' | 'ota_updates.channel' | 'ota_updates.runtime_version' | 'ota_updates.update_id'; match: unknown; value: string; }) & { attribute?: 'message' | 'platform' | 'environment' | 'type' | 'error.handled' | 'error.unhandled' | 'error.main_thread' | 'exception.type' | 'exception.value' | 'user.id' | 'user.email' | 'user.username' | 'user.ip_address' | 'http.method' | 'http.url' | 'http.status_code' | 'sdk.name' | 'stacktrace.code' | 'stacktrace.module' | 'stacktrace.filename' | 'stacktrace.abs_path' | 'stacktrace.package' | 'unreal.crash_type' | 'app.in_foreground' | 'os.distribution_name' | 'os.distribution_version' | 'symbolicated_in_app' | 'ota_updates.channel' | 'ota_updates.runtime_version' | 'ota_updates.update_id'; match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; value?: string; })>; }; conditionResult: boolean; } | { id?: number; type: 'event_unique_user_frequency_percent'; comparison: { interval: '1m' | '5m' | '15m' | '1h' | '1d' | '1w' | '30d'; value: number; comparisonInterval: '5m' | '15m' | '1h' | '1d' | '1w' | '30d'; filters?: Array<(({ key: string; match: 'is' | 'ns'; } | { key: string; match: unknown; value: string; }) & { key?: string; match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; value?: string; }) | (({ attribute: 'message' | 'platform' | 'environment' | 'type' | 'error.handled' | 'error.unhandled' | 'error.main_thread' | 'exception.type' | 'exception.value' | 'user.id' | 'user.email' | 'user.username' | 'user.ip_address' | 'http.method' | 'http.url' | 'http.status_code' | 'sdk.name' | 'stacktrace.code' | 'stacktrace.module' | 'stacktrace.filename' | 'stacktrace.abs_path' | 'stacktrace.package' | 'unreal.crash_type' | 'app.in_foreground' | 'os.distribution_name' | 'os.distribution_version' | 'symbolicated_in_app' | 'ota_updates.channel' | 'ota_updates.runtime_version' | 'ota_updates.update_id'; match: 'is' | 'ns'; } | { attribute: 'message' | 'platform' | 'environment' | 'type' | 'error.handled' | 'error.unhandled' | 'error.main_thread' | 'exception.type' | 'exception.value' | 'user.id' | 'user.email' | 'user.username' | 'user.ip_address' | 'http.method' | 'http.url' | 'http.status_code' | 'sdk.name' | 'stacktrace.code' | 'stacktrace.module' | 'stacktrace.filename' | 'stacktrace.abs_path' | 'stacktrace.package' | 'unreal.crash_type' | 'app.in_foreground' | 'os.distribution_name' | 'os.distribution_version' | 'symbolicated_in_app' | 'ota_updates.channel' | 'ota_updates.runtime_version' | 'ota_updates.update_id'; match: unknown; value: string; }) & { attribute?: 'message' | 'platform' | 'environment' | 'type' | 'error.handled' | 'error.unhandled' | 'error.main_thread' | 'exception.type' | 'exception.value' | 'user.id' | 'user.email' | 'user.username' | 'user.ip_address' | 'http.method' | 'http.url' | 'http.status_code' | 'sdk.name' | 'stacktrace.code' | 'stacktrace.module' | 'stacktrace.filename' | 'stacktrace.abs_path' | 'stacktrace.package' | 'unreal.crash_type' | 'app.in_foreground' | 'os.distribution_name' | 'os.distribution_version' | 'symbolicated_in_app' | 'ota_updates.channel' | 'ota_updates.runtime_version' | 'ota_updates.update_id'; match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; value?: string; })>; }; conditionResult: boolean; } | { id?: number; type: 'issue_category'; comparison: { value: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 19; include?: boolean; }; conditionResult: boolean; } | { id?: number; type: 'issue_occurrences'; comparison: { value: number; }; conditionResult: boolean; } | { id?: number; type: 'issue_priority_deescalating'; comparison: 25 | 50 | 75; conditionResult: boolean; } | { id?: number; type: 'issue_priority_greater_or_equal'; comparison: 25 | 50 | 75; conditionResult: boolean; } | { id?: number; type: 'issue_type'; comparison: { value: 'performance_slow_db_query' | 'performance_render_blocking_asset_span' | 'performance_n_plus_one_db_queries' | 'performance_n_plus_one_db_queries_experimental' | 'performance_consecutive_db_queries' | 'performance_file_io_main_thread' | 'performance_consecutive_http' | 'performance_n_plus_one_api_calls' | 'performance_n_plus_one_api_calls_experimental' | 'performance_m_n_plus_one_db_queries' | 'performance_m_n_plus_one_db_queries_experimental' | 'performance_uncompressed_assets' | 'performance_db_main_thread' | 'performance_large_http_payload' | 'performance_http_overhead' | 'performance_p95_endpoint_regression' | 'performance_streamed_spans_exp' | 'db_query_injection_vulnerability' | 'query_injection_vulnerability' | 'profile_file_io_main_thread' | 'profile_image_decode_main_thread' | 'profile_json_decode_main_thread' | 'profile_regex_main_thread' | 'profile_frame_drop' | 'profile_function_regression' | 'llm_detected_experimental' | 'llm_detected_experimental_v2' | 'ai_detected_http' | 'ai_detected_db' | 'ai_detected_runtime_performance' | 'ai_detected_security' | 'ai_detected_code_health' | 'ai_detected_general' | 'replay_click_rage' | 'replay_hydration_error' | 'feedback' | 'web_vitals' | 'issue_stream' | 'metric_issue' | 'error' | 'uptime_domain_failure' | 'send-test-notification' | 'monitor_check_in_failure' | 'sourcemap_configuration' | 'low_value_span_configuration' | 'preprod_size_analysis'; include?: boolean; }; conditionResult: boolean; } | { id?: number; type: 'latest_adopted_release'; comparison: { releaseAgeType: 'oldest' | 'newest'; ageComparison: 'older' | 'newer'; environment: string; }; conditionResult: boolean; } | { id?: number; type: 'latest_release'; comparison: boolean; conditionResult: boolean; } | { id?: number; type: 'level'; comparison: { level: 0 | 10 | 20 | 30 | 40 | 50; match: 'eq' | 'gte' | 'lte'; }; conditionResult: boolean; } | { id?: number; type: 'percent_sessions_count'; comparison: { interval: '1m' | '5m' | '10m' | '30m' | '1h'; value: number; filters?: Array<(({ key: string; match: 'is' | 'ns'; } | { key: string; match: unknown; value: string; }) & { key?: string; match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; value?: string; }) | (({ attribute: 'message' | 'platform' | 'environment' | 'type' | 'error.handled' | 'error.unhandled' | 'error.main_thread' | 'exception.type' | 'exception.value' | 'user.id' | 'user.email' | 'user.username' | 'user.ip_address' | 'http.method' | 'http.url' | 'http.status_code' | 'sdk.name' | 'stacktrace.code' | 'stacktrace.module' | 'stacktrace.filename' | 'stacktrace.abs_path' | 'stacktrace.package' | 'unreal.crash_type' | 'app.in_foreground' | 'os.distribution_name' | 'os.distribution_version' | 'symbolicated_in_app' | 'ota_updates.channel' | 'ota_updates.runtime_version' | 'ota_updates.update_id'; match: 'is' | 'ns'; } | { attribute: 'message' | 'platform' | 'environment' | 'type' | 'error.handled' | 'error.unhandled' | 'error.main_thread' | 'exception.type' | 'exception.value' | 'user.id' | 'user.email' | 'user.username' | 'user.ip_address' | 'http.method' | 'http.url' | 'http.status_code' | 'sdk.name' | 'stacktrace.code' | 'stacktrace.module' | 'stacktrace.filename' | 'stacktrace.abs_path' | 'stacktrace.package' | 'unreal.crash_type' | 'app.in_foreground' | 'os.distribution_name' | 'os.distribution_version' | 'symbolicated_in_app' | 'ota_updates.channel' | 'ota_updates.runtime_version' | 'ota_updates.update_id'; match: unknown; value: string; }) & { attribute?: 'message' | 'platform' | 'environment' | 'type' | 'error.handled' | 'error.unhandled' | 'error.main_thread' | 'exception.type' | 'exception.value' | 'user.id' | 'user.email' | 'user.username' | 'user.ip_address' | 'http.method' | 'http.url' | 'http.status_code' | 'sdk.name' | 'stacktrace.code' | 'stacktrace.module' | 'stacktrace.filename' | 'stacktrace.abs_path' | 'stacktrace.package' | 'unreal.crash_type' | 'app.in_foreground' | 'os.distribution_name' | 'os.distribution_version' | 'symbolicated_in_app' | 'ota_updates.channel' | 'ota_updates.runtime_version' | 'ota_updates.update_id'; match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; value?: string; })>; }; conditionResult: boolean; } | { id?: number; type: 'percent_sessions_percent'; comparison: { interval: '1m' | '5m' | '10m' | '30m' | '1h'; value: number; comparisonInterval: '5m' | '15m' | '1h' | '1d' | '1w' | '30d'; filters?: Array<(({ key: string; match: 'is' | 'ns'; } | { key: string; match: unknown; value: string; }) & { key?: string; match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; value?: string; }) | (({ attribute: 'message' | 'platform' | 'environment' | 'type' | 'error.handled' | 'error.unhandled' | 'error.main_thread' | 'exception.type' | 'exception.value' | 'user.id' | 'user.email' | 'user.username' | 'user.ip_address' | 'http.method' | 'http.url' | 'http.status_code' | 'sdk.name' | 'stacktrace.code' | 'stacktrace.module' | 'stacktrace.filename' | 'stacktrace.abs_path' | 'stacktrace.package' | 'unreal.crash_type' | 'app.in_foreground' | 'os.distribution_name' | 'os.distribution_version' | 'symbolicated_in_app' | 'ota_updates.channel' | 'ota_updates.runtime_version' | 'ota_updates.update_id'; match: 'is' | 'ns'; } | { attribute: 'message' | 'platform' | 'environment' | 'type' | 'error.handled' | 'error.unhandled' | 'error.main_thread' | 'exception.type' | 'exception.value' | 'user.id' | 'user.email' | 'user.username' | 'user.ip_address' | 'http.method' | 'http.url' | 'http.status_code' | 'sdk.name' | 'stacktrace.code' | 'stacktrace.module' | 'stacktrace.filename' | 'stacktrace.abs_path' | 'stacktrace.package' | 'unreal.crash_type' | 'app.in_foreground' | 'os.distribution_name' | 'os.distribution_version' | 'symbolicated_in_app' | 'ota_updates.channel' | 'ota_updates.runtime_version' | 'ota_updates.update_id'; match: unknown; value: string; }) & { attribute?: 'message' | 'platform' | 'environment' | 'type' | 'error.handled' | 'error.unhandled' | 'error.main_thread' | 'exception.type' | 'exception.value' | 'user.id' | 'user.email' | 'user.username' | 'user.ip_address' | 'http.method' | 'http.url' | 'http.status_code' | 'sdk.name' | 'stacktrace.code' | 'stacktrace.module' | 'stacktrace.filename' | 'stacktrace.abs_path' | 'stacktrace.package' | 'unreal.crash_type' | 'app.in_foreground' | 'os.distribution_name' | 'os.distribution_version' | 'symbolicated_in_app' | 'ota_updates.channel' | 'ota_updates.runtime_version' | 'ota_updates.update_id'; match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; value?: string; })>; }; conditionResult: boolean; } | { id?: number; type: 'tagged_event'; comparison: ({ key: string; match: 'is' | 'ns'; } | { key: string; match: unknown; value: string; }) & { key?: string; match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; value?: string; }; conditionResult: boolean; }>; actions: Array<{ id?: string; type: 'discord'; /** * Schema for Discord action data blob */ data: { /** * Tags to add to the message */ tags?: string; }; /** * The configuration schema for a Discord Action */ config: { targetIdentifier: string; targetDisplay?: string | null; targetType: 'specific'; }; status?: string; integrationId: string; } | { id?: string; type: 'email'; data: { /** * The fallthrough type for issue owners email notifications */ fallthroughType?: 'AllMembers' | 'ActiveMembers' | 'NoOne'; }; /** * The configuration schema for an email Action */ config: { /** * The stringified Sentry User.id or Team.id. Resolve users with the organization members endpoint and teams with the organization teams endpoint. Member IDs, email addresses, team slugs, and 'me' are not accepted. Omit this field when targetType is issue_owners. */ targetIdentifier?: string | null; targetDisplay?: unknown; targetType: 'user' | 'team' | 'issue_owners'; }; status?: string; } | { id?: string; type: 'github'; /** * Schema for GitHub ticket creation action data blob */ data: { /** * Dynamic form fields from customer configuration */ dynamicFormFields?: Array<{ [key: string]: unknown; }>; /** * Additional fields that aren't part of standard fields */ additionalFields: { repo: string; labels?: Array | null; assignee?: string | null; [key: string]: unknown; }; }; /** * The configuration schema for a Ticketing Action */ config: { targetIdentifier?: unknown; targetDisplay?: unknown; targetType?: 'specific'; }; status?: string; integrationId: string; } | { id?: string; type: 'github_enterprise'; /** * Schema for GitHub ticket creation action data blob */ data: { /** * Dynamic form fields from customer configuration */ dynamicFormFields?: Array<{ [key: string]: unknown; }>; /** * Additional fields that aren't part of standard fields */ additionalFields: { repo: string; labels?: Array | null; assignee?: string | null; [key: string]: unknown; }; }; /** * The configuration schema for a Ticketing Action */ config: { targetIdentifier?: unknown; targetDisplay?: unknown; targetType?: 'specific'; }; status?: string; integrationId: string; } | { id?: string; type: 'jira'; /** * Schema for ticket creation action data blob */ data: { /** * Dynamic form fields from customer configuration */ dynamicFormFields?: Array<{ [key: string]: unknown; }>; /** * Additional fields that aren't part of standard fields */ additionalFields?: { [key: string]: unknown; }; }; /** * The configuration schema for a Ticketing Action */ config: { targetIdentifier?: unknown; targetDisplay?: unknown; targetType?: 'specific'; }; status?: string; integrationId: string; } | { id?: string; type: 'jira_server'; /** * Schema for ticket creation action data blob */ data: { /** * Dynamic form fields from customer configuration */ dynamicFormFields?: Array<{ [key: string]: unknown; }>; /** * Additional fields that aren't part of standard fields */ additionalFields?: { [key: string]: unknown; }; }; /** * The configuration schema for a Ticketing Action */ config: { targetIdentifier?: unknown; targetDisplay?: unknown; targetType?: 'specific'; }; status?: string; integrationId: string; } | { id?: string; type: 'msteams'; /** * Schema for MSTeams action data blob */ data: { [key: string]: never; }; /** * The configuration schema for a Messaging Action */ config: { targetIdentifier?: string; targetDisplay: string; targetType: 'specific'; }; status?: string; integrationId: string; } | { id?: string; type: 'opsgenie'; data: { /** * The priority of the opsgenie action */ priority?: 'P1' | 'P2' | 'P3' | 'P4' | 'P5'; }; /** * The configuration schema for a on-call Action */ config: { targetIdentifier: string; targetDisplay?: string | null; targetType: 'specific'; }; status?: string; integrationId: string; } | { id?: string; type: 'pagerduty'; data: { /** * The priority of the pagerduty action */ priority?: 'default' | 'critical' | 'warning' | 'error' | 'info'; }; /** * The configuration schema for a on-call Action */ config: { targetIdentifier: string; targetDisplay?: string | null; targetType: 'specific'; }; status?: string; integrationId: string; } | { id?: string; type: 'seer_investigation'; data: unknown & { /** * Prompt the investigation runs */ prompt?: string; /** * Seer skill the investigation runs, instead of a prompt */ skill?: 'agentic_triage'; }; config: { [key: string]: never; }; status?: string; } | { id?: string; type: 'sentry_app'; /** * The data schema for a Sentry App Action */ data: { settings?: Array; }; /** * The configuration schema for a Sentry App Action */ config: { targetIdentifier: string; targetDisplay?: string | null; targetType: 'sentry_app'; }; status?: string; } | { id?: string; type: 'slack'; /** * Schema for Slack action data blob */ data: { /** * Tags to add to the message */ tags?: string; /** * Notes to add to the message */ notes?: string; }; /** * The configuration schema for a Messaging Action */ config: { targetIdentifier?: string; targetDisplay?: string; targetType: 'specific'; }; status?: string; integrationId: string; } | { id?: string; type: 'slack_staging'; /** * Schema for Slack action data blob */ data: { /** * Tags to add to the message */ tags?: string; /** * Notes to add to the message */ notes?: string; }; /** * The configuration schema for a Messaging Action */ config: { targetIdentifier?: string; targetDisplay?: string; targetType: 'specific'; }; status?: string; integrationId: string; } | { id?: string; type: 'vsts'; /** * Schema for ticket creation action data blob */ data: { /** * Dynamic form fields from customer configuration */ dynamicFormFields?: Array<{ [key: string]: unknown; }>; /** * Additional fields that aren't part of standard fields */ additionalFields?: { [key: string]: unknown; }; }; /** * The configuration schema for a Ticketing Action */ config: { targetIdentifier?: unknown; targetDisplay?: unknown; targetType?: 'specific'; }; status?: string; integrationId: string; } | { id?: string; type: 'webhook'; data: { [key: string]: unknown; }; /** * The configuration schema for Webhook Actions */ config: { targetIdentifier?: string; targetDisplay?: unknown; targetType?: null; }; status?: string; }>; }; export type AgentHandoffClaimRequest = { /** * The private agent handoff code to claim. */ handoff_code: string; }; export type AgentHandoffClaimResponse = { /** * The Sentry base URL to authenticate against */ sentryUrl: string; /** * Email address of the Sentry user */ userEmail: string; /** * Display name of the organization */ organizationName: string; /** * Slug of the organization */ organizationSlug: string; /** * Client ID of the authorized OAuth application */ clientId: string; /** * One-time code used to authenticate the CLI when the IPs match */ setupCode?: string; /** * Instructions to display after authentication succeeds */ flowInstructions: string; }; export type AggregateField = { chartType?: number; yAxes?: Array; /** * Ordered fill(...) and smooth(...) expressions. Use an empty list to clear the pipeline. */ transformations?: Array; groupBy?: string; }; export type ApiIndexResponse = { /** * API version. Always "0" */ version: string; /** * The credentials that authenticated the request, or null for session and anonymous requests */ auth: { /** * Scopes stored on the token or API key that authenticated the request */ scopes: Array; } | null; /** * The authenticated user, or null for anonymous requests and requests made with an API key or organization auth token */ user: { /** * SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access */ identities?: Array<{ /** * SSO identity ID */ id: string; /** * User's identifier at the auth provider */ name: string; /** * Organization the auth provider belongs to */ organization: { /** * Organization slug */ slug: string; /** * Organization name */ name: string; }; /** * Auth provider of the identity */ provider: { /** * Auth provider key, such as google or saml2 */ id: string; /** * Display name of the auth provider */ name: string; }; /** * When the identity was last verified by signing in through the auth provider */ dateVerified: string; /** * When the identity was last synced from the auth provider */ dateSynced: string; }>; /** * User avatar */ avatar?: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Two-factor authenticators of the user, without backup methods such as recovery codes */ authenticators?: Array<{ /** * Authenticator ID */ id: string; /** * Authenticator type, such as totp, sms, u2f or recovery */ type: string; /** * Display name of the authenticator type */ name: string; /** * When the authenticator was added */ dateCreated: string; /** * When the authenticator was last used, or null */ dateUsed: string | null; }>; /** * Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization */ canReset2fa?: boolean; /** * User ID */ id: string; /** * Display name: the user's name, or their email or username if no name is set */ name: string; /** * Username */ username: string; /** * Primary email address */ email: string; /** * Gravatar URL for the primary email address */ avatarUrl: string; /** * Whether the account is active */ isActive: boolean; /** * Whether the account is suspended. Suspended users can't sign in */ isSuspended: boolean; /** * Whether the user has a password set */ hasPasswordAuth: boolean; /** * Whether the account is managed, which stops the user from changing their username, password and similar details */ isManaged: boolean; /** * When the account was created */ dateJoined: string; /** * When the user last signed in, or null */ lastLogin: string | null; /** * Whether the user has two-factor authentication enabled */ has2fa: boolean; /** * When the user was last active, or null */ lastActive: string | null; /** * Whether the user is a superuser */ isSuperuser: boolean; /** * Whether the user has staff status */ isStaff: boolean; /** * Deprecated. Always an empty object */ experiments: { [key: string]: string; }; /** * Email addresses of the user. Only included for the requesting user or superusers; empty otherwise */ emails: Array<{ /** * Email ID */ id: string; /** * Email address */ email: string; /** * Whether the email address is verified */ is_verified: boolean; }>; /** * Preferences of the user */ options: { /** * UI theme: "light", "dark" or "system". Defaults to "system" */ theme: 'light' | 'dark' | 'system'; /** * Palette used in dark mode. Defaults to `default` */ themeVariantDark: 'default' | 'ash' | 'midnight'; /** * UI language code, such as `en` */ language: string; /** * Stack trace frame order: -1 for the default (most recent first), 1 for most recent last, 2 for most recent first */ stacktraceOrder: -1 | 1 | 2; /** * Event shown by default on issue details: "recommended", "latest" or "oldest" */ defaultIssueEvent: 'recommended' | 'latest' | 'oldest'; /** * Time zone for displayed dates, such as `UTC` */ timezone: string; /** * Whether times are shown in 24-hour format */ clock24Hours: boolean; /** * Whether the user prefers the streamlined issue details UI, or null if they haven't chosen */ prefersIssueDetailsStreamlinedUI: boolean | null; }; /** * Account flags of the user */ flags: { /** * Whether to ask the user for newsletter consent */ newsletter_consent_prompt: boolean; }; } | null; }; export type ArtifactBundleAssembleResponse = { /** * State of the bundle: ok, not_found, created, assembling or error */ state: string; /** * Checksums of the chunks the server doesn't have yet */ missingChunks: Array; /** * Error message when the state is error */ detail?: string | null; }; export type AssembleProjectDebugFilesResponse = { [key: string]: { /** * State of the file: ok, not_found, created, assembling or error */ state: string; /** * Checksums of the chunks the server doesn't have yet */ missingChunks: Array; /** * Error message when the state is error */ detail?: string | null; /** * Debug file created from the chunks. Only set when the state is ok */ dif?: { /** * ID of the debug file */ id: string; /** * Debug ID without the age suffix, as a UUID */ uuid: string; /** * Debug ID of the file */ debugId: string; /** * Code ID of the file, such as the GNU build ID. Null when the file has none */ codeId: string | null; /** * CPU architecture of the file, such as x86_64 or arm64 */ cpuName: string; /** * Name of the object file */ objectName: string; /** * Format of the file, such as macho, elf, pe, pdb, breakpad or proguard */ symbolType: string; /** * HTTP headers to download the file with, such as Content-Type */ headers: { [key: string]: string; }; /** * Size of the file in bytes */ size: number; /** * SHA-1 checksum of the file */ sha1: string; /** * When the file was uploaded (ISO 8601) */ dateCreated: string; /** * Extra data about the file, such as its features. Empty when not known */ data: { /** * Kind of the object, such as executable, debug companion or library. Left out for mapping files */ type?: string; /** * Debug features the file provides, such as symtab, debug, unwind, sources or mapping */ features?: Array; }; }; }; }; export type AutofixConflictResponse = { /** * Why the step can't run */ detail: string; /** * Set when a client can act on the conflict. `scm_integration_required` and `repos_not_linked` mean the organization or project must finish Seer setup before a new run can start. `run_in_flight` means a step is already running for the run in `run_id`, so poll it instead of retrying */ code?: 'scm_integration_required' | 'repos_not_linked' | 'run_in_flight'; /** * ID of the run in Seer. Set with `run_in_flight` */ run_id?: number; /** * ID of the run in Sentry. Set with `run_in_flight`, null for legacy runs */ sentry_run_id?: string | null; }; export type AutofixPaymentRequiredResponse = { /** * Why the organization can't run Seer */ detail: string; /** * `seer_out_of_credits` when the organization does not have enough Seer credits, `seer_out_of_quota` when it has no Seer budget */ code: 'seer_out_of_credits' | 'seer_out_of_quota'; /** * Set with `seer_out_of_credits`. `not_enough_credits` when the organization's credit balance doesn't cover the operation, `daily_cap_exceeded` when it would pass the organization's daily spend cap, null when no reason is known */ denialReason?: 'not_enough_credits' | 'daily_cap_exceeded' | null; }; /** * Response type for the POST endpoint (default kickoff and step paths). */ export type AutofixPostResponse = { /** * ID of the Autofix run in Seer */ run_id: number; /** * ID of the run in Sentry. Null for legacy runs */ sentry_run_id: string | null; /** * "autofix_single_run" for a single-run Autofix run, otherwise "autofix" */ feature_id: string; }; /** * Response type for the GET endpoint */ export type AutofixStateResponse = { /** * The ``formatted`` field the mixin adds to a response when ``?llmFormat`` is requested. * * ``content`` is text for the text formats and a serialized JSON object for ``json``, so the * response shape is the same whichever format a caller asks for. */ formatted?: { /** * Format of the content: markdown, xml or json */ format: 'markdown' | 'xml' | 'json'; /** * Response rendered in the requested format, as text */ content: string; }; /** * Autofix state of the issue. Null when Autofix hasn't run */ autofix: { [key: string]: unknown; } | null; }; /** * Allows parameters to be defined in snake case, but passed as camel case. * * Errors are output in camel case. */ export type BaseDataConditionGroupValidator = { id?: number; /** * * `any` * * `any-short` * * `all` * * `none` */ logicType: 'any' | 'any-short' | 'all' | 'none'; conditions?: Array; }; export type BaseTeam = { /** * Team ID */ id: string; /** * Team slug, unique within the organization */ slug: string; /** * Display name of the team */ name: string; /** * When the team was created (ISO 8601) */ dateCreated: string | null; /** * Whether the requesting user is a member of the team */ isMember: boolean; /** * The requesting user's role in the team */ teamRole: string | null; /** * Team flags. idp:provisioned is true when the team is managed by an identity provider through SCIM */ flags: { [key: string]: boolean; }; /** * Scopes the requesting user has on the team through their team role. Empty if the user has no access */ access: Array; /** * Whether the requesting user can access the team, as a member, through open membership or through an organization role with access to all teams */ hasAccess: boolean; /** * Whether the requesting user has a pending request to join the team */ isPending: boolean; /** * Number of members in the team */ memberCount: number; /** * Team avatar */ avatar: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; }; /** * Append a user's block, or write a producer's block by key and revision. * * Needs notebook, user_id and producer_writer in its context. */ export type BlockCreateValidator = { /** * Block kind: text for Markdown or query for an agent-generated data query. A producer's block must be text. * * * `text` - Text * * `query` - Query */ kind: 'text' | 'query'; /** * Current notebook version from the latest detail response. Stale versions return 409. Send this, or key and revision. */ notebookVersion?: number; /** * The producer's stable key for the block. Writing the same key again updates the block, even if a user edited or deleted it. Send with revision instead of notebookVersion. Only service accounts and Seer agents can send it. */ key?: string; /** * The producer's revision for the block. A block with a newer revision returns 409, and a write can raise it by at most 100. */ revision?: number; /** * Index among the notebook's blocks where a producer's block goes. Later blocks shift down, and a larger index puts it last. A new block goes last when omitted, and an existing block stays put. */ position?: number; /** * Block title. May be empty. */ title?: string; /** * Markdown content. May be empty, except in a producer's block. */ content?: string; /** * Instructions used when executing the block. May be empty. */ generationPrompt?: string; /** * Block configuration object. Nested keys are preserved. */ config?: { [key: string]: unknown; }; /** * Display settings. Text uses type markdown; query uses table, line, bar, or area. Versioned settings use version 1. Charts require xAxis and non-empty yAxes. Defaults to Markdown for text and table for query. */ display?: { [key: string]: unknown; }; }; /** * Camel-case API fields while preserving keys inside JSON objects. * * Unknown fields are rejected rather than silently dropped, so a typo'd field * name fails loudly instead of being ignored. */ export type BlockDeleteValidator = { /** * Current notebook version from the latest detail response. Stale versions return 409. */ notebookVersion: number; /** * Current block version from the latest block response. Stale versions return 409. */ version: number; }; /** * Camel-case API fields while preserving keys inside JSON objects. * * Unknown fields are rejected rather than silently dropped, so a typo'd field * name fails loudly instead of being ignored. */ export type BlockOrderValidator = { /** * Current notebook version from the latest detail response. Stale versions return 409. */ notebookVersion: number; /** * Every active block ID exactly once, in the desired order. */ blockIds: Array; }; /** * Camel-case API fields while preserving keys inside JSON objects. * * Unknown fields are rejected rather than silently dropped, so a typo'd field * name fails loudly instead of being ignored. */ export type BlockUpdateValidator = { /** * Current notebook version from the latest detail response. Stale versions return 409. */ notebookVersion: number; /** * Current block version from the latest block response. Stale versions return 409. */ version: number; /** * Block title. May be empty. */ title?: string; /** * User-authored content. May be empty. */ content?: string; /** * Instructions used when executing the block. May be empty. */ generationPrompt?: string; /** * Block configuration object. Nested keys are preserved. */ config?: { [key: string]: unknown; }; /** * Display settings. Text uses type markdown; query uses table, line, bar, or area. Versioned settings use version 1. Charts require xAxis and non-empty yAxes. Defaults to Markdown for text and table for query. */ display?: { [key: string]: unknown; }; }; /** * Allows parameters to be defined in snake case, but passed as camel case. * * Errors are output in camel case. */ export type BranchOverride = { /** * Event tag key to match. */ tag_name: string; /** * Event tag value to match. */ tag_value: string; /** * The repository branch Seer uses for issues whose events have this tag value. */ branch_name: string; }; export type BulkCodeMappingsPartialResponse = { /** * Number of mappings created */ created: number; /** * Number of existing mappings updated */ updated: number; /** * Number of mappings that failed */ errors: number; /** * Result for each requested mapping, in request order */ mappings: Array<{ /** * Stack trace path prefix of the mapping */ stackRoot: string; /** * Repository path prefix of the mapping */ sourceRoot: string; /** * Whether the mapping was created, updated or failed */ status: 'created' | 'updated' | 'error'; /** * Why the mapping failed. Only set when status is error */ detail?: string; }>; }; /** * Allows parameters to be defined in snake case, but passed as camel case. * * Errors are output in camel case. */ export type BulkCodeMappingsRequest = { /** * The ID or slug of the project to configure. */ project: number | string; /** * The repository name as it appears in Sentry. */ repository: string; /** * One or more stack-root and source-root mappings (maximum 300). */ mappings: Array<{ /** * The path prefix to strip from matching stack frame filenames before adding sourceRoot. */ stack_root: string; /** * The repository path prefix that replaces stackRoot. For example, /app/pkg/file.py with stackRoot=/app/ and sourceRoot=src/ resolves to src/pkg/file.py. */ source_root: string; }>; /** * Optional repository provider used to disambiguate or find the repository. If no matching Sentry repository exists, the repository is created after the provider confirms it exists. */ provider?: string | null; /** * The repository branch to use; inferred from the integration when omitted. */ default_branch?: string; }; export type BulkCodeMappingsResponse = { /** * Number of mappings created */ created: number; /** * Number of existing mappings updated */ updated: number; /** * Number of mappings that failed */ errors: number; /** * Result for each requested mapping, in request order */ mappings: Array<{ /** * Stack trace path prefix of the mapping */ stackRoot: string; /** * Repository path prefix of the mapping */ sourceRoot: string; /** * Whether the mapping was created, updated or failed */ status: 'created' | 'updated' | 'error'; /** * Why the mapping failed. Only set when status is error */ detail?: string; }>; }; export type BulkEnvironment = { /** * List of environment names to update. Maximum 1000. */ environmentNames: Array; /** * Specify `true` to hide or `false` to show the specified environments. */ isHidden: boolean; }; export type BulkUpdateAlerts = { /** * Whether to enable or disable the alerts */ enabled: boolean; }; export type BulkUpdateMonitors = { /** * Whether to enable or disable the monitors */ enabled: boolean; }; export type BulkUpdateProjectEnvironments = Array<{ /** * ID of the environment */ id: string; /** * Name of the environment */ name: string; /** * Whether the environment is hidden in the project */ isHidden: boolean; }>; export type CheckInList = Array<{ /** * Issues linked to the check-in's trace. Only included when requested with expand=groups */ groups?: Array; /** * ID of the check-in */ id: string; /** * Name of the environment the check-in belongs to */ environment: string; /** * Status of the check-in */ status: 'unknown' | 'ok' | 'error' | 'in_progress' | 'missed' | 'timeout'; /** * Duration of the job run in milliseconds */ duration: number | null; /** * When the check-in was stored (ISO 8601) */ dateCreated: string | null; /** * When the check-in was received (ISO 8601) */ dateAdded: string; /** * When the check-in was last updated (ISO 8601) */ dateUpdated: string; /** * When the first in_progress check-in was received (ISO 8601). Null when none was sent */ dateInProgress: string | null; /** * Clock time the check-in was processed at, relative to other check-in tasks (ISO 8601) */ dateClock: string | null; /** * When the check-in was expected (ISO 8601) */ expectedTime: string | null; /** * Monitor configuration when the check-in was received */ monitorConfig: { /** * Type of schedule: crontab or interval */ schedule_type: 'crontab' | 'interval'; /** * Schedule of the monitor: a crontab string, or a [value, unit] pair for intervals, such as [1, "day"] */ schedule: string | Array; /** * How long in minutes after the expected check-in time to wait before the check-in counts as missed */ checkin_margin: number | null; /** * How long in minutes a check-in can stay in progress before it counts as failed */ max_runtime: number | null; /** * Timezone the schedule is evaluated in, as a tz database name */ timezone: string | null; /** * Number of consecutive missed or failed check-ins before an issue is created */ failure_issue_threshold: number | null; /** * Number of consecutive successful check-ins before the issue is resolved */ recovery_threshold: number | null; /** * ID of the alert rule linked to the monitor */ alert_rule_id: number | null; }; }>; export type ChunkUpload = { /** * The chunks to upload. Name each part after the SHA-1 checksum of its uncompressed content. Repeat the field for each chunk, up to `chunksPerRequest` per request. */ file: Array; }; export type ChunkUploadOptionsResponse = { /** * URL to upload chunks to */ url: string; /** * Size of each chunk in bytes */ chunkSize: number; /** * Maximum number of chunks in one upload request */ chunksPerRequest: number; /** * Maximum size of an assembled file in bytes */ maxFileSize: number; /** * Maximum size of one upload request in bytes */ maxRequestSize: number; /** * Maximum number of upload requests to run at the same time */ concurrency: number; /** * Algorithm used to checksum chunks, always sha1 */ hashAlgorithm: string; /** * Compression formats the server accepts for chunks, such as gzip and zstd. Empty when compression is off */ compression: Array; /** * Kinds of files the server can assemble from chunks, such as debug_files or artifact_bundles */ accept: Array; }; export type Commit = { id: string; repository?: string | null; message?: string | null; author_name?: string | null; author_email?: string | null; timestamp?: string | null; patch_set?: Array<{ path: string; type: string; }> | null; }; export type CommitPatchSet = { path: string; type: string; }; export type CommitSerializerResponse = Array<{ /** * Commit SHA */ id: string; /** * Commit message */ message: string | null; /** * When the commit was made (ISO 8601) */ dateCreated: string; /** * Pull request the commit belongs to */ pullRequest: { /** * Number or key of the pull request in the provider */ id: string; /** * Title of the pull request */ title: string | null; /** * Description of the pull request */ message: string | null; /** * When Sentry recorded the pull request (ISO 8601) */ dateCreated: string; /** * When the pull request was merged (ISO 8601). Null when it isn't merged */ mergedAt: string | null; /** * State of the pull request: merged, open, closed, draft or unknown. Null when not known */ status: 'merged' | 'open' | 'closed' | 'draft' | 'unknown' | null; /** * Repository of the pull request */ repository: { /** * URL of the repository */ url?: string | null; /** * Provider of the repository, with its id and name */ provider?: { [key: string]: string; }; /** * Status of the repository */ status?: 'active' | 'disabled' | 'pending_deletion' | 'deletion_in_progress'; /** * ID of the repository's integration. Null for repositories added without an integration */ integrationId?: string | null; /** * Identifier of the repository in the provider, such as owner/name */ externalSlug?: string | null; /** * ID of the repository in the provider */ externalId?: string | null; /** * Settings of the repository. Only set when expand includes settings. Null when it has none */ settings?: { /** * Whether AI code review is on for the repository */ enabledCodeReview: boolean; /** * Pull request events that start a code review: on_new_commit or on_ready_for_review */ codeReviewTriggers: Array; } | null; /** * ID of the repository */ id: string; /** * Name of the repository, such as owner/name */ name: string; /** * When the repository was added to Sentry (ISO 8601) */ dateCreated: string; }; /** * Author of the pull request, or an empty object when it has none */ author: { /** * SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access */ identities?: Array<{ /** * SSO identity ID */ id: string; /** * User's identifier at the auth provider */ name: string; /** * Organization the auth provider belongs to */ organization: { /** * Organization slug */ slug: string; /** * Organization name */ name: string; }; /** * Auth provider of the identity */ provider: { /** * Auth provider key, such as google or saml2 */ id: string; /** * Display name of the auth provider */ name: string; }; /** * When the identity was last verified by signing in through the auth provider */ dateVerified: string; /** * When the identity was last synced from the auth provider */ dateSynced: string; }>; /** * User avatar */ avatar?: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Two-factor authenticators of the user, without backup methods such as recovery codes */ authenticators?: Array<{ /** * Authenticator ID */ id: string; /** * Authenticator type, such as totp, sms, u2f or recovery */ type: string; /** * Display name of the authenticator type */ name: string; /** * When the authenticator was added */ dateCreated: string; /** * When the authenticator was last used, or null */ dateUsed: string | null; }>; /** * Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization */ canReset2fa?: boolean; /** * User ID */ id: string; /** * Display name: the user's name, or their email or username if no name is set */ name: string; /** * Username */ username: string; /** * Primary email address */ email: string; /** * Gravatar URL for the primary email address */ avatarUrl: string; /** * Whether the account is active */ isActive: boolean; /** * Whether the account is suspended. Suspended users can't sign in */ isSuspended: boolean; /** * Whether the user has a password set */ hasPasswordAuth: boolean; /** * Whether the account is managed, which stops the user from changing their username, password and similar details */ isManaged: boolean; /** * When the account was created */ dateJoined: string; /** * When the user last signed in, or null */ lastLogin: string | null; /** * Whether the user has two-factor authentication enabled */ has2fa: boolean; /** * When the user was last active, or null */ lastActive: string | null; /** * Whether the user is a superuser */ isSuperuser: boolean; /** * Whether the user has staff status */ isStaff: boolean; /** * Deprecated. Always an empty object */ experiments: { [key: string]: string; }; /** * Email addresses of the user. Only included for the requesting user or superusers; empty otherwise */ emails: Array<{ /** * Email ID */ id: string; /** * Email address */ email: string; /** * Whether the email address is verified */ is_verified: boolean; }>; } | { /** * Commit author name */ name: string | null; /** * Commit author email */ email: string; } | { [key: string]: unknown; }; /** * URL of the pull request in the provider, or null when the provider can't build one */ externalUrl: string | null; } | null; /** * How the commit was found as a suspect commit: via commit in release or via SCM integration. Empty for other commits */ suspectCommitType: string; /** * Repository the commit belongs to */ repository?: { /** * URL of the repository */ url?: string | null; /** * Provider of the repository, with its id and name */ provider?: { [key: string]: string; }; /** * Status of the repository */ status?: 'active' | 'disabled' | 'pending_deletion' | 'deletion_in_progress'; /** * ID of the repository's integration. Null for repositories added without an integration */ integrationId?: string | null; /** * Identifier of the repository in the provider, such as owner/name */ externalSlug?: string | null; /** * ID of the repository in the provider */ externalId?: string | null; /** * Settings of the repository. Only set when expand includes settings. Null when it has none */ settings?: { /** * Whether AI code review is on for the repository */ enabledCodeReview: boolean; /** * Pull request events that start a code review: on_new_commit or on_ready_for_review */ codeReviewTriggers: Array; } | null; /** * ID of the repository */ id: string; /** * Name of the repository, such as owner/name */ name: string; /** * When the repository was added to Sentry (ISO 8601) */ dateCreated: string; }; /** * Author of the commit: a Sentry user when the email matches one, otherwise the name and email from the commit */ author?: { /** * SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access */ identities?: Array<{ /** * SSO identity ID */ id: string; /** * User's identifier at the auth provider */ name: string; /** * Organization the auth provider belongs to */ organization: { /** * Organization slug */ slug: string; /** * Organization name */ name: string; }; /** * Auth provider of the identity */ provider: { /** * Auth provider key, such as google or saml2 */ id: string; /** * Display name of the auth provider */ name: string; }; /** * When the identity was last verified by signing in through the auth provider */ dateVerified: string; /** * When the identity was last synced from the auth provider */ dateSynced: string; }>; /** * User avatar */ avatar?: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Two-factor authenticators of the user, without backup methods such as recovery codes */ authenticators?: Array<{ /** * Authenticator ID */ id: string; /** * Authenticator type, such as totp, sms, u2f or recovery */ type: string; /** * Display name of the authenticator type */ name: string; /** * When the authenticator was added */ dateCreated: string; /** * When the authenticator was last used, or null */ dateUsed: string | null; }>; /** * Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization */ canReset2fa?: boolean; /** * User ID */ id: string; /** * Display name: the user's name, or their email or username if no name is set */ name: string; /** * Username */ username: string; /** * Primary email address */ email: string; /** * Gravatar URL for the primary email address */ avatarUrl: string; /** * Whether the account is active */ isActive: boolean; /** * Whether the account is suspended. Suspended users can't sign in */ isSuspended: boolean; /** * Whether the user has a password set */ hasPasswordAuth: boolean; /** * Whether the account is managed, which stops the user from changing their username, password and similar details */ isManaged: boolean; /** * When the account was created */ dateJoined: string; /** * When the user last signed in, or null */ lastLogin: string | null; /** * Whether the user has two-factor authentication enabled */ has2fa: boolean; /** * When the user was last active, or null */ lastActive: string | null; /** * Whether the user is a superuser */ isSuperuser: boolean; /** * Whether the user has staff status */ isStaff: boolean; /** * Deprecated. Always an empty object */ experiments: { [key: string]: string; }; /** * Email addresses of the user. Only included for the requesting user or superusers; empty otherwise */ emails: Array<{ /** * Email ID */ id: string; /** * Email address */ email: string; /** * Whether the email address is verified */ is_verified: boolean; }>; } | { /** * Commit author name */ name: string | null; /** * Commit author email */ email: string; } | { [key: string]: unknown; }; }>; export type ConfigValidator = { /** * Currently supports "crontab" or "interval" * * * `crontab` * * `interval` */ schedule_type?: 'crontab' | 'interval'; /** * Varies depending on the schedule_type. Is either a crontab string, or a 2 element tuple for intervals (e.g. [1, 'day']) */ schedule: unknown; /** * How long (in minutes) after the expected checkin time will we wait until we consider the checkin to have been missed. */ checkin_margin?: number | null; /** * How long (in minutes) is the checkin allowed to run for in CheckInStatus.IN_PROGRESS before it is considered failed. Maximum 10080 (7 days). */ max_runtime?: number | null; /** * tz database style timezone string * * * `Africa/Abidjan` * * `Africa/Accra` * * `Africa/Addis_Ababa` * * `Africa/Algiers` * * `Africa/Asmara` * * `Africa/Asmera` * * `Africa/Bamako` * * `Africa/Bangui` * * `Africa/Banjul` * * `Africa/Bissau` * * `Africa/Blantyre` * * `Africa/Brazzaville` * * `Africa/Bujumbura` * * `Africa/Cairo` * * `Africa/Casablanca` * * `Africa/Ceuta` * * `Africa/Conakry` * * `Africa/Dakar` * * `Africa/Dar_es_Salaam` * * `Africa/Djibouti` * * `Africa/Douala` * * `Africa/El_Aaiun` * * `Africa/Freetown` * * `Africa/Gaborone` * * `Africa/Harare` * * `Africa/Johannesburg` * * `Africa/Juba` * * `Africa/Kampala` * * `Africa/Khartoum` * * `Africa/Kigali` * * `Africa/Kinshasa` * * `Africa/Lagos` * * `Africa/Libreville` * * `Africa/Lome` * * `Africa/Luanda` * * `Africa/Lubumbashi` * * `Africa/Lusaka` * * `Africa/Malabo` * * `Africa/Maputo` * * `Africa/Maseru` * * `Africa/Mbabane` * * `Africa/Mogadishu` * * `Africa/Monrovia` * * `Africa/Nairobi` * * `Africa/Ndjamena` * * `Africa/Niamey` * * `Africa/Nouakchott` * * `Africa/Ouagadougou` * * `Africa/Porto-Novo` * * `Africa/Sao_Tome` * * `Africa/Timbuktu` * * `Africa/Tripoli` * * `Africa/Tunis` * * `Africa/Windhoek` * * `America/Adak` * * `America/Anchorage` * * `America/Anguilla` * * `America/Antigua` * * `America/Araguaina` * * `America/Argentina/Buenos_Aires` * * `America/Argentina/Catamarca` * * `America/Argentina/ComodRivadavia` * * `America/Argentina/Cordoba` * * `America/Argentina/Jujuy` * * `America/Argentina/La_Rioja` * * `America/Argentina/Mendoza` * * `America/Argentina/Rio_Gallegos` * * `America/Argentina/Salta` * * `America/Argentina/San_Juan` * * `America/Argentina/San_Luis` * * `America/Argentina/Tucuman` * * `America/Argentina/Ushuaia` * * `America/Aruba` * * `America/Asuncion` * * `America/Atikokan` * * `America/Atka` * * `America/Bahia` * * `America/Bahia_Banderas` * * `America/Barbados` * * `America/Belem` * * `America/Belize` * * `America/Blanc-Sablon` * * `America/Boa_Vista` * * `America/Bogota` * * `America/Boise` * * `America/Buenos_Aires` * * `America/Cambridge_Bay` * * `America/Campo_Grande` * * `America/Cancun` * * `America/Caracas` * * `America/Catamarca` * * `America/Cayenne` * * `America/Cayman` * * `America/Chicago` * * `America/Chihuahua` * * `America/Ciudad_Juarez` * * `America/Coral_Harbour` * * `America/Cordoba` * * `America/Costa_Rica` * * `America/Coyhaique` * * `America/Creston` * * `America/Cuiaba` * * `America/Curacao` * * `America/Danmarkshavn` * * `America/Dawson` * * `America/Dawson_Creek` * * `America/Denver` * * `America/Detroit` * * `America/Dominica` * * `America/Edmonton` * * `America/Eirunepe` * * `America/El_Salvador` * * `America/Ensenada` * * `America/Fort_Nelson` * * `America/Fort_Wayne` * * `America/Fortaleza` * * `America/Glace_Bay` * * `America/Godthab` * * `America/Goose_Bay` * * `America/Grand_Turk` * * `America/Grenada` * * `America/Guadeloupe` * * `America/Guatemala` * * `America/Guayaquil` * * `America/Guyana` * * `America/Halifax` * * `America/Havana` * * `America/Hermosillo` * * `America/Indiana/Indianapolis` * * `America/Indiana/Knox` * * `America/Indiana/Marengo` * * `America/Indiana/Petersburg` * * `America/Indiana/Tell_City` * * `America/Indiana/Vevay` * * `America/Indiana/Vincennes` * * `America/Indiana/Winamac` * * `America/Indianapolis` * * `America/Inuvik` * * `America/Iqaluit` * * `America/Jamaica` * * `America/Jujuy` * * `America/Juneau` * * `America/Kentucky/Louisville` * * `America/Kentucky/Monticello` * * `America/Knox_IN` * * `America/Kralendijk` * * `America/La_Paz` * * `America/Lima` * * `America/Los_Angeles` * * `America/Louisville` * * `America/Lower_Princes` * * `America/Maceio` * * `America/Managua` * * `America/Manaus` * * `America/Marigot` * * `America/Martinique` * * `America/Matamoros` * * `America/Mazatlan` * * `America/Mendoza` * * `America/Menominee` * * `America/Merida` * * `America/Metlakatla` * * `America/Mexico_City` * * `America/Miquelon` * * `America/Moncton` * * `America/Monterrey` * * `America/Montevideo` * * `America/Montreal` * * `America/Montserrat` * * `America/Nassau` * * `America/New_York` * * `America/Nipigon` * * `America/Nome` * * `America/Noronha` * * `America/North_Dakota/Beulah` * * `America/North_Dakota/Center` * * `America/North_Dakota/New_Salem` * * `America/Nuuk` * * `America/Ojinaga` * * `America/Panama` * * `America/Pangnirtung` * * `America/Paramaribo` * * `America/Phoenix` * * `America/Port-au-Prince` * * `America/Port_of_Spain` * * `America/Porto_Acre` * * `America/Porto_Velho` * * `America/Puerto_Rico` * * `America/Punta_Arenas` * * `America/Rainy_River` * * `America/Rankin_Inlet` * * `America/Recife` * * `America/Regina` * * `America/Resolute` * * `America/Rio_Branco` * * `America/Rosario` * * `America/Santa_Isabel` * * `America/Santarem` * * `America/Santiago` * * `America/Santo_Domingo` * * `America/Sao_Paulo` * * `America/Scoresbysund` * * `America/Shiprock` * * `America/Sitka` * * `America/St_Barthelemy` * * `America/St_Johns` * * `America/St_Kitts` * * `America/St_Lucia` * * `America/St_Thomas` * * `America/St_Vincent` * * `America/Swift_Current` * * `America/Tegucigalpa` * * `America/Thule` * * `America/Thunder_Bay` * * `America/Tijuana` * * `America/Toronto` * * `America/Tortola` * * `America/Vancouver` * * `America/Virgin` * * `America/Whitehorse` * * `America/Winnipeg` * * `America/Yakutat` * * `America/Yellowknife` * * `Antarctica/Casey` * * `Antarctica/Davis` * * `Antarctica/DumontDUrville` * * `Antarctica/Macquarie` * * `Antarctica/Mawson` * * `Antarctica/McMurdo` * * `Antarctica/Palmer` * * `Antarctica/Rothera` * * `Antarctica/South_Pole` * * `Antarctica/Syowa` * * `Antarctica/Troll` * * `Antarctica/Vostok` * * `Arctic/Longyearbyen` * * `Asia/Aden` * * `Asia/Almaty` * * `Asia/Amman` * * `Asia/Anadyr` * * `Asia/Aqtau` * * `Asia/Aqtobe` * * `Asia/Ashgabat` * * `Asia/Ashkhabad` * * `Asia/Atyrau` * * `Asia/Baghdad` * * `Asia/Bahrain` * * `Asia/Baku` * * `Asia/Bangkok` * * `Asia/Barnaul` * * `Asia/Beirut` * * `Asia/Bishkek` * * `Asia/Brunei` * * `Asia/Calcutta` * * `Asia/Chita` * * `Asia/Choibalsan` * * `Asia/Chongqing` * * `Asia/Chungking` * * `Asia/Colombo` * * `Asia/Dacca` * * `Asia/Damascus` * * `Asia/Dhaka` * * `Asia/Dili` * * `Asia/Dubai` * * `Asia/Dushanbe` * * `Asia/Famagusta` * * `Asia/Gaza` * * `Asia/Harbin` * * `Asia/Hebron` * * `Asia/Ho_Chi_Minh` * * `Asia/Hong_Kong` * * `Asia/Hovd` * * `Asia/Irkutsk` * * `Asia/Istanbul` * * `Asia/Jakarta` * * `Asia/Jayapura` * * `Asia/Jerusalem` * * `Asia/Kabul` * * `Asia/Kamchatka` * * `Asia/Karachi` * * `Asia/Kashgar` * * `Asia/Kathmandu` * * `Asia/Katmandu` * * `Asia/Khandyga` * * `Asia/Kolkata` * * `Asia/Krasnoyarsk` * * `Asia/Kuala_Lumpur` * * `Asia/Kuching` * * `Asia/Kuwait` * * `Asia/Macao` * * `Asia/Macau` * * `Asia/Magadan` * * `Asia/Makassar` * * `Asia/Manila` * * `Asia/Muscat` * * `Asia/Nicosia` * * `Asia/Novokuznetsk` * * `Asia/Novosibirsk` * * `Asia/Omsk` * * `Asia/Oral` * * `Asia/Phnom_Penh` * * `Asia/Pontianak` * * `Asia/Pyongyang` * * `Asia/Qatar` * * `Asia/Qostanay` * * `Asia/Qyzylorda` * * `Asia/Rangoon` * * `Asia/Riyadh` * * `Asia/Saigon` * * `Asia/Sakhalin` * * `Asia/Samarkand` * * `Asia/Seoul` * * `Asia/Shanghai` * * `Asia/Singapore` * * `Asia/Srednekolymsk` * * `Asia/Taipei` * * `Asia/Tashkent` * * `Asia/Tbilisi` * * `Asia/Tehran` * * `Asia/Tel_Aviv` * * `Asia/Thimbu` * * `Asia/Thimphu` * * `Asia/Tokyo` * * `Asia/Tomsk` * * `Asia/Ujung_Pandang` * * `Asia/Ulaanbaatar` * * `Asia/Ulan_Bator` * * `Asia/Urumqi` * * `Asia/Ust-Nera` * * `Asia/Vientiane` * * `Asia/Vladivostok` * * `Asia/Yakutsk` * * `Asia/Yangon` * * `Asia/Yekaterinburg` * * `Asia/Yerevan` * * `Atlantic/Azores` * * `Atlantic/Bermuda` * * `Atlantic/Canary` * * `Atlantic/Cape_Verde` * * `Atlantic/Faeroe` * * `Atlantic/Faroe` * * `Atlantic/Jan_Mayen` * * `Atlantic/Madeira` * * `Atlantic/Reykjavik` * * `Atlantic/South_Georgia` * * `Atlantic/St_Helena` * * `Atlantic/Stanley` * * `Australia/ACT` * * `Australia/Adelaide` * * `Australia/Brisbane` * * `Australia/Broken_Hill` * * `Australia/Canberra` * * `Australia/Currie` * * `Australia/Darwin` * * `Australia/Eucla` * * `Australia/Hobart` * * `Australia/LHI` * * `Australia/Lindeman` * * `Australia/Lord_Howe` * * `Australia/Melbourne` * * `Australia/NSW` * * `Australia/North` * * `Australia/Perth` * * `Australia/Queensland` * * `Australia/South` * * `Australia/Sydney` * * `Australia/Tasmania` * * `Australia/Victoria` * * `Australia/West` * * `Australia/Yancowinna` * * `Brazil/Acre` * * `Brazil/DeNoronha` * * `Brazil/East` * * `Brazil/West` * * `CET` * * `CST6CDT` * * `Canada/Atlantic` * * `Canada/Central` * * `Canada/Eastern` * * `Canada/Mountain` * * `Canada/Newfoundland` * * `Canada/Pacific` * * `Canada/Saskatchewan` * * `Canada/Yukon` * * `Chile/Continental` * * `Chile/EasterIsland` * * `Cuba` * * `EET` * * `EST` * * `EST5EDT` * * `Egypt` * * `Eire` * * `Etc/GMT` * * `Etc/GMT+0` * * `Etc/GMT+1` * * `Etc/GMT+10` * * `Etc/GMT+11` * * `Etc/GMT+12` * * `Etc/GMT+2` * * `Etc/GMT+3` * * `Etc/GMT+4` * * `Etc/GMT+5` * * `Etc/GMT+6` * * `Etc/GMT+7` * * `Etc/GMT+8` * * `Etc/GMT+9` * * `Etc/GMT-0` * * `Etc/GMT-1` * * `Etc/GMT-10` * * `Etc/GMT-11` * * `Etc/GMT-12` * * `Etc/GMT-13` * * `Etc/GMT-14` * * `Etc/GMT-2` * * `Etc/GMT-3` * * `Etc/GMT-4` * * `Etc/GMT-5` * * `Etc/GMT-6` * * `Etc/GMT-7` * * `Etc/GMT-8` * * `Etc/GMT-9` * * `Etc/GMT0` * * `Etc/Greenwich` * * `Etc/UCT` * * `Etc/UTC` * * `Etc/Universal` * * `Etc/Zulu` * * `Europe/Amsterdam` * * `Europe/Andorra` * * `Europe/Astrakhan` * * `Europe/Athens` * * `Europe/Belfast` * * `Europe/Belgrade` * * `Europe/Berlin` * * `Europe/Bratislava` * * `Europe/Brussels` * * `Europe/Bucharest` * * `Europe/Budapest` * * `Europe/Busingen` * * `Europe/Chisinau` * * `Europe/Copenhagen` * * `Europe/Dublin` * * `Europe/Gibraltar` * * `Europe/Guernsey` * * `Europe/Helsinki` * * `Europe/Isle_of_Man` * * `Europe/Istanbul` * * `Europe/Jersey` * * `Europe/Kaliningrad` * * `Europe/Kiev` * * `Europe/Kirov` * * `Europe/Kyiv` * * `Europe/Lisbon` * * `Europe/Ljubljana` * * `Europe/London` * * `Europe/Luxembourg` * * `Europe/Madrid` * * `Europe/Malta` * * `Europe/Mariehamn` * * `Europe/Minsk` * * `Europe/Monaco` * * `Europe/Moscow` * * `Europe/Nicosia` * * `Europe/Oslo` * * `Europe/Paris` * * `Europe/Podgorica` * * `Europe/Prague` * * `Europe/Riga` * * `Europe/Rome` * * `Europe/Samara` * * `Europe/San_Marino` * * `Europe/Sarajevo` * * `Europe/Saratov` * * `Europe/Simferopol` * * `Europe/Skopje` * * `Europe/Sofia` * * `Europe/Stockholm` * * `Europe/Tallinn` * * `Europe/Tirane` * * `Europe/Tiraspol` * * `Europe/Ulyanovsk` * * `Europe/Uzhgorod` * * `Europe/Vaduz` * * `Europe/Vatican` * * `Europe/Vienna` * * `Europe/Vilnius` * * `Europe/Volgograd` * * `Europe/Warsaw` * * `Europe/Zagreb` * * `Europe/Zaporozhye` * * `Europe/Zurich` * * `GB` * * `GB-Eire` * * `GMT` * * `GMT+0` * * `GMT-0` * * `GMT0` * * `Greenwich` * * `HST` * * `Hongkong` * * `Iceland` * * `Indian/Antananarivo` * * `Indian/Chagos` * * `Indian/Christmas` * * `Indian/Cocos` * * `Indian/Comoro` * * `Indian/Kerguelen` * * `Indian/Mahe` * * `Indian/Maldives` * * `Indian/Mauritius` * * `Indian/Mayotte` * * `Indian/Reunion` * * `Iran` * * `Israel` * * `Jamaica` * * `Japan` * * `Kwajalein` * * `Libya` * * `MET` * * `MST` * * `MST7MDT` * * `Mexico/BajaNorte` * * `Mexico/BajaSur` * * `Mexico/General` * * `NZ` * * `NZ-CHAT` * * `Navajo` * * `PRC` * * `PST8PDT` * * `Pacific/Apia` * * `Pacific/Auckland` * * `Pacific/Bougainville` * * `Pacific/Chatham` * * `Pacific/Chuuk` * * `Pacific/Easter` * * `Pacific/Efate` * * `Pacific/Enderbury` * * `Pacific/Fakaofo` * * `Pacific/Fiji` * * `Pacific/Funafuti` * * `Pacific/Galapagos` * * `Pacific/Gambier` * * `Pacific/Guadalcanal` * * `Pacific/Guam` * * `Pacific/Honolulu` * * `Pacific/Johnston` * * `Pacific/Kanton` * * `Pacific/Kiritimati` * * `Pacific/Kosrae` * * `Pacific/Kwajalein` * * `Pacific/Majuro` * * `Pacific/Marquesas` * * `Pacific/Midway` * * `Pacific/Nauru` * * `Pacific/Niue` * * `Pacific/Norfolk` * * `Pacific/Noumea` * * `Pacific/Pago_Pago` * * `Pacific/Palau` * * `Pacific/Pitcairn` * * `Pacific/Pohnpei` * * `Pacific/Ponape` * * `Pacific/Port_Moresby` * * `Pacific/Rarotonga` * * `Pacific/Saipan` * * `Pacific/Samoa` * * `Pacific/Tahiti` * * `Pacific/Tarawa` * * `Pacific/Tongatapu` * * `Pacific/Truk` * * `Pacific/Wake` * * `Pacific/Wallis` * * `Pacific/Yap` * * `Poland` * * `Portugal` * * `ROC` * * `ROK` * * `Singapore` * * `Turkey` * * `UCT` * * `US/Alaska` * * `US/Aleutian` * * `US/Arizona` * * `US/Central` * * `US/East-Indiana` * * `US/Eastern` * * `US/Hawaii` * * `US/Indiana-Starke` * * `US/Michigan` * * `US/Mountain` * * `US/Pacific` * * `US/Samoa` * * `UTC` * * `Universal` * * `W-SU` * * `WET` * * `Zulu` * * `localtime` */ timezone?: 'Africa/Abidjan' | 'Africa/Accra' | 'Africa/Addis_Ababa' | 'Africa/Algiers' | 'Africa/Asmara' | 'Africa/Asmera' | 'Africa/Bamako' | 'Africa/Bangui' | 'Africa/Banjul' | 'Africa/Bissau' | 'Africa/Blantyre' | 'Africa/Brazzaville' | 'Africa/Bujumbura' | 'Africa/Cairo' | 'Africa/Casablanca' | 'Africa/Ceuta' | 'Africa/Conakry' | 'Africa/Dakar' | 'Africa/Dar_es_Salaam' | 'Africa/Djibouti' | 'Africa/Douala' | 'Africa/El_Aaiun' | 'Africa/Freetown' | 'Africa/Gaborone' | 'Africa/Harare' | 'Africa/Johannesburg' | 'Africa/Juba' | 'Africa/Kampala' | 'Africa/Khartoum' | 'Africa/Kigali' | 'Africa/Kinshasa' | 'Africa/Lagos' | 'Africa/Libreville' | 'Africa/Lome' | 'Africa/Luanda' | 'Africa/Lubumbashi' | 'Africa/Lusaka' | 'Africa/Malabo' | 'Africa/Maputo' | 'Africa/Maseru' | 'Africa/Mbabane' | 'Africa/Mogadishu' | 'Africa/Monrovia' | 'Africa/Nairobi' | 'Africa/Ndjamena' | 'Africa/Niamey' | 'Africa/Nouakchott' | 'Africa/Ouagadougou' | 'Africa/Porto-Novo' | 'Africa/Sao_Tome' | 'Africa/Timbuktu' | 'Africa/Tripoli' | 'Africa/Tunis' | 'Africa/Windhoek' | 'America/Adak' | 'America/Anchorage' | 'America/Anguilla' | 'America/Antigua' | 'America/Araguaina' | 'America/Argentina/Buenos_Aires' | 'America/Argentina/Catamarca' | 'America/Argentina/ComodRivadavia' | 'America/Argentina/Cordoba' | 'America/Argentina/Jujuy' | 'America/Argentina/La_Rioja' | 'America/Argentina/Mendoza' | 'America/Argentina/Rio_Gallegos' | 'America/Argentina/Salta' | 'America/Argentina/San_Juan' | 'America/Argentina/San_Luis' | 'America/Argentina/Tucuman' | 'America/Argentina/Ushuaia' | 'America/Aruba' | 'America/Asuncion' | 'America/Atikokan' | 'America/Atka' | 'America/Bahia' | 'America/Bahia_Banderas' | 'America/Barbados' | 'America/Belem' | 'America/Belize' | 'America/Blanc-Sablon' | 'America/Boa_Vista' | 'America/Bogota' | 'America/Boise' | 'America/Buenos_Aires' | 'America/Cambridge_Bay' | 'America/Campo_Grande' | 'America/Cancun' | 'America/Caracas' | 'America/Catamarca' | 'America/Cayenne' | 'America/Cayman' | 'America/Chicago' | 'America/Chihuahua' | 'America/Ciudad_Juarez' | 'America/Coral_Harbour' | 'America/Cordoba' | 'America/Costa_Rica' | 'America/Coyhaique' | 'America/Creston' | 'America/Cuiaba' | 'America/Curacao' | 'America/Danmarkshavn' | 'America/Dawson' | 'America/Dawson_Creek' | 'America/Denver' | 'America/Detroit' | 'America/Dominica' | 'America/Edmonton' | 'America/Eirunepe' | 'America/El_Salvador' | 'America/Ensenada' | 'America/Fort_Nelson' | 'America/Fort_Wayne' | 'America/Fortaleza' | 'America/Glace_Bay' | 'America/Godthab' | 'America/Goose_Bay' | 'America/Grand_Turk' | 'America/Grenada' | 'America/Guadeloupe' | 'America/Guatemala' | 'America/Guayaquil' | 'America/Guyana' | 'America/Halifax' | 'America/Havana' | 'America/Hermosillo' | 'America/Indiana/Indianapolis' | 'America/Indiana/Knox' | 'America/Indiana/Marengo' | 'America/Indiana/Petersburg' | 'America/Indiana/Tell_City' | 'America/Indiana/Vevay' | 'America/Indiana/Vincennes' | 'America/Indiana/Winamac' | 'America/Indianapolis' | 'America/Inuvik' | 'America/Iqaluit' | 'America/Jamaica' | 'America/Jujuy' | 'America/Juneau' | 'America/Kentucky/Louisville' | 'America/Kentucky/Monticello' | 'America/Knox_IN' | 'America/Kralendijk' | 'America/La_Paz' | 'America/Lima' | 'America/Los_Angeles' | 'America/Louisville' | 'America/Lower_Princes' | 'America/Maceio' | 'America/Managua' | 'America/Manaus' | 'America/Marigot' | 'America/Martinique' | 'America/Matamoros' | 'America/Mazatlan' | 'America/Mendoza' | 'America/Menominee' | 'America/Merida' | 'America/Metlakatla' | 'America/Mexico_City' | 'America/Miquelon' | 'America/Moncton' | 'America/Monterrey' | 'America/Montevideo' | 'America/Montreal' | 'America/Montserrat' | 'America/Nassau' | 'America/New_York' | 'America/Nipigon' | 'America/Nome' | 'America/Noronha' | 'America/North_Dakota/Beulah' | 'America/North_Dakota/Center' | 'America/North_Dakota/New_Salem' | 'America/Nuuk' | 'America/Ojinaga' | 'America/Panama' | 'America/Pangnirtung' | 'America/Paramaribo' | 'America/Phoenix' | 'America/Port-au-Prince' | 'America/Port_of_Spain' | 'America/Porto_Acre' | 'America/Porto_Velho' | 'America/Puerto_Rico' | 'America/Punta_Arenas' | 'America/Rainy_River' | 'America/Rankin_Inlet' | 'America/Recife' | 'America/Regina' | 'America/Resolute' | 'America/Rio_Branco' | 'America/Rosario' | 'America/Santa_Isabel' | 'America/Santarem' | 'America/Santiago' | 'America/Santo_Domingo' | 'America/Sao_Paulo' | 'America/Scoresbysund' | 'America/Shiprock' | 'America/Sitka' | 'America/St_Barthelemy' | 'America/St_Johns' | 'America/St_Kitts' | 'America/St_Lucia' | 'America/St_Thomas' | 'America/St_Vincent' | 'America/Swift_Current' | 'America/Tegucigalpa' | 'America/Thule' | 'America/Thunder_Bay' | 'America/Tijuana' | 'America/Toronto' | 'America/Tortola' | 'America/Vancouver' | 'America/Virgin' | 'America/Whitehorse' | 'America/Winnipeg' | 'America/Yakutat' | 'America/Yellowknife' | 'Antarctica/Casey' | 'Antarctica/Davis' | 'Antarctica/DumontDUrville' | 'Antarctica/Macquarie' | 'Antarctica/Mawson' | 'Antarctica/McMurdo' | 'Antarctica/Palmer' | 'Antarctica/Rothera' | 'Antarctica/South_Pole' | 'Antarctica/Syowa' | 'Antarctica/Troll' | 'Antarctica/Vostok' | 'Arctic/Longyearbyen' | 'Asia/Aden' | 'Asia/Almaty' | 'Asia/Amman' | 'Asia/Anadyr' | 'Asia/Aqtau' | 'Asia/Aqtobe' | 'Asia/Ashgabat' | 'Asia/Ashkhabad' | 'Asia/Atyrau' | 'Asia/Baghdad' | 'Asia/Bahrain' | 'Asia/Baku' | 'Asia/Bangkok' | 'Asia/Barnaul' | 'Asia/Beirut' | 'Asia/Bishkek' | 'Asia/Brunei' | 'Asia/Calcutta' | 'Asia/Chita' | 'Asia/Choibalsan' | 'Asia/Chongqing' | 'Asia/Chungking' | 'Asia/Colombo' | 'Asia/Dacca' | 'Asia/Damascus' | 'Asia/Dhaka' | 'Asia/Dili' | 'Asia/Dubai' | 'Asia/Dushanbe' | 'Asia/Famagusta' | 'Asia/Gaza' | 'Asia/Harbin' | 'Asia/Hebron' | 'Asia/Ho_Chi_Minh' | 'Asia/Hong_Kong' | 'Asia/Hovd' | 'Asia/Irkutsk' | 'Asia/Istanbul' | 'Asia/Jakarta' | 'Asia/Jayapura' | 'Asia/Jerusalem' | 'Asia/Kabul' | 'Asia/Kamchatka' | 'Asia/Karachi' | 'Asia/Kashgar' | 'Asia/Kathmandu' | 'Asia/Katmandu' | 'Asia/Khandyga' | 'Asia/Kolkata' | 'Asia/Krasnoyarsk' | 'Asia/Kuala_Lumpur' | 'Asia/Kuching' | 'Asia/Kuwait' | 'Asia/Macao' | 'Asia/Macau' | 'Asia/Magadan' | 'Asia/Makassar' | 'Asia/Manila' | 'Asia/Muscat' | 'Asia/Nicosia' | 'Asia/Novokuznetsk' | 'Asia/Novosibirsk' | 'Asia/Omsk' | 'Asia/Oral' | 'Asia/Phnom_Penh' | 'Asia/Pontianak' | 'Asia/Pyongyang' | 'Asia/Qatar' | 'Asia/Qostanay' | 'Asia/Qyzylorda' | 'Asia/Rangoon' | 'Asia/Riyadh' | 'Asia/Saigon' | 'Asia/Sakhalin' | 'Asia/Samarkand' | 'Asia/Seoul' | 'Asia/Shanghai' | 'Asia/Singapore' | 'Asia/Srednekolymsk' | 'Asia/Taipei' | 'Asia/Tashkent' | 'Asia/Tbilisi' | 'Asia/Tehran' | 'Asia/Tel_Aviv' | 'Asia/Thimbu' | 'Asia/Thimphu' | 'Asia/Tokyo' | 'Asia/Tomsk' | 'Asia/Ujung_Pandang' | 'Asia/Ulaanbaatar' | 'Asia/Ulan_Bator' | 'Asia/Urumqi' | 'Asia/Ust-Nera' | 'Asia/Vientiane' | 'Asia/Vladivostok' | 'Asia/Yakutsk' | 'Asia/Yangon' | 'Asia/Yekaterinburg' | 'Asia/Yerevan' | 'Atlantic/Azores' | 'Atlantic/Bermuda' | 'Atlantic/Canary' | 'Atlantic/Cape_Verde' | 'Atlantic/Faeroe' | 'Atlantic/Faroe' | 'Atlantic/Jan_Mayen' | 'Atlantic/Madeira' | 'Atlantic/Reykjavik' | 'Atlantic/South_Georgia' | 'Atlantic/St_Helena' | 'Atlantic/Stanley' | 'Australia/ACT' | 'Australia/Adelaide' | 'Australia/Brisbane' | 'Australia/Broken_Hill' | 'Australia/Canberra' | 'Australia/Currie' | 'Australia/Darwin' | 'Australia/Eucla' | 'Australia/Hobart' | 'Australia/LHI' | 'Australia/Lindeman' | 'Australia/Lord_Howe' | 'Australia/Melbourne' | 'Australia/NSW' | 'Australia/North' | 'Australia/Perth' | 'Australia/Queensland' | 'Australia/South' | 'Australia/Sydney' | 'Australia/Tasmania' | 'Australia/Victoria' | 'Australia/West' | 'Australia/Yancowinna' | 'Brazil/Acre' | 'Brazil/DeNoronha' | 'Brazil/East' | 'Brazil/West' | 'CET' | 'CST6CDT' | 'Canada/Atlantic' | 'Canada/Central' | 'Canada/Eastern' | 'Canada/Mountain' | 'Canada/Newfoundland' | 'Canada/Pacific' | 'Canada/Saskatchewan' | 'Canada/Yukon' | 'Chile/Continental' | 'Chile/EasterIsland' | 'Cuba' | 'EET' | 'EST' | 'EST5EDT' | 'Egypt' | 'Eire' | 'Etc/GMT' | 'Etc/GMT+0' | 'Etc/GMT+1' | 'Etc/GMT+10' | 'Etc/GMT+11' | 'Etc/GMT+12' | 'Etc/GMT+2' | 'Etc/GMT+3' | 'Etc/GMT+4' | 'Etc/GMT+5' | 'Etc/GMT+6' | 'Etc/GMT+7' | 'Etc/GMT+8' | 'Etc/GMT+9' | 'Etc/GMT-0' | 'Etc/GMT-1' | 'Etc/GMT-10' | 'Etc/GMT-11' | 'Etc/GMT-12' | 'Etc/GMT-13' | 'Etc/GMT-14' | 'Etc/GMT-2' | 'Etc/GMT-3' | 'Etc/GMT-4' | 'Etc/GMT-5' | 'Etc/GMT-6' | 'Etc/GMT-7' | 'Etc/GMT-8' | 'Etc/GMT-9' | 'Etc/GMT0' | 'Etc/Greenwich' | 'Etc/UCT' | 'Etc/UTC' | 'Etc/Universal' | 'Etc/Zulu' | 'Europe/Amsterdam' | 'Europe/Andorra' | 'Europe/Astrakhan' | 'Europe/Athens' | 'Europe/Belfast' | 'Europe/Belgrade' | 'Europe/Berlin' | 'Europe/Bratislava' | 'Europe/Brussels' | 'Europe/Bucharest' | 'Europe/Budapest' | 'Europe/Busingen' | 'Europe/Chisinau' | 'Europe/Copenhagen' | 'Europe/Dublin' | 'Europe/Gibraltar' | 'Europe/Guernsey' | 'Europe/Helsinki' | 'Europe/Isle_of_Man' | 'Europe/Istanbul' | 'Europe/Jersey' | 'Europe/Kaliningrad' | 'Europe/Kiev' | 'Europe/Kirov' | 'Europe/Kyiv' | 'Europe/Lisbon' | 'Europe/Ljubljana' | 'Europe/London' | 'Europe/Luxembourg' | 'Europe/Madrid' | 'Europe/Malta' | 'Europe/Mariehamn' | 'Europe/Minsk' | 'Europe/Monaco' | 'Europe/Moscow' | 'Europe/Nicosia' | 'Europe/Oslo' | 'Europe/Paris' | 'Europe/Podgorica' | 'Europe/Prague' | 'Europe/Riga' | 'Europe/Rome' | 'Europe/Samara' | 'Europe/San_Marino' | 'Europe/Sarajevo' | 'Europe/Saratov' | 'Europe/Simferopol' | 'Europe/Skopje' | 'Europe/Sofia' | 'Europe/Stockholm' | 'Europe/Tallinn' | 'Europe/Tirane' | 'Europe/Tiraspol' | 'Europe/Ulyanovsk' | 'Europe/Uzhgorod' | 'Europe/Vaduz' | 'Europe/Vatican' | 'Europe/Vienna' | 'Europe/Vilnius' | 'Europe/Volgograd' | 'Europe/Warsaw' | 'Europe/Zagreb' | 'Europe/Zaporozhye' | 'Europe/Zurich' | 'GB' | 'GB-Eire' | 'GMT' | 'GMT+0' | 'GMT-0' | 'GMT0' | 'Greenwich' | 'HST' | 'Hongkong' | 'Iceland' | 'Indian/Antananarivo' | 'Indian/Chagos' | 'Indian/Christmas' | 'Indian/Cocos' | 'Indian/Comoro' | 'Indian/Kerguelen' | 'Indian/Mahe' | 'Indian/Maldives' | 'Indian/Mauritius' | 'Indian/Mayotte' | 'Indian/Reunion' | 'Iran' | 'Israel' | 'Jamaica' | 'Japan' | 'Kwajalein' | 'Libya' | 'MET' | 'MST' | 'MST7MDT' | 'Mexico/BajaNorte' | 'Mexico/BajaSur' | 'Mexico/General' | 'NZ' | 'NZ-CHAT' | 'Navajo' | 'PRC' | 'PST8PDT' | 'Pacific/Apia' | 'Pacific/Auckland' | 'Pacific/Bougainville' | 'Pacific/Chatham' | 'Pacific/Chuuk' | 'Pacific/Easter' | 'Pacific/Efate' | 'Pacific/Enderbury' | 'Pacific/Fakaofo' | 'Pacific/Fiji' | 'Pacific/Funafuti' | 'Pacific/Galapagos' | 'Pacific/Gambier' | 'Pacific/Guadalcanal' | 'Pacific/Guam' | 'Pacific/Honolulu' | 'Pacific/Johnston' | 'Pacific/Kanton' | 'Pacific/Kiritimati' | 'Pacific/Kosrae' | 'Pacific/Kwajalein' | 'Pacific/Majuro' | 'Pacific/Marquesas' | 'Pacific/Midway' | 'Pacific/Nauru' | 'Pacific/Niue' | 'Pacific/Norfolk' | 'Pacific/Noumea' | 'Pacific/Pago_Pago' | 'Pacific/Palau' | 'Pacific/Pitcairn' | 'Pacific/Pohnpei' | 'Pacific/Ponape' | 'Pacific/Port_Moresby' | 'Pacific/Rarotonga' | 'Pacific/Saipan' | 'Pacific/Samoa' | 'Pacific/Tahiti' | 'Pacific/Tarawa' | 'Pacific/Tongatapu' | 'Pacific/Truk' | 'Pacific/Wake' | 'Pacific/Wallis' | 'Pacific/Yap' | 'Poland' | 'Portugal' | 'ROC' | 'ROK' | 'Singapore' | 'Turkey' | 'UCT' | 'US/Alaska' | 'US/Aleutian' | 'US/Arizona' | 'US/Central' | 'US/East-Indiana' | 'US/Eastern' | 'US/Hawaii' | 'US/Indiana-Starke' | 'US/Michigan' | 'US/Mountain' | 'US/Pacific' | 'US/Samoa' | 'UTC' | 'Universal' | 'W-SU' | 'WET' | 'Zulu' | 'localtime' | ''; /** * How many consecutive missed or failed check-ins in a row before creating a new issue. */ failure_issue_threshold?: number | null; /** * How many successful check-ins in a row before resolving an issue. */ recovery_threshold?: number | null; }; export type CreateExternalIssueRequest = { /** * The title of the external issue to create. */ title: string; /** * The description (body) of the external issue to create. */ description?: string; }; /** * Allows parameters to be defined in snake case, but passed as camel case. * * Errors are output in camel case. */ export type CreateOrganizationCodeMappingRequest = { /** * The ID of a repository belonging to the installed integration. */ repository_id: number; /** * The ID of the project to associate with the code mapping. */ project_id: number; /** * The path prefix to replace in stack trace filenames. */ stack_root: string; /** * The repository path prefix to substitute for the stack trace prefix. */ source_root: string; /** * The ID of the installed integration that provides the repository. */ integration_id: number; /** * The default branch to use when resolving source files. May be empty for Perforce. */ default_branch?: string; }; export type CreateOrganizationReleaseResponse = { /** * Version control reference, such as a commit SHA or tag */ ref?: string | null; /** * Release URL */ url?: string | null; /** * When the release went live (ISO 8601) */ dateReleased?: string | null; /** * When the release was created (ISO 8601) */ dateCreated?: string | null; /** * When the release started (ISO 8601) */ dateStarted?: string | null; /** * Release owner */ owner?: { /** * SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access */ identities?: Array<{ /** * SSO identity ID */ id: string; /** * User's identifier at the auth provider */ name: string; /** * Organization the auth provider belongs to */ organization: { /** * Organization slug */ slug: string; /** * Organization name */ name: string; }; /** * Auth provider of the identity */ provider: { /** * Auth provider key, such as google or saml2 */ id: string; /** * Display name of the auth provider */ name: string; }; /** * When the identity was last verified by signing in through the auth provider */ dateVerified: string; /** * When the identity was last synced from the auth provider */ dateSynced: string; }>; /** * User avatar */ avatar?: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Two-factor authenticators of the user, without backup methods such as recovery codes */ authenticators?: Array<{ /** * Authenticator ID */ id: string; /** * Authenticator type, such as totp, sms, u2f or recovery */ type: string; /** * Display name of the authenticator type */ name: string; /** * When the authenticator was added */ dateCreated: string; /** * When the authenticator was last used, or null */ dateUsed: string | null; }>; /** * Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization */ canReset2fa?: boolean; /** * User ID */ id: string; /** * Display name: the user's name, or their email or username if no name is set */ name: string; /** * Username */ username: string; /** * Primary email address */ email: string; /** * Gravatar URL for the primary email address */ avatarUrl: string; /** * Whether the account is active */ isActive: boolean; /** * Whether the account is suspended. Suspended users can't sign in */ isSuspended: boolean; /** * Whether the user has a password set */ hasPasswordAuth: boolean; /** * Whether the account is managed, which stops the user from changing their username, password and similar details */ isManaged: boolean; /** * When the account was created */ dateJoined: string; /** * When the user last signed in, or null */ lastLogin: string | null; /** * Whether the user has two-factor authentication enabled */ has2fa: boolean; /** * When the user was last active, or null */ lastActive: string | null; /** * Whether the user is a superuser */ isSuperuser: boolean; /** * Whether the user has staff status */ isStaff: boolean; /** * Deprecated. Always an empty object */ experiments: { [key: string]: string; }; /** * Email addresses of the user. Only included for the requesting user or superusers; empty otherwise */ emails: Array<{ /** * Email ID */ id: string; /** * Email address */ email: string; /** * Whether the email address is verified */ is_verified: boolean; }>; } | null; /** * Most recent commit in the release */ lastCommit?: { /** * Commit SHA */ id: string; /** * Commit message */ message: string | null; /** * When the commit was made (ISO 8601) */ dateCreated: string; /** * Pull request the commit belongs to */ pullRequest: { /** * Number or key of the pull request in the provider */ id: string; /** * Title of the pull request */ title: string | null; /** * Description of the pull request */ message: string | null; /** * When Sentry recorded the pull request (ISO 8601) */ dateCreated: string; /** * When the pull request was merged (ISO 8601). Null when it isn't merged */ mergedAt: string | null; /** * State of the pull request: merged, open, closed, draft or unknown. Null when not known */ status: 'merged' | 'open' | 'closed' | 'draft' | 'unknown' | null; /** * Repository of the pull request */ repository: { /** * URL of the repository */ url?: string | null; /** * Provider of the repository, with its id and name */ provider?: { [key: string]: string; }; /** * Status of the repository */ status?: 'active' | 'disabled' | 'pending_deletion' | 'deletion_in_progress'; /** * ID of the repository's integration. Null for repositories added without an integration */ integrationId?: string | null; /** * Identifier of the repository in the provider, such as owner/name */ externalSlug?: string | null; /** * ID of the repository in the provider */ externalId?: string | null; /** * Settings of the repository. Only set when expand includes settings. Null when it has none */ settings?: { /** * Whether AI code review is on for the repository */ enabledCodeReview: boolean; /** * Pull request events that start a code review: on_new_commit or on_ready_for_review */ codeReviewTriggers: Array; } | null; /** * ID of the repository */ id: string; /** * Name of the repository, such as owner/name */ name: string; /** * When the repository was added to Sentry (ISO 8601) */ dateCreated: string; }; /** * Author of the pull request, or an empty object when it has none */ author: { /** * SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access */ identities?: Array<{ /** * SSO identity ID */ id: string; /** * User's identifier at the auth provider */ name: string; /** * Organization the auth provider belongs to */ organization: { /** * Organization slug */ slug: string; /** * Organization name */ name: string; }; /** * Auth provider of the identity */ provider: { /** * Auth provider key, such as google or saml2 */ id: string; /** * Display name of the auth provider */ name: string; }; /** * When the identity was last verified by signing in through the auth provider */ dateVerified: string; /** * When the identity was last synced from the auth provider */ dateSynced: string; }>; /** * User avatar */ avatar?: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Two-factor authenticators of the user, without backup methods such as recovery codes */ authenticators?: Array<{ /** * Authenticator ID */ id: string; /** * Authenticator type, such as totp, sms, u2f or recovery */ type: string; /** * Display name of the authenticator type */ name: string; /** * When the authenticator was added */ dateCreated: string; /** * When the authenticator was last used, or null */ dateUsed: string | null; }>; /** * Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization */ canReset2fa?: boolean; /** * User ID */ id: string; /** * Display name: the user's name, or their email or username if no name is set */ name: string; /** * Username */ username: string; /** * Primary email address */ email: string; /** * Gravatar URL for the primary email address */ avatarUrl: string; /** * Whether the account is active */ isActive: boolean; /** * Whether the account is suspended. Suspended users can't sign in */ isSuspended: boolean; /** * Whether the user has a password set */ hasPasswordAuth: boolean; /** * Whether the account is managed, which stops the user from changing their username, password and similar details */ isManaged: boolean; /** * When the account was created */ dateJoined: string; /** * When the user last signed in, or null */ lastLogin: string | null; /** * Whether the user has two-factor authentication enabled */ has2fa: boolean; /** * When the user was last active, or null */ lastActive: string | null; /** * Whether the user is a superuser */ isSuperuser: boolean; /** * Whether the user has staff status */ isStaff: boolean; /** * Deprecated. Always an empty object */ experiments: { [key: string]: string; }; /** * Email addresses of the user. Only included for the requesting user or superusers; empty otherwise */ emails: Array<{ /** * Email ID */ id: string; /** * Email address */ email: string; /** * Whether the email address is verified */ is_verified: boolean; }>; } | { /** * Commit author name */ name: string | null; /** * Commit author email */ email: string; } | { [key: string]: unknown; }; /** * URL of the pull request in the provider, or null when the provider can't build one */ externalUrl: string | null; } | null; /** * How the commit was found as a suspect commit: via commit in release or via SCM integration. Empty for other commits */ suspectCommitType: string; /** * Repository the commit belongs to */ repository?: { /** * URL of the repository */ url?: string | null; /** * Provider of the repository, with its id and name */ provider?: { [key: string]: string; }; /** * Status of the repository */ status?: 'active' | 'disabled' | 'pending_deletion' | 'deletion_in_progress'; /** * ID of the repository's integration. Null for repositories added without an integration */ integrationId?: string | null; /** * Identifier of the repository in the provider, such as owner/name */ externalSlug?: string | null; /** * ID of the repository in the provider */ externalId?: string | null; /** * Settings of the repository. Only set when expand includes settings. Null when it has none */ settings?: { /** * Whether AI code review is on for the repository */ enabledCodeReview: boolean; /** * Pull request events that start a code review: on_new_commit or on_ready_for_review */ codeReviewTriggers: Array; } | null; /** * ID of the repository */ id: string; /** * Name of the repository, such as owner/name */ name: string; /** * When the repository was added to Sentry (ISO 8601) */ dateCreated: string; }; /** * Author of the commit: a Sentry user when the email matches one, otherwise the name and email from the commit */ author?: { /** * SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access */ identities?: Array<{ /** * SSO identity ID */ id: string; /** * User's identifier at the auth provider */ name: string; /** * Organization the auth provider belongs to */ organization: { /** * Organization slug */ slug: string; /** * Organization name */ name: string; }; /** * Auth provider of the identity */ provider: { /** * Auth provider key, such as google or saml2 */ id: string; /** * Display name of the auth provider */ name: string; }; /** * When the identity was last verified by signing in through the auth provider */ dateVerified: string; /** * When the identity was last synced from the auth provider */ dateSynced: string; }>; /** * User avatar */ avatar?: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Two-factor authenticators of the user, without backup methods such as recovery codes */ authenticators?: Array<{ /** * Authenticator ID */ id: string; /** * Authenticator type, such as totp, sms, u2f or recovery */ type: string; /** * Display name of the authenticator type */ name: string; /** * When the authenticator was added */ dateCreated: string; /** * When the authenticator was last used, or null */ dateUsed: string | null; }>; /** * Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization */ canReset2fa?: boolean; /** * User ID */ id: string; /** * Display name: the user's name, or their email or username if no name is set */ name: string; /** * Username */ username: string; /** * Primary email address */ email: string; /** * Gravatar URL for the primary email address */ avatarUrl: string; /** * Whether the account is active */ isActive: boolean; /** * Whether the account is suspended. Suspended users can't sign in */ isSuspended: boolean; /** * Whether the user has a password set */ hasPasswordAuth: boolean; /** * Whether the account is managed, which stops the user from changing their username, password and similar details */ isManaged: boolean; /** * When the account was created */ dateJoined: string; /** * When the user last signed in, or null */ lastLogin: string | null; /** * Whether the user has two-factor authentication enabled */ has2fa: boolean; /** * When the user was last active, or null */ lastActive: string | null; /** * Whether the user is a superuser */ isSuperuser: boolean; /** * Whether the user has staff status */ isStaff: boolean; /** * Deprecated. Always an empty object */ experiments: { [key: string]: string; }; /** * Email addresses of the user. Only included for the requesting user or superusers; empty otherwise */ emails: Array<{ /** * Email ID */ id: string; /** * Email address */ email: string; /** * Whether the email address is verified */ is_verified: boolean; }>; } | { /** * Commit author name */ name: string | null; /** * Commit author email */ email: string; } | { [key: string]: unknown; }; } | null; /** * Most recent deploy of the release */ lastDeploy?: { /** * When the deploy started (ISO 8601) */ dateStarted?: string | null; /** * URL of the deploy */ url?: string | null; /** * ID of the deploy */ id: string; /** * Environment the release was deployed to */ environment: string; /** * When the deploy finished (ISO 8601) */ dateFinished: string; /** * Name of the deploy */ name: string | null; } | null; /** * When the release received its first event (ISO 8601) */ firstEvent?: string | null; /** * When the release received its most recent event (ISO 8601) */ lastEvent?: string | null; /** * Session bounds and neighboring release versions in the current project, when a project is requested */ currentProjectMeta?: { /** * Start of the release's sessions in the project (ISO 8601) */ sessionsLowerBound?: string | null; /** * End of the release's sessions in the project (ISO 8601) */ sessionsUpperBound?: string | null; /** * Version of the next release in the project */ nextReleaseVersion?: string | null; /** * Version of the previous release in the project */ prevReleaseVersion?: string | null; /** * Version of the first release in the project */ firstReleaseVersion?: string | null; /** * Version of the latest release in the project */ lastReleaseVersion?: string | null; } | null; /** * User agent of the client that created the release */ userAgent?: string | null; /** * Adoption stage of the release in each project, keyed by project slug */ adoptionStages?: { [key: string]: { /** * Adoption stage of the release */ stage: 'adopted' | 'low_adoption' | 'replaced'; /** * When the release was adopted (ISO 8601) */ adopted: string | null; /** * When the release stopped being adopted (ISO 8601) */ unadopted: string | null; }; } | null; /** * Release ID */ id: number; /** * Version of the release */ version: string; /** * Number of new issues first seen in the release */ newGroups: number; /** * Release status */ status: 'open' | 'archived'; /** * Shortened release version */ shortVersion: string; /** * Parsed version information */ versionInfo: { /** * Human-readable version, such as 1.0.0 (123) */ description?: string; /** * Package name parsed from the release version, such as com.example.app */ package: string | null; /** * Parsed version: the raw string, plus major, minor, patch, pre, buildCode and components when it's a semantic version */ version: { /** * Major version */ major?: number; /** * Minor version */ minor?: number; /** * Patch version */ patch?: number; /** * Pre-release identifier, such as rc1 */ pre?: string | null; /** * Build code, such as 123 */ buildCode?: string | null; /** * Number of version components given */ components?: number; /** * Version string the release was created with */ raw: string; }; /** * Build hash parsed from the release version */ buildHash: string | null; } | null; /** * Extra data stored on the release */ data: { [key: string]: unknown; }; /** * Number of commits in the release */ commitCount: number; /** * Number of deploys of the release */ deployCount: number; /** * Authors of the release's commits */ authors: Array<{ /** * SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access */ identities?: Array<{ /** * SSO identity ID */ id: string; /** * User's identifier at the auth provider */ name: string; /** * Organization the auth provider belongs to */ organization: { /** * Organization slug */ slug: string; /** * Organization name */ name: string; }; /** * Auth provider of the identity */ provider: { /** * Auth provider key, such as google or saml2 */ id: string; /** * Display name of the auth provider */ name: string; }; /** * When the identity was last verified by signing in through the auth provider */ dateVerified: string; /** * When the identity was last synced from the auth provider */ dateSynced: string; }>; /** * User avatar */ avatar?: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Two-factor authenticators of the user, without backup methods such as recovery codes */ authenticators?: Array<{ /** * Authenticator ID */ id: string; /** * Authenticator type, such as totp, sms, u2f or recovery */ type: string; /** * Display name of the authenticator type */ name: string; /** * When the authenticator was added */ dateCreated: string; /** * When the authenticator was last used, or null */ dateUsed: string | null; }>; /** * Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization */ canReset2fa?: boolean; /** * User ID */ id: string; /** * Display name: the user's name, or their email or username if no name is set */ name: string; /** * Username */ username: string; /** * Primary email address */ email: string; /** * Gravatar URL for the primary email address */ avatarUrl: string; /** * Whether the account is active */ isActive: boolean; /** * Whether the account is suspended. Suspended users can't sign in */ isSuspended: boolean; /** * Whether the user has a password set */ hasPasswordAuth: boolean; /** * Whether the account is managed, which stops the user from changing their username, password and similar details */ isManaged: boolean; /** * When the account was created */ dateJoined: string; /** * When the user last signed in, or null */ lastLogin: string | null; /** * Whether the user has two-factor authentication enabled */ has2fa: boolean; /** * When the user was last active, or null */ lastActive: string | null; /** * Whether the user is a superuser */ isSuperuser: boolean; /** * Whether the user has staff status */ isStaff: boolean; /** * Deprecated. Always an empty object */ experiments: { [key: string]: string; }; /** * Email addresses of the user. Only included for the requesting user or superusers; empty otherwise */ emails: Array<{ /** * Email ID */ id: string; /** * Email address */ email: string; /** * Whether the email address is verified */ is_verified: boolean; }>; } | { /** * Commit author name */ name: string | null; /** * Commit author email */ email: string; }>; /** * Projects in the release */ projects: Array<{ /** * Release health data for the project. Only included when health data is requested */ healthData?: { /** * Median session duration in seconds */ durationP50?: number | null; /** * 90th percentile session duration in seconds */ durationP90?: number | null; /** * Percentage of users who didn't experience a crash */ crashFreeUsers?: number | null; /** * Percentage of sessions that didn't crash */ crashFreeSessions?: number | null; /** * Total number of users in the release */ totalUsers?: number | null; /** * Number of users in the release over the last 24 hours */ totalUsers24h?: number | null; /** * Number of users in the project over the last 24 hours */ totalProjectUsers24h?: number | null; /** * Total number of sessions in the release */ totalSessions?: number | null; /** * Number of sessions in the release over the last 24 hours */ totalSessions24h?: number | null; /** * Number of sessions in the project over the last 24 hours */ totalProjectSessions24h?: number | null; /** * Percentage of the project's users over the last 24 hours that were on the release */ adoption?: number | null; /** * Percentage of the project's sessions over the last 24 hours that were on the release */ sessionsAdoption?: number | null; /** * Number of crashed sessions */ sessionsCrashed: number; /** * Number of sessions with errors */ sessionsErrored: number; /** * Whether the release has session data */ hasHealthData: boolean; /** * Session or user counts over time, keyed by stats period */ stats: { [key: string]: Array>; }; } | null; /** * When the release was released in the project (ISO 8601) */ dateReleased?: string | null; /** * When the release was created (ISO 8601) */ dateCreated?: string | null; /** * When work on the release started (ISO 8601) */ dateStarted?: string | null; /** * ID of the project */ id: number; /** * Slug of the project */ slug: string; /** * Name of the project */ name: string; /** * Platform of the project */ platform: string | null; /** * Platforms of the project */ platforms: Array | null; /** * Whether the release has session data in the project */ hasHealthData: boolean; /** * Number of new issues first seen in the release in the project */ newGroups: number; }>; }; export type CreateReplayDeletionJob = { /** * The deletion job */ data: { /** * ID of the deletion job */ id: number; /** * When the job was created */ dateCreated: string; /** * When the job was last updated */ dateUpdated: string; /** * Earliest UTC timestamp in the deletion range */ rangeStart: string; /** * Latest UTC timestamp in the deletion range */ rangeEnd: string; /** * Environments of the replays to delete. Empty means all environments */ environments: Array; /** * Status of the job: `pending`, `in-progress`, `completed` or `failed` */ status: string; /** * Search query that matches the replays to delete */ query: string; /** * Number of replays the job has deleted */ countDeleted: number; }; }; export type CrossEvent = { /** * The search query for this cross-event entry. */ query: string; /** * The event type this cross-event query targets. * * * `spans` * * `logs` * * `metrics` */ type: 'spans' | 'logs' | 'metrics'; /** * The metric configuration (only used when type is metrics). */ metric?: { /** * The name of the metric. */ name: string; /** * The type of the metric. * * * `counter` * * `gauge` * * `distribution` */ type: 'counter' | 'gauge' | 'distribution'; /** * The unit of the metric (e.g., 'millisecond'). See MetricUnit in relay */ unit?: string | null; } | null; }; /** * A filter as the API returns it. Requests go through * `CustomInboundFilterRequestSerializer`, which takes only the fields a caller can set. */ export type CustomInboundFilter = { /** * The ID of the filter. */ readonly id: string; /** * A human-readable label for the filter. */ name: string | null; /** * Whether the filter drops matching data. An inactive filter is kept but ignored. */ active: boolean; /** * The data the filter matches against. `all` is the catch-all: it filters every data type Sentry ingests, including ones added later, and accepts only the conditions that every data type carries a field for. * * * `all` * * `error` * * `log` * * `metric` * * `span` */ dataType: 'all' | 'error' | 'log' | 'metric' | 'span'; /** * Conditions are combined with AND: an event must match every condition to be filtered out. There is no OR between conditions, so e.g. two release conditions can express a range (`gte 2.0` and `lt 4.0`). To broaden matching, widen a condition's values or add separate filters. */ conditions: Array<{ /** * The field the condition matches against. Every `dataType` accepts `release`, `environment`, `ip_address`, `browser_name` and `browser_version`. In addition, `error` accepts `error_type`, `error_message` and `geo_country_code`, `log` accepts `log_message`, and `metric` accepts `metric_name`. `span` and `all` accept no other types. * * * `error_type` * * `error_message` * * `log_message` * * `metric_name` * * `release` * * `environment` * * `ip_address` * * `geo_country_code` * * `browser_name` * * `browser_version` */ type: 'error_type' | 'error_message' | 'log_message' | 'metric_name' | 'release' | 'environment' | 'ip_address' | 'geo_country_code' | 'browser_name' | 'browser_version'; /** * How the field compares to `value`. `glob` matches the field against each value as a glob pattern. `equals`, `starts_with`, `contains` and `ends_with` match the field against each value case-insensitively, with every character read literally; `does_not_start_with`, `does_not_contain` and `does_not_end_with` match when the field is set and no value does. `cidr` matches `ip_address` against each value as an address or a CIDR range, and `not_cidr` matches when no value does. `gt`, `gte`, `lt` and `lte` compare one value as a version and only apply to `release` and `browser_version`. * * * `glob` * * `equals` * * `starts_with` * * `contains` * * `ends_with` * * `does_not_start_with` * * `does_not_contain` * * `does_not_end_with` * * `cidr` * * `not_cidr` * * `gt` * * `gte` * * `lt` * * `lte` */ operator?: 'glob' | 'equals' | 'starts_with' | 'contains' | 'ends_with' | 'does_not_start_with' | 'does_not_contain' | 'does_not_end_with' | 'cidr' | 'not_cidr' | 'gt' | 'gte' | 'lt' | 'lte'; /** * The values the field is compared to. The condition matches when any value matches, so multiple values act as OR; a negated operator matches when none does. A version comparison takes one release with a version such as `1.2.0` or `myapp@1.2.0`. A comparison with a package only applies to releases of that package. A `browser_version` comparison takes a version without a package, such as `120` or `120.0.6099`. */ value: Array; }>; /** * When the filter was created. */ readonly dateCreated: string; /** * When the filter was last changed. */ readonly dateUpdated: string; /** * Set on a filter that holds one of the filter lists of the project settings, to the id its outcomes are reported under. Such a filter keeps its data type and its one condition: only the name, the active flag and the condition values can change, and deleting it empties the list. */ readonly legacyFilter: string | null; }; export type CustomInboundFilterCondition = { /** * The field the condition matches against. Every `dataType` accepts `release`, `environment`, `ip_address`, `browser_name` and `browser_version`. In addition, `error` accepts `error_type`, `error_message` and `geo_country_code`, `log` accepts `log_message`, and `metric` accepts `metric_name`. `span` and `all` accept no other types. * * * `error_type` * * `error_message` * * `log_message` * * `metric_name` * * `release` * * `environment` * * `ip_address` * * `geo_country_code` * * `browser_name` * * `browser_version` */ type: 'error_type' | 'error_message' | 'log_message' | 'metric_name' | 'release' | 'environment' | 'ip_address' | 'geo_country_code' | 'browser_name' | 'browser_version'; /** * How the field compares to `value`. `glob` matches the field against each value as a glob pattern. `equals`, `starts_with`, `contains` and `ends_with` match the field against each value case-insensitively, with every character read literally; `does_not_start_with`, `does_not_contain` and `does_not_end_with` match when the field is set and no value does. `cidr` matches `ip_address` against each value as an address or a CIDR range, and `not_cidr` matches when no value does. `gt`, `gte`, `lt` and `lte` compare one value as a version and only apply to `release` and `browser_version`. * * * `glob` * * `equals` * * `starts_with` * * `contains` * * `ends_with` * * `does_not_start_with` * * `does_not_contain` * * `does_not_end_with` * * `cidr` * * `not_cidr` * * `gt` * * `gte` * * `lt` * * `lte` */ operator?: 'glob' | 'equals' | 'starts_with' | 'contains' | 'ends_with' | 'does_not_start_with' | 'does_not_contain' | 'does_not_end_with' | 'cidr' | 'not_cidr' | 'gt' | 'gte' | 'lt' | 'lte'; /** * The values the field is compared to. The condition matches when any value matches, so multiple values act as OR; a negated operator matches when none does. A version comparison takes one release with a version such as `1.2.0` or `myapp@1.2.0`. A comparison with a package only applies to releases of that package. A `browser_version` comparison takes a version without a package, such as `120` or `120.0.6099`. */ value: Array; }; /** * A condition as a request sends it, where the operator is required. */ export type CustomInboundFilterConditionRequest = { /** * The field the condition matches against. Every `dataType` accepts `release`, `environment`, `ip_address`, `browser_name` and `browser_version`. In addition, `error` accepts `error_type`, `error_message` and `geo_country_code`, `log` accepts `log_message`, and `metric` accepts `metric_name`. `span` and `all` accept no other types. * * * `error_type` * * `error_message` * * `log_message` * * `metric_name` * * `release` * * `environment` * * `ip_address` * * `geo_country_code` * * `browser_name` * * `browser_version` */ type: 'error_type' | 'error_message' | 'log_message' | 'metric_name' | 'release' | 'environment' | 'ip_address' | 'geo_country_code' | 'browser_name' | 'browser_version'; /** * How the field compares to `value`. `glob` matches the field against each value as a glob pattern. `equals`, `starts_with`, `contains` and `ends_with` match the field against each value case-insensitively, with every character read literally; `does_not_start_with`, `does_not_contain` and `does_not_end_with` match when the field is set and no value does. `cidr` matches `ip_address` against each value as an address or a CIDR range, and `not_cidr` matches when no value does. `gt`, `gte`, `lt` and `lte` compare one value as a version and only apply to `release` and `browser_version`. * * * `glob` * * `equals` * * `starts_with` * * `contains` * * `ends_with` * * `does_not_start_with` * * `does_not_contain` * * `does_not_end_with` * * `cidr` * * `not_cidr` * * `gt` * * `gte` * * `lt` * * `lte` */ operator: 'glob' | 'equals' | 'starts_with' | 'contains' | 'ends_with' | 'does_not_start_with' | 'does_not_contain' | 'does_not_end_with' | 'cidr' | 'not_cidr' | 'gt' | 'gte' | 'lt' | 'lte'; /** * The values the field is compared to. The condition matches when any value matches, so multiple values act as OR; a negated operator matches when none does. A version comparison takes one release with a version such as `1.2.0` or `myapp@1.2.0`. A comparison with a package only applies to releases of that package. A `browser_version` comparison takes a version without a package, such as `120` or `120.0.6099`. */ value: Array; }; /** * The body of a create or update request: the fields a caller can set. The server sets * the id, the dates and the legacy filter, so they are not part of it. */ export type CustomInboundFilterRequest = { /** * The data the filter matches against. `all` is the catch-all: it filters every data type Sentry ingests, including ones added later, and accepts only the conditions that every data type carries a field for. * * * `all` * * `error` * * `log` * * `metric` * * `span` */ dataType: 'all' | 'error' | 'log' | 'metric' | 'span'; /** * Conditions are combined with AND: an event must match every condition to be filtered out. There is no OR between conditions, so e.g. two release conditions can express a range (`gte 2.0` and `lt 4.0`). To broaden matching, widen a condition's values or add separate filters. */ conditions: Array<{ /** * The field the condition matches against. Every `dataType` accepts `release`, `environment`, `ip_address`, `browser_name` and `browser_version`. In addition, `error` accepts `error_type`, `error_message` and `geo_country_code`, `log` accepts `log_message`, and `metric` accepts `metric_name`. `span` and `all` accept no other types. * * * `error_type` * * `error_message` * * `log_message` * * `metric_name` * * `release` * * `environment` * * `ip_address` * * `geo_country_code` * * `browser_name` * * `browser_version` */ type: 'error_type' | 'error_message' | 'log_message' | 'metric_name' | 'release' | 'environment' | 'ip_address' | 'geo_country_code' | 'browser_name' | 'browser_version'; /** * How the field compares to `value`. `glob` matches the field against each value as a glob pattern. `equals`, `starts_with`, `contains` and `ends_with` match the field against each value case-insensitively, with every character read literally; `does_not_start_with`, `does_not_contain` and `does_not_end_with` match when the field is set and no value does. `cidr` matches `ip_address` against each value as an address or a CIDR range, and `not_cidr` matches when no value does. `gt`, `gte`, `lt` and `lte` compare one value as a version and only apply to `release` and `browser_version`. * * * `glob` * * `equals` * * `starts_with` * * `contains` * * `ends_with` * * `does_not_start_with` * * `does_not_contain` * * `does_not_end_with` * * `cidr` * * `not_cidr` * * `gt` * * `gte` * * `lt` * * `lte` */ operator: 'glob' | 'equals' | 'starts_with' | 'contains' | 'ends_with' | 'does_not_start_with' | 'does_not_contain' | 'does_not_end_with' | 'cidr' | 'not_cidr' | 'gt' | 'gte' | 'lt' | 'lte'; /** * The values the field is compared to. The condition matches when any value matches, so multiple values act as OR; a negated operator matches when none does. A version comparison takes one release with a version such as `1.2.0` or `myapp@1.2.0`. A comparison with a package only applies to releases of that package. A `browser_version` comparison takes a version without a package, such as `120` or `120.0.6099`. */ value: Array; }>; /** * A human-readable label for the filter. */ name?: string | null; /** * Whether the filter drops matching data. An inactive filter is kept but ignored. */ active?: boolean; }; /** * The body of an update request. An update changes only the fields it sends. */ export type CustomInboundFilterUpdateRequest = { /** * A human-readable label for the filter. */ name?: string | null; /** * Whether the filter drops matching data. An inactive filter is kept but ignored. */ active?: boolean; /** * The data the filter matches against. `all` is the catch-all: it filters every data type Sentry ingests, including ones added later, and accepts only the conditions that every data type carries a field for. * * * `all` * * `error` * * `log` * * `metric` * * `span` */ dataType?: 'all' | 'error' | 'log' | 'metric' | 'span'; /** * Conditions are combined with AND: an event must match every condition to be filtered out. There is no OR between conditions, so e.g. two release conditions can express a range (`gte 2.0` and `lt 4.0`). To broaden matching, widen a condition's values or add separate filters. */ conditions?: Array<{ /** * The field the condition matches against. Every `dataType` accepts `release`, `environment`, `ip_address`, `browser_name` and `browser_version`. In addition, `error` accepts `error_type`, `error_message` and `geo_country_code`, `log` accepts `log_message`, and `metric` accepts `metric_name`. `span` and `all` accept no other types. * * * `error_type` * * `error_message` * * `log_message` * * `metric_name` * * `release` * * `environment` * * `ip_address` * * `geo_country_code` * * `browser_name` * * `browser_version` */ type: 'error_type' | 'error_message' | 'log_message' | 'metric_name' | 'release' | 'environment' | 'ip_address' | 'geo_country_code' | 'browser_name' | 'browser_version'; /** * How the field compares to `value`. `glob` matches the field against each value as a glob pattern. `equals`, `starts_with`, `contains` and `ends_with` match the field against each value case-insensitively, with every character read literally; `does_not_start_with`, `does_not_contain` and `does_not_end_with` match when the field is set and no value does. `cidr` matches `ip_address` against each value as an address or a CIDR range, and `not_cidr` matches when no value does. `gt`, `gte`, `lt` and `lte` compare one value as a version and only apply to `release` and `browser_version`. * * * `glob` * * `equals` * * `starts_with` * * `contains` * * `ends_with` * * `does_not_start_with` * * `does_not_contain` * * `does_not_end_with` * * `cidr` * * `not_cidr` * * `gt` * * `gte` * * `lt` * * `lte` */ operator: 'glob' | 'equals' | 'starts_with' | 'contains' | 'ends_with' | 'does_not_start_with' | 'does_not_contain' | 'does_not_end_with' | 'cidr' | 'not_cidr' | 'gt' | 'gte' | 'lt' | 'lte'; /** * The values the field is compared to. The condition matches when any value matches, so multiple values act as OR; a negated operator matches when none does. A version comparison takes one release with a version such as `1.2.0` or `myapp@1.2.0`. A comparison with a package only applies to releases of that package. A `browser_version` comparison takes a version without a package, such as `120` or `120.0.6099`. */ value: Array; }>; }; /** * Allows parameters to be defined in snake case, but passed as camel case. * * Errors are output in camel case. */ export type Dashboard = { /** * The user defined title for this dashboard. */ title: string; /** * A dashboard's unique id. */ id?: string; /** * A json list of widgets saved in this dashboard. */ widgets?: Array<{ /** * ID of an existing widget. Omit it to create a new widget. */ id?: string; /** * Title of the widget. */ title?: string; /** * Description of the widget. */ description?: string | null; /** * Thresholds that color the widget's values. */ thresholds?: { [key: string]: unknown; } | null; /** * How the widget is displayed, such as line, area, bar, table or big_number. * * * `line` * * `area` * * `bar` * * `table` * * `big_number` * * `details` * * `categorical_bar` * * `wheel` * * `rage_and_dead_clicks` * * `server_tree` * * `text` * * `agents_traces_table` * * `heatmap` */ display_type?: 'line' | 'area' | 'bar' | 'table' | 'big_number' | 'details' | 'categorical_bar' | 'wheel' | 'rage_and_dead_clicks' | 'server_tree' | 'text' | 'agents_traces_table' | 'heatmap'; /** * Time interval for the widget's series, such as 5m. */ interval?: string; /** * Queries that provide the widget's data. */ queries?: Array<{ id?: string; fields?: Array; aggregates?: Array | null; transformations?: { [key: string]: Array; }; columns?: Array | null; field_aliases?: Array | null; name?: string; conditions?: string; orderby?: string; is_hidden?: boolean; /** * Allows parameters to be defined in snake case, but passed as camel case. * * Errors are output in camel case. */ on_demand_extraction?: { extraction_state?: string; enabled?: boolean; }; on_demand_extraction_disabled?: boolean; selected_aggregate?: number | null; linked_dashboards?: Array<{ field: string; dashboard_id: string; }> | null; }>; /** * Dataset the widget queries, such as error-events, spans, logs or issue. * * * `discover` * * `issue` * * `metrics` * * `error-events` * * `transaction-like` * * `spans` * * `logs` * * `tracemetrics` * * `preprod-app-size` */ widget_type?: 'discover' | 'issue' | 'metrics' | 'error-events' | 'transaction-like' | 'spans' | 'logs' | 'tracemetrics' | 'preprod-app-size' | null; /** * Maximum number of series or rows the widget shows. */ limit?: number | null; /** * Widget grid layout position and dimensions for dashboard creation. * * The dashboard uses a 6-column grid. Required keys: x, y, w, h. * Constraints: x (0-5), y (>= 0), w (1-6), h (>= 1), and x + w <= 6. */ layout?: { /** * Column position (0-indexed). */ x: number; /** * Row position (0-indexed). */ y: number; /** * Width in grid columns (1-6). */ w: number; /** * Height in grid rows. */ h: number; } | null; /** * Y-axis range: auto or dataMin. * * * `auto` * * `dataMin` */ axis_range?: 'auto' | 'dataMin' | null; /** * Legend style: default or breakdown. * * * `default` * * `breakdown` */ legend_type?: 'default' | 'breakdown' | null; }>; /** * The saved projects filter for this dashboard. */ projects?: Array; /** * The saved environment filter for this dashboard. */ environment?: Array | null; /** * The saved time range period for this dashboard. */ period?: string | null; /** * The saved start time for this dashboard. */ start?: string | null; /** * The saved end time for this dashboard. */ end?: string | null; /** * The saved filters for this dashboard. */ filters?: { [key: string]: unknown; }; /** * Setting that lets you display saved time range for this dashboard in UTC. */ utc?: boolean; /** * Permissions that restrict users from editing dashboards */ permissions?: { /** * Whether the dashboard is editable by everyone. */ is_editable_by_everyone: boolean; /** * List of team IDs that have edit access to a dashboard. */ teams_with_edit_access?: Array; } | null; /** * The query priority * * * `normal` * * `faster` */ query_priority?: 'normal' | 'faster' | null; /** * Favorite the dashboard automatically for the request user */ is_favorited?: boolean; }; /** * Allows parameters to be defined in snake case, but passed as camel case. * * Errors are output in camel case. */ export type DashboardCreateWidget = { /** * ID of an existing widget. Omit it to create a new widget. */ id?: string; /** * Title of the widget. */ title?: string; /** * Description of the widget. */ description?: string | null; /** * Thresholds that color the widget's values. */ thresholds?: { [key: string]: unknown; } | null; /** * How the widget is displayed, such as line, area, bar, table or big_number. * * * `line` * * `area` * * `bar` * * `table` * * `big_number` * * `details` * * `categorical_bar` * * `wheel` * * `rage_and_dead_clicks` * * `server_tree` * * `text` * * `agents_traces_table` * * `heatmap` */ display_type?: 'line' | 'area' | 'bar' | 'table' | 'big_number' | 'details' | 'categorical_bar' | 'wheel' | 'rage_and_dead_clicks' | 'server_tree' | 'text' | 'agents_traces_table' | 'heatmap'; /** * Time interval for the widget's series, such as 5m. */ interval?: string; /** * Queries that provide the widget's data. */ queries?: Array<{ id?: string; fields?: Array; aggregates?: Array | null; transformations?: { [key: string]: Array; }; columns?: Array | null; field_aliases?: Array | null; name?: string; conditions?: string; orderby?: string; is_hidden?: boolean; /** * Allows parameters to be defined in snake case, but passed as camel case. * * Errors are output in camel case. */ on_demand_extraction?: { extraction_state?: string; enabled?: boolean; }; on_demand_extraction_disabled?: boolean; selected_aggregate?: number | null; linked_dashboards?: Array<{ field: string; dashboard_id: string; }> | null; }>; /** * Dataset the widget queries, such as error-events, spans, logs or issue. * * * `discover` * * `issue` * * `metrics` * * `error-events` * * `transaction-like` * * `spans` * * `logs` * * `tracemetrics` * * `preprod-app-size` */ widget_type?: 'discover' | 'issue' | 'metrics' | 'error-events' | 'transaction-like' | 'spans' | 'logs' | 'tracemetrics' | 'preprod-app-size' | null; /** * Maximum number of series or rows the widget shows. */ limit?: number | null; /** * Widget grid layout position and dimensions for dashboard creation. * * The dashboard uses a 6-column grid. Required keys: x, y, w, h. * Constraints: x (0-5), y (>= 0), w (1-6), h (>= 1), and x + w <= 6. */ layout?: { /** * Column position (0-indexed). */ x: number; /** * Row position (0-indexed). */ y: number; /** * Width in grid columns (1-6). */ w: number; /** * Height in grid rows. */ h: number; } | null; /** * Y-axis range: auto or dataMin. * * * `auto` * * `dataMin` */ axis_range?: 'auto' | 'dataMin' | null; /** * Legend style: default or breakdown. * * * `default` * * `breakdown` */ legend_type?: 'default' | 'breakdown' | null; }; /** * Widget grid layout position and dimensions for dashboard creation. * * The dashboard uses a 6-column grid. Required keys: x, y, w, h. * Constraints: x (0-5), y (>= 0), w (1-6), h (>= 1), and x + w <= 6. */ export type DashboardCreateWidgetLayout = { /** * Column position (0-indexed). */ x: number; /** * Row position (0-indexed). */ y: number; /** * Width in grid columns (1-6). */ w: number; /** * Height in grid rows. */ h: number; }; /** * Allows parameters to be defined in snake case, but passed as camel case. * * Errors are output in camel case. */ export type DashboardDetails = { /** * A dashboard's unique id. */ id?: string; /** * The user-defined dashboard title. */ title?: string; /** * A json list of widgets saved in this dashboard. */ widgets?: Array<{ /** * ID of an existing widget. Omit it to create a new widget. */ id?: string; /** * Title of the widget. */ title?: string; /** * Description of the widget. */ description?: string | null; /** * Thresholds that color the widget's values. */ thresholds?: { [key: string]: unknown; } | null; /** * How the widget is displayed, such as line, area, bar, table or big_number. * * * `line` * * `area` * * `bar` * * `table` * * `big_number` * * `details` * * `categorical_bar` * * `wheel` * * `rage_and_dead_clicks` * * `server_tree` * * `text` * * `agents_traces_table` * * `heatmap` */ display_type?: 'line' | 'area' | 'bar' | 'table' | 'big_number' | 'details' | 'categorical_bar' | 'wheel' | 'rage_and_dead_clicks' | 'server_tree' | 'text' | 'agents_traces_table' | 'heatmap'; /** * Time interval for the widget's series, such as 5m. */ interval?: string; /** * Queries that provide the widget's data. */ queries?: Array<{ id?: string; fields?: Array; aggregates?: Array | null; transformations?: { [key: string]: Array; }; columns?: Array | null; field_aliases?: Array | null; name?: string; conditions?: string; orderby?: string; is_hidden?: boolean; /** * Allows parameters to be defined in snake case, but passed as camel case. * * Errors are output in camel case. */ on_demand_extraction?: { extraction_state?: string; enabled?: boolean; }; on_demand_extraction_disabled?: boolean; selected_aggregate?: number | null; linked_dashboards?: Array<{ field: string; dashboard_id: string; }> | null; }>; /** * Dataset the widget queries, such as error-events, spans, logs or issue. * * * `discover` * * `issue` * * `metrics` * * `error-events` * * `transaction-like` * * `spans` * * `logs` * * `tracemetrics` * * `preprod-app-size` */ widget_type?: 'discover' | 'issue' | 'metrics' | 'error-events' | 'transaction-like' | 'spans' | 'logs' | 'tracemetrics' | 'preprod-app-size' | null; /** * Maximum number of series or rows the widget shows. */ limit?: number | null; /** * Position and size of the widget on the dashboard grid. */ layout?: { /** * Column position (0-indexed). */ x: number; /** * Row position (0-indexed). */ y: number; /** * Width in grid columns (1-6). */ w: number; /** * Height in grid rows. */ h: number; /** * Minimum height in grid rows. */ min_h: number; } | null; /** * Y-axis range: auto or dataMin. * * * `auto` * * `dataMin` */ axis_range?: 'auto' | 'dataMin' | null; /** * Legend style: default or breakdown. * * * `default` * * `breakdown` */ legend_type?: 'default' | 'breakdown' | null; }>; /** * The saved projects filter for this dashboard. */ projects?: Array; /** * The saved environment filter for this dashboard. */ environment?: Array | null; /** * The saved time range period for this dashboard. */ period?: string | null; /** * The saved start time for this dashboard. */ start?: string | null; /** * The saved end time for this dashboard. */ end?: string | null; /** * The saved filters for this dashboard. */ filters?: { [key: string]: unknown; }; /** * Setting that lets you display saved time range for this dashboard in UTC. */ utc?: boolean; /** * Permissions that restrict users from editing dashboards */ permissions?: { /** * Whether the dashboard is editable by everyone. */ is_editable_by_everyone: boolean; /** * List of team IDs that have edit access to a dashboard. */ teams_with_edit_access?: Array; } | null; /** * The query priority * * * `normal` * * `faster` */ query_priority?: 'normal' | 'faster' | null; }; export type DashboardDetailsModel = { /** * Saved environment filter for the dashboard */ environment?: Array; /** * Saved relative time range, such as 24h */ period?: string; /** * Whether the saved time range is shown in UTC */ utc?: string; /** * Whether the saved start time was outside data retention and was moved forward */ expired?: boolean; /** * Saved start of the time range (ISO 8601) */ start?: string; /** * Saved end of the time range (ISO 8601) */ end?: string; /** * ID of the dashboard */ id: string; /** * Title of the dashboard */ title: string; /** * When the dashboard was created (ISO 8601) */ dateCreated: string; /** * User who created the dashboard */ createdBy: { /** * SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access */ identities?: Array<{ /** * SSO identity ID */ id: string; /** * User's identifier at the auth provider */ name: string; /** * Organization the auth provider belongs to */ organization: { /** * Organization slug */ slug: string; /** * Organization name */ name: string; }; /** * Auth provider of the identity */ provider: { /** * Auth provider key, such as google or saml2 */ id: string; /** * Display name of the auth provider */ name: string; }; /** * When the identity was last verified by signing in through the auth provider */ dateVerified: string; /** * When the identity was last synced from the auth provider */ dateSynced: string; }>; /** * User avatar */ avatar?: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Two-factor authenticators of the user, without backup methods such as recovery codes */ authenticators?: Array<{ /** * Authenticator ID */ id: string; /** * Authenticator type, such as totp, sms, u2f or recovery */ type: string; /** * Display name of the authenticator type */ name: string; /** * When the authenticator was added */ dateCreated: string; /** * When the authenticator was last used, or null */ dateUsed: string | null; }>; /** * Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization */ canReset2fa?: boolean; /** * User ID */ id: string; /** * Display name: the user's name, or their email or username if no name is set */ name: string; /** * Username */ username: string; /** * Primary email address */ email: string; /** * Gravatar URL for the primary email address */ avatarUrl: string; /** * Whether the account is active */ isActive: boolean; /** * Whether the account is suspended. Suspended users can't sign in */ isSuspended: boolean; /** * Whether the user has a password set */ hasPasswordAuth: boolean; /** * Whether the account is managed, which stops the user from changing their username, password and similar details */ isManaged: boolean; /** * When the account was created */ dateJoined: string; /** * When the user last signed in, or null */ lastLogin: string | null; /** * Whether the user has two-factor authentication enabled */ has2fa: boolean; /** * When the user was last active, or null */ lastActive: string | null; /** * Whether the user is a superuser */ isSuperuser: boolean; /** * Whether the user has staff status */ isStaff: boolean; /** * Deprecated. Always an empty object */ experiments: { [key: string]: string; }; /** * Email addresses of the user. Only included for the requesting user or superusers; empty otherwise */ emails: Array<{ /** * Email ID */ id: string; /** * Email address */ email: string; /** * Whether the email address is verified */ is_verified: boolean; }>; } | null; /** * Widgets on the dashboard */ widgets: Array<{ /** * ID of the widget */ id: string; /** * Title of the widget */ title: string; /** * Description of the widget */ description: string | null; /** * How the widget is displayed, such as line, area, bar, table or big_number */ displayType: string | null; /** * Thresholds that color the widget's values */ thresholds: { /** * Whether higher (+) or lower (-) values are better. Empty when unset */ preferredPolarity?: string; /** * Time window the thresholds apply to, as a stats period such as 5m, 1h or 1d */ timeWindow?: string; /** * Threshold maximums, keyed max1 and max2 */ max_values: { [key: string]: number; }; /** * Unit of the threshold values */ unit: string; } | null; /** * Time interval for the widget's series, such as 5m */ interval: string; /** * When the widget was created (ISO 8601) */ dateCreated: string; /** * ID of the dashboard the widget belongs to */ dashboardId: string; /** * Queries that provide the widget's data */ queries: Array<{ /** * ID of the widget query */ id: string; /** * Name of the query, used as the series name */ name: string; /** * Fields the query selects */ fields: Array; /** * Aggregate functions the query computes */ aggregates: Array; /** * Transformations applied to aggregates, keyed by the aggregate's index */ transformations: { [key: string]: Array; }; /** * Columns the query groups by */ columns: Array; /** * Aliases shown in place of field names in table headers */ fieldAliases: Array; /** * Search query that filters the data */ conditions: string; /** * Field the results are sorted by */ orderby: string; /** * ID of the widget the query belongs to */ widgetId: string; /** * On-demand metric extraction settings for the query */ onDemand: Array<{ /** * Whether on-demand metric extraction is enabled for the query */ enabled: boolean; /** * On-demand extraction state, such as enabled:enrolled or disabled:high-cardinality */ extractionState: string; /** * ID of the widget query */ dashboardWidgetQueryId: number; }>; /** * Whether the query is hidden from the UI */ isHidden: boolean; /** * Index of the aggregate shown by Big Number widgets */ selectedAggregate: number | null; /** * Dashboards linked from fields in the query's results */ linkedDashboards: Array<{ /** * Field that links to the dashboard */ field: string; /** * ID of the linked dashboard */ dashboardId: number; }>; }>; /** * Maximum number of series or rows the widget shows */ limit: number | null; /** * Dataset the widget queries, such as error-events, spans, logs or issue */ widgetType: string | null; /** * Position and size of the widget on the dashboard grid */ layout: { [key: string]: number; } | null; /** * Y-axis range: auto or dataMin */ axisRange: string | null; /** * Legend style: default or breakdown */ legendType: 'default' | 'breakdown' | null; /** * Whether the widget's dataset was chosen by the user or inferred */ datasetSource: string | null; /** * Explore URLs for each query, for widgets that query transactions */ exploreUrls?: Array | null; /** * Parts of each query that were dropped when the widget was migrated from transactions to spans */ changedReason: Array<{ /** * Sort orders that were dropped when the widget was migrated from transactions to spans */ orderby: Array<{ [key: string]: string; }> | null; /** * Equations that were dropped when the widget was migrated from transactions to spans */ equations: Array<{ [key: string]: string | Array; }> | null; /** * Columns that were dropped when the widget was migrated from transactions to spans */ selected_columns: Array; }> | null; }>; /** * Saved project filter for the dashboard. [-1] means all projects */ projects: Array; /** * Saved release and global filters for the dashboard */ filters: { /** * Saved release filter */ release?: Array; /** * Saved release ID filter */ releaseId?: Array; /** * Saved global filters applied to every widget */ globalFilter?: Array<{ /** * Widget dataset the filter applies to, such as error-events, transaction-like, spans or logs */ dataset: string; /** * Tag or attribute being filtered */ tag: { /** * Key of the tag or attribute the filter applies to */ key: string; /** * Display name of the tag or attribute */ name: string; /** * Kind of the field, such as tag, measurement or field */ kind?: string; }; /** * Filter condition in search syntax, such as browser.name:[Chrome] */ value: string; /** * Whether the filter comes from a link and isn't saved by the user */ isTemporary?: boolean; }>; }; /** * Edit permissions for the dashboard */ permissions: { /** * Whether everyone in the organization can edit the dashboard */ isEditableByEveryone: boolean; /** * IDs of the teams that can edit the dashboard */ teamsWithEditAccess: Array; } | null; /** * Whether the requesting user favorited the dashboard */ isFavorited: boolean; /** * ID of the prebuilt dashboard this dashboard comes from */ prebuiltId: number | null; /** * Query priority for the dashboard: normal or faster */ queryPriority: string; }; export type DashboardListResponse = Array<{ /** * ID of the dashboard */ id: string; /** * Title of the dashboard */ title: string; /** * When the dashboard was created (ISO 8601) */ dateCreated: string; /** * User who created the dashboard */ createdBy: { /** * SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access */ identities?: Array<{ /** * SSO identity ID */ id: string; /** * User's identifier at the auth provider */ name: string; /** * Organization the auth provider belongs to */ organization: { /** * Organization slug */ slug: string; /** * Organization name */ name: string; }; /** * Auth provider of the identity */ provider: { /** * Auth provider key, such as google or saml2 */ id: string; /** * Display name of the auth provider */ name: string; }; /** * When the identity was last verified by signing in through the auth provider */ dateVerified: string; /** * When the identity was last synced from the auth provider */ dateSynced: string; }>; /** * User avatar */ avatar?: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Two-factor authenticators of the user, without backup methods such as recovery codes */ authenticators?: Array<{ /** * Authenticator ID */ id: string; /** * Authenticator type, such as totp, sms, u2f or recovery */ type: string; /** * Display name of the authenticator type */ name: string; /** * When the authenticator was added */ dateCreated: string; /** * When the authenticator was last used, or null */ dateUsed: string | null; }>; /** * Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization */ canReset2fa?: boolean; /** * User ID */ id: string; /** * Display name: the user's name, or their email or username if no name is set */ name: string; /** * Username */ username: string; /** * Primary email address */ email: string; /** * Gravatar URL for the primary email address */ avatarUrl: string; /** * Whether the account is active */ isActive: boolean; /** * Whether the account is suspended. Suspended users can't sign in */ isSuspended: boolean; /** * Whether the user has a password set */ hasPasswordAuth: boolean; /** * Whether the account is managed, which stops the user from changing their username, password and similar details */ isManaged: boolean; /** * When the account was created */ dateJoined: string; /** * When the user last signed in, or null */ lastLogin: string | null; /** * Whether the user has two-factor authentication enabled */ has2fa: boolean; /** * When the user was last active, or null */ lastActive: string | null; /** * Whether the user is a superuser */ isSuperuser: boolean; /** * Whether the user has staff status */ isStaff: boolean; /** * Deprecated. Always an empty object */ experiments: { [key: string]: string; }; /** * Email addresses of the user. Only included for the requesting user or superusers; empty otherwise */ emails: Array<{ /** * Email ID */ id: string; /** * Email address */ email: string; /** * Whether the email address is verified */ is_verified: boolean; }>; } | null; /** * Saved environment filter for the dashboard */ environment: Array; /** * Saved release and global filters for the dashboard */ filters: { /** * Saved release filter */ release?: Array; /** * Saved release ID filter */ releaseId?: Array; /** * Saved global filters applied to every widget */ globalFilter?: Array<{ /** * Widget dataset the filter applies to, such as error-events, transaction-like, spans or logs */ dataset: string; /** * Tag or attribute being filtered */ tag: { /** * Key of the tag or attribute the filter applies to */ key: string; /** * Display name of the tag or attribute */ name: string; /** * Kind of the field, such as tag, measurement or field */ kind?: string; }; /** * Filter condition in search syntax, such as browser.name:[Chrome] */ value: string; /** * Whether the filter comes from a link and isn't saved by the user */ isTemporary?: boolean; }>; }; /** * When the dashboard was last visited (ISO 8601) */ lastVisited: string | null; /** * Display type of each widget, in order */ widgetDisplay: Array; /** * Display type and layout of each widget, for rendering a preview */ widgetPreview: Array<{ [key: string]: string | null; }>; /** * Edit permissions for the dashboard */ permissions: { /** * Whether everyone in the organization can edit the dashboard */ isEditableByEveryone: boolean; /** * IDs of the teams that can edit the dashboard */ teamsWithEditAccess: Array; } | null; /** * Whether the requesting user favorited the dashboard */ isFavorited: boolean; /** * Saved project filter for the dashboard. [-1] means all projects */ projects: Array; /** * ID of the prebuilt dashboard this dashboard comes from */ prebuiltId: number | null; }>; /** * Allows parameters to be defined in snake case, but passed as camel case. * * Errors are output in camel case. */ export type DashboardPermissions = { /** * Whether the dashboard is editable by everyone. */ is_editable_by_everyone: boolean; /** * List of team IDs that have edit access to a dashboard. */ teams_with_edit_access?: Array; }; export type DashboardRevisionListResponse = Array<{ /** * ID of the revision */ id: string; /** * Title of the dashboard in this revision */ title: string; /** * When the revision was recorded (ISO 8601) */ dateCreated: string; /** * User whose change recorded the revision, or null if there is no such user or it was deleted */ createdBy: { /** * ID of the user */ id: string; /** * Display name of the user */ name: string; /** * Primary email address of the user */ email: string; /** * Avatar type, such as letter_avatar, upload or gravatar */ avatarType: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl: string | null; } | null; /** * Change that recorded the revision, which holds the dashboard as it was just before that change: edit (a dashboard edit), edit-with-agent (an edit the client marked as made by an AI agent) or pre-restore (a restore of another revision) */ source: string; }>; /** * Allows parameters to be defined in snake case, but passed as camel case. * * Errors are output in camel case. */ export type DashboardWidget = { /** * ID of an existing widget. Omit it to create a new widget. */ id?: string; /** * Title of the widget. */ title?: string; /** * Description of the widget. */ description?: string | null; /** * Thresholds that color the widget's values. */ thresholds?: { [key: string]: unknown; } | null; /** * How the widget is displayed, such as line, area, bar, table or big_number. * * * `line` * * `area` * * `bar` * * `table` * * `big_number` * * `details` * * `categorical_bar` * * `wheel` * * `rage_and_dead_clicks` * * `server_tree` * * `text` * * `agents_traces_table` * * `heatmap` */ display_type?: 'line' | 'area' | 'bar' | 'table' | 'big_number' | 'details' | 'categorical_bar' | 'wheel' | 'rage_and_dead_clicks' | 'server_tree' | 'text' | 'agents_traces_table' | 'heatmap'; /** * Time interval for the widget's series, such as 5m. */ interval?: string; /** * Queries that provide the widget's data. */ queries?: Array<{ id?: string; fields?: Array; aggregates?: Array | null; transformations?: { [key: string]: Array; }; columns?: Array | null; field_aliases?: Array | null; name?: string; conditions?: string; orderby?: string; is_hidden?: boolean; /** * Allows parameters to be defined in snake case, but passed as camel case. * * Errors are output in camel case. */ on_demand_extraction?: { extraction_state?: string; enabled?: boolean; }; on_demand_extraction_disabled?: boolean; selected_aggregate?: number | null; linked_dashboards?: Array<{ field: string; dashboard_id: string; }> | null; }>; /** * Dataset the widget queries, such as error-events, spans, logs or issue. * * * `discover` * * `issue` * * `metrics` * * `error-events` * * `transaction-like` * * `spans` * * `logs` * * `tracemetrics` * * `preprod-app-size` */ widget_type?: 'discover' | 'issue' | 'metrics' | 'error-events' | 'transaction-like' | 'spans' | 'logs' | 'tracemetrics' | 'preprod-app-size' | null; /** * Maximum number of series or rows the widget shows. */ limit?: number | null; /** * Position and size of the widget on the dashboard grid. */ layout?: { /** * Column position (0-indexed). */ x: number; /** * Row position (0-indexed). */ y: number; /** * Width in grid columns (1-6). */ w: number; /** * Height in grid rows. */ h: number; /** * Minimum height in grid rows. */ min_h: number; } | null; /** * Y-axis range: auto or dataMin. * * * `auto` * * `dataMin` */ axis_range?: 'auto' | 'dataMin' | null; /** * Legend style: default or breakdown. * * * `default` * * `breakdown` */ legend_type?: 'default' | 'breakdown' | null; }; /** * Allows parameters to be defined in snake case, but passed as camel case. * * Errors are output in camel case. */ export type DashboardWidgetQuery = { id?: string; fields?: Array; aggregates?: Array | null; transformations?: { [key: string]: Array; }; columns?: Array | null; field_aliases?: Array | null; name?: string; conditions?: string; orderby?: string; is_hidden?: boolean; /** * Allows parameters to be defined in snake case, but passed as camel case. * * Errors are output in camel case. */ on_demand_extraction?: { extraction_state?: string; enabled?: boolean; }; on_demand_extraction_disabled?: boolean; selected_aggregate?: number | null; linked_dashboards?: Array<{ field: string; dashboard_id: string; }> | null; }; /** * Allows parameters to be defined in snake case, but passed as camel case. * * Errors are output in camel case. */ export type DashboardWidgetQueryOnDemand = { extraction_state?: string; enabled?: boolean; }; export type DataForwarder = { /** * The ID of the organization related to the data forwarder. */ organization_id: number; /** * The provider of the data forwarder. One of "segment", "sqs", or "splunk". * * * `segment` - Segment * * `sqs` - Amazon SQS * * `splunk` - Splunk */ provider: 'segment' | 'sqs' | 'splunk'; /** * Whether the data forwarder is enabled. */ is_enabled?: boolean; /** * Whether to enroll new projects automatically, after they're created. */ enroll_new_projects?: boolean; /** * The configuration for the data forwarder, specific to the provider type. * For a 'sqs' provider, the required keys are queue_url, region, access_key, secret_key. If using a FIFO queue, you must also provide a message_group_id, though s3_bucket is optional. * For a 'segment' provider, the required keys are write_key. * For a 'splunk' provider, the required keys are instance_url, index, source, token. */ config?: { [key: string]: string; }; /** * The IDs of the projects connected to the data forwarder. Missing project IDs will be unenrolled if previously enrolled. */ project_ids?: Array; }; export type DataForwarderResponse = { /** * ID of the data forwarder */ id: string; /** * ID of the organization */ organizationId: string; /** * Whether the data forwarder is on */ isEnabled: boolean; /** * Whether new projects are enrolled in the forwarder automatically */ enrollNewProjects: boolean; /** * Projects enrolled in the forwarder */ enrolledProjects: Array<{ /** * ID of the project */ id: string; /** * Slug of the project */ slug: string; /** * Platform of the project */ platform: string | null; }>; /** * Service the data is forwarded to: segment, sqs or splunk */ provider: string; /** * Provider settings of the forwarder. Null without org:write access */ config: { [key: string]: string; } | null; /** * Configuration of each enrolled project */ projectConfigs: Array<{ /** * ID of the project's data forwarding configuration */ id: string; /** * Whether data forwarding is on for the project */ isEnabled: boolean; /** * ID of the data forwarder */ dataForwarderId: string; /** * Project the configuration applies to */ project: { /** * ID of the project */ id: string; /** * Slug of the project */ slug: string; /** * Platform of the project */ platform: string | null; }; /** * Settings that override the forwarder's config for the project. Empty without project:write or org:write access */ overrides: { [key: string]: string; }; /** * Forwarder config merged with the project's overrides. Empty without org:write access */ effectiveConfig: { [key: string]: string; }; /** * When the project configuration was created (ISO 8601) */ dateAdded: string; /** * When the project configuration was last updated (ISO 8601) */ dateUpdated: string; }>; /** * When the data forwarder was created (ISO 8601) */ dateAdded: string; /** * When the data forwarder was last updated (ISO 8601) */ dateUpdated: string; }; export type Deploy = { /** * The environment you're deploying to */ environment: string; /** * The optional name of the deploy */ name?: string | null; /** * The optional URL that points to the deploy */ url?: string | null; /** * An optional date that indicates when the deploy started */ dateStarted?: string | null; /** * An optional date that indicates when the deploy ended. If not provided, the current time is used. */ dateFinished?: string | null; /** * The optional list of project slugs to create a deploy within. If not provided, deploys are created for all of the release's projects. */ projects?: Array; }; /** * Serializer for Deploy response objects */ export type DeployResponse = { /** * The ID of the deploy */ id: string; /** * The environment name */ environment: string; /** * An optional date that indicates when the deploy started */ dateStarted: string | null; /** * An optional date that indicates when the deploy ended */ dateFinished: string; /** * The optional name of the deploy */ name: string | null; /** * The optional URL that points to the deploy */ url: string | null; }; export type DetailedProject = { /** * Counts of non-transaction events per interval over the requested stats period, as [timestamp, count] pairs. Only included when a stats period is requested */ stats?: Array> | { [key: string]: number; }; /** * Counts of transactions per interval over the requested stats period, as [timestamp, count] pairs. Only included when transaction stats are requested */ transactionStats?: Array>; /** * Crash-free session rates for the current and previous stats period. Only included when session stats are requested */ sessionStats?: { /** * Crash-free rate in the current period, as a percentage. Null when there's no session data */ currentCrashFreeRate: number | null; /** * Crash-free rate in the previous period, as a percentage. Null when there's no session data */ previousCrashFreeRate: number | null; /** * Whether the project has release health (session) data */ hasHealthData: boolean; }; /** * ID of the project */ id: string; /** * Slug of the project */ slug: string; /** * Name of the project */ name: string; /** * Platform of the project */ platform: string | null; /** * When the project was created (ISO 8601) */ dateCreated: string; /** * Whether the requesting user bookmarked the project */ isBookmarked: boolean; /** * Whether the requesting user is a member of a team with access to the project */ isMember: boolean; /** * Features enabled for the project */ features: Array; /** * When the project received its first event (ISO 8601) */ firstEvent: string | null; /** * Whether the project has sent transactions */ firstTransactionEvent: boolean; /** * Scopes the requesting user has on the project through team membership and organization role */ access: Array; /** * Whether the requesting user has access to the project */ hasAccess: boolean; /** * Whether the project has sent user feedback */ hasFeedbacks: boolean; /** * Whether the project has sent feature flags */ hasFlags: boolean; /** * Whether the project has sent an event with a minified stack trace */ hasMinifiedStackTrace: boolean; /** * Whether the project has cron monitors */ hasMonitors: boolean; /** * Whether the project has sent user feedback from the user feedback widget */ hasNewFeedbacks: boolean; /** * Whether the project has sent profiles */ hasProfiles: boolean; /** * Whether the project has sent replays */ hasReplays: boolean; /** * Whether the project has sent sessions */ hasSessions: boolean; /** * Whether the project has sent HTTP request spans used by Insights */ hasInsightsHttp: boolean; /** * Whether the project has sent database spans used by Insights */ hasInsightsDb: boolean; /** * Whether the project has sent asset spans used by Insights */ hasInsightsAssets: boolean; /** * Whether the project has sent app start spans used by Insights */ hasInsightsAppStart: boolean; /** * Whether the project has sent screen load spans used by Insights */ hasInsightsScreenLoad: boolean; /** * Whether the project has sent web vitals spans used by Insights */ hasInsightsVitals: boolean; /** * Whether the project has sent cache spans used by Insights */ hasInsightsCaches: boolean; /** * Whether the project has sent queue spans used by Insights */ hasInsightsQueues: boolean; /** * Whether the project has sent AI agent spans used by Insights */ hasInsightsAgentMonitoring: boolean; /** * Whether the project has sent MCP spans used by Insights */ hasInsightsMCP: boolean; /** * Whether the project has sent logs. Always true outside sentry.io */ hasLogs: boolean; /** * Whether the project has sent trace metrics. Always true outside sentry.io */ hasTraceMetrics: boolean; /** * Whether this is the Sentry install's own internal project */ isInternal: boolean; /** * Whether the project is public */ isPublic: boolean; /** * Avatar of the project. Always a letter avatar */ avatar: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Hex color code for the project, derived from its slug unless set explicitly */ color: string; /** * Status of the project: active, deleted, or unknown */ status: string; /** * First team with access to the project; use teams instead */ team?: { /** * ID of the team */ id: string; /** * Name of the team */ name: string; /** * Slug of the team */ slug: string; }; /** * Teams with access to the project */ teams: Array<{ /** * ID of the team */ id: string; /** * Name of the team */ name: string; /** * Slug of the team */ slug: string; }>; /** * Latest release of the project */ latestRelease: { /** * Version of the release */ version: string; } | null; /** * Additional project settings keyed by option name, such as inbound filters and preprod settings */ options: { [key: string]: unknown; }; /** * Minimum time in seconds to wait before sending an issue digest email */ digestsMinDelay: number; /** * Maximum time in seconds to wait before sending an issue digest email */ digestsMaxDelay: number; /** * Custom prefix for emails from this project */ subjectPrefix: string; /** * Origins permitted to send events to this project. `*` allows any */ allowedDomains: Array; /** * Hours after which an issue that hasn't been seen is automatically resolved. 0 disables auto-resolve */ resolveAge: number; /** * Whether known sensitive values are removed from events before they are stored */ dataScrubber: boolean; /** * Whether Sentry's built-in list of sensitive field names is also scrubbed */ dataScrubberDefaults: boolean; /** * Field names exempt from scrubbing */ safeFields: Array; /** * Number of native crash report files stored per issue. -1 means unlimited, 0 stores none, and null inherits the organization setting */ storeCrashReports: number | null; /** * Additional field names scrubbed from events, beyond the defaults */ sensitiveFields: Array; /** * Email subject used for individual alerts, excluding the prefix */ subjectTemplate: string; /** * Token sent with outbound source-scraping requests. Returns an empty string without project:write or project:admin access */ securityToken: string; /** * Name of the header carrying the outbound source-scraping token. Defaults to X-Sentry-Token */ securityTokenHeader: string | null; /** * Whether SSL certificates are verified when delivering outbound webhooks and service hooks */ verifySSL: boolean; /** * Whether client IP addresses are discarded rather than stored on events */ scrubIPAddresses: boolean; /** * Whether Sentry may fetch source files and source maps from your servers */ scrapeJavaScript: boolean; /** * Whether releases are created automatically from ingested events */ enableAutoReleaseCreation: boolean; /** * Tag keys highlighted on the project's issues */ highlightTags: Array; /** * Context keys highlighted on the project's issues, as a mapping of context types to lists of keys */ highlightContext: { [key: string]: Array; }; /** * Default highlighted tags and context for the project's platform */ highlightPreset: { /** * Tag keys to highlight by default */ tags: Array; /** * Context keys to highlight by default, by context name */ context: { [key: string]: Array; }; }; /** * Identifier of the grouping algorithm used to assign events to issues */ groupingConfig: string; /** * Stack trace rules that Sentry derives from the project's code mappings, as a newline-delimited config string */ derivedGroupingEnhancements: string; /** * Grouping enhancement rules, as a newline-delimited config string, adjusting which stack frames contribute to an issue */ groupingEnhancements: string; /** * Unix timestamp after which the secondary grouping algorithm stops running */ secondaryGroupingExpiry: number; /** * Grouping algorithm run alongside the primary one during a grouping migration */ secondaryGroupingConfig: string | null; /** * Fingerprinting rules, as a newline-delimited config string, controlling how events are grouped into issues */ fingerprintingRules: string; /** * Organization that owns the project */ organization: { /** * Features enabled for the organization */ features?: Array; /** * Server-wide options that the Sentry UI reads */ extraOptions?: { [key: string]: { [key: string]: unknown; }; }; /** * Scopes the requesting user has in the organization */ access?: Array; /** * Onboarding tasks the organization has completed or skipped */ onboardingTasks?: Array<{ /** * Onboarding task key, such as create_project */ task: string | null; /** * Task status: complete or skipped */ status: string; /** * When the task's completion was marked as seen, or null */ completionSeen: string | null; /** * When the task was completed or skipped */ dateCompleted: string; /** * Data recorded for the task. Most tasks record none, so it's often empty */ data: { /** * ID of the member whose invite completed the invite_member task */ invited_member_id?: number; /** * Platform of the first event, for the first_event task */ platform?: string | null; /** * Slug of the plugin enabled for the task */ plugin?: string; /** * Integration providers installed for the integrations task */ providers?: Array; }; }>; /** * Organization ID */ id: string; /** * Organization slug */ slug: string; /** * Organization status */ status: { /** * Status ID: active, pending_deletion, deletion_in_progress or relocation_pending_approval */ id: string; /** * Status label, such as active or pending deletion */ name: string; }; /** * Organization name, or its slug when it has no name */ name: string; /** * When the organization was created (ISO 8601) */ dateCreated: string; /** * Whether the organization is an early adopter */ isEarlyAdopter: boolean; /** * Whether members must use two-factor authentication */ require2FA: boolean; /** * Organization avatar */ avatar: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Organization and region URLs */ links: { /** * Base URL of the organization */ organizationUrl: string; /** * Base URL of the API for the organization's region */ regionUrl: string; }; /** * Whether SSO is configured for the organization */ hasAuthProvider: boolean; /** * Whether members can invite other members */ allowMemberInvite: boolean; /** * Whether members can create projects */ allowMemberProjectCreation: boolean; /** * Whether Sentry superusers can access the organization */ allowSuperuserAccess: boolean; }; /** * Platforms seen in the project's events */ platforms: Array; /** * Always 0 */ processingIssues: number; /** * Environment selected by default when viewing this project */ defaultEnvironment: string | null; /** * Advanced data scrubbing rules, as a JSON string, applied before events are stored */ relayPiiConfig: string | null; /** * Identifiers of Sentry-hosted symbol sources used when symbolicating events */ builtinSymbolSources: Array; /** * Whether source server (srcsrv) information from native debug files is applied to symbolicated frames */ enableNativeSourceServerMapping: boolean; /** * Per-bias toggles adjusting which transactions dynamic sampling favors retaining */ dynamicSamplingBiases: Array<{ [key: string]: string | boolean; }> | null; /** * Custom symbol sources as a JSON string, with secrets redacted */ symbolSources: string; /** * Whether dynamic sampling retains less than 100% of the project's transactions */ isDynamicallySampled: boolean; /** * Whether screenshots attached to console crash reports are fetched. Only included when the organization has Tempest access */ tempestFetchScreenshots?: boolean; /** * How aggressively Seer runs Autofix on new issues */ autofixAutomationTuning?: string; /** * Whether Seer scans new issues automatically */ seerScannerAutomation?: boolean; /** * Experimental Seer settings with no stable shape */ seerNightshiftTweaks?: unknown; /** * Whether source context is fetched on demand from SCM integrations for stack traces */ scmSourceContextEnabled?: boolean; /** * Role required to download debug information files, ProGuard mappings and source maps. Null inherits the organization setting */ debugFilesRole?: string | null; }; export type DetailedSelfUser = { /** * SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access */ identities?: Array<{ /** * SSO identity ID */ id: string; /** * User's identifier at the auth provider */ name: string; /** * Organization the auth provider belongs to */ organization: { /** * Organization slug */ slug: string; /** * Organization name */ name: string; }; /** * Auth provider of the identity */ provider: { /** * Auth provider key, such as google or saml2 */ id: string; /** * Display name of the auth provider */ name: string; }; /** * When the identity was last verified by signing in through the auth provider */ dateVerified: string; /** * When the identity was last synced from the auth provider */ dateSynced: string; }>; /** * User avatar */ avatar?: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Two-factor authenticators of the user, without backup methods such as recovery codes */ authenticators?: Array<{ /** * Authenticator ID */ id: string; /** * Authenticator type, such as totp, sms, u2f or recovery */ type: string; /** * Display name of the authenticator type */ name: string; /** * When the authenticator was added */ dateCreated: string; /** * When the authenticator was last used, or null */ dateUsed: string | null; }>; /** * Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization */ canReset2fa?: boolean; /** * User ID */ id: string; /** * Display name: the user's name, or their email or username if no name is set */ name: string; /** * Username */ username: string; /** * Primary email address */ email: string; /** * Gravatar URL for the primary email address */ avatarUrl: string; /** * Whether the account is active */ isActive: boolean; /** * Whether the account is suspended. Suspended users can't sign in */ isSuspended: boolean; /** * Whether the user has a password set */ hasPasswordAuth: boolean; /** * Whether the account is managed, which stops the user from changing their username, password and similar details */ isManaged: boolean; /** * When the account was created */ dateJoined: string; /** * When the user last signed in, or null */ lastLogin: string | null; /** * Whether the user has two-factor authentication enabled */ has2fa: boolean; /** * When the user was last active, or null */ lastActive: string | null; /** * Whether the user is a superuser */ isSuperuser: boolean; /** * Whether the user has staff status */ isStaff: boolean; /** * Deprecated. Always an empty object */ experiments: { [key: string]: string; }; /** * Email addresses of the user. Only included for the requesting user or superusers; empty otherwise */ emails: Array<{ /** * Email ID */ id: string; /** * Email address */ email: string; /** * Whether the email address is verified */ is_verified: boolean; }>; /** * Sentry staff permissions granted to the user, such as users.admin. Empty for most users */ permissions: Array; /** * The user's preferences. Only included for the requesting user */ options?: { /** * UI theme: "light", "dark" or "system". Defaults to "system" */ theme: 'light' | 'dark' | 'system'; /** * Palette used in dark mode. Defaults to `default` */ themeVariantDark: 'default' | 'ash' | 'midnight'; /** * UI language code, such as `en` */ language: string; /** * Stack trace frame order: -1 for the default (most recent first), 1 for most recent last, 2 for most recent first */ stacktraceOrder: -1 | 1 | 2; /** * Event shown by default on issue details: "recommended", "latest" or "oldest" */ defaultIssueEvent: 'recommended' | 'latest' | 'oldest'; /** * Time zone for displayed dates, such as `UTC` */ timezone: string; /** * Whether times are shown in 24-hour format */ clock24Hours: boolean; /** * Whether the user prefers the streamlined issue details UI, or null if they haven't chosen */ prefersIssueDetailsStreamlinedUI: boolean | null; }; /** * Account flags. Only included for the requesting user */ flags?: { /** * Whether to ask the user for newsletter consent */ newsletter_consent_prompt: boolean; }; }; export type Detector = { /** * Team or user that owns the monitor */ owner?: { /** * Whether the actor is a user or a team */ type: 'user' | 'team'; /** * ID of the user or team */ id: string; /** * Display name of the user, or slug of the team */ name: string; /** * Email address of the user. Only set for users */ email?: string; } | null; /** * ID of the user who created the monitor */ createdBy?: string | null; /** * Latest issue the monitor created */ latestGroup?: { /** * ID of the issue */ id: string; /** * Title of the issue */ title: string; /** * Function or module where the issue occurs */ culprit: string | null; /** * Short ID of the issue, such as PROJECT-1A */ shortId: string | null; /** * Severity level of the issue */ level: 'sample' | 'debug' | 'info' | 'warning' | 'error' | 'fatal' | 'unknown'; /** * Issue status */ status: 'resolved' | 'ignored' | 'pending_deletion' | 'pending_merge' | 'reprocessing' | 'unresolved'; /** * Substatus of the issue, such as ongoing, regressed or escalating */ substatus: 'archived_until_escalating' | 'archived_until_condition_met' | 'archived_forever' | 'escalating' | 'ongoing' | 'regressed' | 'new' | null; /** * Platform of the issue's events */ platform: string | null; /** * Project the issue belongs to */ project: { /** * ID of the project */ id: string; /** * Name of the project */ name: string; /** * Slug of the project */ slug: string; /** * Platform of the project */ platform: string | null; }; /** * Event type of the issue, such as error or default */ type: 'default' | 'error' | 'csp' | 'nel' | 'hpkp' | 'expectct' | 'expectstaple' | 'transaction' | 'generic' | 'feedback'; /** * Issue type, such as error or performance_n_plus_one_db_queries */ issueType: string; /** * Issue category, such as error or performance */ issueCategory: string; /** * Issue metadata */ metadata: { /** * Title of default and issue platform events */ title?: string; /** * Exception value, or the subtitle of an issue */ value?: string; /** * Exception type of error events */ type?: string; /** * Whether the SDK fabricated the exception to carry a stacktrace, so its type is a platform label rather than what went wrong */ synthetic?: boolean; /** * File of the frame where the error happened */ filename?: string; /** * Function of the frame where the error happened */ function?: string; /** * Message of default, security and feedback events */ message?: string; /** * URI that a CSP report blocked */ uri?: string; /** * CSP directive that was violated */ directive?: string; /** * Host name of HPKP, Expect-CT and Expect-Staple reports */ origin?: string; /** * Name of the person who sent user feedback */ name?: string; /** * Email of the person who sent user feedback */ contact_email?: string; /** * Where user feedback came from, such as a widget */ source?: string; /** * Whether the stacktrace has in-app frames, system frames or both */ in_app_frame_mix?: string; /** * Whether a crash report was dropped because the issue already stores the most allowed */ stripped_crash?: boolean; /** * SDK of the issue's first event */ sdk?: { /** * Name of the SDK, or unknown */ name: string; /** * Name of the SDK, normalized for grouping */ name_normalized: string; }; /** * Severity score of the issue's first event */ severity?: number; /** * Why the severity score is what it is */ severity_reason?: string; /** * Priority the issue was created with */ initial_priority?: number; }; /** * Number of comments on the issue */ numComments: number; /** * When the issue was first seen (ISO 8601) */ firstSeen: string | null; /** * When the issue was last seen (ISO 8601) */ lastSeen: string | null; } | null; /** * Description of the monitor */ description?: string | null; /** * Monitor ID */ id: string; /** * ID of the project the monitor belongs to */ projectId: string | null; /** * Monitor name */ name: string; /** * Type of the monitor, such as metric_issue or error */ type: string; /** * IDs of the alerts connected to the monitor */ workflowIds: Array | null; /** * When the monitor was created (ISO 8601) */ dateCreated: string; /** * When the monitor was last updated (ISO 8601) */ dateUpdated: string; /** * Data sources the monitor evaluates, such as a query subscription */ dataSources: Array<{ /** * ID of the data source */ id: string; /** * ID of the organization */ organizationId: string; /** * Type of the data source */ type: 'snuba_query_subscription' | 'cron_monitor' | 'uptime_subscription'; /** * ID of the query subscription, cron monitor or uptime subscription */ sourceId: string; /** * The query subscription, cron monitor or uptime subscription, which depends on type. Null when it no longer exists */ queryObj: { /** * ID of the query subscription */ id: string; /** * Status of the subscription: 0 active, 1 creating, 2 updating, 3 deleting or 4 disabled */ status: number; /** * ID of the subscription in Snuba. Null while it's being created */ subscription: string | null; /** * Query the subscription runs */ snubaQuery: { /** * ID of the query */ id: string; /** * Dataset the query runs on, such as events or events_analytics_platform */ dataset: string; /** * Search query that filters the data */ query: string; /** * Aggregate function the query computes, such as count() */ aggregate: string; /** * Time window of the query in seconds */ timeWindow: number; /** * Environment the query is limited to. Null for all environments */ environment: string | null; /** * Event types the query includes, such as error or transaction */ eventTypes: Array; /** * How sampled data is extrapolated, unknown, none, client_and_server_weighted or server_weighted. Null when not set */ extrapolationMode: string | null; }; } | { /** * ID of the monitor */ id: string; /** * Name of the monitor */ name: string; /** * Slug that identifies the monitor in the organization */ slug: string; /** * Status of the monitor. Disabled monitors don't accept check-ins */ status: 'active' | 'disabled' | 'pending_deletion' | 'deletion_in_progress'; /** * Whether incidents are muted in all of the monitor's environments */ isMuted: boolean; /** * Whether the most recent check-in was an upsert check-in */ isUpserting: boolean; /** * Configuration of the monitor */ config: { /** * Type of schedule: crontab or interval */ schedule_type: 'crontab' | 'interval'; /** * Schedule of the monitor: a crontab string, or a [value, unit] pair for intervals, such as [1, "day"] */ schedule: string | Array; /** * How long in minutes after the expected check-in time to wait before the check-in counts as missed */ checkin_margin: number | null; /** * How long in minutes a check-in can stay in progress before it counts as failed */ max_runtime: number | null; /** * Timezone the schedule is evaluated in, as a tz database name */ timezone: string | null; /** * Number of consecutive missed or failed check-ins before an issue is created */ failure_issue_threshold: number | null; /** * Number of consecutive successful check-ins before the issue is resolved */ recovery_threshold: number | null; /** * ID of the alert rule linked to the monitor */ alert_rule_id: number | null; }; /** * When the monitor was created (ISO 8601) */ dateCreated: string; /** * Project the monitor belongs to */ project: { /** * Counts of non-transaction events per interval over the requested stats period, as [timestamp, count] pairs. Only included when a stats period is requested */ stats?: Array> | { [key: string]: number; }; /** * Counts of transactions per interval over the requested stats period, as [timestamp, count] pairs. Only included when transaction stats are requested */ transactionStats?: Array>; /** * Crash-free session rates for the current and previous stats period. Only included when session stats are requested */ sessionStats?: { /** * Crash-free rate in the current period, as a percentage. Null when there's no session data */ currentCrashFreeRate: number | null; /** * Crash-free rate in the previous period, as a percentage. Null when there's no session data */ previousCrashFreeRate: number | null; /** * Whether the project has release health (session) data */ hasHealthData: boolean; }; /** * ID of the project */ id: string; /** * Slug of the project */ slug: string; /** * Name of the project */ name: string; /** * Platform of the project */ platform: string | null; /** * When the project was created (ISO 8601) */ dateCreated: string; /** * Whether the requesting user bookmarked the project */ isBookmarked: boolean; /** * Whether the requesting user is a member of a team with access to the project */ isMember: boolean; /** * Features enabled for the project */ features: Array; /** * When the project received its first event (ISO 8601) */ firstEvent: string | null; /** * Whether the project has sent transactions */ firstTransactionEvent: boolean; /** * Scopes the requesting user has on the project through team membership and organization role */ access: Array; /** * Whether the requesting user has access to the project */ hasAccess: boolean; /** * Whether the project has sent user feedback */ hasFeedbacks: boolean; /** * Whether the project has sent feature flags */ hasFlags: boolean; /** * Whether the project has sent an event with a minified stack trace */ hasMinifiedStackTrace: boolean; /** * Whether the project has cron monitors */ hasMonitors: boolean; /** * Whether the project has sent user feedback from the user feedback widget */ hasNewFeedbacks: boolean; /** * Whether the project has sent profiles */ hasProfiles: boolean; /** * Whether the project has sent replays */ hasReplays: boolean; /** * Whether the project has sent sessions */ hasSessions: boolean; /** * Whether the project has sent HTTP request spans used by Insights */ hasInsightsHttp: boolean; /** * Whether the project has sent database spans used by Insights */ hasInsightsDb: boolean; /** * Whether the project has sent asset spans used by Insights */ hasInsightsAssets: boolean; /** * Whether the project has sent app start spans used by Insights */ hasInsightsAppStart: boolean; /** * Whether the project has sent screen load spans used by Insights */ hasInsightsScreenLoad: boolean; /** * Whether the project has sent web vitals spans used by Insights */ hasInsightsVitals: boolean; /** * Whether the project has sent cache spans used by Insights */ hasInsightsCaches: boolean; /** * Whether the project has sent queue spans used by Insights */ hasInsightsQueues: boolean; /** * Whether the project has sent AI agent spans used by Insights */ hasInsightsAgentMonitoring: boolean; /** * Whether the project has sent MCP spans used by Insights */ hasInsightsMCP: boolean; /** * Whether the project has sent logs. Always true outside sentry.io */ hasLogs: boolean; /** * Whether the project has sent trace metrics. Always true outside sentry.io */ hasTraceMetrics: boolean; /** * Whether this is the Sentry install's own internal project */ isInternal: boolean; /** * Whether the project is public */ isPublic: boolean; /** * Avatar of the project. Always a letter avatar */ avatar: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Hex color code for the project, derived from its slug unless set explicitly */ color: string; /** * Status of the project: active, deleted, or unknown */ status: string; }; /** * Environments the monitor has received check-ins for */ environments: Array<{ /** * Name of the environment */ name: string; /** * Status of the monitor in the environment */ status: 'active' | 'disabled' | 'pending_deletion' | 'deletion_in_progress' | 'ok' | 'error'; /** * Whether incidents are muted for the monitor in the environment */ isMuted: boolean; /** * When the monitor was created (ISO 8601) */ dateCreated: string; /** * When the most recent check-in was received, not counting missed check-ins (ISO 8601) */ lastCheckIn: string | null; /** * When the next check-in is expected (ISO 8601) */ nextCheckIn: string | null; /** * Latest time the next check-in can arrive before it counts as missed (ISO 8601) */ nextCheckInLatest: string | null; /** * Unresolved incident for the monitor in the environment. Null when there's none */ activeIncident: { /** * When the incident started (ISO 8601) */ startingTimestamp: string | null; /** * When the incident was resolved (ISO 8601) */ resolvingTimestamp: string | null; /** * Details of the broken monitor notice for the incident. Null when there's none */ brokenNotice: { /** * When users were notified that the monitor environment looks broken (ISO 8601) */ userNotifiedTimestamp: string | null; /** * When the broken monitor environment was muted (ISO 8601) */ environmentMutedTimestamp: string | null; } | null; } | null; }>; /** * Team or user that owns the monitor. Null when there's no owner */ owner: { /** * Whether the actor is a user or a team */ type: 'user' | 'team'; /** * ID of the user or team */ id: string; /** * Display name of the user, or slug of the team */ name: string; /** * Email address of the user. Only set for users */ email?: string; } | null; } | { /** * URL the check requests */ url: string; /** * HTTP method of the check request, such as GET */ method: string; /** * Body of the check request. Null when it has none */ body: string | null; /** * Headers of the check request, each a name and value pair */ headers: Array>; /** * How often the check runs, in seconds */ intervalSeconds: number; /** * How long the check waits for a response, in milliseconds */ timeoutMs: number; /** * Whether the check request samples a trace */ traceSampling: boolean; /** * Whether failed checks capture the response body and headers */ responseCaptureEnabled: boolean; /** * Assertion the response must pass. Null when the check has none */ assertion: { /** * All possible assertion operations */ root?: { /** * Operation, always and */ op?: 'and'; /** * Operations that must all pass */ children?: Array<{ [key: string]: unknown; }>; } | { /** * Operation, always or */ op?: 'or'; /** * Operations of which at least one must pass */ children?: Array<{ [key: string]: unknown; }>; } | { /** * Operation, always not */ op?: 'not'; /** * All possible assertion operations. Its fields are the same as the one this is inside, so they're left out here. */ operand?: { [key: string]: unknown; }; } | { /** * HTTP status code to compare the response status code against */ value?: number; /** * The kind of comparison to make. */ operator?: 'always' | 'never' | 'less_than' | 'greater_than' | 'equals' | 'not_equals'; } | { /** * Operation, always json_path */ op?: 'json_path'; /** * JSONPath query to run on the response body */ value?: string; /** * The kind of comparison to make. */ operator?: 'always' | 'never' | 'less_than' | 'greater_than' | 'equals' | 'not_equals' | null; /** * An operand for comparison against json path values */ operand?: { /** * Kind of operand, always glob */ header_op?: 'glob'; /** * The actual glob pattern, as a string */ pattern?: { /** * Glob pattern */ value?: string; }; } | { /** * Kind of operand, always literal */ jsonpath_op?: 'literal'; /** * Value to compare the query result against */ value?: string; } | { /** * Kind of operand, always none */ header_op?: 'none'; } | null; } | { /** * The kind of comparison to make. */ key_op?: 'always' | 'never' | 'less_than' | 'greater_than' | 'equals' | 'not_equals'; /** * A operand for comparison against HTTP header keys and values */ key_operand?: { /** * Kind of operand, always glob */ header_op?: 'glob'; /** * The actual glob pattern, as a string */ pattern?: { /** * Glob pattern */ value?: string; }; } | { /** * Kind of operand, always literal */ header_op?: 'literal'; /** * Value to compare the header key or value against */ value?: string; } | { /** * Kind of operand, always none */ header_op?: 'none'; }; /** * The kind of comparison to make. */ value_op?: 'always' | 'never' | 'less_than' | 'greater_than' | 'equals' | 'not_equals'; /** * A operand for comparison against HTTP header keys and values */ value_operand?: { /** * Kind of operand, always glob */ header_op?: 'glob'; /** * The actual glob pattern, as a string */ pattern?: { /** * Glob pattern */ value?: string; }; } | { /** * Kind of operand, always literal */ header_op?: 'literal'; /** * Value to compare the header key or value against */ value?: string; } | { /** * Kind of operand, always none */ header_op?: 'none'; }; }; } | null; } | null; }> | null; /** * Conditions that decide the monitor's status */ conditionGroup: { /** * ID of the condition group */ id?: string; /** * ID of the organization */ organizationId?: string; /** * How the conditions in the group combine */ logicType?: 'any' | 'any-short' | 'all' | 'none'; /** * Conditions in the group */ conditions?: Array<{ /** * ID of the condition */ id: string; /** * Type of the condition, such as first_seen_event or level */ type: string; /** * Value the condition compares against, which depends on its type */ comparison: number | string | boolean | { /** * Whether the issue must be older or newer than the age */ comparisonType: 'older' | 'newer'; /** * Age of the issue, in units of time */ value: number; /** * Unit of the age */ time: 'minute' | 'hour' | 'day' | 'week'; } | { /** * How sensitive anomaly detection is */ sensitivity: 'low' | 'medium' | 'high'; /** * Seasonal pattern that anomaly detection accounts for */ seasonality: 'auto' | 'hourly' | 'daily' | 'weekly' | 'hourly_daily' | 'hourly_weekly' | 'hourly_daily_weekly' | 'daily_weekly'; /** * Anomalies to detect: 0 above, 1 below, 2 above or below the expected value */ thresholdType: 0 | 1 | 2; } | { /** * Who the issue must be assigned to */ targetType: 'Unassigned' | 'Team' | 'Member'; /** * ID of the team or member. Not set for Unassigned */ targetIdentifier?: number | string; } | { /** * Event attribute to match, such as message or user.email */ attribute?: 'message' | 'platform' | 'environment' | 'type' | 'error.handled' | 'error.unhandled' | 'error.main_thread' | 'exception.type' | 'exception.value' | 'user.id' | 'user.email' | 'user.username' | 'user.ip_address' | 'http.method' | 'http.url' | 'http.status_code' | 'sdk.name' | 'stacktrace.code' | 'stacktrace.module' | 'stacktrace.filename' | 'stacktrace.abs_path' | 'stacktrace.package' | 'unreal.crash_type' | 'app.in_foreground' | 'os.distribution_name' | 'os.distribution_version' | 'symbolicated_in_app' | 'ota_updates.channel' | 'ota_updates.runtime_version' | 'ota_updates.update_id'; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the attribute against. Not set for is and ns */ value?: string; } | number | { /** * Time window to count in, such as 1h */ interval: '1m' | '5m' | '15m' | '1h' | '1d' | '1w' | '30d'; /** * Number of events in the interval that meets the condition */ value: number; /** * Tag or attribute filters that events must match to count */ filters?: Array<{ /** * Tag key to match */ key?: string; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the tag or attribute against. Not set for is and ns */ value?: string; } | { /** * Event attribute to match, such as message or user.email */ attribute?: 'message' | 'platform' | 'environment' | 'type' | 'error.handled' | 'error.unhandled' | 'error.main_thread' | 'exception.type' | 'exception.value' | 'user.id' | 'user.email' | 'user.username' | 'user.ip_address' | 'http.method' | 'http.url' | 'http.status_code' | 'sdk.name' | 'stacktrace.code' | 'stacktrace.module' | 'stacktrace.filename' | 'stacktrace.abs_path' | 'stacktrace.package' | 'unreal.crash_type' | 'app.in_foreground' | 'os.distribution_name' | 'os.distribution_version' | 'symbolicated_in_app' | 'ota_updates.channel' | 'ota_updates.runtime_version' | 'ota_updates.update_id'; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the tag or attribute against. Not set for is and ns */ value?: string; }>; } | { /** * Time window to count in, such as 1h */ interval: '1m' | '5m' | '15m' | '1h' | '1d' | '1w' | '30d'; /** * Percent increase in events over the comparison interval that meets the condition */ value: number; /** * Earlier time window to compare the count against, such as 1w */ comparisonInterval: '5m' | '15m' | '1h' | '1d' | '1w' | '30d'; /** * Tag or attribute filters that events must match to count */ filters?: Array<{ /** * Tag key to match */ key?: string; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the tag or attribute against. Not set for is and ns */ value?: string; } | { /** * Event attribute to match, such as message or user.email */ attribute?: 'message' | 'platform' | 'environment' | 'type' | 'error.handled' | 'error.unhandled' | 'error.main_thread' | 'exception.type' | 'exception.value' | 'user.id' | 'user.email' | 'user.username' | 'user.ip_address' | 'http.method' | 'http.url' | 'http.status_code' | 'sdk.name' | 'stacktrace.code' | 'stacktrace.module' | 'stacktrace.filename' | 'stacktrace.abs_path' | 'stacktrace.package' | 'unreal.crash_type' | 'app.in_foreground' | 'os.distribution_name' | 'os.distribution_version' | 'symbolicated_in_app' | 'ota_updates.channel' | 'ota_updates.runtime_version' | 'ota_updates.update_id'; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the tag or attribute against. Not set for is and ns */ value?: string; }>; } | { /** * Time window to count in, such as 1h */ interval: '1m' | '5m' | '15m' | '1h' | '1d' | '1w' | '30d'; /** * Number of affected users in the interval that meets the condition */ value: number; /** * Tag or attribute filters that events must match to count */ filters?: Array<{ /** * Tag key to match */ key?: string; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the tag or attribute against. Not set for is and ns */ value?: string; } | { /** * Event attribute to match, such as message or user.email */ attribute?: 'message' | 'platform' | 'environment' | 'type' | 'error.handled' | 'error.unhandled' | 'error.main_thread' | 'exception.type' | 'exception.value' | 'user.id' | 'user.email' | 'user.username' | 'user.ip_address' | 'http.method' | 'http.url' | 'http.status_code' | 'sdk.name' | 'stacktrace.code' | 'stacktrace.module' | 'stacktrace.filename' | 'stacktrace.abs_path' | 'stacktrace.package' | 'unreal.crash_type' | 'app.in_foreground' | 'os.distribution_name' | 'os.distribution_version' | 'symbolicated_in_app' | 'ota_updates.channel' | 'ota_updates.runtime_version' | 'ota_updates.update_id'; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the tag or attribute against. Not set for is and ns */ value?: string; }>; } | { /** * Time window to count in, such as 1h */ interval: '1m' | '5m' | '15m' | '1h' | '1d' | '1w' | '30d'; /** * Percent increase in affected users over the comparison interval that meets the condition */ value: number; /** * Earlier time window to compare the count against, such as 1w */ comparisonInterval: '5m' | '15m' | '1h' | '1d' | '1w' | '30d'; /** * Tag or attribute filters that events must match to count */ filters?: Array<{ /** * Tag key to match */ key?: string; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the tag or attribute against. Not set for is and ns */ value?: string; } | { /** * Event attribute to match, such as message or user.email */ attribute?: 'message' | 'platform' | 'environment' | 'type' | 'error.handled' | 'error.unhandled' | 'error.main_thread' | 'exception.type' | 'exception.value' | 'user.id' | 'user.email' | 'user.username' | 'user.ip_address' | 'http.method' | 'http.url' | 'http.status_code' | 'sdk.name' | 'stacktrace.code' | 'stacktrace.module' | 'stacktrace.filename' | 'stacktrace.abs_path' | 'stacktrace.package' | 'unreal.crash_type' | 'app.in_foreground' | 'os.distribution_name' | 'os.distribution_version' | 'symbolicated_in_app' | 'ota_updates.channel' | 'ota_updates.runtime_version' | 'ota_updates.update_id'; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the tag or attribute against. Not set for is and ns */ value?: string; }>; } | { /** * ID of the issue category */ value: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 19; /** * Whether the issue must be in the category or not. Defaults to true */ include?: boolean; } | { /** * Number of times the issue must have occurred */ value: number; } | 25 | 50 | 75 | 1 | { /** * Slug of the issue type */ value: 'performance_slow_db_query' | 'performance_render_blocking_asset_span' | 'performance_n_plus_one_db_queries' | 'performance_n_plus_one_db_queries_experimental' | 'performance_consecutive_db_queries' | 'performance_file_io_main_thread' | 'performance_consecutive_http' | 'performance_n_plus_one_api_calls' | 'performance_n_plus_one_api_calls_experimental' | 'performance_m_n_plus_one_db_queries' | 'performance_m_n_plus_one_db_queries_experimental' | 'performance_uncompressed_assets' | 'performance_db_main_thread' | 'performance_large_http_payload' | 'performance_http_overhead' | 'performance_p95_endpoint_regression' | 'performance_streamed_spans_exp' | 'db_query_injection_vulnerability' | 'query_injection_vulnerability' | 'profile_file_io_main_thread' | 'profile_image_decode_main_thread' | 'profile_json_decode_main_thread' | 'profile_regex_main_thread' | 'profile_frame_drop' | 'profile_function_regression' | 'llm_detected_experimental' | 'llm_detected_experimental_v2' | 'ai_detected_http' | 'ai_detected_db' | 'ai_detected_runtime_performance' | 'ai_detected_security' | 'ai_detected_code_health' | 'ai_detected_general' | 'replay_click_rage' | 'replay_hydration_error' | 'feedback' | 'web_vitals' | 'issue_stream' | 'metric_issue' | 'error' | 'uptime_domain_failure' | 'send-test-notification' | 'monitor_check_in_failure' | 'sourcemap_configuration' | 'low_value_span_configuration' | 'preprod_size_analysis'; /** * Whether the issue must be of the type or not. Defaults to true */ include?: boolean; } | { /** * Whether to compare against the oldest or newest adopted release */ releaseAgeType: 'oldest' | 'newest'; /** * Whether the event's release must be older or newer than that release */ ageComparison: 'older' | 'newer'; /** * Environment the release was adopted in */ environment: string; } | { /** * Event level: 0 sample, 10 debug, 20 info, 30 warning, 40 error, 50 fatal */ level: 0 | 10 | 20 | 30 | 40 | 50; /** * How to compare the event's level: eq, gte or lte */ match: 'eq' | 'gte' | 'lte'; } | { /** * Time window to count in, such as 1h */ interval: '1m' | '5m' | '10m' | '30m' | '1h'; /** * Percent of sessions affected in the interval that meets the condition */ value: number; /** * Tag or attribute filters that events must match to count */ filters?: Array<{ /** * Tag key to match */ key?: string; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the tag or attribute against. Not set for is and ns */ value?: string; } | { /** * Event attribute to match, such as message or user.email */ attribute?: 'message' | 'platform' | 'environment' | 'type' | 'error.handled' | 'error.unhandled' | 'error.main_thread' | 'exception.type' | 'exception.value' | 'user.id' | 'user.email' | 'user.username' | 'user.ip_address' | 'http.method' | 'http.url' | 'http.status_code' | 'sdk.name' | 'stacktrace.code' | 'stacktrace.module' | 'stacktrace.filename' | 'stacktrace.abs_path' | 'stacktrace.package' | 'unreal.crash_type' | 'app.in_foreground' | 'os.distribution_name' | 'os.distribution_version' | 'symbolicated_in_app' | 'ota_updates.channel' | 'ota_updates.runtime_version' | 'ota_updates.update_id'; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the tag or attribute against. Not set for is and ns */ value?: string; }>; } | { /** * Time window to count in, such as 1h */ interval: '1m' | '5m' | '10m' | '30m' | '1h'; /** * Percent increase in affected sessions over the comparison interval that meets the condition */ value: number; /** * Earlier time window to compare the count against, such as 1w */ comparisonInterval: '5m' | '15m' | '1h' | '1d' | '1w' | '30d'; /** * Tag or attribute filters that events must match to count */ filters?: Array<{ /** * Tag key to match */ key?: string; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the tag or attribute against. Not set for is and ns */ value?: string; } | { /** * Event attribute to match, such as message or user.email */ attribute?: 'message' | 'platform' | 'environment' | 'type' | 'error.handled' | 'error.unhandled' | 'error.main_thread' | 'exception.type' | 'exception.value' | 'user.id' | 'user.email' | 'user.username' | 'user.ip_address' | 'http.method' | 'http.url' | 'http.status_code' | 'sdk.name' | 'stacktrace.code' | 'stacktrace.module' | 'stacktrace.filename' | 'stacktrace.abs_path' | 'stacktrace.package' | 'unreal.crash_type' | 'app.in_foreground' | 'os.distribution_name' | 'os.distribution_version' | 'symbolicated_in_app' | 'ota_updates.channel' | 'ota_updates.runtime_version' | 'ota_updates.update_id'; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the tag or attribute against. Not set for is and ns */ value?: string; }>; } | Array<'rca_completed' | 'solution_completed' | 'coding_completed' | 'pr_ready_for_review'> | { /** * Tag key to match */ key?: string; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the tag against. Not set for is and ns */ value?: string; }; /** * Result the condition produces when it matches: true for alert conditions, or the priority level for monitor conditions */ conditionResult: boolean | number | number | null; }>; /** * Actions to fire when the conditions pass */ actions?: Array<{ /** * ID of the action */ id?: string; /** * Type of the action */ type?: 'slack' | 'slack_staging' | 'msteams' | 'discord' | 'pagerduty' | 'opsgenie' | 'github' | 'github_enterprise' | 'jira' | 'jira_server' | 'vsts' | 'email' | 'sentry_app' | 'plugin' | 'webhook' | 'seer_investigation'; /** * ID of the integration the action uses. Null for actions without one */ integrationId?: string | null; /** * Extra data for the action, which depends on its type */ data?: { /** * Tags to add to the message */ tags?: string; } | { /** * The fallthrough type for issue owners email notifications */ fallthroughType?: 'AllMembers' | 'ActiveMembers' | 'NoOne'; } | { /** * Dynamic form fields from customer configuration */ dynamicFormFields?: Array<{ /** * Name of the field */ name?: string; /** * Label of the field */ label?: string; /** * Type of the field, such as select or text */ type?: string; }>; /** * Additional fields that aren't part of standard fields */ additionalFields: { /** * Repository to create the issue in, as owner/name */ repo: string; /** * Labels to add to the issue */ labels?: Array | null; /** * User to assign the issue to */ assignee?: string | null; [key: string]: unknown; }; } | { /** * Dynamic form fields from customer configuration */ dynamicFormFields?: Array<{ /** * Name of the field */ name?: string; /** * Label of the field */ label?: string; /** * Type of the field, such as select or text */ type?: string; }>; /** * Additional fields that aren't part of standard fields */ additionalFields?: { [key: string]: string | null | number | boolean | Array; }; } | { [key: string]: never; } | { /** * The priority of the opsgenie action */ priority?: 'P1' | 'P2' | 'P3' | 'P4' | 'P5'; } | { /** * The priority of the pagerduty action */ priority?: 'default' | 'critical' | 'warning' | 'error' | 'info'; } | { [key: string]: string; } | { /** * Prompt the investigation runs */ prompt?: string; /** * Seer skill the investigation runs, instead of a prompt */ skill?: 'agentic_triage'; } | { /** * Values of the Sentry App's alert rule settings form, each with a name and value */ settings?: Array; } | { /** * Tags to add to the message */ tags?: string; /** * Notes to add to the message */ notes?: string; }; /** * Configuration of the action, such as targetType and targetIdentifier */ config?: { /** * ID of the target, such as a channel, user or team ID */ targetIdentifier: string; /** * Display name of the target, such as a channel name */ targetDisplay?: string | null; /** * Kind of target the action notifies, such as specific, user or team */ targetType: 'specific'; } | { /** * ID of the target, such as a channel, user or team ID */ targetIdentifier?: string | null; /** * Display name of the target, such as a channel name */ targetDisplay?: null; /** * Kind of target the action notifies, such as specific, user or team */ targetType: 'user' | 'team' | 'issue_owners'; } | { /** * ID of the target, such as a channel, user or team ID */ targetIdentifier?: null; /** * Display name of the target, such as a channel name */ targetDisplay?: null; /** * Kind of target the action notifies, such as specific, user or team */ targetType?: 'specific'; } | { /** * ID of the target, such as a channel, user or team ID */ targetIdentifier?: string; /** * Display name of the target, such as a channel name */ targetDisplay: string; /** * Kind of target the action notifies, such as specific, user or team */ targetType: 'specific'; } | { /** * ID of the target, such as a channel, user or team ID */ targetIdentifier: string; /** * Display name of the target, such as a channel name */ targetDisplay?: string | null; /** * Kind of target the action notifies, such as specific, user or team */ targetType: 'specific'; } | { /** * ID of the target, such as a channel, user or team ID */ targetIdentifier?: string | null; /** * Display name of the target, such as a channel name */ targetDisplay?: string | null; /** * Kind of target the action notifies, such as specific, user or team */ targetType?: null; } | { [key: string]: never; } | { /** * ID of the target, such as a channel, user or team ID */ targetIdentifier: string; /** * Display name of the target, such as a channel name */ targetDisplay?: string | null; /** * Kind of target the action notifies, such as specific, user or team */ targetType: 'sentry_app'; } | { /** * ID of the target, such as a channel, user or team ID */ targetIdentifier?: string; /** * Display name of the target, such as a channel name */ targetDisplay?: string; /** * Kind of target the action notifies, such as specific, user or team */ targetType: 'specific'; } | { /** * ID of the target, such as a channel, user or team ID */ targetIdentifier?: string; /** * Display name of the target, such as a channel name */ targetDisplay?: null; /** * Kind of target the action notifies, such as specific, user or team */ targetType?: null; }; /** * Status of the action */ status?: 'active' | 'disabled' | 'pending_deletion' | 'deletion_in_progress'; }>; } | null; /** * Configuration of the monitor, which depends on its type */ config: { [key: string]: unknown; } | { /** * Fingerprinting rules of the project */ 'sentry:fingerprintingRules'?: string; /** * Hours of inactivity after which the project's issues resolve. 0 to never */ 'sentry:resolveAge'?: number; } | { /** * ID of the organization */ organizationId?: number; } | { /** * For percent detection, how far back the compared window is, in seconds */ comparisonDelta?: 300 | 900 | 3600 | 86400 | 604800 | 2592000; /** * How the monitor detects issues: static thresholds, percent change or dynamic anomalies */ detectionType: 'static' | 'percent' | 'dynamic'; } | { /** * The type of threshold to apply */ thresholdType: 'absolute_diff' | 'absolute' | 'relative_diff'; /** * The measurement to track */ measurement: 'install_size' | 'download_size'; /** * Search query to filter which artifacts are monitored */ query?: string; } | { /** * How the monitor was created: 1 manually, 2 auto-detected and onboarding, 3 auto-detected and active */ mode: 1 | 2 | 3; /** * Environment of the monitor. Null for none */ environment: string | null; /** * Number of consecutive successful checks required to mark monitor as recovered */ recoveryThreshold: number; /** * Number of consecutive failed checks required to mark monitor as down */ downtimeThreshold: number; }; /** * Whether the monitor is enabled */ enabled: boolean; }; export type DetectorCreateRequest = ({ /** * Name of the monitor. */ name: string; type: 'metric_issue'; /** * The IDs of the alerts to connect this monitor to. Use the 'Fetch Alerts' endpoint to find the IDs. */ workflowIds?: Array; dataSources: Array<{ query_type?: number; dataset: string; query: string; aggregate: string; time_window: number; environment: string | null; event_types: Array; group_by?: Array; extrapolation_mode?: string | null; }>; config?: { comparisonDelta?: 300 | 900 | 3600 | 86400 | 604800 | 2592000; detectionType: 'static'; } | { comparisonDelta?: 300 | 900 | 3600 | 86400 | 604800 | 2592000; detectionType: 'percent'; } | { comparisonDelta?: 300 | 900 | 3600 | 86400 | 604800 | 2592000; detectionType: 'dynamic'; }; /** * Allows parameters to be defined in snake case, but passed as camel case. * * Errors are output in camel case. */ conditionGroup: { id?: number; /** * * `any` * * `any-short` * * `all` * * `none` */ logicType: 'any' | 'any-short' | 'all' | 'none'; conditions: Array<{ id?: number; conditionResult: 0 | 50 | 75; type: 'gt' | 'lt' | 'gte' | 'lte'; comparison: number; } | { id?: number; conditionResult: 0 | 50 | 75; type: 'anomaly_detection'; comparison: { sensitivity: 'low' | 'medium' | 'high'; seasonality: 'auto' | 'hourly' | 'daily' | 'weekly' | 'hourly_daily' | 'hourly_weekly' | 'hourly_daily_weekly' | 'daily_weekly'; thresholdType: 0 | 1 | 2; }; }>; }; /** * * The ID user or team who owns the monitor or alert prefaced by the string 'user' or 'team'. * * **User** * ```json * "user:123456" * ``` * * **Team** * ```json * "team:456789" * ``` * */ owner?: string | null; /** * A description of the monitor. Will be used in the resulting issue. */ description?: string | null; /** * Set to False if you want to disable the monitor. */ enabled?: boolean; } | { /** * Name of the monitor. */ name: string; type: 'monitor_check_in_failure'; /** * The IDs of the alerts to connect this monitor to. Use the 'Fetch Alerts' endpoint to find the IDs. */ workflowIds?: Array; dataSources?: Array<{ /** * Name of the monitor. Used for notifications. */ name?: string; /** * Uniquely identifies your monitor within your organization. */ slug?: string; status?: string; owner?: string | null; is_muted?: boolean; config: { [key: string]: unknown; }; }>; config?: { [key: string]: unknown; }; /** * * Issue detection configuration for when to create an issue and at what priority level. * * * - `logicType`: `any` * - `type`: Any of `gt` (greater than), `gte` (greater than or equal), `lt` (less than), `lte` (less than or equal), or `anomaly_detection` (dynamic) * - `comparison`: Any positive integer. This is threshold that must be crossed for the monitor to create an issue, e.g. "Create a metric issue when there are more than 5 unresolved error events". * - If creating a **change** monitor, `comparison` is the current value as a percentage of the value `comparisonDelta` seconds earlier, not the size of the change. For example, use `120` with `gt` for 20% higher, or `70` with `lt` for 30% lower. * - If creating a **dynamic** monitor, see the options below. * - `seasonality`: `auto` * - `sensitivity`: Level of responsiveness. Options are one of `low`, `medium`, or `high` * - `thresholdType`: If you want to be alerted to anomalies that are moving above, below, or in both directions in relation to your threshold. * - `0`: Above * - `1`: Below * - `2`: Above and below * * - `conditionResult`: The issue state change when the threshold is crossed. * - `75`: High priority * - `50`: Low priority * - `0`: Resolved * * * **Threshold Monitor** * ```json * "logicType": "any", * "conditions": [ * { * "type": "gt", * "comparison": 10, * "conditionResult": 75 * }, * { * "type": "lte", * "comparison": 10, * "conditionResult": 0 * } * ], * "actions": [] * ``` * * **Change Monitor** (20% higher than `comparisonDelta` seconds earlier) * ```json * "logicType": "any", * "conditions": [ * { * "type": "gt", * "comparison": 120, * "conditionResult": 75 * }, * { * "type": "lte", * "comparison": 120, * "conditionResult": 0 * } * ], * "actions": [] * ``` * * **Threshold Monitor with Medium Priority** * ```json * "logicType": "any", * "conditions": [ * { * type: "gt", * comparison: 5, * conditionResult: 75 * }, * { * type: "gt", * comparison: 2, * conditionResult: 50 * }, * { * type: "lte", * comparison: 2, * conditionResult: 0 * } * ], * "actions": [] * ``` * * **Dynamic Monitor** * ```json * "logicType": "any", * "conditions": [ * { * "type": "anomaly_detection", * "comparison": { * "seasonality": "auto", * "sensitivity": "medium", * "thresholdType": 2 * }, * "conditionResult": 75 * } * ], * "actions": [] * ``` * */ conditionGroup?: { id?: number; /** * * `any` * * `any-short` * * `all` * * `none` */ logicType: 'any' | 'any-short' | 'all' | 'none'; conditions?: Array; }; /** * * The ID user or team who owns the monitor or alert prefaced by the string 'user' or 'team'. * * **User** * ```json * "user:123456" * ``` * * **Team** * ```json * "team:456789" * ``` * */ owner?: string | null; /** * A description of the monitor. Will be used in the resulting issue. */ description?: string | null; /** * Set to False if you want to disable the monitor. */ enabled?: boolean; } | { /** * Name of the monitor. */ name: string; type: 'preprod_size_analysis'; /** * The IDs of the alerts to connect this monitor to. Use the 'Fetch Alerts' endpoint to find the IDs. */ workflowIds?: Array; /** * * The data sources for the metric monitor to use based on what you want to measure. * * The schema of each data source lists the `aggregate` values that its `dataset` and * `eventTypes` accept. * * `timeWindow` is measured in seconds. Cron Monitors use schedules instead of this field. * Legacy metric alert rules expressed this value in minutes, so multiply a legacy value * by 60 when migrating it to a monitor. For example, a legacy 5-minute window becomes * `"timeWindow": 300`. * * **Number of Errors Metric Monitor** * - `eventTypes`: Any of `error` or `default`. * ```json * [ * { * "aggregate": "count()", * "dataset" : "events", * "environment": "prod", * "eventTypes": ["default", "error"], * "query": "is:unresolved", * "queryType": 0, * "timeWindow": 3600 * } * ] * ``` * * **Users Experiencing Errors Metric Monitor** * - `eventTypes`: Any of `error` or `default`. * ```json * [ * { * "aggregate": "count_unique(tags[sentry:user])", * "dataset" : "events", * "environment": "prod", * "eventTypes": ["default", "error"], * "query": "is:unresolved", * "queryType": 0, * "timeWindow": 3600 * } * ] * ``` * * * **Throughput Metric Monitor** * ```json * [ * { * "aggregate":"count(span.duration)", * "dataset":"events_analytics_platform", * "environment":"prod", * "eventTypes":["trace_item_span"], * "query":"", * "queryType":1, * "timeWindow":3600, * "extrapolationMode":"unknown" * } * ] * ``` * * **Duration Metric Monitor** * ```json * [ * { * "aggregate":"p95(span.duration)", * "dataset":"events_analytics_platform", * "environment":"prod", * "eventTypes":["trace_item_span"], * "query":"", * "queryType":1, * "timeWindow":3600, * "extrapolationMode":"unknown" * } * ] * ``` * * **Failure Rate Metric Monitor** * ```json * [ * { * "aggregate":"failure_rate()", * "dataset":"events_analytics_platform", * "environment":"prod", * "eventTypes":["trace_item_span"], * "query":"", * "queryType":1, * "timeWindow":3600, * "extrapolationMode":"unknown" * } * ] * ``` * * **Largest Contentful Paint Metric Monitor** * - `dataset`: Use `events_analytics_platform`. To query transaction spans, add `is_transaction:true` to `query`. * - `aggregate`: Valid values are `avg(measurements.lcp)`, `p50(measurements.lcp)`, `p75(measurements.lcp)`, `p95(measurements.lcp)`, `p99(measurements.lcp)`, and `p100(measurements.lcp)`. * * ```json * [ * { * "aggregate":"p95(measurements.lcp)", * "dataset":"events_analytics_platform", * "environment":"prod", * "eventTypes":["trace_item_span"], * "query":"is_transaction:true", * "queryType":1, * "timeWindow":3600, * "extrapolationMode":"unknown" * } * ] * ``` * * **Custom Metric Monitor** * - `dataset`: Use `events_analytics_platform`. To query transaction spans, add `is_transaction:true` to `query`. * - `aggregate`: Valid values are: * `avg(x)`, where `x` is `transaction.duration`, `measurements.cls`, `measurements.fcp`, `measurements.fid`, `measurements.fp`, `measurements.lcp`, `measurements.ttfb`, or `measurements.ttfb.requesttime`. * `p50(x)`, where `x` is `transaction.duration`, `measurements.cls`, `measurements.fcp`, `measurements.fid`, `measurements.fp`, `measurements.lcp`, `measurements.ttfb`, or `measurements.ttfb.requesttime`. * `p75(x)`, where x is `transaction.duration`, `measurements.cls`, `measurements.fcp`, `measurements.fid`, `measurements.fp`, `measurements.lcp`, `measurements.ttfb`, or `measurements.ttfb.requesttime`. * `p95(x)`, where x is `transaction.duration`, `measurements.cls`, `measurements.fcp`, `measurements.fid`, `measurements.fp`, `measurements.lcp`, `measurements.ttfb`, or `measurements.ttfb.requesttime`. * `p99(x)`, where x is `transaction.duration`, `measurements.cls`, `measurements.fcp`, `measurements.fid`, `measurements.fp`, `measurements.lcp`, `measurements.ttfb`, or `measurements.ttfb.requesttime`. * `p100(x)`, where `x` is `transaction.duration`, `measurements.cls`, `measurements.fcp`, `measurements.fid`, `measurements.fp`, `measurements.lcp`, `measurements.ttfb`, or `measurements.ttfb.requesttime`. * `failure_rate()` * `apdex(x)`, where `x` is the value of the Apdex score. * `count()` * * ```json * [ * { * "aggregate": "p75(measurements.ttfb)", * "dataset": "events_analytics_platform", * "environment": "prod", * "queryType": 1, * "eventTypes": ["trace_item_span"], * "query": "is_transaction:true", * "timeWindow": 3600, * "extrapolationMode": "unknown" * } * ] * ``` * */ dataSources?: Array<{ query_type?: 0; dataset: 'events'; /** * A search query to filter the events, such as `is:unresolved`. */ query: string; aggregate: 'count()' | 'count_unique(user)' | 'count_unique(dist)' | 'count_unique(release)' | 'count_unique(tags[sentry:user])' | 'count_unique(tags[sentry:dist])' | 'count_unique(tags[sentry:release])'; /** * The time window to aggregate over, in seconds. */ time_window: number; environment: string | null; event_types: Array<'error' | 'default'>; extrapolation_mode?: string | null; } | { query_type?: 1; dataset: 'events_analytics_platform'; /** * A search query to filter the events, such as `is:unresolved`. */ query: string; aggregate: string; /** * The time window to aggregate over, in seconds. */ time_window: number; environment: string | null; event_types: [ 'trace_item_span' ]; extrapolation_mode?: string | null; } | { query_type?: 1; dataset: 'events_analytics_platform'; /** * A search query to filter the events, such as `is:unresolved`. */ query: string; aggregate: string; /** * The time window to aggregate over, in seconds. */ time_window: number; environment: string | null; event_types: [ 'trace_item_log' ]; extrapolation_mode?: string | null; } | { query_type?: 1; dataset: 'events_analytics_platform'; /** * A search query to filter the events, such as `is:unresolved`. */ query: string; aggregate: string; /** * The time window to aggregate over, in seconds. */ time_window: number; environment: string | null; event_types: [ 'trace_item_metric' ]; extrapolation_mode?: string | null; } | { query_type?: 2; dataset: 'metrics'; /** * A search query to filter the events, such as `is:unresolved`. */ query: string; aggregate: string; /** * The time window to aggregate over, in seconds. */ time_window: number; environment: string | null; /** * Ignored for this dataset. Send an empty list. */ event_types: Array; extrapolation_mode?: string | null; }>; /** * Configuration for preprod static analysis detector */ config?: { /** * The type of threshold to apply */ thresholdType: 'absolute_diff' | 'absolute' | 'relative_diff'; /** * The measurement to track */ measurement: 'install_size' | 'download_size'; /** * Search query to filter which artifacts are monitored */ query?: string; }; /** * * Issue detection configuration for when to create an issue and at what priority level. * * * - `logicType`: `any` * - `type`: Any of `gt` (greater than), `gte` (greater than or equal), `lt` (less than), `lte` (less than or equal), or `anomaly_detection` (dynamic) * - `comparison`: Any positive integer. This is threshold that must be crossed for the monitor to create an issue, e.g. "Create a metric issue when there are more than 5 unresolved error events". * - If creating a **change** monitor, `comparison` is the current value as a percentage of the value `comparisonDelta` seconds earlier, not the size of the change. For example, use `120` with `gt` for 20% higher, or `70` with `lt` for 30% lower. * - If creating a **dynamic** monitor, see the options below. * - `seasonality`: `auto` * - `sensitivity`: Level of responsiveness. Options are one of `low`, `medium`, or `high` * - `thresholdType`: If you want to be alerted to anomalies that are moving above, below, or in both directions in relation to your threshold. * - `0`: Above * - `1`: Below * - `2`: Above and below * * - `conditionResult`: The issue state change when the threshold is crossed. * - `75`: High priority * - `50`: Low priority * - `0`: Resolved * * * **Threshold Monitor** * ```json * "logicType": "any", * "conditions": [ * { * "type": "gt", * "comparison": 10, * "conditionResult": 75 * }, * { * "type": "lte", * "comparison": 10, * "conditionResult": 0 * } * ], * "actions": [] * ``` * * **Change Monitor** (20% higher than `comparisonDelta` seconds earlier) * ```json * "logicType": "any", * "conditions": [ * { * "type": "gt", * "comparison": 120, * "conditionResult": 75 * }, * { * "type": "lte", * "comparison": 120, * "conditionResult": 0 * } * ], * "actions": [] * ``` * * **Threshold Monitor with Medium Priority** * ```json * "logicType": "any", * "conditions": [ * { * type: "gt", * comparison: 5, * conditionResult: 75 * }, * { * type: "gt", * comparison: 2, * conditionResult: 50 * }, * { * type: "lte", * comparison: 2, * conditionResult: 0 * } * ], * "actions": [] * ``` * * **Dynamic Monitor** * ```json * "logicType": "any", * "conditions": [ * { * "type": "anomaly_detection", * "comparison": { * "seasonality": "auto", * "sensitivity": "medium", * "thresholdType": 2 * }, * "conditionResult": 75 * } * ], * "actions": [] * ``` * */ conditionGroup?: { id?: number; /** * * `any` * * `any-short` * * `all` * * `none` */ logicType: 'any' | 'any-short' | 'all' | 'none'; conditions?: Array; }; /** * * The ID user or team who owns the monitor or alert prefaced by the string 'user' or 'team'. * * **User** * ```json * "user:123456" * ``` * * **Team** * ```json * "team:456789" * ``` * */ owner?: string | null; /** * A description of the monitor. Will be used in the resulting issue. */ description?: string | null; /** * Set to False if you want to disable the monitor. */ enabled?: boolean; } | { /** * Name of the monitor. */ name: string; type: 'uptime_domain_failure'; /** * The IDs of the alerts to connect this monitor to. Use the 'Fetch Alerts' endpoint to find the IDs. */ workflowIds?: Array; dataSources?: Array<{ url: string; /** * Additional headers to send with the check request. */ headers?: { [key: string]: unknown; }; /** * The number of milliseconds the request will wait for a response before timing-out. */ timeout_ms: number; /** * The HTTP method used to make the check request. * * * `GET` * * `POST` * * `HEAD` * * `PUT` * * `DELETE` * * `PATCH` * * `OPTIONS` */ method?: 'GET' | 'POST' | 'HEAD' | 'PUT' | 'DELETE' | 'PATCH' | 'OPTIONS'; /** * When enabled allows check requets to be considered for dowstream performance tracing. */ trace_sampling?: boolean; /** * When enabled, response body and headers will be captured on check failures. */ response_capture_enabled?: boolean; /** * The body to send with the check request. */ body?: string | null; /** * Time in seconds between uptime checks. * * * `60` - 1 minute * * `300` - 5 minutes * * `600` - 10 minutes * * `1200` - 20 minutes * * `1800` - 30 minutes * * `3600` - 1 hour */ interval_seconds: 60 | 300 | 600 | 1200 | 1800 | 3600; /** * The assertion to send with the check request. */ assertion?: { [key: string]: unknown; } | null; }>; /** * A representation of an uptime alert */ config?: { mode: 1 | 2 | 3; environment: string | null; /** * Number of consecutive successful checks required to mark monitor as recovered */ recoveryThreshold: number; /** * Number of consecutive failed checks required to mark monitor as down */ downtimeThreshold: number; }; /** * * Issue detection configuration for when to create an issue and at what priority level. * * * - `logicType`: `any` * - `type`: Any of `gt` (greater than), `gte` (greater than or equal), `lt` (less than), `lte` (less than or equal), or `anomaly_detection` (dynamic) * - `comparison`: Any positive integer. This is threshold that must be crossed for the monitor to create an issue, e.g. "Create a metric issue when there are more than 5 unresolved error events". * - If creating a **change** monitor, `comparison` is the current value as a percentage of the value `comparisonDelta` seconds earlier, not the size of the change. For example, use `120` with `gt` for 20% higher, or `70` with `lt` for 30% lower. * - If creating a **dynamic** monitor, see the options below. * - `seasonality`: `auto` * - `sensitivity`: Level of responsiveness. Options are one of `low`, `medium`, or `high` * - `thresholdType`: If you want to be alerted to anomalies that are moving above, below, or in both directions in relation to your threshold. * - `0`: Above * - `1`: Below * - `2`: Above and below * * - `conditionResult`: The issue state change when the threshold is crossed. * - `75`: High priority * - `50`: Low priority * - `0`: Resolved * * * **Threshold Monitor** * ```json * "logicType": "any", * "conditions": [ * { * "type": "gt", * "comparison": 10, * "conditionResult": 75 * }, * { * "type": "lte", * "comparison": 10, * "conditionResult": 0 * } * ], * "actions": [] * ``` * * **Change Monitor** (20% higher than `comparisonDelta` seconds earlier) * ```json * "logicType": "any", * "conditions": [ * { * "type": "gt", * "comparison": 120, * "conditionResult": 75 * }, * { * "type": "lte", * "comparison": 120, * "conditionResult": 0 * } * ], * "actions": [] * ``` * * **Threshold Monitor with Medium Priority** * ```json * "logicType": "any", * "conditions": [ * { * type: "gt", * comparison: 5, * conditionResult: 75 * }, * { * type: "gt", * comparison: 2, * conditionResult: 50 * }, * { * type: "lte", * comparison: 2, * conditionResult: 0 * } * ], * "actions": [] * ``` * * **Dynamic Monitor** * ```json * "logicType": "any", * "conditions": [ * { * "type": "anomaly_detection", * "comparison": { * "seasonality": "auto", * "sensitivity": "medium", * "thresholdType": 2 * }, * "conditionResult": 75 * } * ], * "actions": [] * ``` * */ conditionGroup?: { id?: number; /** * * `any` * * `any-short` * * `all` * * `none` */ logicType: 'any' | 'any-short' | 'all' | 'none'; conditions?: Array; }; /** * * The ID user or team who owns the monitor or alert prefaced by the string 'user' or 'team'. * * **User** * ```json * "user:123456" * ``` * * **Team** * ```json * "team:456789" * ``` * */ owner?: string | null; /** * A description of the monitor. Will be used in the resulting issue. */ description?: string | null; /** * Set to False if you want to disable the monitor. */ enabled?: boolean; }) & { /** * Name of the monitor. */ name: string; /** * The type of monitor - `metric_issue`. */ type: string; /** * The IDs of the alerts to connect this monitor to. Use the 'Fetch Alerts' endpoint to find the IDs. */ workflowIds?: Array; /** * * The data sources for the metric monitor to use based on what you want to measure. * * The schema of each data source lists the `aggregate` values that its `dataset` and * `eventTypes` accept. * * `timeWindow` is measured in seconds. Cron Monitors use schedules instead of this field. * Legacy metric alert rules expressed this value in minutes, so multiply a legacy value * by 60 when migrating it to a monitor. For example, a legacy 5-minute window becomes * `"timeWindow": 300`. * * **Number of Errors Metric Monitor** * - `eventTypes`: Any of `error` or `default`. * ```json * [ * { * "aggregate": "count()", * "dataset" : "events", * "environment": "prod", * "eventTypes": ["default", "error"], * "query": "is:unresolved", * "queryType": 0, * "timeWindow": 3600 * } * ] * ``` * * **Users Experiencing Errors Metric Monitor** * - `eventTypes`: Any of `error` or `default`. * ```json * [ * { * "aggregate": "count_unique(tags[sentry:user])", * "dataset" : "events", * "environment": "prod", * "eventTypes": ["default", "error"], * "query": "is:unresolved", * "queryType": 0, * "timeWindow": 3600 * } * ] * ``` * * * **Throughput Metric Monitor** * ```json * [ * { * "aggregate":"count(span.duration)", * "dataset":"events_analytics_platform", * "environment":"prod", * "eventTypes":["trace_item_span"], * "query":"", * "queryType":1, * "timeWindow":3600, * "extrapolationMode":"unknown" * } * ] * ``` * * **Duration Metric Monitor** * ```json * [ * { * "aggregate":"p95(span.duration)", * "dataset":"events_analytics_platform", * "environment":"prod", * "eventTypes":["trace_item_span"], * "query":"", * "queryType":1, * "timeWindow":3600, * "extrapolationMode":"unknown" * } * ] * ``` * * **Failure Rate Metric Monitor** * ```json * [ * { * "aggregate":"failure_rate()", * "dataset":"events_analytics_platform", * "environment":"prod", * "eventTypes":["trace_item_span"], * "query":"", * "queryType":1, * "timeWindow":3600, * "extrapolationMode":"unknown" * } * ] * ``` * * **Largest Contentful Paint Metric Monitor** * - `dataset`: Use `events_analytics_platform`. To query transaction spans, add `is_transaction:true` to `query`. * - `aggregate`: Valid values are `avg(measurements.lcp)`, `p50(measurements.lcp)`, `p75(measurements.lcp)`, `p95(measurements.lcp)`, `p99(measurements.lcp)`, and `p100(measurements.lcp)`. * * ```json * [ * { * "aggregate":"p95(measurements.lcp)", * "dataset":"events_analytics_platform", * "environment":"prod", * "eventTypes":["trace_item_span"], * "query":"is_transaction:true", * "queryType":1, * "timeWindow":3600, * "extrapolationMode":"unknown" * } * ] * ``` * * **Custom Metric Monitor** * - `dataset`: Use `events_analytics_platform`. To query transaction spans, add `is_transaction:true` to `query`. * - `aggregate`: Valid values are: * `avg(x)`, where `x` is `transaction.duration`, `measurements.cls`, `measurements.fcp`, `measurements.fid`, `measurements.fp`, `measurements.lcp`, `measurements.ttfb`, or `measurements.ttfb.requesttime`. * `p50(x)`, where `x` is `transaction.duration`, `measurements.cls`, `measurements.fcp`, `measurements.fid`, `measurements.fp`, `measurements.lcp`, `measurements.ttfb`, or `measurements.ttfb.requesttime`. * `p75(x)`, where x is `transaction.duration`, `measurements.cls`, `measurements.fcp`, `measurements.fid`, `measurements.fp`, `measurements.lcp`, `measurements.ttfb`, or `measurements.ttfb.requesttime`. * `p95(x)`, where x is `transaction.duration`, `measurements.cls`, `measurements.fcp`, `measurements.fid`, `measurements.fp`, `measurements.lcp`, `measurements.ttfb`, or `measurements.ttfb.requesttime`. * `p99(x)`, where x is `transaction.duration`, `measurements.cls`, `measurements.fcp`, `measurements.fid`, `measurements.fp`, `measurements.lcp`, `measurements.ttfb`, or `measurements.ttfb.requesttime`. * `p100(x)`, where `x` is `transaction.duration`, `measurements.cls`, `measurements.fcp`, `measurements.fid`, `measurements.fp`, `measurements.lcp`, `measurements.ttfb`, or `measurements.ttfb.requesttime`. * `failure_rate()` * `apdex(x)`, where `x` is the value of the Apdex score. * `count()` * * ```json * [ * { * "aggregate": "p75(measurements.ttfb)", * "dataset": "events_analytics_platform", * "environment": "prod", * "queryType": 1, * "eventTypes": ["trace_item_span"], * "query": "is_transaction:true", * "timeWindow": 3600, * "extrapolationMode": "unknown" * } * ] * ``` * */ dataSources?: Array<{ query_type?: 0; dataset: 'events'; /** * A search query to filter the events, such as `is:unresolved`. */ query: string; aggregate: 'count()' | 'count_unique(user)' | 'count_unique(dist)' | 'count_unique(release)' | 'count_unique(tags[sentry:user])' | 'count_unique(tags[sentry:dist])' | 'count_unique(tags[sentry:release])'; /** * The time window to aggregate over, in seconds. */ time_window: number; environment: string | null; event_types: Array<'error' | 'default'>; extrapolation_mode?: string | null; } | { query_type?: 1; dataset: 'events_analytics_platform'; /** * A search query to filter the events, such as `is:unresolved`. */ query: string; aggregate: string; /** * The time window to aggregate over, in seconds. */ time_window: number; environment: string | null; event_types: [ 'trace_item_span' ]; extrapolation_mode?: string | null; } | { query_type?: 1; dataset: 'events_analytics_platform'; /** * A search query to filter the events, such as `is:unresolved`. */ query: string; aggregate: string; /** * The time window to aggregate over, in seconds. */ time_window: number; environment: string | null; event_types: [ 'trace_item_log' ]; extrapolation_mode?: string | null; } | { query_type?: 1; dataset: 'events_analytics_platform'; /** * A search query to filter the events, such as `is:unresolved`. */ query: string; aggregate: string; /** * The time window to aggregate over, in seconds. */ time_window: number; environment: string | null; event_types: [ 'trace_item_metric' ]; extrapolation_mode?: string | null; } | { query_type?: 2; dataset: 'metrics'; /** * A search query to filter the events, such as `is:unresolved`. */ query: string; aggregate: string; /** * The time window to aggregate over, in seconds. */ time_window: number; environment: string | null; /** * Ignored for this dataset. Send an empty list. */ event_types: Array; extrapolation_mode?: string | null; }>; /** * * The issue detection type configuration. * * * - `detectionType` * - `static`: Threshold based monitor * - `percent`: Change based monitor * - `dynamic`: Dynamic monitor * - `comparisonDelta`: If selecting a **change** detection type, the comparison delta is the time period, in seconds, at which to compare against historical data. * For example, a value of 3600 compares the metric tracked against data 1 hour ago. * - `300`: 5 minutes * - `900`: 15 minutes * - `3600`: 1 hour * - `86400`: 1 day * - `604800`: 1 week * - `2592000`: 1 month * * **Threshold** * ```json * { * "detectionType": "static" * } * ``` * **Change** * ```json * { * "detectionType": "percent", * "comparisonDelta": 3600 * } * ``` * **Dynamic** * ```json * { * "detectionType": "dynamic" * } * ``` * */ config?: { [key: string]: unknown; }; /** * * Issue detection configuration for when to create an issue and at what priority level. * * * - `logicType`: `any` * - `type`: Any of `gt` (greater than), `gte` (greater than or equal), `lt` (less than), `lte` (less than or equal), or `anomaly_detection` (dynamic) * - `comparison`: Any positive integer. This is threshold that must be crossed for the monitor to create an issue, e.g. "Create a metric issue when there are more than 5 unresolved error events". * - If creating a **change** monitor, `comparison` is the current value as a percentage of the value `comparisonDelta` seconds earlier, not the size of the change. For example, use `120` with `gt` for 20% higher, or `70` with `lt` for 30% lower. * - If creating a **dynamic** monitor, see the options below. * - `seasonality`: `auto` * - `sensitivity`: Level of responsiveness. Options are one of `low`, `medium`, or `high` * - `thresholdType`: If you want to be alerted to anomalies that are moving above, below, or in both directions in relation to your threshold. * - `0`: Above * - `1`: Below * - `2`: Above and below * * - `conditionResult`: The issue state change when the threshold is crossed. * - `75`: High priority * - `50`: Low priority * - `0`: Resolved * * * **Threshold Monitor** * ```json * "logicType": "any", * "conditions": [ * { * "type": "gt", * "comparison": 10, * "conditionResult": 75 * }, * { * "type": "lte", * "comparison": 10, * "conditionResult": 0 * } * ], * "actions": [] * ``` * * **Change Monitor** (20% higher than `comparisonDelta` seconds earlier) * ```json * "logicType": "any", * "conditions": [ * { * "type": "gt", * "comparison": 120, * "conditionResult": 75 * }, * { * "type": "lte", * "comparison": 120, * "conditionResult": 0 * } * ], * "actions": [] * ``` * * **Threshold Monitor with Medium Priority** * ```json * "logicType": "any", * "conditions": [ * { * type: "gt", * comparison: 5, * conditionResult: 75 * }, * { * type: "gt", * comparison: 2, * conditionResult: 50 * }, * { * type: "lte", * comparison: 2, * conditionResult: 0 * } * ], * "actions": [] * ``` * * **Dynamic Monitor** * ```json * "logicType": "any", * "conditions": [ * { * "type": "anomaly_detection", * "comparison": { * "seasonality": "auto", * "sensitivity": "medium", * "thresholdType": 2 * }, * "conditionResult": 75 * } * ], * "actions": [] * ``` * */ conditionGroup?: { id?: number; /** * * `any` * * `any-short` * * `all` * * `none` */ logicType: 'any' | 'any-short' | 'all' | 'none'; conditions?: Array; }; /** * * The ID user or team who owns the monitor or alert prefaced by the string 'user' or 'team'. * * **User** * ```json * "user:123456" * ``` * * **Team** * ```json * "team:456789" * ``` * */ owner?: string | null; /** * A description of the monitor. Will be used in the resulting issue. */ description?: string | null; /** * Set to False if you want to disable the monitor. */ enabled?: boolean; }; export type DetectorUpdateRequest = ({ /** * Name of the monitor. */ name?: string; type?: 'error'; /** * The IDs of the alerts to connect this monitor to. Use the 'Fetch Alerts' endpoint to find the IDs. */ workflowIds?: Array; /** * * The data sources for the metric monitor to use based on what you want to measure. * * The schema of each data source lists the `aggregate` values that its `dataset` and * `eventTypes` accept. * * `timeWindow` is measured in seconds. Cron Monitors use schedules instead of this field. * Legacy metric alert rules expressed this value in minutes, so multiply a legacy value * by 60 when migrating it to a monitor. For example, a legacy 5-minute window becomes * `"timeWindow": 300`. * * **Number of Errors Metric Monitor** * - `eventTypes`: Any of `error` or `default`. * ```json * [ * { * "aggregate": "count()", * "dataset" : "events", * "environment": "prod", * "eventTypes": ["default", "error"], * "query": "is:unresolved", * "queryType": 0, * "timeWindow": 3600 * } * ] * ``` * * **Users Experiencing Errors Metric Monitor** * - `eventTypes`: Any of `error` or `default`. * ```json * [ * { * "aggregate": "count_unique(tags[sentry:user])", * "dataset" : "events", * "environment": "prod", * "eventTypes": ["default", "error"], * "query": "is:unresolved", * "queryType": 0, * "timeWindow": 3600 * } * ] * ``` * * * **Throughput Metric Monitor** * ```json * [ * { * "aggregate":"count(span.duration)", * "dataset":"events_analytics_platform", * "environment":"prod", * "eventTypes":["trace_item_span"], * "query":"", * "queryType":1, * "timeWindow":3600, * "extrapolationMode":"unknown" * } * ] * ``` * * **Duration Metric Monitor** * ```json * [ * { * "aggregate":"p95(span.duration)", * "dataset":"events_analytics_platform", * "environment":"prod", * "eventTypes":["trace_item_span"], * "query":"", * "queryType":1, * "timeWindow":3600, * "extrapolationMode":"unknown" * } * ] * ``` * * **Failure Rate Metric Monitor** * ```json * [ * { * "aggregate":"failure_rate()", * "dataset":"events_analytics_platform", * "environment":"prod", * "eventTypes":["trace_item_span"], * "query":"", * "queryType":1, * "timeWindow":3600, * "extrapolationMode":"unknown" * } * ] * ``` * * **Largest Contentful Paint Metric Monitor** * - `dataset`: Use `events_analytics_platform`. To query transaction spans, add `is_transaction:true` to `query`. * - `aggregate`: Valid values are `avg(measurements.lcp)`, `p50(measurements.lcp)`, `p75(measurements.lcp)`, `p95(measurements.lcp)`, `p99(measurements.lcp)`, and `p100(measurements.lcp)`. * * ```json * [ * { * "aggregate":"p95(measurements.lcp)", * "dataset":"events_analytics_platform", * "environment":"prod", * "eventTypes":["trace_item_span"], * "query":"is_transaction:true", * "queryType":1, * "timeWindow":3600, * "extrapolationMode":"unknown" * } * ] * ``` * * **Custom Metric Monitor** * - `dataset`: Use `events_analytics_platform`. To query transaction spans, add `is_transaction:true` to `query`. * - `aggregate`: Valid values are: * `avg(x)`, where `x` is `transaction.duration`, `measurements.cls`, `measurements.fcp`, `measurements.fid`, `measurements.fp`, `measurements.lcp`, `measurements.ttfb`, or `measurements.ttfb.requesttime`. * `p50(x)`, where `x` is `transaction.duration`, `measurements.cls`, `measurements.fcp`, `measurements.fid`, `measurements.fp`, `measurements.lcp`, `measurements.ttfb`, or `measurements.ttfb.requesttime`. * `p75(x)`, where x is `transaction.duration`, `measurements.cls`, `measurements.fcp`, `measurements.fid`, `measurements.fp`, `measurements.lcp`, `measurements.ttfb`, or `measurements.ttfb.requesttime`. * `p95(x)`, where x is `transaction.duration`, `measurements.cls`, `measurements.fcp`, `measurements.fid`, `measurements.fp`, `measurements.lcp`, `measurements.ttfb`, or `measurements.ttfb.requesttime`. * `p99(x)`, where x is `transaction.duration`, `measurements.cls`, `measurements.fcp`, `measurements.fid`, `measurements.fp`, `measurements.lcp`, `measurements.ttfb`, or `measurements.ttfb.requesttime`. * `p100(x)`, where `x` is `transaction.duration`, `measurements.cls`, `measurements.fcp`, `measurements.fid`, `measurements.fp`, `measurements.lcp`, `measurements.ttfb`, or `measurements.ttfb.requesttime`. * `failure_rate()` * `apdex(x)`, where `x` is the value of the Apdex score. * `count()` * * ```json * [ * { * "aggregate": "p75(measurements.ttfb)", * "dataset": "events_analytics_platform", * "environment": "prod", * "queryType": 1, * "eventTypes": ["trace_item_span"], * "query": "is_transaction:true", * "timeWindow": 3600, * "extrapolationMode": "unknown" * } * ] * ``` * */ dataSources?: Array<{ query_type?: 0; dataset: 'events'; /** * A search query to filter the events, such as `is:unresolved`. */ query: string; aggregate: 'count()' | 'count_unique(user)' | 'count_unique(dist)' | 'count_unique(release)' | 'count_unique(tags[sentry:user])' | 'count_unique(tags[sentry:dist])' | 'count_unique(tags[sentry:release])'; /** * The time window to aggregate over, in seconds. */ time_window: number; environment: string | null; event_types: Array<'error' | 'default'>; extrapolation_mode?: string | null; } | { query_type?: 1; dataset: 'events_analytics_platform'; /** * A search query to filter the events, such as `is:unresolved`. */ query: string; aggregate: string; /** * The time window to aggregate over, in seconds. */ time_window: number; environment: string | null; event_types: [ 'trace_item_span' ]; extrapolation_mode?: string | null; } | { query_type?: 1; dataset: 'events_analytics_platform'; /** * A search query to filter the events, such as `is:unresolved`. */ query: string; aggregate: string; /** * The time window to aggregate over, in seconds. */ time_window: number; environment: string | null; event_types: [ 'trace_item_log' ]; extrapolation_mode?: string | null; } | { query_type?: 1; dataset: 'events_analytics_platform'; /** * A search query to filter the events, such as `is:unresolved`. */ query: string; aggregate: string; /** * The time window to aggregate over, in seconds. */ time_window: number; environment: string | null; event_types: [ 'trace_item_metric' ]; extrapolation_mode?: string | null; } | { query_type?: 2; dataset: 'metrics'; /** * A search query to filter the events, such as `is:unresolved`. */ query: string; aggregate: string; /** * The time window to aggregate over, in seconds. */ time_window: number; environment: string | null; /** * Ignored for this dataset. Send an empty list. */ event_types: Array; extrapolation_mode?: string | null; }>; config?: { [key: string]: never; }; conditionGroup?: { [key: string]: unknown; } | null; /** * * The ID user or team who owns the monitor or alert prefaced by the string 'user' or 'team'. * * **User** * ```json * "user:123456" * ``` * * **Team** * ```json * "team:456789" * ``` * */ owner?: string | null; /** * A description of the monitor. Will be used in the resulting issue. */ description?: string | null; /** * Set to False if you want to disable the monitor. */ enabled?: boolean; fingerprintingRules?: string | null; /** * Automatically resolve an issue if it hasn't been seen for this many hours. Set to `0` to disable auto-resolve. */ resolveAge?: number | null; } | { /** * Name of the monitor. */ name?: string; type?: 'metric_issue'; /** * The IDs of the alerts to connect this monitor to. Use the 'Fetch Alerts' endpoint to find the IDs. */ workflowIds?: Array; dataSources?: Array<{ query_type?: number; dataset: string; query: string; aggregate: string; time_window: number; environment: string | null; event_types: Array; group_by?: Array; extrapolation_mode?: string | null; }>; config?: { comparisonDelta?: 300 | 900 | 3600 | 86400 | 604800 | 2592000; detectionType: 'static'; } | { comparisonDelta?: 300 | 900 | 3600 | 86400 | 604800 | 2592000; detectionType: 'percent'; } | { comparisonDelta?: 300 | 900 | 3600 | 86400 | 604800 | 2592000; detectionType: 'dynamic'; }; /** * Allows parameters to be defined in snake case, but passed as camel case. * * Errors are output in camel case. */ conditionGroup?: { id?: number; /** * * `any` * * `any-short` * * `all` * * `none` */ logicType: 'any' | 'any-short' | 'all' | 'none'; conditions: Array<{ id?: number; conditionResult: 0 | 50 | 75; type: 'gt' | 'lt' | 'gte' | 'lte'; comparison: number; } | { id?: number; conditionResult: 0 | 50 | 75; type: 'anomaly_detection'; comparison: { sensitivity: 'low' | 'medium' | 'high'; seasonality: 'auto' | 'hourly' | 'daily' | 'weekly' | 'hourly_daily' | 'hourly_weekly' | 'hourly_daily_weekly' | 'daily_weekly'; thresholdType: 0 | 1 | 2; }; }>; }; /** * * The ID user or team who owns the monitor or alert prefaced by the string 'user' or 'team'. * * **User** * ```json * "user:123456" * ``` * * **Team** * ```json * "team:456789" * ``` * */ owner?: string | null; /** * A description of the monitor. Will be used in the resulting issue. */ description?: string | null; /** * Set to False if you want to disable the monitor. */ enabled?: boolean; } | { /** * Name of the monitor. */ name?: string; type?: 'monitor_check_in_failure'; /** * The IDs of the alerts to connect this monitor to. Use the 'Fetch Alerts' endpoint to find the IDs. */ workflowIds?: Array; dataSources?: Array<{ /** * Name of the monitor. Used for notifications. */ name?: string; /** * Uniquely identifies your monitor within your organization. */ slug?: string; status?: string; owner?: string | null; is_muted?: boolean; config: { [key: string]: unknown; }; }>; config?: { [key: string]: unknown; }; /** * * Issue detection configuration for when to create an issue and at what priority level. * * * - `logicType`: `any` * - `type`: Any of `gt` (greater than), `gte` (greater than or equal), `lt` (less than), `lte` (less than or equal), or `anomaly_detection` (dynamic) * - `comparison`: Any positive integer. This is threshold that must be crossed for the monitor to create an issue, e.g. "Create a metric issue when there are more than 5 unresolved error events". * - If creating a **change** monitor, `comparison` is the current value as a percentage of the value `comparisonDelta` seconds earlier, not the size of the change. For example, use `120` with `gt` for 20% higher, or `70` with `lt` for 30% lower. * - If creating a **dynamic** monitor, see the options below. * - `seasonality`: `auto` * - `sensitivity`: Level of responsiveness. Options are one of `low`, `medium`, or `high` * - `thresholdType`: If you want to be alerted to anomalies that are moving above, below, or in both directions in relation to your threshold. * - `0`: Above * - `1`: Below * - `2`: Above and below * * - `conditionResult`: The issue state change when the threshold is crossed. * - `75`: High priority * - `50`: Low priority * - `0`: Resolved * * * **Threshold Monitor** * ```json * "logicType": "any", * "conditions": [ * { * "type": "gt", * "comparison": 10, * "conditionResult": 75 * }, * { * "type": "lte", * "comparison": 10, * "conditionResult": 0 * } * ], * "actions": [] * ``` * * **Change Monitor** (20% higher than `comparisonDelta` seconds earlier) * ```json * "logicType": "any", * "conditions": [ * { * "type": "gt", * "comparison": 120, * "conditionResult": 75 * }, * { * "type": "lte", * "comparison": 120, * "conditionResult": 0 * } * ], * "actions": [] * ``` * * **Threshold Monitor with Medium Priority** * ```json * "logicType": "any", * "conditions": [ * { * type: "gt", * comparison: 5, * conditionResult: 75 * }, * { * type: "gt", * comparison: 2, * conditionResult: 50 * }, * { * type: "lte", * comparison: 2, * conditionResult: 0 * } * ], * "actions": [] * ``` * * **Dynamic Monitor** * ```json * "logicType": "any", * "conditions": [ * { * "type": "anomaly_detection", * "comparison": { * "seasonality": "auto", * "sensitivity": "medium", * "thresholdType": 2 * }, * "conditionResult": 75 * } * ], * "actions": [] * ``` * */ conditionGroup?: { id?: number; /** * * `any` * * `any-short` * * `all` * * `none` */ logicType: 'any' | 'any-short' | 'all' | 'none'; conditions?: Array; }; /** * * The ID user or team who owns the monitor or alert prefaced by the string 'user' or 'team'. * * **User** * ```json * "user:123456" * ``` * * **Team** * ```json * "team:456789" * ``` * */ owner?: string | null; /** * A description of the monitor. Will be used in the resulting issue. */ description?: string | null; /** * Set to False if you want to disable the monitor. */ enabled?: boolean; } | { /** * Name of the monitor. */ name?: string; type?: 'preprod_size_analysis'; /** * The IDs of the alerts to connect this monitor to. Use the 'Fetch Alerts' endpoint to find the IDs. */ workflowIds?: Array; /** * * The data sources for the metric monitor to use based on what you want to measure. * * The schema of each data source lists the `aggregate` values that its `dataset` and * `eventTypes` accept. * * `timeWindow` is measured in seconds. Cron Monitors use schedules instead of this field. * Legacy metric alert rules expressed this value in minutes, so multiply a legacy value * by 60 when migrating it to a monitor. For example, a legacy 5-minute window becomes * `"timeWindow": 300`. * * **Number of Errors Metric Monitor** * - `eventTypes`: Any of `error` or `default`. * ```json * [ * { * "aggregate": "count()", * "dataset" : "events", * "environment": "prod", * "eventTypes": ["default", "error"], * "query": "is:unresolved", * "queryType": 0, * "timeWindow": 3600 * } * ] * ``` * * **Users Experiencing Errors Metric Monitor** * - `eventTypes`: Any of `error` or `default`. * ```json * [ * { * "aggregate": "count_unique(tags[sentry:user])", * "dataset" : "events", * "environment": "prod", * "eventTypes": ["default", "error"], * "query": "is:unresolved", * "queryType": 0, * "timeWindow": 3600 * } * ] * ``` * * * **Throughput Metric Monitor** * ```json * [ * { * "aggregate":"count(span.duration)", * "dataset":"events_analytics_platform", * "environment":"prod", * "eventTypes":["trace_item_span"], * "query":"", * "queryType":1, * "timeWindow":3600, * "extrapolationMode":"unknown" * } * ] * ``` * * **Duration Metric Monitor** * ```json * [ * { * "aggregate":"p95(span.duration)", * "dataset":"events_analytics_platform", * "environment":"prod", * "eventTypes":["trace_item_span"], * "query":"", * "queryType":1, * "timeWindow":3600, * "extrapolationMode":"unknown" * } * ] * ``` * * **Failure Rate Metric Monitor** * ```json * [ * { * "aggregate":"failure_rate()", * "dataset":"events_analytics_platform", * "environment":"prod", * "eventTypes":["trace_item_span"], * "query":"", * "queryType":1, * "timeWindow":3600, * "extrapolationMode":"unknown" * } * ] * ``` * * **Largest Contentful Paint Metric Monitor** * - `dataset`: Use `events_analytics_platform`. To query transaction spans, add `is_transaction:true` to `query`. * - `aggregate`: Valid values are `avg(measurements.lcp)`, `p50(measurements.lcp)`, `p75(measurements.lcp)`, `p95(measurements.lcp)`, `p99(measurements.lcp)`, and `p100(measurements.lcp)`. * * ```json * [ * { * "aggregate":"p95(measurements.lcp)", * "dataset":"events_analytics_platform", * "environment":"prod", * "eventTypes":["trace_item_span"], * "query":"is_transaction:true", * "queryType":1, * "timeWindow":3600, * "extrapolationMode":"unknown" * } * ] * ``` * * **Custom Metric Monitor** * - `dataset`: Use `events_analytics_platform`. To query transaction spans, add `is_transaction:true` to `query`. * - `aggregate`: Valid values are: * `avg(x)`, where `x` is `transaction.duration`, `measurements.cls`, `measurements.fcp`, `measurements.fid`, `measurements.fp`, `measurements.lcp`, `measurements.ttfb`, or `measurements.ttfb.requesttime`. * `p50(x)`, where `x` is `transaction.duration`, `measurements.cls`, `measurements.fcp`, `measurements.fid`, `measurements.fp`, `measurements.lcp`, `measurements.ttfb`, or `measurements.ttfb.requesttime`. * `p75(x)`, where x is `transaction.duration`, `measurements.cls`, `measurements.fcp`, `measurements.fid`, `measurements.fp`, `measurements.lcp`, `measurements.ttfb`, or `measurements.ttfb.requesttime`. * `p95(x)`, where x is `transaction.duration`, `measurements.cls`, `measurements.fcp`, `measurements.fid`, `measurements.fp`, `measurements.lcp`, `measurements.ttfb`, or `measurements.ttfb.requesttime`. * `p99(x)`, where x is `transaction.duration`, `measurements.cls`, `measurements.fcp`, `measurements.fid`, `measurements.fp`, `measurements.lcp`, `measurements.ttfb`, or `measurements.ttfb.requesttime`. * `p100(x)`, where `x` is `transaction.duration`, `measurements.cls`, `measurements.fcp`, `measurements.fid`, `measurements.fp`, `measurements.lcp`, `measurements.ttfb`, or `measurements.ttfb.requesttime`. * `failure_rate()` * `apdex(x)`, where `x` is the value of the Apdex score. * `count()` * * ```json * [ * { * "aggregate": "p75(measurements.ttfb)", * "dataset": "events_analytics_platform", * "environment": "prod", * "queryType": 1, * "eventTypes": ["trace_item_span"], * "query": "is_transaction:true", * "timeWindow": 3600, * "extrapolationMode": "unknown" * } * ] * ``` * */ dataSources?: Array<{ query_type?: 0; dataset: 'events'; /** * A search query to filter the events, such as `is:unresolved`. */ query: string; aggregate: 'count()' | 'count_unique(user)' | 'count_unique(dist)' | 'count_unique(release)' | 'count_unique(tags[sentry:user])' | 'count_unique(tags[sentry:dist])' | 'count_unique(tags[sentry:release])'; /** * The time window to aggregate over, in seconds. */ time_window: number; environment: string | null; event_types: Array<'error' | 'default'>; extrapolation_mode?: string | null; } | { query_type?: 1; dataset: 'events_analytics_platform'; /** * A search query to filter the events, such as `is:unresolved`. */ query: string; aggregate: string; /** * The time window to aggregate over, in seconds. */ time_window: number; environment: string | null; event_types: [ 'trace_item_span' ]; extrapolation_mode?: string | null; } | { query_type?: 1; dataset: 'events_analytics_platform'; /** * A search query to filter the events, such as `is:unresolved`. */ query: string; aggregate: string; /** * The time window to aggregate over, in seconds. */ time_window: number; environment: string | null; event_types: [ 'trace_item_log' ]; extrapolation_mode?: string | null; } | { query_type?: 1; dataset: 'events_analytics_platform'; /** * A search query to filter the events, such as `is:unresolved`. */ query: string; aggregate: string; /** * The time window to aggregate over, in seconds. */ time_window: number; environment: string | null; event_types: [ 'trace_item_metric' ]; extrapolation_mode?: string | null; } | { query_type?: 2; dataset: 'metrics'; /** * A search query to filter the events, such as `is:unresolved`. */ query: string; aggregate: string; /** * The time window to aggregate over, in seconds. */ time_window: number; environment: string | null; /** * Ignored for this dataset. Send an empty list. */ event_types: Array; extrapolation_mode?: string | null; }>; /** * Configuration for preprod static analysis detector */ config?: { /** * The type of threshold to apply */ thresholdType: 'absolute_diff' | 'absolute' | 'relative_diff'; /** * The measurement to track */ measurement: 'install_size' | 'download_size'; /** * Search query to filter which artifacts are monitored */ query?: string; }; /** * * Issue detection configuration for when to create an issue and at what priority level. * * * - `logicType`: `any` * - `type`: Any of `gt` (greater than), `gte` (greater than or equal), `lt` (less than), `lte` (less than or equal), or `anomaly_detection` (dynamic) * - `comparison`: Any positive integer. This is threshold that must be crossed for the monitor to create an issue, e.g. "Create a metric issue when there are more than 5 unresolved error events". * - If creating a **change** monitor, `comparison` is the current value as a percentage of the value `comparisonDelta` seconds earlier, not the size of the change. For example, use `120` with `gt` for 20% higher, or `70` with `lt` for 30% lower. * - If creating a **dynamic** monitor, see the options below. * - `seasonality`: `auto` * - `sensitivity`: Level of responsiveness. Options are one of `low`, `medium`, or `high` * - `thresholdType`: If you want to be alerted to anomalies that are moving above, below, or in both directions in relation to your threshold. * - `0`: Above * - `1`: Below * - `2`: Above and below * * - `conditionResult`: The issue state change when the threshold is crossed. * - `75`: High priority * - `50`: Low priority * - `0`: Resolved * * * **Threshold Monitor** * ```json * "logicType": "any", * "conditions": [ * { * "type": "gt", * "comparison": 10, * "conditionResult": 75 * }, * { * "type": "lte", * "comparison": 10, * "conditionResult": 0 * } * ], * "actions": [] * ``` * * **Change Monitor** (20% higher than `comparisonDelta` seconds earlier) * ```json * "logicType": "any", * "conditions": [ * { * "type": "gt", * "comparison": 120, * "conditionResult": 75 * }, * { * "type": "lte", * "comparison": 120, * "conditionResult": 0 * } * ], * "actions": [] * ``` * * **Threshold Monitor with Medium Priority** * ```json * "logicType": "any", * "conditions": [ * { * type: "gt", * comparison: 5, * conditionResult: 75 * }, * { * type: "gt", * comparison: 2, * conditionResult: 50 * }, * { * type: "lte", * comparison: 2, * conditionResult: 0 * } * ], * "actions": [] * ``` * * **Dynamic Monitor** * ```json * "logicType": "any", * "conditions": [ * { * "type": "anomaly_detection", * "comparison": { * "seasonality": "auto", * "sensitivity": "medium", * "thresholdType": 2 * }, * "conditionResult": 75 * } * ], * "actions": [] * ``` * */ conditionGroup?: { id?: number; /** * * `any` * * `any-short` * * `all` * * `none` */ logicType: 'any' | 'any-short' | 'all' | 'none'; conditions?: Array; }; /** * * The ID user or team who owns the monitor or alert prefaced by the string 'user' or 'team'. * * **User** * ```json * "user:123456" * ``` * * **Team** * ```json * "team:456789" * ``` * */ owner?: string | null; /** * A description of the monitor. Will be used in the resulting issue. */ description?: string | null; /** * Set to False if you want to disable the monitor. */ enabled?: boolean; } | { /** * Name of the monitor. */ name?: string; type?: 'uptime_domain_failure'; /** * The IDs of the alerts to connect this monitor to. Use the 'Fetch Alerts' endpoint to find the IDs. */ workflowIds?: Array; dataSources?: Array<{ url: string; /** * Additional headers to send with the check request. */ headers?: { [key: string]: unknown; }; /** * The number of milliseconds the request will wait for a response before timing-out. */ timeout_ms: number; /** * The HTTP method used to make the check request. * * * `GET` * * `POST` * * `HEAD` * * `PUT` * * `DELETE` * * `PATCH` * * `OPTIONS` */ method?: 'GET' | 'POST' | 'HEAD' | 'PUT' | 'DELETE' | 'PATCH' | 'OPTIONS'; /** * When enabled allows check requets to be considered for dowstream performance tracing. */ trace_sampling?: boolean; /** * When enabled, response body and headers will be captured on check failures. */ response_capture_enabled?: boolean; /** * The body to send with the check request. */ body?: string | null; /** * Time in seconds between uptime checks. * * * `60` - 1 minute * * `300` - 5 minutes * * `600` - 10 minutes * * `1200` - 20 minutes * * `1800` - 30 minutes * * `3600` - 1 hour */ interval_seconds: 60 | 300 | 600 | 1200 | 1800 | 3600; /** * The assertion to send with the check request. */ assertion?: { [key: string]: unknown; } | null; }>; /** * A representation of an uptime alert */ config?: { mode: 1 | 2 | 3; environment: string | null; /** * Number of consecutive successful checks required to mark monitor as recovered */ recoveryThreshold: number; /** * Number of consecutive failed checks required to mark monitor as down */ downtimeThreshold: number; }; /** * * Issue detection configuration for when to create an issue and at what priority level. * * * - `logicType`: `any` * - `type`: Any of `gt` (greater than), `gte` (greater than or equal), `lt` (less than), `lte` (less than or equal), or `anomaly_detection` (dynamic) * - `comparison`: Any positive integer. This is threshold that must be crossed for the monitor to create an issue, e.g. "Create a metric issue when there are more than 5 unresolved error events". * - If creating a **change** monitor, `comparison` is the current value as a percentage of the value `comparisonDelta` seconds earlier, not the size of the change. For example, use `120` with `gt` for 20% higher, or `70` with `lt` for 30% lower. * - If creating a **dynamic** monitor, see the options below. * - `seasonality`: `auto` * - `sensitivity`: Level of responsiveness. Options are one of `low`, `medium`, or `high` * - `thresholdType`: If you want to be alerted to anomalies that are moving above, below, or in both directions in relation to your threshold. * - `0`: Above * - `1`: Below * - `2`: Above and below * * - `conditionResult`: The issue state change when the threshold is crossed. * - `75`: High priority * - `50`: Low priority * - `0`: Resolved * * * **Threshold Monitor** * ```json * "logicType": "any", * "conditions": [ * { * "type": "gt", * "comparison": 10, * "conditionResult": 75 * }, * { * "type": "lte", * "comparison": 10, * "conditionResult": 0 * } * ], * "actions": [] * ``` * * **Change Monitor** (20% higher than `comparisonDelta` seconds earlier) * ```json * "logicType": "any", * "conditions": [ * { * "type": "gt", * "comparison": 120, * "conditionResult": 75 * }, * { * "type": "lte", * "comparison": 120, * "conditionResult": 0 * } * ], * "actions": [] * ``` * * **Threshold Monitor with Medium Priority** * ```json * "logicType": "any", * "conditions": [ * { * type: "gt", * comparison: 5, * conditionResult: 75 * }, * { * type: "gt", * comparison: 2, * conditionResult: 50 * }, * { * type: "lte", * comparison: 2, * conditionResult: 0 * } * ], * "actions": [] * ``` * * **Dynamic Monitor** * ```json * "logicType": "any", * "conditions": [ * { * "type": "anomaly_detection", * "comparison": { * "seasonality": "auto", * "sensitivity": "medium", * "thresholdType": 2 * }, * "conditionResult": 75 * } * ], * "actions": [] * ``` * */ conditionGroup?: { id?: number; /** * * `any` * * `any-short` * * `all` * * `none` */ logicType: 'any' | 'any-short' | 'all' | 'none'; conditions?: Array; }; /** * * The ID user or team who owns the monitor or alert prefaced by the string 'user' or 'team'. * * **User** * ```json * "user:123456" * ``` * * **Team** * ```json * "team:456789" * ``` * */ owner?: string | null; /** * A description of the monitor. Will be used in the resulting issue. */ description?: string | null; /** * Set to False if you want to disable the monitor. */ enabled?: boolean; }) & { /** * Name of the monitor. */ name?: string; /** * The type of monitor - `metric_issue`. */ type?: string; /** * The IDs of the alerts to connect this monitor to. Use the 'Fetch Alerts' endpoint to find the IDs. */ workflowIds?: Array; /** * * The data sources for the metric monitor to use based on what you want to measure. * * The schema of each data source lists the `aggregate` values that its `dataset` and * `eventTypes` accept. * * `timeWindow` is measured in seconds. Cron Monitors use schedules instead of this field. * Legacy metric alert rules expressed this value in minutes, so multiply a legacy value * by 60 when migrating it to a monitor. For example, a legacy 5-minute window becomes * `"timeWindow": 300`. * * **Number of Errors Metric Monitor** * - `eventTypes`: Any of `error` or `default`. * ```json * [ * { * "aggregate": "count()", * "dataset" : "events", * "environment": "prod", * "eventTypes": ["default", "error"], * "query": "is:unresolved", * "queryType": 0, * "timeWindow": 3600 * } * ] * ``` * * **Users Experiencing Errors Metric Monitor** * - `eventTypes`: Any of `error` or `default`. * ```json * [ * { * "aggregate": "count_unique(tags[sentry:user])", * "dataset" : "events", * "environment": "prod", * "eventTypes": ["default", "error"], * "query": "is:unresolved", * "queryType": 0, * "timeWindow": 3600 * } * ] * ``` * * * **Throughput Metric Monitor** * ```json * [ * { * "aggregate":"count(span.duration)", * "dataset":"events_analytics_platform", * "environment":"prod", * "eventTypes":["trace_item_span"], * "query":"", * "queryType":1, * "timeWindow":3600, * "extrapolationMode":"unknown" * } * ] * ``` * * **Duration Metric Monitor** * ```json * [ * { * "aggregate":"p95(span.duration)", * "dataset":"events_analytics_platform", * "environment":"prod", * "eventTypes":["trace_item_span"], * "query":"", * "queryType":1, * "timeWindow":3600, * "extrapolationMode":"unknown" * } * ] * ``` * * **Failure Rate Metric Monitor** * ```json * [ * { * "aggregate":"failure_rate()", * "dataset":"events_analytics_platform", * "environment":"prod", * "eventTypes":["trace_item_span"], * "query":"", * "queryType":1, * "timeWindow":3600, * "extrapolationMode":"unknown" * } * ] * ``` * * **Largest Contentful Paint Metric Monitor** * - `dataset`: Use `events_analytics_platform`. To query transaction spans, add `is_transaction:true` to `query`. * - `aggregate`: Valid values are `avg(measurements.lcp)`, `p50(measurements.lcp)`, `p75(measurements.lcp)`, `p95(measurements.lcp)`, `p99(measurements.lcp)`, and `p100(measurements.lcp)`. * * ```json * [ * { * "aggregate":"p95(measurements.lcp)", * "dataset":"events_analytics_platform", * "environment":"prod", * "eventTypes":["trace_item_span"], * "query":"is_transaction:true", * "queryType":1, * "timeWindow":3600, * "extrapolationMode":"unknown" * } * ] * ``` * * **Custom Metric Monitor** * - `dataset`: Use `events_analytics_platform`. To query transaction spans, add `is_transaction:true` to `query`. * - `aggregate`: Valid values are: * `avg(x)`, where `x` is `transaction.duration`, `measurements.cls`, `measurements.fcp`, `measurements.fid`, `measurements.fp`, `measurements.lcp`, `measurements.ttfb`, or `measurements.ttfb.requesttime`. * `p50(x)`, where `x` is `transaction.duration`, `measurements.cls`, `measurements.fcp`, `measurements.fid`, `measurements.fp`, `measurements.lcp`, `measurements.ttfb`, or `measurements.ttfb.requesttime`. * `p75(x)`, where x is `transaction.duration`, `measurements.cls`, `measurements.fcp`, `measurements.fid`, `measurements.fp`, `measurements.lcp`, `measurements.ttfb`, or `measurements.ttfb.requesttime`. * `p95(x)`, where x is `transaction.duration`, `measurements.cls`, `measurements.fcp`, `measurements.fid`, `measurements.fp`, `measurements.lcp`, `measurements.ttfb`, or `measurements.ttfb.requesttime`. * `p99(x)`, where x is `transaction.duration`, `measurements.cls`, `measurements.fcp`, `measurements.fid`, `measurements.fp`, `measurements.lcp`, `measurements.ttfb`, or `measurements.ttfb.requesttime`. * `p100(x)`, where `x` is `transaction.duration`, `measurements.cls`, `measurements.fcp`, `measurements.fid`, `measurements.fp`, `measurements.lcp`, `measurements.ttfb`, or `measurements.ttfb.requesttime`. * `failure_rate()` * `apdex(x)`, where `x` is the value of the Apdex score. * `count()` * * ```json * [ * { * "aggregate": "p75(measurements.ttfb)", * "dataset": "events_analytics_platform", * "environment": "prod", * "queryType": 1, * "eventTypes": ["trace_item_span"], * "query": "is_transaction:true", * "timeWindow": 3600, * "extrapolationMode": "unknown" * } * ] * ``` * */ dataSources?: Array<{ query_type?: 0; dataset: 'events'; /** * A search query to filter the events, such as `is:unresolved`. */ query: string; aggregate: 'count()' | 'count_unique(user)' | 'count_unique(dist)' | 'count_unique(release)' | 'count_unique(tags[sentry:user])' | 'count_unique(tags[sentry:dist])' | 'count_unique(tags[sentry:release])'; /** * The time window to aggregate over, in seconds. */ time_window: number; environment: string | null; event_types: Array<'error' | 'default'>; extrapolation_mode?: string | null; } | { query_type?: 1; dataset: 'events_analytics_platform'; /** * A search query to filter the events, such as `is:unresolved`. */ query: string; aggregate: string; /** * The time window to aggregate over, in seconds. */ time_window: number; environment: string | null; event_types: [ 'trace_item_span' ]; extrapolation_mode?: string | null; } | { query_type?: 1; dataset: 'events_analytics_platform'; /** * A search query to filter the events, such as `is:unresolved`. */ query: string; aggregate: string; /** * The time window to aggregate over, in seconds. */ time_window: number; environment: string | null; event_types: [ 'trace_item_log' ]; extrapolation_mode?: string | null; } | { query_type?: 1; dataset: 'events_analytics_platform'; /** * A search query to filter the events, such as `is:unresolved`. */ query: string; aggregate: string; /** * The time window to aggregate over, in seconds. */ time_window: number; environment: string | null; event_types: [ 'trace_item_metric' ]; extrapolation_mode?: string | null; } | { query_type?: 2; dataset: 'metrics'; /** * A search query to filter the events, such as `is:unresolved`. */ query: string; aggregate: string; /** * The time window to aggregate over, in seconds. */ time_window: number; environment: string | null; /** * Ignored for this dataset. Send an empty list. */ event_types: Array; extrapolation_mode?: string | null; }>; /** * * The issue detection type configuration. * * * - `detectionType` * - `static`: Threshold based monitor * - `percent`: Change based monitor * - `dynamic`: Dynamic monitor * - `comparisonDelta`: If selecting a **change** detection type, the comparison delta is the time period, in seconds, at which to compare against historical data. * For example, a value of 3600 compares the metric tracked against data 1 hour ago. * - `300`: 5 minutes * - `900`: 15 minutes * - `3600`: 1 hour * - `86400`: 1 day * - `604800`: 1 week * - `2592000`: 1 month * * **Threshold** * ```json * { * "detectionType": "static" * } * ``` * **Change** * ```json * { * "detectionType": "percent", * "comparisonDelta": 3600 * } * ``` * **Dynamic** * ```json * { * "detectionType": "dynamic" * } * ``` * */ config?: { [key: string]: unknown; }; /** * * Issue detection configuration for when to create an issue and at what priority level. * * * - `logicType`: `any` * - `type`: Any of `gt` (greater than), `gte` (greater than or equal), `lt` (less than), `lte` (less than or equal), or `anomaly_detection` (dynamic) * - `comparison`: Any positive integer. This is threshold that must be crossed for the monitor to create an issue, e.g. "Create a metric issue when there are more than 5 unresolved error events". * - If creating a **change** monitor, `comparison` is the current value as a percentage of the value `comparisonDelta` seconds earlier, not the size of the change. For example, use `120` with `gt` for 20% higher, or `70` with `lt` for 30% lower. * - If creating a **dynamic** monitor, see the options below. * - `seasonality`: `auto` * - `sensitivity`: Level of responsiveness. Options are one of `low`, `medium`, or `high` * - `thresholdType`: If you want to be alerted to anomalies that are moving above, below, or in both directions in relation to your threshold. * - `0`: Above * - `1`: Below * - `2`: Above and below * * - `conditionResult`: The issue state change when the threshold is crossed. * - `75`: High priority * - `50`: Low priority * - `0`: Resolved * * * **Threshold Monitor** * ```json * "logicType": "any", * "conditions": [ * { * "type": "gt", * "comparison": 10, * "conditionResult": 75 * }, * { * "type": "lte", * "comparison": 10, * "conditionResult": 0 * } * ], * "actions": [] * ``` * * **Change Monitor** (20% higher than `comparisonDelta` seconds earlier) * ```json * "logicType": "any", * "conditions": [ * { * "type": "gt", * "comparison": 120, * "conditionResult": 75 * }, * { * "type": "lte", * "comparison": 120, * "conditionResult": 0 * } * ], * "actions": [] * ``` * * **Threshold Monitor with Medium Priority** * ```json * "logicType": "any", * "conditions": [ * { * type: "gt", * comparison: 5, * conditionResult: 75 * }, * { * type: "gt", * comparison: 2, * conditionResult: 50 * }, * { * type: "lte", * comparison: 2, * conditionResult: 0 * } * ], * "actions": [] * ``` * * **Dynamic Monitor** * ```json * "logicType": "any", * "conditions": [ * { * "type": "anomaly_detection", * "comparison": { * "seasonality": "auto", * "sensitivity": "medium", * "thresholdType": 2 * }, * "conditionResult": 75 * } * ], * "actions": [] * ``` * */ conditionGroup?: { id?: number; /** * * `any` * * `any-short` * * `all` * * `none` */ logicType: 'any' | 'any-short' | 'all' | 'none'; conditions?: Array; }; /** * * The ID user or team who owns the monitor or alert prefaced by the string 'user' or 'team'. * * **User** * ```json * "user:123456" * ``` * * **Team** * ```json * "team:456789" * ``` * */ owner?: string | null; /** * A description of the monitor. Will be used in the resulting issue. */ description?: string | null; /** * Set to False if you want to disable the monitor. */ enabled?: boolean; }; export type DiscoverSavedQuery = { /** * The user-defined saved query name. */ name: string; /** * The saved projects filter for this query. */ projects?: Array; /** * The dataset you would like to query. Note: `discover` is a **deprecated** value. The allowed values are: `error-events`, `transaction-like` * * * `discover` * * `error-events` * * `transaction-like` */ queryDataset?: 'discover' | 'error-events' | 'transaction-like'; /** * The saved start time for this saved query. */ start?: string | null; /** * The saved end time for this saved query. */ end?: string | null; /** * The saved time range period for this saved query. */ range?: string | null; /** * The fields, functions, or equations that can be requested for the query. At most 20 fields can be selected per request. Each field can be one of the following types: * - A built-in key field. See possible fields in the [properties table](/product/sentry-basics/search/searchable-properties/#properties-table), under any field that is an event property. * - example: `field=transaction` * - A tag. Tags should use the `tag[]` formatting to avoid ambiguity with any fields * - example: `field=tag[isEnterprise]` * - A function which will be in the format of `function_name(parameters,...)`. See possible functions in the [query builder documentation](/product/discover-queries/query-builder/#stacking-functions). * - when a function is included, Discover will group by any tags or fields * - example: `field=count_if(transaction.duration,greater,300)` * - An equation when prefixed with `equation|`. Read more about [equations here](/product/discover-queries/query-builder/query-equations/). * - example: `field=equation|count_if(transaction.duration,greater,300) / count() * 100` * */ fields?: Array | null; /** * How to order the query results. Must be something in the `field` list, excluding equations. */ orderby?: string | null; /** * Time-bucket granularity in seconds for the saved query. */ rollup?: number | null; /** * Aggregate functions to apply, each as a `[function, column, alias]` triple. */ aggregations?: Array> | null; /** * Columns to group results by. */ groupby?: Array | null; /** * Filter conditions, each as a `[column, operator, value]` triple. */ conditions?: Array> | null; /** * Maximum number of rows to return, from `0` to `1000`. */ limit?: number | null; /** * Saved query schema version. `1` for the legacy shape, `2` for the current one. */ version?: number | null; /** * The name of environments to filter by. */ environment?: Array | null; /** * Filters results by using [query syntax](/product/sentry-basics/search/). */ query?: string | null; /** * Rendered column widths, in the same order as the query's fields. */ widths?: Array | null; /** * Aggregate functions to be plotted on the chart. */ yAxis?: Array | null; /** * Visualization type for saved query chart. Allowed values are: * - default * - previous * - top5 * - daily * - dailytop5 * - bar * */ display?: string | null; /** * Number of top events' timeseries to be visualized. */ topEvents?: number | null; /** * Resolution of the time series. */ interval?: string | null; }; export type DiscoverSavedQueryListResponse = Array<{ /** * Names of the environments the query filters by */ environment?: Array; /** * Search query that filters the results */ query?: string; /** * Fields, functions or equations the query requests */ fields?: Array; /** * Rendered column widths, in the same order as the query's fields */ widths?: Array; /** * Filter conditions, each as a [column, operator, value] triple */ conditions?: Array; /** * Aggregate functions to apply, each as a [function, column, alias] triple */ aggregations?: Array; /** * Saved relative time range, such as 14d */ range?: string; /** * Saved start time (ISO 8601) */ start?: string; /** * Saved end time (ISO 8601) */ end?: string; /** * How the query results are ordered */ orderby?: string; /** * Maximum number of rows to return */ limit?: string; /** * Aggregate functions plotted on the chart */ yAxis?: Array; /** * Chart type for the saved query, such as default, top5, daily or bar */ display?: string; /** * Number of top events' time series to show */ topEvents?: number; /** * Resolution of the time series */ interval?: string; /** * Explore query this saved query was migrated to. Null when there's none */ exploreQuery?: { /** * Names of the environments the query filters by */ environment?: Array; /** * Queries shown in Explore */ query?: Array<{ /** * Fields shown in the samples table */ fields?: Array | null; /** * Field the samples are sorted by */ orderby?: string | null; /** * Fields the aggregates are grouped by */ groupby?: Array | null; /** * Search query that filters the results */ query?: string | null; /** * Charts shown for the query */ visualize?: Array<{ /** * Chart type used to plot the aggregates */ chartType?: number; /** * Transformations applied to the plotted series */ transformations?: Array; /** * Aggregates to plot */ yAxes: Array; }> | null; /** * Aggregates and group-by fields shown in aggregate mode */ aggregateField?: Array<{ /** * Chart type used to plot the aggregates */ chartType?: number; /** * Aggregates to plot */ yAxes?: Array; /** * Field to group the aggregates by */ groupBy?: string; /** * Transformations applied to the plotted series */ transformations?: Array; }> | null; /** * Field the aggregate results are sorted by */ aggregateOrderby?: string | null; /** * Metric the query reads, for metric queries */ metric?: { /** * Unit of the metric. Null when it has none */ unit?: string | null; /** * Name of the metric */ name: string; /** * Type of the metric */ type: 'counter' | 'gauge' | 'distribution'; } | null; /** * Whether the search query ignores letter case */ caseInsensitive?: boolean; /** * Whether the query shows samples or aggregates */ mode: 'samples' | 'aggregate'; }>; /** * Relative time range of the query, such as 14d */ statsPeriod?: string; /** * Start of the absolute time range (ISO 8601) */ start?: string; /** * End of the absolute time range (ISO 8601) */ end?: string; /** * Resolution of the time series */ interval?: string; /** * ID of the Explore query */ id: string; /** * Name of the Explore query */ name: string; /** * IDs of the projects the query covers */ projects: Array; /** * Dataset the query reads */ dataset: 'spans' | 'logs' | 'segment_spans' | 'metrics' | 'replays' | 'ai_conversations'; /** * Whether the query's time range is outside the retention period */ expired: boolean; /** * Whether Sentry provides the query */ isPrebuilt: boolean; /** * Parts of the Discover query dropped by the migration. Null when none were */ changedReason: { /** * Sort orders dropped when the query was migrated. Null when none were */ orderby: Array<{ [key: string]: string; }> | null; /** * Equations dropped when the query was migrated. Null when none were */ equations: Array<{ [key: string]: string | Array; }> | null; /** * Columns dropped when the query was migrated */ columns: Array; } | null; } | null; /** * When the requesting user last viewed the query (ISO 8601) */ lastVisited?: string | null; /** * Whether the requesting user starred the query */ starred?: boolean; /** * Position of the query in the requesting user's starred list. Null when it isn't starred */ position?: number | null; /** * ID of the saved query */ id: string; /** * Name of the saved query */ name: string; /** * IDs of the projects the query filters by. [-1] means all projects */ projects: Array; /** * Schema version of the saved query: 1 for the legacy shape, 2 for the current one */ version: number; /** * Dataset the query runs on, such as error-events or transaction-like */ queryDataset: string; /** * How the dataset was chosen: unknown, inferred, user or forced */ datasetSource: string; /** * Whether the saved time range is outside data retention */ expired: boolean; /** * When the saved query was created (ISO 8601) */ dateCreated: string; /** * When the saved query was last updated (ISO 8601) */ dateUpdated: string; /** * User who created the saved query */ createdBy: { /** * SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access */ identities?: Array<{ /** * SSO identity ID */ id: string; /** * User's identifier at the auth provider */ name: string; /** * Organization the auth provider belongs to */ organization: { /** * Organization slug */ slug: string; /** * Organization name */ name: string; }; /** * Auth provider of the identity */ provider: { /** * Auth provider key, such as google or saml2 */ id: string; /** * Display name of the auth provider */ name: string; }; /** * When the identity was last verified by signing in through the auth provider */ dateVerified: string; /** * When the identity was last synced from the auth provider */ dateSynced: string; }>; /** * User avatar */ avatar?: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Two-factor authenticators of the user, without backup methods such as recovery codes */ authenticators?: Array<{ /** * Authenticator ID */ id: string; /** * Authenticator type, such as totp, sms, u2f or recovery */ type: string; /** * Display name of the authenticator type */ name: string; /** * When the authenticator was added */ dateCreated: string; /** * When the authenticator was last used, or null */ dateUsed: string | null; }>; /** * Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization */ canReset2fa?: boolean; /** * User ID */ id: string; /** * Display name: the user's name, or their email or username if no name is set */ name: string; /** * Username */ username: string; /** * Primary email address */ email: string; /** * Gravatar URL for the primary email address */ avatarUrl: string; /** * Whether the account is active */ isActive: boolean; /** * Whether the account is suspended. Suspended users can't sign in */ isSuspended: boolean; /** * Whether the user has a password set */ hasPasswordAuth: boolean; /** * Whether the account is managed, which stops the user from changing their username, password and similar details */ isManaged: boolean; /** * When the account was created */ dateJoined: string; /** * When the user last signed in, or null */ lastLogin: string | null; /** * Whether the user has two-factor authentication enabled */ has2fa: boolean; /** * When the user was last active, or null */ lastActive: string | null; /** * Whether the user is a superuser */ isSuperuser: boolean; /** * Whether the user has staff status */ isStaff: boolean; /** * Deprecated. Always an empty object */ experiments: { [key: string]: string; }; /** * Email addresses of the user. Only included for the requesting user or superusers; empty otherwise */ emails: Array<{ /** * Email ID */ id: string; /** * Email address */ email: string; /** * Whether the email address is verified */ is_verified: boolean; }>; } | null; }>; export type DiscoverSavedQueryModel = { /** * Names of the environments the query filters by */ environment?: Array; /** * Search query that filters the results */ query?: string; /** * Fields, functions or equations the query requests */ fields?: Array; /** * Rendered column widths, in the same order as the query's fields */ widths?: Array; /** * Filter conditions, each as a [column, operator, value] triple */ conditions?: Array; /** * Aggregate functions to apply, each as a [function, column, alias] triple */ aggregations?: Array; /** * Saved relative time range, such as 14d */ range?: string; /** * Saved start time (ISO 8601) */ start?: string; /** * Saved end time (ISO 8601) */ end?: string; /** * How the query results are ordered */ orderby?: string; /** * Maximum number of rows to return */ limit?: string; /** * Aggregate functions plotted on the chart */ yAxis?: Array; /** * Chart type for the saved query, such as default, top5, daily or bar */ display?: string; /** * Number of top events' time series to show */ topEvents?: number; /** * Resolution of the time series */ interval?: string; /** * Explore query this saved query was migrated to. Null when there's none */ exploreQuery?: { /** * Names of the environments the query filters by */ environment?: Array; /** * Queries shown in Explore */ query?: Array<{ /** * Fields shown in the samples table */ fields?: Array | null; /** * Field the samples are sorted by */ orderby?: string | null; /** * Fields the aggregates are grouped by */ groupby?: Array | null; /** * Search query that filters the results */ query?: string | null; /** * Charts shown for the query */ visualize?: Array<{ /** * Chart type used to plot the aggregates */ chartType?: number; /** * Transformations applied to the plotted series */ transformations?: Array; /** * Aggregates to plot */ yAxes: Array; }> | null; /** * Aggregates and group-by fields shown in aggregate mode */ aggregateField?: Array<{ /** * Chart type used to plot the aggregates */ chartType?: number; /** * Aggregates to plot */ yAxes?: Array; /** * Field to group the aggregates by */ groupBy?: string; /** * Transformations applied to the plotted series */ transformations?: Array; }> | null; /** * Field the aggregate results are sorted by */ aggregateOrderby?: string | null; /** * Metric the query reads, for metric queries */ metric?: { /** * Unit of the metric. Null when it has none */ unit?: string | null; /** * Name of the metric */ name: string; /** * Type of the metric */ type: 'counter' | 'gauge' | 'distribution'; } | null; /** * Whether the search query ignores letter case */ caseInsensitive?: boolean; /** * Whether the query shows samples or aggregates */ mode: 'samples' | 'aggregate'; }>; /** * Relative time range of the query, such as 14d */ statsPeriod?: string; /** * Start of the absolute time range (ISO 8601) */ start?: string; /** * End of the absolute time range (ISO 8601) */ end?: string; /** * Resolution of the time series */ interval?: string; /** * ID of the Explore query */ id: string; /** * Name of the Explore query */ name: string; /** * IDs of the projects the query covers */ projects: Array; /** * Dataset the query reads */ dataset: 'spans' | 'logs' | 'segment_spans' | 'metrics' | 'replays' | 'ai_conversations'; /** * Whether the query's time range is outside the retention period */ expired: boolean; /** * Whether Sentry provides the query */ isPrebuilt: boolean; /** * Parts of the Discover query dropped by the migration. Null when none were */ changedReason: { /** * Sort orders dropped when the query was migrated. Null when none were */ orderby: Array<{ [key: string]: string; }> | null; /** * Equations dropped when the query was migrated. Null when none were */ equations: Array<{ [key: string]: string | Array; }> | null; /** * Columns dropped when the query was migrated */ columns: Array; } | null; } | null; /** * When the requesting user last viewed the query (ISO 8601) */ lastVisited?: string | null; /** * Whether the requesting user starred the query */ starred?: boolean; /** * Position of the query in the requesting user's starred list. Null when it isn't starred */ position?: number | null; /** * ID of the saved query */ id: string; /** * Name of the saved query */ name: string; /** * IDs of the projects the query filters by. [-1] means all projects */ projects: Array; /** * Schema version of the saved query: 1 for the legacy shape, 2 for the current one */ version: number; /** * Dataset the query runs on, such as error-events or transaction-like */ queryDataset: string; /** * How the dataset was chosen: unknown, inferred, user or forced */ datasetSource: string; /** * Whether the saved time range is outside data retention */ expired: boolean; /** * When the saved query was created (ISO 8601) */ dateCreated: string; /** * When the saved query was last updated (ISO 8601) */ dateUpdated: string; /** * User who created the saved query */ createdBy: { /** * SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access */ identities?: Array<{ /** * SSO identity ID */ id: string; /** * User's identifier at the auth provider */ name: string; /** * Organization the auth provider belongs to */ organization: { /** * Organization slug */ slug: string; /** * Organization name */ name: string; }; /** * Auth provider of the identity */ provider: { /** * Auth provider key, such as google or saml2 */ id: string; /** * Display name of the auth provider */ name: string; }; /** * When the identity was last verified by signing in through the auth provider */ dateVerified: string; /** * When the identity was last synced from the auth provider */ dateSynced: string; }>; /** * User avatar */ avatar?: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Two-factor authenticators of the user, without backup methods such as recovery codes */ authenticators?: Array<{ /** * Authenticator ID */ id: string; /** * Authenticator type, such as totp, sms, u2f or recovery */ type: string; /** * Display name of the authenticator type */ name: string; /** * When the authenticator was added */ dateCreated: string; /** * When the authenticator was last used, or null */ dateUsed: string | null; }>; /** * Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization */ canReset2fa?: boolean; /** * User ID */ id: string; /** * Display name: the user's name, or their email or username if no name is set */ name: string; /** * Username */ username: string; /** * Primary email address */ email: string; /** * Gravatar URL for the primary email address */ avatarUrl: string; /** * Whether the account is active */ isActive: boolean; /** * Whether the account is suspended. Suspended users can't sign in */ isSuspended: boolean; /** * Whether the user has a password set */ hasPasswordAuth: boolean; /** * Whether the account is managed, which stops the user from changing their username, password and similar details */ isManaged: boolean; /** * When the account was created */ dateJoined: string; /** * When the user last signed in, or null */ lastLogin: string | null; /** * Whether the user has two-factor authentication enabled */ has2fa: boolean; /** * When the user was last active, or null */ lastActive: string | null; /** * Whether the user is a superuser */ isSuperuser: boolean; /** * Whether the user has staff status */ isStaff: boolean; /** * Deprecated. Always an empty object */ experiments: { [key: string]: string; }; /** * Email addresses of the user. Only included for the requesting user or superusers; empty otherwise */ emails: Array<{ /** * Email ID */ id: string; /** * Email address */ email: string; /** * Whether the email address is verified */ is_verified: boolean; }>; } | null; }; export type DsnLookupResponse = { /** * Slug of the organization */ organizationSlug: string; /** * Slug of the project the DSN belongs to */ projectSlug: string; /** * ID of the project the DSN belongs to */ projectId: string; /** * Name of the project the DSN belongs to */ projectName: string; /** * Platform of the project, if set */ projectPlatform: string | null; /** * Label of the client key */ keyLabel: string | null; /** * ID of the client key */ keyId: string; }; export type DynamicSamplingBias = { /** * * `boostEnvironments` * * `boostKeyTransactions` * * `boostLatestRelease` * * `boostLowVolumeTransactions` * * `boostReplayId` * * `ignoreHealthChecks` * * `minimumSampleRate` * * `recalibrationRule` */ id: 'boostEnvironments' | 'boostKeyTransactions' | 'boostLatestRelease' | 'boostLowVolumeTransactions' | 'boostReplayId' | 'ignoreHealthChecks' | 'minimumSampleRate' | 'recalibrationRule'; active?: boolean; }; /** * Configures multiple options for the Javascript Loader Script. * - `Performance Monitoring` * - `Debug Bundles & Logging` * - `Session Replay` - Note that the loader will load the ES6 bundle instead of the ES5 bundle. * - `User Feedback` - Note that the loader will load the ES6 bundle instead of the ES5 bundle. * - `Logs and Metrics` - Note that the loader will load the ES6 bundle instead of the ES5 bundle. Requires SDK >= 10.0.0. * ```json * { * "dynamicSdkLoaderOptions": { * "hasReplay": true, * "hasPerformance": true, * "hasDebug": true, * "hasFeedback": true, * "hasLogsAndMetrics": true * } * } * ``` */ export type DynamicSdkLoaderOption = { hasReplay?: boolean; hasPerformance?: boolean; hasDebug?: boolean; hasFeedback?: boolean; hasLogsAndMetrics?: boolean; }; export type Environment = { /** * Specify `true` to make the environment visible or `false` to make the environment hidden. */ isHidden: boolean; }; export type EnvironmentProject = { /** * ID of the environment */ id: string; /** * Name of the environment */ name: string; /** * Whether the environment is hidden in the project */ isHidden: boolean; }; export type EventAttachmentDetailsResponse = { /** * ID of the attachment */ id: string; /** * ID of the event the attachment belongs to */ event_id: string; /** * Type of the attachment, such as event.attachment or event.minidump */ type: string; /** * File name of the attachment */ name: string; /** * MIME type of the attachment */ mimetype: string | null; /** * When the attachment was stored (ISO 8601) */ dateCreated: string; /** * Size of the attachment in bytes */ size: number; /** * Legacy field. Only contains Content-Type, which matches mimetype */ headers: { [key: string]: string | null; }; /** * Legacy field, always null */ sha1: string | null; }; export type EventIdLookupResponse = { /** * Slug of the organization */ organizationSlug: string; /** * Slug of the event's project */ projectSlug: string; /** * ID of the event's issue */ groupId: string; /** * ID of the event */ eventId: string; /** * The event */ event: { /** * ID of the event */ id: string; /** * ID of the issue the event belongs to */ groupID: string | null; /** * ID of the event */ eventID: string; /** * ID of the project the event belongs to */ projectID: string; /** * Event message */ message: string | null; /** * Event title */ title: string; /** * Source location of the event, such as a file and line */ location: string | null; /** * Platform of the event, such as python or javascript */ platform: string | null; /** * When Sentry received the event (ISO 8601) */ dateReceived: string | null; /** * Size of the event payload in bytes */ size: number | null; /** * Event interfaces, such as exception, breadcrumbs and request, each with a type and data */ entries: Array; /** * Distribution of the release the event was sent with */ dist: string | null; /** * Modules loaded when the event occurred, keyed by module name with their versions */ packages: { [key: string]: string | null; }; /** * Event type, such as error, default or transaction */ type: 'default' | 'error' | 'csp' | 'nel' | 'hpkp' | 'expectct' | 'expectstaple' | 'transaction' | 'generic' | 'feedback'; /** * Event metadata */ metadata: { /** * Title of default and issue platform events */ title?: string; /** * Exception value, or the subtitle of an issue */ value?: string; /** * Exception type of error events */ type?: string; /** * Whether the SDK fabricated the exception to carry a stacktrace, so its type is a platform label rather than what went wrong */ synthetic?: boolean; /** * File of the frame where the error happened */ filename?: string; /** * Function of the frame where the error happened */ function?: string; /** * Message of default, security and feedback events */ message?: string; /** * URI that a CSP report blocked */ uri?: string; /** * CSP directive that was violated */ directive?: string; /** * Host name of HPKP, Expect-CT and Expect-Staple reports */ origin?: string; /** * Name of the person who sent user feedback */ name?: string; /** * Email of the person who sent user feedback */ contact_email?: string; /** * Where user feedback came from, such as a widget */ source?: string; /** * Whether the stacktrace has in-app frames, system frames or both */ in_app_frame_mix?: string; /** * Whether a crash report was dropped because the issue already stores the most allowed */ stripped_crash?: boolean; /** * SDK of the issue's first event */ sdk?: { /** * Name of the SDK, or unknown */ name: string; /** * Name of the SDK, normalized for grouping */ name_normalized: string; }; /** * Severity score of the issue's first event */ severity?: number; /** * Why the severity score is what it is */ severity_reason?: string; /** * Priority the issue was created with */ initial_priority?: number; }; /** * Issue occurrence data for events in non-error issues, such as performance issues. Null otherwise */ occurrence: { /** * ID of the occurrence */ id: string; /** * ID of the project */ projectId: number; /** * ID of the event the occurrence belongs to */ eventId: string; /** * Fingerprint that groups the occurrence into an issue */ fingerprint: Array; /** * Title of the issue */ issueTitle: string; /** * Subtitle of the issue */ subtitle: string; /** * ID of the resource the occurrence is about, such as a monitor. Null when not set */ resourceId: string | null; /** * Evidence to show on the issue */ evidenceDisplay: Array<{ /** * Name of the evidence */ name: string; /** * Value of the evidence */ value: string; /** * Whether to show the evidence first. At most one evidence of an occurrence is important */ important: boolean; }>; /** * When the problem was detected, as a Unix timestamp in seconds */ detectionTime: number; /** * Level of the occurrence, such as error or warning */ level: string | null; /** * Culprit of the occurrence */ culprit: string | null; /** * Actor the issue is assigned to, such as user:1 or team:1 */ assignee: string | null; /** * Initial priority of the issue: 25 low, 50 medium or 75 high */ priority: number | null; /** * Group type ID of metric issues, always 8001 */ type: 8001; /** * Detector and query that created the occurrence */ evidenceData: { /** * ID of the detector that created the occurrence */ detectorId: number; /** * ID of the metric alert rule the detector replaces. Null when there's none */ alertId: number | null; /** * Metric value that triggered the detector, or the anomaly detection result for dynamic detectors */ value: number | { /** * Metric value the anomaly detection model scored */ value: number; /** * ID of the data source that produced the value */ sourceId: string; /** * ID of the query subscription that produced the value */ subscriptionId: string; /** * When the value was measured */ timestamp: string; } | null; /** * ID of the query subscription that sent the data */ dataPacketSourceId: string; /** * Conditions of the detector */ conditions: Array<{ /** * ID of the detector condition */ id: number; /** * Type of the condition, such as gt, lt or anomaly_detection */ type: string; /** * Threshold the value is compared with, or the anomaly detection settings for an anomaly_detection condition */ comparison: number | { /** * How sensitive the anomaly detection is */ sensitivity: 'low' | 'medium' | 'high'; /** * Seasonality the anomaly detection model uses */ seasonality: 'auto' | 'hourly' | 'daily' | 'weekly' | 'hourly_daily' | 'hourly_weekly' | 'hourly_daily_weekly' | 'daily_weekly'; /** * Direction of anomalies to detect: 0 above, 1 below, 2 above and below */ thresholdType: 0 | 1 | 2; }; /** * Priority the detector reports when the condition matches: 0 ok, 25 low, 50 medium or 75 high */ conditionResult: number; }>; /** * Configuration of the detector */ config: { /** * How the detector evaluates the metric: static thresholds, percent change or dynamic anomaly detection */ detectionType: 'static' | 'percent' | 'dynamic'; /** * Time window in seconds that a percent change detector compares with */ comparisonDelta?: number | null; }; /** * Data sources of the detector */ dataSources: Array<{ /** * ID of the data source */ id: string; /** * ID of the organization */ organizationId: string; /** * Type of the data source, such as snuba_query_subscription */ type: string; /** * ID of the source object, such as the query subscription */ sourceId: string; /** * Query subscription the data source reads */ queryObj: { /** * ID of the query subscription */ id: string; /** * Status of the subscription: 0 active, 1 creating, 2 updating, 3 deleting or 4 disabled */ status: number; /** * ID of the subscription in Snuba. Null while it's being created */ subscription: string | null; /** * Query the subscription runs */ snubaQuery: { /** * ID of the query */ id: string; /** * Dataset the query runs on, such as events or events_analytics_platform */ dataset: string; /** * Search query that filters the data */ query: string; /** * Aggregate function the query computes, such as count() */ aggregate: string; /** * Time window of the query in seconds */ timeWindow: number; /** * Environment the query is limited to. Null for all environments */ environment: string | null; /** * Event types the query includes, such as error or transaction */ eventTypes: Array; /** * How sampled data is extrapolated, unknown, none, client_and_server_weighted or server_weighted. Null when not set */ extrapolationMode: string | null; }; }; }>; }; } | { /** * ID of the occurrence */ id: string; /** * ID of the project */ projectId: number; /** * ID of the event the occurrence belongs to */ eventId: string; /** * Fingerprint that groups the occurrence into an issue */ fingerprint: Array; /** * Title of the issue */ issueTitle: string; /** * Subtitle of the issue */ subtitle: string; /** * ID of the resource the occurrence is about, such as a monitor. Null when not set */ resourceId: string | null; /** * Evidence to show on the issue */ evidenceDisplay: Array<{ /** * Name of the evidence */ name: string; /** * Value of the evidence */ value: string; /** * Whether to show the evidence first. At most one evidence of an occurrence is important */ important: boolean; }>; /** * When the problem was detected, as a Unix timestamp in seconds */ detectionTime: number; /** * Level of the occurrence, such as error or warning */ level: string | null; /** * Culprit of the occurrence */ culprit: string | null; /** * Actor the issue is assigned to, such as user:1 or team:1 */ assignee: string | null; /** * Initial priority of the issue: 25 low, 50 medium or 75 high */ priority: number | null; /** * Group type ID of the occurrence */ type: number; /** * Data of the occurrence. Its keys depend on the group type */ evidenceData: { [key: string]: unknown; }; } | null; /** * Metadata about changes Sentry made to the event's fields, such as data scrubbing or trimming */ _meta: { [key: string]: unknown; }; /** * User context of the event */ user: { /** * ID the SDK sent for the user */ id?: string | null; /** * Email address of the user */ email?: string | null; /** * Username of the user */ username?: string | null; /** * IP address of the user */ ip_address?: string | null; /** * Name of the user */ name?: string | null; /** * Location of the user, with keys such as country_code, city and region */ geo?: { [key: string]: string; } | null; /** * Extra data the SDK sent about the user */ data?: { [key: string]: unknown; } | null; } | null; /** * Tags attached to the event */ tags: Array<{ /** * Search query that matches this tag's user, such as user.email:"user@example.com". Only set for user tags */ query?: string; /** * Tag key */ key: string; /** * Tag value */ value: string; }>; /** * Contexts of the event, such as device, os, browser and runtime, keyed by alias */ contexts: { [key: string]: { /** * Internal build ID as it appears on the platform. */ app_build?: string | null; /** * Version-independent application identifier, often a dotted bundle ID. */ app_identifier?: string | null; /** * Amount of memory used by the application in bytes. */ app_memory?: number | string | null; /** * Application name as it appears on the platform. */ app_name?: string | null; /** * Start time of the app. * * Formatted UTC timestamp when the user started the application. */ app_start_time?: string | null; /** * Application version as it appears on the platform. */ app_version?: string | null; /** * String identifying the kind of build. For example, `testflight`. */ build_type?: string | null; /** * Application-specific device identifier. */ device_app_hash?: string | null; /** * A flag indicating whether the app is in foreground or not. An app is in foreground when it's visible to the user. */ in_foreground?: boolean | null; /** * The names of the currently visible views. */ view_names?: Array | null; /** * Type of the context */ type: 'app'; [key: string]: unknown; } | { /** * Display name of the browser application. */ name?: string | null; /** * Version string of the browser. */ version?: string | null; /** * Type of the context */ type: 'browser'; [key: string]: unknown; } | { /** * Type of the context */ type: 'default'; [key: string]: unknown; } | { /** * Native cpu architecture of the device. */ arch?: string | null; /** * Current battery level in %. * * If the device has a battery, this can be a floating point value defining the battery level * (in the range 0-100). */ battery_level?: number | string | null; /** * Status of the device's battery. * * For example, `Unknown`, `Charging`, `Discharging`, `NotCharging`, `Full`. */ battery_status?: string | null; /** * Indicator when the device was booted. */ boot_time?: string | null; /** * Brand of the device. */ brand?: string | null; /** * Whether the device was charging or not. */ charging?: boolean | null; /** * CPU description. * * For example, Intel(R) Core(TM)2 Quad CPU Q6600 @ 2.40GHz. */ cpu_description?: string | null; /** * Kind of device the application is running on. * * For example, `Unknown`, `Handheld`, `Console`, `Desktop`. */ device_type?: string | null; /** * Unique device identifier. */ device_unique_identifier?: string | null; /** * Free size of the attached external storage in bytes (eg: android SDK card). */ external_free_storage?: number | string | null; /** * Total size of the attached external storage in bytes (eg: android SDK card). */ external_storage_size?: number | string | null; /** * Family of the device model. * * This is usually the common part of model names across generations. For instance, `iPhone` * would be a reasonable family, so would be `Samsung Galaxy`. */ family?: string | null; /** * How much memory is still available in bytes. */ free_memory?: number | string | null; /** * How much storage is free in bytes. */ free_storage?: number | string | null; /** * ISO 639-1 code of the locale the device is set to. */ locale?: string | null; /** * Whether the device was low on memory. */ low_memory?: boolean | null; /** * Manufacturer of the device. */ manufacturer?: string | null; /** * Total memory available in bytes. */ memory_size?: number | string | null; /** * Device model. * * This, for example, can be `Samsung Galaxy S3`. */ model?: string | null; /** * Device model (internal identifier). * * An internal hardware revision to identify the device exactly. */ model_id?: string | null; /** * Name of the device. */ name?: string | null; /** * Whether the device was online or not. */ online?: boolean | null; /** * Current screen orientation. * * This can be a string `portrait` or `landscape` to define the orientation of a device. */ orientation?: string | null; /** * Number of "logical processors". * * For example, 8. */ processor_count?: number | string | null; /** * Processor frequency in MHz. * * Note that the actual CPU frequency might vary depending on current load and * power conditions, especially on low-powered devices like phones and laptops. */ processor_frequency?: number | string | null; /** * Device screen density. */ screen_density?: number | string | null; /** * Screen density as dots-per-inch. */ screen_dpi?: number | string | null; /** * Height of the screen in pixels. */ screen_height_pixels?: number | string | null; /** * Device screen resolution. * * (e.g.: 800x600, 3040x1444) */ screen_resolution?: string | null; /** * Width of the screen in pixels. */ screen_width_pixels?: number | string | null; /** * Simulator/prod indicator. */ simulator?: boolean | null; /** * Total storage size of the device in bytes. */ storage_size?: number | string | null; /** * Whether the accelerometer is available on the device. */ supports_accelerometer?: boolean | null; /** * Whether audio is available on the device. */ supports_audio?: boolean | null; /** * Whether the gyroscope is available on the device. */ supports_gyroscope?: boolean | null; /** * Whether location support is available on the device. */ supports_location_service?: boolean | null; /** * Whether vibration is available on the device. */ supports_vibration?: boolean | null; /** * Timezone of the device. */ timezone?: string | null; /** * How much memory is usable for the app in bytes. */ usable_memory?: number | string | null; /** * UUID of the device. */ uuid?: string | null; /** * Type of the context */ type: 'device'; [key: string]: unknown; } | { /** * The device low-level API type. * * Examples: `"Apple Metal"` or `"Direct3D11"` */ api_type?: string | null; /** * Approximate "shader capability" level of the graphics device. * * For Example: Shader Model 2.0, OpenGL ES 3.0, Metal / OpenGL ES 3.1, 27 (unknown) */ graphics_shader_level?: string | null; /** * The PCI identifier of the graphics device. */ id?: number | string; /** * Largest size of a texture that is supported by the graphics hardware. * * For Example: 16384 */ max_texture_size?: number | string | null; /** * The total GPU memory available in Megabytes. */ memory_size?: number | string | null; /** * Whether the GPU has multi-threaded rendering or not. */ multi_threaded_rendering?: boolean | null; /** * The name of the graphics device. */ name?: string | null; /** * The Non-Power-Of-Two support. */ npot_support?: string | null; /** * Whether compute shaders are available on the device. */ supports_compute_shaders?: boolean | null; /** * Whether GPU draw call instancing is supported. */ supports_draw_call_instancing?: boolean | null; /** * Whether geometry shaders are available on the device. */ supports_geometry_shaders?: boolean | null; /** * Whether ray tracing is available on the device. */ supports_ray_tracing?: boolean | null; /** * The PCI vendor identifier of the graphics device. */ vendor_id?: string | null; /** * The vendor name as reported by the graphics device. */ vendor_name?: string | null; /** * The Version of the graphics device. */ version?: string | null; /** * Type of the context */ type: 'gpu'; [key: string]: unknown; } | { /** * Type of the context */ type: 'monitor'; [key: string]: unknown; } | { /** * Internal build number of the operating system. */ build?: string | null; /** * Current kernel version. * * This is typically the entire output of the `uname` syscall. */ kernel_version?: string | null; /** * Name of the operating system. */ name?: string | null; /** * Unprocessed operating system info. * * An unprocessed description string obtained by the operating system. For some well-known * runtimes, Sentry will attempt to parse `name` and `version` from this string, if they are * not explicitly given. */ raw_description?: string | null; /** * Indicator if the OS is rooted (mobile mostly). */ rooted?: boolean | null; /** * Version of the operating system. */ version?: string | null; /** * Type of the context */ type: 'os'; [key: string]: unknown; } | { /** * Attributes of the OpenTelemetry span that maps to a Sentry event. * * */ attributes?: { [key: string]: string | boolean | number | number | Array; } | null; /** * Information about an OpenTelemetry resource. * * */ resource?: { [key: string]: string | boolean | number | number | Array; } | null; /** * Type of the context */ type: 'otel'; [key: string]: unknown; } | { /** * Application build string, if it is separate from the version. */ build?: string | null; /** * Runtime name. */ name?: string | null; /** * Unprocessed runtime info. * * An unprocessed description string obtained by the runtime. For some well-known runtimes, * Sentry will attempt to parse `name` and `version` from this string, if they are not * explicitly given. */ raw_description?: string | null; /** * Runtime version string. */ version?: string | null; /** * Type of the context */ type: 'runtime'; [key: string]: unknown; } | { /** * The client-side sample rate as reported in the envelope's `trace.sample_rate` header. * * The server takes this field from envelope headers and writes it back into the event. Clients * should not ever send this value. */ client_sample_rate?: number | string | null; /** * The amount of time in milliseconds spent in this transaction span, * excluding its immediate child spans. */ exclusive_time?: number | string | null; /** * Span type (see `OperationType` docs). */ op?: string | null; /** * The origin of the trace indicates what created the trace (see [OriginType] docs). */ origin?: string | null; /** * The ID of the span enclosing this span. */ parent_span_id?: string | null; /** * Track whether the trace connected to this event has been sampled entirely. * * This flag only applies to events with [`Error`] type that have an associated dynamic sampling context. */ sampled?: boolean | null; /** * The ID of the span. */ span_id?: string | null; /** * Whether the trace failed or succeeded. Currently only used to indicate status of individual * transactions. */ status?: 'ok' | 'cancelled' | 'unknown' | 'invalid_argument' | 'deadline_exceeded' | 'not_found' | 'already_exists' | 'permission_denied' | 'resource_exhausted' | 'failed_precondition' | 'aborted' | 'out_of_range' | 'unimplemented' | 'internal_error' | 'unavailable' | 'data_loss' | 'unauthenticated' | null; /** * The trace ID. */ trace_id?: string | null; /** * Type of the context */ type: 'trace'; [key: string]: unknown; } | { /** * Type of the context */ type: 'unity'; [key: string]: unknown; }; } | null; /** * SDK that sent the event */ sdk: { /** * Name of the SDK that sent the event, such as sentry.python */ name: string | null; /** * Version of the SDK */ version: string | null; } | null; /** * Additional data sent with the event in its extra field */ context: { [key: string]: unknown; } | null; /** * Errors Sentry found while processing the event */ errors: Array<{ /** * Type of the processing error, such as invalid_data or js_no_source */ type: string; /** * Human-readable message of the error */ message: string; /** * Details of the error, such as the name of the invalid field. Other keys depend on the error type */ data: { /** * Affected key or path in the event */ name?: string | null; /** * Details of the error from the processor that hit it */ message?: string; /** * URL that couldn't be fetched, such as a source file */ url?: string; /** * Path of the debug image the error is about */ image_path?: string; /** * Name of the debug image the error is about */ image_name?: string; /** * Debug ID of the image the error is about */ image_uuid?: string; /** * CPU architecture of the image the error is about */ image_arch?: string; /** * Error type Symbolicator reported, such as missing_source */ symbolicator_type?: string; /** * Source file or URL the error is about */ source?: string; /** * Source map the error is about */ sourcemap?: string; /** * Line of the location that couldn't be mapped */ row?: number; /** * Column of the location that couldn't be mapped */ column?: number; /** * Time the SDK reported, for clock drift errors */ sdk_time?: string; /** * Time the server received the event, for clock drift errors */ server_time?: string; }; }>; /** * Crash report attachment of the event, if any */ crashFile?: string | null; /** * Function or module that caused the event */ culprit?: string | null; /** * When the event occurred (ISO 8601) */ dateCreated?: string; /** * Grouping hashes calculated for the event */ fingerprints?: Array; /** * Grouping configuration used to group the event */ groupingConfig?: { /** * ID of the grouping config, such as newstyle:2026-01-20 */ id: string; /** * Stack trace rules of the project, as an encoded string */ enhancements: string; }; /** * When the transaction started, as a Unix timestamp in seconds */ startTimestamp?: number; /** * When the transaction ended, as a Unix timestamp in seconds */ endTimestamp?: number; /** * Measurements recorded for the transaction, such as web vitals, keyed by name */ measurements?: { [key: string]: { /** * Measurement value */ value: number; /** * Unit of the measurement, such as millisecond */ unit?: string | null; }; } | null; /** * Span operation breakdowns for the transaction, keyed by breakdown name */ breakdowns?: { [key: string]: { [key: string]: { /** * Measurement value */ value: number; /** * Unit of the measurement, such as millisecond */ unit?: string | null; }; }; } | null; }; }; export type ExploreSavedQuery = { /** * The user-defined saved query name. */ name: string; /** * The Explore query definitions to save. */ query: Array<{ /** * The fields that can be requested for the query. */ fields?: Array | null; /** * How to order the query results. Must be something in the `field` list. */ orderby?: string | null; /** * Columns to group results by. */ groupby?: Array | null; /** * Filters results by using [query syntax](/product/sentry-basics/search/). */ query?: string | null; /** * The visualizations to be plotted on the chart. */ visualize?: Array<{ chartType?: number; yAxes: Array; /** * Ordered fill(...) and smooth(...) expressions. Use an empty list to clear the pipeline. */ transformations?: Array; }> | null; /** * The visualizations to be plotted on the chart. */ aggregateField?: Array<{ chartType?: number; yAxes?: Array; /** * Ordered fill(...) and smooth(...) expressions. Use an empty list to clear the pipeline. */ transformations?: Array; groupBy?: string; }> | null; /** * How to order the query results. Must be something in the `aggregateField` list, excluding equations. */ aggregateOrderby?: string | null; /** * The mode of the query. * * * `samples` * * `aggregate` */ mode: 'samples' | 'aggregate'; /** * The metric configuration (only used for metrics dataset). */ metric?: { /** * The name of the metric. */ name: string; /** * The type of the metric. * * * `counter` * * `gauge` * * `distribution` */ type: 'counter' | 'gauge' | 'distribution'; /** * The unit of the metric (e.g., 'millisecond'). See MetricUnit in relay */ unit?: string | null; } | null; /** * Whether the query should be case insensitive. */ caseInsensitive?: boolean; }>; /** * The saved projects filter for this query. */ projects?: Array; /** * The dataset you would like to query. Supported values: `spans`, `logs`, `metrics`, `replays`, `ai_conversations`. * * * `spans` * * `logs` * * `segment_spans` * * `metrics` * * `replays` * * `ai_conversations` */ dataset?: 'spans' | 'logs' | 'segment_spans' | 'metrics' | 'replays' | 'ai_conversations'; /** * The saved start time for this saved query. */ start?: string | null; /** * The saved end time for this saved query. */ end?: string | null; /** * The saved time range period for this saved query. */ statsPeriod?: string | null; /** * The name of environments to filter by. */ environment?: Array | null; /** * Resolution of the time series. */ interval?: string | null; /** * Optional cross-event queries across event types. Max 2 entries. */ crossEvents?: Array<{ /** * The search query for this cross-event entry. */ query: string; /** * The event type this cross-event query targets. * * * `spans` * * `logs` * * `metrics` */ type: 'spans' | 'logs' | 'metrics'; /** * The metric configuration (only used when type is metrics). */ metric?: { /** * The name of the metric. */ name: string; /** * The type of the metric. * * * `counter` * * `gauge` * * `distribution` */ type: 'counter' | 'gauge' | 'distribution'; /** * The unit of the metric (e.g., 'millisecond'). See MetricUnit in relay */ unit?: string | null; } | null; }> | null; /** * Agent names to filter conversations by. */ agent?: Array | null; /** * Whether to only show conversations with errors. */ errorsOnly?: boolean | null; /** * The query priority. Supported values: `normal`, `faster`. * * * `normal` * * `faster` */ queryPriority?: 'normal' | 'faster' | null; }; export type ExploreSavedQueryListResponse = Array<{ /** * Saved environment filter */ environment?: Array; /** * Searches, fields and charts saved in the query */ query?: Array<{ /** * Fields shown in the samples table */ fields?: Array | null; /** * Field the samples are sorted by */ orderby?: string | null; /** * Fields the aggregates are grouped by */ groupby?: Array | null; /** * Search query that filters the results */ query?: string | null; /** * Charts shown for the query */ visualize?: Array<{ /** * Chart type used to plot the aggregates */ chartType?: number; /** * Transformations applied to the plotted series */ transformations?: Array; /** * Aggregates to plot */ yAxes: Array; }> | null; /** * Aggregates and group-by fields shown in aggregate mode */ aggregateField?: Array<{ /** * Chart type used to plot the aggregates */ chartType?: number; /** * Aggregates to plot */ yAxes?: Array; /** * Field to group the aggregates by */ groupBy?: string; /** * Transformations applied to the plotted series */ transformations?: Array; }> | null; /** * Field the aggregate results are sorted by */ aggregateOrderby?: string | null; /** * Metric the query reads, for metric queries */ metric?: { /** * Unit of the metric. Null when it has none */ unit?: string | null; /** * Name of the metric */ name: string; /** * Type of the metric */ type: 'counter' | 'gauge' | 'distribution'; } | null; /** * Whether the search query ignores letter case */ caseInsensitive?: boolean; /** * Whether the query shows samples or aggregates */ mode: 'samples' | 'aggregate'; }>; /** * Saved relative time range, such as `24h` */ statsPeriod?: string; /** * Saved absolute start time (ISO 8601) */ start?: string; /** * Saved absolute end time (ISO 8601) */ end?: string; /** * Saved resolution of the time series */ interval?: string; /** * Saved queries across other event types */ crossEvents?: Array<{ /** * Metric the cross-event query reads, for metric queries */ metric?: { /** * Unit of the metric. Null when it has none */ unit?: string | null; /** * Name of the metric */ name: string; /** * Type of the metric */ type: 'counter' | 'gauge' | 'distribution'; } | null; /** * Search query of the cross-event query */ query: string; /** * Event type the cross-event query targets */ type: 'spans' | 'logs' | 'metrics'; }>; /** * Agent names that filter AI conversations */ agent?: Array; /** * Whether only AI conversations with errors are shown */ errorsOnly?: boolean; /** * ID of the saved query */ id: string; /** * Name of the saved query */ name: string; /** * IDs of the projects the query filters by. `[-1]` means all projects */ projects: Array; /** * Dataset the query reads */ dataset: 'spans' | 'logs' | 'segment_spans' | 'metrics' | 'replays' | 'ai_conversations'; /** * Whether the saved start time is outside the data retention period */ expired: boolean; /** * When the query was created (ISO 8601) */ dateAdded: string; /** * When the query was last edited (ISO 8601) */ dateUpdated: string; /** * When the requesting user last opened the query. Null when they haven't */ lastVisited: string | null; /** * User who created the query. Null when a token created it or the user is gone */ createdBy: { /** * SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access */ identities?: Array<{ /** * SSO identity ID */ id: string; /** * User's identifier at the auth provider */ name: string; /** * Organization the auth provider belongs to */ organization: { /** * Organization slug */ slug: string; /** * Organization name */ name: string; }; /** * Auth provider of the identity */ provider: { /** * Auth provider key, such as google or saml2 */ id: string; /** * Display name of the auth provider */ name: string; }; /** * When the identity was last verified by signing in through the auth provider */ dateVerified: string; /** * When the identity was last synced from the auth provider */ dateSynced: string; }>; /** * User avatar */ avatar?: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Two-factor authenticators of the user, without backup methods such as recovery codes */ authenticators?: Array<{ /** * Authenticator ID */ id: string; /** * Authenticator type, such as totp, sms, u2f or recovery */ type: string; /** * Display name of the authenticator type */ name: string; /** * When the authenticator was added */ dateCreated: string; /** * When the authenticator was last used, or null */ dateUsed: string | null; }>; /** * Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization */ canReset2fa?: boolean; /** * User ID */ id: string; /** * Display name: the user's name, or their email or username if no name is set */ name: string; /** * Username */ username: string; /** * Primary email address */ email: string; /** * Gravatar URL for the primary email address */ avatarUrl: string; /** * Whether the account is active */ isActive: boolean; /** * Whether the account is suspended. Suspended users can't sign in */ isSuspended: boolean; /** * Whether the user has a password set */ hasPasswordAuth: boolean; /** * Whether the account is managed, which stops the user from changing their username, password and similar details */ isManaged: boolean; /** * When the account was created */ dateJoined: string; /** * When the user last signed in, or null */ lastLogin: string | null; /** * Whether the user has two-factor authentication enabled */ has2fa: boolean; /** * When the user was last active, or null */ lastActive: string | null; /** * Whether the user is a superuser */ isSuperuser: boolean; /** * Whether the user has staff status */ isStaff: boolean; /** * Deprecated. Always an empty object */ experiments: { [key: string]: string; }; /** * Email addresses of the user. Only included for the requesting user or superusers; empty otherwise */ emails: Array<{ /** * Email ID */ id: string; /** * Email address */ email: string; /** * Whether the email address is verified */ is_verified: boolean; }>; } | null; /** * Whether the requesting user starred the query */ starred: boolean; /** * Position in the requesting user's starred list. Null when not starred */ position: number | null; /** * Whether Sentry provides the query */ isPrebuilt: boolean; /** * What was dropped when the query was migrated from Discover. Null when it wasn't migrated */ changedReason: { /** * Sort orders dropped when the query was migrated. Null when none were */ orderby: Array<{ [key: string]: string; }> | null; /** * Equations dropped when the query was migrated. Null when none were */ equations: Array<{ [key: string]: string | Array; }> | null; /** * Columns dropped when the query was migrated */ columns: Array; } | null; /** * Whether to run the query faster but at lower accuracy or a balance of accuracy and speed */ queryPriority: string; }>; export type ExploreSavedQueryModel = { /** * Saved environment filter */ environment?: Array; /** * Searches, fields and charts saved in the query */ query?: Array<{ /** * Fields shown in the samples table */ fields?: Array | null; /** * Field the samples are sorted by */ orderby?: string | null; /** * Fields the aggregates are grouped by */ groupby?: Array | null; /** * Search query that filters the results */ query?: string | null; /** * Charts shown for the query */ visualize?: Array<{ /** * Chart type used to plot the aggregates */ chartType?: number; /** * Transformations applied to the plotted series */ transformations?: Array; /** * Aggregates to plot */ yAxes: Array; }> | null; /** * Aggregates and group-by fields shown in aggregate mode */ aggregateField?: Array<{ /** * Chart type used to plot the aggregates */ chartType?: number; /** * Aggregates to plot */ yAxes?: Array; /** * Field to group the aggregates by */ groupBy?: string; /** * Transformations applied to the plotted series */ transformations?: Array; }> | null; /** * Field the aggregate results are sorted by */ aggregateOrderby?: string | null; /** * Metric the query reads, for metric queries */ metric?: { /** * Unit of the metric. Null when it has none */ unit?: string | null; /** * Name of the metric */ name: string; /** * Type of the metric */ type: 'counter' | 'gauge' | 'distribution'; } | null; /** * Whether the search query ignores letter case */ caseInsensitive?: boolean; /** * Whether the query shows samples or aggregates */ mode: 'samples' | 'aggregate'; }>; /** * Saved relative time range, such as `24h` */ statsPeriod?: string; /** * Saved absolute start time (ISO 8601) */ start?: string; /** * Saved absolute end time (ISO 8601) */ end?: string; /** * Saved resolution of the time series */ interval?: string; /** * Saved queries across other event types */ crossEvents?: Array<{ /** * Metric the cross-event query reads, for metric queries */ metric?: { /** * Unit of the metric. Null when it has none */ unit?: string | null; /** * Name of the metric */ name: string; /** * Type of the metric */ type: 'counter' | 'gauge' | 'distribution'; } | null; /** * Search query of the cross-event query */ query: string; /** * Event type the cross-event query targets */ type: 'spans' | 'logs' | 'metrics'; }>; /** * Agent names that filter AI conversations */ agent?: Array; /** * Whether only AI conversations with errors are shown */ errorsOnly?: boolean; /** * ID of the saved query */ id: string; /** * Name of the saved query */ name: string; /** * IDs of the projects the query filters by. `[-1]` means all projects */ projects: Array; /** * Dataset the query reads */ dataset: 'spans' | 'logs' | 'segment_spans' | 'metrics' | 'replays' | 'ai_conversations'; /** * Whether the saved start time is outside the data retention period */ expired: boolean; /** * When the query was created (ISO 8601) */ dateAdded: string; /** * When the query was last edited (ISO 8601) */ dateUpdated: string; /** * When the requesting user last opened the query. Null when they haven't */ lastVisited: string | null; /** * User who created the query. Null when a token created it or the user is gone */ createdBy: { /** * SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access */ identities?: Array<{ /** * SSO identity ID */ id: string; /** * User's identifier at the auth provider */ name: string; /** * Organization the auth provider belongs to */ organization: { /** * Organization slug */ slug: string; /** * Organization name */ name: string; }; /** * Auth provider of the identity */ provider: { /** * Auth provider key, such as google or saml2 */ id: string; /** * Display name of the auth provider */ name: string; }; /** * When the identity was last verified by signing in through the auth provider */ dateVerified: string; /** * When the identity was last synced from the auth provider */ dateSynced: string; }>; /** * User avatar */ avatar?: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Two-factor authenticators of the user, without backup methods such as recovery codes */ authenticators?: Array<{ /** * Authenticator ID */ id: string; /** * Authenticator type, such as totp, sms, u2f or recovery */ type: string; /** * Display name of the authenticator type */ name: string; /** * When the authenticator was added */ dateCreated: string; /** * When the authenticator was last used, or null */ dateUsed: string | null; }>; /** * Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization */ canReset2fa?: boolean; /** * User ID */ id: string; /** * Display name: the user's name, or their email or username if no name is set */ name: string; /** * Username */ username: string; /** * Primary email address */ email: string; /** * Gravatar URL for the primary email address */ avatarUrl: string; /** * Whether the account is active */ isActive: boolean; /** * Whether the account is suspended. Suspended users can't sign in */ isSuspended: boolean; /** * Whether the user has a password set */ hasPasswordAuth: boolean; /** * Whether the account is managed, which stops the user from changing their username, password and similar details */ isManaged: boolean; /** * When the account was created */ dateJoined: string; /** * When the user last signed in, or null */ lastLogin: string | null; /** * Whether the user has two-factor authentication enabled */ has2fa: boolean; /** * When the user was last active, or null */ lastActive: string | null; /** * Whether the user is a superuser */ isSuperuser: boolean; /** * Whether the user has staff status */ isStaff: boolean; /** * Deprecated. Always an empty object */ experiments: { [key: string]: string; }; /** * Email addresses of the user. Only included for the requesting user or superusers; empty otherwise */ emails: Array<{ /** * Email ID */ id: string; /** * Email address */ email: string; /** * Whether the email address is verified */ is_verified: boolean; }>; } | null; /** * Whether the requesting user starred the query */ starred: boolean; /** * Position in the requesting user's starred list. Null when not starred */ position: number | null; /** * Whether Sentry provides the query */ isPrebuilt: boolean; /** * What was dropped when the query was migrated from Discover. Null when it wasn't migrated */ changedReason: { /** * Sort orders dropped when the query was migrated. Null when none were */ orderby: Array<{ [key: string]: string; }> | null; /** * Equations dropped when the query was migrated. Null when none were */ equations: Array<{ [key: string]: string | Array; }> | null; /** * Columns dropped when the query was migrated */ columns: Array; } | null; /** * Whether to run the query faster but at lower accuracy or a balance of accuracy and speed */ queryPriority: string; }; /** * Serializer for the agent-based autofix requests. */ export type ExplorerAutofixRequest = { /** * Which autofix step to run. * * * `root_cause` * * `solution` * * `code_changes` * * `pr_iteration` * * `open_pr` * * `coding_agent_handoff` */ step?: 'root_cause' | 'solution' | 'code_changes' | 'pr_iteration' | 'open_pr' | 'coding_agent_handoff'; /** * Where the issue fix process should stop. If not provided, will run to root cause. * * * `root_cause` * * `solution` * * `code_changes` * * `open_pr` */ stopping_point?: 'root_cause' | 'solution' | 'code_changes' | 'open_pr'; /** * **Deprecated** in favor of sentry_run_id; retained for backward compatibility. The existing run's numeric Seer id to continue. If neither run_id nor sentry_run_id is provided, starts a new run. */ run_id?: number; /** * Existing run's UUID to continue. Preferred over run_id, and takes precedence when both are given. */ sentry_run_id?: string; /** * Coding agent integration ID. Required for coding_agent_handoff step (unless provider is specified). */ integration_id?: number; /** * Coding agent provider (e.g., 'github_copilot'). Alternative to integration_id for user-authenticated providers. */ provider?: string; /** * Optional user context to append to the step prompt. */ user_context?: string; /** * Optional repository name for which to create the pull request. Do not pass a repository name to create pull requests in all relevant repositories. */ repo_name?: string; /** * Block index to insert at. When provided, truncates blocks after this point for retry-from-step. */ insert_index?: number; /** * Referrer identifying where the issue fix was triggered from. */ referrer?: string; }; export type ExternalActor = { /** * ID of the user or team in the provider */ externalId?: string; /** * ID of the Sentry user. Only set for user mappings */ userId?: string; /** * ID of the Sentry team. Only set for team mappings */ teamId?: string; /** * ID of the external actor mapping */ id: string; /** * Provider of the external actor, such as github or slack */ provider: string; /** * Name of the user or team in the provider, such as @octocat */ externalName: string; /** * ID of the integration the mapping belongs to */ integrationId: string; }; export type ExternalIssueLinkResponse = { /** * ID of the link between the issue and the external issue */ id: number; /** * Key of the external issue in the provider, such as PROJ-123 */ key: string; /** * URL of the external issue */ url: string; /** * ID of the integration */ integrationId: number; /** * Name to show for the external issue, such as owner/repo#1. Empty when the integration doesn't set one */ displayName: string; }; /** * Allows parameters to be defined in snake case, but passed as camel case. * * Errors are output in camel case. */ export type ExternalTeam = { /** * ID of the Sentry team to link to the external team. */ team_id: number; /** * The associated name for the provider. */ external_name: string; /** * The provider of the external actor. * * * `github` * * `github_enterprise` * * `jira_server` * * `slack` * * `slack_staging` * * `perforce` * * `gitlab` * * `cursor_origin` * * `msteams` * * `custom_scm` */ provider: 'github' | 'github_enterprise' | 'jira_server' | 'slack' | 'slack_staging' | 'perforce' | 'gitlab' | 'cursor_origin' | 'msteams' | 'custom_scm'; /** * The Integration ID. */ integration_id: number; /** * The associated user ID for provider. */ external_id?: string | null; }; /** * Allows parameters to be defined in snake case, but passed as camel case. * * Errors are output in camel case. */ export type ExternalUser = { /** * The user ID in Sentry. */ user_id: number; /** * The associated name for the provider. */ external_name: string; /** * The provider of the external actor. * * * `github` * * `github_enterprise` * * `jira_server` * * `slack` * * `slack_staging` * * `perforce` * * `gitlab` * * `cursor_origin` * * `msteams` * * `custom_scm` */ provider: 'github' | 'github_enterprise' | 'jira_server' | 'slack' | 'slack_staging' | 'perforce' | 'gitlab' | 'cursor_origin' | 'msteams' | 'custom_scm'; /** * The Integration ID. */ integration_id: number; /** * The external actor ID. */ readonly id: number; /** * The associated user ID for provider. */ external_id?: string | null; }; /** * Filter settings for the source. This is optional for all sources. * * **`filetypes`** ***(list)*** - A list of file types that can be found on this source. If this is left empty, all file types will be enabled. The options are: * - `pe` - Windows executable files * - `pdb` - Windows debug files * - `portablepdb` - .NET portable debug files * - `mach_code` - MacOS executable files * - `mach_debug` - MacOS debug files * - `elf_code` - ELF executable files * - `elf_debug` - ELF debug files * - `wasm_code` - WASM executable files * - `wasm_debug` - WASM debug files * - `breakpad` - Breakpad symbol files * - `sourcebundle` - Source code bundles * - `uuidmap` - Apple UUID mapping files * - `bcsymbolmap` - Apple bitcode symbol maps * - `il2cpp` - Unity IL2CPP mapping files * - `proguard` - ProGuard mapping files * * **`path_patterns`** ***(list)*** - A list of glob patterns to check against the debug and code file paths of debug files. Only files that match one of these patterns will be requested from the source. If this is left empty, no path-based filtering takes place. * * **`requires_checksum`** ***(boolean)*** - Whether this source requires a debug checksum to be sent with each request. Defaults to `false`. * * ```json * { * "filters": { * "filetypes": ["pe", "pdb", "portablepdb"], * "path_patterns": ["*ffmpeg*"] * } * } * ``` */ export type Filters = { /** * The file types enabled for the source. */ filetypes?: Array<'pe' | 'pdb' | 'portablepdb' | 'mach_debug' | 'mach_code' | 'elf_debug' | 'elf_code' | 'wasm_debug' | 'wasm_code' | 'breakpad' | 'sourcebundle' | 'uuidmap' | 'bcsymbolmap' | 'il2cpp' | 'proguard' | 'dartsymbolmap'>; /** * The debug and code file paths enabled for the source. */ path_patterns?: Array; /** * Whether the source requires debug checksums. */ requires_checksum?: boolean; }; export type GetFlagLogResponse = { /** * The audit log entry */ data: { /** * ID of the audit log entry */ id: number; /** * What happened to the flag: created, deleted or updated */ action: 'created' | 'deleted' | 'updated'; /** * When the change happened (ISO 8601) */ createdAt: string; /** * Who made the change, such as an email address */ createdBy: string | null; /** * Kind of value in createdBy: email, id or name */ createdByType: 'email' | 'id' | 'name' | null; /** * Name of the flag */ flag: string; /** * Feature flag provider that sent the change: generic, flagpole, launchdarkly, unleash or statsig */ provider: 'generic' | 'flagpole' | 'launchdarkly' | 'unleash' | 'statsig' | null; /** * Tags of the change, such as the environment */ tags: { [key: string]: unknown; }; }; }; export type GetReplay = { /** * The replay */ data: { /** * Replay ID */ id?: string; /** * ID of the project the replay belongs to */ project_id?: string; /** * IDs of traces linked to the replay */ trace_ids?: Array; /** * IDs of errors linked to the replay */ error_ids?: Array; /** * Environment of the replay */ environment?: string | null; /** * Replay tags */ tags?: { [key: string]: Array; } | Array; /** * User metadata */ user?: { /** * ID of the user */ id?: string | null; /** * Username of the user */ username?: string | null; /** * Email address of the user */ email?: string | null; /** * IP address of the user */ ip?: string | null; /** * Name to display for the user: the username, email, ID or IP address, whichever is set first */ display_name?: string | null; /** * Geographic location of the user */ geo?: { /** * City of the user */ city?: string | null; /** * Country code of the user */ country_code?: string | null; /** * Region of the user */ region?: string | null; /** * Subdivision of the user's country, such as a state or province */ subdivision?: string | null; }; }; /** * SDK metadata */ sdk?: { /** * Name of the SDK that recorded the replay */ name?: string | null; /** * Version of the SDK that recorded the replay */ version?: string | null; }; /** * Operating system metadata */ os?: { /** * Name of the operating system */ name?: string | null; /** * Version of the operating system */ version?: string | null; }; /** * Browser metadata */ browser?: { /** * Name of the browser */ name?: string | null; /** * Version of the browser */ version?: string | null; }; /** * Device metadata */ device?: { /** * Name of the device */ name?: string | null; /** * Brand of the device */ brand?: string | null; /** * Model of the device */ model?: string | null; /** * Family of the device */ family?: string | null; }; /** * Over-the-air update metadata */ ota_updates?: { /** * Channel of the over-the-air update */ channel?: string | null; /** * Runtime version of the over-the-air update */ runtime_version?: string | null; /** * ID of the over-the-air update */ update_id?: string | null; }; /** * Whether the replay is archived */ is_archived?: boolean | null; /** * URLs visited during the replay */ urls?: Array | null; /** * Names of the replay's segments */ segment_names?: Array | null; /** * Clicks recorded during the replay, one object per click */ clicks?: Array<{ /** * Alt text of the clicked element */ 'click.alt': string | null; /** * ARIA label of the clicked element */ 'click.label': string | null; /** * CSS classes of the clicked element */ 'click.classes': Array | null; /** * Name of the frontend component that was clicked */ 'click.component_name': string | null; /** * ID of the clicked element */ 'click.id': string | null; /** * Role of the clicked element */ 'click.role': string | null; /** * HTML tag of the clicked element */ 'click.tag': string | null; /** * Test ID of the clicked element */ 'click.testid': string | null; /** * Text of the clicked element */ 'click.text': string | null; /** * Title of the clicked element */ 'click.title': string | null; }>; /** * Number of dead clicks */ count_dead_clicks?: number | null; /** * Number of rage clicks */ count_rage_clicks?: number | null; /** * Number of errors linked to the replay */ count_errors?: number | null; /** * Replay duration in seconds */ duration?: number | null; /** * When the replay finished (ISO 8601) */ finished_at?: string | null; /** * When the replay started (ISO 8601) */ started_at?: string | null; /** * Replay activity score */ activity?: number | null; /** * Number of URLs visited during the replay */ count_urls?: number | null; /** * Recording mode of the replay, such as session or buffer */ replay_type?: string; /** * Number of recording segments */ count_segments?: number | null; /** * Platform of the replay */ platform?: string | null; /** * Releases associated with the replay */ releases?: Array; /** * Distribution of the replay */ dist?: string | null; /** * Number of warning events linked to the replay */ count_warnings?: number | null; /** * Number of info events linked to the replay */ count_infos?: number | null; /** * Whether the requesting user has viewed the replay */ has_viewed?: boolean; }; }; export type GetReplayDeletionJob = { /** * The deletion job */ data: { /** * ID of the deletion job */ id: number; /** * When the job was created */ dateCreated: string; /** * When the job was last updated */ dateUpdated: string; /** * Earliest UTC timestamp in the deletion range */ rangeStart: string; /** * Latest UTC timestamp in the deletion range */ rangeEnd: string; /** * Environments of the replays to delete. Empty means all environments */ environments: Array; /** * Status of the job: `pending`, `in-progress`, `completed` or `failed` */ status: string; /** * Search query that matches the replays to delete */ query: string; /** * Number of replays the job has deleted */ countDeleted: number; }; }; export type GetReplayRecordingSegment = { /** * Metadata of the recording segment */ data: { /** * ID of the replay the segment belongs to */ replayId: string; /** * ID of the segment within the replay */ segmentId: number; /** * ID of the project the replay belongs to */ projectId: string; /** * When the segment was stored (ISO 8601), or null if unknown */ dateAdded: string | null; }; }; export type GetReplayViewedBy = { /** * Viewers of the replay */ data: { /** * Users who have viewed the replay */ viewed_by: Array<{ /** * User ID */ id: string; /** * Display name of the user */ name: string; /** * Username */ username: string; /** * Primary email address */ email: string; /** * Gravatar URL for the primary email address */ avatarUrl: string; /** * User avatar */ avatar: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Whether the account is active */ isActive: boolean; /** * Whether the user has a password set */ hasPasswordAuth: boolean; /** * Whether the account is managed, which stops the user from changing their username, password and similar details */ isManaged: boolean; /** * When the account was created (ISO 8601) */ dateJoined: string; /** * When the user last signed in (ISO 8601), or null */ lastLogin: string | null; /** * Whether the user has two-factor authentication on */ has2fa: boolean; /** * When the user was last active (ISO 8601), or null */ lastActive: string | null; /** * Whether the user is a superuser */ isSuperuser: boolean; /** * Whether the user has staff status */ isStaff: boolean; /** * Deprecated. Always an empty object */ experiments: { [key: string]: string; }; /** * Email addresses of the user. Only included for the requesting user or superusers; empty otherwise */ emails: Array<{ /** * Email ID */ id: string; /** * Email address */ email: string; /** * Whether the email address is verified */ is_verified: boolean; }>; /** * Kind of viewer. Always user */ type: 'user'; }>; }; }; export type GroupDetailsResponse = { /** * Whether the issue includes unhandled events */ isUnhandled?: boolean; /** * Total number of events in the issue */ count?: string; /** * Number of users affected by the issue */ userCount?: number; /** * When the issue was first seen (ISO 8601) */ firstSeen?: string | null; /** * When the issue was last seen (ISO 8601) */ lastSeen?: string | null; /** * Additional data derived for the issue. Only included when requested with expand */ derivedData?: { /** * Action that blocks progress on the issue: none, approve_root_cause, approve_plan, approve_code_changes or merge_pr */ blocker: string; /** * How far the issue is toward resolution: identified, assigned, diagnosed, fix_proposed or fix_applied */ progress: string; /** * Status of the issue from its action log: open or closed */ status: string; /** * Number of times the issue was viewed */ viewCount: number; /** * Whether an open pull request is linked to the issue */ hasOpenFixPr: boolean; /** * Whether the issue has an assignee */ isAssigned: boolean; /** * Whether a root cause was found for the issue */ hasRootCause: boolean; /** * Furthest Autofix step completed: none, root_cause, solution, code_changes, pr_created or pr_iteration */ lastCompletedAutofixStep: string; /** * When the issue's progress last advanced (ISO 8601) */ lastProgressedAt: string | null; /** * The issue's impact assessment, or null when no assessment is available */ impact?: { /** * Estimated per-occurrence impact on the end user's capability from 0 to 100 */ score: number | null; /** * Impact level derived from the assessment score */ level: 'super_low' | 'low' | 'moderate' | 'high' | 'super_high' | null; /** * Human-readable description of the capability affected by the issue */ description: string; /** * Evidence-backed claims supporting the impact assessment */ citations: Array<{ /** * Stable identifier for the evidence supporting this claim */ reference: string; /** * Concise explanation of what the cited evidence establishes */ claim: string; /** * The category of evidence cited, such as an event, trace, replay, or log */ source: string; }>; /** * ID of the issue event used to generate the impact assessment */ sourceEventId: string; } | null; }; /** * ID of the issue */ id: string; /** * ID used in the issue's public share URL. Null when the issue isn't shared */ shareId: string | null; /** * Short ID of the issue, such as PROJECT-1A */ shortId: string | null; /** * Title of the issue */ title: string; /** * Function or module where the issue occurs */ culprit: string | null; /** * URL of the issue in Sentry */ permalink: string; /** * Logger of the issue's events */ logger: string | null; /** * Severity level of the issue */ level: 'sample' | 'debug' | 'info' | 'warning' | 'error' | 'fatal' | 'unknown'; /** * Issue status */ status: 'resolved' | 'ignored' | 'pending_deletion' | 'pending_merge' | 'reprocessing' | 'unresolved'; /** * Details of the issue's status, such as when an ignore expires or which release resolves it */ statusDetails: { /** * Number of additional events after which the issue stops being ignored */ ignoreCount?: number | null; /** * When the issue stops being ignored (ISO 8601) */ ignoreUntil?: string | null; /** * Number of additional affected users after which the issue stops being ignored */ ignoreUserCount?: number | null; /** * Time window in minutes for ignoreUserCount */ ignoreUserWindow?: number | null; /** * Time window in minutes for ignoreCount */ ignoreWindow?: number | null; /** * User who ignored or resolved the issue */ actor?: { /** * SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access */ identities?: Array<{ /** * SSO identity ID */ id: string; /** * User's identifier at the auth provider */ name: string; /** * Organization the auth provider belongs to */ organization: { /** * Organization slug */ slug: string; /** * Organization name */ name: string; }; /** * Auth provider of the identity */ provider: { /** * Auth provider key, such as google or saml2 */ id: string; /** * Display name of the auth provider */ name: string; }; /** * When the identity was last verified by signing in through the auth provider */ dateVerified: string; /** * When the identity was last synced from the auth provider */ dateSynced: string; }>; /** * User avatar */ avatar?: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Two-factor authenticators of the user, without backup methods such as recovery codes */ authenticators?: Array<{ /** * Authenticator ID */ id: string; /** * Authenticator type, such as totp, sms, u2f or recovery */ type: string; /** * Display name of the authenticator type */ name: string; /** * When the authenticator was added */ dateCreated: string; /** * When the authenticator was last used, or null */ dateUsed: string | null; }>; /** * Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization */ canReset2fa?: boolean; /** * User ID */ id: string; /** * Display name: the user's name, or their email or username if no name is set */ name: string; /** * Username */ username: string; /** * Primary email address */ email: string; /** * Gravatar URL for the primary email address */ avatarUrl: string; /** * Whether the account is active */ isActive: boolean; /** * Whether the account is suspended. Suspended users can't sign in */ isSuspended: boolean; /** * Whether the user has a password set */ hasPasswordAuth: boolean; /** * Whether the account is managed, which stops the user from changing their username, password and similar details */ isManaged: boolean; /** * When the account was created */ dateJoined: string; /** * When the user last signed in, or null */ lastLogin: string | null; /** * Whether the user has two-factor authentication enabled */ has2fa: boolean; /** * When the user was last active, or null */ lastActive: string | null; /** * Whether the user is a superuser */ isSuperuser: boolean; /** * Whether the user has staff status */ isStaff: boolean; /** * Deprecated. Always an empty object */ experiments: { [key: string]: string; }; /** * Email addresses of the user. Only included for the requesting user or superusers; empty otherwise */ emails: Array<{ /** * Email ID */ id: string; /** * Email address */ email: string; /** * Whether the email address is verified */ is_verified: boolean; }>; } | null; /** * Whether the issue is resolved in the next release */ inNextRelease?: boolean; /** * Version of the release the issue is resolved in */ inRelease?: string; /** * Commit the issue is resolved in */ inCommit?: string; /** * Number of events still waiting to be reprocessed */ pendingEvents?: number; /** * Reprocessing progress details */ info?: { /** * When reprocessing started (ISO 8601) */ dateCreated: string; /** * Number of events in the issue when reprocessing started */ syncCount: number; /** * Number of events to reprocess, at most the requested maximum */ totalEvents: number; } | null; }; /** * Substatus of the issue, such as ongoing, regressed or escalating */ substatus: 'archived_until_escalating' | 'archived_until_condition_met' | 'archived_forever' | 'escalating' | 'ongoing' | 'regressed' | 'new' | null; /** * Whether the issue is shared publicly */ isPublic: boolean; /** * Platform of the issue's events */ platform: string | null; /** * Priority of the issue: high, medium or low */ priority: 'low' | 'medium' | 'high' | null; /** * When the priority was last set manually, which stops automatic priority updates (ISO 8601) */ priorityLockedAt: string | null; /** * Seer's score for how likely the issue is to be fixable */ seerFixabilityScore: number | null; /** * When Seer Autofix was last triggered for the issue (ISO 8601) */ seerAutofixLastTriggered: string | null; /** * When the Seer explorer agent last completed an Autofix step for the issue (ISO 8601) */ seerExplorerAutofixLastTriggered: string | null; /** * Project the issue belongs to */ project: { /** * ID of the project */ id: string; /** * Name of the project */ name: string; /** * Slug of the project */ slug: string; /** * Platform of the project */ platform: string | null; }; /** * Event type of the issue, such as error or default */ type: 'default' | 'error' | 'csp' | 'nel' | 'hpkp' | 'expectct' | 'expectstaple' | 'transaction' | 'generic' | 'feedback'; /** * Issue type, such as error or performance_n_plus_one_db_queries */ issueType: string; /** * Issue category, such as error or performance */ issueCategory: string; /** * Issue metadata */ metadata: { /** * Title of default and issue platform events */ title?: string; /** * Exception value, or the subtitle of an issue */ value?: string; /** * Exception type of error events */ type?: string; /** * Whether the SDK fabricated the exception to carry a stacktrace, so its type is a platform label rather than what went wrong */ synthetic?: boolean; /** * File of the frame where the error happened */ filename?: string; /** * Function of the frame where the error happened */ function?: string; /** * Message of default, security and feedback events */ message?: string; /** * URI that a CSP report blocked */ uri?: string; /** * CSP directive that was violated */ directive?: string; /** * Host name of HPKP, Expect-CT and Expect-Staple reports */ origin?: string; /** * Name of the person who sent user feedback */ name?: string; /** * Email of the person who sent user feedback */ contact_email?: string; /** * Where user feedback came from, such as a widget */ source?: string; /** * Whether the stacktrace has in-app frames, system frames or both */ in_app_frame_mix?: string; /** * Whether a crash report was dropped because the issue already stores the most allowed */ stripped_crash?: boolean; /** * SDK of the issue's first event */ sdk?: { /** * Name of the SDK, or unknown */ name: string; /** * Name of the SDK, normalized for grouping */ name_normalized: string; }; /** * Severity score of the issue's first event */ severity?: number; /** * Why the severity score is what it is */ severity_reason?: string; /** * Priority the issue was created with */ initial_priority?: number; }; /** * Number of comments on the issue */ numComments: number; /** * User or team the issue is assigned to */ assignedTo: { /** * Whether the actor is a user or a team */ type: 'user' | 'team'; /** * ID of the user or team */ id: string; /** * Display name of the user, or slug of the team */ name: string; /** * Email address of the user. Only set for users */ email?: string; } | null; /** * Whether the requesting user bookmarked the issue */ isBookmarked: boolean; /** * Whether the requesting user is subscribed to the issue */ isSubscribed: boolean; /** * Why the requesting user is subscribed to the issue */ subscriptionDetails: { /** * Whether the requesting user turned off notifications for the issue */ disabled?: boolean; /** * Why the requesting user is subscribed: commented, assigned, bookmarked, changed_status, mentioned or unknown */ reason?: string; } | null; /** * Whether the requesting user has seen the issue since it last occurred */ hasSeen: boolean; /** * External issues linked to the issue */ annotations: Array<{ /** * Display name of the linked external issue */ displayName: string; /** * URL of the linked external issue */ url: string; }>; /** * First release the issue was seen in. Omitted when release is collapsed */ firstRelease?: { /** * Version control reference, such as a commit SHA or tag */ ref?: string | null; /** * Release URL */ url?: string | null; /** * When the release went live (ISO 8601) */ dateReleased?: string | null; /** * When the release was created (ISO 8601) */ dateCreated?: string | null; /** * When the release started (ISO 8601) */ dateStarted?: string | null; /** * Release owner */ owner?: { /** * SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access */ identities?: Array<{ /** * SSO identity ID */ id: string; /** * User's identifier at the auth provider */ name: string; /** * Organization the auth provider belongs to */ organization: { /** * Organization slug */ slug: string; /** * Organization name */ name: string; }; /** * Auth provider of the identity */ provider: { /** * Auth provider key, such as google or saml2 */ id: string; /** * Display name of the auth provider */ name: string; }; /** * When the identity was last verified by signing in through the auth provider */ dateVerified: string; /** * When the identity was last synced from the auth provider */ dateSynced: string; }>; /** * User avatar */ avatar?: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Two-factor authenticators of the user, without backup methods such as recovery codes */ authenticators?: Array<{ /** * Authenticator ID */ id: string; /** * Authenticator type, such as totp, sms, u2f or recovery */ type: string; /** * Display name of the authenticator type */ name: string; /** * When the authenticator was added */ dateCreated: string; /** * When the authenticator was last used, or null */ dateUsed: string | null; }>; /** * Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization */ canReset2fa?: boolean; /** * User ID */ id: string; /** * Display name: the user's name, or their email or username if no name is set */ name: string; /** * Username */ username: string; /** * Primary email address */ email: string; /** * Gravatar URL for the primary email address */ avatarUrl: string; /** * Whether the account is active */ isActive: boolean; /** * Whether the account is suspended. Suspended users can't sign in */ isSuspended: boolean; /** * Whether the user has a password set */ hasPasswordAuth: boolean; /** * Whether the account is managed, which stops the user from changing their username, password and similar details */ isManaged: boolean; /** * When the account was created */ dateJoined: string; /** * When the user last signed in, or null */ lastLogin: string | null; /** * Whether the user has two-factor authentication enabled */ has2fa: boolean; /** * When the user was last active, or null */ lastActive: string | null; /** * Whether the user is a superuser */ isSuperuser: boolean; /** * Whether the user has staff status */ isStaff: boolean; /** * Deprecated. Always an empty object */ experiments: { [key: string]: string; }; /** * Email addresses of the user. Only included for the requesting user or superusers; empty otherwise */ emails: Array<{ /** * Email ID */ id: string; /** * Email address */ email: string; /** * Whether the email address is verified */ is_verified: boolean; }>; } | null; /** * Most recent commit in the release */ lastCommit?: { /** * Commit SHA */ id: string; /** * Commit message */ message: string | null; /** * When the commit was made (ISO 8601) */ dateCreated: string; /** * Pull request the commit belongs to */ pullRequest: { /** * Number or key of the pull request in the provider */ id: string; /** * Title of the pull request */ title: string | null; /** * Description of the pull request */ message: string | null; /** * When Sentry recorded the pull request (ISO 8601) */ dateCreated: string; /** * When the pull request was merged (ISO 8601). Null when it isn't merged */ mergedAt: string | null; /** * State of the pull request: merged, open, closed, draft or unknown. Null when not known */ status: 'merged' | 'open' | 'closed' | 'draft' | 'unknown' | null; /** * Repository of the pull request */ repository: { /** * URL of the repository */ url?: string | null; /** * Provider of the repository, with its id and name */ provider?: { [key: string]: string; }; /** * Status of the repository */ status?: 'active' | 'disabled' | 'pending_deletion' | 'deletion_in_progress'; /** * ID of the repository's integration. Null for repositories added without an integration */ integrationId?: string | null; /** * Identifier of the repository in the provider, such as owner/name */ externalSlug?: string | null; /** * ID of the repository in the provider */ externalId?: string | null; /** * Settings of the repository. Only set when expand includes settings. Null when it has none */ settings?: { /** * Whether AI code review is on for the repository */ enabledCodeReview: boolean; /** * Pull request events that start a code review: on_new_commit or on_ready_for_review */ codeReviewTriggers: Array; } | null; /** * ID of the repository */ id: string; /** * Name of the repository, such as owner/name */ name: string; /** * When the repository was added to Sentry (ISO 8601) */ dateCreated: string; }; /** * Author of the pull request, or an empty object when it has none */ author: { /** * SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access */ identities?: Array<{ /** * SSO identity ID */ id: string; /** * User's identifier at the auth provider */ name: string; /** * Organization the auth provider belongs to */ organization: { /** * Organization slug */ slug: string; /** * Organization name */ name: string; }; /** * Auth provider of the identity */ provider: { /** * Auth provider key, such as google or saml2 */ id: string; /** * Display name of the auth provider */ name: string; }; /** * When the identity was last verified by signing in through the auth provider */ dateVerified: string; /** * When the identity was last synced from the auth provider */ dateSynced: string; }>; /** * User avatar */ avatar?: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Two-factor authenticators of the user, without backup methods such as recovery codes */ authenticators?: Array<{ /** * Authenticator ID */ id: string; /** * Authenticator type, such as totp, sms, u2f or recovery */ type: string; /** * Display name of the authenticator type */ name: string; /** * When the authenticator was added */ dateCreated: string; /** * When the authenticator was last used, or null */ dateUsed: string | null; }>; /** * Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization */ canReset2fa?: boolean; /** * User ID */ id: string; /** * Display name: the user's name, or their email or username if no name is set */ name: string; /** * Username */ username: string; /** * Primary email address */ email: string; /** * Gravatar URL for the primary email address */ avatarUrl: string; /** * Whether the account is active */ isActive: boolean; /** * Whether the account is suspended. Suspended users can't sign in */ isSuspended: boolean; /** * Whether the user has a password set */ hasPasswordAuth: boolean; /** * Whether the account is managed, which stops the user from changing their username, password and similar details */ isManaged: boolean; /** * When the account was created */ dateJoined: string; /** * When the user last signed in, or null */ lastLogin: string | null; /** * Whether the user has two-factor authentication enabled */ has2fa: boolean; /** * When the user was last active, or null */ lastActive: string | null; /** * Whether the user is a superuser */ isSuperuser: boolean; /** * Whether the user has staff status */ isStaff: boolean; /** * Deprecated. Always an empty object */ experiments: { [key: string]: string; }; /** * Email addresses of the user. Only included for the requesting user or superusers; empty otherwise */ emails: Array<{ /** * Email ID */ id: string; /** * Email address */ email: string; /** * Whether the email address is verified */ is_verified: boolean; }>; } | { /** * Commit author name */ name: string | null; /** * Commit author email */ email: string; } | { [key: string]: unknown; }; /** * URL of the pull request in the provider, or null when the provider can't build one */ externalUrl: string | null; } | null; /** * How the commit was found as a suspect commit: via commit in release or via SCM integration. Empty for other commits */ suspectCommitType: string; /** * Repository the commit belongs to */ repository?: { /** * URL of the repository */ url?: string | null; /** * Provider of the repository, with its id and name */ provider?: { [key: string]: string; }; /** * Status of the repository */ status?: 'active' | 'disabled' | 'pending_deletion' | 'deletion_in_progress'; /** * ID of the repository's integration. Null for repositories added without an integration */ integrationId?: string | null; /** * Identifier of the repository in the provider, such as owner/name */ externalSlug?: string | null; /** * ID of the repository in the provider */ externalId?: string | null; /** * Settings of the repository. Only set when expand includes settings. Null when it has none */ settings?: { /** * Whether AI code review is on for the repository */ enabledCodeReview: boolean; /** * Pull request events that start a code review: on_new_commit or on_ready_for_review */ codeReviewTriggers: Array; } | null; /** * ID of the repository */ id: string; /** * Name of the repository, such as owner/name */ name: string; /** * When the repository was added to Sentry (ISO 8601) */ dateCreated: string; }; /** * Author of the commit: a Sentry user when the email matches one, otherwise the name and email from the commit */ author?: { /** * SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access */ identities?: Array<{ /** * SSO identity ID */ id: string; /** * User's identifier at the auth provider */ name: string; /** * Organization the auth provider belongs to */ organization: { /** * Organization slug */ slug: string; /** * Organization name */ name: string; }; /** * Auth provider of the identity */ provider: { /** * Auth provider key, such as google or saml2 */ id: string; /** * Display name of the auth provider */ name: string; }; /** * When the identity was last verified by signing in through the auth provider */ dateVerified: string; /** * When the identity was last synced from the auth provider */ dateSynced: string; }>; /** * User avatar */ avatar?: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Two-factor authenticators of the user, without backup methods such as recovery codes */ authenticators?: Array<{ /** * Authenticator ID */ id: string; /** * Authenticator type, such as totp, sms, u2f or recovery */ type: string; /** * Display name of the authenticator type */ name: string; /** * When the authenticator was added */ dateCreated: string; /** * When the authenticator was last used, or null */ dateUsed: string | null; }>; /** * Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization */ canReset2fa?: boolean; /** * User ID */ id: string; /** * Display name: the user's name, or their email or username if no name is set */ name: string; /** * Username */ username: string; /** * Primary email address */ email: string; /** * Gravatar URL for the primary email address */ avatarUrl: string; /** * Whether the account is active */ isActive: boolean; /** * Whether the account is suspended. Suspended users can't sign in */ isSuspended: boolean; /** * Whether the user has a password set */ hasPasswordAuth: boolean; /** * Whether the account is managed, which stops the user from changing their username, password and similar details */ isManaged: boolean; /** * When the account was created */ dateJoined: string; /** * When the user last signed in, or null */ lastLogin: string | null; /** * Whether the user has two-factor authentication enabled */ has2fa: boolean; /** * When the user was last active, or null */ lastActive: string | null; /** * Whether the user is a superuser */ isSuperuser: boolean; /** * Whether the user has staff status */ isStaff: boolean; /** * Deprecated. Always an empty object */ experiments: { [key: string]: string; }; /** * Email addresses of the user. Only included for the requesting user or superusers; empty otherwise */ emails: Array<{ /** * Email ID */ id: string; /** * Email address */ email: string; /** * Whether the email address is verified */ is_verified: boolean; }>; } | { /** * Commit author name */ name: string | null; /** * Commit author email */ email: string; } | { [key: string]: unknown; }; } | null; /** * Most recent deploy of the release */ lastDeploy?: { /** * When the deploy started (ISO 8601) */ dateStarted?: string | null; /** * URL of the deploy */ url?: string | null; /** * ID of the deploy */ id: string; /** * Environment the release was deployed to */ environment: string; /** * When the deploy finished (ISO 8601) */ dateFinished: string; /** * Name of the deploy */ name: string | null; } | null; /** * When the release received its first event (ISO 8601) */ firstEvent?: string | null; /** * When the release received its most recent event (ISO 8601) */ lastEvent?: string | null; /** * Session bounds and neighboring release versions in the current project, when a project is requested */ currentProjectMeta?: { /** * Start of the release's sessions in the project (ISO 8601) */ sessionsLowerBound?: string | null; /** * End of the release's sessions in the project (ISO 8601) */ sessionsUpperBound?: string | null; /** * Version of the next release in the project */ nextReleaseVersion?: string | null; /** * Version of the previous release in the project */ prevReleaseVersion?: string | null; /** * Version of the first release in the project */ firstReleaseVersion?: string | null; /** * Version of the latest release in the project */ lastReleaseVersion?: string | null; } | null; /** * User agent of the client that created the release */ userAgent?: string | null; /** * Adoption stage of the release in each project, keyed by project slug */ adoptionStages?: { [key: string]: { /** * Adoption stage of the release */ stage: 'adopted' | 'low_adoption' | 'replaced'; /** * When the release was adopted (ISO 8601) */ adopted: string | null; /** * When the release stopped being adopted (ISO 8601) */ unadopted: string | null; }; } | null; /** * Release ID */ id: number; /** * Version of the release */ version: string; /** * Number of new issues first seen in the release */ newGroups: number; /** * Release status */ status: 'open' | 'archived'; /** * Shortened release version */ shortVersion: string; /** * Parsed version information */ versionInfo: { /** * Human-readable version, such as 1.0.0 (123) */ description?: string; /** * Package name parsed from the release version, such as com.example.app */ package: string | null; /** * Parsed version: the raw string, plus major, minor, patch, pre, buildCode and components when it's a semantic version */ version: { /** * Major version */ major?: number; /** * Minor version */ minor?: number; /** * Patch version */ patch?: number; /** * Pre-release identifier, such as rc1 */ pre?: string | null; /** * Build code, such as 123 */ buildCode?: string | null; /** * Number of version components given */ components?: number; /** * Version string the release was created with */ raw: string; }; /** * Build hash parsed from the release version */ buildHash: string | null; } | null; /** * Extra data stored on the release */ data: { [key: string]: unknown; }; /** * Number of commits in the release */ commitCount: number; /** * Number of deploys of the release */ deployCount: number; /** * Authors of the release's commits */ authors: Array<{ /** * SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access */ identities?: Array<{ /** * SSO identity ID */ id: string; /** * User's identifier at the auth provider */ name: string; /** * Organization the auth provider belongs to */ organization: { /** * Organization slug */ slug: string; /** * Organization name */ name: string; }; /** * Auth provider of the identity */ provider: { /** * Auth provider key, such as google or saml2 */ id: string; /** * Display name of the auth provider */ name: string; }; /** * When the identity was last verified by signing in through the auth provider */ dateVerified: string; /** * When the identity was last synced from the auth provider */ dateSynced: string; }>; /** * User avatar */ avatar?: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Two-factor authenticators of the user, without backup methods such as recovery codes */ authenticators?: Array<{ /** * Authenticator ID */ id: string; /** * Authenticator type, such as totp, sms, u2f or recovery */ type: string; /** * Display name of the authenticator type */ name: string; /** * When the authenticator was added */ dateCreated: string; /** * When the authenticator was last used, or null */ dateUsed: string | null; }>; /** * Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization */ canReset2fa?: boolean; /** * User ID */ id: string; /** * Display name: the user's name, or their email or username if no name is set */ name: string; /** * Username */ username: string; /** * Primary email address */ email: string; /** * Gravatar URL for the primary email address */ avatarUrl: string; /** * Whether the account is active */ isActive: boolean; /** * Whether the account is suspended. Suspended users can't sign in */ isSuspended: boolean; /** * Whether the user has a password set */ hasPasswordAuth: boolean; /** * Whether the account is managed, which stops the user from changing their username, password and similar details */ isManaged: boolean; /** * When the account was created */ dateJoined: string; /** * When the user last signed in, or null */ lastLogin: string | null; /** * Whether the user has two-factor authentication enabled */ has2fa: boolean; /** * When the user was last active, or null */ lastActive: string | null; /** * Whether the user is a superuser */ isSuperuser: boolean; /** * Whether the user has staff status */ isStaff: boolean; /** * Deprecated. Always an empty object */ experiments: { [key: string]: string; }; /** * Email addresses of the user. Only included for the requesting user or superusers; empty otherwise */ emails: Array<{ /** * Email ID */ id: string; /** * Email address */ email: string; /** * Whether the email address is verified */ is_verified: boolean; }>; } | { /** * Commit author name */ name: string | null; /** * Commit author email */ email: string; }>; /** * Projects in the release */ projects: Array<{ /** * Release health data for the project. Only included when health data is requested */ healthData?: { /** * Median session duration in seconds */ durationP50?: number | null; /** * 90th percentile session duration in seconds */ durationP90?: number | null; /** * Percentage of users who didn't experience a crash */ crashFreeUsers?: number | null; /** * Percentage of sessions that didn't crash */ crashFreeSessions?: number | null; /** * Total number of users in the release */ totalUsers?: number | null; /** * Number of users in the release over the last 24 hours */ totalUsers24h?: number | null; /** * Number of users in the project over the last 24 hours */ totalProjectUsers24h?: number | null; /** * Total number of sessions in the release */ totalSessions?: number | null; /** * Number of sessions in the release over the last 24 hours */ totalSessions24h?: number | null; /** * Number of sessions in the project over the last 24 hours */ totalProjectSessions24h?: number | null; /** * Percentage of the project's users over the last 24 hours that were on the release */ adoption?: number | null; /** * Percentage of the project's sessions over the last 24 hours that were on the release */ sessionsAdoption?: number | null; /** * Number of crashed sessions */ sessionsCrashed: number; /** * Number of sessions with errors */ sessionsErrored: number; /** * Whether the release has session data */ hasHealthData: boolean; /** * Session or user counts over time, keyed by stats period */ stats: { [key: string]: Array>; }; } | null; /** * When the release was released in the project (ISO 8601) */ dateReleased?: string | null; /** * When the release was created (ISO 8601) */ dateCreated?: string | null; /** * When work on the release started (ISO 8601) */ dateStarted?: string | null; /** * ID of the project */ id: number; /** * Slug of the project */ slug: string; /** * Name of the project */ name: string; /** * Platform of the project */ platform: string | null; /** * Platforms of the project */ platforms: Array | null; /** * Whether the release has session data in the project */ hasHealthData: boolean; /** * Number of new issues first seen in the release in the project */ newGroups: number; }>; } | { /** * Version of the release */ version: string; } | null; /** * Latest release the issue was seen in. Omitted when release is collapsed */ lastRelease?: { /** * Version control reference, such as a commit SHA or tag */ ref?: string | null; /** * Release URL */ url?: string | null; /** * When the release went live (ISO 8601) */ dateReleased?: string | null; /** * When the release was created (ISO 8601) */ dateCreated?: string | null; /** * When the release started (ISO 8601) */ dateStarted?: string | null; /** * Release owner */ owner?: { /** * SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access */ identities?: Array<{ /** * SSO identity ID */ id: string; /** * User's identifier at the auth provider */ name: string; /** * Organization the auth provider belongs to */ organization: { /** * Organization slug */ slug: string; /** * Organization name */ name: string; }; /** * Auth provider of the identity */ provider: { /** * Auth provider key, such as google or saml2 */ id: string; /** * Display name of the auth provider */ name: string; }; /** * When the identity was last verified by signing in through the auth provider */ dateVerified: string; /** * When the identity was last synced from the auth provider */ dateSynced: string; }>; /** * User avatar */ avatar?: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Two-factor authenticators of the user, without backup methods such as recovery codes */ authenticators?: Array<{ /** * Authenticator ID */ id: string; /** * Authenticator type, such as totp, sms, u2f or recovery */ type: string; /** * Display name of the authenticator type */ name: string; /** * When the authenticator was added */ dateCreated: string; /** * When the authenticator was last used, or null */ dateUsed: string | null; }>; /** * Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization */ canReset2fa?: boolean; /** * User ID */ id: string; /** * Display name: the user's name, or their email or username if no name is set */ name: string; /** * Username */ username: string; /** * Primary email address */ email: string; /** * Gravatar URL for the primary email address */ avatarUrl: string; /** * Whether the account is active */ isActive: boolean; /** * Whether the account is suspended. Suspended users can't sign in */ isSuspended: boolean; /** * Whether the user has a password set */ hasPasswordAuth: boolean; /** * Whether the account is managed, which stops the user from changing their username, password and similar details */ isManaged: boolean; /** * When the account was created */ dateJoined: string; /** * When the user last signed in, or null */ lastLogin: string | null; /** * Whether the user has two-factor authentication enabled */ has2fa: boolean; /** * When the user was last active, or null */ lastActive: string | null; /** * Whether the user is a superuser */ isSuperuser: boolean; /** * Whether the user has staff status */ isStaff: boolean; /** * Deprecated. Always an empty object */ experiments: { [key: string]: string; }; /** * Email addresses of the user. Only included for the requesting user or superusers; empty otherwise */ emails: Array<{ /** * Email ID */ id: string; /** * Email address */ email: string; /** * Whether the email address is verified */ is_verified: boolean; }>; } | null; /** * Most recent commit in the release */ lastCommit?: { /** * Commit SHA */ id: string; /** * Commit message */ message: string | null; /** * When the commit was made (ISO 8601) */ dateCreated: string; /** * Pull request the commit belongs to */ pullRequest: { /** * Number or key of the pull request in the provider */ id: string; /** * Title of the pull request */ title: string | null; /** * Description of the pull request */ message: string | null; /** * When Sentry recorded the pull request (ISO 8601) */ dateCreated: string; /** * When the pull request was merged (ISO 8601). Null when it isn't merged */ mergedAt: string | null; /** * State of the pull request: merged, open, closed, draft or unknown. Null when not known */ status: 'merged' | 'open' | 'closed' | 'draft' | 'unknown' | null; /** * Repository of the pull request */ repository: { /** * URL of the repository */ url?: string | null; /** * Provider of the repository, with its id and name */ provider?: { [key: string]: string; }; /** * Status of the repository */ status?: 'active' | 'disabled' | 'pending_deletion' | 'deletion_in_progress'; /** * ID of the repository's integration. Null for repositories added without an integration */ integrationId?: string | null; /** * Identifier of the repository in the provider, such as owner/name */ externalSlug?: string | null; /** * ID of the repository in the provider */ externalId?: string | null; /** * Settings of the repository. Only set when expand includes settings. Null when it has none */ settings?: { /** * Whether AI code review is on for the repository */ enabledCodeReview: boolean; /** * Pull request events that start a code review: on_new_commit or on_ready_for_review */ codeReviewTriggers: Array; } | null; /** * ID of the repository */ id: string; /** * Name of the repository, such as owner/name */ name: string; /** * When the repository was added to Sentry (ISO 8601) */ dateCreated: string; }; /** * Author of the pull request, or an empty object when it has none */ author: { /** * SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access */ identities?: Array<{ /** * SSO identity ID */ id: string; /** * User's identifier at the auth provider */ name: string; /** * Organization the auth provider belongs to */ organization: { /** * Organization slug */ slug: string; /** * Organization name */ name: string; }; /** * Auth provider of the identity */ provider: { /** * Auth provider key, such as google or saml2 */ id: string; /** * Display name of the auth provider */ name: string; }; /** * When the identity was last verified by signing in through the auth provider */ dateVerified: string; /** * When the identity was last synced from the auth provider */ dateSynced: string; }>; /** * User avatar */ avatar?: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Two-factor authenticators of the user, without backup methods such as recovery codes */ authenticators?: Array<{ /** * Authenticator ID */ id: string; /** * Authenticator type, such as totp, sms, u2f or recovery */ type: string; /** * Display name of the authenticator type */ name: string; /** * When the authenticator was added */ dateCreated: string; /** * When the authenticator was last used, or null */ dateUsed: string | null; }>; /** * Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization */ canReset2fa?: boolean; /** * User ID */ id: string; /** * Display name: the user's name, or their email or username if no name is set */ name: string; /** * Username */ username: string; /** * Primary email address */ email: string; /** * Gravatar URL for the primary email address */ avatarUrl: string; /** * Whether the account is active */ isActive: boolean; /** * Whether the account is suspended. Suspended users can't sign in */ isSuspended: boolean; /** * Whether the user has a password set */ hasPasswordAuth: boolean; /** * Whether the account is managed, which stops the user from changing their username, password and similar details */ isManaged: boolean; /** * When the account was created */ dateJoined: string; /** * When the user last signed in, or null */ lastLogin: string | null; /** * Whether the user has two-factor authentication enabled */ has2fa: boolean; /** * When the user was last active, or null */ lastActive: string | null; /** * Whether the user is a superuser */ isSuperuser: boolean; /** * Whether the user has staff status */ isStaff: boolean; /** * Deprecated. Always an empty object */ experiments: { [key: string]: string; }; /** * Email addresses of the user. Only included for the requesting user or superusers; empty otherwise */ emails: Array<{ /** * Email ID */ id: string; /** * Email address */ email: string; /** * Whether the email address is verified */ is_verified: boolean; }>; } | { /** * Commit author name */ name: string | null; /** * Commit author email */ email: string; } | { [key: string]: unknown; }; /** * URL of the pull request in the provider, or null when the provider can't build one */ externalUrl: string | null; } | null; /** * How the commit was found as a suspect commit: via commit in release or via SCM integration. Empty for other commits */ suspectCommitType: string; /** * Repository the commit belongs to */ repository?: { /** * URL of the repository */ url?: string | null; /** * Provider of the repository, with its id and name */ provider?: { [key: string]: string; }; /** * Status of the repository */ status?: 'active' | 'disabled' | 'pending_deletion' | 'deletion_in_progress'; /** * ID of the repository's integration. Null for repositories added without an integration */ integrationId?: string | null; /** * Identifier of the repository in the provider, such as owner/name */ externalSlug?: string | null; /** * ID of the repository in the provider */ externalId?: string | null; /** * Settings of the repository. Only set when expand includes settings. Null when it has none */ settings?: { /** * Whether AI code review is on for the repository */ enabledCodeReview: boolean; /** * Pull request events that start a code review: on_new_commit or on_ready_for_review */ codeReviewTriggers: Array; } | null; /** * ID of the repository */ id: string; /** * Name of the repository, such as owner/name */ name: string; /** * When the repository was added to Sentry (ISO 8601) */ dateCreated: string; }; /** * Author of the commit: a Sentry user when the email matches one, otherwise the name and email from the commit */ author?: { /** * SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access */ identities?: Array<{ /** * SSO identity ID */ id: string; /** * User's identifier at the auth provider */ name: string; /** * Organization the auth provider belongs to */ organization: { /** * Organization slug */ slug: string; /** * Organization name */ name: string; }; /** * Auth provider of the identity */ provider: { /** * Auth provider key, such as google or saml2 */ id: string; /** * Display name of the auth provider */ name: string; }; /** * When the identity was last verified by signing in through the auth provider */ dateVerified: string; /** * When the identity was last synced from the auth provider */ dateSynced: string; }>; /** * User avatar */ avatar?: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Two-factor authenticators of the user, without backup methods such as recovery codes */ authenticators?: Array<{ /** * Authenticator ID */ id: string; /** * Authenticator type, such as totp, sms, u2f or recovery */ type: string; /** * Display name of the authenticator type */ name: string; /** * When the authenticator was added */ dateCreated: string; /** * When the authenticator was last used, or null */ dateUsed: string | null; }>; /** * Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization */ canReset2fa?: boolean; /** * User ID */ id: string; /** * Display name: the user's name, or their email or username if no name is set */ name: string; /** * Username */ username: string; /** * Primary email address */ email: string; /** * Gravatar URL for the primary email address */ avatarUrl: string; /** * Whether the account is active */ isActive: boolean; /** * Whether the account is suspended. Suspended users can't sign in */ isSuspended: boolean; /** * Whether the user has a password set */ hasPasswordAuth: boolean; /** * Whether the account is managed, which stops the user from changing their username, password and similar details */ isManaged: boolean; /** * When the account was created */ dateJoined: string; /** * When the user last signed in, or null */ lastLogin: string | null; /** * Whether the user has two-factor authentication enabled */ has2fa: boolean; /** * When the user was last active, or null */ lastActive: string | null; /** * Whether the user is a superuser */ isSuperuser: boolean; /** * Whether the user has staff status */ isStaff: boolean; /** * Deprecated. Always an empty object */ experiments: { [key: string]: string; }; /** * Email addresses of the user. Only included for the requesting user or superusers; empty otherwise */ emails: Array<{ /** * Email ID */ id: string; /** * Email address */ email: string; /** * Whether the email address is verified */ is_verified: boolean; }>; } | { /** * Commit author name */ name: string | null; /** * Commit author email */ email: string; } | { [key: string]: unknown; }; } | null; /** * Most recent deploy of the release */ lastDeploy?: { /** * When the deploy started (ISO 8601) */ dateStarted?: string | null; /** * URL of the deploy */ url?: string | null; /** * ID of the deploy */ id: string; /** * Environment the release was deployed to */ environment: string; /** * When the deploy finished (ISO 8601) */ dateFinished: string; /** * Name of the deploy */ name: string | null; } | null; /** * When the release received its first event (ISO 8601) */ firstEvent?: string | null; /** * When the release received its most recent event (ISO 8601) */ lastEvent?: string | null; /** * Session bounds and neighboring release versions in the current project, when a project is requested */ currentProjectMeta?: { /** * Start of the release's sessions in the project (ISO 8601) */ sessionsLowerBound?: string | null; /** * End of the release's sessions in the project (ISO 8601) */ sessionsUpperBound?: string | null; /** * Version of the next release in the project */ nextReleaseVersion?: string | null; /** * Version of the previous release in the project */ prevReleaseVersion?: string | null; /** * Version of the first release in the project */ firstReleaseVersion?: string | null; /** * Version of the latest release in the project */ lastReleaseVersion?: string | null; } | null; /** * User agent of the client that created the release */ userAgent?: string | null; /** * Adoption stage of the release in each project, keyed by project slug */ adoptionStages?: { [key: string]: { /** * Adoption stage of the release */ stage: 'adopted' | 'low_adoption' | 'replaced'; /** * When the release was adopted (ISO 8601) */ adopted: string | null; /** * When the release stopped being adopted (ISO 8601) */ unadopted: string | null; }; } | null; /** * Release ID */ id: number; /** * Version of the release */ version: string; /** * Number of new issues first seen in the release */ newGroups: number; /** * Release status */ status: 'open' | 'archived'; /** * Shortened release version */ shortVersion: string; /** * Parsed version information */ versionInfo: { /** * Human-readable version, such as 1.0.0 (123) */ description?: string; /** * Package name parsed from the release version, such as com.example.app */ package: string | null; /** * Parsed version: the raw string, plus major, minor, patch, pre, buildCode and components when it's a semantic version */ version: { /** * Major version */ major?: number; /** * Minor version */ minor?: number; /** * Patch version */ patch?: number; /** * Pre-release identifier, such as rc1 */ pre?: string | null; /** * Build code, such as 123 */ buildCode?: string | null; /** * Number of version components given */ components?: number; /** * Version string the release was created with */ raw: string; }; /** * Build hash parsed from the release version */ buildHash: string | null; } | null; /** * Extra data stored on the release */ data: { [key: string]: unknown; }; /** * Number of commits in the release */ commitCount: number; /** * Number of deploys of the release */ deployCount: number; /** * Authors of the release's commits */ authors: Array<{ /** * SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access */ identities?: Array<{ /** * SSO identity ID */ id: string; /** * User's identifier at the auth provider */ name: string; /** * Organization the auth provider belongs to */ organization: { /** * Organization slug */ slug: string; /** * Organization name */ name: string; }; /** * Auth provider of the identity */ provider: { /** * Auth provider key, such as google or saml2 */ id: string; /** * Display name of the auth provider */ name: string; }; /** * When the identity was last verified by signing in through the auth provider */ dateVerified: string; /** * When the identity was last synced from the auth provider */ dateSynced: string; }>; /** * User avatar */ avatar?: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Two-factor authenticators of the user, without backup methods such as recovery codes */ authenticators?: Array<{ /** * Authenticator ID */ id: string; /** * Authenticator type, such as totp, sms, u2f or recovery */ type: string; /** * Display name of the authenticator type */ name: string; /** * When the authenticator was added */ dateCreated: string; /** * When the authenticator was last used, or null */ dateUsed: string | null; }>; /** * Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization */ canReset2fa?: boolean; /** * User ID */ id: string; /** * Display name: the user's name, or their email or username if no name is set */ name: string; /** * Username */ username: string; /** * Primary email address */ email: string; /** * Gravatar URL for the primary email address */ avatarUrl: string; /** * Whether the account is active */ isActive: boolean; /** * Whether the account is suspended. Suspended users can't sign in */ isSuspended: boolean; /** * Whether the user has a password set */ hasPasswordAuth: boolean; /** * Whether the account is managed, which stops the user from changing their username, password and similar details */ isManaged: boolean; /** * When the account was created */ dateJoined: string; /** * When the user last signed in, or null */ lastLogin: string | null; /** * Whether the user has two-factor authentication enabled */ has2fa: boolean; /** * When the user was last active, or null */ lastActive: string | null; /** * Whether the user is a superuser */ isSuperuser: boolean; /** * Whether the user has staff status */ isStaff: boolean; /** * Deprecated. Always an empty object */ experiments: { [key: string]: string; }; /** * Email addresses of the user. Only included for the requesting user or superusers; empty otherwise */ emails: Array<{ /** * Email ID */ id: string; /** * Email address */ email: string; /** * Whether the email address is verified */ is_verified: boolean; }>; } | { /** * Commit author name */ name: string | null; /** * Commit author email */ email: string; }>; /** * Projects in the release */ projects: Array<{ /** * Release health data for the project. Only included when health data is requested */ healthData?: { /** * Median session duration in seconds */ durationP50?: number | null; /** * 90th percentile session duration in seconds */ durationP90?: number | null; /** * Percentage of users who didn't experience a crash */ crashFreeUsers?: number | null; /** * Percentage of sessions that didn't crash */ crashFreeSessions?: number | null; /** * Total number of users in the release */ totalUsers?: number | null; /** * Number of users in the release over the last 24 hours */ totalUsers24h?: number | null; /** * Number of users in the project over the last 24 hours */ totalProjectUsers24h?: number | null; /** * Total number of sessions in the release */ totalSessions?: number | null; /** * Number of sessions in the release over the last 24 hours */ totalSessions24h?: number | null; /** * Number of sessions in the project over the last 24 hours */ totalProjectSessions24h?: number | null; /** * Percentage of the project's users over the last 24 hours that were on the release */ adoption?: number | null; /** * Percentage of the project's sessions over the last 24 hours that were on the release */ sessionsAdoption?: number | null; /** * Number of crashed sessions */ sessionsCrashed: number; /** * Number of sessions with errors */ sessionsErrored: number; /** * Whether the release has session data */ hasHealthData: boolean; /** * Session or user counts over time, keyed by stats period */ stats: { [key: string]: Array>; }; } | null; /** * When the release was released in the project (ISO 8601) */ dateReleased?: string | null; /** * When the release was created (ISO 8601) */ dateCreated?: string | null; /** * When work on the release started (ISO 8601) */ dateStarted?: string | null; /** * ID of the project */ id: number; /** * Slug of the project */ slug: string; /** * Name of the project */ name: string; /** * Platform of the project */ platform: string | null; /** * Platforms of the project */ platforms: Array | null; /** * Whether the release has session data in the project */ hasHealthData: boolean; /** * Number of new issues first seen in the release in the project */ newGroups: number; }>; } | { /** * Version of the release */ version: string; } | null; /** * Tag keys seen on the issue's events, with their top values. Omitted when tags is collapsed */ tags?: Array<{ /** * Number of distinct values seen for the tag key */ uniqueValues?: number | null; /** * Number of events counted for the tag key. For an issue tag, this is the issue's retained event count, including events without the tag */ totalValues?: number | null; /** * Most frequent values of the tag key, ordered by count */ topValues?: Array<{ /** * Search query that matches events with the tag value. Only set for the user tag */ query?: string | null; /** * Tag key, with the `sentry:` prefix removed from built-in keys */ key: string; /** * Display label of the tag value. For the user tag, the `id:`, `email:`, `username:` or `ip:` prefix is removed */ name: string | null; /** * Tag value */ value: string | null; /** * Number of events with the tag value. Null for an empty value */ count: number | null; /** * When the tag value was last seen (ISO 8601). Null for an empty value */ lastSeen: string | null; /** * When the tag value was first seen (ISO 8601). Null for an empty value */ firstSeen: string | null; }> | null; /** * Tag key, with the `sentry:` prefix removed from built-in keys */ key: string; /** * Display label of the tag key */ name: string; }>; /** * Event counts for the last 24 hours (hourly) and 30 days (daily), as [timestamp, count] pairs. Omitted when stats is collapsed */ stats?: { [key: string]: Array>; }; /** * Why the issue is in the inbox. Only included when requested with expand */ inbox?: { /** * Why the issue is in the inbox: 0 new, 1 unignored, 2 regression, 3 manual, 4 reprocessed, 5 escalating or 6 ongoing */ reason: number; /** * Details of the ignore that ended when the issue came back to the inbox. Null otherwise */ reason_details: { /** * When the ignore that ended was set to expire (ISO 8601) */ until: string | null; /** * Number of occurrences the ignore that ended was set to wait for */ count: number | null; /** * Window in minutes for count */ window: number | null; /** * Number of affected users the ignore that ended was set to wait for */ user_count: number | null; /** * Window in minutes for user_count */ user_window: number | null; } | null; /** * When the issue was added to the inbox (ISO 8601) */ date_added: string; } | null; /** * Suggested owners of the issue. Only included when requested with expand */ owners?: Array<{ /** * How the owner was found: suspectCommit, ownershipRule, codeowners or seerSuggested */ type: string; /** * Owner as an actor identifier, such as user:1 or team:1 */ owner: string; /** * When the owner was suggested (ISO 8601) */ date_added: string; }> | null; /** * Escalation forecast for the issue. Only included when requested with expand */ forecast?: { /** * Forecast daily event counts, starting on the day the forecast was generated */ data: Array; /** * When the forecast was generated, as a Unix timestamp */ date_added: number; }; /** * External issues linked through integrations. Only included when requested with expand */ integrationIssues?: Array<{ /** * ID of the external issue link in Sentry */ id?: string; /** * Key of the issue in the integration, such as APP-123 */ key?: string; /** * Title of the issue in the integration */ title?: string | null; /** * Description of the issue in the integration */ description?: string | null; /** * Name of the issue to display */ displayName?: string; /** * Provider of the integration, such as jira */ integrationKey?: string; /** * Name of the integration */ integrationName?: string; }>; /** * External issues linked through Sentry apps. Only included when requested with expand */ sentryAppIssues?: Array<{ /** * ID of the external issue link */ id: string; /** * ID of the Sentry issue */ issueId: string; /** * Slug of the custom integration that created the external issue */ serviceType: string; /** * Display name of the external issue, such as ABC-123 */ displayName: string; /** * URL of the external issue */ webUrl: string; }>; /** * Whether the issue's latest event has attachments. Only included when requested with expand */ latestEventHasAttachments?: boolean; /** * Recent activity on the issue, newest first */ activity: Array<{ /** * ID of the activity, or 0 for a first-seen item built from the issue */ id: string; /** * ID to pass to the notes endpoints for a comment, otherwise null */ commentId: string | null; /** * User who acted, or null for Sentry, an integration or a Sentry App */ user: { /** * SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access */ identities?: Array<{ /** * SSO identity ID */ id: string; /** * User's identifier at the auth provider */ name: string; /** * Organization the auth provider belongs to */ organization: { /** * Organization slug */ slug: string; /** * Organization name */ name: string; }; /** * Auth provider of the identity */ provider: { /** * Auth provider key, such as google or saml2 */ id: string; /** * Display name of the auth provider */ name: string; }; /** * When the identity was last verified by signing in through the auth provider */ dateVerified: string; /** * When the identity was last synced from the auth provider */ dateSynced: string; }>; /** * User avatar */ avatar?: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Two-factor authenticators of the user, without backup methods such as recovery codes */ authenticators?: Array<{ /** * Authenticator ID */ id: string; /** * Authenticator type, such as totp, sms, u2f or recovery */ type: string; /** * Display name of the authenticator type */ name: string; /** * When the authenticator was added */ dateCreated: string; /** * When the authenticator was last used, or null */ dateUsed: string | null; }>; /** * Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization */ canReset2fa?: boolean; /** * User ID */ id: string; /** * Display name: the user's name, or their email or username if no name is set */ name: string; /** * Username */ username: string; /** * Primary email address */ email: string; /** * Gravatar URL for the primary email address */ avatarUrl: string; /** * Whether the account is active */ isActive: boolean; /** * Whether the account is suspended. Suspended users can't sign in */ isSuspended: boolean; /** * Whether the user has a password set */ hasPasswordAuth: boolean; /** * Whether the account is managed, which stops the user from changing their username, password and similar details */ isManaged: boolean; /** * When the account was created */ dateJoined: string; /** * When the user last signed in, or null */ lastLogin: string | null; /** * Whether the user has two-factor authentication enabled */ has2fa: boolean; /** * When the user was last active, or null */ lastActive: string | null; /** * Whether the user is a superuser */ isSuperuser: boolean; /** * Whether the user has staff status */ isStaff: boolean; /** * Deprecated. Always an empty object */ experiments: { [key: string]: string; }; /** * Email addresses of the user. Only included for the requesting user or superusers; empty otherwise */ emails: Array<{ /** * Email ID */ id: string; /** * Email address */ email: string; /** * Whether the email address is verified */ is_verified: boolean; }>; } | null; /** * Sentry App that acted, if one did */ sentry_app: { /** * ID of the Sentry App */ id: string; /** * Name of the Sentry App */ name: string; /** * Slug of the Sentry App */ slug: string; /** * Avatars of the Sentry App */ avatars: Array<{ /** * Avatar type: `default` or `upload` */ avatarType: string; /** * Unique identifier of the uploaded avatar file, or an empty string if none is set */ avatarUuid: string; /** * Absolute URL of the avatar image */ avatarUrl: string; /** * Whether this is the color logo (`true`) or the simple icon (`false`) */ color: boolean; /** * Kind of image: `logo` for the color logo or `icon` for the simple icon */ photoType: string; }>; } | null; /** * Type of the activity, which decides the shape of data */ type: 'assigned'; /** * Details of the activity, which depend on type */ data: { /** * ID of the user or team the issue was assigned to */ assignee?: string | null; /** * Email of the user the issue was assigned to */ assigneeEmail?: string | null; /** * Name of the user or team the issue was assigned to */ assigneeName?: string | null; /** * What the issue was assigned to: user or team */ assigneeType?: string | null; /** * What assigned the issue, such as codeowners or projectOwnership */ integration?: string | null; /** * Ownership rule that assigned the issue */ rule?: string | null; }; /** * When the activity happened (ISO 8601) */ dateCreated: string; /** * Where the action came from, such as web, api or mcp: */ source?: string | null; } | { /** * ID of the activity, or 0 for a first-seen item built from the issue */ id: string; /** * ID to pass to the notes endpoints for a comment, otherwise null */ commentId: string | null; /** * User who acted, or null for Sentry, an integration or a Sentry App */ user: { /** * SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access */ identities?: Array<{ /** * SSO identity ID */ id: string; /** * User's identifier at the auth provider */ name: string; /** * Organization the auth provider belongs to */ organization: { /** * Organization slug */ slug: string; /** * Organization name */ name: string; }; /** * Auth provider of the identity */ provider: { /** * Auth provider key, such as google or saml2 */ id: string; /** * Display name of the auth provider */ name: string; }; /** * When the identity was last verified by signing in through the auth provider */ dateVerified: string; /** * When the identity was last synced from the auth provider */ dateSynced: string; }>; /** * User avatar */ avatar?: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Two-factor authenticators of the user, without backup methods such as recovery codes */ authenticators?: Array<{ /** * Authenticator ID */ id: string; /** * Authenticator type, such as totp, sms, u2f or recovery */ type: string; /** * Display name of the authenticator type */ name: string; /** * When the authenticator was added */ dateCreated: string; /** * When the authenticator was last used, or null */ dateUsed: string | null; }>; /** * Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization */ canReset2fa?: boolean; /** * User ID */ id: string; /** * Display name: the user's name, or their email or username if no name is set */ name: string; /** * Username */ username: string; /** * Primary email address */ email: string; /** * Gravatar URL for the primary email address */ avatarUrl: string; /** * Whether the account is active */ isActive: boolean; /** * Whether the account is suspended. Suspended users can't sign in */ isSuspended: boolean; /** * Whether the user has a password set */ hasPasswordAuth: boolean; /** * Whether the account is managed, which stops the user from changing their username, password and similar details */ isManaged: boolean; /** * When the account was created */ dateJoined: string; /** * When the user last signed in, or null */ lastLogin: string | null; /** * Whether the user has two-factor authentication enabled */ has2fa: boolean; /** * When the user was last active, or null */ lastActive: string | null; /** * Whether the user is a superuser */ isSuperuser: boolean; /** * Whether the user has staff status */ isStaff: boolean; /** * Deprecated. Always an empty object */ experiments: { [key: string]: string; }; /** * Email addresses of the user. Only included for the requesting user or superusers; empty otherwise */ emails: Array<{ /** * Email ID */ id: string; /** * Email address */ email: string; /** * Whether the email address is verified */ is_verified: boolean; }>; } | null; /** * Sentry App that acted, if one did */ sentry_app: { /** * ID of the Sentry App */ id: string; /** * Name of the Sentry App */ name: string; /** * Slug of the Sentry App */ slug: string; /** * Avatars of the Sentry App */ avatars: Array<{ /** * Avatar type: `default` or `upload` */ avatarType: string; /** * Unique identifier of the uploaded avatar file, or an empty string if none is set */ avatarUuid: string; /** * Absolute URL of the avatar image */ avatarUrl: string; /** * Whether this is the color logo (`true`) or the simple icon (`false`) */ color: boolean; /** * Kind of image: `logo` for the color logo or `icon` for the simple icon */ photoType: string; }>; } | null; /** * Type of the activity, which decides the shape of data */ type: 'auto_set_ongoing'; /** * Details of the activity, which depend on type */ data: { /** * Days after which the issue became ongoing */ after_days?: number | null; /** * Whether a user marked the issue reviewed, rather than time passing */ manually?: boolean; }; /** * When the activity happened (ISO 8601) */ dateCreated: string; /** * Where the action came from, such as web, api or mcp: */ source?: string | null; } | { /** * ID of the activity, or 0 for a first-seen item built from the issue */ id: string; /** * ID to pass to the notes endpoints for a comment, otherwise null */ commentId: string | null; /** * User who acted, or null for Sentry, an integration or a Sentry App */ user: { /** * SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access */ identities?: Array<{ /** * SSO identity ID */ id: string; /** * User's identifier at the auth provider */ name: string; /** * Organization the auth provider belongs to */ organization: { /** * Organization slug */ slug: string; /** * Organization name */ name: string; }; /** * Auth provider of the identity */ provider: { /** * Auth provider key, such as google or saml2 */ id: string; /** * Display name of the auth provider */ name: string; }; /** * When the identity was last verified by signing in through the auth provider */ dateVerified: string; /** * When the identity was last synced from the auth provider */ dateSynced: string; }>; /** * User avatar */ avatar?: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Two-factor authenticators of the user, without backup methods such as recovery codes */ authenticators?: Array<{ /** * Authenticator ID */ id: string; /** * Authenticator type, such as totp, sms, u2f or recovery */ type: string; /** * Display name of the authenticator type */ name: string; /** * When the authenticator was added */ dateCreated: string; /** * When the authenticator was last used, or null */ dateUsed: string | null; }>; /** * Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization */ canReset2fa?: boolean; /** * User ID */ id: string; /** * Display name: the user's name, or their email or username if no name is set */ name: string; /** * Username */ username: string; /** * Primary email address */ email: string; /** * Gravatar URL for the primary email address */ avatarUrl: string; /** * Whether the account is active */ isActive: boolean; /** * Whether the account is suspended. Suspended users can't sign in */ isSuspended: boolean; /** * Whether the user has a password set */ hasPasswordAuth: boolean; /** * Whether the account is managed, which stops the user from changing their username, password and similar details */ isManaged: boolean; /** * When the account was created */ dateJoined: string; /** * When the user last signed in, or null */ lastLogin: string | null; /** * Whether the user has two-factor authentication enabled */ has2fa: boolean; /** * When the user was last active, or null */ lastActive: string | null; /** * Whether the user is a superuser */ isSuperuser: boolean; /** * Whether the user has staff status */ isStaff: boolean; /** * Deprecated. Always an empty object */ experiments: { [key: string]: string; }; /** * Email addresses of the user. Only included for the requesting user or superusers; empty otherwise */ emails: Array<{ /** * Email ID */ id: string; /** * Email address */ email: string; /** * Whether the email address is verified */ is_verified: boolean; }>; } | null; /** * Sentry App that acted, if one did */ sentry_app: { /** * ID of the Sentry App */ id: string; /** * Name of the Sentry App */ name: string; /** * Slug of the Sentry App */ slug: string; /** * Avatars of the Sentry App */ avatars: Array<{ /** * Avatar type: `default` or `upload` */ avatarType: string; /** * Unique identifier of the uploaded avatar file, or an empty string if none is set */ avatarUuid: string; /** * Absolute URL of the avatar image */ avatarUrl: string; /** * Whether this is the color logo (`true`) or the simple icon (`false`) */ color: boolean; /** * Kind of image: `logo` for the color logo or `icon` for the simple icon */ photoType: string; }>; } | null; /** * Type of the activity, which decides the shape of data */ type: 'create_issue'; /** * Details of the activity, which depend on type */ data: { /** * Title of the external issue */ title?: string; /** * Integration provider, such as Jira or GitHub */ provider?: string; /** * URL of the external issue */ location?: string; /** * Label of the external issue, such as PROJ-123 */ label?: string; /** * Whether the external issue was created, rather than linked */ new?: boolean | null; }; /** * When the activity happened (ISO 8601) */ dateCreated: string; /** * Where the action came from, such as web, api or mcp: */ source?: string | null; } | { /** * ID of the activity, or 0 for a first-seen item built from the issue */ id: string; /** * ID to pass to the notes endpoints for a comment, otherwise null */ commentId: string | null; /** * User who acted, or null for Sentry, an integration or a Sentry App */ user: { /** * SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access */ identities?: Array<{ /** * SSO identity ID */ id: string; /** * User's identifier at the auth provider */ name: string; /** * Organization the auth provider belongs to */ organization: { /** * Organization slug */ slug: string; /** * Organization name */ name: string; }; /** * Auth provider of the identity */ provider: { /** * Auth provider key, such as google or saml2 */ id: string; /** * Display name of the auth provider */ name: string; }; /** * When the identity was last verified by signing in through the auth provider */ dateVerified: string; /** * When the identity was last synced from the auth provider */ dateSynced: string; }>; /** * User avatar */ avatar?: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Two-factor authenticators of the user, without backup methods such as recovery codes */ authenticators?: Array<{ /** * Authenticator ID */ id: string; /** * Authenticator type, such as totp, sms, u2f or recovery */ type: string; /** * Display name of the authenticator type */ name: string; /** * When the authenticator was added */ dateCreated: string; /** * When the authenticator was last used, or null */ dateUsed: string | null; }>; /** * Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization */ canReset2fa?: boolean; /** * User ID */ id: string; /** * Display name: the user's name, or their email or username if no name is set */ name: string; /** * Username */ username: string; /** * Primary email address */ email: string; /** * Gravatar URL for the primary email address */ avatarUrl: string; /** * Whether the account is active */ isActive: boolean; /** * Whether the account is suspended. Suspended users can't sign in */ isSuspended: boolean; /** * Whether the user has a password set */ hasPasswordAuth: boolean; /** * Whether the account is managed, which stops the user from changing their username, password and similar details */ isManaged: boolean; /** * When the account was created */ dateJoined: string; /** * When the user last signed in, or null */ lastLogin: string | null; /** * Whether the user has two-factor authentication enabled */ has2fa: boolean; /** * When the user was last active, or null */ lastActive: string | null; /** * Whether the user is a superuser */ isSuperuser: boolean; /** * Whether the user has staff status */ isStaff: boolean; /** * Deprecated. Always an empty object */ experiments: { [key: string]: string; }; /** * Email addresses of the user. Only included for the requesting user or superusers; empty otherwise */ emails: Array<{ /** * Email ID */ id: string; /** * Email address */ email: string; /** * Whether the email address is verified */ is_verified: boolean; }>; } | null; /** * Sentry App that acted, if one did */ sentry_app: { /** * ID of the Sentry App */ id: string; /** * Name of the Sentry App */ name: string; /** * Slug of the Sentry App */ slug: string; /** * Avatars of the Sentry App */ avatars: Array<{ /** * Avatar type: `default` or `upload` */ avatarType: string; /** * Unique identifier of the uploaded avatar file, or an empty string if none is set */ avatarUuid: string; /** * Absolute URL of the avatar image */ avatarUrl: string; /** * Whether this is the color logo (`true`) or the simple icon (`false`) */ color: boolean; /** * Kind of image: `logo` for the color logo or `icon` for the simple icon */ photoType: string; }>; } | null; /** * Type of the activity, which decides the shape of data */ type: 'deleted_attachment'; /** * Details of the activity, which depend on type */ data: { [key: string]: unknown; }; /** * When the activity happened (ISO 8601) */ dateCreated: string; /** * Where the action came from, such as web, api or mcp: */ source?: string | null; } | { /** * ID of the activity, or 0 for a first-seen item built from the issue */ id: string; /** * ID to pass to the notes endpoints for a comment, otherwise null */ commentId: string | null; /** * User who acted, or null for Sentry, an integration or a Sentry App */ user: { /** * SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access */ identities?: Array<{ /** * SSO identity ID */ id: string; /** * User's identifier at the auth provider */ name: string; /** * Organization the auth provider belongs to */ organization: { /** * Organization slug */ slug: string; /** * Organization name */ name: string; }; /** * Auth provider of the identity */ provider: { /** * Auth provider key, such as google or saml2 */ id: string; /** * Display name of the auth provider */ name: string; }; /** * When the identity was last verified by signing in through the auth provider */ dateVerified: string; /** * When the identity was last synced from the auth provider */ dateSynced: string; }>; /** * User avatar */ avatar?: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Two-factor authenticators of the user, without backup methods such as recovery codes */ authenticators?: Array<{ /** * Authenticator ID */ id: string; /** * Authenticator type, such as totp, sms, u2f or recovery */ type: string; /** * Display name of the authenticator type */ name: string; /** * When the authenticator was added */ dateCreated: string; /** * When the authenticator was last used, or null */ dateUsed: string | null; }>; /** * Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization */ canReset2fa?: boolean; /** * User ID */ id: string; /** * Display name: the user's name, or their email or username if no name is set */ name: string; /** * Username */ username: string; /** * Primary email address */ email: string; /** * Gravatar URL for the primary email address */ avatarUrl: string; /** * Whether the account is active */ isActive: boolean; /** * Whether the account is suspended. Suspended users can't sign in */ isSuspended: boolean; /** * Whether the user has a password set */ hasPasswordAuth: boolean; /** * Whether the account is managed, which stops the user from changing their username, password and similar details */ isManaged: boolean; /** * When the account was created */ dateJoined: string; /** * When the user last signed in, or null */ lastLogin: string | null; /** * Whether the user has two-factor authentication enabled */ has2fa: boolean; /** * When the user was last active, or null */ lastActive: string | null; /** * Whether the user is a superuser */ isSuperuser: boolean; /** * Whether the user has staff status */ isStaff: boolean; /** * Deprecated. Always an empty object */ experiments: { [key: string]: string; }; /** * Email addresses of the user. Only included for the requesting user or superusers; empty otherwise */ emails: Array<{ /** * Email ID */ id: string; /** * Email address */ email: string; /** * Whether the email address is verified */ is_verified: boolean; }>; } | null; /** * Sentry App that acted, if one did */ sentry_app: { /** * ID of the Sentry App */ id: string; /** * Name of the Sentry App */ name: string; /** * Slug of the Sentry App */ slug: string; /** * Avatars of the Sentry App */ avatars: Array<{ /** * Avatar type: `default` or `upload` */ avatarType: string; /** * Unique identifier of the uploaded avatar file, or an empty string if none is set */ avatarUuid: string; /** * Absolute URL of the avatar image */ avatarUrl: string; /** * Whether this is the color logo (`true`) or the simple icon (`false`) */ color: boolean; /** * Kind of image: `logo` for the color logo or `icon` for the simple icon */ photoType: string; }>; } | null; /** * Type of the activity, which decides the shape of data */ type: 'first_seen'; /** * Details of the activity, which depend on type */ data: { /** * Priority the issue was created with */ priority: 'high' | 'medium' | 'low' | null; }; /** * When the activity happened (ISO 8601) */ dateCreated: string; /** * Where the action came from, such as web, api or mcp: */ source?: string | null; } | { /** * ID of the activity, or 0 for a first-seen item built from the issue */ id: string; /** * ID to pass to the notes endpoints for a comment, otherwise null */ commentId: string | null; /** * User who acted, or null for Sentry, an integration or a Sentry App */ user: { /** * SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access */ identities?: Array<{ /** * SSO identity ID */ id: string; /** * User's identifier at the auth provider */ name: string; /** * Organization the auth provider belongs to */ organization: { /** * Organization slug */ slug: string; /** * Organization name */ name: string; }; /** * Auth provider of the identity */ provider: { /** * Auth provider key, such as google or saml2 */ id: string; /** * Display name of the auth provider */ name: string; }; /** * When the identity was last verified by signing in through the auth provider */ dateVerified: string; /** * When the identity was last synced from the auth provider */ dateSynced: string; }>; /** * User avatar */ avatar?: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Two-factor authenticators of the user, without backup methods such as recovery codes */ authenticators?: Array<{ /** * Authenticator ID */ id: string; /** * Authenticator type, such as totp, sms, u2f or recovery */ type: string; /** * Display name of the authenticator type */ name: string; /** * When the authenticator was added */ dateCreated: string; /** * When the authenticator was last used, or null */ dateUsed: string | null; }>; /** * Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization */ canReset2fa?: boolean; /** * User ID */ id: string; /** * Display name: the user's name, or their email or username if no name is set */ name: string; /** * Username */ username: string; /** * Primary email address */ email: string; /** * Gravatar URL for the primary email address */ avatarUrl: string; /** * Whether the account is active */ isActive: boolean; /** * Whether the account is suspended. Suspended users can't sign in */ isSuspended: boolean; /** * Whether the user has a password set */ hasPasswordAuth: boolean; /** * Whether the account is managed, which stops the user from changing their username, password and similar details */ isManaged: boolean; /** * When the account was created */ dateJoined: string; /** * When the user last signed in, or null */ lastLogin: string | null; /** * Whether the user has two-factor authentication enabled */ has2fa: boolean; /** * When the user was last active, or null */ lastActive: string | null; /** * Whether the user is a superuser */ isSuperuser: boolean; /** * Whether the user has staff status */ isStaff: boolean; /** * Deprecated. Always an empty object */ experiments: { [key: string]: string; }; /** * Email addresses of the user. Only included for the requesting user or superusers; empty otherwise */ emails: Array<{ /** * Email ID */ id: string; /** * Email address */ email: string; /** * Whether the email address is verified */ is_verified: boolean; }>; } | null; /** * Sentry App that acted, if one did */ sentry_app: { /** * ID of the Sentry App */ id: string; /** * Name of the Sentry App */ name: string; /** * Slug of the Sentry App */ slug: string; /** * Avatars of the Sentry App */ avatars: Array<{ /** * Avatar type: `default` or `upload` */ avatarType: string; /** * Unique identifier of the uploaded avatar file, or an empty string if none is set */ avatarUuid: string; /** * Absolute URL of the avatar image */ avatarUrl: string; /** * Whether this is the color logo (`true`) or the simple icon (`false`) */ color: boolean; /** * Kind of image: `logo` for the color logo or `icon` for the simple icon */ photoType: string; }>; } | null; /** * Type of the activity, which decides the shape of data */ type: 'impact_assessment'; /** * Details of the activity, which depend on type */ data: { /** * Impact score from 0 to 100 */ score: number | null; /** * Impact level that the score falls in */ level: 'super_low' | 'low' | 'moderate' | 'high' | 'super_high' | null; /** * What the impact is */ description: string; /** * Evidence for the assessment */ citations: Array<{ /** * What is claimed */ claim: string; /** * What backs it */ reference: string; /** * Where it comes from */ source: string; }>; /** * ID of the event the assessment is based on */ sourceEventId: string; }; /** * When the activity happened (ISO 8601) */ dateCreated: string; /** * Where the action came from, such as web, api or mcp: */ source?: string | null; } | { /** * ID of the activity, or 0 for a first-seen item built from the issue */ id: string; /** * ID to pass to the notes endpoints for a comment, otherwise null */ commentId: string | null; /** * User who acted, or null for Sentry, an integration or a Sentry App */ user: { /** * SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access */ identities?: Array<{ /** * SSO identity ID */ id: string; /** * User's identifier at the auth provider */ name: string; /** * Organization the auth provider belongs to */ organization: { /** * Organization slug */ slug: string; /** * Organization name */ name: string; }; /** * Auth provider of the identity */ provider: { /** * Auth provider key, such as google or saml2 */ id: string; /** * Display name of the auth provider */ name: string; }; /** * When the identity was last verified by signing in through the auth provider */ dateVerified: string; /** * When the identity was last synced from the auth provider */ dateSynced: string; }>; /** * User avatar */ avatar?: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Two-factor authenticators of the user, without backup methods such as recovery codes */ authenticators?: Array<{ /** * Authenticator ID */ id: string; /** * Authenticator type, such as totp, sms, u2f or recovery */ type: string; /** * Display name of the authenticator type */ name: string; /** * When the authenticator was added */ dateCreated: string; /** * When the authenticator was last used, or null */ dateUsed: string | null; }>; /** * Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization */ canReset2fa?: boolean; /** * User ID */ id: string; /** * Display name: the user's name, or their email or username if no name is set */ name: string; /** * Username */ username: string; /** * Primary email address */ email: string; /** * Gravatar URL for the primary email address */ avatarUrl: string; /** * Whether the account is active */ isActive: boolean; /** * Whether the account is suspended. Suspended users can't sign in */ isSuspended: boolean; /** * Whether the user has a password set */ hasPasswordAuth: boolean; /** * Whether the account is managed, which stops the user from changing their username, password and similar details */ isManaged: boolean; /** * When the account was created */ dateJoined: string; /** * When the user last signed in, or null */ lastLogin: string | null; /** * Whether the user has two-factor authentication enabled */ has2fa: boolean; /** * When the user was last active, or null */ lastActive: string | null; /** * Whether the user is a superuser */ isSuperuser: boolean; /** * Whether the user has staff status */ isStaff: boolean; /** * Deprecated. Always an empty object */ experiments: { [key: string]: string; }; /** * Email addresses of the user. Only included for the requesting user or superusers; empty otherwise */ emails: Array<{ /** * Email ID */ id: string; /** * Email address */ email: string; /** * Whether the email address is verified */ is_verified: boolean; }>; } | null; /** * Sentry App that acted, if one did */ sentry_app: { /** * ID of the Sentry App */ id: string; /** * Name of the Sentry App */ name: string; /** * Slug of the Sentry App */ slug: string; /** * Avatars of the Sentry App */ avatars: Array<{ /** * Avatar type: `default` or `upload` */ avatarType: string; /** * Unique identifier of the uploaded avatar file, or an empty string if none is set */ avatarUuid: string; /** * Absolute URL of the avatar image */ avatarUrl: string; /** * Whether this is the color logo (`true`) or the simple icon (`false`) */ color: boolean; /** * Kind of image: `logo` for the color logo or `icon` for the simple icon */ photoType: string; }>; } | null; /** * Type of the activity, which decides the shape of data */ type: 'investigation_linked'; /** * Details of the activity, which depend on type */ data: { /** * The investigation that linked the issue, or null once it's deleted */ investigation: { /** * ID of the investigation */ id: string; /** * Investigation title */ title: string; /** * Whether the investigation is archived */ status: 'active' | 'archived'; } | null; /** * ID of the hypothesis */ hypothesisId: string; /** * The confirmed hypothesis whose evidence named the issue */ hypothesisStatement: string; /** * Why the evidence links the issue */ reason: string | null; }; /** * When the activity happened (ISO 8601) */ dateCreated: string; /** * Where the action came from, such as web, api or mcp: */ source?: string | null; } | { /** * ID of the activity, or 0 for a first-seen item built from the issue */ id: string; /** * ID to pass to the notes endpoints for a comment, otherwise null */ commentId: string | null; /** * User who acted, or null for Sentry, an integration or a Sentry App */ user: { /** * SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access */ identities?: Array<{ /** * SSO identity ID */ id: string; /** * User's identifier at the auth provider */ name: string; /** * Organization the auth provider belongs to */ organization: { /** * Organization slug */ slug: string; /** * Organization name */ name: string; }; /** * Auth provider of the identity */ provider: { /** * Auth provider key, such as google or saml2 */ id: string; /** * Display name of the auth provider */ name: string; }; /** * When the identity was last verified by signing in through the auth provider */ dateVerified: string; /** * When the identity was last synced from the auth provider */ dateSynced: string; }>; /** * User avatar */ avatar?: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Two-factor authenticators of the user, without backup methods such as recovery codes */ authenticators?: Array<{ /** * Authenticator ID */ id: string; /** * Authenticator type, such as totp, sms, u2f or recovery */ type: string; /** * Display name of the authenticator type */ name: string; /** * When the authenticator was added */ dateCreated: string; /** * When the authenticator was last used, or null */ dateUsed: string | null; }>; /** * Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization */ canReset2fa?: boolean; /** * User ID */ id: string; /** * Display name: the user's name, or their email or username if no name is set */ name: string; /** * Username */ username: string; /** * Primary email address */ email: string; /** * Gravatar URL for the primary email address */ avatarUrl: string; /** * Whether the account is active */ isActive: boolean; /** * Whether the account is suspended. Suspended users can't sign in */ isSuspended: boolean; /** * Whether the user has a password set */ hasPasswordAuth: boolean; /** * Whether the account is managed, which stops the user from changing their username, password and similar details */ isManaged: boolean; /** * When the account was created */ dateJoined: string; /** * When the user last signed in, or null */ lastLogin: string | null; /** * Whether the user has two-factor authentication enabled */ has2fa: boolean; /** * When the user was last active, or null */ lastActive: string | null; /** * Whether the user is a superuser */ isSuperuser: boolean; /** * Whether the user has staff status */ isStaff: boolean; /** * Deprecated. Always an empty object */ experiments: { [key: string]: string; }; /** * Email addresses of the user. Only included for the requesting user or superusers; empty otherwise */ emails: Array<{ /** * Email ID */ id: string; /** * Email address */ email: string; /** * Whether the email address is verified */ is_verified: boolean; }>; } | null; /** * Sentry App that acted, if one did */ sentry_app: { /** * ID of the Sentry App */ id: string; /** * Name of the Sentry App */ name: string; /** * Slug of the Sentry App */ slug: string; /** * Avatars of the Sentry App */ avatars: Array<{ /** * Avatar type: `default` or `upload` */ avatarType: string; /** * Unique identifier of the uploaded avatar file, or an empty string if none is set */ avatarUuid: string; /** * Absolute URL of the avatar image */ avatarUrl: string; /** * Whether this is the color logo (`true`) or the simple icon (`false`) */ color: boolean; /** * Kind of image: `logo` for the color logo or `icon` for the simple icon */ photoType: string; }>; } | null; /** * Type of the activity, which decides the shape of data */ type: 'mark_reviewed'; /** * Details of the activity, which depend on type */ data: { [key: string]: unknown; }; /** * When the activity happened (ISO 8601) */ dateCreated: string; /** * Where the action came from, such as web, api or mcp: */ source?: string | null; } | { /** * ID of the activity, or 0 for a first-seen item built from the issue */ id: string; /** * ID to pass to the notes endpoints for a comment, otherwise null */ commentId: string | null; /** * User who acted, or null for Sentry, an integration or a Sentry App */ user: { /** * SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access */ identities?: Array<{ /** * SSO identity ID */ id: string; /** * User's identifier at the auth provider */ name: string; /** * Organization the auth provider belongs to */ organization: { /** * Organization slug */ slug: string; /** * Organization name */ name: string; }; /** * Auth provider of the identity */ provider: { /** * Auth provider key, such as google or saml2 */ id: string; /** * Display name of the auth provider */ name: string; }; /** * When the identity was last verified by signing in through the auth provider */ dateVerified: string; /** * When the identity was last synced from the auth provider */ dateSynced: string; }>; /** * User avatar */ avatar?: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Two-factor authenticators of the user, without backup methods such as recovery codes */ authenticators?: Array<{ /** * Authenticator ID */ id: string; /** * Authenticator type, such as totp, sms, u2f or recovery */ type: string; /** * Display name of the authenticator type */ name: string; /** * When the authenticator was added */ dateCreated: string; /** * When the authenticator was last used, or null */ dateUsed: string | null; }>; /** * Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization */ canReset2fa?: boolean; /** * User ID */ id: string; /** * Display name: the user's name, or their email or username if no name is set */ name: string; /** * Username */ username: string; /** * Primary email address */ email: string; /** * Gravatar URL for the primary email address */ avatarUrl: string; /** * Whether the account is active */ isActive: boolean; /** * Whether the account is suspended. Suspended users can't sign in */ isSuspended: boolean; /** * Whether the user has a password set */ hasPasswordAuth: boolean; /** * Whether the account is managed, which stops the user from changing their username, password and similar details */ isManaged: boolean; /** * When the account was created */ dateJoined: string; /** * When the user last signed in, or null */ lastLogin: string | null; /** * Whether the user has two-factor authentication enabled */ has2fa: boolean; /** * When the user was last active, or null */ lastActive: string | null; /** * Whether the user is a superuser */ isSuperuser: boolean; /** * Whether the user has staff status */ isStaff: boolean; /** * Deprecated. Always an empty object */ experiments: { [key: string]: string; }; /** * Email addresses of the user. Only included for the requesting user or superusers; empty otherwise */ emails: Array<{ /** * Email ID */ id: string; /** * Email address */ email: string; /** * Whether the email address is verified */ is_verified: boolean; }>; } | null; /** * Sentry App that acted, if one did */ sentry_app: { /** * ID of the Sentry App */ id: string; /** * Name of the Sentry App */ name: string; /** * Slug of the Sentry App */ slug: string; /** * Avatars of the Sentry App */ avatars: Array<{ /** * Avatar type: `default` or `upload` */ avatarType: string; /** * Unique identifier of the uploaded avatar file, or an empty string if none is set */ avatarUuid: string; /** * Absolute URL of the avatar image */ avatarUrl: string; /** * Whether this is the color logo (`true`) or the simple icon (`false`) */ color: boolean; /** * Kind of image: `logo` for the color logo or `icon` for the simple icon */ photoType: string; }>; } | null; /** * Type of the activity, which decides the shape of data */ type: 'merge'; /** * Details of the activity, which depend on type */ data: { /** * Issues merged into this one */ issues: Array<{ /** * ID of the merged issue */ id: number | string; }>; }; /** * When the activity happened (ISO 8601) */ dateCreated: string; /** * Where the action came from, such as web, api or mcp: */ source?: string | null; } | { /** * ID of the activity, or 0 for a first-seen item built from the issue */ id: string; /** * ID to pass to the notes endpoints for a comment, otherwise null */ commentId: string | null; /** * User who acted, or null for Sentry, an integration or a Sentry App */ user: { /** * SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access */ identities?: Array<{ /** * SSO identity ID */ id: string; /** * User's identifier at the auth provider */ name: string; /** * Organization the auth provider belongs to */ organization: { /** * Organization slug */ slug: string; /** * Organization name */ name: string; }; /** * Auth provider of the identity */ provider: { /** * Auth provider key, such as google or saml2 */ id: string; /** * Display name of the auth provider */ name: string; }; /** * When the identity was last verified by signing in through the auth provider */ dateVerified: string; /** * When the identity was last synced from the auth provider */ dateSynced: string; }>; /** * User avatar */ avatar?: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Two-factor authenticators of the user, without backup methods such as recovery codes */ authenticators?: Array<{ /** * Authenticator ID */ id: string; /** * Authenticator type, such as totp, sms, u2f or recovery */ type: string; /** * Display name of the authenticator type */ name: string; /** * When the authenticator was added */ dateCreated: string; /** * When the authenticator was last used, or null */ dateUsed: string | null; }>; /** * Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization */ canReset2fa?: boolean; /** * User ID */ id: string; /** * Display name: the user's name, or their email or username if no name is set */ name: string; /** * Username */ username: string; /** * Primary email address */ email: string; /** * Gravatar URL for the primary email address */ avatarUrl: string; /** * Whether the account is active */ isActive: boolean; /** * Whether the account is suspended. Suspended users can't sign in */ isSuspended: boolean; /** * Whether the user has a password set */ hasPasswordAuth: boolean; /** * Whether the account is managed, which stops the user from changing their username, password and similar details */ isManaged: boolean; /** * When the account was created */ dateJoined: string; /** * When the user last signed in, or null */ lastLogin: string | null; /** * Whether the user has two-factor authentication enabled */ has2fa: boolean; /** * When the user was last active, or null */ lastActive: string | null; /** * Whether the user is a superuser */ isSuperuser: boolean; /** * Whether the user has staff status */ isStaff: boolean; /** * Deprecated. Always an empty object */ experiments: { [key: string]: string; }; /** * Email addresses of the user. Only included for the requesting user or superusers; empty otherwise */ emails: Array<{ /** * Email ID */ id: string; /** * Email address */ email: string; /** * Whether the email address is verified */ is_verified: boolean; }>; } | null; /** * Sentry App that acted, if one did */ sentry_app: { /** * ID of the Sentry App */ id: string; /** * Name of the Sentry App */ name: string; /** * Slug of the Sentry App */ slug: string; /** * Avatars of the Sentry App */ avatars: Array<{ /** * Avatar type: `default` or `upload` */ avatarType: string; /** * Unique identifier of the uploaded avatar file, or an empty string if none is set */ avatarUuid: string; /** * Absolute URL of the avatar image */ avatarUrl: string; /** * Whether this is the color logo (`true`) or the simple icon (`false`) */ color: boolean; /** * Kind of image: `logo` for the color logo or `icon` for the simple icon */ photoType: string; }>; } | null; /** * Type of the activity, which decides the shape of data */ type: 'note'; /** * Details of the activity, which depend on type */ data: { /** * Text of the comment, in Markdown */ text: string; /** * ID of the comment */ comment_id?: number; /** * Users the comment mentions */ mentions?: Array<{ /** * Display name of the mentioned user */ name: string; /** * Email of the mentioned user */ email: string; /** * Username of the mentioned user */ username: string; }>; }; /** * When the activity happened (ISO 8601) */ dateCreated: string; /** * Where the action came from, such as web, api or mcp: */ source?: string | null; } | { /** * ID of the activity, or 0 for a first-seen item built from the issue */ id: string; /** * ID to pass to the notes endpoints for a comment, otherwise null */ commentId: string | null; /** * User who acted, or null for Sentry, an integration or a Sentry App */ user: { /** * SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access */ identities?: Array<{ /** * SSO identity ID */ id: string; /** * User's identifier at the auth provider */ name: string; /** * Organization the auth provider belongs to */ organization: { /** * Organization slug */ slug: string; /** * Organization name */ name: string; }; /** * Auth provider of the identity */ provider: { /** * Auth provider key, such as google or saml2 */ id: string; /** * Display name of the auth provider */ name: string; }; /** * When the identity was last verified by signing in through the auth provider */ dateVerified: string; /** * When the identity was last synced from the auth provider */ dateSynced: string; }>; /** * User avatar */ avatar?: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Two-factor authenticators of the user, without backup methods such as recovery codes */ authenticators?: Array<{ /** * Authenticator ID */ id: string; /** * Authenticator type, such as totp, sms, u2f or recovery */ type: string; /** * Display name of the authenticator type */ name: string; /** * When the authenticator was added */ dateCreated: string; /** * When the authenticator was last used, or null */ dateUsed: string | null; }>; /** * Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization */ canReset2fa?: boolean; /** * User ID */ id: string; /** * Display name: the user's name, or their email or username if no name is set */ name: string; /** * Username */ username: string; /** * Primary email address */ email: string; /** * Gravatar URL for the primary email address */ avatarUrl: string; /** * Whether the account is active */ isActive: boolean; /** * Whether the account is suspended. Suspended users can't sign in */ isSuspended: boolean; /** * Whether the user has a password set */ hasPasswordAuth: boolean; /** * Whether the account is managed, which stops the user from changing their username, password and similar details */ isManaged: boolean; /** * When the account was created */ dateJoined: string; /** * When the user last signed in, or null */ lastLogin: string | null; /** * Whether the user has two-factor authentication enabled */ has2fa: boolean; /** * When the user was last active, or null */ lastActive: string | null; /** * Whether the user is a superuser */ isSuperuser: boolean; /** * Whether the user has staff status */ isStaff: boolean; /** * Deprecated. Always an empty object */ experiments: { [key: string]: string; }; /** * Email addresses of the user. Only included for the requesting user or superusers; empty otherwise */ emails: Array<{ /** * Email ID */ id: string; /** * Email address */ email: string; /** * Whether the email address is verified */ is_verified: boolean; }>; } | null; /** * Sentry App that acted, if one did */ sentry_app: { /** * ID of the Sentry App */ id: string; /** * Name of the Sentry App */ name: string; /** * Slug of the Sentry App */ slug: string; /** * Avatars of the Sentry App */ avatars: Array<{ /** * Avatar type: `default` or `upload` */ avatarType: string; /** * Unique identifier of the uploaded avatar file, or an empty string if none is set */ avatarUuid: string; /** * Absolute URL of the avatar image */ avatarUrl: string; /** * Whether this is the color logo (`true`) or the simple icon (`false`) */ color: boolean; /** * Kind of image: `logo` for the color logo or `icon` for the simple icon */ photoType: string; }>; } | null; /** * Type of the activity, which decides the shape of data */ type: 'pull_request_closed'; /** * Details of the activity, which depend on type */ data: { /** * The pull request */ pullRequest?: { /** * Number or key of the pull request in the provider */ id: string; /** * Title of the pull request */ title: string | null; /** * Description of the pull request */ message: string | null; /** * When Sentry recorded the pull request (ISO 8601) */ dateCreated: string; /** * When the pull request was merged (ISO 8601). Null when it isn't merged */ mergedAt: string | null; /** * State of the pull request: merged, open, closed, draft or unknown. Null when not known */ status: 'merged' | 'open' | 'closed' | 'draft' | 'unknown' | null; /** * Repository of the pull request */ repository: { /** * URL of the repository */ url?: string | null; /** * Provider of the repository, with its id and name */ provider?: { [key: string]: string; }; /** * Status of the repository */ status?: 'active' | 'disabled' | 'pending_deletion' | 'deletion_in_progress'; /** * ID of the repository's integration. Null for repositories added without an integration */ integrationId?: string | null; /** * Identifier of the repository in the provider, such as owner/name */ externalSlug?: string | null; /** * ID of the repository in the provider */ externalId?: string | null; /** * Settings of the repository. Only set when expand includes settings. Null when it has none */ settings?: { /** * Whether AI code review is on for the repository */ enabledCodeReview: boolean; /** * Pull request events that start a code review: on_new_commit or on_ready_for_review */ codeReviewTriggers: Array; } | null; /** * ID of the repository */ id: string; /** * Name of the repository, such as owner/name */ name: string; /** * When the repository was added to Sentry (ISO 8601) */ dateCreated: string; }; /** * Author of the pull request, or an empty object when it has none */ author: { /** * SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access */ identities?: Array<{ /** * SSO identity ID */ id: string; /** * User's identifier at the auth provider */ name: string; /** * Organization the auth provider belongs to */ organization: { /** * Organization slug */ slug: string; /** * Organization name */ name: string; }; /** * Auth provider of the identity */ provider: { /** * Auth provider key, such as google or saml2 */ id: string; /** * Display name of the auth provider */ name: string; }; /** * When the identity was last verified by signing in through the auth provider */ dateVerified: string; /** * When the identity was last synced from the auth provider */ dateSynced: string; }>; /** * User avatar */ avatar?: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Two-factor authenticators of the user, without backup methods such as recovery codes */ authenticators?: Array<{ /** * Authenticator ID */ id: string; /** * Authenticator type, such as totp, sms, u2f or recovery */ type: string; /** * Display name of the authenticator type */ name: string; /** * When the authenticator was added */ dateCreated: string; /** * When the authenticator was last used, or null */ dateUsed: string | null; }>; /** * Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization */ canReset2fa?: boolean; /** * User ID */ id: string; /** * Display name: the user's name, or their email or username if no name is set */ name: string; /** * Username */ username: string; /** * Primary email address */ email: string; /** * Gravatar URL for the primary email address */ avatarUrl: string; /** * Whether the account is active */ isActive: boolean; /** * Whether the account is suspended. Suspended users can't sign in */ isSuspended: boolean; /** * Whether the user has a password set */ hasPasswordAuth: boolean; /** * Whether the account is managed, which stops the user from changing their username, password and similar details */ isManaged: boolean; /** * When the account was created */ dateJoined: string; /** * When the user last signed in, or null */ lastLogin: string | null; /** * Whether the user has two-factor authentication enabled */ has2fa: boolean; /** * When the user was last active, or null */ lastActive: string | null; /** * Whether the user is a superuser */ isSuperuser: boolean; /** * Whether the user has staff status */ isStaff: boolean; /** * Deprecated. Always an empty object */ experiments: { [key: string]: string; }; /** * Email addresses of the user. Only included for the requesting user or superusers; empty otherwise */ emails: Array<{ /** * Email ID */ id: string; /** * Email address */ email: string; /** * Whether the email address is verified */ is_verified: boolean; }>; } | { /** * Commit author name */ name: string | null; /** * Commit author email */ email: string; } | { [key: string]: unknown; }; /** * URL of the pull request in the provider, or null when the provider can't build one */ externalUrl: string | null; } | null; }; /** * When the activity happened (ISO 8601) */ dateCreated: string; /** * Where the action came from, such as web, api or mcp: */ source?: string | null; } | { /** * ID of the activity, or 0 for a first-seen item built from the issue */ id: string; /** * ID to pass to the notes endpoints for a comment, otherwise null */ commentId: string | null; /** * User who acted, or null for Sentry, an integration or a Sentry App */ user: { /** * SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access */ identities?: Array<{ /** * SSO identity ID */ id: string; /** * User's identifier at the auth provider */ name: string; /** * Organization the auth provider belongs to */ organization: { /** * Organization slug */ slug: string; /** * Organization name */ name: string; }; /** * Auth provider of the identity */ provider: { /** * Auth provider key, such as google or saml2 */ id: string; /** * Display name of the auth provider */ name: string; }; /** * When the identity was last verified by signing in through the auth provider */ dateVerified: string; /** * When the identity was last synced from the auth provider */ dateSynced: string; }>; /** * User avatar */ avatar?: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Two-factor authenticators of the user, without backup methods such as recovery codes */ authenticators?: Array<{ /** * Authenticator ID */ id: string; /** * Authenticator type, such as totp, sms, u2f or recovery */ type: string; /** * Display name of the authenticator type */ name: string; /** * When the authenticator was added */ dateCreated: string; /** * When the authenticator was last used, or null */ dateUsed: string | null; }>; /** * Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization */ canReset2fa?: boolean; /** * User ID */ id: string; /** * Display name: the user's name, or their email or username if no name is set */ name: string; /** * Username */ username: string; /** * Primary email address */ email: string; /** * Gravatar URL for the primary email address */ avatarUrl: string; /** * Whether the account is active */ isActive: boolean; /** * Whether the account is suspended. Suspended users can't sign in */ isSuspended: boolean; /** * Whether the user has a password set */ hasPasswordAuth: boolean; /** * Whether the account is managed, which stops the user from changing their username, password and similar details */ isManaged: boolean; /** * When the account was created */ dateJoined: string; /** * When the user last signed in, or null */ lastLogin: string | null; /** * Whether the user has two-factor authentication enabled */ has2fa: boolean; /** * When the user was last active, or null */ lastActive: string | null; /** * Whether the user is a superuser */ isSuperuser: boolean; /** * Whether the user has staff status */ isStaff: boolean; /** * Deprecated. Always an empty object */ experiments: { [key: string]: string; }; /** * Email addresses of the user. Only included for the requesting user or superusers; empty otherwise */ emails: Array<{ /** * Email ID */ id: string; /** * Email address */ email: string; /** * Whether the email address is verified */ is_verified: boolean; }>; } | null; /** * Sentry App that acted, if one did */ sentry_app: { /** * ID of the Sentry App */ id: string; /** * Name of the Sentry App */ name: string; /** * Slug of the Sentry App */ slug: string; /** * Avatars of the Sentry App */ avatars: Array<{ /** * Avatar type: `default` or `upload` */ avatarType: string; /** * Unique identifier of the uploaded avatar file, or an empty string if none is set */ avatarUuid: string; /** * Absolute URL of the avatar image */ avatarUrl: string; /** * Whether this is the color logo (`true`) or the simple icon (`false`) */ color: boolean; /** * Kind of image: `logo` for the color logo or `icon` for the simple icon */ photoType: string; }>; } | null; /** * Type of the activity, which decides the shape of data */ type: 'pull_request_merged'; /** * Details of the activity, which depend on type */ data: { /** * The pull request */ pullRequest?: { /** * Number or key of the pull request in the provider */ id: string; /** * Title of the pull request */ title: string | null; /** * Description of the pull request */ message: string | null; /** * When Sentry recorded the pull request (ISO 8601) */ dateCreated: string; /** * When the pull request was merged (ISO 8601). Null when it isn't merged */ mergedAt: string | null; /** * State of the pull request: merged, open, closed, draft or unknown. Null when not known */ status: 'merged' | 'open' | 'closed' | 'draft' | 'unknown' | null; /** * Repository of the pull request */ repository: { /** * URL of the repository */ url?: string | null; /** * Provider of the repository, with its id and name */ provider?: { [key: string]: string; }; /** * Status of the repository */ status?: 'active' | 'disabled' | 'pending_deletion' | 'deletion_in_progress'; /** * ID of the repository's integration. Null for repositories added without an integration */ integrationId?: string | null; /** * Identifier of the repository in the provider, such as owner/name */ externalSlug?: string | null; /** * ID of the repository in the provider */ externalId?: string | null; /** * Settings of the repository. Only set when expand includes settings. Null when it has none */ settings?: { /** * Whether AI code review is on for the repository */ enabledCodeReview: boolean; /** * Pull request events that start a code review: on_new_commit or on_ready_for_review */ codeReviewTriggers: Array; } | null; /** * ID of the repository */ id: string; /** * Name of the repository, such as owner/name */ name: string; /** * When the repository was added to Sentry (ISO 8601) */ dateCreated: string; }; /** * Author of the pull request, or an empty object when it has none */ author: { /** * SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access */ identities?: Array<{ /** * SSO identity ID */ id: string; /** * User's identifier at the auth provider */ name: string; /** * Organization the auth provider belongs to */ organization: { /** * Organization slug */ slug: string; /** * Organization name */ name: string; }; /** * Auth provider of the identity */ provider: { /** * Auth provider key, such as google or saml2 */ id: string; /** * Display name of the auth provider */ name: string; }; /** * When the identity was last verified by signing in through the auth provider */ dateVerified: string; /** * When the identity was last synced from the auth provider */ dateSynced: string; }>; /** * User avatar */ avatar?: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Two-factor authenticators of the user, without backup methods such as recovery codes */ authenticators?: Array<{ /** * Authenticator ID */ id: string; /** * Authenticator type, such as totp, sms, u2f or recovery */ type: string; /** * Display name of the authenticator type */ name: string; /** * When the authenticator was added */ dateCreated: string; /** * When the authenticator was last used, or null */ dateUsed: string | null; }>; /** * Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization */ canReset2fa?: boolean; /** * User ID */ id: string; /** * Display name: the user's name, or their email or username if no name is set */ name: string; /** * Username */ username: string; /** * Primary email address */ email: string; /** * Gravatar URL for the primary email address */ avatarUrl: string; /** * Whether the account is active */ isActive: boolean; /** * Whether the account is suspended. Suspended users can't sign in */ isSuspended: boolean; /** * Whether the user has a password set */ hasPasswordAuth: boolean; /** * Whether the account is managed, which stops the user from changing their username, password and similar details */ isManaged: boolean; /** * When the account was created */ dateJoined: string; /** * When the user last signed in, or null */ lastLogin: string | null; /** * Whether the user has two-factor authentication enabled */ has2fa: boolean; /** * When the user was last active, or null */ lastActive: string | null; /** * Whether the user is a superuser */ isSuperuser: boolean; /** * Whether the user has staff status */ isStaff: boolean; /** * Deprecated. Always an empty object */ experiments: { [key: string]: string; }; /** * Email addresses of the user. Only included for the requesting user or superusers; empty otherwise */ emails: Array<{ /** * Email ID */ id: string; /** * Email address */ email: string; /** * Whether the email address is verified */ is_verified: boolean; }>; } | { /** * Commit author name */ name: string | null; /** * Commit author email */ email: string; } | { [key: string]: unknown; }; /** * URL of the pull request in the provider, or null when the provider can't build one */ externalUrl: string | null; } | null; }; /** * When the activity happened (ISO 8601) */ dateCreated: string; /** * Where the action came from, such as web, api or mcp: */ source?: string | null; } | { /** * ID of the activity, or 0 for a first-seen item built from the issue */ id: string; /** * ID to pass to the notes endpoints for a comment, otherwise null */ commentId: string | null; /** * User who acted, or null for Sentry, an integration or a Sentry App */ user: { /** * SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access */ identities?: Array<{ /** * SSO identity ID */ id: string; /** * User's identifier at the auth provider */ name: string; /** * Organization the auth provider belongs to */ organization: { /** * Organization slug */ slug: string; /** * Organization name */ name: string; }; /** * Auth provider of the identity */ provider: { /** * Auth provider key, such as google or saml2 */ id: string; /** * Display name of the auth provider */ name: string; }; /** * When the identity was last verified by signing in through the auth provider */ dateVerified: string; /** * When the identity was last synced from the auth provider */ dateSynced: string; }>; /** * User avatar */ avatar?: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Two-factor authenticators of the user, without backup methods such as recovery codes */ authenticators?: Array<{ /** * Authenticator ID */ id: string; /** * Authenticator type, such as totp, sms, u2f or recovery */ type: string; /** * Display name of the authenticator type */ name: string; /** * When the authenticator was added */ dateCreated: string; /** * When the authenticator was last used, or null */ dateUsed: string | null; }>; /** * Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization */ canReset2fa?: boolean; /** * User ID */ id: string; /** * Display name: the user's name, or their email or username if no name is set */ name: string; /** * Username */ username: string; /** * Primary email address */ email: string; /** * Gravatar URL for the primary email address */ avatarUrl: string; /** * Whether the account is active */ isActive: boolean; /** * Whether the account is suspended. Suspended users can't sign in */ isSuspended: boolean; /** * Whether the user has a password set */ hasPasswordAuth: boolean; /** * Whether the account is managed, which stops the user from changing their username, password and similar details */ isManaged: boolean; /** * When the account was created */ dateJoined: string; /** * When the user last signed in, or null */ lastLogin: string | null; /** * Whether the user has two-factor authentication enabled */ has2fa: boolean; /** * When the user was last active, or null */ lastActive: string | null; /** * Whether the user is a superuser */ isSuperuser: boolean; /** * Whether the user has staff status */ isStaff: boolean; /** * Deprecated. Always an empty object */ experiments: { [key: string]: string; }; /** * Email addresses of the user. Only included for the requesting user or superusers; empty otherwise */ emails: Array<{ /** * Email ID */ id: string; /** * Email address */ email: string; /** * Whether the email address is verified */ is_verified: boolean; }>; } | null; /** * Sentry App that acted, if one did */ sentry_app: { /** * ID of the Sentry App */ id: string; /** * Name of the Sentry App */ name: string; /** * Slug of the Sentry App */ slug: string; /** * Avatars of the Sentry App */ avatars: Array<{ /** * Avatar type: `default` or `upload` */ avatarType: string; /** * Unique identifier of the uploaded avatar file, or an empty string if none is set */ avatarUuid: string; /** * Absolute URL of the avatar image */ avatarUrl: string; /** * Whether this is the color logo (`true`) or the simple icon (`false`) */ color: boolean; /** * Kind of image: `logo` for the color logo or `icon` for the simple icon */ photoType: string; }>; } | null; /** * Type of the activity, which decides the shape of data */ type: 'pull_request_reopened'; /** * Details of the activity, which depend on type */ data: { /** * The pull request */ pullRequest?: { /** * Number or key of the pull request in the provider */ id: string; /** * Title of the pull request */ title: string | null; /** * Description of the pull request */ message: string | null; /** * When Sentry recorded the pull request (ISO 8601) */ dateCreated: string; /** * When the pull request was merged (ISO 8601). Null when it isn't merged */ mergedAt: string | null; /** * State of the pull request: merged, open, closed, draft or unknown. Null when not known */ status: 'merged' | 'open' | 'closed' | 'draft' | 'unknown' | null; /** * Repository of the pull request */ repository: { /** * URL of the repository */ url?: string | null; /** * Provider of the repository, with its id and name */ provider?: { [key: string]: string; }; /** * Status of the repository */ status?: 'active' | 'disabled' | 'pending_deletion' | 'deletion_in_progress'; /** * ID of the repository's integration. Null for repositories added without an integration */ integrationId?: string | null; /** * Identifier of the repository in the provider, such as owner/name */ externalSlug?: string | null; /** * ID of the repository in the provider */ externalId?: string | null; /** * Settings of the repository. Only set when expand includes settings. Null when it has none */ settings?: { /** * Whether AI code review is on for the repository */ enabledCodeReview: boolean; /** * Pull request events that start a code review: on_new_commit or on_ready_for_review */ codeReviewTriggers: Array; } | null; /** * ID of the repository */ id: string; /** * Name of the repository, such as owner/name */ name: string; /** * When the repository was added to Sentry (ISO 8601) */ dateCreated: string; }; /** * Author of the pull request, or an empty object when it has none */ author: { /** * SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access */ identities?: Array<{ /** * SSO identity ID */ id: string; /** * User's identifier at the auth provider */ name: string; /** * Organization the auth provider belongs to */ organization: { /** * Organization slug */ slug: string; /** * Organization name */ name: string; }; /** * Auth provider of the identity */ provider: { /** * Auth provider key, such as google or saml2 */ id: string; /** * Display name of the auth provider */ name: string; }; /** * When the identity was last verified by signing in through the auth provider */ dateVerified: string; /** * When the identity was last synced from the auth provider */ dateSynced: string; }>; /** * User avatar */ avatar?: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Two-factor authenticators of the user, without backup methods such as recovery codes */ authenticators?: Array<{ /** * Authenticator ID */ id: string; /** * Authenticator type, such as totp, sms, u2f or recovery */ type: string; /** * Display name of the authenticator type */ name: string; /** * When the authenticator was added */ dateCreated: string; /** * When the authenticator was last used, or null */ dateUsed: string | null; }>; /** * Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization */ canReset2fa?: boolean; /** * User ID */ id: string; /** * Display name: the user's name, or their email or username if no name is set */ name: string; /** * Username */ username: string; /** * Primary email address */ email: string; /** * Gravatar URL for the primary email address */ avatarUrl: string; /** * Whether the account is active */ isActive: boolean; /** * Whether the account is suspended. Suspended users can't sign in */ isSuspended: boolean; /** * Whether the user has a password set */ hasPasswordAuth: boolean; /** * Whether the account is managed, which stops the user from changing their username, password and similar details */ isManaged: boolean; /** * When the account was created */ dateJoined: string; /** * When the user last signed in, or null */ lastLogin: string | null; /** * Whether the user has two-factor authentication enabled */ has2fa: boolean; /** * When the user was last active, or null */ lastActive: string | null; /** * Whether the user is a superuser */ isSuperuser: boolean; /** * Whether the user has staff status */ isStaff: boolean; /** * Deprecated. Always an empty object */ experiments: { [key: string]: string; }; /** * Email addresses of the user. Only included for the requesting user or superusers; empty otherwise */ emails: Array<{ /** * Email ID */ id: string; /** * Email address */ email: string; /** * Whether the email address is verified */ is_verified: boolean; }>; } | { /** * Commit author name */ name: string | null; /** * Commit author email */ email: string; } | { [key: string]: unknown; }; /** * URL of the pull request in the provider, or null when the provider can't build one */ externalUrl: string | null; } | null; }; /** * When the activity happened (ISO 8601) */ dateCreated: string; /** * Where the action came from, such as web, api or mcp: */ source?: string | null; } | { /** * ID of the activity, or 0 for a first-seen item built from the issue */ id: string; /** * ID to pass to the notes endpoints for a comment, otherwise null */ commentId: string | null; /** * User who acted, or null for Sentry, an integration or a Sentry App */ user: { /** * SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access */ identities?: Array<{ /** * SSO identity ID */ id: string; /** * User's identifier at the auth provider */ name: string; /** * Organization the auth provider belongs to */ organization: { /** * Organization slug */ slug: string; /** * Organization name */ name: string; }; /** * Auth provider of the identity */ provider: { /** * Auth provider key, such as google or saml2 */ id: string; /** * Display name of the auth provider */ name: string; }; /** * When the identity was last verified by signing in through the auth provider */ dateVerified: string; /** * When the identity was last synced from the auth provider */ dateSynced: string; }>; /** * User avatar */ avatar?: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Two-factor authenticators of the user, without backup methods such as recovery codes */ authenticators?: Array<{ /** * Authenticator ID */ id: string; /** * Authenticator type, such as totp, sms, u2f or recovery */ type: string; /** * Display name of the authenticator type */ name: string; /** * When the authenticator was added */ dateCreated: string; /** * When the authenticator was last used, or null */ dateUsed: string | null; }>; /** * Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization */ canReset2fa?: boolean; /** * User ID */ id: string; /** * Display name: the user's name, or their email or username if no name is set */ name: string; /** * Username */ username: string; /** * Primary email address */ email: string; /** * Gravatar URL for the primary email address */ avatarUrl: string; /** * Whether the account is active */ isActive: boolean; /** * Whether the account is suspended. Suspended users can't sign in */ isSuspended: boolean; /** * Whether the user has a password set */ hasPasswordAuth: boolean; /** * Whether the account is managed, which stops the user from changing their username, password and similar details */ isManaged: boolean; /** * When the account was created */ dateJoined: string; /** * When the user last signed in, or null */ lastLogin: string | null; /** * Whether the user has two-factor authentication enabled */ has2fa: boolean; /** * When the user was last active, or null */ lastActive: string | null; /** * Whether the user is a superuser */ isSuperuser: boolean; /** * Whether the user has staff status */ isStaff: boolean; /** * Deprecated. Always an empty object */ experiments: { [key: string]: string; }; /** * Email addresses of the user. Only included for the requesting user or superusers; empty otherwise */ emails: Array<{ /** * Email ID */ id: string; /** * Email address */ email: string; /** * Whether the email address is verified */ is_verified: boolean; }>; } | null; /** * Sentry App that acted, if one did */ sentry_app: { /** * ID of the Sentry App */ id: string; /** * Name of the Sentry App */ name: string; /** * Slug of the Sentry App */ slug: string; /** * Avatars of the Sentry App */ avatars: Array<{ /** * Avatar type: `default` or `upload` */ avatarType: string; /** * Unique identifier of the uploaded avatar file, or an empty string if none is set */ avatarUuid: string; /** * Absolute URL of the avatar image */ avatarUrl: string; /** * Whether this is the color logo (`true`) or the simple icon (`false`) */ color: boolean; /** * Kind of image: `logo` for the color logo or `icon` for the simple icon */ photoType: string; }>; } | null; /** * Type of the activity, which decides the shape of data */ type: 'pull_request_unlinked'; /** * Details of the activity, which depend on type */ data: { /** * The pull request */ pullRequest?: { /** * Number or key of the pull request in the provider */ id: string; /** * Title of the pull request */ title: string | null; /** * Description of the pull request */ message: string | null; /** * When Sentry recorded the pull request (ISO 8601) */ dateCreated: string; /** * When the pull request was merged (ISO 8601). Null when it isn't merged */ mergedAt: string | null; /** * State of the pull request: merged, open, closed, draft or unknown. Null when not known */ status: 'merged' | 'open' | 'closed' | 'draft' | 'unknown' | null; /** * Repository of the pull request */ repository: { /** * URL of the repository */ url?: string | null; /** * Provider of the repository, with its id and name */ provider?: { [key: string]: string; }; /** * Status of the repository */ status?: 'active' | 'disabled' | 'pending_deletion' | 'deletion_in_progress'; /** * ID of the repository's integration. Null for repositories added without an integration */ integrationId?: string | null; /** * Identifier of the repository in the provider, such as owner/name */ externalSlug?: string | null; /** * ID of the repository in the provider */ externalId?: string | null; /** * Settings of the repository. Only set when expand includes settings. Null when it has none */ settings?: { /** * Whether AI code review is on for the repository */ enabledCodeReview: boolean; /** * Pull request events that start a code review: on_new_commit or on_ready_for_review */ codeReviewTriggers: Array; } | null; /** * ID of the repository */ id: string; /** * Name of the repository, such as owner/name */ name: string; /** * When the repository was added to Sentry (ISO 8601) */ dateCreated: string; }; /** * Author of the pull request, or an empty object when it has none */ author: { /** * SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access */ identities?: Array<{ /** * SSO identity ID */ id: string; /** * User's identifier at the auth provider */ name: string; /** * Organization the auth provider belongs to */ organization: { /** * Organization slug */ slug: string; /** * Organization name */ name: string; }; /** * Auth provider of the identity */ provider: { /** * Auth provider key, such as google or saml2 */ id: string; /** * Display name of the auth provider */ name: string; }; /** * When the identity was last verified by signing in through the auth provider */ dateVerified: string; /** * When the identity was last synced from the auth provider */ dateSynced: string; }>; /** * User avatar */ avatar?: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Two-factor authenticators of the user, without backup methods such as recovery codes */ authenticators?: Array<{ /** * Authenticator ID */ id: string; /** * Authenticator type, such as totp, sms, u2f or recovery */ type: string; /** * Display name of the authenticator type */ name: string; /** * When the authenticator was added */ dateCreated: string; /** * When the authenticator was last used, or null */ dateUsed: string | null; }>; /** * Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization */ canReset2fa?: boolean; /** * User ID */ id: string; /** * Display name: the user's name, or their email or username if no name is set */ name: string; /** * Username */ username: string; /** * Primary email address */ email: string; /** * Gravatar URL for the primary email address */ avatarUrl: string; /** * Whether the account is active */ isActive: boolean; /** * Whether the account is suspended. Suspended users can't sign in */ isSuspended: boolean; /** * Whether the user has a password set */ hasPasswordAuth: boolean; /** * Whether the account is managed, which stops the user from changing their username, password and similar details */ isManaged: boolean; /** * When the account was created */ dateJoined: string; /** * When the user last signed in, or null */ lastLogin: string | null; /** * Whether the user has two-factor authentication enabled */ has2fa: boolean; /** * When the user was last active, or null */ lastActive: string | null; /** * Whether the user is a superuser */ isSuperuser: boolean; /** * Whether the user has staff status */ isStaff: boolean; /** * Deprecated. Always an empty object */ experiments: { [key: string]: string; }; /** * Email addresses of the user. Only included for the requesting user or superusers; empty otherwise */ emails: Array<{ /** * Email ID */ id: string; /** * Email address */ email: string; /** * Whether the email address is verified */ is_verified: boolean; }>; } | { /** * Commit author name */ name: string | null; /** * Commit author email */ email: string; } | { [key: string]: unknown; }; /** * URL of the pull request in the provider, or null when the provider can't build one */ externalUrl: string | null; } | null; }; /** * When the activity happened (ISO 8601) */ dateCreated: string; /** * Where the action came from, such as web, api or mcp: */ source?: string | null; } | { /** * ID of the activity, or 0 for a first-seen item built from the issue */ id: string; /** * ID to pass to the notes endpoints for a comment, otherwise null */ commentId: string | null; /** * User who acted, or null for Sentry, an integration or a Sentry App */ user: { /** * SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access */ identities?: Array<{ /** * SSO identity ID */ id: string; /** * User's identifier at the auth provider */ name: string; /** * Organization the auth provider belongs to */ organization: { /** * Organization slug */ slug: string; /** * Organization name */ name: string; }; /** * Auth provider of the identity */ provider: { /** * Auth provider key, such as google or saml2 */ id: string; /** * Display name of the auth provider */ name: string; }; /** * When the identity was last verified by signing in through the auth provider */ dateVerified: string; /** * When the identity was last synced from the auth provider */ dateSynced: string; }>; /** * User avatar */ avatar?: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Two-factor authenticators of the user, without backup methods such as recovery codes */ authenticators?: Array<{ /** * Authenticator ID */ id: string; /** * Authenticator type, such as totp, sms, u2f or recovery */ type: string; /** * Display name of the authenticator type */ name: string; /** * When the authenticator was added */ dateCreated: string; /** * When the authenticator was last used, or null */ dateUsed: string | null; }>; /** * Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization */ canReset2fa?: boolean; /** * User ID */ id: string; /** * Display name: the user's name, or their email or username if no name is set */ name: string; /** * Username */ username: string; /** * Primary email address */ email: string; /** * Gravatar URL for the primary email address */ avatarUrl: string; /** * Whether the account is active */ isActive: boolean; /** * Whether the account is suspended. Suspended users can't sign in */ isSuspended: boolean; /** * Whether the user has a password set */ hasPasswordAuth: boolean; /** * Whether the account is managed, which stops the user from changing their username, password and similar details */ isManaged: boolean; /** * When the account was created */ dateJoined: string; /** * When the user last signed in, or null */ lastLogin: string | null; /** * Whether the user has two-factor authentication enabled */ has2fa: boolean; /** * When the user was last active, or null */ lastActive: string | null; /** * Whether the user is a superuser */ isSuperuser: boolean; /** * Whether the user has staff status */ isStaff: boolean; /** * Deprecated. Always an empty object */ experiments: { [key: string]: string; }; /** * Email addresses of the user. Only included for the requesting user or superusers; empty otherwise */ emails: Array<{ /** * Email ID */ id: string; /** * Email address */ email: string; /** * Whether the email address is verified */ is_verified: boolean; }>; } | null; /** * Sentry App that acted, if one did */ sentry_app: { /** * ID of the Sentry App */ id: string; /** * Name of the Sentry App */ name: string; /** * Slug of the Sentry App */ slug: string; /** * Avatars of the Sentry App */ avatars: Array<{ /** * Avatar type: `default` or `upload` */ avatarType: string; /** * Unique identifier of the uploaded avatar file, or an empty string if none is set */ avatarUuid: string; /** * Absolute URL of the avatar image */ avatarUrl: string; /** * Whether this is the color logo (`true`) or the simple icon (`false`) */ color: boolean; /** * Kind of image: `logo` for the color logo or `icon` for the simple icon */ photoType: string; }>; } | null; /** * Type of the activity, which decides the shape of data */ type: 'referenced_in_commit'; /** * Details of the activity, which depend on type */ data: { /** * The commit */ commit?: { /** * Commit SHA */ id: string; /** * Commit message */ message: string | null; /** * When the commit was made (ISO 8601) */ dateCreated: string; /** * Pull request the commit belongs to */ pullRequest: { /** * Number or key of the pull request in the provider */ id: string; /** * Title of the pull request */ title: string | null; /** * Description of the pull request */ message: string | null; /** * When Sentry recorded the pull request (ISO 8601) */ dateCreated: string; /** * When the pull request was merged (ISO 8601). Null when it isn't merged */ mergedAt: string | null; /** * State of the pull request: merged, open, closed, draft or unknown. Null when not known */ status: 'merged' | 'open' | 'closed' | 'draft' | 'unknown' | null; /** * Repository of the pull request */ repository: { /** * URL of the repository */ url?: string | null; /** * Provider of the repository, with its id and name */ provider?: { [key: string]: string; }; /** * Status of the repository */ status?: 'active' | 'disabled' | 'pending_deletion' | 'deletion_in_progress'; /** * ID of the repository's integration. Null for repositories added without an integration */ integrationId?: string | null; /** * Identifier of the repository in the provider, such as owner/name */ externalSlug?: string | null; /** * ID of the repository in the provider */ externalId?: string | null; /** * Settings of the repository. Only set when expand includes settings. Null when it has none */ settings?: { /** * Whether AI code review is on for the repository */ enabledCodeReview: boolean; /** * Pull request events that start a code review: on_new_commit or on_ready_for_review */ codeReviewTriggers: Array; } | null; /** * ID of the repository */ id: string; /** * Name of the repository, such as owner/name */ name: string; /** * When the repository was added to Sentry (ISO 8601) */ dateCreated: string; }; /** * Author of the pull request, or an empty object when it has none */ author: { /** * SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access */ identities?: Array<{ /** * SSO identity ID */ id: string; /** * User's identifier at the auth provider */ name: string; /** * Organization the auth provider belongs to */ organization: { /** * Organization slug */ slug: string; /** * Organization name */ name: string; }; /** * Auth provider of the identity */ provider: { /** * Auth provider key, such as google or saml2 */ id: string; /** * Display name of the auth provider */ name: string; }; /** * When the identity was last verified by signing in through the auth provider */ dateVerified: string; /** * When the identity was last synced from the auth provider */ dateSynced: string; }>; /** * User avatar */ avatar?: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Two-factor authenticators of the user, without backup methods such as recovery codes */ authenticators?: Array<{ /** * Authenticator ID */ id: string; /** * Authenticator type, such as totp, sms, u2f or recovery */ type: string; /** * Display name of the authenticator type */ name: string; /** * When the authenticator was added */ dateCreated: string; /** * When the authenticator was last used, or null */ dateUsed: string | null; }>; /** * Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization */ canReset2fa?: boolean; /** * User ID */ id: string; /** * Display name: the user's name, or their email or username if no name is set */ name: string; /** * Username */ username: string; /** * Primary email address */ email: string; /** * Gravatar URL for the primary email address */ avatarUrl: string; /** * Whether the account is active */ isActive: boolean; /** * Whether the account is suspended. Suspended users can't sign in */ isSuspended: boolean; /** * Whether the user has a password set */ hasPasswordAuth: boolean; /** * Whether the account is managed, which stops the user from changing their username, password and similar details */ isManaged: boolean; /** * When the account was created */ dateJoined: string; /** * When the user last signed in, or null */ lastLogin: string | null; /** * Whether the user has two-factor authentication enabled */ has2fa: boolean; /** * When the user was last active, or null */ lastActive: string | null; /** * Whether the user is a superuser */ isSuperuser: boolean; /** * Whether the user has staff status */ isStaff: boolean; /** * Deprecated. Always an empty object */ experiments: { [key: string]: string; }; /** * Email addresses of the user. Only included for the requesting user or superusers; empty otherwise */ emails: Array<{ /** * Email ID */ id: string; /** * Email address */ email: string; /** * Whether the email address is verified */ is_verified: boolean; }>; } | { /** * Commit author name */ name: string | null; /** * Commit author email */ email: string; } | { [key: string]: unknown; }; /** * URL of the pull request in the provider, or null when the provider can't build one */ externalUrl: string | null; } | null; /** * How the commit was found as a suspect commit: via commit in release or via SCM integration. Empty for other commits */ suspectCommitType: string; /** * Repository the commit belongs to */ repository?: { /** * URL of the repository */ url?: string | null; /** * Provider of the repository, with its id and name */ provider?: { [key: string]: string; }; /** * Status of the repository */ status?: 'active' | 'disabled' | 'pending_deletion' | 'deletion_in_progress'; /** * ID of the repository's integration. Null for repositories added without an integration */ integrationId?: string | null; /** * Identifier of the repository in the provider, such as owner/name */ externalSlug?: string | null; /** * ID of the repository in the provider */ externalId?: string | null; /** * Settings of the repository. Only set when expand includes settings. Null when it has none */ settings?: { /** * Whether AI code review is on for the repository */ enabledCodeReview: boolean; /** * Pull request events that start a code review: on_new_commit or on_ready_for_review */ codeReviewTriggers: Array; } | null; /** * ID of the repository */ id: string; /** * Name of the repository, such as owner/name */ name: string; /** * When the repository was added to Sentry (ISO 8601) */ dateCreated: string; }; /** * Author of the commit: a Sentry user when the email matches one, otherwise the name and email from the commit */ author?: { /** * SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access */ identities?: Array<{ /** * SSO identity ID */ id: string; /** * User's identifier at the auth provider */ name: string; /** * Organization the auth provider belongs to */ organization: { /** * Organization slug */ slug: string; /** * Organization name */ name: string; }; /** * Auth provider of the identity */ provider: { /** * Auth provider key, such as google or saml2 */ id: string; /** * Display name of the auth provider */ name: string; }; /** * When the identity was last verified by signing in through the auth provider */ dateVerified: string; /** * When the identity was last synced from the auth provider */ dateSynced: string; }>; /** * User avatar */ avatar?: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Two-factor authenticators of the user, without backup methods such as recovery codes */ authenticators?: Array<{ /** * Authenticator ID */ id: string; /** * Authenticator type, such as totp, sms, u2f or recovery */ type: string; /** * Display name of the authenticator type */ name: string; /** * When the authenticator was added */ dateCreated: string; /** * When the authenticator was last used, or null */ dateUsed: string | null; }>; /** * Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization */ canReset2fa?: boolean; /** * User ID */ id: string; /** * Display name: the user's name, or their email or username if no name is set */ name: string; /** * Username */ username: string; /** * Primary email address */ email: string; /** * Gravatar URL for the primary email address */ avatarUrl: string; /** * Whether the account is active */ isActive: boolean; /** * Whether the account is suspended. Suspended users can't sign in */ isSuspended: boolean; /** * Whether the user has a password set */ hasPasswordAuth: boolean; /** * Whether the account is managed, which stops the user from changing their username, password and similar details */ isManaged: boolean; /** * When the account was created */ dateJoined: string; /** * When the user last signed in, or null */ lastLogin: string | null; /** * Whether the user has two-factor authentication enabled */ has2fa: boolean; /** * When the user was last active, or null */ lastActive: string | null; /** * Whether the user is a superuser */ isSuperuser: boolean; /** * Whether the user has staff status */ isStaff: boolean; /** * Deprecated. Always an empty object */ experiments: { [key: string]: string; }; /** * Email addresses of the user. Only included for the requesting user or superusers; empty otherwise */ emails: Array<{ /** * Email ID */ id: string; /** * Email address */ email: string; /** * Whether the email address is verified */ is_verified: boolean; }>; } | { /** * Commit author name */ name: string | null; /** * Commit author email */ email: string; } | { [key: string]: unknown; }; /** * Releases that contain the commit */ releases: Array<{ /** * Version of the release */ version: string; /** * Short version of the release */ shortVersion: string; /** * Commit ref of the release */ ref: string | null; /** * URL of the release */ url: string | null; /** * When the release was released (ISO 8601) */ dateReleased: string | null; /** * When the release was created (ISO 8601) */ dateCreated: string; }>; } | null; }; /** * When the activity happened (ISO 8601) */ dateCreated: string; /** * Where the action came from, such as web, api or mcp: */ source?: string | null; } | { /** * ID of the activity, or 0 for a first-seen item built from the issue */ id: string; /** * ID to pass to the notes endpoints for a comment, otherwise null */ commentId: string | null; /** * User who acted, or null for Sentry, an integration or a Sentry App */ user: { /** * SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access */ identities?: Array<{ /** * SSO identity ID */ id: string; /** * User's identifier at the auth provider */ name: string; /** * Organization the auth provider belongs to */ organization: { /** * Organization slug */ slug: string; /** * Organization name */ name: string; }; /** * Auth provider of the identity */ provider: { /** * Auth provider key, such as google or saml2 */ id: string; /** * Display name of the auth provider */ name: string; }; /** * When the identity was last verified by signing in through the auth provider */ dateVerified: string; /** * When the identity was last synced from the auth provider */ dateSynced: string; }>; /** * User avatar */ avatar?: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Two-factor authenticators of the user, without backup methods such as recovery codes */ authenticators?: Array<{ /** * Authenticator ID */ id: string; /** * Authenticator type, such as totp, sms, u2f or recovery */ type: string; /** * Display name of the authenticator type */ name: string; /** * When the authenticator was added */ dateCreated: string; /** * When the authenticator was last used, or null */ dateUsed: string | null; }>; /** * Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization */ canReset2fa?: boolean; /** * User ID */ id: string; /** * Display name: the user's name, or their email or username if no name is set */ name: string; /** * Username */ username: string; /** * Primary email address */ email: string; /** * Gravatar URL for the primary email address */ avatarUrl: string; /** * Whether the account is active */ isActive: boolean; /** * Whether the account is suspended. Suspended users can't sign in */ isSuspended: boolean; /** * Whether the user has a password set */ hasPasswordAuth: boolean; /** * Whether the account is managed, which stops the user from changing their username, password and similar details */ isManaged: boolean; /** * When the account was created */ dateJoined: string; /** * When the user last signed in, or null */ lastLogin: string | null; /** * Whether the user has two-factor authentication enabled */ has2fa: boolean; /** * When the user was last active, or null */ lastActive: string | null; /** * Whether the user is a superuser */ isSuperuser: boolean; /** * Whether the user has staff status */ isStaff: boolean; /** * Deprecated. Always an empty object */ experiments: { [key: string]: string; }; /** * Email addresses of the user. Only included for the requesting user or superusers; empty otherwise */ emails: Array<{ /** * Email ID */ id: string; /** * Email address */ email: string; /** * Whether the email address is verified */ is_verified: boolean; }>; } | null; /** * Sentry App that acted, if one did */ sentry_app: { /** * ID of the Sentry App */ id: string; /** * Name of the Sentry App */ name: string; /** * Slug of the Sentry App */ slug: string; /** * Avatars of the Sentry App */ avatars: Array<{ /** * Avatar type: `default` or `upload` */ avatarType: string; /** * Unique identifier of the uploaded avatar file, or an empty string if none is set */ avatarUuid: string; /** * Absolute URL of the avatar image */ avatarUrl: string; /** * Whether this is the color logo (`true`) or the simple icon (`false`) */ color: boolean; /** * Kind of image: `logo` for the color logo or `icon` for the simple icon */ photoType: string; }>; } | null; /** * Type of the activity, which decides the shape of data */ type: 'reprocess'; /** * Details of the activity, which depend on type */ data: { /** * Number of events reprocessed */ eventCount?: number | null; /** * ID of the issue the events were reprocessed from */ oldGroupId?: number | null; /** * ID of the issue the events were reprocessed into */ newGroupId?: number | null; }; /** * When the activity happened (ISO 8601) */ dateCreated: string; /** * Where the action came from, such as web, api or mcp: */ source?: string | null; } | { /** * ID of the activity, or 0 for a first-seen item built from the issue */ id: string; /** * ID to pass to the notes endpoints for a comment, otherwise null */ commentId: string | null; /** * User who acted, or null for Sentry, an integration or a Sentry App */ user: { /** * SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access */ identities?: Array<{ /** * SSO identity ID */ id: string; /** * User's identifier at the auth provider */ name: string; /** * Organization the auth provider belongs to */ organization: { /** * Organization slug */ slug: string; /** * Organization name */ name: string; }; /** * Auth provider of the identity */ provider: { /** * Auth provider key, such as google or saml2 */ id: string; /** * Display name of the auth provider */ name: string; }; /** * When the identity was last verified by signing in through the auth provider */ dateVerified: string; /** * When the identity was last synced from the auth provider */ dateSynced: string; }>; /** * User avatar */ avatar?: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Two-factor authenticators of the user, without backup methods such as recovery codes */ authenticators?: Array<{ /** * Authenticator ID */ id: string; /** * Authenticator type, such as totp, sms, u2f or recovery */ type: string; /** * Display name of the authenticator type */ name: string; /** * When the authenticator was added */ dateCreated: string; /** * When the authenticator was last used, or null */ dateUsed: string | null; }>; /** * Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization */ canReset2fa?: boolean; /** * User ID */ id: string; /** * Display name: the user's name, or their email or username if no name is set */ name: string; /** * Username */ username: string; /** * Primary email address */ email: string; /** * Gravatar URL for the primary email address */ avatarUrl: string; /** * Whether the account is active */ isActive: boolean; /** * Whether the account is suspended. Suspended users can't sign in */ isSuspended: boolean; /** * Whether the user has a password set */ hasPasswordAuth: boolean; /** * Whether the account is managed, which stops the user from changing their username, password and similar details */ isManaged: boolean; /** * When the account was created */ dateJoined: string; /** * When the user last signed in, or null */ lastLogin: string | null; /** * Whether the user has two-factor authentication enabled */ has2fa: boolean; /** * When the user was last active, or null */ lastActive: string | null; /** * Whether the user is a superuser */ isSuperuser: boolean; /** * Whether the user has staff status */ isStaff: boolean; /** * Deprecated. Always an empty object */ experiments: { [key: string]: string; }; /** * Email addresses of the user. Only included for the requesting user or superusers; empty otherwise */ emails: Array<{ /** * Email ID */ id: string; /** * Email address */ email: string; /** * Whether the email address is verified */ is_verified: boolean; }>; } | null; /** * Sentry App that acted, if one did */ sentry_app: { /** * ID of the Sentry App */ id: string; /** * Name of the Sentry App */ name: string; /** * Slug of the Sentry App */ slug: string; /** * Avatars of the Sentry App */ avatars: Array<{ /** * Avatar type: `default` or `upload` */ avatarType: string; /** * Unique identifier of the uploaded avatar file, or an empty string if none is set */ avatarUuid: string; /** * Absolute URL of the avatar image */ avatarUrl: string; /** * Whether this is the color logo (`true`) or the simple icon (`false`) */ color: boolean; /** * Kind of image: `logo` for the color logo or `icon` for the simple icon */ photoType: string; }>; } | null; /** * Type of the activity, which decides the shape of data */ type: 'seer_coding_completed'; /** * Details of the activity, which depend on type */ data: { /** * ID of the Seer run */ run_id?: number | null; /** * Code changes that Seer made */ changes?: Array<{ [key: string]: string | number; }> | null; }; /** * When the activity happened (ISO 8601) */ dateCreated: string; /** * Where the action came from, such as web, api or mcp: */ source?: string | null; } | { /** * ID of the activity, or 0 for a first-seen item built from the issue */ id: string; /** * ID to pass to the notes endpoints for a comment, otherwise null */ commentId: string | null; /** * User who acted, or null for Sentry, an integration or a Sentry App */ user: { /** * SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access */ identities?: Array<{ /** * SSO identity ID */ id: string; /** * User's identifier at the auth provider */ name: string; /** * Organization the auth provider belongs to */ organization: { /** * Organization slug */ slug: string; /** * Organization name */ name: string; }; /** * Auth provider of the identity */ provider: { /** * Auth provider key, such as google or saml2 */ id: string; /** * Display name of the auth provider */ name: string; }; /** * When the identity was last verified by signing in through the auth provider */ dateVerified: string; /** * When the identity was last synced from the auth provider */ dateSynced: string; }>; /** * User avatar */ avatar?: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Two-factor authenticators of the user, without backup methods such as recovery codes */ authenticators?: Array<{ /** * Authenticator ID */ id: string; /** * Authenticator type, such as totp, sms, u2f or recovery */ type: string; /** * Display name of the authenticator type */ name: string; /** * When the authenticator was added */ dateCreated: string; /** * When the authenticator was last used, or null */ dateUsed: string | null; }>; /** * Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization */ canReset2fa?: boolean; /** * User ID */ id: string; /** * Display name: the user's name, or their email or username if no name is set */ name: string; /** * Username */ username: string; /** * Primary email address */ email: string; /** * Gravatar URL for the primary email address */ avatarUrl: string; /** * Whether the account is active */ isActive: boolean; /** * Whether the account is suspended. Suspended users can't sign in */ isSuspended: boolean; /** * Whether the user has a password set */ hasPasswordAuth: boolean; /** * Whether the account is managed, which stops the user from changing their username, password and similar details */ isManaged: boolean; /** * When the account was created */ dateJoined: string; /** * When the user last signed in, or null */ lastLogin: string | null; /** * Whether the user has two-factor authentication enabled */ has2fa: boolean; /** * When the user was last active, or null */ lastActive: string | null; /** * Whether the user is a superuser */ isSuperuser: boolean; /** * Whether the user has staff status */ isStaff: boolean; /** * Deprecated. Always an empty object */ experiments: { [key: string]: string; }; /** * Email addresses of the user. Only included for the requesting user or superusers; empty otherwise */ emails: Array<{ /** * Email ID */ id: string; /** * Email address */ email: string; /** * Whether the email address is verified */ is_verified: boolean; }>; } | null; /** * Sentry App that acted, if one did */ sentry_app: { /** * ID of the Sentry App */ id: string; /** * Name of the Sentry App */ name: string; /** * Slug of the Sentry App */ slug: string; /** * Avatars of the Sentry App */ avatars: Array<{ /** * Avatar type: `default` or `upload` */ avatarType: string; /** * Unique identifier of the uploaded avatar file, or an empty string if none is set */ avatarUuid: string; /** * Absolute URL of the avatar image */ avatarUrl: string; /** * Whether this is the color logo (`true`) or the simple icon (`false`) */ color: boolean; /** * Kind of image: `logo` for the color logo or `icon` for the simple icon */ photoType: string; }>; } | null; /** * Type of the activity, which decides the shape of data */ type: 'seer_coding_started'; /** * Details of the activity, which depend on type */ data: { /** * ID of the Seer run */ run_id?: number | null; }; /** * When the activity happened (ISO 8601) */ dateCreated: string; /** * Where the action came from, such as web, api or mcp: */ source?: string | null; } | { /** * ID of the activity, or 0 for a first-seen item built from the issue */ id: string; /** * ID to pass to the notes endpoints for a comment, otherwise null */ commentId: string | null; /** * User who acted, or null for Sentry, an integration or a Sentry App */ user: { /** * SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access */ identities?: Array<{ /** * SSO identity ID */ id: string; /** * User's identifier at the auth provider */ name: string; /** * Organization the auth provider belongs to */ organization: { /** * Organization slug */ slug: string; /** * Organization name */ name: string; }; /** * Auth provider of the identity */ provider: { /** * Auth provider key, such as google or saml2 */ id: string; /** * Display name of the auth provider */ name: string; }; /** * When the identity was last verified by signing in through the auth provider */ dateVerified: string; /** * When the identity was last synced from the auth provider */ dateSynced: string; }>; /** * User avatar */ avatar?: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Two-factor authenticators of the user, without backup methods such as recovery codes */ authenticators?: Array<{ /** * Authenticator ID */ id: string; /** * Authenticator type, such as totp, sms, u2f or recovery */ type: string; /** * Display name of the authenticator type */ name: string; /** * When the authenticator was added */ dateCreated: string; /** * When the authenticator was last used, or null */ dateUsed: string | null; }>; /** * Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization */ canReset2fa?: boolean; /** * User ID */ id: string; /** * Display name: the user's name, or their email or username if no name is set */ name: string; /** * Username */ username: string; /** * Primary email address */ email: string; /** * Gravatar URL for the primary email address */ avatarUrl: string; /** * Whether the account is active */ isActive: boolean; /** * Whether the account is suspended. Suspended users can't sign in */ isSuspended: boolean; /** * Whether the user has a password set */ hasPasswordAuth: boolean; /** * Whether the account is managed, which stops the user from changing their username, password and similar details */ isManaged: boolean; /** * When the account was created */ dateJoined: string; /** * When the user last signed in, or null */ lastLogin: string | null; /** * Whether the user has two-factor authentication enabled */ has2fa: boolean; /** * When the user was last active, or null */ lastActive: string | null; /** * Whether the user is a superuser */ isSuperuser: boolean; /** * Whether the user has staff status */ isStaff: boolean; /** * Deprecated. Always an empty object */ experiments: { [key: string]: string; }; /** * Email addresses of the user. Only included for the requesting user or superusers; empty otherwise */ emails: Array<{ /** * Email ID */ id: string; /** * Email address */ email: string; /** * Whether the email address is verified */ is_verified: boolean; }>; } | null; /** * Sentry App that acted, if one did */ sentry_app: { /** * ID of the Sentry App */ id: string; /** * Name of the Sentry App */ name: string; /** * Slug of the Sentry App */ slug: string; /** * Avatars of the Sentry App */ avatars: Array<{ /** * Avatar type: `default` or `upload` */ avatarType: string; /** * Unique identifier of the uploaded avatar file, or an empty string if none is set */ avatarUuid: string; /** * Absolute URL of the avatar image */ avatarUrl: string; /** * Whether this is the color logo (`true`) or the simple icon (`false`) */ color: boolean; /** * Kind of image: `logo` for the color logo or `icon` for the simple icon */ photoType: string; }>; } | null; /** * Type of the activity, which decides the shape of data */ type: 'seer_iteration_completed'; /** * Details of the activity, which depend on type */ data: { /** * ID of the Seer run */ run_id?: number; /** * Number of the iteration */ iteration_index?: number; /** * Pull requests that Seer opened or updated */ pull_requests?: Array<{ /** * Code host, such as github */ provider?: string; /** * Repository, such as owner/repo */ repo_name?: string; /** * The pull request */ pull_request?: { /** * Number of the pull request */ pr_number?: number; /** * URL of the pull request */ pr_url?: string; }; }>; }; /** * When the activity happened (ISO 8601) */ dateCreated: string; /** * Where the action came from, such as web, api or mcp: */ source?: string | null; } | { /** * ID of the activity, or 0 for a first-seen item built from the issue */ id: string; /** * ID to pass to the notes endpoints for a comment, otherwise null */ commentId: string | null; /** * User who acted, or null for Sentry, an integration or a Sentry App */ user: { /** * SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access */ identities?: Array<{ /** * SSO identity ID */ id: string; /** * User's identifier at the auth provider */ name: string; /** * Organization the auth provider belongs to */ organization: { /** * Organization slug */ slug: string; /** * Organization name */ name: string; }; /** * Auth provider of the identity */ provider: { /** * Auth provider key, such as google or saml2 */ id: string; /** * Display name of the auth provider */ name: string; }; /** * When the identity was last verified by signing in through the auth provider */ dateVerified: string; /** * When the identity was last synced from the auth provider */ dateSynced: string; }>; /** * User avatar */ avatar?: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Two-factor authenticators of the user, without backup methods such as recovery codes */ authenticators?: Array<{ /** * Authenticator ID */ id: string; /** * Authenticator type, such as totp, sms, u2f or recovery */ type: string; /** * Display name of the authenticator type */ name: string; /** * When the authenticator was added */ dateCreated: string; /** * When the authenticator was last used, or null */ dateUsed: string | null; }>; /** * Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization */ canReset2fa?: boolean; /** * User ID */ id: string; /** * Display name: the user's name, or their email or username if no name is set */ name: string; /** * Username */ username: string; /** * Primary email address */ email: string; /** * Gravatar URL for the primary email address */ avatarUrl: string; /** * Whether the account is active */ isActive: boolean; /** * Whether the account is suspended. Suspended users can't sign in */ isSuspended: boolean; /** * Whether the user has a password set */ hasPasswordAuth: boolean; /** * Whether the account is managed, which stops the user from changing their username, password and similar details */ isManaged: boolean; /** * When the account was created */ dateJoined: string; /** * When the user last signed in, or null */ lastLogin: string | null; /** * Whether the user has two-factor authentication enabled */ has2fa: boolean; /** * When the user was last active, or null */ lastActive: string | null; /** * Whether the user is a superuser */ isSuperuser: boolean; /** * Whether the user has staff status */ isStaff: boolean; /** * Deprecated. Always an empty object */ experiments: { [key: string]: string; }; /** * Email addresses of the user. Only included for the requesting user or superusers; empty otherwise */ emails: Array<{ /** * Email ID */ id: string; /** * Email address */ email: string; /** * Whether the email address is verified */ is_verified: boolean; }>; } | null; /** * Sentry App that acted, if one did */ sentry_app: { /** * ID of the Sentry App */ id: string; /** * Name of the Sentry App */ name: string; /** * Slug of the Sentry App */ slug: string; /** * Avatars of the Sentry App */ avatars: Array<{ /** * Avatar type: `default` or `upload` */ avatarType: string; /** * Unique identifier of the uploaded avatar file, or an empty string if none is set */ avatarUuid: string; /** * Absolute URL of the avatar image */ avatarUrl: string; /** * Whether this is the color logo (`true`) or the simple icon (`false`) */ color: boolean; /** * Kind of image: `logo` for the color logo or `icon` for the simple icon */ photoType: string; }>; } | null; /** * Type of the activity, which decides the shape of data */ type: 'seer_iteration_started'; /** * Details of the activity, which depend on type */ data: { /** * ID of the Seer run */ run_id?: number | null; /** * What started the Autofix run, such as api.web or slack */ referrer?: string | null; }; /** * When the activity happened (ISO 8601) */ dateCreated: string; /** * Where the action came from, such as web, api or mcp: */ source?: string | null; } | { /** * ID of the activity, or 0 for a first-seen item built from the issue */ id: string; /** * ID to pass to the notes endpoints for a comment, otherwise null */ commentId: string | null; /** * User who acted, or null for Sentry, an integration or a Sentry App */ user: { /** * SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access */ identities?: Array<{ /** * SSO identity ID */ id: string; /** * User's identifier at the auth provider */ name: string; /** * Organization the auth provider belongs to */ organization: { /** * Organization slug */ slug: string; /** * Organization name */ name: string; }; /** * Auth provider of the identity */ provider: { /** * Auth provider key, such as google or saml2 */ id: string; /** * Display name of the auth provider */ name: string; }; /** * When the identity was last verified by signing in through the auth provider */ dateVerified: string; /** * When the identity was last synced from the auth provider */ dateSynced: string; }>; /** * User avatar */ avatar?: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Two-factor authenticators of the user, without backup methods such as recovery codes */ authenticators?: Array<{ /** * Authenticator ID */ id: string; /** * Authenticator type, such as totp, sms, u2f or recovery */ type: string; /** * Display name of the authenticator type */ name: string; /** * When the authenticator was added */ dateCreated: string; /** * When the authenticator was last used, or null */ dateUsed: string | null; }>; /** * Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization */ canReset2fa?: boolean; /** * User ID */ id: string; /** * Display name: the user's name, or their email or username if no name is set */ name: string; /** * Username */ username: string; /** * Primary email address */ email: string; /** * Gravatar URL for the primary email address */ avatarUrl: string; /** * Whether the account is active */ isActive: boolean; /** * Whether the account is suspended. Suspended users can't sign in */ isSuspended: boolean; /** * Whether the user has a password set */ hasPasswordAuth: boolean; /** * Whether the account is managed, which stops the user from changing their username, password and similar details */ isManaged: boolean; /** * When the account was created */ dateJoined: string; /** * When the user last signed in, or null */ lastLogin: string | null; /** * Whether the user has two-factor authentication enabled */ has2fa: boolean; /** * When the user was last active, or null */ lastActive: string | null; /** * Whether the user is a superuser */ isSuperuser: boolean; /** * Whether the user has staff status */ isStaff: boolean; /** * Deprecated. Always an empty object */ experiments: { [key: string]: string; }; /** * Email addresses of the user. Only included for the requesting user or superusers; empty otherwise */ emails: Array<{ /** * Email ID */ id: string; /** * Email address */ email: string; /** * Whether the email address is verified */ is_verified: boolean; }>; } | null; /** * Sentry App that acted, if one did */ sentry_app: { /** * ID of the Sentry App */ id: string; /** * Name of the Sentry App */ name: string; /** * Slug of the Sentry App */ slug: string; /** * Avatars of the Sentry App */ avatars: Array<{ /** * Avatar type: `default` or `upload` */ avatarType: string; /** * Unique identifier of the uploaded avatar file, or an empty string if none is set */ avatarUuid: string; /** * Absolute URL of the avatar image */ avatarUrl: string; /** * Whether this is the color logo (`true`) or the simple icon (`false`) */ color: boolean; /** * Kind of image: `logo` for the color logo or `icon` for the simple icon */ photoType: string; }>; } | null; /** * Type of the activity, which decides the shape of data */ type: 'seer_pr_created'; /** * Details of the activity, which depend on type */ data: { /** * ID of the Seer run */ run_id?: number | null; /** * Pull requests that Seer opened or updated */ pull_requests?: Array<{ /** * Code host, such as github */ provider?: string; /** * Repository, such as owner/repo */ repo_name?: string; /** * The pull request */ pull_request?: { /** * Number of the pull request */ pr_number?: number; /** * URL of the pull request */ pr_url?: string; }; }> | null; }; /** * When the activity happened (ISO 8601) */ dateCreated: string; /** * Where the action came from, such as web, api or mcp: */ source?: string | null; } | { /** * ID of the activity, or 0 for a first-seen item built from the issue */ id: string; /** * ID to pass to the notes endpoints for a comment, otherwise null */ commentId: string | null; /** * User who acted, or null for Sentry, an integration or a Sentry App */ user: { /** * SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access */ identities?: Array<{ /** * SSO identity ID */ id: string; /** * User's identifier at the auth provider */ name: string; /** * Organization the auth provider belongs to */ organization: { /** * Organization slug */ slug: string; /** * Organization name */ name: string; }; /** * Auth provider of the identity */ provider: { /** * Auth provider key, such as google or saml2 */ id: string; /** * Display name of the auth provider */ name: string; }; /** * When the identity was last verified by signing in through the auth provider */ dateVerified: string; /** * When the identity was last synced from the auth provider */ dateSynced: string; }>; /** * User avatar */ avatar?: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Two-factor authenticators of the user, without backup methods such as recovery codes */ authenticators?: Array<{ /** * Authenticator ID */ id: string; /** * Authenticator type, such as totp, sms, u2f or recovery */ type: string; /** * Display name of the authenticator type */ name: string; /** * When the authenticator was added */ dateCreated: string; /** * When the authenticator was last used, or null */ dateUsed: string | null; }>; /** * Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization */ canReset2fa?: boolean; /** * User ID */ id: string; /** * Display name: the user's name, or their email or username if no name is set */ name: string; /** * Username */ username: string; /** * Primary email address */ email: string; /** * Gravatar URL for the primary email address */ avatarUrl: string; /** * Whether the account is active */ isActive: boolean; /** * Whether the account is suspended. Suspended users can't sign in */ isSuspended: boolean; /** * Whether the user has a password set */ hasPasswordAuth: boolean; /** * Whether the account is managed, which stops the user from changing their username, password and similar details */ isManaged: boolean; /** * When the account was created */ dateJoined: string; /** * When the user last signed in, or null */ lastLogin: string | null; /** * Whether the user has two-factor authentication enabled */ has2fa: boolean; /** * When the user was last active, or null */ lastActive: string | null; /** * Whether the user is a superuser */ isSuperuser: boolean; /** * Whether the user has staff status */ isStaff: boolean; /** * Deprecated. Always an empty object */ experiments: { [key: string]: string; }; /** * Email addresses of the user. Only included for the requesting user or superusers; empty otherwise */ emails: Array<{ /** * Email ID */ id: string; /** * Email address */ email: string; /** * Whether the email address is verified */ is_verified: boolean; }>; } | null; /** * Sentry App that acted, if one did */ sentry_app: { /** * ID of the Sentry App */ id: string; /** * Name of the Sentry App */ name: string; /** * Slug of the Sentry App */ slug: string; /** * Avatars of the Sentry App */ avatars: Array<{ /** * Avatar type: `default` or `upload` */ avatarType: string; /** * Unique identifier of the uploaded avatar file, or an empty string if none is set */ avatarUuid: string; /** * Absolute URL of the avatar image */ avatarUrl: string; /** * Whether this is the color logo (`true`) or the simple icon (`false`) */ color: boolean; /** * Kind of image: `logo` for the color logo or `icon` for the simple icon */ photoType: string; }>; } | null; /** * Type of the activity, which decides the shape of data */ type: 'seer_pr_ready_for_review'; /** * Details of the activity, which depend on type */ data: { /** * ID of the Seer run */ run_id?: number | null; /** * Pull requests that Seer opened or updated */ pull_requests?: Array<{ /** * Code host, such as github */ provider?: string; /** * Repository, such as owner/repo */ repo_name?: string; /** * The pull request */ pull_request?: { /** * Number of the pull request */ pr_number?: number; /** * URL of the pull request */ pr_url?: string; }; }> | null; }; /** * When the activity happened (ISO 8601) */ dateCreated: string; /** * Where the action came from, such as web, api or mcp: */ source?: string | null; } | { /** * ID of the activity, or 0 for a first-seen item built from the issue */ id: string; /** * ID to pass to the notes endpoints for a comment, otherwise null */ commentId: string | null; /** * User who acted, or null for Sentry, an integration or a Sentry App */ user: { /** * SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access */ identities?: Array<{ /** * SSO identity ID */ id: string; /** * User's identifier at the auth provider */ name: string; /** * Organization the auth provider belongs to */ organization: { /** * Organization slug */ slug: string; /** * Organization name */ name: string; }; /** * Auth provider of the identity */ provider: { /** * Auth provider key, such as google or saml2 */ id: string; /** * Display name of the auth provider */ name: string; }; /** * When the identity was last verified by signing in through the auth provider */ dateVerified: string; /** * When the identity was last synced from the auth provider */ dateSynced: string; }>; /** * User avatar */ avatar?: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Two-factor authenticators of the user, without backup methods such as recovery codes */ authenticators?: Array<{ /** * Authenticator ID */ id: string; /** * Authenticator type, such as totp, sms, u2f or recovery */ type: string; /** * Display name of the authenticator type */ name: string; /** * When the authenticator was added */ dateCreated: string; /** * When the authenticator was last used, or null */ dateUsed: string | null; }>; /** * Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization */ canReset2fa?: boolean; /** * User ID */ id: string; /** * Display name: the user's name, or their email or username if no name is set */ name: string; /** * Username */ username: string; /** * Primary email address */ email: string; /** * Gravatar URL for the primary email address */ avatarUrl: string; /** * Whether the account is active */ isActive: boolean; /** * Whether the account is suspended. Suspended users can't sign in */ isSuspended: boolean; /** * Whether the user has a password set */ hasPasswordAuth: boolean; /** * Whether the account is managed, which stops the user from changing their username, password and similar details */ isManaged: boolean; /** * When the account was created */ dateJoined: string; /** * When the user last signed in, or null */ lastLogin: string | null; /** * Whether the user has two-factor authentication enabled */ has2fa: boolean; /** * When the user was last active, or null */ lastActive: string | null; /** * Whether the user is a superuser */ isSuperuser: boolean; /** * Whether the user has staff status */ isStaff: boolean; /** * Deprecated. Always an empty object */ experiments: { [key: string]: string; }; /** * Email addresses of the user. Only included for the requesting user or superusers; empty otherwise */ emails: Array<{ /** * Email ID */ id: string; /** * Email address */ email: string; /** * Whether the email address is verified */ is_verified: boolean; }>; } | null; /** * Sentry App that acted, if one did */ sentry_app: { /** * ID of the Sentry App */ id: string; /** * Name of the Sentry App */ name: string; /** * Slug of the Sentry App */ slug: string; /** * Avatars of the Sentry App */ avatars: Array<{ /** * Avatar type: `default` or `upload` */ avatarType: string; /** * Unique identifier of the uploaded avatar file, or an empty string if none is set */ avatarUuid: string; /** * Absolute URL of the avatar image */ avatarUrl: string; /** * Whether this is the color logo (`true`) or the simple icon (`false`) */ color: boolean; /** * Kind of image: `logo` for the color logo or `icon` for the simple icon */ photoType: string; }>; } | null; /** * Type of the activity, which decides the shape of data */ type: 'seer_rca_completed'; /** * Details of the activity, which depend on type */ data: { /** * ID of the Seer run */ run_id?: number | string | null; /** * One-line summary of what Seer found */ summary?: string | null; /** * Root cause that Seer found */ root_cause?: { [key: string]: string | Array; } | null; }; /** * When the activity happened (ISO 8601) */ dateCreated: string; /** * Where the action came from, such as web, api or mcp: */ source?: string | null; } | { /** * ID of the activity, or 0 for a first-seen item built from the issue */ id: string; /** * ID to pass to the notes endpoints for a comment, otherwise null */ commentId: string | null; /** * User who acted, or null for Sentry, an integration or a Sentry App */ user: { /** * SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access */ identities?: Array<{ /** * SSO identity ID */ id: string; /** * User's identifier at the auth provider */ name: string; /** * Organization the auth provider belongs to */ organization: { /** * Organization slug */ slug: string; /** * Organization name */ name: string; }; /** * Auth provider of the identity */ provider: { /** * Auth provider key, such as google or saml2 */ id: string; /** * Display name of the auth provider */ name: string; }; /** * When the identity was last verified by signing in through the auth provider */ dateVerified: string; /** * When the identity was last synced from the auth provider */ dateSynced: string; }>; /** * User avatar */ avatar?: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Two-factor authenticators of the user, without backup methods such as recovery codes */ authenticators?: Array<{ /** * Authenticator ID */ id: string; /** * Authenticator type, such as totp, sms, u2f or recovery */ type: string; /** * Display name of the authenticator type */ name: string; /** * When the authenticator was added */ dateCreated: string; /** * When the authenticator was last used, or null */ dateUsed: string | null; }>; /** * Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization */ canReset2fa?: boolean; /** * User ID */ id: string; /** * Display name: the user's name, or their email or username if no name is set */ name: string; /** * Username */ username: string; /** * Primary email address */ email: string; /** * Gravatar URL for the primary email address */ avatarUrl: string; /** * Whether the account is active */ isActive: boolean; /** * Whether the account is suspended. Suspended users can't sign in */ isSuspended: boolean; /** * Whether the user has a password set */ hasPasswordAuth: boolean; /** * Whether the account is managed, which stops the user from changing their username, password and similar details */ isManaged: boolean; /** * When the account was created */ dateJoined: string; /** * When the user last signed in, or null */ lastLogin: string | null; /** * Whether the user has two-factor authentication enabled */ has2fa: boolean; /** * When the user was last active, or null */ lastActive: string | null; /** * Whether the user is a superuser */ isSuperuser: boolean; /** * Whether the user has staff status */ isStaff: boolean; /** * Deprecated. Always an empty object */ experiments: { [key: string]: string; }; /** * Email addresses of the user. Only included for the requesting user or superusers; empty otherwise */ emails: Array<{ /** * Email ID */ id: string; /** * Email address */ email: string; /** * Whether the email address is verified */ is_verified: boolean; }>; } | null; /** * Sentry App that acted, if one did */ sentry_app: { /** * ID of the Sentry App */ id: string; /** * Name of the Sentry App */ name: string; /** * Slug of the Sentry App */ slug: string; /** * Avatars of the Sentry App */ avatars: Array<{ /** * Avatar type: `default` or `upload` */ avatarType: string; /** * Unique identifier of the uploaded avatar file, or an empty string if none is set */ avatarUuid: string; /** * Absolute URL of the avatar image */ avatarUrl: string; /** * Whether this is the color logo (`true`) or the simple icon (`false`) */ color: boolean; /** * Kind of image: `logo` for the color logo or `icon` for the simple icon */ photoType: string; }>; } | null; /** * Type of the activity, which decides the shape of data */ type: 'seer_rca_started'; /** * Details of the activity, which depend on type */ data: { /** * ID of the Seer run */ run_id?: number | null; }; /** * When the activity happened (ISO 8601) */ dateCreated: string; /** * Where the action came from, such as web, api or mcp: */ source?: string | null; } | { /** * ID of the activity, or 0 for a first-seen item built from the issue */ id: string; /** * ID to pass to the notes endpoints for a comment, otherwise null */ commentId: string | null; /** * User who acted, or null for Sentry, an integration or a Sentry App */ user: { /** * SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access */ identities?: Array<{ /** * SSO identity ID */ id: string; /** * User's identifier at the auth provider */ name: string; /** * Organization the auth provider belongs to */ organization: { /** * Organization slug */ slug: string; /** * Organization name */ name: string; }; /** * Auth provider of the identity */ provider: { /** * Auth provider key, such as google or saml2 */ id: string; /** * Display name of the auth provider */ name: string; }; /** * When the identity was last verified by signing in through the auth provider */ dateVerified: string; /** * When the identity was last synced from the auth provider */ dateSynced: string; }>; /** * User avatar */ avatar?: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Two-factor authenticators of the user, without backup methods such as recovery codes */ authenticators?: Array<{ /** * Authenticator ID */ id: string; /** * Authenticator type, such as totp, sms, u2f or recovery */ type: string; /** * Display name of the authenticator type */ name: string; /** * When the authenticator was added */ dateCreated: string; /** * When the authenticator was last used, or null */ dateUsed: string | null; }>; /** * Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization */ canReset2fa?: boolean; /** * User ID */ id: string; /** * Display name: the user's name, or their email or username if no name is set */ name: string; /** * Username */ username: string; /** * Primary email address */ email: string; /** * Gravatar URL for the primary email address */ avatarUrl: string; /** * Whether the account is active */ isActive: boolean; /** * Whether the account is suspended. Suspended users can't sign in */ isSuspended: boolean; /** * Whether the user has a password set */ hasPasswordAuth: boolean; /** * Whether the account is managed, which stops the user from changing their username, password and similar details */ isManaged: boolean; /** * When the account was created */ dateJoined: string; /** * When the user last signed in, or null */ lastLogin: string | null; /** * Whether the user has two-factor authentication enabled */ has2fa: boolean; /** * When the user was last active, or null */ lastActive: string | null; /** * Whether the user is a superuser */ isSuperuser: boolean; /** * Whether the user has staff status */ isStaff: boolean; /** * Deprecated. Always an empty object */ experiments: { [key: string]: string; }; /** * Email addresses of the user. Only included for the requesting user or superusers; empty otherwise */ emails: Array<{ /** * Email ID */ id: string; /** * Email address */ email: string; /** * Whether the email address is verified */ is_verified: boolean; }>; } | null; /** * Sentry App that acted, if one did */ sentry_app: { /** * ID of the Sentry App */ id: string; /** * Name of the Sentry App */ name: string; /** * Slug of the Sentry App */ slug: string; /** * Avatars of the Sentry App */ avatars: Array<{ /** * Avatar type: `default` or `upload` */ avatarType: string; /** * Unique identifier of the uploaded avatar file, or an empty string if none is set */ avatarUuid: string; /** * Absolute URL of the avatar image */ avatarUrl: string; /** * Whether this is the color logo (`true`) or the simple icon (`false`) */ color: boolean; /** * Kind of image: `logo` for the color logo or `icon` for the simple icon */ photoType: string; }>; } | null; /** * Type of the activity, which decides the shape of data */ type: 'seer_solution_completed'; /** * Details of the activity, which depend on type */ data: { /** * ID of the Seer run */ run_id?: number | null; /** * Solution that Seer proposed */ solution?: { [key: string]: string | Array<{ [key: string]: string; }>; } | null; /** * One-line summary of what Seer found */ summary?: string | null; }; /** * When the activity happened (ISO 8601) */ dateCreated: string; /** * Where the action came from, such as web, api or mcp: */ source?: string | null; } | { /** * ID of the activity, or 0 for a first-seen item built from the issue */ id: string; /** * ID to pass to the notes endpoints for a comment, otherwise null */ commentId: string | null; /** * User who acted, or null for Sentry, an integration or a Sentry App */ user: { /** * SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access */ identities?: Array<{ /** * SSO identity ID */ id: string; /** * User's identifier at the auth provider */ name: string; /** * Organization the auth provider belongs to */ organization: { /** * Organization slug */ slug: string; /** * Organization name */ name: string; }; /** * Auth provider of the identity */ provider: { /** * Auth provider key, such as google or saml2 */ id: string; /** * Display name of the auth provider */ name: string; }; /** * When the identity was last verified by signing in through the auth provider */ dateVerified: string; /** * When the identity was last synced from the auth provider */ dateSynced: string; }>; /** * User avatar */ avatar?: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Two-factor authenticators of the user, without backup methods such as recovery codes */ authenticators?: Array<{ /** * Authenticator ID */ id: string; /** * Authenticator type, such as totp, sms, u2f or recovery */ type: string; /** * Display name of the authenticator type */ name: string; /** * When the authenticator was added */ dateCreated: string; /** * When the authenticator was last used, or null */ dateUsed: string | null; }>; /** * Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization */ canReset2fa?: boolean; /** * User ID */ id: string; /** * Display name: the user's name, or their email or username if no name is set */ name: string; /** * Username */ username: string; /** * Primary email address */ email: string; /** * Gravatar URL for the primary email address */ avatarUrl: string; /** * Whether the account is active */ isActive: boolean; /** * Whether the account is suspended. Suspended users can't sign in */ isSuspended: boolean; /** * Whether the user has a password set */ hasPasswordAuth: boolean; /** * Whether the account is managed, which stops the user from changing their username, password and similar details */ isManaged: boolean; /** * When the account was created */ dateJoined: string; /** * When the user last signed in, or null */ lastLogin: string | null; /** * Whether the user has two-factor authentication enabled */ has2fa: boolean; /** * When the user was last active, or null */ lastActive: string | null; /** * Whether the user is a superuser */ isSuperuser: boolean; /** * Whether the user has staff status */ isStaff: boolean; /** * Deprecated. Always an empty object */ experiments: { [key: string]: string; }; /** * Email addresses of the user. Only included for the requesting user or superusers; empty otherwise */ emails: Array<{ /** * Email ID */ id: string; /** * Email address */ email: string; /** * Whether the email address is verified */ is_verified: boolean; }>; } | null; /** * Sentry App that acted, if one did */ sentry_app: { /** * ID of the Sentry App */ id: string; /** * Name of the Sentry App */ name: string; /** * Slug of the Sentry App */ slug: string; /** * Avatars of the Sentry App */ avatars: Array<{ /** * Avatar type: `default` or `upload` */ avatarType: string; /** * Unique identifier of the uploaded avatar file, or an empty string if none is set */ avatarUuid: string; /** * Absolute URL of the avatar image */ avatarUrl: string; /** * Whether this is the color logo (`true`) or the simple icon (`false`) */ color: boolean; /** * Kind of image: `logo` for the color logo or `icon` for the simple icon */ photoType: string; }>; } | null; /** * Type of the activity, which decides the shape of data */ type: 'seer_solution_started'; /** * Details of the activity, which depend on type */ data: { /** * ID of the Seer run */ run_id?: number | null; }; /** * When the activity happened (ISO 8601) */ dateCreated: string; /** * Where the action came from, such as web, api or mcp: */ source?: string | null; } | { /** * ID of the activity, or 0 for a first-seen item built from the issue */ id: string; /** * ID to pass to the notes endpoints for a comment, otherwise null */ commentId: string | null; /** * User who acted, or null for Sentry, an integration or a Sentry App */ user: { /** * SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access */ identities?: Array<{ /** * SSO identity ID */ id: string; /** * User's identifier at the auth provider */ name: string; /** * Organization the auth provider belongs to */ organization: { /** * Organization slug */ slug: string; /** * Organization name */ name: string; }; /** * Auth provider of the identity */ provider: { /** * Auth provider key, such as google or saml2 */ id: string; /** * Display name of the auth provider */ name: string; }; /** * When the identity was last verified by signing in through the auth provider */ dateVerified: string; /** * When the identity was last synced from the auth provider */ dateSynced: string; }>; /** * User avatar */ avatar?: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Two-factor authenticators of the user, without backup methods such as recovery codes */ authenticators?: Array<{ /** * Authenticator ID */ id: string; /** * Authenticator type, such as totp, sms, u2f or recovery */ type: string; /** * Display name of the authenticator type */ name: string; /** * When the authenticator was added */ dateCreated: string; /** * When the authenticator was last used, or null */ dateUsed: string | null; }>; /** * Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization */ canReset2fa?: boolean; /** * User ID */ id: string; /** * Display name: the user's name, or their email or username if no name is set */ name: string; /** * Username */ username: string; /** * Primary email address */ email: string; /** * Gravatar URL for the primary email address */ avatarUrl: string; /** * Whether the account is active */ isActive: boolean; /** * Whether the account is suspended. Suspended users can't sign in */ isSuspended: boolean; /** * Whether the user has a password set */ hasPasswordAuth: boolean; /** * Whether the account is managed, which stops the user from changing their username, password and similar details */ isManaged: boolean; /** * When the account was created */ dateJoined: string; /** * When the user last signed in, or null */ lastLogin: string | null; /** * Whether the user has two-factor authentication enabled */ has2fa: boolean; /** * When the user was last active, or null */ lastActive: string | null; /** * Whether the user is a superuser */ isSuperuser: boolean; /** * Whether the user has staff status */ isStaff: boolean; /** * Deprecated. Always an empty object */ experiments: { [key: string]: string; }; /** * Email addresses of the user. Only included for the requesting user or superusers; empty otherwise */ emails: Array<{ /** * Email ID */ id: string; /** * Email address */ email: string; /** * Whether the email address is verified */ is_verified: boolean; }>; } | null; /** * Sentry App that acted, if one did */ sentry_app: { /** * ID of the Sentry App */ id: string; /** * Name of the Sentry App */ name: string; /** * Slug of the Sentry App */ slug: string; /** * Avatars of the Sentry App */ avatars: Array<{ /** * Avatar type: `default` or `upload` */ avatarType: string; /** * Unique identifier of the uploaded avatar file, or an empty string if none is set */ avatarUuid: string; /** * Absolute URL of the avatar image */ avatarUrl: string; /** * Whether this is the color logo (`true`) or the simple icon (`false`) */ color: boolean; /** * Kind of image: `logo` for the color logo or `icon` for the simple icon */ photoType: string; }>; } | null; /** * Type of the activity, which decides the shape of data */ type: 'seer_stopped'; /** * Details of the activity, which depend on type */ data: { /** * ID of the Seer run */ run_id?: number | null; /** * Why Seer stopped instead of fixing the issue */ reason?: string | null; /** * What Seer suggests doing instead */ suggestion?: string | null; }; /** * When the activity happened (ISO 8601) */ dateCreated: string; /** * Where the action came from, such as web, api or mcp: */ source?: string | null; } | { /** * ID of the activity, or 0 for a first-seen item built from the issue */ id: string; /** * ID to pass to the notes endpoints for a comment, otherwise null */ commentId: string | null; /** * User who acted, or null for Sentry, an integration or a Sentry App */ user: { /** * SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access */ identities?: Array<{ /** * SSO identity ID */ id: string; /** * User's identifier at the auth provider */ name: string; /** * Organization the auth provider belongs to */ organization: { /** * Organization slug */ slug: string; /** * Organization name */ name: string; }; /** * Auth provider of the identity */ provider: { /** * Auth provider key, such as google or saml2 */ id: string; /** * Display name of the auth provider */ name: string; }; /** * When the identity was last verified by signing in through the auth provider */ dateVerified: string; /** * When the identity was last synced from the auth provider */ dateSynced: string; }>; /** * User avatar */ avatar?: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Two-factor authenticators of the user, without backup methods such as recovery codes */ authenticators?: Array<{ /** * Authenticator ID */ id: string; /** * Authenticator type, such as totp, sms, u2f or recovery */ type: string; /** * Display name of the authenticator type */ name: string; /** * When the authenticator was added */ dateCreated: string; /** * When the authenticator was last used, or null */ dateUsed: string | null; }>; /** * Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization */ canReset2fa?: boolean; /** * User ID */ id: string; /** * Display name: the user's name, or their email or username if no name is set */ name: string; /** * Username */ username: string; /** * Primary email address */ email: string; /** * Gravatar URL for the primary email address */ avatarUrl: string; /** * Whether the account is active */ isActive: boolean; /** * Whether the account is suspended. Suspended users can't sign in */ isSuspended: boolean; /** * Whether the user has a password set */ hasPasswordAuth: boolean; /** * Whether the account is managed, which stops the user from changing their username, password and similar details */ isManaged: boolean; /** * When the account was created */ dateJoined: string; /** * When the user last signed in, or null */ lastLogin: string | null; /** * Whether the user has two-factor authentication enabled */ has2fa: boolean; /** * When the user was last active, or null */ lastActive: string | null; /** * Whether the user is a superuser */ isSuperuser: boolean; /** * Whether the user has staff status */ isStaff: boolean; /** * Deprecated. Always an empty object */ experiments: { [key: string]: string; }; /** * Email addresses of the user. Only included for the requesting user or superusers; empty otherwise */ emails: Array<{ /** * Email ID */ id: string; /** * Email address */ email: string; /** * Whether the email address is verified */ is_verified: boolean; }>; } | null; /** * Sentry App that acted, if one did */ sentry_app: { /** * ID of the Sentry App */ id: string; /** * Name of the Sentry App */ name: string; /** * Slug of the Sentry App */ slug: string; /** * Avatars of the Sentry App */ avatars: Array<{ /** * Avatar type: `default` or `upload` */ avatarType: string; /** * Unique identifier of the uploaded avatar file, or an empty string if none is set */ avatarUuid: string; /** * Absolute URL of the avatar image */ avatarUrl: string; /** * Whether this is the color logo (`true`) or the simple icon (`false`) */ color: boolean; /** * Kind of image: `logo` for the color logo or `icon` for the simple icon */ photoType: string; }>; } | null; /** * Type of the activity, which decides the shape of data */ type: 'set_escalating'; /** * Details of the activity, which depend on type */ data: { /** * ID of the event that caused the change */ event_id?: string | null; /** * Forecast of the issue's daily events when it escalated */ forecast?: number | null; /** * The archive conditions that expired when the issue escalated */ expired_snooze?: { /** * Event count condition */ count?: number | null; /** * Date condition */ until?: string | null; /** * User count condition */ user_count?: number | null; /** * Minutes over which user_count is counted */ user_window?: number | null; /** * Minutes over which count is counted */ window?: number | null; } | null; }; /** * When the activity happened (ISO 8601) */ dateCreated: string; /** * Where the action came from, such as web, api or mcp: */ source?: string | null; } | { /** * ID of the activity, or 0 for a first-seen item built from the issue */ id: string; /** * ID to pass to the notes endpoints for a comment, otherwise null */ commentId: string | null; /** * User who acted, or null for Sentry, an integration or a Sentry App */ user: { /** * SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access */ identities?: Array<{ /** * SSO identity ID */ id: string; /** * User's identifier at the auth provider */ name: string; /** * Organization the auth provider belongs to */ organization: { /** * Organization slug */ slug: string; /** * Organization name */ name: string; }; /** * Auth provider of the identity */ provider: { /** * Auth provider key, such as google or saml2 */ id: string; /** * Display name of the auth provider */ name: string; }; /** * When the identity was last verified by signing in through the auth provider */ dateVerified: string; /** * When the identity was last synced from the auth provider */ dateSynced: string; }>; /** * User avatar */ avatar?: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Two-factor authenticators of the user, without backup methods such as recovery codes */ authenticators?: Array<{ /** * Authenticator ID */ id: string; /** * Authenticator type, such as totp, sms, u2f or recovery */ type: string; /** * Display name of the authenticator type */ name: string; /** * When the authenticator was added */ dateCreated: string; /** * When the authenticator was last used, or null */ dateUsed: string | null; }>; /** * Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization */ canReset2fa?: boolean; /** * User ID */ id: string; /** * Display name: the user's name, or their email or username if no name is set */ name: string; /** * Username */ username: string; /** * Primary email address */ email: string; /** * Gravatar URL for the primary email address */ avatarUrl: string; /** * Whether the account is active */ isActive: boolean; /** * Whether the account is suspended. Suspended users can't sign in */ isSuspended: boolean; /** * Whether the user has a password set */ hasPasswordAuth: boolean; /** * Whether the account is managed, which stops the user from changing their username, password and similar details */ isManaged: boolean; /** * When the account was created */ dateJoined: string; /** * When the user last signed in, or null */ lastLogin: string | null; /** * Whether the user has two-factor authentication enabled */ has2fa: boolean; /** * When the user was last active, or null */ lastActive: string | null; /** * Whether the user is a superuser */ isSuperuser: boolean; /** * Whether the user has staff status */ isStaff: boolean; /** * Deprecated. Always an empty object */ experiments: { [key: string]: string; }; /** * Email addresses of the user. Only included for the requesting user or superusers; empty otherwise */ emails: Array<{ /** * Email ID */ id: string; /** * Email address */ email: string; /** * Whether the email address is verified */ is_verified: boolean; }>; } | null; /** * Sentry App that acted, if one did */ sentry_app: { /** * ID of the Sentry App */ id: string; /** * Name of the Sentry App */ name: string; /** * Slug of the Sentry App */ slug: string; /** * Avatars of the Sentry App */ avatars: Array<{ /** * Avatar type: `default` or `upload` */ avatarType: string; /** * Unique identifier of the uploaded avatar file, or an empty string if none is set */ avatarUuid: string; /** * Absolute URL of the avatar image */ avatarUrl: string; /** * Whether this is the color logo (`true`) or the simple icon (`false`) */ color: boolean; /** * Kind of image: `logo` for the color logo or `icon` for the simple icon */ photoType: string; }>; } | null; /** * Type of the activity, which decides the shape of data */ type: 'set_ignored'; /** * Details of the activity, which depend on type */ data: { /** * Number of events after which the issue is unarchived */ ignoreCount?: number | null; /** * Minutes the issue is archived for */ ignoreDuration?: number | null; /** * When the issue is unarchived (ISO 8601) */ ignoreUntil?: string | null; /** * Number of affected users after which the issue is unarchived */ ignoreUserCount?: number | null; /** * Minutes over which ignoreUserCount is counted */ ignoreUserWindow?: number | null; /** * Minutes over which ignoreCount is counted */ ignoreWindow?: number | null; /** * Whether the issue is archived until it escalates */ ignoreUntilEscalating?: boolean | null; }; /** * When the activity happened (ISO 8601) */ dateCreated: string; /** * Where the action came from, such as web, api or mcp: */ source?: string | null; } | { /** * ID of the activity, or 0 for a first-seen item built from the issue */ id: string; /** * ID to pass to the notes endpoints for a comment, otherwise null */ commentId: string | null; /** * User who acted, or null for Sentry, an integration or a Sentry App */ user: { /** * SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access */ identities?: Array<{ /** * SSO identity ID */ id: string; /** * User's identifier at the auth provider */ name: string; /** * Organization the auth provider belongs to */ organization: { /** * Organization slug */ slug: string; /** * Organization name */ name: string; }; /** * Auth provider of the identity */ provider: { /** * Auth provider key, such as google or saml2 */ id: string; /** * Display name of the auth provider */ name: string; }; /** * When the identity was last verified by signing in through the auth provider */ dateVerified: string; /** * When the identity was last synced from the auth provider */ dateSynced: string; }>; /** * User avatar */ avatar?: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Two-factor authenticators of the user, without backup methods such as recovery codes */ authenticators?: Array<{ /** * Authenticator ID */ id: string; /** * Authenticator type, such as totp, sms, u2f or recovery */ type: string; /** * Display name of the authenticator type */ name: string; /** * When the authenticator was added */ dateCreated: string; /** * When the authenticator was last used, or null */ dateUsed: string | null; }>; /** * Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization */ canReset2fa?: boolean; /** * User ID */ id: string; /** * Display name: the user's name, or their email or username if no name is set */ name: string; /** * Username */ username: string; /** * Primary email address */ email: string; /** * Gravatar URL for the primary email address */ avatarUrl: string; /** * Whether the account is active */ isActive: boolean; /** * Whether the account is suspended. Suspended users can't sign in */ isSuspended: boolean; /** * Whether the user has a password set */ hasPasswordAuth: boolean; /** * Whether the account is managed, which stops the user from changing their username, password and similar details */ isManaged: boolean; /** * When the account was created */ dateJoined: string; /** * When the user last signed in, or null */ lastLogin: string | null; /** * Whether the user has two-factor authentication enabled */ has2fa: boolean; /** * When the user was last active, or null */ lastActive: string | null; /** * Whether the user is a superuser */ isSuperuser: boolean; /** * Whether the user has staff status */ isStaff: boolean; /** * Deprecated. Always an empty object */ experiments: { [key: string]: string; }; /** * Email addresses of the user. Only included for the requesting user or superusers; empty otherwise */ emails: Array<{ /** * Email ID */ id: string; /** * Email address */ email: string; /** * Whether the email address is verified */ is_verified: boolean; }>; } | null; /** * Sentry App that acted, if one did */ sentry_app: { /** * ID of the Sentry App */ id: string; /** * Name of the Sentry App */ name: string; /** * Slug of the Sentry App */ slug: string; /** * Avatars of the Sentry App */ avatars: Array<{ /** * Avatar type: `default` or `upload` */ avatarType: string; /** * Unique identifier of the uploaded avatar file, or an empty string if none is set */ avatarUuid: string; /** * Absolute URL of the avatar image */ avatarUrl: string; /** * Whether this is the color logo (`true`) or the simple icon (`false`) */ color: boolean; /** * Kind of image: `logo` for the color logo or `icon` for the simple icon */ photoType: string; }>; } | null; /** * Type of the activity, which decides the shape of data */ type: 'set_priority'; /** * Details of the activity, which depend on type */ data: { /** * New priority of the issue: high, medium or low */ priority?: string; /** * Why the priority changed, such as escalating or ongoing */ reason?: string | null; }; /** * When the activity happened (ISO 8601) */ dateCreated: string; /** * Where the action came from, such as web, api or mcp: */ source?: string | null; } | { /** * ID of the activity, or 0 for a first-seen item built from the issue */ id: string; /** * ID to pass to the notes endpoints for a comment, otherwise null */ commentId: string | null; /** * User who acted, or null for Sentry, an integration or a Sentry App */ user: { /** * SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access */ identities?: Array<{ /** * SSO identity ID */ id: string; /** * User's identifier at the auth provider */ name: string; /** * Organization the auth provider belongs to */ organization: { /** * Organization slug */ slug: string; /** * Organization name */ name: string; }; /** * Auth provider of the identity */ provider: { /** * Auth provider key, such as google or saml2 */ id: string; /** * Display name of the auth provider */ name: string; }; /** * When the identity was last verified by signing in through the auth provider */ dateVerified: string; /** * When the identity was last synced from the auth provider */ dateSynced: string; }>; /** * User avatar */ avatar?: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Two-factor authenticators of the user, without backup methods such as recovery codes */ authenticators?: Array<{ /** * Authenticator ID */ id: string; /** * Authenticator type, such as totp, sms, u2f or recovery */ type: string; /** * Display name of the authenticator type */ name: string; /** * When the authenticator was added */ dateCreated: string; /** * When the authenticator was last used, or null */ dateUsed: string | null; }>; /** * Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization */ canReset2fa?: boolean; /** * User ID */ id: string; /** * Display name: the user's name, or their email or username if no name is set */ name: string; /** * Username */ username: string; /** * Primary email address */ email: string; /** * Gravatar URL for the primary email address */ avatarUrl: string; /** * Whether the account is active */ isActive: boolean; /** * Whether the account is suspended. Suspended users can't sign in */ isSuspended: boolean; /** * Whether the user has a password set */ hasPasswordAuth: boolean; /** * Whether the account is managed, which stops the user from changing their username, password and similar details */ isManaged: boolean; /** * When the account was created */ dateJoined: string; /** * When the user last signed in, or null */ lastLogin: string | null; /** * Whether the user has two-factor authentication enabled */ has2fa: boolean; /** * When the user was last active, or null */ lastActive: string | null; /** * Whether the user is a superuser */ isSuperuser: boolean; /** * Whether the user has staff status */ isStaff: boolean; /** * Deprecated. Always an empty object */ experiments: { [key: string]: string; }; /** * Email addresses of the user. Only included for the requesting user or superusers; empty otherwise */ emails: Array<{ /** * Email ID */ id: string; /** * Email address */ email: string; /** * Whether the email address is verified */ is_verified: boolean; }>; } | null; /** * Sentry App that acted, if one did */ sentry_app: { /** * ID of the Sentry App */ id: string; /** * Name of the Sentry App */ name: string; /** * Slug of the Sentry App */ slug: string; /** * Avatars of the Sentry App */ avatars: Array<{ /** * Avatar type: `default` or `upload` */ avatarType: string; /** * Unique identifier of the uploaded avatar file, or an empty string if none is set */ avatarUuid: string; /** * Absolute URL of the avatar image */ avatarUrl: string; /** * Whether this is the color logo (`true`) or the simple icon (`false`) */ color: boolean; /** * Kind of image: `logo` for the color logo or `icon` for the simple icon */ photoType: string; }>; } | null; /** * Type of the activity, which decides the shape of data */ type: 'set_private'; /** * Details of the activity, which depend on type */ data: { [key: string]: unknown; }; /** * When the activity happened (ISO 8601) */ dateCreated: string; /** * Where the action came from, such as web, api or mcp: */ source?: string | null; } | { /** * ID of the activity, or 0 for a first-seen item built from the issue */ id: string; /** * ID to pass to the notes endpoints for a comment, otherwise null */ commentId: string | null; /** * User who acted, or null for Sentry, an integration or a Sentry App */ user: { /** * SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access */ identities?: Array<{ /** * SSO identity ID */ id: string; /** * User's identifier at the auth provider */ name: string; /** * Organization the auth provider belongs to */ organization: { /** * Organization slug */ slug: string; /** * Organization name */ name: string; }; /** * Auth provider of the identity */ provider: { /** * Auth provider key, such as google or saml2 */ id: string; /** * Display name of the auth provider */ name: string; }; /** * When the identity was last verified by signing in through the auth provider */ dateVerified: string; /** * When the identity was last synced from the auth provider */ dateSynced: string; }>; /** * User avatar */ avatar?: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Two-factor authenticators of the user, without backup methods such as recovery codes */ authenticators?: Array<{ /** * Authenticator ID */ id: string; /** * Authenticator type, such as totp, sms, u2f or recovery */ type: string; /** * Display name of the authenticator type */ name: string; /** * When the authenticator was added */ dateCreated: string; /** * When the authenticator was last used, or null */ dateUsed: string | null; }>; /** * Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization */ canReset2fa?: boolean; /** * User ID */ id: string; /** * Display name: the user's name, or their email or username if no name is set */ name: string; /** * Username */ username: string; /** * Primary email address */ email: string; /** * Gravatar URL for the primary email address */ avatarUrl: string; /** * Whether the account is active */ isActive: boolean; /** * Whether the account is suspended. Suspended users can't sign in */ isSuspended: boolean; /** * Whether the user has a password set */ hasPasswordAuth: boolean; /** * Whether the account is managed, which stops the user from changing their username, password and similar details */ isManaged: boolean; /** * When the account was created */ dateJoined: string; /** * When the user last signed in, or null */ lastLogin: string | null; /** * Whether the user has two-factor authentication enabled */ has2fa: boolean; /** * When the user was last active, or null */ lastActive: string | null; /** * Whether the user is a superuser */ isSuperuser: boolean; /** * Whether the user has staff status */ isStaff: boolean; /** * Deprecated. Always an empty object */ experiments: { [key: string]: string; }; /** * Email addresses of the user. Only included for the requesting user or superusers; empty otherwise */ emails: Array<{ /** * Email ID */ id: string; /** * Email address */ email: string; /** * Whether the email address is verified */ is_verified: boolean; }>; } | null; /** * Sentry App that acted, if one did */ sentry_app: { /** * ID of the Sentry App */ id: string; /** * Name of the Sentry App */ name: string; /** * Slug of the Sentry App */ slug: string; /** * Avatars of the Sentry App */ avatars: Array<{ /** * Avatar type: `default` or `upload` */ avatarType: string; /** * Unique identifier of the uploaded avatar file, or an empty string if none is set */ avatarUuid: string; /** * Absolute URL of the avatar image */ avatarUrl: string; /** * Whether this is the color logo (`true`) or the simple icon (`false`) */ color: boolean; /** * Kind of image: `logo` for the color logo or `icon` for the simple icon */ photoType: string; }>; } | null; /** * Type of the activity, which decides the shape of data */ type: 'set_public'; /** * Details of the activity, which depend on type */ data: { [key: string]: unknown; }; /** * When the activity happened (ISO 8601) */ dateCreated: string; /** * Where the action came from, such as web, api or mcp: */ source?: string | null; } | { /** * ID of the activity, or 0 for a first-seen item built from the issue */ id: string; /** * ID to pass to the notes endpoints for a comment, otherwise null */ commentId: string | null; /** * User who acted, or null for Sentry, an integration or a Sentry App */ user: { /** * SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access */ identities?: Array<{ /** * SSO identity ID */ id: string; /** * User's identifier at the auth provider */ name: string; /** * Organization the auth provider belongs to */ organization: { /** * Organization slug */ slug: string; /** * Organization name */ name: string; }; /** * Auth provider of the identity */ provider: { /** * Auth provider key, such as google or saml2 */ id: string; /** * Display name of the auth provider */ name: string; }; /** * When the identity was last verified by signing in through the auth provider */ dateVerified: string; /** * When the identity was last synced from the auth provider */ dateSynced: string; }>; /** * User avatar */ avatar?: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Two-factor authenticators of the user, without backup methods such as recovery codes */ authenticators?: Array<{ /** * Authenticator ID */ id: string; /** * Authenticator type, such as totp, sms, u2f or recovery */ type: string; /** * Display name of the authenticator type */ name: string; /** * When the authenticator was added */ dateCreated: string; /** * When the authenticator was last used, or null */ dateUsed: string | null; }>; /** * Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization */ canReset2fa?: boolean; /** * User ID */ id: string; /** * Display name: the user's name, or their email or username if no name is set */ name: string; /** * Username */ username: string; /** * Primary email address */ email: string; /** * Gravatar URL for the primary email address */ avatarUrl: string; /** * Whether the account is active */ isActive: boolean; /** * Whether the account is suspended. Suspended users can't sign in */ isSuspended: boolean; /** * Whether the user has a password set */ hasPasswordAuth: boolean; /** * Whether the account is managed, which stops the user from changing their username, password and similar details */ isManaged: boolean; /** * When the account was created */ dateJoined: string; /** * When the user last signed in, or null */ lastLogin: string | null; /** * Whether the user has two-factor authentication enabled */ has2fa: boolean; /** * When the user was last active, or null */ lastActive: string | null; /** * Whether the user is a superuser */ isSuperuser: boolean; /** * Whether the user has staff status */ isStaff: boolean; /** * Deprecated. Always an empty object */ experiments: { [key: string]: string; }; /** * Email addresses of the user. Only included for the requesting user or superusers; empty otherwise */ emails: Array<{ /** * Email ID */ id: string; /** * Email address */ email: string; /** * Whether the email address is verified */ is_verified: boolean; }>; } | null; /** * Sentry App that acted, if one did */ sentry_app: { /** * ID of the Sentry App */ id: string; /** * Name of the Sentry App */ name: string; /** * Slug of the Sentry App */ slug: string; /** * Avatars of the Sentry App */ avatars: Array<{ /** * Avatar type: `default` or `upload` */ avatarType: string; /** * Unique identifier of the uploaded avatar file, or an empty string if none is set */ avatarUuid: string; /** * Absolute URL of the avatar image */ avatarUrl: string; /** * Whether this is the color logo (`true`) or the simple icon (`false`) */ color: boolean; /** * Kind of image: `logo` for the color logo or `icon` for the simple icon */ photoType: string; }>; } | null; /** * Type of the activity, which decides the shape of data */ type: 'set_regression'; /** * Details of the activity, which depend on type */ data: { /** * ID of the event that caused the change */ event_id?: string | null; /** * Version of the release */ version?: string | null; /** * Type of the event that regressed */ event_type?: string; /** * Whether the project's releases follow semantic versioning */ follows_semver?: boolean; /** * Release the issue was resolved in before it regressed */ resolved_in_version?: string; }; /** * When the activity happened (ISO 8601) */ dateCreated: string; /** * Where the action came from, such as web, api or mcp: */ source?: string | null; } | { /** * ID of the activity, or 0 for a first-seen item built from the issue */ id: string; /** * ID to pass to the notes endpoints for a comment, otherwise null */ commentId: string | null; /** * User who acted, or null for Sentry, an integration or a Sentry App */ user: { /** * SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access */ identities?: Array<{ /** * SSO identity ID */ id: string; /** * User's identifier at the auth provider */ name: string; /** * Organization the auth provider belongs to */ organization: { /** * Organization slug */ slug: string; /** * Organization name */ name: string; }; /** * Auth provider of the identity */ provider: { /** * Auth provider key, such as google or saml2 */ id: string; /** * Display name of the auth provider */ name: string; }; /** * When the identity was last verified by signing in through the auth provider */ dateVerified: string; /** * When the identity was last synced from the auth provider */ dateSynced: string; }>; /** * User avatar */ avatar?: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Two-factor authenticators of the user, without backup methods such as recovery codes */ authenticators?: Array<{ /** * Authenticator ID */ id: string; /** * Authenticator type, such as totp, sms, u2f or recovery */ type: string; /** * Display name of the authenticator type */ name: string; /** * When the authenticator was added */ dateCreated: string; /** * When the authenticator was last used, or null */ dateUsed: string | null; }>; /** * Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization */ canReset2fa?: boolean; /** * User ID */ id: string; /** * Display name: the user's name, or their email or username if no name is set */ name: string; /** * Username */ username: string; /** * Primary email address */ email: string; /** * Gravatar URL for the primary email address */ avatarUrl: string; /** * Whether the account is active */ isActive: boolean; /** * Whether the account is suspended. Suspended users can't sign in */ isSuspended: boolean; /** * Whether the user has a password set */ hasPasswordAuth: boolean; /** * Whether the account is managed, which stops the user from changing their username, password and similar details */ isManaged: boolean; /** * When the account was created */ dateJoined: string; /** * When the user last signed in, or null */ lastLogin: string | null; /** * Whether the user has two-factor authentication enabled */ has2fa: boolean; /** * When the user was last active, or null */ lastActive: string | null; /** * Whether the user is a superuser */ isSuperuser: boolean; /** * Whether the user has staff status */ isStaff: boolean; /** * Deprecated. Always an empty object */ experiments: { [key: string]: string; }; /** * Email addresses of the user. Only included for the requesting user or superusers; empty otherwise */ emails: Array<{ /** * Email ID */ id: string; /** * Email address */ email: string; /** * Whether the email address is verified */ is_verified: boolean; }>; } | null; /** * Sentry App that acted, if one did */ sentry_app: { /** * ID of the Sentry App */ id: string; /** * Name of the Sentry App */ name: string; /** * Slug of the Sentry App */ slug: string; /** * Avatars of the Sentry App */ avatars: Array<{ /** * Avatar type: `default` or `upload` */ avatarType: string; /** * Unique identifier of the uploaded avatar file, or an empty string if none is set */ avatarUuid: string; /** * Absolute URL of the avatar image */ avatarUrl: string; /** * Whether this is the color logo (`true`) or the simple icon (`false`) */ color: boolean; /** * Kind of image: `logo` for the color logo or `icon` for the simple icon */ photoType: string; }>; } | null; /** * Type of the activity, which decides the shape of data */ type: 'set_resolved'; /** * Details of the activity, which depend on type */ data: { /** * ID of the integration that changed the status, when an integration did */ integration_id?: number; /** * Name of the integration provider, such as Jira */ provider?: string; /** * Key of the integration provider, such as jira */ provider_key?: string; }; /** * When the activity happened (ISO 8601) */ dateCreated: string; /** * Where the action came from, such as web, api or mcp: */ source?: string | null; } | { /** * ID of the activity, or 0 for a first-seen item built from the issue */ id: string; /** * ID to pass to the notes endpoints for a comment, otherwise null */ commentId: string | null; /** * User who acted, or null for Sentry, an integration or a Sentry App */ user: { /** * SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access */ identities?: Array<{ /** * SSO identity ID */ id: string; /** * User's identifier at the auth provider */ name: string; /** * Organization the auth provider belongs to */ organization: { /** * Organization slug */ slug: string; /** * Organization name */ name: string; }; /** * Auth provider of the identity */ provider: { /** * Auth provider key, such as google or saml2 */ id: string; /** * Display name of the auth provider */ name: string; }; /** * When the identity was last verified by signing in through the auth provider */ dateVerified: string; /** * When the identity was last synced from the auth provider */ dateSynced: string; }>; /** * User avatar */ avatar?: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Two-factor authenticators of the user, without backup methods such as recovery codes */ authenticators?: Array<{ /** * Authenticator ID */ id: string; /** * Authenticator type, such as totp, sms, u2f or recovery */ type: string; /** * Display name of the authenticator type */ name: string; /** * When the authenticator was added */ dateCreated: string; /** * When the authenticator was last used, or null */ dateUsed: string | null; }>; /** * Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization */ canReset2fa?: boolean; /** * User ID */ id: string; /** * Display name: the user's name, or their email or username if no name is set */ name: string; /** * Username */ username: string; /** * Primary email address */ email: string; /** * Gravatar URL for the primary email address */ avatarUrl: string; /** * Whether the account is active */ isActive: boolean; /** * Whether the account is suspended. Suspended users can't sign in */ isSuspended: boolean; /** * Whether the user has a password set */ hasPasswordAuth: boolean; /** * Whether the account is managed, which stops the user from changing their username, password and similar details */ isManaged: boolean; /** * When the account was created */ dateJoined: string; /** * When the user last signed in, or null */ lastLogin: string | null; /** * Whether the user has two-factor authentication enabled */ has2fa: boolean; /** * When the user was last active, or null */ lastActive: string | null; /** * Whether the user is a superuser */ isSuperuser: boolean; /** * Whether the user has staff status */ isStaff: boolean; /** * Deprecated. Always an empty object */ experiments: { [key: string]: string; }; /** * Email addresses of the user. Only included for the requesting user or superusers; empty otherwise */ emails: Array<{ /** * Email ID */ id: string; /** * Email address */ email: string; /** * Whether the email address is verified */ is_verified: boolean; }>; } | null; /** * Sentry App that acted, if one did */ sentry_app: { /** * ID of the Sentry App */ id: string; /** * Name of the Sentry App */ name: string; /** * Slug of the Sentry App */ slug: string; /** * Avatars of the Sentry App */ avatars: Array<{ /** * Avatar type: `default` or `upload` */ avatarType: string; /** * Unique identifier of the uploaded avatar file, or an empty string if none is set */ avatarUuid: string; /** * Absolute URL of the avatar image */ avatarUrl: string; /** * Whether this is the color logo (`true`) or the simple icon (`false`) */ color: boolean; /** * Kind of image: `logo` for the color logo or `icon` for the simple icon */ photoType: string; }>; } | null; /** * Type of the activity, which decides the shape of data */ type: 'set_resolved_by_age'; /** * Details of the activity, which depend on type */ data: { /** * Hours without events after which the issue resolved */ age?: number | null; }; /** * When the activity happened (ISO 8601) */ dateCreated: string; /** * Where the action came from, such as web, api or mcp: */ source?: string | null; } | { /** * ID of the activity, or 0 for a first-seen item built from the issue */ id: string; /** * ID to pass to the notes endpoints for a comment, otherwise null */ commentId: string | null; /** * User who acted, or null for Sentry, an integration or a Sentry App */ user: { /** * SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access */ identities?: Array<{ /** * SSO identity ID */ id: string; /** * User's identifier at the auth provider */ name: string; /** * Organization the auth provider belongs to */ organization: { /** * Organization slug */ slug: string; /** * Organization name */ name: string; }; /** * Auth provider of the identity */ provider: { /** * Auth provider key, such as google or saml2 */ id: string; /** * Display name of the auth provider */ name: string; }; /** * When the identity was last verified by signing in through the auth provider */ dateVerified: string; /** * When the identity was last synced from the auth provider */ dateSynced: string; }>; /** * User avatar */ avatar?: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Two-factor authenticators of the user, without backup methods such as recovery codes */ authenticators?: Array<{ /** * Authenticator ID */ id: string; /** * Authenticator type, such as totp, sms, u2f or recovery */ type: string; /** * Display name of the authenticator type */ name: string; /** * When the authenticator was added */ dateCreated: string; /** * When the authenticator was last used, or null */ dateUsed: string | null; }>; /** * Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization */ canReset2fa?: boolean; /** * User ID */ id: string; /** * Display name: the user's name, or their email or username if no name is set */ name: string; /** * Username */ username: string; /** * Primary email address */ email: string; /** * Gravatar URL for the primary email address */ avatarUrl: string; /** * Whether the account is active */ isActive: boolean; /** * Whether the account is suspended. Suspended users can't sign in */ isSuspended: boolean; /** * Whether the user has a password set */ hasPasswordAuth: boolean; /** * Whether the account is managed, which stops the user from changing their username, password and similar details */ isManaged: boolean; /** * When the account was created */ dateJoined: string; /** * When the user last signed in, or null */ lastLogin: string | null; /** * Whether the user has two-factor authentication enabled */ has2fa: boolean; /** * When the user was last active, or null */ lastActive: string | null; /** * Whether the user is a superuser */ isSuperuser: boolean; /** * Whether the user has staff status */ isStaff: boolean; /** * Deprecated. Always an empty object */ experiments: { [key: string]: string; }; /** * Email addresses of the user. Only included for the requesting user or superusers; empty otherwise */ emails: Array<{ /** * Email ID */ id: string; /** * Email address */ email: string; /** * Whether the email address is verified */ is_verified: boolean; }>; } | null; /** * Sentry App that acted, if one did */ sentry_app: { /** * ID of the Sentry App */ id: string; /** * Name of the Sentry App */ name: string; /** * Slug of the Sentry App */ slug: string; /** * Avatars of the Sentry App */ avatars: Array<{ /** * Avatar type: `default` or `upload` */ avatarType: string; /** * Unique identifier of the uploaded avatar file, or an empty string if none is set */ avatarUuid: string; /** * Absolute URL of the avatar image */ avatarUrl: string; /** * Whether this is the color logo (`true`) or the simple icon (`false`) */ color: boolean; /** * Kind of image: `logo` for the color logo or `icon` for the simple icon */ photoType: string; }>; } | null; /** * Type of the activity, which decides the shape of data */ type: 'set_resolved_in_commit'; /** * Details of the activity, which depend on type */ data: { /** * The commit */ commit?: { /** * Commit SHA */ id: string; /** * Commit message */ message: string | null; /** * When the commit was made (ISO 8601) */ dateCreated: string; /** * Pull request the commit belongs to */ pullRequest: { /** * Number or key of the pull request in the provider */ id: string; /** * Title of the pull request */ title: string | null; /** * Description of the pull request */ message: string | null; /** * When Sentry recorded the pull request (ISO 8601) */ dateCreated: string; /** * When the pull request was merged (ISO 8601). Null when it isn't merged */ mergedAt: string | null; /** * State of the pull request: merged, open, closed, draft or unknown. Null when not known */ status: 'merged' | 'open' | 'closed' | 'draft' | 'unknown' | null; /** * Repository of the pull request */ repository: { /** * URL of the repository */ url?: string | null; /** * Provider of the repository, with its id and name */ provider?: { [key: string]: string; }; /** * Status of the repository */ status?: 'active' | 'disabled' | 'pending_deletion' | 'deletion_in_progress'; /** * ID of the repository's integration. Null for repositories added without an integration */ integrationId?: string | null; /** * Identifier of the repository in the provider, such as owner/name */ externalSlug?: string | null; /** * ID of the repository in the provider */ externalId?: string | null; /** * Settings of the repository. Only set when expand includes settings. Null when it has none */ settings?: { /** * Whether AI code review is on for the repository */ enabledCodeReview: boolean; /** * Pull request events that start a code review: on_new_commit or on_ready_for_review */ codeReviewTriggers: Array; } | null; /** * ID of the repository */ id: string; /** * Name of the repository, such as owner/name */ name: string; /** * When the repository was added to Sentry (ISO 8601) */ dateCreated: string; }; /** * Author of the pull request, or an empty object when it has none */ author: { /** * SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access */ identities?: Array<{ /** * SSO identity ID */ id: string; /** * User's identifier at the auth provider */ name: string; /** * Organization the auth provider belongs to */ organization: { /** * Organization slug */ slug: string; /** * Organization name */ name: string; }; /** * Auth provider of the identity */ provider: { /** * Auth provider key, such as google or saml2 */ id: string; /** * Display name of the auth provider */ name: string; }; /** * When the identity was last verified by signing in through the auth provider */ dateVerified: string; /** * When the identity was last synced from the auth provider */ dateSynced: string; }>; /** * User avatar */ avatar?: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Two-factor authenticators of the user, without backup methods such as recovery codes */ authenticators?: Array<{ /** * Authenticator ID */ id: string; /** * Authenticator type, such as totp, sms, u2f or recovery */ type: string; /** * Display name of the authenticator type */ name: string; /** * When the authenticator was added */ dateCreated: string; /** * When the authenticator was last used, or null */ dateUsed: string | null; }>; /** * Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization */ canReset2fa?: boolean; /** * User ID */ id: string; /** * Display name: the user's name, or their email or username if no name is set */ name: string; /** * Username */ username: string; /** * Primary email address */ email: string; /** * Gravatar URL for the primary email address */ avatarUrl: string; /** * Whether the account is active */ isActive: boolean; /** * Whether the account is suspended. Suspended users can't sign in */ isSuspended: boolean; /** * Whether the user has a password set */ hasPasswordAuth: boolean; /** * Whether the account is managed, which stops the user from changing their username, password and similar details */ isManaged: boolean; /** * When the account was created */ dateJoined: string; /** * When the user last signed in, or null */ lastLogin: string | null; /** * Whether the user has two-factor authentication enabled */ has2fa: boolean; /** * When the user was last active, or null */ lastActive: string | null; /** * Whether the user is a superuser */ isSuperuser: boolean; /** * Whether the user has staff status */ isStaff: boolean; /** * Deprecated. Always an empty object */ experiments: { [key: string]: string; }; /** * Email addresses of the user. Only included for the requesting user or superusers; empty otherwise */ emails: Array<{ /** * Email ID */ id: string; /** * Email address */ email: string; /** * Whether the email address is verified */ is_verified: boolean; }>; } | { /** * Commit author name */ name: string | null; /** * Commit author email */ email: string; } | { [key: string]: unknown; }; /** * URL of the pull request in the provider, or null when the provider can't build one */ externalUrl: string | null; } | null; /** * How the commit was found as a suspect commit: via commit in release or via SCM integration. Empty for other commits */ suspectCommitType: string; /** * Repository the commit belongs to */ repository?: { /** * URL of the repository */ url?: string | null; /** * Provider of the repository, with its id and name */ provider?: { [key: string]: string; }; /** * Status of the repository */ status?: 'active' | 'disabled' | 'pending_deletion' | 'deletion_in_progress'; /** * ID of the repository's integration. Null for repositories added without an integration */ integrationId?: string | null; /** * Identifier of the repository in the provider, such as owner/name */ externalSlug?: string | null; /** * ID of the repository in the provider */ externalId?: string | null; /** * Settings of the repository. Only set when expand includes settings. Null when it has none */ settings?: { /** * Whether AI code review is on for the repository */ enabledCodeReview: boolean; /** * Pull request events that start a code review: on_new_commit or on_ready_for_review */ codeReviewTriggers: Array; } | null; /** * ID of the repository */ id: string; /** * Name of the repository, such as owner/name */ name: string; /** * When the repository was added to Sentry (ISO 8601) */ dateCreated: string; }; /** * Author of the commit: a Sentry user when the email matches one, otherwise the name and email from the commit */ author?: { /** * SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access */ identities?: Array<{ /** * SSO identity ID */ id: string; /** * User's identifier at the auth provider */ name: string; /** * Organization the auth provider belongs to */ organization: { /** * Organization slug */ slug: string; /** * Organization name */ name: string; }; /** * Auth provider of the identity */ provider: { /** * Auth provider key, such as google or saml2 */ id: string; /** * Display name of the auth provider */ name: string; }; /** * When the identity was last verified by signing in through the auth provider */ dateVerified: string; /** * When the identity was last synced from the auth provider */ dateSynced: string; }>; /** * User avatar */ avatar?: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Two-factor authenticators of the user, without backup methods such as recovery codes */ authenticators?: Array<{ /** * Authenticator ID */ id: string; /** * Authenticator type, such as totp, sms, u2f or recovery */ type: string; /** * Display name of the authenticator type */ name: string; /** * When the authenticator was added */ dateCreated: string; /** * When the authenticator was last used, or null */ dateUsed: string | null; }>; /** * Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization */ canReset2fa?: boolean; /** * User ID */ id: string; /** * Display name: the user's name, or their email or username if no name is set */ name: string; /** * Username */ username: string; /** * Primary email address */ email: string; /** * Gravatar URL for the primary email address */ avatarUrl: string; /** * Whether the account is active */ isActive: boolean; /** * Whether the account is suspended. Suspended users can't sign in */ isSuspended: boolean; /** * Whether the user has a password set */ hasPasswordAuth: boolean; /** * Whether the account is managed, which stops the user from changing their username, password and similar details */ isManaged: boolean; /** * When the account was created */ dateJoined: string; /** * When the user last signed in, or null */ lastLogin: string | null; /** * Whether the user has two-factor authentication enabled */ has2fa: boolean; /** * When the user was last active, or null */ lastActive: string | null; /** * Whether the user is a superuser */ isSuperuser: boolean; /** * Whether the user has staff status */ isStaff: boolean; /** * Deprecated. Always an empty object */ experiments: { [key: string]: string; }; /** * Email addresses of the user. Only included for the requesting user or superusers; empty otherwise */ emails: Array<{ /** * Email ID */ id: string; /** * Email address */ email: string; /** * Whether the email address is verified */ is_verified: boolean; }>; } | { /** * Commit author name */ name: string | null; /** * Commit author email */ email: string; } | { [key: string]: unknown; }; /** * Releases that contain the commit */ releases: Array<{ /** * Version of the release */ version: string; /** * Short version of the release */ shortVersion: string; /** * Commit ref of the release */ ref: string | null; /** * URL of the release */ url: string | null; /** * When the release was released (ISO 8601) */ dateReleased: string | null; /** * When the release was created (ISO 8601) */ dateCreated: string; }>; } | null; }; /** * When the activity happened (ISO 8601) */ dateCreated: string; /** * Where the action came from, such as web, api or mcp: */ source?: string | null; } | { /** * ID of the activity, or 0 for a first-seen item built from the issue */ id: string; /** * ID to pass to the notes endpoints for a comment, otherwise null */ commentId: string | null; /** * User who acted, or null for Sentry, an integration or a Sentry App */ user: { /** * SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access */ identities?: Array<{ /** * SSO identity ID */ id: string; /** * User's identifier at the auth provider */ name: string; /** * Organization the auth provider belongs to */ organization: { /** * Organization slug */ slug: string; /** * Organization name */ name: string; }; /** * Auth provider of the identity */ provider: { /** * Auth provider key, such as google or saml2 */ id: string; /** * Display name of the auth provider */ name: string; }; /** * When the identity was last verified by signing in through the auth provider */ dateVerified: string; /** * When the identity was last synced from the auth provider */ dateSynced: string; }>; /** * User avatar */ avatar?: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Two-factor authenticators of the user, without backup methods such as recovery codes */ authenticators?: Array<{ /** * Authenticator ID */ id: string; /** * Authenticator type, such as totp, sms, u2f or recovery */ type: string; /** * Display name of the authenticator type */ name: string; /** * When the authenticator was added */ dateCreated: string; /** * When the authenticator was last used, or null */ dateUsed: string | null; }>; /** * Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization */ canReset2fa?: boolean; /** * User ID */ id: string; /** * Display name: the user's name, or their email or username if no name is set */ name: string; /** * Username */ username: string; /** * Primary email address */ email: string; /** * Gravatar URL for the primary email address */ avatarUrl: string; /** * Whether the account is active */ isActive: boolean; /** * Whether the account is suspended. Suspended users can't sign in */ isSuspended: boolean; /** * Whether the user has a password set */ hasPasswordAuth: boolean; /** * Whether the account is managed, which stops the user from changing their username, password and similar details */ isManaged: boolean; /** * When the account was created */ dateJoined: string; /** * When the user last signed in, or null */ lastLogin: string | null; /** * Whether the user has two-factor authentication enabled */ has2fa: boolean; /** * When the user was last active, or null */ lastActive: string | null; /** * Whether the user is a superuser */ isSuperuser: boolean; /** * Whether the user has staff status */ isStaff: boolean; /** * Deprecated. Always an empty object */ experiments: { [key: string]: string; }; /** * Email addresses of the user. Only included for the requesting user or superusers; empty otherwise */ emails: Array<{ /** * Email ID */ id: string; /** * Email address */ email: string; /** * Whether the email address is verified */ is_verified: boolean; }>; } | null; /** * Sentry App that acted, if one did */ sentry_app: { /** * ID of the Sentry App */ id: string; /** * Name of the Sentry App */ name: string; /** * Slug of the Sentry App */ slug: string; /** * Avatars of the Sentry App */ avatars: Array<{ /** * Avatar type: `default` or `upload` */ avatarType: string; /** * Unique identifier of the uploaded avatar file, or an empty string if none is set */ avatarUuid: string; /** * Absolute URL of the avatar image */ avatarUrl: string; /** * Whether this is the color logo (`true`) or the simple icon (`false`) */ color: boolean; /** * Kind of image: `logo` for the color logo or `icon` for the simple icon */ photoType: string; }>; } | null; /** * Type of the activity, which decides the shape of data */ type: 'set_resolved_in_pull_request'; /** * Details of the activity, which depend on type */ data: { /** * The pull request */ pullRequest?: { /** * Number or key of the pull request in the provider */ id: string; /** * Title of the pull request */ title: string | null; /** * Description of the pull request */ message: string | null; /** * When Sentry recorded the pull request (ISO 8601) */ dateCreated: string; /** * When the pull request was merged (ISO 8601). Null when it isn't merged */ mergedAt: string | null; /** * State of the pull request: merged, open, closed, draft or unknown. Null when not known */ status: 'merged' | 'open' | 'closed' | 'draft' | 'unknown' | null; /** * Repository of the pull request */ repository: { /** * URL of the repository */ url?: string | null; /** * Provider of the repository, with its id and name */ provider?: { [key: string]: string; }; /** * Status of the repository */ status?: 'active' | 'disabled' | 'pending_deletion' | 'deletion_in_progress'; /** * ID of the repository's integration. Null for repositories added without an integration */ integrationId?: string | null; /** * Identifier of the repository in the provider, such as owner/name */ externalSlug?: string | null; /** * ID of the repository in the provider */ externalId?: string | null; /** * Settings of the repository. Only set when expand includes settings. Null when it has none */ settings?: { /** * Whether AI code review is on for the repository */ enabledCodeReview: boolean; /** * Pull request events that start a code review: on_new_commit or on_ready_for_review */ codeReviewTriggers: Array; } | null; /** * ID of the repository */ id: string; /** * Name of the repository, such as owner/name */ name: string; /** * When the repository was added to Sentry (ISO 8601) */ dateCreated: string; }; /** * Author of the pull request, or an empty object when it has none */ author: { /** * SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access */ identities?: Array<{ /** * SSO identity ID */ id: string; /** * User's identifier at the auth provider */ name: string; /** * Organization the auth provider belongs to */ organization: { /** * Organization slug */ slug: string; /** * Organization name */ name: string; }; /** * Auth provider of the identity */ provider: { /** * Auth provider key, such as google or saml2 */ id: string; /** * Display name of the auth provider */ name: string; }; /** * When the identity was last verified by signing in through the auth provider */ dateVerified: string; /** * When the identity was last synced from the auth provider */ dateSynced: string; }>; /** * User avatar */ avatar?: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Two-factor authenticators of the user, without backup methods such as recovery codes */ authenticators?: Array<{ /** * Authenticator ID */ id: string; /** * Authenticator type, such as totp, sms, u2f or recovery */ type: string; /** * Display name of the authenticator type */ name: string; /** * When the authenticator was added */ dateCreated: string; /** * When the authenticator was last used, or null */ dateUsed: string | null; }>; /** * Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization */ canReset2fa?: boolean; /** * User ID */ id: string; /** * Display name: the user's name, or their email or username if no name is set */ name: string; /** * Username */ username: string; /** * Primary email address */ email: string; /** * Gravatar URL for the primary email address */ avatarUrl: string; /** * Whether the account is active */ isActive: boolean; /** * Whether the account is suspended. Suspended users can't sign in */ isSuspended: boolean; /** * Whether the user has a password set */ hasPasswordAuth: boolean; /** * Whether the account is managed, which stops the user from changing their username, password and similar details */ isManaged: boolean; /** * When the account was created */ dateJoined: string; /** * When the user last signed in, or null */ lastLogin: string | null; /** * Whether the user has two-factor authentication enabled */ has2fa: boolean; /** * When the user was last active, or null */ lastActive: string | null; /** * Whether the user is a superuser */ isSuperuser: boolean; /** * Whether the user has staff status */ isStaff: boolean; /** * Deprecated. Always an empty object */ experiments: { [key: string]: string; }; /** * Email addresses of the user. Only included for the requesting user or superusers; empty otherwise */ emails: Array<{ /** * Email ID */ id: string; /** * Email address */ email: string; /** * Whether the email address is verified */ is_verified: boolean; }>; } | { /** * Commit author name */ name: string | null; /** * Commit author email */ email: string; } | { [key: string]: unknown; }; /** * URL of the pull request in the provider, or null when the provider can't build one */ externalUrl: string | null; } | null; }; /** * When the activity happened (ISO 8601) */ dateCreated: string; /** * Where the action came from, such as web, api or mcp: */ source?: string | null; } | { /** * ID of the activity, or 0 for a first-seen item built from the issue */ id: string; /** * ID to pass to the notes endpoints for a comment, otherwise null */ commentId: string | null; /** * User who acted, or null for Sentry, an integration or a Sentry App */ user: { /** * SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access */ identities?: Array<{ /** * SSO identity ID */ id: string; /** * User's identifier at the auth provider */ name: string; /** * Organization the auth provider belongs to */ organization: { /** * Organization slug */ slug: string; /** * Organization name */ name: string; }; /** * Auth provider of the identity */ provider: { /** * Auth provider key, such as google or saml2 */ id: string; /** * Display name of the auth provider */ name: string; }; /** * When the identity was last verified by signing in through the auth provider */ dateVerified: string; /** * When the identity was last synced from the auth provider */ dateSynced: string; }>; /** * User avatar */ avatar?: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Two-factor authenticators of the user, without backup methods such as recovery codes */ authenticators?: Array<{ /** * Authenticator ID */ id: string; /** * Authenticator type, such as totp, sms, u2f or recovery */ type: string; /** * Display name of the authenticator type */ name: string; /** * When the authenticator was added */ dateCreated: string; /** * When the authenticator was last used, or null */ dateUsed: string | null; }>; /** * Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization */ canReset2fa?: boolean; /** * User ID */ id: string; /** * Display name: the user's name, or their email or username if no name is set */ name: string; /** * Username */ username: string; /** * Primary email address */ email: string; /** * Gravatar URL for the primary email address */ avatarUrl: string; /** * Whether the account is active */ isActive: boolean; /** * Whether the account is suspended. Suspended users can't sign in */ isSuspended: boolean; /** * Whether the user has a password set */ hasPasswordAuth: boolean; /** * Whether the account is managed, which stops the user from changing their username, password and similar details */ isManaged: boolean; /** * When the account was created */ dateJoined: string; /** * When the user last signed in, or null */ lastLogin: string | null; /** * Whether the user has two-factor authentication enabled */ has2fa: boolean; /** * When the user was last active, or null */ lastActive: string | null; /** * Whether the user is a superuser */ isSuperuser: boolean; /** * Whether the user has staff status */ isStaff: boolean; /** * Deprecated. Always an empty object */ experiments: { [key: string]: string; }; /** * Email addresses of the user. Only included for the requesting user or superusers; empty otherwise */ emails: Array<{ /** * Email ID */ id: string; /** * Email address */ email: string; /** * Whether the email address is verified */ is_verified: boolean; }>; } | null; /** * Sentry App that acted, if one did */ sentry_app: { /** * ID of the Sentry App */ id: string; /** * Name of the Sentry App */ name: string; /** * Slug of the Sentry App */ slug: string; /** * Avatars of the Sentry App */ avatars: Array<{ /** * Avatar type: `default` or `upload` */ avatarType: string; /** * Unique identifier of the uploaded avatar file, or an empty string if none is set */ avatarUuid: string; /** * Absolute URL of the avatar image */ avatarUrl: string; /** * Whether this is the color logo (`true`) or the simple icon (`false`) */ color: boolean; /** * Kind of image: `logo` for the color logo or `icon` for the simple icon */ photoType: string; }>; } | null; /** * Type of the activity, which decides the shape of data */ type: 'set_resolved_in_release'; /** * Details of the activity, which depend on type */ data: { /** * Version of the release */ version?: string | null; /** * Latest release when the issue was resolved, for semver releases */ current_release_version?: string | null; /** * The commit */ commit?: { /** * Commit SHA */ id: string; /** * Commit message */ message: string | null; /** * When the commit was made (ISO 8601) */ dateCreated: string; /** * Pull request the commit belongs to */ pullRequest: { /** * Number or key of the pull request in the provider */ id: string; /** * Title of the pull request */ title: string | null; /** * Description of the pull request */ message: string | null; /** * When Sentry recorded the pull request (ISO 8601) */ dateCreated: string; /** * When the pull request was merged (ISO 8601). Null when it isn't merged */ mergedAt: string | null; /** * State of the pull request: merged, open, closed, draft or unknown. Null when not known */ status: 'merged' | 'open' | 'closed' | 'draft' | 'unknown' | null; /** * Repository of the pull request */ repository: { /** * URL of the repository */ url?: string | null; /** * Provider of the repository, with its id and name */ provider?: { [key: string]: string; }; /** * Status of the repository */ status?: 'active' | 'disabled' | 'pending_deletion' | 'deletion_in_progress'; /** * ID of the repository's integration. Null for repositories added without an integration */ integrationId?: string | null; /** * Identifier of the repository in the provider, such as owner/name */ externalSlug?: string | null; /** * ID of the repository in the provider */ externalId?: string | null; /** * Settings of the repository. Only set when expand includes settings. Null when it has none */ settings?: { /** * Whether AI code review is on for the repository */ enabledCodeReview: boolean; /** * Pull request events that start a code review: on_new_commit or on_ready_for_review */ codeReviewTriggers: Array; } | null; /** * ID of the repository */ id: string; /** * Name of the repository, such as owner/name */ name: string; /** * When the repository was added to Sentry (ISO 8601) */ dateCreated: string; }; /** * Author of the pull request, or an empty object when it has none */ author: { /** * SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access */ identities?: Array<{ /** * SSO identity ID */ id: string; /** * User's identifier at the auth provider */ name: string; /** * Organization the auth provider belongs to */ organization: { /** * Organization slug */ slug: string; /** * Organization name */ name: string; }; /** * Auth provider of the identity */ provider: { /** * Auth provider key, such as google or saml2 */ id: string; /** * Display name of the auth provider */ name: string; }; /** * When the identity was last verified by signing in through the auth provider */ dateVerified: string; /** * When the identity was last synced from the auth provider */ dateSynced: string; }>; /** * User avatar */ avatar?: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Two-factor authenticators of the user, without backup methods such as recovery codes */ authenticators?: Array<{ /** * Authenticator ID */ id: string; /** * Authenticator type, such as totp, sms, u2f or recovery */ type: string; /** * Display name of the authenticator type */ name: string; /** * When the authenticator was added */ dateCreated: string; /** * When the authenticator was last used, or null */ dateUsed: string | null; }>; /** * Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization */ canReset2fa?: boolean; /** * User ID */ id: string; /** * Display name: the user's name, or their email or username if no name is set */ name: string; /** * Username */ username: string; /** * Primary email address */ email: string; /** * Gravatar URL for the primary email address */ avatarUrl: string; /** * Whether the account is active */ isActive: boolean; /** * Whether the account is suspended. Suspended users can't sign in */ isSuspended: boolean; /** * Whether the user has a password set */ hasPasswordAuth: boolean; /** * Whether the account is managed, which stops the user from changing their username, password and similar details */ isManaged: boolean; /** * When the account was created */ dateJoined: string; /** * When the user last signed in, or null */ lastLogin: string | null; /** * Whether the user has two-factor authentication enabled */ has2fa: boolean; /** * When the user was last active, or null */ lastActive: string | null; /** * Whether the user is a superuser */ isSuperuser: boolean; /** * Whether the user has staff status */ isStaff: boolean; /** * Deprecated. Always an empty object */ experiments: { [key: string]: string; }; /** * Email addresses of the user. Only included for the requesting user or superusers; empty otherwise */ emails: Array<{ /** * Email ID */ id: string; /** * Email address */ email: string; /** * Whether the email address is verified */ is_verified: boolean; }>; } | { /** * Commit author name */ name: string | null; /** * Commit author email */ email: string; } | { [key: string]: unknown; }; /** * URL of the pull request in the provider, or null when the provider can't build one */ externalUrl: string | null; } | null; /** * How the commit was found as a suspect commit: via commit in release or via SCM integration. Empty for other commits */ suspectCommitType: string; /** * Repository the commit belongs to */ repository?: { /** * URL of the repository */ url?: string | null; /** * Provider of the repository, with its id and name */ provider?: { [key: string]: string; }; /** * Status of the repository */ status?: 'active' | 'disabled' | 'pending_deletion' | 'deletion_in_progress'; /** * ID of the repository's integration. Null for repositories added without an integration */ integrationId?: string | null; /** * Identifier of the repository in the provider, such as owner/name */ externalSlug?: string | null; /** * ID of the repository in the provider */ externalId?: string | null; /** * Settings of the repository. Only set when expand includes settings. Null when it has none */ settings?: { /** * Whether AI code review is on for the repository */ enabledCodeReview: boolean; /** * Pull request events that start a code review: on_new_commit or on_ready_for_review */ codeReviewTriggers: Array; } | null; /** * ID of the repository */ id: string; /** * Name of the repository, such as owner/name */ name: string; /** * When the repository was added to Sentry (ISO 8601) */ dateCreated: string; }; /** * Author of the commit: a Sentry user when the email matches one, otherwise the name and email from the commit */ author?: { /** * SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access */ identities?: Array<{ /** * SSO identity ID */ id: string; /** * User's identifier at the auth provider */ name: string; /** * Organization the auth provider belongs to */ organization: { /** * Organization slug */ slug: string; /** * Organization name */ name: string; }; /** * Auth provider of the identity */ provider: { /** * Auth provider key, such as google or saml2 */ id: string; /** * Display name of the auth provider */ name: string; }; /** * When the identity was last verified by signing in through the auth provider */ dateVerified: string; /** * When the identity was last synced from the auth provider */ dateSynced: string; }>; /** * User avatar */ avatar?: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Two-factor authenticators of the user, without backup methods such as recovery codes */ authenticators?: Array<{ /** * Authenticator ID */ id: string; /** * Authenticator type, such as totp, sms, u2f or recovery */ type: string; /** * Display name of the authenticator type */ name: string; /** * When the authenticator was added */ dateCreated: string; /** * When the authenticator was last used, or null */ dateUsed: string | null; }>; /** * Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization */ canReset2fa?: boolean; /** * User ID */ id: string; /** * Display name: the user's name, or their email or username if no name is set */ name: string; /** * Username */ username: string; /** * Primary email address */ email: string; /** * Gravatar URL for the primary email address */ avatarUrl: string; /** * Whether the account is active */ isActive: boolean; /** * Whether the account is suspended. Suspended users can't sign in */ isSuspended: boolean; /** * Whether the user has a password set */ hasPasswordAuth: boolean; /** * Whether the account is managed, which stops the user from changing their username, password and similar details */ isManaged: boolean; /** * When the account was created */ dateJoined: string; /** * When the user last signed in, or null */ lastLogin: string | null; /** * Whether the user has two-factor authentication enabled */ has2fa: boolean; /** * When the user was last active, or null */ lastActive: string | null; /** * Whether the user is a superuser */ isSuperuser: boolean; /** * Whether the user has staff status */ isStaff: boolean; /** * Deprecated. Always an empty object */ experiments: { [key: string]: string; }; /** * Email addresses of the user. Only included for the requesting user or superusers; empty otherwise */ emails: Array<{ /** * Email ID */ id: string; /** * Email address */ email: string; /** * Whether the email address is verified */ is_verified: boolean; }>; } | { /** * Commit author name */ name: string | null; /** * Commit author email */ email: string; } | { [key: string]: unknown; }; /** * Releases that contain the commit */ releases: Array<{ /** * Version of the release */ version: string; /** * Short version of the release */ shortVersion: string; /** * Commit ref of the release */ ref: string | null; /** * URL of the release */ url: string | null; /** * When the release was released (ISO 8601) */ dateReleased: string | null; /** * When the release was created (ISO 8601) */ dateCreated: string; }>; } | null; /** * ID of the integration that changed the status, when an integration did */ integration_id?: number; /** * Name of the integration provider, such as Jira */ provider?: string; /** * Key of the integration provider, such as jira */ provider_key?: string; /** * Whether the issue resolves in the next release */ inNextRelease?: boolean; }; /** * When the activity happened (ISO 8601) */ dateCreated: string; /** * Where the action came from, such as web, api or mcp: */ source?: string | null; } | { /** * ID of the activity, or 0 for a first-seen item built from the issue */ id: string; /** * ID to pass to the notes endpoints for a comment, otherwise null */ commentId: string | null; /** * User who acted, or null for Sentry, an integration or a Sentry App */ user: { /** * SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access */ identities?: Array<{ /** * SSO identity ID */ id: string; /** * User's identifier at the auth provider */ name: string; /** * Organization the auth provider belongs to */ organization: { /** * Organization slug */ slug: string; /** * Organization name */ name: string; }; /** * Auth provider of the identity */ provider: { /** * Auth provider key, such as google or saml2 */ id: string; /** * Display name of the auth provider */ name: string; }; /** * When the identity was last verified by signing in through the auth provider */ dateVerified: string; /** * When the identity was last synced from the auth provider */ dateSynced: string; }>; /** * User avatar */ avatar?: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Two-factor authenticators of the user, without backup methods such as recovery codes */ authenticators?: Array<{ /** * Authenticator ID */ id: string; /** * Authenticator type, such as totp, sms, u2f or recovery */ type: string; /** * Display name of the authenticator type */ name: string; /** * When the authenticator was added */ dateCreated: string; /** * When the authenticator was last used, or null */ dateUsed: string | null; }>; /** * Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization */ canReset2fa?: boolean; /** * User ID */ id: string; /** * Display name: the user's name, or their email or username if no name is set */ name: string; /** * Username */ username: string; /** * Primary email address */ email: string; /** * Gravatar URL for the primary email address */ avatarUrl: string; /** * Whether the account is active */ isActive: boolean; /** * Whether the account is suspended. Suspended users can't sign in */ isSuspended: boolean; /** * Whether the user has a password set */ hasPasswordAuth: boolean; /** * Whether the account is managed, which stops the user from changing their username, password and similar details */ isManaged: boolean; /** * When the account was created */ dateJoined: string; /** * When the user last signed in, or null */ lastLogin: string | null; /** * Whether the user has two-factor authentication enabled */ has2fa: boolean; /** * When the user was last active, or null */ lastActive: string | null; /** * Whether the user is a superuser */ isSuperuser: boolean; /** * Whether the user has staff status */ isStaff: boolean; /** * Deprecated. Always an empty object */ experiments: { [key: string]: string; }; /** * Email addresses of the user. Only included for the requesting user or superusers; empty otherwise */ emails: Array<{ /** * Email ID */ id: string; /** * Email address */ email: string; /** * Whether the email address is verified */ is_verified: boolean; }>; } | null; /** * Sentry App that acted, if one did */ sentry_app: { /** * ID of the Sentry App */ id: string; /** * Name of the Sentry App */ name: string; /** * Slug of the Sentry App */ slug: string; /** * Avatars of the Sentry App */ avatars: Array<{ /** * Avatar type: `default` or `upload` */ avatarType: string; /** * Unique identifier of the uploaded avatar file, or an empty string if none is set */ avatarUuid: string; /** * Absolute URL of the avatar image */ avatarUrl: string; /** * Whether this is the color logo (`true`) or the simple icon (`false`) */ color: boolean; /** * Kind of image: `logo` for the color logo or `icon` for the simple icon */ photoType: string; }>; } | null; /** * Type of the activity, which decides the shape of data */ type: 'set_unresolved'; /** * Details of the activity, which depend on type */ data: { /** * ID of the event that caused the change */ event_id?: string | null; /** * ID of the integration that changed the status, when an integration did */ integration_id?: number; /** * Name of the integration provider, such as Jira */ provider?: string; /** * Key of the integration provider, such as jira */ provider_key?: string; /** * Forecast of the issue's daily events when it escalated */ forecast?: number; }; /** * When the activity happened (ISO 8601) */ dateCreated: string; /** * Where the action came from, such as web, api or mcp: */ source?: string | null; } | { /** * ID of the activity, or 0 for a first-seen item built from the issue */ id: string; /** * ID to pass to the notes endpoints for a comment, otherwise null */ commentId: string | null; /** * User who acted, or null for Sentry, an integration or a Sentry App */ user: { /** * SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access */ identities?: Array<{ /** * SSO identity ID */ id: string; /** * User's identifier at the auth provider */ name: string; /** * Organization the auth provider belongs to */ organization: { /** * Organization slug */ slug: string; /** * Organization name */ name: string; }; /** * Auth provider of the identity */ provider: { /** * Auth provider key, such as google or saml2 */ id: string; /** * Display name of the auth provider */ name: string; }; /** * When the identity was last verified by signing in through the auth provider */ dateVerified: string; /** * When the identity was last synced from the auth provider */ dateSynced: string; }>; /** * User avatar */ avatar?: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Two-factor authenticators of the user, without backup methods such as recovery codes */ authenticators?: Array<{ /** * Authenticator ID */ id: string; /** * Authenticator type, such as totp, sms, u2f or recovery */ type: string; /** * Display name of the authenticator type */ name: string; /** * When the authenticator was added */ dateCreated: string; /** * When the authenticator was last used, or null */ dateUsed: string | null; }>; /** * Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization */ canReset2fa?: boolean; /** * User ID */ id: string; /** * Display name: the user's name, or their email or username if no name is set */ name: string; /** * Username */ username: string; /** * Primary email address */ email: string; /** * Gravatar URL for the primary email address */ avatarUrl: string; /** * Whether the account is active */ isActive: boolean; /** * Whether the account is suspended. Suspended users can't sign in */ isSuspended: boolean; /** * Whether the user has a password set */ hasPasswordAuth: boolean; /** * Whether the account is managed, which stops the user from changing their username, password and similar details */ isManaged: boolean; /** * When the account was created */ dateJoined: string; /** * When the user last signed in, or null */ lastLogin: string | null; /** * Whether the user has two-factor authentication enabled */ has2fa: boolean; /** * When the user was last active, or null */ lastActive: string | null; /** * Whether the user is a superuser */ isSuperuser: boolean; /** * Whether the user has staff status */ isStaff: boolean; /** * Deprecated. Always an empty object */ experiments: { [key: string]: string; }; /** * Email addresses of the user. Only included for the requesting user or superusers; empty otherwise */ emails: Array<{ /** * Email ID */ id: string; /** * Email address */ email: string; /** * Whether the email address is verified */ is_verified: boolean; }>; } | null; /** * Sentry App that acted, if one did */ sentry_app: { /** * ID of the Sentry App */ id: string; /** * Name of the Sentry App */ name: string; /** * Slug of the Sentry App */ slug: string; /** * Avatars of the Sentry App */ avatars: Array<{ /** * Avatar type: `default` or `upload` */ avatarType: string; /** * Unique identifier of the uploaded avatar file, or an empty string if none is set */ avatarUuid: string; /** * Absolute URL of the avatar image */ avatarUrl: string; /** * Whether this is the color logo (`true`) or the simple icon (`false`) */ color: boolean; /** * Kind of image: `logo` for the color logo or `icon` for the simple icon */ photoType: string; }>; } | null; /** * Type of the activity, which decides the shape of data */ type: 'trigger_autofix'; /** * Details of the activity, which depend on type */ data: { /** * What started the Autofix run, such as api.web or slack */ referrer?: string | null; }; /** * When the activity happened (ISO 8601) */ dateCreated: string; /** * Where the action came from, such as web, api or mcp: */ source?: string | null; } | { /** * ID of the activity, or 0 for a first-seen item built from the issue */ id: string; /** * ID to pass to the notes endpoints for a comment, otherwise null */ commentId: string | null; /** * User who acted, or null for Sentry, an integration or a Sentry App */ user: { /** * SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access */ identities?: Array<{ /** * SSO identity ID */ id: string; /** * User's identifier at the auth provider */ name: string; /** * Organization the auth provider belongs to */ organization: { /** * Organization slug */ slug: string; /** * Organization name */ name: string; }; /** * Auth provider of the identity */ provider: { /** * Auth provider key, such as google or saml2 */ id: string; /** * Display name of the auth provider */ name: string; }; /** * When the identity was last verified by signing in through the auth provider */ dateVerified: string; /** * When the identity was last synced from the auth provider */ dateSynced: string; }>; /** * User avatar */ avatar?: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Two-factor authenticators of the user, without backup methods such as recovery codes */ authenticators?: Array<{ /** * Authenticator ID */ id: string; /** * Authenticator type, such as totp, sms, u2f or recovery */ type: string; /** * Display name of the authenticator type */ name: string; /** * When the authenticator was added */ dateCreated: string; /** * When the authenticator was last used, or null */ dateUsed: string | null; }>; /** * Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization */ canReset2fa?: boolean; /** * User ID */ id: string; /** * Display name: the user's name, or their email or username if no name is set */ name: string; /** * Username */ username: string; /** * Primary email address */ email: string; /** * Gravatar URL for the primary email address */ avatarUrl: string; /** * Whether the account is active */ isActive: boolean; /** * Whether the account is suspended. Suspended users can't sign in */ isSuspended: boolean; /** * Whether the user has a password set */ hasPasswordAuth: boolean; /** * Whether the account is managed, which stops the user from changing their username, password and similar details */ isManaged: boolean; /** * When the account was created */ dateJoined: string; /** * When the user last signed in, or null */ lastLogin: string | null; /** * Whether the user has two-factor authentication enabled */ has2fa: boolean; /** * When the user was last active, or null */ lastActive: string | null; /** * Whether the user is a superuser */ isSuperuser: boolean; /** * Whether the user has staff status */ isStaff: boolean; /** * Deprecated. Always an empty object */ experiments: { [key: string]: string; }; /** * Email addresses of the user. Only included for the requesting user or superusers; empty otherwise */ emails: Array<{ /** * Email ID */ id: string; /** * Email address */ email: string; /** * Whether the email address is verified */ is_verified: boolean; }>; } | null; /** * Sentry App that acted, if one did */ sentry_app: { /** * ID of the Sentry App */ id: string; /** * Name of the Sentry App */ name: string; /** * Slug of the Sentry App */ slug: string; /** * Avatars of the Sentry App */ avatars: Array<{ /** * Avatar type: `default` or `upload` */ avatarType: string; /** * Unique identifier of the uploaded avatar file, or an empty string if none is set */ avatarUuid: string; /** * Absolute URL of the avatar image */ avatarUrl: string; /** * Whether this is the color logo (`true`) or the simple icon (`false`) */ color: boolean; /** * Kind of image: `logo` for the color logo or `icon` for the simple icon */ photoType: string; }>; } | null; /** * Type of the activity, which decides the shape of data */ type: 'unassigned'; /** * Details of the activity, which depend on type */ data: { [key: string]: unknown; }; /** * When the activity happened (ISO 8601) */ dateCreated: string; /** * Where the action came from, such as web, api or mcp: */ source?: string | null; } | { /** * ID of the activity, or 0 for a first-seen item built from the issue */ id: string; /** * ID to pass to the notes endpoints for a comment, otherwise null */ commentId: string | null; /** * User who acted, or null for Sentry, an integration or a Sentry App */ user: { /** * SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access */ identities?: Array<{ /** * SSO identity ID */ id: string; /** * User's identifier at the auth provider */ name: string; /** * Organization the auth provider belongs to */ organization: { /** * Organization slug */ slug: string; /** * Organization name */ name: string; }; /** * Auth provider of the identity */ provider: { /** * Auth provider key, such as google or saml2 */ id: string; /** * Display name of the auth provider */ name: string; }; /** * When the identity was last verified by signing in through the auth provider */ dateVerified: string; /** * When the identity was last synced from the auth provider */ dateSynced: string; }>; /** * User avatar */ avatar?: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Two-factor authenticators of the user, without backup methods such as recovery codes */ authenticators?: Array<{ /** * Authenticator ID */ id: string; /** * Authenticator type, such as totp, sms, u2f or recovery */ type: string; /** * Display name of the authenticator type */ name: string; /** * When the authenticator was added */ dateCreated: string; /** * When the authenticator was last used, or null */ dateUsed: string | null; }>; /** * Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization */ canReset2fa?: boolean; /** * User ID */ id: string; /** * Display name: the user's name, or their email or username if no name is set */ name: string; /** * Username */ username: string; /** * Primary email address */ email: string; /** * Gravatar URL for the primary email address */ avatarUrl: string; /** * Whether the account is active */ isActive: boolean; /** * Whether the account is suspended. Suspended users can't sign in */ isSuspended: boolean; /** * Whether the user has a password set */ hasPasswordAuth: boolean; /** * Whether the account is managed, which stops the user from changing their username, password and similar details */ isManaged: boolean; /** * When the account was created */ dateJoined: string; /** * When the user last signed in, or null */ lastLogin: string | null; /** * Whether the user has two-factor authentication enabled */ has2fa: boolean; /** * When the user was last active, or null */ lastActive: string | null; /** * Whether the user is a superuser */ isSuperuser: boolean; /** * Whether the user has staff status */ isStaff: boolean; /** * Deprecated. Always an empty object */ experiments: { [key: string]: string; }; /** * Email addresses of the user. Only included for the requesting user or superusers; empty otherwise */ emails: Array<{ /** * Email ID */ id: string; /** * Email address */ email: string; /** * Whether the email address is verified */ is_verified: boolean; }>; } | null; /** * Sentry App that acted, if one did */ sentry_app: { /** * ID of the Sentry App */ id: string; /** * Name of the Sentry App */ name: string; /** * Slug of the Sentry App */ slug: string; /** * Avatars of the Sentry App */ avatars: Array<{ /** * Avatar type: `default` or `upload` */ avatarType: string; /** * Unique identifier of the uploaded avatar file, or an empty string if none is set */ avatarUuid: string; /** * Absolute URL of the avatar image */ avatarUrl: string; /** * Whether this is the color logo (`true`) or the simple icon (`false`) */ color: boolean; /** * Kind of image: `logo` for the color logo or `icon` for the simple icon */ photoType: string; }>; } | null; /** * Type of the activity, which decides the shape of data */ type: 'unlink_external_issue'; /** * Details of the activity, which depend on type */ data: { /** * Integration provider, such as Jira or GitHub */ provider: string; /** * Key of the external issue, such as PROJ-123 */ external_issue_key: string; }; /** * When the activity happened (ISO 8601) */ dateCreated: string; /** * Where the action came from, such as web, api or mcp: */ source?: string | null; } | { /** * ID of the activity, or 0 for a first-seen item built from the issue */ id: string; /** * ID to pass to the notes endpoints for a comment, otherwise null */ commentId: string | null; /** * User who acted, or null for Sentry, an integration or a Sentry App */ user: { /** * SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access */ identities?: Array<{ /** * SSO identity ID */ id: string; /** * User's identifier at the auth provider */ name: string; /** * Organization the auth provider belongs to */ organization: { /** * Organization slug */ slug: string; /** * Organization name */ name: string; }; /** * Auth provider of the identity */ provider: { /** * Auth provider key, such as google or saml2 */ id: string; /** * Display name of the auth provider */ name: string; }; /** * When the identity was last verified by signing in through the auth provider */ dateVerified: string; /** * When the identity was last synced from the auth provider */ dateSynced: string; }>; /** * User avatar */ avatar?: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Two-factor authenticators of the user, without backup methods such as recovery codes */ authenticators?: Array<{ /** * Authenticator ID */ id: string; /** * Authenticator type, such as totp, sms, u2f or recovery */ type: string; /** * Display name of the authenticator type */ name: string; /** * When the authenticator was added */ dateCreated: string; /** * When the authenticator was last used, or null */ dateUsed: string | null; }>; /** * Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization */ canReset2fa?: boolean; /** * User ID */ id: string; /** * Display name: the user's name, or their email or username if no name is set */ name: string; /** * Username */ username: string; /** * Primary email address */ email: string; /** * Gravatar URL for the primary email address */ avatarUrl: string; /** * Whether the account is active */ isActive: boolean; /** * Whether the account is suspended. Suspended users can't sign in */ isSuspended: boolean; /** * Whether the user has a password set */ hasPasswordAuth: boolean; /** * Whether the account is managed, which stops the user from changing their username, password and similar details */ isManaged: boolean; /** * When the account was created */ dateJoined: string; /** * When the user last signed in, or null */ lastLogin: string | null; /** * Whether the user has two-factor authentication enabled */ has2fa: boolean; /** * When the user was last active, or null */ lastActive: string | null; /** * Whether the user is a superuser */ isSuperuser: boolean; /** * Whether the user has staff status */ isStaff: boolean; /** * Deprecated. Always an empty object */ experiments: { [key: string]: string; }; /** * Email addresses of the user. Only included for the requesting user or superusers; empty otherwise */ emails: Array<{ /** * Email ID */ id: string; /** * Email address */ email: string; /** * Whether the email address is verified */ is_verified: boolean; }>; } | null; /** * Sentry App that acted, if one did */ sentry_app: { /** * ID of the Sentry App */ id: string; /** * Name of the Sentry App */ name: string; /** * Slug of the Sentry App */ slug: string; /** * Avatars of the Sentry App */ avatars: Array<{ /** * Avatar type: `default` or `upload` */ avatarType: string; /** * Unique identifier of the uploaded avatar file, or an empty string if none is set */ avatarUuid: string; /** * Absolute URL of the avatar image */ avatarUrl: string; /** * Whether this is the color logo (`true`) or the simple icon (`false`) */ color: boolean; /** * Kind of image: `logo` for the color logo or `icon` for the simple icon */ photoType: string; }>; } | null; /** * Type of the activity, which decides the shape of data */ type: 'unlink_platform_external_issue'; /** * Details of the activity, which depend on type */ data: { /** * Slug of the Sentry App that owns the external issue */ service_type: string; /** * Display name of the external issue */ display_name: string; /** * URL of the external issue */ web_url: string; }; /** * When the activity happened (ISO 8601) */ dateCreated: string; /** * Where the action came from, such as web, api or mcp: */ source?: string | null; } | { /** * ID of the activity, or 0 for a first-seen item built from the issue */ id: string; /** * ID to pass to the notes endpoints for a comment, otherwise null */ commentId: string | null; /** * User who acted, or null for Sentry, an integration or a Sentry App */ user: { /** * SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access */ identities?: Array<{ /** * SSO identity ID */ id: string; /** * User's identifier at the auth provider */ name: string; /** * Organization the auth provider belongs to */ organization: { /** * Organization slug */ slug: string; /** * Organization name */ name: string; }; /** * Auth provider of the identity */ provider: { /** * Auth provider key, such as google or saml2 */ id: string; /** * Display name of the auth provider */ name: string; }; /** * When the identity was last verified by signing in through the auth provider */ dateVerified: string; /** * When the identity was last synced from the auth provider */ dateSynced: string; }>; /** * User avatar */ avatar?: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Two-factor authenticators of the user, without backup methods such as recovery codes */ authenticators?: Array<{ /** * Authenticator ID */ id: string; /** * Authenticator type, such as totp, sms, u2f or recovery */ type: string; /** * Display name of the authenticator type */ name: string; /** * When the authenticator was added */ dateCreated: string; /** * When the authenticator was last used, or null */ dateUsed: string | null; }>; /** * Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization */ canReset2fa?: boolean; /** * User ID */ id: string; /** * Display name: the user's name, or their email or username if no name is set */ name: string; /** * Username */ username: string; /** * Primary email address */ email: string; /** * Gravatar URL for the primary email address */ avatarUrl: string; /** * Whether the account is active */ isActive: boolean; /** * Whether the account is suspended. Suspended users can't sign in */ isSuspended: boolean; /** * Whether the user has a password set */ hasPasswordAuth: boolean; /** * Whether the account is managed, which stops the user from changing their username, password and similar details */ isManaged: boolean; /** * When the account was created */ dateJoined: string; /** * When the user last signed in, or null */ lastLogin: string | null; /** * Whether the user has two-factor authentication enabled */ has2fa: boolean; /** * When the user was last active, or null */ lastActive: string | null; /** * Whether the user is a superuser */ isSuperuser: boolean; /** * Whether the user has staff status */ isStaff: boolean; /** * Deprecated. Always an empty object */ experiments: { [key: string]: string; }; /** * Email addresses of the user. Only included for the requesting user or superusers; empty otherwise */ emails: Array<{ /** * Email ID */ id: string; /** * Email address */ email: string; /** * Whether the email address is verified */ is_verified: boolean; }>; } | null; /** * Sentry App that acted, if one did */ sentry_app: { /** * ID of the Sentry App */ id: string; /** * Name of the Sentry App */ name: string; /** * Slug of the Sentry App */ slug: string; /** * Avatars of the Sentry App */ avatars: Array<{ /** * Avatar type: `default` or `upload` */ avatarType: string; /** * Unique identifier of the uploaded avatar file, or an empty string if none is set */ avatarUuid: string; /** * Absolute URL of the avatar image */ avatarUrl: string; /** * Whether this is the color logo (`true`) or the simple icon (`false`) */ color: boolean; /** * Kind of image: `logo` for the color logo or `icon` for the simple icon */ photoType: string; }>; } | null; /** * Type of the activity, which decides the shape of data */ type: 'unmerge_destination'; /** * Details of the activity, which depend on type */ data: { /** * Fingerprints */ fingerprints: Array; /** * Issue the events moved from */ source?: { /** * Whether the issue includes unhandled events */ isUnhandled?: boolean; /** * Total number of events in the issue */ count?: string; /** * Number of users affected by the issue */ userCount?: number; /** * When the issue was first seen (ISO 8601) */ firstSeen?: string | null; /** * When the issue was last seen (ISO 8601) */ lastSeen?: string | null; /** * Additional data derived for the issue. Only included when requested with expand */ derivedData?: { /** * Action that blocks progress on the issue: none, approve_root_cause, approve_plan, approve_code_changes or merge_pr */ blocker: string; /** * How far the issue is toward resolution: identified, assigned, diagnosed, fix_proposed or fix_applied */ progress: string; /** * Status of the issue from its action log: open or closed */ status: string; /** * Number of times the issue was viewed */ viewCount: number; /** * Whether an open pull request is linked to the issue */ hasOpenFixPr: boolean; /** * Whether the issue has an assignee */ isAssigned: boolean; /** * Whether a root cause was found for the issue */ hasRootCause: boolean; /** * Furthest Autofix step completed: none, root_cause, solution, code_changes, pr_created or pr_iteration */ lastCompletedAutofixStep: string; /** * When the issue's progress last advanced (ISO 8601) */ lastProgressedAt: string | null; /** * The issue's impact assessment, or null when no assessment is available */ impact?: { /** * Estimated per-occurrence impact on the end user's capability from 0 to 100 */ score: number | null; /** * Impact level derived from the assessment score */ level: 'super_low' | 'low' | 'moderate' | 'high' | 'super_high' | null; /** * Human-readable description of the capability affected by the issue */ description: string; /** * Evidence-backed claims supporting the impact assessment */ citations: Array<{ /** * Stable identifier for the evidence supporting this claim */ reference: string; /** * Concise explanation of what the cited evidence establishes */ claim: string; /** * The category of evidence cited, such as an event, trace, replay, or log */ source: string; }>; /** * ID of the issue event used to generate the impact assessment */ sourceEventId: string; } | null; }; /** * ID of the issue */ id: string; /** * ID used in the issue's public share URL. Null when the issue isn't shared */ shareId: string | null; /** * Short ID of the issue, such as PROJECT-1A */ shortId: string | null; /** * Title of the issue */ title: string; /** * Function or module where the issue occurs */ culprit: string | null; /** * URL of the issue in Sentry */ permalink: string; /** * Logger of the issue's events */ logger: string | null; /** * Severity level of the issue */ level: 'sample' | 'debug' | 'info' | 'warning' | 'error' | 'fatal' | 'unknown'; /** * Issue status */ status: 'resolved' | 'ignored' | 'pending_deletion' | 'pending_merge' | 'reprocessing' | 'unresolved'; /** * Details of the issue's status, such as when an ignore expires or which release resolves it */ statusDetails: { /** * Number of additional events after which the issue stops being ignored */ ignoreCount?: number | null; /** * When the issue stops being ignored (ISO 8601) */ ignoreUntil?: string | null; /** * Number of additional affected users after which the issue stops being ignored */ ignoreUserCount?: number | null; /** * Time window in minutes for ignoreUserCount */ ignoreUserWindow?: number | null; /** * Time window in minutes for ignoreCount */ ignoreWindow?: number | null; /** * User who ignored or resolved the issue */ actor?: { /** * SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access */ identities?: Array<{ /** * SSO identity ID */ id: string; /** * User's identifier at the auth provider */ name: string; /** * Organization the auth provider belongs to */ organization: { /** * Organization slug */ slug: string; /** * Organization name */ name: string; }; /** * Auth provider of the identity */ provider: { /** * Auth provider key, such as google or saml2 */ id: string; /** * Display name of the auth provider */ name: string; }; /** * When the identity was last verified by signing in through the auth provider */ dateVerified: string; /** * When the identity was last synced from the auth provider */ dateSynced: string; }>; /** * User avatar */ avatar?: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Two-factor authenticators of the user, without backup methods such as recovery codes */ authenticators?: Array<{ /** * Authenticator ID */ id: string; /** * Authenticator type, such as totp, sms, u2f or recovery */ type: string; /** * Display name of the authenticator type */ name: string; /** * When the authenticator was added */ dateCreated: string; /** * When the authenticator was last used, or null */ dateUsed: string | null; }>; /** * Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization */ canReset2fa?: boolean; /** * User ID */ id: string; /** * Display name: the user's name, or their email or username if no name is set */ name: string; /** * Username */ username: string; /** * Primary email address */ email: string; /** * Gravatar URL for the primary email address */ avatarUrl: string; /** * Whether the account is active */ isActive: boolean; /** * Whether the account is suspended. Suspended users can't sign in */ isSuspended: boolean; /** * Whether the user has a password set */ hasPasswordAuth: boolean; /** * Whether the account is managed, which stops the user from changing their username, password and similar details */ isManaged: boolean; /** * When the account was created */ dateJoined: string; /** * When the user last signed in, or null */ lastLogin: string | null; /** * Whether the user has two-factor authentication enabled */ has2fa: boolean; /** * When the user was last active, or null */ lastActive: string | null; /** * Whether the user is a superuser */ isSuperuser: boolean; /** * Whether the user has staff status */ isStaff: boolean; /** * Deprecated. Always an empty object */ experiments: { [key: string]: string; }; /** * Email addresses of the user. Only included for the requesting user or superusers; empty otherwise */ emails: Array<{ /** * Email ID */ id: string; /** * Email address */ email: string; /** * Whether the email address is verified */ is_verified: boolean; }>; } | null; /** * Whether the issue is resolved in the next release */ inNextRelease?: boolean; /** * Version of the release the issue is resolved in */ inRelease?: string; /** * Commit the issue is resolved in */ inCommit?: string; /** * Number of events still waiting to be reprocessed */ pendingEvents?: number; /** * Reprocessing progress details */ info?: { /** * When reprocessing started (ISO 8601) */ dateCreated: string; /** * Number of events in the issue when reprocessing started */ syncCount: number; /** * Number of events to reprocess, at most the requested maximum */ totalEvents: number; } | null; }; /** * Substatus of the issue, such as ongoing, regressed or escalating */ substatus: 'archived_until_escalating' | 'archived_until_condition_met' | 'archived_forever' | 'escalating' | 'ongoing' | 'regressed' | 'new' | null; /** * Whether the issue is shared publicly */ isPublic: boolean; /** * Platform of the issue's events */ platform: string | null; /** * Priority of the issue: high, medium or low */ priority: 'low' | 'medium' | 'high' | null; /** * When the priority was last set manually, which stops automatic priority updates (ISO 8601) */ priorityLockedAt: string | null; /** * Seer's score for how likely the issue is to be fixable */ seerFixabilityScore: number | null; /** * When Seer Autofix was last triggered for the issue (ISO 8601) */ seerAutofixLastTriggered: string | null; /** * When the Seer explorer agent last completed an Autofix step for the issue (ISO 8601) */ seerExplorerAutofixLastTriggered: string | null; /** * Project the issue belongs to */ project: { /** * ID of the project */ id: string; /** * Name of the project */ name: string; /** * Slug of the project */ slug: string; /** * Platform of the project */ platform: string | null; }; /** * Event type of the issue, such as error or default */ type: 'default' | 'error' | 'csp' | 'nel' | 'hpkp' | 'expectct' | 'expectstaple' | 'transaction' | 'generic' | 'feedback'; /** * Issue type, such as error or performance_n_plus_one_db_queries */ issueType: string; /** * Issue category, such as error or performance */ issueCategory: string; /** * Issue metadata */ metadata: { /** * Title of default and issue platform events */ title?: string; /** * Exception value, or the subtitle of an issue */ value?: string; /** * Exception type of error events */ type?: string; /** * Whether the SDK fabricated the exception to carry a stacktrace, so its type is a platform label rather than what went wrong */ synthetic?: boolean; /** * File of the frame where the error happened */ filename?: string; /** * Function of the frame where the error happened */ function?: string; /** * Message of default, security and feedback events */ message?: string; /** * URI that a CSP report blocked */ uri?: string; /** * CSP directive that was violated */ directive?: string; /** * Host name of HPKP, Expect-CT and Expect-Staple reports */ origin?: string; /** * Name of the person who sent user feedback */ name?: string; /** * Email of the person who sent user feedback */ contact_email?: string; /** * Where user feedback came from, such as a widget */ source?: string; /** * Whether the stacktrace has in-app frames, system frames or both */ in_app_frame_mix?: string; /** * Whether a crash report was dropped because the issue already stores the most allowed */ stripped_crash?: boolean; /** * SDK of the issue's first event */ sdk?: { /** * Name of the SDK, or unknown */ name: string; /** * Name of the SDK, normalized for grouping */ name_normalized: string; }; /** * Severity score of the issue's first event */ severity?: number; /** * Why the severity score is what it is */ severity_reason?: string; /** * Priority the issue was created with */ initial_priority?: number; }; /** * Number of comments on the issue */ numComments: number; /** * User or team the issue is assigned to */ assignedTo: { /** * Whether the actor is a user or a team */ type: 'user' | 'team'; /** * ID of the user or team */ id: string; /** * Display name of the user, or slug of the team */ name: string; /** * Email address of the user. Only set for users */ email?: string; } | null; /** * Whether the requesting user bookmarked the issue */ isBookmarked: boolean; /** * Whether the requesting user is subscribed to the issue */ isSubscribed: boolean; /** * Why the requesting user is subscribed to the issue */ subscriptionDetails: { /** * Whether the requesting user turned off notifications for the issue */ disabled?: boolean; /** * Why the requesting user is subscribed: commented, assigned, bookmarked, changed_status, mentioned or unknown */ reason?: string; } | null; /** * Whether the requesting user has seen the issue since it last occurred */ hasSeen: boolean; /** * External issues linked to the issue */ annotations: Array<{ /** * Display name of the linked external issue */ displayName: string; /** * URL of the linked external issue */ url: string; }>; } | null; }; /** * When the activity happened (ISO 8601) */ dateCreated: string; /** * Where the action came from, such as web, api or mcp: */ source?: string | null; } | { /** * ID of the activity, or 0 for a first-seen item built from the issue */ id: string; /** * ID to pass to the notes endpoints for a comment, otherwise null */ commentId: string | null; /** * User who acted, or null for Sentry, an integration or a Sentry App */ user: { /** * SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access */ identities?: Array<{ /** * SSO identity ID */ id: string; /** * User's identifier at the auth provider */ name: string; /** * Organization the auth provider belongs to */ organization: { /** * Organization slug */ slug: string; /** * Organization name */ name: string; }; /** * Auth provider of the identity */ provider: { /** * Auth provider key, such as google or saml2 */ id: string; /** * Display name of the auth provider */ name: string; }; /** * When the identity was last verified by signing in through the auth provider */ dateVerified: string; /** * When the identity was last synced from the auth provider */ dateSynced: string; }>; /** * User avatar */ avatar?: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Two-factor authenticators of the user, without backup methods such as recovery codes */ authenticators?: Array<{ /** * Authenticator ID */ id: string; /** * Authenticator type, such as totp, sms, u2f or recovery */ type: string; /** * Display name of the authenticator type */ name: string; /** * When the authenticator was added */ dateCreated: string; /** * When the authenticator was last used, or null */ dateUsed: string | null; }>; /** * Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization */ canReset2fa?: boolean; /** * User ID */ id: string; /** * Display name: the user's name, or their email or username if no name is set */ name: string; /** * Username */ username: string; /** * Primary email address */ email: string; /** * Gravatar URL for the primary email address */ avatarUrl: string; /** * Whether the account is active */ isActive: boolean; /** * Whether the account is suspended. Suspended users can't sign in */ isSuspended: boolean; /** * Whether the user has a password set */ hasPasswordAuth: boolean; /** * Whether the account is managed, which stops the user from changing their username, password and similar details */ isManaged: boolean; /** * When the account was created */ dateJoined: string; /** * When the user last signed in, or null */ lastLogin: string | null; /** * Whether the user has two-factor authentication enabled */ has2fa: boolean; /** * When the user was last active, or null */ lastActive: string | null; /** * Whether the user is a superuser */ isSuperuser: boolean; /** * Whether the user has staff status */ isStaff: boolean; /** * Deprecated. Always an empty object */ experiments: { [key: string]: string; }; /** * Email addresses of the user. Only included for the requesting user or superusers; empty otherwise */ emails: Array<{ /** * Email ID */ id: string; /** * Email address */ email: string; /** * Whether the email address is verified */ is_verified: boolean; }>; } | null; /** * Sentry App that acted, if one did */ sentry_app: { /** * ID of the Sentry App */ id: string; /** * Name of the Sentry App */ name: string; /** * Slug of the Sentry App */ slug: string; /** * Avatars of the Sentry App */ avatars: Array<{ /** * Avatar type: `default` or `upload` */ avatarType: string; /** * Unique identifier of the uploaded avatar file, or an empty string if none is set */ avatarUuid: string; /** * Absolute URL of the avatar image */ avatarUrl: string; /** * Whether this is the color logo (`true`) or the simple icon (`false`) */ color: boolean; /** * Kind of image: `logo` for the color logo or `icon` for the simple icon */ photoType: string; }>; } | null; /** * Type of the activity, which decides the shape of data */ type: 'unmerge_source'; /** * Details of the activity, which depend on type */ data: { /** * Fingerprints */ fingerprints: Array; /** * Issue the events moved to */ destination?: { /** * Whether the issue includes unhandled events */ isUnhandled?: boolean; /** * Total number of events in the issue */ count?: string; /** * Number of users affected by the issue */ userCount?: number; /** * When the issue was first seen (ISO 8601) */ firstSeen?: string | null; /** * When the issue was last seen (ISO 8601) */ lastSeen?: string | null; /** * Additional data derived for the issue. Only included when requested with expand */ derivedData?: { /** * Action that blocks progress on the issue: none, approve_root_cause, approve_plan, approve_code_changes or merge_pr */ blocker: string; /** * How far the issue is toward resolution: identified, assigned, diagnosed, fix_proposed or fix_applied */ progress: string; /** * Status of the issue from its action log: open or closed */ status: string; /** * Number of times the issue was viewed */ viewCount: number; /** * Whether an open pull request is linked to the issue */ hasOpenFixPr: boolean; /** * Whether the issue has an assignee */ isAssigned: boolean; /** * Whether a root cause was found for the issue */ hasRootCause: boolean; /** * Furthest Autofix step completed: none, root_cause, solution, code_changes, pr_created or pr_iteration */ lastCompletedAutofixStep: string; /** * When the issue's progress last advanced (ISO 8601) */ lastProgressedAt: string | null; /** * The issue's impact assessment, or null when no assessment is available */ impact?: { /** * Estimated per-occurrence impact on the end user's capability from 0 to 100 */ score: number | null; /** * Impact level derived from the assessment score */ level: 'super_low' | 'low' | 'moderate' | 'high' | 'super_high' | null; /** * Human-readable description of the capability affected by the issue */ description: string; /** * Evidence-backed claims supporting the impact assessment */ citations: Array<{ /** * Stable identifier for the evidence supporting this claim */ reference: string; /** * Concise explanation of what the cited evidence establishes */ claim: string; /** * The category of evidence cited, such as an event, trace, replay, or log */ source: string; }>; /** * ID of the issue event used to generate the impact assessment */ sourceEventId: string; } | null; }; /** * ID of the issue */ id: string; /** * ID used in the issue's public share URL. Null when the issue isn't shared */ shareId: string | null; /** * Short ID of the issue, such as PROJECT-1A */ shortId: string | null; /** * Title of the issue */ title: string; /** * Function or module where the issue occurs */ culprit: string | null; /** * URL of the issue in Sentry */ permalink: string; /** * Logger of the issue's events */ logger: string | null; /** * Severity level of the issue */ level: 'sample' | 'debug' | 'info' | 'warning' | 'error' | 'fatal' | 'unknown'; /** * Issue status */ status: 'resolved' | 'ignored' | 'pending_deletion' | 'pending_merge' | 'reprocessing' | 'unresolved'; /** * Details of the issue's status, such as when an ignore expires or which release resolves it */ statusDetails: { /** * Number of additional events after which the issue stops being ignored */ ignoreCount?: number | null; /** * When the issue stops being ignored (ISO 8601) */ ignoreUntil?: string | null; /** * Number of additional affected users after which the issue stops being ignored */ ignoreUserCount?: number | null; /** * Time window in minutes for ignoreUserCount */ ignoreUserWindow?: number | null; /** * Time window in minutes for ignoreCount */ ignoreWindow?: number | null; /** * User who ignored or resolved the issue */ actor?: { /** * SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access */ identities?: Array<{ /** * SSO identity ID */ id: string; /** * User's identifier at the auth provider */ name: string; /** * Organization the auth provider belongs to */ organization: { /** * Organization slug */ slug: string; /** * Organization name */ name: string; }; /** * Auth provider of the identity */ provider: { /** * Auth provider key, such as google or saml2 */ id: string; /** * Display name of the auth provider */ name: string; }; /** * When the identity was last verified by signing in through the auth provider */ dateVerified: string; /** * When the identity was last synced from the auth provider */ dateSynced: string; }>; /** * User avatar */ avatar?: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Two-factor authenticators of the user, without backup methods such as recovery codes */ authenticators?: Array<{ /** * Authenticator ID */ id: string; /** * Authenticator type, such as totp, sms, u2f or recovery */ type: string; /** * Display name of the authenticator type */ name: string; /** * When the authenticator was added */ dateCreated: string; /** * When the authenticator was last used, or null */ dateUsed: string | null; }>; /** * Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization */ canReset2fa?: boolean; /** * User ID */ id: string; /** * Display name: the user's name, or their email or username if no name is set */ name: string; /** * Username */ username: string; /** * Primary email address */ email: string; /** * Gravatar URL for the primary email address */ avatarUrl: string; /** * Whether the account is active */ isActive: boolean; /** * Whether the account is suspended. Suspended users can't sign in */ isSuspended: boolean; /** * Whether the user has a password set */ hasPasswordAuth: boolean; /** * Whether the account is managed, which stops the user from changing their username, password and similar details */ isManaged: boolean; /** * When the account was created */ dateJoined: string; /** * When the user last signed in, or null */ lastLogin: string | null; /** * Whether the user has two-factor authentication enabled */ has2fa: boolean; /** * When the user was last active, or null */ lastActive: string | null; /** * Whether the user is a superuser */ isSuperuser: boolean; /** * Whether the user has staff status */ isStaff: boolean; /** * Deprecated. Always an empty object */ experiments: { [key: string]: string; }; /** * Email addresses of the user. Only included for the requesting user or superusers; empty otherwise */ emails: Array<{ /** * Email ID */ id: string; /** * Email address */ email: string; /** * Whether the email address is verified */ is_verified: boolean; }>; } | null; /** * Whether the issue is resolved in the next release */ inNextRelease?: boolean; /** * Version of the release the issue is resolved in */ inRelease?: string; /** * Commit the issue is resolved in */ inCommit?: string; /** * Number of events still waiting to be reprocessed */ pendingEvents?: number; /** * Reprocessing progress details */ info?: { /** * When reprocessing started (ISO 8601) */ dateCreated: string; /** * Number of events in the issue when reprocessing started */ syncCount: number; /** * Number of events to reprocess, at most the requested maximum */ totalEvents: number; } | null; }; /** * Substatus of the issue, such as ongoing, regressed or escalating */ substatus: 'archived_until_escalating' | 'archived_until_condition_met' | 'archived_forever' | 'escalating' | 'ongoing' | 'regressed' | 'new' | null; /** * Whether the issue is shared publicly */ isPublic: boolean; /** * Platform of the issue's events */ platform: string | null; /** * Priority of the issue: high, medium or low */ priority: 'low' | 'medium' | 'high' | null; /** * When the priority was last set manually, which stops automatic priority updates (ISO 8601) */ priorityLockedAt: string | null; /** * Seer's score for how likely the issue is to be fixable */ seerFixabilityScore: number | null; /** * When Seer Autofix was last triggered for the issue (ISO 8601) */ seerAutofixLastTriggered: string | null; /** * When the Seer explorer agent last completed an Autofix step for the issue (ISO 8601) */ seerExplorerAutofixLastTriggered: string | null; /** * Project the issue belongs to */ project: { /** * ID of the project */ id: string; /** * Name of the project */ name: string; /** * Slug of the project */ slug: string; /** * Platform of the project */ platform: string | null; }; /** * Event type of the issue, such as error or default */ type: 'default' | 'error' | 'csp' | 'nel' | 'hpkp' | 'expectct' | 'expectstaple' | 'transaction' | 'generic' | 'feedback'; /** * Issue type, such as error or performance_n_plus_one_db_queries */ issueType: string; /** * Issue category, such as error or performance */ issueCategory: string; /** * Issue metadata */ metadata: { /** * Title of default and issue platform events */ title?: string; /** * Exception value, or the subtitle of an issue */ value?: string; /** * Exception type of error events */ type?: string; /** * Whether the SDK fabricated the exception to carry a stacktrace, so its type is a platform label rather than what went wrong */ synthetic?: boolean; /** * File of the frame where the error happened */ filename?: string; /** * Function of the frame where the error happened */ function?: string; /** * Message of default, security and feedback events */ message?: string; /** * URI that a CSP report blocked */ uri?: string; /** * CSP directive that was violated */ directive?: string; /** * Host name of HPKP, Expect-CT and Expect-Staple reports */ origin?: string; /** * Name of the person who sent user feedback */ name?: string; /** * Email of the person who sent user feedback */ contact_email?: string; /** * Where user feedback came from, such as a widget */ source?: string; /** * Whether the stacktrace has in-app frames, system frames or both */ in_app_frame_mix?: string; /** * Whether a crash report was dropped because the issue already stores the most allowed */ stripped_crash?: boolean; /** * SDK of the issue's first event */ sdk?: { /** * Name of the SDK, or unknown */ name: string; /** * Name of the SDK, normalized for grouping */ name_normalized: string; }; /** * Severity score of the issue's first event */ severity?: number; /** * Why the severity score is what it is */ severity_reason?: string; /** * Priority the issue was created with */ initial_priority?: number; }; /** * Number of comments on the issue */ numComments: number; /** * User or team the issue is assigned to */ assignedTo: { /** * Whether the actor is a user or a team */ type: 'user' | 'team'; /** * ID of the user or team */ id: string; /** * Display name of the user, or slug of the team */ name: string; /** * Email address of the user. Only set for users */ email?: string; } | null; /** * Whether the requesting user bookmarked the issue */ isBookmarked: boolean; /** * Whether the requesting user is subscribed to the issue */ isSubscribed: boolean; /** * Why the requesting user is subscribed to the issue */ subscriptionDetails: { /** * Whether the requesting user turned off notifications for the issue */ disabled?: boolean; /** * Why the requesting user is subscribed: commented, assigned, bookmarked, changed_status, mentioned or unknown */ reason?: string; } | null; /** * Whether the requesting user has seen the issue since it last occurred */ hasSeen: boolean; /** * External issues linked to the issue */ annotations: Array<{ /** * Display name of the linked external issue */ displayName: string; /** * URL of the linked external issue */ url: string; }>; } | null; }; /** * When the activity happened (ISO 8601) */ dateCreated: string; /** * Where the action came from, such as web, api or mcp: */ source?: string | null; }>; /** * Users who have seen the issue, with when they last saw it */ seenBy: Array<{ /** * SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access */ identities?: Array<{ /** * SSO identity ID */ id: string; /** * User's identifier at the auth provider */ name: string; /** * Organization the auth provider belongs to */ organization: { /** * Organization slug */ slug: string; /** * Organization name */ name: string; }; /** * Auth provider of the identity */ provider: { /** * Auth provider key, such as google or saml2 */ id: string; /** * Display name of the auth provider */ name: string; }; /** * When the identity was last verified by signing in through the auth provider */ dateVerified: string; /** * When the identity was last synced from the auth provider */ dateSynced: string; }>; /** * User avatar */ avatar?: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Two-factor authenticators of the user, without backup methods such as recovery codes */ authenticators?: Array<{ /** * Authenticator ID */ id: string; /** * Authenticator type, such as totp, sms, u2f or recovery */ type: string; /** * Display name of the authenticator type */ name: string; /** * When the authenticator was added */ dateCreated: string; /** * When the authenticator was last used, or null */ dateUsed: string | null; }>; /** * Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization */ canReset2fa?: boolean; /** * User ID */ id: string; /** * Display name: the user's name, or their email or username if no name is set */ name: string; /** * Username */ username: string; /** * Primary email address */ email: string; /** * Gravatar URL for the primary email address */ avatarUrl: string; /** * Whether the account is active */ isActive: boolean; /** * Whether the account is suspended. Suspended users can't sign in */ isSuspended: boolean; /** * Whether the user has a password set */ hasPasswordAuth: boolean; /** * Whether the account is managed, which stops the user from changing their username, password and similar details */ isManaged: boolean; /** * When the account was created */ dateJoined: string; /** * When the user last signed in, or null */ lastLogin: string | null; /** * Whether the user has two-factor authentication enabled */ has2fa: boolean; /** * When the user was last active, or null */ lastActive: string | null; /** * Whether the user is a superuser */ isSuperuser: boolean; /** * Whether the user has staff status */ isStaff: boolean; /** * Deprecated. Always an empty object */ experiments: { [key: string]: string; }; /** * Email addresses of the user. Only included for the requesting user or superusers; empty otherwise */ emails: Array<{ /** * Email ID */ id: string; /** * Email address */ email: string; /** * Whether the email address is verified */ is_verified: boolean; }>; /** * When the user last saw the issue (ISO 8601) */ lastSeen: string; }>; /** * Number of user reports for the issue */ userReportCount: number; /** * Users participating in the issue */ participants: Array<{ /** * SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access */ identities?: Array<{ /** * SSO identity ID */ id: string; /** * User's identifier at the auth provider */ name: string; /** * Organization the auth provider belongs to */ organization: { /** * Organization slug */ slug: string; /** * Organization name */ name: string; }; /** * Auth provider of the identity */ provider: { /** * Auth provider key, such as google or saml2 */ id: string; /** * Display name of the auth provider */ name: string; }; /** * When the identity was last verified by signing in through the auth provider */ dateVerified: string; /** * When the identity was last synced from the auth provider */ dateSynced: string; }>; /** * User avatar */ avatar?: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Two-factor authenticators of the user, without backup methods such as recovery codes */ authenticators?: Array<{ /** * Authenticator ID */ id: string; /** * Authenticator type, such as totp, sms, u2f or recovery */ type: string; /** * Display name of the authenticator type */ name: string; /** * When the authenticator was added */ dateCreated: string; /** * When the authenticator was last used, or null */ dateUsed: string | null; }>; /** * Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization */ canReset2fa?: boolean; /** * User ID */ id: string; /** * Display name: the user's name, or their email or username if no name is set */ name: string; /** * Username */ username: string; /** * Primary email address */ email: string; /** * Gravatar URL for the primary email address */ avatarUrl: string; /** * Whether the account is active */ isActive: boolean; /** * Whether the account is suspended. Suspended users can't sign in */ isSuspended: boolean; /** * Whether the user has a password set */ hasPasswordAuth: boolean; /** * Whether the account is managed, which stops the user from changing their username, password and similar details */ isManaged: boolean; /** * When the account was created */ dateJoined: string; /** * When the user last signed in, or null */ lastLogin: string | null; /** * Whether the user has two-factor authentication enabled */ has2fa: boolean; /** * When the user was last active, or null */ lastActive: string | null; /** * Whether the user is a superuser */ isSuperuser: boolean; /** * Whether the user has staff status */ isStaff: boolean; /** * Deprecated. Always an empty object */ experiments: { [key: string]: string; }; /** * Email addresses of the user. Only included for the requesting user or superusers; empty otherwise */ emails: Array<{ /** * Email ID */ id: string; /** * Email address */ email: string; /** * Whether the email address is verified */ is_verified: boolean; }>; /** * Kind of participant. Always user */ type: 'user'; }>; }; export type GroupEventsResponseDict = Array<{ /** * ID of the event */ id: string; /** * Event type, such as error, default or transaction */ 'event.type': string; /** * ID of the issue the event belongs to */ groupID: string | null; /** * ID of the event */ eventID: string; /** * ID of the project the event belongs to */ projectID: string; /** * Event message */ message: string; /** * Event title */ title: string; /** * Source location of the event, such as a file and line */ location: string | null; /** * Function or module that caused the event */ culprit: string | null; /** * User context of the event */ user: { /** * ID the SDK sent for the user */ id?: string | null; /** * Email address of the user */ email?: string | null; /** * Username of the user */ username?: string | null; /** * IP address of the user */ ip_address?: string | null; /** * Name of the user */ name?: string | null; /** * Location of the user, with keys such as country_code, city and region */ geo?: { [key: string]: string; } | null; /** * Extra data the SDK sent about the user */ data?: { [key: string]: unknown; } | null; } | null; /** * Tags attached to the event */ tags: Array<{ /** * Search query that matches this tag's user, such as user.email:"user@example.com". Only set for user tags */ query?: string; /** * Tag key */ key: string; /** * Tag value */ value: string; }>; /** * Platform of the event, such as python or javascript */ platform: string | null; /** * When the event occurred (ISO 8601) */ dateCreated: string; /** * Crash report attachment of the event, if any */ crashFile: string | null; /** * Event metadata */ metadata: { /** * Title of default and issue platform events */ title?: string; /** * Exception value, or the subtitle of an issue */ value?: string; /** * Exception type of error events */ type?: string; /** * Whether the SDK fabricated the exception to carry a stacktrace, so its type is a platform label rather than what went wrong */ synthetic?: boolean; /** * File of the frame where the error happened */ filename?: string; /** * Function of the frame where the error happened */ function?: string; /** * Message of default, security and feedback events */ message?: string; /** * URI that a CSP report blocked */ uri?: string; /** * CSP directive that was violated */ directive?: string; /** * Host name of HPKP, Expect-CT and Expect-Staple reports */ origin?: string; /** * Name of the person who sent user feedback */ name?: string; /** * Email of the person who sent user feedback */ contact_email?: string; /** * Where user feedback came from, such as a widget */ source?: string; /** * Whether the stacktrace has in-app frames, system frames or both */ in_app_frame_mix?: string; /** * Whether a crash report was dropped because the issue already stores the most allowed */ stripped_crash?: boolean; /** * SDK of the issue's first event */ sdk?: { /** * Name of the SDK, or unknown */ name: string; /** * Name of the SDK, normalized for grouping */ name_normalized: string; }; /** * Severity score of the issue's first event */ severity?: number; /** * Why the severity score is what it is */ severity_reason?: string; /** * Priority the issue was created with */ initial_priority?: number; }; }>; export type GroupExternalIssueResponse = Array<{ /** * ID of the external issue link */ id: string; /** * ID of the Sentry issue */ issueId: string; /** * Slug of the custom integration that created the external issue */ serviceType: string; /** * Display name of the external issue, such as ABC-123 */ displayName: string; /** * URL of the external issue */ webUrl: string; }>; export type GroupHashesResponse = Array<{ /** * Fingerprint hash */ id: string; /** * Latest event with the hash. Null when the event isn't found */ latestEvent: { /** * ID of the event */ id: string; /** * ID of the issue the event belongs to */ groupID: string | null; /** * ID of the event */ eventID: string; /** * ID of the project the event belongs to */ projectID: string; /** * Event message */ message: string | null; /** * Event title */ title: string; /** * Source location of the event, such as a file and line */ location: string | null; /** * Platform of the event, such as python or javascript */ platform: string | null; /** * When Sentry received the event (ISO 8601) */ dateReceived: string | null; /** * Size of the event payload in bytes */ size: number | null; /** * Event interfaces, such as exception, breadcrumbs and request, each with a type and data */ entries: Array; /** * Distribution of the release the event was sent with */ dist: string | null; /** * Modules loaded when the event occurred, keyed by module name with their versions */ packages: { [key: string]: string | null; }; /** * Event type, such as error, default or transaction */ type: 'default' | 'error' | 'csp' | 'nel' | 'hpkp' | 'expectct' | 'expectstaple' | 'transaction' | 'generic' | 'feedback'; /** * Event metadata */ metadata: { /** * Title of default and issue platform events */ title?: string; /** * Exception value, or the subtitle of an issue */ value?: string; /** * Exception type of error events */ type?: string; /** * Whether the SDK fabricated the exception to carry a stacktrace, so its type is a platform label rather than what went wrong */ synthetic?: boolean; /** * File of the frame where the error happened */ filename?: string; /** * Function of the frame where the error happened */ function?: string; /** * Message of default, security and feedback events */ message?: string; /** * URI that a CSP report blocked */ uri?: string; /** * CSP directive that was violated */ directive?: string; /** * Host name of HPKP, Expect-CT and Expect-Staple reports */ origin?: string; /** * Name of the person who sent user feedback */ name?: string; /** * Email of the person who sent user feedback */ contact_email?: string; /** * Where user feedback came from, such as a widget */ source?: string; /** * Whether the stacktrace has in-app frames, system frames or both */ in_app_frame_mix?: string; /** * Whether a crash report was dropped because the issue already stores the most allowed */ stripped_crash?: boolean; /** * SDK of the issue's first event */ sdk?: { /** * Name of the SDK, or unknown */ name: string; /** * Name of the SDK, normalized for grouping */ name_normalized: string; }; /** * Severity score of the issue's first event */ severity?: number; /** * Why the severity score is what it is */ severity_reason?: string; /** * Priority the issue was created with */ initial_priority?: number; }; /** * Issue occurrence data for events in non-error issues, such as performance issues. Null otherwise */ occurrence: { /** * ID of the occurrence */ id: string; /** * ID of the project */ projectId: number; /** * ID of the event the occurrence belongs to */ eventId: string; /** * Fingerprint that groups the occurrence into an issue */ fingerprint: Array; /** * Title of the issue */ issueTitle: string; /** * Subtitle of the issue */ subtitle: string; /** * ID of the resource the occurrence is about, such as a monitor. Null when not set */ resourceId: string | null; /** * Evidence to show on the issue */ evidenceDisplay: Array<{ /** * Name of the evidence */ name: string; /** * Value of the evidence */ value: string; /** * Whether to show the evidence first. At most one evidence of an occurrence is important */ important: boolean; }>; /** * When the problem was detected, as a Unix timestamp in seconds */ detectionTime: number; /** * Level of the occurrence, such as error or warning */ level: string | null; /** * Culprit of the occurrence */ culprit: string | null; /** * Actor the issue is assigned to, such as user:1 or team:1 */ assignee: string | null; /** * Initial priority of the issue: 25 low, 50 medium or 75 high */ priority: number | null; /** * Group type ID of metric issues, always 8001 */ type: 8001; /** * Detector and query that created the occurrence */ evidenceData: { /** * ID of the detector that created the occurrence */ detectorId: number; /** * ID of the metric alert rule the detector replaces. Null when there's none */ alertId: number | null; /** * Metric value that triggered the detector, or the anomaly detection result for dynamic detectors */ value: number | { /** * Metric value the anomaly detection model scored */ value: number; /** * ID of the data source that produced the value */ sourceId: string; /** * ID of the query subscription that produced the value */ subscriptionId: string; /** * When the value was measured */ timestamp: string; } | null; /** * ID of the query subscription that sent the data */ dataPacketSourceId: string; /** * Conditions of the detector */ conditions: Array<{ /** * ID of the detector condition */ id: number; /** * Type of the condition, such as gt, lt or anomaly_detection */ type: string; /** * Threshold the value is compared with, or the anomaly detection settings for an anomaly_detection condition */ comparison: number | { /** * How sensitive the anomaly detection is */ sensitivity: 'low' | 'medium' | 'high'; /** * Seasonality the anomaly detection model uses */ seasonality: 'auto' | 'hourly' | 'daily' | 'weekly' | 'hourly_daily' | 'hourly_weekly' | 'hourly_daily_weekly' | 'daily_weekly'; /** * Direction of anomalies to detect: 0 above, 1 below, 2 above and below */ thresholdType: 0 | 1 | 2; }; /** * Priority the detector reports when the condition matches: 0 ok, 25 low, 50 medium or 75 high */ conditionResult: number; }>; /** * Configuration of the detector */ config: { /** * How the detector evaluates the metric: static thresholds, percent change or dynamic anomaly detection */ detectionType: 'static' | 'percent' | 'dynamic'; /** * Time window in seconds that a percent change detector compares with */ comparisonDelta?: number | null; }; /** * Data sources of the detector */ dataSources: Array<{ /** * ID of the data source */ id: string; /** * ID of the organization */ organizationId: string; /** * Type of the data source, such as snuba_query_subscription */ type: string; /** * ID of the source object, such as the query subscription */ sourceId: string; /** * Query subscription the data source reads */ queryObj: { /** * ID of the query subscription */ id: string; /** * Status of the subscription: 0 active, 1 creating, 2 updating, 3 deleting or 4 disabled */ status: number; /** * ID of the subscription in Snuba. Null while it's being created */ subscription: string | null; /** * Query the subscription runs */ snubaQuery: { /** * ID of the query */ id: string; /** * Dataset the query runs on, such as events or events_analytics_platform */ dataset: string; /** * Search query that filters the data */ query: string; /** * Aggregate function the query computes, such as count() */ aggregate: string; /** * Time window of the query in seconds */ timeWindow: number; /** * Environment the query is limited to. Null for all environments */ environment: string | null; /** * Event types the query includes, such as error or transaction */ eventTypes: Array; /** * How sampled data is extrapolated, unknown, none, client_and_server_weighted or server_weighted. Null when not set */ extrapolationMode: string | null; }; }; }>; }; } | { /** * ID of the occurrence */ id: string; /** * ID of the project */ projectId: number; /** * ID of the event the occurrence belongs to */ eventId: string; /** * Fingerprint that groups the occurrence into an issue */ fingerprint: Array; /** * Title of the issue */ issueTitle: string; /** * Subtitle of the issue */ subtitle: string; /** * ID of the resource the occurrence is about, such as a monitor. Null when not set */ resourceId: string | null; /** * Evidence to show on the issue */ evidenceDisplay: Array<{ /** * Name of the evidence */ name: string; /** * Value of the evidence */ value: string; /** * Whether to show the evidence first. At most one evidence of an occurrence is important */ important: boolean; }>; /** * When the problem was detected, as a Unix timestamp in seconds */ detectionTime: number; /** * Level of the occurrence, such as error or warning */ level: string | null; /** * Culprit of the occurrence */ culprit: string | null; /** * Actor the issue is assigned to, such as user:1 or team:1 */ assignee: string | null; /** * Initial priority of the issue: 25 low, 50 medium or 75 high */ priority: number | null; /** * Group type ID of the occurrence */ type: number; /** * Data of the occurrence. Its keys depend on the group type */ evidenceData: { [key: string]: unknown; }; } | null; /** * Metadata about changes Sentry made to the event's fields, such as data scrubbing or trimming */ _meta: { [key: string]: unknown; }; /** * User context of the event */ user: { /** * ID the SDK sent for the user */ id?: string | null; /** * Email address of the user */ email?: string | null; /** * Username of the user */ username?: string | null; /** * IP address of the user */ ip_address?: string | null; /** * Name of the user */ name?: string | null; /** * Location of the user, with keys such as country_code, city and region */ geo?: { [key: string]: string; } | null; /** * Extra data the SDK sent about the user */ data?: { [key: string]: unknown; } | null; } | null; /** * Tags attached to the event */ tags: Array<{ /** * Search query that matches this tag's user, such as user.email:"user@example.com". Only set for user tags */ query?: string; /** * Tag key */ key: string; /** * Tag value */ value: string; }>; /** * Contexts of the event, such as device, os, browser and runtime, keyed by alias */ contexts: { [key: string]: { /** * Internal build ID as it appears on the platform. */ app_build?: string | null; /** * Version-independent application identifier, often a dotted bundle ID. */ app_identifier?: string | null; /** * Amount of memory used by the application in bytes. */ app_memory?: number | string | null; /** * Application name as it appears on the platform. */ app_name?: string | null; /** * Start time of the app. * * Formatted UTC timestamp when the user started the application. */ app_start_time?: string | null; /** * Application version as it appears on the platform. */ app_version?: string | null; /** * String identifying the kind of build. For example, `testflight`. */ build_type?: string | null; /** * Application-specific device identifier. */ device_app_hash?: string | null; /** * A flag indicating whether the app is in foreground or not. An app is in foreground when it's visible to the user. */ in_foreground?: boolean | null; /** * The names of the currently visible views. */ view_names?: Array | null; /** * Type of the context */ type: 'app'; [key: string]: unknown; } | { /** * Display name of the browser application. */ name?: string | null; /** * Version string of the browser. */ version?: string | null; /** * Type of the context */ type: 'browser'; [key: string]: unknown; } | { /** * Type of the context */ type: 'default'; [key: string]: unknown; } | { /** * Native cpu architecture of the device. */ arch?: string | null; /** * Current battery level in %. * * If the device has a battery, this can be a floating point value defining the battery level * (in the range 0-100). */ battery_level?: number | string | null; /** * Status of the device's battery. * * For example, `Unknown`, `Charging`, `Discharging`, `NotCharging`, `Full`. */ battery_status?: string | null; /** * Indicator when the device was booted. */ boot_time?: string | null; /** * Brand of the device. */ brand?: string | null; /** * Whether the device was charging or not. */ charging?: boolean | null; /** * CPU description. * * For example, Intel(R) Core(TM)2 Quad CPU Q6600 @ 2.40GHz. */ cpu_description?: string | null; /** * Kind of device the application is running on. * * For example, `Unknown`, `Handheld`, `Console`, `Desktop`. */ device_type?: string | null; /** * Unique device identifier. */ device_unique_identifier?: string | null; /** * Free size of the attached external storage in bytes (eg: android SDK card). */ external_free_storage?: number | string | null; /** * Total size of the attached external storage in bytes (eg: android SDK card). */ external_storage_size?: number | string | null; /** * Family of the device model. * * This is usually the common part of model names across generations. For instance, `iPhone` * would be a reasonable family, so would be `Samsung Galaxy`. */ family?: string | null; /** * How much memory is still available in bytes. */ free_memory?: number | string | null; /** * How much storage is free in bytes. */ free_storage?: number | string | null; /** * ISO 639-1 code of the locale the device is set to. */ locale?: string | null; /** * Whether the device was low on memory. */ low_memory?: boolean | null; /** * Manufacturer of the device. */ manufacturer?: string | null; /** * Total memory available in bytes. */ memory_size?: number | string | null; /** * Device model. * * This, for example, can be `Samsung Galaxy S3`. */ model?: string | null; /** * Device model (internal identifier). * * An internal hardware revision to identify the device exactly. */ model_id?: string | null; /** * Name of the device. */ name?: string | null; /** * Whether the device was online or not. */ online?: boolean | null; /** * Current screen orientation. * * This can be a string `portrait` or `landscape` to define the orientation of a device. */ orientation?: string | null; /** * Number of "logical processors". * * For example, 8. */ processor_count?: number | string | null; /** * Processor frequency in MHz. * * Note that the actual CPU frequency might vary depending on current load and * power conditions, especially on low-powered devices like phones and laptops. */ processor_frequency?: number | string | null; /** * Device screen density. */ screen_density?: number | string | null; /** * Screen density as dots-per-inch. */ screen_dpi?: number | string | null; /** * Height of the screen in pixels. */ screen_height_pixels?: number | string | null; /** * Device screen resolution. * * (e.g.: 800x600, 3040x1444) */ screen_resolution?: string | null; /** * Width of the screen in pixels. */ screen_width_pixels?: number | string | null; /** * Simulator/prod indicator. */ simulator?: boolean | null; /** * Total storage size of the device in bytes. */ storage_size?: number | string | null; /** * Whether the accelerometer is available on the device. */ supports_accelerometer?: boolean | null; /** * Whether audio is available on the device. */ supports_audio?: boolean | null; /** * Whether the gyroscope is available on the device. */ supports_gyroscope?: boolean | null; /** * Whether location support is available on the device. */ supports_location_service?: boolean | null; /** * Whether vibration is available on the device. */ supports_vibration?: boolean | null; /** * Timezone of the device. */ timezone?: string | null; /** * How much memory is usable for the app in bytes. */ usable_memory?: number | string | null; /** * UUID of the device. */ uuid?: string | null; /** * Type of the context */ type: 'device'; [key: string]: unknown; } | { /** * The device low-level API type. * * Examples: `"Apple Metal"` or `"Direct3D11"` */ api_type?: string | null; /** * Approximate "shader capability" level of the graphics device. * * For Example: Shader Model 2.0, OpenGL ES 3.0, Metal / OpenGL ES 3.1, 27 (unknown) */ graphics_shader_level?: string | null; /** * The PCI identifier of the graphics device. */ id?: number | string; /** * Largest size of a texture that is supported by the graphics hardware. * * For Example: 16384 */ max_texture_size?: number | string | null; /** * The total GPU memory available in Megabytes. */ memory_size?: number | string | null; /** * Whether the GPU has multi-threaded rendering or not. */ multi_threaded_rendering?: boolean | null; /** * The name of the graphics device. */ name?: string | null; /** * The Non-Power-Of-Two support. */ npot_support?: string | null; /** * Whether compute shaders are available on the device. */ supports_compute_shaders?: boolean | null; /** * Whether GPU draw call instancing is supported. */ supports_draw_call_instancing?: boolean | null; /** * Whether geometry shaders are available on the device. */ supports_geometry_shaders?: boolean | null; /** * Whether ray tracing is available on the device. */ supports_ray_tracing?: boolean | null; /** * The PCI vendor identifier of the graphics device. */ vendor_id?: string | null; /** * The vendor name as reported by the graphics device. */ vendor_name?: string | null; /** * The Version of the graphics device. */ version?: string | null; /** * Type of the context */ type: 'gpu'; [key: string]: unknown; } | { /** * Type of the context */ type: 'monitor'; [key: string]: unknown; } | { /** * Internal build number of the operating system. */ build?: string | null; /** * Current kernel version. * * This is typically the entire output of the `uname` syscall. */ kernel_version?: string | null; /** * Name of the operating system. */ name?: string | null; /** * Unprocessed operating system info. * * An unprocessed description string obtained by the operating system. For some well-known * runtimes, Sentry will attempt to parse `name` and `version` from this string, if they are * not explicitly given. */ raw_description?: string | null; /** * Indicator if the OS is rooted (mobile mostly). */ rooted?: boolean | null; /** * Version of the operating system. */ version?: string | null; /** * Type of the context */ type: 'os'; [key: string]: unknown; } | { /** * Attributes of the OpenTelemetry span that maps to a Sentry event. * * */ attributes?: { [key: string]: string | boolean | number | number | Array; } | null; /** * Information about an OpenTelemetry resource. * * */ resource?: { [key: string]: string | boolean | number | number | Array; } | null; /** * Type of the context */ type: 'otel'; [key: string]: unknown; } | { /** * Application build string, if it is separate from the version. */ build?: string | null; /** * Runtime name. */ name?: string | null; /** * Unprocessed runtime info. * * An unprocessed description string obtained by the runtime. For some well-known runtimes, * Sentry will attempt to parse `name` and `version` from this string, if they are not * explicitly given. */ raw_description?: string | null; /** * Runtime version string. */ version?: string | null; /** * Type of the context */ type: 'runtime'; [key: string]: unknown; } | { /** * The client-side sample rate as reported in the envelope's `trace.sample_rate` header. * * The server takes this field from envelope headers and writes it back into the event. Clients * should not ever send this value. */ client_sample_rate?: number | string | null; /** * The amount of time in milliseconds spent in this transaction span, * excluding its immediate child spans. */ exclusive_time?: number | string | null; /** * Span type (see `OperationType` docs). */ op?: string | null; /** * The origin of the trace indicates what created the trace (see [OriginType] docs). */ origin?: string | null; /** * The ID of the span enclosing this span. */ parent_span_id?: string | null; /** * Track whether the trace connected to this event has been sampled entirely. * * This flag only applies to events with [`Error`] type that have an associated dynamic sampling context. */ sampled?: boolean | null; /** * The ID of the span. */ span_id?: string | null; /** * Whether the trace failed or succeeded. Currently only used to indicate status of individual * transactions. */ status?: 'ok' | 'cancelled' | 'unknown' | 'invalid_argument' | 'deadline_exceeded' | 'not_found' | 'already_exists' | 'permission_denied' | 'resource_exhausted' | 'failed_precondition' | 'aborted' | 'out_of_range' | 'unimplemented' | 'internal_error' | 'unavailable' | 'data_loss' | 'unauthenticated' | null; /** * The trace ID. */ trace_id?: string | null; /** * Type of the context */ type: 'trace'; [key: string]: unknown; } | { /** * Type of the context */ type: 'unity'; [key: string]: unknown; }; } | null; /** * SDK that sent the event */ sdk: { /** * Name of the SDK that sent the event, such as sentry.python */ name: string | null; /** * Version of the SDK */ version: string | null; } | null; /** * Additional data sent with the event in its extra field */ context: { [key: string]: unknown; } | null; /** * Errors Sentry found while processing the event */ errors: Array<{ /** * Type of the processing error, such as invalid_data or js_no_source */ type: string; /** * Human-readable message of the error */ message: string; /** * Details of the error, such as the name of the invalid field. Other keys depend on the error type */ data: { /** * Affected key or path in the event */ name?: string | null; /** * Details of the error from the processor that hit it */ message?: string; /** * URL that couldn't be fetched, such as a source file */ url?: string; /** * Path of the debug image the error is about */ image_path?: string; /** * Name of the debug image the error is about */ image_name?: string; /** * Debug ID of the image the error is about */ image_uuid?: string; /** * CPU architecture of the image the error is about */ image_arch?: string; /** * Error type Symbolicator reported, such as missing_source */ symbolicator_type?: string; /** * Source file or URL the error is about */ source?: string; /** * Source map the error is about */ sourcemap?: string; /** * Line of the location that couldn't be mapped */ row?: number; /** * Column of the location that couldn't be mapped */ column?: number; /** * Time the SDK reported, for clock drift errors */ sdk_time?: string; /** * Time the server received the event, for clock drift errors */ server_time?: string; }; }>; /** * Crash report attachment of the event, if any */ crashFile?: string | null; /** * Function or module that caused the event */ culprit?: string | null; /** * When the event occurred (ISO 8601) */ dateCreated?: string; /** * Grouping hashes calculated for the event */ fingerprints?: Array; /** * Grouping configuration used to group the event */ groupingConfig?: { /** * ID of the grouping config, such as newstyle:2026-01-20 */ id: string; /** * Stack trace rules of the project, as an encoded string */ enhancements: string; }; /** * When the transaction started, as a Unix timestamp in seconds */ startTimestamp?: number; /** * When the transaction ended, as a Unix timestamp in seconds */ endTimestamp?: number; /** * Measurements recorded for the transaction, such as web vitals, keyed by name */ measurements?: { [key: string]: { /** * Measurement value */ value: number; /** * Unit of the measurement, such as millisecond */ unit?: string | null; }; } | null; /** * Span operation breakdowns for the transaction, keyed by breakdown name */ breakdowns?: { [key: string]: { [key: string]: { /** * Measurement value */ value: number; /** * Unit of the measurement, such as millisecond */ unit?: string | null; }; }; } | null; } | { /** * ID of the event */ id: string; /** * Event type, such as error, default or transaction */ 'event.type': string; /** * ID of the issue the event belongs to */ groupID: string | null; /** * ID of the event */ eventID: string; /** * ID of the project the event belongs to */ projectID: string; /** * Event message */ message: string; /** * Event title */ title: string; /** * Source location of the event, such as a file and line */ location: string | null; /** * Function or module that caused the event */ culprit: string | null; /** * User context of the event */ user: { /** * ID the SDK sent for the user */ id?: string | null; /** * Email address of the user */ email?: string | null; /** * Username of the user */ username?: string | null; /** * IP address of the user */ ip_address?: string | null; /** * Name of the user */ name?: string | null; /** * Location of the user, with keys such as country_code, city and region */ geo?: { [key: string]: string; } | null; /** * Extra data the SDK sent about the user */ data?: { [key: string]: unknown; } | null; } | null; /** * Tags attached to the event */ tags: Array<{ /** * Search query that matches this tag's user, such as user.email:"user@example.com". Only set for user tags */ query?: string; /** * Tag key */ key: string; /** * Tag value */ value: string; }>; /** * Platform of the event, such as python or javascript */ platform: string | null; /** * When the event occurred (ISO 8601) */ dateCreated: string; /** * Crash report attachment of the event, if any */ crashFile: string | null; /** * Event metadata */ metadata: { /** * Title of default and issue platform events */ title?: string; /** * Exception value, or the subtitle of an issue */ value?: string; /** * Exception type of error events */ type?: string; /** * Whether the SDK fabricated the exception to carry a stacktrace, so its type is a platform label rather than what went wrong */ synthetic?: boolean; /** * File of the frame where the error happened */ filename?: string; /** * Function of the frame where the error happened */ function?: string; /** * Message of default, security and feedback events */ message?: string; /** * URI that a CSP report blocked */ uri?: string; /** * CSP directive that was violated */ directive?: string; /** * Host name of HPKP, Expect-CT and Expect-Staple reports */ origin?: string; /** * Name of the person who sent user feedback */ name?: string; /** * Email of the person who sent user feedback */ contact_email?: string; /** * Where user feedback came from, such as a widget */ source?: string; /** * Whether the stacktrace has in-app frames, system frames or both */ in_app_frame_mix?: string; /** * Whether a crash report was dropped because the issue already stores the most allowed */ stripped_crash?: boolean; /** * SDK of the issue's first event */ sdk?: { /** * Name of the SDK, or unknown */ name: string; /** * Name of the SDK, normalized for grouping */ name_normalized: string; }; /** * Severity score of the issue's first event */ severity?: number; /** * Why the severity score is what it is */ severity_reason?: string; /** * Priority the issue was created with */ initial_priority?: number; }; } | null; /** * Whether Seer merged the hash into the issue as a similar error */ mergedBySeer: boolean; /** * Distance between the hash's stack trace and the issue's when Seer merged them. Null when Seer didn't merge the hash */ seerMatchDistance: number | null; }>; export type GroupSearchViewPostValidator = { /** * The name of the issue view. */ name: string; /** * The issue search query. Issue search does not support the `AND`/`OR` boolean operators or parenthesized boolean groups. To match any of several values, use the list form instead: `issue:[PROJ-AB1, PROJ-CD2]`, `issue.priority:[high, medium]`. */ query: string; /** * The project IDs included in the view. Use `-1` to include all projects. */ projects: Array; /** * The environment names included in the view. An empty list includes all environments. */ environments: Array; /** * The time range for the view. */ timeFilters: { /** * The start of the time range in ISO-8601 format. */ start?: string | null; /** * The end of the time range in ISO-8601 format. */ end?: string | null; /** * The relative time period, such as `14d`. */ period?: string | null; /** * Whether to interpret the time range as UTC. */ utc?: boolean | null; }; /** * How to sort issues in the view. * * * `date` - Last Seen * * `new` - First Seen * * `trends` - Trends * * `freq` - Events * * `user` - Users * * `inbox` - Date Added * * `recommended` - Recommended */ querySort?: 'date' | 'new' | 'trends' | 'freq' | 'user' | 'inbox' | 'recommended'; /** * Whether to star the issue view for the current user. */ starred?: boolean; }; export type GroupSearchViewTimeFilters = { /** * The start of the time range in ISO-8601 format. */ start?: string | null; /** * The end of the time range in ISO-8601 format. */ end?: string | null; /** * The relative time period, such as `14d`. */ period?: string | null; /** * Whether to interpret the time range as UTC. */ utc?: boolean | null; }; export type GroupUpdateResponse = { /** * Whether the issue includes unhandled events */ isUnhandled?: boolean; /** * Total number of events in the issue */ count?: string; /** * Number of users affected by the issue */ userCount?: number; /** * When the issue was first seen (ISO 8601) */ firstSeen?: string | null; /** * When the issue was last seen (ISO 8601) */ lastSeen?: string | null; /** * Additional data derived for the issue. Only included when requested with expand */ derivedData?: { /** * Action that blocks progress on the issue: none, approve_root_cause, approve_plan, approve_code_changes or merge_pr */ blocker: string; /** * How far the issue is toward resolution: identified, assigned, diagnosed, fix_proposed or fix_applied */ progress: string; /** * Status of the issue from its action log: open or closed */ status: string; /** * Number of times the issue was viewed */ viewCount: number; /** * Whether an open pull request is linked to the issue */ hasOpenFixPr: boolean; /** * Whether the issue has an assignee */ isAssigned: boolean; /** * Whether a root cause was found for the issue */ hasRootCause: boolean; /** * Furthest Autofix step completed: none, root_cause, solution, code_changes, pr_created or pr_iteration */ lastCompletedAutofixStep: string; /** * When the issue's progress last advanced (ISO 8601) */ lastProgressedAt: string | null; /** * The issue's impact assessment, or null when no assessment is available */ impact?: { /** * Estimated per-occurrence impact on the end user's capability from 0 to 100 */ score: number | null; /** * Impact level derived from the assessment score */ level: 'super_low' | 'low' | 'moderate' | 'high' | 'super_high' | null; /** * Human-readable description of the capability affected by the issue */ description: string; /** * Evidence-backed claims supporting the impact assessment */ citations: Array<{ /** * Stable identifier for the evidence supporting this claim */ reference: string; /** * Concise explanation of what the cited evidence establishes */ claim: string; /** * The category of evidence cited, such as an event, trace, replay, or log */ source: string; }>; /** * ID of the issue event used to generate the impact assessment */ sourceEventId: string; } | null; }; /** * ID of the issue */ id: string; /** * ID used in the issue's public share URL. Null when the issue isn't shared */ shareId: string | null; /** * Short ID of the issue, such as PROJECT-1A */ shortId: string | null; /** * Title of the issue */ title: string; /** * Function or module where the issue occurs */ culprit: string | null; /** * URL of the issue in Sentry */ permalink: string; /** * Logger of the issue's events */ logger: string | null; /** * Severity level of the issue */ level: 'sample' | 'debug' | 'info' | 'warning' | 'error' | 'fatal' | 'unknown'; /** * Issue status */ status: 'resolved' | 'ignored' | 'pending_deletion' | 'pending_merge' | 'reprocessing' | 'unresolved'; /** * Details of the issue's status, such as when an ignore expires or which release resolves it */ statusDetails: { /** * Number of additional events after which the issue stops being ignored */ ignoreCount?: number | null; /** * When the issue stops being ignored (ISO 8601) */ ignoreUntil?: string | null; /** * Number of additional affected users after which the issue stops being ignored */ ignoreUserCount?: number | null; /** * Time window in minutes for ignoreUserCount */ ignoreUserWindow?: number | null; /** * Time window in minutes for ignoreCount */ ignoreWindow?: number | null; /** * User who ignored or resolved the issue */ actor?: { /** * SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access */ identities?: Array<{ /** * SSO identity ID */ id: string; /** * User's identifier at the auth provider */ name: string; /** * Organization the auth provider belongs to */ organization: { /** * Organization slug */ slug: string; /** * Organization name */ name: string; }; /** * Auth provider of the identity */ provider: { /** * Auth provider key, such as google or saml2 */ id: string; /** * Display name of the auth provider */ name: string; }; /** * When the identity was last verified by signing in through the auth provider */ dateVerified: string; /** * When the identity was last synced from the auth provider */ dateSynced: string; }>; /** * User avatar */ avatar?: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Two-factor authenticators of the user, without backup methods such as recovery codes */ authenticators?: Array<{ /** * Authenticator ID */ id: string; /** * Authenticator type, such as totp, sms, u2f or recovery */ type: string; /** * Display name of the authenticator type */ name: string; /** * When the authenticator was added */ dateCreated: string; /** * When the authenticator was last used, or null */ dateUsed: string | null; }>; /** * Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization */ canReset2fa?: boolean; /** * User ID */ id: string; /** * Display name: the user's name, or their email or username if no name is set */ name: string; /** * Username */ username: string; /** * Primary email address */ email: string; /** * Gravatar URL for the primary email address */ avatarUrl: string; /** * Whether the account is active */ isActive: boolean; /** * Whether the account is suspended. Suspended users can't sign in */ isSuspended: boolean; /** * Whether the user has a password set */ hasPasswordAuth: boolean; /** * Whether the account is managed, which stops the user from changing their username, password and similar details */ isManaged: boolean; /** * When the account was created */ dateJoined: string; /** * When the user last signed in, or null */ lastLogin: string | null; /** * Whether the user has two-factor authentication enabled */ has2fa: boolean; /** * When the user was last active, or null */ lastActive: string | null; /** * Whether the user is a superuser */ isSuperuser: boolean; /** * Whether the user has staff status */ isStaff: boolean; /** * Deprecated. Always an empty object */ experiments: { [key: string]: string; }; /** * Email addresses of the user. Only included for the requesting user or superusers; empty otherwise */ emails: Array<{ /** * Email ID */ id: string; /** * Email address */ email: string; /** * Whether the email address is verified */ is_verified: boolean; }>; } | null; /** * Whether the issue is resolved in the next release */ inNextRelease?: boolean; /** * Version of the release the issue is resolved in */ inRelease?: string; /** * Commit the issue is resolved in */ inCommit?: string; /** * Number of events still waiting to be reprocessed */ pendingEvents?: number; /** * Reprocessing progress details */ info?: { /** * When reprocessing started (ISO 8601) */ dateCreated: string; /** * Number of events in the issue when reprocessing started */ syncCount: number; /** * Number of events to reprocess, at most the requested maximum */ totalEvents: number; } | null; }; /** * Substatus of the issue, such as ongoing, regressed or escalating */ substatus: 'archived_until_escalating' | 'archived_until_condition_met' | 'archived_forever' | 'escalating' | 'ongoing' | 'regressed' | 'new' | null; /** * Whether the issue is shared publicly */ isPublic: boolean; /** * Platform of the issue's events */ platform: string | null; /** * Priority of the issue: high, medium or low */ priority: 'low' | 'medium' | 'high' | null; /** * When the priority was last set manually, which stops automatic priority updates (ISO 8601) */ priorityLockedAt: string | null; /** * Seer's score for how likely the issue is to be fixable */ seerFixabilityScore: number | null; /** * When Seer Autofix was last triggered for the issue (ISO 8601) */ seerAutofixLastTriggered: string | null; /** * When the Seer explorer agent last completed an Autofix step for the issue (ISO 8601) */ seerExplorerAutofixLastTriggered: string | null; /** * Project the issue belongs to */ project: { /** * ID of the project */ id: string; /** * Name of the project */ name: string; /** * Slug of the project */ slug: string; /** * Platform of the project */ platform: string | null; }; /** * Event type of the issue, such as error or default */ type: 'default' | 'error' | 'csp' | 'nel' | 'hpkp' | 'expectct' | 'expectstaple' | 'transaction' | 'generic' | 'feedback'; /** * Issue type, such as error or performance_n_plus_one_db_queries */ issueType: string; /** * Issue category, such as error or performance */ issueCategory: string; /** * Issue metadata */ metadata: { /** * Title of default and issue platform events */ title?: string; /** * Exception value, or the subtitle of an issue */ value?: string; /** * Exception type of error events */ type?: string; /** * Whether the SDK fabricated the exception to carry a stacktrace, so its type is a platform label rather than what went wrong */ synthetic?: boolean; /** * File of the frame where the error happened */ filename?: string; /** * Function of the frame where the error happened */ function?: string; /** * Message of default, security and feedback events */ message?: string; /** * URI that a CSP report blocked */ uri?: string; /** * CSP directive that was violated */ directive?: string; /** * Host name of HPKP, Expect-CT and Expect-Staple reports */ origin?: string; /** * Name of the person who sent user feedback */ name?: string; /** * Email of the person who sent user feedback */ contact_email?: string; /** * Where user feedback came from, such as a widget */ source?: string; /** * Whether the stacktrace has in-app frames, system frames or both */ in_app_frame_mix?: string; /** * Whether a crash report was dropped because the issue already stores the most allowed */ stripped_crash?: boolean; /** * SDK of the issue's first event */ sdk?: { /** * Name of the SDK, or unknown */ name: string; /** * Name of the SDK, normalized for grouping */ name_normalized: string; }; /** * Severity score of the issue's first event */ severity?: number; /** * Why the severity score is what it is */ severity_reason?: string; /** * Priority the issue was created with */ initial_priority?: number; }; /** * Number of comments on the issue */ numComments: number; /** * User or team the issue is assigned to */ assignedTo: { /** * Whether the actor is a user or a team */ type: 'user' | 'team'; /** * ID of the user or team */ id: string; /** * Display name of the user, or slug of the team */ name: string; /** * Email address of the user. Only set for users */ email?: string; } | null; /** * Whether the requesting user bookmarked the issue */ isBookmarked: boolean; /** * Whether the requesting user is subscribed to the issue */ isSubscribed: boolean; /** * Why the requesting user is subscribed to the issue */ subscriptionDetails: { /** * Whether the requesting user turned off notifications for the issue */ disabled?: boolean; /** * Why the requesting user is subscribed: commented, assigned, bookmarked, changed_status, mentioned or unknown */ reason?: string; } | null; /** * Whether the requesting user has seen the issue since it last occurred */ hasSeen: boolean; /** * External issues linked to the issue */ annotations: Array<{ /** * Display name of the linked external issue */ displayName: string; /** * URL of the linked external issue */ url: string; }>; }; export type GroupValidator = { /** * If true, marks the issue as reviewed by the requestor. */ inbox?: boolean; /** * The new status for the issues. * * * `resolved` * * `unresolved` * * `ignored` * * `resolvedInNextRelease` * * `muted` */ status?: 'resolved' | 'unresolved' | 'ignored' | 'resolvedInNextRelease' | 'muted'; /** * Additional details about the resolution. Status detail updates that include release data are only allowed for issues within a single project. */ statusDetails?: { /** * If true, marks the issue as resolved in the next release. */ inNextRelease?: boolean; /** * The version of the release that the issue should be resolved in.If set to `latest`, the latest release will be used. */ inRelease?: string; /** * The commit data that the issue should use for resolution. */ inCommit?: { /** * The SHA of the resolving commit. */ commit: string; /** * The name of the repository (as it appears in Sentry). */ repository: string; }; /** * Ignore the issue until for this many minutes. */ ignoreDuration?: number; /** * Ignore the issue until it has occurred this many times in `ignoreWindow` minutes. */ ignoreCount?: number; /** * Ignore the issue until it has occurred `ignoreCount` times in this many minutes. (Max: 1 week) */ ignoreWindow?: number; /** * Ignore the issue until it has affected this many users in `ignoreUserWindow` minutes. */ ignoreUserCount?: number; /** * Ignore the issue until it has affected `ignoreUserCount` users in this many minutes. (Max: 1 week) */ ignoreUserWindow?: number; }; /** * The new substatus of the issue. * * * `archived_until_escalating` * * `archived_until_condition_met` * * `archived_forever` * * `escalating` * * `ongoing` * * `regressed` * * `new` */ substatus?: 'archived_until_escalating' | 'archived_until_condition_met' | 'archived_forever' | 'escalating' | 'ongoing' | 'regressed' | 'new' | null; /** * If true, marks the issue as seen by the requestor. */ hasSeen?: boolean; /** * If true, bookmarks the issue for the requestor. */ isBookmarked?: boolean; /** * If true, publishes the issue. */ isPublic?: boolean; /** * If true, subscribes the requestor to the issue. */ isSubscribed?: boolean; /** * If true, merges the issues together. */ merge?: boolean; /** * If true, discards the issues instead of updating them. */ discard?: boolean; /** * The user or team that should be assigned to the issues. Values take the form of ``, `user:`, ``, ``, or `team:`. */ assignedTo?: string; /** * The priority that should be set for the issues * * * `low` * * `medium` * * `high` */ priority?: 'low' | 'medium' | 'high'; /** * Ignore the issue for this many minutes. */ ignoreDuration?: number; /** * Ignore the issue until it is seen this many more times. */ ignoreCount?: number; /** * Window in minutes over which `ignoreCount` is measured. Maximum is 7 days. */ ignoreWindow?: number; /** * Ignore the issue until it affects this many more users. */ ignoreUserCount?: number; /** * Window in minutes over which `ignoreUserCount` is measured. Maximum is 7 days. */ ignoreUserWindow?: number; /** * Snooze the issue for this many minutes. */ snoozeDuration?: number | null; }; export type InCommitValidator = { /** * The SHA of the resolving commit. */ commit: string; /** * The name of the repository (as it appears in Sentry). */ repository: string; }; export type InstallInfoResponse = { /** * ID of the build */ buildId: string; /** * State of the build */ state: 'UPLOADING' | 'UPLOADED' | 'PROCESSED' | 'FAILED'; /** * App details of the build */ appInfo: { /** * App identifier of the build */ appId: string | null; /** * App name */ name: string | null; /** * Version of the build */ version: string | null; /** * Build number */ buildNumber: number | null; /** * Type of the build file */ artifactType: 'XCARCHIVE' | 'AAB' | 'APK' | null; /** * When the build was uploaded (ISO 8601) */ dateAdded: string | null; /** * When the build was built (ISO 8601) */ dateBuilt: string | null; }; /** * Version control details of the build. Null when the build has none */ gitInfo: { /** * Commit SHA of the build */ headSha: string | null; /** * Commit SHA of the base the build is compared against */ baseSha: string | null; /** * Version control provider, such as github */ provider: string | null; /** * Repository name of the head commit */ headRepoName: string | null; /** * Repository name of the base commit */ baseRepoName: string | null; /** * Branch or ref of the head commit */ headRef: string | null; /** * Branch or ref of the base commit */ baseRef: string | null; /** * Pull request number */ prNumber: number | null; } | null; /** * Platform of the build, in uppercase */ platform: string | null; /** * ID of the project the build belongs to */ projectId: string; /** * Slug of the project the build belongs to */ projectSlug: string; /** * Name of the build configuration, such as Release */ buildConfiguration: string | null; /** * Whether the build can be installed */ isInstallable: boolean; /** * URL to install the build. Null when the build isn't installable */ installUrl: string | null; /** * When installUrl expires (ISO 8601) */ installUrlExpiresAt: string | null; /** * Number of times the build was downloaded */ downloadCount: number; /** * Release notes uploaded with the build */ releaseNotes: string | null; /** * Install groups the build belongs to */ installGroups: Array | null; /** * Whether the build's code signature is valid. Only set for Apple builds */ isCodeSignatureValid: boolean | null; /** * Name of the provisioning profile. Only set for Apple builds */ profileName: string | null; /** * Code signing type, such as development or app-store. Only set for Apple builds */ codesigningType: string | null; }; export type IntegrationChannelValidationResponse = { /** * Why the channel couldn't be validated, such as an unsupported provider */ detail?: string; /** * Whether the channel exists in the integration's workspace */ valid: boolean; }; export type IntegrationChannelsResponse = { /** * Why the channels couldn't be listed, such as an unsupported provider */ warning?: string; /** * Channels of the integration's workspace */ results: Array<{ /** * ID of the channel in the provider */ id: string; /** * Name of the channel */ name: string; /** * Name to show for the channel, such as #general */ display: string; /** * Type of the channel in the provider, such as public, private or text */ type: string; }>; }; export type IntegrationIssueConfigResponse = { /** * ID of the integration */ id: string; /** * Name of the integration, usually the connected account or workspace */ name: string; /** * URL of the connected account's icon */ icon: string | null; /** * Domain of the connected account, such as github.com/example-org */ domainName: string | null; /** * Type of the connected account, such as Organization or User */ accountType: string | null; /** * Permission scopes granted to the integration */ scopes: Array | null; /** * Whether the installation lacks permissions the latest version of the integration needs. Null for providers without a permissions model */ outOfDate: boolean | null; /** * Features the installation can't support because of missing permissions. Null for providers without a permissions model */ missingFeatures: Array<{ /** * Key of the missing feature */ key: string; /** * Description of the missing feature */ description: string; }> | null; /** * Status of the integration */ status: 'active' | 'disabled' | 'pending_deletion' | 'deletion_in_progress'; /** * Integration provider details */ provider: { /** * Key of the integration provider, such as github */ key: string; /** * Slug of the integration provider, same as key */ slug: string; /** * Display name of the integration provider */ name: string; /** * Whether the integration can be installed from Sentry */ canAdd: boolean; /** * Whether the integration must be uninstalled from the provider instead of in Sentry */ canDisable: boolean; /** * Features the integration provider supports, such as issue-basic or commits */ features: Array; /** * Extra provider details shown during setup, such as alerts and configuration instructions */ aspects: { /** * Alerts shown during setup */ alerts?: Array<{ /** * Style of the alert, such as warning */ type: string; /** * Icon shown with the alert, such as icon-warning-sm */ icon: string; /** * Text of the alert, in Markdown */ text: string; }>; /** * Configuration step after install */ configure_integration?: { /** * Title of the configuration step */ title: string; }; /** * Whether the integration is enabled without an install flow */ directEnable?: boolean; /** * Dialog shown before the integration is disabled */ disable_dialog?: { /** * Label of the dialog's confirm button */ actionText: string; /** * Text of the dialog */ body: string; }; /** * Where to install the integration when it's installed outside Sentry */ externalInstall?: { /** * URL to install the integration from, such as a marketplace */ url: string; /** * Label of the install button */ buttonText: string; /** * Notice shown before the user leaves Sentry */ noticeText: string; }; /** * Dialog shown before the integration is removed */ removal_dialog?: { /** * Label of the dialog's confirm button */ actionText: string; /** * Text of the dialog */ body: string; }; }; }; /** * Form fields for linking an existing external issue. Only set when action is link */ linkIssueConfig?: Array<{ /** * Name of the form field */ name: string; /** * Label of the form field */ label: string; /** * Type of the form field, such as string, text, select or boolean */ type: string; /** * Default value of the field */ default?: string | number | boolean | Array | null; /** * Default value of the field, for integrations that use this key */ defaultValue?: string | number | boolean | Array | null; /** * Whether the field is required */ required?: boolean; /** * Options of a select field, as [value, label] pairs */ choices?: Array>; /** * URL that returns the field's options as the user types */ url?: string; /** * Whether changing the field reloads the form */ updatesForm?: boolean; /** * Whether the field accepts more than one value */ multiple?: boolean; /** * Whether a text field grows with its content */ autosize?: boolean; /** * Maximum number of rows of a text field */ maxRows?: number; /** * Maximum length of the value */ maxLength?: number; /** * Help text of the field */ help?: string; /** * Placeholder of the field */ placeholder?: string; /** * Whether the field's options load before the user types */ prefetch?: boolean; /** * Names of the fields whose values the field's options depend on */ dependsOn?: Array; }>; /** * Form fields for creating an external issue. Only set when action is create */ createIssueConfig?: Array<{ /** * Name of the form field */ name: string; /** * Label of the form field */ label: string; /** * Type of the form field, such as string, text, select or boolean */ type: string; /** * Default value of the field */ default?: string | number | boolean | Array | null; /** * Default value of the field, for integrations that use this key */ defaultValue?: string | number | boolean | Array | null; /** * Whether the field is required */ required?: boolean; /** * Options of a select field, as [value, label] pairs */ choices?: Array>; /** * URL that returns the field's options as the user types */ url?: string; /** * Whether changing the field reloads the form */ updatesForm?: boolean; /** * Whether the field accepts more than one value */ multiple?: boolean; /** * Whether a text field grows with its content */ autosize?: boolean; /** * Maximum number of rows of a text field */ maxRows?: number; /** * Maximum length of the value */ maxLength?: number; /** * Help text of the field */ help?: string; /** * Placeholder of the field */ placeholder?: string; /** * Whether the field's options load before the user types */ prefetch?: boolean; /** * Names of the fields whose values the field's options depend on */ dependsOn?: Array; }>; }; export type IntegrationRepositoriesResponse = { /** * Repositories the integration can access */ repos: Array<{ /** * Name of the repository */ name: string; /** * Identifier of the repository in the provider, such as owner/name */ identifier: string; /** * Whether the repository is already added to Sentry */ isInstalled: boolean; /** * Default branch of the repository */ defaultBranch: string | null; /** * ID of the repository in the provider */ externalId: string; /** * URL of the repository */ url: string | null; }>; /** * Whether the provider supports searching repositories with the search query parameter */ searchable?: boolean; }; export type IssueEventDetailsResponse = { /** * ID of the event */ id: string; /** * ID of the issue the event belongs to */ groupID: string | null; /** * ID of the event */ eventID: string; /** * ID of the project the event belongs to */ projectID: string; /** * Event message */ message: string | null; /** * Event title */ title: string; /** * Source location of the event, such as a file and line */ location: string | null; /** * Platform of the event, such as python or javascript */ platform: string | null; /** * When Sentry received the event (ISO 8601) */ dateReceived: string | null; /** * Size of the event payload in bytes */ size: number | null; /** * Event interfaces, such as exception, breadcrumbs and request, each with a type and data */ entries: Array; /** * Distribution of the release the event was sent with */ dist: string | null; /** * Modules loaded when the event occurred, keyed by module name with their versions */ packages: { [key: string]: string | null; }; /** * Event type, such as error, default or transaction */ type: 'default' | 'error' | 'csp' | 'nel' | 'hpkp' | 'expectct' | 'expectstaple' | 'transaction' | 'generic' | 'feedback'; /** * Event metadata */ metadata: { /** * Title of default and issue platform events */ title?: string; /** * Exception value, or the subtitle of an issue */ value?: string; /** * Exception type of error events */ type?: string; /** * Whether the SDK fabricated the exception to carry a stacktrace, so its type is a platform label rather than what went wrong */ synthetic?: boolean; /** * File of the frame where the error happened */ filename?: string; /** * Function of the frame where the error happened */ function?: string; /** * Message of default, security and feedback events */ message?: string; /** * URI that a CSP report blocked */ uri?: string; /** * CSP directive that was violated */ directive?: string; /** * Host name of HPKP, Expect-CT and Expect-Staple reports */ origin?: string; /** * Name of the person who sent user feedback */ name?: string; /** * Email of the person who sent user feedback */ contact_email?: string; /** * Where user feedback came from, such as a widget */ source?: string; /** * Whether the stacktrace has in-app frames, system frames or both */ in_app_frame_mix?: string; /** * Whether a crash report was dropped because the issue already stores the most allowed */ stripped_crash?: boolean; /** * SDK of the issue's first event */ sdk?: { /** * Name of the SDK, or unknown */ name: string; /** * Name of the SDK, normalized for grouping */ name_normalized: string; }; /** * Severity score of the issue's first event */ severity?: number; /** * Why the severity score is what it is */ severity_reason?: string; /** * Priority the issue was created with */ initial_priority?: number; }; /** * Issue occurrence data for events in non-error issues, such as performance issues. Null otherwise */ occurrence: { /** * ID of the occurrence */ id: string; /** * ID of the project */ projectId: number; /** * ID of the event the occurrence belongs to */ eventId: string; /** * Fingerprint that groups the occurrence into an issue */ fingerprint: Array; /** * Title of the issue */ issueTitle: string; /** * Subtitle of the issue */ subtitle: string; /** * ID of the resource the occurrence is about, such as a monitor. Null when not set */ resourceId: string | null; /** * Evidence to show on the issue */ evidenceDisplay: Array<{ /** * Name of the evidence */ name: string; /** * Value of the evidence */ value: string; /** * Whether to show the evidence first. At most one evidence of an occurrence is important */ important: boolean; }>; /** * When the problem was detected, as a Unix timestamp in seconds */ detectionTime: number; /** * Level of the occurrence, such as error or warning */ level: string | null; /** * Culprit of the occurrence */ culprit: string | null; /** * Actor the issue is assigned to, such as user:1 or team:1 */ assignee: string | null; /** * Initial priority of the issue: 25 low, 50 medium or 75 high */ priority: number | null; /** * Group type ID of metric issues, always 8001 */ type: 8001; /** * Detector and query that created the occurrence */ evidenceData: { /** * ID of the detector that created the occurrence */ detectorId: number; /** * ID of the metric alert rule the detector replaces. Null when there's none */ alertId: number | null; /** * Metric value that triggered the detector, or the anomaly detection result for dynamic detectors */ value: number | { /** * Metric value the anomaly detection model scored */ value: number; /** * ID of the data source that produced the value */ sourceId: string; /** * ID of the query subscription that produced the value */ subscriptionId: string; /** * When the value was measured */ timestamp: string; } | null; /** * ID of the query subscription that sent the data */ dataPacketSourceId: string; /** * Conditions of the detector */ conditions: Array<{ /** * ID of the detector condition */ id: number; /** * Type of the condition, such as gt, lt or anomaly_detection */ type: string; /** * Threshold the value is compared with, or the anomaly detection settings for an anomaly_detection condition */ comparison: number | { /** * How sensitive the anomaly detection is */ sensitivity: 'low' | 'medium' | 'high'; /** * Seasonality the anomaly detection model uses */ seasonality: 'auto' | 'hourly' | 'daily' | 'weekly' | 'hourly_daily' | 'hourly_weekly' | 'hourly_daily_weekly' | 'daily_weekly'; /** * Direction of anomalies to detect: 0 above, 1 below, 2 above and below */ thresholdType: 0 | 1 | 2; }; /** * Priority the detector reports when the condition matches: 0 ok, 25 low, 50 medium or 75 high */ conditionResult: number; }>; /** * Configuration of the detector */ config: { /** * How the detector evaluates the metric: static thresholds, percent change or dynamic anomaly detection */ detectionType: 'static' | 'percent' | 'dynamic'; /** * Time window in seconds that a percent change detector compares with */ comparisonDelta?: number | null; }; /** * Data sources of the detector */ dataSources: Array<{ /** * ID of the data source */ id: string; /** * ID of the organization */ organizationId: string; /** * Type of the data source, such as snuba_query_subscription */ type: string; /** * ID of the source object, such as the query subscription */ sourceId: string; /** * Query subscription the data source reads */ queryObj: { /** * ID of the query subscription */ id: string; /** * Status of the subscription: 0 active, 1 creating, 2 updating, 3 deleting or 4 disabled */ status: number; /** * ID of the subscription in Snuba. Null while it's being created */ subscription: string | null; /** * Query the subscription runs */ snubaQuery: { /** * ID of the query */ id: string; /** * Dataset the query runs on, such as events or events_analytics_platform */ dataset: string; /** * Search query that filters the data */ query: string; /** * Aggregate function the query computes, such as count() */ aggregate: string; /** * Time window of the query in seconds */ timeWindow: number; /** * Environment the query is limited to. Null for all environments */ environment: string | null; /** * Event types the query includes, such as error or transaction */ eventTypes: Array; /** * How sampled data is extrapolated, unknown, none, client_and_server_weighted or server_weighted. Null when not set */ extrapolationMode: string | null; }; }; }>; }; } | { /** * ID of the occurrence */ id: string; /** * ID of the project */ projectId: number; /** * ID of the event the occurrence belongs to */ eventId: string; /** * Fingerprint that groups the occurrence into an issue */ fingerprint: Array; /** * Title of the issue */ issueTitle: string; /** * Subtitle of the issue */ subtitle: string; /** * ID of the resource the occurrence is about, such as a monitor. Null when not set */ resourceId: string | null; /** * Evidence to show on the issue */ evidenceDisplay: Array<{ /** * Name of the evidence */ name: string; /** * Value of the evidence */ value: string; /** * Whether to show the evidence first. At most one evidence of an occurrence is important */ important: boolean; }>; /** * When the problem was detected, as a Unix timestamp in seconds */ detectionTime: number; /** * Level of the occurrence, such as error or warning */ level: string | null; /** * Culprit of the occurrence */ culprit: string | null; /** * Actor the issue is assigned to, such as user:1 or team:1 */ assignee: string | null; /** * Initial priority of the issue: 25 low, 50 medium or 75 high */ priority: number | null; /** * Group type ID of the occurrence */ type: number; /** * Data of the occurrence. Its keys depend on the group type */ evidenceData: { [key: string]: unknown; }; } | null; /** * Metadata about changes Sentry made to the event's fields, such as data scrubbing or trimming */ _meta: { [key: string]: unknown; }; /** * User context of the event */ user: { /** * ID the SDK sent for the user */ id?: string | null; /** * Email address of the user */ email?: string | null; /** * Username of the user */ username?: string | null; /** * IP address of the user */ ip_address?: string | null; /** * Name of the user */ name?: string | null; /** * Location of the user, with keys such as country_code, city and region */ geo?: { [key: string]: string; } | null; /** * Extra data the SDK sent about the user */ data?: { [key: string]: unknown; } | null; } | null; /** * Tags attached to the event */ tags: Array<{ /** * Search query that matches this tag's user, such as user.email:"user@example.com". Only set for user tags */ query?: string; /** * Tag key */ key: string; /** * Tag value */ value: string; }>; /** * Contexts of the event, such as device, os, browser and runtime, keyed by alias */ contexts: { [key: string]: { /** * Internal build ID as it appears on the platform. */ app_build?: string | null; /** * Version-independent application identifier, often a dotted bundle ID. */ app_identifier?: string | null; /** * Amount of memory used by the application in bytes. */ app_memory?: number | string | null; /** * Application name as it appears on the platform. */ app_name?: string | null; /** * Start time of the app. * * Formatted UTC timestamp when the user started the application. */ app_start_time?: string | null; /** * Application version as it appears on the platform. */ app_version?: string | null; /** * String identifying the kind of build. For example, `testflight`. */ build_type?: string | null; /** * Application-specific device identifier. */ device_app_hash?: string | null; /** * A flag indicating whether the app is in foreground or not. An app is in foreground when it's visible to the user. */ in_foreground?: boolean | null; /** * The names of the currently visible views. */ view_names?: Array | null; /** * Type of the context */ type: 'app'; [key: string]: unknown; } | { /** * Display name of the browser application. */ name?: string | null; /** * Version string of the browser. */ version?: string | null; /** * Type of the context */ type: 'browser'; [key: string]: unknown; } | { /** * Type of the context */ type: 'default'; [key: string]: unknown; } | { /** * Native cpu architecture of the device. */ arch?: string | null; /** * Current battery level in %. * * If the device has a battery, this can be a floating point value defining the battery level * (in the range 0-100). */ battery_level?: number | string | null; /** * Status of the device's battery. * * For example, `Unknown`, `Charging`, `Discharging`, `NotCharging`, `Full`. */ battery_status?: string | null; /** * Indicator when the device was booted. */ boot_time?: string | null; /** * Brand of the device. */ brand?: string | null; /** * Whether the device was charging or not. */ charging?: boolean | null; /** * CPU description. * * For example, Intel(R) Core(TM)2 Quad CPU Q6600 @ 2.40GHz. */ cpu_description?: string | null; /** * Kind of device the application is running on. * * For example, `Unknown`, `Handheld`, `Console`, `Desktop`. */ device_type?: string | null; /** * Unique device identifier. */ device_unique_identifier?: string | null; /** * Free size of the attached external storage in bytes (eg: android SDK card). */ external_free_storage?: number | string | null; /** * Total size of the attached external storage in bytes (eg: android SDK card). */ external_storage_size?: number | string | null; /** * Family of the device model. * * This is usually the common part of model names across generations. For instance, `iPhone` * would be a reasonable family, so would be `Samsung Galaxy`. */ family?: string | null; /** * How much memory is still available in bytes. */ free_memory?: number | string | null; /** * How much storage is free in bytes. */ free_storage?: number | string | null; /** * ISO 639-1 code of the locale the device is set to. */ locale?: string | null; /** * Whether the device was low on memory. */ low_memory?: boolean | null; /** * Manufacturer of the device. */ manufacturer?: string | null; /** * Total memory available in bytes. */ memory_size?: number | string | null; /** * Device model. * * This, for example, can be `Samsung Galaxy S3`. */ model?: string | null; /** * Device model (internal identifier). * * An internal hardware revision to identify the device exactly. */ model_id?: string | null; /** * Name of the device. */ name?: string | null; /** * Whether the device was online or not. */ online?: boolean | null; /** * Current screen orientation. * * This can be a string `portrait` or `landscape` to define the orientation of a device. */ orientation?: string | null; /** * Number of "logical processors". * * For example, 8. */ processor_count?: number | string | null; /** * Processor frequency in MHz. * * Note that the actual CPU frequency might vary depending on current load and * power conditions, especially on low-powered devices like phones and laptops. */ processor_frequency?: number | string | null; /** * Device screen density. */ screen_density?: number | string | null; /** * Screen density as dots-per-inch. */ screen_dpi?: number | string | null; /** * Height of the screen in pixels. */ screen_height_pixels?: number | string | null; /** * Device screen resolution. * * (e.g.: 800x600, 3040x1444) */ screen_resolution?: string | null; /** * Width of the screen in pixels. */ screen_width_pixels?: number | string | null; /** * Simulator/prod indicator. */ simulator?: boolean | null; /** * Total storage size of the device in bytes. */ storage_size?: number | string | null; /** * Whether the accelerometer is available on the device. */ supports_accelerometer?: boolean | null; /** * Whether audio is available on the device. */ supports_audio?: boolean | null; /** * Whether the gyroscope is available on the device. */ supports_gyroscope?: boolean | null; /** * Whether location support is available on the device. */ supports_location_service?: boolean | null; /** * Whether vibration is available on the device. */ supports_vibration?: boolean | null; /** * Timezone of the device. */ timezone?: string | null; /** * How much memory is usable for the app in bytes. */ usable_memory?: number | string | null; /** * UUID of the device. */ uuid?: string | null; /** * Type of the context */ type: 'device'; [key: string]: unknown; } | { /** * The device low-level API type. * * Examples: `"Apple Metal"` or `"Direct3D11"` */ api_type?: string | null; /** * Approximate "shader capability" level of the graphics device. * * For Example: Shader Model 2.0, OpenGL ES 3.0, Metal / OpenGL ES 3.1, 27 (unknown) */ graphics_shader_level?: string | null; /** * The PCI identifier of the graphics device. */ id?: number | string; /** * Largest size of a texture that is supported by the graphics hardware. * * For Example: 16384 */ max_texture_size?: number | string | null; /** * The total GPU memory available in Megabytes. */ memory_size?: number | string | null; /** * Whether the GPU has multi-threaded rendering or not. */ multi_threaded_rendering?: boolean | null; /** * The name of the graphics device. */ name?: string | null; /** * The Non-Power-Of-Two support. */ npot_support?: string | null; /** * Whether compute shaders are available on the device. */ supports_compute_shaders?: boolean | null; /** * Whether GPU draw call instancing is supported. */ supports_draw_call_instancing?: boolean | null; /** * Whether geometry shaders are available on the device. */ supports_geometry_shaders?: boolean | null; /** * Whether ray tracing is available on the device. */ supports_ray_tracing?: boolean | null; /** * The PCI vendor identifier of the graphics device. */ vendor_id?: string | null; /** * The vendor name as reported by the graphics device. */ vendor_name?: string | null; /** * The Version of the graphics device. */ version?: string | null; /** * Type of the context */ type: 'gpu'; [key: string]: unknown; } | { /** * Type of the context */ type: 'monitor'; [key: string]: unknown; } | { /** * Internal build number of the operating system. */ build?: string | null; /** * Current kernel version. * * This is typically the entire output of the `uname` syscall. */ kernel_version?: string | null; /** * Name of the operating system. */ name?: string | null; /** * Unprocessed operating system info. * * An unprocessed description string obtained by the operating system. For some well-known * runtimes, Sentry will attempt to parse `name` and `version` from this string, if they are * not explicitly given. */ raw_description?: string | null; /** * Indicator if the OS is rooted (mobile mostly). */ rooted?: boolean | null; /** * Version of the operating system. */ version?: string | null; /** * Type of the context */ type: 'os'; [key: string]: unknown; } | { /** * Attributes of the OpenTelemetry span that maps to a Sentry event. * * */ attributes?: { [key: string]: string | boolean | number | number | Array; } | null; /** * Information about an OpenTelemetry resource. * * */ resource?: { [key: string]: string | boolean | number | number | Array; } | null; /** * Type of the context */ type: 'otel'; [key: string]: unknown; } | { /** * Application build string, if it is separate from the version. */ build?: string | null; /** * Runtime name. */ name?: string | null; /** * Unprocessed runtime info. * * An unprocessed description string obtained by the runtime. For some well-known runtimes, * Sentry will attempt to parse `name` and `version` from this string, if they are not * explicitly given. */ raw_description?: string | null; /** * Runtime version string. */ version?: string | null; /** * Type of the context */ type: 'runtime'; [key: string]: unknown; } | { /** * The client-side sample rate as reported in the envelope's `trace.sample_rate` header. * * The server takes this field from envelope headers and writes it back into the event. Clients * should not ever send this value. */ client_sample_rate?: number | string | null; /** * The amount of time in milliseconds spent in this transaction span, * excluding its immediate child spans. */ exclusive_time?: number | string | null; /** * Span type (see `OperationType` docs). */ op?: string | null; /** * The origin of the trace indicates what created the trace (see [OriginType] docs). */ origin?: string | null; /** * The ID of the span enclosing this span. */ parent_span_id?: string | null; /** * Track whether the trace connected to this event has been sampled entirely. * * This flag only applies to events with [`Error`] type that have an associated dynamic sampling context. */ sampled?: boolean | null; /** * The ID of the span. */ span_id?: string | null; /** * Whether the trace failed or succeeded. Currently only used to indicate status of individual * transactions. */ status?: 'ok' | 'cancelled' | 'unknown' | 'invalid_argument' | 'deadline_exceeded' | 'not_found' | 'already_exists' | 'permission_denied' | 'resource_exhausted' | 'failed_precondition' | 'aborted' | 'out_of_range' | 'unimplemented' | 'internal_error' | 'unavailable' | 'data_loss' | 'unauthenticated' | null; /** * The trace ID. */ trace_id?: string | null; /** * Type of the context */ type: 'trace'; [key: string]: unknown; } | { /** * Type of the context */ type: 'unity'; [key: string]: unknown; }; } | null; /** * SDK that sent the event */ sdk: { /** * Name of the SDK that sent the event, such as sentry.python */ name: string | null; /** * Version of the SDK */ version: string | null; } | null; /** * Additional data sent with the event in its extra field */ context: { [key: string]: unknown; } | null; /** * Errors Sentry found while processing the event */ errors: Array<{ /** * Type of the processing error, such as invalid_data or js_no_source */ type: string; /** * Human-readable message of the error */ message: string; /** * Details of the error, such as the name of the invalid field. Other keys depend on the error type */ data: { /** * Affected key or path in the event */ name?: string | null; /** * Details of the error from the processor that hit it */ message?: string; /** * URL that couldn't be fetched, such as a source file */ url?: string; /** * Path of the debug image the error is about */ image_path?: string; /** * Name of the debug image the error is about */ image_name?: string; /** * Debug ID of the image the error is about */ image_uuid?: string; /** * CPU architecture of the image the error is about */ image_arch?: string; /** * Error type Symbolicator reported, such as missing_source */ symbolicator_type?: string; /** * Source file or URL the error is about */ source?: string; /** * Source map the error is about */ sourcemap?: string; /** * Line of the location that couldn't be mapped */ row?: number; /** * Column of the location that couldn't be mapped */ column?: number; /** * Time the SDK reported, for clock drift errors */ sdk_time?: string; /** * Time the server received the event, for clock drift errors */ server_time?: string; }; }>; /** * Crash report attachment of the event, if any */ crashFile?: string | null; /** * Function or module that caused the event */ culprit?: string | null; /** * When the event occurred (ISO 8601) */ dateCreated?: string; /** * Grouping hashes calculated for the event */ fingerprints?: Array; /** * Grouping configuration used to group the event */ groupingConfig?: { /** * ID of the grouping config, such as newstyle:2026-01-20 */ id: string; /** * Stack trace rules of the project, as an encoded string */ enhancements: string; }; /** * When the transaction started, as a Unix timestamp in seconds */ startTimestamp?: number; /** * When the transaction ended, as a Unix timestamp in seconds */ endTimestamp?: number; /** * Measurements recorded for the transaction, such as web vitals, keyed by name */ measurements?: { [key: string]: { /** * Measurement value */ value: number; /** * Unit of the measurement, such as millisecond */ unit?: string | null; }; } | null; /** * Span operation breakdowns for the transaction, keyed by breakdown name */ breakdowns?: { [key: string]: { [key: string]: { /** * Measurement value */ value: number; /** * Unit of the measurement, such as millisecond */ unit?: string | null; }; }; } | null; /** * Release the event was sent with. Null when the event has no release */ release: { /** * Release ID */ id?: number; /** * Number of commits in the release */ commitCount?: number; /** * Extra data stored on the release */ data?: { [key: string]: unknown; }; /** * When the release was created (ISO 8601) */ dateCreated?: string; /** * When the release went live (ISO 8601) */ dateReleased?: string | null; /** * Number of deploys of the release */ deployCount?: number; /** * Version control reference, such as a commit SHA or tag */ ref?: string | null; /** * Most recent commit in the release */ lastCommit?: { /** * Commit SHA */ id: string; /** * Commit message */ message: string | null; /** * When the commit was made (ISO 8601) */ dateCreated: string; /** * Pull request the commit belongs to */ pullRequest: { /** * Number or key of the pull request in the provider */ id: string; /** * Title of the pull request */ title: string | null; /** * Description of the pull request */ message: string | null; /** * When Sentry recorded the pull request (ISO 8601) */ dateCreated: string; /** * When the pull request was merged (ISO 8601). Null when it isn't merged */ mergedAt: string | null; /** * State of the pull request: merged, open, closed, draft or unknown. Null when not known */ status: 'merged' | 'open' | 'closed' | 'draft' | 'unknown' | null; /** * Repository of the pull request */ repository: { /** * URL of the repository */ url?: string | null; /** * Provider of the repository, with its id and name */ provider?: { [key: string]: string; }; /** * Status of the repository */ status?: 'active' | 'disabled' | 'pending_deletion' | 'deletion_in_progress'; /** * ID of the repository's integration. Null for repositories added without an integration */ integrationId?: string | null; /** * Identifier of the repository in the provider, such as owner/name */ externalSlug?: string | null; /** * ID of the repository in the provider */ externalId?: string | null; /** * Settings of the repository. Only set when expand includes settings. Null when it has none */ settings?: { /** * Whether AI code review is on for the repository */ enabledCodeReview: boolean; /** * Pull request events that start a code review: on_new_commit or on_ready_for_review */ codeReviewTriggers: Array; } | null; /** * ID of the repository */ id: string; /** * Name of the repository, such as owner/name */ name: string; /** * When the repository was added to Sentry (ISO 8601) */ dateCreated: string; }; /** * Author of the pull request, or an empty object when it has none */ author: { /** * SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access */ identities?: Array<{ /** * SSO identity ID */ id: string; /** * User's identifier at the auth provider */ name: string; /** * Organization the auth provider belongs to */ organization: { /** * Organization slug */ slug: string; /** * Organization name */ name: string; }; /** * Auth provider of the identity */ provider: { /** * Auth provider key, such as google or saml2 */ id: string; /** * Display name of the auth provider */ name: string; }; /** * When the identity was last verified by signing in through the auth provider */ dateVerified: string; /** * When the identity was last synced from the auth provider */ dateSynced: string; }>; /** * User avatar */ avatar?: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Two-factor authenticators of the user, without backup methods such as recovery codes */ authenticators?: Array<{ /** * Authenticator ID */ id: string; /** * Authenticator type, such as totp, sms, u2f or recovery */ type: string; /** * Display name of the authenticator type */ name: string; /** * When the authenticator was added */ dateCreated: string; /** * When the authenticator was last used, or null */ dateUsed: string | null; }>; /** * Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization */ canReset2fa?: boolean; /** * User ID */ id: string; /** * Display name: the user's name, or their email or username if no name is set */ name: string; /** * Username */ username: string; /** * Primary email address */ email: string; /** * Gravatar URL for the primary email address */ avatarUrl: string; /** * Whether the account is active */ isActive: boolean; /** * Whether the account is suspended. Suspended users can't sign in */ isSuspended: boolean; /** * Whether the user has a password set */ hasPasswordAuth: boolean; /** * Whether the account is managed, which stops the user from changing their username, password and similar details */ isManaged: boolean; /** * When the account was created */ dateJoined: string; /** * When the user last signed in, or null */ lastLogin: string | null; /** * Whether the user has two-factor authentication enabled */ has2fa: boolean; /** * When the user was last active, or null */ lastActive: string | null; /** * Whether the user is a superuser */ isSuperuser: boolean; /** * Whether the user has staff status */ isStaff: boolean; /** * Deprecated. Always an empty object */ experiments: { [key: string]: string; }; /** * Email addresses of the user. Only included for the requesting user or superusers; empty otherwise */ emails: Array<{ /** * Email ID */ id: string; /** * Email address */ email: string; /** * Whether the email address is verified */ is_verified: boolean; }>; } | { /** * Commit author name */ name: string | null; /** * Commit author email */ email: string; } | { [key: string]: unknown; }; /** * URL of the pull request in the provider, or null when the provider can't build one */ externalUrl: string | null; } | null; /** * How the commit was found as a suspect commit: via commit in release or via SCM integration. Empty for other commits */ suspectCommitType: string; /** * Repository the commit belongs to */ repository?: { /** * URL of the repository */ url?: string | null; /** * Provider of the repository, with its id and name */ provider?: { [key: string]: string; }; /** * Status of the repository */ status?: 'active' | 'disabled' | 'pending_deletion' | 'deletion_in_progress'; /** * ID of the repository's integration. Null for repositories added without an integration */ integrationId?: string | null; /** * Identifier of the repository in the provider, such as owner/name */ externalSlug?: string | null; /** * ID of the repository in the provider */ externalId?: string | null; /** * Settings of the repository. Only set when expand includes settings. Null when it has none */ settings?: { /** * Whether AI code review is on for the repository */ enabledCodeReview: boolean; /** * Pull request events that start a code review: on_new_commit or on_ready_for_review */ codeReviewTriggers: Array; } | null; /** * ID of the repository */ id: string; /** * Name of the repository, such as owner/name */ name: string; /** * When the repository was added to Sentry (ISO 8601) */ dateCreated: string; }; /** * Author of the commit: a Sentry user when the email matches one, otherwise the name and email from the commit */ author?: { /** * SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access */ identities?: Array<{ /** * SSO identity ID */ id: string; /** * User's identifier at the auth provider */ name: string; /** * Organization the auth provider belongs to */ organization: { /** * Organization slug */ slug: string; /** * Organization name */ name: string; }; /** * Auth provider of the identity */ provider: { /** * Auth provider key, such as google or saml2 */ id: string; /** * Display name of the auth provider */ name: string; }; /** * When the identity was last verified by signing in through the auth provider */ dateVerified: string; /** * When the identity was last synced from the auth provider */ dateSynced: string; }>; /** * User avatar */ avatar?: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Two-factor authenticators of the user, without backup methods such as recovery codes */ authenticators?: Array<{ /** * Authenticator ID */ id: string; /** * Authenticator type, such as totp, sms, u2f or recovery */ type: string; /** * Display name of the authenticator type */ name: string; /** * When the authenticator was added */ dateCreated: string; /** * When the authenticator was last used, or null */ dateUsed: string | null; }>; /** * Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization */ canReset2fa?: boolean; /** * User ID */ id: string; /** * Display name: the user's name, or their email or username if no name is set */ name: string; /** * Username */ username: string; /** * Primary email address */ email: string; /** * Gravatar URL for the primary email address */ avatarUrl: string; /** * Whether the account is active */ isActive: boolean; /** * Whether the account is suspended. Suspended users can't sign in */ isSuspended: boolean; /** * Whether the user has a password set */ hasPasswordAuth: boolean; /** * Whether the account is managed, which stops the user from changing their username, password and similar details */ isManaged: boolean; /** * When the account was created */ dateJoined: string; /** * When the user last signed in, or null */ lastLogin: string | null; /** * Whether the user has two-factor authentication enabled */ has2fa: boolean; /** * When the user was last active, or null */ lastActive: string | null; /** * Whether the user is a superuser */ isSuperuser: boolean; /** * Whether the user has staff status */ isStaff: boolean; /** * Deprecated. Always an empty object */ experiments: { [key: string]: string; }; /** * Email addresses of the user. Only included for the requesting user or superusers; empty otherwise */ emails: Array<{ /** * Email ID */ id: string; /** * Email address */ email: string; /** * Whether the email address is verified */ is_verified: boolean; }>; } | { /** * Commit author name */ name: string | null; /** * Commit author email */ email: string; } | { [key: string]: unknown; }; } | null; /** * Most recent deploy of the release */ lastDeploy?: { /** * When the deploy started (ISO 8601) */ dateStarted?: string | null; /** * URL of the deploy */ url?: string | null; /** * ID of the deploy */ id: string; /** * Environment the release was deployed to */ environment: string; /** * When the deploy finished (ISO 8601) */ dateFinished: string; /** * Name of the deploy */ name: string | null; } | null; /** * Release status */ status?: 'open' | 'archived'; /** * Release URL */ url?: string | null; /** * User agent of the client that created the release */ userAgent?: string | null; /** * Version of the release */ version?: string | null; /** * Parsed version information */ versionInfo?: { /** * Human-readable version, such as 1.0.0 (123) */ description?: string; /** * Package name parsed from the release version, such as com.example.app */ package: string | null; /** * Parsed version: the raw string, plus major, minor, patch, pre, buildCode and components when it's a semantic version */ version: { /** * Major version */ major?: number; /** * Minor version */ minor?: number; /** * Patch version */ patch?: number; /** * Pre-release identifier, such as rc1 */ pre?: string | null; /** * Build code, such as 123 */ buildCode?: string | null; /** * Number of version components given */ components?: number; /** * Version string the release was created with */ raw: string; }; /** * Build hash parsed from the release version */ buildHash: string | null; } | null; } | null; /** * User feedback submitted for the event. Null when there's none */ userReport: { /** * ID of the feedback */ id: string; /** * ID of the event the feedback is attached to */ eventID: string; /** * Name of the user who submitted the feedback. Falls back to the feedback's email address, then to the event user's name */ name: string | null; /** * Email address of the user who submitted the feedback. Falls back to the event user's email address */ email: string | null; /** * Comments the user submitted */ comments: string; /** * When the feedback was submitted (ISO 8601) */ dateCreated: string; /** * User recorded on the feedback's event. Null when the event isn't found or has no user */ user: { /** * ID of the user, as sent with the event */ id: string; /** * Username sent with the event */ username: string | null; /** * Email address sent with the event */ email: string | null; /** * Display name of the user: the name, email address or username sent with the event, whichever is set first */ name: string | null; /** * IP address sent with the event */ ipAddress: string | null; /** * Gravatar URL for the user's email address */ avatarUrl: string | null; } | null; /** * Event the feedback is attached to */ event: { /** * ID of the event the feedback is attached to */ id: string; /** * ID of the event the feedback is attached to */ eventID: string; }; } | null; /** * Suggested updates for the SDK that sent the event */ sdkUpdates: Array<{ /** * Kind of suggestion */ type: 'enableIntegration'; /** * Name of the SDK integration to enable */ integrationName: string; /** * Documentation URL of the integration */ integrationUrl: string; /** * Suggestions that become possible after this one is applied */ enables: Array<{ [key: string]: unknown; } | { /** * Kind of suggestion */ type: 'updateSdk'; /** * Name of the SDK to update */ sdkName: string; /** * SDK version to update to */ newSdkVersion: string | null; /** * Documentation URL of the SDK. Null when it isn't known */ sdkUrl: string | null; /** * Suggestions that become possible after this one is applied */ enables: Array<{ [key: string]: unknown; } | { [key: string]: unknown; } | { /** * Kind of suggestion */ type: 'changeSdk'; /** * Name of the SDK to switch to */ newSdkName: string; /** * Documentation URL of the SDK. Null when it isn't known */ sdkUrl: string | null; /** * Suggestions that become possible after this one is applied */ enables: Array<{ [key: string]: unknown; } | { [key: string]: unknown; } | { [key: string]: unknown; }>; }>; } | { /** * Kind of suggestion */ type: 'changeSdk'; /** * Name of the SDK to switch to */ newSdkName: string; /** * Documentation URL of the SDK. Null when it isn't known */ sdkUrl: string | null; /** * Suggestions that become possible after this one is applied */ enables: Array<{ [key: string]: unknown; } | { /** * Kind of suggestion */ type: 'updateSdk'; /** * Name of the SDK to update */ sdkName: string; /** * SDK version to update to */ newSdkVersion: string | null; /** * Documentation URL of the SDK. Null when it isn't known */ sdkUrl: string | null; /** * Suggestions that become possible after this one is applied */ enables: Array<{ [key: string]: unknown; } | { [key: string]: unknown; } | { [key: string]: unknown; }>; } | { [key: string]: unknown; }>; }>; } | { /** * Kind of suggestion */ type: 'updateSdk'; /** * Name of the SDK to update */ sdkName: string; /** * SDK version to update to */ newSdkVersion: string | null; /** * Documentation URL of the SDK. Null when it isn't known */ sdkUrl: string | null; /** * Suggestions that become possible after this one is applied */ enables: Array<{ /** * Kind of suggestion */ type: 'enableIntegration'; /** * Name of the SDK integration to enable */ integrationName: string; /** * Documentation URL of the integration */ integrationUrl: string; /** * Suggestions that become possible after this one is applied */ enables: Array<{ [key: string]: unknown; } | { [key: string]: unknown; } | { /** * Kind of suggestion */ type: 'changeSdk'; /** * Name of the SDK to switch to */ newSdkName: string; /** * Documentation URL of the SDK. Null when it isn't known */ sdkUrl: string | null; /** * Suggestions that become possible after this one is applied */ enables: Array<{ [key: string]: unknown; } | { [key: string]: unknown; } | { [key: string]: unknown; }>; }>; } | { [key: string]: unknown; } | { /** * Kind of suggestion */ type: 'changeSdk'; /** * Name of the SDK to switch to */ newSdkName: string; /** * Documentation URL of the SDK. Null when it isn't known */ sdkUrl: string | null; /** * Suggestions that become possible after this one is applied */ enables: Array<{ /** * Kind of suggestion */ type: 'enableIntegration'; /** * Name of the SDK integration to enable */ integrationName: string; /** * Documentation URL of the integration */ integrationUrl: string; /** * Suggestions that become possible after this one is applied */ enables: Array<{ [key: string]: unknown; } | { [key: string]: unknown; } | { [key: string]: unknown; }>; } | { [key: string]: unknown; } | { [key: string]: unknown; }>; }>; } | { /** * Kind of suggestion */ type: 'changeSdk'; /** * Name of the SDK to switch to */ newSdkName: string; /** * Documentation URL of the SDK. Null when it isn't known */ sdkUrl: string | null; /** * Suggestions that become possible after this one is applied */ enables: Array<{ /** * Kind of suggestion */ type: 'enableIntegration'; /** * Name of the SDK integration to enable */ integrationName: string; /** * Documentation URL of the integration */ integrationUrl: string; /** * Suggestions that become possible after this one is applied */ enables: Array<{ [key: string]: unknown; } | { /** * Kind of suggestion */ type: 'updateSdk'; /** * Name of the SDK to update */ sdkName: string; /** * SDK version to update to */ newSdkVersion: string | null; /** * Documentation URL of the SDK. Null when it isn't known */ sdkUrl: string | null; /** * Suggestions that become possible after this one is applied */ enables: Array<{ [key: string]: unknown; } | { [key: string]: unknown; } | { [key: string]: unknown; }>; } | { [key: string]: unknown; }>; } | { /** * Kind of suggestion */ type: 'updateSdk'; /** * Name of the SDK to update */ sdkName: string; /** * SDK version to update to */ newSdkVersion: string | null; /** * Documentation URL of the SDK. Null when it isn't known */ sdkUrl: string | null; /** * Suggestions that become possible after this one is applied */ enables: Array<{ /** * Kind of suggestion */ type: 'enableIntegration'; /** * Name of the SDK integration to enable */ integrationName: string; /** * Documentation URL of the integration */ integrationUrl: string; /** * Suggestions that become possible after this one is applied */ enables: Array<{ [key: string]: unknown; } | { [key: string]: unknown; } | { [key: string]: unknown; }>; } | { [key: string]: unknown; } | { [key: string]: unknown; }>; } | { [key: string]: unknown; }>; }>; /** * How the event's stack frames were resolved during processing, such as which source map lookup method was used */ resolvedWith: Array; /** * ID of the next event in the issue. Null for the latest event or when adjacentEvents is collapsed */ nextEventID: string | null; /** * ID of the previous event in the issue. Null for the first event or when adjacentEvents is collapsed */ previousEventID: string | null; /** * The ``formatted`` field the mixin adds to a response when ``?llmFormat`` is requested. * * ``content`` is text for the text formats and a serialized JSON object for ``json``, so the * response shape is the same whichever format a caller asks for. */ formatted?: { /** * Format of the content: markdown, xml or json */ format: 'markdown' | 'xml' | 'json'; /** * Response rendered in the requested format, as text */ content: string; }; }; export type IssueIntegrationsResponse = Array<{ /** * ID of the integration */ id: string; /** * Name of the integration, usually the connected account or workspace */ name: string; /** * URL of the connected account's icon */ icon: string | null; /** * Domain of the connected account, such as github.com/example-org */ domainName: string | null; /** * Type of the connected account, such as Organization or User */ accountType: string | null; /** * Permission scopes granted to the integration */ scopes: Array | null; /** * Whether the installation lacks permissions the latest version of the integration needs. Null for providers without a permissions model */ outOfDate: boolean | null; /** * Features the installation can't support because of missing permissions. Null for providers without a permissions model */ missingFeatures: Array<{ /** * Key of the missing feature */ key: string; /** * Description of the missing feature */ description: string; }> | null; /** * Status of the integration */ status: 'active' | 'disabled' | 'pending_deletion' | 'deletion_in_progress'; /** * Integration provider details */ provider: { /** * Key of the integration provider, such as github */ key: string; /** * Slug of the integration provider, same as key */ slug: string; /** * Display name of the integration provider */ name: string; /** * Whether the integration can be installed from Sentry */ canAdd: boolean; /** * Whether the integration must be uninstalled from the provider instead of in Sentry */ canDisable: boolean; /** * Features the integration provider supports, such as issue-basic or commits */ features: Array; /** * Extra provider details shown during setup, such as alerts and configuration instructions */ aspects: { /** * Alerts shown during setup */ alerts?: Array<{ /** * Style of the alert, such as warning */ type: string; /** * Icon shown with the alert, such as icon-warning-sm */ icon: string; /** * Text of the alert, in Markdown */ text: string; }>; /** * Configuration step after install */ configure_integration?: { /** * Title of the configuration step */ title: string; }; /** * Whether the integration is enabled without an install flow */ directEnable?: boolean; /** * Dialog shown before the integration is disabled */ disable_dialog?: { /** * Label of the dialog's confirm button */ actionText: string; /** * Text of the dialog */ body: string; }; /** * Where to install the integration when it's installed outside Sentry */ externalInstall?: { /** * URL to install the integration from, such as a marketplace */ url: string; /** * Label of the install button */ buttonText: string; /** * Notice shown before the user leaves Sentry */ noticeText: string; }; /** * Dialog shown before the integration is removed */ removal_dialog?: { /** * Label of the dialog's confirm button */ actionText: string; /** * Text of the dialog */ body: string; }; }; }; /** * External issues of this integration linked to the issue */ externalIssues: Array<{ /** * ID of the link between the issue and the external issue */ id: string; /** * Key of the external issue in the provider, such as PROJ-123 */ key: string; /** * URL of the external issue */ url: string; /** * Title of the external issue */ title: string | null; /** * Description of the external issue */ description: string | null; /** * Name to show for the external issue, such as owner/repo#1. Empty when the integration doesn't set one */ displayName: string; }>; }>; /** * DRF's standard error-body shape: `{"detail": str}`. * * Use in `Response[T] | Response[DetailResponse]` annotations on endpoints * whose inline error returns are exactly `Response({"detail": "..."}, status=4xx)`. * Endpoints whose error bodies have richer or different shapes should * declare their own local TypedDicts instead. */ export type IssueLinkConflict = { detail: string; }; export type LatestBaseSnapshotResponse = { /** * ID of the build the snapshot belongs to */ head_artifact_id?: string; /** * ID of the project */ project_id?: string; /** * Slug of the project */ project_slug?: string; /** * App identifier of the build */ app_id?: string | null; /** * Number of images in the snapshot */ image_count?: number; /** * Images in the snapshot */ images?: Array<{ /** * Content hash of the image */ key?: string; /** * Display name of the image */ display_name?: string | null; /** * Group the image belongs to */ group?: string | null; /** * File name of the image, which identifies it within the snapshot */ image_file_name?: string; /** * Width of the image in pixels */ width?: number; /** * Height of the image in pixels */ height?: number; /** * Theme the image was rendered with: light or dark */ canvas_theme?: 'light' | 'dark' | null; /** * API URL to download the image */ image_url?: string; }>; /** * Fraction of changed pixels, from 0 to 1, above which an image counts as changed. Images can override it */ diff_threshold?: number | null; /** * When the build was uploaded (ISO 8601) */ date_added?: string; /** * Version control details of the build */ vcs_info?: { /** * Commit SHA of the build */ head_sha?: string | null; /** * Commit SHA of the base. Empty or null for base snapshots */ base_sha?: string | null; /** * Branch or ref of the build */ head_ref?: string | null; /** * Branch or ref of the base */ base_ref?: string | null; /** * Repository name of the build */ head_repo_name?: string | null; /** * Pull request number */ pr_number?: number | null; }; }; export type LatestInstallableBuildResponse = { /** * Latest installable build that matches the filters. Null when there's none */ latestArtifact: { /** * ID of the build */ buildId: string; /** * State of the build */ state: 'UPLOADING' | 'UPLOADED' | 'PROCESSED' | 'FAILED'; /** * App details of the build */ appInfo: { /** * App identifier of the build */ appId: string | null; /** * App name */ name: string | null; /** * Version of the build */ version: string | null; /** * Build number */ buildNumber: number | null; /** * Type of the build file */ artifactType: 'XCARCHIVE' | 'AAB' | 'APK' | null; /** * When the build was uploaded (ISO 8601) */ dateAdded: string | null; /** * When the build was built (ISO 8601) */ dateBuilt: string | null; }; /** * Version control details of the build. Null when the build has none */ gitInfo: { /** * Commit SHA of the build */ headSha: string | null; /** * Commit SHA of the base the build is compared against */ baseSha: string | null; /** * Version control provider, such as github */ provider: string | null; /** * Repository name of the head commit */ headRepoName: string | null; /** * Repository name of the base commit */ baseRepoName: string | null; /** * Branch or ref of the head commit */ headRef: string | null; /** * Branch or ref of the base commit */ baseRef: string | null; /** * Pull request number */ prNumber: number | null; } | null; /** * Platform of the build, in uppercase */ platform: string | null; /** * ID of the project the build belongs to */ projectId: string; /** * Slug of the project the build belongs to */ projectSlug: string; /** * Name of the build configuration, such as Release */ buildConfiguration: string | null; /** * Whether the build can be installed */ isInstallable: boolean; /** * URL to install the build. Null when the build isn't installable */ installUrl: string | null; /** * When installUrl expires (ISO 8601) */ installUrlExpiresAt: string | null; /** * Number of times the build was downloaded */ downloadCount: number; /** * Release notes uploaded with the build */ releaseNotes: string | null; /** * Install groups the build belongs to */ installGroups: Array | null; /** * Whether the build's code signature is valid. Only set for Apple builds */ isCodeSignatureValid: boolean | null; /** * Name of the provisioning profile. Only set for Apple builds */ profileName: string | null; /** * Code signing type, such as development or app-store. Only set for Apple builds */ codesigningType: string | null; } | null; /** * Build that matches the given buildVersion. Null when buildVersion isn't given or no build matches */ currentArtifact: { /** * ID of the build */ buildId: string; /** * State of the build */ state: 'UPLOADING' | 'UPLOADED' | 'PROCESSED' | 'FAILED'; /** * App details of the build */ appInfo: { /** * App identifier of the build */ appId: string | null; /** * App name */ name: string | null; /** * Version of the build */ version: string | null; /** * Build number */ buildNumber: number | null; /** * Type of the build file */ artifactType: 'XCARCHIVE' | 'AAB' | 'APK' | null; /** * When the build was uploaded (ISO 8601) */ dateAdded: string | null; /** * When the build was built (ISO 8601) */ dateBuilt: string | null; }; /** * Version control details of the build. Null when the build has none */ gitInfo: { /** * Commit SHA of the build */ headSha: string | null; /** * Commit SHA of the base the build is compared against */ baseSha: string | null; /** * Version control provider, such as github */ provider: string | null; /** * Repository name of the head commit */ headRepoName: string | null; /** * Repository name of the base commit */ baseRepoName: string | null; /** * Branch or ref of the head commit */ headRef: string | null; /** * Branch or ref of the base commit */ baseRef: string | null; /** * Pull request number */ prNumber: number | null; } | null; /** * Platform of the build, in uppercase */ platform: string | null; /** * ID of the project the build belongs to */ projectId: string; /** * Slug of the project the build belongs to */ projectSlug: string; /** * Name of the build configuration, such as Release */ buildConfiguration: string | null; /** * Whether the build can be installed */ isInstallable: boolean; /** * URL to install the build. Null when the build isn't installable */ installUrl: string | null; /** * When installUrl expires (ISO 8601) */ installUrlExpiresAt: string | null; /** * Number of times the build was downloaded */ downloadCount: number; /** * Release notes uploaded with the build */ releaseNotes: string | null; /** * Install groups the build belongs to */ installGroups: Array | null; /** * Whether the build's code signature is valid. Only set for Apple builds */ isCodeSignatureValid: boolean | null; /** * Name of the provisioning profile. Only set for Apple builds */ profileName: string | null; /** * Code signing type, such as development or app-store. Only set for Apple builds */ codesigningType: string | null; } | null; }; /** * Layout settings for the source. This is required for HTTP, GCS, and S3 sources. * * **`type`** ***(string)*** - The layout of the folder structure. The options are: * - `native` - Platform-Specific (SymStore / GDB / LLVM) * - `symstore` - Microsoft SymStore * - `symstore_index2` - Microsoft SymStore (with index2.txt) * - `ssqp` - Microsoft SSQP * - `unified` - Unified Symbol Server Layout * - `debuginfod` - debuginfod * - `nnsymstore` - Nintendo Symbol Store * * **`casing`** ***(string)*** - The layout of the folder structure. The options are: * - `default` - Default (mixed case) * - `uppercase` - Uppercase * - `lowercase` - Lowercase * * ```json * { * "layout": { * "type": "native" * "casing": "default" * } * } * ``` */ export type Layout = { /** * The source's layout type. * * * `native` * * `symstore` * * `symstore_index2` * * `ssqp` * * `unified` * * `debuginfod` * * `slashsymbols` * * `nnsymstore` */ type: 'native' | 'symstore' | 'symstore_index2' | 'ssqp' | 'unified' | 'debuginfod' | 'slashsymbols' | 'nnsymstore'; /** * The source's casing rules. * * * `lowercase` * * `uppercase` * * `default` */ casing: 'lowercase' | 'uppercase' | 'default'; }; export type LinkExternalIssueRequest = { /** * The identifier or full URL of the existing external issue to link. URL support depends on the selected integration. */ externalIssue: string; /** * The repository containing the external issue, in owner/name format. Required by GitHub, GitHub Enterprise, and Bitbucket integrations. */ repo?: string; /** * An optional comment to post to the external issue when linking, if supported by the integration. */ comment?: string; }; /** * Allows parameters to be defined in snake case, but passed as camel case. * * Errors are output in camel case. */ export type LinkedDashboard = { field: string; dashboard_id: string; }; export type ListAvailableActionResponse = Array<{ /** * Type of the action */ type: string; /** * Group the action belongs to, such as notification or ticket_creation */ handlerGroup: string; /** * JSON schema of the action's config */ configSchema: { /** * URI of the JSON Schema dialect */ $schema?: string; /** * JSON type or types the value has */ type?: string | Array; /** * What the value is */ description?: string; /** * Schemas of the object's properties, by property name. false forbids the property */ properties?: { [key: string]: { [key: string]: unknown; } | boolean; }; /** * Properties the object must have */ required?: Array; /** * Whether the object can have properties that aren't listed */ additionalProperties?: boolean; /** * Values the value can be */ enum?: Array; /** * Value used when none is given */ default?: string | number | number | boolean | Array | { [key: string]: string; } | null; /** * Schema of the array's items */ items?: { [key: string]: unknown; }; /** * Schemas that the value must all match */ allOf?: Array<{ [key: string]: unknown; }>; /** * Schemas that the value must match exactly one of */ oneOf?: Array<{ [key: string]: unknown; }>; /** * Most properties the object can have */ maxProperties?: number; /** * Schema that decides whether then applies */ if?: { [key: string]: unknown; }; /** * Schema the value must match when if matches */ then?: { [key: string]: unknown; }; /** * Regular expression the string must match */ pattern?: string; /** * Fewest characters the string can have */ minLength?: number; /** * Most characters the string can have */ maxLength?: number; }; /** * JSON schema of the action's data */ dataSchema: { /** * URI of the JSON Schema dialect */ $schema?: string; /** * JSON type or types the value has */ type?: string | Array; /** * What the value is */ description?: string; /** * Schemas of the object's properties, by property name. false forbids the property */ properties?: { [key: string]: { [key: string]: unknown; } | boolean; }; /** * Properties the object must have */ required?: Array; /** * Whether the object can have properties that aren't listed */ additionalProperties?: boolean; /** * Values the value can be */ enum?: Array; /** * Value used when none is given */ default?: string | number | number | boolean | Array | { [key: string]: string; } | null; /** * Schema of the array's items */ items?: { [key: string]: unknown; }; /** * Schemas that the value must all match */ allOf?: Array<{ [key: string]: unknown; }>; /** * Schemas that the value must match exactly one of */ oneOf?: Array<{ [key: string]: unknown; }>; /** * Most properties the object can have */ maxProperties?: number; /** * Schema that decides whether then applies */ if?: { [key: string]: unknown; }; /** * Schema the value must match when if matches */ then?: { [key: string]: unknown; }; /** * Regular expression the string must match */ pattern?: string; /** * Fewest characters the string can have */ minLength?: number; /** * Most characters the string can have */ maxLength?: number; }; /** * Sentry app that provides the action. Only set for Sentry app actions */ sentryApp?: { /** * ID of the Sentry app */ id: string; /** * Name of the Sentry app */ name: string; /** * ID of the Sentry app installation */ installationId: string; /** * UUID of the Sentry app installation */ installationUuid: string; /** * Status of the Sentry app */ status: 'unpublished' | 'published' | 'internal' | 'publish_request_inprogress' | 'deletion_in_progress'; /** * Settings form for the action, from the app's alert rule action component */ settings?: { /** * Type of the element */ type: 'alert-rule-settings'; /** * Text shown above the settings form */ description?: string; /** * Path on the integration's server that Sentry sends requests to */ uri: string; /** * Fields that the user must fill in */ required_fields: Array<{ /** * Type of the element */ type: 'select'; /** * Label of the form field */ label: string; /** * Name of the form field, which keys its value in the submitted form */ name: string; /** * Whether the field loads its options from uri as the user types */ async?: boolean; /** * Whether to skip loading the options from uri when the form opens */ skip_load_on_open?: boolean; /** * Whether more than one option can be selected */ multiple?: boolean; /** * Path on the integration's server that Sentry sends requests to */ uri?: string; /** * Options to choose from, each a two-item array */ options?: Array<[ string | number, string | number ]>; /** * Names of the fields that this field's options depend on */ depends_on?: Array; /** * Options to choose from, loaded from options or from uri. Each is a two-item array */ choices?: Array<[ string | number, string | number ]>; /** * Value selected by default, from the options loaded from uri */ defaultValue?: string; } | { /** * Type of the element */ type: 'text'; /** * Label of the form field */ label: string; /** * Name of the form field, which keys its value in the submitted form */ name: string; /** * Issue field that prefills the field */ default?: 'issue.title' | 'issue.description'; } | { /** * Type of the element */ type: 'textarea'; /** * Label of the form field */ label: string; /** * Name of the form field, which keys its value in the submitted form */ name: string; /** * Issue field that prefills the field */ default?: 'issue.title' | 'issue.description'; }>; /** * Fields that the user can fill in */ optional_fields?: Array<{ /** * Type of the element */ type: 'select'; /** * Label of the form field */ label: string; /** * Name of the form field, which keys its value in the submitted form */ name: string; /** * Whether the field loads its options from uri as the user types */ async?: boolean; /** * Whether to skip loading the options from uri when the form opens */ skip_load_on_open?: boolean; /** * Whether more than one option can be selected */ multiple?: boolean; /** * Path on the integration's server that Sentry sends requests to */ uri?: string; /** * Options to choose from, each a two-item array */ options?: Array<[ string | number, string | number ]>; /** * Names of the fields that this field's options depend on */ depends_on?: Array; /** * Options to choose from, loaded from options or from uri. Each is a two-item array */ choices?: Array<[ string | number, string | number ]>; /** * Value selected by default, from the options loaded from uri */ defaultValue?: string; } | { /** * Type of the element */ type: 'text'; /** * Label of the form field */ label: string; /** * Name of the form field, which keys its value in the submitted form */ name: string; /** * Issue field that prefills the field */ default?: 'issue.title' | 'issue.description'; } | { /** * Type of the element */ type: 'textarea'; /** * Label of the form field */ label: string; /** * Name of the form field, which keys its value in the submitted form */ name: string; /** * Issue field that prefills the field */ default?: 'issue.title' | 'issue.description'; }>; }; /** * Title of the app's alert rule action component */ title?: string; }; /** * Integrations the action can use */ integrations?: Array<{ /** * ID of the integration */ id: string; /** * Name of the integration */ name: string; /** * Services available in the integration, such as PagerDuty services */ services?: Array<{ /** * ID of the service */ id: string; /** * Name of the service */ name: string; }>; }>; /** * Webhook services the action can send to */ services?: Array<{ /** * Slug of the webhook service */ slug: string; /** * Name of the webhook service */ name: string; }>; /** * Why the action can't be used, such as plan. Omitted when it can be used */ disabledReason?: 'plan'; }>; export type ListClientKeysResponse = Array<{ /** * ID of the client key, same as its public key */ id: string; /** * Name of the client key */ name: string; /** * Name of the client key, same as name */ label: string; /** * Public key */ public: string | null; /** * Secret key */ secret: string | null; /** * ID of the project the key belongs to */ projectId: number; /** * Whether the client key accepts events */ isActive: boolean; /** * Rate limit for events sent with the key. Null when there's none */ rateLimit: { /** * Rate limit window in seconds */ window: number; /** * Number of events accepted per window */ count: number; } | null; /** * DSN and ingestion endpoints for the key */ dsn: { /** * DSN that includes the secret key */ secret: string; /** * Public DSN to configure SDKs with */ public: string; /** * Endpoint for Content Security Policy reports */ csp: string; /** * Endpoint for security reports */ security: string; /** * Endpoint for minidump crash reports */ minidump: string; /** * Endpoint for Network Error Logging reports */ nel: string; /** * Endpoint for Unreal Engine crash reports */ unreal: string; /** * Endpoint for cron monitor check-ins */ crons: string; /** * URL of the JavaScript SDK Loader script */ cdn: string; /** * Endpoint for PlayStation crash reports */ playstation: string; /** * Base URL for integration endpoints, such as the OpenTelemetry endpoints */ integration: string; /** * OpenTelemetry (OTLP) endpoint for traces */ otlp_traces: string; /** * OpenTelemetry (OTLP) endpoint for logs */ otlp_logs: string; }; /** * JavaScript SDK version the Loader serves */ browserSdkVersion: string; /** * JavaScript SDK versions the Loader can serve */ browserSdk: { /** * JavaScript SDK versions the Loader can serve, as [value, label] pairs */ choices: Array>; }; /** * When the client key was created (ISO 8601) */ dateCreated: string | null; /** * Features the JavaScript SDK Loader enables */ dynamicSdkLoaderOptions: { /** * Whether the Loader enables Session Replay */ hasReplay: boolean; /** * Whether the Loader enables tracing */ hasPerformance: boolean; /** * Whether the Loader loads the debug bundle */ hasDebug: boolean; /** * Whether the Loader enables User Feedback */ hasFeedback: boolean; /** * Whether the Loader enables logs and metrics */ hasLogsAndMetrics: boolean; }; /** * What the key is used for, such as user or profiling. Only included for superusers */ useCase?: string; }>; export type ListDataForwarderResponse = Array<{ /** * ID of the data forwarder */ id: string; /** * ID of the organization */ organizationId: string; /** * Whether the data forwarder is on */ isEnabled: boolean; /** * Whether new projects are enrolled in the forwarder automatically */ enrollNewProjects: boolean; /** * Projects enrolled in the forwarder */ enrolledProjects: Array<{ /** * ID of the project */ id: string; /** * Slug of the project */ slug: string; /** * Platform of the project */ platform: string | null; }>; /** * Service the data is forwarded to: segment, sqs or splunk */ provider: string; /** * Provider settings of the forwarder. Null without org:write access */ config: { [key: string]: string; } | null; /** * Configuration of each enrolled project */ projectConfigs: Array<{ /** * ID of the project's data forwarding configuration */ id: string; /** * Whether data forwarding is on for the project */ isEnabled: boolean; /** * ID of the data forwarder */ dataForwarderId: string; /** * Project the configuration applies to */ project: { /** * ID of the project */ id: string; /** * Slug of the project */ slug: string; /** * Platform of the project */ platform: string | null; }; /** * Settings that override the forwarder's config for the project. Empty without project:write or org:write access */ overrides: { [key: string]: string; }; /** * Forwarder config merged with the project's overrides. Empty without org:write access */ effectiveConfig: { [key: string]: string; }; /** * When the project configuration was created (ISO 8601) */ dateAdded: string; /** * When the project configuration was last updated (ISO 8601) */ dateUpdated: string; }>; /** * When the data forwarder was created (ISO 8601) */ dateAdded: string; /** * When the data forwarder was last updated (ISO 8601) */ dateUpdated: string; }>; export type ListDetectorSerializerResponse = Array<{ /** * Team or user that owns the monitor */ owner?: { /** * Whether the actor is a user or a team */ type: 'user' | 'team'; /** * ID of the user or team */ id: string; /** * Display name of the user, or slug of the team */ name: string; /** * Email address of the user. Only set for users */ email?: string; } | null; /** * ID of the user who created the monitor */ createdBy?: string | null; /** * Latest issue the monitor created */ latestGroup?: { /** * ID of the issue */ id: string; /** * Title of the issue */ title: string; /** * Function or module where the issue occurs */ culprit: string | null; /** * Short ID of the issue, such as PROJECT-1A */ shortId: string | null; /** * Severity level of the issue */ level: 'sample' | 'debug' | 'info' | 'warning' | 'error' | 'fatal' | 'unknown'; /** * Issue status */ status: 'resolved' | 'ignored' | 'pending_deletion' | 'pending_merge' | 'reprocessing' | 'unresolved'; /** * Substatus of the issue, such as ongoing, regressed or escalating */ substatus: 'archived_until_escalating' | 'archived_until_condition_met' | 'archived_forever' | 'escalating' | 'ongoing' | 'regressed' | 'new' | null; /** * Platform of the issue's events */ platform: string | null; /** * Project the issue belongs to */ project: { /** * ID of the project */ id: string; /** * Name of the project */ name: string; /** * Slug of the project */ slug: string; /** * Platform of the project */ platform: string | null; }; /** * Event type of the issue, such as error or default */ type: 'default' | 'error' | 'csp' | 'nel' | 'hpkp' | 'expectct' | 'expectstaple' | 'transaction' | 'generic' | 'feedback'; /** * Issue type, such as error or performance_n_plus_one_db_queries */ issueType: string; /** * Issue category, such as error or performance */ issueCategory: string; /** * Issue metadata */ metadata: { /** * Title of default and issue platform events */ title?: string; /** * Exception value, or the subtitle of an issue */ value?: string; /** * Exception type of error events */ type?: string; /** * Whether the SDK fabricated the exception to carry a stacktrace, so its type is a platform label rather than what went wrong */ synthetic?: boolean; /** * File of the frame where the error happened */ filename?: string; /** * Function of the frame where the error happened */ function?: string; /** * Message of default, security and feedback events */ message?: string; /** * URI that a CSP report blocked */ uri?: string; /** * CSP directive that was violated */ directive?: string; /** * Host name of HPKP, Expect-CT and Expect-Staple reports */ origin?: string; /** * Name of the person who sent user feedback */ name?: string; /** * Email of the person who sent user feedback */ contact_email?: string; /** * Where user feedback came from, such as a widget */ source?: string; /** * Whether the stacktrace has in-app frames, system frames or both */ in_app_frame_mix?: string; /** * Whether a crash report was dropped because the issue already stores the most allowed */ stripped_crash?: boolean; /** * SDK of the issue's first event */ sdk?: { /** * Name of the SDK, or unknown */ name: string; /** * Name of the SDK, normalized for grouping */ name_normalized: string; }; /** * Severity score of the issue's first event */ severity?: number; /** * Why the severity score is what it is */ severity_reason?: string; /** * Priority the issue was created with */ initial_priority?: number; }; /** * Number of comments on the issue */ numComments: number; /** * When the issue was first seen (ISO 8601) */ firstSeen: string | null; /** * When the issue was last seen (ISO 8601) */ lastSeen: string | null; } | null; /** * Description of the monitor */ description?: string | null; /** * Monitor ID */ id: string; /** * ID of the project the monitor belongs to */ projectId: string | null; /** * Monitor name */ name: string; /** * Type of the monitor, such as metric_issue or error */ type: string; /** * IDs of the alerts connected to the monitor */ workflowIds: Array | null; /** * When the monitor was created (ISO 8601) */ dateCreated: string; /** * When the monitor was last updated (ISO 8601) */ dateUpdated: string; /** * Data sources the monitor evaluates, such as a query subscription */ dataSources: Array<{ /** * ID of the data source */ id: string; /** * ID of the organization */ organizationId: string; /** * Type of the data source */ type: 'snuba_query_subscription' | 'cron_monitor' | 'uptime_subscription'; /** * ID of the query subscription, cron monitor or uptime subscription */ sourceId: string; /** * The query subscription, cron monitor or uptime subscription, which depends on type. Null when it no longer exists */ queryObj: { /** * ID of the query subscription */ id: string; /** * Status of the subscription: 0 active, 1 creating, 2 updating, 3 deleting or 4 disabled */ status: number; /** * ID of the subscription in Snuba. Null while it's being created */ subscription: string | null; /** * Query the subscription runs */ snubaQuery: { /** * ID of the query */ id: string; /** * Dataset the query runs on, such as events or events_analytics_platform */ dataset: string; /** * Search query that filters the data */ query: string; /** * Aggregate function the query computes, such as count() */ aggregate: string; /** * Time window of the query in seconds */ timeWindow: number; /** * Environment the query is limited to. Null for all environments */ environment: string | null; /** * Event types the query includes, such as error or transaction */ eventTypes: Array; /** * How sampled data is extrapolated, unknown, none, client_and_server_weighted or server_weighted. Null when not set */ extrapolationMode: string | null; }; } | { /** * ID of the monitor */ id: string; /** * Name of the monitor */ name: string; /** * Slug that identifies the monitor in the organization */ slug: string; /** * Status of the monitor. Disabled monitors don't accept check-ins */ status: 'active' | 'disabled' | 'pending_deletion' | 'deletion_in_progress'; /** * Whether incidents are muted in all of the monitor's environments */ isMuted: boolean; /** * Whether the most recent check-in was an upsert check-in */ isUpserting: boolean; /** * Configuration of the monitor */ config: { /** * Type of schedule: crontab or interval */ schedule_type: 'crontab' | 'interval'; /** * Schedule of the monitor: a crontab string, or a [value, unit] pair for intervals, such as [1, "day"] */ schedule: string | Array; /** * How long in minutes after the expected check-in time to wait before the check-in counts as missed */ checkin_margin: number | null; /** * How long in minutes a check-in can stay in progress before it counts as failed */ max_runtime: number | null; /** * Timezone the schedule is evaluated in, as a tz database name */ timezone: string | null; /** * Number of consecutive missed or failed check-ins before an issue is created */ failure_issue_threshold: number | null; /** * Number of consecutive successful check-ins before the issue is resolved */ recovery_threshold: number | null; /** * ID of the alert rule linked to the monitor */ alert_rule_id: number | null; }; /** * When the monitor was created (ISO 8601) */ dateCreated: string; /** * Project the monitor belongs to */ project: { /** * Counts of non-transaction events per interval over the requested stats period, as [timestamp, count] pairs. Only included when a stats period is requested */ stats?: Array> | { [key: string]: number; }; /** * Counts of transactions per interval over the requested stats period, as [timestamp, count] pairs. Only included when transaction stats are requested */ transactionStats?: Array>; /** * Crash-free session rates for the current and previous stats period. Only included when session stats are requested */ sessionStats?: { /** * Crash-free rate in the current period, as a percentage. Null when there's no session data */ currentCrashFreeRate: number | null; /** * Crash-free rate in the previous period, as a percentage. Null when there's no session data */ previousCrashFreeRate: number | null; /** * Whether the project has release health (session) data */ hasHealthData: boolean; }; /** * ID of the project */ id: string; /** * Slug of the project */ slug: string; /** * Name of the project */ name: string; /** * Platform of the project */ platform: string | null; /** * When the project was created (ISO 8601) */ dateCreated: string; /** * Whether the requesting user bookmarked the project */ isBookmarked: boolean; /** * Whether the requesting user is a member of a team with access to the project */ isMember: boolean; /** * Features enabled for the project */ features: Array; /** * When the project received its first event (ISO 8601) */ firstEvent: string | null; /** * Whether the project has sent transactions */ firstTransactionEvent: boolean; /** * Scopes the requesting user has on the project through team membership and organization role */ access: Array; /** * Whether the requesting user has access to the project */ hasAccess: boolean; /** * Whether the project has sent user feedback */ hasFeedbacks: boolean; /** * Whether the project has sent feature flags */ hasFlags: boolean; /** * Whether the project has sent an event with a minified stack trace */ hasMinifiedStackTrace: boolean; /** * Whether the project has cron monitors */ hasMonitors: boolean; /** * Whether the project has sent user feedback from the user feedback widget */ hasNewFeedbacks: boolean; /** * Whether the project has sent profiles */ hasProfiles: boolean; /** * Whether the project has sent replays */ hasReplays: boolean; /** * Whether the project has sent sessions */ hasSessions: boolean; /** * Whether the project has sent HTTP request spans used by Insights */ hasInsightsHttp: boolean; /** * Whether the project has sent database spans used by Insights */ hasInsightsDb: boolean; /** * Whether the project has sent asset spans used by Insights */ hasInsightsAssets: boolean; /** * Whether the project has sent app start spans used by Insights */ hasInsightsAppStart: boolean; /** * Whether the project has sent screen load spans used by Insights */ hasInsightsScreenLoad: boolean; /** * Whether the project has sent web vitals spans used by Insights */ hasInsightsVitals: boolean; /** * Whether the project has sent cache spans used by Insights */ hasInsightsCaches: boolean; /** * Whether the project has sent queue spans used by Insights */ hasInsightsQueues: boolean; /** * Whether the project has sent AI agent spans used by Insights */ hasInsightsAgentMonitoring: boolean; /** * Whether the project has sent MCP spans used by Insights */ hasInsightsMCP: boolean; /** * Whether the project has sent logs. Always true outside sentry.io */ hasLogs: boolean; /** * Whether the project has sent trace metrics. Always true outside sentry.io */ hasTraceMetrics: boolean; /** * Whether this is the Sentry install's own internal project */ isInternal: boolean; /** * Whether the project is public */ isPublic: boolean; /** * Avatar of the project. Always a letter avatar */ avatar: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Hex color code for the project, derived from its slug unless set explicitly */ color: string; /** * Status of the project: active, deleted, or unknown */ status: string; }; /** * Environments the monitor has received check-ins for */ environments: Array<{ /** * Name of the environment */ name: string; /** * Status of the monitor in the environment */ status: 'active' | 'disabled' | 'pending_deletion' | 'deletion_in_progress' | 'ok' | 'error'; /** * Whether incidents are muted for the monitor in the environment */ isMuted: boolean; /** * When the monitor was created (ISO 8601) */ dateCreated: string; /** * When the most recent check-in was received, not counting missed check-ins (ISO 8601) */ lastCheckIn: string | null; /** * When the next check-in is expected (ISO 8601) */ nextCheckIn: string | null; /** * Latest time the next check-in can arrive before it counts as missed (ISO 8601) */ nextCheckInLatest: string | null; /** * Unresolved incident for the monitor in the environment. Null when there's none */ activeIncident: { /** * When the incident started (ISO 8601) */ startingTimestamp: string | null; /** * When the incident was resolved (ISO 8601) */ resolvingTimestamp: string | null; /** * Details of the broken monitor notice for the incident. Null when there's none */ brokenNotice: { /** * When users were notified that the monitor environment looks broken (ISO 8601) */ userNotifiedTimestamp: string | null; /** * When the broken monitor environment was muted (ISO 8601) */ environmentMutedTimestamp: string | null; } | null; } | null; }>; /** * Team or user that owns the monitor. Null when there's no owner */ owner: { /** * Whether the actor is a user or a team */ type: 'user' | 'team'; /** * ID of the user or team */ id: string; /** * Display name of the user, or slug of the team */ name: string; /** * Email address of the user. Only set for users */ email?: string; } | null; } | { /** * URL the check requests */ url: string; /** * HTTP method of the check request, such as GET */ method: string; /** * Body of the check request. Null when it has none */ body: string | null; /** * Headers of the check request, each a name and value pair */ headers: Array>; /** * How often the check runs, in seconds */ intervalSeconds: number; /** * How long the check waits for a response, in milliseconds */ timeoutMs: number; /** * Whether the check request samples a trace */ traceSampling: boolean; /** * Whether failed checks capture the response body and headers */ responseCaptureEnabled: boolean; /** * Assertion the response must pass. Null when the check has none */ assertion: { /** * All possible assertion operations */ root?: { /** * Operation, always and */ op?: 'and'; /** * Operations that must all pass */ children?: Array<{ [key: string]: unknown; }>; } | { /** * Operation, always or */ op?: 'or'; /** * Operations of which at least one must pass */ children?: Array<{ [key: string]: unknown; }>; } | { /** * Operation, always not */ op?: 'not'; /** * All possible assertion operations. Its fields are the same as the one this is inside, so they're left out here. */ operand?: { [key: string]: unknown; }; } | { /** * HTTP status code to compare the response status code against */ value?: number; /** * The kind of comparison to make. */ operator?: 'always' | 'never' | 'less_than' | 'greater_than' | 'equals' | 'not_equals'; } | { /** * Operation, always json_path */ op?: 'json_path'; /** * JSONPath query to run on the response body */ value?: string; /** * The kind of comparison to make. */ operator?: 'always' | 'never' | 'less_than' | 'greater_than' | 'equals' | 'not_equals' | null; /** * An operand for comparison against json path values */ operand?: { /** * Kind of operand, always glob */ header_op?: 'glob'; /** * The actual glob pattern, as a string */ pattern?: { /** * Glob pattern */ value?: string; }; } | { /** * Kind of operand, always literal */ jsonpath_op?: 'literal'; /** * Value to compare the query result against */ value?: string; } | { /** * Kind of operand, always none */ header_op?: 'none'; } | null; } | { /** * The kind of comparison to make. */ key_op?: 'always' | 'never' | 'less_than' | 'greater_than' | 'equals' | 'not_equals'; /** * A operand for comparison against HTTP header keys and values */ key_operand?: { /** * Kind of operand, always glob */ header_op?: 'glob'; /** * The actual glob pattern, as a string */ pattern?: { /** * Glob pattern */ value?: string; }; } | { /** * Kind of operand, always literal */ header_op?: 'literal'; /** * Value to compare the header key or value against */ value?: string; } | { /** * Kind of operand, always none */ header_op?: 'none'; }; /** * The kind of comparison to make. */ value_op?: 'always' | 'never' | 'less_than' | 'greater_than' | 'equals' | 'not_equals'; /** * A operand for comparison against HTTP header keys and values */ value_operand?: { /** * Kind of operand, always glob */ header_op?: 'glob'; /** * The actual glob pattern, as a string */ pattern?: { /** * Glob pattern */ value?: string; }; } | { /** * Kind of operand, always literal */ header_op?: 'literal'; /** * Value to compare the header key or value against */ value?: string; } | { /** * Kind of operand, always none */ header_op?: 'none'; }; }; } | null; } | null; }> | null; /** * Conditions that decide the monitor's status */ conditionGroup: { /** * ID of the condition group */ id?: string; /** * ID of the organization */ organizationId?: string; /** * How the conditions in the group combine */ logicType?: 'any' | 'any-short' | 'all' | 'none'; /** * Conditions in the group */ conditions?: Array<{ /** * ID of the condition */ id: string; /** * Type of the condition, such as first_seen_event or level */ type: string; /** * Value the condition compares against, which depends on its type */ comparison: number | string | boolean | { /** * Whether the issue must be older or newer than the age */ comparisonType: 'older' | 'newer'; /** * Age of the issue, in units of time */ value: number; /** * Unit of the age */ time: 'minute' | 'hour' | 'day' | 'week'; } | { /** * How sensitive anomaly detection is */ sensitivity: 'low' | 'medium' | 'high'; /** * Seasonal pattern that anomaly detection accounts for */ seasonality: 'auto' | 'hourly' | 'daily' | 'weekly' | 'hourly_daily' | 'hourly_weekly' | 'hourly_daily_weekly' | 'daily_weekly'; /** * Anomalies to detect: 0 above, 1 below, 2 above or below the expected value */ thresholdType: 0 | 1 | 2; } | { /** * Who the issue must be assigned to */ targetType: 'Unassigned' | 'Team' | 'Member'; /** * ID of the team or member. Not set for Unassigned */ targetIdentifier?: number | string; } | { /** * Event attribute to match, such as message or user.email */ attribute?: 'message' | 'platform' | 'environment' | 'type' | 'error.handled' | 'error.unhandled' | 'error.main_thread' | 'exception.type' | 'exception.value' | 'user.id' | 'user.email' | 'user.username' | 'user.ip_address' | 'http.method' | 'http.url' | 'http.status_code' | 'sdk.name' | 'stacktrace.code' | 'stacktrace.module' | 'stacktrace.filename' | 'stacktrace.abs_path' | 'stacktrace.package' | 'unreal.crash_type' | 'app.in_foreground' | 'os.distribution_name' | 'os.distribution_version' | 'symbolicated_in_app' | 'ota_updates.channel' | 'ota_updates.runtime_version' | 'ota_updates.update_id'; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the attribute against. Not set for is and ns */ value?: string; } | number | { /** * Time window to count in, such as 1h */ interval: '1m' | '5m' | '15m' | '1h' | '1d' | '1w' | '30d'; /** * Number of events in the interval that meets the condition */ value: number; /** * Tag or attribute filters that events must match to count */ filters?: Array<{ /** * Tag key to match */ key?: string; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the tag or attribute against. Not set for is and ns */ value?: string; } | { /** * Event attribute to match, such as message or user.email */ attribute?: 'message' | 'platform' | 'environment' | 'type' | 'error.handled' | 'error.unhandled' | 'error.main_thread' | 'exception.type' | 'exception.value' | 'user.id' | 'user.email' | 'user.username' | 'user.ip_address' | 'http.method' | 'http.url' | 'http.status_code' | 'sdk.name' | 'stacktrace.code' | 'stacktrace.module' | 'stacktrace.filename' | 'stacktrace.abs_path' | 'stacktrace.package' | 'unreal.crash_type' | 'app.in_foreground' | 'os.distribution_name' | 'os.distribution_version' | 'symbolicated_in_app' | 'ota_updates.channel' | 'ota_updates.runtime_version' | 'ota_updates.update_id'; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the tag or attribute against. Not set for is and ns */ value?: string; }>; } | { /** * Time window to count in, such as 1h */ interval: '1m' | '5m' | '15m' | '1h' | '1d' | '1w' | '30d'; /** * Percent increase in events over the comparison interval that meets the condition */ value: number; /** * Earlier time window to compare the count against, such as 1w */ comparisonInterval: '5m' | '15m' | '1h' | '1d' | '1w' | '30d'; /** * Tag or attribute filters that events must match to count */ filters?: Array<{ /** * Tag key to match */ key?: string; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the tag or attribute against. Not set for is and ns */ value?: string; } | { /** * Event attribute to match, such as message or user.email */ attribute?: 'message' | 'platform' | 'environment' | 'type' | 'error.handled' | 'error.unhandled' | 'error.main_thread' | 'exception.type' | 'exception.value' | 'user.id' | 'user.email' | 'user.username' | 'user.ip_address' | 'http.method' | 'http.url' | 'http.status_code' | 'sdk.name' | 'stacktrace.code' | 'stacktrace.module' | 'stacktrace.filename' | 'stacktrace.abs_path' | 'stacktrace.package' | 'unreal.crash_type' | 'app.in_foreground' | 'os.distribution_name' | 'os.distribution_version' | 'symbolicated_in_app' | 'ota_updates.channel' | 'ota_updates.runtime_version' | 'ota_updates.update_id'; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the tag or attribute against. Not set for is and ns */ value?: string; }>; } | { /** * Time window to count in, such as 1h */ interval: '1m' | '5m' | '15m' | '1h' | '1d' | '1w' | '30d'; /** * Number of affected users in the interval that meets the condition */ value: number; /** * Tag or attribute filters that events must match to count */ filters?: Array<{ /** * Tag key to match */ key?: string; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the tag or attribute against. Not set for is and ns */ value?: string; } | { /** * Event attribute to match, such as message or user.email */ attribute?: 'message' | 'platform' | 'environment' | 'type' | 'error.handled' | 'error.unhandled' | 'error.main_thread' | 'exception.type' | 'exception.value' | 'user.id' | 'user.email' | 'user.username' | 'user.ip_address' | 'http.method' | 'http.url' | 'http.status_code' | 'sdk.name' | 'stacktrace.code' | 'stacktrace.module' | 'stacktrace.filename' | 'stacktrace.abs_path' | 'stacktrace.package' | 'unreal.crash_type' | 'app.in_foreground' | 'os.distribution_name' | 'os.distribution_version' | 'symbolicated_in_app' | 'ota_updates.channel' | 'ota_updates.runtime_version' | 'ota_updates.update_id'; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the tag or attribute against. Not set for is and ns */ value?: string; }>; } | { /** * Time window to count in, such as 1h */ interval: '1m' | '5m' | '15m' | '1h' | '1d' | '1w' | '30d'; /** * Percent increase in affected users over the comparison interval that meets the condition */ value: number; /** * Earlier time window to compare the count against, such as 1w */ comparisonInterval: '5m' | '15m' | '1h' | '1d' | '1w' | '30d'; /** * Tag or attribute filters that events must match to count */ filters?: Array<{ /** * Tag key to match */ key?: string; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the tag or attribute against. Not set for is and ns */ value?: string; } | { /** * Event attribute to match, such as message or user.email */ attribute?: 'message' | 'platform' | 'environment' | 'type' | 'error.handled' | 'error.unhandled' | 'error.main_thread' | 'exception.type' | 'exception.value' | 'user.id' | 'user.email' | 'user.username' | 'user.ip_address' | 'http.method' | 'http.url' | 'http.status_code' | 'sdk.name' | 'stacktrace.code' | 'stacktrace.module' | 'stacktrace.filename' | 'stacktrace.abs_path' | 'stacktrace.package' | 'unreal.crash_type' | 'app.in_foreground' | 'os.distribution_name' | 'os.distribution_version' | 'symbolicated_in_app' | 'ota_updates.channel' | 'ota_updates.runtime_version' | 'ota_updates.update_id'; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the tag or attribute against. Not set for is and ns */ value?: string; }>; } | { /** * ID of the issue category */ value: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 19; /** * Whether the issue must be in the category or not. Defaults to true */ include?: boolean; } | { /** * Number of times the issue must have occurred */ value: number; } | 25 | 50 | 75 | 1 | { /** * Slug of the issue type */ value: 'performance_slow_db_query' | 'performance_render_blocking_asset_span' | 'performance_n_plus_one_db_queries' | 'performance_n_plus_one_db_queries_experimental' | 'performance_consecutive_db_queries' | 'performance_file_io_main_thread' | 'performance_consecutive_http' | 'performance_n_plus_one_api_calls' | 'performance_n_plus_one_api_calls_experimental' | 'performance_m_n_plus_one_db_queries' | 'performance_m_n_plus_one_db_queries_experimental' | 'performance_uncompressed_assets' | 'performance_db_main_thread' | 'performance_large_http_payload' | 'performance_http_overhead' | 'performance_p95_endpoint_regression' | 'performance_streamed_spans_exp' | 'db_query_injection_vulnerability' | 'query_injection_vulnerability' | 'profile_file_io_main_thread' | 'profile_image_decode_main_thread' | 'profile_json_decode_main_thread' | 'profile_regex_main_thread' | 'profile_frame_drop' | 'profile_function_regression' | 'llm_detected_experimental' | 'llm_detected_experimental_v2' | 'ai_detected_http' | 'ai_detected_db' | 'ai_detected_runtime_performance' | 'ai_detected_security' | 'ai_detected_code_health' | 'ai_detected_general' | 'replay_click_rage' | 'replay_hydration_error' | 'feedback' | 'web_vitals' | 'issue_stream' | 'metric_issue' | 'error' | 'uptime_domain_failure' | 'send-test-notification' | 'monitor_check_in_failure' | 'sourcemap_configuration' | 'low_value_span_configuration' | 'preprod_size_analysis'; /** * Whether the issue must be of the type or not. Defaults to true */ include?: boolean; } | { /** * Whether to compare against the oldest or newest adopted release */ releaseAgeType: 'oldest' | 'newest'; /** * Whether the event's release must be older or newer than that release */ ageComparison: 'older' | 'newer'; /** * Environment the release was adopted in */ environment: string; } | { /** * Event level: 0 sample, 10 debug, 20 info, 30 warning, 40 error, 50 fatal */ level: 0 | 10 | 20 | 30 | 40 | 50; /** * How to compare the event's level: eq, gte or lte */ match: 'eq' | 'gte' | 'lte'; } | { /** * Time window to count in, such as 1h */ interval: '1m' | '5m' | '10m' | '30m' | '1h'; /** * Percent of sessions affected in the interval that meets the condition */ value: number; /** * Tag or attribute filters that events must match to count */ filters?: Array<{ /** * Tag key to match */ key?: string; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the tag or attribute against. Not set for is and ns */ value?: string; } | { /** * Event attribute to match, such as message or user.email */ attribute?: 'message' | 'platform' | 'environment' | 'type' | 'error.handled' | 'error.unhandled' | 'error.main_thread' | 'exception.type' | 'exception.value' | 'user.id' | 'user.email' | 'user.username' | 'user.ip_address' | 'http.method' | 'http.url' | 'http.status_code' | 'sdk.name' | 'stacktrace.code' | 'stacktrace.module' | 'stacktrace.filename' | 'stacktrace.abs_path' | 'stacktrace.package' | 'unreal.crash_type' | 'app.in_foreground' | 'os.distribution_name' | 'os.distribution_version' | 'symbolicated_in_app' | 'ota_updates.channel' | 'ota_updates.runtime_version' | 'ota_updates.update_id'; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the tag or attribute against. Not set for is and ns */ value?: string; }>; } | { /** * Time window to count in, such as 1h */ interval: '1m' | '5m' | '10m' | '30m' | '1h'; /** * Percent increase in affected sessions over the comparison interval that meets the condition */ value: number; /** * Earlier time window to compare the count against, such as 1w */ comparisonInterval: '5m' | '15m' | '1h' | '1d' | '1w' | '30d'; /** * Tag or attribute filters that events must match to count */ filters?: Array<{ /** * Tag key to match */ key?: string; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the tag or attribute against. Not set for is and ns */ value?: string; } | { /** * Event attribute to match, such as message or user.email */ attribute?: 'message' | 'platform' | 'environment' | 'type' | 'error.handled' | 'error.unhandled' | 'error.main_thread' | 'exception.type' | 'exception.value' | 'user.id' | 'user.email' | 'user.username' | 'user.ip_address' | 'http.method' | 'http.url' | 'http.status_code' | 'sdk.name' | 'stacktrace.code' | 'stacktrace.module' | 'stacktrace.filename' | 'stacktrace.abs_path' | 'stacktrace.package' | 'unreal.crash_type' | 'app.in_foreground' | 'os.distribution_name' | 'os.distribution_version' | 'symbolicated_in_app' | 'ota_updates.channel' | 'ota_updates.runtime_version' | 'ota_updates.update_id'; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the tag or attribute against. Not set for is and ns */ value?: string; }>; } | Array<'rca_completed' | 'solution_completed' | 'coding_completed' | 'pr_ready_for_review'> | { /** * Tag key to match */ key?: string; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the tag against. Not set for is and ns */ value?: string; }; /** * Result the condition produces when it matches: true for alert conditions, or the priority level for monitor conditions */ conditionResult: boolean | number | number | null; }>; /** * Actions to fire when the conditions pass */ actions?: Array<{ /** * ID of the action */ id?: string; /** * Type of the action */ type?: 'slack' | 'slack_staging' | 'msteams' | 'discord' | 'pagerduty' | 'opsgenie' | 'github' | 'github_enterprise' | 'jira' | 'jira_server' | 'vsts' | 'email' | 'sentry_app' | 'plugin' | 'webhook' | 'seer_investigation'; /** * ID of the integration the action uses. Null for actions without one */ integrationId?: string | null; /** * Extra data for the action, which depends on its type */ data?: { /** * Tags to add to the message */ tags?: string; } | { /** * The fallthrough type for issue owners email notifications */ fallthroughType?: 'AllMembers' | 'ActiveMembers' | 'NoOne'; } | { /** * Dynamic form fields from customer configuration */ dynamicFormFields?: Array<{ /** * Name of the field */ name?: string; /** * Label of the field */ label?: string; /** * Type of the field, such as select or text */ type?: string; }>; /** * Additional fields that aren't part of standard fields */ additionalFields: { /** * Repository to create the issue in, as owner/name */ repo: string; /** * Labels to add to the issue */ labels?: Array | null; /** * User to assign the issue to */ assignee?: string | null; [key: string]: unknown; }; } | { /** * Dynamic form fields from customer configuration */ dynamicFormFields?: Array<{ /** * Name of the field */ name?: string; /** * Label of the field */ label?: string; /** * Type of the field, such as select or text */ type?: string; }>; /** * Additional fields that aren't part of standard fields */ additionalFields?: { [key: string]: string | null | number | boolean | Array; }; } | { [key: string]: never; } | { /** * The priority of the opsgenie action */ priority?: 'P1' | 'P2' | 'P3' | 'P4' | 'P5'; } | { /** * The priority of the pagerduty action */ priority?: 'default' | 'critical' | 'warning' | 'error' | 'info'; } | { [key: string]: string; } | { /** * Prompt the investigation runs */ prompt?: string; /** * Seer skill the investigation runs, instead of a prompt */ skill?: 'agentic_triage'; } | { /** * Values of the Sentry App's alert rule settings form, each with a name and value */ settings?: Array; } | { /** * Tags to add to the message */ tags?: string; /** * Notes to add to the message */ notes?: string; }; /** * Configuration of the action, such as targetType and targetIdentifier */ config?: { /** * ID of the target, such as a channel, user or team ID */ targetIdentifier: string; /** * Display name of the target, such as a channel name */ targetDisplay?: string | null; /** * Kind of target the action notifies, such as specific, user or team */ targetType: 'specific'; } | { /** * ID of the target, such as a channel, user or team ID */ targetIdentifier?: string | null; /** * Display name of the target, such as a channel name */ targetDisplay?: null; /** * Kind of target the action notifies, such as specific, user or team */ targetType: 'user' | 'team' | 'issue_owners'; } | { /** * ID of the target, such as a channel, user or team ID */ targetIdentifier?: null; /** * Display name of the target, such as a channel name */ targetDisplay?: null; /** * Kind of target the action notifies, such as specific, user or team */ targetType?: 'specific'; } | { /** * ID of the target, such as a channel, user or team ID */ targetIdentifier?: string; /** * Display name of the target, such as a channel name */ targetDisplay: string; /** * Kind of target the action notifies, such as specific, user or team */ targetType: 'specific'; } | { /** * ID of the target, such as a channel, user or team ID */ targetIdentifier: string; /** * Display name of the target, such as a channel name */ targetDisplay?: string | null; /** * Kind of target the action notifies, such as specific, user or team */ targetType: 'specific'; } | { /** * ID of the target, such as a channel, user or team ID */ targetIdentifier?: string | null; /** * Display name of the target, such as a channel name */ targetDisplay?: string | null; /** * Kind of target the action notifies, such as specific, user or team */ targetType?: null; } | { [key: string]: never; } | { /** * ID of the target, such as a channel, user or team ID */ targetIdentifier: string; /** * Display name of the target, such as a channel name */ targetDisplay?: string | null; /** * Kind of target the action notifies, such as specific, user or team */ targetType: 'sentry_app'; } | { /** * ID of the target, such as a channel, user or team ID */ targetIdentifier?: string; /** * Display name of the target, such as a channel name */ targetDisplay?: string; /** * Kind of target the action notifies, such as specific, user or team */ targetType: 'specific'; } | { /** * ID of the target, such as a channel, user or team ID */ targetIdentifier?: string; /** * Display name of the target, such as a channel name */ targetDisplay?: null; /** * Kind of target the action notifies, such as specific, user or team */ targetType?: null; }; /** * Status of the action */ status?: 'active' | 'disabled' | 'pending_deletion' | 'deletion_in_progress'; }>; } | null; /** * Configuration of the monitor, which depends on its type */ config: { [key: string]: unknown; } | { /** * Fingerprinting rules of the project */ 'sentry:fingerprintingRules'?: string; /** * Hours of inactivity after which the project's issues resolve. 0 to never */ 'sentry:resolveAge'?: number; } | { /** * ID of the organization */ organizationId?: number; } | { /** * For percent detection, how far back the compared window is, in seconds */ comparisonDelta?: 300 | 900 | 3600 | 86400 | 604800 | 2592000; /** * How the monitor detects issues: static thresholds, percent change or dynamic anomalies */ detectionType: 'static' | 'percent' | 'dynamic'; } | { /** * The type of threshold to apply */ thresholdType: 'absolute_diff' | 'absolute' | 'relative_diff'; /** * The measurement to track */ measurement: 'install_size' | 'download_size'; /** * Search query to filter which artifacts are monitored */ query?: string; } | { /** * How the monitor was created: 1 manually, 2 auto-detected and onboarding, 3 auto-detected and active */ mode: 1 | 2 | 3; /** * Environment of the monitor. Null for none */ environment: string | null; /** * Number of consecutive successful checks required to mark monitor as recovered */ recoveryThreshold: number; /** * Number of consecutive failed checks required to mark monitor as down */ downtimeThreshold: number; }; /** * Whether the monitor is enabled */ enabled: boolean; }>; export type ListEventAttachmentsResponse = Array<{ /** * ID of the attachment */ id: string; /** * ID of the event the attachment belongs to */ event_id: string; /** * Type of the attachment, such as event.attachment or event.minidump */ type: string; /** * File name of the attachment */ name: string; /** * MIME type of the attachment */ mimetype: string | null; /** * When the attachment was stored (ISO 8601) */ dateCreated: string; /** * Size of the attachment in bytes */ size: number; /** * Legacy field. Only contains Content-Type, which matches mimetype */ headers: { [key: string]: string | null; }; /** * Legacy field, always null */ sha1: string | null; }>; export type ListFlagLogsResponse = { /** * Audit log entries */ data: Array<{ /** * ID of the audit log entry */ id: number; /** * What happened to the flag: created, deleted or updated */ action: 'created' | 'deleted' | 'updated'; /** * When the change happened (ISO 8601) */ createdAt: string; /** * Who made the change, such as an email address */ createdBy: string | null; /** * Kind of value in createdBy: email, id or name */ createdByType: 'email' | 'id' | 'name' | null; /** * Name of the flag */ flag: string; /** * Feature flag provider that sent the change: generic, flagpole, launchdarkly, unleash or statsig */ provider: 'generic' | 'flagpole' | 'launchdarkly' | 'unleash' | 'statsig' | null; /** * Tags of the change, such as the environment */ tags: { [key: string]: unknown; }; }>; }; export type ListMemberOnTeamResponse = Array<{ /** * Users in external providers, such as Slack or GitHub, linked to the member's user. Included only when requested */ externalUsers?: Array<{ /** * ID of the user or team in the provider */ externalId?: string; /** * ID of the Sentry user. Only set for user mappings */ userId?: string; /** * ID of the Sentry team. Only set for team mappings */ teamId?: string; /** * ID of the external actor mapping */ id: string; /** * Provider of the external actor, such as github or slack */ provider: string; /** * Name of the user or team in the provider, such as @octocat */ externalName: string; /** * ID of the integration the mapping belongs to */ integrationId: string; }>; /** * Deprecated. Use orgRole */ role?: string; /** * Deprecated. Name of the member's organization role */ roleName?: string; /** * Organization member ID */ id: string; /** * Email address of the member's user, or the invited email address if they have no account yet */ email: string; /** * Display name of the member's user, or their email address if they have no account yet */ name: string; /** * The member's user */ user: { /** * SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access */ identities?: Array<{ /** * SSO identity ID */ id: string; /** * User's identifier at the auth provider */ name: string; /** * Organization the auth provider belongs to */ organization: { /** * Organization slug */ slug: string; /** * Organization name */ name: string; }; /** * Auth provider of the identity */ provider: { /** * Auth provider key, such as google or saml2 */ id: string; /** * Display name of the auth provider */ name: string; }; /** * When the identity was last verified by signing in through the auth provider */ dateVerified: string; /** * When the identity was last synced from the auth provider */ dateSynced: string; }>; /** * User avatar */ avatar?: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Two-factor authenticators of the user, without backup methods such as recovery codes */ authenticators?: Array<{ /** * Authenticator ID */ id: string; /** * Authenticator type, such as totp, sms, u2f or recovery */ type: string; /** * Display name of the authenticator type */ name: string; /** * When the authenticator was added */ dateCreated: string; /** * When the authenticator was last used, or null */ dateUsed: string | null; }>; /** * Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization */ canReset2fa?: boolean; /** * User ID */ id: string; /** * Display name: the user's name, or their email or username if no name is set */ name: string; /** * Username */ username: string; /** * Primary email address */ email: string; /** * Gravatar URL for the primary email address */ avatarUrl: string; /** * Whether the account is active */ isActive: boolean; /** * Whether the account is suspended. Suspended users can't sign in */ isSuspended: boolean; /** * Whether the user has a password set */ hasPasswordAuth: boolean; /** * Whether the account is managed, which stops the user from changing their username, password and similar details */ isManaged: boolean; /** * When the account was created */ dateJoined: string; /** * When the user last signed in, or null */ lastLogin: string | null; /** * Whether the user has two-factor authentication enabled */ has2fa: boolean; /** * When the user was last active, or null */ lastActive: string | null; /** * Whether the user is a superuser */ isSuperuser: boolean; /** * Whether the user has staff status */ isStaff: boolean; /** * Deprecated. Always an empty object */ experiments: { [key: string]: string; }; /** * Email addresses of the user. Only included for the requesting user or superusers; empty otherwise */ emails: Array<{ /** * Email ID */ id: string; /** * Email address */ email: string; /** * Whether the email address is verified */ is_verified: boolean; }>; }; /** * ID of the member's organization role */ orgRole: string; /** * Whether the member has no user account linked yet, as with an invite that hasn't been accepted */ pending: boolean; /** * Whether the member's invite has expired */ expired: boolean; /** * Member flags */ flags: { /** * Whether the member is provisioned and managed through the organization's identity provider (SCIM) */ 'idp:provisioned': boolean; /** * Whether the member's organization role is set by the identity provider through SCIM */ 'idp:role-restricted': boolean; /** * Whether the member has linked their account to the organization's SSO provider */ 'sso:linked': boolean; /** * Whether the member's SSO link is invalid */ 'sso:invalid': boolean; /** * Whether the member is restricted by the plan's member limit */ 'member-limit:restricted': boolean; /** * Whether the member is managed by an active partnership and can't be changed until it ends */ 'partnership:restricted': boolean; }; /** * When the member was added or invited */ dateCreated: string; /** * Invite status */ inviteStatus: 'approved' | 'requested_to_be_invited' | 'requested_to_join' | null; /** * Name of the user who invited the member, or null */ inviterName: string | null; /** * ID of the member's team role, or null if the member has the minimum team role from their organization role */ teamRole: string | null; /** * Slug of the team */ teamSlug: string; }>; export type ListOrgMembersResponse = Array<{ /** * Users in external providers, such as Slack or GitHub, linked to the member's user. Included only when requested */ externalUsers?: Array<{ /** * ID of the user or team in the provider */ externalId?: string; /** * ID of the Sentry user. Only set for user mappings */ userId?: string; /** * ID of the Sentry team. Only set for team mappings */ teamId?: string; /** * ID of the external actor mapping */ id: string; /** * Provider of the external actor, such as github or slack */ provider: string; /** * Name of the user or team in the provider, such as @octocat */ externalName: string; /** * ID of the integration the mapping belongs to */ integrationId: string; }>; /** * Organization member ID */ id: string; /** * Email address of the member's user, or the invited email address if they have no account yet */ email: string; /** * Display name of the member's user, or their email address if they have no account yet */ name: string; /** * The member's user. Null for invited members without an account, or if the user can't be found */ user: { /** * SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access */ identities?: Array<{ /** * SSO identity ID */ id: string; /** * User's identifier at the auth provider */ name: string; /** * Organization the auth provider belongs to */ organization: { /** * Organization slug */ slug: string; /** * Organization name */ name: string; }; /** * Auth provider of the identity */ provider: { /** * Auth provider key, such as google or saml2 */ id: string; /** * Display name of the auth provider */ name: string; }; /** * When the identity was last verified by signing in through the auth provider */ dateVerified: string; /** * When the identity was last synced from the auth provider */ dateSynced: string; }>; /** * User avatar */ avatar?: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Two-factor authenticators of the user, without backup methods such as recovery codes */ authenticators?: Array<{ /** * Authenticator ID */ id: string; /** * Authenticator type, such as totp, sms, u2f or recovery */ type: string; /** * Display name of the authenticator type */ name: string; /** * When the authenticator was added */ dateCreated: string; /** * When the authenticator was last used, or null */ dateUsed: string | null; }>; /** * Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization */ canReset2fa?: boolean; /** * User ID */ id: string; /** * Display name: the user's name, or their email or username if no name is set */ name: string; /** * Username */ username: string; /** * Primary email address */ email: string; /** * Gravatar URL for the primary email address */ avatarUrl: string; /** * Whether the account is active */ isActive: boolean; /** * Whether the account is suspended. Suspended users can't sign in */ isSuspended: boolean; /** * Whether the user has a password set */ hasPasswordAuth: boolean; /** * Whether the account is managed, which stops the user from changing their username, password and similar details */ isManaged: boolean; /** * When the account was created */ dateJoined: string; /** * When the user last signed in, or null */ lastLogin: string | null; /** * Whether the user has two-factor authentication enabled */ has2fa: boolean; /** * When the user was last active, or null */ lastActive: string | null; /** * Whether the user is a superuser */ isSuperuser: boolean; /** * Whether the user has staff status */ isStaff: boolean; /** * Deprecated. Always an empty object */ experiments: { [key: string]: string; }; /** * Email addresses of the user. Only included for the requesting user or superusers; empty otherwise */ emails: Array<{ /** * Email ID */ id: string; /** * Email address */ email: string; /** * Whether the email address is verified */ is_verified: boolean; }>; } | null; /** * ID of the member's organization role */ orgRole: string; /** * Whether the member has no user account linked yet, as with an invite that hasn't been accepted */ pending: boolean; /** * Whether the member's invite has expired */ expired: boolean; /** * Member flags */ flags: { /** * Whether the member is provisioned and managed through the organization's identity provider (SCIM) */ 'idp:provisioned': boolean; /** * Whether the member's organization role is set by the identity provider through SCIM */ 'idp:role-restricted': boolean; /** * Whether the member has linked their account to the organization's SSO provider */ 'sso:linked': boolean; /** * Whether the member's SSO link is invalid */ 'sso:invalid': boolean; /** * Whether the member is restricted by the plan's member limit */ 'member-limit:restricted': boolean; /** * Whether the member is managed by an active partnership and can't be changed until it ends */ 'partnership:restricted': boolean; }; /** * When the member was added or invited */ dateCreated: string; /** * Invite status */ inviteStatus: 'approved' | 'requested_to_be_invited' | 'requested_to_join' | null; /** * Name of the user who invited the member, or null */ inviterName: string | null; }>; export type ListOrgTeamResponse = Array<{ /** * Team ID */ id: string; /** * Team slug, unique within the organization */ slug: string; /** * Display name of the team */ name: string; /** * When the team was created (ISO 8601) */ dateCreated: string | null; /** * Whether the requesting user is a member of the team */ isMember: boolean; /** * The requesting user's role in the team */ teamRole: string | null; /** * Team flags. idp:provisioned is true when the team is managed by an identity provider through SCIM */ flags: { [key: string]: boolean; }; /** * Scopes the requesting user has on the team through their team role. Empty if the user has no access */ access: Array; /** * Whether the requesting user can access the team, as a member, through open membership or through an organization role with access to all teams */ hasAccess: boolean; /** * Whether the requesting user has a pending request to join the team */ isPending: boolean; /** * Number of members in the team */ memberCount: number; /** * Team avatar */ avatar: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Teams in external providers, such as Slack or GitHub, that are linked to this team */ externalTeams?: Array<{ /** * ID of the user or team in the provider */ externalId?: string; /** * ID of the Sentry user. Only set for user mappings */ userId?: string; /** * ID of the Sentry team. Only set for team mappings */ teamId?: string; /** * ID of the external actor mapping */ id: string; /** * Provider of the external actor, such as github or slack */ provider: string; /** * Name of the user or team in the provider, such as @octocat */ externalName: string; /** * ID of the integration the mapping belongs to */ integrationId: string; }>; /** * Organization the team belongs to */ organization?: { /** * Features enabled for the organization */ features?: Array; /** * Server-wide options that the Sentry UI reads */ extraOptions?: { [key: string]: { [key: string]: unknown; }; }; /** * Scopes the requesting user has in the organization */ access?: Array; /** * Onboarding tasks the organization has completed or skipped */ onboardingTasks?: Array<{ /** * Onboarding task key, such as create_project */ task: string | null; /** * Task status: complete or skipped */ status: string; /** * When the task's completion was marked as seen, or null */ completionSeen: string | null; /** * When the task was completed or skipped */ dateCompleted: string; /** * Data recorded for the task. Most tasks record none, so it's often empty */ data: { /** * ID of the member whose invite completed the invite_member task */ invited_member_id?: number; /** * Platform of the first event, for the first_event task */ platform?: string | null; /** * Slug of the plugin enabled for the task */ plugin?: string; /** * Integration providers installed for the integrations task */ providers?: Array; }; }>; /** * Organization ID */ id: string; /** * Organization slug */ slug: string; /** * Organization status */ status: { /** * Status ID: active, pending_deletion, deletion_in_progress or relocation_pending_approval */ id: string; /** * Status label, such as active or pending deletion */ name: string; }; /** * Organization name, or its slug when it has no name */ name: string; /** * When the organization was created (ISO 8601) */ dateCreated: string; /** * Whether the organization is an early adopter */ isEarlyAdopter: boolean; /** * Whether members must use two-factor authentication */ require2FA: boolean; /** * Organization avatar */ avatar: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Organization and region URLs */ links: { /** * Base URL of the organization */ organizationUrl: string; /** * Base URL of the API for the organization's region */ regionUrl: string; }; /** * Whether SSO is configured for the organization */ hasAuthProvider: boolean; /** * Whether members can invite other members */ allowMemberInvite: boolean; /** * Whether members can create projects */ allowMemberProjectCreation: boolean; /** * Whether Sentry superusers can access the organization */ allowSuperuserAccess: boolean; }; /** * Projects the team has access to */ projects?: Array<{ /** * Counts of non-transaction events per interval over the requested stats period, as [timestamp, count] pairs. Only included when a stats period is requested */ stats?: Array> | { [key: string]: number; }; /** * Counts of transactions per interval over the requested stats period, as [timestamp, count] pairs. Only included when transaction stats are requested */ transactionStats?: Array>; /** * Crash-free session rates for the current and previous stats period. Only included when session stats are requested */ sessionStats?: { /** * Crash-free rate in the current period, as a percentage. Null when there's no session data */ currentCrashFreeRate: number | null; /** * Crash-free rate in the previous period, as a percentage. Null when there's no session data */ previousCrashFreeRate: number | null; /** * Whether the project has release health (session) data */ hasHealthData: boolean; }; /** * ID of the project */ id: string; /** * Slug of the project */ slug: string; /** * Name of the project */ name: string; /** * Platform of the project */ platform: string | null; /** * When the project was created (ISO 8601) */ dateCreated: string; /** * Whether the requesting user bookmarked the project */ isBookmarked: boolean; /** * Whether the requesting user is a member of a team with access to the project */ isMember: boolean; /** * Features enabled for the project */ features: Array; /** * When the project received its first event (ISO 8601) */ firstEvent: string | null; /** * Whether the project has sent transactions */ firstTransactionEvent: boolean; /** * Scopes the requesting user has on the project through team membership and organization role */ access: Array; /** * Whether the requesting user has access to the project */ hasAccess: boolean; /** * Whether the project has sent user feedback */ hasFeedbacks: boolean; /** * Whether the project has sent feature flags */ hasFlags: boolean; /** * Whether the project has sent an event with a minified stack trace */ hasMinifiedStackTrace: boolean; /** * Whether the project has cron monitors */ hasMonitors: boolean; /** * Whether the project has sent user feedback from the user feedback widget */ hasNewFeedbacks: boolean; /** * Whether the project has sent profiles */ hasProfiles: boolean; /** * Whether the project has sent replays */ hasReplays: boolean; /** * Whether the project has sent sessions */ hasSessions: boolean; /** * Whether the project has sent HTTP request spans used by Insights */ hasInsightsHttp: boolean; /** * Whether the project has sent database spans used by Insights */ hasInsightsDb: boolean; /** * Whether the project has sent asset spans used by Insights */ hasInsightsAssets: boolean; /** * Whether the project has sent app start spans used by Insights */ hasInsightsAppStart: boolean; /** * Whether the project has sent screen load spans used by Insights */ hasInsightsScreenLoad: boolean; /** * Whether the project has sent web vitals spans used by Insights */ hasInsightsVitals: boolean; /** * Whether the project has sent cache spans used by Insights */ hasInsightsCaches: boolean; /** * Whether the project has sent queue spans used by Insights */ hasInsightsQueues: boolean; /** * Whether the project has sent AI agent spans used by Insights */ hasInsightsAgentMonitoring: boolean; /** * Whether the project has sent MCP spans used by Insights */ hasInsightsMCP: boolean; /** * Whether the project has sent logs. Always true outside sentry.io */ hasLogs: boolean; /** * Whether the project has sent trace metrics. Always true outside sentry.io */ hasTraceMetrics: boolean; /** * Whether this is the Sentry install's own internal project */ isInternal: boolean; /** * Whether the project is public */ isPublic: boolean; /** * Avatar of the project. Always a letter avatar */ avatar: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Hex color code for the project, derived from its slug unless set explicitly */ color: string; /** * Status of the project: active, deleted, or unknown */ status: string; }>; }>; export type ListOrganizationAiConversationsResponse = Array<{ /** * When the conversation's last AI span happened, as a Unix timestamp in milliseconds */ endTimestamp: number; /** * Number of AI spans whose status isn't ok, cancelled or unknown */ errors: number; /** * Total duration of the conversation's LLM calls in milliseconds */ generationDuration: number; /** * Number of input tokens used by LLM calls */ inputTokens: number; /** * Number of LLM calls */ llmCalls: number; /** * Number of output tokens used by LLM calls */ outputTokens: number; /** * When the conversation's first AI span happened, as a Unix timestamp in milliseconds */ startTimestamp: number; /** * Number of tool calls */ toolCalls: number; /** * Number of failed tool calls */ toolErrors: number; /** * Names of the tools called, sorted */ toolNames: Array; /** * Total cost of LLM calls */ totalCost: number; /** * Total number of tokens used by LLM calls */ totalTokens: number; /** * ID of the conversation */ conversationId: string; /** * Elapsed time between the first and last AI spans in milliseconds */ timeSpan: number; /** * Stored title of the conversation. Null when it has none yet */ title: string | null; /** * ID of the project the conversation belongs to */ projectId: number | null; /** * Names of the agents in the conversation */ flow: Array; /** * Number of traces in the conversation */ traceCount: number; /** * IDs of the traces in the conversation */ traceIds: Array; /** * First input message of the conversation */ firstInput: string | null; /** * Last output message of the conversation */ lastOutput: string | null; /** * User who started the conversation */ user: { /** * ID of the user who started the conversation */ id: string | null; /** * Email of the user */ email: string | null; /** * Username of the user */ username: string | null; /** * IP address of the user */ ip_address: string | null; } | null; /** * Projects the conversation's spans belong to */ projects: Array<{ /** * ID of the project */ id: number; /** * Name of the project */ name: string; /** * Slug of the project */ slug: string; }>; /** * URL of the conversation in Sentry */ webUrl: string; }>; export type ListOrganizationClientKeysResponse = Array<{ /** * ID of the client key, same as its public key */ id: string; /** * Name of the client key */ name: string; /** * Name of the client key, same as name */ label: string; /** * Public key */ public: string | null; /** * Secret key */ secret: string | null; /** * ID of the project the key belongs to */ projectId: number; /** * Whether the client key accepts events */ isActive: boolean; /** * Rate limit for events sent with the key. Null when there's none */ rateLimit: { /** * Rate limit window in seconds */ window: number; /** * Number of events accepted per window */ count: number; } | null; /** * DSN and ingestion endpoints for the key */ dsn: { /** * DSN that includes the secret key */ secret: string; /** * Public DSN to configure SDKs with */ public: string; /** * Endpoint for Content Security Policy reports */ csp: string; /** * Endpoint for security reports */ security: string; /** * Endpoint for minidump crash reports */ minidump: string; /** * Endpoint for Network Error Logging reports */ nel: string; /** * Endpoint for Unreal Engine crash reports */ unreal: string; /** * Endpoint for cron monitor check-ins */ crons: string; /** * URL of the JavaScript SDK Loader script */ cdn: string; /** * Endpoint for PlayStation crash reports */ playstation: string; /** * Base URL for integration endpoints, such as the OpenTelemetry endpoints */ integration: string; /** * OpenTelemetry (OTLP) endpoint for traces */ otlp_traces: string; /** * OpenTelemetry (OTLP) endpoint for logs */ otlp_logs: string; }; /** * JavaScript SDK version the Loader serves */ browserSdkVersion: string; /** * JavaScript SDK versions the Loader can serve */ browserSdk: { /** * JavaScript SDK versions the Loader can serve, as [value, label] pairs */ choices: Array>; }; /** * When the client key was created (ISO 8601) */ dateCreated: string | null; /** * Features the JavaScript SDK Loader enables */ dynamicSdkLoaderOptions: { /** * Whether the Loader enables Session Replay */ hasReplay: boolean; /** * Whether the Loader enables tracing */ hasPerformance: boolean; /** * Whether the Loader loads the debug bundle */ hasDebug: boolean; /** * Whether the Loader enables User Feedback */ hasFeedback: boolean; /** * Whether the Loader enables logs and metrics */ hasLogsAndMetrics: boolean; }; /** * What the key is used for, such as user or profiling. Only included for superusers */ useCase?: string; }>; export type ListOrganizationCodeMappingsResponse = Array<{ /** * ID of the code mapping */ id: string; /** * ID of the project */ projectId: string; /** * Slug of the project */ projectSlug: string; /** * ID of the repository */ repoId: string; /** * Name of the repository */ repoName: string; /** * ID of the repository's integration */ integrationId: string | null; /** * Provider of the repository's integration */ provider: { /** * Key of the integration provider, such as github */ key: string; /** * Slug of the integration provider, same as key */ slug: string; /** * Display name of the integration provider */ name: string; /** * Whether the integration can be installed from Sentry */ canAdd: boolean; /** * Whether the integration must be uninstalled from the provider instead of in Sentry */ canDisable: boolean; /** * Features the integration provider supports, such as issue-basic or commits */ features: Array; /** * Extra provider details shown during setup, such as alerts and configuration instructions */ aspects: { /** * Alerts shown during setup */ alerts?: Array<{ /** * Style of the alert, such as warning */ type: string; /** * Icon shown with the alert, such as icon-warning-sm */ icon: string; /** * Text of the alert, in Markdown */ text: string; }>; /** * Configuration step after install */ configure_integration?: { /** * Title of the configuration step */ title: string; }; /** * Whether the integration is enabled without an install flow */ directEnable?: boolean; /** * Dialog shown before the integration is disabled */ disable_dialog?: { /** * Label of the dialog's confirm button */ actionText: string; /** * Text of the dialog */ body: string; }; /** * Where to install the integration when it's installed outside Sentry */ externalInstall?: { /** * URL to install the integration from, such as a marketplace */ url: string; /** * Label of the install button */ buttonText: string; /** * Notice shown before the user leaves Sentry */ noticeText: string; }; /** * Dialog shown before the integration is removed */ removal_dialog?: { /** * Label of the dialog's confirm button */ actionText: string; /** * Text of the dialog */ body: string; }; }; } | null; /** * Stack trace path prefix that the mapping replaces */ stackRoot: string; /** * Repository path prefix that replaces the stack root */ sourceRoot: string; /** * Branch to link source files on */ defaultBranch: string | null; /** * Whether Sentry created the mapping automatically */ automaticallyGenerated: boolean; /** * Whether the mapping has a CODEOWNERS file linked */ hasCodeOwner: boolean; }>; export type ListOrganizationIntegrationResponse = Array<{ /** * ID of the integration */ id: string; /** * Name of the integration, usually the connected account or workspace */ name: string; /** * URL of the connected account's icon */ icon: string | null; /** * Domain of the connected account, such as github.com/example-org */ domainName: string | null; /** * Type of the connected account, such as Organization or User */ accountType: string | null; /** * Permission scopes granted to the integration */ scopes: Array | null; /** * Whether the installation lacks permissions the latest version of the integration needs. Null for providers without a permissions model */ outOfDate: boolean | null; /** * Features the installation can't support because of missing permissions. Null for providers without a permissions model */ missingFeatures: Array<{ /** * Key of the missing feature */ key: string; /** * Description of the missing feature */ description: string; }> | null; /** * Status of the integration */ status: 'active' | 'disabled' | 'pending_deletion' | 'deletion_in_progress'; /** * Integration provider details */ provider: { /** * Key of the integration provider, such as github */ key: string; /** * Slug of the integration provider, same as key */ slug: string; /** * Display name of the integration provider */ name: string; /** * Whether the integration can be installed from Sentry */ canAdd: boolean; /** * Whether the integration must be uninstalled from the provider instead of in Sentry */ canDisable: boolean; /** * Features the integration provider supports, such as issue-basic or commits */ features: Array; /** * Extra provider details shown during setup, such as alerts and configuration instructions */ aspects: { /** * Alerts shown during setup */ alerts?: Array<{ /** * Style of the alert, such as warning */ type: string; /** * Icon shown with the alert, such as icon-warning-sm */ icon: string; /** * Text of the alert, in Markdown */ text: string; }>; /** * Configuration step after install */ configure_integration?: { /** * Title of the configuration step */ title: string; }; /** * Whether the integration is enabled without an install flow */ directEnable?: boolean; /** * Dialog shown before the integration is disabled */ disable_dialog?: { /** * Label of the dialog's confirm button */ actionText: string; /** * Text of the dialog */ body: string; }; /** * Where to install the integration when it's installed outside Sentry */ externalInstall?: { /** * URL to install the integration from, such as a marketplace */ url: string; /** * Label of the install button */ buttonText: string; /** * Notice shown before the user leaves Sentry */ noticeText: string; }; /** * Dialog shown before the integration is removed */ removal_dialog?: { /** * Label of the dialog's confirm button */ actionText: string; /** * Text of the dialog */ body: string; }; }; }; /** * Organization-level configuration fields of the integration */ configOrganization: unknown; /** * Configuration values the organization set for the integration */ configData: unknown; /** * ID of the connected account in the provider */ externalId: string; /** * ID of the organization the integration is installed in */ organizationId: number; /** * Status of the integration in this organization */ organizationIntegrationStatus: 'active' | 'disabled' | 'pending_deletion' | 'deletion_in_progress'; /** * When the integration's grace period ends (ISO 8601). Null when there's no grace period */ gracePeriodEnd: string | null; }>; export type ListOrganizationMemberResponse = Array<{ /** * Users in external providers, such as Slack or GitHub, linked to the member's user. Included only when requested */ externalUsers?: Array<{ /** * ID of the user or team in the provider */ externalId?: string; /** * ID of the Sentry user. Only set for user mappings */ userId?: string; /** * ID of the Sentry team. Only set for team mappings */ teamId?: string; /** * ID of the external actor mapping */ id: string; /** * Provider of the external actor, such as github or slack */ provider: string; /** * Name of the user or team in the provider, such as @octocat */ externalName: string; /** * ID of the integration the mapping belongs to */ integrationId: string; }>; /** * Organization member ID */ id: string; /** * Email address of the member's user, or the invited email address if they have no account yet */ email: string; /** * Display name of the member's user, or their email address if they have no account yet */ name: string; /** * The member's user. Null for invited members without an account, or if the user can't be found */ user: { /** * SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access */ identities?: Array<{ /** * SSO identity ID */ id: string; /** * User's identifier at the auth provider */ name: string; /** * Organization the auth provider belongs to */ organization: { /** * Organization slug */ slug: string; /** * Organization name */ name: string; }; /** * Auth provider of the identity */ provider: { /** * Auth provider key, such as google or saml2 */ id: string; /** * Display name of the auth provider */ name: string; }; /** * When the identity was last verified by signing in through the auth provider */ dateVerified: string; /** * When the identity was last synced from the auth provider */ dateSynced: string; }>; /** * User avatar */ avatar?: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Two-factor authenticators of the user, without backup methods such as recovery codes */ authenticators?: Array<{ /** * Authenticator ID */ id: string; /** * Authenticator type, such as totp, sms, u2f or recovery */ type: string; /** * Display name of the authenticator type */ name: string; /** * When the authenticator was added */ dateCreated: string; /** * When the authenticator was last used, or null */ dateUsed: string | null; }>; /** * Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization */ canReset2fa?: boolean; /** * User ID */ id: string; /** * Display name: the user's name, or their email or username if no name is set */ name: string; /** * Username */ username: string; /** * Primary email address */ email: string; /** * Gravatar URL for the primary email address */ avatarUrl: string; /** * Whether the account is active */ isActive: boolean; /** * Whether the account is suspended. Suspended users can't sign in */ isSuspended: boolean; /** * Whether the user has a password set */ hasPasswordAuth: boolean; /** * Whether the account is managed, which stops the user from changing their username, password and similar details */ isManaged: boolean; /** * When the account was created */ dateJoined: string; /** * When the user last signed in, or null */ lastLogin: string | null; /** * Whether the user has two-factor authentication enabled */ has2fa: boolean; /** * When the user was last active, or null */ lastActive: string | null; /** * Whether the user is a superuser */ isSuperuser: boolean; /** * Whether the user has staff status */ isStaff: boolean; /** * Deprecated. Always an empty object */ experiments: { [key: string]: string; }; /** * Email addresses of the user. Only included for the requesting user or superusers; empty otherwise */ emails: Array<{ /** * Email ID */ id: string; /** * Email address */ email: string; /** * Whether the email address is verified */ is_verified: boolean; }>; } | null; /** * ID of the member's organization role */ orgRole: string; /** * Whether the member has no user account linked yet, as with an invite that hasn't been accepted */ pending: boolean; /** * Whether the member's invite has expired */ expired: boolean; /** * Member flags */ flags: { /** * Whether the member is provisioned and managed through the organization's identity provider (SCIM) */ 'idp:provisioned': boolean; /** * Whether the member's organization role is set by the identity provider through SCIM */ 'idp:role-restricted': boolean; /** * Whether the member has linked their account to the organization's SSO provider */ 'sso:linked': boolean; /** * Whether the member's SSO link is invalid */ 'sso:invalid': boolean; /** * Whether the member is restricted by the plan's member limit */ 'member-limit:restricted': boolean; /** * Whether the member is managed by an active partnership and can't be changed until it ends */ 'partnership:restricted': boolean; }; /** * When the member was added or invited */ dateCreated: string; /** * Invite status */ inviteStatus: 'approved' | 'requested_to_be_invited' | 'requested_to_join' | null; /** * Name of the user who invited the member, or null */ inviterName: string | null; }>; export type ListOrganizationReleaseCommitsResponse = Array<{ /** * Commit SHA */ id: string; /** * Commit message */ message: string | null; /** * When the commit was made (ISO 8601) */ dateCreated: string; /** * Pull request the commit belongs to */ pullRequest: { /** * Number or key of the pull request in the provider */ id: string; /** * Title of the pull request */ title: string | null; /** * Description of the pull request */ message: string | null; /** * When Sentry recorded the pull request (ISO 8601) */ dateCreated: string; /** * When the pull request was merged (ISO 8601). Null when it isn't merged */ mergedAt: string | null; /** * State of the pull request: merged, open, closed, draft or unknown. Null when not known */ status: 'merged' | 'open' | 'closed' | 'draft' | 'unknown' | null; /** * Repository of the pull request */ repository: { /** * URL of the repository */ url?: string | null; /** * Provider of the repository, with its id and name */ provider?: { [key: string]: string; }; /** * Status of the repository */ status?: 'active' | 'disabled' | 'pending_deletion' | 'deletion_in_progress'; /** * ID of the repository's integration. Null for repositories added without an integration */ integrationId?: string | null; /** * Identifier of the repository in the provider, such as owner/name */ externalSlug?: string | null; /** * ID of the repository in the provider */ externalId?: string | null; /** * Settings of the repository. Only set when expand includes settings. Null when it has none */ settings?: { /** * Whether AI code review is on for the repository */ enabledCodeReview: boolean; /** * Pull request events that start a code review: on_new_commit or on_ready_for_review */ codeReviewTriggers: Array; } | null; /** * ID of the repository */ id: string; /** * Name of the repository, such as owner/name */ name: string; /** * When the repository was added to Sentry (ISO 8601) */ dateCreated: string; }; /** * Author of the pull request, or an empty object when it has none */ author: { /** * SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access */ identities?: Array<{ /** * SSO identity ID */ id: string; /** * User's identifier at the auth provider */ name: string; /** * Organization the auth provider belongs to */ organization: { /** * Organization slug */ slug: string; /** * Organization name */ name: string; }; /** * Auth provider of the identity */ provider: { /** * Auth provider key, such as google or saml2 */ id: string; /** * Display name of the auth provider */ name: string; }; /** * When the identity was last verified by signing in through the auth provider */ dateVerified: string; /** * When the identity was last synced from the auth provider */ dateSynced: string; }>; /** * User avatar */ avatar?: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Two-factor authenticators of the user, without backup methods such as recovery codes */ authenticators?: Array<{ /** * Authenticator ID */ id: string; /** * Authenticator type, such as totp, sms, u2f or recovery */ type: string; /** * Display name of the authenticator type */ name: string; /** * When the authenticator was added */ dateCreated: string; /** * When the authenticator was last used, or null */ dateUsed: string | null; }>; /** * Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization */ canReset2fa?: boolean; /** * User ID */ id: string; /** * Display name: the user's name, or their email or username if no name is set */ name: string; /** * Username */ username: string; /** * Primary email address */ email: string; /** * Gravatar URL for the primary email address */ avatarUrl: string; /** * Whether the account is active */ isActive: boolean; /** * Whether the account is suspended. Suspended users can't sign in */ isSuspended: boolean; /** * Whether the user has a password set */ hasPasswordAuth: boolean; /** * Whether the account is managed, which stops the user from changing their username, password and similar details */ isManaged: boolean; /** * When the account was created */ dateJoined: string; /** * When the user last signed in, or null */ lastLogin: string | null; /** * Whether the user has two-factor authentication enabled */ has2fa: boolean; /** * When the user was last active, or null */ lastActive: string | null; /** * Whether the user is a superuser */ isSuperuser: boolean; /** * Whether the user has staff status */ isStaff: boolean; /** * Deprecated. Always an empty object */ experiments: { [key: string]: string; }; /** * Email addresses of the user. Only included for the requesting user or superusers; empty otherwise */ emails: Array<{ /** * Email ID */ id: string; /** * Email address */ email: string; /** * Whether the email address is verified */ is_verified: boolean; }>; } | { /** * Commit author name */ name: string | null; /** * Commit author email */ email: string; } | { [key: string]: unknown; }; /** * URL of the pull request in the provider, or null when the provider can't build one */ externalUrl: string | null; } | null; /** * How the commit was found as a suspect commit: via commit in release or via SCM integration. Empty for other commits */ suspectCommitType: string; /** * Repository the commit belongs to */ repository?: { /** * URL of the repository */ url?: string | null; /** * Provider of the repository, with its id and name */ provider?: { [key: string]: string; }; /** * Status of the repository */ status?: 'active' | 'disabled' | 'pending_deletion' | 'deletion_in_progress'; /** * ID of the repository's integration. Null for repositories added without an integration */ integrationId?: string | null; /** * Identifier of the repository in the provider, such as owner/name */ externalSlug?: string | null; /** * ID of the repository in the provider */ externalId?: string | null; /** * Settings of the repository. Only set when expand includes settings. Null when it has none */ settings?: { /** * Whether AI code review is on for the repository */ enabledCodeReview: boolean; /** * Pull request events that start a code review: on_new_commit or on_ready_for_review */ codeReviewTriggers: Array; } | null; /** * ID of the repository */ id: string; /** * Name of the repository, such as owner/name */ name: string; /** * When the repository was added to Sentry (ISO 8601) */ dateCreated: string; }; /** * Author of the commit: a Sentry user when the email matches one, otherwise the name and email from the commit */ author?: { /** * SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access */ identities?: Array<{ /** * SSO identity ID */ id: string; /** * User's identifier at the auth provider */ name: string; /** * Organization the auth provider belongs to */ organization: { /** * Organization slug */ slug: string; /** * Organization name */ name: string; }; /** * Auth provider of the identity */ provider: { /** * Auth provider key, such as google or saml2 */ id: string; /** * Display name of the auth provider */ name: string; }; /** * When the identity was last verified by signing in through the auth provider */ dateVerified: string; /** * When the identity was last synced from the auth provider */ dateSynced: string; }>; /** * User avatar */ avatar?: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Two-factor authenticators of the user, without backup methods such as recovery codes */ authenticators?: Array<{ /** * Authenticator ID */ id: string; /** * Authenticator type, such as totp, sms, u2f or recovery */ type: string; /** * Display name of the authenticator type */ name: string; /** * When the authenticator was added */ dateCreated: string; /** * When the authenticator was last used, or null */ dateUsed: string | null; }>; /** * Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization */ canReset2fa?: boolean; /** * User ID */ id: string; /** * Display name: the user's name, or their email or username if no name is set */ name: string; /** * Username */ username: string; /** * Primary email address */ email: string; /** * Gravatar URL for the primary email address */ avatarUrl: string; /** * Whether the account is active */ isActive: boolean; /** * Whether the account is suspended. Suspended users can't sign in */ isSuspended: boolean; /** * Whether the user has a password set */ hasPasswordAuth: boolean; /** * Whether the account is managed, which stops the user from changing their username, password and similar details */ isManaged: boolean; /** * When the account was created */ dateJoined: string; /** * When the user last signed in, or null */ lastLogin: string | null; /** * Whether the user has two-factor authentication enabled */ has2fa: boolean; /** * When the user was last active, or null */ lastActive: string | null; /** * Whether the user is a superuser */ isSuperuser: boolean; /** * Whether the user has staff status */ isStaff: boolean; /** * Deprecated. Always an empty object */ experiments: { [key: string]: string; }; /** * Email addresses of the user. Only included for the requesting user or superusers; empty otherwise */ emails: Array<{ /** * Email ID */ id: string; /** * Email address */ email: string; /** * Whether the email address is verified */ is_verified: boolean; }>; } | { /** * Commit author name */ name: string | null; /** * Commit author email */ email: string; } | { [key: string]: unknown; }; /** * Releases that contain the commit */ releases: Array<{ /** * Version of the release */ version: string; /** * Short version of the release */ shortVersion: string; /** * Commit ref of the release */ ref: string | null; /** * URL of the release */ url: string | null; /** * When the release was released (ISO 8601) */ dateReleased: string | null; /** * When the release was created (ISO 8601) */ dateCreated: string; }>; }>; export type ListOrganizationReleasesResponse = Array<{ /** * Version control reference, such as a commit SHA or tag */ ref?: string | null; /** * Release URL */ url?: string | null; /** * When the release went live (ISO 8601) */ dateReleased?: string | null; /** * When the release was created (ISO 8601) */ dateCreated?: string | null; /** * When the release started (ISO 8601) */ dateStarted?: string | null; /** * Release owner */ owner?: { /** * SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access */ identities?: Array<{ /** * SSO identity ID */ id: string; /** * User's identifier at the auth provider */ name: string; /** * Organization the auth provider belongs to */ organization: { /** * Organization slug */ slug: string; /** * Organization name */ name: string; }; /** * Auth provider of the identity */ provider: { /** * Auth provider key, such as google or saml2 */ id: string; /** * Display name of the auth provider */ name: string; }; /** * When the identity was last verified by signing in through the auth provider */ dateVerified: string; /** * When the identity was last synced from the auth provider */ dateSynced: string; }>; /** * User avatar */ avatar?: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Two-factor authenticators of the user, without backup methods such as recovery codes */ authenticators?: Array<{ /** * Authenticator ID */ id: string; /** * Authenticator type, such as totp, sms, u2f or recovery */ type: string; /** * Display name of the authenticator type */ name: string; /** * When the authenticator was added */ dateCreated: string; /** * When the authenticator was last used, or null */ dateUsed: string | null; }>; /** * Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization */ canReset2fa?: boolean; /** * User ID */ id: string; /** * Display name: the user's name, or their email or username if no name is set */ name: string; /** * Username */ username: string; /** * Primary email address */ email: string; /** * Gravatar URL for the primary email address */ avatarUrl: string; /** * Whether the account is active */ isActive: boolean; /** * Whether the account is suspended. Suspended users can't sign in */ isSuspended: boolean; /** * Whether the user has a password set */ hasPasswordAuth: boolean; /** * Whether the account is managed, which stops the user from changing their username, password and similar details */ isManaged: boolean; /** * When the account was created */ dateJoined: string; /** * When the user last signed in, or null */ lastLogin: string | null; /** * Whether the user has two-factor authentication enabled */ has2fa: boolean; /** * When the user was last active, or null */ lastActive: string | null; /** * Whether the user is a superuser */ isSuperuser: boolean; /** * Whether the user has staff status */ isStaff: boolean; /** * Deprecated. Always an empty object */ experiments: { [key: string]: string; }; /** * Email addresses of the user. Only included for the requesting user or superusers; empty otherwise */ emails: Array<{ /** * Email ID */ id: string; /** * Email address */ email: string; /** * Whether the email address is verified */ is_verified: boolean; }>; } | null; /** * Most recent commit in the release */ lastCommit?: { /** * Commit SHA */ id: string; /** * Commit message */ message: string | null; /** * When the commit was made (ISO 8601) */ dateCreated: string; /** * Pull request the commit belongs to */ pullRequest: { /** * Number or key of the pull request in the provider */ id: string; /** * Title of the pull request */ title: string | null; /** * Description of the pull request */ message: string | null; /** * When Sentry recorded the pull request (ISO 8601) */ dateCreated: string; /** * When the pull request was merged (ISO 8601). Null when it isn't merged */ mergedAt: string | null; /** * State of the pull request: merged, open, closed, draft or unknown. Null when not known */ status: 'merged' | 'open' | 'closed' | 'draft' | 'unknown' | null; /** * Repository of the pull request */ repository: { /** * URL of the repository */ url?: string | null; /** * Provider of the repository, with its id and name */ provider?: { [key: string]: string; }; /** * Status of the repository */ status?: 'active' | 'disabled' | 'pending_deletion' | 'deletion_in_progress'; /** * ID of the repository's integration. Null for repositories added without an integration */ integrationId?: string | null; /** * Identifier of the repository in the provider, such as owner/name */ externalSlug?: string | null; /** * ID of the repository in the provider */ externalId?: string | null; /** * Settings of the repository. Only set when expand includes settings. Null when it has none */ settings?: { /** * Whether AI code review is on for the repository */ enabledCodeReview: boolean; /** * Pull request events that start a code review: on_new_commit or on_ready_for_review */ codeReviewTriggers: Array; } | null; /** * ID of the repository */ id: string; /** * Name of the repository, such as owner/name */ name: string; /** * When the repository was added to Sentry (ISO 8601) */ dateCreated: string; }; /** * Author of the pull request, or an empty object when it has none */ author: { /** * SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access */ identities?: Array<{ /** * SSO identity ID */ id: string; /** * User's identifier at the auth provider */ name: string; /** * Organization the auth provider belongs to */ organization: { /** * Organization slug */ slug: string; /** * Organization name */ name: string; }; /** * Auth provider of the identity */ provider: { /** * Auth provider key, such as google or saml2 */ id: string; /** * Display name of the auth provider */ name: string; }; /** * When the identity was last verified by signing in through the auth provider */ dateVerified: string; /** * When the identity was last synced from the auth provider */ dateSynced: string; }>; /** * User avatar */ avatar?: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Two-factor authenticators of the user, without backup methods such as recovery codes */ authenticators?: Array<{ /** * Authenticator ID */ id: string; /** * Authenticator type, such as totp, sms, u2f or recovery */ type: string; /** * Display name of the authenticator type */ name: string; /** * When the authenticator was added */ dateCreated: string; /** * When the authenticator was last used, or null */ dateUsed: string | null; }>; /** * Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization */ canReset2fa?: boolean; /** * User ID */ id: string; /** * Display name: the user's name, or their email or username if no name is set */ name: string; /** * Username */ username: string; /** * Primary email address */ email: string; /** * Gravatar URL for the primary email address */ avatarUrl: string; /** * Whether the account is active */ isActive: boolean; /** * Whether the account is suspended. Suspended users can't sign in */ isSuspended: boolean; /** * Whether the user has a password set */ hasPasswordAuth: boolean; /** * Whether the account is managed, which stops the user from changing their username, password and similar details */ isManaged: boolean; /** * When the account was created */ dateJoined: string; /** * When the user last signed in, or null */ lastLogin: string | null; /** * Whether the user has two-factor authentication enabled */ has2fa: boolean; /** * When the user was last active, or null */ lastActive: string | null; /** * Whether the user is a superuser */ isSuperuser: boolean; /** * Whether the user has staff status */ isStaff: boolean; /** * Deprecated. Always an empty object */ experiments: { [key: string]: string; }; /** * Email addresses of the user. Only included for the requesting user or superusers; empty otherwise */ emails: Array<{ /** * Email ID */ id: string; /** * Email address */ email: string; /** * Whether the email address is verified */ is_verified: boolean; }>; } | { /** * Commit author name */ name: string | null; /** * Commit author email */ email: string; } | { [key: string]: unknown; }; /** * URL of the pull request in the provider, or null when the provider can't build one */ externalUrl: string | null; } | null; /** * How the commit was found as a suspect commit: via commit in release or via SCM integration. Empty for other commits */ suspectCommitType: string; /** * Repository the commit belongs to */ repository?: { /** * URL of the repository */ url?: string | null; /** * Provider of the repository, with its id and name */ provider?: { [key: string]: string; }; /** * Status of the repository */ status?: 'active' | 'disabled' | 'pending_deletion' | 'deletion_in_progress'; /** * ID of the repository's integration. Null for repositories added without an integration */ integrationId?: string | null; /** * Identifier of the repository in the provider, such as owner/name */ externalSlug?: string | null; /** * ID of the repository in the provider */ externalId?: string | null; /** * Settings of the repository. Only set when expand includes settings. Null when it has none */ settings?: { /** * Whether AI code review is on for the repository */ enabledCodeReview: boolean; /** * Pull request events that start a code review: on_new_commit or on_ready_for_review */ codeReviewTriggers: Array; } | null; /** * ID of the repository */ id: string; /** * Name of the repository, such as owner/name */ name: string; /** * When the repository was added to Sentry (ISO 8601) */ dateCreated: string; }; /** * Author of the commit: a Sentry user when the email matches one, otherwise the name and email from the commit */ author?: { /** * SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access */ identities?: Array<{ /** * SSO identity ID */ id: string; /** * User's identifier at the auth provider */ name: string; /** * Organization the auth provider belongs to */ organization: { /** * Organization slug */ slug: string; /** * Organization name */ name: string; }; /** * Auth provider of the identity */ provider: { /** * Auth provider key, such as google or saml2 */ id: string; /** * Display name of the auth provider */ name: string; }; /** * When the identity was last verified by signing in through the auth provider */ dateVerified: string; /** * When the identity was last synced from the auth provider */ dateSynced: string; }>; /** * User avatar */ avatar?: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Two-factor authenticators of the user, without backup methods such as recovery codes */ authenticators?: Array<{ /** * Authenticator ID */ id: string; /** * Authenticator type, such as totp, sms, u2f or recovery */ type: string; /** * Display name of the authenticator type */ name: string; /** * When the authenticator was added */ dateCreated: string; /** * When the authenticator was last used, or null */ dateUsed: string | null; }>; /** * Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization */ canReset2fa?: boolean; /** * User ID */ id: string; /** * Display name: the user's name, or their email or username if no name is set */ name: string; /** * Username */ username: string; /** * Primary email address */ email: string; /** * Gravatar URL for the primary email address */ avatarUrl: string; /** * Whether the account is active */ isActive: boolean; /** * Whether the account is suspended. Suspended users can't sign in */ isSuspended: boolean; /** * Whether the user has a password set */ hasPasswordAuth: boolean; /** * Whether the account is managed, which stops the user from changing their username, password and similar details */ isManaged: boolean; /** * When the account was created */ dateJoined: string; /** * When the user last signed in, or null */ lastLogin: string | null; /** * Whether the user has two-factor authentication enabled */ has2fa: boolean; /** * When the user was last active, or null */ lastActive: string | null; /** * Whether the user is a superuser */ isSuperuser: boolean; /** * Whether the user has staff status */ isStaff: boolean; /** * Deprecated. Always an empty object */ experiments: { [key: string]: string; }; /** * Email addresses of the user. Only included for the requesting user or superusers; empty otherwise */ emails: Array<{ /** * Email ID */ id: string; /** * Email address */ email: string; /** * Whether the email address is verified */ is_verified: boolean; }>; } | { /** * Commit author name */ name: string | null; /** * Commit author email */ email: string; } | { [key: string]: unknown; }; } | null; /** * Most recent deploy of the release */ lastDeploy?: { /** * When the deploy started (ISO 8601) */ dateStarted?: string | null; /** * URL of the deploy */ url?: string | null; /** * ID of the deploy */ id: string; /** * Environment the release was deployed to */ environment: string; /** * When the deploy finished (ISO 8601) */ dateFinished: string; /** * Name of the deploy */ name: string | null; } | null; /** * When the release received its first event (ISO 8601) */ firstEvent?: string | null; /** * When the release received its most recent event (ISO 8601) */ lastEvent?: string | null; /** * Session bounds and neighboring release versions in the current project, when a project is requested */ currentProjectMeta?: { /** * Start of the release's sessions in the project (ISO 8601) */ sessionsLowerBound?: string | null; /** * End of the release's sessions in the project (ISO 8601) */ sessionsUpperBound?: string | null; /** * Version of the next release in the project */ nextReleaseVersion?: string | null; /** * Version of the previous release in the project */ prevReleaseVersion?: string | null; /** * Version of the first release in the project */ firstReleaseVersion?: string | null; /** * Version of the latest release in the project */ lastReleaseVersion?: string | null; } | null; /** * User agent of the client that created the release */ userAgent?: string | null; /** * Adoption stage of the release in each project, keyed by project slug */ adoptionStages?: { [key: string]: { /** * Adoption stage of the release */ stage: 'adopted' | 'low_adoption' | 'replaced'; /** * When the release was adopted (ISO 8601) */ adopted: string | null; /** * When the release stopped being adopted (ISO 8601) */ unadopted: string | null; }; } | null; /** * Release ID */ id: number; /** * Version of the release */ version: string; /** * Number of new issues first seen in the release */ newGroups: number; /** * Release status */ status: 'open' | 'archived'; /** * Shortened release version */ shortVersion: string; /** * Parsed version information */ versionInfo: { /** * Human-readable version, such as 1.0.0 (123) */ description?: string; /** * Package name parsed from the release version, such as com.example.app */ package: string | null; /** * Parsed version: the raw string, plus major, minor, patch, pre, buildCode and components when it's a semantic version */ version: { /** * Major version */ major?: number; /** * Minor version */ minor?: number; /** * Patch version */ patch?: number; /** * Pre-release identifier, such as rc1 */ pre?: string | null; /** * Build code, such as 123 */ buildCode?: string | null; /** * Number of version components given */ components?: number; /** * Version string the release was created with */ raw: string; }; /** * Build hash parsed from the release version */ buildHash: string | null; } | null; /** * Extra data stored on the release */ data: { [key: string]: unknown; }; /** * Number of commits in the release */ commitCount: number; /** * Number of deploys of the release */ deployCount: number; /** * Authors of the release's commits */ authors: Array<{ /** * SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access */ identities?: Array<{ /** * SSO identity ID */ id: string; /** * User's identifier at the auth provider */ name: string; /** * Organization the auth provider belongs to */ organization: { /** * Organization slug */ slug: string; /** * Organization name */ name: string; }; /** * Auth provider of the identity */ provider: { /** * Auth provider key, such as google or saml2 */ id: string; /** * Display name of the auth provider */ name: string; }; /** * When the identity was last verified by signing in through the auth provider */ dateVerified: string; /** * When the identity was last synced from the auth provider */ dateSynced: string; }>; /** * User avatar */ avatar?: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Two-factor authenticators of the user, without backup methods such as recovery codes */ authenticators?: Array<{ /** * Authenticator ID */ id: string; /** * Authenticator type, such as totp, sms, u2f or recovery */ type: string; /** * Display name of the authenticator type */ name: string; /** * When the authenticator was added */ dateCreated: string; /** * When the authenticator was last used, or null */ dateUsed: string | null; }>; /** * Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization */ canReset2fa?: boolean; /** * User ID */ id: string; /** * Display name: the user's name, or their email or username if no name is set */ name: string; /** * Username */ username: string; /** * Primary email address */ email: string; /** * Gravatar URL for the primary email address */ avatarUrl: string; /** * Whether the account is active */ isActive: boolean; /** * Whether the account is suspended. Suspended users can't sign in */ isSuspended: boolean; /** * Whether the user has a password set */ hasPasswordAuth: boolean; /** * Whether the account is managed, which stops the user from changing their username, password and similar details */ isManaged: boolean; /** * When the account was created */ dateJoined: string; /** * When the user last signed in, or null */ lastLogin: string | null; /** * Whether the user has two-factor authentication enabled */ has2fa: boolean; /** * When the user was last active, or null */ lastActive: string | null; /** * Whether the user is a superuser */ isSuperuser: boolean; /** * Whether the user has staff status */ isStaff: boolean; /** * Deprecated. Always an empty object */ experiments: { [key: string]: string; }; /** * Email addresses of the user. Only included for the requesting user or superusers; empty otherwise */ emails: Array<{ /** * Email ID */ id: string; /** * Email address */ email: string; /** * Whether the email address is verified */ is_verified: boolean; }>; } | { /** * Commit author name */ name: string | null; /** * Commit author email */ email: string; }>; /** * Projects in the release */ projects: Array<{ /** * Release health data for the project. Only included when health data is requested */ healthData?: { /** * Median session duration in seconds */ durationP50?: number | null; /** * 90th percentile session duration in seconds */ durationP90?: number | null; /** * Percentage of users who didn't experience a crash */ crashFreeUsers?: number | null; /** * Percentage of sessions that didn't crash */ crashFreeSessions?: number | null; /** * Total number of users in the release */ totalUsers?: number | null; /** * Number of users in the release over the last 24 hours */ totalUsers24h?: number | null; /** * Number of users in the project over the last 24 hours */ totalProjectUsers24h?: number | null; /** * Total number of sessions in the release */ totalSessions?: number | null; /** * Number of sessions in the release over the last 24 hours */ totalSessions24h?: number | null; /** * Number of sessions in the project over the last 24 hours */ totalProjectSessions24h?: number | null; /** * Percentage of the project's users over the last 24 hours that were on the release */ adoption?: number | null; /** * Percentage of the project's sessions over the last 24 hours that were on the release */ sessionsAdoption?: number | null; /** * Number of crashed sessions */ sessionsCrashed: number; /** * Number of sessions with errors */ sessionsErrored: number; /** * Whether the release has session data */ hasHealthData: boolean; /** * Session or user counts over time, keyed by stats period */ stats: { [key: string]: Array>; }; } | null; /** * When the release was released in the project (ISO 8601) */ dateReleased?: string | null; /** * When the release was created (ISO 8601) */ dateCreated?: string | null; /** * When work on the release started (ISO 8601) */ dateStarted?: string | null; /** * ID of the project */ id: number; /** * Slug of the project */ slug: string; /** * Name of the project */ name: string; /** * Platform of the project */ platform: string | null; /** * Platforms of the project */ platforms: Array | null; /** * Whether the release has session data in the project */ hasHealthData: boolean; /** * Number of new issues first seen in the release in the project */ newGroups: number; }>; }>; export type ListOrganizationRepositoriesResponse = Array<{ /** * URL of the repository */ url?: string | null; /** * Provider of the repository, with its id and name */ provider?: { [key: string]: string; }; /** * Status of the repository */ status?: 'active' | 'disabled' | 'pending_deletion' | 'deletion_in_progress'; /** * ID of the repository's integration. Null for repositories added without an integration */ integrationId?: string | null; /** * Identifier of the repository in the provider, such as owner/name */ externalSlug?: string | null; /** * ID of the repository in the provider */ externalId?: string | null; /** * Settings of the repository. Only set when expand includes settings. Null when it has none */ settings?: { /** * Whether AI code review is on for the repository */ enabledCodeReview: boolean; /** * Pull request events that start a code review: on_new_commit or on_ready_for_review */ codeReviewTriggers: Array; } | null; /** * ID of the repository */ id: string; /** * Name of the repository, such as owner/name */ name: string; /** * When the repository was added to Sentry (ISO 8601) */ dateCreated: string; }>; export type ListOrganizationTagsResponse = Array<{ /** * Number of distinct values seen for the tag key */ uniqueValues?: number | null; /** * Number of events counted for the tag key. For an issue tag, this is the issue's retained event count, including events without the tag */ totalValues?: number | null; /** * Most frequent values of the tag key, ordered by count */ topValues?: Array<{ /** * Search query that matches events with the tag value. Only set for the user tag */ query?: string | null; /** * Tag key, with the `sentry:` prefix removed from built-in keys */ key: string; /** * Display label of the tag value. For the user tag, the `id:`, `email:`, `username:` or `ip:` prefix is removed */ name: string | null; /** * Tag value */ value: string | null; /** * Number of events with the tag value. Null for an empty value */ count: number | null; /** * When the tag value was last seen (ISO 8601). Null for an empty value */ lastSeen: string | null; /** * When the tag value was first seen (ISO 8601). Null for an empty value */ firstSeen: string | null; }> | null; /** * Tag key, with the `sentry:` prefix removed from built-in keys */ key: string; /** * Display label of the tag key */ name: string; }>; export type ListOrganizationTraceMetricsResponse = Array<{ /** * Name of the metric */ name: string; /** * Type of the metric: counter, gauge or distribution */ type: 'counter' | 'gauge' | 'distribution'; /** * Unit of the metric. Null when it has none */ unit: string | null; /** * Number of data points of the metric in the time range */ count: number; /** * When the metric was last seen, as a Unix timestamp. Null when not known */ lastSeen: number | null; /** * Description of the metric. Only set when expand includes context */ context?: { /** * Short description of the metric */ brief?: string; /** * Longer notes about the metric */ details?: Array; }; }>; export type ListOrganizations = Array<{ /** * Features enabled for the organization */ features?: Array; /** * Server-wide options that the Sentry UI reads */ extraOptions?: { [key: string]: { [key: string]: unknown; }; }; /** * Scopes the requesting user has in the organization */ access?: Array; /** * Onboarding tasks the organization has completed or skipped */ onboardingTasks?: Array<{ /** * Onboarding task key, such as create_project */ task: string | null; /** * Task status: complete or skipped */ status: string; /** * When the task's completion was marked as seen, or null */ completionSeen: string | null; /** * When the task was completed or skipped */ dateCompleted: string; /** * Data recorded for the task. Most tasks record none, so it's often empty */ data: { /** * ID of the member whose invite completed the invite_member task */ invited_member_id?: number; /** * Platform of the first event, for the first_event task */ platform?: string | null; /** * Slug of the plugin enabled for the task */ plugin?: string; /** * Integration providers installed for the integrations task */ providers?: Array; }; }>; /** * Organization ID */ id: string; /** * Organization slug */ slug: string; /** * Organization status */ status: { /** * Status ID: active, pending_deletion, deletion_in_progress or relocation_pending_approval */ id: string; /** * Status label, such as active or pending deletion */ name: string; }; /** * Organization name, or its slug when it has no name */ name: string; /** * When the organization was created (ISO 8601) */ dateCreated: string; /** * Whether the organization is an early adopter */ isEarlyAdopter: boolean; /** * Whether members must use two-factor authentication */ require2FA: boolean; /** * Organization avatar */ avatar: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Organization and region URLs */ links: { /** * Base URL of the organization */ organizationUrl: string; /** * Base URL of the API for the organization's region */ regionUrl: string; }; /** * Whether SSO is configured for the organization */ hasAuthProvider: boolean; /** * Whether members can invite other members */ allowMemberInvite: boolean; /** * Whether members can create projects */ allowMemberProjectCreation: boolean; /** * Whether Sentry superusers can access the organization */ allowSuperuserAccess: boolean; }>; export type ListProjectDebugFilesResponse = Array<{ /** * ID of the debug file */ id: string; /** * Debug ID without the age suffix, as a UUID */ uuid: string; /** * Debug ID of the file */ debugId: string; /** * Code ID of the file, such as the GNU build ID. Null when the file has none */ codeId: string | null; /** * CPU architecture of the file, such as x86_64 or arm64 */ cpuName: string; /** * Name of the object file */ objectName: string; /** * Format of the file, such as macho, elf, pe, pdb, breakpad or proguard */ symbolType: string; /** * HTTP headers to download the file with, such as Content-Type */ headers: { [key: string]: string; }; /** * Size of the file in bytes */ size: number; /** * SHA-1 checksum of the file */ sha1: string; /** * When the file was uploaded (ISO 8601) */ dateCreated: string; /** * Extra data about the file, such as its features. Empty when not known */ data: { /** * Kind of the object, such as executable, debug companion or library. Left out for mapping files */ type?: string; /** * Debug features the file provides, such as symtab, debug, unwind, sources or mapping */ features?: Array; }; }>; export type ListProjectEnvironments = Array<{ /** * ID of the environment */ id: string; /** * Name of the environment */ name: string; /** * Whether the environment is hidden in the project */ isHidden: boolean; }>; export type ListProjectReleaseCommitsResponse = Array<{ /** * Commit SHA */ id: string; /** * Commit message */ message: string | null; /** * When the commit was made (ISO 8601) */ dateCreated: string; /** * Pull request the commit belongs to */ pullRequest: { /** * Number or key of the pull request in the provider */ id: string; /** * Title of the pull request */ title: string | null; /** * Description of the pull request */ message: string | null; /** * When Sentry recorded the pull request (ISO 8601) */ dateCreated: string; /** * When the pull request was merged (ISO 8601). Null when it isn't merged */ mergedAt: string | null; /** * State of the pull request: merged, open, closed, draft or unknown. Null when not known */ status: 'merged' | 'open' | 'closed' | 'draft' | 'unknown' | null; /** * Repository of the pull request */ repository: { /** * URL of the repository */ url?: string | null; /** * Provider of the repository, with its id and name */ provider?: { [key: string]: string; }; /** * Status of the repository */ status?: 'active' | 'disabled' | 'pending_deletion' | 'deletion_in_progress'; /** * ID of the repository's integration. Null for repositories added without an integration */ integrationId?: string | null; /** * Identifier of the repository in the provider, such as owner/name */ externalSlug?: string | null; /** * ID of the repository in the provider */ externalId?: string | null; /** * Settings of the repository. Only set when expand includes settings. Null when it has none */ settings?: { /** * Whether AI code review is on for the repository */ enabledCodeReview: boolean; /** * Pull request events that start a code review: on_new_commit or on_ready_for_review */ codeReviewTriggers: Array; } | null; /** * ID of the repository */ id: string; /** * Name of the repository, such as owner/name */ name: string; /** * When the repository was added to Sentry (ISO 8601) */ dateCreated: string; }; /** * Author of the pull request, or an empty object when it has none */ author: { /** * SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access */ identities?: Array<{ /** * SSO identity ID */ id: string; /** * User's identifier at the auth provider */ name: string; /** * Organization the auth provider belongs to */ organization: { /** * Organization slug */ slug: string; /** * Organization name */ name: string; }; /** * Auth provider of the identity */ provider: { /** * Auth provider key, such as google or saml2 */ id: string; /** * Display name of the auth provider */ name: string; }; /** * When the identity was last verified by signing in through the auth provider */ dateVerified: string; /** * When the identity was last synced from the auth provider */ dateSynced: string; }>; /** * User avatar */ avatar?: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Two-factor authenticators of the user, without backup methods such as recovery codes */ authenticators?: Array<{ /** * Authenticator ID */ id: string; /** * Authenticator type, such as totp, sms, u2f or recovery */ type: string; /** * Display name of the authenticator type */ name: string; /** * When the authenticator was added */ dateCreated: string; /** * When the authenticator was last used, or null */ dateUsed: string | null; }>; /** * Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization */ canReset2fa?: boolean; /** * User ID */ id: string; /** * Display name: the user's name, or their email or username if no name is set */ name: string; /** * Username */ username: string; /** * Primary email address */ email: string; /** * Gravatar URL for the primary email address */ avatarUrl: string; /** * Whether the account is active */ isActive: boolean; /** * Whether the account is suspended. Suspended users can't sign in */ isSuspended: boolean; /** * Whether the user has a password set */ hasPasswordAuth: boolean; /** * Whether the account is managed, which stops the user from changing their username, password and similar details */ isManaged: boolean; /** * When the account was created */ dateJoined: string; /** * When the user last signed in, or null */ lastLogin: string | null; /** * Whether the user has two-factor authentication enabled */ has2fa: boolean; /** * When the user was last active, or null */ lastActive: string | null; /** * Whether the user is a superuser */ isSuperuser: boolean; /** * Whether the user has staff status */ isStaff: boolean; /** * Deprecated. Always an empty object */ experiments: { [key: string]: string; }; /** * Email addresses of the user. Only included for the requesting user or superusers; empty otherwise */ emails: Array<{ /** * Email ID */ id: string; /** * Email address */ email: string; /** * Whether the email address is verified */ is_verified: boolean; }>; } | { /** * Commit author name */ name: string | null; /** * Commit author email */ email: string; } | { [key: string]: unknown; }; /** * URL of the pull request in the provider, or null when the provider can't build one */ externalUrl: string | null; } | null; /** * How the commit was found as a suspect commit: via commit in release or via SCM integration. Empty for other commits */ suspectCommitType: string; /** * Repository the commit belongs to */ repository?: { /** * URL of the repository */ url?: string | null; /** * Provider of the repository, with its id and name */ provider?: { [key: string]: string; }; /** * Status of the repository */ status?: 'active' | 'disabled' | 'pending_deletion' | 'deletion_in_progress'; /** * ID of the repository's integration. Null for repositories added without an integration */ integrationId?: string | null; /** * Identifier of the repository in the provider, such as owner/name */ externalSlug?: string | null; /** * ID of the repository in the provider */ externalId?: string | null; /** * Settings of the repository. Only set when expand includes settings. Null when it has none */ settings?: { /** * Whether AI code review is on for the repository */ enabledCodeReview: boolean; /** * Pull request events that start a code review: on_new_commit or on_ready_for_review */ codeReviewTriggers: Array; } | null; /** * ID of the repository */ id: string; /** * Name of the repository, such as owner/name */ name: string; /** * When the repository was added to Sentry (ISO 8601) */ dateCreated: string; }; /** * Author of the commit: a Sentry user when the email matches one, otherwise the name and email from the commit */ author?: { /** * SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access */ identities?: Array<{ /** * SSO identity ID */ id: string; /** * User's identifier at the auth provider */ name: string; /** * Organization the auth provider belongs to */ organization: { /** * Organization slug */ slug: string; /** * Organization name */ name: string; }; /** * Auth provider of the identity */ provider: { /** * Auth provider key, such as google or saml2 */ id: string; /** * Display name of the auth provider */ name: string; }; /** * When the identity was last verified by signing in through the auth provider */ dateVerified: string; /** * When the identity was last synced from the auth provider */ dateSynced: string; }>; /** * User avatar */ avatar?: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Two-factor authenticators of the user, without backup methods such as recovery codes */ authenticators?: Array<{ /** * Authenticator ID */ id: string; /** * Authenticator type, such as totp, sms, u2f or recovery */ type: string; /** * Display name of the authenticator type */ name: string; /** * When the authenticator was added */ dateCreated: string; /** * When the authenticator was last used, or null */ dateUsed: string | null; }>; /** * Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization */ canReset2fa?: boolean; /** * User ID */ id: string; /** * Display name: the user's name, or their email or username if no name is set */ name: string; /** * Username */ username: string; /** * Primary email address */ email: string; /** * Gravatar URL for the primary email address */ avatarUrl: string; /** * Whether the account is active */ isActive: boolean; /** * Whether the account is suspended. Suspended users can't sign in */ isSuspended: boolean; /** * Whether the user has a password set */ hasPasswordAuth: boolean; /** * Whether the account is managed, which stops the user from changing their username, password and similar details */ isManaged: boolean; /** * When the account was created */ dateJoined: string; /** * When the user last signed in, or null */ lastLogin: string | null; /** * Whether the user has two-factor authentication enabled */ has2fa: boolean; /** * When the user was last active, or null */ lastActive: string | null; /** * Whether the user is a superuser */ isSuperuser: boolean; /** * Whether the user has staff status */ isStaff: boolean; /** * Deprecated. Always an empty object */ experiments: { [key: string]: string; }; /** * Email addresses of the user. Only included for the requesting user or superusers; empty otherwise */ emails: Array<{ /** * Email ID */ id: string; /** * Email address */ email: string; /** * Whether the email address is verified */ is_verified: boolean; }>; } | { /** * Commit author name */ name: string | null; /** * Commit author email */ email: string; } | { [key: string]: unknown; }; /** * Releases that contain the commit */ releases: Array<{ /** * Version of the release */ version: string; /** * Short version of the release */ shortVersion: string; /** * Commit ref of the release */ ref: string | null; /** * URL of the release */ url: string | null; /** * When the release was released (ISO 8601) */ dateReleased: string | null; /** * When the release was created (ISO 8601) */ dateCreated: string; }>; }>; export type ListProjectReleasesResponse = Array<{ /** * Version control reference, such as a commit SHA or tag */ ref?: string | null; /** * Release URL */ url?: string | null; /** * When the release went live (ISO 8601) */ dateReleased?: string | null; /** * When the release was created (ISO 8601) */ dateCreated?: string | null; /** * When the release started (ISO 8601) */ dateStarted?: string | null; /** * Release owner */ owner?: { /** * SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access */ identities?: Array<{ /** * SSO identity ID */ id: string; /** * User's identifier at the auth provider */ name: string; /** * Organization the auth provider belongs to */ organization: { /** * Organization slug */ slug: string; /** * Organization name */ name: string; }; /** * Auth provider of the identity */ provider: { /** * Auth provider key, such as google or saml2 */ id: string; /** * Display name of the auth provider */ name: string; }; /** * When the identity was last verified by signing in through the auth provider */ dateVerified: string; /** * When the identity was last synced from the auth provider */ dateSynced: string; }>; /** * User avatar */ avatar?: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Two-factor authenticators of the user, without backup methods such as recovery codes */ authenticators?: Array<{ /** * Authenticator ID */ id: string; /** * Authenticator type, such as totp, sms, u2f or recovery */ type: string; /** * Display name of the authenticator type */ name: string; /** * When the authenticator was added */ dateCreated: string; /** * When the authenticator was last used, or null */ dateUsed: string | null; }>; /** * Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization */ canReset2fa?: boolean; /** * User ID */ id: string; /** * Display name: the user's name, or their email or username if no name is set */ name: string; /** * Username */ username: string; /** * Primary email address */ email: string; /** * Gravatar URL for the primary email address */ avatarUrl: string; /** * Whether the account is active */ isActive: boolean; /** * Whether the account is suspended. Suspended users can't sign in */ isSuspended: boolean; /** * Whether the user has a password set */ hasPasswordAuth: boolean; /** * Whether the account is managed, which stops the user from changing their username, password and similar details */ isManaged: boolean; /** * When the account was created */ dateJoined: string; /** * When the user last signed in, or null */ lastLogin: string | null; /** * Whether the user has two-factor authentication enabled */ has2fa: boolean; /** * When the user was last active, or null */ lastActive: string | null; /** * Whether the user is a superuser */ isSuperuser: boolean; /** * Whether the user has staff status */ isStaff: boolean; /** * Deprecated. Always an empty object */ experiments: { [key: string]: string; }; /** * Email addresses of the user. Only included for the requesting user or superusers; empty otherwise */ emails: Array<{ /** * Email ID */ id: string; /** * Email address */ email: string; /** * Whether the email address is verified */ is_verified: boolean; }>; } | null; /** * Most recent commit in the release */ lastCommit?: { /** * Commit SHA */ id: string; /** * Commit message */ message: string | null; /** * When the commit was made (ISO 8601) */ dateCreated: string; /** * Pull request the commit belongs to */ pullRequest: { /** * Number or key of the pull request in the provider */ id: string; /** * Title of the pull request */ title: string | null; /** * Description of the pull request */ message: string | null; /** * When Sentry recorded the pull request (ISO 8601) */ dateCreated: string; /** * When the pull request was merged (ISO 8601). Null when it isn't merged */ mergedAt: string | null; /** * State of the pull request: merged, open, closed, draft or unknown. Null when not known */ status: 'merged' | 'open' | 'closed' | 'draft' | 'unknown' | null; /** * Repository of the pull request */ repository: { /** * URL of the repository */ url?: string | null; /** * Provider of the repository, with its id and name */ provider?: { [key: string]: string; }; /** * Status of the repository */ status?: 'active' | 'disabled' | 'pending_deletion' | 'deletion_in_progress'; /** * ID of the repository's integration. Null for repositories added without an integration */ integrationId?: string | null; /** * Identifier of the repository in the provider, such as owner/name */ externalSlug?: string | null; /** * ID of the repository in the provider */ externalId?: string | null; /** * Settings of the repository. Only set when expand includes settings. Null when it has none */ settings?: { /** * Whether AI code review is on for the repository */ enabledCodeReview: boolean; /** * Pull request events that start a code review: on_new_commit or on_ready_for_review */ codeReviewTriggers: Array; } | null; /** * ID of the repository */ id: string; /** * Name of the repository, such as owner/name */ name: string; /** * When the repository was added to Sentry (ISO 8601) */ dateCreated: string; }; /** * Author of the pull request, or an empty object when it has none */ author: { /** * SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access */ identities?: Array<{ /** * SSO identity ID */ id: string; /** * User's identifier at the auth provider */ name: string; /** * Organization the auth provider belongs to */ organization: { /** * Organization slug */ slug: string; /** * Organization name */ name: string; }; /** * Auth provider of the identity */ provider: { /** * Auth provider key, such as google or saml2 */ id: string; /** * Display name of the auth provider */ name: string; }; /** * When the identity was last verified by signing in through the auth provider */ dateVerified: string; /** * When the identity was last synced from the auth provider */ dateSynced: string; }>; /** * User avatar */ avatar?: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Two-factor authenticators of the user, without backup methods such as recovery codes */ authenticators?: Array<{ /** * Authenticator ID */ id: string; /** * Authenticator type, such as totp, sms, u2f or recovery */ type: string; /** * Display name of the authenticator type */ name: string; /** * When the authenticator was added */ dateCreated: string; /** * When the authenticator was last used, or null */ dateUsed: string | null; }>; /** * Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization */ canReset2fa?: boolean; /** * User ID */ id: string; /** * Display name: the user's name, or their email or username if no name is set */ name: string; /** * Username */ username: string; /** * Primary email address */ email: string; /** * Gravatar URL for the primary email address */ avatarUrl: string; /** * Whether the account is active */ isActive: boolean; /** * Whether the account is suspended. Suspended users can't sign in */ isSuspended: boolean; /** * Whether the user has a password set */ hasPasswordAuth: boolean; /** * Whether the account is managed, which stops the user from changing their username, password and similar details */ isManaged: boolean; /** * When the account was created */ dateJoined: string; /** * When the user last signed in, or null */ lastLogin: string | null; /** * Whether the user has two-factor authentication enabled */ has2fa: boolean; /** * When the user was last active, or null */ lastActive: string | null; /** * Whether the user is a superuser */ isSuperuser: boolean; /** * Whether the user has staff status */ isStaff: boolean; /** * Deprecated. Always an empty object */ experiments: { [key: string]: string; }; /** * Email addresses of the user. Only included for the requesting user or superusers; empty otherwise */ emails: Array<{ /** * Email ID */ id: string; /** * Email address */ email: string; /** * Whether the email address is verified */ is_verified: boolean; }>; } | { /** * Commit author name */ name: string | null; /** * Commit author email */ email: string; } | { [key: string]: unknown; }; /** * URL of the pull request in the provider, or null when the provider can't build one */ externalUrl: string | null; } | null; /** * How the commit was found as a suspect commit: via commit in release or via SCM integration. Empty for other commits */ suspectCommitType: string; /** * Repository the commit belongs to */ repository?: { /** * URL of the repository */ url?: string | null; /** * Provider of the repository, with its id and name */ provider?: { [key: string]: string; }; /** * Status of the repository */ status?: 'active' | 'disabled' | 'pending_deletion' | 'deletion_in_progress'; /** * ID of the repository's integration. Null for repositories added without an integration */ integrationId?: string | null; /** * Identifier of the repository in the provider, such as owner/name */ externalSlug?: string | null; /** * ID of the repository in the provider */ externalId?: string | null; /** * Settings of the repository. Only set when expand includes settings. Null when it has none */ settings?: { /** * Whether AI code review is on for the repository */ enabledCodeReview: boolean; /** * Pull request events that start a code review: on_new_commit or on_ready_for_review */ codeReviewTriggers: Array; } | null; /** * ID of the repository */ id: string; /** * Name of the repository, such as owner/name */ name: string; /** * When the repository was added to Sentry (ISO 8601) */ dateCreated: string; }; /** * Author of the commit: a Sentry user when the email matches one, otherwise the name and email from the commit */ author?: { /** * SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access */ identities?: Array<{ /** * SSO identity ID */ id: string; /** * User's identifier at the auth provider */ name: string; /** * Organization the auth provider belongs to */ organization: { /** * Organization slug */ slug: string; /** * Organization name */ name: string; }; /** * Auth provider of the identity */ provider: { /** * Auth provider key, such as google or saml2 */ id: string; /** * Display name of the auth provider */ name: string; }; /** * When the identity was last verified by signing in through the auth provider */ dateVerified: string; /** * When the identity was last synced from the auth provider */ dateSynced: string; }>; /** * User avatar */ avatar?: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Two-factor authenticators of the user, without backup methods such as recovery codes */ authenticators?: Array<{ /** * Authenticator ID */ id: string; /** * Authenticator type, such as totp, sms, u2f or recovery */ type: string; /** * Display name of the authenticator type */ name: string; /** * When the authenticator was added */ dateCreated: string; /** * When the authenticator was last used, or null */ dateUsed: string | null; }>; /** * Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization */ canReset2fa?: boolean; /** * User ID */ id: string; /** * Display name: the user's name, or their email or username if no name is set */ name: string; /** * Username */ username: string; /** * Primary email address */ email: string; /** * Gravatar URL for the primary email address */ avatarUrl: string; /** * Whether the account is active */ isActive: boolean; /** * Whether the account is suspended. Suspended users can't sign in */ isSuspended: boolean; /** * Whether the user has a password set */ hasPasswordAuth: boolean; /** * Whether the account is managed, which stops the user from changing their username, password and similar details */ isManaged: boolean; /** * When the account was created */ dateJoined: string; /** * When the user last signed in, or null */ lastLogin: string | null; /** * Whether the user has two-factor authentication enabled */ has2fa: boolean; /** * When the user was last active, or null */ lastActive: string | null; /** * Whether the user is a superuser */ isSuperuser: boolean; /** * Whether the user has staff status */ isStaff: boolean; /** * Deprecated. Always an empty object */ experiments: { [key: string]: string; }; /** * Email addresses of the user. Only included for the requesting user or superusers; empty otherwise */ emails: Array<{ /** * Email ID */ id: string; /** * Email address */ email: string; /** * Whether the email address is verified */ is_verified: boolean; }>; } | { /** * Commit author name */ name: string | null; /** * Commit author email */ email: string; } | { [key: string]: unknown; }; } | null; /** * Most recent deploy of the release */ lastDeploy?: { /** * When the deploy started (ISO 8601) */ dateStarted?: string | null; /** * URL of the deploy */ url?: string | null; /** * ID of the deploy */ id: string; /** * Environment the release was deployed to */ environment: string; /** * When the deploy finished (ISO 8601) */ dateFinished: string; /** * Name of the deploy */ name: string | null; } | null; /** * When the release received its first event (ISO 8601) */ firstEvent?: string | null; /** * When the release received its most recent event (ISO 8601) */ lastEvent?: string | null; /** * Session bounds and neighboring release versions in the current project, when a project is requested */ currentProjectMeta?: { /** * Start of the release's sessions in the project (ISO 8601) */ sessionsLowerBound?: string | null; /** * End of the release's sessions in the project (ISO 8601) */ sessionsUpperBound?: string | null; /** * Version of the next release in the project */ nextReleaseVersion?: string | null; /** * Version of the previous release in the project */ prevReleaseVersion?: string | null; /** * Version of the first release in the project */ firstReleaseVersion?: string | null; /** * Version of the latest release in the project */ lastReleaseVersion?: string | null; } | null; /** * User agent of the client that created the release */ userAgent?: string | null; /** * Adoption stage of the release in each project, keyed by project slug */ adoptionStages?: { [key: string]: { /** * Adoption stage of the release */ stage: 'adopted' | 'low_adoption' | 'replaced'; /** * When the release was adopted (ISO 8601) */ adopted: string | null; /** * When the release stopped being adopted (ISO 8601) */ unadopted: string | null; }; } | null; /** * Release ID */ id: number; /** * Version of the release */ version: string; /** * Number of new issues first seen in the release */ newGroups: number; /** * Release status */ status: 'open' | 'archived'; /** * Shortened release version */ shortVersion: string; /** * Parsed version information */ versionInfo: { /** * Human-readable version, such as 1.0.0 (123) */ description?: string; /** * Package name parsed from the release version, such as com.example.app */ package: string | null; /** * Parsed version: the raw string, plus major, minor, patch, pre, buildCode and components when it's a semantic version */ version: { /** * Major version */ major?: number; /** * Minor version */ minor?: number; /** * Patch version */ patch?: number; /** * Pre-release identifier, such as rc1 */ pre?: string | null; /** * Build code, such as 123 */ buildCode?: string | null; /** * Number of version components given */ components?: number; /** * Version string the release was created with */ raw: string; }; /** * Build hash parsed from the release version */ buildHash: string | null; } | null; /** * Extra data stored on the release */ data: { [key: string]: unknown; }; /** * Number of commits in the release */ commitCount: number; /** * Number of deploys of the release */ deployCount: number; /** * Authors of the release's commits */ authors: Array<{ /** * SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access */ identities?: Array<{ /** * SSO identity ID */ id: string; /** * User's identifier at the auth provider */ name: string; /** * Organization the auth provider belongs to */ organization: { /** * Organization slug */ slug: string; /** * Organization name */ name: string; }; /** * Auth provider of the identity */ provider: { /** * Auth provider key, such as google or saml2 */ id: string; /** * Display name of the auth provider */ name: string; }; /** * When the identity was last verified by signing in through the auth provider */ dateVerified: string; /** * When the identity was last synced from the auth provider */ dateSynced: string; }>; /** * User avatar */ avatar?: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Two-factor authenticators of the user, without backup methods such as recovery codes */ authenticators?: Array<{ /** * Authenticator ID */ id: string; /** * Authenticator type, such as totp, sms, u2f or recovery */ type: string; /** * Display name of the authenticator type */ name: string; /** * When the authenticator was added */ dateCreated: string; /** * When the authenticator was last used, or null */ dateUsed: string | null; }>; /** * Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization */ canReset2fa?: boolean; /** * User ID */ id: string; /** * Display name: the user's name, or their email or username if no name is set */ name: string; /** * Username */ username: string; /** * Primary email address */ email: string; /** * Gravatar URL for the primary email address */ avatarUrl: string; /** * Whether the account is active */ isActive: boolean; /** * Whether the account is suspended. Suspended users can't sign in */ isSuspended: boolean; /** * Whether the user has a password set */ hasPasswordAuth: boolean; /** * Whether the account is managed, which stops the user from changing their username, password and similar details */ isManaged: boolean; /** * When the account was created */ dateJoined: string; /** * When the user last signed in, or null */ lastLogin: string | null; /** * Whether the user has two-factor authentication enabled */ has2fa: boolean; /** * When the user was last active, or null */ lastActive: string | null; /** * Whether the user is a superuser */ isSuperuser: boolean; /** * Whether the user has staff status */ isStaff: boolean; /** * Deprecated. Always an empty object */ experiments: { [key: string]: string; }; /** * Email addresses of the user. Only included for the requesting user or superusers; empty otherwise */ emails: Array<{ /** * Email ID */ id: string; /** * Email address */ email: string; /** * Whether the email address is verified */ is_verified: boolean; }>; } | { /** * Commit author name */ name: string | null; /** * Commit author email */ email: string; }>; /** * Projects in the release */ projects: Array<{ /** * Release health data for the project. Only included when health data is requested */ healthData?: { /** * Median session duration in seconds */ durationP50?: number | null; /** * 90th percentile session duration in seconds */ durationP90?: number | null; /** * Percentage of users who didn't experience a crash */ crashFreeUsers?: number | null; /** * Percentage of sessions that didn't crash */ crashFreeSessions?: number | null; /** * Total number of users in the release */ totalUsers?: number | null; /** * Number of users in the release over the last 24 hours */ totalUsers24h?: number | null; /** * Number of users in the project over the last 24 hours */ totalProjectUsers24h?: number | null; /** * Total number of sessions in the release */ totalSessions?: number | null; /** * Number of sessions in the release over the last 24 hours */ totalSessions24h?: number | null; /** * Number of sessions in the project over the last 24 hours */ totalProjectSessions24h?: number | null; /** * Percentage of the project's users over the last 24 hours that were on the release */ adoption?: number | null; /** * Percentage of the project's sessions over the last 24 hours that were on the release */ sessionsAdoption?: number | null; /** * Number of crashed sessions */ sessionsCrashed: number; /** * Number of sessions with errors */ sessionsErrored: number; /** * Whether the release has session data */ hasHealthData: boolean; /** * Session or user counts over time, keyed by stats period */ stats: { [key: string]: Array>; }; } | null; /** * When the release was released in the project (ISO 8601) */ dateReleased?: string | null; /** * When the release was created (ISO 8601) */ dateCreated?: string | null; /** * When work on the release started (ISO 8601) */ dateStarted?: string | null; /** * ID of the project */ id: number; /** * Slug of the project */ slug: string; /** * Name of the project */ name: string; /** * Platform of the project */ platform: string | null; /** * Platforms of the project */ platforms: Array | null; /** * Whether the release has session data in the project */ hasHealthData: boolean; /** * Number of new issues first seen in the release in the project */ newGroups: number; }>; }>; export type ListProjectUserFeedbackResponse = Array<{ /** * ID of the feedback */ id: string; /** * ID of the event the feedback is attached to */ eventID: string; /** * Name of the user who submitted the feedback. Falls back to the feedback's email address, then to the event user's name */ name: string | null; /** * Email address of the user who submitted the feedback. Falls back to the event user's email address */ email: string | null; /** * Comments the user submitted */ comments: string; /** * When the feedback was submitted (ISO 8601) */ dateCreated: string; /** * User recorded on the feedback's event. Null when the event isn't found or has no user */ user: { /** * ID of the user, as sent with the event */ id: string; /** * Username sent with the event */ username: string | null; /** * Email address sent with the event */ email: string | null; /** * Display name of the user: the name, email address or username sent with the event, whichever is set first */ name: string | null; /** * IP address sent with the event */ ipAddress: string | null; /** * Gravatar URL for the user's email address */ avatarUrl: string | null; } | null; /** * Event the feedback is attached to */ event: { /** * ID of the event the feedback is attached to */ id: string; /** * ID of the event the feedback is attached to */ eventID: string; }; /** * Issue the feedback's event belongs to. Null when the feedback isn't linked to an issue */ issue: { /** * Whether the issue includes unhandled events */ isUnhandled?: boolean; /** * Total number of events in the issue */ count?: string; /** * Number of users affected by the issue */ userCount?: number; /** * When the issue was first seen (ISO 8601) */ firstSeen?: string | null; /** * When the issue was last seen (ISO 8601) */ lastSeen?: string | null; /** * Additional data derived for the issue. Only included when requested with expand */ derivedData?: { /** * Action that blocks progress on the issue: none, approve_root_cause, approve_plan, approve_code_changes or merge_pr */ blocker: string; /** * How far the issue is toward resolution: identified, assigned, diagnosed, fix_proposed or fix_applied */ progress: string; /** * Status of the issue from its action log: open or closed */ status: string; /** * Number of times the issue was viewed */ viewCount: number; /** * Whether an open pull request is linked to the issue */ hasOpenFixPr: boolean; /** * Whether the issue has an assignee */ isAssigned: boolean; /** * Whether a root cause was found for the issue */ hasRootCause: boolean; /** * Furthest Autofix step completed: none, root_cause, solution, code_changes, pr_created or pr_iteration */ lastCompletedAutofixStep: string; /** * When the issue's progress last advanced (ISO 8601) */ lastProgressedAt: string | null; /** * The issue's impact assessment, or null when no assessment is available */ impact?: { /** * Estimated per-occurrence impact on the end user's capability from 0 to 100 */ score: number | null; /** * Impact level derived from the assessment score */ level: 'super_low' | 'low' | 'moderate' | 'high' | 'super_high' | null; /** * Human-readable description of the capability affected by the issue */ description: string; /** * Evidence-backed claims supporting the impact assessment */ citations: Array<{ /** * Stable identifier for the evidence supporting this claim */ reference: string; /** * Concise explanation of what the cited evidence establishes */ claim: string; /** * The category of evidence cited, such as an event, trace, replay, or log */ source: string; }>; /** * ID of the issue event used to generate the impact assessment */ sourceEventId: string; } | null; }; /** * ID of the issue */ id: string; /** * ID used in the issue's public share URL. Null when the issue isn't shared */ shareId: string | null; /** * Short ID of the issue, such as PROJECT-1A */ shortId: string | null; /** * Title of the issue */ title: string; /** * Function or module where the issue occurs */ culprit: string | null; /** * URL of the issue in Sentry */ permalink: string; /** * Logger of the issue's events */ logger: string | null; /** * Severity level of the issue */ level: 'sample' | 'debug' | 'info' | 'warning' | 'error' | 'fatal' | 'unknown'; /** * Issue status */ status: 'resolved' | 'ignored' | 'pending_deletion' | 'pending_merge' | 'reprocessing' | 'unresolved'; /** * Details of the issue's status, such as when an ignore expires or which release resolves it */ statusDetails: { /** * Number of additional events after which the issue stops being ignored */ ignoreCount?: number | null; /** * When the issue stops being ignored (ISO 8601) */ ignoreUntil?: string | null; /** * Number of additional affected users after which the issue stops being ignored */ ignoreUserCount?: number | null; /** * Time window in minutes for ignoreUserCount */ ignoreUserWindow?: number | null; /** * Time window in minutes for ignoreCount */ ignoreWindow?: number | null; /** * User who ignored or resolved the issue */ actor?: { /** * SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access */ identities?: Array<{ /** * SSO identity ID */ id: string; /** * User's identifier at the auth provider */ name: string; /** * Organization the auth provider belongs to */ organization: { /** * Organization slug */ slug: string; /** * Organization name */ name: string; }; /** * Auth provider of the identity */ provider: { /** * Auth provider key, such as google or saml2 */ id: string; /** * Display name of the auth provider */ name: string; }; /** * When the identity was last verified by signing in through the auth provider */ dateVerified: string; /** * When the identity was last synced from the auth provider */ dateSynced: string; }>; /** * User avatar */ avatar?: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Two-factor authenticators of the user, without backup methods such as recovery codes */ authenticators?: Array<{ /** * Authenticator ID */ id: string; /** * Authenticator type, such as totp, sms, u2f or recovery */ type: string; /** * Display name of the authenticator type */ name: string; /** * When the authenticator was added */ dateCreated: string; /** * When the authenticator was last used, or null */ dateUsed: string | null; }>; /** * Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization */ canReset2fa?: boolean; /** * User ID */ id: string; /** * Display name: the user's name, or their email or username if no name is set */ name: string; /** * Username */ username: string; /** * Primary email address */ email: string; /** * Gravatar URL for the primary email address */ avatarUrl: string; /** * Whether the account is active */ isActive: boolean; /** * Whether the account is suspended. Suspended users can't sign in */ isSuspended: boolean; /** * Whether the user has a password set */ hasPasswordAuth: boolean; /** * Whether the account is managed, which stops the user from changing their username, password and similar details */ isManaged: boolean; /** * When the account was created */ dateJoined: string; /** * When the user last signed in, or null */ lastLogin: string | null; /** * Whether the user has two-factor authentication enabled */ has2fa: boolean; /** * When the user was last active, or null */ lastActive: string | null; /** * Whether the user is a superuser */ isSuperuser: boolean; /** * Whether the user has staff status */ isStaff: boolean; /** * Deprecated. Always an empty object */ experiments: { [key: string]: string; }; /** * Email addresses of the user. Only included for the requesting user or superusers; empty otherwise */ emails: Array<{ /** * Email ID */ id: string; /** * Email address */ email: string; /** * Whether the email address is verified */ is_verified: boolean; }>; } | null; /** * Whether the issue is resolved in the next release */ inNextRelease?: boolean; /** * Version of the release the issue is resolved in */ inRelease?: string; /** * Commit the issue is resolved in */ inCommit?: string; /** * Number of events still waiting to be reprocessed */ pendingEvents?: number; /** * Reprocessing progress details */ info?: { /** * When reprocessing started (ISO 8601) */ dateCreated: string; /** * Number of events in the issue when reprocessing started */ syncCount: number; /** * Number of events to reprocess, at most the requested maximum */ totalEvents: number; } | null; }; /** * Substatus of the issue, such as ongoing, regressed or escalating */ substatus: 'archived_until_escalating' | 'archived_until_condition_met' | 'archived_forever' | 'escalating' | 'ongoing' | 'regressed' | 'new' | null; /** * Whether the issue is shared publicly */ isPublic: boolean; /** * Platform of the issue's events */ platform: string | null; /** * Priority of the issue: high, medium or low */ priority: 'low' | 'medium' | 'high' | null; /** * When the priority was last set manually, which stops automatic priority updates (ISO 8601) */ priorityLockedAt: string | null; /** * Seer's score for how likely the issue is to be fixable */ seerFixabilityScore: number | null; /** * When Seer Autofix was last triggered for the issue (ISO 8601) */ seerAutofixLastTriggered: string | null; /** * When the Seer explorer agent last completed an Autofix step for the issue (ISO 8601) */ seerExplorerAutofixLastTriggered: string | null; /** * Project the issue belongs to */ project: { /** * ID of the project */ id: string; /** * Name of the project */ name: string; /** * Slug of the project */ slug: string; /** * Platform of the project */ platform: string | null; }; /** * Event type of the issue, such as error or default */ type: 'default' | 'error' | 'csp' | 'nel' | 'hpkp' | 'expectct' | 'expectstaple' | 'transaction' | 'generic' | 'feedback'; /** * Issue type, such as error or performance_n_plus_one_db_queries */ issueType: string; /** * Issue category, such as error or performance */ issueCategory: string; /** * Issue metadata */ metadata: { /** * Title of default and issue platform events */ title?: string; /** * Exception value, or the subtitle of an issue */ value?: string; /** * Exception type of error events */ type?: string; /** * Whether the SDK fabricated the exception to carry a stacktrace, so its type is a platform label rather than what went wrong */ synthetic?: boolean; /** * File of the frame where the error happened */ filename?: string; /** * Function of the frame where the error happened */ function?: string; /** * Message of default, security and feedback events */ message?: string; /** * URI that a CSP report blocked */ uri?: string; /** * CSP directive that was violated */ directive?: string; /** * Host name of HPKP, Expect-CT and Expect-Staple reports */ origin?: string; /** * Name of the person who sent user feedback */ name?: string; /** * Email of the person who sent user feedback */ contact_email?: string; /** * Where user feedback came from, such as a widget */ source?: string; /** * Whether the stacktrace has in-app frames, system frames or both */ in_app_frame_mix?: string; /** * Whether a crash report was dropped because the issue already stores the most allowed */ stripped_crash?: boolean; /** * SDK of the issue's first event */ sdk?: { /** * Name of the SDK, or unknown */ name: string; /** * Name of the SDK, normalized for grouping */ name_normalized: string; }; /** * Severity score of the issue's first event */ severity?: number; /** * Why the severity score is what it is */ severity_reason?: string; /** * Priority the issue was created with */ initial_priority?: number; }; /** * Number of comments on the issue */ numComments: number; /** * User or team the issue is assigned to */ assignedTo: { /** * Whether the actor is a user or a team */ type: 'user' | 'team'; /** * ID of the user or team */ id: string; /** * Display name of the user, or slug of the team */ name: string; /** * Email address of the user. Only set for users */ email?: string; } | null; /** * Whether the requesting user bookmarked the issue */ isBookmarked: boolean; /** * Whether the requesting user is subscribed to the issue */ isSubscribed: boolean; /** * Why the requesting user is subscribed to the issue */ subscriptionDetails: { /** * Whether the requesting user turned off notifications for the issue */ disabled?: boolean; /** * Why the requesting user is subscribed: commented, assigned, bookmarked, changed_status, mentioned or unknown */ reason?: string; } | null; /** * Whether the requesting user has seen the issue since it last occurred */ hasSeen: boolean; /** * External issues linked to the issue */ annotations: Array<{ /** * Display name of the linked external issue */ displayName: string; /** * URL of the linked external issue */ url: string; }>; } | null; }>; export type ListProjectUsersResponse = Array<{ /** * ID of the legacy EventUser record. Null for users built from events */ id: string | null; /** * Value of the user tag that matches the user, such as id:123 or email:jane@example.com */ tagValue: string | null; /** * ID the SDK sent for the user */ identifier: number | string | null; /** * Username the SDK sent for the user */ username: string | null; /** * Email address the SDK sent for the user */ email: string | null; /** * Display name of the user */ name: string | null; /** * IP address of the user */ ipAddress: string | null; /** * Gravatar URL of the user's email address */ avatarUrl: string; /** * MD5 hash of the first set user attribute: id, username, email or IP address */ hash: string | null; /** * Legacy field, always null */ dateCreated: string | null; }>; export type ListReleaseFiles = Array<{ /** * ID of the release file. Files that only exist in an artifact bundle get a base64-encoded ID built from the dist and file name */ id: string | Blob | File | null; /** * Name of the file, usually its URL */ name: string; /** * Name of the distribution the file belongs to */ dist: string | null; /** * HTTP headers stored with the file, such as Content-Type and Sourcemap */ headers: { [key: string]: string; }; /** * Size of the file in bytes */ size: number | null; /** * SHA-1 checksum of the file */ sha1: string | null; /** * When the file was uploaded (ISO 8601) */ dateCreated: string; }>; export type ListReleaseSetupSteps = Array<{ /** * Setup step: tag, repo, commit or deploy */ step: 'tag' | 'repo' | 'commit' | 'deploy'; /** * Whether the project completed the step */ complete: boolean; }>; export type ListReplayClicks = { /** * Clicks that match the query, in time order */ data: Array<{ /** * RRWeb DOM node ID of the clicked element */ node_id: number; /** * When the element was clicked */ timestamp: string; }>; }; export type ListReplayDeletionJobs = { /** * Deletion jobs of the project */ data: Array<{ /** * ID of the deletion job */ id: number; /** * When the job was created */ dateCreated: string; /** * When the job was last updated */ dateUpdated: string; /** * Earliest UTC timestamp in the deletion range */ rangeStart: string; /** * Latest UTC timestamp in the deletion range */ rangeEnd: string; /** * Environments of the replays to delete. Empty means all environments */ environments: Array; /** * Status of the job: `pending`, `in-progress`, `completed` or `failed` */ status: string; /** * Search query that matches the replays to delete */ query: string; /** * Number of replays the job has deleted */ countDeleted: number; }>; }; export type ListReplayRecordingSegments = Array>; export type ListReplays = { /** * Replays that match the query */ data: Array<{ /** * Replay ID */ id?: string; /** * ID of the project the replay belongs to */ project_id?: string; /** * IDs of traces linked to the replay */ trace_ids?: Array; /** * IDs of errors linked to the replay */ error_ids?: Array; /** * Environment of the replay */ environment?: string | null; /** * Replay tags */ tags?: { [key: string]: Array; } | Array; /** * User metadata */ user?: { /** * ID of the user */ id?: string | null; /** * Username of the user */ username?: string | null; /** * Email address of the user */ email?: string | null; /** * IP address of the user */ ip?: string | null; /** * Name to display for the user: the username, email, ID or IP address, whichever is set first */ display_name?: string | null; /** * Geographic location of the user */ geo?: { /** * City of the user */ city?: string | null; /** * Country code of the user */ country_code?: string | null; /** * Region of the user */ region?: string | null; /** * Subdivision of the user's country, such as a state or province */ subdivision?: string | null; }; }; /** * SDK metadata */ sdk?: { /** * Name of the SDK that recorded the replay */ name?: string | null; /** * Version of the SDK that recorded the replay */ version?: string | null; }; /** * Operating system metadata */ os?: { /** * Name of the operating system */ name?: string | null; /** * Version of the operating system */ version?: string | null; }; /** * Browser metadata */ browser?: { /** * Name of the browser */ name?: string | null; /** * Version of the browser */ version?: string | null; }; /** * Device metadata */ device?: { /** * Name of the device */ name?: string | null; /** * Brand of the device */ brand?: string | null; /** * Model of the device */ model?: string | null; /** * Family of the device */ family?: string | null; }; /** * Over-the-air update metadata */ ota_updates?: { /** * Channel of the over-the-air update */ channel?: string | null; /** * Runtime version of the over-the-air update */ runtime_version?: string | null; /** * ID of the over-the-air update */ update_id?: string | null; }; /** * Whether the replay is archived */ is_archived?: boolean | null; /** * URLs visited during the replay */ urls?: Array | null; /** * Names of the replay's segments */ segment_names?: Array | null; /** * Clicks recorded during the replay, one object per click */ clicks?: Array<{ /** * Alt text of the clicked element */ 'click.alt': string | null; /** * ARIA label of the clicked element */ 'click.label': string | null; /** * CSS classes of the clicked element */ 'click.classes': Array | null; /** * Name of the frontend component that was clicked */ 'click.component_name': string | null; /** * ID of the clicked element */ 'click.id': string | null; /** * Role of the clicked element */ 'click.role': string | null; /** * HTML tag of the clicked element */ 'click.tag': string | null; /** * Test ID of the clicked element */ 'click.testid': string | null; /** * Text of the clicked element */ 'click.text': string | null; /** * Title of the clicked element */ 'click.title': string | null; }>; /** * Number of dead clicks */ count_dead_clicks?: number | null; /** * Number of rage clicks */ count_rage_clicks?: number | null; /** * Number of errors linked to the replay */ count_errors?: number | null; /** * Replay duration in seconds */ duration?: number | null; /** * When the replay finished (ISO 8601) */ finished_at?: string | null; /** * When the replay started (ISO 8601) */ started_at?: string | null; /** * Replay activity score */ activity?: number | null; /** * Number of URLs visited during the replay */ count_urls?: number | null; /** * Recording mode of the replay, such as session or buffer */ replay_type?: string; /** * Number of recording segments */ count_segments?: number | null; /** * Platform of the replay */ platform?: string | null; /** * Releases associated with the replay */ releases?: Array; /** * Distribution of the replay */ dist?: string | null; /** * Number of warning events linked to the replay */ count_warnings?: number | null; /** * Number of info events linked to the replay */ count_infos?: number | null; /** * Whether the requesting user has viewed the replay */ has_viewed?: boolean; }>; }; export type ListSelectors = { /** * Selectors of clicked elements that match the query */ data: Array<{ /** * Number of dead clicks on the element */ count_dead_clicks?: number; /** * Number of rage clicks on the element */ count_rage_clicks?: number; /** * CSS selector of the element, built from its tag, ID and classes */ dom_element?: string; /** * Attributes of the clicked element */ element?: { /** * `alt` attribute of the element */ alt: string; /** * `aria-label` attribute of the element */ aria_label: string; /** * CSS classes of the element */ class: Array; /** * `data-sentry-component` attribute of the element */ component_name: string; /** * `id` attribute of the element */ id: string; /** * `role` attribute of the element */ role: string; /** * HTML tag of the element */ tag: string; /** * `data-testid` attribute of the element */ testid: string; /** * `title` attribute of the element */ title: string; }; /** * ID of the project the clicks were recorded in */ project_id?: string; }>; }; export type ListTeamProjectResponse = Array<{ /** * Latest deploy for each environment, keyed by environment name, with its release version and finish time. Omitted when collapsed */ latestDeploys?: { [key: string]: { [key: string]: string; }; } | null; /** * Requested project options, keyed by option name. Only included when options are requested */ options?: { [key: string]: unknown; }; /** * Counts of non-transaction events per interval over the requested stats period, as [timestamp, count] pairs. Only included when a stats period is requested */ stats?: Array> | { [key: string]: number; }; /** * Counts of transactions per interval over the requested stats period, as [timestamp, count] pairs. Only included when transaction stats are requested */ transactionStats?: Array>; /** * Crash-free session rates for the current and previous stats period. Only included when session stats are requested */ sessionStats?: { /** * Crash-free rate in the current period, as a percentage. Null when there's no session data */ currentCrashFreeRate: number | null; /** * Crash-free rate in the previous period, as a percentage. Null when there's no session data */ previousCrashFreeRate: number | null; /** * Whether the project has release health (session) data */ hasHealthData: boolean; }; /** * ID of the project */ id: string; /** * Slug of the project */ slug: string; /** * Name of the project */ name: string; /** * Platform of the project */ platform: string | null; /** * When the project was created (ISO 8601) */ dateCreated: string; /** * Whether the requesting user bookmarked the project */ isBookmarked: boolean; /** * Whether the requesting user is a member of a team with access to the project */ isMember: boolean; /** * Features enabled for the project */ features: Array; /** * When the project received its first event (ISO 8601) */ firstEvent: string | null; /** * Whether the project has sent transactions */ firstTransactionEvent: boolean; /** * Scopes the requesting user has on the project through team membership and organization role */ access: Array; /** * Whether the requesting user has access to the project */ hasAccess: boolean; /** * Whether the project has sent user feedback */ hasFeedbacks: boolean; /** * Whether the project has sent feature flags */ hasFlags: boolean; /** * Whether the project has sent an event with a minified stack trace */ hasMinifiedStackTrace: boolean; /** * Whether the project has cron monitors */ hasMonitors: boolean; /** * Whether the project has sent user feedback from the user feedback widget */ hasNewFeedbacks: boolean; /** * Whether the project has sent profiles */ hasProfiles: boolean; /** * Whether the project has sent replays */ hasReplays: boolean; /** * Whether the project has sent sessions */ hasSessions: boolean; /** * Whether the project has sent HTTP request spans used by Insights */ hasInsightsHttp: boolean; /** * Whether the project has sent database spans used by Insights */ hasInsightsDb: boolean; /** * Whether the project has sent asset spans used by Insights */ hasInsightsAssets: boolean; /** * Whether the project has sent app start spans used by Insights */ hasInsightsAppStart: boolean; /** * Whether the project has sent screen load spans used by Insights */ hasInsightsScreenLoad: boolean; /** * Whether the project has sent web vitals spans used by Insights */ hasInsightsVitals: boolean; /** * Whether the project has sent cache spans used by Insights */ hasInsightsCaches: boolean; /** * Whether the project has sent queue spans used by Insights */ hasInsightsQueues: boolean; /** * Whether the project has sent AI agent spans used by Insights */ hasInsightsAgentMonitoring: boolean; /** * Whether the project has sent MCP spans used by Insights */ hasInsightsMCP: boolean; /** * Whether the project has sent logs. Always true outside sentry.io */ hasLogs: boolean; /** * Whether the project has sent trace metrics. Always true outside sentry.io */ hasTraceMetrics: boolean; /** * First team with access to the project; use teams instead */ team: { /** * ID of the team */ id: string; /** * Name of the team */ name: string; /** * Slug of the team */ slug: string; } | null; /** * Teams with access to the project */ teams: Array<{ /** * ID of the team */ id: string; /** * Name of the team */ name: string; /** * Slug of the team */ slug: string; }>; /** * Platforms seen in the project's events */ platforms: Array; /** * Whether the project has received user reports */ hasUserReports: boolean; /** * Environments seen in the project's events */ environments: Array; /** * Latest release of the project */ latestRelease: { /** * Version of the release */ version: string; } | null; }>; export type ListTraceItemAttributesResponse = Array<{ /** * Key to use when querying the attribute */ key: string; /** * Display name of the attribute */ name: string; /** * Other names the attribute can be queried by */ secondaryAliases?: Array; /** * Where the attribute comes from */ attributeSource: { /** * Who set the attribute: `sentry` for attributes Sentry defines, or `user` for custom attributes */ source_type: 'sentry' | 'user'; /** * Whether the attribute name is an alias Sentry maps to an internal column */ is_transformed_alias?: boolean; }; /** * Type of the attribute: `string`, `number`, `boolean` or `array` */ attributeType: 'string' | 'number' | 'boolean' | 'array'; /** * Additional, mostly-static metadata about an attribute. * * When ``expand=context`` is requested, context is attached to every attribute. * Metadata comes from the sentry conventions, Sentry's own column definitions, * or user-authored context (gated behind ``data-browsing-attribute-context``), * in that precedence order. Only the fields available are included, so an * attribute with no metadata gets an empty context. */ context?: { /** * Whether this context comes from a known Sentry convention */ isConvention?: boolean; /** * Whether this context was written by a user */ isCustom?: boolean; /** * Short description of the attribute */ brief?: string; /** * Whether the convention is deprecated */ isDeprecated?: boolean; /** * Longer notes about the attribute, such as caveats */ details?: Array; /** * Example values for the attribute */ examples?: Array; /** * Attribute that replaces this one, when it is deprecated */ replacementAttribute?: string; /** * Whether this Sentry convention is part of the OpenTelemetry semantic conventions. Present (and true) only for such conventions; OpenTelemetry attributes that aren't Sentry conventions are never marked */ isInOtel?: boolean; /** * Unit of a number attribute, from the dataset's Sentry-defined attributes or from Sentry conventions, which apply in every dataset */ unit?: 'byte' | 'currency' | 'millisecond' | 'percentage' | 'second'; }; }>; export type ListWorkflow = Array<{ /** * Workflow ID */ id: string; /** * Workflow name */ name: string; /** * Type of the workflow, such as alert */ type: string; /** * ID of the organization the workflow belongs to */ organizationId: string; /** * ID of the user who created the workflow */ createdBy: string | null; /** * When the workflow was created (ISO 8601) */ dateCreated: string; /** * When the workflow was last updated (ISO 8601) */ dateUpdated: string; /** * Conditions on which the workflow triggers */ triggers: { /** * ID of the condition group */ id?: string; /** * ID of the organization */ organizationId?: string; /** * How the conditions in the group combine */ logicType?: 'any' | 'any-short' | 'all' | 'none'; /** * Conditions in the group */ conditions?: Array<{ /** * ID of the condition */ id: string; /** * Type of the condition, such as first_seen_event or level */ type: string; /** * Value the condition compares against, which depends on its type */ comparison: number | string | boolean | { /** * Whether the issue must be older or newer than the age */ comparisonType: 'older' | 'newer'; /** * Age of the issue, in units of time */ value: number; /** * Unit of the age */ time: 'minute' | 'hour' | 'day' | 'week'; } | { /** * How sensitive anomaly detection is */ sensitivity: 'low' | 'medium' | 'high'; /** * Seasonal pattern that anomaly detection accounts for */ seasonality: 'auto' | 'hourly' | 'daily' | 'weekly' | 'hourly_daily' | 'hourly_weekly' | 'hourly_daily_weekly' | 'daily_weekly'; /** * Anomalies to detect: 0 above, 1 below, 2 above or below the expected value */ thresholdType: 0 | 1 | 2; } | { /** * Who the issue must be assigned to */ targetType: 'Unassigned' | 'Team' | 'Member'; /** * ID of the team or member. Not set for Unassigned */ targetIdentifier?: number | string; } | { /** * Event attribute to match, such as message or user.email */ attribute?: 'message' | 'platform' | 'environment' | 'type' | 'error.handled' | 'error.unhandled' | 'error.main_thread' | 'exception.type' | 'exception.value' | 'user.id' | 'user.email' | 'user.username' | 'user.ip_address' | 'http.method' | 'http.url' | 'http.status_code' | 'sdk.name' | 'stacktrace.code' | 'stacktrace.module' | 'stacktrace.filename' | 'stacktrace.abs_path' | 'stacktrace.package' | 'unreal.crash_type' | 'app.in_foreground' | 'os.distribution_name' | 'os.distribution_version' | 'symbolicated_in_app' | 'ota_updates.channel' | 'ota_updates.runtime_version' | 'ota_updates.update_id'; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the attribute against. Not set for is and ns */ value?: string; } | number | { /** * Time window to count in, such as 1h */ interval: '1m' | '5m' | '15m' | '1h' | '1d' | '1w' | '30d'; /** * Number of events in the interval that meets the condition */ value: number; /** * Tag or attribute filters that events must match to count */ filters?: Array<{ /** * Tag key to match */ key?: string; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the tag or attribute against. Not set for is and ns */ value?: string; } | { /** * Event attribute to match, such as message or user.email */ attribute?: 'message' | 'platform' | 'environment' | 'type' | 'error.handled' | 'error.unhandled' | 'error.main_thread' | 'exception.type' | 'exception.value' | 'user.id' | 'user.email' | 'user.username' | 'user.ip_address' | 'http.method' | 'http.url' | 'http.status_code' | 'sdk.name' | 'stacktrace.code' | 'stacktrace.module' | 'stacktrace.filename' | 'stacktrace.abs_path' | 'stacktrace.package' | 'unreal.crash_type' | 'app.in_foreground' | 'os.distribution_name' | 'os.distribution_version' | 'symbolicated_in_app' | 'ota_updates.channel' | 'ota_updates.runtime_version' | 'ota_updates.update_id'; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the tag or attribute against. Not set for is and ns */ value?: string; }>; } | { /** * Time window to count in, such as 1h */ interval: '1m' | '5m' | '15m' | '1h' | '1d' | '1w' | '30d'; /** * Percent increase in events over the comparison interval that meets the condition */ value: number; /** * Earlier time window to compare the count against, such as 1w */ comparisonInterval: '5m' | '15m' | '1h' | '1d' | '1w' | '30d'; /** * Tag or attribute filters that events must match to count */ filters?: Array<{ /** * Tag key to match */ key?: string; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the tag or attribute against. Not set for is and ns */ value?: string; } | { /** * Event attribute to match, such as message or user.email */ attribute?: 'message' | 'platform' | 'environment' | 'type' | 'error.handled' | 'error.unhandled' | 'error.main_thread' | 'exception.type' | 'exception.value' | 'user.id' | 'user.email' | 'user.username' | 'user.ip_address' | 'http.method' | 'http.url' | 'http.status_code' | 'sdk.name' | 'stacktrace.code' | 'stacktrace.module' | 'stacktrace.filename' | 'stacktrace.abs_path' | 'stacktrace.package' | 'unreal.crash_type' | 'app.in_foreground' | 'os.distribution_name' | 'os.distribution_version' | 'symbolicated_in_app' | 'ota_updates.channel' | 'ota_updates.runtime_version' | 'ota_updates.update_id'; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the tag or attribute against. Not set for is and ns */ value?: string; }>; } | { /** * Time window to count in, such as 1h */ interval: '1m' | '5m' | '15m' | '1h' | '1d' | '1w' | '30d'; /** * Number of affected users in the interval that meets the condition */ value: number; /** * Tag or attribute filters that events must match to count */ filters?: Array<{ /** * Tag key to match */ key?: string; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the tag or attribute against. Not set for is and ns */ value?: string; } | { /** * Event attribute to match, such as message or user.email */ attribute?: 'message' | 'platform' | 'environment' | 'type' | 'error.handled' | 'error.unhandled' | 'error.main_thread' | 'exception.type' | 'exception.value' | 'user.id' | 'user.email' | 'user.username' | 'user.ip_address' | 'http.method' | 'http.url' | 'http.status_code' | 'sdk.name' | 'stacktrace.code' | 'stacktrace.module' | 'stacktrace.filename' | 'stacktrace.abs_path' | 'stacktrace.package' | 'unreal.crash_type' | 'app.in_foreground' | 'os.distribution_name' | 'os.distribution_version' | 'symbolicated_in_app' | 'ota_updates.channel' | 'ota_updates.runtime_version' | 'ota_updates.update_id'; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the tag or attribute against. Not set for is and ns */ value?: string; }>; } | { /** * Time window to count in, such as 1h */ interval: '1m' | '5m' | '15m' | '1h' | '1d' | '1w' | '30d'; /** * Percent increase in affected users over the comparison interval that meets the condition */ value: number; /** * Earlier time window to compare the count against, such as 1w */ comparisonInterval: '5m' | '15m' | '1h' | '1d' | '1w' | '30d'; /** * Tag or attribute filters that events must match to count */ filters?: Array<{ /** * Tag key to match */ key?: string; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the tag or attribute against. Not set for is and ns */ value?: string; } | { /** * Event attribute to match, such as message or user.email */ attribute?: 'message' | 'platform' | 'environment' | 'type' | 'error.handled' | 'error.unhandled' | 'error.main_thread' | 'exception.type' | 'exception.value' | 'user.id' | 'user.email' | 'user.username' | 'user.ip_address' | 'http.method' | 'http.url' | 'http.status_code' | 'sdk.name' | 'stacktrace.code' | 'stacktrace.module' | 'stacktrace.filename' | 'stacktrace.abs_path' | 'stacktrace.package' | 'unreal.crash_type' | 'app.in_foreground' | 'os.distribution_name' | 'os.distribution_version' | 'symbolicated_in_app' | 'ota_updates.channel' | 'ota_updates.runtime_version' | 'ota_updates.update_id'; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the tag or attribute against. Not set for is and ns */ value?: string; }>; } | { /** * ID of the issue category */ value: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 19; /** * Whether the issue must be in the category or not. Defaults to true */ include?: boolean; } | { /** * Number of times the issue must have occurred */ value: number; } | 25 | 50 | 75 | 1 | { /** * Slug of the issue type */ value: 'performance_slow_db_query' | 'performance_render_blocking_asset_span' | 'performance_n_plus_one_db_queries' | 'performance_n_plus_one_db_queries_experimental' | 'performance_consecutive_db_queries' | 'performance_file_io_main_thread' | 'performance_consecutive_http' | 'performance_n_plus_one_api_calls' | 'performance_n_plus_one_api_calls_experimental' | 'performance_m_n_plus_one_db_queries' | 'performance_m_n_plus_one_db_queries_experimental' | 'performance_uncompressed_assets' | 'performance_db_main_thread' | 'performance_large_http_payload' | 'performance_http_overhead' | 'performance_p95_endpoint_regression' | 'performance_streamed_spans_exp' | 'db_query_injection_vulnerability' | 'query_injection_vulnerability' | 'profile_file_io_main_thread' | 'profile_image_decode_main_thread' | 'profile_json_decode_main_thread' | 'profile_regex_main_thread' | 'profile_frame_drop' | 'profile_function_regression' | 'llm_detected_experimental' | 'llm_detected_experimental_v2' | 'ai_detected_http' | 'ai_detected_db' | 'ai_detected_runtime_performance' | 'ai_detected_security' | 'ai_detected_code_health' | 'ai_detected_general' | 'replay_click_rage' | 'replay_hydration_error' | 'feedback' | 'web_vitals' | 'issue_stream' | 'metric_issue' | 'error' | 'uptime_domain_failure' | 'send-test-notification' | 'monitor_check_in_failure' | 'sourcemap_configuration' | 'low_value_span_configuration' | 'preprod_size_analysis'; /** * Whether the issue must be of the type or not. Defaults to true */ include?: boolean; } | { /** * Whether to compare against the oldest or newest adopted release */ releaseAgeType: 'oldest' | 'newest'; /** * Whether the event's release must be older or newer than that release */ ageComparison: 'older' | 'newer'; /** * Environment the release was adopted in */ environment: string; } | { /** * Event level: 0 sample, 10 debug, 20 info, 30 warning, 40 error, 50 fatal */ level: 0 | 10 | 20 | 30 | 40 | 50; /** * How to compare the event's level: eq, gte or lte */ match: 'eq' | 'gte' | 'lte'; } | { /** * Time window to count in, such as 1h */ interval: '1m' | '5m' | '10m' | '30m' | '1h'; /** * Percent of sessions affected in the interval that meets the condition */ value: number; /** * Tag or attribute filters that events must match to count */ filters?: Array<{ /** * Tag key to match */ key?: string; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the tag or attribute against. Not set for is and ns */ value?: string; } | { /** * Event attribute to match, such as message or user.email */ attribute?: 'message' | 'platform' | 'environment' | 'type' | 'error.handled' | 'error.unhandled' | 'error.main_thread' | 'exception.type' | 'exception.value' | 'user.id' | 'user.email' | 'user.username' | 'user.ip_address' | 'http.method' | 'http.url' | 'http.status_code' | 'sdk.name' | 'stacktrace.code' | 'stacktrace.module' | 'stacktrace.filename' | 'stacktrace.abs_path' | 'stacktrace.package' | 'unreal.crash_type' | 'app.in_foreground' | 'os.distribution_name' | 'os.distribution_version' | 'symbolicated_in_app' | 'ota_updates.channel' | 'ota_updates.runtime_version' | 'ota_updates.update_id'; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the tag or attribute against. Not set for is and ns */ value?: string; }>; } | { /** * Time window to count in, such as 1h */ interval: '1m' | '5m' | '10m' | '30m' | '1h'; /** * Percent increase in affected sessions over the comparison interval that meets the condition */ value: number; /** * Earlier time window to compare the count against, such as 1w */ comparisonInterval: '5m' | '15m' | '1h' | '1d' | '1w' | '30d'; /** * Tag or attribute filters that events must match to count */ filters?: Array<{ /** * Tag key to match */ key?: string; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the tag or attribute against. Not set for is and ns */ value?: string; } | { /** * Event attribute to match, such as message or user.email */ attribute?: 'message' | 'platform' | 'environment' | 'type' | 'error.handled' | 'error.unhandled' | 'error.main_thread' | 'exception.type' | 'exception.value' | 'user.id' | 'user.email' | 'user.username' | 'user.ip_address' | 'http.method' | 'http.url' | 'http.status_code' | 'sdk.name' | 'stacktrace.code' | 'stacktrace.module' | 'stacktrace.filename' | 'stacktrace.abs_path' | 'stacktrace.package' | 'unreal.crash_type' | 'app.in_foreground' | 'os.distribution_name' | 'os.distribution_version' | 'symbolicated_in_app' | 'ota_updates.channel' | 'ota_updates.runtime_version' | 'ota_updates.update_id'; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the tag or attribute against. Not set for is and ns */ value?: string; }>; } | Array<'rca_completed' | 'solution_completed' | 'coding_completed' | 'pr_ready_for_review'> | { /** * Tag key to match */ key?: string; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the tag against. Not set for is and ns */ value?: string; }; /** * Result the condition produces when it matches: true for alert conditions, or the priority level for monitor conditions */ conditionResult: boolean | number | number | null; }>; /** * Actions to fire when the conditions pass */ actions?: Array<{ /** * ID of the action */ id?: string; /** * Type of the action */ type?: 'slack' | 'slack_staging' | 'msteams' | 'discord' | 'pagerduty' | 'opsgenie' | 'github' | 'github_enterprise' | 'jira' | 'jira_server' | 'vsts' | 'email' | 'sentry_app' | 'plugin' | 'webhook' | 'seer_investigation'; /** * ID of the integration the action uses. Null for actions without one */ integrationId?: string | null; /** * Extra data for the action, which depends on its type */ data?: { /** * Tags to add to the message */ tags?: string; } | { /** * The fallthrough type for issue owners email notifications */ fallthroughType?: 'AllMembers' | 'ActiveMembers' | 'NoOne'; } | { /** * Dynamic form fields from customer configuration */ dynamicFormFields?: Array<{ /** * Name of the field */ name?: string; /** * Label of the field */ label?: string; /** * Type of the field, such as select or text */ type?: string; }>; /** * Additional fields that aren't part of standard fields */ additionalFields: { /** * Repository to create the issue in, as owner/name */ repo: string; /** * Labels to add to the issue */ labels?: Array | null; /** * User to assign the issue to */ assignee?: string | null; [key: string]: unknown; }; } | { /** * Dynamic form fields from customer configuration */ dynamicFormFields?: Array<{ /** * Name of the field */ name?: string; /** * Label of the field */ label?: string; /** * Type of the field, such as select or text */ type?: string; }>; /** * Additional fields that aren't part of standard fields */ additionalFields?: { [key: string]: string | null | number | boolean | Array; }; } | { [key: string]: never; } | { /** * The priority of the opsgenie action */ priority?: 'P1' | 'P2' | 'P3' | 'P4' | 'P5'; } | { /** * The priority of the pagerduty action */ priority?: 'default' | 'critical' | 'warning' | 'error' | 'info'; } | { [key: string]: string; } | { /** * Prompt the investigation runs */ prompt?: string; /** * Seer skill the investigation runs, instead of a prompt */ skill?: 'agentic_triage'; } | { /** * Values of the Sentry App's alert rule settings form, each with a name and value */ settings?: Array; } | { /** * Tags to add to the message */ tags?: string; /** * Notes to add to the message */ notes?: string; }; /** * Configuration of the action, such as targetType and targetIdentifier */ config?: { /** * ID of the target, such as a channel, user or team ID */ targetIdentifier: string; /** * Display name of the target, such as a channel name */ targetDisplay?: string | null; /** * Kind of target the action notifies, such as specific, user or team */ targetType: 'specific'; } | { /** * ID of the target, such as a channel, user or team ID */ targetIdentifier?: string | null; /** * Display name of the target, such as a channel name */ targetDisplay?: null; /** * Kind of target the action notifies, such as specific, user or team */ targetType: 'user' | 'team' | 'issue_owners'; } | { /** * ID of the target, such as a channel, user or team ID */ targetIdentifier?: null; /** * Display name of the target, such as a channel name */ targetDisplay?: null; /** * Kind of target the action notifies, such as specific, user or team */ targetType?: 'specific'; } | { /** * ID of the target, such as a channel, user or team ID */ targetIdentifier?: string; /** * Display name of the target, such as a channel name */ targetDisplay: string; /** * Kind of target the action notifies, such as specific, user or team */ targetType: 'specific'; } | { /** * ID of the target, such as a channel, user or team ID */ targetIdentifier: string; /** * Display name of the target, such as a channel name */ targetDisplay?: string | null; /** * Kind of target the action notifies, such as specific, user or team */ targetType: 'specific'; } | { /** * ID of the target, such as a channel, user or team ID */ targetIdentifier?: string | null; /** * Display name of the target, such as a channel name */ targetDisplay?: string | null; /** * Kind of target the action notifies, such as specific, user or team */ targetType?: null; } | { [key: string]: never; } | { /** * ID of the target, such as a channel, user or team ID */ targetIdentifier: string; /** * Display name of the target, such as a channel name */ targetDisplay?: string | null; /** * Kind of target the action notifies, such as specific, user or team */ targetType: 'sentry_app'; } | { /** * ID of the target, such as a channel, user or team ID */ targetIdentifier?: string; /** * Display name of the target, such as a channel name */ targetDisplay?: string; /** * Kind of target the action notifies, such as specific, user or team */ targetType: 'specific'; } | { /** * ID of the target, such as a channel, user or team ID */ targetIdentifier?: string; /** * Display name of the target, such as a channel name */ targetDisplay?: null; /** * Kind of target the action notifies, such as specific, user or team */ targetType?: null; }; /** * Status of the action */ status?: 'active' | 'disabled' | 'pending_deletion' | 'deletion_in_progress'; }>; } | null; /** * Filters to run before actions fire, each with the actions to fire */ actionFilters: Array<{ /** * ID of the condition group */ id?: string; /** * ID of the organization */ organizationId?: string; /** * How the conditions in the group combine */ logicType?: 'any' | 'any-short' | 'all' | 'none'; /** * Conditions in the group */ conditions?: Array<{ /** * ID of the condition */ id: string; /** * Type of the condition, such as first_seen_event or level */ type: string; /** * Value the condition compares against, which depends on its type */ comparison: number | string | boolean | { /** * Whether the issue must be older or newer than the age */ comparisonType: 'older' | 'newer'; /** * Age of the issue, in units of time */ value: number; /** * Unit of the age */ time: 'minute' | 'hour' | 'day' | 'week'; } | { /** * How sensitive anomaly detection is */ sensitivity: 'low' | 'medium' | 'high'; /** * Seasonal pattern that anomaly detection accounts for */ seasonality: 'auto' | 'hourly' | 'daily' | 'weekly' | 'hourly_daily' | 'hourly_weekly' | 'hourly_daily_weekly' | 'daily_weekly'; /** * Anomalies to detect: 0 above, 1 below, 2 above or below the expected value */ thresholdType: 0 | 1 | 2; } | { /** * Who the issue must be assigned to */ targetType: 'Unassigned' | 'Team' | 'Member'; /** * ID of the team or member. Not set for Unassigned */ targetIdentifier?: number | string; } | { /** * Event attribute to match, such as message or user.email */ attribute?: 'message' | 'platform' | 'environment' | 'type' | 'error.handled' | 'error.unhandled' | 'error.main_thread' | 'exception.type' | 'exception.value' | 'user.id' | 'user.email' | 'user.username' | 'user.ip_address' | 'http.method' | 'http.url' | 'http.status_code' | 'sdk.name' | 'stacktrace.code' | 'stacktrace.module' | 'stacktrace.filename' | 'stacktrace.abs_path' | 'stacktrace.package' | 'unreal.crash_type' | 'app.in_foreground' | 'os.distribution_name' | 'os.distribution_version' | 'symbolicated_in_app' | 'ota_updates.channel' | 'ota_updates.runtime_version' | 'ota_updates.update_id'; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the attribute against. Not set for is and ns */ value?: string; } | number | { /** * Time window to count in, such as 1h */ interval: '1m' | '5m' | '15m' | '1h' | '1d' | '1w' | '30d'; /** * Number of events in the interval that meets the condition */ value: number; /** * Tag or attribute filters that events must match to count */ filters?: Array<{ /** * Tag key to match */ key?: string; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the tag or attribute against. Not set for is and ns */ value?: string; } | { /** * Event attribute to match, such as message or user.email */ attribute?: 'message' | 'platform' | 'environment' | 'type' | 'error.handled' | 'error.unhandled' | 'error.main_thread' | 'exception.type' | 'exception.value' | 'user.id' | 'user.email' | 'user.username' | 'user.ip_address' | 'http.method' | 'http.url' | 'http.status_code' | 'sdk.name' | 'stacktrace.code' | 'stacktrace.module' | 'stacktrace.filename' | 'stacktrace.abs_path' | 'stacktrace.package' | 'unreal.crash_type' | 'app.in_foreground' | 'os.distribution_name' | 'os.distribution_version' | 'symbolicated_in_app' | 'ota_updates.channel' | 'ota_updates.runtime_version' | 'ota_updates.update_id'; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the tag or attribute against. Not set for is and ns */ value?: string; }>; } | { /** * Time window to count in, such as 1h */ interval: '1m' | '5m' | '15m' | '1h' | '1d' | '1w' | '30d'; /** * Percent increase in events over the comparison interval that meets the condition */ value: number; /** * Earlier time window to compare the count against, such as 1w */ comparisonInterval: '5m' | '15m' | '1h' | '1d' | '1w' | '30d'; /** * Tag or attribute filters that events must match to count */ filters?: Array<{ /** * Tag key to match */ key?: string; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the tag or attribute against. Not set for is and ns */ value?: string; } | { /** * Event attribute to match, such as message or user.email */ attribute?: 'message' | 'platform' | 'environment' | 'type' | 'error.handled' | 'error.unhandled' | 'error.main_thread' | 'exception.type' | 'exception.value' | 'user.id' | 'user.email' | 'user.username' | 'user.ip_address' | 'http.method' | 'http.url' | 'http.status_code' | 'sdk.name' | 'stacktrace.code' | 'stacktrace.module' | 'stacktrace.filename' | 'stacktrace.abs_path' | 'stacktrace.package' | 'unreal.crash_type' | 'app.in_foreground' | 'os.distribution_name' | 'os.distribution_version' | 'symbolicated_in_app' | 'ota_updates.channel' | 'ota_updates.runtime_version' | 'ota_updates.update_id'; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the tag or attribute against. Not set for is and ns */ value?: string; }>; } | { /** * Time window to count in, such as 1h */ interval: '1m' | '5m' | '15m' | '1h' | '1d' | '1w' | '30d'; /** * Number of affected users in the interval that meets the condition */ value: number; /** * Tag or attribute filters that events must match to count */ filters?: Array<{ /** * Tag key to match */ key?: string; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the tag or attribute against. Not set for is and ns */ value?: string; } | { /** * Event attribute to match, such as message or user.email */ attribute?: 'message' | 'platform' | 'environment' | 'type' | 'error.handled' | 'error.unhandled' | 'error.main_thread' | 'exception.type' | 'exception.value' | 'user.id' | 'user.email' | 'user.username' | 'user.ip_address' | 'http.method' | 'http.url' | 'http.status_code' | 'sdk.name' | 'stacktrace.code' | 'stacktrace.module' | 'stacktrace.filename' | 'stacktrace.abs_path' | 'stacktrace.package' | 'unreal.crash_type' | 'app.in_foreground' | 'os.distribution_name' | 'os.distribution_version' | 'symbolicated_in_app' | 'ota_updates.channel' | 'ota_updates.runtime_version' | 'ota_updates.update_id'; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the tag or attribute against. Not set for is and ns */ value?: string; }>; } | { /** * Time window to count in, such as 1h */ interval: '1m' | '5m' | '15m' | '1h' | '1d' | '1w' | '30d'; /** * Percent increase in affected users over the comparison interval that meets the condition */ value: number; /** * Earlier time window to compare the count against, such as 1w */ comparisonInterval: '5m' | '15m' | '1h' | '1d' | '1w' | '30d'; /** * Tag or attribute filters that events must match to count */ filters?: Array<{ /** * Tag key to match */ key?: string; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the tag or attribute against. Not set for is and ns */ value?: string; } | { /** * Event attribute to match, such as message or user.email */ attribute?: 'message' | 'platform' | 'environment' | 'type' | 'error.handled' | 'error.unhandled' | 'error.main_thread' | 'exception.type' | 'exception.value' | 'user.id' | 'user.email' | 'user.username' | 'user.ip_address' | 'http.method' | 'http.url' | 'http.status_code' | 'sdk.name' | 'stacktrace.code' | 'stacktrace.module' | 'stacktrace.filename' | 'stacktrace.abs_path' | 'stacktrace.package' | 'unreal.crash_type' | 'app.in_foreground' | 'os.distribution_name' | 'os.distribution_version' | 'symbolicated_in_app' | 'ota_updates.channel' | 'ota_updates.runtime_version' | 'ota_updates.update_id'; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the tag or attribute against. Not set for is and ns */ value?: string; }>; } | { /** * ID of the issue category */ value: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 19; /** * Whether the issue must be in the category or not. Defaults to true */ include?: boolean; } | { /** * Number of times the issue must have occurred */ value: number; } | 25 | 50 | 75 | 1 | { /** * Slug of the issue type */ value: 'performance_slow_db_query' | 'performance_render_blocking_asset_span' | 'performance_n_plus_one_db_queries' | 'performance_n_plus_one_db_queries_experimental' | 'performance_consecutive_db_queries' | 'performance_file_io_main_thread' | 'performance_consecutive_http' | 'performance_n_plus_one_api_calls' | 'performance_n_plus_one_api_calls_experimental' | 'performance_m_n_plus_one_db_queries' | 'performance_m_n_plus_one_db_queries_experimental' | 'performance_uncompressed_assets' | 'performance_db_main_thread' | 'performance_large_http_payload' | 'performance_http_overhead' | 'performance_p95_endpoint_regression' | 'performance_streamed_spans_exp' | 'db_query_injection_vulnerability' | 'query_injection_vulnerability' | 'profile_file_io_main_thread' | 'profile_image_decode_main_thread' | 'profile_json_decode_main_thread' | 'profile_regex_main_thread' | 'profile_frame_drop' | 'profile_function_regression' | 'llm_detected_experimental' | 'llm_detected_experimental_v2' | 'ai_detected_http' | 'ai_detected_db' | 'ai_detected_runtime_performance' | 'ai_detected_security' | 'ai_detected_code_health' | 'ai_detected_general' | 'replay_click_rage' | 'replay_hydration_error' | 'feedback' | 'web_vitals' | 'issue_stream' | 'metric_issue' | 'error' | 'uptime_domain_failure' | 'send-test-notification' | 'monitor_check_in_failure' | 'sourcemap_configuration' | 'low_value_span_configuration' | 'preprod_size_analysis'; /** * Whether the issue must be of the type or not. Defaults to true */ include?: boolean; } | { /** * Whether to compare against the oldest or newest adopted release */ releaseAgeType: 'oldest' | 'newest'; /** * Whether the event's release must be older or newer than that release */ ageComparison: 'older' | 'newer'; /** * Environment the release was adopted in */ environment: string; } | { /** * Event level: 0 sample, 10 debug, 20 info, 30 warning, 40 error, 50 fatal */ level: 0 | 10 | 20 | 30 | 40 | 50; /** * How to compare the event's level: eq, gte or lte */ match: 'eq' | 'gte' | 'lte'; } | { /** * Time window to count in, such as 1h */ interval: '1m' | '5m' | '10m' | '30m' | '1h'; /** * Percent of sessions affected in the interval that meets the condition */ value: number; /** * Tag or attribute filters that events must match to count */ filters?: Array<{ /** * Tag key to match */ key?: string; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the tag or attribute against. Not set for is and ns */ value?: string; } | { /** * Event attribute to match, such as message or user.email */ attribute?: 'message' | 'platform' | 'environment' | 'type' | 'error.handled' | 'error.unhandled' | 'error.main_thread' | 'exception.type' | 'exception.value' | 'user.id' | 'user.email' | 'user.username' | 'user.ip_address' | 'http.method' | 'http.url' | 'http.status_code' | 'sdk.name' | 'stacktrace.code' | 'stacktrace.module' | 'stacktrace.filename' | 'stacktrace.abs_path' | 'stacktrace.package' | 'unreal.crash_type' | 'app.in_foreground' | 'os.distribution_name' | 'os.distribution_version' | 'symbolicated_in_app' | 'ota_updates.channel' | 'ota_updates.runtime_version' | 'ota_updates.update_id'; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the tag or attribute against. Not set for is and ns */ value?: string; }>; } | { /** * Time window to count in, such as 1h */ interval: '1m' | '5m' | '10m' | '30m' | '1h'; /** * Percent increase in affected sessions over the comparison interval that meets the condition */ value: number; /** * Earlier time window to compare the count against, such as 1w */ comparisonInterval: '5m' | '15m' | '1h' | '1d' | '1w' | '30d'; /** * Tag or attribute filters that events must match to count */ filters?: Array<{ /** * Tag key to match */ key?: string; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the tag or attribute against. Not set for is and ns */ value?: string; } | { /** * Event attribute to match, such as message or user.email */ attribute?: 'message' | 'platform' | 'environment' | 'type' | 'error.handled' | 'error.unhandled' | 'error.main_thread' | 'exception.type' | 'exception.value' | 'user.id' | 'user.email' | 'user.username' | 'user.ip_address' | 'http.method' | 'http.url' | 'http.status_code' | 'sdk.name' | 'stacktrace.code' | 'stacktrace.module' | 'stacktrace.filename' | 'stacktrace.abs_path' | 'stacktrace.package' | 'unreal.crash_type' | 'app.in_foreground' | 'os.distribution_name' | 'os.distribution_version' | 'symbolicated_in_app' | 'ota_updates.channel' | 'ota_updates.runtime_version' | 'ota_updates.update_id'; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the tag or attribute against. Not set for is and ns */ value?: string; }>; } | Array<'rca_completed' | 'solution_completed' | 'coding_completed' | 'pr_ready_for_review'> | { /** * Tag key to match */ key?: string; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the tag against. Not set for is and ns */ value?: string; }; /** * Result the condition produces when it matches: true for alert conditions, or the priority level for monitor conditions */ conditionResult: boolean | number | number | null; }>; /** * Actions to fire when the conditions pass */ actions?: Array<{ /** * ID of the action */ id?: string; /** * Type of the action */ type?: 'slack' | 'slack_staging' | 'msteams' | 'discord' | 'pagerduty' | 'opsgenie' | 'github' | 'github_enterprise' | 'jira' | 'jira_server' | 'vsts' | 'email' | 'sentry_app' | 'plugin' | 'webhook' | 'seer_investigation'; /** * ID of the integration the action uses. Null for actions without one */ integrationId?: string | null; /** * Extra data for the action, which depends on its type */ data?: { /** * Tags to add to the message */ tags?: string; } | { /** * The fallthrough type for issue owners email notifications */ fallthroughType?: 'AllMembers' | 'ActiveMembers' | 'NoOne'; } | { /** * Dynamic form fields from customer configuration */ dynamicFormFields?: Array<{ /** * Name of the field */ name?: string; /** * Label of the field */ label?: string; /** * Type of the field, such as select or text */ type?: string; }>; /** * Additional fields that aren't part of standard fields */ additionalFields: { /** * Repository to create the issue in, as owner/name */ repo: string; /** * Labels to add to the issue */ labels?: Array | null; /** * User to assign the issue to */ assignee?: string | null; [key: string]: unknown; }; } | { /** * Dynamic form fields from customer configuration */ dynamicFormFields?: Array<{ /** * Name of the field */ name?: string; /** * Label of the field */ label?: string; /** * Type of the field, such as select or text */ type?: string; }>; /** * Additional fields that aren't part of standard fields */ additionalFields?: { [key: string]: string | null | number | boolean | Array; }; } | { [key: string]: never; } | { /** * The priority of the opsgenie action */ priority?: 'P1' | 'P2' | 'P3' | 'P4' | 'P5'; } | { /** * The priority of the pagerduty action */ priority?: 'default' | 'critical' | 'warning' | 'error' | 'info'; } | { [key: string]: string; } | { /** * Prompt the investigation runs */ prompt?: string; /** * Seer skill the investigation runs, instead of a prompt */ skill?: 'agentic_triage'; } | { /** * Values of the Sentry App's alert rule settings form, each with a name and value */ settings?: Array; } | { /** * Tags to add to the message */ tags?: string; /** * Notes to add to the message */ notes?: string; }; /** * Configuration of the action, such as targetType and targetIdentifier */ config?: { /** * ID of the target, such as a channel, user or team ID */ targetIdentifier: string; /** * Display name of the target, such as a channel name */ targetDisplay?: string | null; /** * Kind of target the action notifies, such as specific, user or team */ targetType: 'specific'; } | { /** * ID of the target, such as a channel, user or team ID */ targetIdentifier?: string | null; /** * Display name of the target, such as a channel name */ targetDisplay?: null; /** * Kind of target the action notifies, such as specific, user or team */ targetType: 'user' | 'team' | 'issue_owners'; } | { /** * ID of the target, such as a channel, user or team ID */ targetIdentifier?: null; /** * Display name of the target, such as a channel name */ targetDisplay?: null; /** * Kind of target the action notifies, such as specific, user or team */ targetType?: 'specific'; } | { /** * ID of the target, such as a channel, user or team ID */ targetIdentifier?: string; /** * Display name of the target, such as a channel name */ targetDisplay: string; /** * Kind of target the action notifies, such as specific, user or team */ targetType: 'specific'; } | { /** * ID of the target, such as a channel, user or team ID */ targetIdentifier: string; /** * Display name of the target, such as a channel name */ targetDisplay?: string | null; /** * Kind of target the action notifies, such as specific, user or team */ targetType: 'specific'; } | { /** * ID of the target, such as a channel, user or team ID */ targetIdentifier?: string | null; /** * Display name of the target, such as a channel name */ targetDisplay?: string | null; /** * Kind of target the action notifies, such as specific, user or team */ targetType?: null; } | { [key: string]: never; } | { /** * ID of the target, such as a channel, user or team ID */ targetIdentifier: string; /** * Display name of the target, such as a channel name */ targetDisplay?: string | null; /** * Kind of target the action notifies, such as specific, user or team */ targetType: 'sentry_app'; } | { /** * ID of the target, such as a channel, user or team ID */ targetIdentifier?: string; /** * Display name of the target, such as a channel name */ targetDisplay?: string; /** * Kind of target the action notifies, such as specific, user or team */ targetType: 'specific'; } | { /** * ID of the target, such as a channel, user or team ID */ targetIdentifier?: string; /** * Display name of the target, such as a channel name */ targetDisplay?: null; /** * Kind of target the action notifies, such as specific, user or team */ targetType?: null; }; /** * Status of the action */ status?: 'active' | 'disabled' | 'pending_deletion' | 'deletion_in_progress'; }>; }> | null; /** * Name of the environment the workflow is limited to. Null for all environments */ environment: string | null; /** * Configuration of the workflow, such as frequency in minutes */ config: { /** * How often the workflow should fire for a Group (minutes) */ frequency?: number; }; /** * IDs of the monitors connected to the workflow */ detectorIds: Array | null; /** * Whether the workflow is enabled */ enabled: boolean; /** * When the workflow last fired (ISO 8601) */ lastTriggered: string | null; /** * Team or user that owns the workflow, such as user:123 or team:456 */ owner: string | null; }>; export type MappingItem = { /** * The path prefix to strip from matching stack frame filenames before adding sourceRoot. */ stack_root: string; /** * The repository path prefix that replaces stackRoot. For example, /app/pkg/file.py with stackRoot=/app/ and sourceRoot=src/ resolves to src/pkg/file.py. */ source_root: string; }; export type Metric = { /** * The name of the metric. */ name: string; /** * The type of the metric. * * * `counter` * * `gauge` * * `distribution` */ type: 'counter' | 'gauge' | 'distribution'; /** * The unit of the metric (e.g., 'millisecond'). See MetricUnit in relay */ unit?: string | null; }; /** * Allows parameters to be defined in snake case, but passed as camel case. * * Errors are output in camel case. */ export type MetricIssueConditionGroupValidator = { id?: number; /** * * `any` * * `any-short` * * `all` * * `none` */ logic_type: 'any' | 'any-short' | 'all' | 'none'; conditions: Array; }; export type Monitor = { /** * ID of the monitor */ id: string; /** * Name of the monitor */ name: string; /** * Slug that identifies the monitor in the organization */ slug: string; /** * Status of the monitor. Disabled monitors don't accept check-ins */ status: 'active' | 'disabled' | 'pending_deletion' | 'deletion_in_progress'; /** * Whether incidents are muted in all of the monitor's environments */ isMuted: boolean; /** * Whether the most recent check-in was an upsert check-in */ isUpserting: boolean; /** * Configuration of the monitor */ config: { /** * Type of schedule: crontab or interval */ schedule_type: 'crontab' | 'interval'; /** * Schedule of the monitor: a crontab string, or a [value, unit] pair for intervals, such as [1, "day"] */ schedule: string | Array; /** * How long in minutes after the expected check-in time to wait before the check-in counts as missed */ checkin_margin: number | null; /** * How long in minutes a check-in can stay in progress before it counts as failed */ max_runtime: number | null; /** * Timezone the schedule is evaluated in, as a tz database name */ timezone: string | null; /** * Number of consecutive missed or failed check-ins before an issue is created */ failure_issue_threshold: number | null; /** * Number of consecutive successful check-ins before the issue is resolved */ recovery_threshold: number | null; /** * ID of the alert rule linked to the monitor */ alert_rule_id: number | null; }; /** * When the monitor was created (ISO 8601) */ dateCreated: string; /** * Project the monitor belongs to */ project: { /** * Counts of non-transaction events per interval over the requested stats period, as [timestamp, count] pairs. Only included when a stats period is requested */ stats?: Array> | { [key: string]: number; }; /** * Counts of transactions per interval over the requested stats period, as [timestamp, count] pairs. Only included when transaction stats are requested */ transactionStats?: Array>; /** * Crash-free session rates for the current and previous stats period. Only included when session stats are requested */ sessionStats?: { /** * Crash-free rate in the current period, as a percentage. Null when there's no session data */ currentCrashFreeRate: number | null; /** * Crash-free rate in the previous period, as a percentage. Null when there's no session data */ previousCrashFreeRate: number | null; /** * Whether the project has release health (session) data */ hasHealthData: boolean; }; /** * ID of the project */ id: string; /** * Slug of the project */ slug: string; /** * Name of the project */ name: string; /** * Platform of the project */ platform: string | null; /** * When the project was created (ISO 8601) */ dateCreated: string; /** * Whether the requesting user bookmarked the project */ isBookmarked: boolean; /** * Whether the requesting user is a member of a team with access to the project */ isMember: boolean; /** * Features enabled for the project */ features: Array; /** * When the project received its first event (ISO 8601) */ firstEvent: string | null; /** * Whether the project has sent transactions */ firstTransactionEvent: boolean; /** * Scopes the requesting user has on the project through team membership and organization role */ access: Array; /** * Whether the requesting user has access to the project */ hasAccess: boolean; /** * Whether the project has sent user feedback */ hasFeedbacks: boolean; /** * Whether the project has sent feature flags */ hasFlags: boolean; /** * Whether the project has sent an event with a minified stack trace */ hasMinifiedStackTrace: boolean; /** * Whether the project has cron monitors */ hasMonitors: boolean; /** * Whether the project has sent user feedback from the user feedback widget */ hasNewFeedbacks: boolean; /** * Whether the project has sent profiles */ hasProfiles: boolean; /** * Whether the project has sent replays */ hasReplays: boolean; /** * Whether the project has sent sessions */ hasSessions: boolean; /** * Whether the project has sent HTTP request spans used by Insights */ hasInsightsHttp: boolean; /** * Whether the project has sent database spans used by Insights */ hasInsightsDb: boolean; /** * Whether the project has sent asset spans used by Insights */ hasInsightsAssets: boolean; /** * Whether the project has sent app start spans used by Insights */ hasInsightsAppStart: boolean; /** * Whether the project has sent screen load spans used by Insights */ hasInsightsScreenLoad: boolean; /** * Whether the project has sent web vitals spans used by Insights */ hasInsightsVitals: boolean; /** * Whether the project has sent cache spans used by Insights */ hasInsightsCaches: boolean; /** * Whether the project has sent queue spans used by Insights */ hasInsightsQueues: boolean; /** * Whether the project has sent AI agent spans used by Insights */ hasInsightsAgentMonitoring: boolean; /** * Whether the project has sent MCP spans used by Insights */ hasInsightsMCP: boolean; /** * Whether the project has sent logs. Always true outside sentry.io */ hasLogs: boolean; /** * Whether the project has sent trace metrics. Always true outside sentry.io */ hasTraceMetrics: boolean; /** * Whether this is the Sentry install's own internal project */ isInternal: boolean; /** * Whether the project is public */ isPublic: boolean; /** * Avatar of the project. Always a letter avatar */ avatar: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Hex color code for the project, derived from its slug unless set explicitly */ color: string; /** * Status of the project: active, deleted, or unknown */ status: string; }; /** * Environments the monitor has received check-ins for */ environments: Array<{ /** * Name of the environment */ name: string; /** * Status of the monitor in the environment */ status: 'active' | 'disabled' | 'pending_deletion' | 'deletion_in_progress' | 'ok' | 'error'; /** * Whether incidents are muted for the monitor in the environment */ isMuted: boolean; /** * When the monitor was created (ISO 8601) */ dateCreated: string; /** * When the most recent check-in was received, not counting missed check-ins (ISO 8601) */ lastCheckIn: string | null; /** * When the next check-in is expected (ISO 8601) */ nextCheckIn: string | null; /** * Latest time the next check-in can arrive before it counts as missed (ISO 8601) */ nextCheckInLatest: string | null; /** * Unresolved incident for the monitor in the environment. Null when there's none */ activeIncident: { /** * When the incident started (ISO 8601) */ startingTimestamp: string | null; /** * When the incident was resolved (ISO 8601) */ resolvingTimestamp: string | null; /** * Details of the broken monitor notice for the incident. Null when there's none */ brokenNotice: { /** * When users were notified that the monitor environment looks broken (ISO 8601) */ userNotifiedTimestamp: string | null; /** * When the broken monitor environment was muted (ISO 8601) */ environmentMutedTimestamp: string | null; } | null; } | null; }>; /** * Team or user that owns the monitor. Null when there's no owner */ owner: { /** * Whether the actor is a user or a team */ type: 'user' | 'team'; /** * ID of the user or team */ id: string; /** * Display name of the user, or slug of the team */ name: string; /** * Email address of the user. Only set for users */ email?: string; } | null; }; /** * Data source validator for cron monitors. * * This handles creating/updating the Monitor when a detector is created/updated. */ export type MonitorDataSourceValidator = { /** * Name of the monitor. Used for notifications. */ name?: string; /** * Uniquely identifies your monitor within your organization. */ slug?: string; status?: string; owner?: string | null; is_muted?: boolean; config: { [key: string]: unknown; }; }; export type MonitorList = Array<{ /** * ID of the monitor */ id: string; /** * Name of the monitor */ name: string; /** * Slug that identifies the monitor in the organization */ slug: string; /** * Status of the monitor. Disabled monitors don't accept check-ins */ status: 'active' | 'disabled' | 'pending_deletion' | 'deletion_in_progress'; /** * Whether incidents are muted in all of the monitor's environments */ isMuted: boolean; /** * Whether the most recent check-in was an upsert check-in */ isUpserting: boolean; /** * Configuration of the monitor */ config: { /** * Type of schedule: crontab or interval */ schedule_type: 'crontab' | 'interval'; /** * Schedule of the monitor: a crontab string, or a [value, unit] pair for intervals, such as [1, "day"] */ schedule: string | Array; /** * How long in minutes after the expected check-in time to wait before the check-in counts as missed */ checkin_margin: number | null; /** * How long in minutes a check-in can stay in progress before it counts as failed */ max_runtime: number | null; /** * Timezone the schedule is evaluated in, as a tz database name */ timezone: string | null; /** * Number of consecutive missed or failed check-ins before an issue is created */ failure_issue_threshold: number | null; /** * Number of consecutive successful check-ins before the issue is resolved */ recovery_threshold: number | null; /** * ID of the alert rule linked to the monitor */ alert_rule_id: number | null; }; /** * When the monitor was created (ISO 8601) */ dateCreated: string; /** * Project the monitor belongs to */ project: { /** * Counts of non-transaction events per interval over the requested stats period, as [timestamp, count] pairs. Only included when a stats period is requested */ stats?: Array> | { [key: string]: number; }; /** * Counts of transactions per interval over the requested stats period, as [timestamp, count] pairs. Only included when transaction stats are requested */ transactionStats?: Array>; /** * Crash-free session rates for the current and previous stats period. Only included when session stats are requested */ sessionStats?: { /** * Crash-free rate in the current period, as a percentage. Null when there's no session data */ currentCrashFreeRate: number | null; /** * Crash-free rate in the previous period, as a percentage. Null when there's no session data */ previousCrashFreeRate: number | null; /** * Whether the project has release health (session) data */ hasHealthData: boolean; }; /** * ID of the project */ id: string; /** * Slug of the project */ slug: string; /** * Name of the project */ name: string; /** * Platform of the project */ platform: string | null; /** * When the project was created (ISO 8601) */ dateCreated: string; /** * Whether the requesting user bookmarked the project */ isBookmarked: boolean; /** * Whether the requesting user is a member of a team with access to the project */ isMember: boolean; /** * Features enabled for the project */ features: Array; /** * When the project received its first event (ISO 8601) */ firstEvent: string | null; /** * Whether the project has sent transactions */ firstTransactionEvent: boolean; /** * Scopes the requesting user has on the project through team membership and organization role */ access: Array; /** * Whether the requesting user has access to the project */ hasAccess: boolean; /** * Whether the project has sent user feedback */ hasFeedbacks: boolean; /** * Whether the project has sent feature flags */ hasFlags: boolean; /** * Whether the project has sent an event with a minified stack trace */ hasMinifiedStackTrace: boolean; /** * Whether the project has cron monitors */ hasMonitors: boolean; /** * Whether the project has sent user feedback from the user feedback widget */ hasNewFeedbacks: boolean; /** * Whether the project has sent profiles */ hasProfiles: boolean; /** * Whether the project has sent replays */ hasReplays: boolean; /** * Whether the project has sent sessions */ hasSessions: boolean; /** * Whether the project has sent HTTP request spans used by Insights */ hasInsightsHttp: boolean; /** * Whether the project has sent database spans used by Insights */ hasInsightsDb: boolean; /** * Whether the project has sent asset spans used by Insights */ hasInsightsAssets: boolean; /** * Whether the project has sent app start spans used by Insights */ hasInsightsAppStart: boolean; /** * Whether the project has sent screen load spans used by Insights */ hasInsightsScreenLoad: boolean; /** * Whether the project has sent web vitals spans used by Insights */ hasInsightsVitals: boolean; /** * Whether the project has sent cache spans used by Insights */ hasInsightsCaches: boolean; /** * Whether the project has sent queue spans used by Insights */ hasInsightsQueues: boolean; /** * Whether the project has sent AI agent spans used by Insights */ hasInsightsAgentMonitoring: boolean; /** * Whether the project has sent MCP spans used by Insights */ hasInsightsMCP: boolean; /** * Whether the project has sent logs. Always true outside sentry.io */ hasLogs: boolean; /** * Whether the project has sent trace metrics. Always true outside sentry.io */ hasTraceMetrics: boolean; /** * Whether this is the Sentry install's own internal project */ isInternal: boolean; /** * Whether the project is public */ isPublic: boolean; /** * Avatar of the project. Always a letter avatar */ avatar: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Hex color code for the project, derived from its slug unless set explicitly */ color: string; /** * Status of the project: active, deleted, or unknown */ status: string; }; /** * Environments the monitor has received check-ins for */ environments: Array<{ /** * Name of the environment */ name: string; /** * Status of the monitor in the environment */ status: 'active' | 'disabled' | 'pending_deletion' | 'deletion_in_progress' | 'ok' | 'error'; /** * Whether incidents are muted for the monitor in the environment */ isMuted: boolean; /** * When the monitor was created (ISO 8601) */ dateCreated: string; /** * When the most recent check-in was received, not counting missed check-ins (ISO 8601) */ lastCheckIn: string | null; /** * When the next check-in is expected (ISO 8601) */ nextCheckIn: string | null; /** * Latest time the next check-in can arrive before it counts as missed (ISO 8601) */ nextCheckInLatest: string | null; /** * Unresolved incident for the monitor in the environment. Null when there's none */ activeIncident: { /** * When the incident started (ISO 8601) */ startingTimestamp: string | null; /** * When the incident was resolved (ISO 8601) */ resolvingTimestamp: string | null; /** * Details of the broken monitor notice for the incident. Null when there's none */ brokenNotice: { /** * When users were notified that the monitor environment looks broken (ISO 8601) */ userNotifiedTimestamp: string | null; /** * When the broken monitor environment was muted (ISO 8601) */ environmentMutedTimestamp: string | null; } | null; } | null; }>; /** * Team or user that owns the monitor. Null when there's no owner */ owner: { /** * Whether the actor is a user or a team */ type: 'user' | 'team'; /** * ID of the user or team */ id: string; /** * Display name of the user, or slug of the team */ name: string; /** * Email address of the user. Only set for users */ email?: string; } | null; }>; /** * Allows parameters to be defined in snake case, but passed as camel case. * * Errors are output in camel case. */ export type MonitorValidator = { /** * The project ID or slug to associate the monitor to. */ project: string; /** * Name of the monitor. Used for notifications. If not set the slug will be derived from your monitor name. */ name: string; /** * The configuration for the monitor. */ config: { /** * Currently supports "crontab" or "interval" * * * `crontab` * * `interval` */ schedule_type?: 'crontab' | 'interval'; /** * Varies depending on the schedule_type. Is either a crontab string, or a 2 element tuple for intervals (e.g. [1, 'day']) */ schedule: unknown; /** * How long (in minutes) after the expected checkin time will we wait until we consider the checkin to have been missed. */ checkin_margin?: number | null; /** * How long (in minutes) is the checkin allowed to run for in CheckInStatus.IN_PROGRESS before it is considered failed. Maximum 10080 (7 days). */ max_runtime?: number | null; /** * tz database style timezone string * * * `Africa/Abidjan` * * `Africa/Accra` * * `Africa/Addis_Ababa` * * `Africa/Algiers` * * `Africa/Asmara` * * `Africa/Asmera` * * `Africa/Bamako` * * `Africa/Bangui` * * `Africa/Banjul` * * `Africa/Bissau` * * `Africa/Blantyre` * * `Africa/Brazzaville` * * `Africa/Bujumbura` * * `Africa/Cairo` * * `Africa/Casablanca` * * `Africa/Ceuta` * * `Africa/Conakry` * * `Africa/Dakar` * * `Africa/Dar_es_Salaam` * * `Africa/Djibouti` * * `Africa/Douala` * * `Africa/El_Aaiun` * * `Africa/Freetown` * * `Africa/Gaborone` * * `Africa/Harare` * * `Africa/Johannesburg` * * `Africa/Juba` * * `Africa/Kampala` * * `Africa/Khartoum` * * `Africa/Kigali` * * `Africa/Kinshasa` * * `Africa/Lagos` * * `Africa/Libreville` * * `Africa/Lome` * * `Africa/Luanda` * * `Africa/Lubumbashi` * * `Africa/Lusaka` * * `Africa/Malabo` * * `Africa/Maputo` * * `Africa/Maseru` * * `Africa/Mbabane` * * `Africa/Mogadishu` * * `Africa/Monrovia` * * `Africa/Nairobi` * * `Africa/Ndjamena` * * `Africa/Niamey` * * `Africa/Nouakchott` * * `Africa/Ouagadougou` * * `Africa/Porto-Novo` * * `Africa/Sao_Tome` * * `Africa/Timbuktu` * * `Africa/Tripoli` * * `Africa/Tunis` * * `Africa/Windhoek` * * `America/Adak` * * `America/Anchorage` * * `America/Anguilla` * * `America/Antigua` * * `America/Araguaina` * * `America/Argentina/Buenos_Aires` * * `America/Argentina/Catamarca` * * `America/Argentina/ComodRivadavia` * * `America/Argentina/Cordoba` * * `America/Argentina/Jujuy` * * `America/Argentina/La_Rioja` * * `America/Argentina/Mendoza` * * `America/Argentina/Rio_Gallegos` * * `America/Argentina/Salta` * * `America/Argentina/San_Juan` * * `America/Argentina/San_Luis` * * `America/Argentina/Tucuman` * * `America/Argentina/Ushuaia` * * `America/Aruba` * * `America/Asuncion` * * `America/Atikokan` * * `America/Atka` * * `America/Bahia` * * `America/Bahia_Banderas` * * `America/Barbados` * * `America/Belem` * * `America/Belize` * * `America/Blanc-Sablon` * * `America/Boa_Vista` * * `America/Bogota` * * `America/Boise` * * `America/Buenos_Aires` * * `America/Cambridge_Bay` * * `America/Campo_Grande` * * `America/Cancun` * * `America/Caracas` * * `America/Catamarca` * * `America/Cayenne` * * `America/Cayman` * * `America/Chicago` * * `America/Chihuahua` * * `America/Ciudad_Juarez` * * `America/Coral_Harbour` * * `America/Cordoba` * * `America/Costa_Rica` * * `America/Coyhaique` * * `America/Creston` * * `America/Cuiaba` * * `America/Curacao` * * `America/Danmarkshavn` * * `America/Dawson` * * `America/Dawson_Creek` * * `America/Denver` * * `America/Detroit` * * `America/Dominica` * * `America/Edmonton` * * `America/Eirunepe` * * `America/El_Salvador` * * `America/Ensenada` * * `America/Fort_Nelson` * * `America/Fort_Wayne` * * `America/Fortaleza` * * `America/Glace_Bay` * * `America/Godthab` * * `America/Goose_Bay` * * `America/Grand_Turk` * * `America/Grenada` * * `America/Guadeloupe` * * `America/Guatemala` * * `America/Guayaquil` * * `America/Guyana` * * `America/Halifax` * * `America/Havana` * * `America/Hermosillo` * * `America/Indiana/Indianapolis` * * `America/Indiana/Knox` * * `America/Indiana/Marengo` * * `America/Indiana/Petersburg` * * `America/Indiana/Tell_City` * * `America/Indiana/Vevay` * * `America/Indiana/Vincennes` * * `America/Indiana/Winamac` * * `America/Indianapolis` * * `America/Inuvik` * * `America/Iqaluit` * * `America/Jamaica` * * `America/Jujuy` * * `America/Juneau` * * `America/Kentucky/Louisville` * * `America/Kentucky/Monticello` * * `America/Knox_IN` * * `America/Kralendijk` * * `America/La_Paz` * * `America/Lima` * * `America/Los_Angeles` * * `America/Louisville` * * `America/Lower_Princes` * * `America/Maceio` * * `America/Managua` * * `America/Manaus` * * `America/Marigot` * * `America/Martinique` * * `America/Matamoros` * * `America/Mazatlan` * * `America/Mendoza` * * `America/Menominee` * * `America/Merida` * * `America/Metlakatla` * * `America/Mexico_City` * * `America/Miquelon` * * `America/Moncton` * * `America/Monterrey` * * `America/Montevideo` * * `America/Montreal` * * `America/Montserrat` * * `America/Nassau` * * `America/New_York` * * `America/Nipigon` * * `America/Nome` * * `America/Noronha` * * `America/North_Dakota/Beulah` * * `America/North_Dakota/Center` * * `America/North_Dakota/New_Salem` * * `America/Nuuk` * * `America/Ojinaga` * * `America/Panama` * * `America/Pangnirtung` * * `America/Paramaribo` * * `America/Phoenix` * * `America/Port-au-Prince` * * `America/Port_of_Spain` * * `America/Porto_Acre` * * `America/Porto_Velho` * * `America/Puerto_Rico` * * `America/Punta_Arenas` * * `America/Rainy_River` * * `America/Rankin_Inlet` * * `America/Recife` * * `America/Regina` * * `America/Resolute` * * `America/Rio_Branco` * * `America/Rosario` * * `America/Santa_Isabel` * * `America/Santarem` * * `America/Santiago` * * `America/Santo_Domingo` * * `America/Sao_Paulo` * * `America/Scoresbysund` * * `America/Shiprock` * * `America/Sitka` * * `America/St_Barthelemy` * * `America/St_Johns` * * `America/St_Kitts` * * `America/St_Lucia` * * `America/St_Thomas` * * `America/St_Vincent` * * `America/Swift_Current` * * `America/Tegucigalpa` * * `America/Thule` * * `America/Thunder_Bay` * * `America/Tijuana` * * `America/Toronto` * * `America/Tortola` * * `America/Vancouver` * * `America/Virgin` * * `America/Whitehorse` * * `America/Winnipeg` * * `America/Yakutat` * * `America/Yellowknife` * * `Antarctica/Casey` * * `Antarctica/Davis` * * `Antarctica/DumontDUrville` * * `Antarctica/Macquarie` * * `Antarctica/Mawson` * * `Antarctica/McMurdo` * * `Antarctica/Palmer` * * `Antarctica/Rothera` * * `Antarctica/South_Pole` * * `Antarctica/Syowa` * * `Antarctica/Troll` * * `Antarctica/Vostok` * * `Arctic/Longyearbyen` * * `Asia/Aden` * * `Asia/Almaty` * * `Asia/Amman` * * `Asia/Anadyr` * * `Asia/Aqtau` * * `Asia/Aqtobe` * * `Asia/Ashgabat` * * `Asia/Ashkhabad` * * `Asia/Atyrau` * * `Asia/Baghdad` * * `Asia/Bahrain` * * `Asia/Baku` * * `Asia/Bangkok` * * `Asia/Barnaul` * * `Asia/Beirut` * * `Asia/Bishkek` * * `Asia/Brunei` * * `Asia/Calcutta` * * `Asia/Chita` * * `Asia/Choibalsan` * * `Asia/Chongqing` * * `Asia/Chungking` * * `Asia/Colombo` * * `Asia/Dacca` * * `Asia/Damascus` * * `Asia/Dhaka` * * `Asia/Dili` * * `Asia/Dubai` * * `Asia/Dushanbe` * * `Asia/Famagusta` * * `Asia/Gaza` * * `Asia/Harbin` * * `Asia/Hebron` * * `Asia/Ho_Chi_Minh` * * `Asia/Hong_Kong` * * `Asia/Hovd` * * `Asia/Irkutsk` * * `Asia/Istanbul` * * `Asia/Jakarta` * * `Asia/Jayapura` * * `Asia/Jerusalem` * * `Asia/Kabul` * * `Asia/Kamchatka` * * `Asia/Karachi` * * `Asia/Kashgar` * * `Asia/Kathmandu` * * `Asia/Katmandu` * * `Asia/Khandyga` * * `Asia/Kolkata` * * `Asia/Krasnoyarsk` * * `Asia/Kuala_Lumpur` * * `Asia/Kuching` * * `Asia/Kuwait` * * `Asia/Macao` * * `Asia/Macau` * * `Asia/Magadan` * * `Asia/Makassar` * * `Asia/Manila` * * `Asia/Muscat` * * `Asia/Nicosia` * * `Asia/Novokuznetsk` * * `Asia/Novosibirsk` * * `Asia/Omsk` * * `Asia/Oral` * * `Asia/Phnom_Penh` * * `Asia/Pontianak` * * `Asia/Pyongyang` * * `Asia/Qatar` * * `Asia/Qostanay` * * `Asia/Qyzylorda` * * `Asia/Rangoon` * * `Asia/Riyadh` * * `Asia/Saigon` * * `Asia/Sakhalin` * * `Asia/Samarkand` * * `Asia/Seoul` * * `Asia/Shanghai` * * `Asia/Singapore` * * `Asia/Srednekolymsk` * * `Asia/Taipei` * * `Asia/Tashkent` * * `Asia/Tbilisi` * * `Asia/Tehran` * * `Asia/Tel_Aviv` * * `Asia/Thimbu` * * `Asia/Thimphu` * * `Asia/Tokyo` * * `Asia/Tomsk` * * `Asia/Ujung_Pandang` * * `Asia/Ulaanbaatar` * * `Asia/Ulan_Bator` * * `Asia/Urumqi` * * `Asia/Ust-Nera` * * `Asia/Vientiane` * * `Asia/Vladivostok` * * `Asia/Yakutsk` * * `Asia/Yangon` * * `Asia/Yekaterinburg` * * `Asia/Yerevan` * * `Atlantic/Azores` * * `Atlantic/Bermuda` * * `Atlantic/Canary` * * `Atlantic/Cape_Verde` * * `Atlantic/Faeroe` * * `Atlantic/Faroe` * * `Atlantic/Jan_Mayen` * * `Atlantic/Madeira` * * `Atlantic/Reykjavik` * * `Atlantic/South_Georgia` * * `Atlantic/St_Helena` * * `Atlantic/Stanley` * * `Australia/ACT` * * `Australia/Adelaide` * * `Australia/Brisbane` * * `Australia/Broken_Hill` * * `Australia/Canberra` * * `Australia/Currie` * * `Australia/Darwin` * * `Australia/Eucla` * * `Australia/Hobart` * * `Australia/LHI` * * `Australia/Lindeman` * * `Australia/Lord_Howe` * * `Australia/Melbourne` * * `Australia/NSW` * * `Australia/North` * * `Australia/Perth` * * `Australia/Queensland` * * `Australia/South` * * `Australia/Sydney` * * `Australia/Tasmania` * * `Australia/Victoria` * * `Australia/West` * * `Australia/Yancowinna` * * `Brazil/Acre` * * `Brazil/DeNoronha` * * `Brazil/East` * * `Brazil/West` * * `CET` * * `CST6CDT` * * `Canada/Atlantic` * * `Canada/Central` * * `Canada/Eastern` * * `Canada/Mountain` * * `Canada/Newfoundland` * * `Canada/Pacific` * * `Canada/Saskatchewan` * * `Canada/Yukon` * * `Chile/Continental` * * `Chile/EasterIsland` * * `Cuba` * * `EET` * * `EST` * * `EST5EDT` * * `Egypt` * * `Eire` * * `Etc/GMT` * * `Etc/GMT+0` * * `Etc/GMT+1` * * `Etc/GMT+10` * * `Etc/GMT+11` * * `Etc/GMT+12` * * `Etc/GMT+2` * * `Etc/GMT+3` * * `Etc/GMT+4` * * `Etc/GMT+5` * * `Etc/GMT+6` * * `Etc/GMT+7` * * `Etc/GMT+8` * * `Etc/GMT+9` * * `Etc/GMT-0` * * `Etc/GMT-1` * * `Etc/GMT-10` * * `Etc/GMT-11` * * `Etc/GMT-12` * * `Etc/GMT-13` * * `Etc/GMT-14` * * `Etc/GMT-2` * * `Etc/GMT-3` * * `Etc/GMT-4` * * `Etc/GMT-5` * * `Etc/GMT-6` * * `Etc/GMT-7` * * `Etc/GMT-8` * * `Etc/GMT-9` * * `Etc/GMT0` * * `Etc/Greenwich` * * `Etc/UCT` * * `Etc/UTC` * * `Etc/Universal` * * `Etc/Zulu` * * `Europe/Amsterdam` * * `Europe/Andorra` * * `Europe/Astrakhan` * * `Europe/Athens` * * `Europe/Belfast` * * `Europe/Belgrade` * * `Europe/Berlin` * * `Europe/Bratislava` * * `Europe/Brussels` * * `Europe/Bucharest` * * `Europe/Budapest` * * `Europe/Busingen` * * `Europe/Chisinau` * * `Europe/Copenhagen` * * `Europe/Dublin` * * `Europe/Gibraltar` * * `Europe/Guernsey` * * `Europe/Helsinki` * * `Europe/Isle_of_Man` * * `Europe/Istanbul` * * `Europe/Jersey` * * `Europe/Kaliningrad` * * `Europe/Kiev` * * `Europe/Kirov` * * `Europe/Kyiv` * * `Europe/Lisbon` * * `Europe/Ljubljana` * * `Europe/London` * * `Europe/Luxembourg` * * `Europe/Madrid` * * `Europe/Malta` * * `Europe/Mariehamn` * * `Europe/Minsk` * * `Europe/Monaco` * * `Europe/Moscow` * * `Europe/Nicosia` * * `Europe/Oslo` * * `Europe/Paris` * * `Europe/Podgorica` * * `Europe/Prague` * * `Europe/Riga` * * `Europe/Rome` * * `Europe/Samara` * * `Europe/San_Marino` * * `Europe/Sarajevo` * * `Europe/Saratov` * * `Europe/Simferopol` * * `Europe/Skopje` * * `Europe/Sofia` * * `Europe/Stockholm` * * `Europe/Tallinn` * * `Europe/Tirane` * * `Europe/Tiraspol` * * `Europe/Ulyanovsk` * * `Europe/Uzhgorod` * * `Europe/Vaduz` * * `Europe/Vatican` * * `Europe/Vienna` * * `Europe/Vilnius` * * `Europe/Volgograd` * * `Europe/Warsaw` * * `Europe/Zagreb` * * `Europe/Zaporozhye` * * `Europe/Zurich` * * `GB` * * `GB-Eire` * * `GMT` * * `GMT+0` * * `GMT-0` * * `GMT0` * * `Greenwich` * * `HST` * * `Hongkong` * * `Iceland` * * `Indian/Antananarivo` * * `Indian/Chagos` * * `Indian/Christmas` * * `Indian/Cocos` * * `Indian/Comoro` * * `Indian/Kerguelen` * * `Indian/Mahe` * * `Indian/Maldives` * * `Indian/Mauritius` * * `Indian/Mayotte` * * `Indian/Reunion` * * `Iran` * * `Israel` * * `Jamaica` * * `Japan` * * `Kwajalein` * * `Libya` * * `MET` * * `MST` * * `MST7MDT` * * `Mexico/BajaNorte` * * `Mexico/BajaSur` * * `Mexico/General` * * `NZ` * * `NZ-CHAT` * * `Navajo` * * `PRC` * * `PST8PDT` * * `Pacific/Apia` * * `Pacific/Auckland` * * `Pacific/Bougainville` * * `Pacific/Chatham` * * `Pacific/Chuuk` * * `Pacific/Easter` * * `Pacific/Efate` * * `Pacific/Enderbury` * * `Pacific/Fakaofo` * * `Pacific/Fiji` * * `Pacific/Funafuti` * * `Pacific/Galapagos` * * `Pacific/Gambier` * * `Pacific/Guadalcanal` * * `Pacific/Guam` * * `Pacific/Honolulu` * * `Pacific/Johnston` * * `Pacific/Kanton` * * `Pacific/Kiritimati` * * `Pacific/Kosrae` * * `Pacific/Kwajalein` * * `Pacific/Majuro` * * `Pacific/Marquesas` * * `Pacific/Midway` * * `Pacific/Nauru` * * `Pacific/Niue` * * `Pacific/Norfolk` * * `Pacific/Noumea` * * `Pacific/Pago_Pago` * * `Pacific/Palau` * * `Pacific/Pitcairn` * * `Pacific/Pohnpei` * * `Pacific/Ponape` * * `Pacific/Port_Moresby` * * `Pacific/Rarotonga` * * `Pacific/Saipan` * * `Pacific/Samoa` * * `Pacific/Tahiti` * * `Pacific/Tarawa` * * `Pacific/Tongatapu` * * `Pacific/Truk` * * `Pacific/Wake` * * `Pacific/Wallis` * * `Pacific/Yap` * * `Poland` * * `Portugal` * * `ROC` * * `ROK` * * `Singapore` * * `Turkey` * * `UCT` * * `US/Alaska` * * `US/Aleutian` * * `US/Arizona` * * `US/Central` * * `US/East-Indiana` * * `US/Eastern` * * `US/Hawaii` * * `US/Indiana-Starke` * * `US/Michigan` * * `US/Mountain` * * `US/Pacific` * * `US/Samoa` * * `UTC` * * `Universal` * * `W-SU` * * `WET` * * `Zulu` * * `localtime` */ timezone?: 'Africa/Abidjan' | 'Africa/Accra' | 'Africa/Addis_Ababa' | 'Africa/Algiers' | 'Africa/Asmara' | 'Africa/Asmera' | 'Africa/Bamako' | 'Africa/Bangui' | 'Africa/Banjul' | 'Africa/Bissau' | 'Africa/Blantyre' | 'Africa/Brazzaville' | 'Africa/Bujumbura' | 'Africa/Cairo' | 'Africa/Casablanca' | 'Africa/Ceuta' | 'Africa/Conakry' | 'Africa/Dakar' | 'Africa/Dar_es_Salaam' | 'Africa/Djibouti' | 'Africa/Douala' | 'Africa/El_Aaiun' | 'Africa/Freetown' | 'Africa/Gaborone' | 'Africa/Harare' | 'Africa/Johannesburg' | 'Africa/Juba' | 'Africa/Kampala' | 'Africa/Khartoum' | 'Africa/Kigali' | 'Africa/Kinshasa' | 'Africa/Lagos' | 'Africa/Libreville' | 'Africa/Lome' | 'Africa/Luanda' | 'Africa/Lubumbashi' | 'Africa/Lusaka' | 'Africa/Malabo' | 'Africa/Maputo' | 'Africa/Maseru' | 'Africa/Mbabane' | 'Africa/Mogadishu' | 'Africa/Monrovia' | 'Africa/Nairobi' | 'Africa/Ndjamena' | 'Africa/Niamey' | 'Africa/Nouakchott' | 'Africa/Ouagadougou' | 'Africa/Porto-Novo' | 'Africa/Sao_Tome' | 'Africa/Timbuktu' | 'Africa/Tripoli' | 'Africa/Tunis' | 'Africa/Windhoek' | 'America/Adak' | 'America/Anchorage' | 'America/Anguilla' | 'America/Antigua' | 'America/Araguaina' | 'America/Argentina/Buenos_Aires' | 'America/Argentina/Catamarca' | 'America/Argentina/ComodRivadavia' | 'America/Argentina/Cordoba' | 'America/Argentina/Jujuy' | 'America/Argentina/La_Rioja' | 'America/Argentina/Mendoza' | 'America/Argentina/Rio_Gallegos' | 'America/Argentina/Salta' | 'America/Argentina/San_Juan' | 'America/Argentina/San_Luis' | 'America/Argentina/Tucuman' | 'America/Argentina/Ushuaia' | 'America/Aruba' | 'America/Asuncion' | 'America/Atikokan' | 'America/Atka' | 'America/Bahia' | 'America/Bahia_Banderas' | 'America/Barbados' | 'America/Belem' | 'America/Belize' | 'America/Blanc-Sablon' | 'America/Boa_Vista' | 'America/Bogota' | 'America/Boise' | 'America/Buenos_Aires' | 'America/Cambridge_Bay' | 'America/Campo_Grande' | 'America/Cancun' | 'America/Caracas' | 'America/Catamarca' | 'America/Cayenne' | 'America/Cayman' | 'America/Chicago' | 'America/Chihuahua' | 'America/Ciudad_Juarez' | 'America/Coral_Harbour' | 'America/Cordoba' | 'America/Costa_Rica' | 'America/Coyhaique' | 'America/Creston' | 'America/Cuiaba' | 'America/Curacao' | 'America/Danmarkshavn' | 'America/Dawson' | 'America/Dawson_Creek' | 'America/Denver' | 'America/Detroit' | 'America/Dominica' | 'America/Edmonton' | 'America/Eirunepe' | 'America/El_Salvador' | 'America/Ensenada' | 'America/Fort_Nelson' | 'America/Fort_Wayne' | 'America/Fortaleza' | 'America/Glace_Bay' | 'America/Godthab' | 'America/Goose_Bay' | 'America/Grand_Turk' | 'America/Grenada' | 'America/Guadeloupe' | 'America/Guatemala' | 'America/Guayaquil' | 'America/Guyana' | 'America/Halifax' | 'America/Havana' | 'America/Hermosillo' | 'America/Indiana/Indianapolis' | 'America/Indiana/Knox' | 'America/Indiana/Marengo' | 'America/Indiana/Petersburg' | 'America/Indiana/Tell_City' | 'America/Indiana/Vevay' | 'America/Indiana/Vincennes' | 'America/Indiana/Winamac' | 'America/Indianapolis' | 'America/Inuvik' | 'America/Iqaluit' | 'America/Jamaica' | 'America/Jujuy' | 'America/Juneau' | 'America/Kentucky/Louisville' | 'America/Kentucky/Monticello' | 'America/Knox_IN' | 'America/Kralendijk' | 'America/La_Paz' | 'America/Lima' | 'America/Los_Angeles' | 'America/Louisville' | 'America/Lower_Princes' | 'America/Maceio' | 'America/Managua' | 'America/Manaus' | 'America/Marigot' | 'America/Martinique' | 'America/Matamoros' | 'America/Mazatlan' | 'America/Mendoza' | 'America/Menominee' | 'America/Merida' | 'America/Metlakatla' | 'America/Mexico_City' | 'America/Miquelon' | 'America/Moncton' | 'America/Monterrey' | 'America/Montevideo' | 'America/Montreal' | 'America/Montserrat' | 'America/Nassau' | 'America/New_York' | 'America/Nipigon' | 'America/Nome' | 'America/Noronha' | 'America/North_Dakota/Beulah' | 'America/North_Dakota/Center' | 'America/North_Dakota/New_Salem' | 'America/Nuuk' | 'America/Ojinaga' | 'America/Panama' | 'America/Pangnirtung' | 'America/Paramaribo' | 'America/Phoenix' | 'America/Port-au-Prince' | 'America/Port_of_Spain' | 'America/Porto_Acre' | 'America/Porto_Velho' | 'America/Puerto_Rico' | 'America/Punta_Arenas' | 'America/Rainy_River' | 'America/Rankin_Inlet' | 'America/Recife' | 'America/Regina' | 'America/Resolute' | 'America/Rio_Branco' | 'America/Rosario' | 'America/Santa_Isabel' | 'America/Santarem' | 'America/Santiago' | 'America/Santo_Domingo' | 'America/Sao_Paulo' | 'America/Scoresbysund' | 'America/Shiprock' | 'America/Sitka' | 'America/St_Barthelemy' | 'America/St_Johns' | 'America/St_Kitts' | 'America/St_Lucia' | 'America/St_Thomas' | 'America/St_Vincent' | 'America/Swift_Current' | 'America/Tegucigalpa' | 'America/Thule' | 'America/Thunder_Bay' | 'America/Tijuana' | 'America/Toronto' | 'America/Tortola' | 'America/Vancouver' | 'America/Virgin' | 'America/Whitehorse' | 'America/Winnipeg' | 'America/Yakutat' | 'America/Yellowknife' | 'Antarctica/Casey' | 'Antarctica/Davis' | 'Antarctica/DumontDUrville' | 'Antarctica/Macquarie' | 'Antarctica/Mawson' | 'Antarctica/McMurdo' | 'Antarctica/Palmer' | 'Antarctica/Rothera' | 'Antarctica/South_Pole' | 'Antarctica/Syowa' | 'Antarctica/Troll' | 'Antarctica/Vostok' | 'Arctic/Longyearbyen' | 'Asia/Aden' | 'Asia/Almaty' | 'Asia/Amman' | 'Asia/Anadyr' | 'Asia/Aqtau' | 'Asia/Aqtobe' | 'Asia/Ashgabat' | 'Asia/Ashkhabad' | 'Asia/Atyrau' | 'Asia/Baghdad' | 'Asia/Bahrain' | 'Asia/Baku' | 'Asia/Bangkok' | 'Asia/Barnaul' | 'Asia/Beirut' | 'Asia/Bishkek' | 'Asia/Brunei' | 'Asia/Calcutta' | 'Asia/Chita' | 'Asia/Choibalsan' | 'Asia/Chongqing' | 'Asia/Chungking' | 'Asia/Colombo' | 'Asia/Dacca' | 'Asia/Damascus' | 'Asia/Dhaka' | 'Asia/Dili' | 'Asia/Dubai' | 'Asia/Dushanbe' | 'Asia/Famagusta' | 'Asia/Gaza' | 'Asia/Harbin' | 'Asia/Hebron' | 'Asia/Ho_Chi_Minh' | 'Asia/Hong_Kong' | 'Asia/Hovd' | 'Asia/Irkutsk' | 'Asia/Istanbul' | 'Asia/Jakarta' | 'Asia/Jayapura' | 'Asia/Jerusalem' | 'Asia/Kabul' | 'Asia/Kamchatka' | 'Asia/Karachi' | 'Asia/Kashgar' | 'Asia/Kathmandu' | 'Asia/Katmandu' | 'Asia/Khandyga' | 'Asia/Kolkata' | 'Asia/Krasnoyarsk' | 'Asia/Kuala_Lumpur' | 'Asia/Kuching' | 'Asia/Kuwait' | 'Asia/Macao' | 'Asia/Macau' | 'Asia/Magadan' | 'Asia/Makassar' | 'Asia/Manila' | 'Asia/Muscat' | 'Asia/Nicosia' | 'Asia/Novokuznetsk' | 'Asia/Novosibirsk' | 'Asia/Omsk' | 'Asia/Oral' | 'Asia/Phnom_Penh' | 'Asia/Pontianak' | 'Asia/Pyongyang' | 'Asia/Qatar' | 'Asia/Qostanay' | 'Asia/Qyzylorda' | 'Asia/Rangoon' | 'Asia/Riyadh' | 'Asia/Saigon' | 'Asia/Sakhalin' | 'Asia/Samarkand' | 'Asia/Seoul' | 'Asia/Shanghai' | 'Asia/Singapore' | 'Asia/Srednekolymsk' | 'Asia/Taipei' | 'Asia/Tashkent' | 'Asia/Tbilisi' | 'Asia/Tehran' | 'Asia/Tel_Aviv' | 'Asia/Thimbu' | 'Asia/Thimphu' | 'Asia/Tokyo' | 'Asia/Tomsk' | 'Asia/Ujung_Pandang' | 'Asia/Ulaanbaatar' | 'Asia/Ulan_Bator' | 'Asia/Urumqi' | 'Asia/Ust-Nera' | 'Asia/Vientiane' | 'Asia/Vladivostok' | 'Asia/Yakutsk' | 'Asia/Yangon' | 'Asia/Yekaterinburg' | 'Asia/Yerevan' | 'Atlantic/Azores' | 'Atlantic/Bermuda' | 'Atlantic/Canary' | 'Atlantic/Cape_Verde' | 'Atlantic/Faeroe' | 'Atlantic/Faroe' | 'Atlantic/Jan_Mayen' | 'Atlantic/Madeira' | 'Atlantic/Reykjavik' | 'Atlantic/South_Georgia' | 'Atlantic/St_Helena' | 'Atlantic/Stanley' | 'Australia/ACT' | 'Australia/Adelaide' | 'Australia/Brisbane' | 'Australia/Broken_Hill' | 'Australia/Canberra' | 'Australia/Currie' | 'Australia/Darwin' | 'Australia/Eucla' | 'Australia/Hobart' | 'Australia/LHI' | 'Australia/Lindeman' | 'Australia/Lord_Howe' | 'Australia/Melbourne' | 'Australia/NSW' | 'Australia/North' | 'Australia/Perth' | 'Australia/Queensland' | 'Australia/South' | 'Australia/Sydney' | 'Australia/Tasmania' | 'Australia/Victoria' | 'Australia/West' | 'Australia/Yancowinna' | 'Brazil/Acre' | 'Brazil/DeNoronha' | 'Brazil/East' | 'Brazil/West' | 'CET' | 'CST6CDT' | 'Canada/Atlantic' | 'Canada/Central' | 'Canada/Eastern' | 'Canada/Mountain' | 'Canada/Newfoundland' | 'Canada/Pacific' | 'Canada/Saskatchewan' | 'Canada/Yukon' | 'Chile/Continental' | 'Chile/EasterIsland' | 'Cuba' | 'EET' | 'EST' | 'EST5EDT' | 'Egypt' | 'Eire' | 'Etc/GMT' | 'Etc/GMT+0' | 'Etc/GMT+1' | 'Etc/GMT+10' | 'Etc/GMT+11' | 'Etc/GMT+12' | 'Etc/GMT+2' | 'Etc/GMT+3' | 'Etc/GMT+4' | 'Etc/GMT+5' | 'Etc/GMT+6' | 'Etc/GMT+7' | 'Etc/GMT+8' | 'Etc/GMT+9' | 'Etc/GMT-0' | 'Etc/GMT-1' | 'Etc/GMT-10' | 'Etc/GMT-11' | 'Etc/GMT-12' | 'Etc/GMT-13' | 'Etc/GMT-14' | 'Etc/GMT-2' | 'Etc/GMT-3' | 'Etc/GMT-4' | 'Etc/GMT-5' | 'Etc/GMT-6' | 'Etc/GMT-7' | 'Etc/GMT-8' | 'Etc/GMT-9' | 'Etc/GMT0' | 'Etc/Greenwich' | 'Etc/UCT' | 'Etc/UTC' | 'Etc/Universal' | 'Etc/Zulu' | 'Europe/Amsterdam' | 'Europe/Andorra' | 'Europe/Astrakhan' | 'Europe/Athens' | 'Europe/Belfast' | 'Europe/Belgrade' | 'Europe/Berlin' | 'Europe/Bratislava' | 'Europe/Brussels' | 'Europe/Bucharest' | 'Europe/Budapest' | 'Europe/Busingen' | 'Europe/Chisinau' | 'Europe/Copenhagen' | 'Europe/Dublin' | 'Europe/Gibraltar' | 'Europe/Guernsey' | 'Europe/Helsinki' | 'Europe/Isle_of_Man' | 'Europe/Istanbul' | 'Europe/Jersey' | 'Europe/Kaliningrad' | 'Europe/Kiev' | 'Europe/Kirov' | 'Europe/Kyiv' | 'Europe/Lisbon' | 'Europe/Ljubljana' | 'Europe/London' | 'Europe/Luxembourg' | 'Europe/Madrid' | 'Europe/Malta' | 'Europe/Mariehamn' | 'Europe/Minsk' | 'Europe/Monaco' | 'Europe/Moscow' | 'Europe/Nicosia' | 'Europe/Oslo' | 'Europe/Paris' | 'Europe/Podgorica' | 'Europe/Prague' | 'Europe/Riga' | 'Europe/Rome' | 'Europe/Samara' | 'Europe/San_Marino' | 'Europe/Sarajevo' | 'Europe/Saratov' | 'Europe/Simferopol' | 'Europe/Skopje' | 'Europe/Sofia' | 'Europe/Stockholm' | 'Europe/Tallinn' | 'Europe/Tirane' | 'Europe/Tiraspol' | 'Europe/Ulyanovsk' | 'Europe/Uzhgorod' | 'Europe/Vaduz' | 'Europe/Vatican' | 'Europe/Vienna' | 'Europe/Vilnius' | 'Europe/Volgograd' | 'Europe/Warsaw' | 'Europe/Zagreb' | 'Europe/Zaporozhye' | 'Europe/Zurich' | 'GB' | 'GB-Eire' | 'GMT' | 'GMT+0' | 'GMT-0' | 'GMT0' | 'Greenwich' | 'HST' | 'Hongkong' | 'Iceland' | 'Indian/Antananarivo' | 'Indian/Chagos' | 'Indian/Christmas' | 'Indian/Cocos' | 'Indian/Comoro' | 'Indian/Kerguelen' | 'Indian/Mahe' | 'Indian/Maldives' | 'Indian/Mauritius' | 'Indian/Mayotte' | 'Indian/Reunion' | 'Iran' | 'Israel' | 'Jamaica' | 'Japan' | 'Kwajalein' | 'Libya' | 'MET' | 'MST' | 'MST7MDT' | 'Mexico/BajaNorte' | 'Mexico/BajaSur' | 'Mexico/General' | 'NZ' | 'NZ-CHAT' | 'Navajo' | 'PRC' | 'PST8PDT' | 'Pacific/Apia' | 'Pacific/Auckland' | 'Pacific/Bougainville' | 'Pacific/Chatham' | 'Pacific/Chuuk' | 'Pacific/Easter' | 'Pacific/Efate' | 'Pacific/Enderbury' | 'Pacific/Fakaofo' | 'Pacific/Fiji' | 'Pacific/Funafuti' | 'Pacific/Galapagos' | 'Pacific/Gambier' | 'Pacific/Guadalcanal' | 'Pacific/Guam' | 'Pacific/Honolulu' | 'Pacific/Johnston' | 'Pacific/Kanton' | 'Pacific/Kiritimati' | 'Pacific/Kosrae' | 'Pacific/Kwajalein' | 'Pacific/Majuro' | 'Pacific/Marquesas' | 'Pacific/Midway' | 'Pacific/Nauru' | 'Pacific/Niue' | 'Pacific/Norfolk' | 'Pacific/Noumea' | 'Pacific/Pago_Pago' | 'Pacific/Palau' | 'Pacific/Pitcairn' | 'Pacific/Pohnpei' | 'Pacific/Ponape' | 'Pacific/Port_Moresby' | 'Pacific/Rarotonga' | 'Pacific/Saipan' | 'Pacific/Samoa' | 'Pacific/Tahiti' | 'Pacific/Tarawa' | 'Pacific/Tongatapu' | 'Pacific/Truk' | 'Pacific/Wake' | 'Pacific/Wallis' | 'Pacific/Yap' | 'Poland' | 'Portugal' | 'ROC' | 'ROK' | 'Singapore' | 'Turkey' | 'UCT' | 'US/Alaska' | 'US/Aleutian' | 'US/Arizona' | 'US/Central' | 'US/East-Indiana' | 'US/Eastern' | 'US/Hawaii' | 'US/Indiana-Starke' | 'US/Michigan' | 'US/Mountain' | 'US/Pacific' | 'US/Samoa' | 'UTC' | 'Universal' | 'W-SU' | 'WET' | 'Zulu' | 'localtime' | ''; /** * How many consecutive missed or failed check-ins in a row before creating a new issue. */ failure_issue_threshold?: number | null; /** * How many successful check-ins in a row before resolving an issue. */ recovery_threshold?: number | null; }; /** * Uniquely identifies your monitor within your organization. Changing this slug will require updates to any instrumented check-in calls. */ slug?: string; /** * Status of the monitor. Disabled monitors will not accept events and will not count towards the monitor quota. * * * `active` * * `disabled` */ status?: 'active' | 'disabled'; /** * The ID of the team or user that owns the monitor. (eg. user:51 or team:6) */ owner?: string | null; /** * Disable creation of monitor incidents */ is_muted?: boolean; }; /** * Notebook block. version is the block concurrency token; dependencies are block IDs and * parameterKeys reference notebook parameters. output is the latest successful result and may * remain available during a rerun; currentExecution describes the latest attempt. Poll * execution details for transcript and pending input. producerKey and producerRevision are * set on blocks a producer wrote. */ export type NotebookBlockResponse = { /** * The block ID */ id: string; /** * The block's position in the notebook, starting at 0 */ position: number; /** * text for Markdown, or query for a data query */ kind: string; /** * The block title. May be empty */ title: string; /** * The block's content: Markdown for text, the query for query */ content: string; /** * Instructions used when running the block */ generationPrompt: string; /** * The latest generated content, before anyone edited it */ generatedContent: string; /** * The latest successful result. Text blocks have schemaVersion and markdown */ output: { [key: string]: unknown; } | null | Array | string | number | boolean; /** * available, notRun, or the status of the latest execution */ outputStatus: string; /** * The latest execution, if the block has run */ currentExecution: { /** * The execution ID */ id: string; /** * The execution status */ status: string; /** * What ran the block */ executor: string; /** * The version of the result's schema */ schemaVersion: number; /** * When the execution started */ startedAt: string | null; /** * When the execution finished, if it has */ completedAt: string | null; /** * What went wrong, if the execution failed */ error: { [key: string]: unknown; } | null | Array | string | number | boolean; } | null; /** * How the block runs, such as auto-run */ config: { [key: string]: { [key: string]: unknown; } | null | Array | string | number | boolean; }; /** * How the block is shown. Text uses type markdown; query uses table, line, bar, or area */ display: { [key: string]: { [key: string]: unknown; } | null | Array | string | number | boolean; }; /** * The IDs of blocks this block depends on */ dependencies: Array; /** * The keys of the parameters the block uses */ parameterKeys: Array; /** * The block's concurrency token. Send it as version with a change */ version: number; /** * When an input changed after the output was made, if one did */ staleAt: string | null; /** * The ID of the user who added the block, if a user did */ createdBy: string | null; /** * The ID of the user who last edited the block, if a user did */ lastEditedBy: string | null; /** * The producer's key for the block, if a producer wrote it */ producerKey: string | null; /** * The producer's revision for the block, if a producer wrote it */ producerRevision: number | null; }; /** * Create a blank notebook, or find or create a producer's notebook for its source. * * Needs organization and creator in its context. */ export type NotebookCreateValidator = { /** * Investigation title. */ title: string; /** * Unique IDs of accessible projects to include. Defaults to an empty list. */ projectIds?: Array; /** * Investigation filter object, stored with its original keys. */ filters?: { [key: string]: unknown; }; /** * What a producer writes this notebook about. type names a registered producer source type, and the other fields depend on it. Projects come from the source, so omit projectIds. An active notebook for the same source is returned instead of a new one. */ source?: { type: string; [key: string]: unknown; }; }; /** * Full notebook with ordered active blocks, parameter definitions and saved values, project * IDs, and source context. source.snapshot is present only for source-backed investigations. * actionRequests has Seer's action requests that aren't superseded, plus stale ones while Seer * re-checks them, newest report first, with that report's primary at the top. */ export type NotebookDetailsResponse = { /** * The notebook ID */ id: string; /** * The notebook title */ title: string; /** * A one-line summary of the notebook, if one was generated */ summary: string | null; /** * A longer summary of the notebook, if one was generated */ summaryDescription: string | null; /** * active or archived. Archived notebooks are read-only */ status: string; /** * What the notebook is about: manual, or a source type */ sourceType: string; /** * The ID of the user who created the notebook, if a user did */ createdBy: string | null; /** * The user or service account that created the notebook */ creator: { /** * Whether a user or a service account created the notebook */ type: 'user' | 'service_account' | 'system' | 'integration' | 'agent' | 'unknown'; /** * The ID of the user or service account that created the notebook */ id: string; } | null; /** * When the notebook was created */ dateCreated: string; /** * When the notebook last changed */ dateUpdated: string; /** * The notebook's concurrency token. Send it as notebookVersion with a change */ version: number; /** * The number of blocks the notebook has */ blockCount: number; /** * Whether the requesting user favorited the notebook */ isFavorited: boolean; /** * The state of automatic title generation */ titleGeneration: { /** * The state of automatic title generation, or null if it hasn't run */ status: string | null; }; /** * The agent's run for the notebook, if it has one */ orchestration: { /** * The phase the agent's run is in */ phase: string; /** * The status of the agent's run */ status: string; /** * When the run last reported progress */ heartbeatAt: string | null; /** * How many times the run has changed the notebook's report */ notebookRevision: number; } | null; /** * The template the notebook started from, if any */ template: { /** * The key of the template the notebook started from, if any */ key: string | null; /** * The version of that template, if any */ version: number | null; } | null; /** * What the notebook is about */ source: { /** * What Sentry knew about the source when the notebook started. Only on source-backed notebooks */ snapshot?: { [key: string]: { [key: string]: unknown; } | null | Array | string | number | boolean; }; /** * The source type: manual, or the type of what the notebook is about */ type: string; /** * The identifying fields of the source, such as an issue ID. Empty for a manual notebook */ ref: { [key: string]: { [key: string]: unknown; } | null | Array | string | number | boolean; }; /** * The notebook's revision for its source. A new revision starts once the previous one is archived. Null for a manual notebook */ revision: number | null; }; /** * Saved filters, stored with their original keys */ filters: { [key: string]: { [key: string]: unknown; } | null | Array | string | number | boolean; }; /** * The IDs of the projects the notebook covers */ projectIds: Array; /** * The notebook's parameters, in order */ parameters: Array<{ /** * The parameter ID */ id: string; /** * The key blocks use to refer to the parameter */ key: string; /** * The parameter's display name */ label: string; /** * What the parameter is for */ description: string; /** * The type of value the parameter takes */ type: string; /** * Whether the parameter needs a value */ required: boolean; /** * Limits on the parameter's value, by type */ constraints: { [key: string]: { [key: string]: unknown; } | null | Array | string | number | boolean; }; /** * The value used when none is saved */ defaultValue: { [key: string]: unknown; } | null | Array | string | number | boolean; /** * The saved value, or null */ savedValue: { [key: string]: unknown; } | null | Array | string | number | boolean; /** * Who defined the parameter */ source: string; /** * The parameter's position in the notebook */ position: number; /** * The parameter's concurrency token */ version: number; }>; /** * The notebook's blocks, in order */ blocks: Array<{ /** * The block ID */ id: string; /** * The block's position in the notebook, starting at 0 */ position: number; /** * text for Markdown, or query for a data query */ kind: string; /** * The block title. May be empty */ title: string; /** * The block's content: Markdown for text, the query for query */ content: string; /** * Instructions used when running the block */ generationPrompt: string; /** * The latest generated content, before anyone edited it */ generatedContent: string; /** * The latest successful result. Text blocks have schemaVersion and markdown */ output: { [key: string]: unknown; } | null | Array | string | number | boolean; /** * available, notRun, or the status of the latest execution */ outputStatus: string; /** * The latest execution, if the block has run */ currentExecution: { /** * The execution ID */ id: string; /** * The execution status */ status: string; /** * What ran the block */ executor: string; /** * The version of the result's schema */ schemaVersion: number; /** * When the execution started */ startedAt: string | null; /** * When the execution finished, if it has */ completedAt: string | null; /** * What went wrong, if the execution failed */ error: { [key: string]: unknown; } | null | Array | string | number | boolean; } | null; /** * How the block runs, such as auto-run */ config: { [key: string]: { [key: string]: unknown; } | null | Array | string | number | boolean; }; /** * How the block is shown. Text uses type markdown; query uses table, line, bar, or area */ display: { [key: string]: { [key: string]: unknown; } | null | Array | string | number | boolean; }; /** * The IDs of blocks this block depends on */ dependencies: Array; /** * The keys of the parameters the block uses */ parameterKeys: Array; /** * The block's concurrency token. Send it as version with a change */ version: number; /** * When an input changed after the output was made, if one did */ staleAt: string | null; /** * The ID of the user who added the block, if a user did */ createdBy: string | null; /** * The ID of the user who last edited the block, if a user did */ lastEditedBy: string | null; /** * The producer's key for the block, if a producer wrote it */ producerKey: string | null; /** * The producer's revision for the block, if a producer wrote it */ producerRevision: number | null; }>; /** * Steps the agent suggests, newest report first */ actionRequests: Array<{ /** * The action request ID */ id: string; /** * The agent's key for the request */ key: string; /** * The report revision that suggested it */ reportRevision: number; /** * Whether it's the recommended next step */ primary: boolean; /** * The block or hypothesis the request is under, if any */ anchor: { /** * block or hypothesis */ type: string; /** * The agent's ID for the block or hypothesis */ id: string; /** * The ID of the block the request is under, if it still exists */ blockId: string | null; } | null; /** * A short title for the step */ title: string; /** * Why the agent suggests it */ rationale: string; /** * What the step would change, if the agent said */ impact: string | null; /** * suggested, applied, failed, superseded, or withdrawn */ state: string; /** * Why the request is in its state, if there's a reason */ reason: string | null; /** * The agent's action payload, or null when the request is only advice */ action: { [key: string]: { [key: string]: unknown; } | null | Array | string | number | boolean; } | null; /** * Whether the requesting user can apply it now */ canApply: boolean; /** * Why the requesting user can't apply it, if they can't */ cannotApplyReason: 'investigation_archived' | 'not_suggested' | 'unsupported_action' | 'no_access' | 'not_target_detector' | 'detector_not_found' | 'permission_denied' | 'dynamic_detector' | null; /** * The user who applied it. Null when Sentry applied it */ appliedBy: { /** * SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access */ identities?: Array<{ /** * SSO identity ID */ id: string; /** * User's identifier at the auth provider */ name: string; /** * Organization the auth provider belongs to */ organization: { /** * Organization slug */ slug: string; /** * Organization name */ name: string; }; /** * Auth provider of the identity */ provider: { /** * Auth provider key, such as google or saml2 */ id: string; /** * Display name of the auth provider */ name: string; }; /** * When the identity was last verified by signing in through the auth provider */ dateVerified: string; /** * When the identity was last synced from the auth provider */ dateSynced: string; }>; /** * User avatar */ avatar?: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Two-factor authenticators of the user, without backup methods such as recovery codes */ authenticators?: Array<{ /** * Authenticator ID */ id: string; /** * Authenticator type, such as totp, sms, u2f or recovery */ type: string; /** * Display name of the authenticator type */ name: string; /** * When the authenticator was added */ dateCreated: string; /** * When the authenticator was last used, or null */ dateUsed: string | null; }>; /** * Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization */ canReset2fa?: boolean; /** * User ID */ id: string; /** * Display name: the user's name, or their email or username if no name is set */ name: string; /** * Username */ username: string; /** * Primary email address */ email: string; /** * Gravatar URL for the primary email address */ avatarUrl: string; /** * Whether the account is active */ isActive: boolean; /** * Whether the account is suspended. Suspended users can't sign in */ isSuspended: boolean; /** * Whether the user has a password set */ hasPasswordAuth: boolean; /** * Whether the account is managed, which stops the user from changing their username, password and similar details */ isManaged: boolean; /** * When the account was created */ dateJoined: string; /** * When the user last signed in, or null */ lastLogin: string | null; /** * Whether the user has two-factor authentication enabled */ has2fa: boolean; /** * When the user was last active, or null */ lastActive: string | null; /** * Whether the user is a superuser */ isSuperuser: boolean; /** * Whether the user has staff status */ isStaff: boolean; /** * Deprecated. Always an empty object */ experiments: { [key: string]: string; }; /** * Email addresses of the user. Only included for the requesting user or superusers; empty otherwise */ emails: Array<{ /** * Email ID */ id: string; /** * Email address */ email: string; /** * Whether the email address is verified */ is_verified: boolean; }>; } | null; /** * What applying it changed. The fields depend on the action */ appliedDetails: { /** * The ID of the monitor that was changed */ detectorId: string; /** * The name of the monitor that was changed */ detectorName: string; /** * The monitor settings that were changed */ fields: Array; } | { /** * The telemetry provider that was connected */ provider: 'datadog' | 'gcp'; } | null; /** * When it was applied */ dateApplied: string | null; /** * What went wrong, if applying it failed */ error: { /** * The error code */ code: 'already_applied' | 'withdrawn' | 'stale' | 'validation_failed' | 'action_changed' | 'not_stale' | 'not_retryable'; /** * The current values of the settings the action would change */ current?: { [key: string]: number | number | string | null; }; /** * Messages that explain the error */ messages?: Array; } | null; /** * The re-check or re-run Sentry sent the agent, if any */ followUp: { /** * Where the follow-up is */ status: 'accepted' | 'dispatched' | 'acknowledged' | 'failed'; /** * Why the agent turned down or dropped the follow-up, if it did */ reason: 'workflow_version_conflict' | 'idempotency_conflict' | 'invalid_command_target' | 'action_requests_report_changed' | 'run_cancelled' | 'run_failed' | 'provider_not_connected' | 'provider_already_used' | null; /** * What the agent did with a re-run. Null for a re-check */ rerun: 'started' | 'held' | 'skipped' | null; /** * Whether the requesting user can send it again */ retryable: boolean; } | null; /** * When the agent suggested it */ dateCreated: string; }>; }; /** * Django Rest Framework serializer for incoming NotificationAction API payloads */ export type NotificationAction = { /** * Type of the trigger that causes the notification. The only supported trigger right now is: `spike-protection`. */ trigger_type: string; /** * Service that is used for sending the notification. * - `email` * - `slack` * - `sentry_notification` * - `pagerduty` * - `opsgenie` * */ service_type: string; /** * ID of the integration used as the notification service. See * [List Integrations](https://docs.sentry.io/api/integrations/list-an-organizations-available-integrations/) * to retrieve a full list of integrations. * * Required if **service_type** is `slack`, `pagerduty` or `opsgenie`. * */ integration_id?: number; /** * ID of the notification target, like a Slack channel ID. * * Required if **service_type** is `slack` or `opsgenie`. * */ target_identifier?: string; /** * Name of the notification target, like a Slack channel name. * * Required if **service_type** is `slack` or `opsgenie`. * */ target_display?: string; /** * List of project IDs or slugs that the Notification Action is created for. */ projects?: Array; /** * ID of the custom integration to notify, when the target is a Sentry app. */ sentry_app_id?: number; /** * How the notification target is addressed. */ target_type?: string; }; export type OrgAuthToken = { /** * ID of the org auth token */ id: string; /** * Name of the org auth token */ name: string; /** * Scopes granted to the token, such as org:ci */ scopes: Array; /** * Last four characters of the token, to tell tokens apart, or null */ tokenLastCharacters: string | null; /** * When the token was created */ dateCreated: string; /** * When the token last authenticated a request, or null */ dateLastUsed: string | null; /** * ID of the project the token was last used with, or null */ projectLastUsedId: string | null; /** * The full token. Only included in the response that creates the token, and can't be retrieved again */ token?: string; }; export type OrgAuthTokenCreate = { /** * Required. A name for the token, up to 255 characters, to tell it apart from the organization's other tokens. */ name?: string | null; /** * Scopes to grant the token. Org auth tokens can only be granted `org:ci`, which is also the default: `["org:ci"]`. */ scopes?: Array; }; export type OrgAuthTokenListResponse = Array<{ /** * ID of the org auth token */ id: string; /** * Name of the org auth token */ name: string; /** * Scopes granted to the token, such as org:ci */ scopes: Array; /** * Last four characters of the token, to tell tokens apart, or null */ tokenLastCharacters: string | null; /** * When the token was created */ dateCreated: string; /** * When the token last authenticated a request, or null */ dateLastUsed: string | null; /** * ID of the project the token was last used with, or null */ projectLastUsedId: string | null; /** * The full token. Only included in the response that creates the token, and can't be retrieved again */ token?: string; }>; export type OrgReleaseResponse = { /** * Version control reference, such as a commit SHA or tag */ ref?: string | null; /** * Release URL */ url?: string | null; /** * When the release went live (ISO 8601) */ dateReleased?: string | null; /** * When the release was created (ISO 8601) */ dateCreated?: string | null; /** * When the release started (ISO 8601) */ dateStarted?: string | null; /** * Release owner */ owner?: { /** * SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access */ identities?: Array<{ /** * SSO identity ID */ id: string; /** * User's identifier at the auth provider */ name: string; /** * Organization the auth provider belongs to */ organization: { /** * Organization slug */ slug: string; /** * Organization name */ name: string; }; /** * Auth provider of the identity */ provider: { /** * Auth provider key, such as google or saml2 */ id: string; /** * Display name of the auth provider */ name: string; }; /** * When the identity was last verified by signing in through the auth provider */ dateVerified: string; /** * When the identity was last synced from the auth provider */ dateSynced: string; }>; /** * User avatar */ avatar?: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Two-factor authenticators of the user, without backup methods such as recovery codes */ authenticators?: Array<{ /** * Authenticator ID */ id: string; /** * Authenticator type, such as totp, sms, u2f or recovery */ type: string; /** * Display name of the authenticator type */ name: string; /** * When the authenticator was added */ dateCreated: string; /** * When the authenticator was last used, or null */ dateUsed: string | null; }>; /** * Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization */ canReset2fa?: boolean; /** * User ID */ id: string; /** * Display name: the user's name, or their email or username if no name is set */ name: string; /** * Username */ username: string; /** * Primary email address */ email: string; /** * Gravatar URL for the primary email address */ avatarUrl: string; /** * Whether the account is active */ isActive: boolean; /** * Whether the account is suspended. Suspended users can't sign in */ isSuspended: boolean; /** * Whether the user has a password set */ hasPasswordAuth: boolean; /** * Whether the account is managed, which stops the user from changing their username, password and similar details */ isManaged: boolean; /** * When the account was created */ dateJoined: string; /** * When the user last signed in, or null */ lastLogin: string | null; /** * Whether the user has two-factor authentication enabled */ has2fa: boolean; /** * When the user was last active, or null */ lastActive: string | null; /** * Whether the user is a superuser */ isSuperuser: boolean; /** * Whether the user has staff status */ isStaff: boolean; /** * Deprecated. Always an empty object */ experiments: { [key: string]: string; }; /** * Email addresses of the user. Only included for the requesting user or superusers; empty otherwise */ emails: Array<{ /** * Email ID */ id: string; /** * Email address */ email: string; /** * Whether the email address is verified */ is_verified: boolean; }>; } | null; /** * Most recent commit in the release */ lastCommit?: { /** * Commit SHA */ id: string; /** * Commit message */ message: string | null; /** * When the commit was made (ISO 8601) */ dateCreated: string; /** * Pull request the commit belongs to */ pullRequest: { /** * Number or key of the pull request in the provider */ id: string; /** * Title of the pull request */ title: string | null; /** * Description of the pull request */ message: string | null; /** * When Sentry recorded the pull request (ISO 8601) */ dateCreated: string; /** * When the pull request was merged (ISO 8601). Null when it isn't merged */ mergedAt: string | null; /** * State of the pull request: merged, open, closed, draft or unknown. Null when not known */ status: 'merged' | 'open' | 'closed' | 'draft' | 'unknown' | null; /** * Repository of the pull request */ repository: { /** * URL of the repository */ url?: string | null; /** * Provider of the repository, with its id and name */ provider?: { [key: string]: string; }; /** * Status of the repository */ status?: 'active' | 'disabled' | 'pending_deletion' | 'deletion_in_progress'; /** * ID of the repository's integration. Null for repositories added without an integration */ integrationId?: string | null; /** * Identifier of the repository in the provider, such as owner/name */ externalSlug?: string | null; /** * ID of the repository in the provider */ externalId?: string | null; /** * Settings of the repository. Only set when expand includes settings. Null when it has none */ settings?: { /** * Whether AI code review is on for the repository */ enabledCodeReview: boolean; /** * Pull request events that start a code review: on_new_commit or on_ready_for_review */ codeReviewTriggers: Array; } | null; /** * ID of the repository */ id: string; /** * Name of the repository, such as owner/name */ name: string; /** * When the repository was added to Sentry (ISO 8601) */ dateCreated: string; }; /** * Author of the pull request, or an empty object when it has none */ author: { /** * SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access */ identities?: Array<{ /** * SSO identity ID */ id: string; /** * User's identifier at the auth provider */ name: string; /** * Organization the auth provider belongs to */ organization: { /** * Organization slug */ slug: string; /** * Organization name */ name: string; }; /** * Auth provider of the identity */ provider: { /** * Auth provider key, such as google or saml2 */ id: string; /** * Display name of the auth provider */ name: string; }; /** * When the identity was last verified by signing in through the auth provider */ dateVerified: string; /** * When the identity was last synced from the auth provider */ dateSynced: string; }>; /** * User avatar */ avatar?: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Two-factor authenticators of the user, without backup methods such as recovery codes */ authenticators?: Array<{ /** * Authenticator ID */ id: string; /** * Authenticator type, such as totp, sms, u2f or recovery */ type: string; /** * Display name of the authenticator type */ name: string; /** * When the authenticator was added */ dateCreated: string; /** * When the authenticator was last used, or null */ dateUsed: string | null; }>; /** * Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization */ canReset2fa?: boolean; /** * User ID */ id: string; /** * Display name: the user's name, or their email or username if no name is set */ name: string; /** * Username */ username: string; /** * Primary email address */ email: string; /** * Gravatar URL for the primary email address */ avatarUrl: string; /** * Whether the account is active */ isActive: boolean; /** * Whether the account is suspended. Suspended users can't sign in */ isSuspended: boolean; /** * Whether the user has a password set */ hasPasswordAuth: boolean; /** * Whether the account is managed, which stops the user from changing their username, password and similar details */ isManaged: boolean; /** * When the account was created */ dateJoined: string; /** * When the user last signed in, or null */ lastLogin: string | null; /** * Whether the user has two-factor authentication enabled */ has2fa: boolean; /** * When the user was last active, or null */ lastActive: string | null; /** * Whether the user is a superuser */ isSuperuser: boolean; /** * Whether the user has staff status */ isStaff: boolean; /** * Deprecated. Always an empty object */ experiments: { [key: string]: string; }; /** * Email addresses of the user. Only included for the requesting user or superusers; empty otherwise */ emails: Array<{ /** * Email ID */ id: string; /** * Email address */ email: string; /** * Whether the email address is verified */ is_verified: boolean; }>; } | { /** * Commit author name */ name: string | null; /** * Commit author email */ email: string; } | { [key: string]: unknown; }; /** * URL of the pull request in the provider, or null when the provider can't build one */ externalUrl: string | null; } | null; /** * How the commit was found as a suspect commit: via commit in release or via SCM integration. Empty for other commits */ suspectCommitType: string; /** * Repository the commit belongs to */ repository?: { /** * URL of the repository */ url?: string | null; /** * Provider of the repository, with its id and name */ provider?: { [key: string]: string; }; /** * Status of the repository */ status?: 'active' | 'disabled' | 'pending_deletion' | 'deletion_in_progress'; /** * ID of the repository's integration. Null for repositories added without an integration */ integrationId?: string | null; /** * Identifier of the repository in the provider, such as owner/name */ externalSlug?: string | null; /** * ID of the repository in the provider */ externalId?: string | null; /** * Settings of the repository. Only set when expand includes settings. Null when it has none */ settings?: { /** * Whether AI code review is on for the repository */ enabledCodeReview: boolean; /** * Pull request events that start a code review: on_new_commit or on_ready_for_review */ codeReviewTriggers: Array; } | null; /** * ID of the repository */ id: string; /** * Name of the repository, such as owner/name */ name: string; /** * When the repository was added to Sentry (ISO 8601) */ dateCreated: string; }; /** * Author of the commit: a Sentry user when the email matches one, otherwise the name and email from the commit */ author?: { /** * SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access */ identities?: Array<{ /** * SSO identity ID */ id: string; /** * User's identifier at the auth provider */ name: string; /** * Organization the auth provider belongs to */ organization: { /** * Organization slug */ slug: string; /** * Organization name */ name: string; }; /** * Auth provider of the identity */ provider: { /** * Auth provider key, such as google or saml2 */ id: string; /** * Display name of the auth provider */ name: string; }; /** * When the identity was last verified by signing in through the auth provider */ dateVerified: string; /** * When the identity was last synced from the auth provider */ dateSynced: string; }>; /** * User avatar */ avatar?: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Two-factor authenticators of the user, without backup methods such as recovery codes */ authenticators?: Array<{ /** * Authenticator ID */ id: string; /** * Authenticator type, such as totp, sms, u2f or recovery */ type: string; /** * Display name of the authenticator type */ name: string; /** * When the authenticator was added */ dateCreated: string; /** * When the authenticator was last used, or null */ dateUsed: string | null; }>; /** * Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization */ canReset2fa?: boolean; /** * User ID */ id: string; /** * Display name: the user's name, or their email or username if no name is set */ name: string; /** * Username */ username: string; /** * Primary email address */ email: string; /** * Gravatar URL for the primary email address */ avatarUrl: string; /** * Whether the account is active */ isActive: boolean; /** * Whether the account is suspended. Suspended users can't sign in */ isSuspended: boolean; /** * Whether the user has a password set */ hasPasswordAuth: boolean; /** * Whether the account is managed, which stops the user from changing their username, password and similar details */ isManaged: boolean; /** * When the account was created */ dateJoined: string; /** * When the user last signed in, or null */ lastLogin: string | null; /** * Whether the user has two-factor authentication enabled */ has2fa: boolean; /** * When the user was last active, or null */ lastActive: string | null; /** * Whether the user is a superuser */ isSuperuser: boolean; /** * Whether the user has staff status */ isStaff: boolean; /** * Deprecated. Always an empty object */ experiments: { [key: string]: string; }; /** * Email addresses of the user. Only included for the requesting user or superusers; empty otherwise */ emails: Array<{ /** * Email ID */ id: string; /** * Email address */ email: string; /** * Whether the email address is verified */ is_verified: boolean; }>; } | { /** * Commit author name */ name: string | null; /** * Commit author email */ email: string; } | { [key: string]: unknown; }; } | null; /** * Most recent deploy of the release */ lastDeploy?: { /** * When the deploy started (ISO 8601) */ dateStarted?: string | null; /** * URL of the deploy */ url?: string | null; /** * ID of the deploy */ id: string; /** * Environment the release was deployed to */ environment: string; /** * When the deploy finished (ISO 8601) */ dateFinished: string; /** * Name of the deploy */ name: string | null; } | null; /** * When the release received its first event (ISO 8601) */ firstEvent?: string | null; /** * When the release received its most recent event (ISO 8601) */ lastEvent?: string | null; /** * Session bounds and neighboring release versions in the current project, when a project is requested */ currentProjectMeta?: { /** * Start of the release's sessions in the project (ISO 8601) */ sessionsLowerBound?: string | null; /** * End of the release's sessions in the project (ISO 8601) */ sessionsUpperBound?: string | null; /** * Version of the next release in the project */ nextReleaseVersion?: string | null; /** * Version of the previous release in the project */ prevReleaseVersion?: string | null; /** * Version of the first release in the project */ firstReleaseVersion?: string | null; /** * Version of the latest release in the project */ lastReleaseVersion?: string | null; } | null; /** * User agent of the client that created the release */ userAgent?: string | null; /** * Adoption stage of the release in each project, keyed by project slug */ adoptionStages?: { [key: string]: { /** * Adoption stage of the release */ stage: 'adopted' | 'low_adoption' | 'replaced'; /** * When the release was adopted (ISO 8601) */ adopted: string | null; /** * When the release stopped being adopted (ISO 8601) */ unadopted: string | null; }; } | null; /** * Release ID */ id: number; /** * Version of the release */ version: string; /** * Number of new issues first seen in the release */ newGroups: number; /** * Release status */ status: 'open' | 'archived'; /** * Shortened release version */ shortVersion: string; /** * Parsed version information */ versionInfo: { /** * Human-readable version, such as 1.0.0 (123) */ description?: string; /** * Package name parsed from the release version, such as com.example.app */ package: string | null; /** * Parsed version: the raw string, plus major, minor, patch, pre, buildCode and components when it's a semantic version */ version: { /** * Major version */ major?: number; /** * Minor version */ minor?: number; /** * Patch version */ patch?: number; /** * Pre-release identifier, such as rc1 */ pre?: string | null; /** * Build code, such as 123 */ buildCode?: string | null; /** * Number of version components given */ components?: number; /** * Version string the release was created with */ raw: string; }; /** * Build hash parsed from the release version */ buildHash: string | null; } | null; /** * Extra data stored on the release */ data: { [key: string]: unknown; }; /** * Number of commits in the release */ commitCount: number; /** * Number of deploys of the release */ deployCount: number; /** * Authors of the release's commits */ authors: Array<{ /** * SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access */ identities?: Array<{ /** * SSO identity ID */ id: string; /** * User's identifier at the auth provider */ name: string; /** * Organization the auth provider belongs to */ organization: { /** * Organization slug */ slug: string; /** * Organization name */ name: string; }; /** * Auth provider of the identity */ provider: { /** * Auth provider key, such as google or saml2 */ id: string; /** * Display name of the auth provider */ name: string; }; /** * When the identity was last verified by signing in through the auth provider */ dateVerified: string; /** * When the identity was last synced from the auth provider */ dateSynced: string; }>; /** * User avatar */ avatar?: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Two-factor authenticators of the user, without backup methods such as recovery codes */ authenticators?: Array<{ /** * Authenticator ID */ id: string; /** * Authenticator type, such as totp, sms, u2f or recovery */ type: string; /** * Display name of the authenticator type */ name: string; /** * When the authenticator was added */ dateCreated: string; /** * When the authenticator was last used, or null */ dateUsed: string | null; }>; /** * Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization */ canReset2fa?: boolean; /** * User ID */ id: string; /** * Display name: the user's name, or their email or username if no name is set */ name: string; /** * Username */ username: string; /** * Primary email address */ email: string; /** * Gravatar URL for the primary email address */ avatarUrl: string; /** * Whether the account is active */ isActive: boolean; /** * Whether the account is suspended. Suspended users can't sign in */ isSuspended: boolean; /** * Whether the user has a password set */ hasPasswordAuth: boolean; /** * Whether the account is managed, which stops the user from changing their username, password and similar details */ isManaged: boolean; /** * When the account was created */ dateJoined: string; /** * When the user last signed in, or null */ lastLogin: string | null; /** * Whether the user has two-factor authentication enabled */ has2fa: boolean; /** * When the user was last active, or null */ lastActive: string | null; /** * Whether the user is a superuser */ isSuperuser: boolean; /** * Whether the user has staff status */ isStaff: boolean; /** * Deprecated. Always an empty object */ experiments: { [key: string]: string; }; /** * Email addresses of the user. Only included for the requesting user or superusers; empty otherwise */ emails: Array<{ /** * Email ID */ id: string; /** * Email address */ email: string; /** * Whether the email address is verified */ is_verified: boolean; }>; } | { /** * Commit author name */ name: string | null; /** * Commit author email */ email: string; }>; /** * Projects in the release */ projects: Array<{ /** * Release health data for the project. Only included when health data is requested */ healthData?: { /** * Median session duration in seconds */ durationP50?: number | null; /** * 90th percentile session duration in seconds */ durationP90?: number | null; /** * Percentage of users who didn't experience a crash */ crashFreeUsers?: number | null; /** * Percentage of sessions that didn't crash */ crashFreeSessions?: number | null; /** * Total number of users in the release */ totalUsers?: number | null; /** * Number of users in the release over the last 24 hours */ totalUsers24h?: number | null; /** * Number of users in the project over the last 24 hours */ totalProjectUsers24h?: number | null; /** * Total number of sessions in the release */ totalSessions?: number | null; /** * Number of sessions in the release over the last 24 hours */ totalSessions24h?: number | null; /** * Number of sessions in the project over the last 24 hours */ totalProjectSessions24h?: number | null; /** * Percentage of the project's users over the last 24 hours that were on the release */ adoption?: number | null; /** * Percentage of the project's sessions over the last 24 hours that were on the release */ sessionsAdoption?: number | null; /** * Number of crashed sessions */ sessionsCrashed: number; /** * Number of sessions with errors */ sessionsErrored: number; /** * Whether the release has session data */ hasHealthData: boolean; /** * Session or user counts over time, keyed by stats period */ stats: { [key: string]: Array>; }; } | null; /** * When the release was released in the project (ISO 8601) */ dateReleased?: string | null; /** * When the release was created (ISO 8601) */ dateCreated?: string | null; /** * When work on the release started (ISO 8601) */ dateStarted?: string | null; /** * ID of the project */ id: number; /** * Slug of the project */ slug: string; /** * Name of the project */ name: string; /** * Platform of the project */ platform: string | null; /** * Platforms of the project */ platforms: Array | null; /** * Whether the release has session data in the project */ hasHealthData: boolean; /** * Number of new issues first seen in the release in the project */ newGroups: number; }>; }; export type OrganizationCodeMappingResponse = { /** * ID of the code mapping */ id: string; /** * ID of the project */ projectId: string; /** * Slug of the project */ projectSlug: string; /** * ID of the repository */ repoId: string; /** * Name of the repository */ repoName: string; /** * ID of the repository's integration */ integrationId: string | null; /** * Provider of the repository's integration */ provider: { /** * Key of the integration provider, such as github */ key: string; /** * Slug of the integration provider, same as key */ slug: string; /** * Display name of the integration provider */ name: string; /** * Whether the integration can be installed from Sentry */ canAdd: boolean; /** * Whether the integration must be uninstalled from the provider instead of in Sentry */ canDisable: boolean; /** * Features the integration provider supports, such as issue-basic or commits */ features: Array; /** * Extra provider details shown during setup, such as alerts and configuration instructions */ aspects: { /** * Alerts shown during setup */ alerts?: Array<{ /** * Style of the alert, such as warning */ type: string; /** * Icon shown with the alert, such as icon-warning-sm */ icon: string; /** * Text of the alert, in Markdown */ text: string; }>; /** * Configuration step after install */ configure_integration?: { /** * Title of the configuration step */ title: string; }; /** * Whether the integration is enabled without an install flow */ directEnable?: boolean; /** * Dialog shown before the integration is disabled */ disable_dialog?: { /** * Label of the dialog's confirm button */ actionText: string; /** * Text of the dialog */ body: string; }; /** * Where to install the integration when it's installed outside Sentry */ externalInstall?: { /** * URL to install the integration from, such as a marketplace */ url: string; /** * Label of the install button */ buttonText: string; /** * Notice shown before the user leaves Sentry */ noticeText: string; }; /** * Dialog shown before the integration is removed */ removal_dialog?: { /** * Label of the dialog's confirm button */ actionText: string; /** * Text of the dialog */ body: string; }; }; } | null; /** * Stack trace path prefix that the mapping replaces */ stackRoot: string; /** * Repository path prefix that replaces the stack root */ sourceRoot: string; /** * Branch to link source files on */ defaultBranch: string | null; /** * Whether Sentry created the mapping automatically */ automaticallyGenerated: boolean; /** * Whether the mapping has a CODEOWNERS file linked */ hasCodeOwner: boolean; }; export type OrganizationCodeOwnersAssociationsResponse = { [key: string]: { /** * Sentry user or team for each owner in the CODEOWNERS file, keyed by the owner's name in the file */ associations: { [key: string]: string; }; /** * Owners in the CODEOWNERS file that couldn't be associated, by reason */ errors: { /** * Email owners in the CODEOWNERS file with no matching Sentry user */ missing_user_emails: Array; /** * User owners in the CODEOWNERS file with no external user mapping */ missing_external_users: Array; /** * Team owners in the CODEOWNERS file with no external team mapping */ missing_external_teams: Array; /** * Teams in the CODEOWNERS file that don't have access to the project */ teams_without_access: Array; /** * Users in the CODEOWNERS file who aren't members of a team with access to the project */ users_without_access: Array; }; }; }; export type OrganizationConfigIntegrationsEndpointResponse = { /** * Integration providers available to the organization */ providers: Array<{ /** * Key of the integration provider, such as github */ key: string; /** * Slug of the integration provider, same as key */ slug: string; /** * Display name of the integration provider */ name: string; /** * Provider metadata, such as description, author, source URL and setup details */ metadata: { /** * Description of the integration, in Markdown */ description: string; /** * Features the integration provides */ features: Array<{ /** * Description of the feature, in Markdown */ description: string; /** * Organization feature flag that gates the feature, such as integrations-commits */ featureGate: string | null; }>; /** * Author of the integration */ author: string; /** * Noun for one installation, such as Installation or Account */ noun: string; /** * URL to report problems with the integration */ issue_url: string; /** * URL of the integration's source or docs */ source_url: string; /** * Extra provider details shown during setup, such as alerts and configuration instructions */ aspects: { /** * Alerts shown during setup */ alerts?: Array<{ /** * Style of the alert, such as warning */ type: string; /** * Icon shown with the alert, such as icon-warning-sm */ icon: string; /** * Text of the alert, in Markdown */ text: string; }>; /** * Configuration step after install */ configure_integration?: { /** * Title of the configuration step */ title: string; }; /** * Whether the integration is enabled without an install flow */ directEnable?: boolean; /** * Dialog shown before the integration is disabled */ disable_dialog?: { /** * Label of the dialog's confirm button */ actionText: string; /** * Text of the dialog */ body: string; }; /** * Where to install the integration when it's installed outside Sentry */ externalInstall?: { /** * URL to install the integration from, such as a marketplace */ url: string; /** * Label of the install button */ buttonText: string; /** * Notice shown before the user leaves Sentry */ noticeText: string; }; /** * Dialog shown before the integration is removed */ removal_dialog?: { /** * Label of the dialog's confirm button */ actionText: string; /** * Text of the dialog */ body: string; }; }; } | null; /** * Whether the integration can be installed from Sentry */ canAdd: boolean; /** * Whether the integration must be uninstalled from the provider instead of in Sentry */ canDisable: boolean; /** * Features the integration provider supports, such as issue-basic or commits */ features: Array; }>; }; export type OrganizationDetailsPut = { /** * The new slug for the organization, which needs to be unique. */ slug?: string; /** * The new name for the organization. */ name?: string; /** * Specify `true` to opt-in to new features before they're released to the public. */ isEarlyAdopter?: boolean; /** * Specify `true` to hide AI features from the organization. */ hideAiFeatures?: boolean; /** * The default role new members will receive. * * * `member` - Member * * `admin` - Admin * * `manager` - Manager * * `owner` - Owner */ defaultRole?: 'member' | 'admin' | 'manager' | 'owner'; /** * Specify `true` to allow organization members to freely join any team. */ openMembership?: boolean; /** * Specify `true` to allow members to delete events (including the delete & discard action) by granting them the `event:admin` scope. */ eventsMemberAdmin?: boolean; /** * Specify `true` to allow members to create, edit, and delete alert rules by granting them the `alerts:write` scope. */ alertsMemberWrite?: boolean; /** * The role required to download event attachments, such as native crash reports or log files. * * * `member` - Member * * `admin` - Admin * * `manager` - Manager * * `owner` - Owner */ attachmentsRole?: 'member' | 'admin' | 'manager' | 'owner'; /** * The role required to download debug information files, ProGuard mappings and source maps. * * * `member` - Member * * `admin` - Admin * * `manager` - Manager * * `owner` - Owner */ debugFilesRole?: 'member' | 'admin' | 'manager' | 'owner'; /** * Specify `true` to enable granular replay permissions, allowing per-member access control for replay data. */ hasGranularReplayPermissions?: boolean; /** * A list of user IDs who have permission to access replay data. Requires the hasGranularReplayPermissions flag to be true to be enforced. */ replayAccessMembers?: Array | null; /** * The type of display picture for the organization. * * * `letter_avatar` - Use initials * * `upload` - Upload an image */ avatarType?: 'letter_avatar' | 'upload'; /** * The image to upload as the organization avatar, in base64. Required if `avatarType` is `upload`. */ avatar?: string; /** * Specify `true` to require and enforce two-factor authentication for all members. */ require2FA?: boolean; /** * Specify `true` to allow sharing of limited details on issues to anonymous users. */ allowSharedIssues?: boolean; /** * Specify `true` to enable enhanced privacy controls to limit personally identifiable information (PII) as well as source code in things like notifications. */ enhancedPrivacy?: boolean; /** * Specify `true` to allow Sentry to scrape missing JavaScript source context when possible. */ scrapeJavaScript?: boolean; /** * How many native crash reports (such as Minidumps for improved processing and download in issue details) to store per issue. * * * `0` - Disabled * * `1` - 1 per issue * * `5` - 5 per issue * * `10` - 10 per issue * * `20` - 20 per issue * * `50` - 50 per issue * * `100` - 100 per issue * * `-1` - Unlimited */ storeCrashReports?: 0 | 1 | 5 | 10 | 20 | 50 | 100 | -1; /** * Specify `true` to allow users to request to join your organization. */ allowJoinRequests?: boolean; /** * Specify `true` to require server-side data scrubbing for all projects. */ dataScrubber?: boolean; /** * Specify `true` to apply the default scrubbers to prevent things like passwords and credit cards from being stored for all projects. */ dataScrubberDefaults?: boolean; /** * A list of additional global field names to match against when scrubbing data for all projects. */ sensitiveFields?: Array; /** * A list of global field names which data scrubbers should ignore. */ safeFields?: Array; /** * Specify `true` to prevent IP addresses from being stored for new events on all projects. */ scrubIPAddresses?: boolean; /** * Advanced data scrubbing rules that can be configured for each project as a JSON string. The new rules will only apply to new incoming events. For more details on advanced data scrubbing, see our [full documentation](/security-legal-pii/scrubbing/advanced-datascrubbing/). * * > Warning: Calling this endpoint with this field fully overwrites the advanced data scrubbing rules. * * Below is an example of a payload for a set of advanced data scrubbing rules for masking credit card numbers from the log message (equivalent to `[Mask] [Credit card numbers] from [$message]` in the Sentry app) and removing a specific key called `foo` (equivalent to `[Remove] [Anything] from [extra.foo]` in the Sentry app): * ```json * { * relayPiiConfig: "{\"rules":{\"0\":{\"type\":\"creditcard\",\"redaction\":{\"method\":\"mask\"}},\"1\":{\"type\":\"anything\",\"redaction\":{\"method\":\"remove\"}}},\"applications\":{\"$message\":[\"0\"],\"extra.foo\":[\"1\"]}}" * } * ``` * */ relayPiiConfig?: string; /** * A list of local Relays (the name, public key, and description as a JSON) registered for the organization. This feature is only available for organizations on the Business and Enterprise plans. Read more about Relay [here](/product/relay/). * * Below is an example of a list containing a single local Relay registered for the organization: * ```json * { * trustedRelays: [ * { * name: "my-relay", * publicKey: "eiwr9fdruw4erfh892qy4493reyf89ur34wefd90h", * description: "Configuration for my-relay." * } * ] * } * ``` * */ trustedRelays?: Array<{ [key: string]: unknown; }>; /** * A Relay base URL to use when displaying Client Key DSNs for this organization. */ relayDsnEndpoint?: string | null; /** * Specify `true` to allow the Sentry Slack integration to post replies in threads for an Issue Alert notification. Requires a Slack integration. */ issueAlertsThreadFlag?: boolean; /** * Specify `true` to allow the Sentry Slack integration to post replies in threads for a Metric Alert notification. Requires a Slack integration. */ metricAlertsThreadFlag?: boolean; /** * Specify `true` to restore an organization that is pending deletion. */ cancelDeletion?: boolean; /** * Deprecated. Response-time threshold in milliseconds previously used to compute Apdex. */ apdexThreshold?: number; }; export type OrganizationEnvironmentResponse = Array<{ /** * ID of the environment */ id: string; /** * Name of the environment */ name: string; }>; export type OrganizationEventsDroppedResponse = { /** * Metadata about the query */ meta: { /** * Dataset that was queried */ dataset: string; /** * Start of the queried time range, in milliseconds since the Unix epoch */ start: number; /** * End of the queried time range, in milliseconds since the Unix epoch */ end: number; /** * Width of each bucket, in milliseconds */ interval: number; /** * Dropped volume withheld from `droppedEvents` because it is a known SDK misreport */ suppressedDrops: Array<{ /** * Why the drop volume was withheld, such as `js_sdk_below_11` */ cause: string; /** * Data category of the withheld events */ category: string; /** * Outcome of the withheld events */ outcome: string; /** * Reason for the outcome of the withheld events */ reason: string; /** * Number of withheld events */ count: number; }>; }; /** * Dropped event volume, one entry per bucket, outcome and reason */ droppedEvents: Array<{ /** * Annotation type. Always `system` */ type: string; /** * Data category of the events, such as `log_item` */ category: string; /** * Outcome of the events, such as `rate_limited` or `filtered`, or `accepted` for accepted events */ outcome: string; /** * Reason for the outcome within its outcome class, or `accepted` for accepted events */ reason: string; /** * Start of the bucket, in milliseconds since the Unix epoch */ start: number; /** * End of the bucket, in milliseconds since the Unix epoch */ end: number; /** * Number of events in the bucket */ count: number; /** * Whether the drop is `intentional` (user-configured) or `unintentional`. Empty for accepted events */ tags: Array; }>; /** * Accepted event volume, one entry per bucket */ acceptedEvents: Array<{ /** * Annotation type. Always `system` */ type: string; /** * Data category of the events, such as `log_item` */ category: string; /** * Outcome of the events, such as `rate_limited` or `filtered`, or `accepted` for accepted events */ outcome: string; /** * Reason for the outcome within its outcome class, or `accepted` for accepted events */ reason: string; /** * Start of the bucket, in milliseconds since the Unix epoch */ start: number; /** * End of the bucket, in milliseconds since the Unix epoch */ end: number; /** * Number of events in the bucket */ count: number; /** * Whether the drop is `intentional` (user-configured) or `unintentional`. Empty for accepted events */ tags: Array; }>; }; export type OrganizationEventsResponseDict = { /** * Rows returned by the query, keyed by the requested fields */ data: Array<{ [key: string]: unknown; }>; /** * Meta envelope emitted by `handle_results_with_meta` and the * empty-projects short-circuit. Every key is optional because the path * that emits it depends on flags (`standard_meta`, debug, dataset) — the * no-projects path only carries `tips`, the standard path carries * everything below. */ meta: { /** * Type of each returned field, keyed by field name */ fields?: { [key: string]: string; }; /** * Unit of each returned field, keyed by field name, or null if the field has no unit */ units?: { [key: string]: string | null; }; /** * Suggestions for improving the query, under the `query` and `columns` keys */ tips?: { [key: string]: string; }; /** * Why the query ran on a different dataset than requested, or unchanged */ datasetReason?: string; /** * Whether the results came from metrics data */ isMetricsData?: boolean; /** * Whether the results came from metrics extracted on demand */ isMetricsExtractedData?: boolean; /** * Dataset that was queried */ dataset?: string; /** * Dataset the results were taken from when a Discover dashboard widget query was split between errors and transactions */ discoverSplitDecision?: 'error-events' | 'transaction-like'; /** * Whether the query scanned the `full` data set or only a `partial` sample */ dataScanned?: string; /** * Number of bytes the query scanned */ bytesScanned?: number; /** * Opaque routing hint of an EAP table query. Pass it unchanged as routing_hint when fetching item details for a row */ routingHint?: string; /** * Debug information about the query. Only present when `debug` is passed */ debug_info?: unknown; /** * Ingestion status for the data behind a response. */ ingestion?: { /** * Ingestion status of the data: healthy, stalled, idle or unknown */ status: string; /** * Measured ingestion delay in seconds */ delaySeconds?: number; /** * Time through which the data is complete, as a Unix timestamp in milliseconds */ completeThrough?: number; }; }; }; export type OrganizationEventsTimeseriesResponse = { /** * Metadata about the query */ meta?: { /** * Dataset that was queried */ dataset: string; /** * Start of the queried time range, in milliseconds since the Unix epoch */ start: number; /** * End of the queried time range, in milliseconds since the Unix epoch */ end: number; /** * Ingestion status for the data behind a response. */ ingestion?: { /** * Ingestion status of the data: healthy, stalled, idle or unknown */ status: string; /** * Measured ingestion delay in seconds */ delaySeconds?: number; /** * Time through which the data is complete, as a Unix timestamp in milliseconds */ completeThrough?: number; }; /** * Whether this response reused rows from the incremental timeseries cache */ isCached?: boolean; }; /** * Series returned by the query, one per y-axis and group */ timeSeries: Array<{ /** * Buckets in the series, in time order */ values: Array<{ /** * Start of the bucket, in milliseconds since the Unix epoch */ timestamp: number; /** * Value of the aggregate for this bucket, or null if there is no data */ value: number | null; /** * Whether this bucket may hold incomplete data */ incomplete: boolean; /** * Value of the aggregate for the same bucket in the comparison period */ comparisonValue?: number | null; /** * Whether this value was filled in by a fill transformation */ filled?: boolean; /** * Whether this value was produced by a smoothing transformation */ smoothed?: boolean; /** * Whether the comparison value was filled in by a fill transformation */ comparisonFilled?: boolean; /** * Whether the comparison value was produced by a smoothing transformation */ comparisonSmoothed?: boolean; /** * Number of sampled rows that make up this bucket */ sampleCount?: number; /** * Sampling rate of the data in this bucket, or null if the bucket has no data */ sampleRate?: number | null; /** * Confidence in the extrapolated value: `low` or `high` */ confidence?: 'low' | 'high' | null; /** * Why the bucket is incomplete: `NOT_ELAPSED`, `INGESTION_PENDING`, `OUTSIDE_RETENTION` or `EXCEEDS_QUERY_RANGE` */ incompleteReason?: string; }>; /** * Aggregate this series plots, such as `count()` */ yAxis: string; /** * Fields and values that identify this series when results are grouped */ groupBy?: Array<{ /** * Name of the field this series is grouped by */ key: string; /** * Value of the grouped field for this series */ value: string | number | null; }>; /** * Metadata about the series */ meta: { /** * Position of this series among the top events series */ order?: number; /** * Whether this series aggregates all events outside the top events */ isOther?: boolean; /** * Unit of the values, such as `millisecond` or `byte`, or null if they have no unit */ valueUnit: string | null; /** * Whether the query scanned the `full` data set or only a `partial` sample */ dataScanned?: 'partial' | 'full'; /** * Type of the values, such as `integer`, `duration` or `size` */ valueType: string; /** * Width of each bucket, in milliseconds */ interval: number; }; }>; }; export type OrganizationGroupIndexGetResponse = Array<{ /** * ID of the issue */ id: string; /** * ID used in the issue's public share URL. Null when the issue isn't shared */ shareId?: string | null; /** * Short ID of the issue, such as PROJECT-1A */ shortId?: string | null; /** * Title of the issue */ title?: string; /** * Function or module where the issue occurs */ culprit?: string | null; /** * URL of the issue in Sentry */ permalink?: string; /** * Logger of the issue's events */ logger?: string | null; /** * Severity level of the issue */ level?: 'sample' | 'debug' | 'info' | 'warning' | 'error' | 'fatal' | 'unknown'; /** * Issue status */ status?: 'resolved' | 'ignored' | 'pending_deletion' | 'pending_merge' | 'reprocessing' | 'unresolved'; /** * Details of the issue's status, such as when an ignore expires or which release resolves it */ statusDetails?: { /** * Number of additional events after which the issue stops being ignored */ ignoreCount?: number | null; /** * When the issue stops being ignored (ISO 8601) */ ignoreUntil?: string | null; /** * Number of additional affected users after which the issue stops being ignored */ ignoreUserCount?: number | null; /** * Time window in minutes for ignoreUserCount */ ignoreUserWindow?: number | null; /** * Time window in minutes for ignoreCount */ ignoreWindow?: number | null; /** * User who ignored or resolved the issue */ actor?: { /** * SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access */ identities?: Array<{ /** * SSO identity ID */ id: string; /** * User's identifier at the auth provider */ name: string; /** * Organization the auth provider belongs to */ organization: { /** * Organization slug */ slug: string; /** * Organization name */ name: string; }; /** * Auth provider of the identity */ provider: { /** * Auth provider key, such as google or saml2 */ id: string; /** * Display name of the auth provider */ name: string; }; /** * When the identity was last verified by signing in through the auth provider */ dateVerified: string; /** * When the identity was last synced from the auth provider */ dateSynced: string; }>; /** * User avatar */ avatar?: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Two-factor authenticators of the user, without backup methods such as recovery codes */ authenticators?: Array<{ /** * Authenticator ID */ id: string; /** * Authenticator type, such as totp, sms, u2f or recovery */ type: string; /** * Display name of the authenticator type */ name: string; /** * When the authenticator was added */ dateCreated: string; /** * When the authenticator was last used, or null */ dateUsed: string | null; }>; /** * Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization */ canReset2fa?: boolean; /** * User ID */ id: string; /** * Display name: the user's name, or their email or username if no name is set */ name: string; /** * Username */ username: string; /** * Primary email address */ email: string; /** * Gravatar URL for the primary email address */ avatarUrl: string; /** * Whether the account is active */ isActive: boolean; /** * Whether the account is suspended. Suspended users can't sign in */ isSuspended: boolean; /** * Whether the user has a password set */ hasPasswordAuth: boolean; /** * Whether the account is managed, which stops the user from changing their username, password and similar details */ isManaged: boolean; /** * When the account was created */ dateJoined: string; /** * When the user last signed in, or null */ lastLogin: string | null; /** * Whether the user has two-factor authentication enabled */ has2fa: boolean; /** * When the user was last active, or null */ lastActive: string | null; /** * Whether the user is a superuser */ isSuperuser: boolean; /** * Whether the user has staff status */ isStaff: boolean; /** * Deprecated. Always an empty object */ experiments: { [key: string]: string; }; /** * Email addresses of the user. Only included for the requesting user or superusers; empty otherwise */ emails: Array<{ /** * Email ID */ id: string; /** * Email address */ email: string; /** * Whether the email address is verified */ is_verified: boolean; }>; } | null; /** * Whether the issue is resolved in the next release */ inNextRelease?: boolean; /** * Version of the release the issue is resolved in */ inRelease?: string; /** * Commit the issue is resolved in */ inCommit?: string; /** * Number of events still waiting to be reprocessed */ pendingEvents?: number; /** * Reprocessing progress details */ info?: { /** * When reprocessing started (ISO 8601) */ dateCreated: string; /** * Number of events in the issue when reprocessing started */ syncCount: number; /** * Number of events to reprocess, at most the requested maximum */ totalEvents: number; } | null; }; /** * Substatus of the issue, such as ongoing, regressed or escalating */ substatus?: 'archived_until_escalating' | 'archived_until_condition_met' | 'archived_forever' | 'escalating' | 'ongoing' | 'regressed' | 'new' | null; /** * Whether the issue is shared publicly */ isPublic?: boolean; /** * Platform of the issue's events */ platform?: string | null; /** * Priority of the issue: high, medium or low */ priority?: 'low' | 'medium' | 'high' | null; /** * When the priority was last set manually, which stops automatic priority updates (ISO 8601) */ priorityLockedAt?: string | null; /** * Seer's score for how likely the issue is to be fixable */ seerFixabilityScore?: number | null; /** * When Seer Autofix was last triggered for the issue (ISO 8601) */ seerAutofixLastTriggered?: string | null; /** * When the Seer explorer agent last completed an Autofix step for the issue (ISO 8601) */ seerExplorerAutofixLastTriggered?: string | null; /** * Project the issue belongs to */ project?: { /** * ID of the project */ id: string; /** * Name of the project */ name: string; /** * Slug of the project */ slug: string; /** * Platform of the project */ platform: string | null; }; /** * Event type of the issue, such as error or default */ type?: 'default' | 'error' | 'csp' | 'nel' | 'hpkp' | 'expectct' | 'expectstaple' | 'transaction' | 'generic' | 'feedback'; /** * Issue type, such as error or performance_n_plus_one_db_queries */ issueType?: string; /** * Issue category, such as error or performance */ issueCategory?: string; /** * Issue metadata */ metadata?: { /** * Title of default and issue platform events */ title?: string; /** * Exception value, or the subtitle of an issue */ value?: string; /** * Exception type of error events */ type?: string; /** * Whether the SDK fabricated the exception to carry a stacktrace, so its type is a platform label rather than what went wrong */ synthetic?: boolean; /** * File of the frame where the error happened */ filename?: string; /** * Function of the frame where the error happened */ function?: string; /** * Message of default, security and feedback events */ message?: string; /** * URI that a CSP report blocked */ uri?: string; /** * CSP directive that was violated */ directive?: string; /** * Host name of HPKP, Expect-CT and Expect-Staple reports */ origin?: string; /** * Name of the person who sent user feedback */ name?: string; /** * Email of the person who sent user feedback */ contact_email?: string; /** * Where user feedback came from, such as a widget */ source?: string; /** * Whether the stacktrace has in-app frames, system frames or both */ in_app_frame_mix?: string; /** * Whether a crash report was dropped because the issue already stores the most allowed */ stripped_crash?: boolean; /** * SDK of the issue's first event */ sdk?: { /** * Name of the SDK, or unknown */ name: string; /** * Name of the SDK, normalized for grouping */ name_normalized: string; }; /** * Severity score of the issue's first event */ severity?: number; /** * Why the severity score is what it is */ severity_reason?: string; /** * Priority the issue was created with */ initial_priority?: number; }; /** * Number of comments on the issue */ numComments?: number; /** * User or team the issue is assigned to */ assignedTo?: { /** * Whether the actor is a user or a team */ type: 'user' | 'team'; /** * ID of the user or team */ id: string; /** * Display name of the user, or slug of the team */ name: string; /** * Email address of the user. Only set for users */ email?: string; } | null; /** * Whether the requesting user bookmarked the issue */ isBookmarked?: boolean; /** * Whether the requesting user is subscribed to the issue */ isSubscribed?: boolean; /** * Why the requesting user is subscribed to the issue */ subscriptionDetails?: { /** * Whether the requesting user turned off notifications for the issue */ disabled?: boolean; /** * Why the requesting user is subscribed: commented, assigned, bookmarked, changed_status, mentioned or unknown */ reason?: string; } | null; /** * Whether the requesting user has seen the issue since it last occurred */ hasSeen?: boolean; /** * External issues linked to the issue */ annotations?: Array<{ /** * Display name of the linked external issue */ displayName: string; /** * URL of the linked external issue */ url: string; }>; /** * Whether the issue includes unhandled events */ isUnhandled?: boolean; /** * Total number of events in the issue */ count?: string; /** * Number of users affected by the issue */ userCount?: number; /** * When the issue was first seen (ISO 8601) */ firstSeen?: string | null; /** * When the issue was last seen (ISO 8601) */ lastSeen?: string | null; /** * Additional data derived for the issue. Only included when requested with expand */ derivedData?: { /** * Action that blocks progress on the issue: none, approve_root_cause, approve_plan, approve_code_changes or merge_pr */ blocker: string; /** * How far the issue is toward resolution: identified, assigned, diagnosed, fix_proposed or fix_applied */ progress: string; /** * Status of the issue from its action log: open or closed */ status: string; /** * Number of times the issue was viewed */ viewCount: number; /** * Whether an open pull request is linked to the issue */ hasOpenFixPr: boolean; /** * Whether the issue has an assignee */ isAssigned: boolean; /** * Whether a root cause was found for the issue */ hasRootCause: boolean; /** * Furthest Autofix step completed: none, root_cause, solution, code_changes, pr_created or pr_iteration */ lastCompletedAutofixStep: string; /** * When the issue's progress last advanced (ISO 8601) */ lastProgressedAt: string | null; /** * The issue's impact assessment, or null when no assessment is available */ impact?: { /** * Estimated per-occurrence impact on the end user's capability from 0 to 100 */ score: number | null; /** * Impact level derived from the assessment score */ level: 'super_low' | 'low' | 'moderate' | 'high' | 'super_high' | null; /** * Human-readable description of the capability affected by the issue */ description: string; /** * Evidence-backed claims supporting the impact assessment */ citations: Array<{ /** * Stable identifier for the evidence supporting this claim */ reference: string; /** * Concise explanation of what the cited evidence establishes */ claim: string; /** * The category of evidence cited, such as an event, trace, replay, or log */ source: string; }>; /** * ID of the issue event used to generate the impact assessment */ sourceEventId: string; } | null; }; /** * Event counts over the requested stats period, keyed by the period, as [timestamp, count] pairs. Omitted when stats is collapsed */ stats?: { [key: string]: Array>; }; /** * Event count, user count, and first and last seen times over the issue's lifetime. Omitted when stats or lifetime is collapsed */ lifetime?: { /** * Number of events in the issue */ count: string; /** * Number of users affected by the issue */ userCount: number; /** * When the issue was first seen (ISO 8601) */ firstSeen: string | null; /** * When the issue was last seen (ISO 8601) */ lastSeen: string | null; /** * Always null. Only included when a stats period is requested */ stats?: null; }; /** * Event count, user count, and first and last seen times for events that match the search query. Null when there's no query; omitted when stats or filtered is collapsed */ filtered?: { /** * Number of the issue's events that match the search query */ count: string; /** * Number of users affected by the issue's events that match the search query */ userCount: number; /** * When an event matching the search query was first seen (ISO 8601) */ firstSeen: string | null; /** * When an event matching the search query was last seen (ISO 8601) */ lastSeen: string | null; /** * Counts of matching events over the requested stats period, keyed by the period, as [timestamp, count] pairs */ stats?: { [key: string]: Array>; }; } | null; /** * Number of sessions in the issue's project over the query time range. Null when session data is unavailable. Only included with expand=sessions when a stats period is enabled and stats is not collapsed */ sessionCount?: number | null; /** * Why the issue is in the inbox. Only included when requested with expand */ inbox?: { /** * Why the issue is in the inbox: 0 new, 1 unignored, 2 regression, 3 manual, 4 reprocessed, 5 escalating or 6 ongoing */ reason: number; /** * Details of the ignore that ended when the issue came back to the inbox. Null otherwise */ reason_details: { /** * When the ignore that ended was set to expire (ISO 8601) */ until: string | null; /** * Number of occurrences the ignore that ended was set to wait for */ count: number | null; /** * Window in minutes for count */ window: number | null; /** * Number of affected users the ignore that ended was set to wait for */ user_count: number | null; /** * Window in minutes for user_count */ user_window: number | null; } | null; /** * When the issue was added to the inbox (ISO 8601) */ date_added: string; }; /** * Suggested owners of the issue. Only included when requested with expand */ owners?: Array<{ /** * How the owner was found: suspectCommit, ownershipRule, codeowners or seerSuggested */ type: string; /** * Owner as an actor identifier, such as user:1 or team:1 */ owner: string; /** * When the owner was suggested (ISO 8601) */ date_added: string; }> | null; /** * External issues linked through integrations. Only included when requested with expand */ integrationIssues?: Array<{ /** * ID of the external issue link in Sentry */ id?: string; /** * Key of the issue in the integration, such as APP-123 */ key?: string; /** * Title of the issue in the integration */ title?: string | null; /** * Description of the issue in the integration */ description?: string | null; /** * Name of the issue to display */ displayName?: string; /** * Provider of the integration, such as jira */ integrationKey?: string; /** * Name of the integration */ integrationName?: string; }>; /** * External issues linked through Sentry apps. Only included when requested with expand */ sentryAppIssues?: Array<{ /** * ID of the external issue link */ id: string; /** * ID of the Sentry issue */ issueId: string; /** * Slug of the custom integration that created the external issue */ serviceType: string; /** * Display name of the external issue, such as ABC-123 */ displayName: string; /** * URL of the external issue */ webUrl: string; }>; /** * Whether the issue's latest event has attachments. Only included when requested with expand */ latestEventHasAttachments?: boolean; /** * ID of the event the search query matched. Only included when the query matches an event ID */ matchingEventId?: string | null; /** * Environment of the event the search query matched. Only included when the query matches an event ID */ matchingEventEnvironment?: string | null; }>; export type OrganizationGroupIndexPutResponse = { /** * User or team the issues are now assigned to */ assignedTo?: { /** * Whether the actor is a user or a team */ type: 'user' | 'team'; /** * ID of the user or team */ id: string; /** * Display name of the user, or slug of the team */ name: string; /** * Email address of the user. Only set for users */ email?: string; }; /** * Whether the issues were discarded */ discard?: boolean; /** * Whether the requesting user has now seen the issues */ hasSeen?: boolean; /** * Whether the issues are now in the inbox */ inbox?: boolean; /** * Whether the requesting user has now bookmarked the issues */ isBookmarked?: boolean; /** * Whether the issues are now shared publicly */ isPublic?: boolean; /** * Whether the requesting user is now subscribed to the issues */ isSubscribed?: boolean; /** * Result of merging the issues: the issue they were merged into and the merged issues */ merge?: { /** * ID of the issue the other issues were merged into */ parent: string; /** * IDs of the issues that were merged into the parent issue */ children: Array; }; /** * New priority of the issues: high, medium or low */ priority?: string; /** * ID used in the public share URL. Set when the issue is now shared */ shareId?: string; /** * New status of the issues */ status?: string; /** * Details of the new status, such as the release that resolves the issues or when an ignore expires */ statusDetails?: { /** * Whether the issues are resolved in the next release */ inNextRelease?: boolean; /** * Version of the release the issues are resolved in */ inRelease?: string; /** * Commit that resolves the issues */ inCommit?: { /** * SHA of the resolving commit */ commit: string; /** * Name of the repository the commit belongs to, as it appears in Sentry */ repository: string; }; /** * Minutes the issues are ignored for */ ignoreDuration?: number; /** * Number of occurrences, within ignoreWindow minutes, after which the issues stop being ignored */ ignoreCount?: number; /** * Window in minutes for ignoreCount */ ignoreWindow?: number; /** * Number of affected users, within ignoreUserWindow minutes, after which the issues stop being ignored */ ignoreUserCount?: number; /** * Window in minutes for ignoreUserCount */ ignoreUserWindow?: number; }; /** * Why the requesting user is now subscribed to the issues */ subscriptionDetails?: { /** * Whether the requesting user turned off notifications for the issue */ disabled?: boolean; /** * Why the requesting user is subscribed: commented, assigned, bookmarked, changed_status, mentioned or unknown */ reason?: string; }; /** * New substatus of the issues, such as ongoing or archived_until_escalating */ substatus?: string; }; export type OrganizationGroupIndexStatsGetResponse = Array<{ /** * ID of the issue */ id: string; /** * ID used in the issue's public share URL. Null when the issue isn't shared */ shareId?: string | null; /** * Short ID of the issue, such as PROJECT-1A */ shortId?: string | null; /** * Title of the issue */ title?: string; /** * Function or module where the issue occurs */ culprit?: string | null; /** * URL of the issue in Sentry */ permalink?: string; /** * Logger of the issue's events */ logger?: string | null; /** * Severity level of the issue */ level?: 'sample' | 'debug' | 'info' | 'warning' | 'error' | 'fatal' | 'unknown'; /** * Issue status */ status?: 'resolved' | 'ignored' | 'pending_deletion' | 'pending_merge' | 'reprocessing' | 'unresolved'; /** * Details of the issue's status, such as when an ignore expires or which release resolves it */ statusDetails?: { /** * Number of additional events after which the issue stops being ignored */ ignoreCount?: number | null; /** * When the issue stops being ignored (ISO 8601) */ ignoreUntil?: string | null; /** * Number of additional affected users after which the issue stops being ignored */ ignoreUserCount?: number | null; /** * Time window in minutes for ignoreUserCount */ ignoreUserWindow?: number | null; /** * Time window in minutes for ignoreCount */ ignoreWindow?: number | null; /** * User who ignored or resolved the issue */ actor?: { /** * SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access */ identities?: Array<{ /** * SSO identity ID */ id: string; /** * User's identifier at the auth provider */ name: string; /** * Organization the auth provider belongs to */ organization: { /** * Organization slug */ slug: string; /** * Organization name */ name: string; }; /** * Auth provider of the identity */ provider: { /** * Auth provider key, such as google or saml2 */ id: string; /** * Display name of the auth provider */ name: string; }; /** * When the identity was last verified by signing in through the auth provider */ dateVerified: string; /** * When the identity was last synced from the auth provider */ dateSynced: string; }>; /** * User avatar */ avatar?: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Two-factor authenticators of the user, without backup methods such as recovery codes */ authenticators?: Array<{ /** * Authenticator ID */ id: string; /** * Authenticator type, such as totp, sms, u2f or recovery */ type: string; /** * Display name of the authenticator type */ name: string; /** * When the authenticator was added */ dateCreated: string; /** * When the authenticator was last used, or null */ dateUsed: string | null; }>; /** * Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization */ canReset2fa?: boolean; /** * User ID */ id: string; /** * Display name: the user's name, or their email or username if no name is set */ name: string; /** * Username */ username: string; /** * Primary email address */ email: string; /** * Gravatar URL for the primary email address */ avatarUrl: string; /** * Whether the account is active */ isActive: boolean; /** * Whether the account is suspended. Suspended users can't sign in */ isSuspended: boolean; /** * Whether the user has a password set */ hasPasswordAuth: boolean; /** * Whether the account is managed, which stops the user from changing their username, password and similar details */ isManaged: boolean; /** * When the account was created */ dateJoined: string; /** * When the user last signed in, or null */ lastLogin: string | null; /** * Whether the user has two-factor authentication enabled */ has2fa: boolean; /** * When the user was last active, or null */ lastActive: string | null; /** * Whether the user is a superuser */ isSuperuser: boolean; /** * Whether the user has staff status */ isStaff: boolean; /** * Deprecated. Always an empty object */ experiments: { [key: string]: string; }; /** * Email addresses of the user. Only included for the requesting user or superusers; empty otherwise */ emails: Array<{ /** * Email ID */ id: string; /** * Email address */ email: string; /** * Whether the email address is verified */ is_verified: boolean; }>; } | null; /** * Whether the issue is resolved in the next release */ inNextRelease?: boolean; /** * Version of the release the issue is resolved in */ inRelease?: string; /** * Commit the issue is resolved in */ inCommit?: string; /** * Number of events still waiting to be reprocessed */ pendingEvents?: number; /** * Reprocessing progress details */ info?: { /** * When reprocessing started (ISO 8601) */ dateCreated: string; /** * Number of events in the issue when reprocessing started */ syncCount: number; /** * Number of events to reprocess, at most the requested maximum */ totalEvents: number; } | null; }; /** * Substatus of the issue, such as ongoing, regressed or escalating */ substatus?: 'archived_until_escalating' | 'archived_until_condition_met' | 'archived_forever' | 'escalating' | 'ongoing' | 'regressed' | 'new' | null; /** * Whether the issue is shared publicly */ isPublic?: boolean; /** * Platform of the issue's events */ platform?: string | null; /** * Priority of the issue: high, medium or low */ priority?: 'low' | 'medium' | 'high' | null; /** * When the priority was last set manually, which stops automatic priority updates (ISO 8601) */ priorityLockedAt?: string | null; /** * Seer's score for how likely the issue is to be fixable */ seerFixabilityScore?: number | null; /** * When Seer Autofix was last triggered for the issue (ISO 8601) */ seerAutofixLastTriggered?: string | null; /** * When the Seer explorer agent last completed an Autofix step for the issue (ISO 8601) */ seerExplorerAutofixLastTriggered?: string | null; /** * Project the issue belongs to */ project?: { /** * ID of the project */ id: string; /** * Name of the project */ name: string; /** * Slug of the project */ slug: string; /** * Platform of the project */ platform: string | null; }; /** * Event type of the issue, such as error or default */ type?: 'default' | 'error' | 'csp' | 'nel' | 'hpkp' | 'expectct' | 'expectstaple' | 'transaction' | 'generic' | 'feedback'; /** * Issue type, such as error or performance_n_plus_one_db_queries */ issueType?: string; /** * Issue category, such as error or performance */ issueCategory?: string; /** * Issue metadata */ metadata?: { /** * Title of default and issue platform events */ title?: string; /** * Exception value, or the subtitle of an issue */ value?: string; /** * Exception type of error events */ type?: string; /** * Whether the SDK fabricated the exception to carry a stacktrace, so its type is a platform label rather than what went wrong */ synthetic?: boolean; /** * File of the frame where the error happened */ filename?: string; /** * Function of the frame where the error happened */ function?: string; /** * Message of default, security and feedback events */ message?: string; /** * URI that a CSP report blocked */ uri?: string; /** * CSP directive that was violated */ directive?: string; /** * Host name of HPKP, Expect-CT and Expect-Staple reports */ origin?: string; /** * Name of the person who sent user feedback */ name?: string; /** * Email of the person who sent user feedback */ contact_email?: string; /** * Where user feedback came from, such as a widget */ source?: string; /** * Whether the stacktrace has in-app frames, system frames or both */ in_app_frame_mix?: string; /** * Whether a crash report was dropped because the issue already stores the most allowed */ stripped_crash?: boolean; /** * SDK of the issue's first event */ sdk?: { /** * Name of the SDK, or unknown */ name: string; /** * Name of the SDK, normalized for grouping */ name_normalized: string; }; /** * Severity score of the issue's first event */ severity?: number; /** * Why the severity score is what it is */ severity_reason?: string; /** * Priority the issue was created with */ initial_priority?: number; }; /** * Number of comments on the issue */ numComments?: number; /** * User or team the issue is assigned to */ assignedTo?: { /** * Whether the actor is a user or a team */ type: 'user' | 'team'; /** * ID of the user or team */ id: string; /** * Display name of the user, or slug of the team */ name: string; /** * Email address of the user. Only set for users */ email?: string; } | null; /** * Whether the requesting user bookmarked the issue */ isBookmarked?: boolean; /** * Whether the requesting user is subscribed to the issue */ isSubscribed?: boolean; /** * Why the requesting user is subscribed to the issue */ subscriptionDetails?: { /** * Whether the requesting user turned off notifications for the issue */ disabled?: boolean; /** * Why the requesting user is subscribed: commented, assigned, bookmarked, changed_status, mentioned or unknown */ reason?: string; } | null; /** * Whether the requesting user has seen the issue since it last occurred */ hasSeen?: boolean; /** * External issues linked to the issue */ annotations?: Array<{ /** * Display name of the linked external issue */ displayName: string; /** * URL of the linked external issue */ url: string; }>; /** * Whether the issue includes unhandled events */ isUnhandled?: boolean; /** * Total number of events in the issue */ count?: string; /** * Number of users affected by the issue */ userCount?: number; /** * When the issue was first seen (ISO 8601) */ firstSeen?: string | null; /** * When the issue was last seen (ISO 8601) */ lastSeen?: string | null; /** * Additional data derived for the issue. Only included when requested with expand */ derivedData?: { /** * Action that blocks progress on the issue: none, approve_root_cause, approve_plan, approve_code_changes or merge_pr */ blocker: string; /** * How far the issue is toward resolution: identified, assigned, diagnosed, fix_proposed or fix_applied */ progress: string; /** * Status of the issue from its action log: open or closed */ status: string; /** * Number of times the issue was viewed */ viewCount: number; /** * Whether an open pull request is linked to the issue */ hasOpenFixPr: boolean; /** * Whether the issue has an assignee */ isAssigned: boolean; /** * Whether a root cause was found for the issue */ hasRootCause: boolean; /** * Furthest Autofix step completed: none, root_cause, solution, code_changes, pr_created or pr_iteration */ lastCompletedAutofixStep: string; /** * When the issue's progress last advanced (ISO 8601) */ lastProgressedAt: string | null; /** * The issue's impact assessment, or null when no assessment is available */ impact?: { /** * Estimated per-occurrence impact on the end user's capability from 0 to 100 */ score: number | null; /** * Impact level derived from the assessment score */ level: 'super_low' | 'low' | 'moderate' | 'high' | 'super_high' | null; /** * Human-readable description of the capability affected by the issue */ description: string; /** * Evidence-backed claims supporting the impact assessment */ citations: Array<{ /** * Stable identifier for the evidence supporting this claim */ reference: string; /** * Concise explanation of what the cited evidence establishes */ claim: string; /** * The category of evidence cited, such as an event, trace, replay, or log */ source: string; }>; /** * ID of the issue event used to generate the impact assessment */ sourceEventId: string; } | null; }; /** * Event counts over the requested stats period, keyed by the period, as [timestamp, count] pairs. Omitted when stats is collapsed */ stats?: { [key: string]: Array>; }; /** * Event count, user count, and first and last seen times over the issue's lifetime. Omitted when stats or lifetime is collapsed */ lifetime?: { /** * Number of events in the issue */ count: string; /** * Number of users affected by the issue */ userCount: number; /** * When the issue was first seen (ISO 8601) */ firstSeen: string | null; /** * When the issue was last seen (ISO 8601) */ lastSeen: string | null; /** * Always null. Only included when a stats period is requested */ stats?: null; }; /** * Event count, user count, and first and last seen times for events that match the search query. Null when there's no query; omitted when stats or filtered is collapsed */ filtered?: { /** * Number of the issue's events that match the search query */ count: string; /** * Number of users affected by the issue's events that match the search query */ userCount: number; /** * When an event matching the search query was first seen (ISO 8601) */ firstSeen: string | null; /** * When an event matching the search query was last seen (ISO 8601) */ lastSeen: string | null; /** * Counts of matching events over the requested stats period, keyed by the period, as [timestamp, count] pairs */ stats?: { [key: string]: Array>; }; } | null; /** * Number of sessions in the issue's project over the query time range. Null when session data is unavailable. Only included with expand=sessions when a stats period is enabled and stats is not collapsed */ sessionCount?: number | null; /** * Why the issue is in the inbox. Only included when requested with expand */ inbox?: { /** * Why the issue is in the inbox: 0 new, 1 unignored, 2 regression, 3 manual, 4 reprocessed, 5 escalating or 6 ongoing */ reason: number; /** * Details of the ignore that ended when the issue came back to the inbox. Null otherwise */ reason_details: { /** * When the ignore that ended was set to expire (ISO 8601) */ until: string | null; /** * Number of occurrences the ignore that ended was set to wait for */ count: number | null; /** * Window in minutes for count */ window: number | null; /** * Number of affected users the ignore that ended was set to wait for */ user_count: number | null; /** * Window in minutes for user_count */ user_window: number | null; } | null; /** * When the issue was added to the inbox (ISO 8601) */ date_added: string; }; /** * Suggested owners of the issue. Only included when requested with expand */ owners?: Array<{ /** * How the owner was found: suspectCommit, ownershipRule, codeowners or seerSuggested */ type: string; /** * Owner as an actor identifier, such as user:1 or team:1 */ owner: string; /** * When the owner was suggested (ISO 8601) */ date_added: string; }> | null; /** * External issues linked through integrations. Only included when requested with expand */ integrationIssues?: Array<{ /** * ID of the external issue link in Sentry */ id?: string; /** * Key of the issue in the integration, such as APP-123 */ key?: string; /** * Title of the issue in the integration */ title?: string | null; /** * Description of the issue in the integration */ description?: string | null; /** * Name of the issue to display */ displayName?: string; /** * Provider of the integration, such as jira */ integrationKey?: string; /** * Name of the integration */ integrationName?: string; }>; /** * External issues linked through Sentry apps. Only included when requested with expand */ sentryAppIssues?: Array<{ /** * ID of the external issue link */ id: string; /** * ID of the Sentry issue */ issueId: string; /** * Slug of the custom integration that created the external issue */ serviceType: string; /** * Display name of the external issue, such as ABC-123 */ displayName: string; /** * URL of the external issue */ webUrl: string; }>; /** * Whether the issue's latest event has attachments. Only included when requested with expand */ latestEventHasAttachments?: boolean; /** * ID of the event the search query matched. Only included when the query matches an event ID */ matchingEventId?: string | null; /** * Environment of the event the search query matched. Only included when the query matches an event ID */ matchingEventEnvironment?: string | null; }>; export type OrganizationIntegrationResponse = { /** * ID of the integration */ id: string; /** * Name of the integration, usually the connected account or workspace */ name: string; /** * URL of the connected account's icon */ icon: string | null; /** * Domain of the connected account, such as github.com/example-org */ domainName: string | null; /** * Type of the connected account, such as Organization or User */ accountType: string | null; /** * Permission scopes granted to the integration */ scopes: Array | null; /** * Whether the installation lacks permissions the latest version of the integration needs. Null for providers without a permissions model */ outOfDate: boolean | null; /** * Features the installation can't support because of missing permissions. Null for providers without a permissions model */ missingFeatures: Array<{ /** * Key of the missing feature */ key: string; /** * Description of the missing feature */ description: string; }> | null; /** * Status of the integration */ status: 'active' | 'disabled' | 'pending_deletion' | 'deletion_in_progress'; /** * Integration provider details */ provider: { /** * Key of the integration provider, such as github */ key: string; /** * Slug of the integration provider, same as key */ slug: string; /** * Display name of the integration provider */ name: string; /** * Whether the integration can be installed from Sentry */ canAdd: boolean; /** * Whether the integration must be uninstalled from the provider instead of in Sentry */ canDisable: boolean; /** * Features the integration provider supports, such as issue-basic or commits */ features: Array; /** * Extra provider details shown during setup, such as alerts and configuration instructions */ aspects: { /** * Alerts shown during setup */ alerts?: Array<{ /** * Style of the alert, such as warning */ type: string; /** * Icon shown with the alert, such as icon-warning-sm */ icon: string; /** * Text of the alert, in Markdown */ text: string; }>; /** * Configuration step after install */ configure_integration?: { /** * Title of the configuration step */ title: string; }; /** * Whether the integration is enabled without an install flow */ directEnable?: boolean; /** * Dialog shown before the integration is disabled */ disable_dialog?: { /** * Label of the dialog's confirm button */ actionText: string; /** * Text of the dialog */ body: string; }; /** * Where to install the integration when it's installed outside Sentry */ externalInstall?: { /** * URL to install the integration from, such as a marketplace */ url: string; /** * Label of the install button */ buttonText: string; /** * Notice shown before the user leaves Sentry */ noticeText: string; }; /** * Dialog shown before the integration is removed */ removal_dialog?: { /** * Label of the dialog's confirm button */ actionText: string; /** * Text of the dialog */ body: string; }; }; }; /** * Organization-level configuration fields of the integration */ configOrganization: unknown; /** * Configuration values the organization set for the integration */ configData: unknown; /** * ID of the connected account in the provider */ externalId: string; /** * ID of the organization the integration is installed in */ organizationId: number; /** * Status of the integration in this organization */ organizationIntegrationStatus: 'active' | 'disabled' | 'pending_deletion' | 'deletion_in_progress'; /** * When the integration's grace period ends (ISO 8601). Null when there's no grace period */ gracePeriodEnd: string | null; }; export type OrganizationIssueView = { /** * ID of the issue view */ id: string; /** * User who created the issue view */ createdBy: { /** * SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access */ identities?: Array<{ /** * SSO identity ID */ id: string; /** * User's identifier at the auth provider */ name: string; /** * Organization the auth provider belongs to */ organization: { /** * Organization slug */ slug: string; /** * Organization name */ name: string; }; /** * Auth provider of the identity */ provider: { /** * Auth provider key, such as google or saml2 */ id: string; /** * Display name of the auth provider */ name: string; }; /** * When the identity was last verified by signing in through the auth provider */ dateVerified: string; /** * When the identity was last synced from the auth provider */ dateSynced: string; }>; /** * User avatar */ avatar?: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Two-factor authenticators of the user, without backup methods such as recovery codes */ authenticators?: Array<{ /** * Authenticator ID */ id: string; /** * Authenticator type, such as totp, sms, u2f or recovery */ type: string; /** * Display name of the authenticator type */ name: string; /** * When the authenticator was added */ dateCreated: string; /** * When the authenticator was last used, or null */ dateUsed: string | null; }>; /** * Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization */ canReset2fa?: boolean; /** * User ID */ id: string; /** * Display name: the user's name, or their email or username if no name is set */ name: string; /** * Username */ username: string; /** * Primary email address */ email: string; /** * Gravatar URL for the primary email address */ avatarUrl: string; /** * Whether the account is active */ isActive: boolean; /** * Whether the account is suspended. Suspended users can't sign in */ isSuspended: boolean; /** * Whether the user has a password set */ hasPasswordAuth: boolean; /** * Whether the account is managed, which stops the user from changing their username, password and similar details */ isManaged: boolean; /** * When the account was created */ dateJoined: string; /** * When the user last signed in, or null */ lastLogin: string | null; /** * Whether the user has two-factor authentication enabled */ has2fa: boolean; /** * When the user was last active, or null */ lastActive: string | null; /** * Whether the user is a superuser */ isSuperuser: boolean; /** * Whether the user has staff status */ isStaff: boolean; /** * Deprecated. Always an empty object */ experiments: { [key: string]: string; }; /** * Email addresses of the user. Only included for the requesting user or superusers; empty otherwise */ emails: Array<{ /** * Email ID */ id: string; /** * Email address */ email: string; /** * Whether the email address is verified */ is_verified: boolean; }>; } | null; /** * Name of the issue view */ name: string; /** * Search query of the issue view */ query: string; /** * How issues in the view are sorted */ querySort: 'date' | 'new' | 'trends' | 'freq' | 'user' | 'inbox' | 'recommended'; /** * IDs of the projects in the view. [-1] means all projects */ projects: Array; /** * Names of the environments in the view. An empty list means all environments */ environments: Array; /** * Time range of the issue view */ timeFilters: { /** * Start of the time range (ISO 8601) */ start?: string | null; /** * End of the time range (ISO 8601) */ end?: string | null; /** * Relative time period, such as 14d */ period?: string | null; /** * Whether the time range is in UTC */ utc?: boolean | null; }; /** * When the requesting user last viewed the issue view (ISO 8601) */ lastVisited: string | null; /** * When the issue view was created (ISO 8601) */ dateCreated: string | null; /** * When the issue view was last updated (ISO 8601) */ dateUpdated: string; /** * Whether the requesting user starred the issue view */ starred: boolean; /** * Number of users who starred the issue view */ stars: number; }; export type OrganizationIssueViewList = Array<{ /** * ID of the issue view */ id: string; /** * User who created the issue view */ createdBy: { /** * SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access */ identities?: Array<{ /** * SSO identity ID */ id: string; /** * User's identifier at the auth provider */ name: string; /** * Organization the auth provider belongs to */ organization: { /** * Organization slug */ slug: string; /** * Organization name */ name: string; }; /** * Auth provider of the identity */ provider: { /** * Auth provider key, such as google or saml2 */ id: string; /** * Display name of the auth provider */ name: string; }; /** * When the identity was last verified by signing in through the auth provider */ dateVerified: string; /** * When the identity was last synced from the auth provider */ dateSynced: string; }>; /** * User avatar */ avatar?: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Two-factor authenticators of the user, without backup methods such as recovery codes */ authenticators?: Array<{ /** * Authenticator ID */ id: string; /** * Authenticator type, such as totp, sms, u2f or recovery */ type: string; /** * Display name of the authenticator type */ name: string; /** * When the authenticator was added */ dateCreated: string; /** * When the authenticator was last used, or null */ dateUsed: string | null; }>; /** * Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization */ canReset2fa?: boolean; /** * User ID */ id: string; /** * Display name: the user's name, or their email or username if no name is set */ name: string; /** * Username */ username: string; /** * Primary email address */ email: string; /** * Gravatar URL for the primary email address */ avatarUrl: string; /** * Whether the account is active */ isActive: boolean; /** * Whether the account is suspended. Suspended users can't sign in */ isSuspended: boolean; /** * Whether the user has a password set */ hasPasswordAuth: boolean; /** * Whether the account is managed, which stops the user from changing their username, password and similar details */ isManaged: boolean; /** * When the account was created */ dateJoined: string; /** * When the user last signed in, or null */ lastLogin: string | null; /** * Whether the user has two-factor authentication enabled */ has2fa: boolean; /** * When the user was last active, or null */ lastActive: string | null; /** * Whether the user is a superuser */ isSuperuser: boolean; /** * Whether the user has staff status */ isStaff: boolean; /** * Deprecated. Always an empty object */ experiments: { [key: string]: string; }; /** * Email addresses of the user. Only included for the requesting user or superusers; empty otherwise */ emails: Array<{ /** * Email ID */ id: string; /** * Email address */ email: string; /** * Whether the email address is verified */ is_verified: boolean; }>; } | null; /** * Name of the issue view */ name: string; /** * Search query of the issue view */ query: string; /** * How issues in the view are sorted */ querySort: 'date' | 'new' | 'trends' | 'freq' | 'user' | 'inbox' | 'recommended'; /** * IDs of the projects in the view. [-1] means all projects */ projects: Array; /** * Names of the environments in the view. An empty list means all environments */ environments: Array; /** * Time range of the issue view */ timeFilters: { /** * Start of the time range (ISO 8601) */ start?: string | null; /** * End of the time range (ISO 8601) */ end?: string | null; /** * Relative time period, such as 14d */ period?: string | null; /** * Whether the time range is in UTC */ utc?: boolean | null; }; /** * When the requesting user last viewed the issue view (ISO 8601) */ lastVisited: string | null; /** * When the issue view was created (ISO 8601) */ dateCreated: string | null; /** * When the issue view was last updated (ISO 8601) */ dateUpdated: string; /** * Whether the requesting user starred the issue view */ starred: boolean; /** * Number of users who starred the issue view */ stars: number; }>; export type OrganizationMember = { /** * Users in external providers, such as Slack or GitHub, linked to the member's user. Included only when requested */ externalUsers?: Array<{ /** * ID of the user or team in the provider */ externalId?: string; /** * ID of the Sentry user. Only set for user mappings */ userId?: string; /** * ID of the Sentry team. Only set for team mappings */ teamId?: string; /** * ID of the external actor mapping */ id: string; /** * Provider of the external actor, such as github or slack */ provider: string; /** * Name of the user or team in the provider, such as @octocat */ externalName: string; /** * ID of the integration the mapping belongs to */ integrationId: string; }>; /** * Organization member ID */ id: string; /** * Email address of the member's user, or the invited email address if they have no account yet */ email: string; /** * Display name of the member's user, or their email address if they have no account yet */ name: string; /** * The member's user. Null for invited members without an account, or if the user can't be found */ user: { /** * SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access */ identities?: Array<{ /** * SSO identity ID */ id: string; /** * User's identifier at the auth provider */ name: string; /** * Organization the auth provider belongs to */ organization: { /** * Organization slug */ slug: string; /** * Organization name */ name: string; }; /** * Auth provider of the identity */ provider: { /** * Auth provider key, such as google or saml2 */ id: string; /** * Display name of the auth provider */ name: string; }; /** * When the identity was last verified by signing in through the auth provider */ dateVerified: string; /** * When the identity was last synced from the auth provider */ dateSynced: string; }>; /** * User avatar */ avatar?: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Two-factor authenticators of the user, without backup methods such as recovery codes */ authenticators?: Array<{ /** * Authenticator ID */ id: string; /** * Authenticator type, such as totp, sms, u2f or recovery */ type: string; /** * Display name of the authenticator type */ name: string; /** * When the authenticator was added */ dateCreated: string; /** * When the authenticator was last used, or null */ dateUsed: string | null; }>; /** * Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization */ canReset2fa?: boolean; /** * User ID */ id: string; /** * Display name: the user's name, or their email or username if no name is set */ name: string; /** * Username */ username: string; /** * Primary email address */ email: string; /** * Gravatar URL for the primary email address */ avatarUrl: string; /** * Whether the account is active */ isActive: boolean; /** * Whether the account is suspended. Suspended users can't sign in */ isSuspended: boolean; /** * Whether the user has a password set */ hasPasswordAuth: boolean; /** * Whether the account is managed, which stops the user from changing their username, password and similar details */ isManaged: boolean; /** * When the account was created */ dateJoined: string; /** * When the user last signed in, or null */ lastLogin: string | null; /** * Whether the user has two-factor authentication enabled */ has2fa: boolean; /** * When the user was last active, or null */ lastActive: string | null; /** * Whether the user is a superuser */ isSuperuser: boolean; /** * Whether the user has staff status */ isStaff: boolean; /** * Deprecated. Always an empty object */ experiments: { [key: string]: string; }; /** * Email addresses of the user. Only included for the requesting user or superusers; empty otherwise */ emails: Array<{ /** * Email ID */ id: string; /** * Email address */ email: string; /** * Whether the email address is verified */ is_verified: boolean; }>; } | null; /** * ID of the member's organization role */ orgRole: string; /** * Whether the member has no user account linked yet, as with an invite that hasn't been accepted */ pending: boolean; /** * Whether the member's invite has expired */ expired: boolean; /** * Member flags */ flags: { /** * Whether the member is provisioned and managed through the organization's identity provider (SCIM) */ 'idp:provisioned': boolean; /** * Whether the member's organization role is set by the identity provider through SCIM */ 'idp:role-restricted': boolean; /** * Whether the member has linked their account to the organization's SSO provider */ 'sso:linked': boolean; /** * Whether the member's SSO link is invalid */ 'sso:invalid': boolean; /** * Whether the member is restricted by the plan's member limit */ 'member-limit:restricted': boolean; /** * Whether the member is managed by an active partnership and can't be changed until it ends */ 'partnership:restricted': boolean; }; /** * When the member was added or invited */ dateCreated: string; /** * Invite status */ inviteStatus: 'approved' | 'requested_to_be_invited' | 'requested_to_join' | null; /** * Name of the user who invited the member, or null */ inviterName: string | null; }; export type OrganizationMemberRequest = { /** * The email address to send the invitation to. */ email: string; /** * Deprecated, use `orgRole`. The organization-level role to assign. * * * `member` - Member * * `admin` - Admin * * `manager` - Manager * * `owner` - Owner * * @deprecated */ role?: 'member' | 'admin' | 'manager' | 'owner'; /** * The organization-level role of the new member. Roles include: * * * `billing` - Can manage payment and compliance details. * * `member` - Can view and act on events, as well as view most other data within the organization. * * `manager` - Has full management access to all teams and projects. Can also manage * the organization's membership. * * `owner` - Has unrestricted access to the organization, its data, and its * settings. Can add, modify, and delete projects and members, as well as * make billing and plan changes. * * `admin` - Can edit global integrations, manage projects, and add/remove teams. * They automatically assume the Team Admin role for teams they join. * Note: This role can no longer be assigned in Business and Enterprise plans. Use `TeamRoles` instead. * */ orgRole?: 'billing' | 'member' | 'manager' | 'owner' | 'admin'; /** * Deprecated, use `teamRoles`. Slugs of teams to add the member to. * * @deprecated */ teams?: Array; /** * The team and team-roles assigned to the member. Team roles can be either: * - `contributor` - Can view and act on issues. Depending on organization settings, they can also add team members. * - `admin` - Has full management access to their team's membership and projects. */ teamRoles?: Array<{ /** * The slug of the team to assign the member to. */ teamSlug: string; /** * The team role to assign. Use null for the default team role. * * * `contributor` * * `admin` */ role: 'contributor' | 'admin' | null; }>; /** * Whether or not to re-invite a user who has already been invited to the organization. Defaults to True. */ reinvite?: boolean; /** * Reissue the invite token, invalidating any previously sent invite link. */ regenerate?: boolean; }; /** * Conforming to the SCIM RFC, this represents a Sentry Org Member * as a SCIM user object. */ export type OrganizationMemberScim = { /** * Always true when included. Sentry doesn't use this field, but SCIM expects it */ active?: boolean; /** * SCIM schema URIs of the resource */ schemas: Array; /** * Organization member ID */ id: string; /** * Email address of the member */ userName: string; /** * Name of the member */ name: { /** * Given name. Always N/A, because Sentry doesn't store it */ givenName: string; /** * Family name. Always N/A, because Sentry doesn't store it */ familyName: string; }; /** * Email addresses of the member */ emails: Array<{ /** * Whether this is the primary email address. Always true */ primary: boolean; /** * Email address */ value: string; /** * Email type. Always work */ type: string; }>; /** * SCIM resource metadata */ meta: { /** * SCIM resource type, such as User or Group */ resourceType: string; }; /** * ID of the member's organization role */ sentryOrgRole: string; }; export type OrganizationMemberTeam = { /** * The team-level role to switch to. Valid roles include: * * * `contributor` - Contributors can view and act on events, as well as view most other data within the team's projects. * * `admin` - Admin privileges on the team. They can create and remove projects, and can manage the team's memberships. */ teamRole?: 'contributor' | 'admin'; }; export type OrganizationMemberTeamDetails = { /** * Whether the team membership is active. An inactive membership removes the team from the member's default list, but the member can rejoin without a request */ isActive: boolean; /** * ID of the member's team role */ teamRole: 'contributor' | 'admin'; }; export type OrganizationMemberWithRoles = { /** * Users in external providers, such as Slack or GitHub, linked to the member's user. Included only when requested */ externalUsers?: Array<{ /** * ID of the user or team in the provider */ externalId?: string; /** * ID of the Sentry user. Only set for user mappings */ userId?: string; /** * ID of the Sentry team. Only set for team mappings */ teamId?: string; /** * ID of the external actor mapping */ id: string; /** * Provider of the external actor, such as github or slack */ provider: string; /** * Name of the user or team in the provider, such as @octocat */ externalName: string; /** * ID of the integration the mapping belongs to */ integrationId: string; }>; /** * Deprecated. Use orgRole */ role?: string; /** * Deprecated. Name of the member's organization role */ roleName?: string; /** * Organization member ID */ id: string; /** * Email address of the member's user, or the invited email address if they have no account yet */ email: string; /** * Display name of the member's user, or their email address if they have no account yet */ name: string; /** * The member's user. Null for invited members without an account, or if the user can't be found */ user: { /** * SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access */ identities?: Array<{ /** * SSO identity ID */ id: string; /** * User's identifier at the auth provider */ name: string; /** * Organization the auth provider belongs to */ organization: { /** * Organization slug */ slug: string; /** * Organization name */ name: string; }; /** * Auth provider of the identity */ provider: { /** * Auth provider key, such as google or saml2 */ id: string; /** * Display name of the auth provider */ name: string; }; /** * When the identity was last verified by signing in through the auth provider */ dateVerified: string; /** * When the identity was last synced from the auth provider */ dateSynced: string; }>; /** * User avatar */ avatar?: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Two-factor authenticators of the user, without backup methods such as recovery codes */ authenticators?: Array<{ /** * Authenticator ID */ id: string; /** * Authenticator type, such as totp, sms, u2f or recovery */ type: string; /** * Display name of the authenticator type */ name: string; /** * When the authenticator was added */ dateCreated: string; /** * When the authenticator was last used, or null */ dateUsed: string | null; }>; /** * Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization */ canReset2fa?: boolean; /** * User ID */ id: string; /** * Display name: the user's name, or their email or username if no name is set */ name: string; /** * Username */ username: string; /** * Primary email address */ email: string; /** * Gravatar URL for the primary email address */ avatarUrl: string; /** * Whether the account is active */ isActive: boolean; /** * Whether the account is suspended. Suspended users can't sign in */ isSuspended: boolean; /** * Whether the user has a password set */ hasPasswordAuth: boolean; /** * Whether the account is managed, which stops the user from changing their username, password and similar details */ isManaged: boolean; /** * When the account was created */ dateJoined: string; /** * When the user last signed in, or null */ lastLogin: string | null; /** * Whether the user has two-factor authentication enabled */ has2fa: boolean; /** * When the user was last active, or null */ lastActive: string | null; /** * Whether the user is a superuser */ isSuperuser: boolean; /** * Whether the user has staff status */ isStaff: boolean; /** * Deprecated. Always an empty object */ experiments: { [key: string]: string; }; /** * Email addresses of the user. Only included for the requesting user or superusers; empty otherwise */ emails: Array<{ /** * Email ID */ id: string; /** * Email address */ email: string; /** * Whether the email address is verified */ is_verified: boolean; }>; } | null; /** * ID of the member's organization role */ orgRole: string; /** * Whether the member has no user account linked yet, as with an invite that hasn't been accepted */ pending: boolean; /** * Whether the member's invite has expired */ expired: boolean; /** * Member flags */ flags: { /** * Whether the member is provisioned and managed through the organization's identity provider (SCIM) */ 'idp:provisioned': boolean; /** * Whether the member's organization role is set by the identity provider through SCIM */ 'idp:role-restricted': boolean; /** * Whether the member has linked their account to the organization's SSO provider */ 'sso:linked': boolean; /** * Whether the member's SSO link is invalid */ 'sso:invalid': boolean; /** * Whether the member is restricted by the plan's member limit */ 'member-limit:restricted': boolean; /** * Whether the member is managed by an active partnership and can't be changed until it ends */ 'partnership:restricted': boolean; }; /** * When the member was added or invited */ dateCreated: string; /** * Invite status */ inviteStatus: 'approved' | 'requested_to_be_invited' | 'requested_to_join' | null; /** * Name of the user who invited the member, or null */ inviterName: string | null; /** * Deprecated. Slugs of the active teams the member belongs to. Use teamRoles */ teams: Array; /** * Active teams the member belongs to, with the member's role in each */ teamRoles: Array<{ /** * Team slug */ teamSlug: string; /** * ID of the member's team role, or null if the member has the minimum team role from their organization role */ role: string | null; }>; /** * Whether the member is the only owner of the organization */ isOnlyOwner: boolean; /** * Organization roles, with whether the requesting user can assign each one */ orgRoleList: Array<{ /** * Role ID, such as member or admin */ id: string; /** * Display name of the role */ name: string; /** * Description of what the role can do */ desc: string; /** * Scopes the role grants in this organization */ scopes: Array; /** * Deprecated alias of isAllowed */ allowed: boolean; /** * Whether the requesting user can assign this role */ isAllowed: boolean; /** * Whether the role is retired and shouldn't be assigned to more members */ isRetired: boolean; /** * Whether members with this role can have team-level roles */ isTeamRolesAllowed: boolean; /** * Deprecated alias of isGlobal */ is_global: boolean; /** * Whether the role gives access to all teams and projects in the organization */ isGlobal: boolean; /** * ID of the lowest team role that members with this organization role hold on every team */ minimumTeamRole: string; }>; /** * Team roles available in the organization */ teamRoleList: Array<{ /** * Role ID, such as member or admin */ id: string; /** * Display name of the role */ name: string; /** * Description of what the role can do */ desc: string; /** * Scopes the role grants in this organization */ scopes: Array; /** * Deprecated alias of isAllowed */ allowed: boolean; /** * Whether the requesting user can assign this role */ isAllowed: boolean; /** * Whether the role is retired and shouldn't be assigned to more members */ isRetired: boolean; /** * Whether members with this role can have team-level roles */ isTeamRolesAllowed: boolean; /** * ID of the organization role whose members hold at least this team role on every team, or null */ isMinimumRoleFor: string | null; }>; }; export type OrganizationMonitorIndexStatsResponse = { [key: string]: Array>; }; export type OrganizationOpenPeriodsGetResponse = Array<{ /** * ID of the open period */ id: string; /** * ID of the issue */ groupId: string; /** * Short ID of the issue, such as PROJECT-1A */ shortId: string | null; /** * When the issue opened, less `bucketSize` */ start: string; /** * When the issue closed, less `bucketSize`. Null while open */ end: string | null; /** * Whether the open period is still open */ isOpen: boolean; /** * Activities in the date range, oldest first, up to 100. With `start`, the last activity before it comes first */ activities: Array<{ /** * ID of the activity */ id: string; /** * What happened: `opened`, `status_change` or `closed` */ type: string; /** * Issue priority after the activity, such as `high` */ value: string | null; /** * When the activity happened */ dateCreated: string; /** * ID of the event that caused the activity */ eventId: string | null; }> | null; }>; export type OrganizationProfilingChunksResponse = { [key: string]: unknown; }; export type OrganizationProfilingFlamegraphResponse = { [key: string]: unknown; }; export type OrganizationProjectResponseDict = Array<{ /** * Latest deploy for each environment, keyed by environment name, with its release version and finish time. Omitted when collapsed */ latestDeploys?: { [key: string]: { [key: string]: string; }; } | null; /** * Requested project options, keyed by option name. Only included when options are requested */ options?: { [key: string]: unknown; }; /** * Counts of non-transaction events per interval over the requested stats period, as [timestamp, count] pairs. Only included when a stats period is requested */ stats?: Array> | { [key: string]: number; }; /** * Counts of transactions per interval over the requested stats period, as [timestamp, count] pairs. Only included when transaction stats are requested */ transactionStats?: Array>; /** * Crash-free session rates for the current and previous stats period. Only included when session stats are requested */ sessionStats?: { /** * Crash-free rate in the current period, as a percentage. Null when there's no session data */ currentCrashFreeRate: number | null; /** * Crash-free rate in the previous period, as a percentage. Null when there's no session data */ previousCrashFreeRate: number | null; /** * Whether the project has release health (session) data */ hasHealthData: boolean; }; /** * ID of the project */ id: string; /** * Slug of the project */ slug: string; /** * Name of the project */ name: string; /** * Platform of the project */ platform: string | null; /** * When the project was created (ISO 8601) */ dateCreated: string; /** * Whether the requesting user bookmarked the project */ isBookmarked: boolean; /** * Whether the requesting user is a member of a team with access to the project */ isMember: boolean; /** * Features enabled for the project */ features: Array; /** * When the project received its first event (ISO 8601) */ firstEvent: string | null; /** * Whether the project has sent transactions */ firstTransactionEvent: boolean; /** * Scopes the requesting user has on the project through team membership and organization role */ access: Array; /** * Whether the requesting user has access to the project */ hasAccess: boolean; /** * Whether the project has sent user feedback */ hasFeedbacks: boolean; /** * Whether the project has sent feature flags */ hasFlags: boolean; /** * Whether the project has sent an event with a minified stack trace */ hasMinifiedStackTrace: boolean; /** * Whether the project has cron monitors */ hasMonitors: boolean; /** * Whether the project has sent user feedback from the user feedback widget */ hasNewFeedbacks: boolean; /** * Whether the project has sent profiles */ hasProfiles: boolean; /** * Whether the project has sent replays */ hasReplays: boolean; /** * Whether the project has sent sessions */ hasSessions: boolean; /** * Whether the project has sent HTTP request spans used by Insights */ hasInsightsHttp: boolean; /** * Whether the project has sent database spans used by Insights */ hasInsightsDb: boolean; /** * Whether the project has sent asset spans used by Insights */ hasInsightsAssets: boolean; /** * Whether the project has sent app start spans used by Insights */ hasInsightsAppStart: boolean; /** * Whether the project has sent screen load spans used by Insights */ hasInsightsScreenLoad: boolean; /** * Whether the project has sent web vitals spans used by Insights */ hasInsightsVitals: boolean; /** * Whether the project has sent cache spans used by Insights */ hasInsightsCaches: boolean; /** * Whether the project has sent queue spans used by Insights */ hasInsightsQueues: boolean; /** * Whether the project has sent AI agent spans used by Insights */ hasInsightsAgentMonitoring: boolean; /** * Whether the project has sent MCP spans used by Insights */ hasInsightsMCP: boolean; /** * Whether the project has sent logs. Always true outside sentry.io */ hasLogs: boolean; /** * Whether the project has sent trace metrics. Always true outside sentry.io */ hasTraceMetrics: boolean; /** * First team with access to the project; use teams instead */ team: { /** * ID of the team */ id: string; /** * Name of the team */ name: string; /** * Slug of the team */ slug: string; } | null; /** * Teams with access to the project */ teams: Array<{ /** * ID of the team */ id: string; /** * Name of the team */ name: string; /** * Slug of the team */ slug: string; }>; /** * Platforms seen in the project's events */ platforms: Array; /** * Whether the project has received user reports */ hasUserReports: boolean; /** * Environments seen in the project's events */ environments: Array; /** * Latest release of the project */ latestRelease: { /** * Version of the release */ version: string; } | null; }>; export type OrganizationRelayResponse = Array<{ /** * ID of the Relay */ relayId: string; /** * Version of the Relay */ version: string; /** * Public key of the Relay */ publicKey: string | null; /** * When the Relay first connected (ISO 8601) */ firstSeen: string; /** * When the Relay last connected (ISO 8601) */ lastSeen: string; }>; export type OrganizationRelease = { /** * An optional commit reference. This is useful if a tagged version has been provided. */ ref?: string | null; /** * A URL that points to the release. For instance, this can be the path to an online interface to the source code, such as a GitHub URL. */ url?: string | null; /** * An optional date that indicates when the release went live. If not provided the current time is used. */ dateReleased?: string | null; /** * An optional list of commit data to be associated. Very long lists are truncated to the most recent commits. */ commits?: Array<{ id: string; repository?: string | null; message?: string | null; author_name?: string | null; author_email?: string | null; timestamp?: string | null; patch_set?: Array<{ path: string; type: string; }> | null; }>; /** * The status of the release. Can be `open` or `archived`. */ status?: string; /** * Deprecated, use `commits`. Head commits to associate with the release. */ headCommits?: Array<{ currentId: string; repository: string; previousId?: string | null; }>; /** * An optional way to indicate the start and end commits for each repository included in a release. Head commits must include parameters ``repository`` and ``commit`` (the HEAD SHA). For GitLab repositories, please use the Group name instead of the slug. They can optionally include ``previousCommit`` (the SHA of the HEAD of the previous release), which should be specified if this is the first time you've sent commit data. */ refs?: Array<{ commit: string; repository: string; previousCommit?: string | null; }>; }; export type OrganizationRepositorySettingsResponse = Array<{ /** * URL of the repository */ url?: string | null; /** * Provider of the repository, with its id and name */ provider?: { [key: string]: string; }; /** * Status of the repository */ status?: 'active' | 'disabled' | 'pending_deletion' | 'deletion_in_progress'; /** * ID of the repository's integration. Null for repositories added without an integration */ integrationId?: string | null; /** * Identifier of the repository in the provider, such as owner/name */ externalSlug?: string | null; /** * ID of the repository in the provider */ externalId?: string | null; /** * Settings of the repository. Only set when expand includes settings. Null when it has none */ settings?: { /** * Whether AI code review is on for the repository */ enabledCodeReview: boolean; /** * Pull request events that start a code review: on_new_commit or on_ready_for_review */ codeReviewTriggers: Array; } | null; /** * ID of the repository */ id: string; /** * Name of the repository, such as owner/name */ name: string; /** * When the repository was added to Sentry (ISO 8601) */ dateCreated: string; }>; export type OrganizationSentryAppDetailsResponse = Array<{ /** * Allowed origins for CORS */ allowedOrigins: Array; /** * Avatars of the custom integration */ avatars: Array<{ /** * Avatar type: `default` or `upload` */ avatarType: string; /** * Unique identifier of the uploaded avatar file, or an empty string if none is set */ avatarUuid: string; /** * Absolute URL of the avatar image */ avatarUrl: string; /** * Whether this is the color logo (`true`) or the simple icon (`false`) */ color: boolean; /** * Kind of image: `logo` for the color logo or `icon` for the simple icon */ photoType: string; }>; /** * Resources the integration's webhooks are subscribed to, such as issue */ events: Array; /** * Webhook events the integration is subscribed to, such as issue.resolved */ webhookEvents: Array; /** * Features the integration supports. Empty for internal integrations */ featureData: Array; /** * Whether the integration can be used in alert rules */ isAlertable: boolean; /** * Metadata of the integration */ metadata: string; /** * Name of the custom integration */ name: string; /** * UI components schema used to render the integration's UI elements */ schema: string; /** * Permission scopes for API access */ scopes: Array; /** * Slug of the custom integration */ slug: string; /** * Status of the integration */ status: 'unpublished' | 'published' | 'internal' | 'publish_request_inprogress' | 'deletion_in_progress'; /** * UUID of the custom integration */ uuid: string; /** * Whether installations of the integration must be verified */ verifyInstall: boolean; /** * Custom headers sent with every webhook request, as Header-Name: value pairs. Values are masked */ webhookHeaders: Array; /** * Whether the integration is disabled */ isDisabled?: boolean; /** * Author of the integration */ author?: string | null; /** * Description of the integration */ overview?: string | null; /** * Popularity score of the integration */ popularity?: number | null; /** * URL to redirect to after installation */ redirectUrl?: string | null; /** * Webhook destination URL */ webhookUrl?: string | null; /** * OAuth client secret. Only shown to authorized users within 5 minutes of creation, and masked otherwise */ clientSecret?: string | null; /** * When the integration was published (ISO 8601). Only set for published integrations */ datePublished?: string; /** * OAuth client ID. Only included for members of the owner organization */ clientId?: string; /** * Organization that owns the integration. Only included for members of the owner organization */ owner?: { /** * ID of the organization that owns the integration */ id: number; /** * Slug of the organization that owns the integration */ slug: string; }; }>; export type OrganizationStatsSummaryResponse = { /** * Start of the queried time range (ISO 8601) */ start: string; /** * End of the queried time range (ISO 8601) */ end: string; /** * Outcome stats of each project */ projects: Array<{ /** * ID of the project */ id: number; /** * Slug of the project */ slug: string; /** * Outcome counts of the project by data category */ stats: Array<{ /** * Data category of the counts, such as error */ category: string; /** * Quantity of each outcome, such as accepted or rate_limited */ outcomes: { [key: string]: number; }; /** * Totals of the requested fields, such as sum(quantity). Also has dropped, the quantity of the dropped outcomes, unless the outcome filter leaves them all out */ totals: { [key: string]: number; }; /** * Reason for the outcomes. Only present when grouped by reason */ reason?: string; }>; }>; }; export type OrganizationSummary = { /** * Features enabled for the organization */ features?: Array; /** * Server-wide options that the Sentry UI reads */ extraOptions?: { [key: string]: { [key: string]: unknown; }; }; /** * Scopes the requesting user has in the organization */ access?: Array; /** * Onboarding tasks the organization has completed or skipped */ onboardingTasks?: Array<{ /** * Onboarding task key, such as create_project */ task: string | null; /** * Task status: complete or skipped */ status: string; /** * When the task's completion was marked as seen, or null */ completionSeen: string | null; /** * When the task was completed or skipped */ dateCompleted: string; /** * Data recorded for the task. Most tasks record none, so it's often empty */ data: { /** * ID of the member whose invite completed the invite_member task */ invited_member_id?: number; /** * Platform of the first event, for the first_event task */ platform?: string | null; /** * Slug of the plugin enabled for the task */ plugin?: string; /** * Integration providers installed for the integrations task */ providers?: Array; }; }>; /** * Organization ID */ id: string; /** * Organization slug */ slug: string; /** * Organization status */ status: { /** * Status ID: active, pending_deletion, deletion_in_progress or relocation_pending_approval */ id: string; /** * Status label, such as active or pending deletion */ name: string; }; /** * Organization name, or its slug when it has no name */ name: string; /** * When the organization was created (ISO 8601) */ dateCreated: string; /** * Whether the organization is an early adopter */ isEarlyAdopter: boolean; /** * Whether members must use two-factor authentication */ require2FA: boolean; /** * Organization avatar */ avatar: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Organization and region URLs */ links: { /** * Base URL of the organization */ organizationUrl: string; /** * Base URL of the API for the organization's region */ regionUrl: string; }; /** * Whether SSO is configured for the organization */ hasAuthProvider: boolean; /** * Whether members can invite other members */ allowMemberInvite: boolean; /** * Whether members can create projects */ allowMemberProjectCreation: boolean; /** * Whether Sentry superusers can access the organization */ allowSuperuserAccess: boolean; }; export type OrganizationTraceMetaResponse = { /** * Number of uptime checks in the trace. Only present when `include_uptime=1` */ uptimeCount?: number; /** * Number of errors in the trace */ errorsCount: number; /** * Number of logs in the trace */ logsCount: number; /** * Number of metric samples in the trace, excluding metrics derived from spans */ metricsCount: number; /** * Number of performance issues in the trace */ performanceIssuesCount: number; /** * Number of spans in the trace */ spansCount: number; /** * Number of child spans of each transaction */ transactionChildCountMap: Array<{ /** * ID of the transaction. Null for spans that belong to no transaction */ 'transaction.event_id': string | null; /** * Number of child spans of the transaction */ 'count()': number; }>; /** * Number of spans in the trace for each span operation, keyed by `span.op` */ spansCountMap: { [key: string]: number; }; }; export type OrganizationTraceResponse = Array<{ /** * Description of the item: the span description, the issue title or the error message */ description: string; /** * ID of the item */ event_id: string; /** * ID of the project the item belongs to */ project_id: number; /** * Slug of the project the item belongs to */ project_slug: string; /** * Name of the transaction the item belongs to */ transaction: string; /** * Kind of item, always span */ event_type: 'span'; /** * Child items of the item, such as spans */ children: Array<{ /** * Description of the item: the span description, the issue title or the error message */ description: string; /** * ID of the item */ event_id: string; /** * ID of the project the item belongs to */ project_id: number; /** * Slug of the project the item belongs to */ project_slug: string; /** * Name of the transaction the item belongs to */ transaction: string; }>; /** * Errors linked to the item */ errors: Array<{ /** * Description of the item: the span description, the issue title or the error message */ description: string; /** * ID of the item */ event_id: string; /** * ID of the project the item belongs to */ project_id: number; /** * Slug of the project the item belongs to */ project_slug: string; /** * Name of the transaction the item belongs to */ transaction: string; /** * Kind of issue item: error or occurrence */ event_type: 'error' | 'occurrence'; /** * ID of the issue */ issue_id: number; /** * Level of the issue, such as error or warning */ level: string; /** * When the error or occurrence started, as a Unix timestamp in seconds */ start_timestamp: number; /** * When the occurrence ended, as a Unix timestamp in seconds. Only set for occurrences */ end_timestamp?: number; /** * Function or module where the issue occurs */ culprit: string | null; /** * Short ID of the issue, such as PROJECT-1A */ short_id: string | null; /** * Numeric issue type ID */ issue_type: number; }>; /** * Non-error issue occurrences, such as performance issues, linked to the item */ occurrences: Array<{ /** * Description of the item: the span description, the issue title or the error message */ description: string; /** * ID of the item */ event_id: string; /** * ID of the project the item belongs to */ project_id: number; /** * Slug of the project the item belongs to */ project_slug: string; /** * Name of the transaction the item belongs to */ transaction: string; /** * Kind of issue item: error or occurrence */ event_type: 'error' | 'occurrence'; /** * ID of the issue */ issue_id: number; /** * Level of the issue, such as error or warning */ level: string; /** * When the error or occurrence started, as a Unix timestamp in seconds */ start_timestamp: number; /** * When the occurrence ended, as a Unix timestamp in seconds. Only set for occurrences */ end_timestamp?: number; /** * Function or module where the issue occurs */ culprit: string | null; /** * Short ID of the issue, such as PROJECT-1A */ short_id: string | null; /** * Numeric issue type ID */ issue_type: number; }>; /** * Duration of the span in milliseconds */ duration: number; /** * When the span ended, as a Unix timestamp in seconds */ end_timestamp: number; /** * Measurements recorded on the span, keyed by measurements. */ measurements: { [key: string]: number; }; /** * Browser web vitals recorded on the span, keyed by browser.web_vital. */ browser_web_vital: { [key: string]: number; }; /** * Mobile app vitals recorded on the span, keyed by app.vitals. */ mobile_app_vital: { [key: string]: number; }; /** * Operation of the span, such as http.client or db */ op: string; /** * Name of the span */ name: string; /** * ID of the parent span. Null for root spans */ parent_span_id: string | null; /** * ID of the transaction profile linked to the span */ profile_id: string; /** * ID of the continuous profiling session linked to the span */ profiler_id: string; /** * Name of the SDK that sent the span */ sdk_name: string; /** * When the span started, as a Unix timestamp in seconds */ start_timestamp: number; /** * Whether the span is a transaction (segment) span */ is_transaction: boolean; /** * ID of the transaction event the span belongs to */ transaction_id: string; /** * Extra span attributes requested with additional_attributes, keyed by attribute name */ additional_attributes?: { [key: string]: string | number | number | boolean; }; } | { /** * Description of the item: the span description, the issue title or the error message */ description: string; /** * ID of the item */ event_id: string; /** * ID of the project the item belongs to */ project_id: number; /** * Slug of the project the item belongs to */ project_slug: string; /** * Name of the transaction the item belongs to */ transaction: string; /** * Kind of issue item: error or occurrence */ event_type: 'error' | 'occurrence'; /** * ID of the issue */ issue_id: number; /** * Level of the issue, such as error or warning */ level: string; /** * When the error or occurrence started, as a Unix timestamp in seconds */ start_timestamp: number; /** * When the occurrence ended, as a Unix timestamp in seconds. Only set for occurrences */ end_timestamp?: number; /** * Function or module where the issue occurs */ culprit: string | null; /** * Short ID of the issue, such as PROJECT-1A */ short_id: string | null; /** * Numeric issue type ID */ issue_type: number; } | { /** * Description of the item: the span description, the issue title or the error message */ description: string; /** * ID of the item */ event_id: string; /** * ID of the project the item belongs to */ project_id: number; /** * Slug of the project the item belongs to */ project_slug: string; /** * Name of the transaction the item belongs to */ transaction: string; /** * Kind of item, always uptime_check */ event_type: 'uptime_check'; /** * Child items of the item, such as spans */ children: Array<{ /** * Description of the item: the span description, the issue title or the error message */ description: string; /** * ID of the item */ event_id: string; /** * ID of the project the item belongs to */ project_id: number; /** * Slug of the project the item belongs to */ project_slug: string; /** * Name of the transaction the item belongs to */ transaction: string; }>; /** * Errors linked to the item */ errors: Array<{ /** * Description of the item: the span description, the issue title or the error message */ description: string; /** * ID of the item */ event_id: string; /** * ID of the project the item belongs to */ project_id: number; /** * Slug of the project the item belongs to */ project_slug: string; /** * Name of the transaction the item belongs to */ transaction: string; /** * Kind of issue item: error or occurrence */ event_type: 'error' | 'occurrence'; /** * ID of the issue */ issue_id: number; /** * Level of the issue, such as error or warning */ level: string; /** * When the error or occurrence started, as a Unix timestamp in seconds */ start_timestamp: number; /** * When the occurrence ended, as a Unix timestamp in seconds. Only set for occurrences */ end_timestamp?: number; /** * Function or module where the issue occurs */ culprit: string | null; /** * Short ID of the issue, such as PROJECT-1A */ short_id: string | null; /** * Numeric issue type ID */ issue_type: number; }>; /** * Non-error issue occurrences, such as performance issues, linked to the item */ occurrences: Array<{ /** * Description of the item: the span description, the issue title or the error message */ description: string; /** * ID of the item */ event_id: string; /** * ID of the project the item belongs to */ project_id: number; /** * Slug of the project the item belongs to */ project_slug: string; /** * Name of the transaction the item belongs to */ transaction: string; /** * Kind of issue item: error or occurrence */ event_type: 'error' | 'occurrence'; /** * ID of the issue */ issue_id: number; /** * Level of the issue, such as error or warning */ level: string; /** * When the error or occurrence started, as a Unix timestamp in seconds */ start_timestamp: number; /** * When the occurrence ended, as a Unix timestamp in seconds. Only set for occurrences */ end_timestamp?: number; /** * Function or module where the issue occurs */ culprit: string | null; /** * Short ID of the issue, such as PROJECT-1A */ short_id: string | null; /** * Numeric issue type ID */ issue_type: number; }>; /** * ID of the trace the uptime check belongs to */ transaction_id: string; /** * Operation of the uptime check, always uptime.request */ op: string; /** * When the uptime check started, as a Unix timestamp in seconds */ start_timestamp: number; /** * When the uptime check ended, as a Unix timestamp in seconds */ end_timestamp: number; /** * Duration of the uptime check in milliseconds */ duration: number; /** * URL the uptime check requested */ name: string; /** * Region the uptime check ran from */ region_name: string; /** * Extra uptime check attributes, keyed by attribute name */ additional_attributes: { /** * ID of the uptime result */ id?: string; /** * ID of the trace the uptime check belongs to */ trace?: string; /** * ID of the span the uptime checker made up for the check */ span_id?: string; /** * Environment of the uptime monitor */ environment?: string; /** * Unique ID of the uptime check */ guid?: string; /** * ID of the uptime subscription the check ran for */ subscription_id?: string; /** * ID of the uptime check */ check_id?: string; /** * Outcome of the check */ check_status?: 'success' | 'failure' | 'missed_window' | 'disallowed_by_robots'; /** * Slug of the region the check ran from */ region?: string; /** * When the check was scheduled to run, in microseconds */ scheduled_check_time_us?: number; /** * When the check ran, in microseconds */ actual_check_time_us?: number; /** * Duration of the check in microseconds */ check_duration_us?: number; /** * Kind of failure */ status_reason_type?: 'timeout' | 'dns_error' | 'failure' | 'tls_error' | 'connection_error' | 'redirect_error' | 'miss_produced' | 'miss_backfill' | 'assertion_compilation_error' | 'assertion_evaluation_error'; /** * Description of why the check failed */ status_reason_description?: string; /** * Assertion that failed, as JSON */ assertion_failure_data?: string; /** * HTTP method of the first request of the check */ method?: 'GET' | 'POST' | 'HEAD' | 'PUT' | 'DELETE' | 'PATCH' | 'OPTIONS'; /** * URL of the first request of the check, before redirects */ original_url?: string; /** * Position of the request in the redirect chain, starting at 0 */ request_sequence?: number; /** * HTTP method of the request */ request_type?: 'GET' | 'POST' | 'HEAD' | 'PUT' | 'DELETE' | 'PATCH' | 'OPTIONS'; /** * URL of the request */ request_url?: string; /** * HTTP status code of the response */ http_status_code?: number; /** * Size of the request body in bytes */ request_body_size_bytes?: number; /** * Size of the response body in bytes */ response_body_size_bytes?: number; /** * Duration of the request in microseconds */ request_duration_us?: number; /** * When the DNS lookup started, in microseconds */ dns_lookup_start_us?: number; /** * Duration of the DNS lookup in microseconds */ dns_lookup_duration_us?: number; /** * When the TCP connection started, in microseconds */ tcp_connection_start_us?: number; /** * Duration of the TCP connection in microseconds */ tcp_connection_duration_us?: number; /** * When the TLS handshake started, in microseconds */ tls_handshake_start_us?: number; /** * Duration of the TLS handshake in microseconds */ tls_handshake_duration_us?: number; /** * When the wait for the first response byte started, in microseconds */ time_to_first_byte_start_us?: number; /** * Time to the first response byte in microseconds */ time_to_first_byte_duration_us?: number; /** * When sending the request started, in microseconds */ send_request_start_us?: number; /** * Duration of sending the request in microseconds */ send_request_duration_us?: number; /** * When receiving the response started, in microseconds */ receive_response_start_us?: number; /** * Duration of receiving the response in microseconds */ receive_response_duration_us?: number; /** * Whether the check is part of an incident: 1 if it is, 0 if not */ incident_status?: number; }; }>; export type OrganizationUptimeStatsResponse = { [key: string]: Array>; }; export type OrganizationWithProjectsAndTeams = { /** * Features enabled for the organization */ features?: Array; /** * Server-wide options that the Sentry UI reads */ extraOptions?: { [key: string]: { [key: string]: unknown; }; }; /** * Scopes the requesting user has in the organization */ access?: Array; /** * Onboarding tasks the organization has completed or skipped */ onboardingTasks?: Array<{ /** * Onboarding task key, such as create_project */ task: string | null; /** * Task status: complete or skipped */ status: string; /** * When the task's completion was marked as seen, or null */ completionSeen: string | null; /** * When the task was completed or skipped */ dateCompleted: string; /** * Data recorded for the task. Most tasks record none, so it's often empty */ data: { /** * ID of the member whose invite completed the invite_member task */ invited_member_id?: number; /** * Platform of the first event, for the first_event task */ platform?: string | null; /** * Slug of the plugin enabled for the task */ plugin?: string; /** * Integration providers installed for the integrations task */ providers?: Array; }; }>; /** * Organization ID */ id: string; /** * Organization slug */ slug: string; /** * Organization status */ status: { /** * Status ID: active, pending_deletion, deletion_in_progress or relocation_pending_approval */ id: string; /** * Status label, such as active or pending deletion */ name: string; }; /** * Organization name, or its slug when it has no name */ name: string; /** * When the organization was created (ISO 8601) */ dateCreated: string; /** * Whether the organization is an early adopter */ isEarlyAdopter: boolean; /** * Whether members must use two-factor authentication */ require2FA: boolean; /** * Organization avatar */ avatar: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Organization and region URLs */ links: { /** * Base URL of the organization */ organizationUrl: string; /** * Base URL of the API for the organization's region */ regionUrl: string; }; /** * Whether SSO is configured for the organization */ hasAuthProvider: boolean; /** * Whether members can invite other members */ allowMemberInvite: boolean; /** * Whether members can create projects */ allowMemberProjectCreation: boolean; /** * Whether Sentry superusers can access the organization */ allowSuperuserAccess: boolean; /** * Deprecated, use orgRole */ role?: string; /** * The requesting user's role in the organization */ orgRole?: string; /** * Sample rate of the organization's plan, from 0 to 1 */ planSampleRate?: number; /** * Sample rate dynamic sampling aims for, from 0 to 1 */ desiredSampleRate?: number; /** * Experiment assignments for the organization, mapping each experiment name to active or control */ experiments: { [key: string]: string; }; /** * Whether this is the default organization of a single-organization install */ isDefault: boolean; /** * Role that new members get by default */ defaultRole: string; /** * Organization roles available in the organization */ orgRoleList: Array<{ /** * Role ID, such as member or admin */ id: string; /** * Display name of the role */ name: string; /** * Description of what the role can do */ desc: string; /** * Scopes the role grants in this organization */ scopes: Array; /** * Deprecated alias of isAllowed */ allowed: boolean; /** * Whether the requesting user can assign this role */ isAllowed: boolean; /** * Whether the role is retired and shouldn't be assigned to more members */ isRetired: boolean; /** * Whether members with this role can have team-level roles */ isTeamRolesAllowed: boolean; /** * Deprecated alias of isGlobal */ is_global: boolean; /** * Whether the role gives access to all teams and projects in the organization */ isGlobal: boolean; /** * ID of the lowest team role that members with this organization role hold on every team */ minimumTeamRole: string; }>; /** * Team roles available in the organization */ teamRoleList: Array<{ /** * Role ID, such as member or admin */ id: string; /** * Display name of the role */ name: string; /** * Description of what the role can do */ desc: string; /** * Scopes the role grants in this organization */ scopes: Array; /** * Deprecated alias of isAllowed */ allowed: boolean; /** * Whether the requesting user can assign this role */ isAllowed: boolean; /** * Whether the role is retired and shouldn't be assigned to more members */ isRetired: boolean; /** * Whether members with this role can have team-level roles */ isTeamRolesAllowed: boolean; /** * ID of the organization role whose members hold at least this team role on every team, or null */ isMinimumRoleFor: string | null; }>; /** * Whether members can freely join any team */ openMembership: boolean; /** * Whether limited details of issues can be shared with anonymous users */ allowSharedIssues: boolean; /** * Whether enhanced privacy controls limit personally identifiable information (PII) and source code in things like notifications */ enhancedPrivacy: boolean; /** * Whether server-side data scrubbing is required for all projects */ dataScrubber: boolean; /** * Whether the default scrubbers apply to all projects, to keep things like passwords and credit cards from being stored */ dataScrubberDefaults: boolean; /** * Additional field names that data scrubbing matches in all projects */ sensitiveFields: Array; /** * Field names that data scrubbers ignore in all projects */ safeFields: Array; /** * How many native crash reports to store per issue; 0 is disabled and -1 is unlimited */ storeCrashReports: number; /** * Role required to download event attachments, such as native crash reports or log files */ attachmentsRole: string; /** * Role required to download debug information files, ProGuard mappings and source maps */ debugFilesRole: string; /** * Whether members can delete events, through the event:admin scope */ eventsMemberAdmin: boolean; /** * Whether members can create, edit and delete alert rules, through the alerts:write scope */ alertsMemberWrite: boolean; /** * Whether IP addresses are kept from being stored for new events in all projects */ scrubIPAddresses: boolean; /** * Whether Sentry scrapes missing JavaScript source context when possible */ scrapeJavaScript: boolean; /** * Whether users can request to join the organization */ allowJoinRequests: boolean; /** * Advanced data scrubbing rules of the organization as a JSON string, or null */ relayPiiConfig: string | null; /** * Relay base URL used when displaying Client Key DSNs, or null */ relayDsnEndpoint: string | null; /** * Local Relays registered for the organization */ trustedRelays: Array<{ /** * Name of the Relay */ name?: string; /** * Description of the Relay */ description?: string; /** * Public key of the Relay */ publicKey?: string; /** * When the Relay was added */ created?: string; /** * When the Relay was added or its name or description last changed */ lastModified?: string; }>; /** * Number of pending requests to join teams in the organization */ pendingAccessRequests: number; /** * Whether AI features are hidden for the organization */ hideAiFeatures: boolean; /** * Whether the organization agreed to let Sentry use its data in aggregate */ aggregatedDataConsent: boolean; /** * Whether dynamic sampling keeps less than all events, for the organization or any of its projects */ isDynamicallySampled: boolean; /** * Whether the Slack integration posts replies in threads for issue alert notifications */ issueAlertsThreadFlag: boolean; /** * Whether the Slack integration posts replies in threads for metric alert notifications */ metricAlertsThreadFlag: boolean; /** * Whether the requesting user must sign in with SSO to access the organization */ requiresSso: boolean; /** * Default Autofix automation tuning for new projects */ defaultAutofixAutomationTuning: string; /** * Default issue scanner automation for new projects; on seat-based Seer plans, new projects always have it on */ defaultSeerScannerAutomation: boolean; /** * Whether Seer coding is enabled for the organization */ enableSeerCoding: boolean; /** * Coding agent that automated Autofix runs on new projects hand off to, or seer; applies to seat-based Seer plans */ defaultCodingAgent: string; /** * Integration ID of the default coding agent, or null */ defaultCodingAgentIntegrationId: string | null; /** * Step where automated Autofix runs on new projects stop by default */ defaultAutomatedRunStoppingPoint: string; /** * Whether code review is turned on for GitHub repositories when they're added */ autoEnableCodeReview: boolean; /** * Whether automated Autofix runs on new projects open pull requests by default */ autoOpenPrs: boolean; /** * Code review triggers that GitHub repositories get when they're added */ defaultCodeReviewTriggers: Array; /** * Active teams of the organization */ teams: Array<{ /** * Team ID */ id: string; /** * Team slug, unique within the organization */ slug: string; /** * Display name of the team */ name: string; /** * When the team was created (ISO 8601) */ dateCreated: string | null; /** * Whether the requesting user is a member of the team */ isMember: boolean; /** * The requesting user's role in the team */ teamRole: string | null; /** * Team flags. idp:provisioned is true when the team is managed by an identity provider through SCIM */ flags: { [key: string]: boolean; }; /** * Scopes the requesting user has on the team through their team role. Empty if the user has no access */ access: Array; /** * Whether the requesting user can access the team, as a member, through open membership or through an organization role with access to all teams */ hasAccess: boolean; /** * Whether the requesting user has a pending request to join the team */ isPending: boolean; /** * Number of members in the team */ memberCount: number; /** * Team avatar */ avatar: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Teams in external providers, such as Slack or GitHub, that are linked to this team */ externalTeams?: Array<{ /** * ID of the user or team in the provider */ externalId?: string; /** * ID of the Sentry user. Only set for user mappings */ userId?: string; /** * ID of the Sentry team. Only set for team mappings */ teamId?: string; /** * ID of the external actor mapping */ id: string; /** * Provider of the external actor, such as github or slack */ provider: string; /** * Name of the user or team in the provider, such as @octocat */ externalName: string; /** * ID of the integration the mapping belongs to */ integrationId: string; }>; /** * Organization the team belongs to */ organization?: { /** * Features enabled for the organization */ features?: Array; /** * Server-wide options that the Sentry UI reads */ extraOptions?: { [key: string]: { [key: string]: unknown; }; }; /** * Scopes the requesting user has in the organization */ access?: Array; /** * Onboarding tasks the organization has completed or skipped */ onboardingTasks?: Array<{ /** * Onboarding task key, such as create_project */ task: string | null; /** * Task status: complete or skipped */ status: string; /** * When the task's completion was marked as seen, or null */ completionSeen: string | null; /** * When the task was completed or skipped */ dateCompleted: string; /** * Data recorded for the task. Most tasks record none, so it's often empty */ data: { /** * ID of the member whose invite completed the invite_member task */ invited_member_id?: number; /** * Platform of the first event, for the first_event task */ platform?: string | null; /** * Slug of the plugin enabled for the task */ plugin?: string; /** * Integration providers installed for the integrations task */ providers?: Array; }; }>; /** * Organization ID */ id: string; /** * Organization slug */ slug: string; /** * Organization status */ status: { /** * Status ID: active, pending_deletion, deletion_in_progress or relocation_pending_approval */ id: string; /** * Status label, such as active or pending deletion */ name: string; }; /** * Organization name, or its slug when it has no name */ name: string; /** * When the organization was created (ISO 8601) */ dateCreated: string; /** * Whether the organization is an early adopter */ isEarlyAdopter: boolean; /** * Whether members must use two-factor authentication */ require2FA: boolean; /** * Organization avatar */ avatar: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Organization and region URLs */ links: { /** * Base URL of the organization */ organizationUrl: string; /** * Base URL of the API for the organization's region */ regionUrl: string; }; /** * Whether SSO is configured for the organization */ hasAuthProvider: boolean; /** * Whether members can invite other members */ allowMemberInvite: boolean; /** * Whether members can create projects */ allowMemberProjectCreation: boolean; /** * Whether Sentry superusers can access the organization */ allowSuperuserAccess: boolean; }; /** * Projects the team has access to */ projects?: Array<{ /** * Counts of non-transaction events per interval over the requested stats period, as [timestamp, count] pairs. Only included when a stats period is requested */ stats?: Array> | { [key: string]: number; }; /** * Counts of transactions per interval over the requested stats period, as [timestamp, count] pairs. Only included when transaction stats are requested */ transactionStats?: Array>; /** * Crash-free session rates for the current and previous stats period. Only included when session stats are requested */ sessionStats?: { /** * Crash-free rate in the current period, as a percentage. Null when there's no session data */ currentCrashFreeRate: number | null; /** * Crash-free rate in the previous period, as a percentage. Null when there's no session data */ previousCrashFreeRate: number | null; /** * Whether the project has release health (session) data */ hasHealthData: boolean; }; /** * ID of the project */ id: string; /** * Slug of the project */ slug: string; /** * Name of the project */ name: string; /** * Platform of the project */ platform: string | null; /** * When the project was created (ISO 8601) */ dateCreated: string; /** * Whether the requesting user bookmarked the project */ isBookmarked: boolean; /** * Whether the requesting user is a member of a team with access to the project */ isMember: boolean; /** * Features enabled for the project */ features: Array; /** * When the project received its first event (ISO 8601) */ firstEvent: string | null; /** * Whether the project has sent transactions */ firstTransactionEvent: boolean; /** * Scopes the requesting user has on the project through team membership and organization role */ access: Array; /** * Whether the requesting user has access to the project */ hasAccess: boolean; /** * Whether the project has sent user feedback */ hasFeedbacks: boolean; /** * Whether the project has sent feature flags */ hasFlags: boolean; /** * Whether the project has sent an event with a minified stack trace */ hasMinifiedStackTrace: boolean; /** * Whether the project has cron monitors */ hasMonitors: boolean; /** * Whether the project has sent user feedback from the user feedback widget */ hasNewFeedbacks: boolean; /** * Whether the project has sent profiles */ hasProfiles: boolean; /** * Whether the project has sent replays */ hasReplays: boolean; /** * Whether the project has sent sessions */ hasSessions: boolean; /** * Whether the project has sent HTTP request spans used by Insights */ hasInsightsHttp: boolean; /** * Whether the project has sent database spans used by Insights */ hasInsightsDb: boolean; /** * Whether the project has sent asset spans used by Insights */ hasInsightsAssets: boolean; /** * Whether the project has sent app start spans used by Insights */ hasInsightsAppStart: boolean; /** * Whether the project has sent screen load spans used by Insights */ hasInsightsScreenLoad: boolean; /** * Whether the project has sent web vitals spans used by Insights */ hasInsightsVitals: boolean; /** * Whether the project has sent cache spans used by Insights */ hasInsightsCaches: boolean; /** * Whether the project has sent queue spans used by Insights */ hasInsightsQueues: boolean; /** * Whether the project has sent AI agent spans used by Insights */ hasInsightsAgentMonitoring: boolean; /** * Whether the project has sent MCP spans used by Insights */ hasInsightsMCP: boolean; /** * Whether the project has sent logs. Always true outside sentry.io */ hasLogs: boolean; /** * Whether the project has sent trace metrics. Always true outside sentry.io */ hasTraceMetrics: boolean; /** * Whether this is the Sentry install's own internal project */ isInternal: boolean; /** * Whether the project is public */ isPublic: boolean; /** * Avatar of the project. Always a letter avatar */ avatar: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Hex color code for the project, derived from its slug unless set explicitly */ color: string; /** * Status of the project: active, deleted, or unknown */ status: string; }>; }>; /** * Active projects of the organization */ projects: Array<{ /** * Latest deploy for each environment, keyed by environment name, with its release version and finish time. Omitted when collapsed */ latestDeploys?: { [key: string]: { [key: string]: string; }; } | null; /** * Requested project options, keyed by option name. Only included when options are requested */ options?: { [key: string]: unknown; }; /** * Counts of non-transaction events per interval over the requested stats period, as [timestamp, count] pairs. Only included when a stats period is requested */ stats?: Array> | { [key: string]: number; }; /** * Counts of transactions per interval over the requested stats period, as [timestamp, count] pairs. Only included when transaction stats are requested */ transactionStats?: Array>; /** * Crash-free session rates for the current and previous stats period. Only included when session stats are requested */ sessionStats?: { /** * Crash-free rate in the current period, as a percentage. Null when there's no session data */ currentCrashFreeRate: number | null; /** * Crash-free rate in the previous period, as a percentage. Null when there's no session data */ previousCrashFreeRate: number | null; /** * Whether the project has release health (session) data */ hasHealthData: boolean; }; /** * ID of the project */ id: string; /** * Slug of the project */ slug: string; /** * Name of the project */ name: string; /** * Platform of the project */ platform: string | null; /** * When the project was created (ISO 8601) */ dateCreated: string; /** * Whether the requesting user bookmarked the project */ isBookmarked: boolean; /** * Whether the requesting user is a member of a team with access to the project */ isMember: boolean; /** * Features enabled for the project */ features: Array; /** * When the project received its first event (ISO 8601) */ firstEvent: string | null; /** * Whether the project has sent transactions */ firstTransactionEvent: boolean; /** * Scopes the requesting user has on the project through team membership and organization role */ access: Array; /** * Whether the requesting user has access to the project */ hasAccess: boolean; /** * Whether the project has sent user feedback */ hasFeedbacks: boolean; /** * Whether the project has sent feature flags */ hasFlags: boolean; /** * Whether the project has sent an event with a minified stack trace */ hasMinifiedStackTrace: boolean; /** * Whether the project has cron monitors */ hasMonitors: boolean; /** * Whether the project has sent user feedback from the user feedback widget */ hasNewFeedbacks: boolean; /** * Whether the project has sent profiles */ hasProfiles: boolean; /** * Whether the project has sent replays */ hasReplays: boolean; /** * Whether the project has sent sessions */ hasSessions: boolean; /** * Whether the project has sent HTTP request spans used by Insights */ hasInsightsHttp: boolean; /** * Whether the project has sent database spans used by Insights */ hasInsightsDb: boolean; /** * Whether the project has sent asset spans used by Insights */ hasInsightsAssets: boolean; /** * Whether the project has sent app start spans used by Insights */ hasInsightsAppStart: boolean; /** * Whether the project has sent screen load spans used by Insights */ hasInsightsScreenLoad: boolean; /** * Whether the project has sent web vitals spans used by Insights */ hasInsightsVitals: boolean; /** * Whether the project has sent cache spans used by Insights */ hasInsightsCaches: boolean; /** * Whether the project has sent queue spans used by Insights */ hasInsightsQueues: boolean; /** * Whether the project has sent AI agent spans used by Insights */ hasInsightsAgentMonitoring: boolean; /** * Whether the project has sent MCP spans used by Insights */ hasInsightsMCP: boolean; /** * Whether the project has sent logs. Always true outside sentry.io */ hasLogs: boolean; /** * Whether the project has sent trace metrics. Always true outside sentry.io */ hasTraceMetrics: boolean; /** * First team with access to the project; use teams instead */ team: { /** * ID of the team */ id: string; /** * Name of the team */ name: string; /** * Slug of the team */ slug: string; } | null; /** * Teams with access to the project */ teams: Array<{ /** * ID of the team */ id: string; /** * Name of the team */ name: string; /** * Slug of the team */ slug: string; }>; /** * Platforms seen in the project's events */ platforms: Array; /** * Whether the project has received user reports */ hasUserReports: boolean; /** * Environments seen in the project's events */ environments: Array; /** * Latest release of the project */ latestRelease: { /** * Version of the release */ version: string; } | null; }>; }; export type OutcomesResponse = { /** * Start of the queried time range (ISO 8601) */ start: string; /** * End of the queried time range (ISO 8601) */ end: string; /** * Start of each interval in the series (ISO 8601) */ intervals?: Array; /** * Result for each group */ groups: Array<{ /** * Values of the group-by columns of the group */ by: { [key: string]: string | number; }; /** * Value of each requested field over the whole time range, by field */ totals: { [key: string]: number; }; /** * Value of each requested field for each interval, by field */ series?: { [key: string]: Array; }; }>; }; export type OutgoingNotificationAction = { /** * ID of the notification action */ id: number; /** * ID of the organization */ organizationId: number; /** * ID of the integration that sends the notification. Null when none is used */ integrationId: number | null; /** * ID of the Sentry app that receives the notification. Null when none is used */ sentryAppId: number | null; /** * IDs of the projects the action applies to */ projects: Array; /** * Service that sends the notification, such as email, slack or pagerduty */ serviceType: string | null; /** * What triggers the action, such as audit-log or spike-protection */ triggerType: string; /** * Kind of target: specific, user, team, sentry_app or issue_owners */ targetType: string | null; /** * ID of the target in the service, such as a Slack channel ID */ targetIdentifier: string | null; /** * Name of the target, such as #alerts */ targetDisplay: string | null; }; export type PlatformExternalIssueResponse = { /** * ID of the external issue link */ id: string; /** * ID of the Sentry issue */ issueId: string; /** * Slug of the custom integration that created the external issue */ serviceType: string; /** * Display name of the external issue, such as ABC-123 */ displayName: string; /** * URL of the external issue */ webUrl: string; }; export type PreprodArtifactAssembleResponse = { /** * State of the build file: not_found if chunks are missing or none were sent, created once the build is queued for assembly */ state: string; /** * Checksums of the chunks the server doesn't have yet */ missingChunks: Array; /** * URL of the build in Sentry. Only set when the state is created */ artifactUrl?: string; }; export type PreviousReleaseWithCommitsResponse = { /** * Version control reference, such as a commit SHA or tag */ ref?: string | null; /** * Release URL */ url?: string | null; /** * When the release went live (ISO 8601) */ dateReleased?: string | null; /** * When the release was created (ISO 8601) */ dateCreated?: string | null; /** * When the release started (ISO 8601) */ dateStarted?: string | null; /** * Release owner */ owner?: { /** * SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access */ identities?: Array<{ /** * SSO identity ID */ id: string; /** * User's identifier at the auth provider */ name: string; /** * Organization the auth provider belongs to */ organization: { /** * Organization slug */ slug: string; /** * Organization name */ name: string; }; /** * Auth provider of the identity */ provider: { /** * Auth provider key, such as google or saml2 */ id: string; /** * Display name of the auth provider */ name: string; }; /** * When the identity was last verified by signing in through the auth provider */ dateVerified: string; /** * When the identity was last synced from the auth provider */ dateSynced: string; }>; /** * User avatar */ avatar?: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Two-factor authenticators of the user, without backup methods such as recovery codes */ authenticators?: Array<{ /** * Authenticator ID */ id: string; /** * Authenticator type, such as totp, sms, u2f or recovery */ type: string; /** * Display name of the authenticator type */ name: string; /** * When the authenticator was added */ dateCreated: string; /** * When the authenticator was last used, or null */ dateUsed: string | null; }>; /** * Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization */ canReset2fa?: boolean; /** * User ID */ id: string; /** * Display name: the user's name, or their email or username if no name is set */ name: string; /** * Username */ username: string; /** * Primary email address */ email: string; /** * Gravatar URL for the primary email address */ avatarUrl: string; /** * Whether the account is active */ isActive: boolean; /** * Whether the account is suspended. Suspended users can't sign in */ isSuspended: boolean; /** * Whether the user has a password set */ hasPasswordAuth: boolean; /** * Whether the account is managed, which stops the user from changing their username, password and similar details */ isManaged: boolean; /** * When the account was created */ dateJoined: string; /** * When the user last signed in, or null */ lastLogin: string | null; /** * Whether the user has two-factor authentication enabled */ has2fa: boolean; /** * When the user was last active, or null */ lastActive: string | null; /** * Whether the user is a superuser */ isSuperuser: boolean; /** * Whether the user has staff status */ isStaff: boolean; /** * Deprecated. Always an empty object */ experiments: { [key: string]: string; }; /** * Email addresses of the user. Only included for the requesting user or superusers; empty otherwise */ emails: Array<{ /** * Email ID */ id: string; /** * Email address */ email: string; /** * Whether the email address is verified */ is_verified: boolean; }>; } | null; /** * Most recent commit in the release */ lastCommit?: { /** * Commit SHA */ id: string; /** * Commit message */ message: string | null; /** * When the commit was made (ISO 8601) */ dateCreated: string; /** * Pull request the commit belongs to */ pullRequest: { /** * Number or key of the pull request in the provider */ id: string; /** * Title of the pull request */ title: string | null; /** * Description of the pull request */ message: string | null; /** * When Sentry recorded the pull request (ISO 8601) */ dateCreated: string; /** * When the pull request was merged (ISO 8601). Null when it isn't merged */ mergedAt: string | null; /** * State of the pull request: merged, open, closed, draft or unknown. Null when not known */ status: 'merged' | 'open' | 'closed' | 'draft' | 'unknown' | null; /** * Repository of the pull request */ repository: { /** * URL of the repository */ url?: string | null; /** * Provider of the repository, with its id and name */ provider?: { [key: string]: string; }; /** * Status of the repository */ status?: 'active' | 'disabled' | 'pending_deletion' | 'deletion_in_progress'; /** * ID of the repository's integration. Null for repositories added without an integration */ integrationId?: string | null; /** * Identifier of the repository in the provider, such as owner/name */ externalSlug?: string | null; /** * ID of the repository in the provider */ externalId?: string | null; /** * Settings of the repository. Only set when expand includes settings. Null when it has none */ settings?: { /** * Whether AI code review is on for the repository */ enabledCodeReview: boolean; /** * Pull request events that start a code review: on_new_commit or on_ready_for_review */ codeReviewTriggers: Array; } | null; /** * ID of the repository */ id: string; /** * Name of the repository, such as owner/name */ name: string; /** * When the repository was added to Sentry (ISO 8601) */ dateCreated: string; }; /** * Author of the pull request, or an empty object when it has none */ author: { /** * SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access */ identities?: Array<{ /** * SSO identity ID */ id: string; /** * User's identifier at the auth provider */ name: string; /** * Organization the auth provider belongs to */ organization: { /** * Organization slug */ slug: string; /** * Organization name */ name: string; }; /** * Auth provider of the identity */ provider: { /** * Auth provider key, such as google or saml2 */ id: string; /** * Display name of the auth provider */ name: string; }; /** * When the identity was last verified by signing in through the auth provider */ dateVerified: string; /** * When the identity was last synced from the auth provider */ dateSynced: string; }>; /** * User avatar */ avatar?: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Two-factor authenticators of the user, without backup methods such as recovery codes */ authenticators?: Array<{ /** * Authenticator ID */ id: string; /** * Authenticator type, such as totp, sms, u2f or recovery */ type: string; /** * Display name of the authenticator type */ name: string; /** * When the authenticator was added */ dateCreated: string; /** * When the authenticator was last used, or null */ dateUsed: string | null; }>; /** * Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization */ canReset2fa?: boolean; /** * User ID */ id: string; /** * Display name: the user's name, or their email or username if no name is set */ name: string; /** * Username */ username: string; /** * Primary email address */ email: string; /** * Gravatar URL for the primary email address */ avatarUrl: string; /** * Whether the account is active */ isActive: boolean; /** * Whether the account is suspended. Suspended users can't sign in */ isSuspended: boolean; /** * Whether the user has a password set */ hasPasswordAuth: boolean; /** * Whether the account is managed, which stops the user from changing their username, password and similar details */ isManaged: boolean; /** * When the account was created */ dateJoined: string; /** * When the user last signed in, or null */ lastLogin: string | null; /** * Whether the user has two-factor authentication enabled */ has2fa: boolean; /** * When the user was last active, or null */ lastActive: string | null; /** * Whether the user is a superuser */ isSuperuser: boolean; /** * Whether the user has staff status */ isStaff: boolean; /** * Deprecated. Always an empty object */ experiments: { [key: string]: string; }; /** * Email addresses of the user. Only included for the requesting user or superusers; empty otherwise */ emails: Array<{ /** * Email ID */ id: string; /** * Email address */ email: string; /** * Whether the email address is verified */ is_verified: boolean; }>; } | { /** * Commit author name */ name: string | null; /** * Commit author email */ email: string; } | { [key: string]: unknown; }; /** * URL of the pull request in the provider, or null when the provider can't build one */ externalUrl: string | null; } | null; /** * How the commit was found as a suspect commit: via commit in release or via SCM integration. Empty for other commits */ suspectCommitType: string; /** * Repository the commit belongs to */ repository?: { /** * URL of the repository */ url?: string | null; /** * Provider of the repository, with its id and name */ provider?: { [key: string]: string; }; /** * Status of the repository */ status?: 'active' | 'disabled' | 'pending_deletion' | 'deletion_in_progress'; /** * ID of the repository's integration. Null for repositories added without an integration */ integrationId?: string | null; /** * Identifier of the repository in the provider, such as owner/name */ externalSlug?: string | null; /** * ID of the repository in the provider */ externalId?: string | null; /** * Settings of the repository. Only set when expand includes settings. Null when it has none */ settings?: { /** * Whether AI code review is on for the repository */ enabledCodeReview: boolean; /** * Pull request events that start a code review: on_new_commit or on_ready_for_review */ codeReviewTriggers: Array; } | null; /** * ID of the repository */ id: string; /** * Name of the repository, such as owner/name */ name: string; /** * When the repository was added to Sentry (ISO 8601) */ dateCreated: string; }; /** * Author of the commit: a Sentry user when the email matches one, otherwise the name and email from the commit */ author?: { /** * SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access */ identities?: Array<{ /** * SSO identity ID */ id: string; /** * User's identifier at the auth provider */ name: string; /** * Organization the auth provider belongs to */ organization: { /** * Organization slug */ slug: string; /** * Organization name */ name: string; }; /** * Auth provider of the identity */ provider: { /** * Auth provider key, such as google or saml2 */ id: string; /** * Display name of the auth provider */ name: string; }; /** * When the identity was last verified by signing in through the auth provider */ dateVerified: string; /** * When the identity was last synced from the auth provider */ dateSynced: string; }>; /** * User avatar */ avatar?: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Two-factor authenticators of the user, without backup methods such as recovery codes */ authenticators?: Array<{ /** * Authenticator ID */ id: string; /** * Authenticator type, such as totp, sms, u2f or recovery */ type: string; /** * Display name of the authenticator type */ name: string; /** * When the authenticator was added */ dateCreated: string; /** * When the authenticator was last used, or null */ dateUsed: string | null; }>; /** * Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization */ canReset2fa?: boolean; /** * User ID */ id: string; /** * Display name: the user's name, or their email or username if no name is set */ name: string; /** * Username */ username: string; /** * Primary email address */ email: string; /** * Gravatar URL for the primary email address */ avatarUrl: string; /** * Whether the account is active */ isActive: boolean; /** * Whether the account is suspended. Suspended users can't sign in */ isSuspended: boolean; /** * Whether the user has a password set */ hasPasswordAuth: boolean; /** * Whether the account is managed, which stops the user from changing their username, password and similar details */ isManaged: boolean; /** * When the account was created */ dateJoined: string; /** * When the user last signed in, or null */ lastLogin: string | null; /** * Whether the user has two-factor authentication enabled */ has2fa: boolean; /** * When the user was last active, or null */ lastActive: string | null; /** * Whether the user is a superuser */ isSuperuser: boolean; /** * Whether the user has staff status */ isStaff: boolean; /** * Deprecated. Always an empty object */ experiments: { [key: string]: string; }; /** * Email addresses of the user. Only included for the requesting user or superusers; empty otherwise */ emails: Array<{ /** * Email ID */ id: string; /** * Email address */ email: string; /** * Whether the email address is verified */ is_verified: boolean; }>; } | { /** * Commit author name */ name: string | null; /** * Commit author email */ email: string; } | { [key: string]: unknown; }; } | null; /** * Most recent deploy of the release */ lastDeploy?: { /** * When the deploy started (ISO 8601) */ dateStarted?: string | null; /** * URL of the deploy */ url?: string | null; /** * ID of the deploy */ id: string; /** * Environment the release was deployed to */ environment: string; /** * When the deploy finished (ISO 8601) */ dateFinished: string; /** * Name of the deploy */ name: string | null; } | null; /** * When the release received its first event (ISO 8601) */ firstEvent?: string | null; /** * When the release received its most recent event (ISO 8601) */ lastEvent?: string | null; /** * Session bounds and neighboring release versions in the current project, when a project is requested */ currentProjectMeta?: { /** * Start of the release's sessions in the project (ISO 8601) */ sessionsLowerBound?: string | null; /** * End of the release's sessions in the project (ISO 8601) */ sessionsUpperBound?: string | null; /** * Version of the next release in the project */ nextReleaseVersion?: string | null; /** * Version of the previous release in the project */ prevReleaseVersion?: string | null; /** * Version of the first release in the project */ firstReleaseVersion?: string | null; /** * Version of the latest release in the project */ lastReleaseVersion?: string | null; } | null; /** * User agent of the client that created the release */ userAgent?: string | null; /** * Adoption stage of the release in each project, keyed by project slug */ adoptionStages?: { [key: string]: { /** * Adoption stage of the release */ stage: 'adopted' | 'low_adoption' | 'replaced'; /** * When the release was adopted (ISO 8601) */ adopted: string | null; /** * When the release stopped being adopted (ISO 8601) */ unadopted: string | null; }; } | null; /** * Release ID */ id: number; /** * Version of the release */ version: string; /** * Number of new issues first seen in the release */ newGroups: number; /** * Release status */ status: 'open' | 'archived'; /** * Shortened release version */ shortVersion: string; /** * Parsed version information */ versionInfo: { /** * Human-readable version, such as 1.0.0 (123) */ description?: string; /** * Package name parsed from the release version, such as com.example.app */ package: string | null; /** * Parsed version: the raw string, plus major, minor, patch, pre, buildCode and components when it's a semantic version */ version: { /** * Major version */ major?: number; /** * Minor version */ minor?: number; /** * Patch version */ patch?: number; /** * Pre-release identifier, such as rc1 */ pre?: string | null; /** * Build code, such as 123 */ buildCode?: string | null; /** * Number of version components given */ components?: number; /** * Version string the release was created with */ raw: string; }; /** * Build hash parsed from the release version */ buildHash: string | null; } | null; /** * Extra data stored on the release */ data: { [key: string]: unknown; }; /** * Number of commits in the release */ commitCount: number; /** * Number of deploys of the release */ deployCount: number; /** * Authors of the release's commits */ authors: Array<{ /** * SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access */ identities?: Array<{ /** * SSO identity ID */ id: string; /** * User's identifier at the auth provider */ name: string; /** * Organization the auth provider belongs to */ organization: { /** * Organization slug */ slug: string; /** * Organization name */ name: string; }; /** * Auth provider of the identity */ provider: { /** * Auth provider key, such as google or saml2 */ id: string; /** * Display name of the auth provider */ name: string; }; /** * When the identity was last verified by signing in through the auth provider */ dateVerified: string; /** * When the identity was last synced from the auth provider */ dateSynced: string; }>; /** * User avatar */ avatar?: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Two-factor authenticators of the user, without backup methods such as recovery codes */ authenticators?: Array<{ /** * Authenticator ID */ id: string; /** * Authenticator type, such as totp, sms, u2f or recovery */ type: string; /** * Display name of the authenticator type */ name: string; /** * When the authenticator was added */ dateCreated: string; /** * When the authenticator was last used, or null */ dateUsed: string | null; }>; /** * Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization */ canReset2fa?: boolean; /** * User ID */ id: string; /** * Display name: the user's name, or their email or username if no name is set */ name: string; /** * Username */ username: string; /** * Primary email address */ email: string; /** * Gravatar URL for the primary email address */ avatarUrl: string; /** * Whether the account is active */ isActive: boolean; /** * Whether the account is suspended. Suspended users can't sign in */ isSuspended: boolean; /** * Whether the user has a password set */ hasPasswordAuth: boolean; /** * Whether the account is managed, which stops the user from changing their username, password and similar details */ isManaged: boolean; /** * When the account was created */ dateJoined: string; /** * When the user last signed in, or null */ lastLogin: string | null; /** * Whether the user has two-factor authentication enabled */ has2fa: boolean; /** * When the user was last active, or null */ lastActive: string | null; /** * Whether the user is a superuser */ isSuperuser: boolean; /** * Whether the user has staff status */ isStaff: boolean; /** * Deprecated. Always an empty object */ experiments: { [key: string]: string; }; /** * Email addresses of the user. Only included for the requesting user or superusers; empty otherwise */ emails: Array<{ /** * Email ID */ id: string; /** * Email address */ email: string; /** * Whether the email address is verified */ is_verified: boolean; }>; } | { /** * Commit author name */ name: string | null; /** * Commit author email */ email: string; }>; /** * Projects in the release */ projects: Array<{ /** * Release health data for the project. Only included when health data is requested */ healthData?: { /** * Median session duration in seconds */ durationP50?: number | null; /** * 90th percentile session duration in seconds */ durationP90?: number | null; /** * Percentage of users who didn't experience a crash */ crashFreeUsers?: number | null; /** * Percentage of sessions that didn't crash */ crashFreeSessions?: number | null; /** * Total number of users in the release */ totalUsers?: number | null; /** * Number of users in the release over the last 24 hours */ totalUsers24h?: number | null; /** * Number of users in the project over the last 24 hours */ totalProjectUsers24h?: number | null; /** * Total number of sessions in the release */ totalSessions?: number | null; /** * Number of sessions in the release over the last 24 hours */ totalSessions24h?: number | null; /** * Number of sessions in the project over the last 24 hours */ totalProjectSessions24h?: number | null; /** * Percentage of the project's users over the last 24 hours that were on the release */ adoption?: number | null; /** * Percentage of the project's sessions over the last 24 hours that were on the release */ sessionsAdoption?: number | null; /** * Number of crashed sessions */ sessionsCrashed: number; /** * Number of sessions with errors */ sessionsErrored: number; /** * Whether the release has session data */ hasHealthData: boolean; /** * Session or user counts over time, keyed by stats period */ stats: { [key: string]: Array>; }; } | null; /** * When the release was released in the project (ISO 8601) */ dateReleased?: string | null; /** * When the release was created (ISO 8601) */ dateCreated?: string | null; /** * When work on the release started (ISO 8601) */ dateStarted?: string | null; /** * ID of the project */ id: number; /** * Slug of the project */ slug: string; /** * Name of the project */ name: string; /** * Platform of the project */ platform: string | null; /** * Platforms of the project */ platforms: Array | null; /** * Whether the release has session data in the project */ hasHealthData: boolean; /** * Number of new issues first seen in the release in the project */ newGroups: number; }>; } | { [key: string]: unknown; }; export type ProjectAdmin = { /** * Enables starring the project within the projects tab. Can be updated with **`project:read`** permission. */ isBookmarked?: boolean; /** * How aggressively Seer runs Autofix on new issues. Can be updated with **`project:read`** permission. * * * `off` * * `super_low` * * `low` * * `medium` * * `high` * * `always` */ autofixAutomationTuning?: 'off' | 'super_low' | 'low' | 'medium' | 'high' | 'always'; /** * Let Seer scan new issues automatically. Can be updated with **`project:read`** permission. */ seerScannerAutomation?: boolean; /** * Enable preprod size status checks. Can be updated with **`project:read`** permission. */ preprodSizeStatusChecksEnabled?: boolean; /** * Rules controlling when preprod size status checks fail. Can be updated with **`project:read`** permission. */ preprodSizeStatusChecksRules?: { [key: string]: unknown; }; /** * Enable preprod size PR comments. Can be updated with **`project:read`** permission. */ preprodSizePrCommentsEnabled?: boolean; /** * Rules controlling which preprod size changes are posted as PR comments. Can be updated with **`project:read`** permission. */ preprodSizePrCommentsRules?: { [key: string]: unknown; }; /** * Enable preprod snapshot status checks. */ preprodSnapshotStatusChecksEnabled?: boolean; /** * Fail the preprod snapshot status check when snapshots are added. */ preprodSnapshotStatusChecksFailOnAdded?: boolean; /** * Fail the preprod snapshot status check when snapshots are removed. */ preprodSnapshotStatusChecksFailOnRemoved?: boolean; /** * Fail the preprod snapshot status check when snapshots change. */ preprodSnapshotStatusChecksFailOnChanged?: boolean; /** * Fail the preprod snapshot status check when snapshots are renamed. */ preprodSnapshotStatusChecksFailOnRenamed?: boolean; /** * Enable preprod size analysis. Can be updated with **`project:read`** permission. */ preprodSizeEnabledByCustomer?: boolean | null; /** * Enable preprod build distribution. Can be updated with **`project:read`** permission. */ preprodDistributionEnabledByCustomer?: boolean | null; /** * Post preprod distribution updates as PR comments. Can be updated with **`project:read`** permission. */ preprodDistributionPrCommentsEnabledByCustomer?: boolean | null; /** * Post preprod snapshot changes as PR comments. */ preprodSnapshotPrCommentsEnabled?: boolean | null; /** * Include added snapshots in preprod snapshot PR comments. */ preprodSnapshotPrCommentsPostOnAdded?: boolean | null; /** * Include removed snapshots in preprod snapshot PR comments. */ preprodSnapshotPrCommentsPostOnRemoved?: boolean | null; /** * Include changed snapshots in preprod snapshot PR comments. */ preprodSnapshotPrCommentsPostOnChanged?: boolean | null; /** * Include renamed snapshots in preprod snapshot PR comments. */ preprodSnapshotPrCommentsPostOnRenamed?: boolean | null; /** * Query selecting which preprod builds are size-analyzed. Can be updated with **`project:read`** permission. */ preprodSizeEnabledQuery?: string | null; /** * Query selecting which preprod builds are distributed. Can be updated with **`project:read`** permission. */ preprodDistributionEnabledQuery?: string | null; /** * The name for the project */ name?: string; /** * Uniquely identifies a project and is used for the interface. */ slug?: string; /** * The platform for the project */ platform?: string | null; /** * Custom prefix for emails from this project. */ subjectPrefix?: string; /** * The email subject to use (excluding the prefix) for individual alerts. Here are the list of variables you can use: * - `$title` * - `$shortID` * - `$projectID` * - `$orgID` * - `${tag:key}` - such as `${tag:environment}` or `${tag:release}`. */ subjectTemplate?: string; /** * Automatically resolve an issue if it hasn't been seen for this many hours. Set to `0` to disable auto-resolve. */ resolveAge?: number | null; /** * A JSON mapping of context types to lists of strings for their keys. * E.g. `{'user': ['id', 'email']}` */ highlightContext?: { [key: string]: unknown; }; /** * A list of strings with tag keys to highlight on this project's issues. * E.g. `['release', 'environment']` */ highlightTags?: Array; /** * Minimum time in seconds to wait before sending an issue digest email. */ digestsMinDelay?: number; /** * Maximum time in seconds to wait before sending an issue digest email. */ digestsMaxDelay?: number; /** * Token sent with security reports (CSP, Expect-CT, HPKP) so Sentry can verify their origin. */ securityToken?: string; /** * Name of the header carrying the security token on inbound security reports. */ securityTokenHeader?: string; /** * Verify SSL certificates when delivering outbound webhooks and service hooks. */ verifySSL?: boolean; /** * Environment selected by default when viewing this project. */ defaultEnvironment?: string | null; /** * Remove known sensitive values from events before storing them. */ dataScrubber?: boolean; /** * Also scrub Sentry's built-in list of sensitive field names. */ dataScrubberDefaults?: boolean; /** * Additional field names to scrub from events, beyond the defaults. */ sensitiveFields?: Array; /** * Field names to exempt from scrubbing, including the built-in defaults. */ safeFields?: Array; /** * Number of native crash report files to store per issue. Use `-1` for unlimited or `0` to store none. */ storeCrashReports?: number | null; /** * Advanced data scrubbing rules, as a JSON string, applied before events are stored. */ relayPiiConfig?: string | null; /** * Identifiers of Sentry-hosted symbol sources to use when symbolicating events. */ builtinSymbolSources?: Array; /** * Custom symbol sources, as a JSON string, to use when symbolicating events. */ symbolSources?: string | null; /** * Apply source server (srcsrv) information from native debug files to symbolicated frames. */ enableNativeSourceServerMapping?: boolean; /** * Discard client IP addresses rather than storing them on events. */ scrubIPAddresses?: boolean; /** * Identifier of the grouping algorithm used to assign events to issues. */ groupingConfig?: string | null; /** * Grouping enhancement rules, as a newline-delimited config string, adjusting which stack frames contribute to an issue. */ groupingEnhancements?: string | null; /** * Fingerprinting rules, as a newline-delimited config string, controlling how events are grouped into issues. */ fingerprintingRules?: string | null; /** * Grouping algorithm run alongside the primary one during a grouping migration. */ secondaryGroupingConfig?: string | null; /** * Unix timestamp after which the secondary grouping algorithm stops running. */ secondaryGroupingExpiry?: number | null; /** * Allow Sentry to fetch source files and source maps from your servers. */ scrapeJavaScript?: boolean; /** * Automatically create releases from ingested events. When disabled, releases must be created manually (e.g. via the Sentry CLI). */ enableAutoReleaseCreation?: boolean; /** * Origins permitted to send events to this project. Use `*` to allow any. */ allowedDomains?: Array; /** * ID of a project whose settings, teams, and keys should be copied into this one. */ copy_from_project?: number; /** * Per-bias toggles adjusting which transactions dynamic sampling favors retaining. */ dynamicSamplingBiases?: Array<{ /** * * `boostEnvironments` * * `boostKeyTransactions` * * `boostLatestRelease` * * `boostLowVolumeTransactions` * * `boostReplayId` * * `ignoreHealthChecks` * * `minimumSampleRate` * * `recalibrationRule` */ id: 'boostEnvironments' | 'boostKeyTransactions' | 'boostLatestRelease' | 'boostLowVolumeTransactions' | 'boostReplayId' | 'ignoreHealthChecks' | 'minimumSampleRate' | 'recalibrationRule'; active?: boolean; }>; /** * Fetch screenshots attached to console crash reports. Requires the Tempest feature. */ tempestFetchScreenshots?: boolean; /** * Enable on-demand source context fetching from SCM integrations for stack traces. */ scmSourceContextEnabled?: boolean; /** * The role required to download debug information files, ProGuard mappings and source maps. If not set, inherits from organization setting. * * * `member` - Member * * `admin` - Admin * * `manager` - Manager * * `owner` - Owner */ debugFilesRole?: 'member' | 'admin' | 'manager' | 'owner' | null; }; export type ProjectCodeOwners = { /** * Code mapping of the CODEOWNERS file. Only set when expand includes codeMapping */ codeMapping?: { /** * ID of the code mapping */ id: string; /** * ID of the project */ projectId: string; /** * Slug of the project */ projectSlug: string; /** * ID of the repository */ repoId: string; /** * Name of the repository */ repoName: string; /** * ID of the repository's integration */ integrationId: string | null; /** * Provider of the repository's integration */ provider: { /** * Key of the integration provider, such as github */ key: string; /** * Slug of the integration provider, same as key */ slug: string; /** * Display name of the integration provider */ name: string; /** * Whether the integration can be installed from Sentry */ canAdd: boolean; /** * Whether the integration must be uninstalled from the provider instead of in Sentry */ canDisable: boolean; /** * Features the integration provider supports, such as issue-basic or commits */ features: Array; /** * Extra provider details shown during setup, such as alerts and configuration instructions */ aspects: { /** * Alerts shown during setup */ alerts?: Array<{ /** * Style of the alert, such as warning */ type: string; /** * Icon shown with the alert, such as icon-warning-sm */ icon: string; /** * Text of the alert, in Markdown */ text: string; }>; /** * Configuration step after install */ configure_integration?: { /** * Title of the configuration step */ title: string; }; /** * Whether the integration is enabled without an install flow */ directEnable?: boolean; /** * Dialog shown before the integration is disabled */ disable_dialog?: { /** * Label of the dialog's confirm button */ actionText: string; /** * Text of the dialog */ body: string; }; /** * Where to install the integration when it's installed outside Sentry */ externalInstall?: { /** * URL to install the integration from, such as a marketplace */ url: string; /** * Label of the install button */ buttonText: string; /** * Notice shown before the user leaves Sentry */ noticeText: string; }; /** * Dialog shown before the integration is removed */ removal_dialog?: { /** * Label of the dialog's confirm button */ actionText: string; /** * Text of the dialog */ body: string; }; }; } | null; /** * Stack trace path prefix that the mapping replaces */ stackRoot: string; /** * Repository path prefix that replaces the stack root */ sourceRoot: string; /** * Branch to link source files on */ defaultBranch: string | null; /** * Whether Sentry created the mapping automatically */ automaticallyGenerated: boolean; /** * Whether the mapping has a CODEOWNERS file linked */ hasCodeOwner: boolean; }; /** * CODEOWNERS rules translated to Sentry ownership rules. Only set when expand includes ownershipSyntax */ ownershipSyntax?: string; /** * Owners that couldn't be associated, by reason. Only set when expand includes errors */ errors?: { /** * Email owners in the CODEOWNERS file with no matching Sentry user */ missing_user_emails: Array; /** * User owners in the CODEOWNERS file with no external user mapping */ missing_external_users: Array; /** * Team owners in the CODEOWNERS file with no external team mapping */ missing_external_teams: Array; /** * Teams in the CODEOWNERS file that don't have access to the project */ teams_without_access: Array; /** * Users in the CODEOWNERS file who aren't members of a team with access to the project */ users_without_access: Array; }; /** * Parsed rules of the CODEOWNERS file. Only set when expand includes hasTargetingContext */ schema?: { /** * Version of the ownership rules schema */ $version: number; /** * Ownership rules, in order */ rules: Array<{ /** * What the rule matches */ matcher: { /** * What the rule matches on, path, module, url, codeowners or tags. */ type: string; /** * Pattern the value is matched against */ pattern: string; }; /** * Owners the rule assigns */ owners: Array<{ /** * Whether the owner is a user or a team */ type: string; /** * Email of the user, or slug of the team */ name: string; /** * ID of the user or team. Only set when the owner was resolved */ id?: string; }>; }>; } | { [key: string]: unknown; }; /** * URL of the CODEOWNERS file in the repository, or unknown. Only set when expand includes hasTargetingContext */ codeOwnersUrl?: string; /** * ID of the CODEOWNERS record */ id: string; /** * Contents of the CODEOWNERS file */ raw: string; /** * When the CODEOWNERS file was added (ISO 8601) */ dateCreated: string; /** * When the record was last updated (ISO 8601) */ dateUpdated: string; /** * When the file was last synced from the repository (ISO 8601). Null when it was never synced */ dateSynced: string | null; /** * ID of the code mapping of the CODEOWNERS file */ codeMappingId: string; /** * Provider of the repository's integration, such as github, or unknown */ provider: string; }; export type ProjectCodeOwnersCreateRequest = { /** * The raw contents of the CODEOWNERS file. */ raw: string; /** * The ID of the code mapping used to translate repository paths to stack trace paths. */ codeMappingId: string; }; export type ProjectCodeOwnersList = Array<{ /** * Code mapping of the CODEOWNERS file. Only set when expand includes codeMapping */ codeMapping?: { /** * ID of the code mapping */ id: string; /** * ID of the project */ projectId: string; /** * Slug of the project */ projectSlug: string; /** * ID of the repository */ repoId: string; /** * Name of the repository */ repoName: string; /** * ID of the repository's integration */ integrationId: string | null; /** * Provider of the repository's integration */ provider: { /** * Key of the integration provider, such as github */ key: string; /** * Slug of the integration provider, same as key */ slug: string; /** * Display name of the integration provider */ name: string; /** * Whether the integration can be installed from Sentry */ canAdd: boolean; /** * Whether the integration must be uninstalled from the provider instead of in Sentry */ canDisable: boolean; /** * Features the integration provider supports, such as issue-basic or commits */ features: Array; /** * Extra provider details shown during setup, such as alerts and configuration instructions */ aspects: { /** * Alerts shown during setup */ alerts?: Array<{ /** * Style of the alert, such as warning */ type: string; /** * Icon shown with the alert, such as icon-warning-sm */ icon: string; /** * Text of the alert, in Markdown */ text: string; }>; /** * Configuration step after install */ configure_integration?: { /** * Title of the configuration step */ title: string; }; /** * Whether the integration is enabled without an install flow */ directEnable?: boolean; /** * Dialog shown before the integration is disabled */ disable_dialog?: { /** * Label of the dialog's confirm button */ actionText: string; /** * Text of the dialog */ body: string; }; /** * Where to install the integration when it's installed outside Sentry */ externalInstall?: { /** * URL to install the integration from, such as a marketplace */ url: string; /** * Label of the install button */ buttonText: string; /** * Notice shown before the user leaves Sentry */ noticeText: string; }; /** * Dialog shown before the integration is removed */ removal_dialog?: { /** * Label of the dialog's confirm button */ actionText: string; /** * Text of the dialog */ body: string; }; }; } | null; /** * Stack trace path prefix that the mapping replaces */ stackRoot: string; /** * Repository path prefix that replaces the stack root */ sourceRoot: string; /** * Branch to link source files on */ defaultBranch: string | null; /** * Whether Sentry created the mapping automatically */ automaticallyGenerated: boolean; /** * Whether the mapping has a CODEOWNERS file linked */ hasCodeOwner: boolean; }; /** * CODEOWNERS rules translated to Sentry ownership rules. Only set when expand includes ownershipSyntax */ ownershipSyntax?: string; /** * Owners that couldn't be associated, by reason. Only set when expand includes errors */ errors?: { /** * Email owners in the CODEOWNERS file with no matching Sentry user */ missing_user_emails: Array; /** * User owners in the CODEOWNERS file with no external user mapping */ missing_external_users: Array; /** * Team owners in the CODEOWNERS file with no external team mapping */ missing_external_teams: Array; /** * Teams in the CODEOWNERS file that don't have access to the project */ teams_without_access: Array; /** * Users in the CODEOWNERS file who aren't members of a team with access to the project */ users_without_access: Array; }; /** * Parsed rules of the CODEOWNERS file. Only set when expand includes hasTargetingContext */ schema?: { /** * Version of the ownership rules schema */ $version: number; /** * Ownership rules, in order */ rules: Array<{ /** * What the rule matches */ matcher: { /** * What the rule matches on, path, module, url, codeowners or tags. */ type: string; /** * Pattern the value is matched against */ pattern: string; }; /** * Owners the rule assigns */ owners: Array<{ /** * Whether the owner is a user or a team */ type: string; /** * Email of the user, or slug of the team */ name: string; /** * ID of the user or team. Only set when the owner was resolved */ id?: string; }>; }>; } | { [key: string]: unknown; }; /** * URL of the CODEOWNERS file in the repository, or unknown. Only set when expand includes hasTargetingContext */ codeOwnersUrl?: string; /** * ID of the CODEOWNERS record */ id: string; /** * Contents of the CODEOWNERS file */ raw: string; /** * When the CODEOWNERS file was added (ISO 8601) */ dateCreated: string; /** * When the record was last updated (ISO 8601) */ dateUpdated: string; /** * When the file was last synced from the repository (ISO 8601). Null when it was never synced */ dateSynced: string | null; /** * ID of the code mapping of the CODEOWNERS file */ codeMappingId: string; /** * Provider of the repository's integration, such as github, or unknown */ provider: string; }>; export type ProjectCodeOwnersUpdateRequest = { /** * The raw contents of the CODEOWNERS file. */ raw?: string; /** * The ID of the code mapping used to translate repository paths to stack trace paths. */ codeMappingId?: string; }; export type ProjectEventDetailsResponse = { /** * ID of the event */ id: string; /** * ID of the issue the event belongs to */ groupID: string | null; /** * ID of the event */ eventID: string; /** * ID of the project the event belongs to */ projectID: string; /** * Event message */ message: string | null; /** * Event title */ title: string; /** * Source location of the event, such as a file and line */ location: string | null; /** * Platform of the event, such as python or javascript */ platform: string | null; /** * When Sentry received the event (ISO 8601) */ dateReceived: string | null; /** * Size of the event payload in bytes */ size: number | null; /** * Event interfaces, such as exception, breadcrumbs and request, each with a type and data */ entries: Array; /** * Distribution of the release the event was sent with */ dist: string | null; /** * Modules loaded when the event occurred, keyed by module name with their versions */ packages: { [key: string]: string | null; }; /** * Event type, such as error, default or transaction */ type: 'default' | 'error' | 'csp' | 'nel' | 'hpkp' | 'expectct' | 'expectstaple' | 'transaction' | 'generic' | 'feedback'; /** * Event metadata */ metadata: { /** * Title of default and issue platform events */ title?: string; /** * Exception value, or the subtitle of an issue */ value?: string; /** * Exception type of error events */ type?: string; /** * Whether the SDK fabricated the exception to carry a stacktrace, so its type is a platform label rather than what went wrong */ synthetic?: boolean; /** * File of the frame where the error happened */ filename?: string; /** * Function of the frame where the error happened */ function?: string; /** * Message of default, security and feedback events */ message?: string; /** * URI that a CSP report blocked */ uri?: string; /** * CSP directive that was violated */ directive?: string; /** * Host name of HPKP, Expect-CT and Expect-Staple reports */ origin?: string; /** * Name of the person who sent user feedback */ name?: string; /** * Email of the person who sent user feedback */ contact_email?: string; /** * Where user feedback came from, such as a widget */ source?: string; /** * Whether the stacktrace has in-app frames, system frames or both */ in_app_frame_mix?: string; /** * Whether a crash report was dropped because the issue already stores the most allowed */ stripped_crash?: boolean; /** * SDK of the issue's first event */ sdk?: { /** * Name of the SDK, or unknown */ name: string; /** * Name of the SDK, normalized for grouping */ name_normalized: string; }; /** * Severity score of the issue's first event */ severity?: number; /** * Why the severity score is what it is */ severity_reason?: string; /** * Priority the issue was created with */ initial_priority?: number; }; /** * Issue occurrence data for events in non-error issues, such as performance issues. Null otherwise */ occurrence: { /** * ID of the occurrence */ id: string; /** * ID of the project */ projectId: number; /** * ID of the event the occurrence belongs to */ eventId: string; /** * Fingerprint that groups the occurrence into an issue */ fingerprint: Array; /** * Title of the issue */ issueTitle: string; /** * Subtitle of the issue */ subtitle: string; /** * ID of the resource the occurrence is about, such as a monitor. Null when not set */ resourceId: string | null; /** * Evidence to show on the issue */ evidenceDisplay: Array<{ /** * Name of the evidence */ name: string; /** * Value of the evidence */ value: string; /** * Whether to show the evidence first. At most one evidence of an occurrence is important */ important: boolean; }>; /** * When the problem was detected, as a Unix timestamp in seconds */ detectionTime: number; /** * Level of the occurrence, such as error or warning */ level: string | null; /** * Culprit of the occurrence */ culprit: string | null; /** * Actor the issue is assigned to, such as user:1 or team:1 */ assignee: string | null; /** * Initial priority of the issue: 25 low, 50 medium or 75 high */ priority: number | null; /** * Group type ID of metric issues, always 8001 */ type: 8001; /** * Detector and query that created the occurrence */ evidenceData: { /** * ID of the detector that created the occurrence */ detectorId: number; /** * ID of the metric alert rule the detector replaces. Null when there's none */ alertId: number | null; /** * Metric value that triggered the detector, or the anomaly detection result for dynamic detectors */ value: number | { /** * Metric value the anomaly detection model scored */ value: number; /** * ID of the data source that produced the value */ sourceId: string; /** * ID of the query subscription that produced the value */ subscriptionId: string; /** * When the value was measured */ timestamp: string; } | null; /** * ID of the query subscription that sent the data */ dataPacketSourceId: string; /** * Conditions of the detector */ conditions: Array<{ /** * ID of the detector condition */ id: number; /** * Type of the condition, such as gt, lt or anomaly_detection */ type: string; /** * Threshold the value is compared with, or the anomaly detection settings for an anomaly_detection condition */ comparison: number | { /** * How sensitive the anomaly detection is */ sensitivity: 'low' | 'medium' | 'high'; /** * Seasonality the anomaly detection model uses */ seasonality: 'auto' | 'hourly' | 'daily' | 'weekly' | 'hourly_daily' | 'hourly_weekly' | 'hourly_daily_weekly' | 'daily_weekly'; /** * Direction of anomalies to detect: 0 above, 1 below, 2 above and below */ thresholdType: 0 | 1 | 2; }; /** * Priority the detector reports when the condition matches: 0 ok, 25 low, 50 medium or 75 high */ conditionResult: number; }>; /** * Configuration of the detector */ config: { /** * How the detector evaluates the metric: static thresholds, percent change or dynamic anomaly detection */ detectionType: 'static' | 'percent' | 'dynamic'; /** * Time window in seconds that a percent change detector compares with */ comparisonDelta?: number | null; }; /** * Data sources of the detector */ dataSources: Array<{ /** * ID of the data source */ id: string; /** * ID of the organization */ organizationId: string; /** * Type of the data source, such as snuba_query_subscription */ type: string; /** * ID of the source object, such as the query subscription */ sourceId: string; /** * Query subscription the data source reads */ queryObj: { /** * ID of the query subscription */ id: string; /** * Status of the subscription: 0 active, 1 creating, 2 updating, 3 deleting or 4 disabled */ status: number; /** * ID of the subscription in Snuba. Null while it's being created */ subscription: string | null; /** * Query the subscription runs */ snubaQuery: { /** * ID of the query */ id: string; /** * Dataset the query runs on, such as events or events_analytics_platform */ dataset: string; /** * Search query that filters the data */ query: string; /** * Aggregate function the query computes, such as count() */ aggregate: string; /** * Time window of the query in seconds */ timeWindow: number; /** * Environment the query is limited to. Null for all environments */ environment: string | null; /** * Event types the query includes, such as error or transaction */ eventTypes: Array; /** * How sampled data is extrapolated, unknown, none, client_and_server_weighted or server_weighted. Null when not set */ extrapolationMode: string | null; }; }; }>; }; } | { /** * ID of the occurrence */ id: string; /** * ID of the project */ projectId: number; /** * ID of the event the occurrence belongs to */ eventId: string; /** * Fingerprint that groups the occurrence into an issue */ fingerprint: Array; /** * Title of the issue */ issueTitle: string; /** * Subtitle of the issue */ subtitle: string; /** * ID of the resource the occurrence is about, such as a monitor. Null when not set */ resourceId: string | null; /** * Evidence to show on the issue */ evidenceDisplay: Array<{ /** * Name of the evidence */ name: string; /** * Value of the evidence */ value: string; /** * Whether to show the evidence first. At most one evidence of an occurrence is important */ important: boolean; }>; /** * When the problem was detected, as a Unix timestamp in seconds */ detectionTime: number; /** * Level of the occurrence, such as error or warning */ level: string | null; /** * Culprit of the occurrence */ culprit: string | null; /** * Actor the issue is assigned to, such as user:1 or team:1 */ assignee: string | null; /** * Initial priority of the issue: 25 low, 50 medium or 75 high */ priority: number | null; /** * Group type ID of the occurrence */ type: number; /** * Data of the occurrence. Its keys depend on the group type */ evidenceData: { [key: string]: unknown; }; } | null; /** * Metadata about changes Sentry made to the event's fields, such as data scrubbing or trimming */ _meta: { [key: string]: unknown; }; /** * User context of the event */ user: { /** * ID the SDK sent for the user */ id?: string | null; /** * Email address of the user */ email?: string | null; /** * Username of the user */ username?: string | null; /** * IP address of the user */ ip_address?: string | null; /** * Name of the user */ name?: string | null; /** * Location of the user, with keys such as country_code, city and region */ geo?: { [key: string]: string; } | null; /** * Extra data the SDK sent about the user */ data?: { [key: string]: unknown; } | null; } | null; /** * Tags attached to the event */ tags: Array<{ /** * Search query that matches this tag's user, such as user.email:"user@example.com". Only set for user tags */ query?: string; /** * Tag key */ key: string; /** * Tag value */ value: string; }>; /** * Contexts of the event, such as device, os, browser and runtime, keyed by alias */ contexts: { [key: string]: { /** * Internal build ID as it appears on the platform. */ app_build?: string | null; /** * Version-independent application identifier, often a dotted bundle ID. */ app_identifier?: string | null; /** * Amount of memory used by the application in bytes. */ app_memory?: number | string | null; /** * Application name as it appears on the platform. */ app_name?: string | null; /** * Start time of the app. * * Formatted UTC timestamp when the user started the application. */ app_start_time?: string | null; /** * Application version as it appears on the platform. */ app_version?: string | null; /** * String identifying the kind of build. For example, `testflight`. */ build_type?: string | null; /** * Application-specific device identifier. */ device_app_hash?: string | null; /** * A flag indicating whether the app is in foreground or not. An app is in foreground when it's visible to the user. */ in_foreground?: boolean | null; /** * The names of the currently visible views. */ view_names?: Array | null; /** * Type of the context */ type: 'app'; [key: string]: unknown; } | { /** * Display name of the browser application. */ name?: string | null; /** * Version string of the browser. */ version?: string | null; /** * Type of the context */ type: 'browser'; [key: string]: unknown; } | { /** * Type of the context */ type: 'default'; [key: string]: unknown; } | { /** * Native cpu architecture of the device. */ arch?: string | null; /** * Current battery level in %. * * If the device has a battery, this can be a floating point value defining the battery level * (in the range 0-100). */ battery_level?: number | string | null; /** * Status of the device's battery. * * For example, `Unknown`, `Charging`, `Discharging`, `NotCharging`, `Full`. */ battery_status?: string | null; /** * Indicator when the device was booted. */ boot_time?: string | null; /** * Brand of the device. */ brand?: string | null; /** * Whether the device was charging or not. */ charging?: boolean | null; /** * CPU description. * * For example, Intel(R) Core(TM)2 Quad CPU Q6600 @ 2.40GHz. */ cpu_description?: string | null; /** * Kind of device the application is running on. * * For example, `Unknown`, `Handheld`, `Console`, `Desktop`. */ device_type?: string | null; /** * Unique device identifier. */ device_unique_identifier?: string | null; /** * Free size of the attached external storage in bytes (eg: android SDK card). */ external_free_storage?: number | string | null; /** * Total size of the attached external storage in bytes (eg: android SDK card). */ external_storage_size?: number | string | null; /** * Family of the device model. * * This is usually the common part of model names across generations. For instance, `iPhone` * would be a reasonable family, so would be `Samsung Galaxy`. */ family?: string | null; /** * How much memory is still available in bytes. */ free_memory?: number | string | null; /** * How much storage is free in bytes. */ free_storage?: number | string | null; /** * ISO 639-1 code of the locale the device is set to. */ locale?: string | null; /** * Whether the device was low on memory. */ low_memory?: boolean | null; /** * Manufacturer of the device. */ manufacturer?: string | null; /** * Total memory available in bytes. */ memory_size?: number | string | null; /** * Device model. * * This, for example, can be `Samsung Galaxy S3`. */ model?: string | null; /** * Device model (internal identifier). * * An internal hardware revision to identify the device exactly. */ model_id?: string | null; /** * Name of the device. */ name?: string | null; /** * Whether the device was online or not. */ online?: boolean | null; /** * Current screen orientation. * * This can be a string `portrait` or `landscape` to define the orientation of a device. */ orientation?: string | null; /** * Number of "logical processors". * * For example, 8. */ processor_count?: number | string | null; /** * Processor frequency in MHz. * * Note that the actual CPU frequency might vary depending on current load and * power conditions, especially on low-powered devices like phones and laptops. */ processor_frequency?: number | string | null; /** * Device screen density. */ screen_density?: number | string | null; /** * Screen density as dots-per-inch. */ screen_dpi?: number | string | null; /** * Height of the screen in pixels. */ screen_height_pixels?: number | string | null; /** * Device screen resolution. * * (e.g.: 800x600, 3040x1444) */ screen_resolution?: string | null; /** * Width of the screen in pixels. */ screen_width_pixels?: number | string | null; /** * Simulator/prod indicator. */ simulator?: boolean | null; /** * Total storage size of the device in bytes. */ storage_size?: number | string | null; /** * Whether the accelerometer is available on the device. */ supports_accelerometer?: boolean | null; /** * Whether audio is available on the device. */ supports_audio?: boolean | null; /** * Whether the gyroscope is available on the device. */ supports_gyroscope?: boolean | null; /** * Whether location support is available on the device. */ supports_location_service?: boolean | null; /** * Whether vibration is available on the device. */ supports_vibration?: boolean | null; /** * Timezone of the device. */ timezone?: string | null; /** * How much memory is usable for the app in bytes. */ usable_memory?: number | string | null; /** * UUID of the device. */ uuid?: string | null; /** * Type of the context */ type: 'device'; [key: string]: unknown; } | { /** * The device low-level API type. * * Examples: `"Apple Metal"` or `"Direct3D11"` */ api_type?: string | null; /** * Approximate "shader capability" level of the graphics device. * * For Example: Shader Model 2.0, OpenGL ES 3.0, Metal / OpenGL ES 3.1, 27 (unknown) */ graphics_shader_level?: string | null; /** * The PCI identifier of the graphics device. */ id?: number | string; /** * Largest size of a texture that is supported by the graphics hardware. * * For Example: 16384 */ max_texture_size?: number | string | null; /** * The total GPU memory available in Megabytes. */ memory_size?: number | string | null; /** * Whether the GPU has multi-threaded rendering or not. */ multi_threaded_rendering?: boolean | null; /** * The name of the graphics device. */ name?: string | null; /** * The Non-Power-Of-Two support. */ npot_support?: string | null; /** * Whether compute shaders are available on the device. */ supports_compute_shaders?: boolean | null; /** * Whether GPU draw call instancing is supported. */ supports_draw_call_instancing?: boolean | null; /** * Whether geometry shaders are available on the device. */ supports_geometry_shaders?: boolean | null; /** * Whether ray tracing is available on the device. */ supports_ray_tracing?: boolean | null; /** * The PCI vendor identifier of the graphics device. */ vendor_id?: string | null; /** * The vendor name as reported by the graphics device. */ vendor_name?: string | null; /** * The Version of the graphics device. */ version?: string | null; /** * Type of the context */ type: 'gpu'; [key: string]: unknown; } | { /** * Type of the context */ type: 'monitor'; [key: string]: unknown; } | { /** * Internal build number of the operating system. */ build?: string | null; /** * Current kernel version. * * This is typically the entire output of the `uname` syscall. */ kernel_version?: string | null; /** * Name of the operating system. */ name?: string | null; /** * Unprocessed operating system info. * * An unprocessed description string obtained by the operating system. For some well-known * runtimes, Sentry will attempt to parse `name` and `version` from this string, if they are * not explicitly given. */ raw_description?: string | null; /** * Indicator if the OS is rooted (mobile mostly). */ rooted?: boolean | null; /** * Version of the operating system. */ version?: string | null; /** * Type of the context */ type: 'os'; [key: string]: unknown; } | { /** * Attributes of the OpenTelemetry span that maps to a Sentry event. * * */ attributes?: { [key: string]: string | boolean | number | number | Array; } | null; /** * Information about an OpenTelemetry resource. * * */ resource?: { [key: string]: string | boolean | number | number | Array; } | null; /** * Type of the context */ type: 'otel'; [key: string]: unknown; } | { /** * Application build string, if it is separate from the version. */ build?: string | null; /** * Runtime name. */ name?: string | null; /** * Unprocessed runtime info. * * An unprocessed description string obtained by the runtime. For some well-known runtimes, * Sentry will attempt to parse `name` and `version` from this string, if they are not * explicitly given. */ raw_description?: string | null; /** * Runtime version string. */ version?: string | null; /** * Type of the context */ type: 'runtime'; [key: string]: unknown; } | { /** * The client-side sample rate as reported in the envelope's `trace.sample_rate` header. * * The server takes this field from envelope headers and writes it back into the event. Clients * should not ever send this value. */ client_sample_rate?: number | string | null; /** * The amount of time in milliseconds spent in this transaction span, * excluding its immediate child spans. */ exclusive_time?: number | string | null; /** * Span type (see `OperationType` docs). */ op?: string | null; /** * The origin of the trace indicates what created the trace (see [OriginType] docs). */ origin?: string | null; /** * The ID of the span enclosing this span. */ parent_span_id?: string | null; /** * Track whether the trace connected to this event has been sampled entirely. * * This flag only applies to events with [`Error`] type that have an associated dynamic sampling context. */ sampled?: boolean | null; /** * The ID of the span. */ span_id?: string | null; /** * Whether the trace failed or succeeded. Currently only used to indicate status of individual * transactions. */ status?: 'ok' | 'cancelled' | 'unknown' | 'invalid_argument' | 'deadline_exceeded' | 'not_found' | 'already_exists' | 'permission_denied' | 'resource_exhausted' | 'failed_precondition' | 'aborted' | 'out_of_range' | 'unimplemented' | 'internal_error' | 'unavailable' | 'data_loss' | 'unauthenticated' | null; /** * The trace ID. */ trace_id?: string | null; /** * Type of the context */ type: 'trace'; [key: string]: unknown; } | { /** * Type of the context */ type: 'unity'; [key: string]: unknown; }; } | null; /** * SDK that sent the event */ sdk: { /** * Name of the SDK that sent the event, such as sentry.python */ name: string | null; /** * Version of the SDK */ version: string | null; } | null; /** * Additional data sent with the event in its extra field */ context: { [key: string]: unknown; } | null; /** * Errors Sentry found while processing the event */ errors: Array<{ /** * Type of the processing error, such as invalid_data or js_no_source */ type: string; /** * Human-readable message of the error */ message: string; /** * Details of the error, such as the name of the invalid field. Other keys depend on the error type */ data: { /** * Affected key or path in the event */ name?: string | null; /** * Details of the error from the processor that hit it */ message?: string; /** * URL that couldn't be fetched, such as a source file */ url?: string; /** * Path of the debug image the error is about */ image_path?: string; /** * Name of the debug image the error is about */ image_name?: string; /** * Debug ID of the image the error is about */ image_uuid?: string; /** * CPU architecture of the image the error is about */ image_arch?: string; /** * Error type Symbolicator reported, such as missing_source */ symbolicator_type?: string; /** * Source file or URL the error is about */ source?: string; /** * Source map the error is about */ sourcemap?: string; /** * Line of the location that couldn't be mapped */ row?: number; /** * Column of the location that couldn't be mapped */ column?: number; /** * Time the SDK reported, for clock drift errors */ sdk_time?: string; /** * Time the server received the event, for clock drift errors */ server_time?: string; }; }>; /** * Crash report attachment of the event, if any */ crashFile?: string | null; /** * Function or module that caused the event */ culprit?: string | null; /** * When the event occurred (ISO 8601) */ dateCreated?: string; /** * Grouping hashes calculated for the event */ fingerprints?: Array; /** * Grouping configuration used to group the event */ groupingConfig?: { /** * ID of the grouping config, such as newstyle:2026-01-20 */ id: string; /** * Stack trace rules of the project, as an encoded string */ enhancements: string; }; /** * When the transaction started, as a Unix timestamp in seconds */ startTimestamp?: number; /** * When the transaction ended, as a Unix timestamp in seconds */ endTimestamp?: number; /** * Measurements recorded for the transaction, such as web vitals, keyed by name */ measurements?: { [key: string]: { /** * Measurement value */ value: number; /** * Unit of the measurement, such as millisecond */ unit?: string | null; }; } | null; /** * Span operation breakdowns for the transaction, keyed by breakdown name */ breakdowns?: { [key: string]: { [key: string]: { /** * Measurement value */ value: number; /** * Unit of the measurement, such as millisecond */ unit?: string | null; }; }; } | null; /** * Release the event was sent with. Null when the event has no release */ release: { /** * Release ID */ id?: number; /** * Number of commits in the release */ commitCount?: number; /** * Extra data stored on the release */ data?: { [key: string]: unknown; }; /** * When the release was created (ISO 8601) */ dateCreated?: string; /** * When the release went live (ISO 8601) */ dateReleased?: string | null; /** * Number of deploys of the release */ deployCount?: number; /** * Version control reference, such as a commit SHA or tag */ ref?: string | null; /** * Most recent commit in the release */ lastCommit?: { /** * Commit SHA */ id: string; /** * Commit message */ message: string | null; /** * When the commit was made (ISO 8601) */ dateCreated: string; /** * Pull request the commit belongs to */ pullRequest: { /** * Number or key of the pull request in the provider */ id: string; /** * Title of the pull request */ title: string | null; /** * Description of the pull request */ message: string | null; /** * When Sentry recorded the pull request (ISO 8601) */ dateCreated: string; /** * When the pull request was merged (ISO 8601). Null when it isn't merged */ mergedAt: string | null; /** * State of the pull request: merged, open, closed, draft or unknown. Null when not known */ status: 'merged' | 'open' | 'closed' | 'draft' | 'unknown' | null; /** * Repository of the pull request */ repository: { /** * URL of the repository */ url?: string | null; /** * Provider of the repository, with its id and name */ provider?: { [key: string]: string; }; /** * Status of the repository */ status?: 'active' | 'disabled' | 'pending_deletion' | 'deletion_in_progress'; /** * ID of the repository's integration. Null for repositories added without an integration */ integrationId?: string | null; /** * Identifier of the repository in the provider, such as owner/name */ externalSlug?: string | null; /** * ID of the repository in the provider */ externalId?: string | null; /** * Settings of the repository. Only set when expand includes settings. Null when it has none */ settings?: { /** * Whether AI code review is on for the repository */ enabledCodeReview: boolean; /** * Pull request events that start a code review: on_new_commit or on_ready_for_review */ codeReviewTriggers: Array; } | null; /** * ID of the repository */ id: string; /** * Name of the repository, such as owner/name */ name: string; /** * When the repository was added to Sentry (ISO 8601) */ dateCreated: string; }; /** * Author of the pull request, or an empty object when it has none */ author: { /** * SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access */ identities?: Array<{ /** * SSO identity ID */ id: string; /** * User's identifier at the auth provider */ name: string; /** * Organization the auth provider belongs to */ organization: { /** * Organization slug */ slug: string; /** * Organization name */ name: string; }; /** * Auth provider of the identity */ provider: { /** * Auth provider key, such as google or saml2 */ id: string; /** * Display name of the auth provider */ name: string; }; /** * When the identity was last verified by signing in through the auth provider */ dateVerified: string; /** * When the identity was last synced from the auth provider */ dateSynced: string; }>; /** * User avatar */ avatar?: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Two-factor authenticators of the user, without backup methods such as recovery codes */ authenticators?: Array<{ /** * Authenticator ID */ id: string; /** * Authenticator type, such as totp, sms, u2f or recovery */ type: string; /** * Display name of the authenticator type */ name: string; /** * When the authenticator was added */ dateCreated: string; /** * When the authenticator was last used, or null */ dateUsed: string | null; }>; /** * Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization */ canReset2fa?: boolean; /** * User ID */ id: string; /** * Display name: the user's name, or their email or username if no name is set */ name: string; /** * Username */ username: string; /** * Primary email address */ email: string; /** * Gravatar URL for the primary email address */ avatarUrl: string; /** * Whether the account is active */ isActive: boolean; /** * Whether the account is suspended. Suspended users can't sign in */ isSuspended: boolean; /** * Whether the user has a password set */ hasPasswordAuth: boolean; /** * Whether the account is managed, which stops the user from changing their username, password and similar details */ isManaged: boolean; /** * When the account was created */ dateJoined: string; /** * When the user last signed in, or null */ lastLogin: string | null; /** * Whether the user has two-factor authentication enabled */ has2fa: boolean; /** * When the user was last active, or null */ lastActive: string | null; /** * Whether the user is a superuser */ isSuperuser: boolean; /** * Whether the user has staff status */ isStaff: boolean; /** * Deprecated. Always an empty object */ experiments: { [key: string]: string; }; /** * Email addresses of the user. Only included for the requesting user or superusers; empty otherwise */ emails: Array<{ /** * Email ID */ id: string; /** * Email address */ email: string; /** * Whether the email address is verified */ is_verified: boolean; }>; } | { /** * Commit author name */ name: string | null; /** * Commit author email */ email: string; } | { [key: string]: unknown; }; /** * URL of the pull request in the provider, or null when the provider can't build one */ externalUrl: string | null; } | null; /** * How the commit was found as a suspect commit: via commit in release or via SCM integration. Empty for other commits */ suspectCommitType: string; /** * Repository the commit belongs to */ repository?: { /** * URL of the repository */ url?: string | null; /** * Provider of the repository, with its id and name */ provider?: { [key: string]: string; }; /** * Status of the repository */ status?: 'active' | 'disabled' | 'pending_deletion' | 'deletion_in_progress'; /** * ID of the repository's integration. Null for repositories added without an integration */ integrationId?: string | null; /** * Identifier of the repository in the provider, such as owner/name */ externalSlug?: string | null; /** * ID of the repository in the provider */ externalId?: string | null; /** * Settings of the repository. Only set when expand includes settings. Null when it has none */ settings?: { /** * Whether AI code review is on for the repository */ enabledCodeReview: boolean; /** * Pull request events that start a code review: on_new_commit or on_ready_for_review */ codeReviewTriggers: Array; } | null; /** * ID of the repository */ id: string; /** * Name of the repository, such as owner/name */ name: string; /** * When the repository was added to Sentry (ISO 8601) */ dateCreated: string; }; /** * Author of the commit: a Sentry user when the email matches one, otherwise the name and email from the commit */ author?: { /** * SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access */ identities?: Array<{ /** * SSO identity ID */ id: string; /** * User's identifier at the auth provider */ name: string; /** * Organization the auth provider belongs to */ organization: { /** * Organization slug */ slug: string; /** * Organization name */ name: string; }; /** * Auth provider of the identity */ provider: { /** * Auth provider key, such as google or saml2 */ id: string; /** * Display name of the auth provider */ name: string; }; /** * When the identity was last verified by signing in through the auth provider */ dateVerified: string; /** * When the identity was last synced from the auth provider */ dateSynced: string; }>; /** * User avatar */ avatar?: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Two-factor authenticators of the user, without backup methods such as recovery codes */ authenticators?: Array<{ /** * Authenticator ID */ id: string; /** * Authenticator type, such as totp, sms, u2f or recovery */ type: string; /** * Display name of the authenticator type */ name: string; /** * When the authenticator was added */ dateCreated: string; /** * When the authenticator was last used, or null */ dateUsed: string | null; }>; /** * Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization */ canReset2fa?: boolean; /** * User ID */ id: string; /** * Display name: the user's name, or their email or username if no name is set */ name: string; /** * Username */ username: string; /** * Primary email address */ email: string; /** * Gravatar URL for the primary email address */ avatarUrl: string; /** * Whether the account is active */ isActive: boolean; /** * Whether the account is suspended. Suspended users can't sign in */ isSuspended: boolean; /** * Whether the user has a password set */ hasPasswordAuth: boolean; /** * Whether the account is managed, which stops the user from changing their username, password and similar details */ isManaged: boolean; /** * When the account was created */ dateJoined: string; /** * When the user last signed in, or null */ lastLogin: string | null; /** * Whether the user has two-factor authentication enabled */ has2fa: boolean; /** * When the user was last active, or null */ lastActive: string | null; /** * Whether the user is a superuser */ isSuperuser: boolean; /** * Whether the user has staff status */ isStaff: boolean; /** * Deprecated. Always an empty object */ experiments: { [key: string]: string; }; /** * Email addresses of the user. Only included for the requesting user or superusers; empty otherwise */ emails: Array<{ /** * Email ID */ id: string; /** * Email address */ email: string; /** * Whether the email address is verified */ is_verified: boolean; }>; } | { /** * Commit author name */ name: string | null; /** * Commit author email */ email: string; } | { [key: string]: unknown; }; } | null; /** * Most recent deploy of the release */ lastDeploy?: { /** * When the deploy started (ISO 8601) */ dateStarted?: string | null; /** * URL of the deploy */ url?: string | null; /** * ID of the deploy */ id: string; /** * Environment the release was deployed to */ environment: string; /** * When the deploy finished (ISO 8601) */ dateFinished: string; /** * Name of the deploy */ name: string | null; } | null; /** * Release status */ status?: 'open' | 'archived'; /** * Release URL */ url?: string | null; /** * User agent of the client that created the release */ userAgent?: string | null; /** * Version of the release */ version?: string | null; /** * Parsed version information */ versionInfo?: { /** * Human-readable version, such as 1.0.0 (123) */ description?: string; /** * Package name parsed from the release version, such as com.example.app */ package: string | null; /** * Parsed version: the raw string, plus major, minor, patch, pre, buildCode and components when it's a semantic version */ version: { /** * Major version */ major?: number; /** * Minor version */ minor?: number; /** * Patch version */ patch?: number; /** * Pre-release identifier, such as rc1 */ pre?: string | null; /** * Build code, such as 123 */ buildCode?: string | null; /** * Number of version components given */ components?: number; /** * Version string the release was created with */ raw: string; }; /** * Build hash parsed from the release version */ buildHash: string | null; } | null; } | null; /** * User feedback submitted for the event. Null when there's none */ userReport: { /** * ID of the feedback */ id: string; /** * ID of the event the feedback is attached to */ eventID: string; /** * Name of the user who submitted the feedback. Falls back to the feedback's email address, then to the event user's name */ name: string | null; /** * Email address of the user who submitted the feedback. Falls back to the event user's email address */ email: string | null; /** * Comments the user submitted */ comments: string; /** * When the feedback was submitted (ISO 8601) */ dateCreated: string; /** * User recorded on the feedback's event. Null when the event isn't found or has no user */ user: { /** * ID of the user, as sent with the event */ id: string; /** * Username sent with the event */ username: string | null; /** * Email address sent with the event */ email: string | null; /** * Display name of the user: the name, email address or username sent with the event, whichever is set first */ name: string | null; /** * IP address sent with the event */ ipAddress: string | null; /** * Gravatar URL for the user's email address */ avatarUrl: string | null; } | null; /** * Event the feedback is attached to */ event: { /** * ID of the event the feedback is attached to */ id: string; /** * ID of the event the feedback is attached to */ eventID: string; }; } | null; /** * Suggested updates for the SDK that sent the event */ sdkUpdates: Array<{ /** * Kind of suggestion */ type: 'enableIntegration'; /** * Name of the SDK integration to enable */ integrationName: string; /** * Documentation URL of the integration */ integrationUrl: string; /** * Suggestions that become possible after this one is applied */ enables: Array<{ [key: string]: unknown; } | { /** * Kind of suggestion */ type: 'updateSdk'; /** * Name of the SDK to update */ sdkName: string; /** * SDK version to update to */ newSdkVersion: string | null; /** * Documentation URL of the SDK. Null when it isn't known */ sdkUrl: string | null; /** * Suggestions that become possible after this one is applied */ enables: Array<{ [key: string]: unknown; } | { [key: string]: unknown; } | { /** * Kind of suggestion */ type: 'changeSdk'; /** * Name of the SDK to switch to */ newSdkName: string; /** * Documentation URL of the SDK. Null when it isn't known */ sdkUrl: string | null; /** * Suggestions that become possible after this one is applied */ enables: Array<{ [key: string]: unknown; } | { [key: string]: unknown; } | { [key: string]: unknown; }>; }>; } | { /** * Kind of suggestion */ type: 'changeSdk'; /** * Name of the SDK to switch to */ newSdkName: string; /** * Documentation URL of the SDK. Null when it isn't known */ sdkUrl: string | null; /** * Suggestions that become possible after this one is applied */ enables: Array<{ [key: string]: unknown; } | { /** * Kind of suggestion */ type: 'updateSdk'; /** * Name of the SDK to update */ sdkName: string; /** * SDK version to update to */ newSdkVersion: string | null; /** * Documentation URL of the SDK. Null when it isn't known */ sdkUrl: string | null; /** * Suggestions that become possible after this one is applied */ enables: Array<{ [key: string]: unknown; } | { [key: string]: unknown; } | { [key: string]: unknown; }>; } | { [key: string]: unknown; }>; }>; } | { /** * Kind of suggestion */ type: 'updateSdk'; /** * Name of the SDK to update */ sdkName: string; /** * SDK version to update to */ newSdkVersion: string | null; /** * Documentation URL of the SDK. Null when it isn't known */ sdkUrl: string | null; /** * Suggestions that become possible after this one is applied */ enables: Array<{ /** * Kind of suggestion */ type: 'enableIntegration'; /** * Name of the SDK integration to enable */ integrationName: string; /** * Documentation URL of the integration */ integrationUrl: string; /** * Suggestions that become possible after this one is applied */ enables: Array<{ [key: string]: unknown; } | { [key: string]: unknown; } | { /** * Kind of suggestion */ type: 'changeSdk'; /** * Name of the SDK to switch to */ newSdkName: string; /** * Documentation URL of the SDK. Null when it isn't known */ sdkUrl: string | null; /** * Suggestions that become possible after this one is applied */ enables: Array<{ [key: string]: unknown; } | { [key: string]: unknown; } | { [key: string]: unknown; }>; }>; } | { [key: string]: unknown; } | { /** * Kind of suggestion */ type: 'changeSdk'; /** * Name of the SDK to switch to */ newSdkName: string; /** * Documentation URL of the SDK. Null when it isn't known */ sdkUrl: string | null; /** * Suggestions that become possible after this one is applied */ enables: Array<{ /** * Kind of suggestion */ type: 'enableIntegration'; /** * Name of the SDK integration to enable */ integrationName: string; /** * Documentation URL of the integration */ integrationUrl: string; /** * Suggestions that become possible after this one is applied */ enables: Array<{ [key: string]: unknown; } | { [key: string]: unknown; } | { [key: string]: unknown; }>; } | { [key: string]: unknown; } | { [key: string]: unknown; }>; }>; } | { /** * Kind of suggestion */ type: 'changeSdk'; /** * Name of the SDK to switch to */ newSdkName: string; /** * Documentation URL of the SDK. Null when it isn't known */ sdkUrl: string | null; /** * Suggestions that become possible after this one is applied */ enables: Array<{ /** * Kind of suggestion */ type: 'enableIntegration'; /** * Name of the SDK integration to enable */ integrationName: string; /** * Documentation URL of the integration */ integrationUrl: string; /** * Suggestions that become possible after this one is applied */ enables: Array<{ [key: string]: unknown; } | { /** * Kind of suggestion */ type: 'updateSdk'; /** * Name of the SDK to update */ sdkName: string; /** * SDK version to update to */ newSdkVersion: string | null; /** * Documentation URL of the SDK. Null when it isn't known */ sdkUrl: string | null; /** * Suggestions that become possible after this one is applied */ enables: Array<{ [key: string]: unknown; } | { [key: string]: unknown; } | { [key: string]: unknown; }>; } | { [key: string]: unknown; }>; } | { /** * Kind of suggestion */ type: 'updateSdk'; /** * Name of the SDK to update */ sdkName: string; /** * SDK version to update to */ newSdkVersion: string | null; /** * Documentation URL of the SDK. Null when it isn't known */ sdkUrl: string | null; /** * Suggestions that become possible after this one is applied */ enables: Array<{ /** * Kind of suggestion */ type: 'enableIntegration'; /** * Name of the SDK integration to enable */ integrationName: string; /** * Documentation URL of the integration */ integrationUrl: string; /** * Suggestions that become possible after this one is applied */ enables: Array<{ [key: string]: unknown; } | { [key: string]: unknown; } | { [key: string]: unknown; }>; } | { [key: string]: unknown; } | { [key: string]: unknown; }>; } | { [key: string]: unknown; }>; }>; /** * How the event's stack frames were resolved during processing, such as which source map lookup method was used */ resolvedWith: Array; /** * ID of the next event in the issue. Null for the latest event or when adjacentEvents is collapsed */ nextEventID: string | null; /** * ID of the previous event in the issue. Null for the first event or when adjacentEvents is collapsed */ previousEventID: string | null; }; export type ProjectEventsResponseDict = Array<{ /** * ID of the event */ id: string; /** * Event type, such as error, default or transaction */ 'event.type': string; /** * ID of the issue the event belongs to */ groupID: string | null; /** * ID of the event */ eventID: string; /** * ID of the project the event belongs to */ projectID: string; /** * Event message */ message: string; /** * Event title */ title: string; /** * Source location of the event, such as a file and line */ location: string | null; /** * Function or module that caused the event */ culprit: string | null; /** * User context of the event */ user: { /** * ID the SDK sent for the user */ id?: string | null; /** * Email address of the user */ email?: string | null; /** * Username of the user */ username?: string | null; /** * IP address of the user */ ip_address?: string | null; /** * Name of the user */ name?: string | null; /** * Location of the user, with keys such as country_code, city and region */ geo?: { [key: string]: string; } | null; /** * Extra data the SDK sent about the user */ data?: { [key: string]: unknown; } | null; } | null; /** * Tags attached to the event */ tags: Array<{ /** * Search query that matches this tag's user, such as user.email:"user@example.com". Only set for user tags */ query?: string; /** * Tag key */ key: string; /** * Tag value */ value: string; }>; /** * Platform of the event, such as python or javascript */ platform: string | null; /** * When the event occurred (ISO 8601) */ dateCreated: string; /** * Crash report attachment of the event, if any */ crashFile: string | null; /** * Event metadata */ metadata: { /** * Title of default and issue platform events */ title?: string; /** * Exception value, or the subtitle of an issue */ value?: string; /** * Exception type of error events */ type?: string; /** * Whether the SDK fabricated the exception to carry a stacktrace, so its type is a platform label rather than what went wrong */ synthetic?: boolean; /** * File of the frame where the error happened */ filename?: string; /** * Function of the frame where the error happened */ function?: string; /** * Message of default, security and feedback events */ message?: string; /** * URI that a CSP report blocked */ uri?: string; /** * CSP directive that was violated */ directive?: string; /** * Host name of HPKP, Expect-CT and Expect-Staple reports */ origin?: string; /** * Name of the person who sent user feedback */ name?: string; /** * Email of the person who sent user feedback */ contact_email?: string; /** * Where user feedback came from, such as a widget */ source?: string; /** * Whether the stacktrace has in-app frames, system frames or both */ in_app_frame_mix?: string; /** * Whether a crash report was dropped because the issue already stores the most allowed */ stripped_crash?: boolean; /** * SDK of the issue's first event */ sdk?: { /** * Name of the SDK, or unknown */ name: string; /** * Name of the SDK, normalized for grouping */ name_normalized: string; }; /** * Severity score of the issue's first event */ severity?: number; /** * Why the severity score is what it is */ severity_reason?: string; /** * Priority the issue was created with */ initial_priority?: number; }; }>; export type ProjectFilterResponse = Array<{ /** * ID of the inbound filter, such as browser-extensions or legacy-browsers */ id: string; /** * Whether the filter is on. For legacy-browsers, the list of browsers it filters */ active: boolean | Array; }>; /** * This represents a Sentry Project Client Key. */ export type ProjectKey = { /** * ID of the client key, same as its public key */ id: string; /** * Name of the client key */ name: string; /** * Name of the client key, same as name */ label: string; /** * Public key */ public: string | null; /** * Secret key */ secret: string | null; /** * ID of the project the key belongs to */ projectId: number; /** * Whether the client key accepts events */ isActive: boolean; /** * Rate limit for events sent with the key. Null when there's none */ rateLimit: { /** * Rate limit window in seconds */ window: number; /** * Number of events accepted per window */ count: number; } | null; /** * DSN and ingestion endpoints for the key */ dsn: { /** * DSN that includes the secret key */ secret: string; /** * Public DSN to configure SDKs with */ public: string; /** * Endpoint for Content Security Policy reports */ csp: string; /** * Endpoint for security reports */ security: string; /** * Endpoint for minidump crash reports */ minidump: string; /** * Endpoint for Network Error Logging reports */ nel: string; /** * Endpoint for Unreal Engine crash reports */ unreal: string; /** * Endpoint for cron monitor check-ins */ crons: string; /** * URL of the JavaScript SDK Loader script */ cdn: string; /** * Endpoint for PlayStation crash reports */ playstation: string; /** * Base URL for integration endpoints, such as the OpenTelemetry endpoints */ integration: string; /** * OpenTelemetry (OTLP) endpoint for traces */ otlp_traces: string; /** * OpenTelemetry (OTLP) endpoint for logs */ otlp_logs: string; }; /** * JavaScript SDK version the Loader serves */ browserSdkVersion: string; /** * JavaScript SDK versions the Loader can serve */ browserSdk: { /** * JavaScript SDK versions the Loader can serve, as [value, label] pairs */ choices: Array>; }; /** * When the client key was created (ISO 8601) */ dateCreated: string | null; /** * Features the JavaScript SDK Loader enables */ dynamicSdkLoaderOptions: { /** * Whether the Loader enables Session Replay */ hasReplay: boolean; /** * Whether the Loader enables tracing */ hasPerformance: boolean; /** * Whether the Loader loads the debug bundle */ hasDebug: boolean; /** * Whether the Loader enables User Feedback */ hasFeedback: boolean; /** * Whether the Loader enables logs and metrics */ hasLogsAndMetrics: boolean; }; /** * What the key is used for, such as user or profiling. Only included for superusers */ useCase?: string; }; export type ProjectKeyPost = { /** * The optional name of the key. If not provided it will be automatically generated. */ name?: string | null; /** * Applies a rate limit to cap the number of errors accepted during a given time window. To * disable entirely set `rateLimit` to null. * ```json * { * "rateLimit": { * "window": 7200, // time in seconds * "count": 1000 // error cap * } * } * ``` */ rateLimit?: { count?: number | null; window?: number | null; }; /** * * `user` * * `profiling` * * `tempest` * * `demo` */ useCase?: 'user' | 'profiling' | 'tempest' | 'demo'; }; export type ProjectOwnership = { /** * Parsed ownership rules. Null when there are no rules */ schema?: { /** * Version of the ownership rules schema */ $version: number; /** * Ownership rules, in order */ rules: Array<{ /** * What the rule matches */ matcher: { /** * What the rule matches on, path, module, url, codeowners or tags. */ type: string; /** * Pattern the value is matched against */ pattern: string; }; /** * Owners the rule assigns */ owners: Array<{ /** * Whether the owner is a user or a team */ type: string; /** * Email of the user, or slug of the team */ name: string; /** * ID of the user or team. Only set when the owner was resolved */ id?: string; }>; }>; } | null; /** * Ownership rules as text */ raw: string | null; /** * Whether issues that match no rule are assigned to all project members */ fallthrough: boolean; /** * When the ownership rules were created (ISO 8601) */ dateCreated: string | null; /** * When the ownership rules were last updated (ISO 8601) */ lastUpdated: string | null; /** * Whether the ownership rules are active */ isActive: boolean; /** * Auto-assignment setting: Auto Assign to Suspect Commits, Auto Assign to Issue Owner or Turn off Auto-Assignment */ autoAssignment: string; /** * Whether CODEOWNERS files sync automatically when they change */ codeownersAutoSync: boolean | null; }; export type ProjectOwnershipRequest = { /** * Raw input for ownership configuration. See the [Ownership Rules Documentation](/product/issues/ownership-rules/) to learn more. */ raw?: string; /** * A boolean determining who to assign ownership to when an ownership rule has no match. If set to `True`, all project members are made owners. Otherwise, no owners are set. */ fallthrough?: boolean; /** * Auto-assignment settings. The available options are: * - Auto Assign to Issue Owner * - Auto Assign to Suspect Commits * - Turn off Auto-Assignment */ autoAssignment?: string; /** * Set to `True` to sync issue owners with CODEOWNERS updates in a release. */ codeownersAutoSync?: boolean; }; export type ProjectPost = { /** * The name for the project. */ name: string; /** * Uniquely identifies a project and is used for the interface. * If not provided, it is automatically generated from the name. */ slug?: string | null; /** * The platform for the project. */ platform?: string | null; /** * * Defaults to true where the behavior is to alert the user on every new * issue. Setting this to false will turn this off and the user must create * their own alerts to be notified of new issues. * */ default_rules?: boolean; }; export type ProjectProfilingProfileResponse = { [key: string]: unknown; }; export type ProjectRepoLinkRequest = { /** * The ID of the repository to link. */ repositoryId: number; }; export type ProjectRepoLinkResponse = { /** * ID of the link between the project and the repository. */ id: string; /** * ID of the project. */ projectId: string; /** * ID of the repository. */ repositoryId: string; /** * How the link was made: manual, scm_onboarding, auto_event, auto_name_match or seer_preference. */ source: string; /** * Whether the request created the link. False when it already existed. */ created: boolean; }; export type ProjectRepoListResponse = Array<{ /** * ID of the link between the project and the repository */ id: string; /** * ID of the repository's integration */ integrationId: string | null; /** * ID of the repository in the provider */ externalId: string | null; /** * ID of the project */ projectId: string; /** * ID of the repository */ repositoryId: string; /** * Name of the repository */ repoName: string; /** * How the link was made: manual, scm_onboarding, auto_event, auto_name_match or seer_preference */ source: string; /** * Key of the repository's provider, such as github */ providerKey: string | null; /** * Number of code mappings between the project and the repository */ mappingCount?: number; }>; export type ProjectSeerRepositoriesResponse = Array<{ /** * ID of the link between the project and the repository */ id: string; /** * ID of the repository */ repositoryId: string; /** * ID of the organization */ organizationId: string; /** * Provider of the repository, such as integrations:github */ provider: string; /** * Owner of the repository */ owner: string; /** * Name of the repository, without the owner */ name: string; /** * ID of the repository in the provider */ externalId: string; /** * ID of the repository's integration */ integrationId: string | null; /** * Branch Seer uses instead of the default branch. Null when not set */ branchName: string | null; /** * Deprecated. Branches Seer uses for issues with matching event tags */ branchOverrides: Array<{ /** * ID of the branch override */ id: string; /** * Event tag key to match */ tagName: string; /** * Event tag value to match */ tagValue: string; /** * Branch Seer uses for issues whose events have this tag value */ branchName: string; }>; /** * Instructions Seer follows when working with the repository */ instructions: string | null; }>; export type ProjectSizeStatusCheckRulesResponse = { /** * Whether size status checks are enabled for the project */ enabled: boolean; /** * Rules that make the size status check fail */ rules: Array<{ /** * ID of the rule */ id: string; /** * Size metric the rule checks: install_size or download_size */ metric: 'install_size' | 'download_size'; /** * How the rule measures size: absolute (size in bytes), absolute_diff (increase in bytes) or relative_diff (increase in percent) */ measurement: 'absolute' | 'absolute_diff' | 'relative_diff'; /** * Threshold that makes the status check fail, in bytes or percent depending on measurement */ value: string; /** * Search query that selects the builds the rule applies to */ filterQuery: string; /** * filterQuery parsed into filters. Null when the query can't be parsed */ filters: Array<{ /** * Build field the filter checks: app_id, build_configuration_name, git_head_ref or platform_name */ key: 'app_id' | 'build_configuration_name' | 'git_head_ref' | 'platform_name'; /** * Conditions on the field */ conditions: Array<{ /** * How the condition compares the build's value, such as equals or startsWith */ operator: 'contains' | 'endsWith' | 'equals' | 'in' | 'matches' | 'notContains' | 'notEndsWith' | 'notEquals' | 'notIn' | 'notMatches' | 'notStartsWith' | 'startsWith'; /** * Values the condition compares against */ values: Array; }>; }> | null; /** * Components the rule applies to, such as main_artifact or all_artifacts */ artifactType: 'main_artifact' | 'watch_artifact' | 'android_dynamic_feature_artifact' | 'app_clip_artifact' | 'all_artifacts'; }>; }; export type ProjectSnapshotStatusCheckRulesResponse = { /** * Whether snapshot status checks are enabled for the project */ enabled: boolean; /** * Which snapshot changes make the status check fail */ rules: { /** * Whether the snapshot status check fails when snapshots are added */ failOnAdded: boolean; /** * Whether the snapshot status check fails when snapshots are removed */ failOnRemoved: boolean; /** * Whether the snapshot status check fails when snapshots change */ failOnChanged: boolean; /** * Whether the snapshot status check fails when snapshots are renamed */ failOnRenamed: boolean; }; }; export type ProjectStats = Array>; export type ProjectSummary = { /** * Latest deploy for each environment, keyed by environment name, with its release version and finish time. Omitted when collapsed */ latestDeploys?: { [key: string]: { [key: string]: string; }; } | null; /** * Requested project options, keyed by option name. Only included when options are requested */ options?: { [key: string]: unknown; }; /** * Counts of non-transaction events per interval over the requested stats period, as [timestamp, count] pairs. Only included when a stats period is requested */ stats?: Array> | { [key: string]: number; }; /** * Counts of transactions per interval over the requested stats period, as [timestamp, count] pairs. Only included when transaction stats are requested */ transactionStats?: Array>; /** * Crash-free session rates for the current and previous stats period. Only included when session stats are requested */ sessionStats?: { /** * Crash-free rate in the current period, as a percentage. Null when there's no session data */ currentCrashFreeRate: number | null; /** * Crash-free rate in the previous period, as a percentage. Null when there's no session data */ previousCrashFreeRate: number | null; /** * Whether the project has release health (session) data */ hasHealthData: boolean; }; /** * ID of the project */ id: string; /** * Slug of the project */ slug: string; /** * Name of the project */ name: string; /** * Platform of the project */ platform: string | null; /** * When the project was created (ISO 8601) */ dateCreated: string; /** * Whether the requesting user bookmarked the project */ isBookmarked: boolean; /** * Whether the requesting user is a member of a team with access to the project */ isMember: boolean; /** * Features enabled for the project */ features: Array; /** * When the project received its first event (ISO 8601) */ firstEvent: string | null; /** * Whether the project has sent transactions */ firstTransactionEvent: boolean; /** * Scopes the requesting user has on the project through team membership and organization role */ access: Array; /** * Whether the requesting user has access to the project */ hasAccess: boolean; /** * Whether the project has sent user feedback */ hasFeedbacks: boolean; /** * Whether the project has sent feature flags */ hasFlags: boolean; /** * Whether the project has sent an event with a minified stack trace */ hasMinifiedStackTrace: boolean; /** * Whether the project has cron monitors */ hasMonitors: boolean; /** * Whether the project has sent user feedback from the user feedback widget */ hasNewFeedbacks: boolean; /** * Whether the project has sent profiles */ hasProfiles: boolean; /** * Whether the project has sent replays */ hasReplays: boolean; /** * Whether the project has sent sessions */ hasSessions: boolean; /** * Whether the project has sent HTTP request spans used by Insights */ hasInsightsHttp: boolean; /** * Whether the project has sent database spans used by Insights */ hasInsightsDb: boolean; /** * Whether the project has sent asset spans used by Insights */ hasInsightsAssets: boolean; /** * Whether the project has sent app start spans used by Insights */ hasInsightsAppStart: boolean; /** * Whether the project has sent screen load spans used by Insights */ hasInsightsScreenLoad: boolean; /** * Whether the project has sent web vitals spans used by Insights */ hasInsightsVitals: boolean; /** * Whether the project has sent cache spans used by Insights */ hasInsightsCaches: boolean; /** * Whether the project has sent queue spans used by Insights */ hasInsightsQueues: boolean; /** * Whether the project has sent AI agent spans used by Insights */ hasInsightsAgentMonitoring: boolean; /** * Whether the project has sent MCP spans used by Insights */ hasInsightsMCP: boolean; /** * Whether the project has sent logs. Always true outside sentry.io */ hasLogs: boolean; /** * Whether the project has sent trace metrics. Always true outside sentry.io */ hasTraceMetrics: boolean; /** * First team with access to the project; use teams instead */ team: { /** * ID of the team */ id: string; /** * Name of the team */ name: string; /** * Slug of the team */ slug: string; } | null; /** * Teams with access to the project */ teams: Array<{ /** * ID of the team */ id: string; /** * Name of the team */ name: string; /** * Slug of the team */ slug: string; }>; /** * Platforms seen in the project's events */ platforms: Array; /** * Whether the project has received user reports */ hasUserReports: boolean; /** * Environments seen in the project's events */ environments: Array; /** * Latest release of the project */ latestRelease: { /** * Version of the release */ version: string; } | null; }; export type ProjectTeamsResponse = Array<{ /** * Team ID */ id: string; /** * Team slug, unique within the organization */ slug: string; /** * Display name of the team */ name: string; /** * When the team was created (ISO 8601) */ dateCreated: string | null; /** * Whether the requesting user is a member of the team */ isMember: boolean; /** * The requesting user's role in the team */ teamRole: string | null; /** * Team flags. idp:provisioned is true when the team is managed by an identity provider through SCIM */ flags: { [key: string]: boolean; }; /** * Scopes the requesting user has on the team through their team role. Empty if the user has no access */ access: Array; /** * Whether the requesting user can access the team, as a member, through open membership or through an organization role with access to all teams */ hasAccess: boolean; /** * Whether the requesting user has a pending request to join the team */ isPending: boolean; /** * Number of members in the team */ memberCount: number; /** * Team avatar */ avatar: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; }>; export type ProjectWithTeam = { /** * Counts of non-transaction events per interval over the requested stats period, as [timestamp, count] pairs. Only included when a stats period is requested */ stats?: Array> | { [key: string]: number; }; /** * Counts of transactions per interval over the requested stats period, as [timestamp, count] pairs. Only included when transaction stats are requested */ transactionStats?: Array>; /** * Crash-free session rates for the current and previous stats period. Only included when session stats are requested */ sessionStats?: { /** * Crash-free rate in the current period, as a percentage. Null when there's no session data */ currentCrashFreeRate: number | null; /** * Crash-free rate in the previous period, as a percentage. Null when there's no session data */ previousCrashFreeRate: number | null; /** * Whether the project has release health (session) data */ hasHealthData: boolean; }; /** * ID of the project */ id: string; /** * Slug of the project */ slug: string; /** * Name of the project */ name: string; /** * Platform of the project */ platform: string | null; /** * When the project was created (ISO 8601) */ dateCreated: string; /** * Whether the requesting user bookmarked the project */ isBookmarked: boolean; /** * Whether the requesting user is a member of a team with access to the project */ isMember: boolean; /** * Features enabled for the project */ features: Array; /** * When the project received its first event (ISO 8601) */ firstEvent: string | null; /** * Whether the project has sent transactions */ firstTransactionEvent: boolean; /** * Scopes the requesting user has on the project through team membership and organization role */ access: Array; /** * Whether the requesting user has access to the project */ hasAccess: boolean; /** * Whether the project has sent user feedback */ hasFeedbacks: boolean; /** * Whether the project has sent feature flags */ hasFlags: boolean; /** * Whether the project has sent an event with a minified stack trace */ hasMinifiedStackTrace: boolean; /** * Whether the project has cron monitors */ hasMonitors: boolean; /** * Whether the project has sent user feedback from the user feedback widget */ hasNewFeedbacks: boolean; /** * Whether the project has sent profiles */ hasProfiles: boolean; /** * Whether the project has sent replays */ hasReplays: boolean; /** * Whether the project has sent sessions */ hasSessions: boolean; /** * Whether the project has sent HTTP request spans used by Insights */ hasInsightsHttp: boolean; /** * Whether the project has sent database spans used by Insights */ hasInsightsDb: boolean; /** * Whether the project has sent asset spans used by Insights */ hasInsightsAssets: boolean; /** * Whether the project has sent app start spans used by Insights */ hasInsightsAppStart: boolean; /** * Whether the project has sent screen load spans used by Insights */ hasInsightsScreenLoad: boolean; /** * Whether the project has sent web vitals spans used by Insights */ hasInsightsVitals: boolean; /** * Whether the project has sent cache spans used by Insights */ hasInsightsCaches: boolean; /** * Whether the project has sent queue spans used by Insights */ hasInsightsQueues: boolean; /** * Whether the project has sent AI agent spans used by Insights */ hasInsightsAgentMonitoring: boolean; /** * Whether the project has sent MCP spans used by Insights */ hasInsightsMCP: boolean; /** * Whether the project has sent logs. Always true outside sentry.io */ hasLogs: boolean; /** * Whether the project has sent trace metrics. Always true outside sentry.io */ hasTraceMetrics: boolean; /** * Whether this is the Sentry install's own internal project */ isInternal: boolean; /** * Whether the project is public */ isPublic: boolean; /** * Avatar of the project. Always a letter avatar */ avatar: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Hex color code for the project, derived from its slug unless set explicitly */ color: string; /** * Status of the project: active, deleted, or unknown */ status: string; /** * First team with access to the project; use teams instead */ team?: { /** * ID of the team */ id: string; /** * Name of the team */ name: string; /** * Slug of the team */ slug: string; }; /** * Teams with access to the project */ teams: Array<{ /** * ID of the team */ id: string; /** * Name of the team */ name: string; /** * Slug of the team */ slug: string; }>; }; export type Query = { /** * The fields that can be requested for the query. */ fields?: Array | null; /** * How to order the query results. Must be something in the `field` list. */ orderby?: string | null; /** * Columns to group results by. */ groupby?: Array | null; /** * Filters results by using [query syntax](/product/sentry-basics/search/). */ query?: string | null; /** * The visualizations to be plotted on the chart. */ visualize?: Array<{ chartType?: number; yAxes: Array; /** * Ordered fill(...) and smooth(...) expressions. Use an empty list to clear the pipeline. */ transformations?: Array; }> | null; /** * The visualizations to be plotted on the chart. */ aggregateField?: Array<{ chartType?: number; yAxes?: Array; /** * Ordered fill(...) and smooth(...) expressions. Use an empty list to clear the pipeline. */ transformations?: Array; groupBy?: string; }> | null; /** * How to order the query results. Must be something in the `aggregateField` list, excluding equations. */ aggregateOrderby?: string | null; /** * The mode of the query. * * * `samples` * * `aggregate` */ mode: 'samples' | 'aggregate'; /** * The metric configuration (only used for metrics dataset). */ metric?: { /** * The name of the metric. */ name: string; /** * The type of the metric. * * * `counter` * * `gauge` * * `distribution` */ type: 'counter' | 'gauge' | 'distribution'; /** * The unit of the metric (e.g., 'millisecond'). See MetricUnit in relay */ unit?: string | null; } | null; /** * Whether the query should be case insensitive. */ caseInsensitive?: boolean; }; /** * Applies a rate limit to cap the number of errors accepted during a given time window. To * disable entirely set `rateLimit` to null. * ```json * { * "rateLimit": { * "window": 7200, // time in seconds * "count": 1000 // error cap * } * } * ``` */ export type RateLimit = { count?: number | null; window?: number | null; }; export type ReleaseFile = { /** * The new name (full path) of the file. */ name: string; }; export type ReleaseFileResponse = { /** * ID of the release file. Files that only exist in an artifact bundle get a base64-encoded ID built from the dist and file name */ id: string | Blob | File | null; /** * Name of the file, usually its URL */ name: string; /** * Name of the distribution the file belongs to */ dist: string | null; /** * HTTP headers stored with the file, such as Content-Type and Sourcemap */ headers: { [key: string]: string; }; /** * Size of the file in bytes */ size: number | null; /** * SHA-1 checksum of the file */ sha1: string | null; /** * When the file was uploaded (ISO 8601) */ dateCreated: string; }; /** * Documents the multipart/form-data body of the release file upload endpoints. * * The endpoints read the upload directly off ``request.data``; this serializer * exists to describe the request body in the OpenAPI schema. */ export type ReleaseFileUpload = { /** * The multipart-encoded file contents to upload. */ file: string; /** * The name (full path) the file will be referenced as, e.g. the full web URI of a JavaScript file. Defaults to the uploaded file's name. */ name?: string; /** * The name of the distribution to associate the file with. */ dist?: string; /** * Headers to attach to the file, each formatted as a `"key:value"` string (for example, to define a content type). May be supplied multiple times. */ header?: Array; }; export type ReleaseHeadCommit = { commit: string; repository: string; previousCommit?: string | null; }; export type ReleaseHeadCommitSerializerDeprecated = { currentId: string; repository: string; previousId?: string | null; }; export type ReleaseSerializerWithProjects = { /** * A version identifier for this release. Can be a version number, a commit hash, and so on. */ version: string; /** * A list of project slugs that are involved in this release. */ projects: Array; /** * An optional commit reference. This is useful if a tagged version has been provided. */ ref?: string | null; /** * A URL that points to the release. For instance, this can be the path to an online interface to the source code, such as a GitHub URL. */ url?: string | null; /** * An optional date that indicates when the release went live. If not provided the current time is used. */ dateReleased?: string | null; /** * An optional list of commit data to be associated. Very long lists are truncated to the most recent commits. */ commits?: Array<{ id: string; repository?: string | null; message?: string | null; author_name?: string | null; author_email?: string | null; timestamp?: string | null; patch_set?: Array<{ path: string; type: string; }> | null; }>; /** * The status of the release. Can be `open` or `archived`. */ status?: string; /** * The username of the user to set as the release owner. */ owner?: string; /** * (Deprecated) Use `refs` instead. An optional list of head commits to associate with the release, one per repository. */ headCommits?: Array<{ currentId: string; repository: string; previousId?: string | null; }>; /** * An optional list of commit references, one per repository, used to associate commits with the release. */ refs?: Array<{ commit: string; repository: string; previousCommit?: string | null; }>; }; export type ReleaseThresholdStatusResponse = { [key: string]: Array<{ /** * ID of the threshold */ id?: string; /** * When the threshold was created (ISO 8601) */ date_added?: string; /** * Environment the threshold applies to. Null for all environments */ environment?: { /** * ID of the environment */ id: string; /** * Name of the environment */ name: string; } | null; /** * Project the threshold applies to */ project?: { /** * Counts of non-transaction events per interval over the requested stats period, as [timestamp, count] pairs. Only included when a stats period is requested */ stats?: Array> | { [key: string]: number; }; /** * Counts of transactions per interval over the requested stats period, as [timestamp, count] pairs. Only included when transaction stats are requested */ transactionStats?: Array>; /** * Crash-free session rates for the current and previous stats period. Only included when session stats are requested */ sessionStats?: { /** * Crash-free rate in the current period, as a percentage. Null when there's no session data */ currentCrashFreeRate: number | null; /** * Crash-free rate in the previous period, as a percentage. Null when there's no session data */ previousCrashFreeRate: number | null; /** * Whether the project has release health (session) data */ hasHealthData: boolean; }; /** * ID of the project */ id: string; /** * Slug of the project */ slug: string; /** * Name of the project */ name: string; /** * Platform of the project */ platform: string | null; /** * When the project was created (ISO 8601) */ dateCreated: string; /** * Whether the requesting user bookmarked the project */ isBookmarked: boolean; /** * Whether the requesting user is a member of a team with access to the project */ isMember: boolean; /** * Features enabled for the project */ features: Array; /** * When the project received its first event (ISO 8601) */ firstEvent: string | null; /** * Whether the project has sent transactions */ firstTransactionEvent: boolean; /** * Scopes the requesting user has on the project through team membership and organization role */ access: Array; /** * Whether the requesting user has access to the project */ hasAccess: boolean; /** * Whether the project has sent user feedback */ hasFeedbacks: boolean; /** * Whether the project has sent feature flags */ hasFlags: boolean; /** * Whether the project has sent an event with a minified stack trace */ hasMinifiedStackTrace: boolean; /** * Whether the project has cron monitors */ hasMonitors: boolean; /** * Whether the project has sent user feedback from the user feedback widget */ hasNewFeedbacks: boolean; /** * Whether the project has sent profiles */ hasProfiles: boolean; /** * Whether the project has sent replays */ hasReplays: boolean; /** * Whether the project has sent sessions */ hasSessions: boolean; /** * Whether the project has sent HTTP request spans used by Insights */ hasInsightsHttp: boolean; /** * Whether the project has sent database spans used by Insights */ hasInsightsDb: boolean; /** * Whether the project has sent asset spans used by Insights */ hasInsightsAssets: boolean; /** * Whether the project has sent app start spans used by Insights */ hasInsightsAppStart: boolean; /** * Whether the project has sent screen load spans used by Insights */ hasInsightsScreenLoad: boolean; /** * Whether the project has sent web vitals spans used by Insights */ hasInsightsVitals: boolean; /** * Whether the project has sent cache spans used by Insights */ hasInsightsCaches: boolean; /** * Whether the project has sent queue spans used by Insights */ hasInsightsQueues: boolean; /** * Whether the project has sent AI agent spans used by Insights */ hasInsightsAgentMonitoring: boolean; /** * Whether the project has sent MCP spans used by Insights */ hasInsightsMCP: boolean; /** * Whether the project has sent logs. Always true outside sentry.io */ hasLogs: boolean; /** * Whether the project has sent trace metrics. Always true outside sentry.io */ hasTraceMetrics: boolean; /** * Whether this is the Sentry install's own internal project */ isInternal: boolean; /** * Whether the project is public */ isPublic: boolean; /** * Avatar of the project. Always a letter avatar */ avatar: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Hex color code for the project, derived from its slug unless set explicitly */ color: string; /** * Status of the project: active, deleted, or unknown */ status: string; }; /** * Version of the release the threshold was checked against */ release?: string; /** * Metric the threshold checks: total_error_count, new_issue_count, unhandled_issue_count, regressed_issue_count, failure_rate, crash_free_session_rate or crash_free_user_rate */ threshold_type?: 'total_error_count' | 'new_issue_count' | 'unhandled_issue_count' | 'regressed_issue_count' | 'failure_rate' | 'crash_free_session_rate' | 'crash_free_user_rate'; /** * Whether the threshold fails when the metric goes over or under value */ trigger_type?: 'over' | 'under'; /** * Value the metric is compared with */ value?: number; /** * Time after the release or deploy during which the threshold is checked, in seconds */ window_in_seconds?: number; /** * End of the window the threshold was checked in (ISO 8601) */ end: string; /** * Whether the metric stayed within the threshold */ is_healthy: boolean; /** * Key that groups thresholds of the same project and release */ key: string; /** * Slug of the project */ project_slug: string; /** * ID of the project */ project_id: number; /** * Start of the window the threshold was checked in: the latest deploy, or the release date (ISO 8601) */ start: string; /** * Value of the metric in the window. Null when it couldn't be computed */ metric_value: number | number | null; }>; }; export type ReplayCounts = { [key: string]: number; }; export type ReplayDeletionJobCreate = { data: { rangeStart: string; rangeEnd: string; environments: Array; query: string | null; }; }; export type ReplayDeletionJobCreateData = { rangeStart: string; rangeEnd: string; environments: Array; query: string | null; }; /** * Allows parameters to be defined in snake case, but passed as camel case. * * Errors are output in camel case. */ export type RepositoryProjectPathConfig = { /** * The ID of a repository belonging to the installed integration. */ repository_id: number; /** * The ID of the project to associate with the code mapping. */ project_id: number; /** * The path prefix to replace in stack trace filenames. */ stack_root: string; /** * The repository path prefix to substitute for the stack trace prefix. */ source_root: string; /** * The default branch to use when resolving source files. May be empty for Perforce. */ default_branch?: string; }; export type RepositorySettings = { /** * List of repository IDs to update settings for. Maximum 1000 repositories. */ repositoryIds: Array; /** * Whether code review is enabled for these repositories */ enabledCodeReview?: boolean; /** * List of triggers for code review */ codeReviewTriggers?: Array<'on_new_commit' | 'on_ready_for_review'>; }; /** * Span page plus conversation-level metadata. */ export type RetrieveOrganizationAiConversationResponse = { /** * ID of the conversation */ conversationId: string; /** * Stored title of the conversation. Null when it has none yet */ title: string | null; /** * Projects the conversation's spans belong to */ projects: Array<{ /** * ID of the project */ id: number; /** * Name of the project */ name: string; /** * Slug of the project */ slug: string; }>; /** * URL of the conversation in Sentry */ webUrl: string; /** * Spans recorded for the conversation, in start-time order */ spans: Array<{ [key: string]: unknown; }>; /** * Aggregate stats for the conversation. Only returned on the first page */ stats: { /** * When the conversation's last AI span happened, as a Unix timestamp in milliseconds */ endTimestamp: number; /** * Number of AI spans whose status isn't ok, cancelled or unknown */ errors: number; /** * Total duration of the conversation's LLM calls in milliseconds */ generationDuration: number; /** * Number of input tokens used by LLM calls */ inputTokens: number; /** * Number of LLM calls */ llmCalls: number; /** * Number of output tokens used by LLM calls */ outputTokens: number; /** * When the conversation's first AI span happened, as a Unix timestamp in milliseconds */ startTimestamp: number; /** * Number of tool calls */ toolCalls: number; /** * Number of failed tool calls */ toolErrors: number; /** * Names of the tools called, sorted */ toolNames: Array; /** * Total cost of LLM calls */ totalCost: number; /** * Total number of tokens used by LLM calls */ totalTokens: number; /** * Number of input tokens read from the cache */ cacheReadTokens: number; /** * Number of input tokens written to the cache */ cacheWriteTokens: number; /** * Names of the tools used by spans with errors */ errorToolNames: Array; /** * Number of reasoning tokens */ reasoningTokens: number; /** * Cost of cache-read tokens */ cacheReadCost: number; /** * Cost of cache-write tokens */ cacheWriteCost: number; /** * Cost of reasoning tokens */ reasoningCost: number; /** * Token usage and cost per model */ usageByModel: Array<{ /** * Name of the model */ model: string | null; /** * Number of LLM calls to the model */ llmCalls: number; /** * Number of input tokens, including cache-read and cache-write tokens */ inputTokens: number; /** * Number of output tokens */ outputTokens: number; /** * Total number of tokens */ totalTokens: number; /** * Number of input tokens read from the cache */ cacheReadTokens: number; /** * Number of input tokens written to the cache */ cacheWriteTokens: number; /** * Number of reasoning tokens */ reasoningTokens: number; /** * Cost of input tokens, including cache-read and cache-write costs */ inputCost: number; /** * Cost of output tokens, including reasoning cost */ outputCost: number; /** * Cost of cache-read tokens */ cacheReadCost: number; /** * Cost of cache-write tokens */ cacheWriteCost: number; /** * Cost of reasoning tokens */ reasoningCost: number; /** * Total cost */ totalCost: number; }>; } | null; /** * IDs of other conversations recorded in the same traces, such as sub-agents. Only returned on the first page */ relatedConversationIds?: Array; }; export type ScimListResourceTypesResponse = { /** * SCIM schema URIs of the response, always the ListResponse message schema */ schemas: Array; /** * Total number of resources that match the query */ totalResults: number; /** * 1-based index of the first resource in this page */ startIndex: number; /** * Number of resources in this page */ itemsPerPage: number; /** * SCIM resource types Sentry supports */ Resources: Array<{ /** * SCIM schema URIs of the resource type, always the ResourceType schema */ schemas: Array; /** * ID of the resource type: User or Group */ id: string; /** * Name of the resource type: User or Group */ name: string; /** * What the resource type maps to in Sentry */ description: string; /** * Path of the resource type's endpoint, relative to the SCIM base URL */ endpoint: string; /** * URI of the resource type's core schema */ schema: string; /** * Resource type and location of the resource type */ meta: { /** * SCIM resource type of the resource, such as Schema or ResourceType */ resourceType: string; /** * Absolute URL of the resource */ location: string; }; }>; }; export type ScimListResponseEnvelopeScimMemberIndexResponse = { /** * SCIM schema URIs of the response, always the ListResponse message schema */ schemas: Array; /** * Total number of resources that match the query */ totalResults: number; /** * 1-based index of the first resource in this page */ startIndex: number; /** * Number of resources in this page */ itemsPerPage: number; /** * Organization members in this page, as SCIM users */ Resources: Array<{ /** * Always true when included. Sentry doesn't use this field, but SCIM expects it */ active?: boolean; /** * SCIM schema URIs of the resource */ schemas: Array; /** * Organization member ID */ id: string; /** * Email address of the member */ userName: string; /** * Name of the member */ name: { /** * Given name. Always N/A, because Sentry doesn't store it */ givenName: string; /** * Family name. Always N/A, because Sentry doesn't store it */ familyName: string; }; /** * Email addresses of the member */ emails: Array<{ /** * Whether this is the primary email address. Always true */ primary: boolean; /** * Email address */ value: string; /** * Email type. Always work */ type: string; }>; /** * SCIM resource metadata */ meta: { /** * SCIM resource type, such as User or Group */ resourceType: string; }; /** * ID of the member's organization role */ sentryOrgRole: string; }>; }; export type ScimListResponseEnvelopeScimTeamIndexResponse = { /** * SCIM schema URIs of the response, always the ListResponse message schema */ schemas: Array; /** * Total number of resources that match the query */ totalResults: number; /** * 1-based index of the first resource in this page */ startIndex: number; /** * Number of resources in this page */ itemsPerPage: number; /** * Teams in this page, as SCIM groups */ Resources: Array<{ /** * SCIM schema URIs of the resource */ schemas: Array; /** * Team ID */ id: string; /** * Display name of the team */ displayName: string; /** * SCIM resource metadata */ meta: { /** * SCIM resource type, such as User or Group */ resourceType: string; }; /** * Members of the team. Included only when members are requested */ members?: Array<{ /** * Organization member ID */ value: string; /** * Email address of the member */ display: string; }>; }>; }; export type ScimMemberProvision = { /** * The SAML field used for email. */ userName: string; /** * The organization role of the member. If unspecified, this will be * set to the organization's default role. The options are: * * * `billing` - Can manage payment and compliance details. * * `member` - Can view and act on events, as well as view most other data within the organization. * * `manager` - Has full management access to all teams and projects. Can also manage * the organization's membership. * * `admin` - Can edit global integrations, manage projects, and add/remove teams. * They automatically assume the Team Admin role for teams they join. * Note: This role can no longer be assigned in Business and Enterprise plans. Use `TeamRoles` instead. * */ sentryOrgRole?: 'billing' | 'member' | 'manager' | 'admin'; }; export type ScimPatchOperation = { op: string; value: unknown; path?: string; }; export type ScimPatchRequest = { /** * A list of operations to perform. Currently, the only valid operation is setting * a member's `active` attribute to false, after which the member will be permanently deleted. * ```json * { * "Operations": [{ * "op": "replace", * "path": "active", * "value": False * }] * } * ``` * */ Operations: Array<{ op: string; value: unknown; path?: string; }>; /** * SCIM schema URIs identifying the request format. Must be the PatchOp schema. */ schemas?: Array; }; export type ScimResourceTypeResponse = { /** * SCIM schema URIs of the resource type, always the ResourceType schema */ schemas: Array; /** * ID of the resource type: User or Group */ id: string; /** * Name of the resource type: User or Group */ name: string; /** * What the resource type maps to in Sentry */ description: string; /** * Path of the resource type's endpoint, relative to the SCIM base URL */ endpoint: string; /** * URI of the resource type's core schema */ schema: string; /** * Resource type and location of the resource type */ meta: { /** * SCIM resource type of the resource, such as Schema or ResourceType */ resourceType: string; /** * Absolute URL of the resource */ location: string; }; }; export type ScimSchemaResponse = { /** * SCIM schema URIs of the response, always the Schema schema */ schemas: Array; /** * URI of the schema */ id: string; /** * Name of the schema: User or Group */ name: string; /** * What the schema's resources map to in Sentry */ description: string; /** * Attributes of the schema, as SCIM attribute definitions */ attributes: Array<{ /** * Name of the attribute */ name: string; /** * Data type of the attribute */ type: 'string' | 'boolean' | 'decimal' | 'integer' | 'dateTime' | 'reference' | 'complex' | 'binary'; /** * Whether the attribute holds a list of values */ multiValued: boolean; /** * What the attribute holds */ description: string; /** * Whether the attribute is required */ required: boolean; /** * Whether string values are compared case-sensitively */ caseExact?: boolean; /** * Values the attribute is expected to take */ canonicalValues?: Array; /** * Whether and when the attribute can be changed */ mutability: 'readOnly' | 'readWrite' | 'immutable' | 'writeOnly'; /** * When the attribute is returned in a response */ returned: 'always' | 'never' | 'default' | 'request'; /** * Scope in which values are unique */ uniqueness?: 'none' | 'server' | 'global'; /** * Attributes of a complex attribute */ subAttributes?: Array<{ /** * Name of the attribute */ name: string; /** * Data type of the attribute */ type: 'string' | 'boolean' | 'decimal' | 'integer' | 'dateTime' | 'reference' | 'complex' | 'binary'; /** * Whether the attribute holds a list of values */ multiValued: boolean; /** * What the attribute holds */ description: string; /** * Whether the attribute is required */ required: boolean; /** * Whether string values are compared case-sensitively */ caseExact?: boolean; /** * Values the attribute is expected to take */ canonicalValues?: Array; /** * Whether and when the attribute can be changed */ mutability: 'readOnly' | 'readWrite' | 'immutable' | 'writeOnly'; /** * When the attribute is returned in a response */ returned: 'always' | 'never' | 'default' | 'request'; /** * Scope in which values are unique */ uniqueness?: 'none' | 'server' | 'global'; }>; }>; /** * Resource type and location of the schema */ meta: { /** * SCIM resource type of the resource, such as Schema or ResourceType */ resourceType: string; /** * Absolute URL of the resource */ location: string; }; }; export type ScimServiceProviderConfigResponse = { /** * SCIM schema URIs of the response, always the ServiceProviderConfig schema */ schemas: Array; /** * URL of Sentry's SCIM documentation */ documentationUri: string; /** * Whether PATCH operations are supported */ patch: { /** * Whether Sentry supports the feature */ supported: boolean; }; /** * Bulk operation support */ bulk: { /** * Whether Sentry supports bulk operations. Always false */ supported: boolean; /** * Maximum number of operations in a bulk request. Always 0 */ maxOperations: number; /** * Maximum payload size of a bulk request in bytes. Always 0 */ maxPayloadSize: number; }; /** * Filter support */ filter: { /** * Whether Sentry supports filtering. Only the eq operator is supported */ supported: boolean; /** * Maximum number of resources returned in a page */ maxResults: number; }; /** * Whether password changes are supported */ changePassword: { /** * Whether Sentry supports the feature */ supported: boolean; }; /** * Whether sorting is supported */ sort: { /** * Whether Sentry supports the feature */ supported: boolean; }; /** * Whether ETags are supported */ etag: { /** * Whether Sentry supports the feature */ supported: boolean; }; /** * Authentication schemes the SCIM API accepts */ authenticationSchemes: Array<{ /** * Type of the authentication scheme, always oauthbearertoken */ type: string; /** * Name of the authentication scheme */ name: string; /** * How to authenticate with the scheme */ description: string; /** * URL of the scheme's specification */ specUri: string; /** * Whether this is the preferred authentication scheme */ primary: boolean; }>; /** * Resource type and location of the configuration */ meta: { /** * SCIM resource type of the resource, such as Schema or ResourceType */ resourceType: string; /** * Absolute URL of the resource */ location: string; }; }; export type ScimTeamPatchOperation = { op: string; value?: { [key: string]: unknown; }; path?: string; }; export type ScimTeamPatchRequest = { /** * SCIM schema URIs identifying the request format. Must be the PatchOp schema. */ schemas: Array; /** * The list of operations to perform. Valid operations are: * * Renaming a team: * ```json * { * "Operations": [{ * "op": "replace", * "value": { * "id": 23, * "displayName": "newName" * } * }] * } * ``` * * Adding a member to a team: * ```json * { * "Operations": [{ * "op": "add", * "path": "members", * "value": [ * { * "value": 23, * "display": "testexample@example.com" * } * ] * }] * } * ``` * * Removing a member from a team: * ```json * { * "Operations": [{ * "op": "remove", * "path": "members[value eq "23"]" * }] * } * ``` * * Replacing an entire member set of a team: * ```json * { * "Operations": [{ * "op": "replace", * "path": "members", * "value": [ * { * "value": 23, * "display": "testexample2@sentry.io" * }, * { * "value": 24, * "display": "testexample3@sentry.io" * } * ] * }] * } * ``` * */ Operations: Array<{ op: string; value?: { [key: string]: unknown; }; path?: string; }>; }; export type ScimTeamRequestBody = { /** * The slug of the team that is shown in the UI. */ displayName: string; }; /** * Response containing list of actively used LLM model names from Seer. */ export type SeerModelsResponse = { /** * Names of the LLM models Seer uses */ models: Array; }; /** * Allows parameters to be defined in snake case, but passed as camel case. * * Errors are output in camel case. */ export type SeerProjectRepoCreate = { /** * The ID of an active, supported repository in the organization. */ repository_id: number; /** * The branch Seer works from in this repository. Leave empty to use the repository's default branch. */ branch_name?: string | null; /** * Extra context Seer should use when working with this repository. */ instructions?: string | null; /** * Deprecated. Branch overrides selected by matching tags. * * @deprecated */ branch_overrides?: Array<{ /** * Event tag key to match. */ tag_name: string; /** * Event tag value to match. */ tag_value: string; /** * The repository branch Seer uses for issues whose events have this tag value. */ branch_name: string; }>; }; /** * Allows parameters to be defined in snake case, but passed as camel case. * * Errors are output in camel case. */ export type SeerProjectReposBulk = { /** * Repositories to link and configure for Seer in this project. */ repos: Array<{ /** * The ID of an active, supported repository in the organization. */ repository_id: number; /** * The branch Seer works from in this repository. Leave empty to use the repository's default branch. */ branch_name?: string | null; /** * Extra context Seer should use when working with this repository. */ instructions?: string | null; /** * Deprecated. Branch overrides selected by matching tags. * * @deprecated */ branch_overrides?: Array<{ /** * Event tag key to match. */ tag_name: string; /** * Event tag value to match. */ tag_value: string; /** * The repository branch Seer uses for issues whose events have this tag value. */ branch_name: string; }>; }>; }; export type SentryAppComponentsResponse = Array<{ /** * UUID of the component */ uuid: string; /** * Type of the component, such as issue-link, stacktrace-link or alert-rule-action */ type: string; /** * UI schema of the component */ schema: { /** * Type of the element */ type: 'issue-link'; /** * Form for linking an existing issue */ link: { /** * Path on the integration's server that Sentry sends requests to */ uri: string; /** * Fields that the user must fill in */ required_fields: Array<{ /** * Type of the element */ type: 'select'; /** * Label of the form field */ label: string; /** * Name of the form field, which keys its value in the submitted form */ name: string; /** * Whether the field loads its options from uri as the user types */ async?: boolean; /** * Whether to skip loading the options from uri when the form opens */ skip_load_on_open?: boolean; /** * Whether more than one option can be selected */ multiple?: boolean; /** * Path on the integration's server that Sentry sends requests to */ uri?: string; /** * Options to choose from, each a two-item array */ options?: Array<[ string | number, string | number ]>; /** * Names of the fields that this field's options depend on */ depends_on?: Array; /** * Options to choose from, loaded from options or from uri. Each is a two-item array */ choices?: Array<[ string | number, string | number ]>; /** * Value selected by default, from the options loaded from uri */ defaultValue?: string; } | { /** * Type of the element */ type: 'text'; /** * Label of the form field */ label: string; /** * Name of the form field, which keys its value in the submitted form */ name: string; /** * Issue field that prefills the field */ default?: 'issue.title' | 'issue.description'; } | { /** * Type of the element */ type: 'textarea'; /** * Label of the form field */ label: string; /** * Name of the form field, which keys its value in the submitted form */ name: string; /** * Issue field that prefills the field */ default?: 'issue.title' | 'issue.description'; }>; /** * Fields that the user can fill in */ optional_fields?: Array<{ /** * Type of the element */ type: 'select'; /** * Label of the form field */ label: string; /** * Name of the form field, which keys its value in the submitted form */ name: string; /** * Whether the field loads its options from uri as the user types */ async?: boolean; /** * Whether to skip loading the options from uri when the form opens */ skip_load_on_open?: boolean; /** * Whether more than one option can be selected */ multiple?: boolean; /** * Path on the integration's server that Sentry sends requests to */ uri?: string; /** * Options to choose from, each a two-item array */ options?: Array<[ string | number, string | number ]>; /** * Names of the fields that this field's options depend on */ depends_on?: Array; /** * Options to choose from, loaded from options or from uri. Each is a two-item array */ choices?: Array<[ string | number, string | number ]>; /** * Value selected by default, from the options loaded from uri */ defaultValue?: string; } | { /** * Type of the element */ type: 'text'; /** * Label of the form field */ label: string; /** * Name of the form field, which keys its value in the submitted form */ name: string; /** * Issue field that prefills the field */ default?: 'issue.title' | 'issue.description'; } | { /** * Type of the element */ type: 'textarea'; /** * Label of the form field */ label: string; /** * Name of the form field, which keys its value in the submitted form */ name: string; /** * Issue field that prefills the field */ default?: 'issue.title' | 'issue.description'; }>; }; /** * Form for creating an issue */ create: { /** * Path on the integration's server that Sentry sends requests to */ uri: string; /** * Fields that the user must fill in */ required_fields: Array<{ /** * Type of the element */ type: 'select'; /** * Label of the form field */ label: string; /** * Name of the form field, which keys its value in the submitted form */ name: string; /** * Whether the field loads its options from uri as the user types */ async?: boolean; /** * Whether to skip loading the options from uri when the form opens */ skip_load_on_open?: boolean; /** * Whether more than one option can be selected */ multiple?: boolean; /** * Path on the integration's server that Sentry sends requests to */ uri?: string; /** * Options to choose from, each a two-item array */ options?: Array<[ string | number, string | number ]>; /** * Names of the fields that this field's options depend on */ depends_on?: Array; /** * Options to choose from, loaded from options or from uri. Each is a two-item array */ choices?: Array<[ string | number, string | number ]>; /** * Value selected by default, from the options loaded from uri */ defaultValue?: string; } | { /** * Type of the element */ type: 'text'; /** * Label of the form field */ label: string; /** * Name of the form field, which keys its value in the submitted form */ name: string; /** * Issue field that prefills the field */ default?: 'issue.title' | 'issue.description'; } | { /** * Type of the element */ type: 'textarea'; /** * Label of the form field */ label: string; /** * Name of the form field, which keys its value in the submitted form */ name: string; /** * Issue field that prefills the field */ default?: 'issue.title' | 'issue.description'; }>; /** * Fields that the user can fill in */ optional_fields?: Array<{ /** * Type of the element */ type: 'select'; /** * Label of the form field */ label: string; /** * Name of the form field, which keys its value in the submitted form */ name: string; /** * Whether the field loads its options from uri as the user types */ async?: boolean; /** * Whether to skip loading the options from uri when the form opens */ skip_load_on_open?: boolean; /** * Whether more than one option can be selected */ multiple?: boolean; /** * Path on the integration's server that Sentry sends requests to */ uri?: string; /** * Options to choose from, each a two-item array */ options?: Array<[ string | number, string | number ]>; /** * Names of the fields that this field's options depend on */ depends_on?: Array; /** * Options to choose from, loaded from options or from uri. Each is a two-item array */ choices?: Array<[ string | number, string | number ]>; /** * Value selected by default, from the options loaded from uri */ defaultValue?: string; } | { /** * Type of the element */ type: 'text'; /** * Label of the form field */ label: string; /** * Name of the form field, which keys its value in the submitted form */ name: string; /** * Issue field that prefills the field */ default?: 'issue.title' | 'issue.description'; } | { /** * Type of the element */ type: 'textarea'; /** * Label of the form field */ label: string; /** * Name of the form field, which keys its value in the submitted form */ name: string; /** * Issue field that prefills the field */ default?: 'issue.title' | 'issue.description'; }>; }; } | { /** * Type of the element */ type: 'alert-rule-action'; /** * Title of the element */ title: string; /** * Settings form of the alert rule action */ settings: { /** * Type of the element */ type: 'alert-rule-settings'; /** * Text shown above the settings form */ description?: string; /** * Path on the integration's server that Sentry sends requests to */ uri: string; /** * Fields that the user must fill in */ required_fields: Array<{ /** * Type of the element */ type: 'select'; /** * Label of the form field */ label: string; /** * Name of the form field, which keys its value in the submitted form */ name: string; /** * Whether the field loads its options from uri as the user types */ async?: boolean; /** * Whether to skip loading the options from uri when the form opens */ skip_load_on_open?: boolean; /** * Whether more than one option can be selected */ multiple?: boolean; /** * Path on the integration's server that Sentry sends requests to */ uri?: string; /** * Options to choose from, each a two-item array */ options?: Array<[ string | number, string | number ]>; /** * Names of the fields that this field's options depend on */ depends_on?: Array; /** * Options to choose from, loaded from options or from uri. Each is a two-item array */ choices?: Array<[ string | number, string | number ]>; /** * Value selected by default, from the options loaded from uri */ defaultValue?: string; } | { /** * Type of the element */ type: 'text'; /** * Label of the form field */ label: string; /** * Name of the form field, which keys its value in the submitted form */ name: string; /** * Issue field that prefills the field */ default?: 'issue.title' | 'issue.description'; } | { /** * Type of the element */ type: 'textarea'; /** * Label of the form field */ label: string; /** * Name of the form field, which keys its value in the submitted form */ name: string; /** * Issue field that prefills the field */ default?: 'issue.title' | 'issue.description'; }>; /** * Fields that the user can fill in */ optional_fields?: Array<{ /** * Type of the element */ type: 'select'; /** * Label of the form field */ label: string; /** * Name of the form field, which keys its value in the submitted form */ name: string; /** * Whether the field loads its options from uri as the user types */ async?: boolean; /** * Whether to skip loading the options from uri when the form opens */ skip_load_on_open?: boolean; /** * Whether more than one option can be selected */ multiple?: boolean; /** * Path on the integration's server that Sentry sends requests to */ uri?: string; /** * Options to choose from, each a two-item array */ options?: Array<[ string | number, string | number ]>; /** * Names of the fields that this field's options depend on */ depends_on?: Array; /** * Options to choose from, loaded from options or from uri. Each is a two-item array */ choices?: Array<[ string | number, string | number ]>; /** * Value selected by default, from the options loaded from uri */ defaultValue?: string; } | { /** * Type of the element */ type: 'text'; /** * Label of the form field */ label: string; /** * Name of the form field, which keys its value in the submitted form */ name: string; /** * Issue field that prefills the field */ default?: 'issue.title' | 'issue.description'; } | { /** * Type of the element */ type: 'textarea'; /** * Label of the form field */ label: string; /** * Name of the form field, which keys its value in the submitted form */ name: string; /** * Issue field that prefills the field */ default?: 'issue.title' | 'issue.description'; }>; }; } | { /** * Type of the element */ type: 'issue-media'; /** * Title of the element */ title: string; /** * Media elements to show */ elements: Array<{ /** * Type of the element */ type: 'header'; /** * Text of the header */ text: string; } | { /** * Type of the element */ type: 'markdown'; /** * Markdown text */ text: string; } | { /** * Type of the element */ type: 'image'; /** * URL of the image */ url: string; /** * Alternative text of the image */ alt?: string; } | { /** * Type of the element */ type: 'video'; /** * URL of the video */ url: string; }>; } | { /** * Type of the element */ type: 'stacktrace-link'; /** * Path on the integration's server that Sentry sends requests to */ uri: string; /** * URL of the link, built from uri with the installation and project */ url?: string; }; /** * Error from loading the component. Empty when there's none */ error: string | { /** * Error message */ detail?: string; /** * Additional public details about the error, if any */ context?: { [key: string]: unknown; }; }; /** * Custom integration that provides the component */ sentryApp: { /** * UUID of the custom integration */ uuid: string; /** * Slug of the custom integration */ slug: string; /** * Name of the custom integration */ name: string; /** * Avatars of the custom integration */ avatars: Array<{ /** * Avatar type: `default` or `upload` */ avatarType: string; /** * Unique identifier of the uploaded avatar file, or an empty string if none is set */ avatarUuid: string; /** * Absolute URL of the avatar image */ avatarUrl: string; /** * Whether this is the color logo (`true`) or the simple icon (`false`) */ color: boolean; /** * Kind of image: `logo` for the color logo or `icon` for the simple icon */ photoType: string; }>; }; /** * UUID of the integration installation the component belongs to */ installationUuid?: string; }>; export type SentryAppDetailsResponse = { /** * Allowed origins for CORS */ allowedOrigins: Array; /** * Avatars of the custom integration */ avatars: Array<{ /** * Avatar type: `default` or `upload` */ avatarType: string; /** * Unique identifier of the uploaded avatar file, or an empty string if none is set */ avatarUuid: string; /** * Absolute URL of the avatar image */ avatarUrl: string; /** * Whether this is the color logo (`true`) or the simple icon (`false`) */ color: boolean; /** * Kind of image: `logo` for the color logo or `icon` for the simple icon */ photoType: string; }>; /** * Resources the integration's webhooks are subscribed to, such as issue */ events: Array; /** * Webhook events the integration is subscribed to, such as issue.resolved */ webhookEvents: Array; /** * Features the integration supports. Empty for internal integrations */ featureData: Array; /** * Whether the integration can be used in alert rules */ isAlertable: boolean; /** * Metadata of the integration */ metadata: string; /** * Name of the custom integration */ name: string; /** * UI components schema used to render the integration's UI elements */ schema: string; /** * Permission scopes for API access */ scopes: Array; /** * Slug of the custom integration */ slug: string; /** * Status of the integration */ status: 'unpublished' | 'published' | 'internal' | 'publish_request_inprogress' | 'deletion_in_progress'; /** * UUID of the custom integration */ uuid: string; /** * Whether installations of the integration must be verified */ verifyInstall: boolean; /** * Custom headers sent with every webhook request, as Header-Name: value pairs. Values are masked */ webhookHeaders: Array; /** * Whether the integration is disabled */ isDisabled?: boolean; /** * Author of the integration */ author?: string | null; /** * Description of the integration */ overview?: string | null; /** * Popularity score of the integration */ popularity?: number | null; /** * URL to redirect to after installation */ redirectUrl?: string | null; /** * Webhook destination URL */ webhookUrl?: string | null; /** * OAuth client secret. Only shown to authorized users within 5 minutes of creation, and masked otherwise */ clientSecret?: string | null; /** * When the integration was published (ISO 8601). Only set for published integrations */ datePublished?: string; /** * OAuth client ID. Only included for members of the owner organization */ clientId?: string; /** * Organization that owns the integration. Only included for members of the owner organization */ owner?: { /** * ID of the organization that owns the integration */ id: number; /** * Slug of the organization that owns the integration */ slug: string; }; }; export type SentryAppExternalRequestOptionsResponse = { /** * Select options returned by the installed app. Each choice is a `[value, label]` pair */ choices: Array>; /** * Value of the option to select by default, if the app returned one */ defaultValue?: string; }; export type SentryAppInstallationExternalIssueActions = { /** * The numeric Sentry issue ID. */ groupId: string; /** * The action to perform: `link` or `create`. */ action: 'link' | 'create'; /** * The relative callback URI from the app's issue-link form. */ uri: string; [key: string]: unknown; }; export type SentryAppParser = { /** * The name of the custom integration. */ name: string; /** * The custom integration's permission scopes for API access. */ scopes: Array | null; /** * The custom integration's author. */ author?: string | null; /** * Webhook events the custom integration is subscribed to. */ events?: Array | null; /** * The list of features that the custom integration supports. */ features?: Array<0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 11 | 12 | ''> | null; /** * The UI components schema, used to render the custom integration's configuration UI elements. See our [schema docs](https://docs.sentry.io/organization/integrations/integration-platform/ui-components/) for more information. */ schema?: { [key: string]: unknown; } | null; /** * The webhook destination URL. */ webhookUrl?: string | null; /** * The post-installation redirect URL. */ redirectUrl?: string | null; /** * Whether or not the integration is internal only. False means the integration is public. */ isInternal?: boolean; /** * Marks whether or not the custom integration can be used in an alert rule. */ isAlertable?: boolean; /** * The custom integration's description. */ overview?: string | null; /** * Whether or not an installation of the custom integration should be verified. */ verifyInstall?: boolean; /** * The list of allowed origins for CORS. */ allowedOrigins?: Array; /** * Custom headers sent with every webhook request. Each entry is a single 'Header-Name: value' pair. */ webhookHeaders?: Array; }; export type SessionsQueryResult = { /** * Start of the queried time range (ISO 8601) */ start: string; /** * End of the queried time range (ISO 8601) */ end: string; /** * Start of each interval in the series (ISO 8601) */ intervals: Array; /** * Result for each group */ groups: Array<{ /** * Values of the group-by columns of the group */ by: { /** * ID of the project */ project?: number; /** * Version of the release */ release?: string; /** * Name of the environment */ environment?: string; /** * Status of the sessions: healthy, abnormal, crashed or errored */ 'session.status'?: string; }; /** * Value of each requested field for each interval, by field */ series: { [key: string]: Array; }; /** * Value of each requested field over the whole time range, by field */ totals: { [key: string]: number | null; }; }>; /** * Search query that filtered the sessions */ query: string; }; export type SharedIssueResponse = { /** * Function or module where the issue occurs */ culprit: string | null; /** * ID of the issue */ id: string; /** * Whether the issue includes unhandled events. Null when it isn't known */ isUnhandled: boolean | null; /** * Issue category, such as error or performance */ issueCategory: string; /** * URL of the issue in Sentry */ permalink: string; /** * Short ID of the issue, such as PROJECT-1A */ shortId: string | null; /** * Title of the issue */ title: string; /** * Latest event of the issue, without its user, tags, contexts, SDK, extra data, processing errors or breadcrumbs. Null when the issue has no stored event */ latestEvent: { /** * ID of the event */ id: string; /** * ID of the issue the event belongs to */ groupID: string | null; /** * ID of the event */ eventID: string; /** * ID of the project the event belongs to */ projectID: string; /** * Event message */ message: string | null; /** * Event title */ title: string; /** * Source location of the event, such as a file and line */ location: string | null; /** * Platform of the event, such as python or javascript */ platform: string | null; /** * When Sentry received the event (ISO 8601) */ dateReceived: string | null; /** * Size of the event payload in bytes */ size: number | null; /** * Event interfaces, such as exception, breadcrumbs and request, each with a type and data */ entries: Array; /** * Distribution of the release the event was sent with */ dist: string | null; /** * Modules loaded when the event occurred, keyed by module name with their versions */ packages: { [key: string]: string | null; }; /** * Event type, such as error, default or transaction */ type: 'default' | 'error' | 'csp' | 'nel' | 'hpkp' | 'expectct' | 'expectstaple' | 'transaction' | 'generic' | 'feedback'; /** * Event metadata */ metadata: { /** * Title of default and issue platform events */ title?: string; /** * Exception value, or the subtitle of an issue */ value?: string; /** * Exception type of error events */ type?: string; /** * Whether the SDK fabricated the exception to carry a stacktrace, so its type is a platform label rather than what went wrong */ synthetic?: boolean; /** * File of the frame where the error happened */ filename?: string; /** * Function of the frame where the error happened */ function?: string; /** * Message of default, security and feedback events */ message?: string; /** * URI that a CSP report blocked */ uri?: string; /** * CSP directive that was violated */ directive?: string; /** * Host name of HPKP, Expect-CT and Expect-Staple reports */ origin?: string; /** * Name of the person who sent user feedback */ name?: string; /** * Email of the person who sent user feedback */ contact_email?: string; /** * Where user feedback came from, such as a widget */ source?: string; /** * Whether the stacktrace has in-app frames, system frames or both */ in_app_frame_mix?: string; /** * Whether a crash report was dropped because the issue already stores the most allowed */ stripped_crash?: boolean; /** * SDK of the issue's first event */ sdk?: { /** * Name of the SDK, or unknown */ name: string; /** * Name of the SDK, normalized for grouping */ name_normalized: string; }; /** * Severity score of the issue's first event */ severity?: number; /** * Why the severity score is what it is */ severity_reason?: string; /** * Priority the issue was created with */ initial_priority?: number; }; /** * Issue occurrence data for events in non-error issues, such as performance issues. Null otherwise */ occurrence: { /** * ID of the occurrence */ id: string; /** * ID of the project */ projectId: number; /** * ID of the event the occurrence belongs to */ eventId: string; /** * Fingerprint that groups the occurrence into an issue */ fingerprint: Array; /** * Title of the issue */ issueTitle: string; /** * Subtitle of the issue */ subtitle: string; /** * ID of the resource the occurrence is about, such as a monitor. Null when not set */ resourceId: string | null; /** * Evidence to show on the issue */ evidenceDisplay: Array<{ /** * Name of the evidence */ name: string; /** * Value of the evidence */ value: string; /** * Whether to show the evidence first. At most one evidence of an occurrence is important */ important: boolean; }>; /** * When the problem was detected, as a Unix timestamp in seconds */ detectionTime: number; /** * Level of the occurrence, such as error or warning */ level: string | null; /** * Culprit of the occurrence */ culprit: string | null; /** * Actor the issue is assigned to, such as user:1 or team:1 */ assignee: string | null; /** * Initial priority of the issue: 25 low, 50 medium or 75 high */ priority: number | null; /** * Group type ID of metric issues, always 8001 */ type: 8001; /** * Detector and query that created the occurrence */ evidenceData: { /** * ID of the detector that created the occurrence */ detectorId: number; /** * ID of the metric alert rule the detector replaces. Null when there's none */ alertId: number | null; /** * Metric value that triggered the detector, or the anomaly detection result for dynamic detectors */ value: number | { /** * Metric value the anomaly detection model scored */ value: number; /** * ID of the data source that produced the value */ sourceId: string; /** * ID of the query subscription that produced the value */ subscriptionId: string; /** * When the value was measured */ timestamp: string; } | null; /** * ID of the query subscription that sent the data */ dataPacketSourceId: string; /** * Conditions of the detector */ conditions: Array<{ /** * ID of the detector condition */ id: number; /** * Type of the condition, such as gt, lt or anomaly_detection */ type: string; /** * Threshold the value is compared with, or the anomaly detection settings for an anomaly_detection condition */ comparison: number | { /** * How sensitive the anomaly detection is */ sensitivity: 'low' | 'medium' | 'high'; /** * Seasonality the anomaly detection model uses */ seasonality: 'auto' | 'hourly' | 'daily' | 'weekly' | 'hourly_daily' | 'hourly_weekly' | 'hourly_daily_weekly' | 'daily_weekly'; /** * Direction of anomalies to detect: 0 above, 1 below, 2 above and below */ thresholdType: 0 | 1 | 2; }; /** * Priority the detector reports when the condition matches: 0 ok, 25 low, 50 medium or 75 high */ conditionResult: number; }>; /** * Configuration of the detector */ config: { /** * How the detector evaluates the metric: static thresholds, percent change or dynamic anomaly detection */ detectionType: 'static' | 'percent' | 'dynamic'; /** * Time window in seconds that a percent change detector compares with */ comparisonDelta?: number | null; }; /** * Data sources of the detector */ dataSources: Array<{ /** * ID of the data source */ id: string; /** * ID of the organization */ organizationId: string; /** * Type of the data source, such as snuba_query_subscription */ type: string; /** * ID of the source object, such as the query subscription */ sourceId: string; /** * Query subscription the data source reads */ queryObj: { /** * ID of the query subscription */ id: string; /** * Status of the subscription: 0 active, 1 creating, 2 updating, 3 deleting or 4 disabled */ status: number; /** * ID of the subscription in Snuba. Null while it's being created */ subscription: string | null; /** * Query the subscription runs */ snubaQuery: { /** * ID of the query */ id: string; /** * Dataset the query runs on, such as events or events_analytics_platform */ dataset: string; /** * Search query that filters the data */ query: string; /** * Aggregate function the query computes, such as count() */ aggregate: string; /** * Time window of the query in seconds */ timeWindow: number; /** * Environment the query is limited to. Null for all environments */ environment: string | null; /** * Event types the query includes, such as error or transaction */ eventTypes: Array; /** * How sampled data is extrapolated, unknown, none, client_and_server_weighted or server_weighted. Null when not set */ extrapolationMode: string | null; }; }; }>; }; } | { /** * ID of the occurrence */ id: string; /** * ID of the project */ projectId: number; /** * ID of the event the occurrence belongs to */ eventId: string; /** * Fingerprint that groups the occurrence into an issue */ fingerprint: Array; /** * Title of the issue */ issueTitle: string; /** * Subtitle of the issue */ subtitle: string; /** * ID of the resource the occurrence is about, such as a monitor. Null when not set */ resourceId: string | null; /** * Evidence to show on the issue */ evidenceDisplay: Array<{ /** * Name of the evidence */ name: string; /** * Value of the evidence */ value: string; /** * Whether to show the evidence first. At most one evidence of an occurrence is important */ important: boolean; }>; /** * When the problem was detected, as a Unix timestamp in seconds */ detectionTime: number; /** * Level of the occurrence, such as error or warning */ level: string | null; /** * Culprit of the occurrence */ culprit: string | null; /** * Actor the issue is assigned to, such as user:1 or team:1 */ assignee: string | null; /** * Initial priority of the issue: 25 low, 50 medium or 75 high */ priority: number | null; /** * Group type ID of the occurrence */ type: number; /** * Data of the occurrence. Its keys depend on the group type */ evidenceData: { [key: string]: unknown; }; } | null; /** * Metadata about changes Sentry made to the event's fields, such as data scrubbing or trimming */ _meta: { [key: string]: unknown; }; /** * Crash report attachment of the event, if any */ crashFile?: string | null; /** * Function or module that caused the event */ culprit?: string | null; /** * When the event occurred (ISO 8601) */ dateCreated?: string; /** * Grouping hashes calculated for the event */ fingerprints?: Array; /** * Grouping configuration used to group the event */ groupingConfig?: { /** * ID of the grouping config, such as newstyle:2026-01-20 */ id: string; /** * Stack trace rules of the project, as an encoded string */ enhancements: string; }; /** * When the transaction started, as a Unix timestamp in seconds */ startTimestamp?: number; /** * When the transaction ended, as a Unix timestamp in seconds */ endTimestamp?: number; /** * Measurements recorded for the transaction, such as web vitals, keyed by name */ measurements?: { [key: string]: { /** * Measurement value */ value: number; /** * Unit of the measurement, such as millisecond */ unit?: string | null; }; } | null; /** * Span operation breakdowns for the transaction, keyed by breakdown name */ breakdowns?: { [key: string]: { [key: string]: { /** * Measurement value */ value: number; /** * Unit of the measurement, such as millisecond */ unit?: string | null; }; }; } | null; } | null; /** * Project of the issue */ project: { /** * Slug of the project */ slug: string; /** * Name of the project */ name: string; /** * Color of the project, as a hex code such as `#bf6e3f` */ color: string; /** * Always empty for a shared issue's project */ features: Array; /** * Organization the project belongs to */ organization: { /** * Slug of the organization */ slug: string; /** * Name of the organization */ name: string; }; }; }; export type ShortIdLookupResponse = { /** * Slug of the organization */ organizationSlug: string; /** * Slug of the issue's project */ projectSlug: string; /** * ID of the issue */ groupId: string; /** * The issue */ group: { /** * Whether the issue includes unhandled events */ isUnhandled?: boolean; /** * Total number of events in the issue */ count?: string; /** * Number of users affected by the issue */ userCount?: number; /** * When the issue was first seen (ISO 8601) */ firstSeen?: string | null; /** * When the issue was last seen (ISO 8601) */ lastSeen?: string | null; /** * Additional data derived for the issue. Only included when requested with expand */ derivedData?: { /** * Action that blocks progress on the issue: none, approve_root_cause, approve_plan, approve_code_changes or merge_pr */ blocker: string; /** * How far the issue is toward resolution: identified, assigned, diagnosed, fix_proposed or fix_applied */ progress: string; /** * Status of the issue from its action log: open or closed */ status: string; /** * Number of times the issue was viewed */ viewCount: number; /** * Whether an open pull request is linked to the issue */ hasOpenFixPr: boolean; /** * Whether the issue has an assignee */ isAssigned: boolean; /** * Whether a root cause was found for the issue */ hasRootCause: boolean; /** * Furthest Autofix step completed: none, root_cause, solution, code_changes, pr_created or pr_iteration */ lastCompletedAutofixStep: string; /** * When the issue's progress last advanced (ISO 8601) */ lastProgressedAt: string | null; /** * The issue's impact assessment, or null when no assessment is available */ impact?: { /** * Estimated per-occurrence impact on the end user's capability from 0 to 100 */ score: number | null; /** * Impact level derived from the assessment score */ level: 'super_low' | 'low' | 'moderate' | 'high' | 'super_high' | null; /** * Human-readable description of the capability affected by the issue */ description: string; /** * Evidence-backed claims supporting the impact assessment */ citations: Array<{ /** * Stable identifier for the evidence supporting this claim */ reference: string; /** * Concise explanation of what the cited evidence establishes */ claim: string; /** * The category of evidence cited, such as an event, trace, replay, or log */ source: string; }>; /** * ID of the issue event used to generate the impact assessment */ sourceEventId: string; } | null; }; /** * ID of the issue */ id: string; /** * ID used in the issue's public share URL. Null when the issue isn't shared */ shareId: string | null; /** * Short ID of the issue, such as PROJECT-1A */ shortId: string | null; /** * Title of the issue */ title: string; /** * Function or module where the issue occurs */ culprit: string | null; /** * URL of the issue in Sentry */ permalink: string; /** * Logger of the issue's events */ logger: string | null; /** * Severity level of the issue */ level: 'sample' | 'debug' | 'info' | 'warning' | 'error' | 'fatal' | 'unknown'; /** * Issue status */ status: 'resolved' | 'ignored' | 'pending_deletion' | 'pending_merge' | 'reprocessing' | 'unresolved'; /** * Details of the issue's status, such as when an ignore expires or which release resolves it */ statusDetails: { /** * Number of additional events after which the issue stops being ignored */ ignoreCount?: number | null; /** * When the issue stops being ignored (ISO 8601) */ ignoreUntil?: string | null; /** * Number of additional affected users after which the issue stops being ignored */ ignoreUserCount?: number | null; /** * Time window in minutes for ignoreUserCount */ ignoreUserWindow?: number | null; /** * Time window in minutes for ignoreCount */ ignoreWindow?: number | null; /** * User who ignored or resolved the issue */ actor?: { /** * SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access */ identities?: Array<{ /** * SSO identity ID */ id: string; /** * User's identifier at the auth provider */ name: string; /** * Organization the auth provider belongs to */ organization: { /** * Organization slug */ slug: string; /** * Organization name */ name: string; }; /** * Auth provider of the identity */ provider: { /** * Auth provider key, such as google or saml2 */ id: string; /** * Display name of the auth provider */ name: string; }; /** * When the identity was last verified by signing in through the auth provider */ dateVerified: string; /** * When the identity was last synced from the auth provider */ dateSynced: string; }>; /** * User avatar */ avatar?: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Two-factor authenticators of the user, without backup methods such as recovery codes */ authenticators?: Array<{ /** * Authenticator ID */ id: string; /** * Authenticator type, such as totp, sms, u2f or recovery */ type: string; /** * Display name of the authenticator type */ name: string; /** * When the authenticator was added */ dateCreated: string; /** * When the authenticator was last used, or null */ dateUsed: string | null; }>; /** * Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization */ canReset2fa?: boolean; /** * User ID */ id: string; /** * Display name: the user's name, or their email or username if no name is set */ name: string; /** * Username */ username: string; /** * Primary email address */ email: string; /** * Gravatar URL for the primary email address */ avatarUrl: string; /** * Whether the account is active */ isActive: boolean; /** * Whether the account is suspended. Suspended users can't sign in */ isSuspended: boolean; /** * Whether the user has a password set */ hasPasswordAuth: boolean; /** * Whether the account is managed, which stops the user from changing their username, password and similar details */ isManaged: boolean; /** * When the account was created */ dateJoined: string; /** * When the user last signed in, or null */ lastLogin: string | null; /** * Whether the user has two-factor authentication enabled */ has2fa: boolean; /** * When the user was last active, or null */ lastActive: string | null; /** * Whether the user is a superuser */ isSuperuser: boolean; /** * Whether the user has staff status */ isStaff: boolean; /** * Deprecated. Always an empty object */ experiments: { [key: string]: string; }; /** * Email addresses of the user. Only included for the requesting user or superusers; empty otherwise */ emails: Array<{ /** * Email ID */ id: string; /** * Email address */ email: string; /** * Whether the email address is verified */ is_verified: boolean; }>; } | null; /** * Whether the issue is resolved in the next release */ inNextRelease?: boolean; /** * Version of the release the issue is resolved in */ inRelease?: string; /** * Commit the issue is resolved in */ inCommit?: string; /** * Number of events still waiting to be reprocessed */ pendingEvents?: number; /** * Reprocessing progress details */ info?: { /** * When reprocessing started (ISO 8601) */ dateCreated: string; /** * Number of events in the issue when reprocessing started */ syncCount: number; /** * Number of events to reprocess, at most the requested maximum */ totalEvents: number; } | null; }; /** * Substatus of the issue, such as ongoing, regressed or escalating */ substatus: 'archived_until_escalating' | 'archived_until_condition_met' | 'archived_forever' | 'escalating' | 'ongoing' | 'regressed' | 'new' | null; /** * Whether the issue is shared publicly */ isPublic: boolean; /** * Platform of the issue's events */ platform: string | null; /** * Priority of the issue: high, medium or low */ priority: 'low' | 'medium' | 'high' | null; /** * When the priority was last set manually, which stops automatic priority updates (ISO 8601) */ priorityLockedAt: string | null; /** * Seer's score for how likely the issue is to be fixable */ seerFixabilityScore: number | null; /** * When Seer Autofix was last triggered for the issue (ISO 8601) */ seerAutofixLastTriggered: string | null; /** * When the Seer explorer agent last completed an Autofix step for the issue (ISO 8601) */ seerExplorerAutofixLastTriggered: string | null; /** * Project the issue belongs to */ project: { /** * ID of the project */ id: string; /** * Name of the project */ name: string; /** * Slug of the project */ slug: string; /** * Platform of the project */ platform: string | null; }; /** * Event type of the issue, such as error or default */ type: 'default' | 'error' | 'csp' | 'nel' | 'hpkp' | 'expectct' | 'expectstaple' | 'transaction' | 'generic' | 'feedback'; /** * Issue type, such as error or performance_n_plus_one_db_queries */ issueType: string; /** * Issue category, such as error or performance */ issueCategory: string; /** * Issue metadata */ metadata: { /** * Title of default and issue platform events */ title?: string; /** * Exception value, or the subtitle of an issue */ value?: string; /** * Exception type of error events */ type?: string; /** * Whether the SDK fabricated the exception to carry a stacktrace, so its type is a platform label rather than what went wrong */ synthetic?: boolean; /** * File of the frame where the error happened */ filename?: string; /** * Function of the frame where the error happened */ function?: string; /** * Message of default, security and feedback events */ message?: string; /** * URI that a CSP report blocked */ uri?: string; /** * CSP directive that was violated */ directive?: string; /** * Host name of HPKP, Expect-CT and Expect-Staple reports */ origin?: string; /** * Name of the person who sent user feedback */ name?: string; /** * Email of the person who sent user feedback */ contact_email?: string; /** * Where user feedback came from, such as a widget */ source?: string; /** * Whether the stacktrace has in-app frames, system frames or both */ in_app_frame_mix?: string; /** * Whether a crash report was dropped because the issue already stores the most allowed */ stripped_crash?: boolean; /** * SDK of the issue's first event */ sdk?: { /** * Name of the SDK, or unknown */ name: string; /** * Name of the SDK, normalized for grouping */ name_normalized: string; }; /** * Severity score of the issue's first event */ severity?: number; /** * Why the severity score is what it is */ severity_reason?: string; /** * Priority the issue was created with */ initial_priority?: number; }; /** * Number of comments on the issue */ numComments: number; /** * User or team the issue is assigned to */ assignedTo: { /** * Whether the actor is a user or a team */ type: 'user' | 'team'; /** * ID of the user or team */ id: string; /** * Display name of the user, or slug of the team */ name: string; /** * Email address of the user. Only set for users */ email?: string; } | null; /** * Whether the requesting user bookmarked the issue */ isBookmarked: boolean; /** * Whether the requesting user is subscribed to the issue */ isSubscribed: boolean; /** * Why the requesting user is subscribed to the issue */ subscriptionDetails: { /** * Whether the requesting user turned off notifications for the issue */ disabled?: boolean; /** * Why the requesting user is subscribed: commented, assigned, bookmarked, changed_status, mentioned or unknown */ reason?: string; } | null; /** * Whether the requesting user has seen the issue since it last occurred */ hasSeen: boolean; /** * External issues linked to the issue */ annotations: Array<{ /** * Display name of the linked external issue */ displayName: string; /** * URL of the linked external issue */ url: string; }>; }; /** * Short ID of the issue, such as PROJECT-1A */ shortId: string; }; export type SizeAnalysisResponse = { /** * ID of the build */ buildId: string; /** * State of the size analysis */ state: 'PENDING' | 'PROCESSING' | 'COMPLETED' | 'FAILED' | 'NOT_RAN'; /** * App details of the build */ appInfo: { /** * App identifier of the build */ appId: string | null; /** * App name */ name: string | null; /** * Version of the build */ version: string | null; /** * Build number */ buildNumber: number | null; /** * Type of the build file */ artifactType: 'XCARCHIVE' | 'AAB' | 'APK' | null; /** * When the build was uploaded (ISO 8601) */ dateAdded: string | null; /** * When the build was built (ISO 8601) */ dateBuilt: string | null; }; /** * Version control details of the build. Null when the build has none */ gitInfo: { /** * Commit SHA of the build */ headSha: string | null; /** * Commit SHA of the base the build is compared against */ baseSha: string | null; /** * Version control provider, such as github */ provider: string | null; /** * Repository name of the head commit */ headRepoName: string | null; /** * Repository name of the base commit */ baseRepoName: string | null; /** * Branch or ref of the head commit */ headRef: string | null; /** * Branch or ref of the base commit */ baseRef: string | null; /** * Pull request number */ prNumber: number | null; } | null; /** * Error code when the size analysis failed or didn't run */ errorCode: string | null; /** * Error message when the size analysis failed or didn't run */ errorMessage: string | null; /** * Download size of the build in bytes. Only set when the analysis completed */ downloadSize: number | null; /** * Install size of the build in bytes. Only set when the analysis completed */ installSize: number | null; /** * How long the analysis took, in seconds. Only set when the analysis completed */ analysisDuration: number | null; /** * Version of the analyzer that produced the results */ analysisVersion: string | null; /** * ID of the base build the build is compared against. Null when there's no comparison */ baseBuildId: string | null; /** * App details of the base build. Null when there's no comparison */ baseAppInfo: { /** * App identifier of the build */ appId: string | null; /** * App name */ name: string | null; /** * Version of the build */ version: string | null; /** * Build number */ buildNumber: number | null; /** * Type of the build file */ artifactType: 'XCARCHIVE' | 'AAB' | 'APK' | null; /** * When the build was uploaded (ISO 8601) */ dateAdded: string | null; /** * When the build was built (ISO 8601) */ dateBuilt: string | null; } | null; /** * Suggestions for reducing the build's size. Null when there are none */ insights: { /** * Platform of the build */ platform: 'android'; /** * Files that are duplicated */ duplicateFiles: { /** * Potential savings of the insight in bytes */ totalSavings: number; /** * Groups of files the insight applies to */ groups: Array<{ /** * Name of the group */ name: string; /** * Files in the group */ files: Array<{ /** * Path of the file inside the build */ filePath: string; /** * Potential savings for the file in bytes */ totalSavings: number; }>; /** * Potential savings for the group in bytes */ totalSavings: number; }>; } | null; /** * Images that can be converted to WebP */ webpOptimization: { /** * Potential savings of the insight in bytes */ totalSavings: number; /** * Files the insight applies to */ files: Array<{ /** * Path of the file inside the build */ filePath: string; /** * Potential savings for the file in bytes */ totalSavings: number; }>; } | null; /** * Large images */ largeImages: { /** * Potential savings of the insight in bytes */ totalSavings: number; /** * Files the insight applies to */ files: Array<{ /** * Path of the file inside the build */ filePath: string; /** * Potential savings for the file in bytes */ totalSavings: number; }>; } | null; /** * Large videos */ largeVideos: { /** * Potential savings of the insight in bytes */ totalSavings: number; /** * Files the insight applies to */ files: Array<{ /** * Path of the file inside the build */ filePath: string; /** * Potential savings for the file in bytes */ totalSavings: number; }>; } | null; /** * Large audio files */ largeAudio: { /** * Potential savings of the insight in bytes */ totalSavings: number; /** * Files the insight applies to */ files: Array<{ /** * Path of the file inside the build */ filePath: string; /** * Potential savings for the file in bytes */ totalSavings: number; }>; } | null; /** * Hermes bytecode files that contain debug info */ hermesDebugInfo: { /** * Potential savings of the insight in bytes */ totalSavings: number; /** * Files the insight applies to */ files: Array<{ /** * Path of the file inside the build */ filePath: string; /** * Potential savings for the file in bytes */ totalSavings: number; }>; } | null; /** * Native libraries for architectures other than arm64-v8a */ multipleNativeLibraryArchs: { /** * Potential savings of the insight in bytes */ totalSavings: number; /** * Files the insight applies to */ files: Array<{ /** * Path of the file inside the build */ filePath: string; /** * Potential savings for the file in bytes */ totalSavings: number; }>; } | null; } | { /** * Platform of the build */ platform: 'apple'; /** * Files that are duplicated */ duplicateFiles: { /** * Potential savings of the insight in bytes */ totalSavings: number; /** * Groups of files the insight applies to */ groups: Array<{ /** * Name of the group */ name: string; /** * Files in the group */ files: Array<{ /** * Path of the file inside the build */ filePath: string; /** * Potential savings for the file in bytes */ totalSavings: number; }>; /** * Potential savings for the group in bytes */ totalSavings: number; }>; } | null; /** * Large images */ largeImages: { /** * Potential savings of the insight in bytes */ totalSavings: number; /** * Files the insight applies to */ files: Array<{ /** * Path of the file inside the build */ filePath: string; /** * Potential savings for the file in bytes */ totalSavings: number; }>; } | null; /** * Large audio files */ largeAudios: { /** * Potential savings of the insight in bytes */ totalSavings: number; /** * Files the insight applies to */ files: Array<{ /** * Path of the file inside the build */ filePath: string; /** * Potential savings for the file in bytes */ totalSavings: number; }>; } | null; /** * Large videos */ largeVideos: { /** * Potential savings of the insight in bytes */ totalSavings: number; /** * Files the insight applies to */ files: Array<{ /** * Path of the file inside the build */ filePath: string; /** * Potential savings for the file in bytes */ totalSavings: number; }>; } | null; /** * Binaries with debug sections or symbols that can be stripped */ stripBinary: { /** * Potential savings of the insight in bytes */ totalSavings: number; /** * Binaries that can be stripped */ files: Array<{ /** * Path of the binary inside the build */ filePath: string; /** * Savings from stripping debug sections in bytes */ debugSectionsSavings: number; /** * Savings from stripping the symbol table in bytes */ symbolTableSavings: number; /** * Potential savings for the binary in bytes */ totalSavings: number; }>; /** * Savings from stripping debug sections of all binaries in bytes */ totalDebugSectionsSavings: number; /** * Savings from stripping symbol tables of all binaries in bytes */ totalSymbolTableSavings: number; } | null; /** * Localized strings files with comments that can be stripped */ localizedStringsMinify: { /** * Potential savings of the insight in bytes */ totalSavings: number; /** * Files the insight applies to */ files: Array<{ /** * Path of the file inside the build */ filePath: string; /** * Potential savings for the file in bytes */ totalSavings: number; }>; } | null; /** * Files smaller than the file system block size */ smallFiles: { /** * Potential savings of the insight in bytes */ totalSavings: number; /** * Files the insight applies to */ files: Array<{ /** * Path of the file inside the build */ filePath: string; /** * Potential savings for the file in bytes */ totalSavings: number; }>; } | null; /** * Images that could move into an asset catalog */ looseImages: { /** * Potential savings of the insight in bytes */ totalSavings: number; /** * Groups of files the insight applies to */ groups: Array<{ /** * Name of the group */ name: string; /** * Files in the group */ files: Array<{ /** * Path of the file inside the build */ filePath: string; /** * Potential savings for the file in bytes */ totalSavings: number; }>; /** * Potential savings for the group in bytes */ totalSavings: number; }>; } | null; /** * Hermes bytecode files that contain debug info */ hermesDebugInfo: { /** * Potential savings of the insight in bytes */ totalSavings: number; /** * Files the insight applies to */ files: Array<{ /** * Path of the file inside the build */ filePath: string; /** * Potential savings for the file in bytes */ totalSavings: number; }>; } | null; /** * Images that can be optimized */ imageOptimization: { /** * Potential savings of the insight in bytes */ totalSavings: number; /** * Images that can be optimized */ optimizableFiles: Array<{ /** * Path of the image inside the build */ filePath: string; /** * Current size of the image in bytes */ currentSize: number; /** * Savings from minifying the image in bytes */ minifySavings: number; /** * Size of the minified image in bytes. Null when not computed */ minifiedSize: number | null; /** * Savings from converting the image to HEIC in bytes */ conversionSavings: number; /** * Size of the image as HEIC in bytes. Null when not computed */ heicSize: number | null; /** * Asset catalog idiom of the image. Null outside asset catalogs */ idiom: string | null; /** * Asset catalog color space of the image. Null outside asset catalogs */ colorspace: string | null; }>; } | null; /** * Main binaries with export metadata that can be reduced */ mainBinaryExportedSymbols: { /** * Potential savings of the insight in bytes */ totalSavings: number; /** * Files the insight applies to */ files: Array<{ /** * Path of the file inside the build */ filePath: string; /** * Potential savings for the file in bytes */ totalSavings: number; }>; } | null; /** * Files that can be removed */ unnecessaryFiles: { /** * Potential savings of the insight in bytes */ totalSavings: number; /** * Files the insight applies to */ files: Array<{ /** * Path of the file inside the build */ filePath: string; /** * Potential savings for the file in bytes */ totalSavings: number; }>; } | null; /** * Audio files that can be compressed */ audioCompression: { /** * Potential savings of the insight in bytes */ totalSavings: number; /** * Files the insight applies to */ files: Array<{ /** * Path of the file inside the build */ filePath: string; /** * Potential savings for the file in bytes */ totalSavings: number; }>; } | null; /** * Videos that can be compressed */ videoCompression: { /** * Potential savings of the insight in bytes */ totalSavings: number; /** * Videos that can be compressed */ files: Array<{ /** * Path of the video inside the build */ filePath: string; /** * Potential savings for the video in bytes */ totalSavings: number; /** * Codec recommended for the video */ recommendedCodec: string; }>; } | null; /** * Alternate app icons that can be optimized */ alternateIconsOptimization: { /** * Potential savings of the insight in bytes */ totalSavings: number; /** * Images that can be optimized */ optimizableFiles: Array<{ /** * Path of the image inside the build */ filePath: string; /** * Current size of the image in bytes */ currentSize: number; /** * Savings from minifying the image in bytes */ minifySavings: number; /** * Size of the minified image in bytes. Null when not computed */ minifiedSize: number | null; /** * Savings from converting the image to HEIC in bytes */ conversionSavings: number; /** * Size of the image as HEIC in bytes. Null when not computed */ heicSize: number | null; /** * Asset catalog idiom of the image. Null outside asset catalogs */ idiom: string | null; /** * Asset catalog color space of the image. Null outside asset catalogs */ colorspace: string | null; }>; } | null; } | null; /** * Components of the build, such as watch apps or dynamic features, with their sizes */ appComponents: Array<{ /** * Type of the component */ componentType: 'MAIN_ARTIFACT' | 'WATCH_ARTIFACT' | 'ANDROID_DYNAMIC_FEATURE' | 'APP_CLIP_ARTIFACT'; /** * Name of the component */ name: string; /** * App identifier of the component */ appId: string; /** * Path of the component inside the build */ path: string; /** * Download size of the component in bytes */ downloadSize: number; /** * Install size of the component in bytes */ installSize: number; }> | null; /** * Size comparisons against the base build, one per component. Null when there's no base build */ comparisons: Array<{ /** * Type of the component compared */ metricsArtifactType: 'MAIN_ARTIFACT' | 'WATCH_ARTIFACT' | 'ANDROID_DYNAMIC_FEATURE' | 'APP_CLIP_ARTIFACT'; /** * Identifier of the component, such as a dynamic feature name */ identifier: string | null; /** * State of the comparison */ state: 'PENDING' | 'PROCESSING' | 'SUCCESS' | 'FAILED'; /** * Error code when the comparison failed */ errorCode: string | null; /** * Error message when the comparison failed */ errorMessage: string | null; /** * Head and base sizes. Only set when the comparison succeeded */ sizeMetricDiff: { /** * Type of the component the sizes are for */ metricsArtifactType: 'MAIN_ARTIFACT' | 'WATCH_ARTIFACT' | 'ANDROID_DYNAMIC_FEATURE' | 'APP_CLIP_ARTIFACT'; /** * Identifier of the component, such as a dynamic feature name */ identifier: string | null; /** * Install size of the head build in bytes */ headInstallSize: number; /** * Download size of the head build in bytes */ headDownloadSize: number; /** * Install size of the base build in bytes */ baseInstallSize: number; /** * Download size of the base build in bytes */ baseDownloadSize: number; } | null; /** * File and group size changes. Only set when the comparison succeeded */ diffItems: Array<{ /** * Size change in bytes between the base and head builds */ sizeDiff: number; /** * Size in bytes in the head build. Null when the item was removed */ headSize: number | null; /** * Size in bytes in the base build. Null when the item was added */ baseSize: number | null; /** * Path of the file or group */ path: string; /** * Type of the file or group */ itemType: string | null; /** * How the item changed */ type: 'added' | 'removed' | 'increased' | 'decreased'; /** * Changes to the item's children, in the same shape */ diffItems: Array<{ [key: string]: unknown; }> | null; }> | null; /** * Changes to size insights. Only set when the comparison succeeded */ insightDiffItems: Array<{ /** * Type of the insight, such as duplicate_files or large_images */ insightType: string; /** * How the insight changed */ status: 'new' | 'resolved' | 'unresolved'; /** * Change in the insight's potential savings in bytes */ totalSavingsChange: number; /** * File-level changes for the insight */ fileDiffs: Array<{ /** * Size change in bytes between the base and head builds */ sizeDiff: number; /** * Size in bytes in the head build. Null when the item was removed */ headSize: number | null; /** * Size in bytes in the base build. Null when the item was added */ baseSize: number | null; /** * Path of the file or group */ path: string; /** * Type of the file or group */ itemType: string | null; /** * How the item changed */ type: 'added' | 'removed' | 'increased' | 'decreased'; /** * Changes to the item's children, in the same shape */ diffItems: Array<{ [key: string]: unknown; }> | null; }>; /** * Group-level changes for the insight */ groupDiffs: Array<{ /** * Size change in bytes between the base and head builds */ sizeDiff: number; /** * Size in bytes in the head build. Null when the item was removed */ headSize: number | null; /** * Size in bytes in the base build. Null when the item was added */ baseSize: number | null; /** * Path of the file or group */ path: string; /** * Type of the file or group */ itemType: string | null; /** * How the item changed */ type: 'added' | 'removed' | 'increased' | 'decreased'; /** * Changes to the item's children, in the same shape */ diffItems: Array<{ [key: string]: unknown; }> | null; }>; }> | null; }> | null; }; export type SkipStatusCheck = { /** * The full 40-character lowercase commit SHA. */ sha: string; /** * The repository name in `owner/name` format. */ repository: string; /** * The repository integration provider. * * * `github` * * `github_enterprise` */ provider: 'github' | 'github_enterprise'; }; export type SnapshotArchiveBuildResponse = { /** * Message saying that the archive is being built */ detail: string; }; export type SnapshotArchiveStatusResponse = { /** * Whether the archive of the snapshot's images is built and ready */ ready: boolean; }; export type SnapshotCreateResponse = { /** * ID of the build created for the snapshot */ artifactId: string; /** * ID of the snapshot */ snapshotMetricsId: string; /** * Number of images in the snapshot */ imageCount: number; /** * URL of the snapshot in Sentry */ snapshotUrl: string; }; export type SnapshotDetailsResponse = { /** * ID of the build the snapshot belongs to */ head_artifact_id?: string; /** * ID of the base build the snapshot is compared against */ base_artifact_id?: string | null; /** * ID of the project */ project_id?: string; /** * How the snapshot is compared: diff when a comparison exists, waiting_for_base when the build has a base commit but no comparison yet, or solo otherwise */ comparison_type?: string; /** * State of the build: UPLOADING, UPLOADED, PROCESSED or FAILED */ state?: string; /** * Version control details of the build */ vcs_info?: { /** * Commit SHA of the build */ head_sha?: string | null; /** * Commit SHA of the base the build is compared against */ base_sha?: string | null; /** * Version control provider, such as github */ provider?: string | null; /** * Repository name of the head commit */ head_repo_name?: string | null; /** * Repository name of the base commit */ base_repo_name?: string | null; /** * Branch or ref of the head commit */ head_ref?: string | null; /** * Branch or ref of the base commit */ base_ref?: string | null; /** * Pull request number */ pr_number?: number | null; }; /** * App identifier of the build */ app_id?: string | null; /** * Whether the upload contained only a subset of the app's images */ is_selective?: boolean; /** * All images in the snapshot. Empty when comparison_type is diff */ images?: Array<{ /** * Content hash of the image */ key?: string; /** * Display name of the image */ display_name?: string | null; /** * Group the image belongs to */ group?: string | null; /** * File name of the image, which identifies it within the snapshot */ image_file_name?: string; /** * Width of the image in pixels */ width?: number; /** * Height of the image in pixels */ height?: number; /** * Theme the image was rendered with: light or dark */ canvas_theme?: 'light' | 'dark' | null; }>; /** * Number of images in the snapshot */ image_count?: number; /** * Images in the head snapshot but not the base */ added?: Array<{ /** * Content hash of the image */ key?: string; /** * Display name of the image */ display_name?: string | null; /** * Group the image belongs to */ group?: string | null; /** * File name of the image, which identifies it within the snapshot */ image_file_name?: string; /** * Width of the image in pixels */ width?: number; /** * Height of the image in pixels */ height?: number; /** * Theme the image was rendered with: light or dark */ canvas_theme?: 'light' | 'dark' | null; }>; /** * Number of added images */ added_count?: number; /** * Images in the base snapshot but not the head */ removed?: Array<{ /** * Content hash of the image */ key?: string; /** * Display name of the image */ display_name?: string | null; /** * Group the image belongs to */ group?: string | null; /** * File name of the image, which identifies it within the snapshot */ image_file_name?: string; /** * Width of the image in pixels */ width?: number; /** * Height of the image in pixels */ height?: number; /** * Theme the image was rendered with: light or dark */ canvas_theme?: 'light' | 'dark' | null; }>; /** * Number of removed images */ removed_count?: number; /** * Images whose file name changed but whose content didn't */ renamed?: Array<{ /** * Image from the base snapshot */ base_image?: { /** * Content hash of the image */ key?: string; /** * Display name of the image */ display_name?: string | null; /** * Group the image belongs to */ group?: string | null; /** * File name of the image, which identifies it within the snapshot */ image_file_name?: string; /** * Width of the image in pixels */ width?: number; /** * Height of the image in pixels */ height?: number; /** * Theme the image was rendered with: light or dark */ canvas_theme?: 'light' | 'dark' | null; }; /** * Image from the head snapshot */ head_image?: { /** * Content hash of the image */ key?: string; /** * Display name of the image */ display_name?: string | null; /** * Group the image belongs to */ group?: string | null; /** * File name of the image, which identifies it within the snapshot */ image_file_name?: string; /** * Width of the image in pixels */ width?: number; /** * Height of the image in pixels */ height?: number; /** * Theme the image was rendered with: light or dark */ canvas_theme?: 'light' | 'dark' | null; }; /** * ID of the diff mask image highlighting changed pixels. Only set for changed images */ diff_image_key?: string | null; /** * Fraction of pixels that changed, from 0 to 1. Only set for changed images */ diff?: number | null; }>; /** * Number of renamed images */ renamed_count?: number; /** * Images whose changed pixels exceed the diff threshold, sorted by most changed first */ changed?: Array<{ /** * Image from the base snapshot */ base_image?: { /** * Content hash of the image */ key?: string; /** * Display name of the image */ display_name?: string | null; /** * Group the image belongs to */ group?: string | null; /** * File name of the image, which identifies it within the snapshot */ image_file_name?: string; /** * Width of the image in pixels */ width?: number; /** * Height of the image in pixels */ height?: number; /** * Theme the image was rendered with: light or dark */ canvas_theme?: 'light' | 'dark' | null; }; /** * Image from the head snapshot */ head_image?: { /** * Content hash of the image */ key?: string; /** * Display name of the image */ display_name?: string | null; /** * Group the image belongs to */ group?: string | null; /** * File name of the image, which identifies it within the snapshot */ image_file_name?: string; /** * Width of the image in pixels */ width?: number; /** * Height of the image in pixels */ height?: number; /** * Theme the image was rendered with: light or dark */ canvas_theme?: 'light' | 'dark' | null; }; /** * ID of the diff mask image highlighting changed pixels. Only set for changed images */ diff_image_key?: string | null; /** * Fraction of pixels that changed, from 0 to 1. Only set for changed images */ diff?: number | null; }>; /** * Number of changed images */ changed_count?: number; /** * Images that match the base snapshot */ unchanged?: Array<{ /** * Content hash of the image */ key?: string; /** * Display name of the image */ display_name?: string | null; /** * Group the image belongs to */ group?: string | null; /** * File name of the image, which identifies it within the snapshot */ image_file_name?: string; /** * Width of the image in pixels */ width?: number; /** * Height of the image in pixels */ height?: number; /** * Theme the image was rendered with: light or dark */ canvas_theme?: 'light' | 'dark' | null; }>; /** * Number of unchanged images */ unchanged_count?: number; /** * Images that couldn't be compared */ errored?: Array<{ /** * Image from the base snapshot */ base_image?: { /** * Content hash of the image */ key?: string; /** * Display name of the image */ display_name?: string | null; /** * Group the image belongs to */ group?: string | null; /** * File name of the image, which identifies it within the snapshot */ image_file_name?: string; /** * Width of the image in pixels */ width?: number; /** * Height of the image in pixels */ height?: number; /** * Theme the image was rendered with: light or dark */ canvas_theme?: 'light' | 'dark' | null; }; /** * Image from the head snapshot */ head_image?: { /** * Content hash of the image */ key?: string; /** * Display name of the image */ display_name?: string | null; /** * Group the image belongs to */ group?: string | null; /** * File name of the image, which identifies it within the snapshot */ image_file_name?: string; /** * Width of the image in pixels */ width?: number; /** * Height of the image in pixels */ height?: number; /** * Theme the image was rendered with: light or dark */ canvas_theme?: 'light' | 'dark' | null; }; /** * ID of the diff mask image highlighting changed pixels. Only set for changed images */ diff_image_key?: string | null; /** * Fraction of pixels that changed, from 0 to 1. Only set for changed images */ diff?: number | null; }>; /** * Number of errored images */ errored_count?: number; /** * Base images that a selective upload didn't include */ skipped?: Array<{ /** * Content hash of the image */ key?: string; /** * Display name of the image */ display_name?: string | null; /** * Group the image belongs to */ group?: string | null; /** * File name of the image, which identifies it within the snapshot */ image_file_name?: string; /** * Width of the image in pixels */ width?: number; /** * Height of the image in pixels */ height?: number; /** * Theme the image was rendered with: light or dark */ canvas_theme?: 'light' | 'dark' | null; }>; /** * Number of skipped images */ skipped_count?: number; /** * Fraction of changed pixels, from 0 to 1, above which an image counts as changed. Images can override it */ diff_threshold?: number | null; /** * State of the latest comparison: pending, processing, success, failed, waiting_for_base or no_base_build */ comparison_state?: string | null; /** * Approval status of the latest comparison: approved, auto_approved or requires_approval */ approval_status?: string | null; /** * Error message when the latest comparison failed */ comparison_error_message?: string | null; /** * People who approved the snapshot changes */ approvers?: Array<{ /** * Sentry user ID, or GitHub user ID for approvals from GitHub */ id?: string | null; /** * Display name of the approver, or GitHub login for approvals from GitHub */ name?: string | null; /** * Email address of the approver. Only set for Sentry users */ email?: string | null; /** * Username of the approver, or GitHub login for approvals from GitHub */ username?: string | null; /** * Avatar URL of the approver. Only set for approvals from GitHub */ avatar_url?: string | null; /** * When the approval was given (ISO 8601) */ approved_at?: string | null; /** * Where the approval was given: sentry or github */ source?: 'sentry' | 'github'; }>; }; export type SnapshotImageDetailResponse = { /** * File name of the image */ image_file_name?: string; /** * Comparison result for the image: added, removed, changed, unchanged, renamed, errored or skipped. Null when there is no comparison */ comparison_status?: string | null; /** * Image in the head snapshot. Null when the image was removed */ head_image?: { /** * Content hash of the image */ key?: string; /** * Display name of the image */ display_name?: string | null; /** * Group the image belongs to */ group?: string | null; /** * File name of the image, which identifies it within the snapshot */ image_file_name?: string; /** * Width of the image in pixels */ width?: number; /** * Height of the image in pixels */ height?: number; /** * Theme the image was rendered with: light or dark */ canvas_theme?: 'light' | 'dark' | null; /** * Fraction of changed pixels, from 0 to 1, above which the image counts as changed */ diff_threshold?: number | null; /** * Description of the image */ description?: string | null; /** * Tags attached to the image */ tags?: { [key: string]: string; } | null; /** * API URL to download the image */ image_url?: string; } | null; /** * Image in the base snapshot */ base_image?: { /** * Content hash of the image */ key?: string; /** * Display name of the image */ display_name?: string | null; /** * Group the image belongs to */ group?: string | null; /** * File name of the image, which identifies it within the snapshot */ image_file_name?: string; /** * Width of the image in pixels */ width?: number; /** * Height of the image in pixels */ height?: number; /** * Theme the image was rendered with: light or dark */ canvas_theme?: 'light' | 'dark' | null; /** * Fraction of changed pixels, from 0 to 1, above which the image counts as changed */ diff_threshold?: number | null; /** * Description of the image */ description?: string | null; /** * Tags attached to the image */ tags?: { [key: string]: string; } | null; /** * API URL to download the image */ image_url?: string; } | null; /** * API URL to download the diff mask image. Only set for changed images */ diff_image_url?: string | null; /** * Fraction of pixels that changed, from 0 to 1. Only set for changed images */ diff_percentage?: number | null; /** * Previous file name of the image. Only set for renamed images */ previous_image_file_name?: string | null; }; /** * Allows parameters to be defined in snake case, but passed as camel case. * * Errors are output in camel case. */ export type SnubaQueryValidator = { query_type?: number; dataset: string; query: string; aggregate: string; time_window: number; environment: string | null; event_types: Array; group_by?: Array; extrapolation_mode?: string | null; }; export type Source = { /** * The type of the source. * * * `http` - SymbolServer (HTTP) * * `gcs` - Google Cloud Storage * * `s3` - Amazon S3 * * `azure` - Azure Blob Storage */ type: 'http' | 'gcs' | 's3' | 'azure'; /** * The human-readable name of the source. */ name: string; /** * The internal ID of the source. Must be distinct from all other source IDs and cannot start with '`sentry:`'. If this is not provided, a new UUID will be generated. */ id?: string; /** * Layout settings for the source. This is required for HTTP, GCS, and S3 sources. * * **`type`** ***(string)*** - The layout of the folder structure. The options are: * - `native` - Platform-Specific (SymStore / GDB / LLVM) * - `symstore` - Microsoft SymStore * - `symstore_index2` - Microsoft SymStore (with index2.txt) * - `ssqp` - Microsoft SSQP * - `unified` - Unified Symbol Server Layout * - `debuginfod` - debuginfod * - `nnsymstore` - Nintendo Symbol Store * * **`casing`** ***(string)*** - The layout of the folder structure. The options are: * - `default` - Default (mixed case) * - `uppercase` - Uppercase * - `lowercase` - Lowercase * * ```json * { * "layout": { * "type": "native" * "casing": "default" * } * } * ``` */ layout?: { /** * The source's layout type. * * * `native` * * `symstore` * * `symstore_index2` * * `ssqp` * * `unified` * * `debuginfod` * * `slashsymbols` * * `nnsymstore` */ type: 'native' | 'symstore' | 'symstore_index2' | 'ssqp' | 'unified' | 'debuginfod' | 'slashsymbols' | 'nnsymstore'; /** * The source's casing rules. * * * `lowercase` * * `uppercase` * * `default` */ casing: 'lowercase' | 'uppercase' | 'default'; }; /** * Filter settings for the source. This is optional for all sources. * * **`filetypes`** ***(list)*** - A list of file types that can be found on this source. If this is left empty, all file types will be enabled. The options are: * - `pe` - Windows executable files * - `pdb` - Windows debug files * - `portablepdb` - .NET portable debug files * - `mach_code` - MacOS executable files * - `mach_debug` - MacOS debug files * - `elf_code` - ELF executable files * - `elf_debug` - ELF debug files * - `wasm_code` - WASM executable files * - `wasm_debug` - WASM debug files * - `breakpad` - Breakpad symbol files * - `sourcebundle` - Source code bundles * - `uuidmap` - Apple UUID mapping files * - `bcsymbolmap` - Apple bitcode symbol maps * - `il2cpp` - Unity IL2CPP mapping files * - `proguard` - ProGuard mapping files * * **`path_patterns`** ***(list)*** - A list of glob patterns to check against the debug and code file paths of debug files. Only files that match one of these patterns will be requested from the source. If this is left empty, no path-based filtering takes place. * * **`requires_checksum`** ***(boolean)*** - Whether this source requires a debug checksum to be sent with each request. Defaults to `false`. * * ```json * { * "filters": { * "filetypes": ["pe", "pdb", "portablepdb"], * "path_patterns": ["*ffmpeg*"] * } * } * ``` */ filters?: { /** * The file types enabled for the source. */ filetypes?: Array<'pe' | 'pdb' | 'portablepdb' | 'mach_debug' | 'mach_code' | 'elf_debug' | 'elf_code' | 'wasm_debug' | 'wasm_code' | 'breakpad' | 'sourcebundle' | 'uuidmap' | 'bcsymbolmap' | 'il2cpp' | 'proguard' | 'dartsymbolmap'>; /** * The debug and code file paths enabled for the source. */ path_patterns?: Array; /** * Whether the source requires debug checksums. */ requires_checksum?: boolean; }; /** * The source's URL. Optional for HTTP sources, invalid for all others. */ url?: string; /** * The user name for accessing the source. Optional for HTTP sources, invalid for all others. */ username?: string; /** * The password for accessing the source. Optional for HTTP sources, invalid for all others. */ password?: string; /** * The GCS or S3 bucket where the source resides. Required for GCS and S3 source, invalid for HTTP sources. */ bucket?: string; /** * The source's [S3 region](https://docs.aws.amazon.com/general/latest/gr/s3.html). Required for S3 sources, invalid for all others. * * * `us-east-2` - US East (Ohio) * * `us-east-1` - US East (N. Virginia) * * `us-west-1` - US West (N. California) * * `us-west-2` - US West (Oregon) * * `ap-east-1` - Asia Pacific (Hong Kong) * * `ap-south-1` - Asia Pacific (Mumbai) * * `ap-northeast-2` - Asia Pacific (Seoul) * * `ap-southeast-1` - Asia Pacific (Singapore) * * `ap-southeast-2` - Asia Pacific (Sydney) * * `ap-northeast-1` - Asia Pacific (Tokyo) * * `ca-central-1` - Canada (Central) * * `cn-north-1` - China (Beijing) * * `cn-northwest-1` - China (Ningxia) * * `eu-central-1` - EU (Frankfurt) * * `eu-west-1` - EU (Ireland) * * `eu-west-2` - EU (London) * * `eu-west-3` - EU (Paris) * * `eu-north-1` - EU (Stockholm) * * `sa-east-1` - South America (São Paulo) * * `us-gov-east-1` - AWS GovCloud (US-East) * * `us-gov-west-1` - AWS GovCloud (US) */ region?: 'us-east-2' | 'us-east-1' | 'us-west-1' | 'us-west-2' | 'ap-east-1' | 'ap-south-1' | 'ap-northeast-2' | 'ap-southeast-1' | 'ap-southeast-2' | 'ap-northeast-1' | 'ca-central-1' | 'cn-north-1' | 'cn-northwest-1' | 'eu-central-1' | 'eu-west-1' | 'eu-west-2' | 'eu-west-3' | 'eu-north-1' | 'sa-east-1' | 'us-gov-east-1' | 'us-gov-west-1'; /** * The [AWS Access Key](https://docs.aws.amazon.com/IAM/latest/UserGuide/security-creds.html#access-keys-and-secret-access-keys).Required for S3 sources, invalid for all others. */ access_key?: string; /** * The [AWS Secret Access Key](https://docs.aws.amazon.com/IAM/latest/UserGuide/security-creds.html#access-keys-and-secret-access-keys).Required for S3 sources, invalid for all others. */ secret_key?: string; /** * The GCS, Azure or [S3](https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-prefixes.html) prefix. Optional for GCS, Azure and S3 sources, invalid for HTTP. */ prefix?: string; /** * The GCS email address for authentication. Required for GCS sources, invalid for all others. */ client_email?: string; /** * The GCS private key. Required for GCS sources if not using impersonated tokens. Invalid for all others. */ private_key?: string; /** * The Azure storage account name. Required for Azure sources, invalid for all others. */ account?: string; /** * The Azure blob container name. Required for Azure sources, invalid for all others. */ container?: string; /** * The Microsoft Entra tenant ID. Required for Azure sources, invalid for all others. */ tenant_id?: string; /** * The Microsoft Entra application (client) ID. Required for Azure sources, invalid for all others. */ client_id?: string; /** * The Microsoft Entra client secret. Required for Azure sources, invalid for all others. */ client_secret?: string; }; export type SourceMapDebug = { /** * Distribution of the event */ dist: string | null; /** * Release of the event */ release: string | null; /** * Source map debug results for each exception in the event */ exceptions: Array<{ /** * Source map debug results for each frame of the exception */ frames: Array<{ /** * Results of resolving the frame with debug IDs */ debug_id_process: { /** * Debug ID of the frame's source file. Null when the frame has none */ debug_id: string | null; /** * Whether a source file with the frame's debug ID was found when the event was processed */ uploaded_source_file_with_correct_debug_id: boolean; /** * Whether a source map with the frame's debug ID was found when the event was processed */ uploaded_source_map_with_correct_debug_id: boolean; }; /** * Results of resolving the frame with release artifacts. Null when the event has no release */ release_process: { /** * Absolute path of the frame's file */ abs_path: string; /** * Uploaded file names that could match the frame's file */ matching_source_file_names: Array; /** * Name of the uploaded source map that matches the frame's file */ matching_source_map_name: string | null; /** * Source map the source file refers to, from its sourceMappingURL or SourceMap header */ source_map_reference: string | null; /** * Result of looking up the source file in the release: found, wrong-dist or unsuccessful */ source_file_lookup_result: 'found' | 'wrong-dist' | 'unsuccessful'; /** * Result of looking up the source map in the release: found, wrong-dist or unsuccessful */ source_map_lookup_result: 'found' | 'wrong-dist' | 'unsuccessful'; } | null; /** * Results of fetching the frame's files from the web */ scraping_process: { /** * Result of fetching the frame's source file from the web. Null when there's no data */ source_file: { /** * URL Sentry fetched */ url: string; /** * Result of fetching the file, always success */ status: 'success'; } | { /** * URL Sentry didn't fetch */ url: string; /** * Result of fetching the file, always not_attempted */ status: 'not_attempted'; } | { /** * URL Sentry failed to fetch */ url: string; /** * Result of fetching the file, always failure */ status: 'failure'; /** * Why fetching failed, such as not_found, disabled, invalid_host, permission_denied or timeout */ reason: 'not_found' | 'disabled' | 'invalid_host' | 'permission_denied' | 'timeout' | 'download_error' | 'other'; /** * More details about the failure */ details: string | null; } | null; /** * Result of fetching the frame's source map from the web. Null when there's no data */ source_map: { /** * URL Sentry fetched */ url: string; /** * Result of fetching the file, always success */ status: 'success'; } | { /** * URL Sentry didn't fetch */ url: string; /** * Result of fetching the file, always not_attempted */ status: 'not_attempted'; } | { /** * URL Sentry failed to fetch */ url: string; /** * Result of fetching the file, always failure */ status: 'failure'; /** * Why fetching failed, such as not_found, disabled, invalid_host, permission_denied or timeout */ reason: 'not_found' | 'disabled' | 'invalid_host' | 'permission_denied' | 'timeout' | 'download_error' | 'other'; /** * More details about the failure */ details: string | null; } | null; }; }>; }>; /** * Whether the event has debug IDs */ has_debug_ids: boolean; /** * Minimum SDK version that supports debug IDs. Null when there's none */ min_debug_id_sdk_version: string | null; /** * Version of the SDK that sent the event */ sdk_version: string | null; /** * Whether the project has any artifact bundles */ project_has_some_artifact_bundle: boolean; /** * Whether the event's release has any uploaded artifacts */ release_has_some_artifact: boolean; /** * Whether any artifact with a debug ID was uploaded for the project */ has_uploaded_some_artifact_with_a_debug_id: boolean; /** * Whether the event's SDK supports debug IDs: not-supported, unofficial-sdk, needs-upgrade or full */ sdk_debug_id_support: 'not-supported' | 'unofficial-sdk' | 'needs-upgrade' | 'full'; /** * Whether the event has data about fetching source files from the web */ has_scraping_data: boolean; }; export type StackPrefixesResponse = { /** * Path prefixes of the project's stack trace frames */ prefixes: Array<{ /** * Path prefix */ path: string; /** * Number of files under the prefix */ fileCount: number; }>; }; export type StacktraceLinkResponse = { /** * Path of the file in the repository after the code mapping is applied */ sourcePath?: string | null; /** * URL Sentry tried when it couldn't find the file */ attemptedUrl?: string | null; /** * Why no link was found, such as no_code_mappings_for_project, stack_root_mismatch or file_not_found. Null when a link was found */ error: string | null; /** * Code mapping used for the link. Null when no code mapping matches */ config: { /** * ID of the code mapping */ id: string; /** * ID of the project */ projectId: string; /** * Slug of the project */ projectSlug: string; /** * ID of the repository */ repoId: string; /** * Name of the repository */ repoName: string; /** * ID of the repository's integration */ integrationId: string | null; /** * Provider of the repository's integration */ provider: { /** * Key of the integration provider, such as github */ key: string; /** * Slug of the integration provider, same as key */ slug: string; /** * Display name of the integration provider */ name: string; /** * Whether the integration can be installed from Sentry */ canAdd: boolean; /** * Whether the integration must be uninstalled from the provider instead of in Sentry */ canDisable: boolean; /** * Features the integration provider supports, such as issue-basic or commits */ features: Array; /** * Extra provider details shown during setup, such as alerts and configuration instructions */ aspects: { /** * Alerts shown during setup */ alerts?: Array<{ /** * Style of the alert, such as warning */ type: string; /** * Icon shown with the alert, such as icon-warning-sm */ icon: string; /** * Text of the alert, in Markdown */ text: string; }>; /** * Configuration step after install */ configure_integration?: { /** * Title of the configuration step */ title: string; }; /** * Whether the integration is enabled without an install flow */ directEnable?: boolean; /** * Dialog shown before the integration is disabled */ disable_dialog?: { /** * Label of the dialog's confirm button */ actionText: string; /** * Text of the dialog */ body: string; }; /** * Where to install the integration when it's installed outside Sentry */ externalInstall?: { /** * URL to install the integration from, such as a marketplace */ url: string; /** * Label of the install button */ buttonText: string; /** * Notice shown before the user leaves Sentry */ noticeText: string; }; /** * Dialog shown before the integration is removed */ removal_dialog?: { /** * Label of the dialog's confirm button */ actionText: string; /** * Text of the dialog */ body: string; }; }; } | null; /** * Stack trace path prefix that the mapping replaces */ stackRoot: string; /** * Repository path prefix that replaces the stack root */ sourceRoot: string; /** * Branch to link source files on */ defaultBranch: string | null; /** * Whether Sentry created the mapping automatically */ automaticallyGenerated: boolean; /** * Whether the mapping has a CODEOWNERS file linked */ hasCodeOwner: boolean; } | null; /** * URL of the file in the repository. Null when no link was found */ sourceUrl: string | null; /** * Source code integrations of the organization */ integrations: Array<{ /** * ID of the integration */ id: string; /** * Name of the integration, usually the connected account or workspace */ name: string; /** * URL of the connected account's icon */ icon: string | null; /** * Domain of the connected account, such as github.com/example-org */ domainName: string | null; /** * Type of the connected account, such as Organization or User */ accountType: string | null; /** * Permission scopes granted to the integration */ scopes: Array | null; /** * Whether the installation lacks permissions the latest version of the integration needs. Null for providers without a permissions model */ outOfDate: boolean | null; /** * Features the installation can't support because of missing permissions. Null for providers without a permissions model */ missingFeatures: Array<{ /** * Key of the missing feature */ key: string; /** * Description of the missing feature */ description: string; }> | null; /** * Status of the integration */ status: 'active' | 'disabled' | 'pending_deletion' | 'deletion_in_progress'; /** * Integration provider details */ provider: { /** * Key of the integration provider, such as github */ key: string; /** * Slug of the integration provider, same as key */ slug: string; /** * Display name of the integration provider */ name: string; /** * Whether the integration can be installed from Sentry */ canAdd: boolean; /** * Whether the integration must be uninstalled from the provider instead of in Sentry */ canDisable: boolean; /** * Features the integration provider supports, such as issue-basic or commits */ features: Array; /** * Extra provider details shown during setup, such as alerts and configuration instructions */ aspects: { /** * Alerts shown during setup */ alerts?: Array<{ /** * Style of the alert, such as warning */ type: string; /** * Icon shown with the alert, such as icon-warning-sm */ icon: string; /** * Text of the alert, in Markdown */ text: string; }>; /** * Configuration step after install */ configure_integration?: { /** * Title of the configuration step */ title: string; }; /** * Whether the integration is enabled without an install flow */ directEnable?: boolean; /** * Dialog shown before the integration is disabled */ disable_dialog?: { /** * Label of the dialog's confirm button */ actionText: string; /** * Text of the dialog */ body: string; }; /** * Where to install the integration when it's installed outside Sentry */ externalInstall?: { /** * URL to install the integration from, such as a marketplace */ url: string; /** * Label of the install button */ buttonText: string; /** * Notice shown before the user leaves Sentry */ noticeText: string; }; /** * Dialog shown before the integration is removed */ removal_dialog?: { /** * Label of the dialog's confirm button */ actionText: string; /** * Text of the dialog */ body: string; }; }; }; }>; }; export type StarSegment = { /** * The name of the service span to star or unstar. */ service_span: string; /** * The ID of the project the service span belongs to. */ project_id: number; }; export type StarredDashboardListResponse = Array<{ /** * ID of the dashboard */ id: string; /** * Title of the dashboard */ title: string; /** * When the dashboard was created (ISO 8601) */ dateCreated: string; /** * User who created the dashboard */ createdBy: { /** * SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access */ identities?: Array<{ /** * SSO identity ID */ id: string; /** * User's identifier at the auth provider */ name: string; /** * Organization the auth provider belongs to */ organization: { /** * Organization slug */ slug: string; /** * Organization name */ name: string; }; /** * Auth provider of the identity */ provider: { /** * Auth provider key, such as google or saml2 */ id: string; /** * Display name of the auth provider */ name: string; }; /** * When the identity was last verified by signing in through the auth provider */ dateVerified: string; /** * When the identity was last synced from the auth provider */ dateSynced: string; }>; /** * User avatar */ avatar?: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Two-factor authenticators of the user, without backup methods such as recovery codes */ authenticators?: Array<{ /** * Authenticator ID */ id: string; /** * Authenticator type, such as totp, sms, u2f or recovery */ type: string; /** * Display name of the authenticator type */ name: string; /** * When the authenticator was added */ dateCreated: string; /** * When the authenticator was last used, or null */ dateUsed: string | null; }>; /** * Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization */ canReset2fa?: boolean; /** * User ID */ id: string; /** * Display name: the user's name, or their email or username if no name is set */ name: string; /** * Username */ username: string; /** * Primary email address */ email: string; /** * Gravatar URL for the primary email address */ avatarUrl: string; /** * Whether the account is active */ isActive: boolean; /** * Whether the account is suspended. Suspended users can't sign in */ isSuspended: boolean; /** * Whether the user has a password set */ hasPasswordAuth: boolean; /** * Whether the account is managed, which stops the user from changing their username, password and similar details */ isManaged: boolean; /** * When the account was created */ dateJoined: string; /** * When the user last signed in, or null */ lastLogin: string | null; /** * Whether the user has two-factor authentication enabled */ has2fa: boolean; /** * When the user was last active, or null */ lastActive: string | null; /** * Whether the user is a superuser */ isSuperuser: boolean; /** * Whether the user has staff status */ isStaff: boolean; /** * Deprecated. Always an empty object */ experiments: { [key: string]: string; }; /** * Email addresses of the user. Only included for the requesting user or superusers; empty otherwise */ emails: Array<{ /** * Email ID */ id: string; /** * Email address */ email: string; /** * Whether the email address is verified */ is_verified: boolean; }>; } | null; /** * Saved environment filter for the dashboard */ environment: Array; /** * Saved release and global filters for the dashboard */ filters: { /** * Saved release filter */ release?: Array; /** * Saved release ID filter */ releaseId?: Array; /** * Saved global filters applied to every widget */ globalFilter?: Array<{ /** * Widget dataset the filter applies to, such as error-events, transaction-like, spans or logs */ dataset: string; /** * Tag or attribute being filtered */ tag: { /** * Key of the tag or attribute the filter applies to */ key: string; /** * Display name of the tag or attribute */ name: string; /** * Kind of the field, such as tag, measurement or field */ kind?: string; }; /** * Filter condition in search syntax, such as browser.name:[Chrome] */ value: string; /** * Whether the filter comes from a link and isn't saved by the user */ isTemporary?: boolean; }>; }; /** * When the dashboard was last visited (ISO 8601) */ lastVisited: string | null; /** * Display type of each widget, in order */ widgetDisplay: Array; /** * Display type and layout of each widget, for rendering a preview */ widgetPreview: Array<{ [key: string]: string | null; }>; /** * Edit permissions for the dashboard */ permissions: { /** * Whether everyone in the organization can edit the dashboard */ isEditableByEveryone: boolean; /** * IDs of the teams that can edit the dashboard */ teamsWithEditAccess: Array; } | null; /** * Whether the requesting user favorited the dashboard */ isFavorited: boolean; /** * Saved project filter for the dashboard. [-1] means all projects */ projects: Array; /** * ID of the prebuilt dashboard this dashboard comes from */ prebuiltId: number | null; }>; export type StatusDetailsValidator = { /** * If true, marks the issue as resolved in the next release. */ inNextRelease?: boolean; /** * The version of the release that the issue should be resolved in.If set to `latest`, the latest release will be used. */ inRelease?: string; /** * The commit data that the issue should use for resolution. */ inCommit?: { /** * The SHA of the resolving commit. */ commit: string; /** * The name of the repository (as it appears in Sentry). */ repository: string; }; /** * Ignore the issue until for this many minutes. */ ignoreDuration?: number; /** * Ignore the issue until it has occurred this many times in `ignoreWindow` minutes. */ ignoreCount?: number; /** * Ignore the issue until it has occurred `ignoreCount` times in this many minutes. (Max: 1 week) */ ignoreWindow?: number; /** * Ignore the issue until it has affected this many users in `ignoreUserWindow` minutes. */ ignoreUserCount?: number; /** * Ignore the issue until it has affected `ignoreUserCount` users in this many minutes. (Max: 1 week) */ ignoreUserWindow?: number; }; export type SubmitUserFeedbackResponse = { /** * ID of the feedback */ id: string; /** * ID of the event the feedback is attached to */ eventID: string; /** * Name of the user who submitted the feedback. Falls back to the feedback's email address, then to the event user's name */ name: string | null; /** * Email address of the user who submitted the feedback. Falls back to the event user's email address */ email: string | null; /** * Comments the user submitted */ comments: string; /** * When the feedback was submitted (ISO 8601) */ dateCreated: string; /** * User recorded on the feedback's event. Null when the event isn't found or has no user */ user: { /** * ID of the user, as sent with the event */ id: string; /** * Username sent with the event */ username: string | null; /** * Email address sent with the event */ email: string | null; /** * Display name of the user: the name, email address or username sent with the event, whichever is set first */ name: string | null; /** * IP address sent with the event */ ipAddress: string | null; /** * Gravatar URL for the user's email address */ avatarUrl: string | null; } | null; /** * Event the feedback is attached to */ event: { /** * ID of the event the feedback is attached to */ id: string; /** * ID of the event the feedback is attached to */ eventID: string; }; /** * Issue the feedback's event belongs to. Null when the feedback isn't linked to an issue */ issue: { /** * Whether the issue includes unhandled events */ isUnhandled?: boolean; /** * Total number of events in the issue */ count?: string; /** * Number of users affected by the issue */ userCount?: number; /** * When the issue was first seen (ISO 8601) */ firstSeen?: string | null; /** * When the issue was last seen (ISO 8601) */ lastSeen?: string | null; /** * Additional data derived for the issue. Only included when requested with expand */ derivedData?: { /** * Action that blocks progress on the issue: none, approve_root_cause, approve_plan, approve_code_changes or merge_pr */ blocker: string; /** * How far the issue is toward resolution: identified, assigned, diagnosed, fix_proposed or fix_applied */ progress: string; /** * Status of the issue from its action log: open or closed */ status: string; /** * Number of times the issue was viewed */ viewCount: number; /** * Whether an open pull request is linked to the issue */ hasOpenFixPr: boolean; /** * Whether the issue has an assignee */ isAssigned: boolean; /** * Whether a root cause was found for the issue */ hasRootCause: boolean; /** * Furthest Autofix step completed: none, root_cause, solution, code_changes, pr_created or pr_iteration */ lastCompletedAutofixStep: string; /** * When the issue's progress last advanced (ISO 8601) */ lastProgressedAt: string | null; /** * The issue's impact assessment, or null when no assessment is available */ impact?: { /** * Estimated per-occurrence impact on the end user's capability from 0 to 100 */ score: number | null; /** * Impact level derived from the assessment score */ level: 'super_low' | 'low' | 'moderate' | 'high' | 'super_high' | null; /** * Human-readable description of the capability affected by the issue */ description: string; /** * Evidence-backed claims supporting the impact assessment */ citations: Array<{ /** * Stable identifier for the evidence supporting this claim */ reference: string; /** * Concise explanation of what the cited evidence establishes */ claim: string; /** * The category of evidence cited, such as an event, trace, replay, or log */ source: string; }>; /** * ID of the issue event used to generate the impact assessment */ sourceEventId: string; } | null; }; /** * ID of the issue */ id: string; /** * ID used in the issue's public share URL. Null when the issue isn't shared */ shareId: string | null; /** * Short ID of the issue, such as PROJECT-1A */ shortId: string | null; /** * Title of the issue */ title: string; /** * Function or module where the issue occurs */ culprit: string | null; /** * URL of the issue in Sentry */ permalink: string; /** * Logger of the issue's events */ logger: string | null; /** * Severity level of the issue */ level: 'sample' | 'debug' | 'info' | 'warning' | 'error' | 'fatal' | 'unknown'; /** * Issue status */ status: 'resolved' | 'ignored' | 'pending_deletion' | 'pending_merge' | 'reprocessing' | 'unresolved'; /** * Details of the issue's status, such as when an ignore expires or which release resolves it */ statusDetails: { /** * Number of additional events after which the issue stops being ignored */ ignoreCount?: number | null; /** * When the issue stops being ignored (ISO 8601) */ ignoreUntil?: string | null; /** * Number of additional affected users after which the issue stops being ignored */ ignoreUserCount?: number | null; /** * Time window in minutes for ignoreUserCount */ ignoreUserWindow?: number | null; /** * Time window in minutes for ignoreCount */ ignoreWindow?: number | null; /** * User who ignored or resolved the issue */ actor?: { /** * SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access */ identities?: Array<{ /** * SSO identity ID */ id: string; /** * User's identifier at the auth provider */ name: string; /** * Organization the auth provider belongs to */ organization: { /** * Organization slug */ slug: string; /** * Organization name */ name: string; }; /** * Auth provider of the identity */ provider: { /** * Auth provider key, such as google or saml2 */ id: string; /** * Display name of the auth provider */ name: string; }; /** * When the identity was last verified by signing in through the auth provider */ dateVerified: string; /** * When the identity was last synced from the auth provider */ dateSynced: string; }>; /** * User avatar */ avatar?: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Two-factor authenticators of the user, without backup methods such as recovery codes */ authenticators?: Array<{ /** * Authenticator ID */ id: string; /** * Authenticator type, such as totp, sms, u2f or recovery */ type: string; /** * Display name of the authenticator type */ name: string; /** * When the authenticator was added */ dateCreated: string; /** * When the authenticator was last used, or null */ dateUsed: string | null; }>; /** * Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization */ canReset2fa?: boolean; /** * User ID */ id: string; /** * Display name: the user's name, or their email or username if no name is set */ name: string; /** * Username */ username: string; /** * Primary email address */ email: string; /** * Gravatar URL for the primary email address */ avatarUrl: string; /** * Whether the account is active */ isActive: boolean; /** * Whether the account is suspended. Suspended users can't sign in */ isSuspended: boolean; /** * Whether the user has a password set */ hasPasswordAuth: boolean; /** * Whether the account is managed, which stops the user from changing their username, password and similar details */ isManaged: boolean; /** * When the account was created */ dateJoined: string; /** * When the user last signed in, or null */ lastLogin: string | null; /** * Whether the user has two-factor authentication enabled */ has2fa: boolean; /** * When the user was last active, or null */ lastActive: string | null; /** * Whether the user is a superuser */ isSuperuser: boolean; /** * Whether the user has staff status */ isStaff: boolean; /** * Deprecated. Always an empty object */ experiments: { [key: string]: string; }; /** * Email addresses of the user. Only included for the requesting user or superusers; empty otherwise */ emails: Array<{ /** * Email ID */ id: string; /** * Email address */ email: string; /** * Whether the email address is verified */ is_verified: boolean; }>; } | null; /** * Whether the issue is resolved in the next release */ inNextRelease?: boolean; /** * Version of the release the issue is resolved in */ inRelease?: string; /** * Commit the issue is resolved in */ inCommit?: string; /** * Number of events still waiting to be reprocessed */ pendingEvents?: number; /** * Reprocessing progress details */ info?: { /** * When reprocessing started (ISO 8601) */ dateCreated: string; /** * Number of events in the issue when reprocessing started */ syncCount: number; /** * Number of events to reprocess, at most the requested maximum */ totalEvents: number; } | null; }; /** * Substatus of the issue, such as ongoing, regressed or escalating */ substatus: 'archived_until_escalating' | 'archived_until_condition_met' | 'archived_forever' | 'escalating' | 'ongoing' | 'regressed' | 'new' | null; /** * Whether the issue is shared publicly */ isPublic: boolean; /** * Platform of the issue's events */ platform: string | null; /** * Priority of the issue: high, medium or low */ priority: 'low' | 'medium' | 'high' | null; /** * When the priority was last set manually, which stops automatic priority updates (ISO 8601) */ priorityLockedAt: string | null; /** * Seer's score for how likely the issue is to be fixable */ seerFixabilityScore: number | null; /** * When Seer Autofix was last triggered for the issue (ISO 8601) */ seerAutofixLastTriggered: string | null; /** * When the Seer explorer agent last completed an Autofix step for the issue (ISO 8601) */ seerExplorerAutofixLastTriggered: string | null; /** * Project the issue belongs to */ project: { /** * ID of the project */ id: string; /** * Name of the project */ name: string; /** * Slug of the project */ slug: string; /** * Platform of the project */ platform: string | null; }; /** * Event type of the issue, such as error or default */ type: 'default' | 'error' | 'csp' | 'nel' | 'hpkp' | 'expectct' | 'expectstaple' | 'transaction' | 'generic' | 'feedback'; /** * Issue type, such as error or performance_n_plus_one_db_queries */ issueType: string; /** * Issue category, such as error or performance */ issueCategory: string; /** * Issue metadata */ metadata: { /** * Title of default and issue platform events */ title?: string; /** * Exception value, or the subtitle of an issue */ value?: string; /** * Exception type of error events */ type?: string; /** * Whether the SDK fabricated the exception to carry a stacktrace, so its type is a platform label rather than what went wrong */ synthetic?: boolean; /** * File of the frame where the error happened */ filename?: string; /** * Function of the frame where the error happened */ function?: string; /** * Message of default, security and feedback events */ message?: string; /** * URI that a CSP report blocked */ uri?: string; /** * CSP directive that was violated */ directive?: string; /** * Host name of HPKP, Expect-CT and Expect-Staple reports */ origin?: string; /** * Name of the person who sent user feedback */ name?: string; /** * Email of the person who sent user feedback */ contact_email?: string; /** * Where user feedback came from, such as a widget */ source?: string; /** * Whether the stacktrace has in-app frames, system frames or both */ in_app_frame_mix?: string; /** * Whether a crash report was dropped because the issue already stores the most allowed */ stripped_crash?: boolean; /** * SDK of the issue's first event */ sdk?: { /** * Name of the SDK, or unknown */ name: string; /** * Name of the SDK, normalized for grouping */ name_normalized: string; }; /** * Severity score of the issue's first event */ severity?: number; /** * Why the severity score is what it is */ severity_reason?: string; /** * Priority the issue was created with */ initial_priority?: number; }; /** * Number of comments on the issue */ numComments: number; /** * User or team the issue is assigned to */ assignedTo: { /** * Whether the actor is a user or a team */ type: 'user' | 'team'; /** * ID of the user or team */ id: string; /** * Display name of the user, or slug of the team */ name: string; /** * Email address of the user. Only set for users */ email?: string; } | null; /** * Whether the requesting user bookmarked the issue */ isBookmarked: boolean; /** * Whether the requesting user is subscribed to the issue */ isSubscribed: boolean; /** * Why the requesting user is subscribed to the issue */ subscriptionDetails: { /** * Whether the requesting user turned off notifications for the issue */ disabled?: boolean; /** * Why the requesting user is subscribed: commented, assigned, bookmarked, changed_status, mentioned or unknown */ reason?: string; } | null; /** * Whether the requesting user has seen the issue since it last occurred */ hasSeen: boolean; /** * External issues linked to the issue */ annotations: Array<{ /** * Display name of the linked external issue */ displayName: string; /** * URL of the linked external issue */ url: string; }>; } | null; }; export type TagKeyDetailsDict = { /** * Number of distinct values seen for the tag key */ uniqueValues?: number | null; /** * Number of events counted for the tag key. For an issue tag, this is the issue's retained event count, including events without the tag */ totalValues?: number | null; /** * Most frequent values of the tag key, ordered by count */ topValues?: Array<{ /** * Search query that matches events with the tag value. Only set for the user tag */ query?: string | null; /** * Tag key, with the `sentry:` prefix removed from built-in keys */ key: string; /** * Display label of the tag value. For the user tag, the `id:`, `email:`, `username:` or `ip:` prefix is removed */ name: string | null; /** * Tag value */ value: string | null; /** * Number of events with the tag value. Null for an empty value */ count: number | null; /** * When the tag value was last seen (ISO 8601). Null for an empty value */ lastSeen: string | null; /** * When the tag value was first seen (ISO 8601). Null for an empty value */ firstSeen: string | null; }> | null; /** * Tag key, with the `sentry:` prefix removed from built-in keys */ key: string; /** * Display label of the tag key */ name: string; }; export type TagKeyValuesDict = Array<{ /** * Search query that matches events with the tag value. Only set for the user tag */ query?: string | null; /** * Tag key, with the `sentry:` prefix removed from built-in keys */ key: string; /** * Display label of the tag value. For the user tag, the `id:`, `email:`, `username:` or `ip:` prefix is removed */ name: string | null; /** * Tag value */ value: string | null; /** * Number of events with the tag value. Null for an empty value */ count: number | null; /** * When the tag value was last seen (ISO 8601). Null for an empty value */ lastSeen: string | null; /** * When the tag value was first seen (ISO 8601). Null for an empty value */ firstSeen: string | null; }>; export type Team = { /** * Team ID */ id: string; /** * Team slug, unique within the organization */ slug: string; /** * Display name of the team */ name: string; /** * When the team was created (ISO 8601) */ dateCreated: string | null; /** * Whether the requesting user is a member of the team */ isMember: boolean; /** * The requesting user's role in the team */ teamRole: string | null; /** * Team flags. idp:provisioned is true when the team is managed by an identity provider through SCIM */ flags: { [key: string]: boolean; }; /** * Scopes the requesting user has on the team through their team role. Empty if the user has no access */ access: Array; /** * Whether the requesting user can access the team, as a member, through open membership or through an organization role with access to all teams */ hasAccess: boolean; /** * Whether the requesting user has a pending request to join the team */ isPending: boolean; /** * Number of members in the team */ memberCount: number; /** * Team avatar */ avatar: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Teams in external providers, such as Slack or GitHub, that are linked to this team */ externalTeams?: Array<{ /** * ID of the user or team in the provider */ externalId?: string; /** * ID of the Sentry user. Only set for user mappings */ userId?: string; /** * ID of the Sentry team. Only set for team mappings */ teamId?: string; /** * ID of the external actor mapping */ id: string; /** * Provider of the external actor, such as github or slack */ provider: string; /** * Name of the user or team in the provider, such as @octocat */ externalName: string; /** * ID of the integration the mapping belongs to */ integrationId: string; }>; /** * Organization the team belongs to */ organization?: { /** * Features enabled for the organization */ features?: Array; /** * Server-wide options that the Sentry UI reads */ extraOptions?: { [key: string]: { [key: string]: unknown; }; }; /** * Scopes the requesting user has in the organization */ access?: Array; /** * Onboarding tasks the organization has completed or skipped */ onboardingTasks?: Array<{ /** * Onboarding task key, such as create_project */ task: string | null; /** * Task status: complete or skipped */ status: string; /** * When the task's completion was marked as seen, or null */ completionSeen: string | null; /** * When the task was completed or skipped */ dateCompleted: string; /** * Data recorded for the task. Most tasks record none, so it's often empty */ data: { /** * ID of the member whose invite completed the invite_member task */ invited_member_id?: number; /** * Platform of the first event, for the first_event task */ platform?: string | null; /** * Slug of the plugin enabled for the task */ plugin?: string; /** * Integration providers installed for the integrations task */ providers?: Array; }; }>; /** * Organization ID */ id: string; /** * Organization slug */ slug: string; /** * Organization status */ status: { /** * Status ID: active, pending_deletion, deletion_in_progress or relocation_pending_approval */ id: string; /** * Status label, such as active or pending deletion */ name: string; }; /** * Organization name, or its slug when it has no name */ name: string; /** * When the organization was created (ISO 8601) */ dateCreated: string; /** * Whether the organization is an early adopter */ isEarlyAdopter: boolean; /** * Whether members must use two-factor authentication */ require2FA: boolean; /** * Organization avatar */ avatar: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Organization and region URLs */ links: { /** * Base URL of the organization */ organizationUrl: string; /** * Base URL of the API for the organization's region */ regionUrl: string; }; /** * Whether SSO is configured for the organization */ hasAuthProvider: boolean; /** * Whether members can invite other members */ allowMemberInvite: boolean; /** * Whether members can create projects */ allowMemberProjectCreation: boolean; /** * Whether Sentry superusers can access the organization */ allowSuperuserAccess: boolean; }; /** * Projects the team has access to */ projects?: Array<{ /** * Counts of non-transaction events per interval over the requested stats period, as [timestamp, count] pairs. Only included when a stats period is requested */ stats?: Array> | { [key: string]: number; }; /** * Counts of transactions per interval over the requested stats period, as [timestamp, count] pairs. Only included when transaction stats are requested */ transactionStats?: Array>; /** * Crash-free session rates for the current and previous stats period. Only included when session stats are requested */ sessionStats?: { /** * Crash-free rate in the current period, as a percentage. Null when there's no session data */ currentCrashFreeRate: number | null; /** * Crash-free rate in the previous period, as a percentage. Null when there's no session data */ previousCrashFreeRate: number | null; /** * Whether the project has release health (session) data */ hasHealthData: boolean; }; /** * ID of the project */ id: string; /** * Slug of the project */ slug: string; /** * Name of the project */ name: string; /** * Platform of the project */ platform: string | null; /** * When the project was created (ISO 8601) */ dateCreated: string; /** * Whether the requesting user bookmarked the project */ isBookmarked: boolean; /** * Whether the requesting user is a member of a team with access to the project */ isMember: boolean; /** * Features enabled for the project */ features: Array; /** * When the project received its first event (ISO 8601) */ firstEvent: string | null; /** * Whether the project has sent transactions */ firstTransactionEvent: boolean; /** * Scopes the requesting user has on the project through team membership and organization role */ access: Array; /** * Whether the requesting user has access to the project */ hasAccess: boolean; /** * Whether the project has sent user feedback */ hasFeedbacks: boolean; /** * Whether the project has sent feature flags */ hasFlags: boolean; /** * Whether the project has sent an event with a minified stack trace */ hasMinifiedStackTrace: boolean; /** * Whether the project has cron monitors */ hasMonitors: boolean; /** * Whether the project has sent user feedback from the user feedback widget */ hasNewFeedbacks: boolean; /** * Whether the project has sent profiles */ hasProfiles: boolean; /** * Whether the project has sent replays */ hasReplays: boolean; /** * Whether the project has sent sessions */ hasSessions: boolean; /** * Whether the project has sent HTTP request spans used by Insights */ hasInsightsHttp: boolean; /** * Whether the project has sent database spans used by Insights */ hasInsightsDb: boolean; /** * Whether the project has sent asset spans used by Insights */ hasInsightsAssets: boolean; /** * Whether the project has sent app start spans used by Insights */ hasInsightsAppStart: boolean; /** * Whether the project has sent screen load spans used by Insights */ hasInsightsScreenLoad: boolean; /** * Whether the project has sent web vitals spans used by Insights */ hasInsightsVitals: boolean; /** * Whether the project has sent cache spans used by Insights */ hasInsightsCaches: boolean; /** * Whether the project has sent queue spans used by Insights */ hasInsightsQueues: boolean; /** * Whether the project has sent AI agent spans used by Insights */ hasInsightsAgentMonitoring: boolean; /** * Whether the project has sent MCP spans used by Insights */ hasInsightsMCP: boolean; /** * Whether the project has sent logs. Always true outside sentry.io */ hasLogs: boolean; /** * Whether the project has sent trace metrics. Always true outside sentry.io */ hasTraceMetrics: boolean; /** * Whether this is the Sentry install's own internal project */ isInternal: boolean; /** * Whether the project is public */ isPublic: boolean; /** * Avatar of the project. Always a letter avatar */ avatar: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Hex color code for the project, derived from its slug unless set explicitly */ color: string; /** * Status of the project: active, deleted, or unknown */ status: string; }>; }; /** * Allows parameters to be defined in snake case, but passed as camel case. * * Errors are output in camel case. */ export type TeamDetails = { /** * Uniquely identifies a team. This is must be available. */ slug: string; /** * The name of the team. */ name?: string; }; export type TeamPost = { /** * Uniquely identifies a team and is used for the interface. If not * provided, it is automatically generated from the name. */ slug?: string | null; /** * **`[DEPRECATED]`** The name for the team. If not provided, it is * automatically generated from the slug * * @deprecated */ name?: string | null; }; export type TeamRoleAssignment = { /** * The slug of the team to assign the member to. */ teamSlug: string; /** * The team role to assign. Use null for the default team role. * * * `contributor` * * `admin` */ role: 'contributor' | 'admin' | null; }; export type TeamScim = { /** * SCIM schema URIs of the resource */ schemas: Array; /** * Team ID */ id: string; /** * Display name of the team */ displayName: string; /** * SCIM resource metadata */ meta: { /** * SCIM resource type, such as User or Group */ resourceType: string; }; /** * Members of the team. Included only when members are requested */ members?: Array<{ /** * Organization member ID */ value: string; /** * Email address of the member */ display: string; }>; }; export type TraceItemDetailsResponse = { /** * The ID of the item. For a span, this is the 16-character span ID */ itemId: string; /** * When the item happened, as an RFC 3339 UTC timestamp ending in `Z` */ timestamp: string; /** * The attributes of the item, sorted by type and then by name */ attributes: Array<{ /** * The public name of the attribute, such as `severity`. A custom number or boolean attribute is named `tags[,number]` or `tags[,boolean]` */ name: string; /** * The name the attribute is stored under */ rawName?: string; /** * The type of the attribute value: `str`, `int`, `float`, `bool` or `array` */ type: 'str' | 'int' | 'float' | 'bool' | 'array'; /** * The attribute value. An `int` value is a string, so 64-bit integers keep their precision. An `array` value is a list of values of one type */ value: number | boolean | string | Array; }>; /** * Processing metadata, keyed by attribute name, for attributes that were changed during ingestion, such as a value that was trimmed for length */ meta: { [key: string]: { [key: string]: unknown; } | null | Array | string | number | boolean; }; /** * The span links of the item, or null if it has none */ links: Array<{ /** * The ID of the linked span */ itemId: string; /** * The ID of the trace the linked span belongs to */ traceId: string; /** * Whether the linked span was sampled */ sampled?: boolean; /** * The attributes of the link. Attributes with values that aren't a string, number or boolean are left out */ attributes?: Array<{ /** * The name of the link attribute, such as `sentry.link.type` */ name: string; /** * The link attribute value */ value: string | number | number | boolean; /** * The type of the link attribute value */ type: 'str' | 'int' | 'float' | 'bool'; }>; }> | null; /** * Fields of the event the item came from that are stored with it. Only present when at least one of them is */ event?: { /** * The contexts of the event the item came from */ contexts?: { [key: string]: unknown; } | null | Array | string | number | boolean; /** * The extra data of the event the item came from */ extra?: { [key: string]: unknown; } | null | Array | string | number | boolean; /** * The breadcrumbs of the event the item came from. Breadcrumb timestamps are ISO 8601 strings */ breadcrumbs?: { [key: string]: unknown; } | null | Array | string | number | boolean; }; }; export type TraceItemStatsResponse = { /** * Requested stats */ data: Array<{ /** * Value distributions of the attributes */ attributeDistributions: { /** * Value distribution of each attribute, by attribute name */ data: { [key: string]: Array<{ /** * Value of the attribute */ label: string; /** * Number of items with the value */ value: number; }>; }; }; }>; }; export type TraceLogsResponse = { /** * The logs, sorted by the `sort` parameter */ data: Array<{ /** * The ID of the log */ id: string; /** * The ID of the project the log belongs to */ 'project.id': number; /** * The ID of the trace the log belongs to */ trace: string; /** * The OpenTelemetry severity number of the log, from 1 to 24, or 0 if unset */ severity_number: number; /** * The severity text of the log, such as `info` or `error` */ severity: string; /** * When the log was recorded */ timestamp: string; /** * When the log was recorded, in nanoseconds since the Unix epoch */ timestamp_precise: number; /** * The body of the log */ message: string; }>; /** * Metadata about the query and its fields */ meta: { /** * Type of each returned field, keyed by field name */ fields: { [key: string]: string; }; /** * Whether the query scanned the full data set rather than a downsampled sample */ full_scan?: boolean; /** * Number of bytes the query scanned, or null if it wasn't reported */ bytes_scanned?: number | null; /** * Opaque routing hint of the query. Pass it unchanged as routing_hint when fetching the details of a log */ routingHint?: string; }; /** * Sampling confidence of each row in `data`, keyed by field. Logs are not aggregated, so each entry is an empty object */ confidence: Array<{ [key: string]: 'low' | 'high' | null; }>; }; export type UpdateClientKey = { /** * The name for the client key */ name?: string; /** * Activate or deactivate the client key. */ isActive?: boolean; /** * Applies a rate limit to cap the number of errors accepted during a given time window. To * disable entirely set `rateLimit` to null. * ```json * { * "rateLimit": { * "window": 7200, // time in seconds * "count": 1000 // error cap * } * } * ``` */ rateLimit?: { count?: number | null; window?: number | null; }; /** * The Sentry Javascript SDK version to use. The currently supported options are: * * * `latest` - Most recent version * * `7.x` - Version 7 releases */ browserSdkVersion?: 'latest' | '7.x'; /** * Configures multiple options for the Javascript Loader Script. * - `Performance Monitoring` * - `Debug Bundles & Logging` * - `Session Replay` - Note that the loader will load the ES6 bundle instead of the ES5 bundle. * - `User Feedback` - Note that the loader will load the ES6 bundle instead of the ES5 bundle. * - `Logs and Metrics` - Note that the loader will load the ES6 bundle instead of the ES5 bundle. Requires SDK >= 10.0.0. * ```json * { * "dynamicSdkLoaderOptions": { * "hasReplay": true, * "hasPerformance": true, * "hasDebug": true, * "hasFeedback": true, * "hasLogsAndMetrics": true * } * } * ``` */ dynamicSdkLoaderOptions?: { hasReplay?: boolean; hasPerformance?: boolean; hasDebug?: boolean; hasFeedback?: boolean; hasLogsAndMetrics?: boolean; }; }; export type UpdateOrgMemberRoles = { /** * The organization role of the member. The options are: * * * `billing` - Can manage payment and compliance details. * * `member` - Can view and act on events, as well as view most other data within the organization. * * `manager` - Has full management access to all teams and projects. Can also manage * the organization's membership. * * `owner` - Has unrestricted access to the organization, its data, and its * settings. Can add, modify, and delete projects and members, as well as * make billing and plan changes. * * `admin` - Can edit global integrations, manage projects, and add/remove teams. * They automatically assume the Team Admin role for teams they join. * Note: This role can no longer be assigned in Business and Enterprise plans. Use `TeamRoles` instead. * */ orgRole?: 'billing' | 'member' | 'manager' | 'owner' | 'admin'; /** * * Configures the team role of the member. The two roles are: * - `contributor` - Can view and act on issues. Depending on organization settings, they can also add team members. * - `admin` - Has full management access to their team's membership and projects. * ```json * { * "teamRoles": [ * { * "teamSlug": "ancient-gabelers", * "role": "admin" * }, * { * "teamSlug": "powerful-abolitionist", * "role": "contributor" * } * ] * } * ``` * */ teamRoles?: Array<{ /** * The slug of the team to assign the member to. */ teamSlug: string; /** * The team role to assign. Use null for the default team role. * * * `contributor` * * `admin` */ role: 'contributor' | 'admin' | null; }>; }; /** * Validator for the uptime detector config field. */ export type UptimeDomainCheckFailureConfigValidator = { /** * Name of the environment to create uptime issues in. */ environment?: string | null; /** * Number of consecutive successful checks required to mark monitor as recovered. */ recovery_threshold?: number; /** * Number of consecutive failed checks required to mark monitor as down. */ downtime_threshold?: number; mode?: number; }; /** * Allows parameters to be defined in snake case, but passed as camel case. * * Errors are output in camel case. */ export type UptimeMonitorDataSourceValidator = { url: string; /** * Additional headers to send with the check request. */ headers?: { [key: string]: unknown; }; /** * The number of milliseconds the request will wait for a response before timing-out. */ timeout_ms: number; /** * The HTTP method used to make the check request. * * * `GET` * * `POST` * * `HEAD` * * `PUT` * * `DELETE` * * `PATCH` * * `OPTIONS` */ method?: 'GET' | 'POST' | 'HEAD' | 'PUT' | 'DELETE' | 'PATCH' | 'OPTIONS'; /** * When enabled allows check requets to be considered for dowstream performance tracing. */ trace_sampling?: boolean; /** * When enabled, response body and headers will be captured on check failures. */ response_capture_enabled?: boolean; /** * The body to send with the check request. */ body?: string | null; /** * Time in seconds between uptime checks. * * * `60` - 1 minute * * `300` - 5 minutes * * `600` - 10 minutes * * `1200` - 20 minutes * * `1800` - 30 minutes * * `3600` - 1 hour */ interval_seconds: 60 | 300 | 600 | 1200 | 1800 | 3600; /** * The assertion to send with the check request. */ assertion?: { [key: string]: unknown; } | null; }; export type UserReport = { /** * User's name. */ name: string; /** * User's email address. */ email: string; /** * Comments supplied by user. */ comments: string; /** * The event ID. This can be retrieved from the [beforeSend callback](https://docs.sentry.io/platforms/javascript/configuration/filtering/#using-beforesend). */ event_id: string; }; export type Visualize = { chartType?: number; yAxes: Array; /** * Ordered fill(...) and smooth(...) expressions. Use an empty list to clear the pipeline. */ transformations?: Array; }; /** * Widget grid layout position and dimensions. * * The dashboard uses a 6-column grid. Required keys: x, y, w, h, minH. * Constraints: x (0-5), y (>= 0), w (1-6), h (>= 1), minH (>= 1), and x + w <= 6. */ export type WidgetLayout = { /** * Column position (0-indexed). */ x: number; /** * Row position (0-indexed). */ y: number; /** * Width in grid columns (1-6). */ w: number; /** * Height in grid rows. */ h: number; /** * Minimum height in grid rows. */ min_h: number; }; export type Workflow = { /** * Workflow ID */ id: string; /** * Workflow name */ name: string; /** * Type of the workflow, such as alert */ type: string; /** * ID of the organization the workflow belongs to */ organizationId: string; /** * ID of the user who created the workflow */ createdBy: string | null; /** * When the workflow was created (ISO 8601) */ dateCreated: string; /** * When the workflow was last updated (ISO 8601) */ dateUpdated: string; /** * Conditions on which the workflow triggers */ triggers: { /** * ID of the condition group */ id?: string; /** * ID of the organization */ organizationId?: string; /** * How the conditions in the group combine */ logicType?: 'any' | 'any-short' | 'all' | 'none'; /** * Conditions in the group */ conditions?: Array<{ /** * ID of the condition */ id: string; /** * Type of the condition, such as first_seen_event or level */ type: string; /** * Value the condition compares against, which depends on its type */ comparison: number | string | boolean | { /** * Whether the issue must be older or newer than the age */ comparisonType: 'older' | 'newer'; /** * Age of the issue, in units of time */ value: number; /** * Unit of the age */ time: 'minute' | 'hour' | 'day' | 'week'; } | { /** * How sensitive anomaly detection is */ sensitivity: 'low' | 'medium' | 'high'; /** * Seasonal pattern that anomaly detection accounts for */ seasonality: 'auto' | 'hourly' | 'daily' | 'weekly' | 'hourly_daily' | 'hourly_weekly' | 'hourly_daily_weekly' | 'daily_weekly'; /** * Anomalies to detect: 0 above, 1 below, 2 above or below the expected value */ thresholdType: 0 | 1 | 2; } | { /** * Who the issue must be assigned to */ targetType: 'Unassigned' | 'Team' | 'Member'; /** * ID of the team or member. Not set for Unassigned */ targetIdentifier?: number | string; } | { /** * Event attribute to match, such as message or user.email */ attribute?: 'message' | 'platform' | 'environment' | 'type' | 'error.handled' | 'error.unhandled' | 'error.main_thread' | 'exception.type' | 'exception.value' | 'user.id' | 'user.email' | 'user.username' | 'user.ip_address' | 'http.method' | 'http.url' | 'http.status_code' | 'sdk.name' | 'stacktrace.code' | 'stacktrace.module' | 'stacktrace.filename' | 'stacktrace.abs_path' | 'stacktrace.package' | 'unreal.crash_type' | 'app.in_foreground' | 'os.distribution_name' | 'os.distribution_version' | 'symbolicated_in_app' | 'ota_updates.channel' | 'ota_updates.runtime_version' | 'ota_updates.update_id'; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the attribute against. Not set for is and ns */ value?: string; } | number | { /** * Time window to count in, such as 1h */ interval: '1m' | '5m' | '15m' | '1h' | '1d' | '1w' | '30d'; /** * Number of events in the interval that meets the condition */ value: number; /** * Tag or attribute filters that events must match to count */ filters?: Array<{ /** * Tag key to match */ key?: string; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the tag or attribute against. Not set for is and ns */ value?: string; } | { /** * Event attribute to match, such as message or user.email */ attribute?: 'message' | 'platform' | 'environment' | 'type' | 'error.handled' | 'error.unhandled' | 'error.main_thread' | 'exception.type' | 'exception.value' | 'user.id' | 'user.email' | 'user.username' | 'user.ip_address' | 'http.method' | 'http.url' | 'http.status_code' | 'sdk.name' | 'stacktrace.code' | 'stacktrace.module' | 'stacktrace.filename' | 'stacktrace.abs_path' | 'stacktrace.package' | 'unreal.crash_type' | 'app.in_foreground' | 'os.distribution_name' | 'os.distribution_version' | 'symbolicated_in_app' | 'ota_updates.channel' | 'ota_updates.runtime_version' | 'ota_updates.update_id'; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the tag or attribute against. Not set for is and ns */ value?: string; }>; } | { /** * Time window to count in, such as 1h */ interval: '1m' | '5m' | '15m' | '1h' | '1d' | '1w' | '30d'; /** * Percent increase in events over the comparison interval that meets the condition */ value: number; /** * Earlier time window to compare the count against, such as 1w */ comparisonInterval: '5m' | '15m' | '1h' | '1d' | '1w' | '30d'; /** * Tag or attribute filters that events must match to count */ filters?: Array<{ /** * Tag key to match */ key?: string; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the tag or attribute against. Not set for is and ns */ value?: string; } | { /** * Event attribute to match, such as message or user.email */ attribute?: 'message' | 'platform' | 'environment' | 'type' | 'error.handled' | 'error.unhandled' | 'error.main_thread' | 'exception.type' | 'exception.value' | 'user.id' | 'user.email' | 'user.username' | 'user.ip_address' | 'http.method' | 'http.url' | 'http.status_code' | 'sdk.name' | 'stacktrace.code' | 'stacktrace.module' | 'stacktrace.filename' | 'stacktrace.abs_path' | 'stacktrace.package' | 'unreal.crash_type' | 'app.in_foreground' | 'os.distribution_name' | 'os.distribution_version' | 'symbolicated_in_app' | 'ota_updates.channel' | 'ota_updates.runtime_version' | 'ota_updates.update_id'; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the tag or attribute against. Not set for is and ns */ value?: string; }>; } | { /** * Time window to count in, such as 1h */ interval: '1m' | '5m' | '15m' | '1h' | '1d' | '1w' | '30d'; /** * Number of affected users in the interval that meets the condition */ value: number; /** * Tag or attribute filters that events must match to count */ filters?: Array<{ /** * Tag key to match */ key?: string; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the tag or attribute against. Not set for is and ns */ value?: string; } | { /** * Event attribute to match, such as message or user.email */ attribute?: 'message' | 'platform' | 'environment' | 'type' | 'error.handled' | 'error.unhandled' | 'error.main_thread' | 'exception.type' | 'exception.value' | 'user.id' | 'user.email' | 'user.username' | 'user.ip_address' | 'http.method' | 'http.url' | 'http.status_code' | 'sdk.name' | 'stacktrace.code' | 'stacktrace.module' | 'stacktrace.filename' | 'stacktrace.abs_path' | 'stacktrace.package' | 'unreal.crash_type' | 'app.in_foreground' | 'os.distribution_name' | 'os.distribution_version' | 'symbolicated_in_app' | 'ota_updates.channel' | 'ota_updates.runtime_version' | 'ota_updates.update_id'; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the tag or attribute against. Not set for is and ns */ value?: string; }>; } | { /** * Time window to count in, such as 1h */ interval: '1m' | '5m' | '15m' | '1h' | '1d' | '1w' | '30d'; /** * Percent increase in affected users over the comparison interval that meets the condition */ value: number; /** * Earlier time window to compare the count against, such as 1w */ comparisonInterval: '5m' | '15m' | '1h' | '1d' | '1w' | '30d'; /** * Tag or attribute filters that events must match to count */ filters?: Array<{ /** * Tag key to match */ key?: string; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the tag or attribute against. Not set for is and ns */ value?: string; } | { /** * Event attribute to match, such as message or user.email */ attribute?: 'message' | 'platform' | 'environment' | 'type' | 'error.handled' | 'error.unhandled' | 'error.main_thread' | 'exception.type' | 'exception.value' | 'user.id' | 'user.email' | 'user.username' | 'user.ip_address' | 'http.method' | 'http.url' | 'http.status_code' | 'sdk.name' | 'stacktrace.code' | 'stacktrace.module' | 'stacktrace.filename' | 'stacktrace.abs_path' | 'stacktrace.package' | 'unreal.crash_type' | 'app.in_foreground' | 'os.distribution_name' | 'os.distribution_version' | 'symbolicated_in_app' | 'ota_updates.channel' | 'ota_updates.runtime_version' | 'ota_updates.update_id'; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the tag or attribute against. Not set for is and ns */ value?: string; }>; } | { /** * ID of the issue category */ value: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 19; /** * Whether the issue must be in the category or not. Defaults to true */ include?: boolean; } | { /** * Number of times the issue must have occurred */ value: number; } | 25 | 50 | 75 | 1 | { /** * Slug of the issue type */ value: 'performance_slow_db_query' | 'performance_render_blocking_asset_span' | 'performance_n_plus_one_db_queries' | 'performance_n_plus_one_db_queries_experimental' | 'performance_consecutive_db_queries' | 'performance_file_io_main_thread' | 'performance_consecutive_http' | 'performance_n_plus_one_api_calls' | 'performance_n_plus_one_api_calls_experimental' | 'performance_m_n_plus_one_db_queries' | 'performance_m_n_plus_one_db_queries_experimental' | 'performance_uncompressed_assets' | 'performance_db_main_thread' | 'performance_large_http_payload' | 'performance_http_overhead' | 'performance_p95_endpoint_regression' | 'performance_streamed_spans_exp' | 'db_query_injection_vulnerability' | 'query_injection_vulnerability' | 'profile_file_io_main_thread' | 'profile_image_decode_main_thread' | 'profile_json_decode_main_thread' | 'profile_regex_main_thread' | 'profile_frame_drop' | 'profile_function_regression' | 'llm_detected_experimental' | 'llm_detected_experimental_v2' | 'ai_detected_http' | 'ai_detected_db' | 'ai_detected_runtime_performance' | 'ai_detected_security' | 'ai_detected_code_health' | 'ai_detected_general' | 'replay_click_rage' | 'replay_hydration_error' | 'feedback' | 'web_vitals' | 'issue_stream' | 'metric_issue' | 'error' | 'uptime_domain_failure' | 'send-test-notification' | 'monitor_check_in_failure' | 'sourcemap_configuration' | 'low_value_span_configuration' | 'preprod_size_analysis'; /** * Whether the issue must be of the type or not. Defaults to true */ include?: boolean; } | { /** * Whether to compare against the oldest or newest adopted release */ releaseAgeType: 'oldest' | 'newest'; /** * Whether the event's release must be older or newer than that release */ ageComparison: 'older' | 'newer'; /** * Environment the release was adopted in */ environment: string; } | { /** * Event level: 0 sample, 10 debug, 20 info, 30 warning, 40 error, 50 fatal */ level: 0 | 10 | 20 | 30 | 40 | 50; /** * How to compare the event's level: eq, gte or lte */ match: 'eq' | 'gte' | 'lte'; } | { /** * Time window to count in, such as 1h */ interval: '1m' | '5m' | '10m' | '30m' | '1h'; /** * Percent of sessions affected in the interval that meets the condition */ value: number; /** * Tag or attribute filters that events must match to count */ filters?: Array<{ /** * Tag key to match */ key?: string; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the tag or attribute against. Not set for is and ns */ value?: string; } | { /** * Event attribute to match, such as message or user.email */ attribute?: 'message' | 'platform' | 'environment' | 'type' | 'error.handled' | 'error.unhandled' | 'error.main_thread' | 'exception.type' | 'exception.value' | 'user.id' | 'user.email' | 'user.username' | 'user.ip_address' | 'http.method' | 'http.url' | 'http.status_code' | 'sdk.name' | 'stacktrace.code' | 'stacktrace.module' | 'stacktrace.filename' | 'stacktrace.abs_path' | 'stacktrace.package' | 'unreal.crash_type' | 'app.in_foreground' | 'os.distribution_name' | 'os.distribution_version' | 'symbolicated_in_app' | 'ota_updates.channel' | 'ota_updates.runtime_version' | 'ota_updates.update_id'; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the tag or attribute against. Not set for is and ns */ value?: string; }>; } | { /** * Time window to count in, such as 1h */ interval: '1m' | '5m' | '10m' | '30m' | '1h'; /** * Percent increase in affected sessions over the comparison interval that meets the condition */ value: number; /** * Earlier time window to compare the count against, such as 1w */ comparisonInterval: '5m' | '15m' | '1h' | '1d' | '1w' | '30d'; /** * Tag or attribute filters that events must match to count */ filters?: Array<{ /** * Tag key to match */ key?: string; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the tag or attribute against. Not set for is and ns */ value?: string; } | { /** * Event attribute to match, such as message or user.email */ attribute?: 'message' | 'platform' | 'environment' | 'type' | 'error.handled' | 'error.unhandled' | 'error.main_thread' | 'exception.type' | 'exception.value' | 'user.id' | 'user.email' | 'user.username' | 'user.ip_address' | 'http.method' | 'http.url' | 'http.status_code' | 'sdk.name' | 'stacktrace.code' | 'stacktrace.module' | 'stacktrace.filename' | 'stacktrace.abs_path' | 'stacktrace.package' | 'unreal.crash_type' | 'app.in_foreground' | 'os.distribution_name' | 'os.distribution_version' | 'symbolicated_in_app' | 'ota_updates.channel' | 'ota_updates.runtime_version' | 'ota_updates.update_id'; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the tag or attribute against. Not set for is and ns */ value?: string; }>; } | Array<'rca_completed' | 'solution_completed' | 'coding_completed' | 'pr_ready_for_review'> | { /** * Tag key to match */ key?: string; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the tag against. Not set for is and ns */ value?: string; }; /** * Result the condition produces when it matches: true for alert conditions, or the priority level for monitor conditions */ conditionResult: boolean | number | number | null; }>; /** * Actions to fire when the conditions pass */ actions?: Array<{ /** * ID of the action */ id?: string; /** * Type of the action */ type?: 'slack' | 'slack_staging' | 'msteams' | 'discord' | 'pagerduty' | 'opsgenie' | 'github' | 'github_enterprise' | 'jira' | 'jira_server' | 'vsts' | 'email' | 'sentry_app' | 'plugin' | 'webhook' | 'seer_investigation'; /** * ID of the integration the action uses. Null for actions without one */ integrationId?: string | null; /** * Extra data for the action, which depends on its type */ data?: { /** * Tags to add to the message */ tags?: string; } | { /** * The fallthrough type for issue owners email notifications */ fallthroughType?: 'AllMembers' | 'ActiveMembers' | 'NoOne'; } | { /** * Dynamic form fields from customer configuration */ dynamicFormFields?: Array<{ /** * Name of the field */ name?: string; /** * Label of the field */ label?: string; /** * Type of the field, such as select or text */ type?: string; }>; /** * Additional fields that aren't part of standard fields */ additionalFields: { /** * Repository to create the issue in, as owner/name */ repo: string; /** * Labels to add to the issue */ labels?: Array | null; /** * User to assign the issue to */ assignee?: string | null; [key: string]: unknown; }; } | { /** * Dynamic form fields from customer configuration */ dynamicFormFields?: Array<{ /** * Name of the field */ name?: string; /** * Label of the field */ label?: string; /** * Type of the field, such as select or text */ type?: string; }>; /** * Additional fields that aren't part of standard fields */ additionalFields?: { [key: string]: string | null | number | boolean | Array; }; } | { [key: string]: never; } | { /** * The priority of the opsgenie action */ priority?: 'P1' | 'P2' | 'P3' | 'P4' | 'P5'; } | { /** * The priority of the pagerduty action */ priority?: 'default' | 'critical' | 'warning' | 'error' | 'info'; } | { [key: string]: string; } | { /** * Prompt the investigation runs */ prompt?: string; /** * Seer skill the investigation runs, instead of a prompt */ skill?: 'agentic_triage'; } | { /** * Values of the Sentry App's alert rule settings form, each with a name and value */ settings?: Array; } | { /** * Tags to add to the message */ tags?: string; /** * Notes to add to the message */ notes?: string; }; /** * Configuration of the action, such as targetType and targetIdentifier */ config?: { /** * ID of the target, such as a channel, user or team ID */ targetIdentifier: string; /** * Display name of the target, such as a channel name */ targetDisplay?: string | null; /** * Kind of target the action notifies, such as specific, user or team */ targetType: 'specific'; } | { /** * ID of the target, such as a channel, user or team ID */ targetIdentifier?: string | null; /** * Display name of the target, such as a channel name */ targetDisplay?: null; /** * Kind of target the action notifies, such as specific, user or team */ targetType: 'user' | 'team' | 'issue_owners'; } | { /** * ID of the target, such as a channel, user or team ID */ targetIdentifier?: null; /** * Display name of the target, such as a channel name */ targetDisplay?: null; /** * Kind of target the action notifies, such as specific, user or team */ targetType?: 'specific'; } | { /** * ID of the target, such as a channel, user or team ID */ targetIdentifier?: string; /** * Display name of the target, such as a channel name */ targetDisplay: string; /** * Kind of target the action notifies, such as specific, user or team */ targetType: 'specific'; } | { /** * ID of the target, such as a channel, user or team ID */ targetIdentifier: string; /** * Display name of the target, such as a channel name */ targetDisplay?: string | null; /** * Kind of target the action notifies, such as specific, user or team */ targetType: 'specific'; } | { /** * ID of the target, such as a channel, user or team ID */ targetIdentifier?: string | null; /** * Display name of the target, such as a channel name */ targetDisplay?: string | null; /** * Kind of target the action notifies, such as specific, user or team */ targetType?: null; } | { [key: string]: never; } | { /** * ID of the target, such as a channel, user or team ID */ targetIdentifier: string; /** * Display name of the target, such as a channel name */ targetDisplay?: string | null; /** * Kind of target the action notifies, such as specific, user or team */ targetType: 'sentry_app'; } | { /** * ID of the target, such as a channel, user or team ID */ targetIdentifier?: string; /** * Display name of the target, such as a channel name */ targetDisplay?: string; /** * Kind of target the action notifies, such as specific, user or team */ targetType: 'specific'; } | { /** * ID of the target, such as a channel, user or team ID */ targetIdentifier?: string; /** * Display name of the target, such as a channel name */ targetDisplay?: null; /** * Kind of target the action notifies, such as specific, user or team */ targetType?: null; }; /** * Status of the action */ status?: 'active' | 'disabled' | 'pending_deletion' | 'deletion_in_progress'; }>; } | null; /** * Filters to run before actions fire, each with the actions to fire */ actionFilters: Array<{ /** * ID of the condition group */ id?: string; /** * ID of the organization */ organizationId?: string; /** * How the conditions in the group combine */ logicType?: 'any' | 'any-short' | 'all' | 'none'; /** * Conditions in the group */ conditions?: Array<{ /** * ID of the condition */ id: string; /** * Type of the condition, such as first_seen_event or level */ type: string; /** * Value the condition compares against, which depends on its type */ comparison: number | string | boolean | { /** * Whether the issue must be older or newer than the age */ comparisonType: 'older' | 'newer'; /** * Age of the issue, in units of time */ value: number; /** * Unit of the age */ time: 'minute' | 'hour' | 'day' | 'week'; } | { /** * How sensitive anomaly detection is */ sensitivity: 'low' | 'medium' | 'high'; /** * Seasonal pattern that anomaly detection accounts for */ seasonality: 'auto' | 'hourly' | 'daily' | 'weekly' | 'hourly_daily' | 'hourly_weekly' | 'hourly_daily_weekly' | 'daily_weekly'; /** * Anomalies to detect: 0 above, 1 below, 2 above or below the expected value */ thresholdType: 0 | 1 | 2; } | { /** * Who the issue must be assigned to */ targetType: 'Unassigned' | 'Team' | 'Member'; /** * ID of the team or member. Not set for Unassigned */ targetIdentifier?: number | string; } | { /** * Event attribute to match, such as message or user.email */ attribute?: 'message' | 'platform' | 'environment' | 'type' | 'error.handled' | 'error.unhandled' | 'error.main_thread' | 'exception.type' | 'exception.value' | 'user.id' | 'user.email' | 'user.username' | 'user.ip_address' | 'http.method' | 'http.url' | 'http.status_code' | 'sdk.name' | 'stacktrace.code' | 'stacktrace.module' | 'stacktrace.filename' | 'stacktrace.abs_path' | 'stacktrace.package' | 'unreal.crash_type' | 'app.in_foreground' | 'os.distribution_name' | 'os.distribution_version' | 'symbolicated_in_app' | 'ota_updates.channel' | 'ota_updates.runtime_version' | 'ota_updates.update_id'; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the attribute against. Not set for is and ns */ value?: string; } | number | { /** * Time window to count in, such as 1h */ interval: '1m' | '5m' | '15m' | '1h' | '1d' | '1w' | '30d'; /** * Number of events in the interval that meets the condition */ value: number; /** * Tag or attribute filters that events must match to count */ filters?: Array<{ /** * Tag key to match */ key?: string; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the tag or attribute against. Not set for is and ns */ value?: string; } | { /** * Event attribute to match, such as message or user.email */ attribute?: 'message' | 'platform' | 'environment' | 'type' | 'error.handled' | 'error.unhandled' | 'error.main_thread' | 'exception.type' | 'exception.value' | 'user.id' | 'user.email' | 'user.username' | 'user.ip_address' | 'http.method' | 'http.url' | 'http.status_code' | 'sdk.name' | 'stacktrace.code' | 'stacktrace.module' | 'stacktrace.filename' | 'stacktrace.abs_path' | 'stacktrace.package' | 'unreal.crash_type' | 'app.in_foreground' | 'os.distribution_name' | 'os.distribution_version' | 'symbolicated_in_app' | 'ota_updates.channel' | 'ota_updates.runtime_version' | 'ota_updates.update_id'; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the tag or attribute against. Not set for is and ns */ value?: string; }>; } | { /** * Time window to count in, such as 1h */ interval: '1m' | '5m' | '15m' | '1h' | '1d' | '1w' | '30d'; /** * Percent increase in events over the comparison interval that meets the condition */ value: number; /** * Earlier time window to compare the count against, such as 1w */ comparisonInterval: '5m' | '15m' | '1h' | '1d' | '1w' | '30d'; /** * Tag or attribute filters that events must match to count */ filters?: Array<{ /** * Tag key to match */ key?: string; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the tag or attribute against. Not set for is and ns */ value?: string; } | { /** * Event attribute to match, such as message or user.email */ attribute?: 'message' | 'platform' | 'environment' | 'type' | 'error.handled' | 'error.unhandled' | 'error.main_thread' | 'exception.type' | 'exception.value' | 'user.id' | 'user.email' | 'user.username' | 'user.ip_address' | 'http.method' | 'http.url' | 'http.status_code' | 'sdk.name' | 'stacktrace.code' | 'stacktrace.module' | 'stacktrace.filename' | 'stacktrace.abs_path' | 'stacktrace.package' | 'unreal.crash_type' | 'app.in_foreground' | 'os.distribution_name' | 'os.distribution_version' | 'symbolicated_in_app' | 'ota_updates.channel' | 'ota_updates.runtime_version' | 'ota_updates.update_id'; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the tag or attribute against. Not set for is and ns */ value?: string; }>; } | { /** * Time window to count in, such as 1h */ interval: '1m' | '5m' | '15m' | '1h' | '1d' | '1w' | '30d'; /** * Number of affected users in the interval that meets the condition */ value: number; /** * Tag or attribute filters that events must match to count */ filters?: Array<{ /** * Tag key to match */ key?: string; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the tag or attribute against. Not set for is and ns */ value?: string; } | { /** * Event attribute to match, such as message or user.email */ attribute?: 'message' | 'platform' | 'environment' | 'type' | 'error.handled' | 'error.unhandled' | 'error.main_thread' | 'exception.type' | 'exception.value' | 'user.id' | 'user.email' | 'user.username' | 'user.ip_address' | 'http.method' | 'http.url' | 'http.status_code' | 'sdk.name' | 'stacktrace.code' | 'stacktrace.module' | 'stacktrace.filename' | 'stacktrace.abs_path' | 'stacktrace.package' | 'unreal.crash_type' | 'app.in_foreground' | 'os.distribution_name' | 'os.distribution_version' | 'symbolicated_in_app' | 'ota_updates.channel' | 'ota_updates.runtime_version' | 'ota_updates.update_id'; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the tag or attribute against. Not set for is and ns */ value?: string; }>; } | { /** * Time window to count in, such as 1h */ interval: '1m' | '5m' | '15m' | '1h' | '1d' | '1w' | '30d'; /** * Percent increase in affected users over the comparison interval that meets the condition */ value: number; /** * Earlier time window to compare the count against, such as 1w */ comparisonInterval: '5m' | '15m' | '1h' | '1d' | '1w' | '30d'; /** * Tag or attribute filters that events must match to count */ filters?: Array<{ /** * Tag key to match */ key?: string; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the tag or attribute against. Not set for is and ns */ value?: string; } | { /** * Event attribute to match, such as message or user.email */ attribute?: 'message' | 'platform' | 'environment' | 'type' | 'error.handled' | 'error.unhandled' | 'error.main_thread' | 'exception.type' | 'exception.value' | 'user.id' | 'user.email' | 'user.username' | 'user.ip_address' | 'http.method' | 'http.url' | 'http.status_code' | 'sdk.name' | 'stacktrace.code' | 'stacktrace.module' | 'stacktrace.filename' | 'stacktrace.abs_path' | 'stacktrace.package' | 'unreal.crash_type' | 'app.in_foreground' | 'os.distribution_name' | 'os.distribution_version' | 'symbolicated_in_app' | 'ota_updates.channel' | 'ota_updates.runtime_version' | 'ota_updates.update_id'; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the tag or attribute against. Not set for is and ns */ value?: string; }>; } | { /** * ID of the issue category */ value: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 19; /** * Whether the issue must be in the category or not. Defaults to true */ include?: boolean; } | { /** * Number of times the issue must have occurred */ value: number; } | 25 | 50 | 75 | 1 | { /** * Slug of the issue type */ value: 'performance_slow_db_query' | 'performance_render_blocking_asset_span' | 'performance_n_plus_one_db_queries' | 'performance_n_plus_one_db_queries_experimental' | 'performance_consecutive_db_queries' | 'performance_file_io_main_thread' | 'performance_consecutive_http' | 'performance_n_plus_one_api_calls' | 'performance_n_plus_one_api_calls_experimental' | 'performance_m_n_plus_one_db_queries' | 'performance_m_n_plus_one_db_queries_experimental' | 'performance_uncompressed_assets' | 'performance_db_main_thread' | 'performance_large_http_payload' | 'performance_http_overhead' | 'performance_p95_endpoint_regression' | 'performance_streamed_spans_exp' | 'db_query_injection_vulnerability' | 'query_injection_vulnerability' | 'profile_file_io_main_thread' | 'profile_image_decode_main_thread' | 'profile_json_decode_main_thread' | 'profile_regex_main_thread' | 'profile_frame_drop' | 'profile_function_regression' | 'llm_detected_experimental' | 'llm_detected_experimental_v2' | 'ai_detected_http' | 'ai_detected_db' | 'ai_detected_runtime_performance' | 'ai_detected_security' | 'ai_detected_code_health' | 'ai_detected_general' | 'replay_click_rage' | 'replay_hydration_error' | 'feedback' | 'web_vitals' | 'issue_stream' | 'metric_issue' | 'error' | 'uptime_domain_failure' | 'send-test-notification' | 'monitor_check_in_failure' | 'sourcemap_configuration' | 'low_value_span_configuration' | 'preprod_size_analysis'; /** * Whether the issue must be of the type or not. Defaults to true */ include?: boolean; } | { /** * Whether to compare against the oldest or newest adopted release */ releaseAgeType: 'oldest' | 'newest'; /** * Whether the event's release must be older or newer than that release */ ageComparison: 'older' | 'newer'; /** * Environment the release was adopted in */ environment: string; } | { /** * Event level: 0 sample, 10 debug, 20 info, 30 warning, 40 error, 50 fatal */ level: 0 | 10 | 20 | 30 | 40 | 50; /** * How to compare the event's level: eq, gte or lte */ match: 'eq' | 'gte' | 'lte'; } | { /** * Time window to count in, such as 1h */ interval: '1m' | '5m' | '10m' | '30m' | '1h'; /** * Percent of sessions affected in the interval that meets the condition */ value: number; /** * Tag or attribute filters that events must match to count */ filters?: Array<{ /** * Tag key to match */ key?: string; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the tag or attribute against. Not set for is and ns */ value?: string; } | { /** * Event attribute to match, such as message or user.email */ attribute?: 'message' | 'platform' | 'environment' | 'type' | 'error.handled' | 'error.unhandled' | 'error.main_thread' | 'exception.type' | 'exception.value' | 'user.id' | 'user.email' | 'user.username' | 'user.ip_address' | 'http.method' | 'http.url' | 'http.status_code' | 'sdk.name' | 'stacktrace.code' | 'stacktrace.module' | 'stacktrace.filename' | 'stacktrace.abs_path' | 'stacktrace.package' | 'unreal.crash_type' | 'app.in_foreground' | 'os.distribution_name' | 'os.distribution_version' | 'symbolicated_in_app' | 'ota_updates.channel' | 'ota_updates.runtime_version' | 'ota_updates.update_id'; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the tag or attribute against. Not set for is and ns */ value?: string; }>; } | { /** * Time window to count in, such as 1h */ interval: '1m' | '5m' | '10m' | '30m' | '1h'; /** * Percent increase in affected sessions over the comparison interval that meets the condition */ value: number; /** * Earlier time window to compare the count against, such as 1w */ comparisonInterval: '5m' | '15m' | '1h' | '1d' | '1w' | '30d'; /** * Tag or attribute filters that events must match to count */ filters?: Array<{ /** * Tag key to match */ key?: string; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the tag or attribute against. Not set for is and ns */ value?: string; } | { /** * Event attribute to match, such as message or user.email */ attribute?: 'message' | 'platform' | 'environment' | 'type' | 'error.handled' | 'error.unhandled' | 'error.main_thread' | 'exception.type' | 'exception.value' | 'user.id' | 'user.email' | 'user.username' | 'user.ip_address' | 'http.method' | 'http.url' | 'http.status_code' | 'sdk.name' | 'stacktrace.code' | 'stacktrace.module' | 'stacktrace.filename' | 'stacktrace.abs_path' | 'stacktrace.package' | 'unreal.crash_type' | 'app.in_foreground' | 'os.distribution_name' | 'os.distribution_version' | 'symbolicated_in_app' | 'ota_updates.channel' | 'ota_updates.runtime_version' | 'ota_updates.update_id'; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the tag or attribute against. Not set for is and ns */ value?: string; }>; } | Array<'rca_completed' | 'solution_completed' | 'coding_completed' | 'pr_ready_for_review'> | { /** * Tag key to match */ key?: string; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the tag against. Not set for is and ns */ value?: string; }; /** * Result the condition produces when it matches: true for alert conditions, or the priority level for monitor conditions */ conditionResult: boolean | number | number | null; }>; /** * Actions to fire when the conditions pass */ actions?: Array<{ /** * ID of the action */ id?: string; /** * Type of the action */ type?: 'slack' | 'slack_staging' | 'msteams' | 'discord' | 'pagerduty' | 'opsgenie' | 'github' | 'github_enterprise' | 'jira' | 'jira_server' | 'vsts' | 'email' | 'sentry_app' | 'plugin' | 'webhook' | 'seer_investigation'; /** * ID of the integration the action uses. Null for actions without one */ integrationId?: string | null; /** * Extra data for the action, which depends on its type */ data?: { /** * Tags to add to the message */ tags?: string; } | { /** * The fallthrough type for issue owners email notifications */ fallthroughType?: 'AllMembers' | 'ActiveMembers' | 'NoOne'; } | { /** * Dynamic form fields from customer configuration */ dynamicFormFields?: Array<{ /** * Name of the field */ name?: string; /** * Label of the field */ label?: string; /** * Type of the field, such as select or text */ type?: string; }>; /** * Additional fields that aren't part of standard fields */ additionalFields: { /** * Repository to create the issue in, as owner/name */ repo: string; /** * Labels to add to the issue */ labels?: Array | null; /** * User to assign the issue to */ assignee?: string | null; [key: string]: unknown; }; } | { /** * Dynamic form fields from customer configuration */ dynamicFormFields?: Array<{ /** * Name of the field */ name?: string; /** * Label of the field */ label?: string; /** * Type of the field, such as select or text */ type?: string; }>; /** * Additional fields that aren't part of standard fields */ additionalFields?: { [key: string]: string | null | number | boolean | Array; }; } | { [key: string]: never; } | { /** * The priority of the opsgenie action */ priority?: 'P1' | 'P2' | 'P3' | 'P4' | 'P5'; } | { /** * The priority of the pagerduty action */ priority?: 'default' | 'critical' | 'warning' | 'error' | 'info'; } | { [key: string]: string; } | { /** * Prompt the investigation runs */ prompt?: string; /** * Seer skill the investigation runs, instead of a prompt */ skill?: 'agentic_triage'; } | { /** * Values of the Sentry App's alert rule settings form, each with a name and value */ settings?: Array; } | { /** * Tags to add to the message */ tags?: string; /** * Notes to add to the message */ notes?: string; }; /** * Configuration of the action, such as targetType and targetIdentifier */ config?: { /** * ID of the target, such as a channel, user or team ID */ targetIdentifier: string; /** * Display name of the target, such as a channel name */ targetDisplay?: string | null; /** * Kind of target the action notifies, such as specific, user or team */ targetType: 'specific'; } | { /** * ID of the target, such as a channel, user or team ID */ targetIdentifier?: string | null; /** * Display name of the target, such as a channel name */ targetDisplay?: null; /** * Kind of target the action notifies, such as specific, user or team */ targetType: 'user' | 'team' | 'issue_owners'; } | { /** * ID of the target, such as a channel, user or team ID */ targetIdentifier?: null; /** * Display name of the target, such as a channel name */ targetDisplay?: null; /** * Kind of target the action notifies, such as specific, user or team */ targetType?: 'specific'; } | { /** * ID of the target, such as a channel, user or team ID */ targetIdentifier?: string; /** * Display name of the target, such as a channel name */ targetDisplay: string; /** * Kind of target the action notifies, such as specific, user or team */ targetType: 'specific'; } | { /** * ID of the target, such as a channel, user or team ID */ targetIdentifier: string; /** * Display name of the target, such as a channel name */ targetDisplay?: string | null; /** * Kind of target the action notifies, such as specific, user or team */ targetType: 'specific'; } | { /** * ID of the target, such as a channel, user or team ID */ targetIdentifier?: string | null; /** * Display name of the target, such as a channel name */ targetDisplay?: string | null; /** * Kind of target the action notifies, such as specific, user or team */ targetType?: null; } | { [key: string]: never; } | { /** * ID of the target, such as a channel, user or team ID */ targetIdentifier: string; /** * Display name of the target, such as a channel name */ targetDisplay?: string | null; /** * Kind of target the action notifies, such as specific, user or team */ targetType: 'sentry_app'; } | { /** * ID of the target, such as a channel, user or team ID */ targetIdentifier?: string; /** * Display name of the target, such as a channel name */ targetDisplay?: string; /** * Kind of target the action notifies, such as specific, user or team */ targetType: 'specific'; } | { /** * ID of the target, such as a channel, user or team ID */ targetIdentifier?: string; /** * Display name of the target, such as a channel name */ targetDisplay?: null; /** * Kind of target the action notifies, such as specific, user or team */ targetType?: null; }; /** * Status of the action */ status?: 'active' | 'disabled' | 'pending_deletion' | 'deletion_in_progress'; }>; }> | null; /** * Name of the environment the workflow is limited to. Null for all environments */ environment: string | null; /** * Configuration of the workflow, such as frequency in minutes */ config: { /** * How often the workflow should fire for a Group (minutes) */ frequency?: number; }; /** * IDs of the monitors connected to the workflow */ detectorIds: Array | null; /** * Whether the workflow is enabled */ enabled: boolean; /** * When the workflow last fired (ISO 8601) */ lastTriggered: string | null; /** * Team or user that owns the workflow, such as user:123 or team:456 */ owner: string | null; }; export type WorkflowAction = { id?: string; type: 'discord'; /** * Schema for Discord action data blob */ data: { /** * Tags to add to the message */ tags?: string; }; /** * The configuration schema for a Discord Action */ config: { targetIdentifier: string; targetDisplay?: string | null; targetType: 'specific'; }; status?: string; integrationId: string; } | { id?: string; type: 'email'; data: { /** * The fallthrough type for issue owners email notifications */ fallthroughType?: 'AllMembers' | 'ActiveMembers' | 'NoOne'; }; /** * The configuration schema for an email Action */ config: { /** * The stringified Sentry User.id or Team.id. Resolve users with the organization members endpoint and teams with the organization teams endpoint. Member IDs, email addresses, team slugs, and 'me' are not accepted. Omit this field when targetType is issue_owners. */ targetIdentifier?: string | null; targetDisplay?: unknown; targetType: 'user' | 'team' | 'issue_owners'; }; status?: string; } | { id?: string; type: 'github'; /** * Schema for GitHub ticket creation action data blob */ data: { /** * Dynamic form fields from customer configuration */ dynamicFormFields?: Array<{ [key: string]: unknown; }>; /** * Additional fields that aren't part of standard fields */ additionalFields: { repo: string; labels?: Array | null; assignee?: string | null; [key: string]: unknown; }; }; /** * The configuration schema for a Ticketing Action */ config: { targetIdentifier?: unknown; targetDisplay?: unknown; targetType?: 'specific'; }; status?: string; integrationId: string; } | { id?: string; type: 'github_enterprise'; /** * Schema for GitHub ticket creation action data blob */ data: { /** * Dynamic form fields from customer configuration */ dynamicFormFields?: Array<{ [key: string]: unknown; }>; /** * Additional fields that aren't part of standard fields */ additionalFields: { repo: string; labels?: Array | null; assignee?: string | null; [key: string]: unknown; }; }; /** * The configuration schema for a Ticketing Action */ config: { targetIdentifier?: unknown; targetDisplay?: unknown; targetType?: 'specific'; }; status?: string; integrationId: string; } | { id?: string; type: 'jira'; /** * Schema for ticket creation action data blob */ data: { /** * Dynamic form fields from customer configuration */ dynamicFormFields?: Array<{ [key: string]: unknown; }>; /** * Additional fields that aren't part of standard fields */ additionalFields?: { [key: string]: unknown; }; }; /** * The configuration schema for a Ticketing Action */ config: { targetIdentifier?: unknown; targetDisplay?: unknown; targetType?: 'specific'; }; status?: string; integrationId: string; } | { id?: string; type: 'jira_server'; /** * Schema for ticket creation action data blob */ data: { /** * Dynamic form fields from customer configuration */ dynamicFormFields?: Array<{ [key: string]: unknown; }>; /** * Additional fields that aren't part of standard fields */ additionalFields?: { [key: string]: unknown; }; }; /** * The configuration schema for a Ticketing Action */ config: { targetIdentifier?: unknown; targetDisplay?: unknown; targetType?: 'specific'; }; status?: string; integrationId: string; } | { id?: string; type: 'msteams'; /** * Schema for MSTeams action data blob */ data: { [key: string]: never; }; /** * The configuration schema for a Messaging Action */ config: { targetIdentifier?: string; targetDisplay: string; targetType: 'specific'; }; status?: string; integrationId: string; } | { id?: string; type: 'opsgenie'; data: { /** * The priority of the opsgenie action */ priority?: 'P1' | 'P2' | 'P3' | 'P4' | 'P5'; }; /** * The configuration schema for a on-call Action */ config: { targetIdentifier: string; targetDisplay?: string | null; targetType: 'specific'; }; status?: string; integrationId: string; } | { id?: string; type: 'pagerduty'; data: { /** * The priority of the pagerduty action */ priority?: 'default' | 'critical' | 'warning' | 'error' | 'info'; }; /** * The configuration schema for a on-call Action */ config: { targetIdentifier: string; targetDisplay?: string | null; targetType: 'specific'; }; status?: string; integrationId: string; } | { id?: string; type: 'seer_investigation'; data: unknown & { /** * Prompt the investigation runs */ prompt?: string; /** * Seer skill the investigation runs, instead of a prompt */ skill?: 'agentic_triage'; }; config: { [key: string]: never; }; status?: string; } | { id?: string; type: 'sentry_app'; /** * The data schema for a Sentry App Action */ data: { settings?: Array; }; /** * The configuration schema for a Sentry App Action */ config: { targetIdentifier: string; targetDisplay?: string | null; targetType: 'sentry_app'; }; status?: string; } | { id?: string; type: 'slack'; /** * Schema for Slack action data blob */ data: { /** * Tags to add to the message */ tags?: string; /** * Notes to add to the message */ notes?: string; }; /** * The configuration schema for a Messaging Action */ config: { targetIdentifier?: string; targetDisplay?: string; targetType: 'specific'; }; status?: string; integrationId: string; } | { id?: string; type: 'slack_staging'; /** * Schema for Slack action data blob */ data: { /** * Tags to add to the message */ tags?: string; /** * Notes to add to the message */ notes?: string; }; /** * The configuration schema for a Messaging Action */ config: { targetIdentifier?: string; targetDisplay?: string; targetType: 'specific'; }; status?: string; integrationId: string; } | { id?: string; type: 'vsts'; /** * Schema for ticket creation action data blob */ data: { /** * Dynamic form fields from customer configuration */ dynamicFormFields?: Array<{ [key: string]: unknown; }>; /** * Additional fields that aren't part of standard fields */ additionalFields?: { [key: string]: unknown; }; }; /** * The configuration schema for a Ticketing Action */ config: { targetIdentifier?: unknown; targetDisplay?: unknown; targetType?: 'specific'; }; status?: string; integrationId: string; } | { id?: string; type: 'webhook'; data: { [key: string]: unknown; }; /** * The configuration schema for Webhook Actions */ config: { targetIdentifier?: string; targetDisplay?: unknown; targetType?: null; }; status?: string; }; /** * Allows parameters to be defined in snake case, but passed as camel case. * * Errors are output in camel case. */ export type WorkflowValidator = { /** * The name of the alert */ name: string; /** * The ID of the existing alert */ id?: string; /** * Whether the alert is enabled or disabled */ enabled?: boolean; /** * The IDs of the monitors to connect this alert to. Use 'Fetch an Organization's Monitors' to find the IDs. */ detectorIds?: Array; /** * * Typically the frequency at which the alert will fire, in minutes. * * - `0`: 0 minutes * - `5`: 5 minutes * - `10`: 10 minutes * - `30`: 30 minutes * - `60`: 1 hour * - `180`: 3 hours * - `720`: 12 hours * - `1440`: 24 hours * * ```json * { * "frequency": 60 * } * ``` * */ config?: { [key: string]: unknown; }; /** * The name of the environment for the alert to evaluate in */ environment?: string | null; /** * The conditions on which the alert will trigger. See available options below. * ```json * { * "triggers": { * "organizationId": "1", * "logicType": "any-short", * "conditions": [ * { * "type": "first_seen_event", * "comparison": true, * "conditionResult": true * }, * { * "type": "issue_resolved_trigger", * "comparison": true, * "conditionResult": true * }, * { * "type": "reappeared_event", * "comparison": true, * "conditionResult": true * }, * { * "type": "regression_event", * "comparison": true, * "conditionResult": true * }, * { * "type": "seer_activity_trigger", * "comparison": [ * "rca_completed", * "solution_completed", * "coding_completed", * "pr_ready_for_review" * ], * "conditionResult": true * } * ] * } * } * ``` * */ triggers?: { id?: number; logicType: 'any-short'; conditions?: Array<{ id?: number; type: 'every_event'; comparison: boolean; conditionResult: boolean; } | { id?: number; type: 'first_seen_event'; comparison: boolean; conditionResult: boolean; } | { id?: number; type: 'issue_resolved_trigger'; comparison: boolean; conditionResult: boolean; } | { id?: number; type: 'reappeared_event'; comparison: boolean; conditionResult: boolean; } | { id?: number; type: 'regression_event'; comparison: boolean; conditionResult: boolean; } | { id?: number; type: 'seer_activity_trigger'; comparison: Array<'rca_completed' | 'solution_completed' | 'coding_completed' | 'pr_ready_for_review'>; conditionResult: boolean; }>; }; /** * The filters to run before the action will fire and the action(s) to fire. * * `logicType` can be one of `any-short`, `all`, or `none`. * * Below is a basic example. See below for all other options. * * ```json * "actionFilters": [ * { * "logicType": "any", * "conditions": [ * { * "type": "level", * "comparison": { * "level": 50, * "match": "eq" * }, * "conditionResult": true * } * ], * "actions": [ * { * "id": "123", * "type": "email", * "integrationId": null, * "data": {}, * "config": { * "targetType": "user", * "targetDisplay": null, * "targetIdentifier": "56789" * }, * "status": "active" * } * ] * } * ] * ``` * * ## Conditions * * **Issue Age** * - `time`: One of `minute`, `hour`, `day`, or `week`. * - `value`: A positive integer. * - `comparisonType`: One of `older` or `newer`. * ```json * { * "type": "age_comparison", * "comparison": { * "time": "minute", * "value": 10, * "comparisonType": "older" * }, * "conditionResult": true * } * * ``` * * **Issue Assignment** * - `targetType`: Who the issue is assigned to * - `Unassigned`: Unassigned * - `Member`: Assigned to a user * - `Team`: Assigned to a team * - `targetIdentifier`: The ID of the user or team from the `targetType`. Enter "" if `targetType` is `Unassigned`. * ```json * { * "type": "assigned_to", * "comparison": { * "targetType": "Member", * "targetIdentifier": 123456 * }, * "conditionResult": true * } * ``` * * **Issue Category** * - `value`: The issue category to filter to. * - `1`: Error issues * - `6`: Feedback issues * - `10`: Outage issues * - `11`: Metric issues * - `12`: DB Query issues * - `13`: HTTP Client issues * - `14`: Front end issues * - `15`: Mobile issues * - `17`: Preprod issues * - `19`: Configuration issues * ```json * { * "type": "issue_category", * "comparison": { * "value": 1 * }, * "conditionResult": true * } * ``` * * **Issue Frequency** * - `value`: A positive integer representing how many times the issue has to happen before the alert will fire. * ```json * { * "type": "issue_occurrences", * "comparison": { * "value": 10 * }, * "conditionResult": true * } * ``` * * **De-escalation** * - `comparison`: The priority threshold the issue must de-escalate below. * - `75`: High priority * - `50`: Medium priority * - `25`: Low priority * ```json * { * "type": "issue_priority_deescalating", * "comparison": 75, * "conditionResult": true * } * ``` * * **Issue Priority** * - `comparison`: The priority the issue must be for the alert to fire. * - `75`: High priority * - `50`: Medium priority * - `25`: Low priority * ```json * { * "type": "issue_priority_greater_or_equal", * "comparison": 75, * "conditionResult": true * } * ``` * * **Number of Users Affected** * - `value`: A positive integer representing the number of users that must be affected before the alert will fire. * - `filters`: A list of additional sub-filters to evaluate before the alert will fire. * - `interval`: The time period in which to evaluate the value. e.g. Number of users affected by an issue is more than `value` in `interval`. * - `1m`: 1 minute * - `5m`: 5 minutes * - `15m`: 15 minutes * - `1h`: 1 hour * - `1d`: 1 day * - `1w`: 1 week * - `30d`: 30 days * ```json * { * "type": "event_unique_user_frequency_count", * "comparison": { * "value": 100, * "filters": [{"key": "foo", "match": "eq", "value": "bar"}], * "interval": "1h" * }, * "conditionResult": true * } * ``` * * **Number of Events** * - `value`: A positive integer representing the number of events in an issue that must come in before the alert will fire * - `interval`: The time period in which to evaluate the value. e.g. Number of events in an issue is more than `value` in `interval`. * - `1m`: 1 minute * - `5m`: 5 minutes * - `15m`: 15 minutes * - `1h`: 1 hour * - `1d`: 1 day * - `1w`: 1 week * - `30d`: 30 days * ```json * { * "type": "event_frequency_count", * "comparison": { * "value": 100, * "interval": "1h" * }, * "conditionResult": true * } * ``` * * **Percent of Events** * - `value`: A positive integer representing the number of events in an issue that must come in before the alert will fire * - `interval`: The time period in which to evaluate the value. * - `1m`: 1 minute * - `5m`: 5 minutes * - `15m`: 15 minutes * - `1h`: 1 hour * - `1d`: 1 day * - `1w`: 1 week * - `30d`: 30 days * - `comparisonInterval`: The time period to compare against. * - `5m`: 5 minutes * - `15m`: 15 minutes * - `1h`: 1 hour * - `1d`: 1 day * - `1w`: 1 week * - `30d`: 30 days * ```json * { * "type": "event_frequency_percent", * "comparison": { * "value": 100, * "interval": "1h", * "comparisonInterval": "1w" * }, * "conditionResult": true * } * * ``` * * **Percentage of Sessions Affected Count** * - `value`: A positive integer representing the number of events in an issue that must come in before the alert will fire * - `interval`: The time period in which to evaluate the value. e.g. Percentage of sessions affected by an issue is more than `value` in `interval`. * - `1m`: 1 minute * - `5m`: 5 minutes * - `10m`: 10 minutes * - `30m`: 30 minutes * - `1h`: 1 hour * ```json * { * "type": "percent_sessions_count", * "comparison": { * "value": 10, * "interval": "1h" * }, * "conditionResult": true * } * ``` * * **Percentage of Sessions Affected Percent** * - `value`: A positive integer representing the number of events in an issue that must come in before the alert will fire * - `interval`: The time period in which to evaluate the value. * - `1m`: 1 minute * - `5m`: 5 minutes * - `10m`: 10 minutes * - `30m`: 30 minutes * - `1h`: 1 hour * - `comparisonInterval`: The time period to compare against. * - `5m`: 5 minutes * - `15m`: 15 minutes * - `1h`: 1 hour * - `1d`: 1 day * - `1w`: 1 week * - `30d`: 30 days * ```json * { * "type": "percent_sessions_percent", * "comparison": { * "value": 10, * "interval": "1h", * "comparisonInterval": "1w" * }, * "conditionResult": true * } * ``` * * **Event Attribute** * The event's `attribute` value `match` `value` * * - `attribute`: The event attribute to match on. Valid values are: `message`, `platform`, `environment`, `type`, `error.handled`, `error.unhandled`, `error.main_thread`, `exception.type`, `exception.value`, `user.id`, `user.email`, `user.username`, `user.ip_address`, `http.method`, `http.url`, `http.status_code`, `sdk.name`, `stacktrace.code`, `stacktrace.module`, `stacktrace.filename`, `stacktrace.abs_path`, `stacktrace.package`, `unreal.crash_type`, `app.in_foreground`. * - `match`: The comparison operator * - `co`: Contains * - `nc`: Does not contain * - `eq`: Equals * - `ne`: Does not equal * - `sw`: Starts with * - `ew`: Ends with * - `is`: Is set * - `ns`: Is not set * - `value`: A string. Must be omitted when match is `is` or `ns`; required otherwise. * * ```json * { * "type": "event_attribute", * "comparison": { * "match": "co", * "value": "bar", * "attribute": "message" * }, * "conditionResult": true * } * ``` * * **Tagged Event** * The event's tags `key` match `value` * - `key`: The tag value * - `match`: The comparison operator * - `co`: Contains * - `nc`: Does not contain * - `eq`: Equals * - `ne`: Does not equal * - `sw`: Starts with * - `ew`: Ends with * - `is`: Is set * - `ns`: Is not set * - `value`: A string. Must be omitted when match is `is` or `ns`; required otherwise. * * ```json * { * "type": "tagged_event", * "comparison": { * "key": "level", * "match": "eq", * "value": "error" * }, * "conditionResult": true * } * ``` * * **Latest Release** * The event is from the latest release * * ```json * { * "type": "latest_release", * "comparison": true, * "conditionResult": true * } * ``` * * **Release Age** * ```json * { * "type": "latest_adopted_release", * "comparison": { * "environment": "production", * "ageComparison": "older", * "releaseAgeType": "oldest" * }, * "conditionResult": true * } * ``` * * **Event Level** * The event's level is `match` `level` * - `match`: The comparison operator * - `eq`: Equal * - `gte`: Greater than or equal * - `lte`: Less than or equal * - `level`: The event level * - `50`: Fatal * - `40`: Error * - `30`: Warning * - `20`: Info * - `10`: Debug * - `0`: Sample * * ```json * { * "type": "level", * "comparison": { * "level": 50, * "match": "eq" * }, * "conditionResult": true * } * ``` * * ## Actions * A list of actions that take place when all required conditions and filters for the alert are met. See below for a list of possible actions. * * * **Notify on Preferred Channel** * - `data`: A dictionary with the fallthrough type option when choosing to notify Suggested Assignees. Leave empty if notifying a user or team. * - `fallthroughType` * - `ActiveMembers` * - `AllMembers` * - `NoOne` * - `config`: A dictionary with the configuration options for notification. * - `targetType`: The type of recipient to notify * - `user`: User * - `team`: Team * - `issue_owners`: Suggested Assignees * - `targetDisplay`: null * - `targetIdentifier`: The id of the user or team to notify. Leave null for Suggested Assignees. * * ```json * { * "type":"email", * "integrationId":null, * "data":{}, * "config":{ * "targetType":"user", * "targetDisplay":null, * "targetIdentifier":"232692" * }, * "status":"active" * }, * { * "type":"email", * "integrationId":null, * "data":{ * "fallthroughType":"ActiveMembers" * }, * "config":{ * "targetType":"issue_owners", * "targetDisplay":null, * "targetIdentifier":""} * , * "status":"active" * } * ``` * **Notify on Slack** * - `targetDisplay`: The name of the channel to notify in. * `integrationId`: The stringified ID of the integration. * * ```json * { * "type":"slack", * "config":{ * "targetType":"specific", * "targetIdentifier":"", * "targetDisplay":"notify-errors" * }, * "integrationId":"1", * "data":{}, * "status":"active" * } * ``` * * **Notify on PagerDuty** * - `targetDisplay`: The name of the service to create the ticket in. * - `integrationId`: The stringified ID of the integration. * - `data["priority"]`: The severity level for the notification. * * ```json * { * "type":"pagerduty", * "config":{ * "targetType":"specific", * "targetIdentifier":"123456", * "targetDisplay":"Error Service" * }, * "integrationId":"2345", * "data":{ * "priority":"default" * }, * "status":"active" * } * ``` * * **Notify on Discord** * - `targetDisplay`: The name of the service to create the ticket in. * - `integrationId`: The stringified ID of the integration. * - `data["tags"]`: Comma separated list of tags to add to the notification. * * ```json * { * "type":"discord", * "config":{ * "targetType":"specific", * "targetIdentifier":"12345", * "targetDisplay":"" * }, * "integrationId":"1234", * "data":{ * "tags":"transaction,environment" * }, * "status":"active" * } * ``` * * **Notify on MSTeams** * - `targetIdentifier` - The integration ID associated with the Microsoft Teams team. * - `targetDisplay` - The name of the channel to send the notification to. * - `integrationId`: The stringified ID of the integration. * ```json * { * "type":"msteams", * "config":{ * "targetType":"specific", * "targetIdentifier":"19:a4b3kghaghgkjah357y6847@thread.skype", * "targetDisplay":"notify-errors" * }, * "integrationId":"1", * "data":{}, * "status":"active" * } * ``` * * **Notify on OpsGenie** * - `targetDisplay`: The name of the Opsgenie team. * - `targetIdentifier`: The ID of the Opsgenie team to send the notification to. * - `integrationId`: The stringified ID of the integration. * - `data["priority"]`: The priority level for the notification. * * ```json * { * "type":"opsgenie", * "config":{ * "targetType":"specific", * "targetIdentifier":"123456-Error-Service", * "targetDisplay":"Error Service" * }, * "integrationId":"2345", * "data":{ * "priority":"P3" * }, * "status":"active" * } * ``` * * **Notify on Azure DevOps** * - `integrationId`: The stringified ID of the integration. * - `data` - A list of any fields you want to include in the ticket as objects. * * ```json * { * "type":"vsts", * "config":{ * "targetType":"specific", * "targetIdentifier":", * "targetDisplay":"" * }, * "integrationId":"2345", * "data":{...}, * "status":"active" * } * ``` * * **Create a Jira ticket** * - `integrationId`: The stringified ID of the integration. * - `data` - A list of any fields you want to include in the ticket as objects. * * ```json * { * "type":"jira", * "config":{ * "targetType":"specific", * "targetIdentifier":", * "targetDisplay":"" * }, * "integrationId":"2345", * "data":{...}, * "status":"active" * } * ``` * * **Create a Jira Server ticket** * - `integrationId`: The stringified ID of the integration. * - `data` - A list of any fields you want to include in the ticket as objects. * * ```json * { * "type":"jira_server", * "config":{ * "targetType":"specific", * "targetIdentifier":", * "targetDisplay":"" * }, * "integrationId":"2345", * "data":{...}, * "status":"active" * } * ``` * * **Create a GitHub issue** * - `integrationId`: The stringified ID of the integration. * - `data` - A list of any fields you want to include in the ticket as objects. * * ```json * { * "type":"github", * "config":{ * "targetType":"specific", * "targetIdentifier":", * "targetDisplay":"" * }, * "integrationId":"2345", * "data":{ * "additional_fields": { * "assignee": "", * "integration": "2345", * "labels": [], * "repo": "example-repo", * }, * "dynamic_form_fields": [ * { * "choices": [["YourOrg/example-repo", "example-repo"]], * "default": "YourOrg/example-repo", * "label": "GitHub Repository", * "name": "repo", * "required": true * "type": "select", * "updatesForm": true, * "url": "/extensions/github/search/example-repo/1234567/", * }, * ], * }, * "status":"active" * } * ``` * */ actionFilters?: Array<{ id?: number; /** * * `any` * * `any-short` * * `all` * * `none` */ logicType: 'any' | 'any-short' | 'all' | 'none'; conditions?: Array<{ id?: number; type: 'age_comparison'; comparison: { comparisonType: 'older' | 'newer'; value: number; time: 'minute' | 'hour' | 'day' | 'week'; }; conditionResult: boolean; } | { id?: number; type: 'assigned_to'; comparison: { targetType: 'Unassigned' | 'Team' | 'Member'; targetIdentifier?: number | string; }; conditionResult: boolean; } | { id?: number; type: 'event_attribute'; comparison: ({ attribute: 'message' | 'platform' | 'environment' | 'type' | 'error.handled' | 'error.unhandled' | 'error.main_thread' | 'exception.type' | 'exception.value' | 'user.id' | 'user.email' | 'user.username' | 'user.ip_address' | 'http.method' | 'http.url' | 'http.status_code' | 'sdk.name' | 'stacktrace.code' | 'stacktrace.module' | 'stacktrace.filename' | 'stacktrace.abs_path' | 'stacktrace.package' | 'unreal.crash_type' | 'app.in_foreground' | 'os.distribution_name' | 'os.distribution_version' | 'symbolicated_in_app' | 'ota_updates.channel' | 'ota_updates.runtime_version' | 'ota_updates.update_id'; match: 'is' | 'ns'; } | { attribute: 'message' | 'platform' | 'environment' | 'type' | 'error.handled' | 'error.unhandled' | 'error.main_thread' | 'exception.type' | 'exception.value' | 'user.id' | 'user.email' | 'user.username' | 'user.ip_address' | 'http.method' | 'http.url' | 'http.status_code' | 'sdk.name' | 'stacktrace.code' | 'stacktrace.module' | 'stacktrace.filename' | 'stacktrace.abs_path' | 'stacktrace.package' | 'unreal.crash_type' | 'app.in_foreground' | 'os.distribution_name' | 'os.distribution_version' | 'symbolicated_in_app' | 'ota_updates.channel' | 'ota_updates.runtime_version' | 'ota_updates.update_id'; match: unknown; value: string; }) & { attribute?: 'message' | 'platform' | 'environment' | 'type' | 'error.handled' | 'error.unhandled' | 'error.main_thread' | 'exception.type' | 'exception.value' | 'user.id' | 'user.email' | 'user.username' | 'user.ip_address' | 'http.method' | 'http.url' | 'http.status_code' | 'sdk.name' | 'stacktrace.code' | 'stacktrace.module' | 'stacktrace.filename' | 'stacktrace.abs_path' | 'stacktrace.package' | 'unreal.crash_type' | 'app.in_foreground' | 'os.distribution_name' | 'os.distribution_version' | 'symbolicated_in_app' | 'ota_updates.channel' | 'ota_updates.runtime_version' | 'ota_updates.update_id'; match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; value?: string; }; conditionResult: boolean; } | { id?: number; type: 'event_frequency_count'; comparison: { interval: '1m' | '5m' | '15m' | '1h' | '1d' | '1w' | '30d'; value: number; filters?: Array<(({ key: string; match: 'is' | 'ns'; } | { key: string; match: unknown; value: string; }) & { key?: string; match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; value?: string; }) | (({ attribute: 'message' | 'platform' | 'environment' | 'type' | 'error.handled' | 'error.unhandled' | 'error.main_thread' | 'exception.type' | 'exception.value' | 'user.id' | 'user.email' | 'user.username' | 'user.ip_address' | 'http.method' | 'http.url' | 'http.status_code' | 'sdk.name' | 'stacktrace.code' | 'stacktrace.module' | 'stacktrace.filename' | 'stacktrace.abs_path' | 'stacktrace.package' | 'unreal.crash_type' | 'app.in_foreground' | 'os.distribution_name' | 'os.distribution_version' | 'symbolicated_in_app' | 'ota_updates.channel' | 'ota_updates.runtime_version' | 'ota_updates.update_id'; match: 'is' | 'ns'; } | { attribute: 'message' | 'platform' | 'environment' | 'type' | 'error.handled' | 'error.unhandled' | 'error.main_thread' | 'exception.type' | 'exception.value' | 'user.id' | 'user.email' | 'user.username' | 'user.ip_address' | 'http.method' | 'http.url' | 'http.status_code' | 'sdk.name' | 'stacktrace.code' | 'stacktrace.module' | 'stacktrace.filename' | 'stacktrace.abs_path' | 'stacktrace.package' | 'unreal.crash_type' | 'app.in_foreground' | 'os.distribution_name' | 'os.distribution_version' | 'symbolicated_in_app' | 'ota_updates.channel' | 'ota_updates.runtime_version' | 'ota_updates.update_id'; match: unknown; value: string; }) & { attribute?: 'message' | 'platform' | 'environment' | 'type' | 'error.handled' | 'error.unhandled' | 'error.main_thread' | 'exception.type' | 'exception.value' | 'user.id' | 'user.email' | 'user.username' | 'user.ip_address' | 'http.method' | 'http.url' | 'http.status_code' | 'sdk.name' | 'stacktrace.code' | 'stacktrace.module' | 'stacktrace.filename' | 'stacktrace.abs_path' | 'stacktrace.package' | 'unreal.crash_type' | 'app.in_foreground' | 'os.distribution_name' | 'os.distribution_version' | 'symbolicated_in_app' | 'ota_updates.channel' | 'ota_updates.runtime_version' | 'ota_updates.update_id'; match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; value?: string; })>; }; conditionResult: boolean; } | { id?: number; type: 'event_frequency_percent'; comparison: { interval: '1m' | '5m' | '15m' | '1h' | '1d' | '1w' | '30d'; value: number; comparisonInterval: '5m' | '15m' | '1h' | '1d' | '1w' | '30d'; filters?: Array<(({ key: string; match: 'is' | 'ns'; } | { key: string; match: unknown; value: string; }) & { key?: string; match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; value?: string; }) | (({ attribute: 'message' | 'platform' | 'environment' | 'type' | 'error.handled' | 'error.unhandled' | 'error.main_thread' | 'exception.type' | 'exception.value' | 'user.id' | 'user.email' | 'user.username' | 'user.ip_address' | 'http.method' | 'http.url' | 'http.status_code' | 'sdk.name' | 'stacktrace.code' | 'stacktrace.module' | 'stacktrace.filename' | 'stacktrace.abs_path' | 'stacktrace.package' | 'unreal.crash_type' | 'app.in_foreground' | 'os.distribution_name' | 'os.distribution_version' | 'symbolicated_in_app' | 'ota_updates.channel' | 'ota_updates.runtime_version' | 'ota_updates.update_id'; match: 'is' | 'ns'; } | { attribute: 'message' | 'platform' | 'environment' | 'type' | 'error.handled' | 'error.unhandled' | 'error.main_thread' | 'exception.type' | 'exception.value' | 'user.id' | 'user.email' | 'user.username' | 'user.ip_address' | 'http.method' | 'http.url' | 'http.status_code' | 'sdk.name' | 'stacktrace.code' | 'stacktrace.module' | 'stacktrace.filename' | 'stacktrace.abs_path' | 'stacktrace.package' | 'unreal.crash_type' | 'app.in_foreground' | 'os.distribution_name' | 'os.distribution_version' | 'symbolicated_in_app' | 'ota_updates.channel' | 'ota_updates.runtime_version' | 'ota_updates.update_id'; match: unknown; value: string; }) & { attribute?: 'message' | 'platform' | 'environment' | 'type' | 'error.handled' | 'error.unhandled' | 'error.main_thread' | 'exception.type' | 'exception.value' | 'user.id' | 'user.email' | 'user.username' | 'user.ip_address' | 'http.method' | 'http.url' | 'http.status_code' | 'sdk.name' | 'stacktrace.code' | 'stacktrace.module' | 'stacktrace.filename' | 'stacktrace.abs_path' | 'stacktrace.package' | 'unreal.crash_type' | 'app.in_foreground' | 'os.distribution_name' | 'os.distribution_version' | 'symbolicated_in_app' | 'ota_updates.channel' | 'ota_updates.runtime_version' | 'ota_updates.update_id'; match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; value?: string; })>; }; conditionResult: boolean; } | { id?: number; type: 'event_unique_user_frequency_count'; comparison: { interval: '1m' | '5m' | '15m' | '1h' | '1d' | '1w' | '30d'; value: number; filters?: Array<(({ key: string; match: 'is' | 'ns'; } | { key: string; match: unknown; value: string; }) & { key?: string; match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; value?: string; }) | (({ attribute: 'message' | 'platform' | 'environment' | 'type' | 'error.handled' | 'error.unhandled' | 'error.main_thread' | 'exception.type' | 'exception.value' | 'user.id' | 'user.email' | 'user.username' | 'user.ip_address' | 'http.method' | 'http.url' | 'http.status_code' | 'sdk.name' | 'stacktrace.code' | 'stacktrace.module' | 'stacktrace.filename' | 'stacktrace.abs_path' | 'stacktrace.package' | 'unreal.crash_type' | 'app.in_foreground' | 'os.distribution_name' | 'os.distribution_version' | 'symbolicated_in_app' | 'ota_updates.channel' | 'ota_updates.runtime_version' | 'ota_updates.update_id'; match: 'is' | 'ns'; } | { attribute: 'message' | 'platform' | 'environment' | 'type' | 'error.handled' | 'error.unhandled' | 'error.main_thread' | 'exception.type' | 'exception.value' | 'user.id' | 'user.email' | 'user.username' | 'user.ip_address' | 'http.method' | 'http.url' | 'http.status_code' | 'sdk.name' | 'stacktrace.code' | 'stacktrace.module' | 'stacktrace.filename' | 'stacktrace.abs_path' | 'stacktrace.package' | 'unreal.crash_type' | 'app.in_foreground' | 'os.distribution_name' | 'os.distribution_version' | 'symbolicated_in_app' | 'ota_updates.channel' | 'ota_updates.runtime_version' | 'ota_updates.update_id'; match: unknown; value: string; }) & { attribute?: 'message' | 'platform' | 'environment' | 'type' | 'error.handled' | 'error.unhandled' | 'error.main_thread' | 'exception.type' | 'exception.value' | 'user.id' | 'user.email' | 'user.username' | 'user.ip_address' | 'http.method' | 'http.url' | 'http.status_code' | 'sdk.name' | 'stacktrace.code' | 'stacktrace.module' | 'stacktrace.filename' | 'stacktrace.abs_path' | 'stacktrace.package' | 'unreal.crash_type' | 'app.in_foreground' | 'os.distribution_name' | 'os.distribution_version' | 'symbolicated_in_app' | 'ota_updates.channel' | 'ota_updates.runtime_version' | 'ota_updates.update_id'; match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; value?: string; })>; }; conditionResult: boolean; } | { id?: number; type: 'event_unique_user_frequency_percent'; comparison: { interval: '1m' | '5m' | '15m' | '1h' | '1d' | '1w' | '30d'; value: number; comparisonInterval: '5m' | '15m' | '1h' | '1d' | '1w' | '30d'; filters?: Array<(({ key: string; match: 'is' | 'ns'; } | { key: string; match: unknown; value: string; }) & { key?: string; match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; value?: string; }) | (({ attribute: 'message' | 'platform' | 'environment' | 'type' | 'error.handled' | 'error.unhandled' | 'error.main_thread' | 'exception.type' | 'exception.value' | 'user.id' | 'user.email' | 'user.username' | 'user.ip_address' | 'http.method' | 'http.url' | 'http.status_code' | 'sdk.name' | 'stacktrace.code' | 'stacktrace.module' | 'stacktrace.filename' | 'stacktrace.abs_path' | 'stacktrace.package' | 'unreal.crash_type' | 'app.in_foreground' | 'os.distribution_name' | 'os.distribution_version' | 'symbolicated_in_app' | 'ota_updates.channel' | 'ota_updates.runtime_version' | 'ota_updates.update_id'; match: 'is' | 'ns'; } | { attribute: 'message' | 'platform' | 'environment' | 'type' | 'error.handled' | 'error.unhandled' | 'error.main_thread' | 'exception.type' | 'exception.value' | 'user.id' | 'user.email' | 'user.username' | 'user.ip_address' | 'http.method' | 'http.url' | 'http.status_code' | 'sdk.name' | 'stacktrace.code' | 'stacktrace.module' | 'stacktrace.filename' | 'stacktrace.abs_path' | 'stacktrace.package' | 'unreal.crash_type' | 'app.in_foreground' | 'os.distribution_name' | 'os.distribution_version' | 'symbolicated_in_app' | 'ota_updates.channel' | 'ota_updates.runtime_version' | 'ota_updates.update_id'; match: unknown; value: string; }) & { attribute?: 'message' | 'platform' | 'environment' | 'type' | 'error.handled' | 'error.unhandled' | 'error.main_thread' | 'exception.type' | 'exception.value' | 'user.id' | 'user.email' | 'user.username' | 'user.ip_address' | 'http.method' | 'http.url' | 'http.status_code' | 'sdk.name' | 'stacktrace.code' | 'stacktrace.module' | 'stacktrace.filename' | 'stacktrace.abs_path' | 'stacktrace.package' | 'unreal.crash_type' | 'app.in_foreground' | 'os.distribution_name' | 'os.distribution_version' | 'symbolicated_in_app' | 'ota_updates.channel' | 'ota_updates.runtime_version' | 'ota_updates.update_id'; match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; value?: string; })>; }; conditionResult: boolean; } | { id?: number; type: 'issue_category'; comparison: { value: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 19; include?: boolean; }; conditionResult: boolean; } | { id?: number; type: 'issue_occurrences'; comparison: { value: number; }; conditionResult: boolean; } | { id?: number; type: 'issue_priority_deescalating'; comparison: 25 | 50 | 75; conditionResult: boolean; } | { id?: number; type: 'issue_priority_greater_or_equal'; comparison: 25 | 50 | 75; conditionResult: boolean; } | { id?: number; type: 'issue_type'; comparison: { value: 'performance_slow_db_query' | 'performance_render_blocking_asset_span' | 'performance_n_plus_one_db_queries' | 'performance_n_plus_one_db_queries_experimental' | 'performance_consecutive_db_queries' | 'performance_file_io_main_thread' | 'performance_consecutive_http' | 'performance_n_plus_one_api_calls' | 'performance_n_plus_one_api_calls_experimental' | 'performance_m_n_plus_one_db_queries' | 'performance_m_n_plus_one_db_queries_experimental' | 'performance_uncompressed_assets' | 'performance_db_main_thread' | 'performance_large_http_payload' | 'performance_http_overhead' | 'performance_p95_endpoint_regression' | 'performance_streamed_spans_exp' | 'db_query_injection_vulnerability' | 'query_injection_vulnerability' | 'profile_file_io_main_thread' | 'profile_image_decode_main_thread' | 'profile_json_decode_main_thread' | 'profile_regex_main_thread' | 'profile_frame_drop' | 'profile_function_regression' | 'llm_detected_experimental' | 'llm_detected_experimental_v2' | 'ai_detected_http' | 'ai_detected_db' | 'ai_detected_runtime_performance' | 'ai_detected_security' | 'ai_detected_code_health' | 'ai_detected_general' | 'replay_click_rage' | 'replay_hydration_error' | 'feedback' | 'web_vitals' | 'issue_stream' | 'metric_issue' | 'error' | 'uptime_domain_failure' | 'send-test-notification' | 'monitor_check_in_failure' | 'sourcemap_configuration' | 'low_value_span_configuration' | 'preprod_size_analysis'; include?: boolean; }; conditionResult: boolean; } | { id?: number; type: 'latest_adopted_release'; comparison: { releaseAgeType: 'oldest' | 'newest'; ageComparison: 'older' | 'newer'; environment: string; }; conditionResult: boolean; } | { id?: number; type: 'latest_release'; comparison: boolean; conditionResult: boolean; } | { id?: number; type: 'level'; comparison: { level: 0 | 10 | 20 | 30 | 40 | 50; match: 'eq' | 'gte' | 'lte'; }; conditionResult: boolean; } | { id?: number; type: 'percent_sessions_count'; comparison: { interval: '1m' | '5m' | '10m' | '30m' | '1h'; value: number; filters?: Array<(({ key: string; match: 'is' | 'ns'; } | { key: string; match: unknown; value: string; }) & { key?: string; match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; value?: string; }) | (({ attribute: 'message' | 'platform' | 'environment' | 'type' | 'error.handled' | 'error.unhandled' | 'error.main_thread' | 'exception.type' | 'exception.value' | 'user.id' | 'user.email' | 'user.username' | 'user.ip_address' | 'http.method' | 'http.url' | 'http.status_code' | 'sdk.name' | 'stacktrace.code' | 'stacktrace.module' | 'stacktrace.filename' | 'stacktrace.abs_path' | 'stacktrace.package' | 'unreal.crash_type' | 'app.in_foreground' | 'os.distribution_name' | 'os.distribution_version' | 'symbolicated_in_app' | 'ota_updates.channel' | 'ota_updates.runtime_version' | 'ota_updates.update_id'; match: 'is' | 'ns'; } | { attribute: 'message' | 'platform' | 'environment' | 'type' | 'error.handled' | 'error.unhandled' | 'error.main_thread' | 'exception.type' | 'exception.value' | 'user.id' | 'user.email' | 'user.username' | 'user.ip_address' | 'http.method' | 'http.url' | 'http.status_code' | 'sdk.name' | 'stacktrace.code' | 'stacktrace.module' | 'stacktrace.filename' | 'stacktrace.abs_path' | 'stacktrace.package' | 'unreal.crash_type' | 'app.in_foreground' | 'os.distribution_name' | 'os.distribution_version' | 'symbolicated_in_app' | 'ota_updates.channel' | 'ota_updates.runtime_version' | 'ota_updates.update_id'; match: unknown; value: string; }) & { attribute?: 'message' | 'platform' | 'environment' | 'type' | 'error.handled' | 'error.unhandled' | 'error.main_thread' | 'exception.type' | 'exception.value' | 'user.id' | 'user.email' | 'user.username' | 'user.ip_address' | 'http.method' | 'http.url' | 'http.status_code' | 'sdk.name' | 'stacktrace.code' | 'stacktrace.module' | 'stacktrace.filename' | 'stacktrace.abs_path' | 'stacktrace.package' | 'unreal.crash_type' | 'app.in_foreground' | 'os.distribution_name' | 'os.distribution_version' | 'symbolicated_in_app' | 'ota_updates.channel' | 'ota_updates.runtime_version' | 'ota_updates.update_id'; match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; value?: string; })>; }; conditionResult: boolean; } | { id?: number; type: 'percent_sessions_percent'; comparison: { interval: '1m' | '5m' | '10m' | '30m' | '1h'; value: number; comparisonInterval: '5m' | '15m' | '1h' | '1d' | '1w' | '30d'; filters?: Array<(({ key: string; match: 'is' | 'ns'; } | { key: string; match: unknown; value: string; }) & { key?: string; match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; value?: string; }) | (({ attribute: 'message' | 'platform' | 'environment' | 'type' | 'error.handled' | 'error.unhandled' | 'error.main_thread' | 'exception.type' | 'exception.value' | 'user.id' | 'user.email' | 'user.username' | 'user.ip_address' | 'http.method' | 'http.url' | 'http.status_code' | 'sdk.name' | 'stacktrace.code' | 'stacktrace.module' | 'stacktrace.filename' | 'stacktrace.abs_path' | 'stacktrace.package' | 'unreal.crash_type' | 'app.in_foreground' | 'os.distribution_name' | 'os.distribution_version' | 'symbolicated_in_app' | 'ota_updates.channel' | 'ota_updates.runtime_version' | 'ota_updates.update_id'; match: 'is' | 'ns'; } | { attribute: 'message' | 'platform' | 'environment' | 'type' | 'error.handled' | 'error.unhandled' | 'error.main_thread' | 'exception.type' | 'exception.value' | 'user.id' | 'user.email' | 'user.username' | 'user.ip_address' | 'http.method' | 'http.url' | 'http.status_code' | 'sdk.name' | 'stacktrace.code' | 'stacktrace.module' | 'stacktrace.filename' | 'stacktrace.abs_path' | 'stacktrace.package' | 'unreal.crash_type' | 'app.in_foreground' | 'os.distribution_name' | 'os.distribution_version' | 'symbolicated_in_app' | 'ota_updates.channel' | 'ota_updates.runtime_version' | 'ota_updates.update_id'; match: unknown; value: string; }) & { attribute?: 'message' | 'platform' | 'environment' | 'type' | 'error.handled' | 'error.unhandled' | 'error.main_thread' | 'exception.type' | 'exception.value' | 'user.id' | 'user.email' | 'user.username' | 'user.ip_address' | 'http.method' | 'http.url' | 'http.status_code' | 'sdk.name' | 'stacktrace.code' | 'stacktrace.module' | 'stacktrace.filename' | 'stacktrace.abs_path' | 'stacktrace.package' | 'unreal.crash_type' | 'app.in_foreground' | 'os.distribution_name' | 'os.distribution_version' | 'symbolicated_in_app' | 'ota_updates.channel' | 'ota_updates.runtime_version' | 'ota_updates.update_id'; match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; value?: string; })>; }; conditionResult: boolean; } | { id?: number; type: 'tagged_event'; comparison: ({ key: string; match: 'is' | 'ns'; } | { key: string; match: unknown; value: string; }) & { key?: string; match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; value?: string; }; conditionResult: boolean; }>; actions: Array<{ id?: string; type: 'discord'; /** * Schema for Discord action data blob */ data: { /** * Tags to add to the message */ tags?: string; }; /** * The configuration schema for a Discord Action */ config: { targetIdentifier: string; targetDisplay?: string | null; targetType: 'specific'; }; status?: string; integrationId: string; } | { id?: string; type: 'email'; data: { /** * The fallthrough type for issue owners email notifications */ fallthroughType?: 'AllMembers' | 'ActiveMembers' | 'NoOne'; }; /** * The configuration schema for an email Action */ config: { /** * The stringified Sentry User.id or Team.id. Resolve users with the organization members endpoint and teams with the organization teams endpoint. Member IDs, email addresses, team slugs, and 'me' are not accepted. Omit this field when targetType is issue_owners. */ targetIdentifier?: string | null; targetDisplay?: unknown; targetType: 'user' | 'team' | 'issue_owners'; }; status?: string; } | { id?: string; type: 'github'; /** * Schema for GitHub ticket creation action data blob */ data: { /** * Dynamic form fields from customer configuration */ dynamicFormFields?: Array<{ [key: string]: unknown; }>; /** * Additional fields that aren't part of standard fields */ additionalFields: { repo: string; labels?: Array | null; assignee?: string | null; [key: string]: unknown; }; }; /** * The configuration schema for a Ticketing Action */ config: { targetIdentifier?: unknown; targetDisplay?: unknown; targetType?: 'specific'; }; status?: string; integrationId: string; } | { id?: string; type: 'github_enterprise'; /** * Schema for GitHub ticket creation action data blob */ data: { /** * Dynamic form fields from customer configuration */ dynamicFormFields?: Array<{ [key: string]: unknown; }>; /** * Additional fields that aren't part of standard fields */ additionalFields: { repo: string; labels?: Array | null; assignee?: string | null; [key: string]: unknown; }; }; /** * The configuration schema for a Ticketing Action */ config: { targetIdentifier?: unknown; targetDisplay?: unknown; targetType?: 'specific'; }; status?: string; integrationId: string; } | { id?: string; type: 'jira'; /** * Schema for ticket creation action data blob */ data: { /** * Dynamic form fields from customer configuration */ dynamicFormFields?: Array<{ [key: string]: unknown; }>; /** * Additional fields that aren't part of standard fields */ additionalFields?: { [key: string]: unknown; }; }; /** * The configuration schema for a Ticketing Action */ config: { targetIdentifier?: unknown; targetDisplay?: unknown; targetType?: 'specific'; }; status?: string; integrationId: string; } | { id?: string; type: 'jira_server'; /** * Schema for ticket creation action data blob */ data: { /** * Dynamic form fields from customer configuration */ dynamicFormFields?: Array<{ [key: string]: unknown; }>; /** * Additional fields that aren't part of standard fields */ additionalFields?: { [key: string]: unknown; }; }; /** * The configuration schema for a Ticketing Action */ config: { targetIdentifier?: unknown; targetDisplay?: unknown; targetType?: 'specific'; }; status?: string; integrationId: string; } | { id?: string; type: 'msteams'; /** * Schema for MSTeams action data blob */ data: { [key: string]: never; }; /** * The configuration schema for a Messaging Action */ config: { targetIdentifier?: string; targetDisplay: string; targetType: 'specific'; }; status?: string; integrationId: string; } | { id?: string; type: 'opsgenie'; data: { /** * The priority of the opsgenie action */ priority?: 'P1' | 'P2' | 'P3' | 'P4' | 'P5'; }; /** * The configuration schema for a on-call Action */ config: { targetIdentifier: string; targetDisplay?: string | null; targetType: 'specific'; }; status?: string; integrationId: string; } | { id?: string; type: 'pagerduty'; data: { /** * The priority of the pagerduty action */ priority?: 'default' | 'critical' | 'warning' | 'error' | 'info'; }; /** * The configuration schema for a on-call Action */ config: { targetIdentifier: string; targetDisplay?: string | null; targetType: 'specific'; }; status?: string; integrationId: string; } | { id?: string; type: 'seer_investigation'; data: unknown & { /** * Prompt the investigation runs */ prompt?: string; /** * Seer skill the investigation runs, instead of a prompt */ skill?: 'agentic_triage'; }; config: { [key: string]: never; }; status?: string; } | { id?: string; type: 'sentry_app'; /** * The data schema for a Sentry App Action */ data: { settings?: Array; }; /** * The configuration schema for a Sentry App Action */ config: { targetIdentifier: string; targetDisplay?: string | null; targetType: 'sentry_app'; }; status?: string; } | { id?: string; type: 'slack'; /** * Schema for Slack action data blob */ data: { /** * Tags to add to the message */ tags?: string; /** * Notes to add to the message */ notes?: string; }; /** * The configuration schema for a Messaging Action */ config: { targetIdentifier?: string; targetDisplay?: string; targetType: 'specific'; }; status?: string; integrationId: string; } | { id?: string; type: 'slack_staging'; /** * Schema for Slack action data blob */ data: { /** * Tags to add to the message */ tags?: string; /** * Notes to add to the message */ notes?: string; }; /** * The configuration schema for a Messaging Action */ config: { targetIdentifier?: string; targetDisplay?: string; targetType: 'specific'; }; status?: string; integrationId: string; } | { id?: string; type: 'vsts'; /** * Schema for ticket creation action data blob */ data: { /** * Dynamic form fields from customer configuration */ dynamicFormFields?: Array<{ [key: string]: unknown; }>; /** * Additional fields that aren't part of standard fields */ additionalFields?: { [key: string]: unknown; }; }; /** * The configuration schema for a Ticketing Action */ config: { targetIdentifier?: unknown; targetDisplay?: unknown; targetType?: 'specific'; }; status?: string; integrationId: string; } | { id?: string; type: 'webhook'; data: { [key: string]: unknown; }; /** * The configuration schema for Webhook Actions */ config: { targetIdentifier?: string; targetDisplay?: unknown; targetType?: null; }; status?: string; }>; }>; /** * * The ID user or team who owns the monitor or alert prefaced by the string 'user' or 'team'. * * **User** * ```json * "user:123456" * ``` * * **Team** * ```json * "team:456789" * ``` * */ owner?: string | null; }; export type LegacyBrowserFilter = { /** * Toggle the browser-extensions, localhost, filtered-transaction, or web-crawlers filter on or off. */ active?: boolean; /** * * Specifies which legacy browser filters should be active. Anything excluded from the list will be * disabled. The options are: * - `ie` - Internet Explorer Version 11 and lower * - `edge` - Edge Version 110 and lower * - `safari` - Safari Version 15 and lower * - `firefox` - Firefox Version 110 and lower * - `chrome` - Chrome Version 110 and lower * - `opera` - Opera Version 99 and lower * - `android` - Android Version 3 and lower * - `opera_mini` - Opera Mini Version 34 and lower * * Deprecated options: * - `ie_pre_9` - Internet Explorer Version 8 and lower * - `ie9` - Internet Explorer Version 9 * - `ie10` - Internet Explorer Version 10 * - `ie11` - Internet Explorer Version 11 * - `safari_pre_6` - Safari Version 5 and lower * - `opera_pre_15` - Opera Version 14 and lower * - `opera_mini_pre_8` - Opera Mini Version 8 and lower * - `android_pre_4` - Android Version 3 and lower * - `edge_pre_79` - Edge Version 18 and lower (non Chromium based) * */ subfilters?: Array<'ie' | 'edge' | 'safari' | 'firefox' | 'chrome' | 'opera' | 'android' | 'opera_mini' | 'ie_pre_9' | 'ie9' | 'ie10' | 'ie11' | 'opera_pre_15' | 'android_pre_4' | 'safari_pre_6' | 'opera_mini_pre_8' | 'edge_pre_79'>; }; /** * The body of an error with a machine-readable code. Each `detail` variant names its HTTP status in `x-sentry-status`, and `x-sentry-auth-challenge` says whether the user can clear it by acting in Sentry, such as by logging in with SSO. */ export type SentryApiErrorBody = { detail: { code: '2fa-required'; message: string; extra: { [key: string]: unknown; }; } | { code: 'agent-handoff-access-changed'; message: string; extra: { [key: string]: unknown; }; } | { code: 'agent-handoff-cross-origin'; message: string; extra: { [key: string]: unknown; }; } | { code: 'agent-handoff-expired'; message: string; extra: { [key: string]: unknown; }; } | { code: 'agent-handoff-malformed'; message: string; extra: { [key: string]: unknown; }; } | { code: 'agent-handoff-rate-limited'; message: string; extra: { [key: string]: unknown; }; } | { code: 'agent-handoff-setup-unavailable'; message: string; extra: { [key: string]: unknown; }; } | { code: 'agent-handoff-unavailable'; message: string; extra: { [key: string]: unknown; }; } | { code: 'data-secrecy'; message: string; extra: { [key: string]: unknown; }; } | { code: 'integrations:bitbucket.webhook.invalid-signature'; message: string; extra: { [key: string]: unknown; }; } | { code: 'integrations:bitbucket.webhook.missing-signature'; message: string; extra: { [key: string]: unknown; }; } | { code: 'integrations:bitbucket.webhook.unsupported-signature-method'; message: string; extra: { [key: string]: unknown; }; } | { code: 'invalid-request'; message: string; extra: { [key: string]: unknown; }; } | { code: 'invalid-superuser-access-json'; message: string; extra: { [key: string]: unknown; }; } | { code: 'invalid_sort_by_parameter'; message: string; extra: { [key: string]: unknown; }; } | { code: 'member-disabled-over-limit'; message: string; extra: { next?: string; }; } | { code: 'parameter-validation-error'; message: string; extra: { context?: string; }; } | { code: 'primary-email-verification-required'; message: string; extra: { username?: string; }; } | { code: 'repo_exists'; message: string; extra: { [key: string]: unknown; }; } | { code: 'request-timeout'; message: string; extra: { [key: string]: unknown; }; } | { code: 'sso-required'; message: string; extra: { loginUrl?: string; organizationSlug?: string; }; } | { code: 'staff-required'; message: string; extra: { [key: string]: unknown; }; } | { code: 'sudo-required'; message: string; extra: { username?: string; }; } | { code: 'superuser-required'; message: string; extra: { orgSlug?: string; }; } | { code: 'unable_to_acquire_lock'; message: string; extra: { [key: string]: unknown; }; } | { code: 'user-required'; message: string; extra: { [key: string]: unknown; }; }; }; /** * A filter as the API returns it. Requests go through * `CustomInboundFilterRequestSerializer`, which takes only the fields a caller can set. */ export type CustomInboundFilterWritable = { /** * A human-readable label for the filter. */ name: string | null; /** * Whether the filter drops matching data. An inactive filter is kept but ignored. */ active: boolean; /** * The data the filter matches against. `all` is the catch-all: it filters every data type Sentry ingests, including ones added later, and accepts only the conditions that every data type carries a field for. * * * `all` * * `error` * * `log` * * `metric` * * `span` */ dataType: 'all' | 'error' | 'log' | 'metric' | 'span'; /** * Conditions are combined with AND: an event must match every condition to be filtered out. There is no OR between conditions, so e.g. two release conditions can express a range (`gte 2.0` and `lt 4.0`). To broaden matching, widen a condition's values or add separate filters. */ conditions: Array<{ /** * The field the condition matches against. Every `dataType` accepts `release`, `environment`, `ip_address`, `browser_name` and `browser_version`. In addition, `error` accepts `error_type`, `error_message` and `geo_country_code`, `log` accepts `log_message`, and `metric` accepts `metric_name`. `span` and `all` accept no other types. * * * `error_type` * * `error_message` * * `log_message` * * `metric_name` * * `release` * * `environment` * * `ip_address` * * `geo_country_code` * * `browser_name` * * `browser_version` */ type: 'error_type' | 'error_message' | 'log_message' | 'metric_name' | 'release' | 'environment' | 'ip_address' | 'geo_country_code' | 'browser_name' | 'browser_version'; /** * How the field compares to `value`. `glob` matches the field against each value as a glob pattern. `equals`, `starts_with`, `contains` and `ends_with` match the field against each value case-insensitively, with every character read literally; `does_not_start_with`, `does_not_contain` and `does_not_end_with` match when the field is set and no value does. `cidr` matches `ip_address` against each value as an address or a CIDR range, and `not_cidr` matches when no value does. `gt`, `gte`, `lt` and `lte` compare one value as a version and only apply to `release` and `browser_version`. * * * `glob` * * `equals` * * `starts_with` * * `contains` * * `ends_with` * * `does_not_start_with` * * `does_not_contain` * * `does_not_end_with` * * `cidr` * * `not_cidr` * * `gt` * * `gte` * * `lt` * * `lte` */ operator?: 'glob' | 'equals' | 'starts_with' | 'contains' | 'ends_with' | 'does_not_start_with' | 'does_not_contain' | 'does_not_end_with' | 'cidr' | 'not_cidr' | 'gt' | 'gte' | 'lt' | 'lte'; /** * The values the field is compared to. The condition matches when any value matches, so multiple values act as OR; a negated operator matches when none does. A version comparison takes one release with a version such as `1.2.0` or `myapp@1.2.0`. A comparison with a package only applies to releases of that package. A `browser_version` comparison takes a version without a package, such as `120` or `120.0.6099`. */ value: Array; }>; }; /** * Allows parameters to be defined in snake case, but passed as camel case. * * Errors are output in camel case. */ export type ExternalUserWritable = { /** * The user ID in Sentry. */ user_id: number; /** * The associated name for the provider. */ external_name: string; /** * The provider of the external actor. * * * `github` * * `github_enterprise` * * `jira_server` * * `slack` * * `slack_staging` * * `perforce` * * `gitlab` * * `cursor_origin` * * `msteams` * * `custom_scm` */ provider: 'github' | 'github_enterprise' | 'jira_server' | 'slack' | 'slack_staging' | 'perforce' | 'gitlab' | 'cursor_origin' | 'msteams' | 'custom_scm'; /** * The Integration ID. */ integration_id: number; /** * The associated user ID for provider. */ external_id?: string | null; }; export type OrganizationMemberRequestWritable = { /** * The email address to send the invitation to. */ email: string; /** * Deprecated, use `orgRole`. The organization-level role to assign. * * * `member` - Member * * `admin` - Admin * * `manager` - Manager * * `owner` - Owner * * @deprecated */ role?: 'member' | 'admin' | 'manager' | 'owner'; /** * The organization-level role of the new member. Roles include: * * * `billing` - Can manage payment and compliance details. * * `member` - Can view and act on events, as well as view most other data within the organization. * * `manager` - Has full management access to all teams and projects. Can also manage * the organization's membership. * * `owner` - Has unrestricted access to the organization, its data, and its * settings. Can add, modify, and delete projects and members, as well as * make billing and plan changes. * * `admin` - Can edit global integrations, manage projects, and add/remove teams. * They automatically assume the Team Admin role for teams they join. * Note: This role can no longer be assigned in Business and Enterprise plans. Use `TeamRoles` instead. * */ orgRole?: 'billing' | 'member' | 'manager' | 'owner' | 'admin'; /** * Deprecated, use `teamRoles`. Slugs of teams to add the member to. * * @deprecated */ teams?: Array; /** * The team and team-roles assigned to the member. Team roles can be either: * - `contributor` - Can view and act on issues. Depending on organization settings, they can also add team members. * - `admin` - Has full management access to their team's membership and projects. */ teamRoles?: Array<{ /** * The slug of the team to assign the member to. */ teamSlug: string; /** * The team role to assign. Use null for the default team role. * * * `contributor` * * `admin` */ role: 'contributor' | 'admin' | null; }>; /** * Whether or not to send an invite notification through email. Defaults to True. */ sendInvite?: boolean; /** * Whether or not to re-invite a user who has already been invited to the organization. Defaults to True. */ reinvite?: boolean; /** * Reissue the invite token, invalidating any previously sent invite link. */ regenerate?: boolean; }; export type RetrieveApiIndexData = { body?: never; path?: never; query?: never; url: '/'; }; export type RetrieveApiIndexErrors = { /** * Unauthorized */ 401: unknown; /** * Too Many Requests */ 429: unknown; }; export type RetrieveApiIndexResponses = { 200: { /** * API version. Always "0" */ version: string; /** * The credentials that authenticated the request, or null for session and anonymous requests */ auth: { /** * Scopes stored on the token or API key that authenticated the request */ scopes: Array; } | null; /** * The authenticated user, or null for anonymous requests and requests made with an API key or organization auth token */ user: { /** * SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access */ identities?: Array<{ /** * SSO identity ID */ id: string; /** * User's identifier at the auth provider */ name: string; /** * Organization the auth provider belongs to */ organization: { /** * Organization slug */ slug: string; /** * Organization name */ name: string; }; /** * Auth provider of the identity */ provider: { /** * Auth provider key, such as google or saml2 */ id: string; /** * Display name of the auth provider */ name: string; }; /** * When the identity was last verified by signing in through the auth provider */ dateVerified: string; /** * When the identity was last synced from the auth provider */ dateSynced: string; }>; /** * User avatar */ avatar?: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Two-factor authenticators of the user, without backup methods such as recovery codes */ authenticators?: Array<{ /** * Authenticator ID */ id: string; /** * Authenticator type, such as totp, sms, u2f or recovery */ type: string; /** * Display name of the authenticator type */ name: string; /** * When the authenticator was added */ dateCreated: string; /** * When the authenticator was last used, or null */ dateUsed: string | null; }>; /** * Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization */ canReset2fa?: boolean; /** * User ID */ id: string; /** * Display name: the user's name, or their email or username if no name is set */ name: string; /** * Username */ username: string; /** * Primary email address */ email: string; /** * Gravatar URL for the primary email address */ avatarUrl: string; /** * Whether the account is active */ isActive: boolean; /** * Whether the account is suspended. Suspended users can't sign in */ isSuspended: boolean; /** * Whether the user has a password set */ hasPasswordAuth: boolean; /** * Whether the account is managed, which stops the user from changing their username, password and similar details */ isManaged: boolean; /** * When the account was created */ dateJoined: string; /** * When the user last signed in, or null */ lastLogin: string | null; /** * Whether the user has two-factor authentication enabled */ has2fa: boolean; /** * When the user was last active, or null */ lastActive: string | null; /** * Whether the user is a superuser */ isSuperuser: boolean; /** * Whether the user has staff status */ isStaff: boolean; /** * Deprecated. Always an empty object */ experiments: { [key: string]: string; }; /** * Email addresses of the user. Only included for the requesting user or superusers; empty otherwise */ emails: Array<{ /** * Email ID */ id: string; /** * Email address */ email: string; /** * Whether the email address is verified */ is_verified: boolean; }>; /** * Preferences of the user */ options: { /** * UI theme: "light", "dark" or "system". Defaults to "system" */ theme: 'light' | 'dark' | 'system'; /** * Palette used in dark mode. Defaults to `default` */ themeVariantDark: 'default' | 'ash' | 'midnight'; /** * UI language code, such as `en` */ language: string; /** * Stack trace frame order: -1 for the default (most recent first), 1 for most recent last, 2 for most recent first */ stacktraceOrder: -1 | 1 | 2; /** * Event shown by default on issue details: "recommended", "latest" or "oldest" */ defaultIssueEvent: 'recommended' | 'latest' | 'oldest'; /** * Time zone for displayed dates, such as `UTC` */ timezone: string; /** * Whether times are shown in 24-hour format */ clock24Hours: boolean; /** * Whether the user prefers the streamlined issue details UI, or null if they haven't chosen */ prefersIssueDetailsStreamlinedUI: boolean | null; }; /** * Account flags of the user */ flags: { /** * Whether to ask the user for newsletter consent */ newsletter_consent_prompt: boolean; }; } | null; }; }; export type RetrieveApiIndexResponse = RetrieveApiIndexResponses[keyof RetrieveApiIndexResponses]; export type ClaimAgentHandoffData = { body: { /** * The private agent handoff code to claim. */ handoff_code: string; }; path?: never; query?: never; url: '/agent-handoff/'; }; export type ClaimAgentHandoffErrors = { /** * Bad Request */ 400: unknown; /** * Forbidden */ 403: unknown; /** * Gone */ 410: unknown; /** * Too Many Requests */ 429: unknown; }; export type ClaimAgentHandoffResponses = { 200: { /** * The Sentry base URL to authenticate against */ sentryUrl: string; /** * Email address of the Sentry user */ userEmail: string; /** * Display name of the organization */ organizationName: string; /** * Slug of the organization */ organizationSlug: string; /** * Client ID of the authorized OAuth application */ clientId: string; /** * One-time code used to authenticate the CLI when the IPs match */ setupCode?: string; /** * Instructions to display after authentication succeeds */ flowInstructions: string; }; }; export type ClaimAgentHandoffResponse = ClaimAgentHandoffResponses[keyof ClaimAgentHandoffResponses]; export type ListOrganizationsData = { body?: never; path?: never; query?: { /** * Specify `true` to restrict results to organizations in which you are an owner. */ owner?: boolean; /** * A pointer to the last object fetched and its sort order; used to retrieve the next or previous results. */ cursor?: string; /** * Filters results by using [query syntax](/product/sentry-basics/search/). * * Valid query fields include: * - `id`: The organization ID * - `slug`: The organization slug * - `status`: The organization's current status (one of `active`, `pending_deletion`, or `deletion_in_progress`) * - `email` or `member_id`: Filter your organizations by the emails or [organization member IDs](/api/organizations/list-an-organizations-members/) of specific members included * - `query`: Filter your organizations by name, slug, and members that contain this substring * * Example: `query=(slug:foo AND status:active) OR (email:[thing-one@example.com,thing-two@example.com] AND query:bar)` * */ query?: string; /** * The field to sort results by, in descending order. If not specified the results are sorted by the date they were created. * * Valid fields include: * - `members`: By number of members * - `events`: By number of events in the past 24 hours * */ sortBy?: string; /** * Limit the number of rows to return in the result. Default and maximum allowed is 100. */ per_page?: number; }; url: '/organizations/'; }; export type ListOrganizationsErrors = { /** * Unauthorized */ 401: unknown; /** * Forbidden */ 403: unknown; /** * Not Found */ 404: unknown; }; export type ListOrganizationsResponses = { 200: Array<{ /** * Features enabled for the organization */ features?: Array; /** * Server-wide options that the Sentry UI reads */ extraOptions?: { [key: string]: { [key: string]: unknown; }; }; /** * Scopes the requesting user has in the organization */ access?: Array; /** * Onboarding tasks the organization has completed or skipped */ onboardingTasks?: Array<{ /** * Onboarding task key, such as create_project */ task: string | null; /** * Task status: complete or skipped */ status: string; /** * When the task's completion was marked as seen, or null */ completionSeen: string | null; /** * When the task was completed or skipped */ dateCompleted: string; /** * Data recorded for the task. Most tasks record none, so it's often empty */ data: { /** * ID of the member whose invite completed the invite_member task */ invited_member_id?: number; /** * Platform of the first event, for the first_event task */ platform?: string | null; /** * Slug of the plugin enabled for the task */ plugin?: string; /** * Integration providers installed for the integrations task */ providers?: Array; }; }>; /** * Organization ID */ id: string; /** * Organization slug */ slug: string; /** * Organization status */ status: { /** * Status ID: active, pending_deletion, deletion_in_progress or relocation_pending_approval */ id: string; /** * Status label, such as active or pending deletion */ name: string; }; /** * Organization name, or its slug when it has no name */ name: string; /** * When the organization was created (ISO 8601) */ dateCreated: string; /** * Whether the organization is an early adopter */ isEarlyAdopter: boolean; /** * Whether members must use two-factor authentication */ require2FA: boolean; /** * Organization avatar */ avatar: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Organization and region URLs */ links: { /** * Base URL of the organization */ organizationUrl: string; /** * Base URL of the API for the organization's region */ regionUrl: string; }; /** * Whether SSO is configured for the organization */ hasAuthProvider: boolean; /** * Whether members can invite other members */ allowMemberInvite: boolean; /** * Whether members can create projects */ allowMemberProjectCreation: boolean; /** * Whether Sentry superusers can access the organization */ allowSuperuserAccess: boolean; }>; }; export type ListOrganizationsResponse = ListOrganizationsResponses[keyof ListOrganizationsResponses]; export type GetOrganizationData = { body?: never; path: { /** * The ID or slug of the organization the resource belongs to. */ organization_id_or_slug: string; }; query?: { /** * * Specify `"0"` to return organization details that do not include projects or teams. * */ detailed?: string; }; url: '/organizations/{organization_id_or_slug}/'; }; export type GetOrganizationErrors = { /** * Unauthorized */ 401: unknown; /** * Forbidden */ 403: unknown; /** * Not Found */ 404: unknown; }; export type GetOrganizationResponses = { 200: { /** * Features enabled for the organization */ features?: Array; /** * Server-wide options that the Sentry UI reads */ extraOptions?: { [key: string]: { [key: string]: unknown; }; }; /** * Scopes the requesting user has in the organization */ access?: Array; /** * Onboarding tasks the organization has completed or skipped */ onboardingTasks?: Array<{ /** * Onboarding task key, such as create_project */ task: string | null; /** * Task status: complete or skipped */ status: string; /** * When the task's completion was marked as seen, or null */ completionSeen: string | null; /** * When the task was completed or skipped */ dateCompleted: string; /** * Data recorded for the task. Most tasks record none, so it's often empty */ data: { /** * ID of the member whose invite completed the invite_member task */ invited_member_id?: number; /** * Platform of the first event, for the first_event task */ platform?: string | null; /** * Slug of the plugin enabled for the task */ plugin?: string; /** * Integration providers installed for the integrations task */ providers?: Array; }; }>; /** * Organization ID */ id: string; /** * Organization slug */ slug: string; /** * Organization status */ status: { /** * Status ID: active, pending_deletion, deletion_in_progress or relocation_pending_approval */ id: string; /** * Status label, such as active or pending deletion */ name: string; }; /** * Organization name, or its slug when it has no name */ name: string; /** * When the organization was created (ISO 8601) */ dateCreated: string; /** * Whether the organization is an early adopter */ isEarlyAdopter: boolean; /** * Whether members must use two-factor authentication */ require2FA: boolean; /** * Organization avatar */ avatar: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Organization and region URLs */ links: { /** * Base URL of the organization */ organizationUrl: string; /** * Base URL of the API for the organization's region */ regionUrl: string; }; /** * Whether SSO is configured for the organization */ hasAuthProvider: boolean; /** * Whether members can invite other members */ allowMemberInvite: boolean; /** * Whether members can create projects */ allowMemberProjectCreation: boolean; /** * Whether Sentry superusers can access the organization */ allowSuperuserAccess: boolean; }; }; export type GetOrganizationResponse = GetOrganizationResponses[keyof GetOrganizationResponses]; export type UpdateOrganizationData = { body?: { /** * The new slug for the organization, which needs to be unique. */ slug?: string; /** * The new name for the organization. */ name?: string; /** * Specify `true` to opt-in to new features before they're released to the public. */ isEarlyAdopter?: boolean; /** * Specify `true` to hide AI features from the organization. */ hideAiFeatures?: boolean; /** * The default role new members will receive. * * * `member` - Member * * `admin` - Admin * * `manager` - Manager * * `owner` - Owner */ defaultRole?: 'member' | 'admin' | 'manager' | 'owner'; /** * Specify `true` to allow organization members to freely join any team. */ openMembership?: boolean; /** * Specify `true` to allow members to delete events (including the delete & discard action) by granting them the `event:admin` scope. */ eventsMemberAdmin?: boolean; /** * Specify `true` to allow members to create, edit, and delete alert rules by granting them the `alerts:write` scope. */ alertsMemberWrite?: boolean; /** * The role required to download event attachments, such as native crash reports or log files. * * * `member` - Member * * `admin` - Admin * * `manager` - Manager * * `owner` - Owner */ attachmentsRole?: 'member' | 'admin' | 'manager' | 'owner'; /** * The role required to download debug information files, ProGuard mappings and source maps. * * * `member` - Member * * `admin` - Admin * * `manager` - Manager * * `owner` - Owner */ debugFilesRole?: 'member' | 'admin' | 'manager' | 'owner'; /** * Specify `true` to enable granular replay permissions, allowing per-member access control for replay data. */ hasGranularReplayPermissions?: boolean; /** * A list of user IDs who have permission to access replay data. Requires the hasGranularReplayPermissions flag to be true to be enforced. */ replayAccessMembers?: Array | null; /** * The type of display picture for the organization. * * * `letter_avatar` - Use initials * * `upload` - Upload an image */ avatarType?: 'letter_avatar' | 'upload'; /** * The image to upload as the organization avatar, in base64. Required if `avatarType` is `upload`. */ avatar?: string; /** * Specify `true` to require and enforce two-factor authentication for all members. */ require2FA?: boolean; /** * Specify `true` to allow sharing of limited details on issues to anonymous users. */ allowSharedIssues?: boolean; /** * Specify `true` to enable enhanced privacy controls to limit personally identifiable information (PII) as well as source code in things like notifications. */ enhancedPrivacy?: boolean; /** * Specify `true` to allow Sentry to scrape missing JavaScript source context when possible. */ scrapeJavaScript?: boolean; /** * How many native crash reports (such as Minidumps for improved processing and download in issue details) to store per issue. * * * `0` - Disabled * * `1` - 1 per issue * * `5` - 5 per issue * * `10` - 10 per issue * * `20` - 20 per issue * * `50` - 50 per issue * * `100` - 100 per issue * * `-1` - Unlimited */ storeCrashReports?: 0 | 1 | 5 | 10 | 20 | 50 | 100 | -1; /** * Specify `true` to allow users to request to join your organization. */ allowJoinRequests?: boolean; /** * Specify `true` to require server-side data scrubbing for all projects. */ dataScrubber?: boolean; /** * Specify `true` to apply the default scrubbers to prevent things like passwords and credit cards from being stored for all projects. */ dataScrubberDefaults?: boolean; /** * A list of additional global field names to match against when scrubbing data for all projects. */ sensitiveFields?: Array; /** * A list of global field names which data scrubbers should ignore. */ safeFields?: Array; /** * Specify `true` to prevent IP addresses from being stored for new events on all projects. */ scrubIPAddresses?: boolean; /** * Advanced data scrubbing rules that can be configured for each project as a JSON string. The new rules will only apply to new incoming events. For more details on advanced data scrubbing, see our [full documentation](/security-legal-pii/scrubbing/advanced-datascrubbing/). * * > Warning: Calling this endpoint with this field fully overwrites the advanced data scrubbing rules. * * Below is an example of a payload for a set of advanced data scrubbing rules for masking credit card numbers from the log message (equivalent to `[Mask] [Credit card numbers] from [$message]` in the Sentry app) and removing a specific key called `foo` (equivalent to `[Remove] [Anything] from [extra.foo]` in the Sentry app): * ```json * { * relayPiiConfig: "{\"rules":{\"0\":{\"type\":\"creditcard\",\"redaction\":{\"method\":\"mask\"}},\"1\":{\"type\":\"anything\",\"redaction\":{\"method\":\"remove\"}}},\"applications\":{\"$message\":[\"0\"],\"extra.foo\":[\"1\"]}}" * } * ``` * */ relayPiiConfig?: string; /** * A list of local Relays (the name, public key, and description as a JSON) registered for the organization. This feature is only available for organizations on the Business and Enterprise plans. Read more about Relay [here](/product/relay/). * * Below is an example of a list containing a single local Relay registered for the organization: * ```json * { * trustedRelays: [ * { * name: "my-relay", * publicKey: "eiwr9fdruw4erfh892qy4493reyf89ur34wefd90h", * description: "Configuration for my-relay." * } * ] * } * ``` * */ trustedRelays?: Array<{ [key: string]: unknown; }>; /** * A Relay base URL to use when displaying Client Key DSNs for this organization. */ relayDsnEndpoint?: string | null; /** * Specify `true` to allow the Sentry Slack integration to post replies in threads for an Issue Alert notification. Requires a Slack integration. */ issueAlertsThreadFlag?: boolean; /** * Specify `true` to allow the Sentry Slack integration to post replies in threads for a Metric Alert notification. Requires a Slack integration. */ metricAlertsThreadFlag?: boolean; /** * Specify `true` to restore an organization that is pending deletion. */ cancelDeletion?: boolean; /** * Deprecated. Response-time threshold in milliseconds previously used to compute Apdex. */ apdexThreshold?: number; }; path: { /** * The ID or slug of the organization the resource belongs to. */ organization_id_or_slug: string; }; query?: never; url: '/organizations/{organization_id_or_slug}/'; }; export type UpdateOrganizationErrors = { /** * Bad Request */ 400: unknown; /** * Unauthorized */ 401: unknown; /** * Forbidden */ 403: unknown; /** * Not Found */ 404: unknown; /** * Conflict */ 409: unknown; /** * Image too large. */ 413: unknown; }; export type UpdateOrganizationResponses = { 200: { /** * Features enabled for the organization */ features?: Array; /** * Server-wide options that the Sentry UI reads */ extraOptions?: { [key: string]: { [key: string]: unknown; }; }; /** * Scopes the requesting user has in the organization */ access?: Array; /** * Onboarding tasks the organization has completed or skipped */ onboardingTasks?: Array<{ /** * Onboarding task key, such as create_project */ task: string | null; /** * Task status: complete or skipped */ status: string; /** * When the task's completion was marked as seen, or null */ completionSeen: string | null; /** * When the task was completed or skipped */ dateCompleted: string; /** * Data recorded for the task. Most tasks record none, so it's often empty */ data: { /** * ID of the member whose invite completed the invite_member task */ invited_member_id?: number; /** * Platform of the first event, for the first_event task */ platform?: string | null; /** * Slug of the plugin enabled for the task */ plugin?: string; /** * Integration providers installed for the integrations task */ providers?: Array; }; }>; /** * Organization ID */ id: string; /** * Organization slug */ slug: string; /** * Organization status */ status: { /** * Status ID: active, pending_deletion, deletion_in_progress or relocation_pending_approval */ id: string; /** * Status label, such as active or pending deletion */ name: string; }; /** * Organization name, or its slug when it has no name */ name: string; /** * When the organization was created (ISO 8601) */ dateCreated: string; /** * Whether the organization is an early adopter */ isEarlyAdopter: boolean; /** * Whether members must use two-factor authentication */ require2FA: boolean; /** * Organization avatar */ avatar: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Organization and region URLs */ links: { /** * Base URL of the organization */ organizationUrl: string; /** * Base URL of the API for the organization's region */ regionUrl: string; }; /** * Whether SSO is configured for the organization */ hasAuthProvider: boolean; /** * Whether members can invite other members */ allowMemberInvite: boolean; /** * Whether members can create projects */ allowMemberProjectCreation: boolean; /** * Whether Sentry superusers can access the organization */ allowSuperuserAccess: boolean; /** * Deprecated, use orgRole */ role?: string; /** * The requesting user's role in the organization */ orgRole?: string; /** * Sample rate of the organization's plan, from 0 to 1 */ planSampleRate?: number; /** * Sample rate dynamic sampling aims for, from 0 to 1 */ desiredSampleRate?: number; /** * Experiment assignments for the organization, mapping each experiment name to active or control */ experiments: { [key: string]: string; }; /** * Whether this is the default organization of a single-organization install */ isDefault: boolean; /** * Role that new members get by default */ defaultRole: string; /** * Organization roles available in the organization */ orgRoleList: Array<{ /** * Role ID, such as member or admin */ id: string; /** * Display name of the role */ name: string; /** * Description of what the role can do */ desc: string; /** * Scopes the role grants in this organization */ scopes: Array; /** * Deprecated alias of isAllowed */ allowed: boolean; /** * Whether the requesting user can assign this role */ isAllowed: boolean; /** * Whether the role is retired and shouldn't be assigned to more members */ isRetired: boolean; /** * Whether members with this role can have team-level roles */ isTeamRolesAllowed: boolean; /** * Deprecated alias of isGlobal */ is_global: boolean; /** * Whether the role gives access to all teams and projects in the organization */ isGlobal: boolean; /** * ID of the lowest team role that members with this organization role hold on every team */ minimumTeamRole: string; }>; /** * Team roles available in the organization */ teamRoleList: Array<{ /** * Role ID, such as member or admin */ id: string; /** * Display name of the role */ name: string; /** * Description of what the role can do */ desc: string; /** * Scopes the role grants in this organization */ scopes: Array; /** * Deprecated alias of isAllowed */ allowed: boolean; /** * Whether the requesting user can assign this role */ isAllowed: boolean; /** * Whether the role is retired and shouldn't be assigned to more members */ isRetired: boolean; /** * Whether members with this role can have team-level roles */ isTeamRolesAllowed: boolean; /** * ID of the organization role whose members hold at least this team role on every team, or null */ isMinimumRoleFor: string | null; }>; /** * Whether members can freely join any team */ openMembership: boolean; /** * Whether limited details of issues can be shared with anonymous users */ allowSharedIssues: boolean; /** * Whether enhanced privacy controls limit personally identifiable information (PII) and source code in things like notifications */ enhancedPrivacy: boolean; /** * Whether server-side data scrubbing is required for all projects */ dataScrubber: boolean; /** * Whether the default scrubbers apply to all projects, to keep things like passwords and credit cards from being stored */ dataScrubberDefaults: boolean; /** * Additional field names that data scrubbing matches in all projects */ sensitiveFields: Array; /** * Field names that data scrubbers ignore in all projects */ safeFields: Array; /** * How many native crash reports to store per issue; 0 is disabled and -1 is unlimited */ storeCrashReports: number; /** * Role required to download event attachments, such as native crash reports or log files */ attachmentsRole: string; /** * Role required to download debug information files, ProGuard mappings and source maps */ debugFilesRole: string; /** * Whether members can delete events, through the event:admin scope */ eventsMemberAdmin: boolean; /** * Whether members can create, edit and delete alert rules, through the alerts:write scope */ alertsMemberWrite: boolean; /** * Whether IP addresses are kept from being stored for new events in all projects */ scrubIPAddresses: boolean; /** * Whether Sentry scrapes missing JavaScript source context when possible */ scrapeJavaScript: boolean; /** * Whether users can request to join the organization */ allowJoinRequests: boolean; /** * Advanced data scrubbing rules of the organization as a JSON string, or null */ relayPiiConfig: string | null; /** * Relay base URL used when displaying Client Key DSNs, or null */ relayDsnEndpoint: string | null; /** * Local Relays registered for the organization */ trustedRelays: Array<{ /** * Name of the Relay */ name?: string; /** * Description of the Relay */ description?: string; /** * Public key of the Relay */ publicKey?: string; /** * When the Relay was added */ created?: string; /** * When the Relay was added or its name or description last changed */ lastModified?: string; }>; /** * Number of pending requests to join teams in the organization */ pendingAccessRequests: number; /** * Whether AI features are hidden for the organization */ hideAiFeatures: boolean; /** * Whether the organization agreed to let Sentry use its data in aggregate */ aggregatedDataConsent: boolean; /** * Whether dynamic sampling keeps less than all events, for the organization or any of its projects */ isDynamicallySampled: boolean; /** * Whether the Slack integration posts replies in threads for issue alert notifications */ issueAlertsThreadFlag: boolean; /** * Whether the Slack integration posts replies in threads for metric alert notifications */ metricAlertsThreadFlag: boolean; /** * Whether the requesting user must sign in with SSO to access the organization */ requiresSso: boolean; /** * Default Autofix automation tuning for new projects */ defaultAutofixAutomationTuning: string; /** * Default issue scanner automation for new projects; on seat-based Seer plans, new projects always have it on */ defaultSeerScannerAutomation: boolean; /** * Whether Seer coding is enabled for the organization */ enableSeerCoding: boolean; /** * Coding agent that automated Autofix runs on new projects hand off to, or seer; applies to seat-based Seer plans */ defaultCodingAgent: string; /** * Integration ID of the default coding agent, or null */ defaultCodingAgentIntegrationId: string | null; /** * Step where automated Autofix runs on new projects stop by default */ defaultAutomatedRunStoppingPoint: string; /** * Whether code review is turned on for GitHub repositories when they're added */ autoEnableCodeReview: boolean; /** * Whether automated Autofix runs on new projects open pull requests by default */ autoOpenPrs: boolean; /** * Code review triggers that GitHub repositories get when they're added */ defaultCodeReviewTriggers: Array; /** * Active teams of the organization */ teams: Array<{ /** * Team ID */ id: string; /** * Team slug, unique within the organization */ slug: string; /** * Display name of the team */ name: string; /** * When the team was created (ISO 8601) */ dateCreated: string | null; /** * Whether the requesting user is a member of the team */ isMember: boolean; /** * The requesting user's role in the team */ teamRole: string | null; /** * Team flags. idp:provisioned is true when the team is managed by an identity provider through SCIM */ flags: { [key: string]: boolean; }; /** * Scopes the requesting user has on the team through their team role. Empty if the user has no access */ access: Array; /** * Whether the requesting user can access the team, as a member, through open membership or through an organization role with access to all teams */ hasAccess: boolean; /** * Whether the requesting user has a pending request to join the team */ isPending: boolean; /** * Number of members in the team */ memberCount: number; /** * Team avatar */ avatar: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Teams in external providers, such as Slack or GitHub, that are linked to this team */ externalTeams?: Array<{ /** * ID of the user or team in the provider */ externalId?: string; /** * ID of the Sentry user. Only set for user mappings */ userId?: string; /** * ID of the Sentry team. Only set for team mappings */ teamId?: string; /** * ID of the external actor mapping */ id: string; /** * Provider of the external actor, such as github or slack */ provider: string; /** * Name of the user or team in the provider, such as @octocat */ externalName: string; /** * ID of the integration the mapping belongs to */ integrationId: string; }>; /** * Organization the team belongs to */ organization?: { /** * Features enabled for the organization */ features?: Array; /** * Server-wide options that the Sentry UI reads */ extraOptions?: { [key: string]: { [key: string]: unknown; }; }; /** * Scopes the requesting user has in the organization */ access?: Array; /** * Onboarding tasks the organization has completed or skipped */ onboardingTasks?: Array<{ /** * Onboarding task key, such as create_project */ task: string | null; /** * Task status: complete or skipped */ status: string; /** * When the task's completion was marked as seen, or null */ completionSeen: string | null; /** * When the task was completed or skipped */ dateCompleted: string; /** * Data recorded for the task. Most tasks record none, so it's often empty */ data: { /** * ID of the member whose invite completed the invite_member task */ invited_member_id?: number; /** * Platform of the first event, for the first_event task */ platform?: string | null; /** * Slug of the plugin enabled for the task */ plugin?: string; /** * Integration providers installed for the integrations task */ providers?: Array; }; }>; /** * Organization ID */ id: string; /** * Organization slug */ slug: string; /** * Organization status */ status: { /** * Status ID: active, pending_deletion, deletion_in_progress or relocation_pending_approval */ id: string; /** * Status label, such as active or pending deletion */ name: string; }; /** * Organization name, or its slug when it has no name */ name: string; /** * When the organization was created (ISO 8601) */ dateCreated: string; /** * Whether the organization is an early adopter */ isEarlyAdopter: boolean; /** * Whether members must use two-factor authentication */ require2FA: boolean; /** * Organization avatar */ avatar: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Organization and region URLs */ links: { /** * Base URL of the organization */ organizationUrl: string; /** * Base URL of the API for the organization's region */ regionUrl: string; }; /** * Whether SSO is configured for the organization */ hasAuthProvider: boolean; /** * Whether members can invite other members */ allowMemberInvite: boolean; /** * Whether members can create projects */ allowMemberProjectCreation: boolean; /** * Whether Sentry superusers can access the organization */ allowSuperuserAccess: boolean; }; /** * Projects the team has access to */ projects?: Array<{ /** * Counts of non-transaction events per interval over the requested stats period, as [timestamp, count] pairs. Only included when a stats period is requested */ stats?: Array> | { [key: string]: number; }; /** * Counts of transactions per interval over the requested stats period, as [timestamp, count] pairs. Only included when transaction stats are requested */ transactionStats?: Array>; /** * Crash-free session rates for the current and previous stats period. Only included when session stats are requested */ sessionStats?: { /** * Crash-free rate in the current period, as a percentage. Null when there's no session data */ currentCrashFreeRate: number | null; /** * Crash-free rate in the previous period, as a percentage. Null when there's no session data */ previousCrashFreeRate: number | null; /** * Whether the project has release health (session) data */ hasHealthData: boolean; }; /** * ID of the project */ id: string; /** * Slug of the project */ slug: string; /** * Name of the project */ name: string; /** * Platform of the project */ platform: string | null; /** * When the project was created (ISO 8601) */ dateCreated: string; /** * Whether the requesting user bookmarked the project */ isBookmarked: boolean; /** * Whether the requesting user is a member of a team with access to the project */ isMember: boolean; /** * Features enabled for the project */ features: Array; /** * When the project received its first event (ISO 8601) */ firstEvent: string | null; /** * Whether the project has sent transactions */ firstTransactionEvent: boolean; /** * Scopes the requesting user has on the project through team membership and organization role */ access: Array; /** * Whether the requesting user has access to the project */ hasAccess: boolean; /** * Whether the project has sent user feedback */ hasFeedbacks: boolean; /** * Whether the project has sent feature flags */ hasFlags: boolean; /** * Whether the project has sent an event with a minified stack trace */ hasMinifiedStackTrace: boolean; /** * Whether the project has cron monitors */ hasMonitors: boolean; /** * Whether the project has sent user feedback from the user feedback widget */ hasNewFeedbacks: boolean; /** * Whether the project has sent profiles */ hasProfiles: boolean; /** * Whether the project has sent replays */ hasReplays: boolean; /** * Whether the project has sent sessions */ hasSessions: boolean; /** * Whether the project has sent HTTP request spans used by Insights */ hasInsightsHttp: boolean; /** * Whether the project has sent database spans used by Insights */ hasInsightsDb: boolean; /** * Whether the project has sent asset spans used by Insights */ hasInsightsAssets: boolean; /** * Whether the project has sent app start spans used by Insights */ hasInsightsAppStart: boolean; /** * Whether the project has sent screen load spans used by Insights */ hasInsightsScreenLoad: boolean; /** * Whether the project has sent web vitals spans used by Insights */ hasInsightsVitals: boolean; /** * Whether the project has sent cache spans used by Insights */ hasInsightsCaches: boolean; /** * Whether the project has sent queue spans used by Insights */ hasInsightsQueues: boolean; /** * Whether the project has sent AI agent spans used by Insights */ hasInsightsAgentMonitoring: boolean; /** * Whether the project has sent MCP spans used by Insights */ hasInsightsMCP: boolean; /** * Whether the project has sent logs. Always true outside sentry.io */ hasLogs: boolean; /** * Whether the project has sent trace metrics. Always true outside sentry.io */ hasTraceMetrics: boolean; /** * Whether this is the Sentry install's own internal project */ isInternal: boolean; /** * Whether the project is public */ isPublic: boolean; /** * Avatar of the project. Always a letter avatar */ avatar: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Hex color code for the project, derived from its slug unless set explicitly */ color: string; /** * Status of the project: active, deleted, or unknown */ status: string; }>; }>; /** * Active projects of the organization */ projects: Array<{ /** * Latest deploy for each environment, keyed by environment name, with its release version and finish time. Omitted when collapsed */ latestDeploys?: { [key: string]: { [key: string]: string; }; } | null; /** * Requested project options, keyed by option name. Only included when options are requested */ options?: { [key: string]: unknown; }; /** * Counts of non-transaction events per interval over the requested stats period, as [timestamp, count] pairs. Only included when a stats period is requested */ stats?: Array> | { [key: string]: number; }; /** * Counts of transactions per interval over the requested stats period, as [timestamp, count] pairs. Only included when transaction stats are requested */ transactionStats?: Array>; /** * Crash-free session rates for the current and previous stats period. Only included when session stats are requested */ sessionStats?: { /** * Crash-free rate in the current period, as a percentage. Null when there's no session data */ currentCrashFreeRate: number | null; /** * Crash-free rate in the previous period, as a percentage. Null when there's no session data */ previousCrashFreeRate: number | null; /** * Whether the project has release health (session) data */ hasHealthData: boolean; }; /** * ID of the project */ id: string; /** * Slug of the project */ slug: string; /** * Name of the project */ name: string; /** * Platform of the project */ platform: string | null; /** * When the project was created (ISO 8601) */ dateCreated: string; /** * Whether the requesting user bookmarked the project */ isBookmarked: boolean; /** * Whether the requesting user is a member of a team with access to the project */ isMember: boolean; /** * Features enabled for the project */ features: Array; /** * When the project received its first event (ISO 8601) */ firstEvent: string | null; /** * Whether the project has sent transactions */ firstTransactionEvent: boolean; /** * Scopes the requesting user has on the project through team membership and organization role */ access: Array; /** * Whether the requesting user has access to the project */ hasAccess: boolean; /** * Whether the project has sent user feedback */ hasFeedbacks: boolean; /** * Whether the project has sent feature flags */ hasFlags: boolean; /** * Whether the project has sent an event with a minified stack trace */ hasMinifiedStackTrace: boolean; /** * Whether the project has cron monitors */ hasMonitors: boolean; /** * Whether the project has sent user feedback from the user feedback widget */ hasNewFeedbacks: boolean; /** * Whether the project has sent profiles */ hasProfiles: boolean; /** * Whether the project has sent replays */ hasReplays: boolean; /** * Whether the project has sent sessions */ hasSessions: boolean; /** * Whether the project has sent HTTP request spans used by Insights */ hasInsightsHttp: boolean; /** * Whether the project has sent database spans used by Insights */ hasInsightsDb: boolean; /** * Whether the project has sent asset spans used by Insights */ hasInsightsAssets: boolean; /** * Whether the project has sent app start spans used by Insights */ hasInsightsAppStart: boolean; /** * Whether the project has sent screen load spans used by Insights */ hasInsightsScreenLoad: boolean; /** * Whether the project has sent web vitals spans used by Insights */ hasInsightsVitals: boolean; /** * Whether the project has sent cache spans used by Insights */ hasInsightsCaches: boolean; /** * Whether the project has sent queue spans used by Insights */ hasInsightsQueues: boolean; /** * Whether the project has sent AI agent spans used by Insights */ hasInsightsAgentMonitoring: boolean; /** * Whether the project has sent MCP spans used by Insights */ hasInsightsMCP: boolean; /** * Whether the project has sent logs. Always true outside sentry.io */ hasLogs: boolean; /** * Whether the project has sent trace metrics. Always true outside sentry.io */ hasTraceMetrics: boolean; /** * First team with access to the project; use teams instead */ team: { /** * ID of the team */ id: string; /** * Name of the team */ name: string; /** * Slug of the team */ slug: string; } | null; /** * Teams with access to the project */ teams: Array<{ /** * ID of the team */ id: string; /** * Name of the team */ name: string; /** * Slug of the team */ slug: string; }>; /** * Platforms seen in the project's events */ platforms: Array; /** * Whether the project has received user reports */ hasUserReports: boolean; /** * Environments seen in the project's events */ environments: Array; /** * Latest release of the project */ latestRelease: { /** * Version of the release */ version: string; } | null; }>; }; }; export type UpdateOrganizationResponse = UpdateOrganizationResponses[keyof UpdateOrganizationResponses]; export type ListOrganizationAiConversationsData = { body?: never; path: { /** * The ID or slug of the organization the resource belongs to. */ organization_id_or_slug: string; }; query?: { /** * The IDs or slugs of projects to filter by. Project slugs are unique within each organization. Omit this parameter to include all accessible projects. `-1` is also accepted to include all accessible projects. * For example, the following are valid parameters: * - `/?project=1234&project=56789` * - `/?project=android&project=javascript-react` * - `/?project=-1` * */ project?: Array; /** * The name of environments to filter by. */ environment?: Array; /** * The period of time for the query, will override the start & end parameters, a number followed by one of: * - `d` for days * - `h` for hours * - `m` for minutes * - `s` for seconds * - `w` for weeks * * For example, `24h`, to mean query data starting from 24 hours ago to now. */ statsPeriod?: string; /** * The start of the period of time for the query, expected in ISO-8601 format. For example, `2001-12-14T12:34:56.7890`. */ start?: string; /** * The end of the period of time for the query, expected in ISO-8601 format. For example, `2001-12-14T12:34:56.7890`. */ end?: string; /** * Sentry search syntax matched against spans. A conversation is returned when any span in it matches. Summary fields include all spans in selected projects and time range, not only matching spans. */ query?: string; /** * The field to sort conversations by. Prefix it with `-` to sort in descending order. Defaults to `-conversation.age`, most recent first. */ sort?: '-conversation.age' | '-conversation.conversationId' | '-conversation.errors' | '-conversation.generationDuration' | '-conversation.inputTokens' | '-conversation.llmCalls' | '-conversation.outputTokens' | '-conversation.timeSpan' | '-conversation.toolCalls' | '-conversation.toolErrors' | '-conversation.totalCost' | '-conversation.totalTokens' | 'conversation.age' | 'conversation.conversationId' | 'conversation.errors' | 'conversation.generationDuration' | 'conversation.inputTokens' | 'conversation.llmCalls' | 'conversation.outputTokens' | 'conversation.timeSpan' | 'conversation.toolCalls' | 'conversation.toolErrors' | 'conversation.totalCost' | 'conversation.totalTokens'; /** * A pointer to the last object fetched and its sort order; used to retrieve the next or previous results. */ cursor?: string; /** * Number of conversations to return per page. Defaults to 10; maximum is 100. */ per_page?: number; }; url: '/organizations/{organization_id_or_slug}/agents/conversations/'; }; export type ListOrganizationAiConversationsErrors = { /** * Bad Request */ 400: unknown; /** * Unauthorized */ 401: unknown; /** * Forbidden */ 403: unknown; /** * Not Found */ 404: unknown; }; export type ListOrganizationAiConversationsResponses = { 200: Array<{ /** * When the conversation's last AI span happened, as a Unix timestamp in milliseconds */ endTimestamp: number; /** * Number of AI spans whose status isn't ok, cancelled or unknown */ errors: number; /** * Total duration of the conversation's LLM calls in milliseconds */ generationDuration: number; /** * Number of input tokens used by LLM calls */ inputTokens: number; /** * Number of LLM calls */ llmCalls: number; /** * Number of output tokens used by LLM calls */ outputTokens: number; /** * When the conversation's first AI span happened, as a Unix timestamp in milliseconds */ startTimestamp: number; /** * Number of tool calls */ toolCalls: number; /** * Number of failed tool calls */ toolErrors: number; /** * Names of the tools called, sorted */ toolNames: Array; /** * Total cost of LLM calls */ totalCost: number; /** * Total number of tokens used by LLM calls */ totalTokens: number; /** * ID of the conversation */ conversationId: string; /** * Elapsed time between the first and last AI spans in milliseconds */ timeSpan: number; /** * Stored title of the conversation. Null when it has none yet */ title: string | null; /** * ID of the project the conversation belongs to */ projectId: number | null; /** * Names of the agents in the conversation */ flow: Array; /** * Number of traces in the conversation */ traceCount: number; /** * IDs of the traces in the conversation */ traceIds: Array; /** * First input message of the conversation */ firstInput: string | null; /** * Last output message of the conversation */ lastOutput: string | null; /** * User who started the conversation */ user: { /** * ID of the user who started the conversation */ id: string | null; /** * Email of the user */ email: string | null; /** * Username of the user */ username: string | null; /** * IP address of the user */ ip_address: string | null; } | null; /** * Projects the conversation's spans belong to */ projects: Array<{ /** * ID of the project */ id: number; /** * Name of the project */ name: string; /** * Slug of the project */ slug: string; }>; /** * URL of the conversation in Sentry */ webUrl: string; }>; }; export type ListOrganizationAiConversationsResponse2 = ListOrganizationAiConversationsResponses[keyof ListOrganizationAiConversationsResponses]; export type RetrieveOrganizationAiConversationData = { body?: never; path: { /** * The ID or slug of the organization the resource belongs to. */ organization_id_or_slug: string; /** * Conversation ID recorded in `gen_ai.conversation.id`. */ conversation_id: string; }; query?: { /** * The IDs or slugs of projects to filter by. Project slugs are unique within each organization. Omit this parameter to include all accessible projects. `-1` is also accepted to include all accessible projects. * For example, the following are valid parameters: * - `/?project=1234&project=56789` * - `/?project=android&project=javascript-react` * - `/?project=-1` * */ project?: Array; /** * The name of environments to filter by. */ environment?: Array; /** * The period of time for the query, will override the start & end parameters, a number followed by one of: * - `d` for days * - `h` for hours * - `m` for minutes * - `s` for seconds * - `w` for weeks * * For example, `24h`, to mean query data starting from 24 hours ago to now. */ statsPeriod?: string; /** * The start of the period of time for the query, expected in ISO-8601 format. For example, `2001-12-14T12:34:56.7890`. */ start?: string; /** * The end of the period of time for the query, expected in ISO-8601 format. For example, `2001-12-14T12:34:56.7890`. */ end?: string; /** * A pointer to the last object fetched and its sort order; used to retrieve the next or previous results. */ cursor?: string; /** * Number of spans to return per page. Defaults to 100; maximum is 1,000. */ per_page?: number; }; url: '/organizations/{organization_id_or_slug}/agents/conversations/{conversation_id}/'; }; export type RetrieveOrganizationAiConversationErrors = { /** * Bad Request */ 400: unknown; /** * Unauthorized */ 401: unknown; /** * Forbidden */ 403: unknown; /** * Not Found */ 404: unknown; }; export type RetrieveOrganizationAiConversationResponses = { /** * Span page plus conversation-level metadata. */ 200: { /** * ID of the conversation */ conversationId: string; /** * Stored title of the conversation. Null when it has none yet */ title: string | null; /** * Projects the conversation's spans belong to */ projects: Array<{ /** * ID of the project */ id: number; /** * Name of the project */ name: string; /** * Slug of the project */ slug: string; }>; /** * URL of the conversation in Sentry */ webUrl: string; /** * Spans recorded for the conversation, in start-time order */ spans: Array<{ [key: string]: unknown; }>; /** * Aggregate stats for the conversation. Only returned on the first page */ stats: { /** * When the conversation's last AI span happened, as a Unix timestamp in milliseconds */ endTimestamp: number; /** * Number of AI spans whose status isn't ok, cancelled or unknown */ errors: number; /** * Total duration of the conversation's LLM calls in milliseconds */ generationDuration: number; /** * Number of input tokens used by LLM calls */ inputTokens: number; /** * Number of LLM calls */ llmCalls: number; /** * Number of output tokens used by LLM calls */ outputTokens: number; /** * When the conversation's first AI span happened, as a Unix timestamp in milliseconds */ startTimestamp: number; /** * Number of tool calls */ toolCalls: number; /** * Number of failed tool calls */ toolErrors: number; /** * Names of the tools called, sorted */ toolNames: Array; /** * Total cost of LLM calls */ totalCost: number; /** * Total number of tokens used by LLM calls */ totalTokens: number; /** * Number of input tokens read from the cache */ cacheReadTokens: number; /** * Number of input tokens written to the cache */ cacheWriteTokens: number; /** * Names of the tools used by spans with errors */ errorToolNames: Array; /** * Number of reasoning tokens */ reasoningTokens: number; /** * Cost of cache-read tokens */ cacheReadCost: number; /** * Cost of cache-write tokens */ cacheWriteCost: number; /** * Cost of reasoning tokens */ reasoningCost: number; /** * Token usage and cost per model */ usageByModel: Array<{ /** * Name of the model */ model: string | null; /** * Number of LLM calls to the model */ llmCalls: number; /** * Number of input tokens, including cache-read and cache-write tokens */ inputTokens: number; /** * Number of output tokens */ outputTokens: number; /** * Total number of tokens */ totalTokens: number; /** * Number of input tokens read from the cache */ cacheReadTokens: number; /** * Number of input tokens written to the cache */ cacheWriteTokens: number; /** * Number of reasoning tokens */ reasoningTokens: number; /** * Cost of input tokens, including cache-read and cache-write costs */ inputCost: number; /** * Cost of output tokens, including reasoning cost */ outputCost: number; /** * Cost of cache-read tokens */ cacheReadCost: number; /** * Cost of cache-write tokens */ cacheWriteCost: number; /** * Cost of reasoning tokens */ reasoningCost: number; /** * Total cost */ totalCost: number; }>; } | null; /** * IDs of other conversations recorded in the same traces, such as sub-agents. Only returned on the first page */ relatedConversationIds?: Array; }; }; export type RetrieveOrganizationAiConversationResponse2 = RetrieveOrganizationAiConversationResponses[keyof RetrieveOrganizationAiConversationResponses]; export type AssembleOrganizationArtifactBundleData = { body?: { /** * The IDs or slugs of the projects the bundle belongs to. */ projects: Array; /** * The SHA-1 checksum of the whole bundle. */ checksum: string; /** * The SHA-1 checksums of the bundle's chunks, in order. Upload missing chunks with the chunk upload endpoint. Send an empty list to poll the bundle's state. */ chunks: Array; /** * The release to associate the bundle with. */ version?: string; /** * The distribution to associate the bundle with. Requires `version`. */ dist?: string; }; path: { /** * The ID or slug of the organization the resource belongs to. */ organization_id_or_slug: string; }; query?: never; url: '/organizations/{organization_id_or_slug}/artifactbundle/assemble/'; }; export type AssembleOrganizationArtifactBundleErrors = { /** * Bad Request */ 400: unknown; /** * Unauthorized */ 401: unknown; /** * Forbidden */ 403: unknown; /** * Not Found */ 404: unknown; }; export type AssembleOrganizationArtifactBundleResponses = { 200: { /** * State of the bundle: ok, not_found, created, assembling or error */ state: string; /** * Checksums of the chunks the server doesn't have yet */ missingChunks: Array; /** * Error message when the state is error */ detail?: string | null; }; }; export type AssembleOrganizationArtifactBundleResponse = AssembleOrganizationArtifactBundleResponses[keyof AssembleOrganizationArtifactBundleResponses]; export type FetchOrganizationAvailableActionsData = { body?: never; path: { /** * The ID or slug of the organization the resource belongs to. */ organization_id_or_slug: string; }; query?: { /** * Filter by action type. Can be specified multiple times. */ type?: Array<'discord' | 'email' | 'github' | 'github_enterprise' | 'jira' | 'jira_server' | 'msteams' | 'opsgenie' | 'pagerduty' | 'seer_investigation' | 'sentry_app' | 'slack' | 'slack_staging' | 'vsts' | 'webhook'>; }; url: '/organizations/{organization_id_or_slug}/available-actions/'; }; export type FetchOrganizationAvailableActionsErrors = { /** * Bad Request */ 400: unknown; /** * Unauthorized */ 401: unknown; /** * Forbidden */ 403: unknown; /** * Not Found */ 404: unknown; }; export type FetchOrganizationAvailableActionsResponses = { 200: Array<{ /** * Type of the action */ type: string; /** * Group the action belongs to, such as notification or ticket_creation */ handlerGroup: string; /** * JSON schema of the action's config */ configSchema: { /** * URI of the JSON Schema dialect */ $schema?: string; /** * JSON type or types the value has */ type?: string | Array; /** * What the value is */ description?: string; /** * Schemas of the object's properties, by property name. false forbids the property */ properties?: { [key: string]: { [key: string]: unknown; } | boolean; }; /** * Properties the object must have */ required?: Array; /** * Whether the object can have properties that aren't listed */ additionalProperties?: boolean; /** * Values the value can be */ enum?: Array; /** * Value used when none is given */ default?: string | number | number | boolean | Array | { [key: string]: string; } | null; /** * Schema of the array's items */ items?: { [key: string]: unknown; }; /** * Schemas that the value must all match */ allOf?: Array<{ [key: string]: unknown; }>; /** * Schemas that the value must match exactly one of */ oneOf?: Array<{ [key: string]: unknown; }>; /** * Most properties the object can have */ maxProperties?: number; /** * Schema that decides whether then applies */ if?: { [key: string]: unknown; }; /** * Schema the value must match when if matches */ then?: { [key: string]: unknown; }; /** * Regular expression the string must match */ pattern?: string; /** * Fewest characters the string can have */ minLength?: number; /** * Most characters the string can have */ maxLength?: number; }; /** * JSON schema of the action's data */ dataSchema: { /** * URI of the JSON Schema dialect */ $schema?: string; /** * JSON type or types the value has */ type?: string | Array; /** * What the value is */ description?: string; /** * Schemas of the object's properties, by property name. false forbids the property */ properties?: { [key: string]: { [key: string]: unknown; } | boolean; }; /** * Properties the object must have */ required?: Array; /** * Whether the object can have properties that aren't listed */ additionalProperties?: boolean; /** * Values the value can be */ enum?: Array; /** * Value used when none is given */ default?: string | number | number | boolean | Array | { [key: string]: string; } | null; /** * Schema of the array's items */ items?: { [key: string]: unknown; }; /** * Schemas that the value must all match */ allOf?: Array<{ [key: string]: unknown; }>; /** * Schemas that the value must match exactly one of */ oneOf?: Array<{ [key: string]: unknown; }>; /** * Most properties the object can have */ maxProperties?: number; /** * Schema that decides whether then applies */ if?: { [key: string]: unknown; }; /** * Schema the value must match when if matches */ then?: { [key: string]: unknown; }; /** * Regular expression the string must match */ pattern?: string; /** * Fewest characters the string can have */ minLength?: number; /** * Most characters the string can have */ maxLength?: number; }; /** * Sentry app that provides the action. Only set for Sentry app actions */ sentryApp?: { /** * ID of the Sentry app */ id: string; /** * Name of the Sentry app */ name: string; /** * ID of the Sentry app installation */ installationId: string; /** * UUID of the Sentry app installation */ installationUuid: string; /** * Status of the Sentry app */ status: 'unpublished' | 'published' | 'internal' | 'publish_request_inprogress' | 'deletion_in_progress'; /** * Settings form for the action, from the app's alert rule action component */ settings?: { /** * Type of the element */ type: 'alert-rule-settings'; /** * Text shown above the settings form */ description?: string; /** * Path on the integration's server that Sentry sends requests to */ uri: string; /** * Fields that the user must fill in */ required_fields: Array<{ /** * Type of the element */ type: 'select'; /** * Label of the form field */ label: string; /** * Name of the form field, which keys its value in the submitted form */ name: string; /** * Whether the field loads its options from uri as the user types */ async?: boolean; /** * Whether to skip loading the options from uri when the form opens */ skip_load_on_open?: boolean; /** * Whether more than one option can be selected */ multiple?: boolean; /** * Path on the integration's server that Sentry sends requests to */ uri?: string; /** * Options to choose from, each a two-item array */ options?: Array<[ string | number, string | number ]>; /** * Names of the fields that this field's options depend on */ depends_on?: Array; /** * Options to choose from, loaded from options or from uri. Each is a two-item array */ choices?: Array<[ string | number, string | number ]>; /** * Value selected by default, from the options loaded from uri */ defaultValue?: string; } | { /** * Type of the element */ type: 'text'; /** * Label of the form field */ label: string; /** * Name of the form field, which keys its value in the submitted form */ name: string; /** * Issue field that prefills the field */ default?: 'issue.title' | 'issue.description'; } | { /** * Type of the element */ type: 'textarea'; /** * Label of the form field */ label: string; /** * Name of the form field, which keys its value in the submitted form */ name: string; /** * Issue field that prefills the field */ default?: 'issue.title' | 'issue.description'; }>; /** * Fields that the user can fill in */ optional_fields?: Array<{ /** * Type of the element */ type: 'select'; /** * Label of the form field */ label: string; /** * Name of the form field, which keys its value in the submitted form */ name: string; /** * Whether the field loads its options from uri as the user types */ async?: boolean; /** * Whether to skip loading the options from uri when the form opens */ skip_load_on_open?: boolean; /** * Whether more than one option can be selected */ multiple?: boolean; /** * Path on the integration's server that Sentry sends requests to */ uri?: string; /** * Options to choose from, each a two-item array */ options?: Array<[ string | number, string | number ]>; /** * Names of the fields that this field's options depend on */ depends_on?: Array; /** * Options to choose from, loaded from options or from uri. Each is a two-item array */ choices?: Array<[ string | number, string | number ]>; /** * Value selected by default, from the options loaded from uri */ defaultValue?: string; } | { /** * Type of the element */ type: 'text'; /** * Label of the form field */ label: string; /** * Name of the form field, which keys its value in the submitted form */ name: string; /** * Issue field that prefills the field */ default?: 'issue.title' | 'issue.description'; } | { /** * Type of the element */ type: 'textarea'; /** * Label of the form field */ label: string; /** * Name of the form field, which keys its value in the submitted form */ name: string; /** * Issue field that prefills the field */ default?: 'issue.title' | 'issue.description'; }>; }; /** * Title of the app's alert rule action component */ title?: string; }; /** * Integrations the action can use */ integrations?: Array<{ /** * ID of the integration */ id: string; /** * Name of the integration */ name: string; /** * Services available in the integration, such as PagerDuty services */ services?: Array<{ /** * ID of the service */ id: string; /** * Name of the service */ name: string; }>; }>; /** * Webhook services the action can send to */ services?: Array<{ /** * Slug of the webhook service */ slug: string; /** * Name of the webhook service */ name: string; }>; /** * Why the action can't be used, such as plan. Omitted when it can be used */ disabledReason?: 'plan'; }>; }; export type FetchOrganizationAvailableActionsResponse = FetchOrganizationAvailableActionsResponses[keyof FetchOrganizationAvailableActionsResponses]; export type GetOrganizationChunkUploadOptionsData = { body?: never; path: { /** * The ID or slug of the organization the resource belongs to. */ organization_id_or_slug: string; }; query?: never; url: '/organizations/{organization_id_or_slug}/chunk-upload/'; }; export type GetOrganizationChunkUploadOptionsErrors = { /** * Unauthorized */ 401: unknown; /** * Forbidden */ 403: unknown; /** * Not Found */ 404: unknown; }; export type GetOrganizationChunkUploadOptionsResponses = { 200: { /** * URL to upload chunks to */ url: string; /** * Size of each chunk in bytes */ chunkSize: number; /** * Maximum number of chunks in one upload request */ chunksPerRequest: number; /** * Maximum size of an assembled file in bytes */ maxFileSize: number; /** * Maximum size of one upload request in bytes */ maxRequestSize: number; /** * Maximum number of upload requests to run at the same time */ concurrency: number; /** * Algorithm used to checksum chunks, always sha1 */ hashAlgorithm: string; /** * Compression formats the server accepts for chunks, such as gzip and zstd. Empty when compression is off */ compression: Array; /** * Kinds of files the server can assemble from chunks, such as debug_files or artifact_bundles */ accept: Array; }; }; export type GetOrganizationChunkUploadOptionsResponse = GetOrganizationChunkUploadOptionsResponses[keyof GetOrganizationChunkUploadOptionsResponses]; export type UploadOrganizationChunksData = { body: { /** * The chunks to upload. Name each part after the SHA-1 checksum of its uncompressed content. Repeat the field for each chunk, up to `chunksPerRequest` per request. */ file: Array; }; path: { /** * The ID or slug of the organization the resource belongs to. */ organization_id_or_slug: string; }; query?: never; url: '/organizations/{organization_id_or_slug}/chunk-upload/'; }; export type UploadOrganizationChunksErrors = { /** * Bad Request */ 400: unknown; /** * Unauthorized */ 401: unknown; /** * Forbidden */ 403: unknown; /** * Not Found */ 404: unknown; }; export type UploadOrganizationChunksResponses = { /** * Success */ 200: unknown; }; export type ListOrganizationCodeMappingsData = { body?: never; path: { /** * The ID or slug of the organization the resource belongs to. */ organization_id_or_slug: string; }; query?: { /** * Filter mappings to a specific installed integration. */ integrationId?: string; /** * Filter by project ID or slug. Pass `-1` to include all projects the user can access. When omitted, mappings include all projects the user can access. */ project?: Array; /** * A pointer to the last object fetched and its sort order; used to retrieve the next or previous results. */ cursor?: string; /** * The maximum number of mappings to return per page. */ per_page?: number; }; url: '/organizations/{organization_id_or_slug}/code-mappings/'; }; export type ListOrganizationCodeMappingsErrors = { /** * Unauthorized */ 401: unknown; /** * Forbidden */ 403: unknown; /** * Not Found */ 404: unknown; }; export type ListOrganizationCodeMappingsResponses = { 200: Array<{ /** * ID of the code mapping */ id: string; /** * ID of the project */ projectId: string; /** * Slug of the project */ projectSlug: string; /** * ID of the repository */ repoId: string; /** * Name of the repository */ repoName: string; /** * ID of the repository's integration */ integrationId: string | null; /** * Provider of the repository's integration */ provider: { /** * Key of the integration provider, such as github */ key: string; /** * Slug of the integration provider, same as key */ slug: string; /** * Display name of the integration provider */ name: string; /** * Whether the integration can be installed from Sentry */ canAdd: boolean; /** * Whether the integration must be uninstalled from the provider instead of in Sentry */ canDisable: boolean; /** * Features the integration provider supports, such as issue-basic or commits */ features: Array; /** * Extra provider details shown during setup, such as alerts and configuration instructions */ aspects: { /** * Alerts shown during setup */ alerts?: Array<{ /** * Style of the alert, such as warning */ type: string; /** * Icon shown with the alert, such as icon-warning-sm */ icon: string; /** * Text of the alert, in Markdown */ text: string; }>; /** * Configuration step after install */ configure_integration?: { /** * Title of the configuration step */ title: string; }; /** * Whether the integration is enabled without an install flow */ directEnable?: boolean; /** * Dialog shown before the integration is disabled */ disable_dialog?: { /** * Label of the dialog's confirm button */ actionText: string; /** * Text of the dialog */ body: string; }; /** * Where to install the integration when it's installed outside Sentry */ externalInstall?: { /** * URL to install the integration from, such as a marketplace */ url: string; /** * Label of the install button */ buttonText: string; /** * Notice shown before the user leaves Sentry */ noticeText: string; }; /** * Dialog shown before the integration is removed */ removal_dialog?: { /** * Label of the dialog's confirm button */ actionText: string; /** * Text of the dialog */ body: string; }; }; } | null; /** * Stack trace path prefix that the mapping replaces */ stackRoot: string; /** * Repository path prefix that replaces the stack root */ sourceRoot: string; /** * Branch to link source files on */ defaultBranch: string | null; /** * Whether Sentry created the mapping automatically */ automaticallyGenerated: boolean; /** * Whether the mapping has a CODEOWNERS file linked */ hasCodeOwner: boolean; }>; }; export type ListOrganizationCodeMappingsResponse2 = ListOrganizationCodeMappingsResponses[keyof ListOrganizationCodeMappingsResponses]; export type CreateOrganizationCodeMappingData = { /** * Allows parameters to be defined in snake case, but passed as camel case. * * Errors are output in camel case. */ body: { /** * The ID of a repository belonging to the installed integration. */ repository_id: number; /** * The ID of the project to associate with the code mapping. */ project_id: number; /** * The path prefix to replace in stack trace filenames. */ stack_root: string; /** * The repository path prefix to substitute for the stack trace prefix. */ source_root: string; /** * The ID of the installed integration that provides the repository. */ integration_id: number; /** * The default branch to use when resolving source files. May be empty for Perforce. */ default_branch?: string; }; path: { /** * The ID or slug of the organization the resource belongs to. */ organization_id_or_slug: string; }; query?: never; url: '/organizations/{organization_id_or_slug}/code-mappings/'; }; export type CreateOrganizationCodeMappingErrors = { /** * Bad Request */ 400: unknown; /** * Unauthorized */ 401: unknown; /** * Forbidden */ 403: unknown; /** * Not Found */ 404: unknown; }; export type CreateOrganizationCodeMappingResponses = { 201: { /** * ID of the code mapping */ id: string; /** * ID of the project */ projectId: string; /** * Slug of the project */ projectSlug: string; /** * ID of the repository */ repoId: string; /** * Name of the repository */ repoName: string; /** * ID of the repository's integration */ integrationId: string | null; /** * Provider of the repository's integration */ provider: { /** * Key of the integration provider, such as github */ key: string; /** * Slug of the integration provider, same as key */ slug: string; /** * Display name of the integration provider */ name: string; /** * Whether the integration can be installed from Sentry */ canAdd: boolean; /** * Whether the integration must be uninstalled from the provider instead of in Sentry */ canDisable: boolean; /** * Features the integration provider supports, such as issue-basic or commits */ features: Array; /** * Extra provider details shown during setup, such as alerts and configuration instructions */ aspects: { /** * Alerts shown during setup */ alerts?: Array<{ /** * Style of the alert, such as warning */ type: string; /** * Icon shown with the alert, such as icon-warning-sm */ icon: string; /** * Text of the alert, in Markdown */ text: string; }>; /** * Configuration step after install */ configure_integration?: { /** * Title of the configuration step */ title: string; }; /** * Whether the integration is enabled without an install flow */ directEnable?: boolean; /** * Dialog shown before the integration is disabled */ disable_dialog?: { /** * Label of the dialog's confirm button */ actionText: string; /** * Text of the dialog */ body: string; }; /** * Where to install the integration when it's installed outside Sentry */ externalInstall?: { /** * URL to install the integration from, such as a marketplace */ url: string; /** * Label of the install button */ buttonText: string; /** * Notice shown before the user leaves Sentry */ noticeText: string; }; /** * Dialog shown before the integration is removed */ removal_dialog?: { /** * Label of the dialog's confirm button */ actionText: string; /** * Text of the dialog */ body: string; }; }; } | null; /** * Stack trace path prefix that the mapping replaces */ stackRoot: string; /** * Repository path prefix that replaces the stack root */ sourceRoot: string; /** * Branch to link source files on */ defaultBranch: string | null; /** * Whether Sentry created the mapping automatically */ automaticallyGenerated: boolean; /** * Whether the mapping has a CODEOWNERS file linked */ hasCodeOwner: boolean; }; }; export type CreateOrganizationCodeMappingResponse = CreateOrganizationCodeMappingResponses[keyof CreateOrganizationCodeMappingResponses]; export type DeleteOrganizationCodeMappingData = { body?: never; path: { /** * The ID or slug of the organization the resource belongs to. */ organization_id_or_slug: string; /** * The ID of the code mapping to delete. */ config_id: number; }; query?: never; url: '/organizations/{organization_id_or_slug}/code-mappings/{config_id}/'; }; export type DeleteOrganizationCodeMappingErrors = { /** * Unauthorized */ 401: unknown; /** * Forbidden */ 403: unknown; /** * Not Found */ 404: unknown; /** * Conflict */ 409: unknown; }; export type DeleteOrganizationCodeMappingResponses = { /** * No Content */ 204: void; }; export type DeleteOrganizationCodeMappingResponse = DeleteOrganizationCodeMappingResponses[keyof DeleteOrganizationCodeMappingResponses]; export type UpdateOrganizationCodeMappingData = { /** * Allows parameters to be defined in snake case, but passed as camel case. * * Errors are output in camel case. */ body: { /** * The ID of a repository belonging to the installed integration. */ repository_id: number; /** * The ID of the project to associate with the code mapping. */ project_id: number; /** * The path prefix to replace in stack trace filenames. */ stack_root: string; /** * The repository path prefix to substitute for the stack trace prefix. */ source_root: string; /** * The default branch to use when resolving source files. May be empty for Perforce. */ default_branch?: string; }; path: { /** * The ID or slug of the organization the resource belongs to. */ organization_id_or_slug: string; /** * The ID of the code mapping to update. */ config_id: number; }; query?: never; url: '/organizations/{organization_id_or_slug}/code-mappings/{config_id}/'; }; export type UpdateOrganizationCodeMappingErrors = { /** * Bad Request */ 400: unknown; /** * Unauthorized */ 401: unknown; /** * Forbidden */ 403: unknown; /** * Not Found */ 404: unknown; }; export type UpdateOrganizationCodeMappingResponses = { 200: { /** * ID of the code mapping */ id: string; /** * ID of the project */ projectId: string; /** * Slug of the project */ projectSlug: string; /** * ID of the repository */ repoId: string; /** * Name of the repository */ repoName: string; /** * ID of the repository's integration */ integrationId: string | null; /** * Provider of the repository's integration */ provider: { /** * Key of the integration provider, such as github */ key: string; /** * Slug of the integration provider, same as key */ slug: string; /** * Display name of the integration provider */ name: string; /** * Whether the integration can be installed from Sentry */ canAdd: boolean; /** * Whether the integration must be uninstalled from the provider instead of in Sentry */ canDisable: boolean; /** * Features the integration provider supports, such as issue-basic or commits */ features: Array; /** * Extra provider details shown during setup, such as alerts and configuration instructions */ aspects: { /** * Alerts shown during setup */ alerts?: Array<{ /** * Style of the alert, such as warning */ type: string; /** * Icon shown with the alert, such as icon-warning-sm */ icon: string; /** * Text of the alert, in Markdown */ text: string; }>; /** * Configuration step after install */ configure_integration?: { /** * Title of the configuration step */ title: string; }; /** * Whether the integration is enabled without an install flow */ directEnable?: boolean; /** * Dialog shown before the integration is disabled */ disable_dialog?: { /** * Label of the dialog's confirm button */ actionText: string; /** * Text of the dialog */ body: string; }; /** * Where to install the integration when it's installed outside Sentry */ externalInstall?: { /** * URL to install the integration from, such as a marketplace */ url: string; /** * Label of the install button */ buttonText: string; /** * Notice shown before the user leaves Sentry */ noticeText: string; }; /** * Dialog shown before the integration is removed */ removal_dialog?: { /** * Label of the dialog's confirm button */ actionText: string; /** * Text of the dialog */ body: string; }; }; } | null; /** * Stack trace path prefix that the mapping replaces */ stackRoot: string; /** * Repository path prefix that replaces the stack root */ sourceRoot: string; /** * Branch to link source files on */ defaultBranch: string | null; /** * Whether Sentry created the mapping automatically */ automaticallyGenerated: boolean; /** * Whether the mapping has a CODEOWNERS file linked */ hasCodeOwner: boolean; }; }; export type UpdateOrganizationCodeMappingResponse = UpdateOrganizationCodeMappingResponses[keyof UpdateOrganizationCodeMappingResponses]; export type BulkUpsertOrganizationCodeMappingsData = { /** * Allows parameters to be defined in snake case, but passed as camel case. * * Errors are output in camel case. */ body: { /** * The ID or slug of the project to configure. */ project: number | string; /** * The repository name as it appears in Sentry. */ repository: string; /** * One or more stack-root and source-root mappings (maximum 300). */ mappings: Array<{ /** * The path prefix to strip from matching stack frame filenames before adding sourceRoot. */ stack_root: string; /** * The repository path prefix that replaces stackRoot. For example, /app/pkg/file.py with stackRoot=/app/ and sourceRoot=src/ resolves to src/pkg/file.py. */ source_root: string; }>; /** * Optional repository provider used to disambiguate or find the repository. If no matching Sentry repository exists, the repository is created after the provider confirms it exists. */ provider?: string | null; /** * The repository branch to use; inferred from the integration when omitted. */ default_branch?: string; }; path: { /** * The ID or slug of the organization the resource belongs to. */ organization_id_or_slug: string; }; query?: never; url: '/organizations/{organization_id_or_slug}/code-mappings/bulk/'; }; export type BulkUpsertOrganizationCodeMappingsErrors = { /** * Bad Request */ 400: unknown; /** * Unauthorized */ 401: unknown; /** * Forbidden */ 403: unknown; /** * Not Found */ 404: unknown; /** * Conflict */ 409: unknown; }; export type BulkUpsertOrganizationCodeMappingsResponses = { 200: { /** * Number of mappings created */ created: number; /** * Number of existing mappings updated */ updated: number; /** * Number of mappings that failed */ errors: number; /** * Result for each requested mapping, in request order */ mappings: Array<{ /** * Stack trace path prefix of the mapping */ stackRoot: string; /** * Repository path prefix of the mapping */ sourceRoot: string; /** * Whether the mapping was created, updated or failed */ status: 'created' | 'updated' | 'error'; /** * Why the mapping failed. Only set when status is error */ detail?: string; }>; }; /** * One or more mappings could not be saved. */ 207: { /** * Number of mappings created */ created: number; /** * Number of existing mappings updated */ updated: number; /** * Number of mappings that failed */ errors: number; /** * Result for each requested mapping, in request order */ mappings: Array<{ /** * Stack trace path prefix of the mapping */ stackRoot: string; /** * Repository path prefix of the mapping */ sourceRoot: string; /** * Whether the mapping was created, updated or failed */ status: 'created' | 'updated' | 'error'; /** * Why the mapping failed. Only set when status is error */ detail?: string; }>; }; }; export type BulkUpsertOrganizationCodeMappingsResponse = BulkUpsertOrganizationCodeMappingsResponses[keyof BulkUpsertOrganizationCodeMappingsResponses]; export type ListOrganizationCodeownersAssociationsData = { body?: never; path: { /** * The ID or slug of the organization the resource belongs to. */ organization_id_or_slug: string; }; query?: { /** * Filter by project ID or slug. Specify multiple values to include multiple projects. Use `-1` to include all accessible projects. */ project?: Array; /** * Filter associations by integration provider. */ provider?: string; }; url: '/organizations/{organization_id_or_slug}/codeowners-associations/'; }; export type ListOrganizationCodeownersAssociationsErrors = { /** * Unauthorized */ 401: unknown; /** * Forbidden */ 403: unknown; /** * Not Found */ 404: unknown; }; export type ListOrganizationCodeownersAssociationsResponses = { 200: { [key: string]: { /** * Sentry user or team for each owner in the CODEOWNERS file, keyed by the owner's name in the file */ associations: { [key: string]: string; }; /** * Owners in the CODEOWNERS file that couldn't be associated, by reason */ errors: { /** * Email owners in the CODEOWNERS file with no matching Sentry user */ missing_user_emails: Array; /** * User owners in the CODEOWNERS file with no external user mapping */ missing_external_users: Array; /** * Team owners in the CODEOWNERS file with no external team mapping */ missing_external_teams: Array; /** * Teams in the CODEOWNERS file that don't have access to the project */ teams_without_access: Array; /** * Users in the CODEOWNERS file who aren't members of a team with access to the project */ users_without_access: Array; }; }; }; }; export type ListOrganizationCodeownersAssociationsResponse = ListOrganizationCodeownersAssociationsResponses[keyof ListOrganizationCodeownersAssociationsResponses]; export type GetOrganizationConfigIntegrationsData = { body?: never; path: { /** * The ID or slug of the organization the resource belongs to. */ organization_id_or_slug: string; }; query?: { /** * Specific integration provider to filter by such as `slack`. See our [Integrations Documentation](/product/integrations/) for an updated list of providers. */ providerKey?: string; }; url: '/organizations/{organization_id_or_slug}/config/integrations/'; }; export type GetOrganizationConfigIntegrationsErrors = { /** * Bad Request */ 404: unknown; }; export type GetOrganizationConfigIntegrationsResponses = { 200: { /** * Integration providers available to the organization */ providers: Array<{ /** * Key of the integration provider, such as github */ key: string; /** * Slug of the integration provider, same as key */ slug: string; /** * Display name of the integration provider */ name: string; /** * Provider metadata, such as description, author, source URL and setup details */ metadata: { /** * Description of the integration, in Markdown */ description: string; /** * Features the integration provides */ features: Array<{ /** * Description of the feature, in Markdown */ description: string; /** * Organization feature flag that gates the feature, such as integrations-commits */ featureGate: string | null; }>; /** * Author of the integration */ author: string; /** * Noun for one installation, such as Installation or Account */ noun: string; /** * URL to report problems with the integration */ issue_url: string; /** * URL of the integration's source or docs */ source_url: string; /** * Extra provider details shown during setup, such as alerts and configuration instructions */ aspects: { /** * Alerts shown during setup */ alerts?: Array<{ /** * Style of the alert, such as warning */ type: string; /** * Icon shown with the alert, such as icon-warning-sm */ icon: string; /** * Text of the alert, in Markdown */ text: string; }>; /** * Configuration step after install */ configure_integration?: { /** * Title of the configuration step */ title: string; }; /** * Whether the integration is enabled without an install flow */ directEnable?: boolean; /** * Dialog shown before the integration is disabled */ disable_dialog?: { /** * Label of the dialog's confirm button */ actionText: string; /** * Text of the dialog */ body: string; }; /** * Where to install the integration when it's installed outside Sentry */ externalInstall?: { /** * URL to install the integration from, such as a marketplace */ url: string; /** * Label of the install button */ buttonText: string; /** * Notice shown before the user leaves Sentry */ noticeText: string; }; /** * Dialog shown before the integration is removed */ removal_dialog?: { /** * Label of the dialog's confirm button */ actionText: string; /** * Text of the dialog */ body: string; }; }; } | null; /** * Whether the integration can be installed from Sentry */ canAdd: boolean; /** * Whether the integration must be uninstalled from the provider instead of in Sentry */ canDisable: boolean; /** * Features the integration provider supports, such as issue-basic or commits */ features: Array; }>; }; }; export type GetOrganizationConfigIntegrationsResponse = GetOrganizationConfigIntegrationsResponses[keyof GetOrganizationConfigIntegrationsResponses]; export type ListOrganizationDashboardsData = { body?: never; path: { /** * The ID or slug of the organization the resource belongs to. */ organization_id_or_slug: string; }; query?: { /** * Filter the dashboards returned. Repeat this parameter to apply multiple filters. */ filter?: Array<'excludeFavorites' | 'excludePrebuilt' | 'onlyFavorites' | 'onlyPrebuilt' | 'owned' | 'shared' | 'showHidden'>; /** * Filter dashboards by title. */ query?: string; /** * The property to sort results by. Prefix the value with `-` to sort in descending order. * * Available fields are: * - `title` * - `dateCreated` * - `mostPopular` * - `recentlyViewed` * - `mydashboards` * - `myDashboardsAndRecentlyViewed` * */ sort?: string; /** * Pin favorited dashboards to the top of the results. */ pin?: 'favorites'; /** * Limit the number of rows to return in the result. Default and maximum allowed is 100. */ per_page?: number; /** * A pointer to the last object fetched and its sort order; used to retrieve the next or previous results. */ cursor?: string; }; url: '/organizations/{organization_id_or_slug}/dashboards/'; }; export type ListOrganizationDashboardsErrors = { /** * Bad Request */ 400: unknown; /** * Unauthorized */ 401: unknown; /** * Forbidden */ 403: unknown; /** * Not Found */ 404: unknown; }; export type ListOrganizationDashboardsResponses = { 200: Array<{ /** * ID of the dashboard */ id: string; /** * Title of the dashboard */ title: string; /** * When the dashboard was created (ISO 8601) */ dateCreated: string; /** * User who created the dashboard */ createdBy: { /** * SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access */ identities?: Array<{ /** * SSO identity ID */ id: string; /** * User's identifier at the auth provider */ name: string; /** * Organization the auth provider belongs to */ organization: { /** * Organization slug */ slug: string; /** * Organization name */ name: string; }; /** * Auth provider of the identity */ provider: { /** * Auth provider key, such as google or saml2 */ id: string; /** * Display name of the auth provider */ name: string; }; /** * When the identity was last verified by signing in through the auth provider */ dateVerified: string; /** * When the identity was last synced from the auth provider */ dateSynced: string; }>; /** * User avatar */ avatar?: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Two-factor authenticators of the user, without backup methods such as recovery codes */ authenticators?: Array<{ /** * Authenticator ID */ id: string; /** * Authenticator type, such as totp, sms, u2f or recovery */ type: string; /** * Display name of the authenticator type */ name: string; /** * When the authenticator was added */ dateCreated: string; /** * When the authenticator was last used, or null */ dateUsed: string | null; }>; /** * Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization */ canReset2fa?: boolean; /** * User ID */ id: string; /** * Display name: the user's name, or their email or username if no name is set */ name: string; /** * Username */ username: string; /** * Primary email address */ email: string; /** * Gravatar URL for the primary email address */ avatarUrl: string; /** * Whether the account is active */ isActive: boolean; /** * Whether the account is suspended. Suspended users can't sign in */ isSuspended: boolean; /** * Whether the user has a password set */ hasPasswordAuth: boolean; /** * Whether the account is managed, which stops the user from changing their username, password and similar details */ isManaged: boolean; /** * When the account was created */ dateJoined: string; /** * When the user last signed in, or null */ lastLogin: string | null; /** * Whether the user has two-factor authentication enabled */ has2fa: boolean; /** * When the user was last active, or null */ lastActive: string | null; /** * Whether the user is a superuser */ isSuperuser: boolean; /** * Whether the user has staff status */ isStaff: boolean; /** * Deprecated. Always an empty object */ experiments: { [key: string]: string; }; /** * Email addresses of the user. Only included for the requesting user or superusers; empty otherwise */ emails: Array<{ /** * Email ID */ id: string; /** * Email address */ email: string; /** * Whether the email address is verified */ is_verified: boolean; }>; } | null; /** * Saved environment filter for the dashboard */ environment: Array; /** * Saved release and global filters for the dashboard */ filters: { /** * Saved release filter */ release?: Array; /** * Saved release ID filter */ releaseId?: Array; /** * Saved global filters applied to every widget */ globalFilter?: Array<{ /** * Widget dataset the filter applies to, such as error-events, transaction-like, spans or logs */ dataset: string; /** * Tag or attribute being filtered */ tag: { /** * Key of the tag or attribute the filter applies to */ key: string; /** * Display name of the tag or attribute */ name: string; /** * Kind of the field, such as tag, measurement or field */ kind?: string; }; /** * Filter condition in search syntax, such as browser.name:[Chrome] */ value: string; /** * Whether the filter comes from a link and isn't saved by the user */ isTemporary?: boolean; }>; }; /** * When the dashboard was last visited (ISO 8601) */ lastVisited: string | null; /** * Display type of each widget, in order */ widgetDisplay: Array; /** * Display type and layout of each widget, for rendering a preview */ widgetPreview: Array<{ [key: string]: string | null; }>; /** * Edit permissions for the dashboard */ permissions: { /** * Whether everyone in the organization can edit the dashboard */ isEditableByEveryone: boolean; /** * IDs of the teams that can edit the dashboard */ teamsWithEditAccess: Array; } | null; /** * Whether the requesting user favorited the dashboard */ isFavorited: boolean; /** * Saved project filter for the dashboard. [-1] means all projects */ projects: Array; /** * ID of the prebuilt dashboard this dashboard comes from */ prebuiltId: number | null; }>; }; export type ListOrganizationDashboardsResponse = ListOrganizationDashboardsResponses[keyof ListOrganizationDashboardsResponses]; export type CreateOrganizationDashboardData = { /** * Allows parameters to be defined in snake case, but passed as camel case. * * Errors are output in camel case. */ body: { /** * The user defined title for this dashboard. */ title: string; /** * A dashboard's unique id. */ id?: string; /** * A json list of widgets saved in this dashboard. */ widgets?: Array<{ /** * ID of an existing widget. Omit it to create a new widget. */ id?: string; /** * Title of the widget. */ title?: string; /** * Description of the widget. */ description?: string | null; /** * Thresholds that color the widget's values. */ thresholds?: { [key: string]: unknown; } | null; /** * How the widget is displayed, such as line, area, bar, table or big_number. * * * `line` * * `area` * * `bar` * * `table` * * `big_number` * * `details` * * `categorical_bar` * * `wheel` * * `rage_and_dead_clicks` * * `server_tree` * * `text` * * `agents_traces_table` * * `heatmap` */ display_type?: 'line' | 'area' | 'bar' | 'table' | 'big_number' | 'details' | 'categorical_bar' | 'wheel' | 'rage_and_dead_clicks' | 'server_tree' | 'text' | 'agents_traces_table' | 'heatmap'; /** * Time interval for the widget's series, such as 5m. */ interval?: string; /** * Queries that provide the widget's data. */ queries?: Array<{ id?: string; fields?: Array; aggregates?: Array | null; transformations?: { [key: string]: Array; }; columns?: Array | null; field_aliases?: Array | null; name?: string; conditions?: string; orderby?: string; is_hidden?: boolean; /** * Allows parameters to be defined in snake case, but passed as camel case. * * Errors are output in camel case. */ on_demand_extraction?: { extraction_state?: string; enabled?: boolean; }; on_demand_extraction_disabled?: boolean; selected_aggregate?: number | null; linked_dashboards?: Array<{ field: string; dashboard_id: string; }> | null; }>; /** * Dataset the widget queries, such as error-events, spans, logs or issue. * * * `discover` * * `issue` * * `metrics` * * `error-events` * * `transaction-like` * * `spans` * * `logs` * * `tracemetrics` * * `preprod-app-size` */ widget_type?: 'discover' | 'issue' | 'metrics' | 'error-events' | 'transaction-like' | 'spans' | 'logs' | 'tracemetrics' | 'preprod-app-size' | null; /** * Maximum number of series or rows the widget shows. */ limit?: number | null; /** * Widget grid layout position and dimensions for dashboard creation. * * The dashboard uses a 6-column grid. Required keys: x, y, w, h. * Constraints: x (0-5), y (>= 0), w (1-6), h (>= 1), and x + w <= 6. */ layout?: { /** * Column position (0-indexed). */ x: number; /** * Row position (0-indexed). */ y: number; /** * Width in grid columns (1-6). */ w: number; /** * Height in grid rows. */ h: number; } | null; /** * Y-axis range: auto or dataMin. * * * `auto` * * `dataMin` */ axis_range?: 'auto' | 'dataMin' | null; /** * Legend style: default or breakdown. * * * `default` * * `breakdown` */ legend_type?: 'default' | 'breakdown' | null; }>; /** * The saved projects filter for this dashboard. */ projects?: Array; /** * The saved environment filter for this dashboard. */ environment?: Array | null; /** * The saved time range period for this dashboard. */ period?: string | null; /** * The saved start time for this dashboard. */ start?: string | null; /** * The saved end time for this dashboard. */ end?: string | null; /** * The saved filters for this dashboard. */ filters?: { [key: string]: unknown; }; /** * Setting that lets you display saved time range for this dashboard in UTC. */ utc?: boolean; /** * Permissions that restrict users from editing dashboards */ permissions?: { /** * Whether the dashboard is editable by everyone. */ is_editable_by_everyone: boolean; /** * List of team IDs that have edit access to a dashboard. */ teams_with_edit_access?: Array; } | null; /** * The query priority * * * `normal` * * `faster` */ query_priority?: 'normal' | 'faster' | null; /** * Favorite the dashboard automatically for the request user */ is_favorited?: boolean; }; path: { /** * The ID or slug of the organization the resource belongs to. */ organization_id_or_slug: string; }; query?: never; url: '/organizations/{organization_id_or_slug}/dashboards/'; }; export type CreateOrganizationDashboardErrors = { /** * Bad Request */ 400: unknown; /** * Unauthorized */ 401: unknown; /** * Forbidden */ 403: unknown; /** * Not Found */ 404: unknown; /** * Conflict */ 409: unknown; }; export type CreateOrganizationDashboardResponses = { 201: { /** * Saved environment filter for the dashboard */ environment?: Array; /** * Saved relative time range, such as 24h */ period?: string; /** * Whether the saved time range is shown in UTC */ utc?: string; /** * Whether the saved start time was outside data retention and was moved forward */ expired?: boolean; /** * Saved start of the time range (ISO 8601) */ start?: string; /** * Saved end of the time range (ISO 8601) */ end?: string; /** * ID of the dashboard */ id: string; /** * Title of the dashboard */ title: string; /** * When the dashboard was created (ISO 8601) */ dateCreated: string; /** * User who created the dashboard */ createdBy: { /** * SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access */ identities?: Array<{ /** * SSO identity ID */ id: string; /** * User's identifier at the auth provider */ name: string; /** * Organization the auth provider belongs to */ organization: { /** * Organization slug */ slug: string; /** * Organization name */ name: string; }; /** * Auth provider of the identity */ provider: { /** * Auth provider key, such as google or saml2 */ id: string; /** * Display name of the auth provider */ name: string; }; /** * When the identity was last verified by signing in through the auth provider */ dateVerified: string; /** * When the identity was last synced from the auth provider */ dateSynced: string; }>; /** * User avatar */ avatar?: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Two-factor authenticators of the user, without backup methods such as recovery codes */ authenticators?: Array<{ /** * Authenticator ID */ id: string; /** * Authenticator type, such as totp, sms, u2f or recovery */ type: string; /** * Display name of the authenticator type */ name: string; /** * When the authenticator was added */ dateCreated: string; /** * When the authenticator was last used, or null */ dateUsed: string | null; }>; /** * Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization */ canReset2fa?: boolean; /** * User ID */ id: string; /** * Display name: the user's name, or their email or username if no name is set */ name: string; /** * Username */ username: string; /** * Primary email address */ email: string; /** * Gravatar URL for the primary email address */ avatarUrl: string; /** * Whether the account is active */ isActive: boolean; /** * Whether the account is suspended. Suspended users can't sign in */ isSuspended: boolean; /** * Whether the user has a password set */ hasPasswordAuth: boolean; /** * Whether the account is managed, which stops the user from changing their username, password and similar details */ isManaged: boolean; /** * When the account was created */ dateJoined: string; /** * When the user last signed in, or null */ lastLogin: string | null; /** * Whether the user has two-factor authentication enabled */ has2fa: boolean; /** * When the user was last active, or null */ lastActive: string | null; /** * Whether the user is a superuser */ isSuperuser: boolean; /** * Whether the user has staff status */ isStaff: boolean; /** * Deprecated. Always an empty object */ experiments: { [key: string]: string; }; /** * Email addresses of the user. Only included for the requesting user or superusers; empty otherwise */ emails: Array<{ /** * Email ID */ id: string; /** * Email address */ email: string; /** * Whether the email address is verified */ is_verified: boolean; }>; } | null; /** * Widgets on the dashboard */ widgets: Array<{ /** * ID of the widget */ id: string; /** * Title of the widget */ title: string; /** * Description of the widget */ description: string | null; /** * How the widget is displayed, such as line, area, bar, table or big_number */ displayType: string | null; /** * Thresholds that color the widget's values */ thresholds: { /** * Whether higher (+) or lower (-) values are better. Empty when unset */ preferredPolarity?: string; /** * Time window the thresholds apply to, as a stats period such as 5m, 1h or 1d */ timeWindow?: string; /** * Threshold maximums, keyed max1 and max2 */ max_values: { [key: string]: number; }; /** * Unit of the threshold values */ unit: string; } | null; /** * Time interval for the widget's series, such as 5m */ interval: string; /** * When the widget was created (ISO 8601) */ dateCreated: string; /** * ID of the dashboard the widget belongs to */ dashboardId: string; /** * Queries that provide the widget's data */ queries: Array<{ /** * ID of the widget query */ id: string; /** * Name of the query, used as the series name */ name: string; /** * Fields the query selects */ fields: Array; /** * Aggregate functions the query computes */ aggregates: Array; /** * Transformations applied to aggregates, keyed by the aggregate's index */ transformations: { [key: string]: Array; }; /** * Columns the query groups by */ columns: Array; /** * Aliases shown in place of field names in table headers */ fieldAliases: Array; /** * Search query that filters the data */ conditions: string; /** * Field the results are sorted by */ orderby: string; /** * ID of the widget the query belongs to */ widgetId: string; /** * On-demand metric extraction settings for the query */ onDemand: Array<{ /** * Whether on-demand metric extraction is enabled for the query */ enabled: boolean; /** * On-demand extraction state, such as enabled:enrolled or disabled:high-cardinality */ extractionState: string; /** * ID of the widget query */ dashboardWidgetQueryId: number; }>; /** * Whether the query is hidden from the UI */ isHidden: boolean; /** * Index of the aggregate shown by Big Number widgets */ selectedAggregate: number | null; /** * Dashboards linked from fields in the query's results */ linkedDashboards: Array<{ /** * Field that links to the dashboard */ field: string; /** * ID of the linked dashboard */ dashboardId: number; }>; }>; /** * Maximum number of series or rows the widget shows */ limit: number | null; /** * Dataset the widget queries, such as error-events, spans, logs or issue */ widgetType: string | null; /** * Position and size of the widget on the dashboard grid */ layout: { [key: string]: number; } | null; /** * Y-axis range: auto or dataMin */ axisRange: string | null; /** * Legend style: default or breakdown */ legendType: 'default' | 'breakdown' | null; /** * Whether the widget's dataset was chosen by the user or inferred */ datasetSource: string | null; /** * Explore URLs for each query, for widgets that query transactions */ exploreUrls?: Array | null; /** * Parts of each query that were dropped when the widget was migrated from transactions to spans */ changedReason: Array<{ /** * Sort orders that were dropped when the widget was migrated from transactions to spans */ orderby: Array<{ [key: string]: string; }> | null; /** * Equations that were dropped when the widget was migrated from transactions to spans */ equations: Array<{ [key: string]: string | Array; }> | null; /** * Columns that were dropped when the widget was migrated from transactions to spans */ selected_columns: Array; }> | null; }>; /** * Saved project filter for the dashboard. [-1] means all projects */ projects: Array; /** * Saved release and global filters for the dashboard */ filters: { /** * Saved release filter */ release?: Array; /** * Saved release ID filter */ releaseId?: Array; /** * Saved global filters applied to every widget */ globalFilter?: Array<{ /** * Widget dataset the filter applies to, such as error-events, transaction-like, spans or logs */ dataset: string; /** * Tag or attribute being filtered */ tag: { /** * Key of the tag or attribute the filter applies to */ key: string; /** * Display name of the tag or attribute */ name: string; /** * Kind of the field, such as tag, measurement or field */ kind?: string; }; /** * Filter condition in search syntax, such as browser.name:[Chrome] */ value: string; /** * Whether the filter comes from a link and isn't saved by the user */ isTemporary?: boolean; }>; }; /** * Edit permissions for the dashboard */ permissions: { /** * Whether everyone in the organization can edit the dashboard */ isEditableByEveryone: boolean; /** * IDs of the teams that can edit the dashboard */ teamsWithEditAccess: Array; } | null; /** * Whether the requesting user favorited the dashboard */ isFavorited: boolean; /** * ID of the prebuilt dashboard this dashboard comes from */ prebuiltId: number | null; /** * Query priority for the dashboard: normal or faster */ queryPriority: string; }; }; export type CreateOrganizationDashboardResponse = CreateOrganizationDashboardResponses[keyof CreateOrganizationDashboardResponses]; export type DeleteOrganizationDashboardData = { body?: never; path: { /** * The ID or slug of the organization the resource belongs to. */ organization_id_or_slug: string; /** * The ID of the dashboard you'd like to retrieve. */ dashboard_id: number; }; query?: never; url: '/organizations/{organization_id_or_slug}/dashboards/{dashboard_id}/'; }; export type DeleteOrganizationDashboardErrors = { /** * Forbidden */ 403: unknown; /** * Not Found */ 404: unknown; }; export type DeleteOrganizationDashboardResponses = { /** * No Content */ 204: void; }; export type DeleteOrganizationDashboardResponse = DeleteOrganizationDashboardResponses[keyof DeleteOrganizationDashboardResponses]; export type GetOrganizationDashboardData = { body?: never; path: { /** * The ID or slug of the organization the resource belongs to. */ organization_id_or_slug: string; /** * The ID of the dashboard you'd like to retrieve. */ dashboard_id: number; }; query?: never; url: '/organizations/{organization_id_or_slug}/dashboards/{dashboard_id}/'; }; export type GetOrganizationDashboardErrors = { /** * Forbidden */ 403: unknown; /** * Not Found */ 404: unknown; }; export type GetOrganizationDashboardResponses = { 200: { /** * Saved environment filter for the dashboard */ environment?: Array; /** * Saved relative time range, such as 24h */ period?: string; /** * Whether the saved time range is shown in UTC */ utc?: string; /** * Whether the saved start time was outside data retention and was moved forward */ expired?: boolean; /** * Saved start of the time range (ISO 8601) */ start?: string; /** * Saved end of the time range (ISO 8601) */ end?: string; /** * ID of the dashboard */ id: string; /** * Title of the dashboard */ title: string; /** * When the dashboard was created (ISO 8601) */ dateCreated: string; /** * User who created the dashboard */ createdBy: { /** * SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access */ identities?: Array<{ /** * SSO identity ID */ id: string; /** * User's identifier at the auth provider */ name: string; /** * Organization the auth provider belongs to */ organization: { /** * Organization slug */ slug: string; /** * Organization name */ name: string; }; /** * Auth provider of the identity */ provider: { /** * Auth provider key, such as google or saml2 */ id: string; /** * Display name of the auth provider */ name: string; }; /** * When the identity was last verified by signing in through the auth provider */ dateVerified: string; /** * When the identity was last synced from the auth provider */ dateSynced: string; }>; /** * User avatar */ avatar?: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Two-factor authenticators of the user, without backup methods such as recovery codes */ authenticators?: Array<{ /** * Authenticator ID */ id: string; /** * Authenticator type, such as totp, sms, u2f or recovery */ type: string; /** * Display name of the authenticator type */ name: string; /** * When the authenticator was added */ dateCreated: string; /** * When the authenticator was last used, or null */ dateUsed: string | null; }>; /** * Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization */ canReset2fa?: boolean; /** * User ID */ id: string; /** * Display name: the user's name, or their email or username if no name is set */ name: string; /** * Username */ username: string; /** * Primary email address */ email: string; /** * Gravatar URL for the primary email address */ avatarUrl: string; /** * Whether the account is active */ isActive: boolean; /** * Whether the account is suspended. Suspended users can't sign in */ isSuspended: boolean; /** * Whether the user has a password set */ hasPasswordAuth: boolean; /** * Whether the account is managed, which stops the user from changing their username, password and similar details */ isManaged: boolean; /** * When the account was created */ dateJoined: string; /** * When the user last signed in, or null */ lastLogin: string | null; /** * Whether the user has two-factor authentication enabled */ has2fa: boolean; /** * When the user was last active, or null */ lastActive: string | null; /** * Whether the user is a superuser */ isSuperuser: boolean; /** * Whether the user has staff status */ isStaff: boolean; /** * Deprecated. Always an empty object */ experiments: { [key: string]: string; }; /** * Email addresses of the user. Only included for the requesting user or superusers; empty otherwise */ emails: Array<{ /** * Email ID */ id: string; /** * Email address */ email: string; /** * Whether the email address is verified */ is_verified: boolean; }>; } | null; /** * Widgets on the dashboard */ widgets: Array<{ /** * ID of the widget */ id: string; /** * Title of the widget */ title: string; /** * Description of the widget */ description: string | null; /** * How the widget is displayed, such as line, area, bar, table or big_number */ displayType: string | null; /** * Thresholds that color the widget's values */ thresholds: { /** * Whether higher (+) or lower (-) values are better. Empty when unset */ preferredPolarity?: string; /** * Time window the thresholds apply to, as a stats period such as 5m, 1h or 1d */ timeWindow?: string; /** * Threshold maximums, keyed max1 and max2 */ max_values: { [key: string]: number; }; /** * Unit of the threshold values */ unit: string; } | null; /** * Time interval for the widget's series, such as 5m */ interval: string; /** * When the widget was created (ISO 8601) */ dateCreated: string; /** * ID of the dashboard the widget belongs to */ dashboardId: string; /** * Queries that provide the widget's data */ queries: Array<{ /** * ID of the widget query */ id: string; /** * Name of the query, used as the series name */ name: string; /** * Fields the query selects */ fields: Array; /** * Aggregate functions the query computes */ aggregates: Array; /** * Transformations applied to aggregates, keyed by the aggregate's index */ transformations: { [key: string]: Array; }; /** * Columns the query groups by */ columns: Array; /** * Aliases shown in place of field names in table headers */ fieldAliases: Array; /** * Search query that filters the data */ conditions: string; /** * Field the results are sorted by */ orderby: string; /** * ID of the widget the query belongs to */ widgetId: string; /** * On-demand metric extraction settings for the query */ onDemand: Array<{ /** * Whether on-demand metric extraction is enabled for the query */ enabled: boolean; /** * On-demand extraction state, such as enabled:enrolled or disabled:high-cardinality */ extractionState: string; /** * ID of the widget query */ dashboardWidgetQueryId: number; }>; /** * Whether the query is hidden from the UI */ isHidden: boolean; /** * Index of the aggregate shown by Big Number widgets */ selectedAggregate: number | null; /** * Dashboards linked from fields in the query's results */ linkedDashboards: Array<{ /** * Field that links to the dashboard */ field: string; /** * ID of the linked dashboard */ dashboardId: number; }>; }>; /** * Maximum number of series or rows the widget shows */ limit: number | null; /** * Dataset the widget queries, such as error-events, spans, logs or issue */ widgetType: string | null; /** * Position and size of the widget on the dashboard grid */ layout: { [key: string]: number; } | null; /** * Y-axis range: auto or dataMin */ axisRange: string | null; /** * Legend style: default or breakdown */ legendType: 'default' | 'breakdown' | null; /** * Whether the widget's dataset was chosen by the user or inferred */ datasetSource: string | null; /** * Explore URLs for each query, for widgets that query transactions */ exploreUrls?: Array | null; /** * Parts of each query that were dropped when the widget was migrated from transactions to spans */ changedReason: Array<{ /** * Sort orders that were dropped when the widget was migrated from transactions to spans */ orderby: Array<{ [key: string]: string; }> | null; /** * Equations that were dropped when the widget was migrated from transactions to spans */ equations: Array<{ [key: string]: string | Array; }> | null; /** * Columns that were dropped when the widget was migrated from transactions to spans */ selected_columns: Array; }> | null; }>; /** * Saved project filter for the dashboard. [-1] means all projects */ projects: Array; /** * Saved release and global filters for the dashboard */ filters: { /** * Saved release filter */ release?: Array; /** * Saved release ID filter */ releaseId?: Array; /** * Saved global filters applied to every widget */ globalFilter?: Array<{ /** * Widget dataset the filter applies to, such as error-events, transaction-like, spans or logs */ dataset: string; /** * Tag or attribute being filtered */ tag: { /** * Key of the tag or attribute the filter applies to */ key: string; /** * Display name of the tag or attribute */ name: string; /** * Kind of the field, such as tag, measurement or field */ kind?: string; }; /** * Filter condition in search syntax, such as browser.name:[Chrome] */ value: string; /** * Whether the filter comes from a link and isn't saved by the user */ isTemporary?: boolean; }>; }; /** * Edit permissions for the dashboard */ permissions: { /** * Whether everyone in the organization can edit the dashboard */ isEditableByEveryone: boolean; /** * IDs of the teams that can edit the dashboard */ teamsWithEditAccess: Array; } | null; /** * Whether the requesting user favorited the dashboard */ isFavorited: boolean; /** * ID of the prebuilt dashboard this dashboard comes from */ prebuiltId: number | null; /** * Query priority for the dashboard: normal or faster */ queryPriority: string; }; }; export type GetOrganizationDashboardResponse = GetOrganizationDashboardResponses[keyof GetOrganizationDashboardResponses]; export type UpdateOrganizationDashboardData = { /** * Allows parameters to be defined in snake case, but passed as camel case. * * Errors are output in camel case. */ body?: { /** * A dashboard's unique id. */ id?: string; /** * The user-defined dashboard title. */ title?: string; /** * A json list of widgets saved in this dashboard. */ widgets?: Array<{ /** * ID of an existing widget. Omit it to create a new widget. */ id?: string; /** * Title of the widget. */ title?: string; /** * Description of the widget. */ description?: string | null; /** * Thresholds that color the widget's values. */ thresholds?: { [key: string]: unknown; } | null; /** * How the widget is displayed, such as line, area, bar, table or big_number. * * * `line` * * `area` * * `bar` * * `table` * * `big_number` * * `details` * * `categorical_bar` * * `wheel` * * `rage_and_dead_clicks` * * `server_tree` * * `text` * * `agents_traces_table` * * `heatmap` */ display_type?: 'line' | 'area' | 'bar' | 'table' | 'big_number' | 'details' | 'categorical_bar' | 'wheel' | 'rage_and_dead_clicks' | 'server_tree' | 'text' | 'agents_traces_table' | 'heatmap'; /** * Time interval for the widget's series, such as 5m. */ interval?: string; /** * Queries that provide the widget's data. */ queries?: Array<{ id?: string; fields?: Array; aggregates?: Array | null; transformations?: { [key: string]: Array; }; columns?: Array | null; field_aliases?: Array | null; name?: string; conditions?: string; orderby?: string; is_hidden?: boolean; /** * Allows parameters to be defined in snake case, but passed as camel case. * * Errors are output in camel case. */ on_demand_extraction?: { extraction_state?: string; enabled?: boolean; }; on_demand_extraction_disabled?: boolean; selected_aggregate?: number | null; linked_dashboards?: Array<{ field: string; dashboard_id: string; }> | null; }>; /** * Dataset the widget queries, such as error-events, spans, logs or issue. * * * `discover` * * `issue` * * `metrics` * * `error-events` * * `transaction-like` * * `spans` * * `logs` * * `tracemetrics` * * `preprod-app-size` */ widget_type?: 'discover' | 'issue' | 'metrics' | 'error-events' | 'transaction-like' | 'spans' | 'logs' | 'tracemetrics' | 'preprod-app-size' | null; /** * Maximum number of series or rows the widget shows. */ limit?: number | null; /** * Position and size of the widget on the dashboard grid. */ layout?: { /** * Column position (0-indexed). */ x: number; /** * Row position (0-indexed). */ y: number; /** * Width in grid columns (1-6). */ w: number; /** * Height in grid rows. */ h: number; /** * Minimum height in grid rows. */ min_h: number; } | null; /** * Y-axis range: auto or dataMin. * * * `auto` * * `dataMin` */ axis_range?: 'auto' | 'dataMin' | null; /** * Legend style: default or breakdown. * * * `default` * * `breakdown` */ legend_type?: 'default' | 'breakdown' | null; }>; /** * The saved projects filter for this dashboard. */ projects?: Array; /** * The saved environment filter for this dashboard. */ environment?: Array | null; /** * The saved time range period for this dashboard. */ period?: string | null; /** * The saved start time for this dashboard. */ start?: string | null; /** * The saved end time for this dashboard. */ end?: string | null; /** * The saved filters for this dashboard. */ filters?: { [key: string]: unknown; }; /** * Setting that lets you display saved time range for this dashboard in UTC. */ utc?: boolean; /** * Permissions that restrict users from editing dashboards */ permissions?: { /** * Whether the dashboard is editable by everyone. */ is_editable_by_everyone: boolean; /** * List of team IDs that have edit access to a dashboard. */ teams_with_edit_access?: Array; } | null; /** * The query priority * * * `normal` * * `faster` */ query_priority?: 'normal' | 'faster' | null; }; path: { /** * The ID or slug of the organization the resource belongs to. */ organization_id_or_slug: string; /** * The ID of the dashboard you'd like to retrieve. */ dashboard_id: number; }; query?: never; url: '/organizations/{organization_id_or_slug}/dashboards/{dashboard_id}/'; }; export type UpdateOrganizationDashboardErrors = { /** * Bad Request */ 400: unknown; /** * Forbidden */ 403: unknown; /** * Not Found */ 404: unknown; }; export type UpdateOrganizationDashboardResponses = { 200: { /** * Saved environment filter for the dashboard */ environment?: Array; /** * Saved relative time range, such as 24h */ period?: string; /** * Whether the saved time range is shown in UTC */ utc?: string; /** * Whether the saved start time was outside data retention and was moved forward */ expired?: boolean; /** * Saved start of the time range (ISO 8601) */ start?: string; /** * Saved end of the time range (ISO 8601) */ end?: string; /** * ID of the dashboard */ id: string; /** * Title of the dashboard */ title: string; /** * When the dashboard was created (ISO 8601) */ dateCreated: string; /** * User who created the dashboard */ createdBy: { /** * SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access */ identities?: Array<{ /** * SSO identity ID */ id: string; /** * User's identifier at the auth provider */ name: string; /** * Organization the auth provider belongs to */ organization: { /** * Organization slug */ slug: string; /** * Organization name */ name: string; }; /** * Auth provider of the identity */ provider: { /** * Auth provider key, such as google or saml2 */ id: string; /** * Display name of the auth provider */ name: string; }; /** * When the identity was last verified by signing in through the auth provider */ dateVerified: string; /** * When the identity was last synced from the auth provider */ dateSynced: string; }>; /** * User avatar */ avatar?: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Two-factor authenticators of the user, without backup methods such as recovery codes */ authenticators?: Array<{ /** * Authenticator ID */ id: string; /** * Authenticator type, such as totp, sms, u2f or recovery */ type: string; /** * Display name of the authenticator type */ name: string; /** * When the authenticator was added */ dateCreated: string; /** * When the authenticator was last used, or null */ dateUsed: string | null; }>; /** * Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization */ canReset2fa?: boolean; /** * User ID */ id: string; /** * Display name: the user's name, or their email or username if no name is set */ name: string; /** * Username */ username: string; /** * Primary email address */ email: string; /** * Gravatar URL for the primary email address */ avatarUrl: string; /** * Whether the account is active */ isActive: boolean; /** * Whether the account is suspended. Suspended users can't sign in */ isSuspended: boolean; /** * Whether the user has a password set */ hasPasswordAuth: boolean; /** * Whether the account is managed, which stops the user from changing their username, password and similar details */ isManaged: boolean; /** * When the account was created */ dateJoined: string; /** * When the user last signed in, or null */ lastLogin: string | null; /** * Whether the user has two-factor authentication enabled */ has2fa: boolean; /** * When the user was last active, or null */ lastActive: string | null; /** * Whether the user is a superuser */ isSuperuser: boolean; /** * Whether the user has staff status */ isStaff: boolean; /** * Deprecated. Always an empty object */ experiments: { [key: string]: string; }; /** * Email addresses of the user. Only included for the requesting user or superusers; empty otherwise */ emails: Array<{ /** * Email ID */ id: string; /** * Email address */ email: string; /** * Whether the email address is verified */ is_verified: boolean; }>; } | null; /** * Widgets on the dashboard */ widgets: Array<{ /** * ID of the widget */ id: string; /** * Title of the widget */ title: string; /** * Description of the widget */ description: string | null; /** * How the widget is displayed, such as line, area, bar, table or big_number */ displayType: string | null; /** * Thresholds that color the widget's values */ thresholds: { /** * Whether higher (+) or lower (-) values are better. Empty when unset */ preferredPolarity?: string; /** * Time window the thresholds apply to, as a stats period such as 5m, 1h or 1d */ timeWindow?: string; /** * Threshold maximums, keyed max1 and max2 */ max_values: { [key: string]: number; }; /** * Unit of the threshold values */ unit: string; } | null; /** * Time interval for the widget's series, such as 5m */ interval: string; /** * When the widget was created (ISO 8601) */ dateCreated: string; /** * ID of the dashboard the widget belongs to */ dashboardId: string; /** * Queries that provide the widget's data */ queries: Array<{ /** * ID of the widget query */ id: string; /** * Name of the query, used as the series name */ name: string; /** * Fields the query selects */ fields: Array; /** * Aggregate functions the query computes */ aggregates: Array; /** * Transformations applied to aggregates, keyed by the aggregate's index */ transformations: { [key: string]: Array; }; /** * Columns the query groups by */ columns: Array; /** * Aliases shown in place of field names in table headers */ fieldAliases: Array; /** * Search query that filters the data */ conditions: string; /** * Field the results are sorted by */ orderby: string; /** * ID of the widget the query belongs to */ widgetId: string; /** * On-demand metric extraction settings for the query */ onDemand: Array<{ /** * Whether on-demand metric extraction is enabled for the query */ enabled: boolean; /** * On-demand extraction state, such as enabled:enrolled or disabled:high-cardinality */ extractionState: string; /** * ID of the widget query */ dashboardWidgetQueryId: number; }>; /** * Whether the query is hidden from the UI */ isHidden: boolean; /** * Index of the aggregate shown by Big Number widgets */ selectedAggregate: number | null; /** * Dashboards linked from fields in the query's results */ linkedDashboards: Array<{ /** * Field that links to the dashboard */ field: string; /** * ID of the linked dashboard */ dashboardId: number; }>; }>; /** * Maximum number of series or rows the widget shows */ limit: number | null; /** * Dataset the widget queries, such as error-events, spans, logs or issue */ widgetType: string | null; /** * Position and size of the widget on the dashboard grid */ layout: { [key: string]: number; } | null; /** * Y-axis range: auto or dataMin */ axisRange: string | null; /** * Legend style: default or breakdown */ legendType: 'default' | 'breakdown' | null; /** * Whether the widget's dataset was chosen by the user or inferred */ datasetSource: string | null; /** * Explore URLs for each query, for widgets that query transactions */ exploreUrls?: Array | null; /** * Parts of each query that were dropped when the widget was migrated from transactions to spans */ changedReason: Array<{ /** * Sort orders that were dropped when the widget was migrated from transactions to spans */ orderby: Array<{ [key: string]: string; }> | null; /** * Equations that were dropped when the widget was migrated from transactions to spans */ equations: Array<{ [key: string]: string | Array; }> | null; /** * Columns that were dropped when the widget was migrated from transactions to spans */ selected_columns: Array; }> | null; }>; /** * Saved project filter for the dashboard. [-1] means all projects */ projects: Array; /** * Saved release and global filters for the dashboard */ filters: { /** * Saved release filter */ release?: Array; /** * Saved release ID filter */ releaseId?: Array; /** * Saved global filters applied to every widget */ globalFilter?: Array<{ /** * Widget dataset the filter applies to, such as error-events, transaction-like, spans or logs */ dataset: string; /** * Tag or attribute being filtered */ tag: { /** * Key of the tag or attribute the filter applies to */ key: string; /** * Display name of the tag or attribute */ name: string; /** * Kind of the field, such as tag, measurement or field */ kind?: string; }; /** * Filter condition in search syntax, such as browser.name:[Chrome] */ value: string; /** * Whether the filter comes from a link and isn't saved by the user */ isTemporary?: boolean; }>; }; /** * Edit permissions for the dashboard */ permissions: { /** * Whether everyone in the organization can edit the dashboard */ isEditableByEveryone: boolean; /** * IDs of the teams that can edit the dashboard */ teamsWithEditAccess: Array; } | null; /** * Whether the requesting user favorited the dashboard */ isFavorited: boolean; /** * ID of the prebuilt dashboard this dashboard comes from */ prebuiltId: number | null; /** * Query priority for the dashboard: normal or faster */ queryPriority: string; }; }; export type UpdateOrganizationDashboardResponse = UpdateOrganizationDashboardResponses[keyof UpdateOrganizationDashboardResponses]; export type ListOrganizationDashboardRevisionsData = { body?: never; path: { /** * The ID or slug of the organization the resource belongs to. */ organization_id_or_slug: string; /** * The ID of the dashboard you'd like to retrieve. */ dashboard_id: number; }; query?: { /** * Limit the number of rows to return in the result. Default and maximum allowed is 100. */ per_page?: number; /** * A pointer to the last object fetched and its sort order; used to retrieve the next or previous results. */ cursor?: string; }; url: '/organizations/{organization_id_or_slug}/dashboards/{dashboard_id}/revisions/'; }; export type ListOrganizationDashboardRevisionsErrors = { /** * Forbidden */ 403: unknown; /** * Not Found */ 404: unknown; }; export type ListOrganizationDashboardRevisionsResponses = { 200: Array<{ /** * ID of the revision */ id: string; /** * Title of the dashboard in this revision */ title: string; /** * When the revision was recorded (ISO 8601) */ dateCreated: string; /** * User whose change recorded the revision, or null if there is no such user or it was deleted */ createdBy: { /** * ID of the user */ id: string; /** * Display name of the user */ name: string; /** * Primary email address of the user */ email: string; /** * Avatar type, such as letter_avatar, upload or gravatar */ avatarType: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl: string | null; } | null; /** * Change that recorded the revision, which holds the dashboard as it was just before that change: edit (a dashboard edit), edit-with-agent (an edit the client marked as made by an AI agent) or pre-restore (a restore of another revision) */ source: string; }>; }; export type ListOrganizationDashboardRevisionsResponse = ListOrganizationDashboardRevisionsResponses[keyof ListOrganizationDashboardRevisionsResponses]; export type RestoreOrganizationDashboardRevisionData = { body?: never; path: { /** * The ID or slug of the organization the resource belongs to. */ organization_id_or_slug: string; /** * The ID of the dashboard you'd like to retrieve. */ dashboard_id: number; /** * The ID of the dashboard revision, from the dashboard's revision list. */ revision_id: number; }; query?: never; url: '/organizations/{organization_id_or_slug}/dashboards/{dashboard_id}/revisions/{revision_id}/restore/'; }; export type RestoreOrganizationDashboardRevisionErrors = { /** * Bad Request */ 400: unknown; /** * Forbidden */ 403: unknown; /** * Not Found */ 404: unknown; /** * Conflict */ 409: unknown; }; export type RestoreOrganizationDashboardRevisionResponses = { 200: { /** * Saved environment filter for the dashboard */ environment?: Array; /** * Saved relative time range, such as 24h */ period?: string; /** * Whether the saved time range is shown in UTC */ utc?: string; /** * Whether the saved start time was outside data retention and was moved forward */ expired?: boolean; /** * Saved start of the time range (ISO 8601) */ start?: string; /** * Saved end of the time range (ISO 8601) */ end?: string; /** * ID of the dashboard */ id: string; /** * Title of the dashboard */ title: string; /** * When the dashboard was created (ISO 8601) */ dateCreated: string; /** * User who created the dashboard */ createdBy: { /** * SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access */ identities?: Array<{ /** * SSO identity ID */ id: string; /** * User's identifier at the auth provider */ name: string; /** * Organization the auth provider belongs to */ organization: { /** * Organization slug */ slug: string; /** * Organization name */ name: string; }; /** * Auth provider of the identity */ provider: { /** * Auth provider key, such as google or saml2 */ id: string; /** * Display name of the auth provider */ name: string; }; /** * When the identity was last verified by signing in through the auth provider */ dateVerified: string; /** * When the identity was last synced from the auth provider */ dateSynced: string; }>; /** * User avatar */ avatar?: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Two-factor authenticators of the user, without backup methods such as recovery codes */ authenticators?: Array<{ /** * Authenticator ID */ id: string; /** * Authenticator type, such as totp, sms, u2f or recovery */ type: string; /** * Display name of the authenticator type */ name: string; /** * When the authenticator was added */ dateCreated: string; /** * When the authenticator was last used, or null */ dateUsed: string | null; }>; /** * Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization */ canReset2fa?: boolean; /** * User ID */ id: string; /** * Display name: the user's name, or their email or username if no name is set */ name: string; /** * Username */ username: string; /** * Primary email address */ email: string; /** * Gravatar URL for the primary email address */ avatarUrl: string; /** * Whether the account is active */ isActive: boolean; /** * Whether the account is suspended. Suspended users can't sign in */ isSuspended: boolean; /** * Whether the user has a password set */ hasPasswordAuth: boolean; /** * Whether the account is managed, which stops the user from changing their username, password and similar details */ isManaged: boolean; /** * When the account was created */ dateJoined: string; /** * When the user last signed in, or null */ lastLogin: string | null; /** * Whether the user has two-factor authentication enabled */ has2fa: boolean; /** * When the user was last active, or null */ lastActive: string | null; /** * Whether the user is a superuser */ isSuperuser: boolean; /** * Whether the user has staff status */ isStaff: boolean; /** * Deprecated. Always an empty object */ experiments: { [key: string]: string; }; /** * Email addresses of the user. Only included for the requesting user or superusers; empty otherwise */ emails: Array<{ /** * Email ID */ id: string; /** * Email address */ email: string; /** * Whether the email address is verified */ is_verified: boolean; }>; } | null; /** * Widgets on the dashboard */ widgets: Array<{ /** * ID of the widget */ id: string; /** * Title of the widget */ title: string; /** * Description of the widget */ description: string | null; /** * How the widget is displayed, such as line, area, bar, table or big_number */ displayType: string | null; /** * Thresholds that color the widget's values */ thresholds: { /** * Whether higher (+) or lower (-) values are better. Empty when unset */ preferredPolarity?: string; /** * Time window the thresholds apply to, as a stats period such as 5m, 1h or 1d */ timeWindow?: string; /** * Threshold maximums, keyed max1 and max2 */ max_values: { [key: string]: number; }; /** * Unit of the threshold values */ unit: string; } | null; /** * Time interval for the widget's series, such as 5m */ interval: string; /** * When the widget was created (ISO 8601) */ dateCreated: string; /** * ID of the dashboard the widget belongs to */ dashboardId: string; /** * Queries that provide the widget's data */ queries: Array<{ /** * ID of the widget query */ id: string; /** * Name of the query, used as the series name */ name: string; /** * Fields the query selects */ fields: Array; /** * Aggregate functions the query computes */ aggregates: Array; /** * Transformations applied to aggregates, keyed by the aggregate's index */ transformations: { [key: string]: Array; }; /** * Columns the query groups by */ columns: Array; /** * Aliases shown in place of field names in table headers */ fieldAliases: Array; /** * Search query that filters the data */ conditions: string; /** * Field the results are sorted by */ orderby: string; /** * ID of the widget the query belongs to */ widgetId: string; /** * On-demand metric extraction settings for the query */ onDemand: Array<{ /** * Whether on-demand metric extraction is enabled for the query */ enabled: boolean; /** * On-demand extraction state, such as enabled:enrolled or disabled:high-cardinality */ extractionState: string; /** * ID of the widget query */ dashboardWidgetQueryId: number; }>; /** * Whether the query is hidden from the UI */ isHidden: boolean; /** * Index of the aggregate shown by Big Number widgets */ selectedAggregate: number | null; /** * Dashboards linked from fields in the query's results */ linkedDashboards: Array<{ /** * Field that links to the dashboard */ field: string; /** * ID of the linked dashboard */ dashboardId: number; }>; }>; /** * Maximum number of series or rows the widget shows */ limit: number | null; /** * Dataset the widget queries, such as error-events, spans, logs or issue */ widgetType: string | null; /** * Position and size of the widget on the dashboard grid */ layout: { [key: string]: number; } | null; /** * Y-axis range: auto or dataMin */ axisRange: string | null; /** * Legend style: default or breakdown */ legendType: 'default' | 'breakdown' | null; /** * Whether the widget's dataset was chosen by the user or inferred */ datasetSource: string | null; /** * Explore URLs for each query, for widgets that query transactions */ exploreUrls?: Array | null; /** * Parts of each query that were dropped when the widget was migrated from transactions to spans */ changedReason: Array<{ /** * Sort orders that were dropped when the widget was migrated from transactions to spans */ orderby: Array<{ [key: string]: string; }> | null; /** * Equations that were dropped when the widget was migrated from transactions to spans */ equations: Array<{ [key: string]: string | Array; }> | null; /** * Columns that were dropped when the widget was migrated from transactions to spans */ selected_columns: Array; }> | null; }>; /** * Saved project filter for the dashboard. [-1] means all projects */ projects: Array; /** * Saved release and global filters for the dashboard */ filters: { /** * Saved release filter */ release?: Array; /** * Saved release ID filter */ releaseId?: Array; /** * Saved global filters applied to every widget */ globalFilter?: Array<{ /** * Widget dataset the filter applies to, such as error-events, transaction-like, spans or logs */ dataset: string; /** * Tag or attribute being filtered */ tag: { /** * Key of the tag or attribute the filter applies to */ key: string; /** * Display name of the tag or attribute */ name: string; /** * Kind of the field, such as tag, measurement or field */ kind?: string; }; /** * Filter condition in search syntax, such as browser.name:[Chrome] */ value: string; /** * Whether the filter comes from a link and isn't saved by the user */ isTemporary?: boolean; }>; }; /** * Edit permissions for the dashboard */ permissions: { /** * Whether everyone in the organization can edit the dashboard */ isEditableByEveryone: boolean; /** * IDs of the teams that can edit the dashboard */ teamsWithEditAccess: Array; } | null; /** * Whether the requesting user favorited the dashboard */ isFavorited: boolean; /** * ID of the prebuilt dashboard this dashboard comes from */ prebuiltId: number | null; /** * Query priority for the dashboard: normal or faster */ queryPriority: string; }; }; export type RestoreOrganizationDashboardRevisionResponse = RestoreOrganizationDashboardRevisionResponses[keyof RestoreOrganizationDashboardRevisionResponses]; export type ListOrganizationStarredDashboardsData = { body?: never; path: { /** * The ID or slug of the organization the resource belongs to. */ organization_id_or_slug: string; }; query?: { /** * Limit the number of rows to return in the result. Default and maximum allowed is 100. */ per_page?: number; /** * A pointer to the last object fetched and its sort order; used to retrieve the next or previous results. */ cursor?: string; }; url: '/organizations/{organization_id_or_slug}/dashboards/starred/'; }; export type ListOrganizationStarredDashboardsErrors = { /** * Bad Request */ 400: unknown; /** * Forbidden */ 403: unknown; /** * Not Found */ 404: unknown; }; export type ListOrganizationStarredDashboardsResponses = { 200: Array<{ /** * ID of the dashboard */ id: string; /** * Title of the dashboard */ title: string; /** * When the dashboard was created (ISO 8601) */ dateCreated: string; /** * User who created the dashboard */ createdBy: { /** * SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access */ identities?: Array<{ /** * SSO identity ID */ id: string; /** * User's identifier at the auth provider */ name: string; /** * Organization the auth provider belongs to */ organization: { /** * Organization slug */ slug: string; /** * Organization name */ name: string; }; /** * Auth provider of the identity */ provider: { /** * Auth provider key, such as google or saml2 */ id: string; /** * Display name of the auth provider */ name: string; }; /** * When the identity was last verified by signing in through the auth provider */ dateVerified: string; /** * When the identity was last synced from the auth provider */ dateSynced: string; }>; /** * User avatar */ avatar?: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Two-factor authenticators of the user, without backup methods such as recovery codes */ authenticators?: Array<{ /** * Authenticator ID */ id: string; /** * Authenticator type, such as totp, sms, u2f or recovery */ type: string; /** * Display name of the authenticator type */ name: string; /** * When the authenticator was added */ dateCreated: string; /** * When the authenticator was last used, or null */ dateUsed: string | null; }>; /** * Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization */ canReset2fa?: boolean; /** * User ID */ id: string; /** * Display name: the user's name, or their email or username if no name is set */ name: string; /** * Username */ username: string; /** * Primary email address */ email: string; /** * Gravatar URL for the primary email address */ avatarUrl: string; /** * Whether the account is active */ isActive: boolean; /** * Whether the account is suspended. Suspended users can't sign in */ isSuspended: boolean; /** * Whether the user has a password set */ hasPasswordAuth: boolean; /** * Whether the account is managed, which stops the user from changing their username, password and similar details */ isManaged: boolean; /** * When the account was created */ dateJoined: string; /** * When the user last signed in, or null */ lastLogin: string | null; /** * Whether the user has two-factor authentication enabled */ has2fa: boolean; /** * When the user was last active, or null */ lastActive: string | null; /** * Whether the user is a superuser */ isSuperuser: boolean; /** * Whether the user has staff status */ isStaff: boolean; /** * Deprecated. Always an empty object */ experiments: { [key: string]: string; }; /** * Email addresses of the user. Only included for the requesting user or superusers; empty otherwise */ emails: Array<{ /** * Email ID */ id: string; /** * Email address */ email: string; /** * Whether the email address is verified */ is_verified: boolean; }>; } | null; /** * Saved environment filter for the dashboard */ environment: Array; /** * Saved release and global filters for the dashboard */ filters: { /** * Saved release filter */ release?: Array; /** * Saved release ID filter */ releaseId?: Array; /** * Saved global filters applied to every widget */ globalFilter?: Array<{ /** * Widget dataset the filter applies to, such as error-events, transaction-like, spans or logs */ dataset: string; /** * Tag or attribute being filtered */ tag: { /** * Key of the tag or attribute the filter applies to */ key: string; /** * Display name of the tag or attribute */ name: string; /** * Kind of the field, such as tag, measurement or field */ kind?: string; }; /** * Filter condition in search syntax, such as browser.name:[Chrome] */ value: string; /** * Whether the filter comes from a link and isn't saved by the user */ isTemporary?: boolean; }>; }; /** * When the dashboard was last visited (ISO 8601) */ lastVisited: string | null; /** * Display type of each widget, in order */ widgetDisplay: Array; /** * Display type and layout of each widget, for rendering a preview */ widgetPreview: Array<{ [key: string]: string | null; }>; /** * Edit permissions for the dashboard */ permissions: { /** * Whether everyone in the organization can edit the dashboard */ isEditableByEveryone: boolean; /** * IDs of the teams that can edit the dashboard */ teamsWithEditAccess: Array; } | null; /** * Whether the requesting user favorited the dashboard */ isFavorited: boolean; /** * Saved project filter for the dashboard. [-1] means all projects */ projects: Array; /** * ID of the prebuilt dashboard this dashboard comes from */ prebuiltId: number | null; }>; }; export type ListOrganizationStarredDashboardsResponse = ListOrganizationStarredDashboardsResponses[keyof ListOrganizationStarredDashboardsResponses]; export type DeleteOrganizationDetectorsData = { body?: never; path: { /** * The ID or slug of the organization the resource belongs to. */ organization_id_or_slug: string; }; query?: { /** * The IDs or slugs of projects to filter by. Project slugs are unique within each organization. Omit this parameter to include all accessible projects. `-1` is also accepted to include all accessible projects. * For example, the following are valid parameters: * - `/?project=1234&project=56789` * - `/?project=android&project=javascript-react` * - `/?project=-1` * */ project?: Array; /** * An optional search query for filtering monitors. * * Available fields are: * - `name` * - `type`: e.g. `error`, `metric_issue`, `issue_stream` * - `assignee`: email, username, #team, me, none * */ query?: string; /** * The property to sort results by. If not specified, the results are sorted by id. * * Available fields are: * - `name` * - `id` * - `type` * - `connectedWorkflows` * - `latestGroup` * - `openIssues` * * Prefix with `-` to sort in descending order. * */ sortBy?: string; /** * The ID of the monitor you'd like to query. */ id?: Array; }; url: '/organizations/{organization_id_or_slug}/detectors/'; }; export type DeleteOrganizationDetectorsErrors = { /** * Bad Request */ 400: unknown; /** * Unauthorized */ 401: unknown; /** * Forbidden */ 403: unknown; /** * Not Found */ 404: unknown; }; export type DeleteOrganizationDetectorsResponses = { /** * Success */ 200: unknown; /** * No Content */ 204: void; }; export type DeleteOrganizationDetectorsResponse = DeleteOrganizationDetectorsResponses[keyof DeleteOrganizationDetectorsResponses]; export type ListOrganizationDetectorsData = { body?: never; path: { /** * The ID or slug of the organization the resource belongs to. */ organization_id_or_slug: string; }; query?: { /** * The IDs or slugs of projects to filter by. Project slugs are unique within each organization. Omit this parameter to include all accessible projects. `-1` is also accepted to include all accessible projects. * For example, the following are valid parameters: * - `/?project=1234&project=56789` * - `/?project=android&project=javascript-react` * - `/?project=-1` * */ project?: Array; /** * An optional search query for filtering monitors. * * Available fields are: * - `name` * - `type`: e.g. `error`, `metric_issue`, `issue_stream` * - `assignee`: email, username, #team, me, none * */ query?: string; /** * The property to sort results by. If not specified, the results are sorted by id. * * Available fields are: * - `name` * - `id` * - `type` * - `connectedWorkflows` * - `latestGroup` * - `openIssues` * * Prefix with `-` to sort in descending order. * */ sortBy?: string; /** * The ID of the monitor you'd like to query. */ id?: Array; /** * Filter by monitor type(s). Can be specified multiple times. */ type?: Array; /** * Filter by whether monitors are enabled. */ enabled?: boolean; /** * Limit the number of rows to return in the result. Default and maximum allowed is 100. */ per_page?: number; /** * A pointer to the last object fetched and its sort order; used to retrieve the next or previous results. */ cursor?: string; }; url: '/organizations/{organization_id_or_slug}/detectors/'; }; export type ListOrganizationDetectorsErrors = { /** * Bad Request */ 400: unknown; /** * Unauthorized */ 401: unknown; /** * Forbidden */ 403: unknown; /** * Not Found */ 404: unknown; }; export type ListOrganizationDetectorsResponses = { 200: Array<{ /** * Team or user that owns the monitor */ owner?: { /** * Whether the actor is a user or a team */ type: 'user' | 'team'; /** * ID of the user or team */ id: string; /** * Display name of the user, or slug of the team */ name: string; /** * Email address of the user. Only set for users */ email?: string; } | null; /** * ID of the user who created the monitor */ createdBy?: string | null; /** * Latest issue the monitor created */ latestGroup?: { /** * ID of the issue */ id: string; /** * Title of the issue */ title: string; /** * Function or module where the issue occurs */ culprit: string | null; /** * Short ID of the issue, such as PROJECT-1A */ shortId: string | null; /** * Severity level of the issue */ level: 'sample' | 'debug' | 'info' | 'warning' | 'error' | 'fatal' | 'unknown'; /** * Issue status */ status: 'resolved' | 'ignored' | 'pending_deletion' | 'pending_merge' | 'reprocessing' | 'unresolved'; /** * Substatus of the issue, such as ongoing, regressed or escalating */ substatus: 'archived_until_escalating' | 'archived_until_condition_met' | 'archived_forever' | 'escalating' | 'ongoing' | 'regressed' | 'new' | null; /** * Platform of the issue's events */ platform: string | null; /** * Project the issue belongs to */ project: { /** * ID of the project */ id: string; /** * Name of the project */ name: string; /** * Slug of the project */ slug: string; /** * Platform of the project */ platform: string | null; }; /** * Event type of the issue, such as error or default */ type: 'default' | 'error' | 'csp' | 'nel' | 'hpkp' | 'expectct' | 'expectstaple' | 'transaction' | 'generic' | 'feedback'; /** * Issue type, such as error or performance_n_plus_one_db_queries */ issueType: string; /** * Issue category, such as error or performance */ issueCategory: string; /** * Issue metadata */ metadata: { /** * Title of default and issue platform events */ title?: string; /** * Exception value, or the subtitle of an issue */ value?: string; /** * Exception type of error events */ type?: string; /** * Whether the SDK fabricated the exception to carry a stacktrace, so its type is a platform label rather than what went wrong */ synthetic?: boolean; /** * File of the frame where the error happened */ filename?: string; /** * Function of the frame where the error happened */ function?: string; /** * Message of default, security and feedback events */ message?: string; /** * URI that a CSP report blocked */ uri?: string; /** * CSP directive that was violated */ directive?: string; /** * Host name of HPKP, Expect-CT and Expect-Staple reports */ origin?: string; /** * Name of the person who sent user feedback */ name?: string; /** * Email of the person who sent user feedback */ contact_email?: string; /** * Where user feedback came from, such as a widget */ source?: string; /** * Whether the stacktrace has in-app frames, system frames or both */ in_app_frame_mix?: string; /** * Whether a crash report was dropped because the issue already stores the most allowed */ stripped_crash?: boolean; /** * SDK of the issue's first event */ sdk?: { /** * Name of the SDK, or unknown */ name: string; /** * Name of the SDK, normalized for grouping */ name_normalized: string; }; /** * Severity score of the issue's first event */ severity?: number; /** * Why the severity score is what it is */ severity_reason?: string; /** * Priority the issue was created with */ initial_priority?: number; }; /** * Number of comments on the issue */ numComments: number; /** * When the issue was first seen (ISO 8601) */ firstSeen: string | null; /** * When the issue was last seen (ISO 8601) */ lastSeen: string | null; } | null; /** * Description of the monitor */ description?: string | null; /** * Monitor ID */ id: string; /** * ID of the project the monitor belongs to */ projectId: string | null; /** * Monitor name */ name: string; /** * Type of the monitor, such as metric_issue or error */ type: string; /** * IDs of the alerts connected to the monitor */ workflowIds: Array | null; /** * When the monitor was created (ISO 8601) */ dateCreated: string; /** * When the monitor was last updated (ISO 8601) */ dateUpdated: string; /** * Data sources the monitor evaluates, such as a query subscription */ dataSources: Array<{ /** * ID of the data source */ id: string; /** * ID of the organization */ organizationId: string; /** * Type of the data source */ type: 'snuba_query_subscription' | 'cron_monitor' | 'uptime_subscription'; /** * ID of the query subscription, cron monitor or uptime subscription */ sourceId: string; /** * The query subscription, cron monitor or uptime subscription, which depends on type. Null when it no longer exists */ queryObj: { /** * ID of the query subscription */ id: string; /** * Status of the subscription: 0 active, 1 creating, 2 updating, 3 deleting or 4 disabled */ status: number; /** * ID of the subscription in Snuba. Null while it's being created */ subscription: string | null; /** * Query the subscription runs */ snubaQuery: { /** * ID of the query */ id: string; /** * Dataset the query runs on, such as events or events_analytics_platform */ dataset: string; /** * Search query that filters the data */ query: string; /** * Aggregate function the query computes, such as count() */ aggregate: string; /** * Time window of the query in seconds */ timeWindow: number; /** * Environment the query is limited to. Null for all environments */ environment: string | null; /** * Event types the query includes, such as error or transaction */ eventTypes: Array; /** * How sampled data is extrapolated, unknown, none, client_and_server_weighted or server_weighted. Null when not set */ extrapolationMode: string | null; }; } | { /** * ID of the monitor */ id: string; /** * Name of the monitor */ name: string; /** * Slug that identifies the monitor in the organization */ slug: string; /** * Status of the monitor. Disabled monitors don't accept check-ins */ status: 'active' | 'disabled' | 'pending_deletion' | 'deletion_in_progress'; /** * Whether incidents are muted in all of the monitor's environments */ isMuted: boolean; /** * Whether the most recent check-in was an upsert check-in */ isUpserting: boolean; /** * Configuration of the monitor */ config: { /** * Type of schedule: crontab or interval */ schedule_type: 'crontab' | 'interval'; /** * Schedule of the monitor: a crontab string, or a [value, unit] pair for intervals, such as [1, "day"] */ schedule: string | Array; /** * How long in minutes after the expected check-in time to wait before the check-in counts as missed */ checkin_margin: number | null; /** * How long in minutes a check-in can stay in progress before it counts as failed */ max_runtime: number | null; /** * Timezone the schedule is evaluated in, as a tz database name */ timezone: string | null; /** * Number of consecutive missed or failed check-ins before an issue is created */ failure_issue_threshold: number | null; /** * Number of consecutive successful check-ins before the issue is resolved */ recovery_threshold: number | null; /** * ID of the alert rule linked to the monitor */ alert_rule_id: number | null; }; /** * When the monitor was created (ISO 8601) */ dateCreated: string; /** * Project the monitor belongs to */ project: { /** * Counts of non-transaction events per interval over the requested stats period, as [timestamp, count] pairs. Only included when a stats period is requested */ stats?: Array> | { [key: string]: number; }; /** * Counts of transactions per interval over the requested stats period, as [timestamp, count] pairs. Only included when transaction stats are requested */ transactionStats?: Array>; /** * Crash-free session rates for the current and previous stats period. Only included when session stats are requested */ sessionStats?: { /** * Crash-free rate in the current period, as a percentage. Null when there's no session data */ currentCrashFreeRate: number | null; /** * Crash-free rate in the previous period, as a percentage. Null when there's no session data */ previousCrashFreeRate: number | null; /** * Whether the project has release health (session) data */ hasHealthData: boolean; }; /** * ID of the project */ id: string; /** * Slug of the project */ slug: string; /** * Name of the project */ name: string; /** * Platform of the project */ platform: string | null; /** * When the project was created (ISO 8601) */ dateCreated: string; /** * Whether the requesting user bookmarked the project */ isBookmarked: boolean; /** * Whether the requesting user is a member of a team with access to the project */ isMember: boolean; /** * Features enabled for the project */ features: Array; /** * When the project received its first event (ISO 8601) */ firstEvent: string | null; /** * Whether the project has sent transactions */ firstTransactionEvent: boolean; /** * Scopes the requesting user has on the project through team membership and organization role */ access: Array; /** * Whether the requesting user has access to the project */ hasAccess: boolean; /** * Whether the project has sent user feedback */ hasFeedbacks: boolean; /** * Whether the project has sent feature flags */ hasFlags: boolean; /** * Whether the project has sent an event with a minified stack trace */ hasMinifiedStackTrace: boolean; /** * Whether the project has cron monitors */ hasMonitors: boolean; /** * Whether the project has sent user feedback from the user feedback widget */ hasNewFeedbacks: boolean; /** * Whether the project has sent profiles */ hasProfiles: boolean; /** * Whether the project has sent replays */ hasReplays: boolean; /** * Whether the project has sent sessions */ hasSessions: boolean; /** * Whether the project has sent HTTP request spans used by Insights */ hasInsightsHttp: boolean; /** * Whether the project has sent database spans used by Insights */ hasInsightsDb: boolean; /** * Whether the project has sent asset spans used by Insights */ hasInsightsAssets: boolean; /** * Whether the project has sent app start spans used by Insights */ hasInsightsAppStart: boolean; /** * Whether the project has sent screen load spans used by Insights */ hasInsightsScreenLoad: boolean; /** * Whether the project has sent web vitals spans used by Insights */ hasInsightsVitals: boolean; /** * Whether the project has sent cache spans used by Insights */ hasInsightsCaches: boolean; /** * Whether the project has sent queue spans used by Insights */ hasInsightsQueues: boolean; /** * Whether the project has sent AI agent spans used by Insights */ hasInsightsAgentMonitoring: boolean; /** * Whether the project has sent MCP spans used by Insights */ hasInsightsMCP: boolean; /** * Whether the project has sent logs. Always true outside sentry.io */ hasLogs: boolean; /** * Whether the project has sent trace metrics. Always true outside sentry.io */ hasTraceMetrics: boolean; /** * Whether this is the Sentry install's own internal project */ isInternal: boolean; /** * Whether the project is public */ isPublic: boolean; /** * Avatar of the project. Always a letter avatar */ avatar: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Hex color code for the project, derived from its slug unless set explicitly */ color: string; /** * Status of the project: active, deleted, or unknown */ status: string; }; /** * Environments the monitor has received check-ins for */ environments: Array<{ /** * Name of the environment */ name: string; /** * Status of the monitor in the environment */ status: 'active' | 'disabled' | 'pending_deletion' | 'deletion_in_progress' | 'ok' | 'error'; /** * Whether incidents are muted for the monitor in the environment */ isMuted: boolean; /** * When the monitor was created (ISO 8601) */ dateCreated: string; /** * When the most recent check-in was received, not counting missed check-ins (ISO 8601) */ lastCheckIn: string | null; /** * When the next check-in is expected (ISO 8601) */ nextCheckIn: string | null; /** * Latest time the next check-in can arrive before it counts as missed (ISO 8601) */ nextCheckInLatest: string | null; /** * Unresolved incident for the monitor in the environment. Null when there's none */ activeIncident: { /** * When the incident started (ISO 8601) */ startingTimestamp: string | null; /** * When the incident was resolved (ISO 8601) */ resolvingTimestamp: string | null; /** * Details of the broken monitor notice for the incident. Null when there's none */ brokenNotice: { /** * When users were notified that the monitor environment looks broken (ISO 8601) */ userNotifiedTimestamp: string | null; /** * When the broken monitor environment was muted (ISO 8601) */ environmentMutedTimestamp: string | null; } | null; } | null; }>; /** * Team or user that owns the monitor. Null when there's no owner */ owner: { /** * Whether the actor is a user or a team */ type: 'user' | 'team'; /** * ID of the user or team */ id: string; /** * Display name of the user, or slug of the team */ name: string; /** * Email address of the user. Only set for users */ email?: string; } | null; } | { /** * URL the check requests */ url: string; /** * HTTP method of the check request, such as GET */ method: string; /** * Body of the check request. Null when it has none */ body: string | null; /** * Headers of the check request, each a name and value pair */ headers: Array>; /** * How often the check runs, in seconds */ intervalSeconds: number; /** * How long the check waits for a response, in milliseconds */ timeoutMs: number; /** * Whether the check request samples a trace */ traceSampling: boolean; /** * Whether failed checks capture the response body and headers */ responseCaptureEnabled: boolean; /** * Assertion the response must pass. Null when the check has none */ assertion: { /** * All possible assertion operations */ root?: { /** * Operation, always and */ op?: 'and'; /** * Operations that must all pass */ children?: Array<{ [key: string]: unknown; }>; } | { /** * Operation, always or */ op?: 'or'; /** * Operations of which at least one must pass */ children?: Array<{ [key: string]: unknown; }>; } | { /** * Operation, always not */ op?: 'not'; /** * All possible assertion operations. Its fields are the same as the one this is inside, so they're left out here. */ operand?: { [key: string]: unknown; }; } | { /** * HTTP status code to compare the response status code against */ value?: number; /** * The kind of comparison to make. */ operator?: 'always' | 'never' | 'less_than' | 'greater_than' | 'equals' | 'not_equals'; } | { /** * Operation, always json_path */ op?: 'json_path'; /** * JSONPath query to run on the response body */ value?: string; /** * The kind of comparison to make. */ operator?: 'always' | 'never' | 'less_than' | 'greater_than' | 'equals' | 'not_equals' | null; /** * An operand for comparison against json path values */ operand?: { /** * Kind of operand, always glob */ header_op?: 'glob'; /** * The actual glob pattern, as a string */ pattern?: { /** * Glob pattern */ value?: string; }; } | { /** * Kind of operand, always literal */ jsonpath_op?: 'literal'; /** * Value to compare the query result against */ value?: string; } | { /** * Kind of operand, always none */ header_op?: 'none'; } | null; } | { /** * The kind of comparison to make. */ key_op?: 'always' | 'never' | 'less_than' | 'greater_than' | 'equals' | 'not_equals'; /** * A operand for comparison against HTTP header keys and values */ key_operand?: { /** * Kind of operand, always glob */ header_op?: 'glob'; /** * The actual glob pattern, as a string */ pattern?: { /** * Glob pattern */ value?: string; }; } | { /** * Kind of operand, always literal */ header_op?: 'literal'; /** * Value to compare the header key or value against */ value?: string; } | { /** * Kind of operand, always none */ header_op?: 'none'; }; /** * The kind of comparison to make. */ value_op?: 'always' | 'never' | 'less_than' | 'greater_than' | 'equals' | 'not_equals'; /** * A operand for comparison against HTTP header keys and values */ value_operand?: { /** * Kind of operand, always glob */ header_op?: 'glob'; /** * The actual glob pattern, as a string */ pattern?: { /** * Glob pattern */ value?: string; }; } | { /** * Kind of operand, always literal */ header_op?: 'literal'; /** * Value to compare the header key or value against */ value?: string; } | { /** * Kind of operand, always none */ header_op?: 'none'; }; }; } | null; } | null; }> | null; /** * Conditions that decide the monitor's status */ conditionGroup: { /** * ID of the condition group */ id?: string; /** * ID of the organization */ organizationId?: string; /** * How the conditions in the group combine */ logicType?: 'any' | 'any-short' | 'all' | 'none'; /** * Conditions in the group */ conditions?: Array<{ /** * ID of the condition */ id: string; /** * Type of the condition, such as first_seen_event or level */ type: string; /** * Value the condition compares against, which depends on its type */ comparison: number | string | boolean | { /** * Whether the issue must be older or newer than the age */ comparisonType: 'older' | 'newer'; /** * Age of the issue, in units of time */ value: number; /** * Unit of the age */ time: 'minute' | 'hour' | 'day' | 'week'; } | { /** * How sensitive anomaly detection is */ sensitivity: 'low' | 'medium' | 'high'; /** * Seasonal pattern that anomaly detection accounts for */ seasonality: 'auto' | 'hourly' | 'daily' | 'weekly' | 'hourly_daily' | 'hourly_weekly' | 'hourly_daily_weekly' | 'daily_weekly'; /** * Anomalies to detect: 0 above, 1 below, 2 above or below the expected value */ thresholdType: 0 | 1 | 2; } | { /** * Who the issue must be assigned to */ targetType: 'Unassigned' | 'Team' | 'Member'; /** * ID of the team or member. Not set for Unassigned */ targetIdentifier?: number | string; } | { /** * Event attribute to match, such as message or user.email */ attribute?: 'message' | 'platform' | 'environment' | 'type' | 'error.handled' | 'error.unhandled' | 'error.main_thread' | 'exception.type' | 'exception.value' | 'user.id' | 'user.email' | 'user.username' | 'user.ip_address' | 'http.method' | 'http.url' | 'http.status_code' | 'sdk.name' | 'stacktrace.code' | 'stacktrace.module' | 'stacktrace.filename' | 'stacktrace.abs_path' | 'stacktrace.package' | 'unreal.crash_type' | 'app.in_foreground' | 'os.distribution_name' | 'os.distribution_version' | 'symbolicated_in_app' | 'ota_updates.channel' | 'ota_updates.runtime_version' | 'ota_updates.update_id'; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the attribute against. Not set for is and ns */ value?: string; } | number | { /** * Time window to count in, such as 1h */ interval: '1m' | '5m' | '15m' | '1h' | '1d' | '1w' | '30d'; /** * Number of events in the interval that meets the condition */ value: number; /** * Tag or attribute filters that events must match to count */ filters?: Array<{ /** * Tag key to match */ key?: string; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the tag or attribute against. Not set for is and ns */ value?: string; } | { /** * Event attribute to match, such as message or user.email */ attribute?: 'message' | 'platform' | 'environment' | 'type' | 'error.handled' | 'error.unhandled' | 'error.main_thread' | 'exception.type' | 'exception.value' | 'user.id' | 'user.email' | 'user.username' | 'user.ip_address' | 'http.method' | 'http.url' | 'http.status_code' | 'sdk.name' | 'stacktrace.code' | 'stacktrace.module' | 'stacktrace.filename' | 'stacktrace.abs_path' | 'stacktrace.package' | 'unreal.crash_type' | 'app.in_foreground' | 'os.distribution_name' | 'os.distribution_version' | 'symbolicated_in_app' | 'ota_updates.channel' | 'ota_updates.runtime_version' | 'ota_updates.update_id'; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the tag or attribute against. Not set for is and ns */ value?: string; }>; } | { /** * Time window to count in, such as 1h */ interval: '1m' | '5m' | '15m' | '1h' | '1d' | '1w' | '30d'; /** * Percent increase in events over the comparison interval that meets the condition */ value: number; /** * Earlier time window to compare the count against, such as 1w */ comparisonInterval: '5m' | '15m' | '1h' | '1d' | '1w' | '30d'; /** * Tag or attribute filters that events must match to count */ filters?: Array<{ /** * Tag key to match */ key?: string; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the tag or attribute against. Not set for is and ns */ value?: string; } | { /** * Event attribute to match, such as message or user.email */ attribute?: 'message' | 'platform' | 'environment' | 'type' | 'error.handled' | 'error.unhandled' | 'error.main_thread' | 'exception.type' | 'exception.value' | 'user.id' | 'user.email' | 'user.username' | 'user.ip_address' | 'http.method' | 'http.url' | 'http.status_code' | 'sdk.name' | 'stacktrace.code' | 'stacktrace.module' | 'stacktrace.filename' | 'stacktrace.abs_path' | 'stacktrace.package' | 'unreal.crash_type' | 'app.in_foreground' | 'os.distribution_name' | 'os.distribution_version' | 'symbolicated_in_app' | 'ota_updates.channel' | 'ota_updates.runtime_version' | 'ota_updates.update_id'; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the tag or attribute against. Not set for is and ns */ value?: string; }>; } | { /** * Time window to count in, such as 1h */ interval: '1m' | '5m' | '15m' | '1h' | '1d' | '1w' | '30d'; /** * Number of affected users in the interval that meets the condition */ value: number; /** * Tag or attribute filters that events must match to count */ filters?: Array<{ /** * Tag key to match */ key?: string; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the tag or attribute against. Not set for is and ns */ value?: string; } | { /** * Event attribute to match, such as message or user.email */ attribute?: 'message' | 'platform' | 'environment' | 'type' | 'error.handled' | 'error.unhandled' | 'error.main_thread' | 'exception.type' | 'exception.value' | 'user.id' | 'user.email' | 'user.username' | 'user.ip_address' | 'http.method' | 'http.url' | 'http.status_code' | 'sdk.name' | 'stacktrace.code' | 'stacktrace.module' | 'stacktrace.filename' | 'stacktrace.abs_path' | 'stacktrace.package' | 'unreal.crash_type' | 'app.in_foreground' | 'os.distribution_name' | 'os.distribution_version' | 'symbolicated_in_app' | 'ota_updates.channel' | 'ota_updates.runtime_version' | 'ota_updates.update_id'; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the tag or attribute against. Not set for is and ns */ value?: string; }>; } | { /** * Time window to count in, such as 1h */ interval: '1m' | '5m' | '15m' | '1h' | '1d' | '1w' | '30d'; /** * Percent increase in affected users over the comparison interval that meets the condition */ value: number; /** * Earlier time window to compare the count against, such as 1w */ comparisonInterval: '5m' | '15m' | '1h' | '1d' | '1w' | '30d'; /** * Tag or attribute filters that events must match to count */ filters?: Array<{ /** * Tag key to match */ key?: string; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the tag or attribute against. Not set for is and ns */ value?: string; } | { /** * Event attribute to match, such as message or user.email */ attribute?: 'message' | 'platform' | 'environment' | 'type' | 'error.handled' | 'error.unhandled' | 'error.main_thread' | 'exception.type' | 'exception.value' | 'user.id' | 'user.email' | 'user.username' | 'user.ip_address' | 'http.method' | 'http.url' | 'http.status_code' | 'sdk.name' | 'stacktrace.code' | 'stacktrace.module' | 'stacktrace.filename' | 'stacktrace.abs_path' | 'stacktrace.package' | 'unreal.crash_type' | 'app.in_foreground' | 'os.distribution_name' | 'os.distribution_version' | 'symbolicated_in_app' | 'ota_updates.channel' | 'ota_updates.runtime_version' | 'ota_updates.update_id'; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the tag or attribute against. Not set for is and ns */ value?: string; }>; } | { /** * ID of the issue category */ value: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 19; /** * Whether the issue must be in the category or not. Defaults to true */ include?: boolean; } | { /** * Number of times the issue must have occurred */ value: number; } | 25 | 50 | 75 | 1 | { /** * Slug of the issue type */ value: 'performance_slow_db_query' | 'performance_render_blocking_asset_span' | 'performance_n_plus_one_db_queries' | 'performance_n_plus_one_db_queries_experimental' | 'performance_consecutive_db_queries' | 'performance_file_io_main_thread' | 'performance_consecutive_http' | 'performance_n_plus_one_api_calls' | 'performance_n_plus_one_api_calls_experimental' | 'performance_m_n_plus_one_db_queries' | 'performance_m_n_plus_one_db_queries_experimental' | 'performance_uncompressed_assets' | 'performance_db_main_thread' | 'performance_large_http_payload' | 'performance_http_overhead' | 'performance_p95_endpoint_regression' | 'performance_streamed_spans_exp' | 'db_query_injection_vulnerability' | 'query_injection_vulnerability' | 'profile_file_io_main_thread' | 'profile_image_decode_main_thread' | 'profile_json_decode_main_thread' | 'profile_regex_main_thread' | 'profile_frame_drop' | 'profile_function_regression' | 'llm_detected_experimental' | 'llm_detected_experimental_v2' | 'ai_detected_http' | 'ai_detected_db' | 'ai_detected_runtime_performance' | 'ai_detected_security' | 'ai_detected_code_health' | 'ai_detected_general' | 'replay_click_rage' | 'replay_hydration_error' | 'feedback' | 'web_vitals' | 'issue_stream' | 'metric_issue' | 'error' | 'uptime_domain_failure' | 'send-test-notification' | 'monitor_check_in_failure' | 'sourcemap_configuration' | 'low_value_span_configuration' | 'preprod_size_analysis'; /** * Whether the issue must be of the type or not. Defaults to true */ include?: boolean; } | { /** * Whether to compare against the oldest or newest adopted release */ releaseAgeType: 'oldest' | 'newest'; /** * Whether the event's release must be older or newer than that release */ ageComparison: 'older' | 'newer'; /** * Environment the release was adopted in */ environment: string; } | { /** * Event level: 0 sample, 10 debug, 20 info, 30 warning, 40 error, 50 fatal */ level: 0 | 10 | 20 | 30 | 40 | 50; /** * How to compare the event's level: eq, gte or lte */ match: 'eq' | 'gte' | 'lte'; } | { /** * Time window to count in, such as 1h */ interval: '1m' | '5m' | '10m' | '30m' | '1h'; /** * Percent of sessions affected in the interval that meets the condition */ value: number; /** * Tag or attribute filters that events must match to count */ filters?: Array<{ /** * Tag key to match */ key?: string; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the tag or attribute against. Not set for is and ns */ value?: string; } | { /** * Event attribute to match, such as message or user.email */ attribute?: 'message' | 'platform' | 'environment' | 'type' | 'error.handled' | 'error.unhandled' | 'error.main_thread' | 'exception.type' | 'exception.value' | 'user.id' | 'user.email' | 'user.username' | 'user.ip_address' | 'http.method' | 'http.url' | 'http.status_code' | 'sdk.name' | 'stacktrace.code' | 'stacktrace.module' | 'stacktrace.filename' | 'stacktrace.abs_path' | 'stacktrace.package' | 'unreal.crash_type' | 'app.in_foreground' | 'os.distribution_name' | 'os.distribution_version' | 'symbolicated_in_app' | 'ota_updates.channel' | 'ota_updates.runtime_version' | 'ota_updates.update_id'; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the tag or attribute against. Not set for is and ns */ value?: string; }>; } | { /** * Time window to count in, such as 1h */ interval: '1m' | '5m' | '10m' | '30m' | '1h'; /** * Percent increase in affected sessions over the comparison interval that meets the condition */ value: number; /** * Earlier time window to compare the count against, such as 1w */ comparisonInterval: '5m' | '15m' | '1h' | '1d' | '1w' | '30d'; /** * Tag or attribute filters that events must match to count */ filters?: Array<{ /** * Tag key to match */ key?: string; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the tag or attribute against. Not set for is and ns */ value?: string; } | { /** * Event attribute to match, such as message or user.email */ attribute?: 'message' | 'platform' | 'environment' | 'type' | 'error.handled' | 'error.unhandled' | 'error.main_thread' | 'exception.type' | 'exception.value' | 'user.id' | 'user.email' | 'user.username' | 'user.ip_address' | 'http.method' | 'http.url' | 'http.status_code' | 'sdk.name' | 'stacktrace.code' | 'stacktrace.module' | 'stacktrace.filename' | 'stacktrace.abs_path' | 'stacktrace.package' | 'unreal.crash_type' | 'app.in_foreground' | 'os.distribution_name' | 'os.distribution_version' | 'symbolicated_in_app' | 'ota_updates.channel' | 'ota_updates.runtime_version' | 'ota_updates.update_id'; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the tag or attribute against. Not set for is and ns */ value?: string; }>; } | Array<'rca_completed' | 'solution_completed' | 'coding_completed' | 'pr_ready_for_review'> | { /** * Tag key to match */ key?: string; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the tag against. Not set for is and ns */ value?: string; }; /** * Result the condition produces when it matches: true for alert conditions, or the priority level for monitor conditions */ conditionResult: boolean | number | number | null; }>; /** * Actions to fire when the conditions pass */ actions?: Array<{ /** * ID of the action */ id?: string; /** * Type of the action */ type?: 'slack' | 'slack_staging' | 'msteams' | 'discord' | 'pagerduty' | 'opsgenie' | 'github' | 'github_enterprise' | 'jira' | 'jira_server' | 'vsts' | 'email' | 'sentry_app' | 'plugin' | 'webhook' | 'seer_investigation'; /** * ID of the integration the action uses. Null for actions without one */ integrationId?: string | null; /** * Extra data for the action, which depends on its type */ data?: { /** * Tags to add to the message */ tags?: string; } | { /** * The fallthrough type for issue owners email notifications */ fallthroughType?: 'AllMembers' | 'ActiveMembers' | 'NoOne'; } | { /** * Dynamic form fields from customer configuration */ dynamicFormFields?: Array<{ /** * Name of the field */ name?: string; /** * Label of the field */ label?: string; /** * Type of the field, such as select or text */ type?: string; }>; /** * Additional fields that aren't part of standard fields */ additionalFields: { /** * Repository to create the issue in, as owner/name */ repo: string; /** * Labels to add to the issue */ labels?: Array | null; /** * User to assign the issue to */ assignee?: string | null; [key: string]: unknown; }; } | { /** * Dynamic form fields from customer configuration */ dynamicFormFields?: Array<{ /** * Name of the field */ name?: string; /** * Label of the field */ label?: string; /** * Type of the field, such as select or text */ type?: string; }>; /** * Additional fields that aren't part of standard fields */ additionalFields?: { [key: string]: string | null | number | boolean | Array; }; } | { [key: string]: never; } | { /** * The priority of the opsgenie action */ priority?: 'P1' | 'P2' | 'P3' | 'P4' | 'P5'; } | { /** * The priority of the pagerduty action */ priority?: 'default' | 'critical' | 'warning' | 'error' | 'info'; } | { [key: string]: string; } | { /** * Prompt the investigation runs */ prompt?: string; /** * Seer skill the investigation runs, instead of a prompt */ skill?: 'agentic_triage'; } | { /** * Values of the Sentry App's alert rule settings form, each with a name and value */ settings?: Array; } | { /** * Tags to add to the message */ tags?: string; /** * Notes to add to the message */ notes?: string; }; /** * Configuration of the action, such as targetType and targetIdentifier */ config?: { /** * ID of the target, such as a channel, user or team ID */ targetIdentifier: string; /** * Display name of the target, such as a channel name */ targetDisplay?: string | null; /** * Kind of target the action notifies, such as specific, user or team */ targetType: 'specific'; } | { /** * ID of the target, such as a channel, user or team ID */ targetIdentifier?: string | null; /** * Display name of the target, such as a channel name */ targetDisplay?: null; /** * Kind of target the action notifies, such as specific, user or team */ targetType: 'user' | 'team' | 'issue_owners'; } | { /** * ID of the target, such as a channel, user or team ID */ targetIdentifier?: null; /** * Display name of the target, such as a channel name */ targetDisplay?: null; /** * Kind of target the action notifies, such as specific, user or team */ targetType?: 'specific'; } | { /** * ID of the target, such as a channel, user or team ID */ targetIdentifier?: string; /** * Display name of the target, such as a channel name */ targetDisplay: string; /** * Kind of target the action notifies, such as specific, user or team */ targetType: 'specific'; } | { /** * ID of the target, such as a channel, user or team ID */ targetIdentifier: string; /** * Display name of the target, such as a channel name */ targetDisplay?: string | null; /** * Kind of target the action notifies, such as specific, user or team */ targetType: 'specific'; } | { /** * ID of the target, such as a channel, user or team ID */ targetIdentifier?: string | null; /** * Display name of the target, such as a channel name */ targetDisplay?: string | null; /** * Kind of target the action notifies, such as specific, user or team */ targetType?: null; } | { [key: string]: never; } | { /** * ID of the target, such as a channel, user or team ID */ targetIdentifier: string; /** * Display name of the target, such as a channel name */ targetDisplay?: string | null; /** * Kind of target the action notifies, such as specific, user or team */ targetType: 'sentry_app'; } | { /** * ID of the target, such as a channel, user or team ID */ targetIdentifier?: string; /** * Display name of the target, such as a channel name */ targetDisplay?: string; /** * Kind of target the action notifies, such as specific, user or team */ targetType: 'specific'; } | { /** * ID of the target, such as a channel, user or team ID */ targetIdentifier?: string; /** * Display name of the target, such as a channel name */ targetDisplay?: null; /** * Kind of target the action notifies, such as specific, user or team */ targetType?: null; }; /** * Status of the action */ status?: 'active' | 'disabled' | 'pending_deletion' | 'deletion_in_progress'; }>; } | null; /** * Configuration of the monitor, which depends on its type */ config: { [key: string]: unknown; } | { /** * Fingerprinting rules of the project */ 'sentry:fingerprintingRules'?: string; /** * Hours of inactivity after which the project's issues resolve. 0 to never */ 'sentry:resolveAge'?: number; } | { /** * ID of the organization */ organizationId?: number; } | { /** * For percent detection, how far back the compared window is, in seconds */ comparisonDelta?: 300 | 900 | 3600 | 86400 | 604800 | 2592000; /** * How the monitor detects issues: static thresholds, percent change or dynamic anomalies */ detectionType: 'static' | 'percent' | 'dynamic'; } | { /** * The type of threshold to apply */ thresholdType: 'absolute_diff' | 'absolute' | 'relative_diff'; /** * The measurement to track */ measurement: 'install_size' | 'download_size'; /** * Search query to filter which artifacts are monitored */ query?: string; } | { /** * How the monitor was created: 1 manually, 2 auto-detected and onboarding, 3 auto-detected and active */ mode: 1 | 2 | 3; /** * Environment of the monitor. Null for none */ environment: string | null; /** * Number of consecutive successful checks required to mark monitor as recovered */ recoveryThreshold: number; /** * Number of consecutive failed checks required to mark monitor as down */ downtimeThreshold: number; }; /** * Whether the monitor is enabled */ enabled: boolean; }>; }; export type ListOrganizationDetectorsResponse = ListOrganizationDetectorsResponses[keyof ListOrganizationDetectorsResponses]; export type UpdateOrganizationDetectorsData = { body: { /** * Whether to enable or disable the monitors */ enabled: boolean; }; path: { /** * The ID or slug of the organization the resource belongs to. */ organization_id_or_slug: string; }; query?: { /** * The IDs or slugs of projects to filter by. Project slugs are unique within each organization. Omit this parameter to include all accessible projects. `-1` is also accepted to include all accessible projects. * For example, the following are valid parameters: * - `/?project=1234&project=56789` * - `/?project=android&project=javascript-react` * - `/?project=-1` * */ project?: Array; /** * An optional search query for filtering monitors. * * Available fields are: * - `name` * - `type`: e.g. `error`, `metric_issue`, `issue_stream` * - `assignee`: email, username, #team, me, none * */ query?: string; /** * The ID of the monitor you'd like to query. */ id?: Array; }; url: '/organizations/{organization_id_or_slug}/detectors/'; }; export type UpdateOrganizationDetectorsErrors = { /** * Bad Request */ 400: unknown; /** * Unauthorized */ 401: unknown; /** * Forbidden */ 403: unknown; /** * Not Found */ 404: unknown; }; export type UpdateOrganizationDetectorsResponses = { 200: Array<{ /** * Team or user that owns the monitor */ owner?: { /** * Whether the actor is a user or a team */ type: 'user' | 'team'; /** * ID of the user or team */ id: string; /** * Display name of the user, or slug of the team */ name: string; /** * Email address of the user. Only set for users */ email?: string; } | null; /** * ID of the user who created the monitor */ createdBy?: string | null; /** * Latest issue the monitor created */ latestGroup?: { /** * ID of the issue */ id: string; /** * Title of the issue */ title: string; /** * Function or module where the issue occurs */ culprit: string | null; /** * Short ID of the issue, such as PROJECT-1A */ shortId: string | null; /** * Severity level of the issue */ level: 'sample' | 'debug' | 'info' | 'warning' | 'error' | 'fatal' | 'unknown'; /** * Issue status */ status: 'resolved' | 'ignored' | 'pending_deletion' | 'pending_merge' | 'reprocessing' | 'unresolved'; /** * Substatus of the issue, such as ongoing, regressed or escalating */ substatus: 'archived_until_escalating' | 'archived_until_condition_met' | 'archived_forever' | 'escalating' | 'ongoing' | 'regressed' | 'new' | null; /** * Platform of the issue's events */ platform: string | null; /** * Project the issue belongs to */ project: { /** * ID of the project */ id: string; /** * Name of the project */ name: string; /** * Slug of the project */ slug: string; /** * Platform of the project */ platform: string | null; }; /** * Event type of the issue, such as error or default */ type: 'default' | 'error' | 'csp' | 'nel' | 'hpkp' | 'expectct' | 'expectstaple' | 'transaction' | 'generic' | 'feedback'; /** * Issue type, such as error or performance_n_plus_one_db_queries */ issueType: string; /** * Issue category, such as error or performance */ issueCategory: string; /** * Issue metadata */ metadata: { /** * Title of default and issue platform events */ title?: string; /** * Exception value, or the subtitle of an issue */ value?: string; /** * Exception type of error events */ type?: string; /** * Whether the SDK fabricated the exception to carry a stacktrace, so its type is a platform label rather than what went wrong */ synthetic?: boolean; /** * File of the frame where the error happened */ filename?: string; /** * Function of the frame where the error happened */ function?: string; /** * Message of default, security and feedback events */ message?: string; /** * URI that a CSP report blocked */ uri?: string; /** * CSP directive that was violated */ directive?: string; /** * Host name of HPKP, Expect-CT and Expect-Staple reports */ origin?: string; /** * Name of the person who sent user feedback */ name?: string; /** * Email of the person who sent user feedback */ contact_email?: string; /** * Where user feedback came from, such as a widget */ source?: string; /** * Whether the stacktrace has in-app frames, system frames or both */ in_app_frame_mix?: string; /** * Whether a crash report was dropped because the issue already stores the most allowed */ stripped_crash?: boolean; /** * SDK of the issue's first event */ sdk?: { /** * Name of the SDK, or unknown */ name: string; /** * Name of the SDK, normalized for grouping */ name_normalized: string; }; /** * Severity score of the issue's first event */ severity?: number; /** * Why the severity score is what it is */ severity_reason?: string; /** * Priority the issue was created with */ initial_priority?: number; }; /** * Number of comments on the issue */ numComments: number; /** * When the issue was first seen (ISO 8601) */ firstSeen: string | null; /** * When the issue was last seen (ISO 8601) */ lastSeen: string | null; } | null; /** * Description of the monitor */ description?: string | null; /** * Monitor ID */ id: string; /** * ID of the project the monitor belongs to */ projectId: string | null; /** * Monitor name */ name: string; /** * Type of the monitor, such as metric_issue or error */ type: string; /** * IDs of the alerts connected to the monitor */ workflowIds: Array | null; /** * When the monitor was created (ISO 8601) */ dateCreated: string; /** * When the monitor was last updated (ISO 8601) */ dateUpdated: string; /** * Data sources the monitor evaluates, such as a query subscription */ dataSources: Array<{ /** * ID of the data source */ id: string; /** * ID of the organization */ organizationId: string; /** * Type of the data source */ type: 'snuba_query_subscription' | 'cron_monitor' | 'uptime_subscription'; /** * ID of the query subscription, cron monitor or uptime subscription */ sourceId: string; /** * The query subscription, cron monitor or uptime subscription, which depends on type. Null when it no longer exists */ queryObj: { /** * ID of the query subscription */ id: string; /** * Status of the subscription: 0 active, 1 creating, 2 updating, 3 deleting or 4 disabled */ status: number; /** * ID of the subscription in Snuba. Null while it's being created */ subscription: string | null; /** * Query the subscription runs */ snubaQuery: { /** * ID of the query */ id: string; /** * Dataset the query runs on, such as events or events_analytics_platform */ dataset: string; /** * Search query that filters the data */ query: string; /** * Aggregate function the query computes, such as count() */ aggregate: string; /** * Time window of the query in seconds */ timeWindow: number; /** * Environment the query is limited to. Null for all environments */ environment: string | null; /** * Event types the query includes, such as error or transaction */ eventTypes: Array; /** * How sampled data is extrapolated, unknown, none, client_and_server_weighted or server_weighted. Null when not set */ extrapolationMode: string | null; }; } | { /** * ID of the monitor */ id: string; /** * Name of the monitor */ name: string; /** * Slug that identifies the monitor in the organization */ slug: string; /** * Status of the monitor. Disabled monitors don't accept check-ins */ status: 'active' | 'disabled' | 'pending_deletion' | 'deletion_in_progress'; /** * Whether incidents are muted in all of the monitor's environments */ isMuted: boolean; /** * Whether the most recent check-in was an upsert check-in */ isUpserting: boolean; /** * Configuration of the monitor */ config: { /** * Type of schedule: crontab or interval */ schedule_type: 'crontab' | 'interval'; /** * Schedule of the monitor: a crontab string, or a [value, unit] pair for intervals, such as [1, "day"] */ schedule: string | Array; /** * How long in minutes after the expected check-in time to wait before the check-in counts as missed */ checkin_margin: number | null; /** * How long in minutes a check-in can stay in progress before it counts as failed */ max_runtime: number | null; /** * Timezone the schedule is evaluated in, as a tz database name */ timezone: string | null; /** * Number of consecutive missed or failed check-ins before an issue is created */ failure_issue_threshold: number | null; /** * Number of consecutive successful check-ins before the issue is resolved */ recovery_threshold: number | null; /** * ID of the alert rule linked to the monitor */ alert_rule_id: number | null; }; /** * When the monitor was created (ISO 8601) */ dateCreated: string; /** * Project the monitor belongs to */ project: { /** * Counts of non-transaction events per interval over the requested stats period, as [timestamp, count] pairs. Only included when a stats period is requested */ stats?: Array> | { [key: string]: number; }; /** * Counts of transactions per interval over the requested stats period, as [timestamp, count] pairs. Only included when transaction stats are requested */ transactionStats?: Array>; /** * Crash-free session rates for the current and previous stats period. Only included when session stats are requested */ sessionStats?: { /** * Crash-free rate in the current period, as a percentage. Null when there's no session data */ currentCrashFreeRate: number | null; /** * Crash-free rate in the previous period, as a percentage. Null when there's no session data */ previousCrashFreeRate: number | null; /** * Whether the project has release health (session) data */ hasHealthData: boolean; }; /** * ID of the project */ id: string; /** * Slug of the project */ slug: string; /** * Name of the project */ name: string; /** * Platform of the project */ platform: string | null; /** * When the project was created (ISO 8601) */ dateCreated: string; /** * Whether the requesting user bookmarked the project */ isBookmarked: boolean; /** * Whether the requesting user is a member of a team with access to the project */ isMember: boolean; /** * Features enabled for the project */ features: Array; /** * When the project received its first event (ISO 8601) */ firstEvent: string | null; /** * Whether the project has sent transactions */ firstTransactionEvent: boolean; /** * Scopes the requesting user has on the project through team membership and organization role */ access: Array; /** * Whether the requesting user has access to the project */ hasAccess: boolean; /** * Whether the project has sent user feedback */ hasFeedbacks: boolean; /** * Whether the project has sent feature flags */ hasFlags: boolean; /** * Whether the project has sent an event with a minified stack trace */ hasMinifiedStackTrace: boolean; /** * Whether the project has cron monitors */ hasMonitors: boolean; /** * Whether the project has sent user feedback from the user feedback widget */ hasNewFeedbacks: boolean; /** * Whether the project has sent profiles */ hasProfiles: boolean; /** * Whether the project has sent replays */ hasReplays: boolean; /** * Whether the project has sent sessions */ hasSessions: boolean; /** * Whether the project has sent HTTP request spans used by Insights */ hasInsightsHttp: boolean; /** * Whether the project has sent database spans used by Insights */ hasInsightsDb: boolean; /** * Whether the project has sent asset spans used by Insights */ hasInsightsAssets: boolean; /** * Whether the project has sent app start spans used by Insights */ hasInsightsAppStart: boolean; /** * Whether the project has sent screen load spans used by Insights */ hasInsightsScreenLoad: boolean; /** * Whether the project has sent web vitals spans used by Insights */ hasInsightsVitals: boolean; /** * Whether the project has sent cache spans used by Insights */ hasInsightsCaches: boolean; /** * Whether the project has sent queue spans used by Insights */ hasInsightsQueues: boolean; /** * Whether the project has sent AI agent spans used by Insights */ hasInsightsAgentMonitoring: boolean; /** * Whether the project has sent MCP spans used by Insights */ hasInsightsMCP: boolean; /** * Whether the project has sent logs. Always true outside sentry.io */ hasLogs: boolean; /** * Whether the project has sent trace metrics. Always true outside sentry.io */ hasTraceMetrics: boolean; /** * Whether this is the Sentry install's own internal project */ isInternal: boolean; /** * Whether the project is public */ isPublic: boolean; /** * Avatar of the project. Always a letter avatar */ avatar: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Hex color code for the project, derived from its slug unless set explicitly */ color: string; /** * Status of the project: active, deleted, or unknown */ status: string; }; /** * Environments the monitor has received check-ins for */ environments: Array<{ /** * Name of the environment */ name: string; /** * Status of the monitor in the environment */ status: 'active' | 'disabled' | 'pending_deletion' | 'deletion_in_progress' | 'ok' | 'error'; /** * Whether incidents are muted for the monitor in the environment */ isMuted: boolean; /** * When the monitor was created (ISO 8601) */ dateCreated: string; /** * When the most recent check-in was received, not counting missed check-ins (ISO 8601) */ lastCheckIn: string | null; /** * When the next check-in is expected (ISO 8601) */ nextCheckIn: string | null; /** * Latest time the next check-in can arrive before it counts as missed (ISO 8601) */ nextCheckInLatest: string | null; /** * Unresolved incident for the monitor in the environment. Null when there's none */ activeIncident: { /** * When the incident started (ISO 8601) */ startingTimestamp: string | null; /** * When the incident was resolved (ISO 8601) */ resolvingTimestamp: string | null; /** * Details of the broken monitor notice for the incident. Null when there's none */ brokenNotice: { /** * When users were notified that the monitor environment looks broken (ISO 8601) */ userNotifiedTimestamp: string | null; /** * When the broken monitor environment was muted (ISO 8601) */ environmentMutedTimestamp: string | null; } | null; } | null; }>; /** * Team or user that owns the monitor. Null when there's no owner */ owner: { /** * Whether the actor is a user or a team */ type: 'user' | 'team'; /** * ID of the user or team */ id: string; /** * Display name of the user, or slug of the team */ name: string; /** * Email address of the user. Only set for users */ email?: string; } | null; } | { /** * URL the check requests */ url: string; /** * HTTP method of the check request, such as GET */ method: string; /** * Body of the check request. Null when it has none */ body: string | null; /** * Headers of the check request, each a name and value pair */ headers: Array>; /** * How often the check runs, in seconds */ intervalSeconds: number; /** * How long the check waits for a response, in milliseconds */ timeoutMs: number; /** * Whether the check request samples a trace */ traceSampling: boolean; /** * Whether failed checks capture the response body and headers */ responseCaptureEnabled: boolean; /** * Assertion the response must pass. Null when the check has none */ assertion: { /** * All possible assertion operations */ root?: { /** * Operation, always and */ op?: 'and'; /** * Operations that must all pass */ children?: Array<{ [key: string]: unknown; }>; } | { /** * Operation, always or */ op?: 'or'; /** * Operations of which at least one must pass */ children?: Array<{ [key: string]: unknown; }>; } | { /** * Operation, always not */ op?: 'not'; /** * All possible assertion operations. Its fields are the same as the one this is inside, so they're left out here. */ operand?: { [key: string]: unknown; }; } | { /** * HTTP status code to compare the response status code against */ value?: number; /** * The kind of comparison to make. */ operator?: 'always' | 'never' | 'less_than' | 'greater_than' | 'equals' | 'not_equals'; } | { /** * Operation, always json_path */ op?: 'json_path'; /** * JSONPath query to run on the response body */ value?: string; /** * The kind of comparison to make. */ operator?: 'always' | 'never' | 'less_than' | 'greater_than' | 'equals' | 'not_equals' | null; /** * An operand for comparison against json path values */ operand?: { /** * Kind of operand, always glob */ header_op?: 'glob'; /** * The actual glob pattern, as a string */ pattern?: { /** * Glob pattern */ value?: string; }; } | { /** * Kind of operand, always literal */ jsonpath_op?: 'literal'; /** * Value to compare the query result against */ value?: string; } | { /** * Kind of operand, always none */ header_op?: 'none'; } | null; } | { /** * The kind of comparison to make. */ key_op?: 'always' | 'never' | 'less_than' | 'greater_than' | 'equals' | 'not_equals'; /** * A operand for comparison against HTTP header keys and values */ key_operand?: { /** * Kind of operand, always glob */ header_op?: 'glob'; /** * The actual glob pattern, as a string */ pattern?: { /** * Glob pattern */ value?: string; }; } | { /** * Kind of operand, always literal */ header_op?: 'literal'; /** * Value to compare the header key or value against */ value?: string; } | { /** * Kind of operand, always none */ header_op?: 'none'; }; /** * The kind of comparison to make. */ value_op?: 'always' | 'never' | 'less_than' | 'greater_than' | 'equals' | 'not_equals'; /** * A operand for comparison against HTTP header keys and values */ value_operand?: { /** * Kind of operand, always glob */ header_op?: 'glob'; /** * The actual glob pattern, as a string */ pattern?: { /** * Glob pattern */ value?: string; }; } | { /** * Kind of operand, always literal */ header_op?: 'literal'; /** * Value to compare the header key or value against */ value?: string; } | { /** * Kind of operand, always none */ header_op?: 'none'; }; }; } | null; } | null; }> | null; /** * Conditions that decide the monitor's status */ conditionGroup: { /** * ID of the condition group */ id?: string; /** * ID of the organization */ organizationId?: string; /** * How the conditions in the group combine */ logicType?: 'any' | 'any-short' | 'all' | 'none'; /** * Conditions in the group */ conditions?: Array<{ /** * ID of the condition */ id: string; /** * Type of the condition, such as first_seen_event or level */ type: string; /** * Value the condition compares against, which depends on its type */ comparison: number | string | boolean | { /** * Whether the issue must be older or newer than the age */ comparisonType: 'older' | 'newer'; /** * Age of the issue, in units of time */ value: number; /** * Unit of the age */ time: 'minute' | 'hour' | 'day' | 'week'; } | { /** * How sensitive anomaly detection is */ sensitivity: 'low' | 'medium' | 'high'; /** * Seasonal pattern that anomaly detection accounts for */ seasonality: 'auto' | 'hourly' | 'daily' | 'weekly' | 'hourly_daily' | 'hourly_weekly' | 'hourly_daily_weekly' | 'daily_weekly'; /** * Anomalies to detect: 0 above, 1 below, 2 above or below the expected value */ thresholdType: 0 | 1 | 2; } | { /** * Who the issue must be assigned to */ targetType: 'Unassigned' | 'Team' | 'Member'; /** * ID of the team or member. Not set for Unassigned */ targetIdentifier?: number | string; } | { /** * Event attribute to match, such as message or user.email */ attribute?: 'message' | 'platform' | 'environment' | 'type' | 'error.handled' | 'error.unhandled' | 'error.main_thread' | 'exception.type' | 'exception.value' | 'user.id' | 'user.email' | 'user.username' | 'user.ip_address' | 'http.method' | 'http.url' | 'http.status_code' | 'sdk.name' | 'stacktrace.code' | 'stacktrace.module' | 'stacktrace.filename' | 'stacktrace.abs_path' | 'stacktrace.package' | 'unreal.crash_type' | 'app.in_foreground' | 'os.distribution_name' | 'os.distribution_version' | 'symbolicated_in_app' | 'ota_updates.channel' | 'ota_updates.runtime_version' | 'ota_updates.update_id'; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the attribute against. Not set for is and ns */ value?: string; } | number | { /** * Time window to count in, such as 1h */ interval: '1m' | '5m' | '15m' | '1h' | '1d' | '1w' | '30d'; /** * Number of events in the interval that meets the condition */ value: number; /** * Tag or attribute filters that events must match to count */ filters?: Array<{ /** * Tag key to match */ key?: string; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the tag or attribute against. Not set for is and ns */ value?: string; } | { /** * Event attribute to match, such as message or user.email */ attribute?: 'message' | 'platform' | 'environment' | 'type' | 'error.handled' | 'error.unhandled' | 'error.main_thread' | 'exception.type' | 'exception.value' | 'user.id' | 'user.email' | 'user.username' | 'user.ip_address' | 'http.method' | 'http.url' | 'http.status_code' | 'sdk.name' | 'stacktrace.code' | 'stacktrace.module' | 'stacktrace.filename' | 'stacktrace.abs_path' | 'stacktrace.package' | 'unreal.crash_type' | 'app.in_foreground' | 'os.distribution_name' | 'os.distribution_version' | 'symbolicated_in_app' | 'ota_updates.channel' | 'ota_updates.runtime_version' | 'ota_updates.update_id'; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the tag or attribute against. Not set for is and ns */ value?: string; }>; } | { /** * Time window to count in, such as 1h */ interval: '1m' | '5m' | '15m' | '1h' | '1d' | '1w' | '30d'; /** * Percent increase in events over the comparison interval that meets the condition */ value: number; /** * Earlier time window to compare the count against, such as 1w */ comparisonInterval: '5m' | '15m' | '1h' | '1d' | '1w' | '30d'; /** * Tag or attribute filters that events must match to count */ filters?: Array<{ /** * Tag key to match */ key?: string; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the tag or attribute against. Not set for is and ns */ value?: string; } | { /** * Event attribute to match, such as message or user.email */ attribute?: 'message' | 'platform' | 'environment' | 'type' | 'error.handled' | 'error.unhandled' | 'error.main_thread' | 'exception.type' | 'exception.value' | 'user.id' | 'user.email' | 'user.username' | 'user.ip_address' | 'http.method' | 'http.url' | 'http.status_code' | 'sdk.name' | 'stacktrace.code' | 'stacktrace.module' | 'stacktrace.filename' | 'stacktrace.abs_path' | 'stacktrace.package' | 'unreal.crash_type' | 'app.in_foreground' | 'os.distribution_name' | 'os.distribution_version' | 'symbolicated_in_app' | 'ota_updates.channel' | 'ota_updates.runtime_version' | 'ota_updates.update_id'; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the tag or attribute against. Not set for is and ns */ value?: string; }>; } | { /** * Time window to count in, such as 1h */ interval: '1m' | '5m' | '15m' | '1h' | '1d' | '1w' | '30d'; /** * Number of affected users in the interval that meets the condition */ value: number; /** * Tag or attribute filters that events must match to count */ filters?: Array<{ /** * Tag key to match */ key?: string; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the tag or attribute against. Not set for is and ns */ value?: string; } | { /** * Event attribute to match, such as message or user.email */ attribute?: 'message' | 'platform' | 'environment' | 'type' | 'error.handled' | 'error.unhandled' | 'error.main_thread' | 'exception.type' | 'exception.value' | 'user.id' | 'user.email' | 'user.username' | 'user.ip_address' | 'http.method' | 'http.url' | 'http.status_code' | 'sdk.name' | 'stacktrace.code' | 'stacktrace.module' | 'stacktrace.filename' | 'stacktrace.abs_path' | 'stacktrace.package' | 'unreal.crash_type' | 'app.in_foreground' | 'os.distribution_name' | 'os.distribution_version' | 'symbolicated_in_app' | 'ota_updates.channel' | 'ota_updates.runtime_version' | 'ota_updates.update_id'; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the tag or attribute against. Not set for is and ns */ value?: string; }>; } | { /** * Time window to count in, such as 1h */ interval: '1m' | '5m' | '15m' | '1h' | '1d' | '1w' | '30d'; /** * Percent increase in affected users over the comparison interval that meets the condition */ value: number; /** * Earlier time window to compare the count against, such as 1w */ comparisonInterval: '5m' | '15m' | '1h' | '1d' | '1w' | '30d'; /** * Tag or attribute filters that events must match to count */ filters?: Array<{ /** * Tag key to match */ key?: string; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the tag or attribute against. Not set for is and ns */ value?: string; } | { /** * Event attribute to match, such as message or user.email */ attribute?: 'message' | 'platform' | 'environment' | 'type' | 'error.handled' | 'error.unhandled' | 'error.main_thread' | 'exception.type' | 'exception.value' | 'user.id' | 'user.email' | 'user.username' | 'user.ip_address' | 'http.method' | 'http.url' | 'http.status_code' | 'sdk.name' | 'stacktrace.code' | 'stacktrace.module' | 'stacktrace.filename' | 'stacktrace.abs_path' | 'stacktrace.package' | 'unreal.crash_type' | 'app.in_foreground' | 'os.distribution_name' | 'os.distribution_version' | 'symbolicated_in_app' | 'ota_updates.channel' | 'ota_updates.runtime_version' | 'ota_updates.update_id'; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the tag or attribute against. Not set for is and ns */ value?: string; }>; } | { /** * ID of the issue category */ value: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 19; /** * Whether the issue must be in the category or not. Defaults to true */ include?: boolean; } | { /** * Number of times the issue must have occurred */ value: number; } | 25 | 50 | 75 | 1 | { /** * Slug of the issue type */ value: 'performance_slow_db_query' | 'performance_render_blocking_asset_span' | 'performance_n_plus_one_db_queries' | 'performance_n_plus_one_db_queries_experimental' | 'performance_consecutive_db_queries' | 'performance_file_io_main_thread' | 'performance_consecutive_http' | 'performance_n_plus_one_api_calls' | 'performance_n_plus_one_api_calls_experimental' | 'performance_m_n_plus_one_db_queries' | 'performance_m_n_plus_one_db_queries_experimental' | 'performance_uncompressed_assets' | 'performance_db_main_thread' | 'performance_large_http_payload' | 'performance_http_overhead' | 'performance_p95_endpoint_regression' | 'performance_streamed_spans_exp' | 'db_query_injection_vulnerability' | 'query_injection_vulnerability' | 'profile_file_io_main_thread' | 'profile_image_decode_main_thread' | 'profile_json_decode_main_thread' | 'profile_regex_main_thread' | 'profile_frame_drop' | 'profile_function_regression' | 'llm_detected_experimental' | 'llm_detected_experimental_v2' | 'ai_detected_http' | 'ai_detected_db' | 'ai_detected_runtime_performance' | 'ai_detected_security' | 'ai_detected_code_health' | 'ai_detected_general' | 'replay_click_rage' | 'replay_hydration_error' | 'feedback' | 'web_vitals' | 'issue_stream' | 'metric_issue' | 'error' | 'uptime_domain_failure' | 'send-test-notification' | 'monitor_check_in_failure' | 'sourcemap_configuration' | 'low_value_span_configuration' | 'preprod_size_analysis'; /** * Whether the issue must be of the type or not. Defaults to true */ include?: boolean; } | { /** * Whether to compare against the oldest or newest adopted release */ releaseAgeType: 'oldest' | 'newest'; /** * Whether the event's release must be older or newer than that release */ ageComparison: 'older' | 'newer'; /** * Environment the release was adopted in */ environment: string; } | { /** * Event level: 0 sample, 10 debug, 20 info, 30 warning, 40 error, 50 fatal */ level: 0 | 10 | 20 | 30 | 40 | 50; /** * How to compare the event's level: eq, gte or lte */ match: 'eq' | 'gte' | 'lte'; } | { /** * Time window to count in, such as 1h */ interval: '1m' | '5m' | '10m' | '30m' | '1h'; /** * Percent of sessions affected in the interval that meets the condition */ value: number; /** * Tag or attribute filters that events must match to count */ filters?: Array<{ /** * Tag key to match */ key?: string; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the tag or attribute against. Not set for is and ns */ value?: string; } | { /** * Event attribute to match, such as message or user.email */ attribute?: 'message' | 'platform' | 'environment' | 'type' | 'error.handled' | 'error.unhandled' | 'error.main_thread' | 'exception.type' | 'exception.value' | 'user.id' | 'user.email' | 'user.username' | 'user.ip_address' | 'http.method' | 'http.url' | 'http.status_code' | 'sdk.name' | 'stacktrace.code' | 'stacktrace.module' | 'stacktrace.filename' | 'stacktrace.abs_path' | 'stacktrace.package' | 'unreal.crash_type' | 'app.in_foreground' | 'os.distribution_name' | 'os.distribution_version' | 'symbolicated_in_app' | 'ota_updates.channel' | 'ota_updates.runtime_version' | 'ota_updates.update_id'; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the tag or attribute against. Not set for is and ns */ value?: string; }>; } | { /** * Time window to count in, such as 1h */ interval: '1m' | '5m' | '10m' | '30m' | '1h'; /** * Percent increase in affected sessions over the comparison interval that meets the condition */ value: number; /** * Earlier time window to compare the count against, such as 1w */ comparisonInterval: '5m' | '15m' | '1h' | '1d' | '1w' | '30d'; /** * Tag or attribute filters that events must match to count */ filters?: Array<{ /** * Tag key to match */ key?: string; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the tag or attribute against. Not set for is and ns */ value?: string; } | { /** * Event attribute to match, such as message or user.email */ attribute?: 'message' | 'platform' | 'environment' | 'type' | 'error.handled' | 'error.unhandled' | 'error.main_thread' | 'exception.type' | 'exception.value' | 'user.id' | 'user.email' | 'user.username' | 'user.ip_address' | 'http.method' | 'http.url' | 'http.status_code' | 'sdk.name' | 'stacktrace.code' | 'stacktrace.module' | 'stacktrace.filename' | 'stacktrace.abs_path' | 'stacktrace.package' | 'unreal.crash_type' | 'app.in_foreground' | 'os.distribution_name' | 'os.distribution_version' | 'symbolicated_in_app' | 'ota_updates.channel' | 'ota_updates.runtime_version' | 'ota_updates.update_id'; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the tag or attribute against. Not set for is and ns */ value?: string; }>; } | Array<'rca_completed' | 'solution_completed' | 'coding_completed' | 'pr_ready_for_review'> | { /** * Tag key to match */ key?: string; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the tag against. Not set for is and ns */ value?: string; }; /** * Result the condition produces when it matches: true for alert conditions, or the priority level for monitor conditions */ conditionResult: boolean | number | number | null; }>; /** * Actions to fire when the conditions pass */ actions?: Array<{ /** * ID of the action */ id?: string; /** * Type of the action */ type?: 'slack' | 'slack_staging' | 'msteams' | 'discord' | 'pagerduty' | 'opsgenie' | 'github' | 'github_enterprise' | 'jira' | 'jira_server' | 'vsts' | 'email' | 'sentry_app' | 'plugin' | 'webhook' | 'seer_investigation'; /** * ID of the integration the action uses. Null for actions without one */ integrationId?: string | null; /** * Extra data for the action, which depends on its type */ data?: { /** * Tags to add to the message */ tags?: string; } | { /** * The fallthrough type for issue owners email notifications */ fallthroughType?: 'AllMembers' | 'ActiveMembers' | 'NoOne'; } | { /** * Dynamic form fields from customer configuration */ dynamicFormFields?: Array<{ /** * Name of the field */ name?: string; /** * Label of the field */ label?: string; /** * Type of the field, such as select or text */ type?: string; }>; /** * Additional fields that aren't part of standard fields */ additionalFields: { /** * Repository to create the issue in, as owner/name */ repo: string; /** * Labels to add to the issue */ labels?: Array | null; /** * User to assign the issue to */ assignee?: string | null; [key: string]: unknown; }; } | { /** * Dynamic form fields from customer configuration */ dynamicFormFields?: Array<{ /** * Name of the field */ name?: string; /** * Label of the field */ label?: string; /** * Type of the field, such as select or text */ type?: string; }>; /** * Additional fields that aren't part of standard fields */ additionalFields?: { [key: string]: string | null | number | boolean | Array; }; } | { [key: string]: never; } | { /** * The priority of the opsgenie action */ priority?: 'P1' | 'P2' | 'P3' | 'P4' | 'P5'; } | { /** * The priority of the pagerduty action */ priority?: 'default' | 'critical' | 'warning' | 'error' | 'info'; } | { [key: string]: string; } | { /** * Prompt the investigation runs */ prompt?: string; /** * Seer skill the investigation runs, instead of a prompt */ skill?: 'agentic_triage'; } | { /** * Values of the Sentry App's alert rule settings form, each with a name and value */ settings?: Array; } | { /** * Tags to add to the message */ tags?: string; /** * Notes to add to the message */ notes?: string; }; /** * Configuration of the action, such as targetType and targetIdentifier */ config?: { /** * ID of the target, such as a channel, user or team ID */ targetIdentifier: string; /** * Display name of the target, such as a channel name */ targetDisplay?: string | null; /** * Kind of target the action notifies, such as specific, user or team */ targetType: 'specific'; } | { /** * ID of the target, such as a channel, user or team ID */ targetIdentifier?: string | null; /** * Display name of the target, such as a channel name */ targetDisplay?: null; /** * Kind of target the action notifies, such as specific, user or team */ targetType: 'user' | 'team' | 'issue_owners'; } | { /** * ID of the target, such as a channel, user or team ID */ targetIdentifier?: null; /** * Display name of the target, such as a channel name */ targetDisplay?: null; /** * Kind of target the action notifies, such as specific, user or team */ targetType?: 'specific'; } | { /** * ID of the target, such as a channel, user or team ID */ targetIdentifier?: string; /** * Display name of the target, such as a channel name */ targetDisplay: string; /** * Kind of target the action notifies, such as specific, user or team */ targetType: 'specific'; } | { /** * ID of the target, such as a channel, user or team ID */ targetIdentifier: string; /** * Display name of the target, such as a channel name */ targetDisplay?: string | null; /** * Kind of target the action notifies, such as specific, user or team */ targetType: 'specific'; } | { /** * ID of the target, such as a channel, user or team ID */ targetIdentifier?: string | null; /** * Display name of the target, such as a channel name */ targetDisplay?: string | null; /** * Kind of target the action notifies, such as specific, user or team */ targetType?: null; } | { [key: string]: never; } | { /** * ID of the target, such as a channel, user or team ID */ targetIdentifier: string; /** * Display name of the target, such as a channel name */ targetDisplay?: string | null; /** * Kind of target the action notifies, such as specific, user or team */ targetType: 'sentry_app'; } | { /** * ID of the target, such as a channel, user or team ID */ targetIdentifier?: string; /** * Display name of the target, such as a channel name */ targetDisplay?: string; /** * Kind of target the action notifies, such as specific, user or team */ targetType: 'specific'; } | { /** * ID of the target, such as a channel, user or team ID */ targetIdentifier?: string; /** * Display name of the target, such as a channel name */ targetDisplay?: null; /** * Kind of target the action notifies, such as specific, user or team */ targetType?: null; }; /** * Status of the action */ status?: 'active' | 'disabled' | 'pending_deletion' | 'deletion_in_progress'; }>; } | null; /** * Configuration of the monitor, which depends on its type */ config: { [key: string]: unknown; } | { /** * Fingerprinting rules of the project */ 'sentry:fingerprintingRules'?: string; /** * Hours of inactivity after which the project's issues resolve. 0 to never */ 'sentry:resolveAge'?: number; } | { /** * ID of the organization */ organizationId?: number; } | { /** * For percent detection, how far back the compared window is, in seconds */ comparisonDelta?: 300 | 900 | 3600 | 86400 | 604800 | 2592000; /** * How the monitor detects issues: static thresholds, percent change or dynamic anomalies */ detectionType: 'static' | 'percent' | 'dynamic'; } | { /** * The type of threshold to apply */ thresholdType: 'absolute_diff' | 'absolute' | 'relative_diff'; /** * The measurement to track */ measurement: 'install_size' | 'download_size'; /** * Search query to filter which artifacts are monitored */ query?: string; } | { /** * How the monitor was created: 1 manually, 2 auto-detected and onboarding, 3 auto-detected and active */ mode: 1 | 2 | 3; /** * Environment of the monitor. Null for none */ environment: string | null; /** * Number of consecutive successful checks required to mark monitor as recovered */ recoveryThreshold: number; /** * Number of consecutive failed checks required to mark monitor as down */ downtimeThreshold: number; }; /** * Whether the monitor is enabled */ enabled: boolean; }>; }; export type UpdateOrganizationDetectorsResponse = UpdateOrganizationDetectorsResponses[keyof UpdateOrganizationDetectorsResponses]; export type DeleteOrganizationDetectorData = { body?: never; path: { /** * The ID or slug of the organization the resource belongs to. */ organization_id_or_slug: string; /** * The ID of the monitor you'd like to query. */ detector_id: number; }; query?: never; url: '/organizations/{organization_id_or_slug}/detectors/{detector_id}/'; }; export type DeleteOrganizationDetectorErrors = { /** * Forbidden */ 403: unknown; /** * Not Found */ 404: unknown; }; export type DeleteOrganizationDetectorResponses = { /** * No Content */ 204: void; }; export type DeleteOrganizationDetectorResponse = DeleteOrganizationDetectorResponses[keyof DeleteOrganizationDetectorResponses]; export type GetOrganizationDetectorData = { body?: never; path: { /** * The ID or slug of the organization the resource belongs to. */ organization_id_or_slug: string; /** * The ID of the monitor you'd like to query. */ detector_id: number; }; query?: never; url: '/organizations/{organization_id_or_slug}/detectors/{detector_id}/'; }; export type GetOrganizationDetectorErrors = { /** * Bad Request */ 400: unknown; /** * Unauthorized */ 401: unknown; /** * Forbidden */ 403: unknown; /** * Not Found */ 404: unknown; }; export type GetOrganizationDetectorResponses = { 200: { /** * Team or user that owns the monitor */ owner?: { /** * Whether the actor is a user or a team */ type: 'user' | 'team'; /** * ID of the user or team */ id: string; /** * Display name of the user, or slug of the team */ name: string; /** * Email address of the user. Only set for users */ email?: string; } | null; /** * ID of the user who created the monitor */ createdBy?: string | null; /** * Latest issue the monitor created */ latestGroup?: { /** * ID of the issue */ id: string; /** * Title of the issue */ title: string; /** * Function or module where the issue occurs */ culprit: string | null; /** * Short ID of the issue, such as PROJECT-1A */ shortId: string | null; /** * Severity level of the issue */ level: 'sample' | 'debug' | 'info' | 'warning' | 'error' | 'fatal' | 'unknown'; /** * Issue status */ status: 'resolved' | 'ignored' | 'pending_deletion' | 'pending_merge' | 'reprocessing' | 'unresolved'; /** * Substatus of the issue, such as ongoing, regressed or escalating */ substatus: 'archived_until_escalating' | 'archived_until_condition_met' | 'archived_forever' | 'escalating' | 'ongoing' | 'regressed' | 'new' | null; /** * Platform of the issue's events */ platform: string | null; /** * Project the issue belongs to */ project: { /** * ID of the project */ id: string; /** * Name of the project */ name: string; /** * Slug of the project */ slug: string; /** * Platform of the project */ platform: string | null; }; /** * Event type of the issue, such as error or default */ type: 'default' | 'error' | 'csp' | 'nel' | 'hpkp' | 'expectct' | 'expectstaple' | 'transaction' | 'generic' | 'feedback'; /** * Issue type, such as error or performance_n_plus_one_db_queries */ issueType: string; /** * Issue category, such as error or performance */ issueCategory: string; /** * Issue metadata */ metadata: { /** * Title of default and issue platform events */ title?: string; /** * Exception value, or the subtitle of an issue */ value?: string; /** * Exception type of error events */ type?: string; /** * Whether the SDK fabricated the exception to carry a stacktrace, so its type is a platform label rather than what went wrong */ synthetic?: boolean; /** * File of the frame where the error happened */ filename?: string; /** * Function of the frame where the error happened */ function?: string; /** * Message of default, security and feedback events */ message?: string; /** * URI that a CSP report blocked */ uri?: string; /** * CSP directive that was violated */ directive?: string; /** * Host name of HPKP, Expect-CT and Expect-Staple reports */ origin?: string; /** * Name of the person who sent user feedback */ name?: string; /** * Email of the person who sent user feedback */ contact_email?: string; /** * Where user feedback came from, such as a widget */ source?: string; /** * Whether the stacktrace has in-app frames, system frames or both */ in_app_frame_mix?: string; /** * Whether a crash report was dropped because the issue already stores the most allowed */ stripped_crash?: boolean; /** * SDK of the issue's first event */ sdk?: { /** * Name of the SDK, or unknown */ name: string; /** * Name of the SDK, normalized for grouping */ name_normalized: string; }; /** * Severity score of the issue's first event */ severity?: number; /** * Why the severity score is what it is */ severity_reason?: string; /** * Priority the issue was created with */ initial_priority?: number; }; /** * Number of comments on the issue */ numComments: number; /** * When the issue was first seen (ISO 8601) */ firstSeen: string | null; /** * When the issue was last seen (ISO 8601) */ lastSeen: string | null; } | null; /** * Description of the monitor */ description?: string | null; /** * Monitor ID */ id: string; /** * ID of the project the monitor belongs to */ projectId: string | null; /** * Monitor name */ name: string; /** * Type of the monitor, such as metric_issue or error */ type: string; /** * IDs of the alerts connected to the monitor */ workflowIds: Array | null; /** * When the monitor was created (ISO 8601) */ dateCreated: string; /** * When the monitor was last updated (ISO 8601) */ dateUpdated: string; /** * Data sources the monitor evaluates, such as a query subscription */ dataSources: Array<{ /** * ID of the data source */ id: string; /** * ID of the organization */ organizationId: string; /** * Type of the data source */ type: 'snuba_query_subscription' | 'cron_monitor' | 'uptime_subscription'; /** * ID of the query subscription, cron monitor or uptime subscription */ sourceId: string; /** * The query subscription, cron monitor or uptime subscription, which depends on type. Null when it no longer exists */ queryObj: { /** * ID of the query subscription */ id: string; /** * Status of the subscription: 0 active, 1 creating, 2 updating, 3 deleting or 4 disabled */ status: number; /** * ID of the subscription in Snuba. Null while it's being created */ subscription: string | null; /** * Query the subscription runs */ snubaQuery: { /** * ID of the query */ id: string; /** * Dataset the query runs on, such as events or events_analytics_platform */ dataset: string; /** * Search query that filters the data */ query: string; /** * Aggregate function the query computes, such as count() */ aggregate: string; /** * Time window of the query in seconds */ timeWindow: number; /** * Environment the query is limited to. Null for all environments */ environment: string | null; /** * Event types the query includes, such as error or transaction */ eventTypes: Array; /** * How sampled data is extrapolated, unknown, none, client_and_server_weighted or server_weighted. Null when not set */ extrapolationMode: string | null; }; } | { /** * ID of the monitor */ id: string; /** * Name of the monitor */ name: string; /** * Slug that identifies the monitor in the organization */ slug: string; /** * Status of the monitor. Disabled monitors don't accept check-ins */ status: 'active' | 'disabled' | 'pending_deletion' | 'deletion_in_progress'; /** * Whether incidents are muted in all of the monitor's environments */ isMuted: boolean; /** * Whether the most recent check-in was an upsert check-in */ isUpserting: boolean; /** * Configuration of the monitor */ config: { /** * Type of schedule: crontab or interval */ schedule_type: 'crontab' | 'interval'; /** * Schedule of the monitor: a crontab string, or a [value, unit] pair for intervals, such as [1, "day"] */ schedule: string | Array; /** * How long in minutes after the expected check-in time to wait before the check-in counts as missed */ checkin_margin: number | null; /** * How long in minutes a check-in can stay in progress before it counts as failed */ max_runtime: number | null; /** * Timezone the schedule is evaluated in, as a tz database name */ timezone: string | null; /** * Number of consecutive missed or failed check-ins before an issue is created */ failure_issue_threshold: number | null; /** * Number of consecutive successful check-ins before the issue is resolved */ recovery_threshold: number | null; /** * ID of the alert rule linked to the monitor */ alert_rule_id: number | null; }; /** * When the monitor was created (ISO 8601) */ dateCreated: string; /** * Project the monitor belongs to */ project: { /** * Counts of non-transaction events per interval over the requested stats period, as [timestamp, count] pairs. Only included when a stats period is requested */ stats?: Array> | { [key: string]: number; }; /** * Counts of transactions per interval over the requested stats period, as [timestamp, count] pairs. Only included when transaction stats are requested */ transactionStats?: Array>; /** * Crash-free session rates for the current and previous stats period. Only included when session stats are requested */ sessionStats?: { /** * Crash-free rate in the current period, as a percentage. Null when there's no session data */ currentCrashFreeRate: number | null; /** * Crash-free rate in the previous period, as a percentage. Null when there's no session data */ previousCrashFreeRate: number | null; /** * Whether the project has release health (session) data */ hasHealthData: boolean; }; /** * ID of the project */ id: string; /** * Slug of the project */ slug: string; /** * Name of the project */ name: string; /** * Platform of the project */ platform: string | null; /** * When the project was created (ISO 8601) */ dateCreated: string; /** * Whether the requesting user bookmarked the project */ isBookmarked: boolean; /** * Whether the requesting user is a member of a team with access to the project */ isMember: boolean; /** * Features enabled for the project */ features: Array; /** * When the project received its first event (ISO 8601) */ firstEvent: string | null; /** * Whether the project has sent transactions */ firstTransactionEvent: boolean; /** * Scopes the requesting user has on the project through team membership and organization role */ access: Array; /** * Whether the requesting user has access to the project */ hasAccess: boolean; /** * Whether the project has sent user feedback */ hasFeedbacks: boolean; /** * Whether the project has sent feature flags */ hasFlags: boolean; /** * Whether the project has sent an event with a minified stack trace */ hasMinifiedStackTrace: boolean; /** * Whether the project has cron monitors */ hasMonitors: boolean; /** * Whether the project has sent user feedback from the user feedback widget */ hasNewFeedbacks: boolean; /** * Whether the project has sent profiles */ hasProfiles: boolean; /** * Whether the project has sent replays */ hasReplays: boolean; /** * Whether the project has sent sessions */ hasSessions: boolean; /** * Whether the project has sent HTTP request spans used by Insights */ hasInsightsHttp: boolean; /** * Whether the project has sent database spans used by Insights */ hasInsightsDb: boolean; /** * Whether the project has sent asset spans used by Insights */ hasInsightsAssets: boolean; /** * Whether the project has sent app start spans used by Insights */ hasInsightsAppStart: boolean; /** * Whether the project has sent screen load spans used by Insights */ hasInsightsScreenLoad: boolean; /** * Whether the project has sent web vitals spans used by Insights */ hasInsightsVitals: boolean; /** * Whether the project has sent cache spans used by Insights */ hasInsightsCaches: boolean; /** * Whether the project has sent queue spans used by Insights */ hasInsightsQueues: boolean; /** * Whether the project has sent AI agent spans used by Insights */ hasInsightsAgentMonitoring: boolean; /** * Whether the project has sent MCP spans used by Insights */ hasInsightsMCP: boolean; /** * Whether the project has sent logs. Always true outside sentry.io */ hasLogs: boolean; /** * Whether the project has sent trace metrics. Always true outside sentry.io */ hasTraceMetrics: boolean; /** * Whether this is the Sentry install's own internal project */ isInternal: boolean; /** * Whether the project is public */ isPublic: boolean; /** * Avatar of the project. Always a letter avatar */ avatar: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Hex color code for the project, derived from its slug unless set explicitly */ color: string; /** * Status of the project: active, deleted, or unknown */ status: string; }; /** * Environments the monitor has received check-ins for */ environments: Array<{ /** * Name of the environment */ name: string; /** * Status of the monitor in the environment */ status: 'active' | 'disabled' | 'pending_deletion' | 'deletion_in_progress' | 'ok' | 'error'; /** * Whether incidents are muted for the monitor in the environment */ isMuted: boolean; /** * When the monitor was created (ISO 8601) */ dateCreated: string; /** * When the most recent check-in was received, not counting missed check-ins (ISO 8601) */ lastCheckIn: string | null; /** * When the next check-in is expected (ISO 8601) */ nextCheckIn: string | null; /** * Latest time the next check-in can arrive before it counts as missed (ISO 8601) */ nextCheckInLatest: string | null; /** * Unresolved incident for the monitor in the environment. Null when there's none */ activeIncident: { /** * When the incident started (ISO 8601) */ startingTimestamp: string | null; /** * When the incident was resolved (ISO 8601) */ resolvingTimestamp: string | null; /** * Details of the broken monitor notice for the incident. Null when there's none */ brokenNotice: { /** * When users were notified that the monitor environment looks broken (ISO 8601) */ userNotifiedTimestamp: string | null; /** * When the broken monitor environment was muted (ISO 8601) */ environmentMutedTimestamp: string | null; } | null; } | null; }>; /** * Team or user that owns the monitor. Null when there's no owner */ owner: { /** * Whether the actor is a user or a team */ type: 'user' | 'team'; /** * ID of the user or team */ id: string; /** * Display name of the user, or slug of the team */ name: string; /** * Email address of the user. Only set for users */ email?: string; } | null; } | { /** * URL the check requests */ url: string; /** * HTTP method of the check request, such as GET */ method: string; /** * Body of the check request. Null when it has none */ body: string | null; /** * Headers of the check request, each a name and value pair */ headers: Array>; /** * How often the check runs, in seconds */ intervalSeconds: number; /** * How long the check waits for a response, in milliseconds */ timeoutMs: number; /** * Whether the check request samples a trace */ traceSampling: boolean; /** * Whether failed checks capture the response body and headers */ responseCaptureEnabled: boolean; /** * Assertion the response must pass. Null when the check has none */ assertion: { /** * All possible assertion operations */ root?: { /** * Operation, always and */ op?: 'and'; /** * Operations that must all pass */ children?: Array<{ [key: string]: unknown; }>; } | { /** * Operation, always or */ op?: 'or'; /** * Operations of which at least one must pass */ children?: Array<{ [key: string]: unknown; }>; } | { /** * Operation, always not */ op?: 'not'; /** * All possible assertion operations. Its fields are the same as the one this is inside, so they're left out here. */ operand?: { [key: string]: unknown; }; } | { /** * HTTP status code to compare the response status code against */ value?: number; /** * The kind of comparison to make. */ operator?: 'always' | 'never' | 'less_than' | 'greater_than' | 'equals' | 'not_equals'; } | { /** * Operation, always json_path */ op?: 'json_path'; /** * JSONPath query to run on the response body */ value?: string; /** * The kind of comparison to make. */ operator?: 'always' | 'never' | 'less_than' | 'greater_than' | 'equals' | 'not_equals' | null; /** * An operand for comparison against json path values */ operand?: { /** * Kind of operand, always glob */ header_op?: 'glob'; /** * The actual glob pattern, as a string */ pattern?: { /** * Glob pattern */ value?: string; }; } | { /** * Kind of operand, always literal */ jsonpath_op?: 'literal'; /** * Value to compare the query result against */ value?: string; } | { /** * Kind of operand, always none */ header_op?: 'none'; } | null; } | { /** * The kind of comparison to make. */ key_op?: 'always' | 'never' | 'less_than' | 'greater_than' | 'equals' | 'not_equals'; /** * A operand for comparison against HTTP header keys and values */ key_operand?: { /** * Kind of operand, always glob */ header_op?: 'glob'; /** * The actual glob pattern, as a string */ pattern?: { /** * Glob pattern */ value?: string; }; } | { /** * Kind of operand, always literal */ header_op?: 'literal'; /** * Value to compare the header key or value against */ value?: string; } | { /** * Kind of operand, always none */ header_op?: 'none'; }; /** * The kind of comparison to make. */ value_op?: 'always' | 'never' | 'less_than' | 'greater_than' | 'equals' | 'not_equals'; /** * A operand for comparison against HTTP header keys and values */ value_operand?: { /** * Kind of operand, always glob */ header_op?: 'glob'; /** * The actual glob pattern, as a string */ pattern?: { /** * Glob pattern */ value?: string; }; } | { /** * Kind of operand, always literal */ header_op?: 'literal'; /** * Value to compare the header key or value against */ value?: string; } | { /** * Kind of operand, always none */ header_op?: 'none'; }; }; } | null; } | null; }> | null; /** * Conditions that decide the monitor's status */ conditionGroup: { /** * ID of the condition group */ id?: string; /** * ID of the organization */ organizationId?: string; /** * How the conditions in the group combine */ logicType?: 'any' | 'any-short' | 'all' | 'none'; /** * Conditions in the group */ conditions?: Array<{ /** * ID of the condition */ id: string; /** * Type of the condition, such as first_seen_event or level */ type: string; /** * Value the condition compares against, which depends on its type */ comparison: number | string | boolean | { /** * Whether the issue must be older or newer than the age */ comparisonType: 'older' | 'newer'; /** * Age of the issue, in units of time */ value: number; /** * Unit of the age */ time: 'minute' | 'hour' | 'day' | 'week'; } | { /** * How sensitive anomaly detection is */ sensitivity: 'low' | 'medium' | 'high'; /** * Seasonal pattern that anomaly detection accounts for */ seasonality: 'auto' | 'hourly' | 'daily' | 'weekly' | 'hourly_daily' | 'hourly_weekly' | 'hourly_daily_weekly' | 'daily_weekly'; /** * Anomalies to detect: 0 above, 1 below, 2 above or below the expected value */ thresholdType: 0 | 1 | 2; } | { /** * Who the issue must be assigned to */ targetType: 'Unassigned' | 'Team' | 'Member'; /** * ID of the team or member. Not set for Unassigned */ targetIdentifier?: number | string; } | { /** * Event attribute to match, such as message or user.email */ attribute?: 'message' | 'platform' | 'environment' | 'type' | 'error.handled' | 'error.unhandled' | 'error.main_thread' | 'exception.type' | 'exception.value' | 'user.id' | 'user.email' | 'user.username' | 'user.ip_address' | 'http.method' | 'http.url' | 'http.status_code' | 'sdk.name' | 'stacktrace.code' | 'stacktrace.module' | 'stacktrace.filename' | 'stacktrace.abs_path' | 'stacktrace.package' | 'unreal.crash_type' | 'app.in_foreground' | 'os.distribution_name' | 'os.distribution_version' | 'symbolicated_in_app' | 'ota_updates.channel' | 'ota_updates.runtime_version' | 'ota_updates.update_id'; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the attribute against. Not set for is and ns */ value?: string; } | number | { /** * Time window to count in, such as 1h */ interval: '1m' | '5m' | '15m' | '1h' | '1d' | '1w' | '30d'; /** * Number of events in the interval that meets the condition */ value: number; /** * Tag or attribute filters that events must match to count */ filters?: Array<{ /** * Tag key to match */ key?: string; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the tag or attribute against. Not set for is and ns */ value?: string; } | { /** * Event attribute to match, such as message or user.email */ attribute?: 'message' | 'platform' | 'environment' | 'type' | 'error.handled' | 'error.unhandled' | 'error.main_thread' | 'exception.type' | 'exception.value' | 'user.id' | 'user.email' | 'user.username' | 'user.ip_address' | 'http.method' | 'http.url' | 'http.status_code' | 'sdk.name' | 'stacktrace.code' | 'stacktrace.module' | 'stacktrace.filename' | 'stacktrace.abs_path' | 'stacktrace.package' | 'unreal.crash_type' | 'app.in_foreground' | 'os.distribution_name' | 'os.distribution_version' | 'symbolicated_in_app' | 'ota_updates.channel' | 'ota_updates.runtime_version' | 'ota_updates.update_id'; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the tag or attribute against. Not set for is and ns */ value?: string; }>; } | { /** * Time window to count in, such as 1h */ interval: '1m' | '5m' | '15m' | '1h' | '1d' | '1w' | '30d'; /** * Percent increase in events over the comparison interval that meets the condition */ value: number; /** * Earlier time window to compare the count against, such as 1w */ comparisonInterval: '5m' | '15m' | '1h' | '1d' | '1w' | '30d'; /** * Tag or attribute filters that events must match to count */ filters?: Array<{ /** * Tag key to match */ key?: string; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the tag or attribute against. Not set for is and ns */ value?: string; } | { /** * Event attribute to match, such as message or user.email */ attribute?: 'message' | 'platform' | 'environment' | 'type' | 'error.handled' | 'error.unhandled' | 'error.main_thread' | 'exception.type' | 'exception.value' | 'user.id' | 'user.email' | 'user.username' | 'user.ip_address' | 'http.method' | 'http.url' | 'http.status_code' | 'sdk.name' | 'stacktrace.code' | 'stacktrace.module' | 'stacktrace.filename' | 'stacktrace.abs_path' | 'stacktrace.package' | 'unreal.crash_type' | 'app.in_foreground' | 'os.distribution_name' | 'os.distribution_version' | 'symbolicated_in_app' | 'ota_updates.channel' | 'ota_updates.runtime_version' | 'ota_updates.update_id'; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the tag or attribute against. Not set for is and ns */ value?: string; }>; } | { /** * Time window to count in, such as 1h */ interval: '1m' | '5m' | '15m' | '1h' | '1d' | '1w' | '30d'; /** * Number of affected users in the interval that meets the condition */ value: number; /** * Tag or attribute filters that events must match to count */ filters?: Array<{ /** * Tag key to match */ key?: string; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the tag or attribute against. Not set for is and ns */ value?: string; } | { /** * Event attribute to match, such as message or user.email */ attribute?: 'message' | 'platform' | 'environment' | 'type' | 'error.handled' | 'error.unhandled' | 'error.main_thread' | 'exception.type' | 'exception.value' | 'user.id' | 'user.email' | 'user.username' | 'user.ip_address' | 'http.method' | 'http.url' | 'http.status_code' | 'sdk.name' | 'stacktrace.code' | 'stacktrace.module' | 'stacktrace.filename' | 'stacktrace.abs_path' | 'stacktrace.package' | 'unreal.crash_type' | 'app.in_foreground' | 'os.distribution_name' | 'os.distribution_version' | 'symbolicated_in_app' | 'ota_updates.channel' | 'ota_updates.runtime_version' | 'ota_updates.update_id'; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the tag or attribute against. Not set for is and ns */ value?: string; }>; } | { /** * Time window to count in, such as 1h */ interval: '1m' | '5m' | '15m' | '1h' | '1d' | '1w' | '30d'; /** * Percent increase in affected users over the comparison interval that meets the condition */ value: number; /** * Earlier time window to compare the count against, such as 1w */ comparisonInterval: '5m' | '15m' | '1h' | '1d' | '1w' | '30d'; /** * Tag or attribute filters that events must match to count */ filters?: Array<{ /** * Tag key to match */ key?: string; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the tag or attribute against. Not set for is and ns */ value?: string; } | { /** * Event attribute to match, such as message or user.email */ attribute?: 'message' | 'platform' | 'environment' | 'type' | 'error.handled' | 'error.unhandled' | 'error.main_thread' | 'exception.type' | 'exception.value' | 'user.id' | 'user.email' | 'user.username' | 'user.ip_address' | 'http.method' | 'http.url' | 'http.status_code' | 'sdk.name' | 'stacktrace.code' | 'stacktrace.module' | 'stacktrace.filename' | 'stacktrace.abs_path' | 'stacktrace.package' | 'unreal.crash_type' | 'app.in_foreground' | 'os.distribution_name' | 'os.distribution_version' | 'symbolicated_in_app' | 'ota_updates.channel' | 'ota_updates.runtime_version' | 'ota_updates.update_id'; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the tag or attribute against. Not set for is and ns */ value?: string; }>; } | { /** * ID of the issue category */ value: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 19; /** * Whether the issue must be in the category or not. Defaults to true */ include?: boolean; } | { /** * Number of times the issue must have occurred */ value: number; } | 25 | 50 | 75 | 1 | { /** * Slug of the issue type */ value: 'performance_slow_db_query' | 'performance_render_blocking_asset_span' | 'performance_n_plus_one_db_queries' | 'performance_n_plus_one_db_queries_experimental' | 'performance_consecutive_db_queries' | 'performance_file_io_main_thread' | 'performance_consecutive_http' | 'performance_n_plus_one_api_calls' | 'performance_n_plus_one_api_calls_experimental' | 'performance_m_n_plus_one_db_queries' | 'performance_m_n_plus_one_db_queries_experimental' | 'performance_uncompressed_assets' | 'performance_db_main_thread' | 'performance_large_http_payload' | 'performance_http_overhead' | 'performance_p95_endpoint_regression' | 'performance_streamed_spans_exp' | 'db_query_injection_vulnerability' | 'query_injection_vulnerability' | 'profile_file_io_main_thread' | 'profile_image_decode_main_thread' | 'profile_json_decode_main_thread' | 'profile_regex_main_thread' | 'profile_frame_drop' | 'profile_function_regression' | 'llm_detected_experimental' | 'llm_detected_experimental_v2' | 'ai_detected_http' | 'ai_detected_db' | 'ai_detected_runtime_performance' | 'ai_detected_security' | 'ai_detected_code_health' | 'ai_detected_general' | 'replay_click_rage' | 'replay_hydration_error' | 'feedback' | 'web_vitals' | 'issue_stream' | 'metric_issue' | 'error' | 'uptime_domain_failure' | 'send-test-notification' | 'monitor_check_in_failure' | 'sourcemap_configuration' | 'low_value_span_configuration' | 'preprod_size_analysis'; /** * Whether the issue must be of the type or not. Defaults to true */ include?: boolean; } | { /** * Whether to compare against the oldest or newest adopted release */ releaseAgeType: 'oldest' | 'newest'; /** * Whether the event's release must be older or newer than that release */ ageComparison: 'older' | 'newer'; /** * Environment the release was adopted in */ environment: string; } | { /** * Event level: 0 sample, 10 debug, 20 info, 30 warning, 40 error, 50 fatal */ level: 0 | 10 | 20 | 30 | 40 | 50; /** * How to compare the event's level: eq, gte or lte */ match: 'eq' | 'gte' | 'lte'; } | { /** * Time window to count in, such as 1h */ interval: '1m' | '5m' | '10m' | '30m' | '1h'; /** * Percent of sessions affected in the interval that meets the condition */ value: number; /** * Tag or attribute filters that events must match to count */ filters?: Array<{ /** * Tag key to match */ key?: string; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the tag or attribute against. Not set for is and ns */ value?: string; } | { /** * Event attribute to match, such as message or user.email */ attribute?: 'message' | 'platform' | 'environment' | 'type' | 'error.handled' | 'error.unhandled' | 'error.main_thread' | 'exception.type' | 'exception.value' | 'user.id' | 'user.email' | 'user.username' | 'user.ip_address' | 'http.method' | 'http.url' | 'http.status_code' | 'sdk.name' | 'stacktrace.code' | 'stacktrace.module' | 'stacktrace.filename' | 'stacktrace.abs_path' | 'stacktrace.package' | 'unreal.crash_type' | 'app.in_foreground' | 'os.distribution_name' | 'os.distribution_version' | 'symbolicated_in_app' | 'ota_updates.channel' | 'ota_updates.runtime_version' | 'ota_updates.update_id'; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the tag or attribute against. Not set for is and ns */ value?: string; }>; } | { /** * Time window to count in, such as 1h */ interval: '1m' | '5m' | '10m' | '30m' | '1h'; /** * Percent increase in affected sessions over the comparison interval that meets the condition */ value: number; /** * Earlier time window to compare the count against, such as 1w */ comparisonInterval: '5m' | '15m' | '1h' | '1d' | '1w' | '30d'; /** * Tag or attribute filters that events must match to count */ filters?: Array<{ /** * Tag key to match */ key?: string; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the tag or attribute against. Not set for is and ns */ value?: string; } | { /** * Event attribute to match, such as message or user.email */ attribute?: 'message' | 'platform' | 'environment' | 'type' | 'error.handled' | 'error.unhandled' | 'error.main_thread' | 'exception.type' | 'exception.value' | 'user.id' | 'user.email' | 'user.username' | 'user.ip_address' | 'http.method' | 'http.url' | 'http.status_code' | 'sdk.name' | 'stacktrace.code' | 'stacktrace.module' | 'stacktrace.filename' | 'stacktrace.abs_path' | 'stacktrace.package' | 'unreal.crash_type' | 'app.in_foreground' | 'os.distribution_name' | 'os.distribution_version' | 'symbolicated_in_app' | 'ota_updates.channel' | 'ota_updates.runtime_version' | 'ota_updates.update_id'; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the tag or attribute against. Not set for is and ns */ value?: string; }>; } | Array<'rca_completed' | 'solution_completed' | 'coding_completed' | 'pr_ready_for_review'> | { /** * Tag key to match */ key?: string; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the tag against. Not set for is and ns */ value?: string; }; /** * Result the condition produces when it matches: true for alert conditions, or the priority level for monitor conditions */ conditionResult: boolean | number | number | null; }>; /** * Actions to fire when the conditions pass */ actions?: Array<{ /** * ID of the action */ id?: string; /** * Type of the action */ type?: 'slack' | 'slack_staging' | 'msteams' | 'discord' | 'pagerduty' | 'opsgenie' | 'github' | 'github_enterprise' | 'jira' | 'jira_server' | 'vsts' | 'email' | 'sentry_app' | 'plugin' | 'webhook' | 'seer_investigation'; /** * ID of the integration the action uses. Null for actions without one */ integrationId?: string | null; /** * Extra data for the action, which depends on its type */ data?: { /** * Tags to add to the message */ tags?: string; } | { /** * The fallthrough type for issue owners email notifications */ fallthroughType?: 'AllMembers' | 'ActiveMembers' | 'NoOne'; } | { /** * Dynamic form fields from customer configuration */ dynamicFormFields?: Array<{ /** * Name of the field */ name?: string; /** * Label of the field */ label?: string; /** * Type of the field, such as select or text */ type?: string; }>; /** * Additional fields that aren't part of standard fields */ additionalFields: { /** * Repository to create the issue in, as owner/name */ repo: string; /** * Labels to add to the issue */ labels?: Array | null; /** * User to assign the issue to */ assignee?: string | null; [key: string]: unknown; }; } | { /** * Dynamic form fields from customer configuration */ dynamicFormFields?: Array<{ /** * Name of the field */ name?: string; /** * Label of the field */ label?: string; /** * Type of the field, such as select or text */ type?: string; }>; /** * Additional fields that aren't part of standard fields */ additionalFields?: { [key: string]: string | null | number | boolean | Array; }; } | { [key: string]: never; } | { /** * The priority of the opsgenie action */ priority?: 'P1' | 'P2' | 'P3' | 'P4' | 'P5'; } | { /** * The priority of the pagerduty action */ priority?: 'default' | 'critical' | 'warning' | 'error' | 'info'; } | { [key: string]: string; } | { /** * Prompt the investigation runs */ prompt?: string; /** * Seer skill the investigation runs, instead of a prompt */ skill?: 'agentic_triage'; } | { /** * Values of the Sentry App's alert rule settings form, each with a name and value */ settings?: Array; } | { /** * Tags to add to the message */ tags?: string; /** * Notes to add to the message */ notes?: string; }; /** * Configuration of the action, such as targetType and targetIdentifier */ config?: { /** * ID of the target, such as a channel, user or team ID */ targetIdentifier: string; /** * Display name of the target, such as a channel name */ targetDisplay?: string | null; /** * Kind of target the action notifies, such as specific, user or team */ targetType: 'specific'; } | { /** * ID of the target, such as a channel, user or team ID */ targetIdentifier?: string | null; /** * Display name of the target, such as a channel name */ targetDisplay?: null; /** * Kind of target the action notifies, such as specific, user or team */ targetType: 'user' | 'team' | 'issue_owners'; } | { /** * ID of the target, such as a channel, user or team ID */ targetIdentifier?: null; /** * Display name of the target, such as a channel name */ targetDisplay?: null; /** * Kind of target the action notifies, such as specific, user or team */ targetType?: 'specific'; } | { /** * ID of the target, such as a channel, user or team ID */ targetIdentifier?: string; /** * Display name of the target, such as a channel name */ targetDisplay: string; /** * Kind of target the action notifies, such as specific, user or team */ targetType: 'specific'; } | { /** * ID of the target, such as a channel, user or team ID */ targetIdentifier: string; /** * Display name of the target, such as a channel name */ targetDisplay?: string | null; /** * Kind of target the action notifies, such as specific, user or team */ targetType: 'specific'; } | { /** * ID of the target, such as a channel, user or team ID */ targetIdentifier?: string | null; /** * Display name of the target, such as a channel name */ targetDisplay?: string | null; /** * Kind of target the action notifies, such as specific, user or team */ targetType?: null; } | { [key: string]: never; } | { /** * ID of the target, such as a channel, user or team ID */ targetIdentifier: string; /** * Display name of the target, such as a channel name */ targetDisplay?: string | null; /** * Kind of target the action notifies, such as specific, user or team */ targetType: 'sentry_app'; } | { /** * ID of the target, such as a channel, user or team ID */ targetIdentifier?: string; /** * Display name of the target, such as a channel name */ targetDisplay?: string; /** * Kind of target the action notifies, such as specific, user or team */ targetType: 'specific'; } | { /** * ID of the target, such as a channel, user or team ID */ targetIdentifier?: string; /** * Display name of the target, such as a channel name */ targetDisplay?: null; /** * Kind of target the action notifies, such as specific, user or team */ targetType?: null; }; /** * Status of the action */ status?: 'active' | 'disabled' | 'pending_deletion' | 'deletion_in_progress'; }>; } | null; /** * Configuration of the monitor, which depends on its type */ config: { [key: string]: unknown; } | { /** * Fingerprinting rules of the project */ 'sentry:fingerprintingRules'?: string; /** * Hours of inactivity after which the project's issues resolve. 0 to never */ 'sentry:resolveAge'?: number; } | { /** * ID of the organization */ organizationId?: number; } | { /** * For percent detection, how far back the compared window is, in seconds */ comparisonDelta?: 300 | 900 | 3600 | 86400 | 604800 | 2592000; /** * How the monitor detects issues: static thresholds, percent change or dynamic anomalies */ detectionType: 'static' | 'percent' | 'dynamic'; } | { /** * The type of threshold to apply */ thresholdType: 'absolute_diff' | 'absolute' | 'relative_diff'; /** * The measurement to track */ measurement: 'install_size' | 'download_size'; /** * Search query to filter which artifacts are monitored */ query?: string; } | { /** * How the monitor was created: 1 manually, 2 auto-detected and onboarding, 3 auto-detected and active */ mode: 1 | 2 | 3; /** * Environment of the monitor. Null for none */ environment: string | null; /** * Number of consecutive successful checks required to mark monitor as recovered */ recoveryThreshold: number; /** * Number of consecutive failed checks required to mark monitor as down */ downtimeThreshold: number; }; /** * Whether the monitor is enabled */ enabled: boolean; }; }; export type GetOrganizationDetectorResponse = GetOrganizationDetectorResponses[keyof GetOrganizationDetectorResponses]; export type UpdateOrganizationDetectorData = { body?: ({ /** * Name of the monitor. */ name?: string; type?: 'error'; /** * The IDs of the alerts to connect this monitor to. Use the 'Fetch Alerts' endpoint to find the IDs. */ workflowIds?: Array; /** * * The data sources for the metric monitor to use based on what you want to measure. * * The schema of each data source lists the `aggregate` values that its `dataset` and * `eventTypes` accept. * * `timeWindow` is measured in seconds. Cron Monitors use schedules instead of this field. * Legacy metric alert rules expressed this value in minutes, so multiply a legacy value * by 60 when migrating it to a monitor. For example, a legacy 5-minute window becomes * `"timeWindow": 300`. * * **Number of Errors Metric Monitor** * - `eventTypes`: Any of `error` or `default`. * ```json * [ * { * "aggregate": "count()", * "dataset" : "events", * "environment": "prod", * "eventTypes": ["default", "error"], * "query": "is:unresolved", * "queryType": 0, * "timeWindow": 3600 * } * ] * ``` * * **Users Experiencing Errors Metric Monitor** * - `eventTypes`: Any of `error` or `default`. * ```json * [ * { * "aggregate": "count_unique(tags[sentry:user])", * "dataset" : "events", * "environment": "prod", * "eventTypes": ["default", "error"], * "query": "is:unresolved", * "queryType": 0, * "timeWindow": 3600 * } * ] * ``` * * * **Throughput Metric Monitor** * ```json * [ * { * "aggregate":"count(span.duration)", * "dataset":"events_analytics_platform", * "environment":"prod", * "eventTypes":["trace_item_span"], * "query":"", * "queryType":1, * "timeWindow":3600, * "extrapolationMode":"unknown" * } * ] * ``` * * **Duration Metric Monitor** * ```json * [ * { * "aggregate":"p95(span.duration)", * "dataset":"events_analytics_platform", * "environment":"prod", * "eventTypes":["trace_item_span"], * "query":"", * "queryType":1, * "timeWindow":3600, * "extrapolationMode":"unknown" * } * ] * ``` * * **Failure Rate Metric Monitor** * ```json * [ * { * "aggregate":"failure_rate()", * "dataset":"events_analytics_platform", * "environment":"prod", * "eventTypes":["trace_item_span"], * "query":"", * "queryType":1, * "timeWindow":3600, * "extrapolationMode":"unknown" * } * ] * ``` * * **Largest Contentful Paint Metric Monitor** * - `dataset`: Use `events_analytics_platform`. To query transaction spans, add `is_transaction:true` to `query`. * - `aggregate`: Valid values are `avg(measurements.lcp)`, `p50(measurements.lcp)`, `p75(measurements.lcp)`, `p95(measurements.lcp)`, `p99(measurements.lcp)`, and `p100(measurements.lcp)`. * * ```json * [ * { * "aggregate":"p95(measurements.lcp)", * "dataset":"events_analytics_platform", * "environment":"prod", * "eventTypes":["trace_item_span"], * "query":"is_transaction:true", * "queryType":1, * "timeWindow":3600, * "extrapolationMode":"unknown" * } * ] * ``` * * **Custom Metric Monitor** * - `dataset`: Use `events_analytics_platform`. To query transaction spans, add `is_transaction:true` to `query`. * - `aggregate`: Valid values are: * `avg(x)`, where `x` is `transaction.duration`, `measurements.cls`, `measurements.fcp`, `measurements.fid`, `measurements.fp`, `measurements.lcp`, `measurements.ttfb`, or `measurements.ttfb.requesttime`. * `p50(x)`, where `x` is `transaction.duration`, `measurements.cls`, `measurements.fcp`, `measurements.fid`, `measurements.fp`, `measurements.lcp`, `measurements.ttfb`, or `measurements.ttfb.requesttime`. * `p75(x)`, where x is `transaction.duration`, `measurements.cls`, `measurements.fcp`, `measurements.fid`, `measurements.fp`, `measurements.lcp`, `measurements.ttfb`, or `measurements.ttfb.requesttime`. * `p95(x)`, where x is `transaction.duration`, `measurements.cls`, `measurements.fcp`, `measurements.fid`, `measurements.fp`, `measurements.lcp`, `measurements.ttfb`, or `measurements.ttfb.requesttime`. * `p99(x)`, where x is `transaction.duration`, `measurements.cls`, `measurements.fcp`, `measurements.fid`, `measurements.fp`, `measurements.lcp`, `measurements.ttfb`, or `measurements.ttfb.requesttime`. * `p100(x)`, where `x` is `transaction.duration`, `measurements.cls`, `measurements.fcp`, `measurements.fid`, `measurements.fp`, `measurements.lcp`, `measurements.ttfb`, or `measurements.ttfb.requesttime`. * `failure_rate()` * `apdex(x)`, where `x` is the value of the Apdex score. * `count()` * * ```json * [ * { * "aggregate": "p75(measurements.ttfb)", * "dataset": "events_analytics_platform", * "environment": "prod", * "queryType": 1, * "eventTypes": ["trace_item_span"], * "query": "is_transaction:true", * "timeWindow": 3600, * "extrapolationMode": "unknown" * } * ] * ``` * */ dataSources?: Array<{ query_type?: 0; dataset: 'events'; /** * A search query to filter the events, such as `is:unresolved`. */ query: string; aggregate: 'count()' | 'count_unique(user)' | 'count_unique(dist)' | 'count_unique(release)' | 'count_unique(tags[sentry:user])' | 'count_unique(tags[sentry:dist])' | 'count_unique(tags[sentry:release])'; /** * The time window to aggregate over, in seconds. */ time_window: number; environment: string | null; event_types: Array<'error' | 'default'>; extrapolation_mode?: string | null; } | { query_type?: 1; dataset: 'events_analytics_platform'; /** * A search query to filter the events, such as `is:unresolved`. */ query: string; aggregate: string; /** * The time window to aggregate over, in seconds. */ time_window: number; environment: string | null; event_types: [ 'trace_item_span' ]; extrapolation_mode?: string | null; } | { query_type?: 1; dataset: 'events_analytics_platform'; /** * A search query to filter the events, such as `is:unresolved`. */ query: string; aggregate: string; /** * The time window to aggregate over, in seconds. */ time_window: number; environment: string | null; event_types: [ 'trace_item_log' ]; extrapolation_mode?: string | null; } | { query_type?: 1; dataset: 'events_analytics_platform'; /** * A search query to filter the events, such as `is:unresolved`. */ query: string; aggregate: string; /** * The time window to aggregate over, in seconds. */ time_window: number; environment: string | null; event_types: [ 'trace_item_metric' ]; extrapolation_mode?: string | null; } | { query_type?: 2; dataset: 'metrics'; /** * A search query to filter the events, such as `is:unresolved`. */ query: string; aggregate: string; /** * The time window to aggregate over, in seconds. */ time_window: number; environment: string | null; /** * Ignored for this dataset. Send an empty list. */ event_types: Array; extrapolation_mode?: string | null; }>; config?: { [key: string]: never; }; conditionGroup?: { [key: string]: unknown; } | null; /** * * The ID user or team who owns the monitor or alert prefaced by the string 'user' or 'team'. * * **User** * ```json * "user:123456" * ``` * * **Team** * ```json * "team:456789" * ``` * */ owner?: string | null; /** * A description of the monitor. Will be used in the resulting issue. */ description?: string | null; /** * Set to False if you want to disable the monitor. */ enabled?: boolean; fingerprintingRules?: string | null; /** * Automatically resolve an issue if it hasn't been seen for this many hours. Set to `0` to disable auto-resolve. */ resolveAge?: number | null; } | { /** * Name of the monitor. */ name?: string; type?: 'metric_issue'; /** * The IDs of the alerts to connect this monitor to. Use the 'Fetch Alerts' endpoint to find the IDs. */ workflowIds?: Array; dataSources?: Array<{ query_type?: number; dataset: string; query: string; aggregate: string; time_window: number; environment: string | null; event_types: Array; group_by?: Array; extrapolation_mode?: string | null; }>; config?: { comparisonDelta?: 300 | 900 | 3600 | 86400 | 604800 | 2592000; detectionType: 'static'; } | { comparisonDelta?: 300 | 900 | 3600 | 86400 | 604800 | 2592000; detectionType: 'percent'; } | { comparisonDelta?: 300 | 900 | 3600 | 86400 | 604800 | 2592000; detectionType: 'dynamic'; }; /** * Allows parameters to be defined in snake case, but passed as camel case. * * Errors are output in camel case. */ conditionGroup?: { id?: number; /** * * `any` * * `any-short` * * `all` * * `none` */ logicType: 'any' | 'any-short' | 'all' | 'none'; conditions: Array<{ id?: number; conditionResult: 0 | 50 | 75; type: 'gt' | 'lt' | 'gte' | 'lte'; comparison: number; } | { id?: number; conditionResult: 0 | 50 | 75; type: 'anomaly_detection'; comparison: { sensitivity: 'low' | 'medium' | 'high'; seasonality: 'auto' | 'hourly' | 'daily' | 'weekly' | 'hourly_daily' | 'hourly_weekly' | 'hourly_daily_weekly' | 'daily_weekly'; thresholdType: 0 | 1 | 2; }; }>; }; /** * * The ID user or team who owns the monitor or alert prefaced by the string 'user' or 'team'. * * **User** * ```json * "user:123456" * ``` * * **Team** * ```json * "team:456789" * ``` * */ owner?: string | null; /** * A description of the monitor. Will be used in the resulting issue. */ description?: string | null; /** * Set to False if you want to disable the monitor. */ enabled?: boolean; } | { /** * Name of the monitor. */ name?: string; type?: 'monitor_check_in_failure'; /** * The IDs of the alerts to connect this monitor to. Use the 'Fetch Alerts' endpoint to find the IDs. */ workflowIds?: Array; dataSources?: Array<{ /** * Name of the monitor. Used for notifications. */ name?: string; /** * Uniquely identifies your monitor within your organization. */ slug?: string; status?: string; owner?: string | null; is_muted?: boolean; config: { [key: string]: unknown; }; }>; config?: { [key: string]: unknown; }; /** * * Issue detection configuration for when to create an issue and at what priority level. * * * - `logicType`: `any` * - `type`: Any of `gt` (greater than), `gte` (greater than or equal), `lt` (less than), `lte` (less than or equal), or `anomaly_detection` (dynamic) * - `comparison`: Any positive integer. This is threshold that must be crossed for the monitor to create an issue, e.g. "Create a metric issue when there are more than 5 unresolved error events". * - If creating a **change** monitor, `comparison` is the current value as a percentage of the value `comparisonDelta` seconds earlier, not the size of the change. For example, use `120` with `gt` for 20% higher, or `70` with `lt` for 30% lower. * - If creating a **dynamic** monitor, see the options below. * - `seasonality`: `auto` * - `sensitivity`: Level of responsiveness. Options are one of `low`, `medium`, or `high` * - `thresholdType`: If you want to be alerted to anomalies that are moving above, below, or in both directions in relation to your threshold. * - `0`: Above * - `1`: Below * - `2`: Above and below * * - `conditionResult`: The issue state change when the threshold is crossed. * - `75`: High priority * - `50`: Low priority * - `0`: Resolved * * * **Threshold Monitor** * ```json * "logicType": "any", * "conditions": [ * { * "type": "gt", * "comparison": 10, * "conditionResult": 75 * }, * { * "type": "lte", * "comparison": 10, * "conditionResult": 0 * } * ], * "actions": [] * ``` * * **Change Monitor** (20% higher than `comparisonDelta` seconds earlier) * ```json * "logicType": "any", * "conditions": [ * { * "type": "gt", * "comparison": 120, * "conditionResult": 75 * }, * { * "type": "lte", * "comparison": 120, * "conditionResult": 0 * } * ], * "actions": [] * ``` * * **Threshold Monitor with Medium Priority** * ```json * "logicType": "any", * "conditions": [ * { * type: "gt", * comparison: 5, * conditionResult: 75 * }, * { * type: "gt", * comparison: 2, * conditionResult: 50 * }, * { * type: "lte", * comparison: 2, * conditionResult: 0 * } * ], * "actions": [] * ``` * * **Dynamic Monitor** * ```json * "logicType": "any", * "conditions": [ * { * "type": "anomaly_detection", * "comparison": { * "seasonality": "auto", * "sensitivity": "medium", * "thresholdType": 2 * }, * "conditionResult": 75 * } * ], * "actions": [] * ``` * */ conditionGroup?: { id?: number; /** * * `any` * * `any-short` * * `all` * * `none` */ logicType: 'any' | 'any-short' | 'all' | 'none'; conditions?: Array; }; /** * * The ID user or team who owns the monitor or alert prefaced by the string 'user' or 'team'. * * **User** * ```json * "user:123456" * ``` * * **Team** * ```json * "team:456789" * ``` * */ owner?: string | null; /** * A description of the monitor. Will be used in the resulting issue. */ description?: string | null; /** * Set to False if you want to disable the monitor. */ enabled?: boolean; } | { /** * Name of the monitor. */ name?: string; type?: 'preprod_size_analysis'; /** * The IDs of the alerts to connect this monitor to. Use the 'Fetch Alerts' endpoint to find the IDs. */ workflowIds?: Array; /** * * The data sources for the metric monitor to use based on what you want to measure. * * The schema of each data source lists the `aggregate` values that its `dataset` and * `eventTypes` accept. * * `timeWindow` is measured in seconds. Cron Monitors use schedules instead of this field. * Legacy metric alert rules expressed this value in minutes, so multiply a legacy value * by 60 when migrating it to a monitor. For example, a legacy 5-minute window becomes * `"timeWindow": 300`. * * **Number of Errors Metric Monitor** * - `eventTypes`: Any of `error` or `default`. * ```json * [ * { * "aggregate": "count()", * "dataset" : "events", * "environment": "prod", * "eventTypes": ["default", "error"], * "query": "is:unresolved", * "queryType": 0, * "timeWindow": 3600 * } * ] * ``` * * **Users Experiencing Errors Metric Monitor** * - `eventTypes`: Any of `error` or `default`. * ```json * [ * { * "aggregate": "count_unique(tags[sentry:user])", * "dataset" : "events", * "environment": "prod", * "eventTypes": ["default", "error"], * "query": "is:unresolved", * "queryType": 0, * "timeWindow": 3600 * } * ] * ``` * * * **Throughput Metric Monitor** * ```json * [ * { * "aggregate":"count(span.duration)", * "dataset":"events_analytics_platform", * "environment":"prod", * "eventTypes":["trace_item_span"], * "query":"", * "queryType":1, * "timeWindow":3600, * "extrapolationMode":"unknown" * } * ] * ``` * * **Duration Metric Monitor** * ```json * [ * { * "aggregate":"p95(span.duration)", * "dataset":"events_analytics_platform", * "environment":"prod", * "eventTypes":["trace_item_span"], * "query":"", * "queryType":1, * "timeWindow":3600, * "extrapolationMode":"unknown" * } * ] * ``` * * **Failure Rate Metric Monitor** * ```json * [ * { * "aggregate":"failure_rate()", * "dataset":"events_analytics_platform", * "environment":"prod", * "eventTypes":["trace_item_span"], * "query":"", * "queryType":1, * "timeWindow":3600, * "extrapolationMode":"unknown" * } * ] * ``` * * **Largest Contentful Paint Metric Monitor** * - `dataset`: Use `events_analytics_platform`. To query transaction spans, add `is_transaction:true` to `query`. * - `aggregate`: Valid values are `avg(measurements.lcp)`, `p50(measurements.lcp)`, `p75(measurements.lcp)`, `p95(measurements.lcp)`, `p99(measurements.lcp)`, and `p100(measurements.lcp)`. * * ```json * [ * { * "aggregate":"p95(measurements.lcp)", * "dataset":"events_analytics_platform", * "environment":"prod", * "eventTypes":["trace_item_span"], * "query":"is_transaction:true", * "queryType":1, * "timeWindow":3600, * "extrapolationMode":"unknown" * } * ] * ``` * * **Custom Metric Monitor** * - `dataset`: Use `events_analytics_platform`. To query transaction spans, add `is_transaction:true` to `query`. * - `aggregate`: Valid values are: * `avg(x)`, where `x` is `transaction.duration`, `measurements.cls`, `measurements.fcp`, `measurements.fid`, `measurements.fp`, `measurements.lcp`, `measurements.ttfb`, or `measurements.ttfb.requesttime`. * `p50(x)`, where `x` is `transaction.duration`, `measurements.cls`, `measurements.fcp`, `measurements.fid`, `measurements.fp`, `measurements.lcp`, `measurements.ttfb`, or `measurements.ttfb.requesttime`. * `p75(x)`, where x is `transaction.duration`, `measurements.cls`, `measurements.fcp`, `measurements.fid`, `measurements.fp`, `measurements.lcp`, `measurements.ttfb`, or `measurements.ttfb.requesttime`. * `p95(x)`, where x is `transaction.duration`, `measurements.cls`, `measurements.fcp`, `measurements.fid`, `measurements.fp`, `measurements.lcp`, `measurements.ttfb`, or `measurements.ttfb.requesttime`. * `p99(x)`, where x is `transaction.duration`, `measurements.cls`, `measurements.fcp`, `measurements.fid`, `measurements.fp`, `measurements.lcp`, `measurements.ttfb`, or `measurements.ttfb.requesttime`. * `p100(x)`, where `x` is `transaction.duration`, `measurements.cls`, `measurements.fcp`, `measurements.fid`, `measurements.fp`, `measurements.lcp`, `measurements.ttfb`, or `measurements.ttfb.requesttime`. * `failure_rate()` * `apdex(x)`, where `x` is the value of the Apdex score. * `count()` * * ```json * [ * { * "aggregate": "p75(measurements.ttfb)", * "dataset": "events_analytics_platform", * "environment": "prod", * "queryType": 1, * "eventTypes": ["trace_item_span"], * "query": "is_transaction:true", * "timeWindow": 3600, * "extrapolationMode": "unknown" * } * ] * ``` * */ dataSources?: Array<{ query_type?: 0; dataset: 'events'; /** * A search query to filter the events, such as `is:unresolved`. */ query: string; aggregate: 'count()' | 'count_unique(user)' | 'count_unique(dist)' | 'count_unique(release)' | 'count_unique(tags[sentry:user])' | 'count_unique(tags[sentry:dist])' | 'count_unique(tags[sentry:release])'; /** * The time window to aggregate over, in seconds. */ time_window: number; environment: string | null; event_types: Array<'error' | 'default'>; extrapolation_mode?: string | null; } | { query_type?: 1; dataset: 'events_analytics_platform'; /** * A search query to filter the events, such as `is:unresolved`. */ query: string; aggregate: string; /** * The time window to aggregate over, in seconds. */ time_window: number; environment: string | null; event_types: [ 'trace_item_span' ]; extrapolation_mode?: string | null; } | { query_type?: 1; dataset: 'events_analytics_platform'; /** * A search query to filter the events, such as `is:unresolved`. */ query: string; aggregate: string; /** * The time window to aggregate over, in seconds. */ time_window: number; environment: string | null; event_types: [ 'trace_item_log' ]; extrapolation_mode?: string | null; } | { query_type?: 1; dataset: 'events_analytics_platform'; /** * A search query to filter the events, such as `is:unresolved`. */ query: string; aggregate: string; /** * The time window to aggregate over, in seconds. */ time_window: number; environment: string | null; event_types: [ 'trace_item_metric' ]; extrapolation_mode?: string | null; } | { query_type?: 2; dataset: 'metrics'; /** * A search query to filter the events, such as `is:unresolved`. */ query: string; aggregate: string; /** * The time window to aggregate over, in seconds. */ time_window: number; environment: string | null; /** * Ignored for this dataset. Send an empty list. */ event_types: Array; extrapolation_mode?: string | null; }>; /** * Configuration for preprod static analysis detector */ config?: { /** * The type of threshold to apply */ thresholdType: 'absolute_diff' | 'absolute' | 'relative_diff'; /** * The measurement to track */ measurement: 'install_size' | 'download_size'; /** * Search query to filter which artifacts are monitored */ query?: string; }; /** * * Issue detection configuration for when to create an issue and at what priority level. * * * - `logicType`: `any` * - `type`: Any of `gt` (greater than), `gte` (greater than or equal), `lt` (less than), `lte` (less than or equal), or `anomaly_detection` (dynamic) * - `comparison`: Any positive integer. This is threshold that must be crossed for the monitor to create an issue, e.g. "Create a metric issue when there are more than 5 unresolved error events". * - If creating a **change** monitor, `comparison` is the current value as a percentage of the value `comparisonDelta` seconds earlier, not the size of the change. For example, use `120` with `gt` for 20% higher, or `70` with `lt` for 30% lower. * - If creating a **dynamic** monitor, see the options below. * - `seasonality`: `auto` * - `sensitivity`: Level of responsiveness. Options are one of `low`, `medium`, or `high` * - `thresholdType`: If you want to be alerted to anomalies that are moving above, below, or in both directions in relation to your threshold. * - `0`: Above * - `1`: Below * - `2`: Above and below * * - `conditionResult`: The issue state change when the threshold is crossed. * - `75`: High priority * - `50`: Low priority * - `0`: Resolved * * * **Threshold Monitor** * ```json * "logicType": "any", * "conditions": [ * { * "type": "gt", * "comparison": 10, * "conditionResult": 75 * }, * { * "type": "lte", * "comparison": 10, * "conditionResult": 0 * } * ], * "actions": [] * ``` * * **Change Monitor** (20% higher than `comparisonDelta` seconds earlier) * ```json * "logicType": "any", * "conditions": [ * { * "type": "gt", * "comparison": 120, * "conditionResult": 75 * }, * { * "type": "lte", * "comparison": 120, * "conditionResult": 0 * } * ], * "actions": [] * ``` * * **Threshold Monitor with Medium Priority** * ```json * "logicType": "any", * "conditions": [ * { * type: "gt", * comparison: 5, * conditionResult: 75 * }, * { * type: "gt", * comparison: 2, * conditionResult: 50 * }, * { * type: "lte", * comparison: 2, * conditionResult: 0 * } * ], * "actions": [] * ``` * * **Dynamic Monitor** * ```json * "logicType": "any", * "conditions": [ * { * "type": "anomaly_detection", * "comparison": { * "seasonality": "auto", * "sensitivity": "medium", * "thresholdType": 2 * }, * "conditionResult": 75 * } * ], * "actions": [] * ``` * */ conditionGroup?: { id?: number; /** * * `any` * * `any-short` * * `all` * * `none` */ logicType: 'any' | 'any-short' | 'all' | 'none'; conditions?: Array; }; /** * * The ID user or team who owns the monitor or alert prefaced by the string 'user' or 'team'. * * **User** * ```json * "user:123456" * ``` * * **Team** * ```json * "team:456789" * ``` * */ owner?: string | null; /** * A description of the monitor. Will be used in the resulting issue. */ description?: string | null; /** * Set to False if you want to disable the monitor. */ enabled?: boolean; } | { /** * Name of the monitor. */ name?: string; type?: 'uptime_domain_failure'; /** * The IDs of the alerts to connect this monitor to. Use the 'Fetch Alerts' endpoint to find the IDs. */ workflowIds?: Array; dataSources?: Array<{ url: string; /** * Additional headers to send with the check request. */ headers?: { [key: string]: unknown; }; /** * The number of milliseconds the request will wait for a response before timing-out. */ timeout_ms: number; /** * The HTTP method used to make the check request. * * * `GET` * * `POST` * * `HEAD` * * `PUT` * * `DELETE` * * `PATCH` * * `OPTIONS` */ method?: 'GET' | 'POST' | 'HEAD' | 'PUT' | 'DELETE' | 'PATCH' | 'OPTIONS'; /** * When enabled allows check requets to be considered for dowstream performance tracing. */ trace_sampling?: boolean; /** * When enabled, response body and headers will be captured on check failures. */ response_capture_enabled?: boolean; /** * The body to send with the check request. */ body?: string | null; /** * Time in seconds between uptime checks. * * * `60` - 1 minute * * `300` - 5 minutes * * `600` - 10 minutes * * `1200` - 20 minutes * * `1800` - 30 minutes * * `3600` - 1 hour */ interval_seconds: 60 | 300 | 600 | 1200 | 1800 | 3600; /** * The assertion to send with the check request. */ assertion?: { [key: string]: unknown; } | null; }>; /** * A representation of an uptime alert */ config?: { mode: 1 | 2 | 3; environment: string | null; /** * Number of consecutive successful checks required to mark monitor as recovered */ recoveryThreshold: number; /** * Number of consecutive failed checks required to mark monitor as down */ downtimeThreshold: number; }; /** * * Issue detection configuration for when to create an issue and at what priority level. * * * - `logicType`: `any` * - `type`: Any of `gt` (greater than), `gte` (greater than or equal), `lt` (less than), `lte` (less than or equal), or `anomaly_detection` (dynamic) * - `comparison`: Any positive integer. This is threshold that must be crossed for the monitor to create an issue, e.g. "Create a metric issue when there are more than 5 unresolved error events". * - If creating a **change** monitor, `comparison` is the current value as a percentage of the value `comparisonDelta` seconds earlier, not the size of the change. For example, use `120` with `gt` for 20% higher, or `70` with `lt` for 30% lower. * - If creating a **dynamic** monitor, see the options below. * - `seasonality`: `auto` * - `sensitivity`: Level of responsiveness. Options are one of `low`, `medium`, or `high` * - `thresholdType`: If you want to be alerted to anomalies that are moving above, below, or in both directions in relation to your threshold. * - `0`: Above * - `1`: Below * - `2`: Above and below * * - `conditionResult`: The issue state change when the threshold is crossed. * - `75`: High priority * - `50`: Low priority * - `0`: Resolved * * * **Threshold Monitor** * ```json * "logicType": "any", * "conditions": [ * { * "type": "gt", * "comparison": 10, * "conditionResult": 75 * }, * { * "type": "lte", * "comparison": 10, * "conditionResult": 0 * } * ], * "actions": [] * ``` * * **Change Monitor** (20% higher than `comparisonDelta` seconds earlier) * ```json * "logicType": "any", * "conditions": [ * { * "type": "gt", * "comparison": 120, * "conditionResult": 75 * }, * { * "type": "lte", * "comparison": 120, * "conditionResult": 0 * } * ], * "actions": [] * ``` * * **Threshold Monitor with Medium Priority** * ```json * "logicType": "any", * "conditions": [ * { * type: "gt", * comparison: 5, * conditionResult: 75 * }, * { * type: "gt", * comparison: 2, * conditionResult: 50 * }, * { * type: "lte", * comparison: 2, * conditionResult: 0 * } * ], * "actions": [] * ``` * * **Dynamic Monitor** * ```json * "logicType": "any", * "conditions": [ * { * "type": "anomaly_detection", * "comparison": { * "seasonality": "auto", * "sensitivity": "medium", * "thresholdType": 2 * }, * "conditionResult": 75 * } * ], * "actions": [] * ``` * */ conditionGroup?: { id?: number; /** * * `any` * * `any-short` * * `all` * * `none` */ logicType: 'any' | 'any-short' | 'all' | 'none'; conditions?: Array; }; /** * * The ID user or team who owns the monitor or alert prefaced by the string 'user' or 'team'. * * **User** * ```json * "user:123456" * ``` * * **Team** * ```json * "team:456789" * ``` * */ owner?: string | null; /** * A description of the monitor. Will be used in the resulting issue. */ description?: string | null; /** * Set to False if you want to disable the monitor. */ enabled?: boolean; }) & { /** * Name of the monitor. */ name?: string; /** * The type of monitor - `metric_issue`. */ type?: string; /** * The IDs of the alerts to connect this monitor to. Use the 'Fetch Alerts' endpoint to find the IDs. */ workflowIds?: Array; /** * * The data sources for the metric monitor to use based on what you want to measure. * * The schema of each data source lists the `aggregate` values that its `dataset` and * `eventTypes` accept. * * `timeWindow` is measured in seconds. Cron Monitors use schedules instead of this field. * Legacy metric alert rules expressed this value in minutes, so multiply a legacy value * by 60 when migrating it to a monitor. For example, a legacy 5-minute window becomes * `"timeWindow": 300`. * * **Number of Errors Metric Monitor** * - `eventTypes`: Any of `error` or `default`. * ```json * [ * { * "aggregate": "count()", * "dataset" : "events", * "environment": "prod", * "eventTypes": ["default", "error"], * "query": "is:unresolved", * "queryType": 0, * "timeWindow": 3600 * } * ] * ``` * * **Users Experiencing Errors Metric Monitor** * - `eventTypes`: Any of `error` or `default`. * ```json * [ * { * "aggregate": "count_unique(tags[sentry:user])", * "dataset" : "events", * "environment": "prod", * "eventTypes": ["default", "error"], * "query": "is:unresolved", * "queryType": 0, * "timeWindow": 3600 * } * ] * ``` * * * **Throughput Metric Monitor** * ```json * [ * { * "aggregate":"count(span.duration)", * "dataset":"events_analytics_platform", * "environment":"prod", * "eventTypes":["trace_item_span"], * "query":"", * "queryType":1, * "timeWindow":3600, * "extrapolationMode":"unknown" * } * ] * ``` * * **Duration Metric Monitor** * ```json * [ * { * "aggregate":"p95(span.duration)", * "dataset":"events_analytics_platform", * "environment":"prod", * "eventTypes":["trace_item_span"], * "query":"", * "queryType":1, * "timeWindow":3600, * "extrapolationMode":"unknown" * } * ] * ``` * * **Failure Rate Metric Monitor** * ```json * [ * { * "aggregate":"failure_rate()", * "dataset":"events_analytics_platform", * "environment":"prod", * "eventTypes":["trace_item_span"], * "query":"", * "queryType":1, * "timeWindow":3600, * "extrapolationMode":"unknown" * } * ] * ``` * * **Largest Contentful Paint Metric Monitor** * - `dataset`: Use `events_analytics_platform`. To query transaction spans, add `is_transaction:true` to `query`. * - `aggregate`: Valid values are `avg(measurements.lcp)`, `p50(measurements.lcp)`, `p75(measurements.lcp)`, `p95(measurements.lcp)`, `p99(measurements.lcp)`, and `p100(measurements.lcp)`. * * ```json * [ * { * "aggregate":"p95(measurements.lcp)", * "dataset":"events_analytics_platform", * "environment":"prod", * "eventTypes":["trace_item_span"], * "query":"is_transaction:true", * "queryType":1, * "timeWindow":3600, * "extrapolationMode":"unknown" * } * ] * ``` * * **Custom Metric Monitor** * - `dataset`: Use `events_analytics_platform`. To query transaction spans, add `is_transaction:true` to `query`. * - `aggregate`: Valid values are: * `avg(x)`, where `x` is `transaction.duration`, `measurements.cls`, `measurements.fcp`, `measurements.fid`, `measurements.fp`, `measurements.lcp`, `measurements.ttfb`, or `measurements.ttfb.requesttime`. * `p50(x)`, where `x` is `transaction.duration`, `measurements.cls`, `measurements.fcp`, `measurements.fid`, `measurements.fp`, `measurements.lcp`, `measurements.ttfb`, or `measurements.ttfb.requesttime`. * `p75(x)`, where x is `transaction.duration`, `measurements.cls`, `measurements.fcp`, `measurements.fid`, `measurements.fp`, `measurements.lcp`, `measurements.ttfb`, or `measurements.ttfb.requesttime`. * `p95(x)`, where x is `transaction.duration`, `measurements.cls`, `measurements.fcp`, `measurements.fid`, `measurements.fp`, `measurements.lcp`, `measurements.ttfb`, or `measurements.ttfb.requesttime`. * `p99(x)`, where x is `transaction.duration`, `measurements.cls`, `measurements.fcp`, `measurements.fid`, `measurements.fp`, `measurements.lcp`, `measurements.ttfb`, or `measurements.ttfb.requesttime`. * `p100(x)`, where `x` is `transaction.duration`, `measurements.cls`, `measurements.fcp`, `measurements.fid`, `measurements.fp`, `measurements.lcp`, `measurements.ttfb`, or `measurements.ttfb.requesttime`. * `failure_rate()` * `apdex(x)`, where `x` is the value of the Apdex score. * `count()` * * ```json * [ * { * "aggregate": "p75(measurements.ttfb)", * "dataset": "events_analytics_platform", * "environment": "prod", * "queryType": 1, * "eventTypes": ["trace_item_span"], * "query": "is_transaction:true", * "timeWindow": 3600, * "extrapolationMode": "unknown" * } * ] * ``` * */ dataSources?: Array<{ query_type?: 0; dataset: 'events'; /** * A search query to filter the events, such as `is:unresolved`. */ query: string; aggregate: 'count()' | 'count_unique(user)' | 'count_unique(dist)' | 'count_unique(release)' | 'count_unique(tags[sentry:user])' | 'count_unique(tags[sentry:dist])' | 'count_unique(tags[sentry:release])'; /** * The time window to aggregate over, in seconds. */ time_window: number; environment: string | null; event_types: Array<'error' | 'default'>; extrapolation_mode?: string | null; } | { query_type?: 1; dataset: 'events_analytics_platform'; /** * A search query to filter the events, such as `is:unresolved`. */ query: string; aggregate: string; /** * The time window to aggregate over, in seconds. */ time_window: number; environment: string | null; event_types: [ 'trace_item_span' ]; extrapolation_mode?: string | null; } | { query_type?: 1; dataset: 'events_analytics_platform'; /** * A search query to filter the events, such as `is:unresolved`. */ query: string; aggregate: string; /** * The time window to aggregate over, in seconds. */ time_window: number; environment: string | null; event_types: [ 'trace_item_log' ]; extrapolation_mode?: string | null; } | { query_type?: 1; dataset: 'events_analytics_platform'; /** * A search query to filter the events, such as `is:unresolved`. */ query: string; aggregate: string; /** * The time window to aggregate over, in seconds. */ time_window: number; environment: string | null; event_types: [ 'trace_item_metric' ]; extrapolation_mode?: string | null; } | { query_type?: 2; dataset: 'metrics'; /** * A search query to filter the events, such as `is:unresolved`. */ query: string; aggregate: string; /** * The time window to aggregate over, in seconds. */ time_window: number; environment: string | null; /** * Ignored for this dataset. Send an empty list. */ event_types: Array; extrapolation_mode?: string | null; }>; /** * * The issue detection type configuration. * * * - `detectionType` * - `static`: Threshold based monitor * - `percent`: Change based monitor * - `dynamic`: Dynamic monitor * - `comparisonDelta`: If selecting a **change** detection type, the comparison delta is the time period, in seconds, at which to compare against historical data. * For example, a value of 3600 compares the metric tracked against data 1 hour ago. * - `300`: 5 minutes * - `900`: 15 minutes * - `3600`: 1 hour * - `86400`: 1 day * - `604800`: 1 week * - `2592000`: 1 month * * **Threshold** * ```json * { * "detectionType": "static" * } * ``` * **Change** * ```json * { * "detectionType": "percent", * "comparisonDelta": 3600 * } * ``` * **Dynamic** * ```json * { * "detectionType": "dynamic" * } * ``` * */ config?: { [key: string]: unknown; }; /** * * Issue detection configuration for when to create an issue and at what priority level. * * * - `logicType`: `any` * - `type`: Any of `gt` (greater than), `gte` (greater than or equal), `lt` (less than), `lte` (less than or equal), or `anomaly_detection` (dynamic) * - `comparison`: Any positive integer. This is threshold that must be crossed for the monitor to create an issue, e.g. "Create a metric issue when there are more than 5 unresolved error events". * - If creating a **change** monitor, `comparison` is the current value as a percentage of the value `comparisonDelta` seconds earlier, not the size of the change. For example, use `120` with `gt` for 20% higher, or `70` with `lt` for 30% lower. * - If creating a **dynamic** monitor, see the options below. * - `seasonality`: `auto` * - `sensitivity`: Level of responsiveness. Options are one of `low`, `medium`, or `high` * - `thresholdType`: If you want to be alerted to anomalies that are moving above, below, or in both directions in relation to your threshold. * - `0`: Above * - `1`: Below * - `2`: Above and below * * - `conditionResult`: The issue state change when the threshold is crossed. * - `75`: High priority * - `50`: Low priority * - `0`: Resolved * * * **Threshold Monitor** * ```json * "logicType": "any", * "conditions": [ * { * "type": "gt", * "comparison": 10, * "conditionResult": 75 * }, * { * "type": "lte", * "comparison": 10, * "conditionResult": 0 * } * ], * "actions": [] * ``` * * **Change Monitor** (20% higher than `comparisonDelta` seconds earlier) * ```json * "logicType": "any", * "conditions": [ * { * "type": "gt", * "comparison": 120, * "conditionResult": 75 * }, * { * "type": "lte", * "comparison": 120, * "conditionResult": 0 * } * ], * "actions": [] * ``` * * **Threshold Monitor with Medium Priority** * ```json * "logicType": "any", * "conditions": [ * { * type: "gt", * comparison: 5, * conditionResult: 75 * }, * { * type: "gt", * comparison: 2, * conditionResult: 50 * }, * { * type: "lte", * comparison: 2, * conditionResult: 0 * } * ], * "actions": [] * ``` * * **Dynamic Monitor** * ```json * "logicType": "any", * "conditions": [ * { * "type": "anomaly_detection", * "comparison": { * "seasonality": "auto", * "sensitivity": "medium", * "thresholdType": 2 * }, * "conditionResult": 75 * } * ], * "actions": [] * ``` * */ conditionGroup?: { id?: number; /** * * `any` * * `any-short` * * `all` * * `none` */ logicType: 'any' | 'any-short' | 'all' | 'none'; conditions?: Array; }; /** * * The ID user or team who owns the monitor or alert prefaced by the string 'user' or 'team'. * * **User** * ```json * "user:123456" * ``` * * **Team** * ```json * "team:456789" * ``` * */ owner?: string | null; /** * A description of the monitor. Will be used in the resulting issue. */ description?: string | null; /** * Set to False if you want to disable the monitor. */ enabled?: boolean; }; path: { /** * The ID or slug of the organization the resource belongs to. */ organization_id_or_slug: string; /** * The ID of the monitor you'd like to query. */ detector_id: number; }; query?: never; url: '/organizations/{organization_id_or_slug}/detectors/{detector_id}/'; }; export type UpdateOrganizationDetectorErrors = { /** * Bad Request */ 400: unknown; /** * Unauthorized */ 401: unknown; /** * Forbidden */ 403: unknown; /** * Not Found */ 404: unknown; }; export type UpdateOrganizationDetectorResponses = { 200: { /** * Team or user that owns the monitor */ owner?: { /** * Whether the actor is a user or a team */ type: 'user' | 'team'; /** * ID of the user or team */ id: string; /** * Display name of the user, or slug of the team */ name: string; /** * Email address of the user. Only set for users */ email?: string; } | null; /** * ID of the user who created the monitor */ createdBy?: string | null; /** * Latest issue the monitor created */ latestGroup?: { /** * ID of the issue */ id: string; /** * Title of the issue */ title: string; /** * Function or module where the issue occurs */ culprit: string | null; /** * Short ID of the issue, such as PROJECT-1A */ shortId: string | null; /** * Severity level of the issue */ level: 'sample' | 'debug' | 'info' | 'warning' | 'error' | 'fatal' | 'unknown'; /** * Issue status */ status: 'resolved' | 'ignored' | 'pending_deletion' | 'pending_merge' | 'reprocessing' | 'unresolved'; /** * Substatus of the issue, such as ongoing, regressed or escalating */ substatus: 'archived_until_escalating' | 'archived_until_condition_met' | 'archived_forever' | 'escalating' | 'ongoing' | 'regressed' | 'new' | null; /** * Platform of the issue's events */ platform: string | null; /** * Project the issue belongs to */ project: { /** * ID of the project */ id: string; /** * Name of the project */ name: string; /** * Slug of the project */ slug: string; /** * Platform of the project */ platform: string | null; }; /** * Event type of the issue, such as error or default */ type: 'default' | 'error' | 'csp' | 'nel' | 'hpkp' | 'expectct' | 'expectstaple' | 'transaction' | 'generic' | 'feedback'; /** * Issue type, such as error or performance_n_plus_one_db_queries */ issueType: string; /** * Issue category, such as error or performance */ issueCategory: string; /** * Issue metadata */ metadata: { /** * Title of default and issue platform events */ title?: string; /** * Exception value, or the subtitle of an issue */ value?: string; /** * Exception type of error events */ type?: string; /** * Whether the SDK fabricated the exception to carry a stacktrace, so its type is a platform label rather than what went wrong */ synthetic?: boolean; /** * File of the frame where the error happened */ filename?: string; /** * Function of the frame where the error happened */ function?: string; /** * Message of default, security and feedback events */ message?: string; /** * URI that a CSP report blocked */ uri?: string; /** * CSP directive that was violated */ directive?: string; /** * Host name of HPKP, Expect-CT and Expect-Staple reports */ origin?: string; /** * Name of the person who sent user feedback */ name?: string; /** * Email of the person who sent user feedback */ contact_email?: string; /** * Where user feedback came from, such as a widget */ source?: string; /** * Whether the stacktrace has in-app frames, system frames or both */ in_app_frame_mix?: string; /** * Whether a crash report was dropped because the issue already stores the most allowed */ stripped_crash?: boolean; /** * SDK of the issue's first event */ sdk?: { /** * Name of the SDK, or unknown */ name: string; /** * Name of the SDK, normalized for grouping */ name_normalized: string; }; /** * Severity score of the issue's first event */ severity?: number; /** * Why the severity score is what it is */ severity_reason?: string; /** * Priority the issue was created with */ initial_priority?: number; }; /** * Number of comments on the issue */ numComments: number; /** * When the issue was first seen (ISO 8601) */ firstSeen: string | null; /** * When the issue was last seen (ISO 8601) */ lastSeen: string | null; } | null; /** * Description of the monitor */ description?: string | null; /** * Monitor ID */ id: string; /** * ID of the project the monitor belongs to */ projectId: string | null; /** * Monitor name */ name: string; /** * Type of the monitor, such as metric_issue or error */ type: string; /** * IDs of the alerts connected to the monitor */ workflowIds: Array | null; /** * When the monitor was created (ISO 8601) */ dateCreated: string; /** * When the monitor was last updated (ISO 8601) */ dateUpdated: string; /** * Data sources the monitor evaluates, such as a query subscription */ dataSources: Array<{ /** * ID of the data source */ id: string; /** * ID of the organization */ organizationId: string; /** * Type of the data source */ type: 'snuba_query_subscription' | 'cron_monitor' | 'uptime_subscription'; /** * ID of the query subscription, cron monitor or uptime subscription */ sourceId: string; /** * The query subscription, cron monitor or uptime subscription, which depends on type. Null when it no longer exists */ queryObj: { /** * ID of the query subscription */ id: string; /** * Status of the subscription: 0 active, 1 creating, 2 updating, 3 deleting or 4 disabled */ status: number; /** * ID of the subscription in Snuba. Null while it's being created */ subscription: string | null; /** * Query the subscription runs */ snubaQuery: { /** * ID of the query */ id: string; /** * Dataset the query runs on, such as events or events_analytics_platform */ dataset: string; /** * Search query that filters the data */ query: string; /** * Aggregate function the query computes, such as count() */ aggregate: string; /** * Time window of the query in seconds */ timeWindow: number; /** * Environment the query is limited to. Null for all environments */ environment: string | null; /** * Event types the query includes, such as error or transaction */ eventTypes: Array; /** * How sampled data is extrapolated, unknown, none, client_and_server_weighted or server_weighted. Null when not set */ extrapolationMode: string | null; }; } | { /** * ID of the monitor */ id: string; /** * Name of the monitor */ name: string; /** * Slug that identifies the monitor in the organization */ slug: string; /** * Status of the monitor. Disabled monitors don't accept check-ins */ status: 'active' | 'disabled' | 'pending_deletion' | 'deletion_in_progress'; /** * Whether incidents are muted in all of the monitor's environments */ isMuted: boolean; /** * Whether the most recent check-in was an upsert check-in */ isUpserting: boolean; /** * Configuration of the monitor */ config: { /** * Type of schedule: crontab or interval */ schedule_type: 'crontab' | 'interval'; /** * Schedule of the monitor: a crontab string, or a [value, unit] pair for intervals, such as [1, "day"] */ schedule: string | Array; /** * How long in minutes after the expected check-in time to wait before the check-in counts as missed */ checkin_margin: number | null; /** * How long in minutes a check-in can stay in progress before it counts as failed */ max_runtime: number | null; /** * Timezone the schedule is evaluated in, as a tz database name */ timezone: string | null; /** * Number of consecutive missed or failed check-ins before an issue is created */ failure_issue_threshold: number | null; /** * Number of consecutive successful check-ins before the issue is resolved */ recovery_threshold: number | null; /** * ID of the alert rule linked to the monitor */ alert_rule_id: number | null; }; /** * When the monitor was created (ISO 8601) */ dateCreated: string; /** * Project the monitor belongs to */ project: { /** * Counts of non-transaction events per interval over the requested stats period, as [timestamp, count] pairs. Only included when a stats period is requested */ stats?: Array> | { [key: string]: number; }; /** * Counts of transactions per interval over the requested stats period, as [timestamp, count] pairs. Only included when transaction stats are requested */ transactionStats?: Array>; /** * Crash-free session rates for the current and previous stats period. Only included when session stats are requested */ sessionStats?: { /** * Crash-free rate in the current period, as a percentage. Null when there's no session data */ currentCrashFreeRate: number | null; /** * Crash-free rate in the previous period, as a percentage. Null when there's no session data */ previousCrashFreeRate: number | null; /** * Whether the project has release health (session) data */ hasHealthData: boolean; }; /** * ID of the project */ id: string; /** * Slug of the project */ slug: string; /** * Name of the project */ name: string; /** * Platform of the project */ platform: string | null; /** * When the project was created (ISO 8601) */ dateCreated: string; /** * Whether the requesting user bookmarked the project */ isBookmarked: boolean; /** * Whether the requesting user is a member of a team with access to the project */ isMember: boolean; /** * Features enabled for the project */ features: Array; /** * When the project received its first event (ISO 8601) */ firstEvent: string | null; /** * Whether the project has sent transactions */ firstTransactionEvent: boolean; /** * Scopes the requesting user has on the project through team membership and organization role */ access: Array; /** * Whether the requesting user has access to the project */ hasAccess: boolean; /** * Whether the project has sent user feedback */ hasFeedbacks: boolean; /** * Whether the project has sent feature flags */ hasFlags: boolean; /** * Whether the project has sent an event with a minified stack trace */ hasMinifiedStackTrace: boolean; /** * Whether the project has cron monitors */ hasMonitors: boolean; /** * Whether the project has sent user feedback from the user feedback widget */ hasNewFeedbacks: boolean; /** * Whether the project has sent profiles */ hasProfiles: boolean; /** * Whether the project has sent replays */ hasReplays: boolean; /** * Whether the project has sent sessions */ hasSessions: boolean; /** * Whether the project has sent HTTP request spans used by Insights */ hasInsightsHttp: boolean; /** * Whether the project has sent database spans used by Insights */ hasInsightsDb: boolean; /** * Whether the project has sent asset spans used by Insights */ hasInsightsAssets: boolean; /** * Whether the project has sent app start spans used by Insights */ hasInsightsAppStart: boolean; /** * Whether the project has sent screen load spans used by Insights */ hasInsightsScreenLoad: boolean; /** * Whether the project has sent web vitals spans used by Insights */ hasInsightsVitals: boolean; /** * Whether the project has sent cache spans used by Insights */ hasInsightsCaches: boolean; /** * Whether the project has sent queue spans used by Insights */ hasInsightsQueues: boolean; /** * Whether the project has sent AI agent spans used by Insights */ hasInsightsAgentMonitoring: boolean; /** * Whether the project has sent MCP spans used by Insights */ hasInsightsMCP: boolean; /** * Whether the project has sent logs. Always true outside sentry.io */ hasLogs: boolean; /** * Whether the project has sent trace metrics. Always true outside sentry.io */ hasTraceMetrics: boolean; /** * Whether this is the Sentry install's own internal project */ isInternal: boolean; /** * Whether the project is public */ isPublic: boolean; /** * Avatar of the project. Always a letter avatar */ avatar: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Hex color code for the project, derived from its slug unless set explicitly */ color: string; /** * Status of the project: active, deleted, or unknown */ status: string; }; /** * Environments the monitor has received check-ins for */ environments: Array<{ /** * Name of the environment */ name: string; /** * Status of the monitor in the environment */ status: 'active' | 'disabled' | 'pending_deletion' | 'deletion_in_progress' | 'ok' | 'error'; /** * Whether incidents are muted for the monitor in the environment */ isMuted: boolean; /** * When the monitor was created (ISO 8601) */ dateCreated: string; /** * When the most recent check-in was received, not counting missed check-ins (ISO 8601) */ lastCheckIn: string | null; /** * When the next check-in is expected (ISO 8601) */ nextCheckIn: string | null; /** * Latest time the next check-in can arrive before it counts as missed (ISO 8601) */ nextCheckInLatest: string | null; /** * Unresolved incident for the monitor in the environment. Null when there's none */ activeIncident: { /** * When the incident started (ISO 8601) */ startingTimestamp: string | null; /** * When the incident was resolved (ISO 8601) */ resolvingTimestamp: string | null; /** * Details of the broken monitor notice for the incident. Null when there's none */ brokenNotice: { /** * When users were notified that the monitor environment looks broken (ISO 8601) */ userNotifiedTimestamp: string | null; /** * When the broken monitor environment was muted (ISO 8601) */ environmentMutedTimestamp: string | null; } | null; } | null; }>; /** * Team or user that owns the monitor. Null when there's no owner */ owner: { /** * Whether the actor is a user or a team */ type: 'user' | 'team'; /** * ID of the user or team */ id: string; /** * Display name of the user, or slug of the team */ name: string; /** * Email address of the user. Only set for users */ email?: string; } | null; } | { /** * URL the check requests */ url: string; /** * HTTP method of the check request, such as GET */ method: string; /** * Body of the check request. Null when it has none */ body: string | null; /** * Headers of the check request, each a name and value pair */ headers: Array>; /** * How often the check runs, in seconds */ intervalSeconds: number; /** * How long the check waits for a response, in milliseconds */ timeoutMs: number; /** * Whether the check request samples a trace */ traceSampling: boolean; /** * Whether failed checks capture the response body and headers */ responseCaptureEnabled: boolean; /** * Assertion the response must pass. Null when the check has none */ assertion: { /** * All possible assertion operations */ root?: { /** * Operation, always and */ op?: 'and'; /** * Operations that must all pass */ children?: Array<{ [key: string]: unknown; }>; } | { /** * Operation, always or */ op?: 'or'; /** * Operations of which at least one must pass */ children?: Array<{ [key: string]: unknown; }>; } | { /** * Operation, always not */ op?: 'not'; /** * All possible assertion operations. Its fields are the same as the one this is inside, so they're left out here. */ operand?: { [key: string]: unknown; }; } | { /** * HTTP status code to compare the response status code against */ value?: number; /** * The kind of comparison to make. */ operator?: 'always' | 'never' | 'less_than' | 'greater_than' | 'equals' | 'not_equals'; } | { /** * Operation, always json_path */ op?: 'json_path'; /** * JSONPath query to run on the response body */ value?: string; /** * The kind of comparison to make. */ operator?: 'always' | 'never' | 'less_than' | 'greater_than' | 'equals' | 'not_equals' | null; /** * An operand for comparison against json path values */ operand?: { /** * Kind of operand, always glob */ header_op?: 'glob'; /** * The actual glob pattern, as a string */ pattern?: { /** * Glob pattern */ value?: string; }; } | { /** * Kind of operand, always literal */ jsonpath_op?: 'literal'; /** * Value to compare the query result against */ value?: string; } | { /** * Kind of operand, always none */ header_op?: 'none'; } | null; } | { /** * The kind of comparison to make. */ key_op?: 'always' | 'never' | 'less_than' | 'greater_than' | 'equals' | 'not_equals'; /** * A operand for comparison against HTTP header keys and values */ key_operand?: { /** * Kind of operand, always glob */ header_op?: 'glob'; /** * The actual glob pattern, as a string */ pattern?: { /** * Glob pattern */ value?: string; }; } | { /** * Kind of operand, always literal */ header_op?: 'literal'; /** * Value to compare the header key or value against */ value?: string; } | { /** * Kind of operand, always none */ header_op?: 'none'; }; /** * The kind of comparison to make. */ value_op?: 'always' | 'never' | 'less_than' | 'greater_than' | 'equals' | 'not_equals'; /** * A operand for comparison against HTTP header keys and values */ value_operand?: { /** * Kind of operand, always glob */ header_op?: 'glob'; /** * The actual glob pattern, as a string */ pattern?: { /** * Glob pattern */ value?: string; }; } | { /** * Kind of operand, always literal */ header_op?: 'literal'; /** * Value to compare the header key or value against */ value?: string; } | { /** * Kind of operand, always none */ header_op?: 'none'; }; }; } | null; } | null; }> | null; /** * Conditions that decide the monitor's status */ conditionGroup: { /** * ID of the condition group */ id?: string; /** * ID of the organization */ organizationId?: string; /** * How the conditions in the group combine */ logicType?: 'any' | 'any-short' | 'all' | 'none'; /** * Conditions in the group */ conditions?: Array<{ /** * ID of the condition */ id: string; /** * Type of the condition, such as first_seen_event or level */ type: string; /** * Value the condition compares against, which depends on its type */ comparison: number | string | boolean | { /** * Whether the issue must be older or newer than the age */ comparisonType: 'older' | 'newer'; /** * Age of the issue, in units of time */ value: number; /** * Unit of the age */ time: 'minute' | 'hour' | 'day' | 'week'; } | { /** * How sensitive anomaly detection is */ sensitivity: 'low' | 'medium' | 'high'; /** * Seasonal pattern that anomaly detection accounts for */ seasonality: 'auto' | 'hourly' | 'daily' | 'weekly' | 'hourly_daily' | 'hourly_weekly' | 'hourly_daily_weekly' | 'daily_weekly'; /** * Anomalies to detect: 0 above, 1 below, 2 above or below the expected value */ thresholdType: 0 | 1 | 2; } | { /** * Who the issue must be assigned to */ targetType: 'Unassigned' | 'Team' | 'Member'; /** * ID of the team or member. Not set for Unassigned */ targetIdentifier?: number | string; } | { /** * Event attribute to match, such as message or user.email */ attribute?: 'message' | 'platform' | 'environment' | 'type' | 'error.handled' | 'error.unhandled' | 'error.main_thread' | 'exception.type' | 'exception.value' | 'user.id' | 'user.email' | 'user.username' | 'user.ip_address' | 'http.method' | 'http.url' | 'http.status_code' | 'sdk.name' | 'stacktrace.code' | 'stacktrace.module' | 'stacktrace.filename' | 'stacktrace.abs_path' | 'stacktrace.package' | 'unreal.crash_type' | 'app.in_foreground' | 'os.distribution_name' | 'os.distribution_version' | 'symbolicated_in_app' | 'ota_updates.channel' | 'ota_updates.runtime_version' | 'ota_updates.update_id'; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the attribute against. Not set for is and ns */ value?: string; } | number | { /** * Time window to count in, such as 1h */ interval: '1m' | '5m' | '15m' | '1h' | '1d' | '1w' | '30d'; /** * Number of events in the interval that meets the condition */ value: number; /** * Tag or attribute filters that events must match to count */ filters?: Array<{ /** * Tag key to match */ key?: string; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the tag or attribute against. Not set for is and ns */ value?: string; } | { /** * Event attribute to match, such as message or user.email */ attribute?: 'message' | 'platform' | 'environment' | 'type' | 'error.handled' | 'error.unhandled' | 'error.main_thread' | 'exception.type' | 'exception.value' | 'user.id' | 'user.email' | 'user.username' | 'user.ip_address' | 'http.method' | 'http.url' | 'http.status_code' | 'sdk.name' | 'stacktrace.code' | 'stacktrace.module' | 'stacktrace.filename' | 'stacktrace.abs_path' | 'stacktrace.package' | 'unreal.crash_type' | 'app.in_foreground' | 'os.distribution_name' | 'os.distribution_version' | 'symbolicated_in_app' | 'ota_updates.channel' | 'ota_updates.runtime_version' | 'ota_updates.update_id'; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the tag or attribute against. Not set for is and ns */ value?: string; }>; } | { /** * Time window to count in, such as 1h */ interval: '1m' | '5m' | '15m' | '1h' | '1d' | '1w' | '30d'; /** * Percent increase in events over the comparison interval that meets the condition */ value: number; /** * Earlier time window to compare the count against, such as 1w */ comparisonInterval: '5m' | '15m' | '1h' | '1d' | '1w' | '30d'; /** * Tag or attribute filters that events must match to count */ filters?: Array<{ /** * Tag key to match */ key?: string; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the tag or attribute against. Not set for is and ns */ value?: string; } | { /** * Event attribute to match, such as message or user.email */ attribute?: 'message' | 'platform' | 'environment' | 'type' | 'error.handled' | 'error.unhandled' | 'error.main_thread' | 'exception.type' | 'exception.value' | 'user.id' | 'user.email' | 'user.username' | 'user.ip_address' | 'http.method' | 'http.url' | 'http.status_code' | 'sdk.name' | 'stacktrace.code' | 'stacktrace.module' | 'stacktrace.filename' | 'stacktrace.abs_path' | 'stacktrace.package' | 'unreal.crash_type' | 'app.in_foreground' | 'os.distribution_name' | 'os.distribution_version' | 'symbolicated_in_app' | 'ota_updates.channel' | 'ota_updates.runtime_version' | 'ota_updates.update_id'; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the tag or attribute against. Not set for is and ns */ value?: string; }>; } | { /** * Time window to count in, such as 1h */ interval: '1m' | '5m' | '15m' | '1h' | '1d' | '1w' | '30d'; /** * Number of affected users in the interval that meets the condition */ value: number; /** * Tag or attribute filters that events must match to count */ filters?: Array<{ /** * Tag key to match */ key?: string; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the tag or attribute against. Not set for is and ns */ value?: string; } | { /** * Event attribute to match, such as message or user.email */ attribute?: 'message' | 'platform' | 'environment' | 'type' | 'error.handled' | 'error.unhandled' | 'error.main_thread' | 'exception.type' | 'exception.value' | 'user.id' | 'user.email' | 'user.username' | 'user.ip_address' | 'http.method' | 'http.url' | 'http.status_code' | 'sdk.name' | 'stacktrace.code' | 'stacktrace.module' | 'stacktrace.filename' | 'stacktrace.abs_path' | 'stacktrace.package' | 'unreal.crash_type' | 'app.in_foreground' | 'os.distribution_name' | 'os.distribution_version' | 'symbolicated_in_app' | 'ota_updates.channel' | 'ota_updates.runtime_version' | 'ota_updates.update_id'; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the tag or attribute against. Not set for is and ns */ value?: string; }>; } | { /** * Time window to count in, such as 1h */ interval: '1m' | '5m' | '15m' | '1h' | '1d' | '1w' | '30d'; /** * Percent increase in affected users over the comparison interval that meets the condition */ value: number; /** * Earlier time window to compare the count against, such as 1w */ comparisonInterval: '5m' | '15m' | '1h' | '1d' | '1w' | '30d'; /** * Tag or attribute filters that events must match to count */ filters?: Array<{ /** * Tag key to match */ key?: string; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the tag or attribute against. Not set for is and ns */ value?: string; } | { /** * Event attribute to match, such as message or user.email */ attribute?: 'message' | 'platform' | 'environment' | 'type' | 'error.handled' | 'error.unhandled' | 'error.main_thread' | 'exception.type' | 'exception.value' | 'user.id' | 'user.email' | 'user.username' | 'user.ip_address' | 'http.method' | 'http.url' | 'http.status_code' | 'sdk.name' | 'stacktrace.code' | 'stacktrace.module' | 'stacktrace.filename' | 'stacktrace.abs_path' | 'stacktrace.package' | 'unreal.crash_type' | 'app.in_foreground' | 'os.distribution_name' | 'os.distribution_version' | 'symbolicated_in_app' | 'ota_updates.channel' | 'ota_updates.runtime_version' | 'ota_updates.update_id'; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the tag or attribute against. Not set for is and ns */ value?: string; }>; } | { /** * ID of the issue category */ value: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 19; /** * Whether the issue must be in the category or not. Defaults to true */ include?: boolean; } | { /** * Number of times the issue must have occurred */ value: number; } | 25 | 50 | 75 | 1 | { /** * Slug of the issue type */ value: 'performance_slow_db_query' | 'performance_render_blocking_asset_span' | 'performance_n_plus_one_db_queries' | 'performance_n_plus_one_db_queries_experimental' | 'performance_consecutive_db_queries' | 'performance_file_io_main_thread' | 'performance_consecutive_http' | 'performance_n_plus_one_api_calls' | 'performance_n_plus_one_api_calls_experimental' | 'performance_m_n_plus_one_db_queries' | 'performance_m_n_plus_one_db_queries_experimental' | 'performance_uncompressed_assets' | 'performance_db_main_thread' | 'performance_large_http_payload' | 'performance_http_overhead' | 'performance_p95_endpoint_regression' | 'performance_streamed_spans_exp' | 'db_query_injection_vulnerability' | 'query_injection_vulnerability' | 'profile_file_io_main_thread' | 'profile_image_decode_main_thread' | 'profile_json_decode_main_thread' | 'profile_regex_main_thread' | 'profile_frame_drop' | 'profile_function_regression' | 'llm_detected_experimental' | 'llm_detected_experimental_v2' | 'ai_detected_http' | 'ai_detected_db' | 'ai_detected_runtime_performance' | 'ai_detected_security' | 'ai_detected_code_health' | 'ai_detected_general' | 'replay_click_rage' | 'replay_hydration_error' | 'feedback' | 'web_vitals' | 'issue_stream' | 'metric_issue' | 'error' | 'uptime_domain_failure' | 'send-test-notification' | 'monitor_check_in_failure' | 'sourcemap_configuration' | 'low_value_span_configuration' | 'preprod_size_analysis'; /** * Whether the issue must be of the type or not. Defaults to true */ include?: boolean; } | { /** * Whether to compare against the oldest or newest adopted release */ releaseAgeType: 'oldest' | 'newest'; /** * Whether the event's release must be older or newer than that release */ ageComparison: 'older' | 'newer'; /** * Environment the release was adopted in */ environment: string; } | { /** * Event level: 0 sample, 10 debug, 20 info, 30 warning, 40 error, 50 fatal */ level: 0 | 10 | 20 | 30 | 40 | 50; /** * How to compare the event's level: eq, gte or lte */ match: 'eq' | 'gte' | 'lte'; } | { /** * Time window to count in, such as 1h */ interval: '1m' | '5m' | '10m' | '30m' | '1h'; /** * Percent of sessions affected in the interval that meets the condition */ value: number; /** * Tag or attribute filters that events must match to count */ filters?: Array<{ /** * Tag key to match */ key?: string; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the tag or attribute against. Not set for is and ns */ value?: string; } | { /** * Event attribute to match, such as message or user.email */ attribute?: 'message' | 'platform' | 'environment' | 'type' | 'error.handled' | 'error.unhandled' | 'error.main_thread' | 'exception.type' | 'exception.value' | 'user.id' | 'user.email' | 'user.username' | 'user.ip_address' | 'http.method' | 'http.url' | 'http.status_code' | 'sdk.name' | 'stacktrace.code' | 'stacktrace.module' | 'stacktrace.filename' | 'stacktrace.abs_path' | 'stacktrace.package' | 'unreal.crash_type' | 'app.in_foreground' | 'os.distribution_name' | 'os.distribution_version' | 'symbolicated_in_app' | 'ota_updates.channel' | 'ota_updates.runtime_version' | 'ota_updates.update_id'; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the tag or attribute against. Not set for is and ns */ value?: string; }>; } | { /** * Time window to count in, such as 1h */ interval: '1m' | '5m' | '10m' | '30m' | '1h'; /** * Percent increase in affected sessions over the comparison interval that meets the condition */ value: number; /** * Earlier time window to compare the count against, such as 1w */ comparisonInterval: '5m' | '15m' | '1h' | '1d' | '1w' | '30d'; /** * Tag or attribute filters that events must match to count */ filters?: Array<{ /** * Tag key to match */ key?: string; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the tag or attribute against. Not set for is and ns */ value?: string; } | { /** * Event attribute to match, such as message or user.email */ attribute?: 'message' | 'platform' | 'environment' | 'type' | 'error.handled' | 'error.unhandled' | 'error.main_thread' | 'exception.type' | 'exception.value' | 'user.id' | 'user.email' | 'user.username' | 'user.ip_address' | 'http.method' | 'http.url' | 'http.status_code' | 'sdk.name' | 'stacktrace.code' | 'stacktrace.module' | 'stacktrace.filename' | 'stacktrace.abs_path' | 'stacktrace.package' | 'unreal.crash_type' | 'app.in_foreground' | 'os.distribution_name' | 'os.distribution_version' | 'symbolicated_in_app' | 'ota_updates.channel' | 'ota_updates.runtime_version' | 'ota_updates.update_id'; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the tag or attribute against. Not set for is and ns */ value?: string; }>; } | Array<'rca_completed' | 'solution_completed' | 'coding_completed' | 'pr_ready_for_review'> | { /** * Tag key to match */ key?: string; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the tag against. Not set for is and ns */ value?: string; }; /** * Result the condition produces when it matches: true for alert conditions, or the priority level for monitor conditions */ conditionResult: boolean | number | number | null; }>; /** * Actions to fire when the conditions pass */ actions?: Array<{ /** * ID of the action */ id?: string; /** * Type of the action */ type?: 'slack' | 'slack_staging' | 'msteams' | 'discord' | 'pagerduty' | 'opsgenie' | 'github' | 'github_enterprise' | 'jira' | 'jira_server' | 'vsts' | 'email' | 'sentry_app' | 'plugin' | 'webhook' | 'seer_investigation'; /** * ID of the integration the action uses. Null for actions without one */ integrationId?: string | null; /** * Extra data for the action, which depends on its type */ data?: { /** * Tags to add to the message */ tags?: string; } | { /** * The fallthrough type for issue owners email notifications */ fallthroughType?: 'AllMembers' | 'ActiveMembers' | 'NoOne'; } | { /** * Dynamic form fields from customer configuration */ dynamicFormFields?: Array<{ /** * Name of the field */ name?: string; /** * Label of the field */ label?: string; /** * Type of the field, such as select or text */ type?: string; }>; /** * Additional fields that aren't part of standard fields */ additionalFields: { /** * Repository to create the issue in, as owner/name */ repo: string; /** * Labels to add to the issue */ labels?: Array | null; /** * User to assign the issue to */ assignee?: string | null; [key: string]: unknown; }; } | { /** * Dynamic form fields from customer configuration */ dynamicFormFields?: Array<{ /** * Name of the field */ name?: string; /** * Label of the field */ label?: string; /** * Type of the field, such as select or text */ type?: string; }>; /** * Additional fields that aren't part of standard fields */ additionalFields?: { [key: string]: string | null | number | boolean | Array; }; } | { [key: string]: never; } | { /** * The priority of the opsgenie action */ priority?: 'P1' | 'P2' | 'P3' | 'P4' | 'P5'; } | { /** * The priority of the pagerduty action */ priority?: 'default' | 'critical' | 'warning' | 'error' | 'info'; } | { [key: string]: string; } | { /** * Prompt the investigation runs */ prompt?: string; /** * Seer skill the investigation runs, instead of a prompt */ skill?: 'agentic_triage'; } | { /** * Values of the Sentry App's alert rule settings form, each with a name and value */ settings?: Array; } | { /** * Tags to add to the message */ tags?: string; /** * Notes to add to the message */ notes?: string; }; /** * Configuration of the action, such as targetType and targetIdentifier */ config?: { /** * ID of the target, such as a channel, user or team ID */ targetIdentifier: string; /** * Display name of the target, such as a channel name */ targetDisplay?: string | null; /** * Kind of target the action notifies, such as specific, user or team */ targetType: 'specific'; } | { /** * ID of the target, such as a channel, user or team ID */ targetIdentifier?: string | null; /** * Display name of the target, such as a channel name */ targetDisplay?: null; /** * Kind of target the action notifies, such as specific, user or team */ targetType: 'user' | 'team' | 'issue_owners'; } | { /** * ID of the target, such as a channel, user or team ID */ targetIdentifier?: null; /** * Display name of the target, such as a channel name */ targetDisplay?: null; /** * Kind of target the action notifies, such as specific, user or team */ targetType?: 'specific'; } | { /** * ID of the target, such as a channel, user or team ID */ targetIdentifier?: string; /** * Display name of the target, such as a channel name */ targetDisplay: string; /** * Kind of target the action notifies, such as specific, user or team */ targetType: 'specific'; } | { /** * ID of the target, such as a channel, user or team ID */ targetIdentifier: string; /** * Display name of the target, such as a channel name */ targetDisplay?: string | null; /** * Kind of target the action notifies, such as specific, user or team */ targetType: 'specific'; } | { /** * ID of the target, such as a channel, user or team ID */ targetIdentifier?: string | null; /** * Display name of the target, such as a channel name */ targetDisplay?: string | null; /** * Kind of target the action notifies, such as specific, user or team */ targetType?: null; } | { [key: string]: never; } | { /** * ID of the target, such as a channel, user or team ID */ targetIdentifier: string; /** * Display name of the target, such as a channel name */ targetDisplay?: string | null; /** * Kind of target the action notifies, such as specific, user or team */ targetType: 'sentry_app'; } | { /** * ID of the target, such as a channel, user or team ID */ targetIdentifier?: string; /** * Display name of the target, such as a channel name */ targetDisplay?: string; /** * Kind of target the action notifies, such as specific, user or team */ targetType: 'specific'; } | { /** * ID of the target, such as a channel, user or team ID */ targetIdentifier?: string; /** * Display name of the target, such as a channel name */ targetDisplay?: null; /** * Kind of target the action notifies, such as specific, user or team */ targetType?: null; }; /** * Status of the action */ status?: 'active' | 'disabled' | 'pending_deletion' | 'deletion_in_progress'; }>; } | null; /** * Configuration of the monitor, which depends on its type */ config: { [key: string]: unknown; } | { /** * Fingerprinting rules of the project */ 'sentry:fingerprintingRules'?: string; /** * Hours of inactivity after which the project's issues resolve. 0 to never */ 'sentry:resolveAge'?: number; } | { /** * ID of the organization */ organizationId?: number; } | { /** * For percent detection, how far back the compared window is, in seconds */ comparisonDelta?: 300 | 900 | 3600 | 86400 | 604800 | 2592000; /** * How the monitor detects issues: static thresholds, percent change or dynamic anomalies */ detectionType: 'static' | 'percent' | 'dynamic'; } | { /** * The type of threshold to apply */ thresholdType: 'absolute_diff' | 'absolute' | 'relative_diff'; /** * The measurement to track */ measurement: 'install_size' | 'download_size'; /** * Search query to filter which artifacts are monitored */ query?: string; } | { /** * How the monitor was created: 1 manually, 2 auto-detected and onboarding, 3 auto-detected and active */ mode: 1 | 2 | 3; /** * Environment of the monitor. Null for none */ environment: string | null; /** * Number of consecutive successful checks required to mark monitor as recovered */ recoveryThreshold: number; /** * Number of consecutive failed checks required to mark monitor as down */ downtimeThreshold: number; }; /** * Whether the monitor is enabled */ enabled: boolean; }; }; export type UpdateOrganizationDetectorResponse = UpdateOrganizationDetectorResponses[keyof UpdateOrganizationDetectorResponses]; export type ListOrganizationDiscoverSavedQueriesData = { body?: never; path: { /** * The ID or slug of the organization the resource belongs to. */ organization_id_or_slug: string; }; query?: { /** * Limit the number of rows to return in the result. Default and maximum allowed is 100. */ per_page?: number; /** * A pointer to the last object fetched and its sort order; used to retrieve the next or previous results. */ cursor?: string; /** * The name of the Discover query you'd like to filter by. */ query?: string; /** * The property to sort results by. If not specified, the results are sorted by query name. * * Available fields are: * - `name` * - `dateCreated` * - `dateUpdated` * - `mostPopular` * - `recentlyViewed` * - `myqueries` * */ sortBy?: string; }; url: '/organizations/{organization_id_or_slug}/discover/saved/'; }; export type ListOrganizationDiscoverSavedQueriesErrors = { /** * Bad Request */ 400: unknown; /** * Forbidden */ 403: unknown; /** * Not Found */ 404: unknown; }; export type ListOrganizationDiscoverSavedQueriesResponses = { 200: Array<{ /** * Names of the environments the query filters by */ environment?: Array; /** * Search query that filters the results */ query?: string; /** * Fields, functions or equations the query requests */ fields?: Array; /** * Rendered column widths, in the same order as the query's fields */ widths?: Array; /** * Filter conditions, each as a [column, operator, value] triple */ conditions?: Array; /** * Aggregate functions to apply, each as a [function, column, alias] triple */ aggregations?: Array; /** * Saved relative time range, such as 14d */ range?: string; /** * Saved start time (ISO 8601) */ start?: string; /** * Saved end time (ISO 8601) */ end?: string; /** * How the query results are ordered */ orderby?: string; /** * Maximum number of rows to return */ limit?: string; /** * Aggregate functions plotted on the chart */ yAxis?: Array; /** * Chart type for the saved query, such as default, top5, daily or bar */ display?: string; /** * Number of top events' time series to show */ topEvents?: number; /** * Resolution of the time series */ interval?: string; /** * Explore query this saved query was migrated to. Null when there's none */ exploreQuery?: { /** * Names of the environments the query filters by */ environment?: Array; /** * Queries shown in Explore */ query?: Array<{ /** * Fields shown in the samples table */ fields?: Array | null; /** * Field the samples are sorted by */ orderby?: string | null; /** * Fields the aggregates are grouped by */ groupby?: Array | null; /** * Search query that filters the results */ query?: string | null; /** * Charts shown for the query */ visualize?: Array<{ /** * Chart type used to plot the aggregates */ chartType?: number; /** * Transformations applied to the plotted series */ transformations?: Array; /** * Aggregates to plot */ yAxes: Array; }> | null; /** * Aggregates and group-by fields shown in aggregate mode */ aggregateField?: Array<{ /** * Chart type used to plot the aggregates */ chartType?: number; /** * Aggregates to plot */ yAxes?: Array; /** * Field to group the aggregates by */ groupBy?: string; /** * Transformations applied to the plotted series */ transformations?: Array; }> | null; /** * Field the aggregate results are sorted by */ aggregateOrderby?: string | null; /** * Metric the query reads, for metric queries */ metric?: { /** * Unit of the metric. Null when it has none */ unit?: string | null; /** * Name of the metric */ name: string; /** * Type of the metric */ type: 'counter' | 'gauge' | 'distribution'; } | null; /** * Whether the search query ignores letter case */ caseInsensitive?: boolean; /** * Whether the query shows samples or aggregates */ mode: 'samples' | 'aggregate'; }>; /** * Relative time range of the query, such as 14d */ statsPeriod?: string; /** * Start of the absolute time range (ISO 8601) */ start?: string; /** * End of the absolute time range (ISO 8601) */ end?: string; /** * Resolution of the time series */ interval?: string; /** * ID of the Explore query */ id: string; /** * Name of the Explore query */ name: string; /** * IDs of the projects the query covers */ projects: Array; /** * Dataset the query reads */ dataset: 'spans' | 'logs' | 'segment_spans' | 'metrics' | 'replays' | 'ai_conversations'; /** * Whether the query's time range is outside the retention period */ expired: boolean; /** * Whether Sentry provides the query */ isPrebuilt: boolean; /** * Parts of the Discover query dropped by the migration. Null when none were */ changedReason: { /** * Sort orders dropped when the query was migrated. Null when none were */ orderby: Array<{ [key: string]: string; }> | null; /** * Equations dropped when the query was migrated. Null when none were */ equations: Array<{ [key: string]: string | Array; }> | null; /** * Columns dropped when the query was migrated */ columns: Array; } | null; } | null; /** * When the requesting user last viewed the query (ISO 8601) */ lastVisited?: string | null; /** * Whether the requesting user starred the query */ starred?: boolean; /** * Position of the query in the requesting user's starred list. Null when it isn't starred */ position?: number | null; /** * ID of the saved query */ id: string; /** * Name of the saved query */ name: string; /** * IDs of the projects the query filters by. [-1] means all projects */ projects: Array; /** * Schema version of the saved query: 1 for the legacy shape, 2 for the current one */ version: number; /** * Dataset the query runs on, such as error-events or transaction-like */ queryDataset: string; /** * How the dataset was chosen: unknown, inferred, user or forced */ datasetSource: string; /** * Whether the saved time range is outside data retention */ expired: boolean; /** * When the saved query was created (ISO 8601) */ dateCreated: string; /** * When the saved query was last updated (ISO 8601) */ dateUpdated: string; /** * User who created the saved query */ createdBy: { /** * SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access */ identities?: Array<{ /** * SSO identity ID */ id: string; /** * User's identifier at the auth provider */ name: string; /** * Organization the auth provider belongs to */ organization: { /** * Organization slug */ slug: string; /** * Organization name */ name: string; }; /** * Auth provider of the identity */ provider: { /** * Auth provider key, such as google or saml2 */ id: string; /** * Display name of the auth provider */ name: string; }; /** * When the identity was last verified by signing in through the auth provider */ dateVerified: string; /** * When the identity was last synced from the auth provider */ dateSynced: string; }>; /** * User avatar */ avatar?: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Two-factor authenticators of the user, without backup methods such as recovery codes */ authenticators?: Array<{ /** * Authenticator ID */ id: string; /** * Authenticator type, such as totp, sms, u2f or recovery */ type: string; /** * Display name of the authenticator type */ name: string; /** * When the authenticator was added */ dateCreated: string; /** * When the authenticator was last used, or null */ dateUsed: string | null; }>; /** * Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization */ canReset2fa?: boolean; /** * User ID */ id: string; /** * Display name: the user's name, or their email or username if no name is set */ name: string; /** * Username */ username: string; /** * Primary email address */ email: string; /** * Gravatar URL for the primary email address */ avatarUrl: string; /** * Whether the account is active */ isActive: boolean; /** * Whether the account is suspended. Suspended users can't sign in */ isSuspended: boolean; /** * Whether the user has a password set */ hasPasswordAuth: boolean; /** * Whether the account is managed, which stops the user from changing their username, password and similar details */ isManaged: boolean; /** * When the account was created */ dateJoined: string; /** * When the user last signed in, or null */ lastLogin: string | null; /** * Whether the user has two-factor authentication enabled */ has2fa: boolean; /** * When the user was last active, or null */ lastActive: string | null; /** * Whether the user is a superuser */ isSuperuser: boolean; /** * Whether the user has staff status */ isStaff: boolean; /** * Deprecated. Always an empty object */ experiments: { [key: string]: string; }; /** * Email addresses of the user. Only included for the requesting user or superusers; empty otherwise */ emails: Array<{ /** * Email ID */ id: string; /** * Email address */ email: string; /** * Whether the email address is verified */ is_verified: boolean; }>; } | null; }>; }; export type ListOrganizationDiscoverSavedQueriesResponse = ListOrganizationDiscoverSavedQueriesResponses[keyof ListOrganizationDiscoverSavedQueriesResponses]; export type CreateOrganizationDiscoverSavedQueryData = { body: { /** * The user-defined saved query name. */ name: string; /** * The saved projects filter for this query. */ projects?: Array; /** * The dataset you would like to query. Note: `discover` is a **deprecated** value. The allowed values are: `error-events`, `transaction-like` * * * `discover` * * `error-events` * * `transaction-like` */ queryDataset?: 'discover' | 'error-events' | 'transaction-like'; /** * The saved start time for this saved query. */ start?: string | null; /** * The saved end time for this saved query. */ end?: string | null; /** * The saved time range period for this saved query. */ range?: string | null; /** * The fields, functions, or equations that can be requested for the query. At most 20 fields can be selected per request. Each field can be one of the following types: * - A built-in key field. See possible fields in the [properties table](/product/sentry-basics/search/searchable-properties/#properties-table), under any field that is an event property. * - example: `field=transaction` * - A tag. Tags should use the `tag[]` formatting to avoid ambiguity with any fields * - example: `field=tag[isEnterprise]` * - A function which will be in the format of `function_name(parameters,...)`. See possible functions in the [query builder documentation](/product/discover-queries/query-builder/#stacking-functions). * - when a function is included, Discover will group by any tags or fields * - example: `field=count_if(transaction.duration,greater,300)` * - An equation when prefixed with `equation|`. Read more about [equations here](/product/discover-queries/query-builder/query-equations/). * - example: `field=equation|count_if(transaction.duration,greater,300) / count() * 100` * */ fields?: Array | null; /** * How to order the query results. Must be something in the `field` list, excluding equations. */ orderby?: string | null; /** * Time-bucket granularity in seconds for the saved query. */ rollup?: number | null; /** * Aggregate functions to apply, each as a `[function, column, alias]` triple. */ aggregations?: Array> | null; /** * Columns to group results by. */ groupby?: Array | null; /** * Filter conditions, each as a `[column, operator, value]` triple. */ conditions?: Array> | null; /** * Maximum number of rows to return, from `0` to `1000`. */ limit?: number | null; /** * Saved query schema version. `1` for the legacy shape, `2` for the current one. */ version?: number | null; /** * The name of environments to filter by. */ environment?: Array | null; /** * Filters results by using [query syntax](/product/sentry-basics/search/). */ query?: string | null; /** * Rendered column widths, in the same order as the query's fields. */ widths?: Array | null; /** * Aggregate functions to be plotted on the chart. */ yAxis?: Array | null; /** * Visualization type for saved query chart. Allowed values are: * - default * - previous * - top5 * - daily * - dailytop5 * - bar * */ display?: string | null; /** * Number of top events' timeseries to be visualized. */ topEvents?: number | null; /** * Resolution of the time series. */ interval?: string | null; }; path: { /** * The ID or slug of the organization the resource belongs to. */ organization_id_or_slug: string; }; query?: never; url: '/organizations/{organization_id_or_slug}/discover/saved/'; }; export type CreateOrganizationDiscoverSavedQueryErrors = { /** * Bad Request */ 400: unknown; /** * Forbidden */ 403: unknown; /** * Not Found */ 404: unknown; }; export type CreateOrganizationDiscoverSavedQueryResponses = { 201: { /** * Names of the environments the query filters by */ environment?: Array; /** * Search query that filters the results */ query?: string; /** * Fields, functions or equations the query requests */ fields?: Array; /** * Rendered column widths, in the same order as the query's fields */ widths?: Array; /** * Filter conditions, each as a [column, operator, value] triple */ conditions?: Array; /** * Aggregate functions to apply, each as a [function, column, alias] triple */ aggregations?: Array; /** * Saved relative time range, such as 14d */ range?: string; /** * Saved start time (ISO 8601) */ start?: string; /** * Saved end time (ISO 8601) */ end?: string; /** * How the query results are ordered */ orderby?: string; /** * Maximum number of rows to return */ limit?: string; /** * Aggregate functions plotted on the chart */ yAxis?: Array; /** * Chart type for the saved query, such as default, top5, daily or bar */ display?: string; /** * Number of top events' time series to show */ topEvents?: number; /** * Resolution of the time series */ interval?: string; /** * Explore query this saved query was migrated to. Null when there's none */ exploreQuery?: { /** * Names of the environments the query filters by */ environment?: Array; /** * Queries shown in Explore */ query?: Array<{ /** * Fields shown in the samples table */ fields?: Array | null; /** * Field the samples are sorted by */ orderby?: string | null; /** * Fields the aggregates are grouped by */ groupby?: Array | null; /** * Search query that filters the results */ query?: string | null; /** * Charts shown for the query */ visualize?: Array<{ /** * Chart type used to plot the aggregates */ chartType?: number; /** * Transformations applied to the plotted series */ transformations?: Array; /** * Aggregates to plot */ yAxes: Array; }> | null; /** * Aggregates and group-by fields shown in aggregate mode */ aggregateField?: Array<{ /** * Chart type used to plot the aggregates */ chartType?: number; /** * Aggregates to plot */ yAxes?: Array; /** * Field to group the aggregates by */ groupBy?: string; /** * Transformations applied to the plotted series */ transformations?: Array; }> | null; /** * Field the aggregate results are sorted by */ aggregateOrderby?: string | null; /** * Metric the query reads, for metric queries */ metric?: { /** * Unit of the metric. Null when it has none */ unit?: string | null; /** * Name of the metric */ name: string; /** * Type of the metric */ type: 'counter' | 'gauge' | 'distribution'; } | null; /** * Whether the search query ignores letter case */ caseInsensitive?: boolean; /** * Whether the query shows samples or aggregates */ mode: 'samples' | 'aggregate'; }>; /** * Relative time range of the query, such as 14d */ statsPeriod?: string; /** * Start of the absolute time range (ISO 8601) */ start?: string; /** * End of the absolute time range (ISO 8601) */ end?: string; /** * Resolution of the time series */ interval?: string; /** * ID of the Explore query */ id: string; /** * Name of the Explore query */ name: string; /** * IDs of the projects the query covers */ projects: Array; /** * Dataset the query reads */ dataset: 'spans' | 'logs' | 'segment_spans' | 'metrics' | 'replays' | 'ai_conversations'; /** * Whether the query's time range is outside the retention period */ expired: boolean; /** * Whether Sentry provides the query */ isPrebuilt: boolean; /** * Parts of the Discover query dropped by the migration. Null when none were */ changedReason: { /** * Sort orders dropped when the query was migrated. Null when none were */ orderby: Array<{ [key: string]: string; }> | null; /** * Equations dropped when the query was migrated. Null when none were */ equations: Array<{ [key: string]: string | Array; }> | null; /** * Columns dropped when the query was migrated */ columns: Array; } | null; } | null; /** * When the requesting user last viewed the query (ISO 8601) */ lastVisited?: string | null; /** * Whether the requesting user starred the query */ starred?: boolean; /** * Position of the query in the requesting user's starred list. Null when it isn't starred */ position?: number | null; /** * ID of the saved query */ id: string; /** * Name of the saved query */ name: string; /** * IDs of the projects the query filters by. [-1] means all projects */ projects: Array; /** * Schema version of the saved query: 1 for the legacy shape, 2 for the current one */ version: number; /** * Dataset the query runs on, such as error-events or transaction-like */ queryDataset: string; /** * How the dataset was chosen: unknown, inferred, user or forced */ datasetSource: string; /** * Whether the saved time range is outside data retention */ expired: boolean; /** * When the saved query was created (ISO 8601) */ dateCreated: string; /** * When the saved query was last updated (ISO 8601) */ dateUpdated: string; /** * User who created the saved query */ createdBy: { /** * SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access */ identities?: Array<{ /** * SSO identity ID */ id: string; /** * User's identifier at the auth provider */ name: string; /** * Organization the auth provider belongs to */ organization: { /** * Organization slug */ slug: string; /** * Organization name */ name: string; }; /** * Auth provider of the identity */ provider: { /** * Auth provider key, such as google or saml2 */ id: string; /** * Display name of the auth provider */ name: string; }; /** * When the identity was last verified by signing in through the auth provider */ dateVerified: string; /** * When the identity was last synced from the auth provider */ dateSynced: string; }>; /** * User avatar */ avatar?: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Two-factor authenticators of the user, without backup methods such as recovery codes */ authenticators?: Array<{ /** * Authenticator ID */ id: string; /** * Authenticator type, such as totp, sms, u2f or recovery */ type: string; /** * Display name of the authenticator type */ name: string; /** * When the authenticator was added */ dateCreated: string; /** * When the authenticator was last used, or null */ dateUsed: string | null; }>; /** * Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization */ canReset2fa?: boolean; /** * User ID */ id: string; /** * Display name: the user's name, or their email or username if no name is set */ name: string; /** * Username */ username: string; /** * Primary email address */ email: string; /** * Gravatar URL for the primary email address */ avatarUrl: string; /** * Whether the account is active */ isActive: boolean; /** * Whether the account is suspended. Suspended users can't sign in */ isSuspended: boolean; /** * Whether the user has a password set */ hasPasswordAuth: boolean; /** * Whether the account is managed, which stops the user from changing their username, password and similar details */ isManaged: boolean; /** * When the account was created */ dateJoined: string; /** * When the user last signed in, or null */ lastLogin: string | null; /** * Whether the user has two-factor authentication enabled */ has2fa: boolean; /** * When the user was last active, or null */ lastActive: string | null; /** * Whether the user is a superuser */ isSuperuser: boolean; /** * Whether the user has staff status */ isStaff: boolean; /** * Deprecated. Always an empty object */ experiments: { [key: string]: string; }; /** * Email addresses of the user. Only included for the requesting user or superusers; empty otherwise */ emails: Array<{ /** * Email ID */ id: string; /** * Email address */ email: string; /** * Whether the email address is verified */ is_verified: boolean; }>; } | null; }; }; export type CreateOrganizationDiscoverSavedQueryResponse = CreateOrganizationDiscoverSavedQueryResponses[keyof CreateOrganizationDiscoverSavedQueryResponses]; export type DeleteOrganizationDiscoverSavedQueryData = { body?: never; path: { /** * The ID or slug of the organization the resource belongs to. */ organization_id_or_slug: string; /** * The ID of the Discover query you'd like to retrieve. */ query_id: number; }; query?: never; url: '/organizations/{organization_id_or_slug}/discover/saved/{query_id}/'; }; export type DeleteOrganizationDiscoverSavedQueryErrors = { /** * Forbidden */ 403: unknown; /** * Not Found */ 404: unknown; }; export type DeleteOrganizationDiscoverSavedQueryResponses = { /** * No Content */ 204: void; }; export type DeleteOrganizationDiscoverSavedQueryResponse = DeleteOrganizationDiscoverSavedQueryResponses[keyof DeleteOrganizationDiscoverSavedQueryResponses]; export type GetOrganizationDiscoverSavedQueryData = { body?: never; path: { /** * The ID or slug of the organization the resource belongs to. */ organization_id_or_slug: string; /** * The ID of the Discover query you'd like to retrieve. */ query_id: number; }; query?: never; url: '/organizations/{organization_id_or_slug}/discover/saved/{query_id}/'; }; export type GetOrganizationDiscoverSavedQueryErrors = { /** * Forbidden */ 403: unknown; /** * Not Found */ 404: unknown; }; export type GetOrganizationDiscoverSavedQueryResponses = { 200: { /** * Names of the environments the query filters by */ environment?: Array; /** * Search query that filters the results */ query?: string; /** * Fields, functions or equations the query requests */ fields?: Array; /** * Rendered column widths, in the same order as the query's fields */ widths?: Array; /** * Filter conditions, each as a [column, operator, value] triple */ conditions?: Array; /** * Aggregate functions to apply, each as a [function, column, alias] triple */ aggregations?: Array; /** * Saved relative time range, such as 14d */ range?: string; /** * Saved start time (ISO 8601) */ start?: string; /** * Saved end time (ISO 8601) */ end?: string; /** * How the query results are ordered */ orderby?: string; /** * Maximum number of rows to return */ limit?: string; /** * Aggregate functions plotted on the chart */ yAxis?: Array; /** * Chart type for the saved query, such as default, top5, daily or bar */ display?: string; /** * Number of top events' time series to show */ topEvents?: number; /** * Resolution of the time series */ interval?: string; /** * Explore query this saved query was migrated to. Null when there's none */ exploreQuery?: { /** * Names of the environments the query filters by */ environment?: Array; /** * Queries shown in Explore */ query?: Array<{ /** * Fields shown in the samples table */ fields?: Array | null; /** * Field the samples are sorted by */ orderby?: string | null; /** * Fields the aggregates are grouped by */ groupby?: Array | null; /** * Search query that filters the results */ query?: string | null; /** * Charts shown for the query */ visualize?: Array<{ /** * Chart type used to plot the aggregates */ chartType?: number; /** * Transformations applied to the plotted series */ transformations?: Array; /** * Aggregates to plot */ yAxes: Array; }> | null; /** * Aggregates and group-by fields shown in aggregate mode */ aggregateField?: Array<{ /** * Chart type used to plot the aggregates */ chartType?: number; /** * Aggregates to plot */ yAxes?: Array; /** * Field to group the aggregates by */ groupBy?: string; /** * Transformations applied to the plotted series */ transformations?: Array; }> | null; /** * Field the aggregate results are sorted by */ aggregateOrderby?: string | null; /** * Metric the query reads, for metric queries */ metric?: { /** * Unit of the metric. Null when it has none */ unit?: string | null; /** * Name of the metric */ name: string; /** * Type of the metric */ type: 'counter' | 'gauge' | 'distribution'; } | null; /** * Whether the search query ignores letter case */ caseInsensitive?: boolean; /** * Whether the query shows samples or aggregates */ mode: 'samples' | 'aggregate'; }>; /** * Relative time range of the query, such as 14d */ statsPeriod?: string; /** * Start of the absolute time range (ISO 8601) */ start?: string; /** * End of the absolute time range (ISO 8601) */ end?: string; /** * Resolution of the time series */ interval?: string; /** * ID of the Explore query */ id: string; /** * Name of the Explore query */ name: string; /** * IDs of the projects the query covers */ projects: Array; /** * Dataset the query reads */ dataset: 'spans' | 'logs' | 'segment_spans' | 'metrics' | 'replays' | 'ai_conversations'; /** * Whether the query's time range is outside the retention period */ expired: boolean; /** * Whether Sentry provides the query */ isPrebuilt: boolean; /** * Parts of the Discover query dropped by the migration. Null when none were */ changedReason: { /** * Sort orders dropped when the query was migrated. Null when none were */ orderby: Array<{ [key: string]: string; }> | null; /** * Equations dropped when the query was migrated. Null when none were */ equations: Array<{ [key: string]: string | Array; }> | null; /** * Columns dropped when the query was migrated */ columns: Array; } | null; } | null; /** * When the requesting user last viewed the query (ISO 8601) */ lastVisited?: string | null; /** * Whether the requesting user starred the query */ starred?: boolean; /** * Position of the query in the requesting user's starred list. Null when it isn't starred */ position?: number | null; /** * ID of the saved query */ id: string; /** * Name of the saved query */ name: string; /** * IDs of the projects the query filters by. [-1] means all projects */ projects: Array; /** * Schema version of the saved query: 1 for the legacy shape, 2 for the current one */ version: number; /** * Dataset the query runs on, such as error-events or transaction-like */ queryDataset: string; /** * How the dataset was chosen: unknown, inferred, user or forced */ datasetSource: string; /** * Whether the saved time range is outside data retention */ expired: boolean; /** * When the saved query was created (ISO 8601) */ dateCreated: string; /** * When the saved query was last updated (ISO 8601) */ dateUpdated: string; /** * User who created the saved query */ createdBy: { /** * SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access */ identities?: Array<{ /** * SSO identity ID */ id: string; /** * User's identifier at the auth provider */ name: string; /** * Organization the auth provider belongs to */ organization: { /** * Organization slug */ slug: string; /** * Organization name */ name: string; }; /** * Auth provider of the identity */ provider: { /** * Auth provider key, such as google or saml2 */ id: string; /** * Display name of the auth provider */ name: string; }; /** * When the identity was last verified by signing in through the auth provider */ dateVerified: string; /** * When the identity was last synced from the auth provider */ dateSynced: string; }>; /** * User avatar */ avatar?: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Two-factor authenticators of the user, without backup methods such as recovery codes */ authenticators?: Array<{ /** * Authenticator ID */ id: string; /** * Authenticator type, such as totp, sms, u2f or recovery */ type: string; /** * Display name of the authenticator type */ name: string; /** * When the authenticator was added */ dateCreated: string; /** * When the authenticator was last used, or null */ dateUsed: string | null; }>; /** * Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization */ canReset2fa?: boolean; /** * User ID */ id: string; /** * Display name: the user's name, or their email or username if no name is set */ name: string; /** * Username */ username: string; /** * Primary email address */ email: string; /** * Gravatar URL for the primary email address */ avatarUrl: string; /** * Whether the account is active */ isActive: boolean; /** * Whether the account is suspended. Suspended users can't sign in */ isSuspended: boolean; /** * Whether the user has a password set */ hasPasswordAuth: boolean; /** * Whether the account is managed, which stops the user from changing their username, password and similar details */ isManaged: boolean; /** * When the account was created */ dateJoined: string; /** * When the user last signed in, or null */ lastLogin: string | null; /** * Whether the user has two-factor authentication enabled */ has2fa: boolean; /** * When the user was last active, or null */ lastActive: string | null; /** * Whether the user is a superuser */ isSuperuser: boolean; /** * Whether the user has staff status */ isStaff: boolean; /** * Deprecated. Always an empty object */ experiments: { [key: string]: string; }; /** * Email addresses of the user. Only included for the requesting user or superusers; empty otherwise */ emails: Array<{ /** * Email ID */ id: string; /** * Email address */ email: string; /** * Whether the email address is verified */ is_verified: boolean; }>; } | null; }; }; export type GetOrganizationDiscoverSavedQueryResponse = GetOrganizationDiscoverSavedQueryResponses[keyof GetOrganizationDiscoverSavedQueryResponses]; export type UpdateOrganizationDiscoverSavedQueryData = { body: { /** * The user-defined saved query name. */ name: string; /** * The saved projects filter for this query. */ projects?: Array; /** * The dataset you would like to query. Note: `discover` is a **deprecated** value. The allowed values are: `error-events`, `transaction-like` * * * `discover` * * `error-events` * * `transaction-like` */ queryDataset?: 'discover' | 'error-events' | 'transaction-like'; /** * The saved start time for this saved query. */ start?: string | null; /** * The saved end time for this saved query. */ end?: string | null; /** * The saved time range period for this saved query. */ range?: string | null; /** * The fields, functions, or equations that can be requested for the query. At most 20 fields can be selected per request. Each field can be one of the following types: * - A built-in key field. See possible fields in the [properties table](/product/sentry-basics/search/searchable-properties/#properties-table), under any field that is an event property. * - example: `field=transaction` * - A tag. Tags should use the `tag[]` formatting to avoid ambiguity with any fields * - example: `field=tag[isEnterprise]` * - A function which will be in the format of `function_name(parameters,...)`. See possible functions in the [query builder documentation](/product/discover-queries/query-builder/#stacking-functions). * - when a function is included, Discover will group by any tags or fields * - example: `field=count_if(transaction.duration,greater,300)` * - An equation when prefixed with `equation|`. Read more about [equations here](/product/discover-queries/query-builder/query-equations/). * - example: `field=equation|count_if(transaction.duration,greater,300) / count() * 100` * */ fields?: Array | null; /** * How to order the query results. Must be something in the `field` list, excluding equations. */ orderby?: string | null; /** * Time-bucket granularity in seconds for the saved query. */ rollup?: number | null; /** * Aggregate functions to apply, each as a `[function, column, alias]` triple. */ aggregations?: Array> | null; /** * Columns to group results by. */ groupby?: Array | null; /** * Filter conditions, each as a `[column, operator, value]` triple. */ conditions?: Array> | null; /** * Maximum number of rows to return, from `0` to `1000`. */ limit?: number | null; /** * Saved query schema version. `1` for the legacy shape, `2` for the current one. */ version?: number | null; /** * The name of environments to filter by. */ environment?: Array | null; /** * Filters results by using [query syntax](/product/sentry-basics/search/). */ query?: string | null; /** * Rendered column widths, in the same order as the query's fields. */ widths?: Array | null; /** * Aggregate functions to be plotted on the chart. */ yAxis?: Array | null; /** * Visualization type for saved query chart. Allowed values are: * - default * - previous * - top5 * - daily * - dailytop5 * - bar * */ display?: string | null; /** * Number of top events' timeseries to be visualized. */ topEvents?: number | null; /** * Resolution of the time series. */ interval?: string | null; }; path: { /** * The ID or slug of the organization the resource belongs to. */ organization_id_or_slug: string; /** * The ID of the Discover query you'd like to retrieve. */ query_id: number; }; query?: never; url: '/organizations/{organization_id_or_slug}/discover/saved/{query_id}/'; }; export type UpdateOrganizationDiscoverSavedQueryErrors = { /** * Bad Request */ 400: unknown; /** * Forbidden */ 403: unknown; /** * Not Found */ 404: unknown; }; export type UpdateOrganizationDiscoverSavedQueryResponses = { 200: { /** * Names of the environments the query filters by */ environment?: Array; /** * Search query that filters the results */ query?: string; /** * Fields, functions or equations the query requests */ fields?: Array; /** * Rendered column widths, in the same order as the query's fields */ widths?: Array; /** * Filter conditions, each as a [column, operator, value] triple */ conditions?: Array; /** * Aggregate functions to apply, each as a [function, column, alias] triple */ aggregations?: Array; /** * Saved relative time range, such as 14d */ range?: string; /** * Saved start time (ISO 8601) */ start?: string; /** * Saved end time (ISO 8601) */ end?: string; /** * How the query results are ordered */ orderby?: string; /** * Maximum number of rows to return */ limit?: string; /** * Aggregate functions plotted on the chart */ yAxis?: Array; /** * Chart type for the saved query, such as default, top5, daily or bar */ display?: string; /** * Number of top events' time series to show */ topEvents?: number; /** * Resolution of the time series */ interval?: string; /** * Explore query this saved query was migrated to. Null when there's none */ exploreQuery?: { /** * Names of the environments the query filters by */ environment?: Array; /** * Queries shown in Explore */ query?: Array<{ /** * Fields shown in the samples table */ fields?: Array | null; /** * Field the samples are sorted by */ orderby?: string | null; /** * Fields the aggregates are grouped by */ groupby?: Array | null; /** * Search query that filters the results */ query?: string | null; /** * Charts shown for the query */ visualize?: Array<{ /** * Chart type used to plot the aggregates */ chartType?: number; /** * Transformations applied to the plotted series */ transformations?: Array; /** * Aggregates to plot */ yAxes: Array; }> | null; /** * Aggregates and group-by fields shown in aggregate mode */ aggregateField?: Array<{ /** * Chart type used to plot the aggregates */ chartType?: number; /** * Aggregates to plot */ yAxes?: Array; /** * Field to group the aggregates by */ groupBy?: string; /** * Transformations applied to the plotted series */ transformations?: Array; }> | null; /** * Field the aggregate results are sorted by */ aggregateOrderby?: string | null; /** * Metric the query reads, for metric queries */ metric?: { /** * Unit of the metric. Null when it has none */ unit?: string | null; /** * Name of the metric */ name: string; /** * Type of the metric */ type: 'counter' | 'gauge' | 'distribution'; } | null; /** * Whether the search query ignores letter case */ caseInsensitive?: boolean; /** * Whether the query shows samples or aggregates */ mode: 'samples' | 'aggregate'; }>; /** * Relative time range of the query, such as 14d */ statsPeriod?: string; /** * Start of the absolute time range (ISO 8601) */ start?: string; /** * End of the absolute time range (ISO 8601) */ end?: string; /** * Resolution of the time series */ interval?: string; /** * ID of the Explore query */ id: string; /** * Name of the Explore query */ name: string; /** * IDs of the projects the query covers */ projects: Array; /** * Dataset the query reads */ dataset: 'spans' | 'logs' | 'segment_spans' | 'metrics' | 'replays' | 'ai_conversations'; /** * Whether the query's time range is outside the retention period */ expired: boolean; /** * Whether Sentry provides the query */ isPrebuilt: boolean; /** * Parts of the Discover query dropped by the migration. Null when none were */ changedReason: { /** * Sort orders dropped when the query was migrated. Null when none were */ orderby: Array<{ [key: string]: string; }> | null; /** * Equations dropped when the query was migrated. Null when none were */ equations: Array<{ [key: string]: string | Array; }> | null; /** * Columns dropped when the query was migrated */ columns: Array; } | null; } | null; /** * When the requesting user last viewed the query (ISO 8601) */ lastVisited?: string | null; /** * Whether the requesting user starred the query */ starred?: boolean; /** * Position of the query in the requesting user's starred list. Null when it isn't starred */ position?: number | null; /** * ID of the saved query */ id: string; /** * Name of the saved query */ name: string; /** * IDs of the projects the query filters by. [-1] means all projects */ projects: Array; /** * Schema version of the saved query: 1 for the legacy shape, 2 for the current one */ version: number; /** * Dataset the query runs on, such as error-events or transaction-like */ queryDataset: string; /** * How the dataset was chosen: unknown, inferred, user or forced */ datasetSource: string; /** * Whether the saved time range is outside data retention */ expired: boolean; /** * When the saved query was created (ISO 8601) */ dateCreated: string; /** * When the saved query was last updated (ISO 8601) */ dateUpdated: string; /** * User who created the saved query */ createdBy: { /** * SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access */ identities?: Array<{ /** * SSO identity ID */ id: string; /** * User's identifier at the auth provider */ name: string; /** * Organization the auth provider belongs to */ organization: { /** * Organization slug */ slug: string; /** * Organization name */ name: string; }; /** * Auth provider of the identity */ provider: { /** * Auth provider key, such as google or saml2 */ id: string; /** * Display name of the auth provider */ name: string; }; /** * When the identity was last verified by signing in through the auth provider */ dateVerified: string; /** * When the identity was last synced from the auth provider */ dateSynced: string; }>; /** * User avatar */ avatar?: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Two-factor authenticators of the user, without backup methods such as recovery codes */ authenticators?: Array<{ /** * Authenticator ID */ id: string; /** * Authenticator type, such as totp, sms, u2f or recovery */ type: string; /** * Display name of the authenticator type */ name: string; /** * When the authenticator was added */ dateCreated: string; /** * When the authenticator was last used, or null */ dateUsed: string | null; }>; /** * Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization */ canReset2fa?: boolean; /** * User ID */ id: string; /** * Display name: the user's name, or their email or username if no name is set */ name: string; /** * Username */ username: string; /** * Primary email address */ email: string; /** * Gravatar URL for the primary email address */ avatarUrl: string; /** * Whether the account is active */ isActive: boolean; /** * Whether the account is suspended. Suspended users can't sign in */ isSuspended: boolean; /** * Whether the user has a password set */ hasPasswordAuth: boolean; /** * Whether the account is managed, which stops the user from changing their username, password and similar details */ isManaged: boolean; /** * When the account was created */ dateJoined: string; /** * When the user last signed in, or null */ lastLogin: string | null; /** * Whether the user has two-factor authentication enabled */ has2fa: boolean; /** * When the user was last active, or null */ lastActive: string | null; /** * Whether the user is a superuser */ isSuperuser: boolean; /** * Whether the user has staff status */ isStaff: boolean; /** * Deprecated. Always an empty object */ experiments: { [key: string]: string; }; /** * Email addresses of the user. Only included for the requesting user or superusers; empty otherwise */ emails: Array<{ /** * Email ID */ id: string; /** * Email address */ email: string; /** * Whether the email address is verified */ is_verified: boolean; }>; } | null; }; }; export type UpdateOrganizationDiscoverSavedQueryResponse = UpdateOrganizationDiscoverSavedQueryResponses[keyof UpdateOrganizationDiscoverSavedQueryResponses]; export type ResolveOrganizationDsnData = { body?: never; path: { /** * The ID or slug of the organization the resource belongs to. */ organization_id_or_slug: string; }; query: { /** * The DSN to look up, such as `https://@o1.ingest.sentry.io/2`. */ dsn: string; }; url: '/organizations/{organization_id_or_slug}/dsn-lookup/'; }; export type ResolveOrganizationDsnErrors = { /** * Bad Request */ 400: unknown; /** * Unauthorized */ 401: unknown; /** * Forbidden */ 403: unknown; /** * Not Found */ 404: unknown; /** * Too Many Requests */ 429: unknown; }; export type ResolveOrganizationDsnResponses = { 200: { /** * Slug of the organization */ organizationSlug: string; /** * Slug of the project the DSN belongs to */ projectSlug: string; /** * ID of the project the DSN belongs to */ projectId: string; /** * Name of the project the DSN belongs to */ projectName: string; /** * Platform of the project, if set */ projectPlatform: string | null; /** * Label of the client key */ keyLabel: string | null; /** * ID of the client key */ keyId: string; }; }; export type ResolveOrganizationDsnResponse = ResolveOrganizationDsnResponses[keyof ResolveOrganizationDsnResponses]; export type ListOrganizationEnvironmentsData = { body?: never; path: { /** * The ID or slug of the organization the resource belongs to. */ organization_id_or_slug: string; }; query?: { /** * The visibility of the environments to filter by. Defaults to `visible`. * * * `all` * * `hidden` * * `visible` */ visibility?: 'all' | 'hidden' | 'visible'; }; url: '/organizations/{organization_id_or_slug}/environments/'; }; export type ListOrganizationEnvironmentsErrors = { /** * Bad Request */ 400: unknown; /** * Forbidden */ 403: unknown; }; export type ListOrganizationEnvironmentsResponses = { 200: Array<{ /** * ID of the environment */ id: string; /** * Name of the environment */ name: string; }>; }; export type ListOrganizationEnvironmentsResponse = ListOrganizationEnvironmentsResponses[keyof ListOrganizationEnvironmentsResponses]; export type ResolveOrganizationEventIdData = { body?: never; path: { /** * The ID or slug of the organization the resource belongs to. */ organization_id_or_slug: string; /** * The event ID to look up. */ event_id: string; }; query?: never; url: '/organizations/{organization_id_or_slug}/eventids/{event_id}/'; }; export type ResolveOrganizationEventIdErrors = { /** * Bad Request */ 400: unknown; /** * Unauthorized */ 401: unknown; /** * Forbidden */ 403: unknown; /** * Not Found */ 404: unknown; }; export type ResolveOrganizationEventIdResponses = { 200: { /** * Slug of the organization */ organizationSlug: string; /** * Slug of the event's project */ projectSlug: string; /** * ID of the event's issue */ groupId: string; /** * ID of the event */ eventId: string; /** * The event */ event: { /** * ID of the event */ id: string; /** * ID of the issue the event belongs to */ groupID: string | null; /** * ID of the event */ eventID: string; /** * ID of the project the event belongs to */ projectID: string; /** * Event message */ message: string | null; /** * Event title */ title: string; /** * Source location of the event, such as a file and line */ location: string | null; /** * Platform of the event, such as python or javascript */ platform: string | null; /** * When Sentry received the event (ISO 8601) */ dateReceived: string | null; /** * Size of the event payload in bytes */ size: number | null; /** * Event interfaces, such as exception, breadcrumbs and request, each with a type and data */ entries: Array; /** * Distribution of the release the event was sent with */ dist: string | null; /** * Modules loaded when the event occurred, keyed by module name with their versions */ packages: { [key: string]: string | null; }; /** * Event type, such as error, default or transaction */ type: 'default' | 'error' | 'csp' | 'nel' | 'hpkp' | 'expectct' | 'expectstaple' | 'transaction' | 'generic' | 'feedback'; /** * Event metadata */ metadata: { /** * Title of default and issue platform events */ title?: string; /** * Exception value, or the subtitle of an issue */ value?: string; /** * Exception type of error events */ type?: string; /** * Whether the SDK fabricated the exception to carry a stacktrace, so its type is a platform label rather than what went wrong */ synthetic?: boolean; /** * File of the frame where the error happened */ filename?: string; /** * Function of the frame where the error happened */ function?: string; /** * Message of default, security and feedback events */ message?: string; /** * URI that a CSP report blocked */ uri?: string; /** * CSP directive that was violated */ directive?: string; /** * Host name of HPKP, Expect-CT and Expect-Staple reports */ origin?: string; /** * Name of the person who sent user feedback */ name?: string; /** * Email of the person who sent user feedback */ contact_email?: string; /** * Where user feedback came from, such as a widget */ source?: string; /** * Whether the stacktrace has in-app frames, system frames or both */ in_app_frame_mix?: string; /** * Whether a crash report was dropped because the issue already stores the most allowed */ stripped_crash?: boolean; /** * SDK of the issue's first event */ sdk?: { /** * Name of the SDK, or unknown */ name: string; /** * Name of the SDK, normalized for grouping */ name_normalized: string; }; /** * Severity score of the issue's first event */ severity?: number; /** * Why the severity score is what it is */ severity_reason?: string; /** * Priority the issue was created with */ initial_priority?: number; }; /** * Issue occurrence data for events in non-error issues, such as performance issues. Null otherwise */ occurrence: { /** * ID of the occurrence */ id: string; /** * ID of the project */ projectId: number; /** * ID of the event the occurrence belongs to */ eventId: string; /** * Fingerprint that groups the occurrence into an issue */ fingerprint: Array; /** * Title of the issue */ issueTitle: string; /** * Subtitle of the issue */ subtitle: string; /** * ID of the resource the occurrence is about, such as a monitor. Null when not set */ resourceId: string | null; /** * Evidence to show on the issue */ evidenceDisplay: Array<{ /** * Name of the evidence */ name: string; /** * Value of the evidence */ value: string; /** * Whether to show the evidence first. At most one evidence of an occurrence is important */ important: boolean; }>; /** * When the problem was detected, as a Unix timestamp in seconds */ detectionTime: number; /** * Level of the occurrence, such as error or warning */ level: string | null; /** * Culprit of the occurrence */ culprit: string | null; /** * Actor the issue is assigned to, such as user:1 or team:1 */ assignee: string | null; /** * Initial priority of the issue: 25 low, 50 medium or 75 high */ priority: number | null; /** * Group type ID of metric issues, always 8001 */ type: 8001; /** * Detector and query that created the occurrence */ evidenceData: { /** * ID of the detector that created the occurrence */ detectorId: number; /** * ID of the metric alert rule the detector replaces. Null when there's none */ alertId: number | null; /** * Metric value that triggered the detector, or the anomaly detection result for dynamic detectors */ value: number | { /** * Metric value the anomaly detection model scored */ value: number; /** * ID of the data source that produced the value */ sourceId: string; /** * ID of the query subscription that produced the value */ subscriptionId: string; /** * When the value was measured */ timestamp: string; } | null; /** * ID of the query subscription that sent the data */ dataPacketSourceId: string; /** * Conditions of the detector */ conditions: Array<{ /** * ID of the detector condition */ id: number; /** * Type of the condition, such as gt, lt or anomaly_detection */ type: string; /** * Threshold the value is compared with, or the anomaly detection settings for an anomaly_detection condition */ comparison: number | { /** * How sensitive the anomaly detection is */ sensitivity: 'low' | 'medium' | 'high'; /** * Seasonality the anomaly detection model uses */ seasonality: 'auto' | 'hourly' | 'daily' | 'weekly' | 'hourly_daily' | 'hourly_weekly' | 'hourly_daily_weekly' | 'daily_weekly'; /** * Direction of anomalies to detect: 0 above, 1 below, 2 above and below */ thresholdType: 0 | 1 | 2; }; /** * Priority the detector reports when the condition matches: 0 ok, 25 low, 50 medium or 75 high */ conditionResult: number; }>; /** * Configuration of the detector */ config: { /** * How the detector evaluates the metric: static thresholds, percent change or dynamic anomaly detection */ detectionType: 'static' | 'percent' | 'dynamic'; /** * Time window in seconds that a percent change detector compares with */ comparisonDelta?: number | null; }; /** * Data sources of the detector */ dataSources: Array<{ /** * ID of the data source */ id: string; /** * ID of the organization */ organizationId: string; /** * Type of the data source, such as snuba_query_subscription */ type: string; /** * ID of the source object, such as the query subscription */ sourceId: string; /** * Query subscription the data source reads */ queryObj: { /** * ID of the query subscription */ id: string; /** * Status of the subscription: 0 active, 1 creating, 2 updating, 3 deleting or 4 disabled */ status: number; /** * ID of the subscription in Snuba. Null while it's being created */ subscription: string | null; /** * Query the subscription runs */ snubaQuery: { /** * ID of the query */ id: string; /** * Dataset the query runs on, such as events or events_analytics_platform */ dataset: string; /** * Search query that filters the data */ query: string; /** * Aggregate function the query computes, such as count() */ aggregate: string; /** * Time window of the query in seconds */ timeWindow: number; /** * Environment the query is limited to. Null for all environments */ environment: string | null; /** * Event types the query includes, such as error or transaction */ eventTypes: Array; /** * How sampled data is extrapolated, unknown, none, client_and_server_weighted or server_weighted. Null when not set */ extrapolationMode: string | null; }; }; }>; }; } | { /** * ID of the occurrence */ id: string; /** * ID of the project */ projectId: number; /** * ID of the event the occurrence belongs to */ eventId: string; /** * Fingerprint that groups the occurrence into an issue */ fingerprint: Array; /** * Title of the issue */ issueTitle: string; /** * Subtitle of the issue */ subtitle: string; /** * ID of the resource the occurrence is about, such as a monitor. Null when not set */ resourceId: string | null; /** * Evidence to show on the issue */ evidenceDisplay: Array<{ /** * Name of the evidence */ name: string; /** * Value of the evidence */ value: string; /** * Whether to show the evidence first. At most one evidence of an occurrence is important */ important: boolean; }>; /** * When the problem was detected, as a Unix timestamp in seconds */ detectionTime: number; /** * Level of the occurrence, such as error or warning */ level: string | null; /** * Culprit of the occurrence */ culprit: string | null; /** * Actor the issue is assigned to, such as user:1 or team:1 */ assignee: string | null; /** * Initial priority of the issue: 25 low, 50 medium or 75 high */ priority: number | null; /** * Group type ID of the occurrence */ type: number; /** * Data of the occurrence. Its keys depend on the group type */ evidenceData: { [key: string]: unknown; }; } | null; /** * Metadata about changes Sentry made to the event's fields, such as data scrubbing or trimming */ _meta: { [key: string]: unknown; }; /** * User context of the event */ user: { /** * ID the SDK sent for the user */ id?: string | null; /** * Email address of the user */ email?: string | null; /** * Username of the user */ username?: string | null; /** * IP address of the user */ ip_address?: string | null; /** * Name of the user */ name?: string | null; /** * Location of the user, with keys such as country_code, city and region */ geo?: { [key: string]: string; } | null; /** * Extra data the SDK sent about the user */ data?: { [key: string]: unknown; } | null; } | null; /** * Tags attached to the event */ tags: Array<{ /** * Search query that matches this tag's user, such as user.email:"user@example.com". Only set for user tags */ query?: string; /** * Tag key */ key: string; /** * Tag value */ value: string; }>; /** * Contexts of the event, such as device, os, browser and runtime, keyed by alias */ contexts: { [key: string]: { /** * Internal build ID as it appears on the platform. */ app_build?: string | null; /** * Version-independent application identifier, often a dotted bundle ID. */ app_identifier?: string | null; /** * Amount of memory used by the application in bytes. */ app_memory?: number | string | null; /** * Application name as it appears on the platform. */ app_name?: string | null; /** * Start time of the app. * * Formatted UTC timestamp when the user started the application. */ app_start_time?: string | null; /** * Application version as it appears on the platform. */ app_version?: string | null; /** * String identifying the kind of build. For example, `testflight`. */ build_type?: string | null; /** * Application-specific device identifier. */ device_app_hash?: string | null; /** * A flag indicating whether the app is in foreground or not. An app is in foreground when it's visible to the user. */ in_foreground?: boolean | null; /** * The names of the currently visible views. */ view_names?: Array | null; /** * Type of the context */ type: 'app'; [key: string]: unknown; } | { /** * Display name of the browser application. */ name?: string | null; /** * Version string of the browser. */ version?: string | null; /** * Type of the context */ type: 'browser'; [key: string]: unknown; } | { /** * Type of the context */ type: 'default'; [key: string]: unknown; } | { /** * Native cpu architecture of the device. */ arch?: string | null; /** * Current battery level in %. * * If the device has a battery, this can be a floating point value defining the battery level * (in the range 0-100). */ battery_level?: number | string | null; /** * Status of the device's battery. * * For example, `Unknown`, `Charging`, `Discharging`, `NotCharging`, `Full`. */ battery_status?: string | null; /** * Indicator when the device was booted. */ boot_time?: string | null; /** * Brand of the device. */ brand?: string | null; /** * Whether the device was charging or not. */ charging?: boolean | null; /** * CPU description. * * For example, Intel(R) Core(TM)2 Quad CPU Q6600 @ 2.40GHz. */ cpu_description?: string | null; /** * Kind of device the application is running on. * * For example, `Unknown`, `Handheld`, `Console`, `Desktop`. */ device_type?: string | null; /** * Unique device identifier. */ device_unique_identifier?: string | null; /** * Free size of the attached external storage in bytes (eg: android SDK card). */ external_free_storage?: number | string | null; /** * Total size of the attached external storage in bytes (eg: android SDK card). */ external_storage_size?: number | string | null; /** * Family of the device model. * * This is usually the common part of model names across generations. For instance, `iPhone` * would be a reasonable family, so would be `Samsung Galaxy`. */ family?: string | null; /** * How much memory is still available in bytes. */ free_memory?: number | string | null; /** * How much storage is free in bytes. */ free_storage?: number | string | null; /** * ISO 639-1 code of the locale the device is set to. */ locale?: string | null; /** * Whether the device was low on memory. */ low_memory?: boolean | null; /** * Manufacturer of the device. */ manufacturer?: string | null; /** * Total memory available in bytes. */ memory_size?: number | string | null; /** * Device model. * * This, for example, can be `Samsung Galaxy S3`. */ model?: string | null; /** * Device model (internal identifier). * * An internal hardware revision to identify the device exactly. */ model_id?: string | null; /** * Name of the device. */ name?: string | null; /** * Whether the device was online or not. */ online?: boolean | null; /** * Current screen orientation. * * This can be a string `portrait` or `landscape` to define the orientation of a device. */ orientation?: string | null; /** * Number of "logical processors". * * For example, 8. */ processor_count?: number | string | null; /** * Processor frequency in MHz. * * Note that the actual CPU frequency might vary depending on current load and * power conditions, especially on low-powered devices like phones and laptops. */ processor_frequency?: number | string | null; /** * Device screen density. */ screen_density?: number | string | null; /** * Screen density as dots-per-inch. */ screen_dpi?: number | string | null; /** * Height of the screen in pixels. */ screen_height_pixels?: number | string | null; /** * Device screen resolution. * * (e.g.: 800x600, 3040x1444) */ screen_resolution?: string | null; /** * Width of the screen in pixels. */ screen_width_pixels?: number | string | null; /** * Simulator/prod indicator. */ simulator?: boolean | null; /** * Total storage size of the device in bytes. */ storage_size?: number | string | null; /** * Whether the accelerometer is available on the device. */ supports_accelerometer?: boolean | null; /** * Whether audio is available on the device. */ supports_audio?: boolean | null; /** * Whether the gyroscope is available on the device. */ supports_gyroscope?: boolean | null; /** * Whether location support is available on the device. */ supports_location_service?: boolean | null; /** * Whether vibration is available on the device. */ supports_vibration?: boolean | null; /** * Timezone of the device. */ timezone?: string | null; /** * How much memory is usable for the app in bytes. */ usable_memory?: number | string | null; /** * UUID of the device. */ uuid?: string | null; /** * Type of the context */ type: 'device'; [key: string]: unknown; } | { /** * The device low-level API type. * * Examples: `"Apple Metal"` or `"Direct3D11"` */ api_type?: string | null; /** * Approximate "shader capability" level of the graphics device. * * For Example: Shader Model 2.0, OpenGL ES 3.0, Metal / OpenGL ES 3.1, 27 (unknown) */ graphics_shader_level?: string | null; /** * The PCI identifier of the graphics device. */ id?: number | string; /** * Largest size of a texture that is supported by the graphics hardware. * * For Example: 16384 */ max_texture_size?: number | string | null; /** * The total GPU memory available in Megabytes. */ memory_size?: number | string | null; /** * Whether the GPU has multi-threaded rendering or not. */ multi_threaded_rendering?: boolean | null; /** * The name of the graphics device. */ name?: string | null; /** * The Non-Power-Of-Two support. */ npot_support?: string | null; /** * Whether compute shaders are available on the device. */ supports_compute_shaders?: boolean | null; /** * Whether GPU draw call instancing is supported. */ supports_draw_call_instancing?: boolean | null; /** * Whether geometry shaders are available on the device. */ supports_geometry_shaders?: boolean | null; /** * Whether ray tracing is available on the device. */ supports_ray_tracing?: boolean | null; /** * The PCI vendor identifier of the graphics device. */ vendor_id?: string | null; /** * The vendor name as reported by the graphics device. */ vendor_name?: string | null; /** * The Version of the graphics device. */ version?: string | null; /** * Type of the context */ type: 'gpu'; [key: string]: unknown; } | { /** * Type of the context */ type: 'monitor'; [key: string]: unknown; } | { /** * Internal build number of the operating system. */ build?: string | null; /** * Current kernel version. * * This is typically the entire output of the `uname` syscall. */ kernel_version?: string | null; /** * Name of the operating system. */ name?: string | null; /** * Unprocessed operating system info. * * An unprocessed description string obtained by the operating system. For some well-known * runtimes, Sentry will attempt to parse `name` and `version` from this string, if they are * not explicitly given. */ raw_description?: string | null; /** * Indicator if the OS is rooted (mobile mostly). */ rooted?: boolean | null; /** * Version of the operating system. */ version?: string | null; /** * Type of the context */ type: 'os'; [key: string]: unknown; } | { /** * Attributes of the OpenTelemetry span that maps to a Sentry event. * * */ attributes?: { [key: string]: string | boolean | number | number | Array; } | null; /** * Information about an OpenTelemetry resource. * * */ resource?: { [key: string]: string | boolean | number | number | Array; } | null; /** * Type of the context */ type: 'otel'; [key: string]: unknown; } | { /** * Application build string, if it is separate from the version. */ build?: string | null; /** * Runtime name. */ name?: string | null; /** * Unprocessed runtime info. * * An unprocessed description string obtained by the runtime. For some well-known runtimes, * Sentry will attempt to parse `name` and `version` from this string, if they are not * explicitly given. */ raw_description?: string | null; /** * Runtime version string. */ version?: string | null; /** * Type of the context */ type: 'runtime'; [key: string]: unknown; } | { /** * The client-side sample rate as reported in the envelope's `trace.sample_rate` header. * * The server takes this field from envelope headers and writes it back into the event. Clients * should not ever send this value. */ client_sample_rate?: number | string | null; /** * The amount of time in milliseconds spent in this transaction span, * excluding its immediate child spans. */ exclusive_time?: number | string | null; /** * Span type (see `OperationType` docs). */ op?: string | null; /** * The origin of the trace indicates what created the trace (see [OriginType] docs). */ origin?: string | null; /** * The ID of the span enclosing this span. */ parent_span_id?: string | null; /** * Track whether the trace connected to this event has been sampled entirely. * * This flag only applies to events with [`Error`] type that have an associated dynamic sampling context. */ sampled?: boolean | null; /** * The ID of the span. */ span_id?: string | null; /** * Whether the trace failed or succeeded. Currently only used to indicate status of individual * transactions. */ status?: 'ok' | 'cancelled' | 'unknown' | 'invalid_argument' | 'deadline_exceeded' | 'not_found' | 'already_exists' | 'permission_denied' | 'resource_exhausted' | 'failed_precondition' | 'aborted' | 'out_of_range' | 'unimplemented' | 'internal_error' | 'unavailable' | 'data_loss' | 'unauthenticated' | null; /** * The trace ID. */ trace_id?: string | null; /** * Type of the context */ type: 'trace'; [key: string]: unknown; } | { /** * Type of the context */ type: 'unity'; [key: string]: unknown; }; } | null; /** * SDK that sent the event */ sdk: { /** * Name of the SDK that sent the event, such as sentry.python */ name: string | null; /** * Version of the SDK */ version: string | null; } | null; /** * Additional data sent with the event in its extra field */ context: { [key: string]: unknown; } | null; /** * Errors Sentry found while processing the event */ errors: Array<{ /** * Type of the processing error, such as invalid_data or js_no_source */ type: string; /** * Human-readable message of the error */ message: string; /** * Details of the error, such as the name of the invalid field. Other keys depend on the error type */ data: { /** * Affected key or path in the event */ name?: string | null; /** * Details of the error from the processor that hit it */ message?: string; /** * URL that couldn't be fetched, such as a source file */ url?: string; /** * Path of the debug image the error is about */ image_path?: string; /** * Name of the debug image the error is about */ image_name?: string; /** * Debug ID of the image the error is about */ image_uuid?: string; /** * CPU architecture of the image the error is about */ image_arch?: string; /** * Error type Symbolicator reported, such as missing_source */ symbolicator_type?: string; /** * Source file or URL the error is about */ source?: string; /** * Source map the error is about */ sourcemap?: string; /** * Line of the location that couldn't be mapped */ row?: number; /** * Column of the location that couldn't be mapped */ column?: number; /** * Time the SDK reported, for clock drift errors */ sdk_time?: string; /** * Time the server received the event, for clock drift errors */ server_time?: string; }; }>; /** * Crash report attachment of the event, if any */ crashFile?: string | null; /** * Function or module that caused the event */ culprit?: string | null; /** * When the event occurred (ISO 8601) */ dateCreated?: string; /** * Grouping hashes calculated for the event */ fingerprints?: Array; /** * Grouping configuration used to group the event */ groupingConfig?: { /** * ID of the grouping config, such as newstyle:2026-01-20 */ id: string; /** * Stack trace rules of the project, as an encoded string */ enhancements: string; }; /** * When the transaction started, as a Unix timestamp in seconds */ startTimestamp?: number; /** * When the transaction ended, as a Unix timestamp in seconds */ endTimestamp?: number; /** * Measurements recorded for the transaction, such as web vitals, keyed by name */ measurements?: { [key: string]: { /** * Measurement value */ value: number; /** * Unit of the measurement, such as millisecond */ unit?: string | null; }; } | null; /** * Span operation breakdowns for the transaction, keyed by breakdown name */ breakdowns?: { [key: string]: { [key: string]: { /** * Measurement value */ value: number; /** * Unit of the measurement, such as millisecond */ unit?: string | null; }; }; } | null; }; }; }; export type ResolveOrganizationEventIdResponse = ResolveOrganizationEventIdResponses[keyof ResolveOrganizationEventIdResponses]; export type ListOrganizationEventsData = { body?: never; path: { /** * The ID or slug of the organization the resource belongs to. */ organization_id_or_slug: string; }; query: { /** * The fields, functions, or equations to request for the query. At most 20 fields can be selected per request. Each field can be one of the following types: * - A built-in key field. See possible fields in the [properties table](/concepts/search/searchable-properties/), under any field that matches the dataset passed to the dataset parameter * - example: `field=transaction` * - A tag. Tags should use the `tag[{name}, {type}]` formatting to avoid ambiguity with any fields, * - example: `field=tag[isEnterprise, string]` * - example: `field=tag[numberOfBytes, number]` * - A function which will be in the format of `function_name(parameters,...)`. See possible functions in the [query builder documentation](/product/discover-queries/query-builder/#stacking-functions). * - when a function is included, Discover will group by any tags or fields * - example: `field=count_if(transaction.duration,greater,300)` * - An equation when prefixed with `equation|`. Read more about [equations here](/product/discover-queries/query-builder/query-equations/). * - example: `field=equation|count_if(transaction.duration,greater,300) / count() * 100` * */ field: Array; /** * Which dataset to query. The chosen dataset determines which fields are queryable. * - `errors` - Error events. * - `logs` - Structured log events. * - `profile_functions` - Function-level Profiling data. * - `spans` - Distributed tracing span events. * - `tracemetrics` - Application Metrics. * - `uptime_results` - Uptime monitoring check results. * */ dataset: 'errors' | 'logs' | 'profile_functions' | 'spans' | 'tracemetrics' | 'uptime_results'; /** * The end of the period of time for the query, expected in ISO-8601 format. For example, `2001-12-14T12:34:56.7890`. */ end?: string; /** * The name of environments to filter by. */ environment?: Array; /** * Internal referrer identifier used for query tracing. Most clients can omit this. */ referrer?: string; /** * The IDs or slugs of projects to filter by. Project slugs are unique within each organization. Omit this parameter to include all accessible projects. `-1` is also accepted to include all accessible projects. * For example, the following are valid parameters: * - `/?project=1234&project=56789` * - `/?project=android&project=javascript-react` * - `/?project=-1` * */ project?: Array; /** * The start of the period of time for the query, expected in ISO-8601 format. For example, `2001-12-14T12:34:56.7890`. */ start?: string; /** * The period of time for the query, will override the start & end parameters, a number followed by one of: * - `d` for days * - `h` for hours * - `m` for minutes * - `s` for seconds * - `w` for weeks * * For example, `24h`, to mean query data starting from 24 hours ago to now. */ statsPeriod?: string; /** * Limit the number of rows to return in the result. Default and maximum allowed is 100. */ per_page?: number; /** * Filters results by using [query syntax](/concepts/search/). * * Example: `query=(transaction:foo AND release:abc) OR (transaction:[bar,baz] AND release:def)` * * With the `logs` dataset, a string attribute can also be matched against a regular expression written as `key://pattern//`, and excluded with `!key://pattern//`. * Patterns use [RE2 syntax](https://github.com/google/re2/wiki/Syntax), match anywhere in the value unless anchored with `^` or `$`, are case sensitive unless they start with `(?i)`, and are limited to 64 characters. A query can contain up to 16 regular expressions. * To search for a literal value that starts with `//`, quote it: `key:"//value"`. * See [regular expressions](/concepts/search/#regular-expressions-logs-only) for more details. * * Example: `query=message://^Timeout after \d+ms//` * */ query?: string; /** * What to order the results of the query by. Must be something in the `field` list, excluding equations. */ sort?: string; /** * If false, aggregate conditions in the query string are disallowed. Defaults to true. */ allowAggregateConditions?: boolean; /** * A pointer to the last object fetched and its sort order; used to retrieve the next or previous results. */ cursor?: string; }; url: '/organizations/{organization_id_or_slug}/events/'; }; export type ListOrganizationEventsErrors = { /** * Invalid Query */ 400: unknown; /** * Forbidden */ 403: unknown; /** * The transactions, discover, and events datasets are deprecated and no longer available. */ 410: unknown; }; export type ListOrganizationEventsResponses = { 200: { /** * Rows returned by the query, keyed by the requested fields */ data: Array<{ [key: string]: unknown; }>; /** * Meta envelope emitted by `handle_results_with_meta` and the * empty-projects short-circuit. Every key is optional because the path * that emits it depends on flags (`standard_meta`, debug, dataset) — the * no-projects path only carries `tips`, the standard path carries * everything below. */ meta: { /** * Type of each returned field, keyed by field name */ fields?: { [key: string]: string; }; /** * Unit of each returned field, keyed by field name, or null if the field has no unit */ units?: { [key: string]: string | null; }; /** * Suggestions for improving the query, under the `query` and `columns` keys */ tips?: { [key: string]: string; }; /** * Why the query ran on a different dataset than requested, or unchanged */ datasetReason?: string; /** * Whether the results came from metrics data */ isMetricsData?: boolean; /** * Whether the results came from metrics extracted on demand */ isMetricsExtractedData?: boolean; /** * Dataset that was queried */ dataset?: string; /** * Dataset the results were taken from when a Discover dashboard widget query was split between errors and transactions */ discoverSplitDecision?: 'error-events' | 'transaction-like'; /** * Whether the query scanned the `full` data set or only a `partial` sample */ dataScanned?: string; /** * Number of bytes the query scanned */ bytesScanned?: number; /** * Opaque routing hint of an EAP table query. Pass it unchanged as routing_hint when fetching item details for a row */ routingHint?: string; /** * Debug information about the query. Only present when `debug` is passed */ debug_info?: unknown; /** * Ingestion status for the data behind a response. */ ingestion?: { /** * Ingestion status of the data: healthy, stalled, idle or unknown */ status: string; /** * Measured ingestion delay in seconds */ delaySeconds?: number; /** * Time through which the data is complete, as a Unix timestamp in milliseconds */ completeThrough?: number; }; }; }; }; export type ListOrganizationEventsResponse = ListOrganizationEventsResponses[keyof ListOrganizationEventsResponses]; export type ListOrganizationEventsDroppedData = { body?: never; path: { /** * The ID or slug of the organization the resource belongs to. */ organization_id_or_slug: string; }; query: { /** * Which dataset to query. The chosen dataset determines which fields are queryable. * - `errors` - Error events. * - `logs` - Structured log events. * - `profile_functions` - Function-level Profiling data. * - `spans` - Distributed tracing span events. * - `tracemetrics` - Application Metrics. * - `uptime_results` - Uptime monitoring check results. * */ dataset: 'errors' | 'logs' | 'profile_functions' | 'spans' | 'tracemetrics' | 'uptime_results'; /** * The end of the period of time for the query, expected in ISO-8601 format. For example, `2001-12-14T12:34:56.7890`. */ end?: string; /** * The name of environments to filter by. */ environment?: Array; /** * The IDs or slugs of projects to filter by. Project slugs are unique within each organization. Omit this parameter to include all accessible projects. `-1` is also accepted to include all accessible projects. * For example, the following are valid parameters: * - `/?project=1234&project=56789` * - `/?project=android&project=javascript-react` * - `/?project=-1` * */ project?: Array; /** * The start of the period of time for the query, expected in ISO-8601 format. For example, `2001-12-14T12:34:56.7890`. */ start?: string; /** * The period of time for the query, will override the start & end parameters, a number followed by one of: * - `d` for days * - `h` for hours * - `m` for minutes * - `s` for seconds * - `w` for weeks * * For example, `24h`, to mean query data starting from 24 hours ago to now. */ statsPeriod?: string; /** * The size of the bucket for the timeseries to have, must be a value smaller than the window being * queried. Either a number of seconds, or a number with a unit suffix of `s`, `m`, `h`, `d`, or `w`, such as `5m` or * `1h`. If the interval is invalid a default interval will be selected instead */ interval?: number | string; /** * Narrow the dropped events (only) to a single top-level drop classification (e.g. `rate_limited`, `filtered`). * * * `filtered` * * `rate_limited` * * `invalid` * * `abuse` * * `client_discard` * * `cardinality_limited` */ outcome?: 'filtered' | 'rate_limited' | 'invalid' | 'abuse' | 'client_discard' | 'cardinality_limited'; /** * Narrow the dropped events to a single reason, the sub-classification within an outcome (e.g. `spike_protection` within `rate_limited`). Should be combined with `outcome`. */ reason?: string; }; url: '/organizations/{organization_id_or_slug}/events-dropped/'; }; export type ListOrganizationEventsDroppedErrors = { /** * Invalid Query */ 400: unknown; /** * Not Found */ 404: unknown; }; export type ListOrganizationEventsDroppedResponses = { 200: { /** * Metadata about the query */ meta: { /** * Dataset that was queried */ dataset: string; /** * Start of the queried time range, in milliseconds since the Unix epoch */ start: number; /** * End of the queried time range, in milliseconds since the Unix epoch */ end: number; /** * Width of each bucket, in milliseconds */ interval: number; /** * Dropped volume withheld from `droppedEvents` because it is a known SDK misreport */ suppressedDrops: Array<{ /** * Why the drop volume was withheld, such as `js_sdk_below_11` */ cause: string; /** * Data category of the withheld events */ category: string; /** * Outcome of the withheld events */ outcome: string; /** * Reason for the outcome of the withheld events */ reason: string; /** * Number of withheld events */ count: number; }>; }; /** * Dropped event volume, one entry per bucket, outcome and reason */ droppedEvents: Array<{ /** * Annotation type. Always `system` */ type: string; /** * Data category of the events, such as `log_item` */ category: string; /** * Outcome of the events, such as `rate_limited` or `filtered`, or `accepted` for accepted events */ outcome: string; /** * Reason for the outcome within its outcome class, or `accepted` for accepted events */ reason: string; /** * Start of the bucket, in milliseconds since the Unix epoch */ start: number; /** * End of the bucket, in milliseconds since the Unix epoch */ end: number; /** * Number of events in the bucket */ count: number; /** * Whether the drop is `intentional` (user-configured) or `unintentional`. Empty for accepted events */ tags: Array; }>; /** * Accepted event volume, one entry per bucket */ acceptedEvents: Array<{ /** * Annotation type. Always `system` */ type: string; /** * Data category of the events, such as `log_item` */ category: string; /** * Outcome of the events, such as `rate_limited` or `filtered`, or `accepted` for accepted events */ outcome: string; /** * Reason for the outcome within its outcome class, or `accepted` for accepted events */ reason: string; /** * Start of the bucket, in milliseconds since the Unix epoch */ start: number; /** * End of the bucket, in milliseconds since the Unix epoch */ end: number; /** * Number of events in the bucket */ count: number; /** * Whether the drop is `intentional` (user-configured) or `unintentional`. Empty for accepted events */ tags: Array; }>; }; }; export type ListOrganizationEventsDroppedResponse = ListOrganizationEventsDroppedResponses[keyof ListOrganizationEventsDroppedResponses]; export type ListOrganizationEventsTimeseriesData = { body?: never; path: { /** * The ID or slug of the organization the resource belongs to. */ organization_id_or_slug: string; }; query: { /** * Which dataset to query. The chosen dataset determines which fields are queryable. * - `errors` - Error events. * - `logs` - Structured log events. * - `profile_functions` - Function-level Profiling data. * - `spans` - Distributed tracing span events. * - `tracemetrics` - Application Metrics. * - `uptime_results` - Uptime monitoring check results. * */ dataset: 'errors' | 'logs' | 'profile_functions' | 'spans' | 'tracemetrics' | 'uptime_results'; /** * The end of the period of time for the query, expected in ISO-8601 format. For example, `2001-12-14T12:34:56.7890`. */ end?: string; /** * The name of environments to filter by. */ environment?: Array; /** * The IDs or slugs of projects to filter by. Project slugs are unique within each organization. Omit this parameter to include all accessible projects. `-1` is also accepted to include all accessible projects. * For example, the following are valid parameters: * - `/?project=1234&project=56789` * - `/?project=android&project=javascript-react` * - `/?project=-1` * */ project?: Array; /** * The start of the period of time for the query, expected in ISO-8601 format. For example, `2001-12-14T12:34:56.7890`. */ start?: string; /** * The period of time for the query, will override the start & end parameters, a number followed by one of: * - `d` for days * - `h` for hours * - `m` for minutes * - `s` for seconds * - `w` for weeks * * For example, `24h`, to mean query data starting from 24 hours ago to now. */ statsPeriod?: string; /** * The number of top event results to return, must be between 1 and 10. * When TopEvents is passed, both sort and groupBy are required parameters */ topEvents?: number; /** * The delta in seconds to return additional offset timeseries by */ comparisonDelta?: number; /** * The size of the bucket for the timeseries to have, must be a value smaller than the window being * queried. Either a number of seconds, or a number with a unit suffix of `s`, `m`, `h`, `d`, or `w`, such as `5m` or * `1h`. If the interval is invalid a default interval will be selected instead */ interval?: number | string; /** * What to order the results of the query by. Must be something in the `field` list, excluding equations. */ sort?: string; /** * List of fields to group by, *Required* for topEvents queries as this and sort determine what the * top events are */ groupBy?: Array; /** * The aggregate fields to create timeseries for, defaults to `count()` when * not included. Pass the parameter more than once to get a timeseries for each aggregate, for * example `?yAxis=count()&yAxis=p95(span.duration)`. * - `count()` - Total count of events over the period. * - `avg(field)` - Average value of the field over the period. * - `pXX(field)` - Percentile value of the field over the period. One of: `p50`, `p75`, `p90`, `p95`, `p99`, `p100`. * - `sum(field)` - Sum of all values for the field over the period. * - `min(field)` - Lowest value observed for the field over the period. * - `max(field)` - Highest value observed for the field over the period. * - `count_unique(field)` - Count of unique values observed for the field over the period. See *Note:* regarding accuracy on sampled data. * - `epm` - Average number of events received per minute. * - `eps` - Average number of events received per second. * - `failure_rate()` - Percentage of events whose `status` indicates failure. * - `failure_count()` - Total count of events with an error `status` over period. * - `performance_score(field)` - Web Vitals performance score for the selected measurement. * - `opportunity_score(field)` - Web Vitals opportunity score for the selected measurement. * */ yAxis?: Array; /** * Ordered transformations for a zero-based `yAxis` position. Replace `0` with the target axis index. * Repeat the indexed key for each operation, for example * `transformations[0]=fill(locf)&transformations[0]=smooth(sma,3)`. * Each axis accepts at most one fill and one smooth operation, in execution order. * Fill modes are `locf`, `zero`, and `linear`. Smoothing modes are `sma`, `ema`, and `asap`. * Omit the indexed key to leave that axis unchanged. Requires the interpolation and smoothing feature. */ 'transformations[0]'?: Array; /** * Filters results by using [query syntax](/concepts/search/). * * Example: `query=(transaction:foo AND release:abc) OR (transaction:[bar,baz] AND release:def)` * * With the `logs` dataset, a string attribute can also be matched against a regular expression written as `key://pattern//`, and excluded with `!key://pattern//`. * Patterns use [RE2 syntax](https://github.com/google/re2/wiki/Syntax), match anywhere in the value unless anchored with `^` or `$`, are case sensitive unless they start with `(?i)`, and are limited to 64 characters. A query can contain up to 16 regular expressions. * To search for a literal value that starts with `//`, quote it: `key:"//value"`. * See [regular expressions](/concepts/search/#regular-expressions-logs-only) for more details. * * Example: `query=message://^Timeout after \d+ms//` * */ query?: string; /** * Whether to disable the use of extrapolation and return the sampled values, due to sampling the * number returned may be less than the actual values sent to Sentry */ disableAggregateExtrapolation?: '0' | '1'; /** * Whether to throw an error when aggregates are passed in the query or groupBy */ preventMetricAggregates?: '0' | '1'; /** * Only applicable with TopEvents, whether to include the 'other' timeseries which represents all the * events that aren't in the top groups. */ excludeOther?: '0' | '1'; }; url: '/organizations/{organization_id_or_slug}/events-timeseries/'; }; export type ListOrganizationEventsTimeseriesErrors = { /** * Invalid Query */ 400: unknown; /** * Not Found */ 404: unknown; /** * The transactions, discover, and events datasets are deprecated and no longer available. */ 410: unknown; }; export type ListOrganizationEventsTimeseriesResponses = { 200: { /** * Metadata about the query */ meta?: { /** * Dataset that was queried */ dataset: string; /** * Start of the queried time range, in milliseconds since the Unix epoch */ start: number; /** * End of the queried time range, in milliseconds since the Unix epoch */ end: number; /** * Ingestion status for the data behind a response. */ ingestion?: { /** * Ingestion status of the data: healthy, stalled, idle or unknown */ status: string; /** * Measured ingestion delay in seconds */ delaySeconds?: number; /** * Time through which the data is complete, as a Unix timestamp in milliseconds */ completeThrough?: number; }; /** * Whether this response reused rows from the incremental timeseries cache */ isCached?: boolean; }; /** * Series returned by the query, one per y-axis and group */ timeSeries: Array<{ /** * Buckets in the series, in time order */ values: Array<{ /** * Start of the bucket, in milliseconds since the Unix epoch */ timestamp: number; /** * Value of the aggregate for this bucket, or null if there is no data */ value: number | null; /** * Whether this bucket may hold incomplete data */ incomplete: boolean; /** * Value of the aggregate for the same bucket in the comparison period */ comparisonValue?: number | null; /** * Whether this value was filled in by a fill transformation */ filled?: boolean; /** * Whether this value was produced by a smoothing transformation */ smoothed?: boolean; /** * Whether the comparison value was filled in by a fill transformation */ comparisonFilled?: boolean; /** * Whether the comparison value was produced by a smoothing transformation */ comparisonSmoothed?: boolean; /** * Number of sampled rows that make up this bucket */ sampleCount?: number; /** * Sampling rate of the data in this bucket, or null if the bucket has no data */ sampleRate?: number | null; /** * Confidence in the extrapolated value: `low` or `high` */ confidence?: 'low' | 'high' | null; /** * Why the bucket is incomplete: `NOT_ELAPSED`, `INGESTION_PENDING`, `OUTSIDE_RETENTION` or `EXCEEDS_QUERY_RANGE` */ incompleteReason?: string; }>; /** * Aggregate this series plots, such as `count()` */ yAxis: string; /** * Fields and values that identify this series when results are grouped */ groupBy?: Array<{ /** * Name of the field this series is grouped by */ key: string; /** * Value of the grouped field for this series */ value: string | number | null; }>; /** * Metadata about the series */ meta: { /** * Position of this series among the top events series */ order?: number; /** * Whether this series aggregates all events outside the top events */ isOther?: boolean; /** * Unit of the values, such as `millisecond` or `byte`, or null if they have no unit */ valueUnit: string | null; /** * Whether the query scanned the `full` data set or only a `partial` sample */ dataScanned?: 'partial' | 'full'; /** * Type of the values, such as `integer`, `duration` or `size` */ valueType: string; /** * Width of each bucket, in milliseconds */ interval: number; }; }>; }; }; export type ListOrganizationEventsTimeseriesResponse = ListOrganizationEventsTimeseriesResponses[keyof ListOrganizationEventsTimeseriesResponses]; export type ListOrganizationExploreSavedQueriesData = { body?: never; path: { /** * The ID or slug of the organization the resource belongs to. */ organization_id_or_slug: string; }; query?: { /** * Limit the number of rows to return in the result. Default and maximum allowed is 100. */ per_page?: number; /** * A pointer to the last object fetched and its sort order; used to retrieve the next or previous results. */ cursor?: string; /** * The name of the Explore query you'd like to filter by. */ query?: string; /** * The property to sort results by. Repeat the parameter to sort by more than one. If not specified, the results are sorted by query name. * * Available fields are: * - `name` * - `dateAdded` * - `dateUpdated` * - `mostPopular` * - `recentlyViewed` * - `myqueries` * - `mostStarred` * - `starred` * * Prefix `name`, `dateAdded`, `dateUpdated`, `mostPopular` or `recentlyViewed` with `-` to reverse the order. * */ sortBy?: Array; /** * Leave out the queries you created (`owned`) or the queries others created (`shared`). */ exclude?: 'owned' | 'shared'; /** * Pass `1` to return only the queries you starred, in your starred order. */ starred?: '1'; }; url: '/organizations/{organization_id_or_slug}/explore/saved/'; }; export type ListOrganizationExploreSavedQueriesErrors = { /** * Bad Request */ 400: unknown; /** * Forbidden */ 403: unknown; /** * Not Found */ 404: unknown; }; export type ListOrganizationExploreSavedQueriesResponses = { 200: Array<{ /** * Saved environment filter */ environment?: Array; /** * Searches, fields and charts saved in the query */ query?: Array<{ /** * Fields shown in the samples table */ fields?: Array | null; /** * Field the samples are sorted by */ orderby?: string | null; /** * Fields the aggregates are grouped by */ groupby?: Array | null; /** * Search query that filters the results */ query?: string | null; /** * Charts shown for the query */ visualize?: Array<{ /** * Chart type used to plot the aggregates */ chartType?: number; /** * Transformations applied to the plotted series */ transformations?: Array; /** * Aggregates to plot */ yAxes: Array; }> | null; /** * Aggregates and group-by fields shown in aggregate mode */ aggregateField?: Array<{ /** * Chart type used to plot the aggregates */ chartType?: number; /** * Aggregates to plot */ yAxes?: Array; /** * Field to group the aggregates by */ groupBy?: string; /** * Transformations applied to the plotted series */ transformations?: Array; }> | null; /** * Field the aggregate results are sorted by */ aggregateOrderby?: string | null; /** * Metric the query reads, for metric queries */ metric?: { /** * Unit of the metric. Null when it has none */ unit?: string | null; /** * Name of the metric */ name: string; /** * Type of the metric */ type: 'counter' | 'gauge' | 'distribution'; } | null; /** * Whether the search query ignores letter case */ caseInsensitive?: boolean; /** * Whether the query shows samples or aggregates */ mode: 'samples' | 'aggregate'; }>; /** * Saved relative time range, such as `24h` */ statsPeriod?: string; /** * Saved absolute start time (ISO 8601) */ start?: string; /** * Saved absolute end time (ISO 8601) */ end?: string; /** * Saved resolution of the time series */ interval?: string; /** * Saved queries across other event types */ crossEvents?: Array<{ /** * Metric the cross-event query reads, for metric queries */ metric?: { /** * Unit of the metric. Null when it has none */ unit?: string | null; /** * Name of the metric */ name: string; /** * Type of the metric */ type: 'counter' | 'gauge' | 'distribution'; } | null; /** * Search query of the cross-event query */ query: string; /** * Event type the cross-event query targets */ type: 'spans' | 'logs' | 'metrics'; }>; /** * Agent names that filter AI conversations */ agent?: Array; /** * Whether only AI conversations with errors are shown */ errorsOnly?: boolean; /** * ID of the saved query */ id: string; /** * Name of the saved query */ name: string; /** * IDs of the projects the query filters by. `[-1]` means all projects */ projects: Array; /** * Dataset the query reads */ dataset: 'spans' | 'logs' | 'segment_spans' | 'metrics' | 'replays' | 'ai_conversations'; /** * Whether the saved start time is outside the data retention period */ expired: boolean; /** * When the query was created (ISO 8601) */ dateAdded: string; /** * When the query was last edited (ISO 8601) */ dateUpdated: string; /** * When the requesting user last opened the query. Null when they haven't */ lastVisited: string | null; /** * User who created the query. Null when a token created it or the user is gone */ createdBy: { /** * SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access */ identities?: Array<{ /** * SSO identity ID */ id: string; /** * User's identifier at the auth provider */ name: string; /** * Organization the auth provider belongs to */ organization: { /** * Organization slug */ slug: string; /** * Organization name */ name: string; }; /** * Auth provider of the identity */ provider: { /** * Auth provider key, such as google or saml2 */ id: string; /** * Display name of the auth provider */ name: string; }; /** * When the identity was last verified by signing in through the auth provider */ dateVerified: string; /** * When the identity was last synced from the auth provider */ dateSynced: string; }>; /** * User avatar */ avatar?: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Two-factor authenticators of the user, without backup methods such as recovery codes */ authenticators?: Array<{ /** * Authenticator ID */ id: string; /** * Authenticator type, such as totp, sms, u2f or recovery */ type: string; /** * Display name of the authenticator type */ name: string; /** * When the authenticator was added */ dateCreated: string; /** * When the authenticator was last used, or null */ dateUsed: string | null; }>; /** * Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization */ canReset2fa?: boolean; /** * User ID */ id: string; /** * Display name: the user's name, or their email or username if no name is set */ name: string; /** * Username */ username: string; /** * Primary email address */ email: string; /** * Gravatar URL for the primary email address */ avatarUrl: string; /** * Whether the account is active */ isActive: boolean; /** * Whether the account is suspended. Suspended users can't sign in */ isSuspended: boolean; /** * Whether the user has a password set */ hasPasswordAuth: boolean; /** * Whether the account is managed, which stops the user from changing their username, password and similar details */ isManaged: boolean; /** * When the account was created */ dateJoined: string; /** * When the user last signed in, or null */ lastLogin: string | null; /** * Whether the user has two-factor authentication enabled */ has2fa: boolean; /** * When the user was last active, or null */ lastActive: string | null; /** * Whether the user is a superuser */ isSuperuser: boolean; /** * Whether the user has staff status */ isStaff: boolean; /** * Deprecated. Always an empty object */ experiments: { [key: string]: string; }; /** * Email addresses of the user. Only included for the requesting user or superusers; empty otherwise */ emails: Array<{ /** * Email ID */ id: string; /** * Email address */ email: string; /** * Whether the email address is verified */ is_verified: boolean; }>; } | null; /** * Whether the requesting user starred the query */ starred: boolean; /** * Position in the requesting user's starred list. Null when not starred */ position: number | null; /** * Whether Sentry provides the query */ isPrebuilt: boolean; /** * What was dropped when the query was migrated from Discover. Null when it wasn't migrated */ changedReason: { /** * Sort orders dropped when the query was migrated. Null when none were */ orderby: Array<{ [key: string]: string; }> | null; /** * Equations dropped when the query was migrated. Null when none were */ equations: Array<{ [key: string]: string | Array; }> | null; /** * Columns dropped when the query was migrated */ columns: Array; } | null; /** * Whether to run the query faster but at lower accuracy or a balance of accuracy and speed */ queryPriority: string; }>; }; export type ListOrganizationExploreSavedQueriesResponse = ListOrganizationExploreSavedQueriesResponses[keyof ListOrganizationExploreSavedQueriesResponses]; export type CreateOrganizationExploreSavedQueryData = { body: { /** * The user-defined saved query name. */ name: string; /** * The Explore query definitions to save. */ query: Array<{ /** * The fields that can be requested for the query. */ fields?: Array | null; /** * How to order the query results. Must be something in the `field` list. */ orderby?: string | null; /** * Columns to group results by. */ groupby?: Array | null; /** * Filters results by using [query syntax](/product/sentry-basics/search/). */ query?: string | null; /** * The visualizations to be plotted on the chart. */ visualize?: Array<{ chartType?: number; yAxes: Array; /** * Ordered fill(...) and smooth(...) expressions. Use an empty list to clear the pipeline. */ transformations?: Array; }> | null; /** * The visualizations to be plotted on the chart. */ aggregateField?: Array<{ chartType?: number; yAxes?: Array; /** * Ordered fill(...) and smooth(...) expressions. Use an empty list to clear the pipeline. */ transformations?: Array; groupBy?: string; }> | null; /** * How to order the query results. Must be something in the `aggregateField` list, excluding equations. */ aggregateOrderby?: string | null; /** * The mode of the query. * * * `samples` * * `aggregate` */ mode: 'samples' | 'aggregate'; /** * The metric configuration (only used for metrics dataset). */ metric?: { /** * The name of the metric. */ name: string; /** * The type of the metric. * * * `counter` * * `gauge` * * `distribution` */ type: 'counter' | 'gauge' | 'distribution'; /** * The unit of the metric (e.g., 'millisecond'). See MetricUnit in relay */ unit?: string | null; } | null; /** * Whether the query should be case insensitive. */ caseInsensitive?: boolean; }>; /** * The saved projects filter for this query. */ projects?: Array; /** * The dataset you would like to query. Supported values: `spans`, `logs`, `metrics`, `replays`, `ai_conversations`. * * * `spans` * * `logs` * * `segment_spans` * * `metrics` * * `replays` * * `ai_conversations` */ dataset?: 'spans' | 'logs' | 'segment_spans' | 'metrics' | 'replays' | 'ai_conversations'; /** * The saved start time for this saved query. */ start?: string | null; /** * The saved end time for this saved query. */ end?: string | null; /** * The saved time range period for this saved query. */ statsPeriod?: string | null; /** * The name of environments to filter by. */ environment?: Array | null; /** * Resolution of the time series. */ interval?: string | null; /** * Optional cross-event queries across event types. Max 2 entries. */ crossEvents?: Array<{ /** * The search query for this cross-event entry. */ query: string; /** * The event type this cross-event query targets. * * * `spans` * * `logs` * * `metrics` */ type: 'spans' | 'logs' | 'metrics'; /** * The metric configuration (only used when type is metrics). */ metric?: { /** * The name of the metric. */ name: string; /** * The type of the metric. * * * `counter` * * `gauge` * * `distribution` */ type: 'counter' | 'gauge' | 'distribution'; /** * The unit of the metric (e.g., 'millisecond'). See MetricUnit in relay */ unit?: string | null; } | null; }> | null; /** * Agent names to filter conversations by. */ agent?: Array | null; /** * Whether to only show conversations with errors. */ errorsOnly?: boolean | null; /** * The query priority. Supported values: `normal`, `faster`. * * * `normal` * * `faster` */ queryPriority?: 'normal' | 'faster' | null; }; path: { /** * The ID or slug of the organization the resource belongs to. */ organization_id_or_slug: string; }; query?: never; url: '/organizations/{organization_id_or_slug}/explore/saved/'; }; export type CreateOrganizationExploreSavedQueryErrors = { /** * Bad Request */ 400: unknown; /** * Forbidden */ 403: unknown; /** * Not Found */ 404: unknown; }; export type CreateOrganizationExploreSavedQueryResponses = { 201: { /** * Saved environment filter */ environment?: Array; /** * Searches, fields and charts saved in the query */ query?: Array<{ /** * Fields shown in the samples table */ fields?: Array | null; /** * Field the samples are sorted by */ orderby?: string | null; /** * Fields the aggregates are grouped by */ groupby?: Array | null; /** * Search query that filters the results */ query?: string | null; /** * Charts shown for the query */ visualize?: Array<{ /** * Chart type used to plot the aggregates */ chartType?: number; /** * Transformations applied to the plotted series */ transformations?: Array; /** * Aggregates to plot */ yAxes: Array; }> | null; /** * Aggregates and group-by fields shown in aggregate mode */ aggregateField?: Array<{ /** * Chart type used to plot the aggregates */ chartType?: number; /** * Aggregates to plot */ yAxes?: Array; /** * Field to group the aggregates by */ groupBy?: string; /** * Transformations applied to the plotted series */ transformations?: Array; }> | null; /** * Field the aggregate results are sorted by */ aggregateOrderby?: string | null; /** * Metric the query reads, for metric queries */ metric?: { /** * Unit of the metric. Null when it has none */ unit?: string | null; /** * Name of the metric */ name: string; /** * Type of the metric */ type: 'counter' | 'gauge' | 'distribution'; } | null; /** * Whether the search query ignores letter case */ caseInsensitive?: boolean; /** * Whether the query shows samples or aggregates */ mode: 'samples' | 'aggregate'; }>; /** * Saved relative time range, such as `24h` */ statsPeriod?: string; /** * Saved absolute start time (ISO 8601) */ start?: string; /** * Saved absolute end time (ISO 8601) */ end?: string; /** * Saved resolution of the time series */ interval?: string; /** * Saved queries across other event types */ crossEvents?: Array<{ /** * Metric the cross-event query reads, for metric queries */ metric?: { /** * Unit of the metric. Null when it has none */ unit?: string | null; /** * Name of the metric */ name: string; /** * Type of the metric */ type: 'counter' | 'gauge' | 'distribution'; } | null; /** * Search query of the cross-event query */ query: string; /** * Event type the cross-event query targets */ type: 'spans' | 'logs' | 'metrics'; }>; /** * Agent names that filter AI conversations */ agent?: Array; /** * Whether only AI conversations with errors are shown */ errorsOnly?: boolean; /** * ID of the saved query */ id: string; /** * Name of the saved query */ name: string; /** * IDs of the projects the query filters by. `[-1]` means all projects */ projects: Array; /** * Dataset the query reads */ dataset: 'spans' | 'logs' | 'segment_spans' | 'metrics' | 'replays' | 'ai_conversations'; /** * Whether the saved start time is outside the data retention period */ expired: boolean; /** * When the query was created (ISO 8601) */ dateAdded: string; /** * When the query was last edited (ISO 8601) */ dateUpdated: string; /** * When the requesting user last opened the query. Null when they haven't */ lastVisited: string | null; /** * User who created the query. Null when a token created it or the user is gone */ createdBy: { /** * SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access */ identities?: Array<{ /** * SSO identity ID */ id: string; /** * User's identifier at the auth provider */ name: string; /** * Organization the auth provider belongs to */ organization: { /** * Organization slug */ slug: string; /** * Organization name */ name: string; }; /** * Auth provider of the identity */ provider: { /** * Auth provider key, such as google or saml2 */ id: string; /** * Display name of the auth provider */ name: string; }; /** * When the identity was last verified by signing in through the auth provider */ dateVerified: string; /** * When the identity was last synced from the auth provider */ dateSynced: string; }>; /** * User avatar */ avatar?: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Two-factor authenticators of the user, without backup methods such as recovery codes */ authenticators?: Array<{ /** * Authenticator ID */ id: string; /** * Authenticator type, such as totp, sms, u2f or recovery */ type: string; /** * Display name of the authenticator type */ name: string; /** * When the authenticator was added */ dateCreated: string; /** * When the authenticator was last used, or null */ dateUsed: string | null; }>; /** * Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization */ canReset2fa?: boolean; /** * User ID */ id: string; /** * Display name: the user's name, or their email or username if no name is set */ name: string; /** * Username */ username: string; /** * Primary email address */ email: string; /** * Gravatar URL for the primary email address */ avatarUrl: string; /** * Whether the account is active */ isActive: boolean; /** * Whether the account is suspended. Suspended users can't sign in */ isSuspended: boolean; /** * Whether the user has a password set */ hasPasswordAuth: boolean; /** * Whether the account is managed, which stops the user from changing their username, password and similar details */ isManaged: boolean; /** * When the account was created */ dateJoined: string; /** * When the user last signed in, or null */ lastLogin: string | null; /** * Whether the user has two-factor authentication enabled */ has2fa: boolean; /** * When the user was last active, or null */ lastActive: string | null; /** * Whether the user is a superuser */ isSuperuser: boolean; /** * Whether the user has staff status */ isStaff: boolean; /** * Deprecated. Always an empty object */ experiments: { [key: string]: string; }; /** * Email addresses of the user. Only included for the requesting user or superusers; empty otherwise */ emails: Array<{ /** * Email ID */ id: string; /** * Email address */ email: string; /** * Whether the email address is verified */ is_verified: boolean; }>; } | null; /** * Whether the requesting user starred the query */ starred: boolean; /** * Position in the requesting user's starred list. Null when not starred */ position: number | null; /** * Whether Sentry provides the query */ isPrebuilt: boolean; /** * What was dropped when the query was migrated from Discover. Null when it wasn't migrated */ changedReason: { /** * Sort orders dropped when the query was migrated. Null when none were */ orderby: Array<{ [key: string]: string; }> | null; /** * Equations dropped when the query was migrated. Null when none were */ equations: Array<{ [key: string]: string | Array; }> | null; /** * Columns dropped when the query was migrated */ columns: Array; } | null; /** * Whether to run the query faster but at lower accuracy or a balance of accuracy and speed */ queryPriority: string; }; }; export type CreateOrganizationExploreSavedQueryResponse = CreateOrganizationExploreSavedQueryResponses[keyof CreateOrganizationExploreSavedQueryResponses]; export type CreateOrganizationExternalUserData = { /** * Allows parameters to be defined in snake case, but passed as camel case. * * Errors are output in camel case. */ body: { /** * The user ID in Sentry. */ user_id: number; /** * The associated name for the provider. */ external_name: string; /** * The provider of the external actor. * * * `github` * * `github_enterprise` * * `jira_server` * * `slack` * * `slack_staging` * * `perforce` * * `gitlab` * * `cursor_origin` * * `msteams` * * `custom_scm` */ provider: 'github' | 'github_enterprise' | 'jira_server' | 'slack' | 'slack_staging' | 'perforce' | 'gitlab' | 'cursor_origin' | 'msteams' | 'custom_scm'; /** * The Integration ID. */ integration_id: number; /** * The external actor ID. */ readonly id: number; /** * The associated user ID for provider. */ external_id?: string | null; }; path: { /** * The ID or slug of the organization the resource belongs to. */ organization_id_or_slug: string; }; query?: never; url: '/organizations/{organization_id_or_slug}/external-users/'; }; export type CreateOrganizationExternalUserErrors = { /** * Bad Request */ 400: unknown; /** * Forbidden */ 403: unknown; }; export type CreateOrganizationExternalUserResponses = { 200: { /** * ID of the user or team in the provider */ externalId?: string; /** * ID of the Sentry user. Only set for user mappings */ userId?: string; /** * ID of the Sentry team. Only set for team mappings */ teamId?: string; /** * ID of the external actor mapping */ id: string; /** * Provider of the external actor, such as github or slack */ provider: string; /** * Name of the user or team in the provider, such as @octocat */ externalName: string; /** * ID of the integration the mapping belongs to */ integrationId: string; }; 201: { /** * ID of the user or team in the provider */ externalId?: string; /** * ID of the Sentry user. Only set for user mappings */ userId?: string; /** * ID of the Sentry team. Only set for team mappings */ teamId?: string; /** * ID of the external actor mapping */ id: string; /** * Provider of the external actor, such as github or slack */ provider: string; /** * Name of the user or team in the provider, such as @octocat */ externalName: string; /** * ID of the integration the mapping belongs to */ integrationId: string; }; }; export type CreateOrganizationExternalUserResponse = CreateOrganizationExternalUserResponses[keyof CreateOrganizationExternalUserResponses]; export type DeleteOrganizationExternalUserData = { body?: never; path: { /** * The ID or slug of the organization the resource belongs to. */ organization_id_or_slug: string; /** * The ID of the external user object. This is returned when creating an external user. */ external_user_id: number; }; query?: never; url: '/organizations/{organization_id_or_slug}/external-users/{external_user_id}/'; }; export type DeleteOrganizationExternalUserErrors = { /** * Bad Request */ 400: unknown; /** * Forbidden */ 403: unknown; }; export type DeleteOrganizationExternalUserResponses = { /** * No Content */ 204: void; }; export type DeleteOrganizationExternalUserResponse = DeleteOrganizationExternalUserResponses[keyof DeleteOrganizationExternalUserResponses]; export type UpdateOrganizationExternalUserData = { /** * Allows parameters to be defined in snake case, but passed as camel case. * * Errors are output in camel case. */ body: { /** * The user ID in Sentry. */ user_id: number; /** * The associated name for the provider. */ external_name: string; /** * The provider of the external actor. * * * `github` * * `github_enterprise` * * `jira_server` * * `slack` * * `slack_staging` * * `perforce` * * `gitlab` * * `cursor_origin` * * `msteams` * * `custom_scm` */ provider: 'github' | 'github_enterprise' | 'jira_server' | 'slack' | 'slack_staging' | 'perforce' | 'gitlab' | 'cursor_origin' | 'msteams' | 'custom_scm'; /** * The Integration ID. */ integration_id: number; /** * The external actor ID. */ readonly id: number; /** * The associated user ID for provider. */ external_id?: string | null; }; path: { /** * The ID or slug of the organization the resource belongs to. */ organization_id_or_slug: string; /** * The ID of the external user object. This is returned when creating an external user. */ external_user_id: number; }; query?: never; url: '/organizations/{organization_id_or_slug}/external-users/{external_user_id}/'; }; export type UpdateOrganizationExternalUserErrors = { /** * Bad Request */ 400: unknown; /** * Forbidden */ 403: unknown; }; export type UpdateOrganizationExternalUserResponses = { 200: { /** * ID of the user or team in the provider */ externalId?: string; /** * ID of the Sentry user. Only set for user mappings */ userId?: string; /** * ID of the Sentry team. Only set for team mappings */ teamId?: string; /** * ID of the external actor mapping */ id: string; /** * Provider of the external actor, such as github or slack */ provider: string; /** * Name of the user or team in the provider, such as @octocat */ externalName: string; /** * ID of the integration the mapping belongs to */ integrationId: string; }; }; export type UpdateOrganizationExternalUserResponse = UpdateOrganizationExternalUserResponses[keyof UpdateOrganizationExternalUserResponses]; export type ListOrganizationFlagLogsData = { body?: never; path: { /** * The ID or slug of the organization the resource belongs to. */ organization_id_or_slug: string; }; query?: { /** * The start of the period of time for the query, expected in ISO-8601 format. For example, `2001-12-14T12:34:56.7890`. */ start?: string; /** * The end of the period of time for the query, expected in ISO-8601 format. For example, `2001-12-14T12:34:56.7890`. */ end?: string; /** * The period of time for the query, will override the start & end parameters, a number followed by one of: * - `d` for days * - `h` for hours * - `m` for minutes * - `s` for seconds * - `w` for weeks * * For example, `24h`, to mean query data starting from 24 hours ago to now. */ statsPeriod?: string; /** * How long ago the query period starts, in the same format as `statsPeriod`. Must be sent with `statsPeriodEnd`, and is ignored when `statsPeriod` is sent. */ statsPeriodStart?: string; /** * How long ago the query period ends, in the same format as `statsPeriod`. Must be sent with `statsPeriodStart`, and is ignored when `statsPeriod` is sent. */ statsPeriodEnd?: string; /** * The name of a feature flag to filter by. Repeat the parameter to match multiple flags. */ flag?: Array; /** * The flag provider to filter by. Use `unknown` to match logs without a provider. Repeat the parameter to match multiple providers. */ provider?: Array<'flagpole' | 'generic' | 'launchdarkly' | 'statsig' | 'unknown' | 'unleash'>; /** * The field to sort results by. * * Available fields are: * - `action` * - `createdAt` * - `createdBy` * - `createdByType` * - `flag` * - `provider` * * Prefix with `-` to sort in descending order. * */ sort?: string; /** * Limit the number of rows to return in the result. Default and maximum allowed is 100. */ per_page?: number; /** * A pointer to the last object fetched and its sort order; used to retrieve the next or previous results. */ cursor?: string; }; url: '/organizations/{organization_id_or_slug}/flags/logs/'; }; export type ListOrganizationFlagLogsErrors = { /** * Bad Request */ 400: unknown; /** * Unauthorized */ 401: unknown; /** * Forbidden */ 403: unknown; }; export type ListOrganizationFlagLogsResponses = { 200: { /** * Audit log entries */ data: Array<{ /** * ID of the audit log entry */ id: number; /** * What happened to the flag: created, deleted or updated */ action: 'created' | 'deleted' | 'updated'; /** * When the change happened (ISO 8601) */ createdAt: string; /** * Who made the change, such as an email address */ createdBy: string | null; /** * Kind of value in createdBy: email, id or name */ createdByType: 'email' | 'id' | 'name' | null; /** * Name of the flag */ flag: string; /** * Feature flag provider that sent the change: generic, flagpole, launchdarkly, unleash or statsig */ provider: 'generic' | 'flagpole' | 'launchdarkly' | 'unleash' | 'statsig' | null; /** * Tags of the change, such as the environment */ tags: { [key: string]: unknown; }; }>; }; }; export type ListOrganizationFlagLogsResponse = ListOrganizationFlagLogsResponses[keyof ListOrganizationFlagLogsResponses]; export type RetrieveOrganizationFlagLogData = { body?: never; path: { /** * The ID or slug of the organization the resource belongs to. */ organization_id_or_slug: string; /** * The ID of the flag log entry you'd like to retrieve. */ flag_log_id: number; }; query?: never; url: '/organizations/{organization_id_or_slug}/flags/logs/{flag_log_id}/'; }; export type RetrieveOrganizationFlagLogErrors = { /** * Unauthorized */ 401: unknown; /** * Forbidden */ 403: unknown; /** * Not Found */ 404: unknown; }; export type RetrieveOrganizationFlagLogResponses = { 200: { /** * The audit log entry */ data: { /** * ID of the audit log entry */ id: number; /** * What happened to the flag: created, deleted or updated */ action: 'created' | 'deleted' | 'updated'; /** * When the change happened (ISO 8601) */ createdAt: string; /** * Who made the change, such as an email address */ createdBy: string | null; /** * Kind of value in createdBy: email, id or name */ createdByType: 'email' | 'id' | 'name' | null; /** * Name of the flag */ flag: string; /** * Feature flag provider that sent the change: generic, flagpole, launchdarkly, unleash or statsig */ provider: 'generic' | 'flagpole' | 'launchdarkly' | 'unleash' | 'statsig' | null; /** * Tags of the change, such as the environment */ tags: { [key: string]: unknown; }; }; }; }; export type RetrieveOrganizationFlagLogResponse = RetrieveOrganizationFlagLogResponses[keyof RetrieveOrganizationFlagLogResponses]; export type ListOrganizationForwardingData = { body?: never; path: { /** * The ID or slug of the organization the resource belongs to. */ organization_id_or_slug: string; }; query?: never; url: '/organizations/{organization_id_or_slug}/forwarding/'; }; export type ListOrganizationForwardingResponses = { 200: Array<{ /** * ID of the data forwarder */ id: string; /** * ID of the organization */ organizationId: string; /** * Whether the data forwarder is on */ isEnabled: boolean; /** * Whether new projects are enrolled in the forwarder automatically */ enrollNewProjects: boolean; /** * Projects enrolled in the forwarder */ enrolledProjects: Array<{ /** * ID of the project */ id: string; /** * Slug of the project */ slug: string; /** * Platform of the project */ platform: string | null; }>; /** * Service the data is forwarded to: segment, sqs or splunk */ provider: string; /** * Provider settings of the forwarder. Null without org:write access */ config: { [key: string]: string; } | null; /** * Configuration of each enrolled project */ projectConfigs: Array<{ /** * ID of the project's data forwarding configuration */ id: string; /** * Whether data forwarding is on for the project */ isEnabled: boolean; /** * ID of the data forwarder */ dataForwarderId: string; /** * Project the configuration applies to */ project: { /** * ID of the project */ id: string; /** * Slug of the project */ slug: string; /** * Platform of the project */ platform: string | null; }; /** * Settings that override the forwarder's config for the project. Empty without project:write or org:write access */ overrides: { [key: string]: string; }; /** * Forwarder config merged with the project's overrides. Empty without org:write access */ effectiveConfig: { [key: string]: string; }; /** * When the project configuration was created (ISO 8601) */ dateAdded: string; /** * When the project configuration was last updated (ISO 8601) */ dateUpdated: string; }>; /** * When the data forwarder was created (ISO 8601) */ dateAdded: string; /** * When the data forwarder was last updated (ISO 8601) */ dateUpdated: string; }>; }; export type ListOrganizationForwardingResponse = ListOrganizationForwardingResponses[keyof ListOrganizationForwardingResponses]; export type CreateOrganizationForwardingData = { body: { /** * The ID of the organization related to the data forwarder. */ organization_id: number; /** * The provider of the data forwarder. One of "segment", "sqs", or "splunk". * * * `segment` - Segment * * `sqs` - Amazon SQS * * `splunk` - Splunk */ provider: 'segment' | 'sqs' | 'splunk'; /** * Whether the data forwarder is enabled. */ is_enabled?: boolean; /** * Whether to enroll new projects automatically, after they're created. */ enroll_new_projects?: boolean; /** * The configuration for the data forwarder, specific to the provider type. * For a 'sqs' provider, the required keys are queue_url, region, access_key, secret_key. If using a FIFO queue, you must also provide a message_group_id, though s3_bucket is optional. * For a 'segment' provider, the required keys are write_key. * For a 'splunk' provider, the required keys are instance_url, index, source, token. */ config?: { [key: string]: string; }; /** * The IDs of the projects connected to the data forwarder. Missing project IDs will be unenrolled if previously enrolled. */ project_ids?: Array; }; path: { /** * The ID or slug of the organization the resource belongs to. */ organization_id_or_slug: string; }; query?: never; url: '/organizations/{organization_id_or_slug}/forwarding/'; }; export type CreateOrganizationForwardingErrors = { /** * Bad Request */ 400: unknown; /** * Forbidden */ 403: unknown; }; export type CreateOrganizationForwardingResponses = { 201: { /** * ID of the data forwarder */ id: string; /** * ID of the organization */ organizationId: string; /** * Whether the data forwarder is on */ isEnabled: boolean; /** * Whether new projects are enrolled in the forwarder automatically */ enrollNewProjects: boolean; /** * Projects enrolled in the forwarder */ enrolledProjects: Array<{ /** * ID of the project */ id: string; /** * Slug of the project */ slug: string; /** * Platform of the project */ platform: string | null; }>; /** * Service the data is forwarded to: segment, sqs or splunk */ provider: string; /** * Provider settings of the forwarder. Null without org:write access */ config: { [key: string]: string; } | null; /** * Configuration of each enrolled project */ projectConfigs: Array<{ /** * ID of the project's data forwarding configuration */ id: string; /** * Whether data forwarding is on for the project */ isEnabled: boolean; /** * ID of the data forwarder */ dataForwarderId: string; /** * Project the configuration applies to */ project: { /** * ID of the project */ id: string; /** * Slug of the project */ slug: string; /** * Platform of the project */ platform: string | null; }; /** * Settings that override the forwarder's config for the project. Empty without project:write or org:write access */ overrides: { [key: string]: string; }; /** * Forwarder config merged with the project's overrides. Empty without org:write access */ effectiveConfig: { [key: string]: string; }; /** * When the project configuration was created (ISO 8601) */ dateAdded: string; /** * When the project configuration was last updated (ISO 8601) */ dateUpdated: string; }>; /** * When the data forwarder was created (ISO 8601) */ dateAdded: string; /** * When the data forwarder was last updated (ISO 8601) */ dateUpdated: string; }; }; export type CreateOrganizationForwardingResponse = CreateOrganizationForwardingResponses[keyof CreateOrganizationForwardingResponses]; export type DeleteOrganizationForwardingData = { body?: never; path: { /** * The ID or slug of the organization the resource belongs to. */ organization_id_or_slug: string; /** * The ID of the data forwarder you'd like to query. */ data_forwarder_id: number; }; query?: never; url: '/organizations/{organization_id_or_slug}/forwarding/{data_forwarder_id}/'; }; export type DeleteOrganizationForwardingErrors = { /** * Forbidden */ 403: unknown; }; export type DeleteOrganizationForwardingResponses = { /** * No Content */ 204: void; }; export type DeleteOrganizationForwardingResponse = DeleteOrganizationForwardingResponses[keyof DeleteOrganizationForwardingResponses]; export type UpdateOrganizationForwardingData = { body: { /** * The ID of the organization related to the data forwarder. */ organization_id: number; /** * The provider of the data forwarder. One of "segment", "sqs", or "splunk". * * * `segment` - Segment * * `sqs` - Amazon SQS * * `splunk` - Splunk */ provider: 'segment' | 'sqs' | 'splunk'; /** * Whether the data forwarder is enabled. */ is_enabled?: boolean; /** * Whether to enroll new projects automatically, after they're created. */ enroll_new_projects?: boolean; /** * The configuration for the data forwarder, specific to the provider type. * For a 'sqs' provider, the required keys are queue_url, region, access_key, secret_key. If using a FIFO queue, you must also provide a message_group_id, though s3_bucket is optional. * For a 'segment' provider, the required keys are write_key. * For a 'splunk' provider, the required keys are instance_url, index, source, token. */ config?: { [key: string]: string; }; /** * The IDs of the projects connected to the data forwarder. Missing project IDs will be unenrolled if previously enrolled. */ project_ids?: Array; }; path: { /** * The ID or slug of the organization the resource belongs to. */ organization_id_or_slug: string; /** * The ID of the data forwarder you'd like to query. */ data_forwarder_id: number; }; query?: never; url: '/organizations/{organization_id_or_slug}/forwarding/{data_forwarder_id}/'; }; export type UpdateOrganizationForwardingErrors = { /** * Bad Request */ 400: unknown; /** * Forbidden */ 403: unknown; }; export type UpdateOrganizationForwardingResponses = { 200: { /** * ID of the data forwarder */ id: string; /** * ID of the organization */ organizationId: string; /** * Whether the data forwarder is on */ isEnabled: boolean; /** * Whether new projects are enrolled in the forwarder automatically */ enrollNewProjects: boolean; /** * Projects enrolled in the forwarder */ enrolledProjects: Array<{ /** * ID of the project */ id: string; /** * Slug of the project */ slug: string; /** * Platform of the project */ platform: string | null; }>; /** * Service the data is forwarded to: segment, sqs or splunk */ provider: string; /** * Provider settings of the forwarder. Null without org:write access */ config: { [key: string]: string; } | null; /** * Configuration of each enrolled project */ projectConfigs: Array<{ /** * ID of the project's data forwarding configuration */ id: string; /** * Whether data forwarding is on for the project */ isEnabled: boolean; /** * ID of the data forwarder */ dataForwarderId: string; /** * Project the configuration applies to */ project: { /** * ID of the project */ id: string; /** * Slug of the project */ slug: string; /** * Platform of the project */ platform: string | null; }; /** * Settings that override the forwarder's config for the project. Empty without project:write or org:write access */ overrides: { [key: string]: string; }; /** * Forwarder config merged with the project's overrides. Empty without org:write access */ effectiveConfig: { [key: string]: string; }; /** * When the project configuration was created (ISO 8601) */ dateAdded: string; /** * When the project configuration was last updated (ISO 8601) */ dateUpdated: string; }>; /** * When the data forwarder was created (ISO 8601) */ dateAdded: string; /** * When the data forwarder was last updated (ISO 8601) */ dateUpdated: string; }; }; export type UpdateOrganizationForwardingResponse = UpdateOrganizationForwardingResponses[keyof UpdateOrganizationForwardingResponses]; export type ListOrganizationIssueViewsData = { body?: never; path: { /** * The ID or slug of the organization the resource belongs to. */ organization_id_or_slug: string; }; query?: { /** * Whether to return issue views created by the current user or other members. * * * `me` * * `others` */ createdBy?: 'me' | 'others'; /** * The fields used to sort issue views, in order of precedence. */ sort?: Array<'popularity' | '-popularity' | 'visited' | '-visited' | 'name' | '-name' | 'created' | '-created'>; /** * A case-insensitive search against issue view names and queries. */ query?: string; /** * A pointer to the last object fetched and its sort order; used to retrieve the next or previous results. */ cursor?: string; /** * Limit the number of rows to return in the result. Default and maximum allowed is 100. */ per_page?: number; }; url: '/organizations/{organization_id_or_slug}/group-search-views/'; }; export type ListOrganizationIssueViewsErrors = { /** * Bad Request */ 400: unknown; /** * Unauthorized */ 401: unknown; /** * Forbidden */ 403: unknown; /** * Not Found */ 404: unknown; }; export type ListOrganizationIssueViewsResponses = { 200: Array<{ /** * ID of the issue view */ id: string; /** * User who created the issue view */ createdBy: { /** * SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access */ identities?: Array<{ /** * SSO identity ID */ id: string; /** * User's identifier at the auth provider */ name: string; /** * Organization the auth provider belongs to */ organization: { /** * Organization slug */ slug: string; /** * Organization name */ name: string; }; /** * Auth provider of the identity */ provider: { /** * Auth provider key, such as google or saml2 */ id: string; /** * Display name of the auth provider */ name: string; }; /** * When the identity was last verified by signing in through the auth provider */ dateVerified: string; /** * When the identity was last synced from the auth provider */ dateSynced: string; }>; /** * User avatar */ avatar?: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Two-factor authenticators of the user, without backup methods such as recovery codes */ authenticators?: Array<{ /** * Authenticator ID */ id: string; /** * Authenticator type, such as totp, sms, u2f or recovery */ type: string; /** * Display name of the authenticator type */ name: string; /** * When the authenticator was added */ dateCreated: string; /** * When the authenticator was last used, or null */ dateUsed: string | null; }>; /** * Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization */ canReset2fa?: boolean; /** * User ID */ id: string; /** * Display name: the user's name, or their email or username if no name is set */ name: string; /** * Username */ username: string; /** * Primary email address */ email: string; /** * Gravatar URL for the primary email address */ avatarUrl: string; /** * Whether the account is active */ isActive: boolean; /** * Whether the account is suspended. Suspended users can't sign in */ isSuspended: boolean; /** * Whether the user has a password set */ hasPasswordAuth: boolean; /** * Whether the account is managed, which stops the user from changing their username, password and similar details */ isManaged: boolean; /** * When the account was created */ dateJoined: string; /** * When the user last signed in, or null */ lastLogin: string | null; /** * Whether the user has two-factor authentication enabled */ has2fa: boolean; /** * When the user was last active, or null */ lastActive: string | null; /** * Whether the user is a superuser */ isSuperuser: boolean; /** * Whether the user has staff status */ isStaff: boolean; /** * Deprecated. Always an empty object */ experiments: { [key: string]: string; }; /** * Email addresses of the user. Only included for the requesting user or superusers; empty otherwise */ emails: Array<{ /** * Email ID */ id: string; /** * Email address */ email: string; /** * Whether the email address is verified */ is_verified: boolean; }>; } | null; /** * Name of the issue view */ name: string; /** * Search query of the issue view */ query: string; /** * How issues in the view are sorted */ querySort: 'date' | 'new' | 'trends' | 'freq' | 'user' | 'inbox' | 'recommended'; /** * IDs of the projects in the view. [-1] means all projects */ projects: Array; /** * Names of the environments in the view. An empty list means all environments */ environments: Array; /** * Time range of the issue view */ timeFilters: { /** * Start of the time range (ISO 8601) */ start?: string | null; /** * End of the time range (ISO 8601) */ end?: string | null; /** * Relative time period, such as 14d */ period?: string | null; /** * Whether the time range is in UTC */ utc?: boolean | null; }; /** * When the requesting user last viewed the issue view (ISO 8601) */ lastVisited: string | null; /** * When the issue view was created (ISO 8601) */ dateCreated: string | null; /** * When the issue view was last updated (ISO 8601) */ dateUpdated: string; /** * Whether the requesting user starred the issue view */ starred: boolean; /** * Number of users who starred the issue view */ stars: number; }>; }; export type ListOrganizationIssueViewsResponse = ListOrganizationIssueViewsResponses[keyof ListOrganizationIssueViewsResponses]; export type CreateOrganizationIssueViewData = { body: { /** * The name of the issue view. */ name: string; /** * The issue search query. Issue search does not support the `AND`/`OR` boolean operators or parenthesized boolean groups. To match any of several values, use the list form instead: `issue:[PROJ-AB1, PROJ-CD2]`, `issue.priority:[high, medium]`. */ query: string; /** * The project IDs included in the view. Use `-1` to include all projects. */ projects: Array; /** * The environment names included in the view. An empty list includes all environments. */ environments: Array; /** * The time range for the view. */ timeFilters: { /** * The start of the time range in ISO-8601 format. */ start?: string | null; /** * The end of the time range in ISO-8601 format. */ end?: string | null; /** * The relative time period, such as `14d`. */ period?: string | null; /** * Whether to interpret the time range as UTC. */ utc?: boolean | null; }; /** * How to sort issues in the view. * * * `date` - Last Seen * * `new` - First Seen * * `trends` - Trends * * `freq` - Events * * `user` - Users * * `inbox` - Date Added * * `recommended` - Recommended */ querySort?: 'date' | 'new' | 'trends' | 'freq' | 'user' | 'inbox' | 'recommended'; /** * Whether to star the issue view for the current user. */ starred?: boolean; }; path: { /** * The ID or slug of the organization the resource belongs to. */ organization_id_or_slug: string; }; query?: never; url: '/organizations/{organization_id_or_slug}/group-search-views/'; }; export type CreateOrganizationIssueViewErrors = { /** * Bad Request */ 400: unknown; /** * Unauthorized */ 401: unknown; /** * Forbidden */ 403: unknown; /** * Not Found */ 404: unknown; }; export type CreateOrganizationIssueViewResponses = { 201: { /** * ID of the issue view */ id: string; /** * User who created the issue view */ createdBy: { /** * SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access */ identities?: Array<{ /** * SSO identity ID */ id: string; /** * User's identifier at the auth provider */ name: string; /** * Organization the auth provider belongs to */ organization: { /** * Organization slug */ slug: string; /** * Organization name */ name: string; }; /** * Auth provider of the identity */ provider: { /** * Auth provider key, such as google or saml2 */ id: string; /** * Display name of the auth provider */ name: string; }; /** * When the identity was last verified by signing in through the auth provider */ dateVerified: string; /** * When the identity was last synced from the auth provider */ dateSynced: string; }>; /** * User avatar */ avatar?: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Two-factor authenticators of the user, without backup methods such as recovery codes */ authenticators?: Array<{ /** * Authenticator ID */ id: string; /** * Authenticator type, such as totp, sms, u2f or recovery */ type: string; /** * Display name of the authenticator type */ name: string; /** * When the authenticator was added */ dateCreated: string; /** * When the authenticator was last used, or null */ dateUsed: string | null; }>; /** * Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization */ canReset2fa?: boolean; /** * User ID */ id: string; /** * Display name: the user's name, or their email or username if no name is set */ name: string; /** * Username */ username: string; /** * Primary email address */ email: string; /** * Gravatar URL for the primary email address */ avatarUrl: string; /** * Whether the account is active */ isActive: boolean; /** * Whether the account is suspended. Suspended users can't sign in */ isSuspended: boolean; /** * Whether the user has a password set */ hasPasswordAuth: boolean; /** * Whether the account is managed, which stops the user from changing their username, password and similar details */ isManaged: boolean; /** * When the account was created */ dateJoined: string; /** * When the user last signed in, or null */ lastLogin: string | null; /** * Whether the user has two-factor authentication enabled */ has2fa: boolean; /** * When the user was last active, or null */ lastActive: string | null; /** * Whether the user is a superuser */ isSuperuser: boolean; /** * Whether the user has staff status */ isStaff: boolean; /** * Deprecated. Always an empty object */ experiments: { [key: string]: string; }; /** * Email addresses of the user. Only included for the requesting user or superusers; empty otherwise */ emails: Array<{ /** * Email ID */ id: string; /** * Email address */ email: string; /** * Whether the email address is verified */ is_verified: boolean; }>; } | null; /** * Name of the issue view */ name: string; /** * Search query of the issue view */ query: string; /** * How issues in the view are sorted */ querySort: 'date' | 'new' | 'trends' | 'freq' | 'user' | 'inbox' | 'recommended'; /** * IDs of the projects in the view. [-1] means all projects */ projects: Array; /** * Names of the environments in the view. An empty list means all environments */ environments: Array; /** * Time range of the issue view */ timeFilters: { /** * Start of the time range (ISO 8601) */ start?: string | null; /** * End of the time range (ISO 8601) */ end?: string | null; /** * Relative time period, such as 14d */ period?: string | null; /** * Whether the time range is in UTC */ utc?: boolean | null; }; /** * When the requesting user last viewed the issue view (ISO 8601) */ lastVisited: string | null; /** * When the issue view was created (ISO 8601) */ dateCreated: string | null; /** * When the issue view was last updated (ISO 8601) */ dateUpdated: string; /** * Whether the requesting user starred the issue view */ starred: boolean; /** * Number of users who starred the issue view */ stars: number; }; }; export type CreateOrganizationIssueViewResponse = CreateOrganizationIssueViewResponses[keyof CreateOrganizationIssueViewResponses]; export type ListOrganizationIntegrationsData = { body?: never; path: { /** * The ID or slug of the organization the resource belongs to. */ organization_id_or_slug: string; }; query?: { /** * Specific integration provider to filter by such as `slack`. See our [Integrations Documentation](/product/integrations/) for an updated list of providers. */ providerKey?: string; /** * Integration features to filter by. See our [Integrations Documentation](/product/integrations/) for an updated list of features. Current available ones are: * - `alert-rule` * - `chat-unfurl` * - `codeowners` * - `commits` * - `data-forwarding` * - `deployment` * - `enterprise-alert-rule` * - `enterprise-incident-management` * - `incident-management` * - `issue-basic` * - `issue-sync` * - `mobile` * - `serverless` * - `session-replay` * - `stacktrace-link` * - `ticket-rules` * */ features?: Array; /** * Specify `True` to fetch third-party integration configurations. Note that this can add several seconds to the response time. */ includeConfig?: boolean; /** * A pointer to the last object fetched and its sort order; used to retrieve the next or previous results. */ cursor?: string; }; url: '/organizations/{organization_id_or_slug}/integrations/'; }; export type ListOrganizationIntegrationsErrors = { /** * Bad Request */ 400: unknown; }; export type ListOrganizationIntegrationsResponses = { 200: Array<{ /** * ID of the integration */ id: string; /** * Name of the integration, usually the connected account or workspace */ name: string; /** * URL of the connected account's icon */ icon: string | null; /** * Domain of the connected account, such as github.com/example-org */ domainName: string | null; /** * Type of the connected account, such as Organization or User */ accountType: string | null; /** * Permission scopes granted to the integration */ scopes: Array | null; /** * Whether the installation lacks permissions the latest version of the integration needs. Null for providers without a permissions model */ outOfDate: boolean | null; /** * Features the installation can't support because of missing permissions. Null for providers without a permissions model */ missingFeatures: Array<{ /** * Key of the missing feature */ key: string; /** * Description of the missing feature */ description: string; }> | null; /** * Status of the integration */ status: 'active' | 'disabled' | 'pending_deletion' | 'deletion_in_progress'; /** * Integration provider details */ provider: { /** * Key of the integration provider, such as github */ key: string; /** * Slug of the integration provider, same as key */ slug: string; /** * Display name of the integration provider */ name: string; /** * Whether the integration can be installed from Sentry */ canAdd: boolean; /** * Whether the integration must be uninstalled from the provider instead of in Sentry */ canDisable: boolean; /** * Features the integration provider supports, such as issue-basic or commits */ features: Array; /** * Extra provider details shown during setup, such as alerts and configuration instructions */ aspects: { /** * Alerts shown during setup */ alerts?: Array<{ /** * Style of the alert, such as warning */ type: string; /** * Icon shown with the alert, such as icon-warning-sm */ icon: string; /** * Text of the alert, in Markdown */ text: string; }>; /** * Configuration step after install */ configure_integration?: { /** * Title of the configuration step */ title: string; }; /** * Whether the integration is enabled without an install flow */ directEnable?: boolean; /** * Dialog shown before the integration is disabled */ disable_dialog?: { /** * Label of the dialog's confirm button */ actionText: string; /** * Text of the dialog */ body: string; }; /** * Where to install the integration when it's installed outside Sentry */ externalInstall?: { /** * URL to install the integration from, such as a marketplace */ url: string; /** * Label of the install button */ buttonText: string; /** * Notice shown before the user leaves Sentry */ noticeText: string; }; /** * Dialog shown before the integration is removed */ removal_dialog?: { /** * Label of the dialog's confirm button */ actionText: string; /** * Text of the dialog */ body: string; }; }; }; /** * Organization-level configuration fields of the integration */ configOrganization: unknown; /** * Configuration values the organization set for the integration */ configData: unknown; /** * ID of the connected account in the provider */ externalId: string; /** * ID of the organization the integration is installed in */ organizationId: number; /** * Status of the integration in this organization */ organizationIntegrationStatus: 'active' | 'disabled' | 'pending_deletion' | 'deletion_in_progress'; /** * When the integration's grace period ends (ISO 8601). Null when there's no grace period */ gracePeriodEnd: string | null; }>; }; export type ListOrganizationIntegrationsResponse = ListOrganizationIntegrationsResponses[keyof ListOrganizationIntegrationsResponses]; export type DeleteOrganizationIntegrationData = { body?: never; path: { /** * The ID or slug of the organization the resource belongs to. */ organization_id_or_slug: string; /** * The ID of the integration installed on the organization. */ integration_id: string; }; query?: never; url: '/organizations/{organization_id_or_slug}/integrations/{integration_id}/'; }; export type DeleteOrganizationIntegrationErrors = { /** * Not Found */ 404: unknown; }; export type DeleteOrganizationIntegrationResponses = { /** * No Content */ 204: void; }; export type DeleteOrganizationIntegrationResponse = DeleteOrganizationIntegrationResponses[keyof DeleteOrganizationIntegrationResponses]; export type GetOrganizationIntegrationData = { body?: never; path: { /** * The ID or slug of the organization the resource belongs to. */ organization_id_or_slug: string; /** * The ID of the integration installed on the organization. */ integration_id: string; }; query?: never; url: '/organizations/{organization_id_or_slug}/integrations/{integration_id}/'; }; export type GetOrganizationIntegrationErrors = { /** * Bad Request */ 400: unknown; /** * Not Found */ 404: unknown; }; export type GetOrganizationIntegrationResponses = { 200: { /** * ID of the integration */ id: string; /** * Name of the integration, usually the connected account or workspace */ name: string; /** * URL of the connected account's icon */ icon: string | null; /** * Domain of the connected account, such as github.com/example-org */ domainName: string | null; /** * Type of the connected account, such as Organization or User */ accountType: string | null; /** * Permission scopes granted to the integration */ scopes: Array | null; /** * Whether the installation lacks permissions the latest version of the integration needs. Null for providers without a permissions model */ outOfDate: boolean | null; /** * Features the installation can't support because of missing permissions. Null for providers without a permissions model */ missingFeatures: Array<{ /** * Key of the missing feature */ key: string; /** * Description of the missing feature */ description: string; }> | null; /** * Status of the integration */ status: 'active' | 'disabled' | 'pending_deletion' | 'deletion_in_progress'; /** * Integration provider details */ provider: { /** * Key of the integration provider, such as github */ key: string; /** * Slug of the integration provider, same as key */ slug: string; /** * Display name of the integration provider */ name: string; /** * Whether the integration can be installed from Sentry */ canAdd: boolean; /** * Whether the integration must be uninstalled from the provider instead of in Sentry */ canDisable: boolean; /** * Features the integration provider supports, such as issue-basic or commits */ features: Array; /** * Extra provider details shown during setup, such as alerts and configuration instructions */ aspects: { /** * Alerts shown during setup */ alerts?: Array<{ /** * Style of the alert, such as warning */ type: string; /** * Icon shown with the alert, such as icon-warning-sm */ icon: string; /** * Text of the alert, in Markdown */ text: string; }>; /** * Configuration step after install */ configure_integration?: { /** * Title of the configuration step */ title: string; }; /** * Whether the integration is enabled without an install flow */ directEnable?: boolean; /** * Dialog shown before the integration is disabled */ disable_dialog?: { /** * Label of the dialog's confirm button */ actionText: string; /** * Text of the dialog */ body: string; }; /** * Where to install the integration when it's installed outside Sentry */ externalInstall?: { /** * URL to install the integration from, such as a marketplace */ url: string; /** * Label of the install button */ buttonText: string; /** * Notice shown before the user leaves Sentry */ noticeText: string; }; /** * Dialog shown before the integration is removed */ removal_dialog?: { /** * Label of the dialog's confirm button */ actionText: string; /** * Text of the dialog */ body: string; }; }; }; /** * Organization-level configuration fields of the integration */ configOrganization: unknown; /** * Configuration values the organization set for the integration */ configData: unknown; /** * ID of the connected account in the provider */ externalId: string; /** * ID of the organization the integration is installed in */ organizationId: number; /** * Status of the integration in this organization */ organizationIntegrationStatus: 'active' | 'disabled' | 'pending_deletion' | 'deletion_in_progress'; /** * When the integration's grace period ends (ISO 8601). Null when there's no grace period */ gracePeriodEnd: string | null; }; }; export type GetOrganizationIntegrationResponse = GetOrganizationIntegrationResponses[keyof GetOrganizationIntegrationResponses]; export type ValidateOrganizationIntegrationChannelData = { body?: never; path: { /** * The ID or slug of the organization the resource belongs to. */ organization_id_or_slug: string; /** * The ID of the integration installed on the organization. */ integration_id: string; }; query: { channel: string; }; url: '/organizations/{organization_id_or_slug}/integrations/{integration_id}/channel-validate/'; }; export type ValidateOrganizationIntegrationChannelErrors = { /** * Bad Request */ 400: unknown; /** * Forbidden */ 403: unknown; /** * Not Found */ 404: unknown; }; export type ValidateOrganizationIntegrationChannelResponses = { 200: { /** * Why the channel couldn't be validated, such as an unsupported provider */ detail?: string; /** * Whether the channel exists in the integration's workspace */ valid: boolean; }; }; export type ValidateOrganizationIntegrationChannelResponse = ValidateOrganizationIntegrationChannelResponses[keyof ValidateOrganizationIntegrationChannelResponses]; export type ListOrganizationIntegrationChannelsData = { body?: never; path: { /** * The ID or slug of the organization the resource belongs to. */ organization_id_or_slug: string; /** * The ID of the integration installed on the organization. */ integration_id: string; }; query?: never; url: '/organizations/{organization_id_or_slug}/integrations/{integration_id}/channels/'; }; export type ListOrganizationIntegrationChannelsErrors = { /** * Bad Request */ 400: unknown; /** * Forbidden */ 403: unknown; /** * Not Found */ 404: unknown; }; export type ListOrganizationIntegrationChannelsResponses = { 200: { /** * Why the channels couldn't be listed, such as an unsupported provider */ warning?: string; /** * Channels of the integration's workspace */ results: Array<{ /** * ID of the channel in the provider */ id: string; /** * Name of the channel */ name: string; /** * Name to show for the channel, such as #general */ display: string; /** * Type of the channel in the provider, such as public, private or text */ type: string; }>; }; }; export type ListOrganizationIntegrationChannelsResponse = ListOrganizationIntegrationChannelsResponses[keyof ListOrganizationIntegrationChannelsResponses]; export type ListOrganizationIntegrationRepositoriesData = { body?: never; path: { /** * The ID or slug of the organization the resource belongs to. */ organization_id_or_slug: string; /** * The ID of the integration installed on the organization. */ integration_id: string; }; query?: { /** * Repository name to search for. */ search?: string; /** * Only return repositories that are not already installed in Sentry. */ installableOnly?: boolean; /** * Only search repositories accessible to the integration installation. */ accessibleOnly?: boolean; }; url: '/organizations/{organization_id_or_slug}/integrations/{integration_id}/repos/'; }; export type ListOrganizationIntegrationRepositoriesErrors = { /** * Bad Request */ 400: unknown; /** * Forbidden */ 403: unknown; /** * Not Found */ 404: unknown; }; export type ListOrganizationIntegrationRepositoriesResponses = { 200: { /** * Repositories the integration can access */ repos: Array<{ /** * Name of the repository */ name: string; /** * Identifier of the repository in the provider, such as owner/name */ identifier: string; /** * Whether the repository is already added to Sentry */ isInstalled: boolean; /** * Default branch of the repository */ defaultBranch: string | null; /** * ID of the repository in the provider */ externalId: string; /** * URL of the repository */ url: string | null; }>; /** * Whether the provider supports searching repositories with the search query parameter */ searchable?: boolean; }; }; export type ListOrganizationIntegrationRepositoriesResponse = ListOrganizationIntegrationRepositoriesResponses[keyof ListOrganizationIntegrationRepositoriesResponses]; export type DeleteOrganizationIssuesData = { body?: never; path: { /** * The ID or slug of the organization the resource belongs to. */ organization_id_or_slug: string; }; query?: { /** * The name of environments to filter by. */ environment?: Array; /** * The IDs or slugs of projects to filter by. Project slugs are unique within each organization. Omit this parameter to include all accessible projects. `-1` is also accepted to include all accessible projects. * For example, the following are valid parameters: * - `/?project=1234&project=56789` * - `/?project=android&project=javascript-react` * - `/?project=-1` * */ project?: Array; /** * The list of issue IDs to be removed. If not provided, it will attempt to remove the first 1000 issues. */ id?: Array; /** * The period of time for the query, will override the start & end parameters, a number followed by one of: * - `d` for days * - `h` for hours * - `m` for minutes * - `s` for seconds * - `w` for weeks * * For example, `24h`, to mean query data starting from 24 hours ago to now. */ statsPeriod?: string; /** * The start of the period of time for the query, expected in ISO-8601 format. For example, `2001-12-14T12:34:56.7890`. */ start?: string; /** * The end of the period of time for the query, expected in ISO-8601 format. For example, `2001-12-14T12:34:56.7890`. */ end?: string; /** * An optional search query for filtering issues. A default query will apply if no query is set. For all results use this parameter with an empty string. */ query?: string; /** * The sort order of the view. Options include 'Last Seen' (`date`), 'First Seen' (`new`), 'Trends' (`trends`), 'Events' (`freq`), 'Users' (`user`), 'Date Added' (`inbox`), and 'Recommended' (`recommended`). */ sort?: 'date' | 'freq' | 'inbox' | 'new' | 'recommended' | 'trends' | 'user'; }; url: '/organizations/{organization_id_or_slug}/issues/'; }; export type DeleteOrganizationIssuesErrors = { /** * Bad Request */ 400: unknown; /** * Unauthorized */ 401: unknown; /** * Forbidden */ 403: unknown; /** * Not Found */ 404: unknown; }; export type DeleteOrganizationIssuesResponses = { /** * No Content */ 204: void; }; export type DeleteOrganizationIssuesResponse = DeleteOrganizationIssuesResponses[keyof DeleteOrganizationIssuesResponses]; export type ListOrganizationIssuesData = { body?: never; path: { /** * The ID or slug of the organization the resource belongs to. */ organization_id_or_slug: string; }; query?: { /** * The name of environments to filter by. */ environment?: Array; /** * The IDs or slugs of projects to filter by. Project slugs are unique within each organization. Omit this parameter to include all accessible projects. `-1` is also accepted to include all accessible projects. * For example, the following are valid parameters: * - `/?project=1234&project=56789` * - `/?project=android&project=javascript-react` * - `/?project=-1` * */ project?: Array; /** * The period of time for the query, will override the start & end parameters, a number followed by one of: * - `d` for days * - `h` for hours * - `m` for minutes * - `s` for seconds * - `w` for weeks * * For example, `24h`, to mean query data starting from 24 hours ago to now. */ statsPeriod?: string; /** * How long ago the query period starts, in the same format as `statsPeriod`. Must be sent with `statsPeriodEnd`, and is ignored when `statsPeriod` is sent. */ statsPeriodStart?: string; /** * How long ago the query period ends, in the same format as `statsPeriod`. Must be sent with `statsPeriodStart`, and is ignored when `statsPeriod` is sent. */ statsPeriodEnd?: string; /** * The start of the period of time for the query, expected in ISO-8601 format. For example, `2001-12-14T12:34:56.7890`. */ start?: string; /** * The end of the period of time for the query, expected in ISO-8601 format. For example, `2001-12-14T12:34:56.7890`. */ end?: string; /** * The timeline on which stats for the groups should be presented. */ groupStatsPeriod?: '' | '14d' | '24h' | 'auto'; /** * If this is set to `1` then the query will be parsed for issue short IDs. These may ignore other filters (e.g. projects), which is why it is an opt-in. */ shortIdLookup?: '0' | '1'; /** * An optional search query for filtering issues. A default query will apply if no query is set. For all results use this parameter with an empty string. */ query?: string; /** * The sort order of the view. Options include 'Last Seen' (`date`), 'First Seen' (`new`), 'Trends' (`trends`), 'Events' (`freq`), 'Users' (`user`), 'Date Added' (`inbox`), and 'Recommended' (`recommended`). */ sort?: 'date' | 'freq' | 'inbox' | 'new' | 'recommended' | 'trends' | 'user'; /** * The maximum number of issues to return. The maximum is 100. */ limit?: number; /** * Additional data to include in the response. */ expand?: Array<'inbox' | 'integrationIssues' | 'latestEventHasAttachments' | 'owners' | 'sentryAppIssues' | 'sessions'>; /** * Fields to remove from the response to improve query performance. */ collapse?: Array<'base' | 'filtered' | 'lifetime' | 'stats' | 'unhandled'>; /** * A pointer to the last object fetched and its sort order; used to retrieve the next or previous results. */ cursor?: string; }; url: '/organizations/{organization_id_or_slug}/issues/'; }; export type ListOrganizationIssuesErrors = { /** * Bad Request */ 400: unknown; /** * Unauthorized */ 401: unknown; /** * Forbidden */ 403: unknown; /** * Not Found */ 404: unknown; }; export type ListOrganizationIssuesResponses = { 200: Array<{ /** * ID of the issue */ id: string; /** * ID used in the issue's public share URL. Null when the issue isn't shared */ shareId?: string | null; /** * Short ID of the issue, such as PROJECT-1A */ shortId?: string | null; /** * Title of the issue */ title?: string; /** * Function or module where the issue occurs */ culprit?: string | null; /** * URL of the issue in Sentry */ permalink?: string; /** * Logger of the issue's events */ logger?: string | null; /** * Severity level of the issue */ level?: 'sample' | 'debug' | 'info' | 'warning' | 'error' | 'fatal' | 'unknown'; /** * Issue status */ status?: 'resolved' | 'ignored' | 'pending_deletion' | 'pending_merge' | 'reprocessing' | 'unresolved'; /** * Details of the issue's status, such as when an ignore expires or which release resolves it */ statusDetails?: { /** * Number of additional events after which the issue stops being ignored */ ignoreCount?: number | null; /** * When the issue stops being ignored (ISO 8601) */ ignoreUntil?: string | null; /** * Number of additional affected users after which the issue stops being ignored */ ignoreUserCount?: number | null; /** * Time window in minutes for ignoreUserCount */ ignoreUserWindow?: number | null; /** * Time window in minutes for ignoreCount */ ignoreWindow?: number | null; /** * User who ignored or resolved the issue */ actor?: { /** * SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access */ identities?: Array<{ /** * SSO identity ID */ id: string; /** * User's identifier at the auth provider */ name: string; /** * Organization the auth provider belongs to */ organization: { /** * Organization slug */ slug: string; /** * Organization name */ name: string; }; /** * Auth provider of the identity */ provider: { /** * Auth provider key, such as google or saml2 */ id: string; /** * Display name of the auth provider */ name: string; }; /** * When the identity was last verified by signing in through the auth provider */ dateVerified: string; /** * When the identity was last synced from the auth provider */ dateSynced: string; }>; /** * User avatar */ avatar?: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Two-factor authenticators of the user, without backup methods such as recovery codes */ authenticators?: Array<{ /** * Authenticator ID */ id: string; /** * Authenticator type, such as totp, sms, u2f or recovery */ type: string; /** * Display name of the authenticator type */ name: string; /** * When the authenticator was added */ dateCreated: string; /** * When the authenticator was last used, or null */ dateUsed: string | null; }>; /** * Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization */ canReset2fa?: boolean; /** * User ID */ id: string; /** * Display name: the user's name, or their email or username if no name is set */ name: string; /** * Username */ username: string; /** * Primary email address */ email: string; /** * Gravatar URL for the primary email address */ avatarUrl: string; /** * Whether the account is active */ isActive: boolean; /** * Whether the account is suspended. Suspended users can't sign in */ isSuspended: boolean; /** * Whether the user has a password set */ hasPasswordAuth: boolean; /** * Whether the account is managed, which stops the user from changing their username, password and similar details */ isManaged: boolean; /** * When the account was created */ dateJoined: string; /** * When the user last signed in, or null */ lastLogin: string | null; /** * Whether the user has two-factor authentication enabled */ has2fa: boolean; /** * When the user was last active, or null */ lastActive: string | null; /** * Whether the user is a superuser */ isSuperuser: boolean; /** * Whether the user has staff status */ isStaff: boolean; /** * Deprecated. Always an empty object */ experiments: { [key: string]: string; }; /** * Email addresses of the user. Only included for the requesting user or superusers; empty otherwise */ emails: Array<{ /** * Email ID */ id: string; /** * Email address */ email: string; /** * Whether the email address is verified */ is_verified: boolean; }>; } | null; /** * Whether the issue is resolved in the next release */ inNextRelease?: boolean; /** * Version of the release the issue is resolved in */ inRelease?: string; /** * Commit the issue is resolved in */ inCommit?: string; /** * Number of events still waiting to be reprocessed */ pendingEvents?: number; /** * Reprocessing progress details */ info?: { /** * When reprocessing started (ISO 8601) */ dateCreated: string; /** * Number of events in the issue when reprocessing started */ syncCount: number; /** * Number of events to reprocess, at most the requested maximum */ totalEvents: number; } | null; }; /** * Substatus of the issue, such as ongoing, regressed or escalating */ substatus?: 'archived_until_escalating' | 'archived_until_condition_met' | 'archived_forever' | 'escalating' | 'ongoing' | 'regressed' | 'new' | null; /** * Whether the issue is shared publicly */ isPublic?: boolean; /** * Platform of the issue's events */ platform?: string | null; /** * Priority of the issue: high, medium or low */ priority?: 'low' | 'medium' | 'high' | null; /** * When the priority was last set manually, which stops automatic priority updates (ISO 8601) */ priorityLockedAt?: string | null; /** * Seer's score for how likely the issue is to be fixable */ seerFixabilityScore?: number | null; /** * When Seer Autofix was last triggered for the issue (ISO 8601) */ seerAutofixLastTriggered?: string | null; /** * When the Seer explorer agent last completed an Autofix step for the issue (ISO 8601) */ seerExplorerAutofixLastTriggered?: string | null; /** * Project the issue belongs to */ project?: { /** * ID of the project */ id: string; /** * Name of the project */ name: string; /** * Slug of the project */ slug: string; /** * Platform of the project */ platform: string | null; }; /** * Event type of the issue, such as error or default */ type?: 'default' | 'error' | 'csp' | 'nel' | 'hpkp' | 'expectct' | 'expectstaple' | 'transaction' | 'generic' | 'feedback'; /** * Issue type, such as error or performance_n_plus_one_db_queries */ issueType?: string; /** * Issue category, such as error or performance */ issueCategory?: string; /** * Issue metadata */ metadata?: { /** * Title of default and issue platform events */ title?: string; /** * Exception value, or the subtitle of an issue */ value?: string; /** * Exception type of error events */ type?: string; /** * Whether the SDK fabricated the exception to carry a stacktrace, so its type is a platform label rather than what went wrong */ synthetic?: boolean; /** * File of the frame where the error happened */ filename?: string; /** * Function of the frame where the error happened */ function?: string; /** * Message of default, security and feedback events */ message?: string; /** * URI that a CSP report blocked */ uri?: string; /** * CSP directive that was violated */ directive?: string; /** * Host name of HPKP, Expect-CT and Expect-Staple reports */ origin?: string; /** * Name of the person who sent user feedback */ name?: string; /** * Email of the person who sent user feedback */ contact_email?: string; /** * Where user feedback came from, such as a widget */ source?: string; /** * Whether the stacktrace has in-app frames, system frames or both */ in_app_frame_mix?: string; /** * Whether a crash report was dropped because the issue already stores the most allowed */ stripped_crash?: boolean; /** * SDK of the issue's first event */ sdk?: { /** * Name of the SDK, or unknown */ name: string; /** * Name of the SDK, normalized for grouping */ name_normalized: string; }; /** * Severity score of the issue's first event */ severity?: number; /** * Why the severity score is what it is */ severity_reason?: string; /** * Priority the issue was created with */ initial_priority?: number; }; /** * Number of comments on the issue */ numComments?: number; /** * User or team the issue is assigned to */ assignedTo?: { /** * Whether the actor is a user or a team */ type: 'user' | 'team'; /** * ID of the user or team */ id: string; /** * Display name of the user, or slug of the team */ name: string; /** * Email address of the user. Only set for users */ email?: string; } | null; /** * Whether the requesting user bookmarked the issue */ isBookmarked?: boolean; /** * Whether the requesting user is subscribed to the issue */ isSubscribed?: boolean; /** * Why the requesting user is subscribed to the issue */ subscriptionDetails?: { /** * Whether the requesting user turned off notifications for the issue */ disabled?: boolean; /** * Why the requesting user is subscribed: commented, assigned, bookmarked, changed_status, mentioned or unknown */ reason?: string; } | null; /** * Whether the requesting user has seen the issue since it last occurred */ hasSeen?: boolean; /** * External issues linked to the issue */ annotations?: Array<{ /** * Display name of the linked external issue */ displayName: string; /** * URL of the linked external issue */ url: string; }>; /** * Whether the issue includes unhandled events */ isUnhandled?: boolean; /** * Total number of events in the issue */ count?: string; /** * Number of users affected by the issue */ userCount?: number; /** * When the issue was first seen (ISO 8601) */ firstSeen?: string | null; /** * When the issue was last seen (ISO 8601) */ lastSeen?: string | null; /** * Additional data derived for the issue. Only included when requested with expand */ derivedData?: { /** * Action that blocks progress on the issue: none, approve_root_cause, approve_plan, approve_code_changes or merge_pr */ blocker: string; /** * How far the issue is toward resolution: identified, assigned, diagnosed, fix_proposed or fix_applied */ progress: string; /** * Status of the issue from its action log: open or closed */ status: string; /** * Number of times the issue was viewed */ viewCount: number; /** * Whether an open pull request is linked to the issue */ hasOpenFixPr: boolean; /** * Whether the issue has an assignee */ isAssigned: boolean; /** * Whether a root cause was found for the issue */ hasRootCause: boolean; /** * Furthest Autofix step completed: none, root_cause, solution, code_changes, pr_created or pr_iteration */ lastCompletedAutofixStep: string; /** * When the issue's progress last advanced (ISO 8601) */ lastProgressedAt: string | null; /** * The issue's impact assessment, or null when no assessment is available */ impact?: { /** * Estimated per-occurrence impact on the end user's capability from 0 to 100 */ score: number | null; /** * Impact level derived from the assessment score */ level: 'super_low' | 'low' | 'moderate' | 'high' | 'super_high' | null; /** * Human-readable description of the capability affected by the issue */ description: string; /** * Evidence-backed claims supporting the impact assessment */ citations: Array<{ /** * Stable identifier for the evidence supporting this claim */ reference: string; /** * Concise explanation of what the cited evidence establishes */ claim: string; /** * The category of evidence cited, such as an event, trace, replay, or log */ source: string; }>; /** * ID of the issue event used to generate the impact assessment */ sourceEventId: string; } | null; }; /** * Event counts over the requested stats period, keyed by the period, as [timestamp, count] pairs. Omitted when stats is collapsed */ stats?: { [key: string]: Array>; }; /** * Event count, user count, and first and last seen times over the issue's lifetime. Omitted when stats or lifetime is collapsed */ lifetime?: { /** * Number of events in the issue */ count: string; /** * Number of users affected by the issue */ userCount: number; /** * When the issue was first seen (ISO 8601) */ firstSeen: string | null; /** * When the issue was last seen (ISO 8601) */ lastSeen: string | null; /** * Always null. Only included when a stats period is requested */ stats?: null; }; /** * Event count, user count, and first and last seen times for events that match the search query. Null when there's no query; omitted when stats or filtered is collapsed */ filtered?: { /** * Number of the issue's events that match the search query */ count: string; /** * Number of users affected by the issue's events that match the search query */ userCount: number; /** * When an event matching the search query was first seen (ISO 8601) */ firstSeen: string | null; /** * When an event matching the search query was last seen (ISO 8601) */ lastSeen: string | null; /** * Counts of matching events over the requested stats period, keyed by the period, as [timestamp, count] pairs */ stats?: { [key: string]: Array>; }; } | null; /** * Number of sessions in the issue's project over the query time range. Null when session data is unavailable. Only included with expand=sessions when a stats period is enabled and stats is not collapsed */ sessionCount?: number | null; /** * Why the issue is in the inbox. Only included when requested with expand */ inbox?: { /** * Why the issue is in the inbox: 0 new, 1 unignored, 2 regression, 3 manual, 4 reprocessed, 5 escalating or 6 ongoing */ reason: number; /** * Details of the ignore that ended when the issue came back to the inbox. Null otherwise */ reason_details: { /** * When the ignore that ended was set to expire (ISO 8601) */ until: string | null; /** * Number of occurrences the ignore that ended was set to wait for */ count: number | null; /** * Window in minutes for count */ window: number | null; /** * Number of affected users the ignore that ended was set to wait for */ user_count: number | null; /** * Window in minutes for user_count */ user_window: number | null; } | null; /** * When the issue was added to the inbox (ISO 8601) */ date_added: string; }; /** * Suggested owners of the issue. Only included when requested with expand */ owners?: Array<{ /** * How the owner was found: suspectCommit, ownershipRule, codeowners or seerSuggested */ type: string; /** * Owner as an actor identifier, such as user:1 or team:1 */ owner: string; /** * When the owner was suggested (ISO 8601) */ date_added: string; }> | null; /** * External issues linked through integrations. Only included when requested with expand */ integrationIssues?: Array<{ /** * ID of the external issue link in Sentry */ id?: string; /** * Key of the issue in the integration, such as APP-123 */ key?: string; /** * Title of the issue in the integration */ title?: string | null; /** * Description of the issue in the integration */ description?: string | null; /** * Name of the issue to display */ displayName?: string; /** * Provider of the integration, such as jira */ integrationKey?: string; /** * Name of the integration */ integrationName?: string; }>; /** * External issues linked through Sentry apps. Only included when requested with expand */ sentryAppIssues?: Array<{ /** * ID of the external issue link */ id: string; /** * ID of the Sentry issue */ issueId: string; /** * Slug of the custom integration that created the external issue */ serviceType: string; /** * Display name of the external issue, such as ABC-123 */ displayName: string; /** * URL of the external issue */ webUrl: string; }>; /** * Whether the issue's latest event has attachments. Only included when requested with expand */ latestEventHasAttachments?: boolean; /** * ID of the event the search query matched. Only included when the query matches an event ID */ matchingEventId?: string | null; /** * Environment of the event the search query matched. Only included when the query matches an event ID */ matchingEventEnvironment?: string | null; }>; }; export type ListOrganizationIssuesResponse = ListOrganizationIssuesResponses[keyof ListOrganizationIssuesResponses]; export type UpdateOrganizationIssuesData = { body?: { /** * If true, marks the issue as reviewed by the requestor. */ inbox?: boolean; /** * The new status for the issues. * * * `resolved` * * `unresolved` * * `ignored` * * `resolvedInNextRelease` * * `muted` */ status?: 'resolved' | 'unresolved' | 'ignored' | 'resolvedInNextRelease' | 'muted'; /** * Additional details about the resolution. Status detail updates that include release data are only allowed for issues within a single project. */ statusDetails?: { /** * If true, marks the issue as resolved in the next release. */ inNextRelease?: boolean; /** * The version of the release that the issue should be resolved in.If set to `latest`, the latest release will be used. */ inRelease?: string; /** * The commit data that the issue should use for resolution. */ inCommit?: { /** * The SHA of the resolving commit. */ commit: string; /** * The name of the repository (as it appears in Sentry). */ repository: string; }; /** * Ignore the issue until for this many minutes. */ ignoreDuration?: number; /** * Ignore the issue until it has occurred this many times in `ignoreWindow` minutes. */ ignoreCount?: number; /** * Ignore the issue until it has occurred `ignoreCount` times in this many minutes. (Max: 1 week) */ ignoreWindow?: number; /** * Ignore the issue until it has affected this many users in `ignoreUserWindow` minutes. */ ignoreUserCount?: number; /** * Ignore the issue until it has affected `ignoreUserCount` users in this many minutes. (Max: 1 week) */ ignoreUserWindow?: number; }; /** * The new substatus of the issue. * * * `archived_until_escalating` * * `archived_until_condition_met` * * `archived_forever` * * `escalating` * * `ongoing` * * `regressed` * * `new` */ substatus?: 'archived_until_escalating' | 'archived_until_condition_met' | 'archived_forever' | 'escalating' | 'ongoing' | 'regressed' | 'new' | null; /** * If true, marks the issue as seen by the requestor. */ hasSeen?: boolean; /** * If true, bookmarks the issue for the requestor. */ isBookmarked?: boolean; /** * If true, publishes the issue. */ isPublic?: boolean; /** * If true, subscribes the requestor to the issue. */ isSubscribed?: boolean; /** * If true, merges the issues together. */ merge?: boolean; /** * If true, discards the issues instead of updating them. */ discard?: boolean; /** * The user or team that should be assigned to the issues. Values take the form of ``, `user:`, ``, ``, or `team:`. */ assignedTo?: string; /** * The priority that should be set for the issues * * * `low` * * `medium` * * `high` */ priority?: 'low' | 'medium' | 'high'; /** * Ignore the issue for this many minutes. */ ignoreDuration?: number; /** * Ignore the issue until it is seen this many more times. */ ignoreCount?: number; /** * Window in minutes over which `ignoreCount` is measured. Maximum is 7 days. */ ignoreWindow?: number; /** * Ignore the issue until it affects this many more users. */ ignoreUserCount?: number; /** * Window in minutes over which `ignoreUserCount` is measured. Maximum is 7 days. */ ignoreUserWindow?: number; /** * Snooze the issue for this many minutes. */ snoozeDuration?: number | null; }; path: { /** * The ID or slug of the organization the resource belongs to. */ organization_id_or_slug: string; }; query?: { /** * The name of environments to filter by. */ environment?: Array; /** * The IDs or slugs of projects to filter by. Project slugs are unique within each organization. Omit this parameter to include all accessible projects. `-1` is also accepted to include all accessible projects. * For example, the following are valid parameters: * - `/?project=1234&project=56789` * - `/?project=android&project=javascript-react` * - `/?project=-1` * */ project?: Array; /** * The list of issue IDs to mutate. It is optional for status updates, in which an implicit `update all` is assumed. */ id?: Array; /** * The period of time for the query, will override the start & end parameters, a number followed by one of: * - `d` for days * - `h` for hours * - `m` for minutes * - `s` for seconds * - `w` for weeks * * For example, `24h`, to mean query data starting from 24 hours ago to now. */ statsPeriod?: string; /** * The start of the period of time for the query, expected in ISO-8601 format. For example, `2001-12-14T12:34:56.7890`. */ start?: string; /** * The end of the period of time for the query, expected in ISO-8601 format. For example, `2001-12-14T12:34:56.7890`. */ end?: string; /** * An optional search query for filtering issues. A default query will apply if no query is set. For all results use this parameter with an empty string. */ query?: string; /** * The sort order of the view. Options include 'Last Seen' (`date`), 'First Seen' (`new`), 'Trends' (`trends`), 'Events' (`freq`), 'Users' (`user`), 'Date Added' (`inbox`), and 'Recommended' (`recommended`). */ sort?: 'date' | 'freq' | 'inbox' | 'new' | 'recommended' | 'trends' | 'user'; }; url: '/organizations/{organization_id_or_slug}/issues/'; }; export type UpdateOrganizationIssuesErrors = { /** * Bad Request */ 400: unknown; /** * Unauthorized */ 401: unknown; /** * Forbidden */ 403: unknown; /** * Not Found */ 404: unknown; }; export type UpdateOrganizationIssuesResponses = { 200: { /** * User or team the issues are now assigned to */ assignedTo?: { /** * Whether the actor is a user or a team */ type: 'user' | 'team'; /** * ID of the user or team */ id: string; /** * Display name of the user, or slug of the team */ name: string; /** * Email address of the user. Only set for users */ email?: string; }; /** * Whether the issues were discarded */ discard?: boolean; /** * Whether the requesting user has now seen the issues */ hasSeen?: boolean; /** * Whether the issues are now in the inbox */ inbox?: boolean; /** * Whether the requesting user has now bookmarked the issues */ isBookmarked?: boolean; /** * Whether the issues are now shared publicly */ isPublic?: boolean; /** * Whether the requesting user is now subscribed to the issues */ isSubscribed?: boolean; /** * Result of merging the issues: the issue they were merged into and the merged issues */ merge?: { /** * ID of the issue the other issues were merged into */ parent: string; /** * IDs of the issues that were merged into the parent issue */ children: Array; }; /** * New priority of the issues: high, medium or low */ priority?: string; /** * ID used in the public share URL. Set when the issue is now shared */ shareId?: string; /** * New status of the issues */ status?: string; /** * Details of the new status, such as the release that resolves the issues or when an ignore expires */ statusDetails?: { /** * Whether the issues are resolved in the next release */ inNextRelease?: boolean; /** * Version of the release the issues are resolved in */ inRelease?: string; /** * Commit that resolves the issues */ inCommit?: { /** * SHA of the resolving commit */ commit: string; /** * Name of the repository the commit belongs to, as it appears in Sentry */ repository: string; }; /** * Minutes the issues are ignored for */ ignoreDuration?: number; /** * Number of occurrences, within ignoreWindow minutes, after which the issues stop being ignored */ ignoreCount?: number; /** * Window in minutes for ignoreCount */ ignoreWindow?: number; /** * Number of affected users, within ignoreUserWindow minutes, after which the issues stop being ignored */ ignoreUserCount?: number; /** * Window in minutes for ignoreUserCount */ ignoreUserWindow?: number; }; /** * Why the requesting user is now subscribed to the issues */ subscriptionDetails?: { /** * Whether the requesting user turned off notifications for the issue */ disabled?: boolean; /** * Why the requesting user is subscribed: commented, assigned, bookmarked, changed_status, mentioned or unknown */ reason?: string; }; /** * New substatus of the issues, such as ongoing or archived_until_escalating */ substatus?: string; }; /** * No Content */ 204: void; }; export type UpdateOrganizationIssuesResponse = UpdateOrganizationIssuesResponses[keyof UpdateOrganizationIssuesResponses]; export type ListOrganizationIssueStatsData = { body?: never; path: { /** * The ID or slug of the organization the resource belongs to. */ organization_id_or_slug: string; }; query: { /** * The IDs of the issues to return stats for, up to 100. */ groups: Array; /** * The name of environments to filter by. */ environment?: Array; /** * The IDs or slugs of projects to filter by. Project slugs are unique within each organization. Omit this parameter to include all accessible projects. `-1` is also accepted to include all accessible projects. * For example, the following are valid parameters: * - `/?project=1234&project=56789` * - `/?project=android&project=javascript-react` * - `/?project=-1` * */ project?: Array; /** * The period of time for the query, will override the start & end parameters, a number followed by one of: * - `d` for days * - `h` for hours * - `m` for minutes * - `s` for seconds * - `w` for weeks * * For example, `24h`, to mean query data starting from 24 hours ago to now. */ statsPeriod?: string; /** * How long ago the query period starts, in the same format as `statsPeriod`. Must be sent with `statsPeriodEnd`, and is ignored when `statsPeriod` is sent. */ statsPeriodStart?: string; /** * How long ago the query period ends, in the same format as `statsPeriod`. Must be sent with `statsPeriodStart`, and is ignored when `statsPeriod` is sent. */ statsPeriodEnd?: string; /** * The start of the period of time for the query, expected in ISO-8601 format. For example, `2001-12-14T12:34:56.7890`. */ start?: string; /** * The end of the period of time for the query, expected in ISO-8601 format. For example, `2001-12-14T12:34:56.7890`. */ end?: string; /** * The timeline on which stats for the groups should be presented. */ groupStatsPeriod?: '' | '14d' | '24h' | 'auto'; /** * An optional search query for filtering issues. A default query will apply if no query is set. For all results use this parameter with an empty string. */ query?: string; /** * Additional data to include in the response. */ expand?: Array<'inbox' | 'integrationIssues' | 'latestEventHasAttachments' | 'owners' | 'sentryAppIssues' | 'sessions'>; /** * Fields to remove from the response. Defaults to `base`, which leaves the ID, counts, first and last seen, the unhandled flag and stats. Passing any value replaces the default. */ collapse?: Array<'base' | 'filtered' | 'lifetime' | 'stats' | 'unhandled'>; }; url: '/organizations/{organization_id_or_slug}/issues-stats/'; }; export type ListOrganizationIssueStatsErrors = { /** * Bad Request */ 400: unknown; /** * Unauthorized */ 401: unknown; /** * Forbidden */ 403: unknown; /** * Not Found */ 404: unknown; }; export type ListOrganizationIssueStatsResponses = { 200: Array<{ /** * ID of the issue */ id: string; /** * ID used in the issue's public share URL. Null when the issue isn't shared */ shareId?: string | null; /** * Short ID of the issue, such as PROJECT-1A */ shortId?: string | null; /** * Title of the issue */ title?: string; /** * Function or module where the issue occurs */ culprit?: string | null; /** * URL of the issue in Sentry */ permalink?: string; /** * Logger of the issue's events */ logger?: string | null; /** * Severity level of the issue */ level?: 'sample' | 'debug' | 'info' | 'warning' | 'error' | 'fatal' | 'unknown'; /** * Issue status */ status?: 'resolved' | 'ignored' | 'pending_deletion' | 'pending_merge' | 'reprocessing' | 'unresolved'; /** * Details of the issue's status, such as when an ignore expires or which release resolves it */ statusDetails?: { /** * Number of additional events after which the issue stops being ignored */ ignoreCount?: number | null; /** * When the issue stops being ignored (ISO 8601) */ ignoreUntil?: string | null; /** * Number of additional affected users after which the issue stops being ignored */ ignoreUserCount?: number | null; /** * Time window in minutes for ignoreUserCount */ ignoreUserWindow?: number | null; /** * Time window in minutes for ignoreCount */ ignoreWindow?: number | null; /** * User who ignored or resolved the issue */ actor?: { /** * SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access */ identities?: Array<{ /** * SSO identity ID */ id: string; /** * User's identifier at the auth provider */ name: string; /** * Organization the auth provider belongs to */ organization: { /** * Organization slug */ slug: string; /** * Organization name */ name: string; }; /** * Auth provider of the identity */ provider: { /** * Auth provider key, such as google or saml2 */ id: string; /** * Display name of the auth provider */ name: string; }; /** * When the identity was last verified by signing in through the auth provider */ dateVerified: string; /** * When the identity was last synced from the auth provider */ dateSynced: string; }>; /** * User avatar */ avatar?: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Two-factor authenticators of the user, without backup methods such as recovery codes */ authenticators?: Array<{ /** * Authenticator ID */ id: string; /** * Authenticator type, such as totp, sms, u2f or recovery */ type: string; /** * Display name of the authenticator type */ name: string; /** * When the authenticator was added */ dateCreated: string; /** * When the authenticator was last used, or null */ dateUsed: string | null; }>; /** * Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization */ canReset2fa?: boolean; /** * User ID */ id: string; /** * Display name: the user's name, or their email or username if no name is set */ name: string; /** * Username */ username: string; /** * Primary email address */ email: string; /** * Gravatar URL for the primary email address */ avatarUrl: string; /** * Whether the account is active */ isActive: boolean; /** * Whether the account is suspended. Suspended users can't sign in */ isSuspended: boolean; /** * Whether the user has a password set */ hasPasswordAuth: boolean; /** * Whether the account is managed, which stops the user from changing their username, password and similar details */ isManaged: boolean; /** * When the account was created */ dateJoined: string; /** * When the user last signed in, or null */ lastLogin: string | null; /** * Whether the user has two-factor authentication enabled */ has2fa: boolean; /** * When the user was last active, or null */ lastActive: string | null; /** * Whether the user is a superuser */ isSuperuser: boolean; /** * Whether the user has staff status */ isStaff: boolean; /** * Deprecated. Always an empty object */ experiments: { [key: string]: string; }; /** * Email addresses of the user. Only included for the requesting user or superusers; empty otherwise */ emails: Array<{ /** * Email ID */ id: string; /** * Email address */ email: string; /** * Whether the email address is verified */ is_verified: boolean; }>; } | null; /** * Whether the issue is resolved in the next release */ inNextRelease?: boolean; /** * Version of the release the issue is resolved in */ inRelease?: string; /** * Commit the issue is resolved in */ inCommit?: string; /** * Number of events still waiting to be reprocessed */ pendingEvents?: number; /** * Reprocessing progress details */ info?: { /** * When reprocessing started (ISO 8601) */ dateCreated: string; /** * Number of events in the issue when reprocessing started */ syncCount: number; /** * Number of events to reprocess, at most the requested maximum */ totalEvents: number; } | null; }; /** * Substatus of the issue, such as ongoing, regressed or escalating */ substatus?: 'archived_until_escalating' | 'archived_until_condition_met' | 'archived_forever' | 'escalating' | 'ongoing' | 'regressed' | 'new' | null; /** * Whether the issue is shared publicly */ isPublic?: boolean; /** * Platform of the issue's events */ platform?: string | null; /** * Priority of the issue: high, medium or low */ priority?: 'low' | 'medium' | 'high' | null; /** * When the priority was last set manually, which stops automatic priority updates (ISO 8601) */ priorityLockedAt?: string | null; /** * Seer's score for how likely the issue is to be fixable */ seerFixabilityScore?: number | null; /** * When Seer Autofix was last triggered for the issue (ISO 8601) */ seerAutofixLastTriggered?: string | null; /** * When the Seer explorer agent last completed an Autofix step for the issue (ISO 8601) */ seerExplorerAutofixLastTriggered?: string | null; /** * Project the issue belongs to */ project?: { /** * ID of the project */ id: string; /** * Name of the project */ name: string; /** * Slug of the project */ slug: string; /** * Platform of the project */ platform: string | null; }; /** * Event type of the issue, such as error or default */ type?: 'default' | 'error' | 'csp' | 'nel' | 'hpkp' | 'expectct' | 'expectstaple' | 'transaction' | 'generic' | 'feedback'; /** * Issue type, such as error or performance_n_plus_one_db_queries */ issueType?: string; /** * Issue category, such as error or performance */ issueCategory?: string; /** * Issue metadata */ metadata?: { /** * Title of default and issue platform events */ title?: string; /** * Exception value, or the subtitle of an issue */ value?: string; /** * Exception type of error events */ type?: string; /** * Whether the SDK fabricated the exception to carry a stacktrace, so its type is a platform label rather than what went wrong */ synthetic?: boolean; /** * File of the frame where the error happened */ filename?: string; /** * Function of the frame where the error happened */ function?: string; /** * Message of default, security and feedback events */ message?: string; /** * URI that a CSP report blocked */ uri?: string; /** * CSP directive that was violated */ directive?: string; /** * Host name of HPKP, Expect-CT and Expect-Staple reports */ origin?: string; /** * Name of the person who sent user feedback */ name?: string; /** * Email of the person who sent user feedback */ contact_email?: string; /** * Where user feedback came from, such as a widget */ source?: string; /** * Whether the stacktrace has in-app frames, system frames or both */ in_app_frame_mix?: string; /** * Whether a crash report was dropped because the issue already stores the most allowed */ stripped_crash?: boolean; /** * SDK of the issue's first event */ sdk?: { /** * Name of the SDK, or unknown */ name: string; /** * Name of the SDK, normalized for grouping */ name_normalized: string; }; /** * Severity score of the issue's first event */ severity?: number; /** * Why the severity score is what it is */ severity_reason?: string; /** * Priority the issue was created with */ initial_priority?: number; }; /** * Number of comments on the issue */ numComments?: number; /** * User or team the issue is assigned to */ assignedTo?: { /** * Whether the actor is a user or a team */ type: 'user' | 'team'; /** * ID of the user or team */ id: string; /** * Display name of the user, or slug of the team */ name: string; /** * Email address of the user. Only set for users */ email?: string; } | null; /** * Whether the requesting user bookmarked the issue */ isBookmarked?: boolean; /** * Whether the requesting user is subscribed to the issue */ isSubscribed?: boolean; /** * Why the requesting user is subscribed to the issue */ subscriptionDetails?: { /** * Whether the requesting user turned off notifications for the issue */ disabled?: boolean; /** * Why the requesting user is subscribed: commented, assigned, bookmarked, changed_status, mentioned or unknown */ reason?: string; } | null; /** * Whether the requesting user has seen the issue since it last occurred */ hasSeen?: boolean; /** * External issues linked to the issue */ annotations?: Array<{ /** * Display name of the linked external issue */ displayName: string; /** * URL of the linked external issue */ url: string; }>; /** * Whether the issue includes unhandled events */ isUnhandled?: boolean; /** * Total number of events in the issue */ count?: string; /** * Number of users affected by the issue */ userCount?: number; /** * When the issue was first seen (ISO 8601) */ firstSeen?: string | null; /** * When the issue was last seen (ISO 8601) */ lastSeen?: string | null; /** * Additional data derived for the issue. Only included when requested with expand */ derivedData?: { /** * Action that blocks progress on the issue: none, approve_root_cause, approve_plan, approve_code_changes or merge_pr */ blocker: string; /** * How far the issue is toward resolution: identified, assigned, diagnosed, fix_proposed or fix_applied */ progress: string; /** * Status of the issue from its action log: open or closed */ status: string; /** * Number of times the issue was viewed */ viewCount: number; /** * Whether an open pull request is linked to the issue */ hasOpenFixPr: boolean; /** * Whether the issue has an assignee */ isAssigned: boolean; /** * Whether a root cause was found for the issue */ hasRootCause: boolean; /** * Furthest Autofix step completed: none, root_cause, solution, code_changes, pr_created or pr_iteration */ lastCompletedAutofixStep: string; /** * When the issue's progress last advanced (ISO 8601) */ lastProgressedAt: string | null; /** * The issue's impact assessment, or null when no assessment is available */ impact?: { /** * Estimated per-occurrence impact on the end user's capability from 0 to 100 */ score: number | null; /** * Impact level derived from the assessment score */ level: 'super_low' | 'low' | 'moderate' | 'high' | 'super_high' | null; /** * Human-readable description of the capability affected by the issue */ description: string; /** * Evidence-backed claims supporting the impact assessment */ citations: Array<{ /** * Stable identifier for the evidence supporting this claim */ reference: string; /** * Concise explanation of what the cited evidence establishes */ claim: string; /** * The category of evidence cited, such as an event, trace, replay, or log */ source: string; }>; /** * ID of the issue event used to generate the impact assessment */ sourceEventId: string; } | null; }; /** * Event counts over the requested stats period, keyed by the period, as [timestamp, count] pairs. Omitted when stats is collapsed */ stats?: { [key: string]: Array>; }; /** * Event count, user count, and first and last seen times over the issue's lifetime. Omitted when stats or lifetime is collapsed */ lifetime?: { /** * Number of events in the issue */ count: string; /** * Number of users affected by the issue */ userCount: number; /** * When the issue was first seen (ISO 8601) */ firstSeen: string | null; /** * When the issue was last seen (ISO 8601) */ lastSeen: string | null; /** * Always null. Only included when a stats period is requested */ stats?: null; }; /** * Event count, user count, and first and last seen times for events that match the search query. Null when there's no query; omitted when stats or filtered is collapsed */ filtered?: { /** * Number of the issue's events that match the search query */ count: string; /** * Number of users affected by the issue's events that match the search query */ userCount: number; /** * When an event matching the search query was first seen (ISO 8601) */ firstSeen: string | null; /** * When an event matching the search query was last seen (ISO 8601) */ lastSeen: string | null; /** * Counts of matching events over the requested stats period, keyed by the period, as [timestamp, count] pairs */ stats?: { [key: string]: Array>; }; } | null; /** * Number of sessions in the issue's project over the query time range. Null when session data is unavailable. Only included with expand=sessions when a stats period is enabled and stats is not collapsed */ sessionCount?: number | null; /** * Why the issue is in the inbox. Only included when requested with expand */ inbox?: { /** * Why the issue is in the inbox: 0 new, 1 unignored, 2 regression, 3 manual, 4 reprocessed, 5 escalating or 6 ongoing */ reason: number; /** * Details of the ignore that ended when the issue came back to the inbox. Null otherwise */ reason_details: { /** * When the ignore that ended was set to expire (ISO 8601) */ until: string | null; /** * Number of occurrences the ignore that ended was set to wait for */ count: number | null; /** * Window in minutes for count */ window: number | null; /** * Number of affected users the ignore that ended was set to wait for */ user_count: number | null; /** * Window in minutes for user_count */ user_window: number | null; } | null; /** * When the issue was added to the inbox (ISO 8601) */ date_added: string; }; /** * Suggested owners of the issue. Only included when requested with expand */ owners?: Array<{ /** * How the owner was found: suspectCommit, ownershipRule, codeowners or seerSuggested */ type: string; /** * Owner as an actor identifier, such as user:1 or team:1 */ owner: string; /** * When the owner was suggested (ISO 8601) */ date_added: string; }> | null; /** * External issues linked through integrations. Only included when requested with expand */ integrationIssues?: Array<{ /** * ID of the external issue link in Sentry */ id?: string; /** * Key of the issue in the integration, such as APP-123 */ key?: string; /** * Title of the issue in the integration */ title?: string | null; /** * Description of the issue in the integration */ description?: string | null; /** * Name of the issue to display */ displayName?: string; /** * Provider of the integration, such as jira */ integrationKey?: string; /** * Name of the integration */ integrationName?: string; }>; /** * External issues linked through Sentry apps. Only included when requested with expand */ sentryAppIssues?: Array<{ /** * ID of the external issue link */ id: string; /** * ID of the Sentry issue */ issueId: string; /** * Slug of the custom integration that created the external issue */ serviceType: string; /** * Display name of the external issue, such as ABC-123 */ displayName: string; /** * URL of the external issue */ webUrl: string; }>; /** * Whether the issue's latest event has attachments. Only included when requested with expand */ latestEventHasAttachments?: boolean; /** * ID of the event the search query matched. Only included when the query matches an event ID */ matchingEventId?: string | null; /** * Environment of the event the search query matched. Only included when the query matches an event ID */ matchingEventEnvironment?: string | null; }>; }; export type ListOrganizationIssueStatsResponse = ListOrganizationIssueStatsResponses[keyof ListOrganizationIssueStatsResponses]; export type ListOrganizationMembersData = { body?: never; path: { /** * The ID or slug of the organization the resource belongs to. */ organization_id_or_slug: string; }; query?: { /** * Limit results to members matching the given query. `id, `user.id`, ... are supported prefixes match on: `id`, `user.id`, `email`, `role`, `scope`, `isInvited`, `ssoLinked`, `has2fa`, `hasExternalUsers`. For example, `query=user.id:1234`. An unrecognized field returns no results. */ query?: string; /** * A pointer to the last object fetched and its sort order; used to retrieve the next or previous results. */ cursor?: string; }; url: '/organizations/{organization_id_or_slug}/members/'; }; export type ListOrganizationMembersErrors = { /** * Unauthorized */ 401: unknown; /** * Forbidden */ 403: unknown; /** * Not Found */ 404: unknown; }; export type ListOrganizationMembersResponses = { 200: Array<{ /** * Users in external providers, such as Slack or GitHub, linked to the member's user. Included only when requested */ externalUsers?: Array<{ /** * ID of the user or team in the provider */ externalId?: string; /** * ID of the Sentry user. Only set for user mappings */ userId?: string; /** * ID of the Sentry team. Only set for team mappings */ teamId?: string; /** * ID of the external actor mapping */ id: string; /** * Provider of the external actor, such as github or slack */ provider: string; /** * Name of the user or team in the provider, such as @octocat */ externalName: string; /** * ID of the integration the mapping belongs to */ integrationId: string; }>; /** * Organization member ID */ id: string; /** * Email address of the member's user, or the invited email address if they have no account yet */ email: string; /** * Display name of the member's user, or their email address if they have no account yet */ name: string; /** * The member's user. Null for invited members without an account, or if the user can't be found */ user: { /** * SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access */ identities?: Array<{ /** * SSO identity ID */ id: string; /** * User's identifier at the auth provider */ name: string; /** * Organization the auth provider belongs to */ organization: { /** * Organization slug */ slug: string; /** * Organization name */ name: string; }; /** * Auth provider of the identity */ provider: { /** * Auth provider key, such as google or saml2 */ id: string; /** * Display name of the auth provider */ name: string; }; /** * When the identity was last verified by signing in through the auth provider */ dateVerified: string; /** * When the identity was last synced from the auth provider */ dateSynced: string; }>; /** * User avatar */ avatar?: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Two-factor authenticators of the user, without backup methods such as recovery codes */ authenticators?: Array<{ /** * Authenticator ID */ id: string; /** * Authenticator type, such as totp, sms, u2f or recovery */ type: string; /** * Display name of the authenticator type */ name: string; /** * When the authenticator was added */ dateCreated: string; /** * When the authenticator was last used, or null */ dateUsed: string | null; }>; /** * Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization */ canReset2fa?: boolean; /** * User ID */ id: string; /** * Display name: the user's name, or their email or username if no name is set */ name: string; /** * Username */ username: string; /** * Primary email address */ email: string; /** * Gravatar URL for the primary email address */ avatarUrl: string; /** * Whether the account is active */ isActive: boolean; /** * Whether the account is suspended. Suspended users can't sign in */ isSuspended: boolean; /** * Whether the user has a password set */ hasPasswordAuth: boolean; /** * Whether the account is managed, which stops the user from changing their username, password and similar details */ isManaged: boolean; /** * When the account was created */ dateJoined: string; /** * When the user last signed in, or null */ lastLogin: string | null; /** * Whether the user has two-factor authentication enabled */ has2fa: boolean; /** * When the user was last active, or null */ lastActive: string | null; /** * Whether the user is a superuser */ isSuperuser: boolean; /** * Whether the user has staff status */ isStaff: boolean; /** * Deprecated. Always an empty object */ experiments: { [key: string]: string; }; /** * Email addresses of the user. Only included for the requesting user or superusers; empty otherwise */ emails: Array<{ /** * Email ID */ id: string; /** * Email address */ email: string; /** * Whether the email address is verified */ is_verified: boolean; }>; } | null; /** * ID of the member's organization role */ orgRole: string; /** * Whether the member has no user account linked yet, as with an invite that hasn't been accepted */ pending: boolean; /** * Whether the member's invite has expired */ expired: boolean; /** * Member flags */ flags: { /** * Whether the member is provisioned and managed through the organization's identity provider (SCIM) */ 'idp:provisioned': boolean; /** * Whether the member's organization role is set by the identity provider through SCIM */ 'idp:role-restricted': boolean; /** * Whether the member has linked their account to the organization's SSO provider */ 'sso:linked': boolean; /** * Whether the member's SSO link is invalid */ 'sso:invalid': boolean; /** * Whether the member is restricted by the plan's member limit */ 'member-limit:restricted': boolean; /** * Whether the member is managed by an active partnership and can't be changed until it ends */ 'partnership:restricted': boolean; }; /** * When the member was added or invited */ dateCreated: string; /** * Invite status */ inviteStatus: 'approved' | 'requested_to_be_invited' | 'requested_to_join' | null; /** * Name of the user who invited the member, or null */ inviterName: string | null; }>; }; export type ListOrganizationMembersResponse = ListOrganizationMembersResponses[keyof ListOrganizationMembersResponses]; export type AddOrganizationMemberData = { body: { /** * The email address to send the invitation to. */ email: string; /** * Deprecated, use `orgRole`. The organization-level role to assign. * * * `member` - Member * * `admin` - Admin * * `manager` - Manager * * `owner` - Owner * * @deprecated */ role?: 'member' | 'admin' | 'manager' | 'owner'; /** * The organization-level role of the new member. Roles include: * * * `billing` - Can manage payment and compliance details. * * `member` - Can view and act on events, as well as view most other data within the organization. * * `manager` - Has full management access to all teams and projects. Can also manage * the organization's membership. * * `owner` - Has unrestricted access to the organization, its data, and its * settings. Can add, modify, and delete projects and members, as well as * make billing and plan changes. * * `admin` - Can edit global integrations, manage projects, and add/remove teams. * They automatically assume the Team Admin role for teams they join. * Note: This role can no longer be assigned in Business and Enterprise plans. Use `TeamRoles` instead. * */ orgRole?: 'billing' | 'member' | 'manager' | 'owner' | 'admin'; /** * Deprecated, use `teamRoles`. Slugs of teams to add the member to. * * @deprecated */ teams?: Array; /** * The team and team-roles assigned to the member. Team roles can be either: * - `contributor` - Can view and act on issues. Depending on organization settings, they can also add team members. * - `admin` - Has full management access to their team's membership and projects. */ teamRoles?: Array<{ /** * The slug of the team to assign the member to. */ teamSlug: string; /** * The team role to assign. Use null for the default team role. * * * `contributor` * * `admin` */ role: 'contributor' | 'admin' | null; }>; /** * Whether or not to send an invite notification through email. Defaults to True. */ sendInvite?: boolean; /** * Whether or not to re-invite a user who has already been invited to the organization. Defaults to True. */ reinvite?: boolean; /** * Reissue the invite token, invalidating any previously sent invite link. */ regenerate?: boolean; }; path: { /** * The ID or slug of the organization the resource belongs to. */ organization_id_or_slug: string; }; query?: never; url: '/organizations/{organization_id_or_slug}/members/'; }; export type AddOrganizationMemberErrors = { /** * Bad Request */ 400: unknown; /** * Unauthorized */ 401: unknown; /** * Forbidden */ 403: unknown; /** * Not Found */ 404: unknown; /** * Too Many Requests */ 429: unknown; }; export type AddOrganizationMemberResponses = { 201: { /** * Users in external providers, such as Slack or GitHub, linked to the member's user. Included only when requested */ externalUsers?: Array<{ /** * ID of the user or team in the provider */ externalId?: string; /** * ID of the Sentry user. Only set for user mappings */ userId?: string; /** * ID of the Sentry team. Only set for team mappings */ teamId?: string; /** * ID of the external actor mapping */ id: string; /** * Provider of the external actor, such as github or slack */ provider: string; /** * Name of the user or team in the provider, such as @octocat */ externalName: string; /** * ID of the integration the mapping belongs to */ integrationId: string; }>; /** * Organization member ID */ id: string; /** * Email address of the member's user, or the invited email address if they have no account yet */ email: string; /** * Display name of the member's user, or their email address if they have no account yet */ name: string; /** * The member's user. Null for invited members without an account, or if the user can't be found */ user: { /** * SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access */ identities?: Array<{ /** * SSO identity ID */ id: string; /** * User's identifier at the auth provider */ name: string; /** * Organization the auth provider belongs to */ organization: { /** * Organization slug */ slug: string; /** * Organization name */ name: string; }; /** * Auth provider of the identity */ provider: { /** * Auth provider key, such as google or saml2 */ id: string; /** * Display name of the auth provider */ name: string; }; /** * When the identity was last verified by signing in through the auth provider */ dateVerified: string; /** * When the identity was last synced from the auth provider */ dateSynced: string; }>; /** * User avatar */ avatar?: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Two-factor authenticators of the user, without backup methods such as recovery codes */ authenticators?: Array<{ /** * Authenticator ID */ id: string; /** * Authenticator type, such as totp, sms, u2f or recovery */ type: string; /** * Display name of the authenticator type */ name: string; /** * When the authenticator was added */ dateCreated: string; /** * When the authenticator was last used, or null */ dateUsed: string | null; }>; /** * Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization */ canReset2fa?: boolean; /** * User ID */ id: string; /** * Display name: the user's name, or their email or username if no name is set */ name: string; /** * Username */ username: string; /** * Primary email address */ email: string; /** * Gravatar URL for the primary email address */ avatarUrl: string; /** * Whether the account is active */ isActive: boolean; /** * Whether the account is suspended. Suspended users can't sign in */ isSuspended: boolean; /** * Whether the user has a password set */ hasPasswordAuth: boolean; /** * Whether the account is managed, which stops the user from changing their username, password and similar details */ isManaged: boolean; /** * When the account was created */ dateJoined: string; /** * When the user last signed in, or null */ lastLogin: string | null; /** * Whether the user has two-factor authentication enabled */ has2fa: boolean; /** * When the user was last active, or null */ lastActive: string | null; /** * Whether the user is a superuser */ isSuperuser: boolean; /** * Whether the user has staff status */ isStaff: boolean; /** * Deprecated. Always an empty object */ experiments: { [key: string]: string; }; /** * Email addresses of the user. Only included for the requesting user or superusers; empty otherwise */ emails: Array<{ /** * Email ID */ id: string; /** * Email address */ email: string; /** * Whether the email address is verified */ is_verified: boolean; }>; } | null; /** * ID of the member's organization role */ orgRole: string; /** * Whether the member has no user account linked yet, as with an invite that hasn't been accepted */ pending: boolean; /** * Whether the member's invite has expired */ expired: boolean; /** * Member flags */ flags: { /** * Whether the member is provisioned and managed through the organization's identity provider (SCIM) */ 'idp:provisioned': boolean; /** * Whether the member's organization role is set by the identity provider through SCIM */ 'idp:role-restricted': boolean; /** * Whether the member has linked their account to the organization's SSO provider */ 'sso:linked': boolean; /** * Whether the member's SSO link is invalid */ 'sso:invalid': boolean; /** * Whether the member is restricted by the plan's member limit */ 'member-limit:restricted': boolean; /** * Whether the member is managed by an active partnership and can't be changed until it ends */ 'partnership:restricted': boolean; }; /** * When the member was added or invited */ dateCreated: string; /** * Invite status */ inviteStatus: 'approved' | 'requested_to_be_invited' | 'requested_to_join' | null; /** * Name of the user who invited the member, or null */ inviterName: string | null; }; }; export type AddOrganizationMemberResponse = AddOrganizationMemberResponses[keyof AddOrganizationMemberResponses]; export type DeleteOrganizationMemberData = { body?: never; path: { /** * The ID or slug of the organization the resource belongs to. */ organization_id_or_slug: string; /** * The ID of the member to delete. */ member_id: string; }; query?: never; url: '/organizations/{organization_id_or_slug}/members/{member_id}/'; }; export type DeleteOrganizationMemberErrors = { /** * Bad Request */ 400: unknown; /** * Unauthorized */ 401: unknown; /** * Forbidden */ 403: unknown; /** * Not Found */ 404: unknown; }; export type DeleteOrganizationMemberResponses = { /** * No Content */ 204: void; }; export type DeleteOrganizationMemberResponse = DeleteOrganizationMemberResponses[keyof DeleteOrganizationMemberResponses]; export type GetOrganizationMemberData = { body?: never; path: { /** * The ID or slug of the organization the resource belongs to. */ organization_id_or_slug: string; /** * The ID of the organization member. */ member_id: string; }; query?: never; url: '/organizations/{organization_id_or_slug}/members/{member_id}/'; }; export type GetOrganizationMemberErrors = { /** * Unauthorized */ 401: unknown; /** * Forbidden */ 403: unknown; /** * Not Found */ 404: unknown; }; export type GetOrganizationMemberResponses = { 200: { /** * Users in external providers, such as Slack or GitHub, linked to the member's user. Included only when requested */ externalUsers?: Array<{ /** * ID of the user or team in the provider */ externalId?: string; /** * ID of the Sentry user. Only set for user mappings */ userId?: string; /** * ID of the Sentry team. Only set for team mappings */ teamId?: string; /** * ID of the external actor mapping */ id: string; /** * Provider of the external actor, such as github or slack */ provider: string; /** * Name of the user or team in the provider, such as @octocat */ externalName: string; /** * ID of the integration the mapping belongs to */ integrationId: string; }>; /** * Deprecated. Use orgRole */ role?: string; /** * Deprecated. Name of the member's organization role */ roleName?: string; /** * Organization member ID */ id: string; /** * Email address of the member's user, or the invited email address if they have no account yet */ email: string; /** * Display name of the member's user, or their email address if they have no account yet */ name: string; /** * The member's user. Null for invited members without an account, or if the user can't be found */ user: { /** * SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access */ identities?: Array<{ /** * SSO identity ID */ id: string; /** * User's identifier at the auth provider */ name: string; /** * Organization the auth provider belongs to */ organization: { /** * Organization slug */ slug: string; /** * Organization name */ name: string; }; /** * Auth provider of the identity */ provider: { /** * Auth provider key, such as google or saml2 */ id: string; /** * Display name of the auth provider */ name: string; }; /** * When the identity was last verified by signing in through the auth provider */ dateVerified: string; /** * When the identity was last synced from the auth provider */ dateSynced: string; }>; /** * User avatar */ avatar?: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Two-factor authenticators of the user, without backup methods such as recovery codes */ authenticators?: Array<{ /** * Authenticator ID */ id: string; /** * Authenticator type, such as totp, sms, u2f or recovery */ type: string; /** * Display name of the authenticator type */ name: string; /** * When the authenticator was added */ dateCreated: string; /** * When the authenticator was last used, or null */ dateUsed: string | null; }>; /** * Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization */ canReset2fa?: boolean; /** * User ID */ id: string; /** * Display name: the user's name, or their email or username if no name is set */ name: string; /** * Username */ username: string; /** * Primary email address */ email: string; /** * Gravatar URL for the primary email address */ avatarUrl: string; /** * Whether the account is active */ isActive: boolean; /** * Whether the account is suspended. Suspended users can't sign in */ isSuspended: boolean; /** * Whether the user has a password set */ hasPasswordAuth: boolean; /** * Whether the account is managed, which stops the user from changing their username, password and similar details */ isManaged: boolean; /** * When the account was created */ dateJoined: string; /** * When the user last signed in, or null */ lastLogin: string | null; /** * Whether the user has two-factor authentication enabled */ has2fa: boolean; /** * When the user was last active, or null */ lastActive: string | null; /** * Whether the user is a superuser */ isSuperuser: boolean; /** * Whether the user has staff status */ isStaff: boolean; /** * Deprecated. Always an empty object */ experiments: { [key: string]: string; }; /** * Email addresses of the user. Only included for the requesting user or superusers; empty otherwise */ emails: Array<{ /** * Email ID */ id: string; /** * Email address */ email: string; /** * Whether the email address is verified */ is_verified: boolean; }>; } | null; /** * ID of the member's organization role */ orgRole: string; /** * Whether the member has no user account linked yet, as with an invite that hasn't been accepted */ pending: boolean; /** * Whether the member's invite has expired */ expired: boolean; /** * Member flags */ flags: { /** * Whether the member is provisioned and managed through the organization's identity provider (SCIM) */ 'idp:provisioned': boolean; /** * Whether the member's organization role is set by the identity provider through SCIM */ 'idp:role-restricted': boolean; /** * Whether the member has linked their account to the organization's SSO provider */ 'sso:linked': boolean; /** * Whether the member's SSO link is invalid */ 'sso:invalid': boolean; /** * Whether the member is restricted by the plan's member limit */ 'member-limit:restricted': boolean; /** * Whether the member is managed by an active partnership and can't be changed until it ends */ 'partnership:restricted': boolean; }; /** * When the member was added or invited */ dateCreated: string; /** * Invite status */ inviteStatus: 'approved' | 'requested_to_be_invited' | 'requested_to_join' | null; /** * Name of the user who invited the member, or null */ inviterName: string | null; /** * Deprecated. Slugs of the active teams the member belongs to. Use teamRoles */ teams: Array; /** * Active teams the member belongs to, with the member's role in each */ teamRoles: Array<{ /** * Team slug */ teamSlug: string; /** * ID of the member's team role, or null if the member has the minimum team role from their organization role */ role: string | null; }>; /** * Whether the member is the only owner of the organization */ isOnlyOwner: boolean; /** * Organization roles, with whether the requesting user can assign each one */ orgRoleList: Array<{ /** * Role ID, such as member or admin */ id: string; /** * Display name of the role */ name: string; /** * Description of what the role can do */ desc: string; /** * Scopes the role grants in this organization */ scopes: Array; /** * Deprecated alias of isAllowed */ allowed: boolean; /** * Whether the requesting user can assign this role */ isAllowed: boolean; /** * Whether the role is retired and shouldn't be assigned to more members */ isRetired: boolean; /** * Whether members with this role can have team-level roles */ isTeamRolesAllowed: boolean; /** * Deprecated alias of isGlobal */ is_global: boolean; /** * Whether the role gives access to all teams and projects in the organization */ isGlobal: boolean; /** * ID of the lowest team role that members with this organization role hold on every team */ minimumTeamRole: string; }>; /** * Team roles available in the organization */ teamRoleList: Array<{ /** * Role ID, such as member or admin */ id: string; /** * Display name of the role */ name: string; /** * Description of what the role can do */ desc: string; /** * Scopes the role grants in this organization */ scopes: Array; /** * Deprecated alias of isAllowed */ allowed: boolean; /** * Whether the requesting user can assign this role */ isAllowed: boolean; /** * Whether the role is retired and shouldn't be assigned to more members */ isRetired: boolean; /** * Whether members with this role can have team-level roles */ isTeamRolesAllowed: boolean; /** * ID of the organization role whose members hold at least this team role on every team, or null */ isMinimumRoleFor: string | null; }>; }; }; export type GetOrganizationMemberResponse = GetOrganizationMemberResponses[keyof GetOrganizationMemberResponses]; export type UpdateOrganizationMemberData = { body?: { /** * The organization role of the member. The options are: * * * `billing` - Can manage payment and compliance details. * * `member` - Can view and act on events, as well as view most other data within the organization. * * `manager` - Has full management access to all teams and projects. Can also manage * the organization's membership. * * `owner` - Has unrestricted access to the organization, its data, and its * settings. Can add, modify, and delete projects and members, as well as * make billing and plan changes. * * `admin` - Can edit global integrations, manage projects, and add/remove teams. * They automatically assume the Team Admin role for teams they join. * Note: This role can no longer be assigned in Business and Enterprise plans. Use `TeamRoles` instead. * */ orgRole?: 'billing' | 'member' | 'manager' | 'owner' | 'admin'; /** * * Configures the team role of the member. The two roles are: * - `contributor` - Can view and act on issues. Depending on organization settings, they can also add team members. * - `admin` - Has full management access to their team's membership and projects. * ```json * { * "teamRoles": [ * { * "teamSlug": "ancient-gabelers", * "role": "admin" * }, * { * "teamSlug": "powerful-abolitionist", * "role": "contributor" * } * ] * } * ``` * */ teamRoles?: Array<{ /** * The slug of the team to assign the member to. */ teamSlug: string; /** * The team role to assign. Use null for the default team role. * * * `contributor` * * `admin` */ role: 'contributor' | 'admin' | null; }>; }; path: { /** * The ID or slug of the organization the resource belongs to. */ organization_id_or_slug: string; /** * The ID of the member to update. */ member_id: string; }; query?: never; url: '/organizations/{organization_id_or_slug}/members/{member_id}/'; }; export type UpdateOrganizationMemberErrors = { /** * Bad Request */ 400: unknown; /** * Unauthorized */ 401: unknown; /** * Forbidden */ 403: unknown; /** * Too Many Requests */ 429: unknown; }; export type UpdateOrganizationMemberResponses = { 200: { /** * Users in external providers, such as Slack or GitHub, linked to the member's user. Included only when requested */ externalUsers?: Array<{ /** * ID of the user or team in the provider */ externalId?: string; /** * ID of the Sentry user. Only set for user mappings */ userId?: string; /** * ID of the Sentry team. Only set for team mappings */ teamId?: string; /** * ID of the external actor mapping */ id: string; /** * Provider of the external actor, such as github or slack */ provider: string; /** * Name of the user or team in the provider, such as @octocat */ externalName: string; /** * ID of the integration the mapping belongs to */ integrationId: string; }>; /** * Deprecated. Use orgRole */ role?: string; /** * Deprecated. Name of the member's organization role */ roleName?: string; /** * Organization member ID */ id: string; /** * Email address of the member's user, or the invited email address if they have no account yet */ email: string; /** * Display name of the member's user, or their email address if they have no account yet */ name: string; /** * The member's user. Null for invited members without an account, or if the user can't be found */ user: { /** * SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access */ identities?: Array<{ /** * SSO identity ID */ id: string; /** * User's identifier at the auth provider */ name: string; /** * Organization the auth provider belongs to */ organization: { /** * Organization slug */ slug: string; /** * Organization name */ name: string; }; /** * Auth provider of the identity */ provider: { /** * Auth provider key, such as google or saml2 */ id: string; /** * Display name of the auth provider */ name: string; }; /** * When the identity was last verified by signing in through the auth provider */ dateVerified: string; /** * When the identity was last synced from the auth provider */ dateSynced: string; }>; /** * User avatar */ avatar?: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Two-factor authenticators of the user, without backup methods such as recovery codes */ authenticators?: Array<{ /** * Authenticator ID */ id: string; /** * Authenticator type, such as totp, sms, u2f or recovery */ type: string; /** * Display name of the authenticator type */ name: string; /** * When the authenticator was added */ dateCreated: string; /** * When the authenticator was last used, or null */ dateUsed: string | null; }>; /** * Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization */ canReset2fa?: boolean; /** * User ID */ id: string; /** * Display name: the user's name, or their email or username if no name is set */ name: string; /** * Username */ username: string; /** * Primary email address */ email: string; /** * Gravatar URL for the primary email address */ avatarUrl: string; /** * Whether the account is active */ isActive: boolean; /** * Whether the account is suspended. Suspended users can't sign in */ isSuspended: boolean; /** * Whether the user has a password set */ hasPasswordAuth: boolean; /** * Whether the account is managed, which stops the user from changing their username, password and similar details */ isManaged: boolean; /** * When the account was created */ dateJoined: string; /** * When the user last signed in, or null */ lastLogin: string | null; /** * Whether the user has two-factor authentication enabled */ has2fa: boolean; /** * When the user was last active, or null */ lastActive: string | null; /** * Whether the user is a superuser */ isSuperuser: boolean; /** * Whether the user has staff status */ isStaff: boolean; /** * Deprecated. Always an empty object */ experiments: { [key: string]: string; }; /** * Email addresses of the user. Only included for the requesting user or superusers; empty otherwise */ emails: Array<{ /** * Email ID */ id: string; /** * Email address */ email: string; /** * Whether the email address is verified */ is_verified: boolean; }>; } | null; /** * ID of the member's organization role */ orgRole: string; /** * Whether the member has no user account linked yet, as with an invite that hasn't been accepted */ pending: boolean; /** * Whether the member's invite has expired */ expired: boolean; /** * Member flags */ flags: { /** * Whether the member is provisioned and managed through the organization's identity provider (SCIM) */ 'idp:provisioned': boolean; /** * Whether the member's organization role is set by the identity provider through SCIM */ 'idp:role-restricted': boolean; /** * Whether the member has linked their account to the organization's SSO provider */ 'sso:linked': boolean; /** * Whether the member's SSO link is invalid */ 'sso:invalid': boolean; /** * Whether the member is restricted by the plan's member limit */ 'member-limit:restricted': boolean; /** * Whether the member is managed by an active partnership and can't be changed until it ends */ 'partnership:restricted': boolean; }; /** * When the member was added or invited */ dateCreated: string; /** * Invite status */ inviteStatus: 'approved' | 'requested_to_be_invited' | 'requested_to_join' | null; /** * Name of the user who invited the member, or null */ inviterName: string | null; /** * Deprecated. Slugs of the active teams the member belongs to. Use teamRoles */ teams: Array; /** * Active teams the member belongs to, with the member's role in each */ teamRoles: Array<{ /** * Team slug */ teamSlug: string; /** * ID of the member's team role, or null if the member has the minimum team role from their organization role */ role: string | null; }>; /** * Whether the member is the only owner of the organization */ isOnlyOwner: boolean; /** * Organization roles, with whether the requesting user can assign each one */ orgRoleList: Array<{ /** * Role ID, such as member or admin */ id: string; /** * Display name of the role */ name: string; /** * Description of what the role can do */ desc: string; /** * Scopes the role grants in this organization */ scopes: Array; /** * Deprecated alias of isAllowed */ allowed: boolean; /** * Whether the requesting user can assign this role */ isAllowed: boolean; /** * Whether the role is retired and shouldn't be assigned to more members */ isRetired: boolean; /** * Whether members with this role can have team-level roles */ isTeamRolesAllowed: boolean; /** * Deprecated alias of isGlobal */ is_global: boolean; /** * Whether the role gives access to all teams and projects in the organization */ isGlobal: boolean; /** * ID of the lowest team role that members with this organization role hold on every team */ minimumTeamRole: string; }>; /** * Team roles available in the organization */ teamRoleList: Array<{ /** * Role ID, such as member or admin */ id: string; /** * Display name of the role */ name: string; /** * Description of what the role can do */ desc: string; /** * Scopes the role grants in this organization */ scopes: Array; /** * Deprecated alias of isAllowed */ allowed: boolean; /** * Whether the requesting user can assign this role */ isAllowed: boolean; /** * Whether the role is retired and shouldn't be assigned to more members */ isRetired: boolean; /** * Whether members with this role can have team-level roles */ isTeamRolesAllowed: boolean; /** * ID of the organization role whose members hold at least this team role on every team, or null */ isMinimumRoleFor: string | null; }>; }; }; export type UpdateOrganizationMemberResponse = UpdateOrganizationMemberResponses[keyof UpdateOrganizationMemberResponses]; export type DeleteOrganizationMemberTeamData = { body?: never; path: { /** * The ID or slug of the organization the resource belongs to. */ organization_id_or_slug: string; /** * The ID of the organization member to delete from the team */ member_id: string; /** * The ID or slug of the team the resource belongs to. */ team_id_or_slug: string; }; query?: never; url: '/organizations/{organization_id_or_slug}/members/{member_id}/teams/{team_id_or_slug}/'; }; export type DeleteOrganizationMemberTeamErrors = { /** * Bad Request */ 400: unknown; /** * This team is managed through your organization's identity provider */ 403: unknown; /** * Not Found */ 404: unknown; }; export type DeleteOrganizationMemberTeamResponses = { 200: { /** * Team ID */ id: string; /** * Team slug, unique within the organization */ slug: string; /** * Display name of the team */ name: string; /** * When the team was created (ISO 8601) */ dateCreated: string | null; /** * Whether the requesting user is a member of the team */ isMember: boolean; /** * The requesting user's role in the team */ teamRole: string | null; /** * Team flags. idp:provisioned is true when the team is managed by an identity provider through SCIM */ flags: { [key: string]: boolean; }; /** * Scopes the requesting user has on the team through their team role. Empty if the user has no access */ access: Array; /** * Whether the requesting user can access the team, as a member, through open membership or through an organization role with access to all teams */ hasAccess: boolean; /** * Whether the requesting user has a pending request to join the team */ isPending: boolean; /** * Number of members in the team */ memberCount: number; /** * Team avatar */ avatar: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; }; }; export type DeleteOrganizationMemberTeamResponse = DeleteOrganizationMemberTeamResponses[keyof DeleteOrganizationMemberTeamResponses]; export type AddOrganizationMemberTeamData = { body?: never; path: { /** * The ID or slug of the organization the resource belongs to. */ organization_id_or_slug: string; /** * The ID of the organization member to add to the team */ member_id: string; /** * The ID or slug of the team the resource belongs to. */ team_id_or_slug: string; }; query?: never; url: '/organizations/{organization_id_or_slug}/members/{member_id}/teams/{team_id_or_slug}/'; }; export type AddOrganizationMemberTeamErrors = { /** * Unauthorized */ 401: unknown; /** * This team is managed through your organization's identity provider */ 403: unknown; /** * Not Found */ 404: unknown; }; export type AddOrganizationMemberTeamResponses = { 201: { /** * Team ID */ id: string; /** * Team slug, unique within the organization */ slug: string; /** * Display name of the team */ name: string; /** * When the team was created (ISO 8601) */ dateCreated: string | null; /** * Whether the requesting user is a member of the team */ isMember: boolean; /** * The requesting user's role in the team */ teamRole: string | null; /** * Team flags. idp:provisioned is true when the team is managed by an identity provider through SCIM */ flags: { [key: string]: boolean; }; /** * Scopes the requesting user has on the team through their team role. Empty if the user has no access */ access: Array; /** * Whether the requesting user can access the team, as a member, through open membership or through an organization role with access to all teams */ hasAccess: boolean; /** * Whether the requesting user has a pending request to join the team */ isPending: boolean; /** * Number of members in the team */ memberCount: number; /** * Team avatar */ avatar: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; }; /** * Accepted */ 202: unknown; /** * No Content */ 204: void; }; export type AddOrganizationMemberTeamResponse = AddOrganizationMemberTeamResponses[keyof AddOrganizationMemberTeamResponses]; export type UpdateOrganizationMemberTeamData = { body?: { /** * The team-level role to switch to. Valid roles include: * * * `contributor` - Contributors can view and act on events, as well as view most other data within the team's projects. * * `admin` - Admin privileges on the team. They can create and remove projects, and can manage the team's memberships. */ teamRole?: 'contributor' | 'admin'; }; path: { /** * The ID or slug of the organization the resource belongs to. */ organization_id_or_slug: string; /** * The ID of the organization member to change */ member_id: string; /** * The ID or slug of the team the resource belongs to. */ team_id_or_slug: string; }; query?: never; url: '/organizations/{organization_id_or_slug}/members/{member_id}/teams/{team_id_or_slug}/'; }; export type UpdateOrganizationMemberTeamErrors = { /** * Bad Request */ 400: unknown; /** * Not Found */ 404: unknown; }; export type UpdateOrganizationMemberTeamResponses = { 200: { /** * Whether the team membership is active. An inactive membership removes the team from the member's default list, but the member can rejoin without a request */ isActive: boolean; /** * ID of the member's team role */ teamRole: 'contributor' | 'admin'; }; }; export type UpdateOrganizationMemberTeamResponse = UpdateOrganizationMemberTeamResponses[keyof UpdateOrganizationMemberTeamResponses]; export type ListOrganizationMonitorsData = { body?: never; path: { /** * The ID or slug of the organization the resource belongs to. */ organization_id_or_slug: string; }; query?: { /** * The IDs or slugs of projects to filter by. Project slugs are unique within each organization. Omit this parameter to include all accessible projects. `-1` is also accepted to include all accessible projects. * For example, the following are valid parameters: * - `/?project=1234&project=56789` * - `/?project=android&project=javascript-react` * - `/?project=-1` * */ project?: Array; /** * The name of environments to filter by. */ environment?: Array; /** * The owner of the monitor, in the format `user:id` or `team:id`. May be specified multiple times. */ owner?: string; /** * A pointer to the last object fetched and its sort order; used to retrieve the next or previous results. */ cursor?: string; }; url: '/organizations/{organization_id_or_slug}/monitors/'; }; export type ListOrganizationMonitorsErrors = { /** * Bad Request */ 400: unknown; /** * Unauthorized */ 401: unknown; /** * Forbidden */ 403: unknown; /** * Not Found */ 404: unknown; }; export type ListOrganizationMonitorsResponses = { 200: Array<{ /** * ID of the monitor */ id: string; /** * Name of the monitor */ name: string; /** * Slug that identifies the monitor in the organization */ slug: string; /** * Status of the monitor. Disabled monitors don't accept check-ins */ status: 'active' | 'disabled' | 'pending_deletion' | 'deletion_in_progress'; /** * Whether incidents are muted in all of the monitor's environments */ isMuted: boolean; /** * Whether the most recent check-in was an upsert check-in */ isUpserting: boolean; /** * Configuration of the monitor */ config: { /** * Type of schedule: crontab or interval */ schedule_type: 'crontab' | 'interval'; /** * Schedule of the monitor: a crontab string, or a [value, unit] pair for intervals, such as [1, "day"] */ schedule: string | Array; /** * How long in minutes after the expected check-in time to wait before the check-in counts as missed */ checkin_margin: number | null; /** * How long in minutes a check-in can stay in progress before it counts as failed */ max_runtime: number | null; /** * Timezone the schedule is evaluated in, as a tz database name */ timezone: string | null; /** * Number of consecutive missed or failed check-ins before an issue is created */ failure_issue_threshold: number | null; /** * Number of consecutive successful check-ins before the issue is resolved */ recovery_threshold: number | null; /** * ID of the alert rule linked to the monitor */ alert_rule_id: number | null; }; /** * When the monitor was created (ISO 8601) */ dateCreated: string; /** * Project the monitor belongs to */ project: { /** * Counts of non-transaction events per interval over the requested stats period, as [timestamp, count] pairs. Only included when a stats period is requested */ stats?: Array> | { [key: string]: number; }; /** * Counts of transactions per interval over the requested stats period, as [timestamp, count] pairs. Only included when transaction stats are requested */ transactionStats?: Array>; /** * Crash-free session rates for the current and previous stats period. Only included when session stats are requested */ sessionStats?: { /** * Crash-free rate in the current period, as a percentage. Null when there's no session data */ currentCrashFreeRate: number | null; /** * Crash-free rate in the previous period, as a percentage. Null when there's no session data */ previousCrashFreeRate: number | null; /** * Whether the project has release health (session) data */ hasHealthData: boolean; }; /** * ID of the project */ id: string; /** * Slug of the project */ slug: string; /** * Name of the project */ name: string; /** * Platform of the project */ platform: string | null; /** * When the project was created (ISO 8601) */ dateCreated: string; /** * Whether the requesting user bookmarked the project */ isBookmarked: boolean; /** * Whether the requesting user is a member of a team with access to the project */ isMember: boolean; /** * Features enabled for the project */ features: Array; /** * When the project received its first event (ISO 8601) */ firstEvent: string | null; /** * Whether the project has sent transactions */ firstTransactionEvent: boolean; /** * Scopes the requesting user has on the project through team membership and organization role */ access: Array; /** * Whether the requesting user has access to the project */ hasAccess: boolean; /** * Whether the project has sent user feedback */ hasFeedbacks: boolean; /** * Whether the project has sent feature flags */ hasFlags: boolean; /** * Whether the project has sent an event with a minified stack trace */ hasMinifiedStackTrace: boolean; /** * Whether the project has cron monitors */ hasMonitors: boolean; /** * Whether the project has sent user feedback from the user feedback widget */ hasNewFeedbacks: boolean; /** * Whether the project has sent profiles */ hasProfiles: boolean; /** * Whether the project has sent replays */ hasReplays: boolean; /** * Whether the project has sent sessions */ hasSessions: boolean; /** * Whether the project has sent HTTP request spans used by Insights */ hasInsightsHttp: boolean; /** * Whether the project has sent database spans used by Insights */ hasInsightsDb: boolean; /** * Whether the project has sent asset spans used by Insights */ hasInsightsAssets: boolean; /** * Whether the project has sent app start spans used by Insights */ hasInsightsAppStart: boolean; /** * Whether the project has sent screen load spans used by Insights */ hasInsightsScreenLoad: boolean; /** * Whether the project has sent web vitals spans used by Insights */ hasInsightsVitals: boolean; /** * Whether the project has sent cache spans used by Insights */ hasInsightsCaches: boolean; /** * Whether the project has sent queue spans used by Insights */ hasInsightsQueues: boolean; /** * Whether the project has sent AI agent spans used by Insights */ hasInsightsAgentMonitoring: boolean; /** * Whether the project has sent MCP spans used by Insights */ hasInsightsMCP: boolean; /** * Whether the project has sent logs. Always true outside sentry.io */ hasLogs: boolean; /** * Whether the project has sent trace metrics. Always true outside sentry.io */ hasTraceMetrics: boolean; /** * Whether this is the Sentry install's own internal project */ isInternal: boolean; /** * Whether the project is public */ isPublic: boolean; /** * Avatar of the project. Always a letter avatar */ avatar: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Hex color code for the project, derived from its slug unless set explicitly */ color: string; /** * Status of the project: active, deleted, or unknown */ status: string; }; /** * Environments the monitor has received check-ins for */ environments: Array<{ /** * Name of the environment */ name: string; /** * Status of the monitor in the environment */ status: 'active' | 'disabled' | 'pending_deletion' | 'deletion_in_progress' | 'ok' | 'error'; /** * Whether incidents are muted for the monitor in the environment */ isMuted: boolean; /** * When the monitor was created (ISO 8601) */ dateCreated: string; /** * When the most recent check-in was received, not counting missed check-ins (ISO 8601) */ lastCheckIn: string | null; /** * When the next check-in is expected (ISO 8601) */ nextCheckIn: string | null; /** * Latest time the next check-in can arrive before it counts as missed (ISO 8601) */ nextCheckInLatest: string | null; /** * Unresolved incident for the monitor in the environment. Null when there's none */ activeIncident: { /** * When the incident started (ISO 8601) */ startingTimestamp: string | null; /** * When the incident was resolved (ISO 8601) */ resolvingTimestamp: string | null; /** * Details of the broken monitor notice for the incident. Null when there's none */ brokenNotice: { /** * When users were notified that the monitor environment looks broken (ISO 8601) */ userNotifiedTimestamp: string | null; /** * When the broken monitor environment was muted (ISO 8601) */ environmentMutedTimestamp: string | null; } | null; } | null; }>; /** * Team or user that owns the monitor. Null when there's no owner */ owner: { /** * Whether the actor is a user or a team */ type: 'user' | 'team'; /** * ID of the user or team */ id: string; /** * Display name of the user, or slug of the team */ name: string; /** * Email address of the user. Only set for users */ email?: string; } | null; }>; }; export type ListOrganizationMonitorsResponse = ListOrganizationMonitorsResponses[keyof ListOrganizationMonitorsResponses]; export type CreateOrganizationMonitorData = { /** * Allows parameters to be defined in snake case, but passed as camel case. * * Errors are output in camel case. */ body: { /** * The project ID or slug to associate the monitor to. */ project: string; /** * Name of the monitor. Used for notifications. If not set the slug will be derived from your monitor name. */ name: string; /** * The configuration for the monitor. */ config: { /** * Currently supports "crontab" or "interval" * * * `crontab` * * `interval` */ schedule_type?: 'crontab' | 'interval'; /** * Varies depending on the schedule_type. Is either a crontab string, or a 2 element tuple for intervals (e.g. [1, 'day']) */ schedule: unknown; /** * How long (in minutes) after the expected checkin time will we wait until we consider the checkin to have been missed. */ checkin_margin?: number | null; /** * How long (in minutes) is the checkin allowed to run for in CheckInStatus.IN_PROGRESS before it is considered failed. Maximum 10080 (7 days). */ max_runtime?: number | null; /** * tz database style timezone string * * * `Africa/Abidjan` * * `Africa/Accra` * * `Africa/Addis_Ababa` * * `Africa/Algiers` * * `Africa/Asmara` * * `Africa/Asmera` * * `Africa/Bamako` * * `Africa/Bangui` * * `Africa/Banjul` * * `Africa/Bissau` * * `Africa/Blantyre` * * `Africa/Brazzaville` * * `Africa/Bujumbura` * * `Africa/Cairo` * * `Africa/Casablanca` * * `Africa/Ceuta` * * `Africa/Conakry` * * `Africa/Dakar` * * `Africa/Dar_es_Salaam` * * `Africa/Djibouti` * * `Africa/Douala` * * `Africa/El_Aaiun` * * `Africa/Freetown` * * `Africa/Gaborone` * * `Africa/Harare` * * `Africa/Johannesburg` * * `Africa/Juba` * * `Africa/Kampala` * * `Africa/Khartoum` * * `Africa/Kigali` * * `Africa/Kinshasa` * * `Africa/Lagos` * * `Africa/Libreville` * * `Africa/Lome` * * `Africa/Luanda` * * `Africa/Lubumbashi` * * `Africa/Lusaka` * * `Africa/Malabo` * * `Africa/Maputo` * * `Africa/Maseru` * * `Africa/Mbabane` * * `Africa/Mogadishu` * * `Africa/Monrovia` * * `Africa/Nairobi` * * `Africa/Ndjamena` * * `Africa/Niamey` * * `Africa/Nouakchott` * * `Africa/Ouagadougou` * * `Africa/Porto-Novo` * * `Africa/Sao_Tome` * * `Africa/Timbuktu` * * `Africa/Tripoli` * * `Africa/Tunis` * * `Africa/Windhoek` * * `America/Adak` * * `America/Anchorage` * * `America/Anguilla` * * `America/Antigua` * * `America/Araguaina` * * `America/Argentina/Buenos_Aires` * * `America/Argentina/Catamarca` * * `America/Argentina/ComodRivadavia` * * `America/Argentina/Cordoba` * * `America/Argentina/Jujuy` * * `America/Argentina/La_Rioja` * * `America/Argentina/Mendoza` * * `America/Argentina/Rio_Gallegos` * * `America/Argentina/Salta` * * `America/Argentina/San_Juan` * * `America/Argentina/San_Luis` * * `America/Argentina/Tucuman` * * `America/Argentina/Ushuaia` * * `America/Aruba` * * `America/Asuncion` * * `America/Atikokan` * * `America/Atka` * * `America/Bahia` * * `America/Bahia_Banderas` * * `America/Barbados` * * `America/Belem` * * `America/Belize` * * `America/Blanc-Sablon` * * `America/Boa_Vista` * * `America/Bogota` * * `America/Boise` * * `America/Buenos_Aires` * * `America/Cambridge_Bay` * * `America/Campo_Grande` * * `America/Cancun` * * `America/Caracas` * * `America/Catamarca` * * `America/Cayenne` * * `America/Cayman` * * `America/Chicago` * * `America/Chihuahua` * * `America/Ciudad_Juarez` * * `America/Coral_Harbour` * * `America/Cordoba` * * `America/Costa_Rica` * * `America/Coyhaique` * * `America/Creston` * * `America/Cuiaba` * * `America/Curacao` * * `America/Danmarkshavn` * * `America/Dawson` * * `America/Dawson_Creek` * * `America/Denver` * * `America/Detroit` * * `America/Dominica` * * `America/Edmonton` * * `America/Eirunepe` * * `America/El_Salvador` * * `America/Ensenada` * * `America/Fort_Nelson` * * `America/Fort_Wayne` * * `America/Fortaleza` * * `America/Glace_Bay` * * `America/Godthab` * * `America/Goose_Bay` * * `America/Grand_Turk` * * `America/Grenada` * * `America/Guadeloupe` * * `America/Guatemala` * * `America/Guayaquil` * * `America/Guyana` * * `America/Halifax` * * `America/Havana` * * `America/Hermosillo` * * `America/Indiana/Indianapolis` * * `America/Indiana/Knox` * * `America/Indiana/Marengo` * * `America/Indiana/Petersburg` * * `America/Indiana/Tell_City` * * `America/Indiana/Vevay` * * `America/Indiana/Vincennes` * * `America/Indiana/Winamac` * * `America/Indianapolis` * * `America/Inuvik` * * `America/Iqaluit` * * `America/Jamaica` * * `America/Jujuy` * * `America/Juneau` * * `America/Kentucky/Louisville` * * `America/Kentucky/Monticello` * * `America/Knox_IN` * * `America/Kralendijk` * * `America/La_Paz` * * `America/Lima` * * `America/Los_Angeles` * * `America/Louisville` * * `America/Lower_Princes` * * `America/Maceio` * * `America/Managua` * * `America/Manaus` * * `America/Marigot` * * `America/Martinique` * * `America/Matamoros` * * `America/Mazatlan` * * `America/Mendoza` * * `America/Menominee` * * `America/Merida` * * `America/Metlakatla` * * `America/Mexico_City` * * `America/Miquelon` * * `America/Moncton` * * `America/Monterrey` * * `America/Montevideo` * * `America/Montreal` * * `America/Montserrat` * * `America/Nassau` * * `America/New_York` * * `America/Nipigon` * * `America/Nome` * * `America/Noronha` * * `America/North_Dakota/Beulah` * * `America/North_Dakota/Center` * * `America/North_Dakota/New_Salem` * * `America/Nuuk` * * `America/Ojinaga` * * `America/Panama` * * `America/Pangnirtung` * * `America/Paramaribo` * * `America/Phoenix` * * `America/Port-au-Prince` * * `America/Port_of_Spain` * * `America/Porto_Acre` * * `America/Porto_Velho` * * `America/Puerto_Rico` * * `America/Punta_Arenas` * * `America/Rainy_River` * * `America/Rankin_Inlet` * * `America/Recife` * * `America/Regina` * * `America/Resolute` * * `America/Rio_Branco` * * `America/Rosario` * * `America/Santa_Isabel` * * `America/Santarem` * * `America/Santiago` * * `America/Santo_Domingo` * * `America/Sao_Paulo` * * `America/Scoresbysund` * * `America/Shiprock` * * `America/Sitka` * * `America/St_Barthelemy` * * `America/St_Johns` * * `America/St_Kitts` * * `America/St_Lucia` * * `America/St_Thomas` * * `America/St_Vincent` * * `America/Swift_Current` * * `America/Tegucigalpa` * * `America/Thule` * * `America/Thunder_Bay` * * `America/Tijuana` * * `America/Toronto` * * `America/Tortola` * * `America/Vancouver` * * `America/Virgin` * * `America/Whitehorse` * * `America/Winnipeg` * * `America/Yakutat` * * `America/Yellowknife` * * `Antarctica/Casey` * * `Antarctica/Davis` * * `Antarctica/DumontDUrville` * * `Antarctica/Macquarie` * * `Antarctica/Mawson` * * `Antarctica/McMurdo` * * `Antarctica/Palmer` * * `Antarctica/Rothera` * * `Antarctica/South_Pole` * * `Antarctica/Syowa` * * `Antarctica/Troll` * * `Antarctica/Vostok` * * `Arctic/Longyearbyen` * * `Asia/Aden` * * `Asia/Almaty` * * `Asia/Amman` * * `Asia/Anadyr` * * `Asia/Aqtau` * * `Asia/Aqtobe` * * `Asia/Ashgabat` * * `Asia/Ashkhabad` * * `Asia/Atyrau` * * `Asia/Baghdad` * * `Asia/Bahrain` * * `Asia/Baku` * * `Asia/Bangkok` * * `Asia/Barnaul` * * `Asia/Beirut` * * `Asia/Bishkek` * * `Asia/Brunei` * * `Asia/Calcutta` * * `Asia/Chita` * * `Asia/Choibalsan` * * `Asia/Chongqing` * * `Asia/Chungking` * * `Asia/Colombo` * * `Asia/Dacca` * * `Asia/Damascus` * * `Asia/Dhaka` * * `Asia/Dili` * * `Asia/Dubai` * * `Asia/Dushanbe` * * `Asia/Famagusta` * * `Asia/Gaza` * * `Asia/Harbin` * * `Asia/Hebron` * * `Asia/Ho_Chi_Minh` * * `Asia/Hong_Kong` * * `Asia/Hovd` * * `Asia/Irkutsk` * * `Asia/Istanbul` * * `Asia/Jakarta` * * `Asia/Jayapura` * * `Asia/Jerusalem` * * `Asia/Kabul` * * `Asia/Kamchatka` * * `Asia/Karachi` * * `Asia/Kashgar` * * `Asia/Kathmandu` * * `Asia/Katmandu` * * `Asia/Khandyga` * * `Asia/Kolkata` * * `Asia/Krasnoyarsk` * * `Asia/Kuala_Lumpur` * * `Asia/Kuching` * * `Asia/Kuwait` * * `Asia/Macao` * * `Asia/Macau` * * `Asia/Magadan` * * `Asia/Makassar` * * `Asia/Manila` * * `Asia/Muscat` * * `Asia/Nicosia` * * `Asia/Novokuznetsk` * * `Asia/Novosibirsk` * * `Asia/Omsk` * * `Asia/Oral` * * `Asia/Phnom_Penh` * * `Asia/Pontianak` * * `Asia/Pyongyang` * * `Asia/Qatar` * * `Asia/Qostanay` * * `Asia/Qyzylorda` * * `Asia/Rangoon` * * `Asia/Riyadh` * * `Asia/Saigon` * * `Asia/Sakhalin` * * `Asia/Samarkand` * * `Asia/Seoul` * * `Asia/Shanghai` * * `Asia/Singapore` * * `Asia/Srednekolymsk` * * `Asia/Taipei` * * `Asia/Tashkent` * * `Asia/Tbilisi` * * `Asia/Tehran` * * `Asia/Tel_Aviv` * * `Asia/Thimbu` * * `Asia/Thimphu` * * `Asia/Tokyo` * * `Asia/Tomsk` * * `Asia/Ujung_Pandang` * * `Asia/Ulaanbaatar` * * `Asia/Ulan_Bator` * * `Asia/Urumqi` * * `Asia/Ust-Nera` * * `Asia/Vientiane` * * `Asia/Vladivostok` * * `Asia/Yakutsk` * * `Asia/Yangon` * * `Asia/Yekaterinburg` * * `Asia/Yerevan` * * `Atlantic/Azores` * * `Atlantic/Bermuda` * * `Atlantic/Canary` * * `Atlantic/Cape_Verde` * * `Atlantic/Faeroe` * * `Atlantic/Faroe` * * `Atlantic/Jan_Mayen` * * `Atlantic/Madeira` * * `Atlantic/Reykjavik` * * `Atlantic/South_Georgia` * * `Atlantic/St_Helena` * * `Atlantic/Stanley` * * `Australia/ACT` * * `Australia/Adelaide` * * `Australia/Brisbane` * * `Australia/Broken_Hill` * * `Australia/Canberra` * * `Australia/Currie` * * `Australia/Darwin` * * `Australia/Eucla` * * `Australia/Hobart` * * `Australia/LHI` * * `Australia/Lindeman` * * `Australia/Lord_Howe` * * `Australia/Melbourne` * * `Australia/NSW` * * `Australia/North` * * `Australia/Perth` * * `Australia/Queensland` * * `Australia/South` * * `Australia/Sydney` * * `Australia/Tasmania` * * `Australia/Victoria` * * `Australia/West` * * `Australia/Yancowinna` * * `Brazil/Acre` * * `Brazil/DeNoronha` * * `Brazil/East` * * `Brazil/West` * * `CET` * * `CST6CDT` * * `Canada/Atlantic` * * `Canada/Central` * * `Canada/Eastern` * * `Canada/Mountain` * * `Canada/Newfoundland` * * `Canada/Pacific` * * `Canada/Saskatchewan` * * `Canada/Yukon` * * `Chile/Continental` * * `Chile/EasterIsland` * * `Cuba` * * `EET` * * `EST` * * `EST5EDT` * * `Egypt` * * `Eire` * * `Etc/GMT` * * `Etc/GMT+0` * * `Etc/GMT+1` * * `Etc/GMT+10` * * `Etc/GMT+11` * * `Etc/GMT+12` * * `Etc/GMT+2` * * `Etc/GMT+3` * * `Etc/GMT+4` * * `Etc/GMT+5` * * `Etc/GMT+6` * * `Etc/GMT+7` * * `Etc/GMT+8` * * `Etc/GMT+9` * * `Etc/GMT-0` * * `Etc/GMT-1` * * `Etc/GMT-10` * * `Etc/GMT-11` * * `Etc/GMT-12` * * `Etc/GMT-13` * * `Etc/GMT-14` * * `Etc/GMT-2` * * `Etc/GMT-3` * * `Etc/GMT-4` * * `Etc/GMT-5` * * `Etc/GMT-6` * * `Etc/GMT-7` * * `Etc/GMT-8` * * `Etc/GMT-9` * * `Etc/GMT0` * * `Etc/Greenwich` * * `Etc/UCT` * * `Etc/UTC` * * `Etc/Universal` * * `Etc/Zulu` * * `Europe/Amsterdam` * * `Europe/Andorra` * * `Europe/Astrakhan` * * `Europe/Athens` * * `Europe/Belfast` * * `Europe/Belgrade` * * `Europe/Berlin` * * `Europe/Bratislava` * * `Europe/Brussels` * * `Europe/Bucharest` * * `Europe/Budapest` * * `Europe/Busingen` * * `Europe/Chisinau` * * `Europe/Copenhagen` * * `Europe/Dublin` * * `Europe/Gibraltar` * * `Europe/Guernsey` * * `Europe/Helsinki` * * `Europe/Isle_of_Man` * * `Europe/Istanbul` * * `Europe/Jersey` * * `Europe/Kaliningrad` * * `Europe/Kiev` * * `Europe/Kirov` * * `Europe/Kyiv` * * `Europe/Lisbon` * * `Europe/Ljubljana` * * `Europe/London` * * `Europe/Luxembourg` * * `Europe/Madrid` * * `Europe/Malta` * * `Europe/Mariehamn` * * `Europe/Minsk` * * `Europe/Monaco` * * `Europe/Moscow` * * `Europe/Nicosia` * * `Europe/Oslo` * * `Europe/Paris` * * `Europe/Podgorica` * * `Europe/Prague` * * `Europe/Riga` * * `Europe/Rome` * * `Europe/Samara` * * `Europe/San_Marino` * * `Europe/Sarajevo` * * `Europe/Saratov` * * `Europe/Simferopol` * * `Europe/Skopje` * * `Europe/Sofia` * * `Europe/Stockholm` * * `Europe/Tallinn` * * `Europe/Tirane` * * `Europe/Tiraspol` * * `Europe/Ulyanovsk` * * `Europe/Uzhgorod` * * `Europe/Vaduz` * * `Europe/Vatican` * * `Europe/Vienna` * * `Europe/Vilnius` * * `Europe/Volgograd` * * `Europe/Warsaw` * * `Europe/Zagreb` * * `Europe/Zaporozhye` * * `Europe/Zurich` * * `GB` * * `GB-Eire` * * `GMT` * * `GMT+0` * * `GMT-0` * * `GMT0` * * `Greenwich` * * `HST` * * `Hongkong` * * `Iceland` * * `Indian/Antananarivo` * * `Indian/Chagos` * * `Indian/Christmas` * * `Indian/Cocos` * * `Indian/Comoro` * * `Indian/Kerguelen` * * `Indian/Mahe` * * `Indian/Maldives` * * `Indian/Mauritius` * * `Indian/Mayotte` * * `Indian/Reunion` * * `Iran` * * `Israel` * * `Jamaica` * * `Japan` * * `Kwajalein` * * `Libya` * * `MET` * * `MST` * * `MST7MDT` * * `Mexico/BajaNorte` * * `Mexico/BajaSur` * * `Mexico/General` * * `NZ` * * `NZ-CHAT` * * `Navajo` * * `PRC` * * `PST8PDT` * * `Pacific/Apia` * * `Pacific/Auckland` * * `Pacific/Bougainville` * * `Pacific/Chatham` * * `Pacific/Chuuk` * * `Pacific/Easter` * * `Pacific/Efate` * * `Pacific/Enderbury` * * `Pacific/Fakaofo` * * `Pacific/Fiji` * * `Pacific/Funafuti` * * `Pacific/Galapagos` * * `Pacific/Gambier` * * `Pacific/Guadalcanal` * * `Pacific/Guam` * * `Pacific/Honolulu` * * `Pacific/Johnston` * * `Pacific/Kanton` * * `Pacific/Kiritimati` * * `Pacific/Kosrae` * * `Pacific/Kwajalein` * * `Pacific/Majuro` * * `Pacific/Marquesas` * * `Pacific/Midway` * * `Pacific/Nauru` * * `Pacific/Niue` * * `Pacific/Norfolk` * * `Pacific/Noumea` * * `Pacific/Pago_Pago` * * `Pacific/Palau` * * `Pacific/Pitcairn` * * `Pacific/Pohnpei` * * `Pacific/Ponape` * * `Pacific/Port_Moresby` * * `Pacific/Rarotonga` * * `Pacific/Saipan` * * `Pacific/Samoa` * * `Pacific/Tahiti` * * `Pacific/Tarawa` * * `Pacific/Tongatapu` * * `Pacific/Truk` * * `Pacific/Wake` * * `Pacific/Wallis` * * `Pacific/Yap` * * `Poland` * * `Portugal` * * `ROC` * * `ROK` * * `Singapore` * * `Turkey` * * `UCT` * * `US/Alaska` * * `US/Aleutian` * * `US/Arizona` * * `US/Central` * * `US/East-Indiana` * * `US/Eastern` * * `US/Hawaii` * * `US/Indiana-Starke` * * `US/Michigan` * * `US/Mountain` * * `US/Pacific` * * `US/Samoa` * * `UTC` * * `Universal` * * `W-SU` * * `WET` * * `Zulu` * * `localtime` */ timezone?: 'Africa/Abidjan' | 'Africa/Accra' | 'Africa/Addis_Ababa' | 'Africa/Algiers' | 'Africa/Asmara' | 'Africa/Asmera' | 'Africa/Bamako' | 'Africa/Bangui' | 'Africa/Banjul' | 'Africa/Bissau' | 'Africa/Blantyre' | 'Africa/Brazzaville' | 'Africa/Bujumbura' | 'Africa/Cairo' | 'Africa/Casablanca' | 'Africa/Ceuta' | 'Africa/Conakry' | 'Africa/Dakar' | 'Africa/Dar_es_Salaam' | 'Africa/Djibouti' | 'Africa/Douala' | 'Africa/El_Aaiun' | 'Africa/Freetown' | 'Africa/Gaborone' | 'Africa/Harare' | 'Africa/Johannesburg' | 'Africa/Juba' | 'Africa/Kampala' | 'Africa/Khartoum' | 'Africa/Kigali' | 'Africa/Kinshasa' | 'Africa/Lagos' | 'Africa/Libreville' | 'Africa/Lome' | 'Africa/Luanda' | 'Africa/Lubumbashi' | 'Africa/Lusaka' | 'Africa/Malabo' | 'Africa/Maputo' | 'Africa/Maseru' | 'Africa/Mbabane' | 'Africa/Mogadishu' | 'Africa/Monrovia' | 'Africa/Nairobi' | 'Africa/Ndjamena' | 'Africa/Niamey' | 'Africa/Nouakchott' | 'Africa/Ouagadougou' | 'Africa/Porto-Novo' | 'Africa/Sao_Tome' | 'Africa/Timbuktu' | 'Africa/Tripoli' | 'Africa/Tunis' | 'Africa/Windhoek' | 'America/Adak' | 'America/Anchorage' | 'America/Anguilla' | 'America/Antigua' | 'America/Araguaina' | 'America/Argentina/Buenos_Aires' | 'America/Argentina/Catamarca' | 'America/Argentina/ComodRivadavia' | 'America/Argentina/Cordoba' | 'America/Argentina/Jujuy' | 'America/Argentina/La_Rioja' | 'America/Argentina/Mendoza' | 'America/Argentina/Rio_Gallegos' | 'America/Argentina/Salta' | 'America/Argentina/San_Juan' | 'America/Argentina/San_Luis' | 'America/Argentina/Tucuman' | 'America/Argentina/Ushuaia' | 'America/Aruba' | 'America/Asuncion' | 'America/Atikokan' | 'America/Atka' | 'America/Bahia' | 'America/Bahia_Banderas' | 'America/Barbados' | 'America/Belem' | 'America/Belize' | 'America/Blanc-Sablon' | 'America/Boa_Vista' | 'America/Bogota' | 'America/Boise' | 'America/Buenos_Aires' | 'America/Cambridge_Bay' | 'America/Campo_Grande' | 'America/Cancun' | 'America/Caracas' | 'America/Catamarca' | 'America/Cayenne' | 'America/Cayman' | 'America/Chicago' | 'America/Chihuahua' | 'America/Ciudad_Juarez' | 'America/Coral_Harbour' | 'America/Cordoba' | 'America/Costa_Rica' | 'America/Coyhaique' | 'America/Creston' | 'America/Cuiaba' | 'America/Curacao' | 'America/Danmarkshavn' | 'America/Dawson' | 'America/Dawson_Creek' | 'America/Denver' | 'America/Detroit' | 'America/Dominica' | 'America/Edmonton' | 'America/Eirunepe' | 'America/El_Salvador' | 'America/Ensenada' | 'America/Fort_Nelson' | 'America/Fort_Wayne' | 'America/Fortaleza' | 'America/Glace_Bay' | 'America/Godthab' | 'America/Goose_Bay' | 'America/Grand_Turk' | 'America/Grenada' | 'America/Guadeloupe' | 'America/Guatemala' | 'America/Guayaquil' | 'America/Guyana' | 'America/Halifax' | 'America/Havana' | 'America/Hermosillo' | 'America/Indiana/Indianapolis' | 'America/Indiana/Knox' | 'America/Indiana/Marengo' | 'America/Indiana/Petersburg' | 'America/Indiana/Tell_City' | 'America/Indiana/Vevay' | 'America/Indiana/Vincennes' | 'America/Indiana/Winamac' | 'America/Indianapolis' | 'America/Inuvik' | 'America/Iqaluit' | 'America/Jamaica' | 'America/Jujuy' | 'America/Juneau' | 'America/Kentucky/Louisville' | 'America/Kentucky/Monticello' | 'America/Knox_IN' | 'America/Kralendijk' | 'America/La_Paz' | 'America/Lima' | 'America/Los_Angeles' | 'America/Louisville' | 'America/Lower_Princes' | 'America/Maceio' | 'America/Managua' | 'America/Manaus' | 'America/Marigot' | 'America/Martinique' | 'America/Matamoros' | 'America/Mazatlan' | 'America/Mendoza' | 'America/Menominee' | 'America/Merida' | 'America/Metlakatla' | 'America/Mexico_City' | 'America/Miquelon' | 'America/Moncton' | 'America/Monterrey' | 'America/Montevideo' | 'America/Montreal' | 'America/Montserrat' | 'America/Nassau' | 'America/New_York' | 'America/Nipigon' | 'America/Nome' | 'America/Noronha' | 'America/North_Dakota/Beulah' | 'America/North_Dakota/Center' | 'America/North_Dakota/New_Salem' | 'America/Nuuk' | 'America/Ojinaga' | 'America/Panama' | 'America/Pangnirtung' | 'America/Paramaribo' | 'America/Phoenix' | 'America/Port-au-Prince' | 'America/Port_of_Spain' | 'America/Porto_Acre' | 'America/Porto_Velho' | 'America/Puerto_Rico' | 'America/Punta_Arenas' | 'America/Rainy_River' | 'America/Rankin_Inlet' | 'America/Recife' | 'America/Regina' | 'America/Resolute' | 'America/Rio_Branco' | 'America/Rosario' | 'America/Santa_Isabel' | 'America/Santarem' | 'America/Santiago' | 'America/Santo_Domingo' | 'America/Sao_Paulo' | 'America/Scoresbysund' | 'America/Shiprock' | 'America/Sitka' | 'America/St_Barthelemy' | 'America/St_Johns' | 'America/St_Kitts' | 'America/St_Lucia' | 'America/St_Thomas' | 'America/St_Vincent' | 'America/Swift_Current' | 'America/Tegucigalpa' | 'America/Thule' | 'America/Thunder_Bay' | 'America/Tijuana' | 'America/Toronto' | 'America/Tortola' | 'America/Vancouver' | 'America/Virgin' | 'America/Whitehorse' | 'America/Winnipeg' | 'America/Yakutat' | 'America/Yellowknife' | 'Antarctica/Casey' | 'Antarctica/Davis' | 'Antarctica/DumontDUrville' | 'Antarctica/Macquarie' | 'Antarctica/Mawson' | 'Antarctica/McMurdo' | 'Antarctica/Palmer' | 'Antarctica/Rothera' | 'Antarctica/South_Pole' | 'Antarctica/Syowa' | 'Antarctica/Troll' | 'Antarctica/Vostok' | 'Arctic/Longyearbyen' | 'Asia/Aden' | 'Asia/Almaty' | 'Asia/Amman' | 'Asia/Anadyr' | 'Asia/Aqtau' | 'Asia/Aqtobe' | 'Asia/Ashgabat' | 'Asia/Ashkhabad' | 'Asia/Atyrau' | 'Asia/Baghdad' | 'Asia/Bahrain' | 'Asia/Baku' | 'Asia/Bangkok' | 'Asia/Barnaul' | 'Asia/Beirut' | 'Asia/Bishkek' | 'Asia/Brunei' | 'Asia/Calcutta' | 'Asia/Chita' | 'Asia/Choibalsan' | 'Asia/Chongqing' | 'Asia/Chungking' | 'Asia/Colombo' | 'Asia/Dacca' | 'Asia/Damascus' | 'Asia/Dhaka' | 'Asia/Dili' | 'Asia/Dubai' | 'Asia/Dushanbe' | 'Asia/Famagusta' | 'Asia/Gaza' | 'Asia/Harbin' | 'Asia/Hebron' | 'Asia/Ho_Chi_Minh' | 'Asia/Hong_Kong' | 'Asia/Hovd' | 'Asia/Irkutsk' | 'Asia/Istanbul' | 'Asia/Jakarta' | 'Asia/Jayapura' | 'Asia/Jerusalem' | 'Asia/Kabul' | 'Asia/Kamchatka' | 'Asia/Karachi' | 'Asia/Kashgar' | 'Asia/Kathmandu' | 'Asia/Katmandu' | 'Asia/Khandyga' | 'Asia/Kolkata' | 'Asia/Krasnoyarsk' | 'Asia/Kuala_Lumpur' | 'Asia/Kuching' | 'Asia/Kuwait' | 'Asia/Macao' | 'Asia/Macau' | 'Asia/Magadan' | 'Asia/Makassar' | 'Asia/Manila' | 'Asia/Muscat' | 'Asia/Nicosia' | 'Asia/Novokuznetsk' | 'Asia/Novosibirsk' | 'Asia/Omsk' | 'Asia/Oral' | 'Asia/Phnom_Penh' | 'Asia/Pontianak' | 'Asia/Pyongyang' | 'Asia/Qatar' | 'Asia/Qostanay' | 'Asia/Qyzylorda' | 'Asia/Rangoon' | 'Asia/Riyadh' | 'Asia/Saigon' | 'Asia/Sakhalin' | 'Asia/Samarkand' | 'Asia/Seoul' | 'Asia/Shanghai' | 'Asia/Singapore' | 'Asia/Srednekolymsk' | 'Asia/Taipei' | 'Asia/Tashkent' | 'Asia/Tbilisi' | 'Asia/Tehran' | 'Asia/Tel_Aviv' | 'Asia/Thimbu' | 'Asia/Thimphu' | 'Asia/Tokyo' | 'Asia/Tomsk' | 'Asia/Ujung_Pandang' | 'Asia/Ulaanbaatar' | 'Asia/Ulan_Bator' | 'Asia/Urumqi' | 'Asia/Ust-Nera' | 'Asia/Vientiane' | 'Asia/Vladivostok' | 'Asia/Yakutsk' | 'Asia/Yangon' | 'Asia/Yekaterinburg' | 'Asia/Yerevan' | 'Atlantic/Azores' | 'Atlantic/Bermuda' | 'Atlantic/Canary' | 'Atlantic/Cape_Verde' | 'Atlantic/Faeroe' | 'Atlantic/Faroe' | 'Atlantic/Jan_Mayen' | 'Atlantic/Madeira' | 'Atlantic/Reykjavik' | 'Atlantic/South_Georgia' | 'Atlantic/St_Helena' | 'Atlantic/Stanley' | 'Australia/ACT' | 'Australia/Adelaide' | 'Australia/Brisbane' | 'Australia/Broken_Hill' | 'Australia/Canberra' | 'Australia/Currie' | 'Australia/Darwin' | 'Australia/Eucla' | 'Australia/Hobart' | 'Australia/LHI' | 'Australia/Lindeman' | 'Australia/Lord_Howe' | 'Australia/Melbourne' | 'Australia/NSW' | 'Australia/North' | 'Australia/Perth' | 'Australia/Queensland' | 'Australia/South' | 'Australia/Sydney' | 'Australia/Tasmania' | 'Australia/Victoria' | 'Australia/West' | 'Australia/Yancowinna' | 'Brazil/Acre' | 'Brazil/DeNoronha' | 'Brazil/East' | 'Brazil/West' | 'CET' | 'CST6CDT' | 'Canada/Atlantic' | 'Canada/Central' | 'Canada/Eastern' | 'Canada/Mountain' | 'Canada/Newfoundland' | 'Canada/Pacific' | 'Canada/Saskatchewan' | 'Canada/Yukon' | 'Chile/Continental' | 'Chile/EasterIsland' | 'Cuba' | 'EET' | 'EST' | 'EST5EDT' | 'Egypt' | 'Eire' | 'Etc/GMT' | 'Etc/GMT+0' | 'Etc/GMT+1' | 'Etc/GMT+10' | 'Etc/GMT+11' | 'Etc/GMT+12' | 'Etc/GMT+2' | 'Etc/GMT+3' | 'Etc/GMT+4' | 'Etc/GMT+5' | 'Etc/GMT+6' | 'Etc/GMT+7' | 'Etc/GMT+8' | 'Etc/GMT+9' | 'Etc/GMT-0' | 'Etc/GMT-1' | 'Etc/GMT-10' | 'Etc/GMT-11' | 'Etc/GMT-12' | 'Etc/GMT-13' | 'Etc/GMT-14' | 'Etc/GMT-2' | 'Etc/GMT-3' | 'Etc/GMT-4' | 'Etc/GMT-5' | 'Etc/GMT-6' | 'Etc/GMT-7' | 'Etc/GMT-8' | 'Etc/GMT-9' | 'Etc/GMT0' | 'Etc/Greenwich' | 'Etc/UCT' | 'Etc/UTC' | 'Etc/Universal' | 'Etc/Zulu' | 'Europe/Amsterdam' | 'Europe/Andorra' | 'Europe/Astrakhan' | 'Europe/Athens' | 'Europe/Belfast' | 'Europe/Belgrade' | 'Europe/Berlin' | 'Europe/Bratislava' | 'Europe/Brussels' | 'Europe/Bucharest' | 'Europe/Budapest' | 'Europe/Busingen' | 'Europe/Chisinau' | 'Europe/Copenhagen' | 'Europe/Dublin' | 'Europe/Gibraltar' | 'Europe/Guernsey' | 'Europe/Helsinki' | 'Europe/Isle_of_Man' | 'Europe/Istanbul' | 'Europe/Jersey' | 'Europe/Kaliningrad' | 'Europe/Kiev' | 'Europe/Kirov' | 'Europe/Kyiv' | 'Europe/Lisbon' | 'Europe/Ljubljana' | 'Europe/London' | 'Europe/Luxembourg' | 'Europe/Madrid' | 'Europe/Malta' | 'Europe/Mariehamn' | 'Europe/Minsk' | 'Europe/Monaco' | 'Europe/Moscow' | 'Europe/Nicosia' | 'Europe/Oslo' | 'Europe/Paris' | 'Europe/Podgorica' | 'Europe/Prague' | 'Europe/Riga' | 'Europe/Rome' | 'Europe/Samara' | 'Europe/San_Marino' | 'Europe/Sarajevo' | 'Europe/Saratov' | 'Europe/Simferopol' | 'Europe/Skopje' | 'Europe/Sofia' | 'Europe/Stockholm' | 'Europe/Tallinn' | 'Europe/Tirane' | 'Europe/Tiraspol' | 'Europe/Ulyanovsk' | 'Europe/Uzhgorod' | 'Europe/Vaduz' | 'Europe/Vatican' | 'Europe/Vienna' | 'Europe/Vilnius' | 'Europe/Volgograd' | 'Europe/Warsaw' | 'Europe/Zagreb' | 'Europe/Zaporozhye' | 'Europe/Zurich' | 'GB' | 'GB-Eire' | 'GMT' | 'GMT+0' | 'GMT-0' | 'GMT0' | 'Greenwich' | 'HST' | 'Hongkong' | 'Iceland' | 'Indian/Antananarivo' | 'Indian/Chagos' | 'Indian/Christmas' | 'Indian/Cocos' | 'Indian/Comoro' | 'Indian/Kerguelen' | 'Indian/Mahe' | 'Indian/Maldives' | 'Indian/Mauritius' | 'Indian/Mayotte' | 'Indian/Reunion' | 'Iran' | 'Israel' | 'Jamaica' | 'Japan' | 'Kwajalein' | 'Libya' | 'MET' | 'MST' | 'MST7MDT' | 'Mexico/BajaNorte' | 'Mexico/BajaSur' | 'Mexico/General' | 'NZ' | 'NZ-CHAT' | 'Navajo' | 'PRC' | 'PST8PDT' | 'Pacific/Apia' | 'Pacific/Auckland' | 'Pacific/Bougainville' | 'Pacific/Chatham' | 'Pacific/Chuuk' | 'Pacific/Easter' | 'Pacific/Efate' | 'Pacific/Enderbury' | 'Pacific/Fakaofo' | 'Pacific/Fiji' | 'Pacific/Funafuti' | 'Pacific/Galapagos' | 'Pacific/Gambier' | 'Pacific/Guadalcanal' | 'Pacific/Guam' | 'Pacific/Honolulu' | 'Pacific/Johnston' | 'Pacific/Kanton' | 'Pacific/Kiritimati' | 'Pacific/Kosrae' | 'Pacific/Kwajalein' | 'Pacific/Majuro' | 'Pacific/Marquesas' | 'Pacific/Midway' | 'Pacific/Nauru' | 'Pacific/Niue' | 'Pacific/Norfolk' | 'Pacific/Noumea' | 'Pacific/Pago_Pago' | 'Pacific/Palau' | 'Pacific/Pitcairn' | 'Pacific/Pohnpei' | 'Pacific/Ponape' | 'Pacific/Port_Moresby' | 'Pacific/Rarotonga' | 'Pacific/Saipan' | 'Pacific/Samoa' | 'Pacific/Tahiti' | 'Pacific/Tarawa' | 'Pacific/Tongatapu' | 'Pacific/Truk' | 'Pacific/Wake' | 'Pacific/Wallis' | 'Pacific/Yap' | 'Poland' | 'Portugal' | 'ROC' | 'ROK' | 'Singapore' | 'Turkey' | 'UCT' | 'US/Alaska' | 'US/Aleutian' | 'US/Arizona' | 'US/Central' | 'US/East-Indiana' | 'US/Eastern' | 'US/Hawaii' | 'US/Indiana-Starke' | 'US/Michigan' | 'US/Mountain' | 'US/Pacific' | 'US/Samoa' | 'UTC' | 'Universal' | 'W-SU' | 'WET' | 'Zulu' | 'localtime' | ''; /** * How many consecutive missed or failed check-ins in a row before creating a new issue. */ failure_issue_threshold?: number | null; /** * How many successful check-ins in a row before resolving an issue. */ recovery_threshold?: number | null; }; /** * Uniquely identifies your monitor within your organization. Changing this slug will require updates to any instrumented check-in calls. */ slug?: string; /** * Status of the monitor. Disabled monitors will not accept events and will not count towards the monitor quota. * * * `active` * * `disabled` */ status?: 'active' | 'disabled'; /** * The ID of the team or user that owns the monitor. (eg. user:51 or team:6) */ owner?: string | null; /** * Disable creation of monitor incidents */ is_muted?: boolean; }; path: { /** * The ID or slug of the organization the resource belongs to. */ organization_id_or_slug: string; }; query?: never; url: '/organizations/{organization_id_or_slug}/monitors/'; }; export type CreateOrganizationMonitorErrors = { /** * Bad Request */ 400: unknown; /** * Unauthorized */ 401: unknown; /** * Forbidden */ 403: unknown; /** * Not Found */ 404: unknown; }; export type CreateOrganizationMonitorResponses = { 201: { /** * ID of the monitor */ id: string; /** * Name of the monitor */ name: string; /** * Slug that identifies the monitor in the organization */ slug: string; /** * Status of the monitor. Disabled monitors don't accept check-ins */ status: 'active' | 'disabled' | 'pending_deletion' | 'deletion_in_progress'; /** * Whether incidents are muted in all of the monitor's environments */ isMuted: boolean; /** * Whether the most recent check-in was an upsert check-in */ isUpserting: boolean; /** * Configuration of the monitor */ config: { /** * Type of schedule: crontab or interval */ schedule_type: 'crontab' | 'interval'; /** * Schedule of the monitor: a crontab string, or a [value, unit] pair for intervals, such as [1, "day"] */ schedule: string | Array; /** * How long in minutes after the expected check-in time to wait before the check-in counts as missed */ checkin_margin: number | null; /** * How long in minutes a check-in can stay in progress before it counts as failed */ max_runtime: number | null; /** * Timezone the schedule is evaluated in, as a tz database name */ timezone: string | null; /** * Number of consecutive missed or failed check-ins before an issue is created */ failure_issue_threshold: number | null; /** * Number of consecutive successful check-ins before the issue is resolved */ recovery_threshold: number | null; /** * ID of the alert rule linked to the monitor */ alert_rule_id: number | null; }; /** * When the monitor was created (ISO 8601) */ dateCreated: string; /** * Project the monitor belongs to */ project: { /** * Counts of non-transaction events per interval over the requested stats period, as [timestamp, count] pairs. Only included when a stats period is requested */ stats?: Array> | { [key: string]: number; }; /** * Counts of transactions per interval over the requested stats period, as [timestamp, count] pairs. Only included when transaction stats are requested */ transactionStats?: Array>; /** * Crash-free session rates for the current and previous stats period. Only included when session stats are requested */ sessionStats?: { /** * Crash-free rate in the current period, as a percentage. Null when there's no session data */ currentCrashFreeRate: number | null; /** * Crash-free rate in the previous period, as a percentage. Null when there's no session data */ previousCrashFreeRate: number | null; /** * Whether the project has release health (session) data */ hasHealthData: boolean; }; /** * ID of the project */ id: string; /** * Slug of the project */ slug: string; /** * Name of the project */ name: string; /** * Platform of the project */ platform: string | null; /** * When the project was created (ISO 8601) */ dateCreated: string; /** * Whether the requesting user bookmarked the project */ isBookmarked: boolean; /** * Whether the requesting user is a member of a team with access to the project */ isMember: boolean; /** * Features enabled for the project */ features: Array; /** * When the project received its first event (ISO 8601) */ firstEvent: string | null; /** * Whether the project has sent transactions */ firstTransactionEvent: boolean; /** * Scopes the requesting user has on the project through team membership and organization role */ access: Array; /** * Whether the requesting user has access to the project */ hasAccess: boolean; /** * Whether the project has sent user feedback */ hasFeedbacks: boolean; /** * Whether the project has sent feature flags */ hasFlags: boolean; /** * Whether the project has sent an event with a minified stack trace */ hasMinifiedStackTrace: boolean; /** * Whether the project has cron monitors */ hasMonitors: boolean; /** * Whether the project has sent user feedback from the user feedback widget */ hasNewFeedbacks: boolean; /** * Whether the project has sent profiles */ hasProfiles: boolean; /** * Whether the project has sent replays */ hasReplays: boolean; /** * Whether the project has sent sessions */ hasSessions: boolean; /** * Whether the project has sent HTTP request spans used by Insights */ hasInsightsHttp: boolean; /** * Whether the project has sent database spans used by Insights */ hasInsightsDb: boolean; /** * Whether the project has sent asset spans used by Insights */ hasInsightsAssets: boolean; /** * Whether the project has sent app start spans used by Insights */ hasInsightsAppStart: boolean; /** * Whether the project has sent screen load spans used by Insights */ hasInsightsScreenLoad: boolean; /** * Whether the project has sent web vitals spans used by Insights */ hasInsightsVitals: boolean; /** * Whether the project has sent cache spans used by Insights */ hasInsightsCaches: boolean; /** * Whether the project has sent queue spans used by Insights */ hasInsightsQueues: boolean; /** * Whether the project has sent AI agent spans used by Insights */ hasInsightsAgentMonitoring: boolean; /** * Whether the project has sent MCP spans used by Insights */ hasInsightsMCP: boolean; /** * Whether the project has sent logs. Always true outside sentry.io */ hasLogs: boolean; /** * Whether the project has sent trace metrics. Always true outside sentry.io */ hasTraceMetrics: boolean; /** * Whether this is the Sentry install's own internal project */ isInternal: boolean; /** * Whether the project is public */ isPublic: boolean; /** * Avatar of the project. Always a letter avatar */ avatar: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Hex color code for the project, derived from its slug unless set explicitly */ color: string; /** * Status of the project: active, deleted, or unknown */ status: string; }; /** * Environments the monitor has received check-ins for */ environments: Array<{ /** * Name of the environment */ name: string; /** * Status of the monitor in the environment */ status: 'active' | 'disabled' | 'pending_deletion' | 'deletion_in_progress' | 'ok' | 'error'; /** * Whether incidents are muted for the monitor in the environment */ isMuted: boolean; /** * When the monitor was created (ISO 8601) */ dateCreated: string; /** * When the most recent check-in was received, not counting missed check-ins (ISO 8601) */ lastCheckIn: string | null; /** * When the next check-in is expected (ISO 8601) */ nextCheckIn: string | null; /** * Latest time the next check-in can arrive before it counts as missed (ISO 8601) */ nextCheckInLatest: string | null; /** * Unresolved incident for the monitor in the environment. Null when there's none */ activeIncident: { /** * When the incident started (ISO 8601) */ startingTimestamp: string | null; /** * When the incident was resolved (ISO 8601) */ resolvingTimestamp: string | null; /** * Details of the broken monitor notice for the incident. Null when there's none */ brokenNotice: { /** * When users were notified that the monitor environment looks broken (ISO 8601) */ userNotifiedTimestamp: string | null; /** * When the broken monitor environment was muted (ISO 8601) */ environmentMutedTimestamp: string | null; } | null; } | null; }>; /** * Team or user that owns the monitor. Null when there's no owner */ owner: { /** * Whether the actor is a user or a team */ type: 'user' | 'team'; /** * ID of the user or team */ id: string; /** * Display name of the user, or slug of the team */ name: string; /** * Email address of the user. Only set for users */ email?: string; } | null; }; }; export type CreateOrganizationMonitorResponse = CreateOrganizationMonitorResponses[keyof CreateOrganizationMonitorResponses]; export type ListOrganizationMonitorStatsData = { body?: never; path: { /** * The ID or slug of the organization the resource belongs to. */ organization_id_or_slug: string; }; query?: { /** * The GUIDs of the monitors to return stats for, up to 20. Monitors you can't access are left out. */ monitor?: Array; /** * Start of the time range, as a Unix timestamp in seconds. Defaults to one day before `until`. */ since?: number; /** * End of the time range, as a Unix timestamp in seconds. Defaults to now. */ until?: number; /** * Size of each bucket, as a number followed by `s`, `m`, `h` or `d`, such as `30m`. Defaults to a size picked for the time range. At most 2,500 buckets are allowed. */ resolution?: string; /** * The IDs or slugs of projects to filter by. Project slugs are unique within each organization. Omit this parameter to include all accessible projects. `-1` is also accepted to include all accessible projects. * For example, the following are valid parameters: * - `/?project=1234&project=56789` * - `/?project=android&project=javascript-react` * - `/?project=-1` * */ project?: Array; /** * The name of environments to filter by. */ environment?: Array; }; url: '/organizations/{organization_id_or_slug}/monitors-stats/'; }; export type ListOrganizationMonitorStatsErrors = { /** * Bad Request */ 400: unknown; /** * Forbidden */ 403: unknown; /** * Not Found */ 404: unknown; }; export type ListOrganizationMonitorStatsResponses = { 200: { [key: string]: Array>; }; }; export type ListOrganizationMonitorStatsResponse = ListOrganizationMonitorStatsResponses[keyof ListOrganizationMonitorStatsResponses]; export type DeleteOrganizationMonitorData = { body?: never; path: { /** * The ID or slug of the organization the resource belongs to. */ organization_id_or_slug: string; /** * The ID or slug of the monitor. */ monitor_id_or_slug: string; }; query?: { /** * The name of environments to filter by. */ environment?: Array; }; url: '/organizations/{organization_id_or_slug}/monitors/{monitor_id_or_slug}/'; }; export type DeleteOrganizationMonitorErrors = { /** * Unauthorized */ 401: unknown; /** * Forbidden */ 403: unknown; /** * Not Found */ 404: unknown; }; export type DeleteOrganizationMonitorResponses = { /** * Accepted */ 202: unknown; }; export type GetOrganizationMonitorData = { body?: never; path: { /** * The ID or slug of the organization the resource belongs to. */ organization_id_or_slug: string; /** * The ID or slug of the monitor. */ monitor_id_or_slug: string; }; query?: { /** * The name of environments to filter by. */ environment?: Array; }; url: '/organizations/{organization_id_or_slug}/monitors/{monitor_id_or_slug}/'; }; export type GetOrganizationMonitorErrors = { /** * Unauthorized */ 401: unknown; /** * Forbidden */ 403: unknown; /** * Not Found */ 404: unknown; }; export type GetOrganizationMonitorResponses = { 200: { /** * ID of the monitor */ id: string; /** * Name of the monitor */ name: string; /** * Slug that identifies the monitor in the organization */ slug: string; /** * Status of the monitor. Disabled monitors don't accept check-ins */ status: 'active' | 'disabled' | 'pending_deletion' | 'deletion_in_progress'; /** * Whether incidents are muted in all of the monitor's environments */ isMuted: boolean; /** * Whether the most recent check-in was an upsert check-in */ isUpserting: boolean; /** * Configuration of the monitor */ config: { /** * Type of schedule: crontab or interval */ schedule_type: 'crontab' | 'interval'; /** * Schedule of the monitor: a crontab string, or a [value, unit] pair for intervals, such as [1, "day"] */ schedule: string | Array; /** * How long in minutes after the expected check-in time to wait before the check-in counts as missed */ checkin_margin: number | null; /** * How long in minutes a check-in can stay in progress before it counts as failed */ max_runtime: number | null; /** * Timezone the schedule is evaluated in, as a tz database name */ timezone: string | null; /** * Number of consecutive missed or failed check-ins before an issue is created */ failure_issue_threshold: number | null; /** * Number of consecutive successful check-ins before the issue is resolved */ recovery_threshold: number | null; /** * ID of the alert rule linked to the monitor */ alert_rule_id: number | null; }; /** * When the monitor was created (ISO 8601) */ dateCreated: string; /** * Project the monitor belongs to */ project: { /** * Counts of non-transaction events per interval over the requested stats period, as [timestamp, count] pairs. Only included when a stats period is requested */ stats?: Array> | { [key: string]: number; }; /** * Counts of transactions per interval over the requested stats period, as [timestamp, count] pairs. Only included when transaction stats are requested */ transactionStats?: Array>; /** * Crash-free session rates for the current and previous stats period. Only included when session stats are requested */ sessionStats?: { /** * Crash-free rate in the current period, as a percentage. Null when there's no session data */ currentCrashFreeRate: number | null; /** * Crash-free rate in the previous period, as a percentage. Null when there's no session data */ previousCrashFreeRate: number | null; /** * Whether the project has release health (session) data */ hasHealthData: boolean; }; /** * ID of the project */ id: string; /** * Slug of the project */ slug: string; /** * Name of the project */ name: string; /** * Platform of the project */ platform: string | null; /** * When the project was created (ISO 8601) */ dateCreated: string; /** * Whether the requesting user bookmarked the project */ isBookmarked: boolean; /** * Whether the requesting user is a member of a team with access to the project */ isMember: boolean; /** * Features enabled for the project */ features: Array; /** * When the project received its first event (ISO 8601) */ firstEvent: string | null; /** * Whether the project has sent transactions */ firstTransactionEvent: boolean; /** * Scopes the requesting user has on the project through team membership and organization role */ access: Array; /** * Whether the requesting user has access to the project */ hasAccess: boolean; /** * Whether the project has sent user feedback */ hasFeedbacks: boolean; /** * Whether the project has sent feature flags */ hasFlags: boolean; /** * Whether the project has sent an event with a minified stack trace */ hasMinifiedStackTrace: boolean; /** * Whether the project has cron monitors */ hasMonitors: boolean; /** * Whether the project has sent user feedback from the user feedback widget */ hasNewFeedbacks: boolean; /** * Whether the project has sent profiles */ hasProfiles: boolean; /** * Whether the project has sent replays */ hasReplays: boolean; /** * Whether the project has sent sessions */ hasSessions: boolean; /** * Whether the project has sent HTTP request spans used by Insights */ hasInsightsHttp: boolean; /** * Whether the project has sent database spans used by Insights */ hasInsightsDb: boolean; /** * Whether the project has sent asset spans used by Insights */ hasInsightsAssets: boolean; /** * Whether the project has sent app start spans used by Insights */ hasInsightsAppStart: boolean; /** * Whether the project has sent screen load spans used by Insights */ hasInsightsScreenLoad: boolean; /** * Whether the project has sent web vitals spans used by Insights */ hasInsightsVitals: boolean; /** * Whether the project has sent cache spans used by Insights */ hasInsightsCaches: boolean; /** * Whether the project has sent queue spans used by Insights */ hasInsightsQueues: boolean; /** * Whether the project has sent AI agent spans used by Insights */ hasInsightsAgentMonitoring: boolean; /** * Whether the project has sent MCP spans used by Insights */ hasInsightsMCP: boolean; /** * Whether the project has sent logs. Always true outside sentry.io */ hasLogs: boolean; /** * Whether the project has sent trace metrics. Always true outside sentry.io */ hasTraceMetrics: boolean; /** * Whether this is the Sentry install's own internal project */ isInternal: boolean; /** * Whether the project is public */ isPublic: boolean; /** * Avatar of the project. Always a letter avatar */ avatar: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Hex color code for the project, derived from its slug unless set explicitly */ color: string; /** * Status of the project: active, deleted, or unknown */ status: string; }; /** * Environments the monitor has received check-ins for */ environments: Array<{ /** * Name of the environment */ name: string; /** * Status of the monitor in the environment */ status: 'active' | 'disabled' | 'pending_deletion' | 'deletion_in_progress' | 'ok' | 'error'; /** * Whether incidents are muted for the monitor in the environment */ isMuted: boolean; /** * When the monitor was created (ISO 8601) */ dateCreated: string; /** * When the most recent check-in was received, not counting missed check-ins (ISO 8601) */ lastCheckIn: string | null; /** * When the next check-in is expected (ISO 8601) */ nextCheckIn: string | null; /** * Latest time the next check-in can arrive before it counts as missed (ISO 8601) */ nextCheckInLatest: string | null; /** * Unresolved incident for the monitor in the environment. Null when there's none */ activeIncident: { /** * When the incident started (ISO 8601) */ startingTimestamp: string | null; /** * When the incident was resolved (ISO 8601) */ resolvingTimestamp: string | null; /** * Details of the broken monitor notice for the incident. Null when there's none */ brokenNotice: { /** * When users were notified that the monitor environment looks broken (ISO 8601) */ userNotifiedTimestamp: string | null; /** * When the broken monitor environment was muted (ISO 8601) */ environmentMutedTimestamp: string | null; } | null; } | null; }>; /** * Team or user that owns the monitor. Null when there's no owner */ owner: { /** * Whether the actor is a user or a team */ type: 'user' | 'team'; /** * ID of the user or team */ id: string; /** * Display name of the user, or slug of the team */ name: string; /** * Email address of the user. Only set for users */ email?: string; } | null; }; }; export type GetOrganizationMonitorResponse = GetOrganizationMonitorResponses[keyof GetOrganizationMonitorResponses]; export type UpdateOrganizationMonitorData = { /** * Allows parameters to be defined in snake case, but passed as camel case. * * Errors are output in camel case. */ body: { /** * The project ID or slug to associate the monitor to. */ project: string; /** * Name of the monitor. Used for notifications. If not set the slug will be derived from your monitor name. */ name: string; /** * The configuration for the monitor. */ config: { /** * Currently supports "crontab" or "interval" * * * `crontab` * * `interval` */ schedule_type?: 'crontab' | 'interval'; /** * Varies depending on the schedule_type. Is either a crontab string, or a 2 element tuple for intervals (e.g. [1, 'day']) */ schedule: unknown; /** * How long (in minutes) after the expected checkin time will we wait until we consider the checkin to have been missed. */ checkin_margin?: number | null; /** * How long (in minutes) is the checkin allowed to run for in CheckInStatus.IN_PROGRESS before it is considered failed. Maximum 10080 (7 days). */ max_runtime?: number | null; /** * tz database style timezone string * * * `Africa/Abidjan` * * `Africa/Accra` * * `Africa/Addis_Ababa` * * `Africa/Algiers` * * `Africa/Asmara` * * `Africa/Asmera` * * `Africa/Bamako` * * `Africa/Bangui` * * `Africa/Banjul` * * `Africa/Bissau` * * `Africa/Blantyre` * * `Africa/Brazzaville` * * `Africa/Bujumbura` * * `Africa/Cairo` * * `Africa/Casablanca` * * `Africa/Ceuta` * * `Africa/Conakry` * * `Africa/Dakar` * * `Africa/Dar_es_Salaam` * * `Africa/Djibouti` * * `Africa/Douala` * * `Africa/El_Aaiun` * * `Africa/Freetown` * * `Africa/Gaborone` * * `Africa/Harare` * * `Africa/Johannesburg` * * `Africa/Juba` * * `Africa/Kampala` * * `Africa/Khartoum` * * `Africa/Kigali` * * `Africa/Kinshasa` * * `Africa/Lagos` * * `Africa/Libreville` * * `Africa/Lome` * * `Africa/Luanda` * * `Africa/Lubumbashi` * * `Africa/Lusaka` * * `Africa/Malabo` * * `Africa/Maputo` * * `Africa/Maseru` * * `Africa/Mbabane` * * `Africa/Mogadishu` * * `Africa/Monrovia` * * `Africa/Nairobi` * * `Africa/Ndjamena` * * `Africa/Niamey` * * `Africa/Nouakchott` * * `Africa/Ouagadougou` * * `Africa/Porto-Novo` * * `Africa/Sao_Tome` * * `Africa/Timbuktu` * * `Africa/Tripoli` * * `Africa/Tunis` * * `Africa/Windhoek` * * `America/Adak` * * `America/Anchorage` * * `America/Anguilla` * * `America/Antigua` * * `America/Araguaina` * * `America/Argentina/Buenos_Aires` * * `America/Argentina/Catamarca` * * `America/Argentina/ComodRivadavia` * * `America/Argentina/Cordoba` * * `America/Argentina/Jujuy` * * `America/Argentina/La_Rioja` * * `America/Argentina/Mendoza` * * `America/Argentina/Rio_Gallegos` * * `America/Argentina/Salta` * * `America/Argentina/San_Juan` * * `America/Argentina/San_Luis` * * `America/Argentina/Tucuman` * * `America/Argentina/Ushuaia` * * `America/Aruba` * * `America/Asuncion` * * `America/Atikokan` * * `America/Atka` * * `America/Bahia` * * `America/Bahia_Banderas` * * `America/Barbados` * * `America/Belem` * * `America/Belize` * * `America/Blanc-Sablon` * * `America/Boa_Vista` * * `America/Bogota` * * `America/Boise` * * `America/Buenos_Aires` * * `America/Cambridge_Bay` * * `America/Campo_Grande` * * `America/Cancun` * * `America/Caracas` * * `America/Catamarca` * * `America/Cayenne` * * `America/Cayman` * * `America/Chicago` * * `America/Chihuahua` * * `America/Ciudad_Juarez` * * `America/Coral_Harbour` * * `America/Cordoba` * * `America/Costa_Rica` * * `America/Coyhaique` * * `America/Creston` * * `America/Cuiaba` * * `America/Curacao` * * `America/Danmarkshavn` * * `America/Dawson` * * `America/Dawson_Creek` * * `America/Denver` * * `America/Detroit` * * `America/Dominica` * * `America/Edmonton` * * `America/Eirunepe` * * `America/El_Salvador` * * `America/Ensenada` * * `America/Fort_Nelson` * * `America/Fort_Wayne` * * `America/Fortaleza` * * `America/Glace_Bay` * * `America/Godthab` * * `America/Goose_Bay` * * `America/Grand_Turk` * * `America/Grenada` * * `America/Guadeloupe` * * `America/Guatemala` * * `America/Guayaquil` * * `America/Guyana` * * `America/Halifax` * * `America/Havana` * * `America/Hermosillo` * * `America/Indiana/Indianapolis` * * `America/Indiana/Knox` * * `America/Indiana/Marengo` * * `America/Indiana/Petersburg` * * `America/Indiana/Tell_City` * * `America/Indiana/Vevay` * * `America/Indiana/Vincennes` * * `America/Indiana/Winamac` * * `America/Indianapolis` * * `America/Inuvik` * * `America/Iqaluit` * * `America/Jamaica` * * `America/Jujuy` * * `America/Juneau` * * `America/Kentucky/Louisville` * * `America/Kentucky/Monticello` * * `America/Knox_IN` * * `America/Kralendijk` * * `America/La_Paz` * * `America/Lima` * * `America/Los_Angeles` * * `America/Louisville` * * `America/Lower_Princes` * * `America/Maceio` * * `America/Managua` * * `America/Manaus` * * `America/Marigot` * * `America/Martinique` * * `America/Matamoros` * * `America/Mazatlan` * * `America/Mendoza` * * `America/Menominee` * * `America/Merida` * * `America/Metlakatla` * * `America/Mexico_City` * * `America/Miquelon` * * `America/Moncton` * * `America/Monterrey` * * `America/Montevideo` * * `America/Montreal` * * `America/Montserrat` * * `America/Nassau` * * `America/New_York` * * `America/Nipigon` * * `America/Nome` * * `America/Noronha` * * `America/North_Dakota/Beulah` * * `America/North_Dakota/Center` * * `America/North_Dakota/New_Salem` * * `America/Nuuk` * * `America/Ojinaga` * * `America/Panama` * * `America/Pangnirtung` * * `America/Paramaribo` * * `America/Phoenix` * * `America/Port-au-Prince` * * `America/Port_of_Spain` * * `America/Porto_Acre` * * `America/Porto_Velho` * * `America/Puerto_Rico` * * `America/Punta_Arenas` * * `America/Rainy_River` * * `America/Rankin_Inlet` * * `America/Recife` * * `America/Regina` * * `America/Resolute` * * `America/Rio_Branco` * * `America/Rosario` * * `America/Santa_Isabel` * * `America/Santarem` * * `America/Santiago` * * `America/Santo_Domingo` * * `America/Sao_Paulo` * * `America/Scoresbysund` * * `America/Shiprock` * * `America/Sitka` * * `America/St_Barthelemy` * * `America/St_Johns` * * `America/St_Kitts` * * `America/St_Lucia` * * `America/St_Thomas` * * `America/St_Vincent` * * `America/Swift_Current` * * `America/Tegucigalpa` * * `America/Thule` * * `America/Thunder_Bay` * * `America/Tijuana` * * `America/Toronto` * * `America/Tortola` * * `America/Vancouver` * * `America/Virgin` * * `America/Whitehorse` * * `America/Winnipeg` * * `America/Yakutat` * * `America/Yellowknife` * * `Antarctica/Casey` * * `Antarctica/Davis` * * `Antarctica/DumontDUrville` * * `Antarctica/Macquarie` * * `Antarctica/Mawson` * * `Antarctica/McMurdo` * * `Antarctica/Palmer` * * `Antarctica/Rothera` * * `Antarctica/South_Pole` * * `Antarctica/Syowa` * * `Antarctica/Troll` * * `Antarctica/Vostok` * * `Arctic/Longyearbyen` * * `Asia/Aden` * * `Asia/Almaty` * * `Asia/Amman` * * `Asia/Anadyr` * * `Asia/Aqtau` * * `Asia/Aqtobe` * * `Asia/Ashgabat` * * `Asia/Ashkhabad` * * `Asia/Atyrau` * * `Asia/Baghdad` * * `Asia/Bahrain` * * `Asia/Baku` * * `Asia/Bangkok` * * `Asia/Barnaul` * * `Asia/Beirut` * * `Asia/Bishkek` * * `Asia/Brunei` * * `Asia/Calcutta` * * `Asia/Chita` * * `Asia/Choibalsan` * * `Asia/Chongqing` * * `Asia/Chungking` * * `Asia/Colombo` * * `Asia/Dacca` * * `Asia/Damascus` * * `Asia/Dhaka` * * `Asia/Dili` * * `Asia/Dubai` * * `Asia/Dushanbe` * * `Asia/Famagusta` * * `Asia/Gaza` * * `Asia/Harbin` * * `Asia/Hebron` * * `Asia/Ho_Chi_Minh` * * `Asia/Hong_Kong` * * `Asia/Hovd` * * `Asia/Irkutsk` * * `Asia/Istanbul` * * `Asia/Jakarta` * * `Asia/Jayapura` * * `Asia/Jerusalem` * * `Asia/Kabul` * * `Asia/Kamchatka` * * `Asia/Karachi` * * `Asia/Kashgar` * * `Asia/Kathmandu` * * `Asia/Katmandu` * * `Asia/Khandyga` * * `Asia/Kolkata` * * `Asia/Krasnoyarsk` * * `Asia/Kuala_Lumpur` * * `Asia/Kuching` * * `Asia/Kuwait` * * `Asia/Macao` * * `Asia/Macau` * * `Asia/Magadan` * * `Asia/Makassar` * * `Asia/Manila` * * `Asia/Muscat` * * `Asia/Nicosia` * * `Asia/Novokuznetsk` * * `Asia/Novosibirsk` * * `Asia/Omsk` * * `Asia/Oral` * * `Asia/Phnom_Penh` * * `Asia/Pontianak` * * `Asia/Pyongyang` * * `Asia/Qatar` * * `Asia/Qostanay` * * `Asia/Qyzylorda` * * `Asia/Rangoon` * * `Asia/Riyadh` * * `Asia/Saigon` * * `Asia/Sakhalin` * * `Asia/Samarkand` * * `Asia/Seoul` * * `Asia/Shanghai` * * `Asia/Singapore` * * `Asia/Srednekolymsk` * * `Asia/Taipei` * * `Asia/Tashkent` * * `Asia/Tbilisi` * * `Asia/Tehran` * * `Asia/Tel_Aviv` * * `Asia/Thimbu` * * `Asia/Thimphu` * * `Asia/Tokyo` * * `Asia/Tomsk` * * `Asia/Ujung_Pandang` * * `Asia/Ulaanbaatar` * * `Asia/Ulan_Bator` * * `Asia/Urumqi` * * `Asia/Ust-Nera` * * `Asia/Vientiane` * * `Asia/Vladivostok` * * `Asia/Yakutsk` * * `Asia/Yangon` * * `Asia/Yekaterinburg` * * `Asia/Yerevan` * * `Atlantic/Azores` * * `Atlantic/Bermuda` * * `Atlantic/Canary` * * `Atlantic/Cape_Verde` * * `Atlantic/Faeroe` * * `Atlantic/Faroe` * * `Atlantic/Jan_Mayen` * * `Atlantic/Madeira` * * `Atlantic/Reykjavik` * * `Atlantic/South_Georgia` * * `Atlantic/St_Helena` * * `Atlantic/Stanley` * * `Australia/ACT` * * `Australia/Adelaide` * * `Australia/Brisbane` * * `Australia/Broken_Hill` * * `Australia/Canberra` * * `Australia/Currie` * * `Australia/Darwin` * * `Australia/Eucla` * * `Australia/Hobart` * * `Australia/LHI` * * `Australia/Lindeman` * * `Australia/Lord_Howe` * * `Australia/Melbourne` * * `Australia/NSW` * * `Australia/North` * * `Australia/Perth` * * `Australia/Queensland` * * `Australia/South` * * `Australia/Sydney` * * `Australia/Tasmania` * * `Australia/Victoria` * * `Australia/West` * * `Australia/Yancowinna` * * `Brazil/Acre` * * `Brazil/DeNoronha` * * `Brazil/East` * * `Brazil/West` * * `CET` * * `CST6CDT` * * `Canada/Atlantic` * * `Canada/Central` * * `Canada/Eastern` * * `Canada/Mountain` * * `Canada/Newfoundland` * * `Canada/Pacific` * * `Canada/Saskatchewan` * * `Canada/Yukon` * * `Chile/Continental` * * `Chile/EasterIsland` * * `Cuba` * * `EET` * * `EST` * * `EST5EDT` * * `Egypt` * * `Eire` * * `Etc/GMT` * * `Etc/GMT+0` * * `Etc/GMT+1` * * `Etc/GMT+10` * * `Etc/GMT+11` * * `Etc/GMT+12` * * `Etc/GMT+2` * * `Etc/GMT+3` * * `Etc/GMT+4` * * `Etc/GMT+5` * * `Etc/GMT+6` * * `Etc/GMT+7` * * `Etc/GMT+8` * * `Etc/GMT+9` * * `Etc/GMT-0` * * `Etc/GMT-1` * * `Etc/GMT-10` * * `Etc/GMT-11` * * `Etc/GMT-12` * * `Etc/GMT-13` * * `Etc/GMT-14` * * `Etc/GMT-2` * * `Etc/GMT-3` * * `Etc/GMT-4` * * `Etc/GMT-5` * * `Etc/GMT-6` * * `Etc/GMT-7` * * `Etc/GMT-8` * * `Etc/GMT-9` * * `Etc/GMT0` * * `Etc/Greenwich` * * `Etc/UCT` * * `Etc/UTC` * * `Etc/Universal` * * `Etc/Zulu` * * `Europe/Amsterdam` * * `Europe/Andorra` * * `Europe/Astrakhan` * * `Europe/Athens` * * `Europe/Belfast` * * `Europe/Belgrade` * * `Europe/Berlin` * * `Europe/Bratislava` * * `Europe/Brussels` * * `Europe/Bucharest` * * `Europe/Budapest` * * `Europe/Busingen` * * `Europe/Chisinau` * * `Europe/Copenhagen` * * `Europe/Dublin` * * `Europe/Gibraltar` * * `Europe/Guernsey` * * `Europe/Helsinki` * * `Europe/Isle_of_Man` * * `Europe/Istanbul` * * `Europe/Jersey` * * `Europe/Kaliningrad` * * `Europe/Kiev` * * `Europe/Kirov` * * `Europe/Kyiv` * * `Europe/Lisbon` * * `Europe/Ljubljana` * * `Europe/London` * * `Europe/Luxembourg` * * `Europe/Madrid` * * `Europe/Malta` * * `Europe/Mariehamn` * * `Europe/Minsk` * * `Europe/Monaco` * * `Europe/Moscow` * * `Europe/Nicosia` * * `Europe/Oslo` * * `Europe/Paris` * * `Europe/Podgorica` * * `Europe/Prague` * * `Europe/Riga` * * `Europe/Rome` * * `Europe/Samara` * * `Europe/San_Marino` * * `Europe/Sarajevo` * * `Europe/Saratov` * * `Europe/Simferopol` * * `Europe/Skopje` * * `Europe/Sofia` * * `Europe/Stockholm` * * `Europe/Tallinn` * * `Europe/Tirane` * * `Europe/Tiraspol` * * `Europe/Ulyanovsk` * * `Europe/Uzhgorod` * * `Europe/Vaduz` * * `Europe/Vatican` * * `Europe/Vienna` * * `Europe/Vilnius` * * `Europe/Volgograd` * * `Europe/Warsaw` * * `Europe/Zagreb` * * `Europe/Zaporozhye` * * `Europe/Zurich` * * `GB` * * `GB-Eire` * * `GMT` * * `GMT+0` * * `GMT-0` * * `GMT0` * * `Greenwich` * * `HST` * * `Hongkong` * * `Iceland` * * `Indian/Antananarivo` * * `Indian/Chagos` * * `Indian/Christmas` * * `Indian/Cocos` * * `Indian/Comoro` * * `Indian/Kerguelen` * * `Indian/Mahe` * * `Indian/Maldives` * * `Indian/Mauritius` * * `Indian/Mayotte` * * `Indian/Reunion` * * `Iran` * * `Israel` * * `Jamaica` * * `Japan` * * `Kwajalein` * * `Libya` * * `MET` * * `MST` * * `MST7MDT` * * `Mexico/BajaNorte` * * `Mexico/BajaSur` * * `Mexico/General` * * `NZ` * * `NZ-CHAT` * * `Navajo` * * `PRC` * * `PST8PDT` * * `Pacific/Apia` * * `Pacific/Auckland` * * `Pacific/Bougainville` * * `Pacific/Chatham` * * `Pacific/Chuuk` * * `Pacific/Easter` * * `Pacific/Efate` * * `Pacific/Enderbury` * * `Pacific/Fakaofo` * * `Pacific/Fiji` * * `Pacific/Funafuti` * * `Pacific/Galapagos` * * `Pacific/Gambier` * * `Pacific/Guadalcanal` * * `Pacific/Guam` * * `Pacific/Honolulu` * * `Pacific/Johnston` * * `Pacific/Kanton` * * `Pacific/Kiritimati` * * `Pacific/Kosrae` * * `Pacific/Kwajalein` * * `Pacific/Majuro` * * `Pacific/Marquesas` * * `Pacific/Midway` * * `Pacific/Nauru` * * `Pacific/Niue` * * `Pacific/Norfolk` * * `Pacific/Noumea` * * `Pacific/Pago_Pago` * * `Pacific/Palau` * * `Pacific/Pitcairn` * * `Pacific/Pohnpei` * * `Pacific/Ponape` * * `Pacific/Port_Moresby` * * `Pacific/Rarotonga` * * `Pacific/Saipan` * * `Pacific/Samoa` * * `Pacific/Tahiti` * * `Pacific/Tarawa` * * `Pacific/Tongatapu` * * `Pacific/Truk` * * `Pacific/Wake` * * `Pacific/Wallis` * * `Pacific/Yap` * * `Poland` * * `Portugal` * * `ROC` * * `ROK` * * `Singapore` * * `Turkey` * * `UCT` * * `US/Alaska` * * `US/Aleutian` * * `US/Arizona` * * `US/Central` * * `US/East-Indiana` * * `US/Eastern` * * `US/Hawaii` * * `US/Indiana-Starke` * * `US/Michigan` * * `US/Mountain` * * `US/Pacific` * * `US/Samoa` * * `UTC` * * `Universal` * * `W-SU` * * `WET` * * `Zulu` * * `localtime` */ timezone?: 'Africa/Abidjan' | 'Africa/Accra' | 'Africa/Addis_Ababa' | 'Africa/Algiers' | 'Africa/Asmara' | 'Africa/Asmera' | 'Africa/Bamako' | 'Africa/Bangui' | 'Africa/Banjul' | 'Africa/Bissau' | 'Africa/Blantyre' | 'Africa/Brazzaville' | 'Africa/Bujumbura' | 'Africa/Cairo' | 'Africa/Casablanca' | 'Africa/Ceuta' | 'Africa/Conakry' | 'Africa/Dakar' | 'Africa/Dar_es_Salaam' | 'Africa/Djibouti' | 'Africa/Douala' | 'Africa/El_Aaiun' | 'Africa/Freetown' | 'Africa/Gaborone' | 'Africa/Harare' | 'Africa/Johannesburg' | 'Africa/Juba' | 'Africa/Kampala' | 'Africa/Khartoum' | 'Africa/Kigali' | 'Africa/Kinshasa' | 'Africa/Lagos' | 'Africa/Libreville' | 'Africa/Lome' | 'Africa/Luanda' | 'Africa/Lubumbashi' | 'Africa/Lusaka' | 'Africa/Malabo' | 'Africa/Maputo' | 'Africa/Maseru' | 'Africa/Mbabane' | 'Africa/Mogadishu' | 'Africa/Monrovia' | 'Africa/Nairobi' | 'Africa/Ndjamena' | 'Africa/Niamey' | 'Africa/Nouakchott' | 'Africa/Ouagadougou' | 'Africa/Porto-Novo' | 'Africa/Sao_Tome' | 'Africa/Timbuktu' | 'Africa/Tripoli' | 'Africa/Tunis' | 'Africa/Windhoek' | 'America/Adak' | 'America/Anchorage' | 'America/Anguilla' | 'America/Antigua' | 'America/Araguaina' | 'America/Argentina/Buenos_Aires' | 'America/Argentina/Catamarca' | 'America/Argentina/ComodRivadavia' | 'America/Argentina/Cordoba' | 'America/Argentina/Jujuy' | 'America/Argentina/La_Rioja' | 'America/Argentina/Mendoza' | 'America/Argentina/Rio_Gallegos' | 'America/Argentina/Salta' | 'America/Argentina/San_Juan' | 'America/Argentina/San_Luis' | 'America/Argentina/Tucuman' | 'America/Argentina/Ushuaia' | 'America/Aruba' | 'America/Asuncion' | 'America/Atikokan' | 'America/Atka' | 'America/Bahia' | 'America/Bahia_Banderas' | 'America/Barbados' | 'America/Belem' | 'America/Belize' | 'America/Blanc-Sablon' | 'America/Boa_Vista' | 'America/Bogota' | 'America/Boise' | 'America/Buenos_Aires' | 'America/Cambridge_Bay' | 'America/Campo_Grande' | 'America/Cancun' | 'America/Caracas' | 'America/Catamarca' | 'America/Cayenne' | 'America/Cayman' | 'America/Chicago' | 'America/Chihuahua' | 'America/Ciudad_Juarez' | 'America/Coral_Harbour' | 'America/Cordoba' | 'America/Costa_Rica' | 'America/Coyhaique' | 'America/Creston' | 'America/Cuiaba' | 'America/Curacao' | 'America/Danmarkshavn' | 'America/Dawson' | 'America/Dawson_Creek' | 'America/Denver' | 'America/Detroit' | 'America/Dominica' | 'America/Edmonton' | 'America/Eirunepe' | 'America/El_Salvador' | 'America/Ensenada' | 'America/Fort_Nelson' | 'America/Fort_Wayne' | 'America/Fortaleza' | 'America/Glace_Bay' | 'America/Godthab' | 'America/Goose_Bay' | 'America/Grand_Turk' | 'America/Grenada' | 'America/Guadeloupe' | 'America/Guatemala' | 'America/Guayaquil' | 'America/Guyana' | 'America/Halifax' | 'America/Havana' | 'America/Hermosillo' | 'America/Indiana/Indianapolis' | 'America/Indiana/Knox' | 'America/Indiana/Marengo' | 'America/Indiana/Petersburg' | 'America/Indiana/Tell_City' | 'America/Indiana/Vevay' | 'America/Indiana/Vincennes' | 'America/Indiana/Winamac' | 'America/Indianapolis' | 'America/Inuvik' | 'America/Iqaluit' | 'America/Jamaica' | 'America/Jujuy' | 'America/Juneau' | 'America/Kentucky/Louisville' | 'America/Kentucky/Monticello' | 'America/Knox_IN' | 'America/Kralendijk' | 'America/La_Paz' | 'America/Lima' | 'America/Los_Angeles' | 'America/Louisville' | 'America/Lower_Princes' | 'America/Maceio' | 'America/Managua' | 'America/Manaus' | 'America/Marigot' | 'America/Martinique' | 'America/Matamoros' | 'America/Mazatlan' | 'America/Mendoza' | 'America/Menominee' | 'America/Merida' | 'America/Metlakatla' | 'America/Mexico_City' | 'America/Miquelon' | 'America/Moncton' | 'America/Monterrey' | 'America/Montevideo' | 'America/Montreal' | 'America/Montserrat' | 'America/Nassau' | 'America/New_York' | 'America/Nipigon' | 'America/Nome' | 'America/Noronha' | 'America/North_Dakota/Beulah' | 'America/North_Dakota/Center' | 'America/North_Dakota/New_Salem' | 'America/Nuuk' | 'America/Ojinaga' | 'America/Panama' | 'America/Pangnirtung' | 'America/Paramaribo' | 'America/Phoenix' | 'America/Port-au-Prince' | 'America/Port_of_Spain' | 'America/Porto_Acre' | 'America/Porto_Velho' | 'America/Puerto_Rico' | 'America/Punta_Arenas' | 'America/Rainy_River' | 'America/Rankin_Inlet' | 'America/Recife' | 'America/Regina' | 'America/Resolute' | 'America/Rio_Branco' | 'America/Rosario' | 'America/Santa_Isabel' | 'America/Santarem' | 'America/Santiago' | 'America/Santo_Domingo' | 'America/Sao_Paulo' | 'America/Scoresbysund' | 'America/Shiprock' | 'America/Sitka' | 'America/St_Barthelemy' | 'America/St_Johns' | 'America/St_Kitts' | 'America/St_Lucia' | 'America/St_Thomas' | 'America/St_Vincent' | 'America/Swift_Current' | 'America/Tegucigalpa' | 'America/Thule' | 'America/Thunder_Bay' | 'America/Tijuana' | 'America/Toronto' | 'America/Tortola' | 'America/Vancouver' | 'America/Virgin' | 'America/Whitehorse' | 'America/Winnipeg' | 'America/Yakutat' | 'America/Yellowknife' | 'Antarctica/Casey' | 'Antarctica/Davis' | 'Antarctica/DumontDUrville' | 'Antarctica/Macquarie' | 'Antarctica/Mawson' | 'Antarctica/McMurdo' | 'Antarctica/Palmer' | 'Antarctica/Rothera' | 'Antarctica/South_Pole' | 'Antarctica/Syowa' | 'Antarctica/Troll' | 'Antarctica/Vostok' | 'Arctic/Longyearbyen' | 'Asia/Aden' | 'Asia/Almaty' | 'Asia/Amman' | 'Asia/Anadyr' | 'Asia/Aqtau' | 'Asia/Aqtobe' | 'Asia/Ashgabat' | 'Asia/Ashkhabad' | 'Asia/Atyrau' | 'Asia/Baghdad' | 'Asia/Bahrain' | 'Asia/Baku' | 'Asia/Bangkok' | 'Asia/Barnaul' | 'Asia/Beirut' | 'Asia/Bishkek' | 'Asia/Brunei' | 'Asia/Calcutta' | 'Asia/Chita' | 'Asia/Choibalsan' | 'Asia/Chongqing' | 'Asia/Chungking' | 'Asia/Colombo' | 'Asia/Dacca' | 'Asia/Damascus' | 'Asia/Dhaka' | 'Asia/Dili' | 'Asia/Dubai' | 'Asia/Dushanbe' | 'Asia/Famagusta' | 'Asia/Gaza' | 'Asia/Harbin' | 'Asia/Hebron' | 'Asia/Ho_Chi_Minh' | 'Asia/Hong_Kong' | 'Asia/Hovd' | 'Asia/Irkutsk' | 'Asia/Istanbul' | 'Asia/Jakarta' | 'Asia/Jayapura' | 'Asia/Jerusalem' | 'Asia/Kabul' | 'Asia/Kamchatka' | 'Asia/Karachi' | 'Asia/Kashgar' | 'Asia/Kathmandu' | 'Asia/Katmandu' | 'Asia/Khandyga' | 'Asia/Kolkata' | 'Asia/Krasnoyarsk' | 'Asia/Kuala_Lumpur' | 'Asia/Kuching' | 'Asia/Kuwait' | 'Asia/Macao' | 'Asia/Macau' | 'Asia/Magadan' | 'Asia/Makassar' | 'Asia/Manila' | 'Asia/Muscat' | 'Asia/Nicosia' | 'Asia/Novokuznetsk' | 'Asia/Novosibirsk' | 'Asia/Omsk' | 'Asia/Oral' | 'Asia/Phnom_Penh' | 'Asia/Pontianak' | 'Asia/Pyongyang' | 'Asia/Qatar' | 'Asia/Qostanay' | 'Asia/Qyzylorda' | 'Asia/Rangoon' | 'Asia/Riyadh' | 'Asia/Saigon' | 'Asia/Sakhalin' | 'Asia/Samarkand' | 'Asia/Seoul' | 'Asia/Shanghai' | 'Asia/Singapore' | 'Asia/Srednekolymsk' | 'Asia/Taipei' | 'Asia/Tashkent' | 'Asia/Tbilisi' | 'Asia/Tehran' | 'Asia/Tel_Aviv' | 'Asia/Thimbu' | 'Asia/Thimphu' | 'Asia/Tokyo' | 'Asia/Tomsk' | 'Asia/Ujung_Pandang' | 'Asia/Ulaanbaatar' | 'Asia/Ulan_Bator' | 'Asia/Urumqi' | 'Asia/Ust-Nera' | 'Asia/Vientiane' | 'Asia/Vladivostok' | 'Asia/Yakutsk' | 'Asia/Yangon' | 'Asia/Yekaterinburg' | 'Asia/Yerevan' | 'Atlantic/Azores' | 'Atlantic/Bermuda' | 'Atlantic/Canary' | 'Atlantic/Cape_Verde' | 'Atlantic/Faeroe' | 'Atlantic/Faroe' | 'Atlantic/Jan_Mayen' | 'Atlantic/Madeira' | 'Atlantic/Reykjavik' | 'Atlantic/South_Georgia' | 'Atlantic/St_Helena' | 'Atlantic/Stanley' | 'Australia/ACT' | 'Australia/Adelaide' | 'Australia/Brisbane' | 'Australia/Broken_Hill' | 'Australia/Canberra' | 'Australia/Currie' | 'Australia/Darwin' | 'Australia/Eucla' | 'Australia/Hobart' | 'Australia/LHI' | 'Australia/Lindeman' | 'Australia/Lord_Howe' | 'Australia/Melbourne' | 'Australia/NSW' | 'Australia/North' | 'Australia/Perth' | 'Australia/Queensland' | 'Australia/South' | 'Australia/Sydney' | 'Australia/Tasmania' | 'Australia/Victoria' | 'Australia/West' | 'Australia/Yancowinna' | 'Brazil/Acre' | 'Brazil/DeNoronha' | 'Brazil/East' | 'Brazil/West' | 'CET' | 'CST6CDT' | 'Canada/Atlantic' | 'Canada/Central' | 'Canada/Eastern' | 'Canada/Mountain' | 'Canada/Newfoundland' | 'Canada/Pacific' | 'Canada/Saskatchewan' | 'Canada/Yukon' | 'Chile/Continental' | 'Chile/EasterIsland' | 'Cuba' | 'EET' | 'EST' | 'EST5EDT' | 'Egypt' | 'Eire' | 'Etc/GMT' | 'Etc/GMT+0' | 'Etc/GMT+1' | 'Etc/GMT+10' | 'Etc/GMT+11' | 'Etc/GMT+12' | 'Etc/GMT+2' | 'Etc/GMT+3' | 'Etc/GMT+4' | 'Etc/GMT+5' | 'Etc/GMT+6' | 'Etc/GMT+7' | 'Etc/GMT+8' | 'Etc/GMT+9' | 'Etc/GMT-0' | 'Etc/GMT-1' | 'Etc/GMT-10' | 'Etc/GMT-11' | 'Etc/GMT-12' | 'Etc/GMT-13' | 'Etc/GMT-14' | 'Etc/GMT-2' | 'Etc/GMT-3' | 'Etc/GMT-4' | 'Etc/GMT-5' | 'Etc/GMT-6' | 'Etc/GMT-7' | 'Etc/GMT-8' | 'Etc/GMT-9' | 'Etc/GMT0' | 'Etc/Greenwich' | 'Etc/UCT' | 'Etc/UTC' | 'Etc/Universal' | 'Etc/Zulu' | 'Europe/Amsterdam' | 'Europe/Andorra' | 'Europe/Astrakhan' | 'Europe/Athens' | 'Europe/Belfast' | 'Europe/Belgrade' | 'Europe/Berlin' | 'Europe/Bratislava' | 'Europe/Brussels' | 'Europe/Bucharest' | 'Europe/Budapest' | 'Europe/Busingen' | 'Europe/Chisinau' | 'Europe/Copenhagen' | 'Europe/Dublin' | 'Europe/Gibraltar' | 'Europe/Guernsey' | 'Europe/Helsinki' | 'Europe/Isle_of_Man' | 'Europe/Istanbul' | 'Europe/Jersey' | 'Europe/Kaliningrad' | 'Europe/Kiev' | 'Europe/Kirov' | 'Europe/Kyiv' | 'Europe/Lisbon' | 'Europe/Ljubljana' | 'Europe/London' | 'Europe/Luxembourg' | 'Europe/Madrid' | 'Europe/Malta' | 'Europe/Mariehamn' | 'Europe/Minsk' | 'Europe/Monaco' | 'Europe/Moscow' | 'Europe/Nicosia' | 'Europe/Oslo' | 'Europe/Paris' | 'Europe/Podgorica' | 'Europe/Prague' | 'Europe/Riga' | 'Europe/Rome' | 'Europe/Samara' | 'Europe/San_Marino' | 'Europe/Sarajevo' | 'Europe/Saratov' | 'Europe/Simferopol' | 'Europe/Skopje' | 'Europe/Sofia' | 'Europe/Stockholm' | 'Europe/Tallinn' | 'Europe/Tirane' | 'Europe/Tiraspol' | 'Europe/Ulyanovsk' | 'Europe/Uzhgorod' | 'Europe/Vaduz' | 'Europe/Vatican' | 'Europe/Vienna' | 'Europe/Vilnius' | 'Europe/Volgograd' | 'Europe/Warsaw' | 'Europe/Zagreb' | 'Europe/Zaporozhye' | 'Europe/Zurich' | 'GB' | 'GB-Eire' | 'GMT' | 'GMT+0' | 'GMT-0' | 'GMT0' | 'Greenwich' | 'HST' | 'Hongkong' | 'Iceland' | 'Indian/Antananarivo' | 'Indian/Chagos' | 'Indian/Christmas' | 'Indian/Cocos' | 'Indian/Comoro' | 'Indian/Kerguelen' | 'Indian/Mahe' | 'Indian/Maldives' | 'Indian/Mauritius' | 'Indian/Mayotte' | 'Indian/Reunion' | 'Iran' | 'Israel' | 'Jamaica' | 'Japan' | 'Kwajalein' | 'Libya' | 'MET' | 'MST' | 'MST7MDT' | 'Mexico/BajaNorte' | 'Mexico/BajaSur' | 'Mexico/General' | 'NZ' | 'NZ-CHAT' | 'Navajo' | 'PRC' | 'PST8PDT' | 'Pacific/Apia' | 'Pacific/Auckland' | 'Pacific/Bougainville' | 'Pacific/Chatham' | 'Pacific/Chuuk' | 'Pacific/Easter' | 'Pacific/Efate' | 'Pacific/Enderbury' | 'Pacific/Fakaofo' | 'Pacific/Fiji' | 'Pacific/Funafuti' | 'Pacific/Galapagos' | 'Pacific/Gambier' | 'Pacific/Guadalcanal' | 'Pacific/Guam' | 'Pacific/Honolulu' | 'Pacific/Johnston' | 'Pacific/Kanton' | 'Pacific/Kiritimati' | 'Pacific/Kosrae' | 'Pacific/Kwajalein' | 'Pacific/Majuro' | 'Pacific/Marquesas' | 'Pacific/Midway' | 'Pacific/Nauru' | 'Pacific/Niue' | 'Pacific/Norfolk' | 'Pacific/Noumea' | 'Pacific/Pago_Pago' | 'Pacific/Palau' | 'Pacific/Pitcairn' | 'Pacific/Pohnpei' | 'Pacific/Ponape' | 'Pacific/Port_Moresby' | 'Pacific/Rarotonga' | 'Pacific/Saipan' | 'Pacific/Samoa' | 'Pacific/Tahiti' | 'Pacific/Tarawa' | 'Pacific/Tongatapu' | 'Pacific/Truk' | 'Pacific/Wake' | 'Pacific/Wallis' | 'Pacific/Yap' | 'Poland' | 'Portugal' | 'ROC' | 'ROK' | 'Singapore' | 'Turkey' | 'UCT' | 'US/Alaska' | 'US/Aleutian' | 'US/Arizona' | 'US/Central' | 'US/East-Indiana' | 'US/Eastern' | 'US/Hawaii' | 'US/Indiana-Starke' | 'US/Michigan' | 'US/Mountain' | 'US/Pacific' | 'US/Samoa' | 'UTC' | 'Universal' | 'W-SU' | 'WET' | 'Zulu' | 'localtime' | ''; /** * How many consecutive missed or failed check-ins in a row before creating a new issue. */ failure_issue_threshold?: number | null; /** * How many successful check-ins in a row before resolving an issue. */ recovery_threshold?: number | null; }; /** * Uniquely identifies your monitor within your organization. Changing this slug will require updates to any instrumented check-in calls. */ slug?: string; /** * Status of the monitor. Disabled monitors will not accept events and will not count towards the monitor quota. * * * `active` * * `disabled` */ status?: 'active' | 'disabled'; /** * The ID of the team or user that owns the monitor. (eg. user:51 or team:6) */ owner?: string | null; /** * Disable creation of monitor incidents */ is_muted?: boolean; }; path: { /** * The ID or slug of the organization the resource belongs to. */ organization_id_or_slug: string; /** * The ID or slug of the monitor. */ monitor_id_or_slug: string; }; query?: never; url: '/organizations/{organization_id_or_slug}/monitors/{monitor_id_or_slug}/'; }; export type UpdateOrganizationMonitorErrors = { /** * Bad Request */ 400: unknown; /** * Unauthorized */ 401: unknown; /** * Forbidden */ 403: unknown; /** * Not Found */ 404: unknown; }; export type UpdateOrganizationMonitorResponses = { 200: { /** * ID of the monitor */ id: string; /** * Name of the monitor */ name: string; /** * Slug that identifies the monitor in the organization */ slug: string; /** * Status of the monitor. Disabled monitors don't accept check-ins */ status: 'active' | 'disabled' | 'pending_deletion' | 'deletion_in_progress'; /** * Whether incidents are muted in all of the monitor's environments */ isMuted: boolean; /** * Whether the most recent check-in was an upsert check-in */ isUpserting: boolean; /** * Configuration of the monitor */ config: { /** * Type of schedule: crontab or interval */ schedule_type: 'crontab' | 'interval'; /** * Schedule of the monitor: a crontab string, or a [value, unit] pair for intervals, such as [1, "day"] */ schedule: string | Array; /** * How long in minutes after the expected check-in time to wait before the check-in counts as missed */ checkin_margin: number | null; /** * How long in minutes a check-in can stay in progress before it counts as failed */ max_runtime: number | null; /** * Timezone the schedule is evaluated in, as a tz database name */ timezone: string | null; /** * Number of consecutive missed or failed check-ins before an issue is created */ failure_issue_threshold: number | null; /** * Number of consecutive successful check-ins before the issue is resolved */ recovery_threshold: number | null; /** * ID of the alert rule linked to the monitor */ alert_rule_id: number | null; }; /** * When the monitor was created (ISO 8601) */ dateCreated: string; /** * Project the monitor belongs to */ project: { /** * Counts of non-transaction events per interval over the requested stats period, as [timestamp, count] pairs. Only included when a stats period is requested */ stats?: Array> | { [key: string]: number; }; /** * Counts of transactions per interval over the requested stats period, as [timestamp, count] pairs. Only included when transaction stats are requested */ transactionStats?: Array>; /** * Crash-free session rates for the current and previous stats period. Only included when session stats are requested */ sessionStats?: { /** * Crash-free rate in the current period, as a percentage. Null when there's no session data */ currentCrashFreeRate: number | null; /** * Crash-free rate in the previous period, as a percentage. Null when there's no session data */ previousCrashFreeRate: number | null; /** * Whether the project has release health (session) data */ hasHealthData: boolean; }; /** * ID of the project */ id: string; /** * Slug of the project */ slug: string; /** * Name of the project */ name: string; /** * Platform of the project */ platform: string | null; /** * When the project was created (ISO 8601) */ dateCreated: string; /** * Whether the requesting user bookmarked the project */ isBookmarked: boolean; /** * Whether the requesting user is a member of a team with access to the project */ isMember: boolean; /** * Features enabled for the project */ features: Array; /** * When the project received its first event (ISO 8601) */ firstEvent: string | null; /** * Whether the project has sent transactions */ firstTransactionEvent: boolean; /** * Scopes the requesting user has on the project through team membership and organization role */ access: Array; /** * Whether the requesting user has access to the project */ hasAccess: boolean; /** * Whether the project has sent user feedback */ hasFeedbacks: boolean; /** * Whether the project has sent feature flags */ hasFlags: boolean; /** * Whether the project has sent an event with a minified stack trace */ hasMinifiedStackTrace: boolean; /** * Whether the project has cron monitors */ hasMonitors: boolean; /** * Whether the project has sent user feedback from the user feedback widget */ hasNewFeedbacks: boolean; /** * Whether the project has sent profiles */ hasProfiles: boolean; /** * Whether the project has sent replays */ hasReplays: boolean; /** * Whether the project has sent sessions */ hasSessions: boolean; /** * Whether the project has sent HTTP request spans used by Insights */ hasInsightsHttp: boolean; /** * Whether the project has sent database spans used by Insights */ hasInsightsDb: boolean; /** * Whether the project has sent asset spans used by Insights */ hasInsightsAssets: boolean; /** * Whether the project has sent app start spans used by Insights */ hasInsightsAppStart: boolean; /** * Whether the project has sent screen load spans used by Insights */ hasInsightsScreenLoad: boolean; /** * Whether the project has sent web vitals spans used by Insights */ hasInsightsVitals: boolean; /** * Whether the project has sent cache spans used by Insights */ hasInsightsCaches: boolean; /** * Whether the project has sent queue spans used by Insights */ hasInsightsQueues: boolean; /** * Whether the project has sent AI agent spans used by Insights */ hasInsightsAgentMonitoring: boolean; /** * Whether the project has sent MCP spans used by Insights */ hasInsightsMCP: boolean; /** * Whether the project has sent logs. Always true outside sentry.io */ hasLogs: boolean; /** * Whether the project has sent trace metrics. Always true outside sentry.io */ hasTraceMetrics: boolean; /** * Whether this is the Sentry install's own internal project */ isInternal: boolean; /** * Whether the project is public */ isPublic: boolean; /** * Avatar of the project. Always a letter avatar */ avatar: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Hex color code for the project, derived from its slug unless set explicitly */ color: string; /** * Status of the project: active, deleted, or unknown */ status: string; }; /** * Environments the monitor has received check-ins for */ environments: Array<{ /** * Name of the environment */ name: string; /** * Status of the monitor in the environment */ status: 'active' | 'disabled' | 'pending_deletion' | 'deletion_in_progress' | 'ok' | 'error'; /** * Whether incidents are muted for the monitor in the environment */ isMuted: boolean; /** * When the monitor was created (ISO 8601) */ dateCreated: string; /** * When the most recent check-in was received, not counting missed check-ins (ISO 8601) */ lastCheckIn: string | null; /** * When the next check-in is expected (ISO 8601) */ nextCheckIn: string | null; /** * Latest time the next check-in can arrive before it counts as missed (ISO 8601) */ nextCheckInLatest: string | null; /** * Unresolved incident for the monitor in the environment. Null when there's none */ activeIncident: { /** * When the incident started (ISO 8601) */ startingTimestamp: string | null; /** * When the incident was resolved (ISO 8601) */ resolvingTimestamp: string | null; /** * Details of the broken monitor notice for the incident. Null when there's none */ brokenNotice: { /** * When users were notified that the monitor environment looks broken (ISO 8601) */ userNotifiedTimestamp: string | null; /** * When the broken monitor environment was muted (ISO 8601) */ environmentMutedTimestamp: string | null; } | null; } | null; }>; /** * Team or user that owns the monitor. Null when there's no owner */ owner: { /** * Whether the actor is a user or a team */ type: 'user' | 'team'; /** * ID of the user or team */ id: string; /** * Display name of the user, or slug of the team */ name: string; /** * Email address of the user. Only set for users */ email?: string; } | null; }; }; export type UpdateOrganizationMonitorResponse = UpdateOrganizationMonitorResponses[keyof UpdateOrganizationMonitorResponses]; export type ListOrganizationMonitorCheckinsData = { body?: never; path: { /** * The ID or slug of the organization the resource belongs to. */ organization_id_or_slug: string; /** * The ID or slug of the monitor. */ monitor_id_or_slug: string; }; query?: { /** * A pointer to the last object fetched and its sort order; used to retrieve the next or previous results. */ cursor?: string; }; url: '/organizations/{organization_id_or_slug}/monitors/{monitor_id_or_slug}/checkins/'; }; export type ListOrganizationMonitorCheckinsErrors = { /** * Unauthorized */ 401: unknown; /** * Forbidden */ 403: unknown; /** * Not Found */ 404: unknown; }; export type ListOrganizationMonitorCheckinsResponses = { 200: Array<{ /** * Issues linked to the check-in's trace. Only included when requested with expand=groups */ groups?: Array; /** * ID of the check-in */ id: string; /** * Name of the environment the check-in belongs to */ environment: string; /** * Status of the check-in */ status: 'unknown' | 'ok' | 'error' | 'in_progress' | 'missed' | 'timeout'; /** * Duration of the job run in milliseconds */ duration: number | null; /** * When the check-in was stored (ISO 8601) */ dateCreated: string | null; /** * When the check-in was received (ISO 8601) */ dateAdded: string; /** * When the check-in was last updated (ISO 8601) */ dateUpdated: string; /** * When the first in_progress check-in was received (ISO 8601). Null when none was sent */ dateInProgress: string | null; /** * Clock time the check-in was processed at, relative to other check-in tasks (ISO 8601) */ dateClock: string | null; /** * When the check-in was expected (ISO 8601) */ expectedTime: string | null; /** * Monitor configuration when the check-in was received */ monitorConfig: { /** * Type of schedule: crontab or interval */ schedule_type: 'crontab' | 'interval'; /** * Schedule of the monitor: a crontab string, or a [value, unit] pair for intervals, such as [1, "day"] */ schedule: string | Array; /** * How long in minutes after the expected check-in time to wait before the check-in counts as missed */ checkin_margin: number | null; /** * How long in minutes a check-in can stay in progress before it counts as failed */ max_runtime: number | null; /** * Timezone the schedule is evaluated in, as a tz database name */ timezone: string | null; /** * Number of consecutive missed or failed check-ins before an issue is created */ failure_issue_threshold: number | null; /** * Number of consecutive successful check-ins before the issue is resolved */ recovery_threshold: number | null; /** * ID of the alert rule linked to the monitor */ alert_rule_id: number | null; }; }>; }; export type ListOrganizationMonitorCheckinsResponse = ListOrganizationMonitorCheckinsResponses[keyof ListOrganizationMonitorCheckinsResponses]; export type CreateOrganizationNotebookData = { /** * Create a blank notebook, or find or create a producer's notebook for its source. * * Needs organization and creator in its context. */ body: { /** * Investigation title. */ title: string; /** * Unique IDs of accessible projects to include. Defaults to an empty list. */ projectIds?: Array; /** * Investigation filter object, stored with its original keys. */ filters?: { [key: string]: unknown; }; /** * What a producer writes this notebook about. type names a registered producer source type, and the other fields depend on it. Projects come from the source, so omit projectIds. An active notebook for the same source is returned instead of a new one. */ source?: { type: string; [key: string]: unknown; }; }; path: { /** * The ID or slug of the organization the resource belongs to. */ organization_id_or_slug: string; }; query?: never; url: '/organizations/{organization_id_or_slug}/notebooks/'; }; export type CreateOrganizationNotebookErrors = { /** * Bad Request */ 400: unknown; /** * Unauthorized */ 401: unknown; /** * Forbidden */ 403: unknown; /** * Not Found */ 404: unknown; }; export type CreateOrganizationNotebookResponses = { /** * Full notebook with ordered active blocks, parameter definitions and saved values, project * IDs, and source context. source.snapshot is present only for source-backed investigations. * actionRequests has Seer's action requests that aren't superseded, plus stale ones while Seer * re-checks them, newest report first, with that report's primary at the top. */ 200: { /** * The notebook ID */ id: string; /** * The notebook title */ title: string; /** * A one-line summary of the notebook, if one was generated */ summary: string | null; /** * A longer summary of the notebook, if one was generated */ summaryDescription: string | null; /** * active or archived. Archived notebooks are read-only */ status: string; /** * What the notebook is about: manual, or a source type */ sourceType: string; /** * The ID of the user who created the notebook, if a user did */ createdBy: string | null; /** * The user or service account that created the notebook */ creator: { /** * Whether a user or a service account created the notebook */ type: 'user' | 'service_account' | 'system' | 'integration' | 'agent' | 'unknown'; /** * The ID of the user or service account that created the notebook */ id: string; } | null; /** * When the notebook was created */ dateCreated: string; /** * When the notebook last changed */ dateUpdated: string; /** * The notebook's concurrency token. Send it as notebookVersion with a change */ version: number; /** * The number of blocks the notebook has */ blockCount: number; /** * Whether the requesting user favorited the notebook */ isFavorited: boolean; /** * The state of automatic title generation */ titleGeneration: { /** * The state of automatic title generation, or null if it hasn't run */ status: string | null; }; /** * The agent's run for the notebook, if it has one */ orchestration: { /** * The phase the agent's run is in */ phase: string; /** * The status of the agent's run */ status: string; /** * When the run last reported progress */ heartbeatAt: string | null; /** * How many times the run has changed the notebook's report */ notebookRevision: number; } | null; /** * The template the notebook started from, if any */ template: { /** * The key of the template the notebook started from, if any */ key: string | null; /** * The version of that template, if any */ version: number | null; } | null; /** * What the notebook is about */ source: { /** * What Sentry knew about the source when the notebook started. Only on source-backed notebooks */ snapshot?: { [key: string]: { [key: string]: unknown; } | null | Array | string | number | boolean; }; /** * The source type: manual, or the type of what the notebook is about */ type: string; /** * The identifying fields of the source, such as an issue ID. Empty for a manual notebook */ ref: { [key: string]: { [key: string]: unknown; } | null | Array | string | number | boolean; }; /** * The notebook's revision for its source. A new revision starts once the previous one is archived. Null for a manual notebook */ revision: number | null; }; /** * Saved filters, stored with their original keys */ filters: { [key: string]: { [key: string]: unknown; } | null | Array | string | number | boolean; }; /** * The IDs of the projects the notebook covers */ projectIds: Array; /** * The notebook's parameters, in order */ parameters: Array<{ /** * The parameter ID */ id: string; /** * The key blocks use to refer to the parameter */ key: string; /** * The parameter's display name */ label: string; /** * What the parameter is for */ description: string; /** * The type of value the parameter takes */ type: string; /** * Whether the parameter needs a value */ required: boolean; /** * Limits on the parameter's value, by type */ constraints: { [key: string]: { [key: string]: unknown; } | null | Array | string | number | boolean; }; /** * The value used when none is saved */ defaultValue: { [key: string]: unknown; } | null | Array | string | number | boolean; /** * The saved value, or null */ savedValue: { [key: string]: unknown; } | null | Array | string | number | boolean; /** * Who defined the parameter */ source: string; /** * The parameter's position in the notebook */ position: number; /** * The parameter's concurrency token */ version: number; }>; /** * The notebook's blocks, in order */ blocks: Array<{ /** * The block ID */ id: string; /** * The block's position in the notebook, starting at 0 */ position: number; /** * text for Markdown, or query for a data query */ kind: string; /** * The block title. May be empty */ title: string; /** * The block's content: Markdown for text, the query for query */ content: string; /** * Instructions used when running the block */ generationPrompt: string; /** * The latest generated content, before anyone edited it */ generatedContent: string; /** * The latest successful result. Text blocks have schemaVersion and markdown */ output: { [key: string]: unknown; } | null | Array | string | number | boolean; /** * available, notRun, or the status of the latest execution */ outputStatus: string; /** * The latest execution, if the block has run */ currentExecution: { /** * The execution ID */ id: string; /** * The execution status */ status: string; /** * What ran the block */ executor: string; /** * The version of the result's schema */ schemaVersion: number; /** * When the execution started */ startedAt: string | null; /** * When the execution finished, if it has */ completedAt: string | null; /** * What went wrong, if the execution failed */ error: { [key: string]: unknown; } | null | Array | string | number | boolean; } | null; /** * How the block runs, such as auto-run */ config: { [key: string]: { [key: string]: unknown; } | null | Array | string | number | boolean; }; /** * How the block is shown. Text uses type markdown; query uses table, line, bar, or area */ display: { [key: string]: { [key: string]: unknown; } | null | Array | string | number | boolean; }; /** * The IDs of blocks this block depends on */ dependencies: Array; /** * The keys of the parameters the block uses */ parameterKeys: Array; /** * The block's concurrency token. Send it as version with a change */ version: number; /** * When an input changed after the output was made, if one did */ staleAt: string | null; /** * The ID of the user who added the block, if a user did */ createdBy: string | null; /** * The ID of the user who last edited the block, if a user did */ lastEditedBy: string | null; /** * The producer's key for the block, if a producer wrote it */ producerKey: string | null; /** * The producer's revision for the block, if a producer wrote it */ producerRevision: number | null; }>; /** * Steps the agent suggests, newest report first */ actionRequests: Array<{ /** * The action request ID */ id: string; /** * The agent's key for the request */ key: string; /** * The report revision that suggested it */ reportRevision: number; /** * Whether it's the recommended next step */ primary: boolean; /** * The block or hypothesis the request is under, if any */ anchor: { /** * block or hypothesis */ type: string; /** * The agent's ID for the block or hypothesis */ id: string; /** * The ID of the block the request is under, if it still exists */ blockId: string | null; } | null; /** * A short title for the step */ title: string; /** * Why the agent suggests it */ rationale: string; /** * What the step would change, if the agent said */ impact: string | null; /** * suggested, applied, failed, superseded, or withdrawn */ state: string; /** * Why the request is in its state, if there's a reason */ reason: string | null; /** * The agent's action payload, or null when the request is only advice */ action: { [key: string]: { [key: string]: unknown; } | null | Array | string | number | boolean; } | null; /** * Whether the requesting user can apply it now */ canApply: boolean; /** * Why the requesting user can't apply it, if they can't */ cannotApplyReason: 'investigation_archived' | 'not_suggested' | 'unsupported_action' | 'no_access' | 'not_target_detector' | 'detector_not_found' | 'permission_denied' | 'dynamic_detector' | null; /** * The user who applied it. Null when Sentry applied it */ appliedBy: { /** * SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access */ identities?: Array<{ /** * SSO identity ID */ id: string; /** * User's identifier at the auth provider */ name: string; /** * Organization the auth provider belongs to */ organization: { /** * Organization slug */ slug: string; /** * Organization name */ name: string; }; /** * Auth provider of the identity */ provider: { /** * Auth provider key, such as google or saml2 */ id: string; /** * Display name of the auth provider */ name: string; }; /** * When the identity was last verified by signing in through the auth provider */ dateVerified: string; /** * When the identity was last synced from the auth provider */ dateSynced: string; }>; /** * User avatar */ avatar?: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Two-factor authenticators of the user, without backup methods such as recovery codes */ authenticators?: Array<{ /** * Authenticator ID */ id: string; /** * Authenticator type, such as totp, sms, u2f or recovery */ type: string; /** * Display name of the authenticator type */ name: string; /** * When the authenticator was added */ dateCreated: string; /** * When the authenticator was last used, or null */ dateUsed: string | null; }>; /** * Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization */ canReset2fa?: boolean; /** * User ID */ id: string; /** * Display name: the user's name, or their email or username if no name is set */ name: string; /** * Username */ username: string; /** * Primary email address */ email: string; /** * Gravatar URL for the primary email address */ avatarUrl: string; /** * Whether the account is active */ isActive: boolean; /** * Whether the account is suspended. Suspended users can't sign in */ isSuspended: boolean; /** * Whether the user has a password set */ hasPasswordAuth: boolean; /** * Whether the account is managed, which stops the user from changing their username, password and similar details */ isManaged: boolean; /** * When the account was created */ dateJoined: string; /** * When the user last signed in, or null */ lastLogin: string | null; /** * Whether the user has two-factor authentication enabled */ has2fa: boolean; /** * When the user was last active, or null */ lastActive: string | null; /** * Whether the user is a superuser */ isSuperuser: boolean; /** * Whether the user has staff status */ isStaff: boolean; /** * Deprecated. Always an empty object */ experiments: { [key: string]: string; }; /** * Email addresses of the user. Only included for the requesting user or superusers; empty otherwise */ emails: Array<{ /** * Email ID */ id: string; /** * Email address */ email: string; /** * Whether the email address is verified */ is_verified: boolean; }>; } | null; /** * What applying it changed. The fields depend on the action */ appliedDetails: { /** * The ID of the monitor that was changed */ detectorId: string; /** * The name of the monitor that was changed */ detectorName: string; /** * The monitor settings that were changed */ fields: Array; } | { /** * The telemetry provider that was connected */ provider: 'datadog' | 'gcp'; } | null; /** * When it was applied */ dateApplied: string | null; /** * What went wrong, if applying it failed */ error: { /** * The error code */ code: 'already_applied' | 'withdrawn' | 'stale' | 'validation_failed' | 'action_changed' | 'not_stale' | 'not_retryable'; /** * The current values of the settings the action would change */ current?: { [key: string]: number | number | string | null; }; /** * Messages that explain the error */ messages?: Array; } | null; /** * The re-check or re-run Sentry sent the agent, if any */ followUp: { /** * Where the follow-up is */ status: 'accepted' | 'dispatched' | 'acknowledged' | 'failed'; /** * Why the agent turned down or dropped the follow-up, if it did */ reason: 'workflow_version_conflict' | 'idempotency_conflict' | 'invalid_command_target' | 'action_requests_report_changed' | 'run_cancelled' | 'run_failed' | 'provider_not_connected' | 'provider_already_used' | null; /** * What the agent did with a re-run. Null for a re-check */ rerun: 'started' | 'held' | 'skipped' | null; /** * Whether the requesting user can send it again */ retryable: boolean; } | null; /** * When the agent suggested it */ dateCreated: string; }>; }; /** * Full notebook with ordered active blocks, parameter definitions and saved values, project * IDs, and source context. source.snapshot is present only for source-backed investigations. * actionRequests has Seer's action requests that aren't superseded, plus stale ones while Seer * re-checks them, newest report first, with that report's primary at the top. */ 201: { /** * The notebook ID */ id: string; /** * The notebook title */ title: string; /** * A one-line summary of the notebook, if one was generated */ summary: string | null; /** * A longer summary of the notebook, if one was generated */ summaryDescription: string | null; /** * active or archived. Archived notebooks are read-only */ status: string; /** * What the notebook is about: manual, or a source type */ sourceType: string; /** * The ID of the user who created the notebook, if a user did */ createdBy: string | null; /** * The user or service account that created the notebook */ creator: { /** * Whether a user or a service account created the notebook */ type: 'user' | 'service_account' | 'system' | 'integration' | 'agent' | 'unknown'; /** * The ID of the user or service account that created the notebook */ id: string; } | null; /** * When the notebook was created */ dateCreated: string; /** * When the notebook last changed */ dateUpdated: string; /** * The notebook's concurrency token. Send it as notebookVersion with a change */ version: number; /** * The number of blocks the notebook has */ blockCount: number; /** * Whether the requesting user favorited the notebook */ isFavorited: boolean; /** * The state of automatic title generation */ titleGeneration: { /** * The state of automatic title generation, or null if it hasn't run */ status: string | null; }; /** * The agent's run for the notebook, if it has one */ orchestration: { /** * The phase the agent's run is in */ phase: string; /** * The status of the agent's run */ status: string; /** * When the run last reported progress */ heartbeatAt: string | null; /** * How many times the run has changed the notebook's report */ notebookRevision: number; } | null; /** * The template the notebook started from, if any */ template: { /** * The key of the template the notebook started from, if any */ key: string | null; /** * The version of that template, if any */ version: number | null; } | null; /** * What the notebook is about */ source: { /** * What Sentry knew about the source when the notebook started. Only on source-backed notebooks */ snapshot?: { [key: string]: { [key: string]: unknown; } | null | Array | string | number | boolean; }; /** * The source type: manual, or the type of what the notebook is about */ type: string; /** * The identifying fields of the source, such as an issue ID. Empty for a manual notebook */ ref: { [key: string]: { [key: string]: unknown; } | null | Array | string | number | boolean; }; /** * The notebook's revision for its source. A new revision starts once the previous one is archived. Null for a manual notebook */ revision: number | null; }; /** * Saved filters, stored with their original keys */ filters: { [key: string]: { [key: string]: unknown; } | null | Array | string | number | boolean; }; /** * The IDs of the projects the notebook covers */ projectIds: Array; /** * The notebook's parameters, in order */ parameters: Array<{ /** * The parameter ID */ id: string; /** * The key blocks use to refer to the parameter */ key: string; /** * The parameter's display name */ label: string; /** * What the parameter is for */ description: string; /** * The type of value the parameter takes */ type: string; /** * Whether the parameter needs a value */ required: boolean; /** * Limits on the parameter's value, by type */ constraints: { [key: string]: { [key: string]: unknown; } | null | Array | string | number | boolean; }; /** * The value used when none is saved */ defaultValue: { [key: string]: unknown; } | null | Array | string | number | boolean; /** * The saved value, or null */ savedValue: { [key: string]: unknown; } | null | Array | string | number | boolean; /** * Who defined the parameter */ source: string; /** * The parameter's position in the notebook */ position: number; /** * The parameter's concurrency token */ version: number; }>; /** * The notebook's blocks, in order */ blocks: Array<{ /** * The block ID */ id: string; /** * The block's position in the notebook, starting at 0 */ position: number; /** * text for Markdown, or query for a data query */ kind: string; /** * The block title. May be empty */ title: string; /** * The block's content: Markdown for text, the query for query */ content: string; /** * Instructions used when running the block */ generationPrompt: string; /** * The latest generated content, before anyone edited it */ generatedContent: string; /** * The latest successful result. Text blocks have schemaVersion and markdown */ output: { [key: string]: unknown; } | null | Array | string | number | boolean; /** * available, notRun, or the status of the latest execution */ outputStatus: string; /** * The latest execution, if the block has run */ currentExecution: { /** * The execution ID */ id: string; /** * The execution status */ status: string; /** * What ran the block */ executor: string; /** * The version of the result's schema */ schemaVersion: number; /** * When the execution started */ startedAt: string | null; /** * When the execution finished, if it has */ completedAt: string | null; /** * What went wrong, if the execution failed */ error: { [key: string]: unknown; } | null | Array | string | number | boolean; } | null; /** * How the block runs, such as auto-run */ config: { [key: string]: { [key: string]: unknown; } | null | Array | string | number | boolean; }; /** * How the block is shown. Text uses type markdown; query uses table, line, bar, or area */ display: { [key: string]: { [key: string]: unknown; } | null | Array | string | number | boolean; }; /** * The IDs of blocks this block depends on */ dependencies: Array; /** * The keys of the parameters the block uses */ parameterKeys: Array; /** * The block's concurrency token. Send it as version with a change */ version: number; /** * When an input changed after the output was made, if one did */ staleAt: string | null; /** * The ID of the user who added the block, if a user did */ createdBy: string | null; /** * The ID of the user who last edited the block, if a user did */ lastEditedBy: string | null; /** * The producer's key for the block, if a producer wrote it */ producerKey: string | null; /** * The producer's revision for the block, if a producer wrote it */ producerRevision: number | null; }>; /** * Steps the agent suggests, newest report first */ actionRequests: Array<{ /** * The action request ID */ id: string; /** * The agent's key for the request */ key: string; /** * The report revision that suggested it */ reportRevision: number; /** * Whether it's the recommended next step */ primary: boolean; /** * The block or hypothesis the request is under, if any */ anchor: { /** * block or hypothesis */ type: string; /** * The agent's ID for the block or hypothesis */ id: string; /** * The ID of the block the request is under, if it still exists */ blockId: string | null; } | null; /** * A short title for the step */ title: string; /** * Why the agent suggests it */ rationale: string; /** * What the step would change, if the agent said */ impact: string | null; /** * suggested, applied, failed, superseded, or withdrawn */ state: string; /** * Why the request is in its state, if there's a reason */ reason: string | null; /** * The agent's action payload, or null when the request is only advice */ action: { [key: string]: { [key: string]: unknown; } | null | Array | string | number | boolean; } | null; /** * Whether the requesting user can apply it now */ canApply: boolean; /** * Why the requesting user can't apply it, if they can't */ cannotApplyReason: 'investigation_archived' | 'not_suggested' | 'unsupported_action' | 'no_access' | 'not_target_detector' | 'detector_not_found' | 'permission_denied' | 'dynamic_detector' | null; /** * The user who applied it. Null when Sentry applied it */ appliedBy: { /** * SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access */ identities?: Array<{ /** * SSO identity ID */ id: string; /** * User's identifier at the auth provider */ name: string; /** * Organization the auth provider belongs to */ organization: { /** * Organization slug */ slug: string; /** * Organization name */ name: string; }; /** * Auth provider of the identity */ provider: { /** * Auth provider key, such as google or saml2 */ id: string; /** * Display name of the auth provider */ name: string; }; /** * When the identity was last verified by signing in through the auth provider */ dateVerified: string; /** * When the identity was last synced from the auth provider */ dateSynced: string; }>; /** * User avatar */ avatar?: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Two-factor authenticators of the user, without backup methods such as recovery codes */ authenticators?: Array<{ /** * Authenticator ID */ id: string; /** * Authenticator type, such as totp, sms, u2f or recovery */ type: string; /** * Display name of the authenticator type */ name: string; /** * When the authenticator was added */ dateCreated: string; /** * When the authenticator was last used, or null */ dateUsed: string | null; }>; /** * Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization */ canReset2fa?: boolean; /** * User ID */ id: string; /** * Display name: the user's name, or their email or username if no name is set */ name: string; /** * Username */ username: string; /** * Primary email address */ email: string; /** * Gravatar URL for the primary email address */ avatarUrl: string; /** * Whether the account is active */ isActive: boolean; /** * Whether the account is suspended. Suspended users can't sign in */ isSuspended: boolean; /** * Whether the user has a password set */ hasPasswordAuth: boolean; /** * Whether the account is managed, which stops the user from changing their username, password and similar details */ isManaged: boolean; /** * When the account was created */ dateJoined: string; /** * When the user last signed in, or null */ lastLogin: string | null; /** * Whether the user has two-factor authentication enabled */ has2fa: boolean; /** * When the user was last active, or null */ lastActive: string | null; /** * Whether the user is a superuser */ isSuperuser: boolean; /** * Whether the user has staff status */ isStaff: boolean; /** * Deprecated. Always an empty object */ experiments: { [key: string]: string; }; /** * Email addresses of the user. Only included for the requesting user or superusers; empty otherwise */ emails: Array<{ /** * Email ID */ id: string; /** * Email address */ email: string; /** * Whether the email address is verified */ is_verified: boolean; }>; } | null; /** * What applying it changed. The fields depend on the action */ appliedDetails: { /** * The ID of the monitor that was changed */ detectorId: string; /** * The name of the monitor that was changed */ detectorName: string; /** * The monitor settings that were changed */ fields: Array; } | { /** * The telemetry provider that was connected */ provider: 'datadog' | 'gcp'; } | null; /** * When it was applied */ dateApplied: string | null; /** * What went wrong, if applying it failed */ error: { /** * The error code */ code: 'already_applied' | 'withdrawn' | 'stale' | 'validation_failed' | 'action_changed' | 'not_stale' | 'not_retryable'; /** * The current values of the settings the action would change */ current?: { [key: string]: number | number | string | null; }; /** * Messages that explain the error */ messages?: Array; } | null; /** * The re-check or re-run Sentry sent the agent, if any */ followUp: { /** * Where the follow-up is */ status: 'accepted' | 'dispatched' | 'acknowledged' | 'failed'; /** * Why the agent turned down or dropped the follow-up, if it did */ reason: 'workflow_version_conflict' | 'idempotency_conflict' | 'invalid_command_target' | 'action_requests_report_changed' | 'run_cancelled' | 'run_failed' | 'provider_not_connected' | 'provider_already_used' | null; /** * What the agent did with a re-run. Null for a re-check */ rerun: 'started' | 'held' | 'skipped' | null; /** * Whether the requesting user can send it again */ retryable: boolean; } | null; /** * When the agent suggested it */ dateCreated: string; }>; }; }; export type CreateOrganizationNotebookResponse = CreateOrganizationNotebookResponses[keyof CreateOrganizationNotebookResponses]; export type GetOrganizationNotebookData = { body?: never; path: { /** * The ID or slug of the organization the resource belongs to. */ organization_id_or_slug: string; /** * The ID of an investigation in this organization. */ notebook_id: string; }; query?: never; url: '/organizations/{organization_id_or_slug}/notebooks/{notebook_id}/'; }; export type GetOrganizationNotebookErrors = { /** * Bad Request */ 400: unknown; /** * Unauthorized */ 401: unknown; /** * Forbidden */ 403: unknown; /** * Not Found */ 404: unknown; }; export type GetOrganizationNotebookResponses = { /** * Full notebook with ordered active blocks, parameter definitions and saved values, project * IDs, and source context. source.snapshot is present only for source-backed investigations. * actionRequests has Seer's action requests that aren't superseded, plus stale ones while Seer * re-checks them, newest report first, with that report's primary at the top. */ 200: { /** * The notebook ID */ id: string; /** * The notebook title */ title: string; /** * A one-line summary of the notebook, if one was generated */ summary: string | null; /** * A longer summary of the notebook, if one was generated */ summaryDescription: string | null; /** * active or archived. Archived notebooks are read-only */ status: string; /** * What the notebook is about: manual, or a source type */ sourceType: string; /** * The ID of the user who created the notebook, if a user did */ createdBy: string | null; /** * The user or service account that created the notebook */ creator: { /** * Whether a user or a service account created the notebook */ type: 'user' | 'service_account' | 'system' | 'integration' | 'agent' | 'unknown'; /** * The ID of the user or service account that created the notebook */ id: string; } | null; /** * When the notebook was created */ dateCreated: string; /** * When the notebook last changed */ dateUpdated: string; /** * The notebook's concurrency token. Send it as notebookVersion with a change */ version: number; /** * The number of blocks the notebook has */ blockCount: number; /** * Whether the requesting user favorited the notebook */ isFavorited: boolean; /** * The state of automatic title generation */ titleGeneration: { /** * The state of automatic title generation, or null if it hasn't run */ status: string | null; }; /** * The agent's run for the notebook, if it has one */ orchestration: { /** * The phase the agent's run is in */ phase: string; /** * The status of the agent's run */ status: string; /** * When the run last reported progress */ heartbeatAt: string | null; /** * How many times the run has changed the notebook's report */ notebookRevision: number; } | null; /** * The template the notebook started from, if any */ template: { /** * The key of the template the notebook started from, if any */ key: string | null; /** * The version of that template, if any */ version: number | null; } | null; /** * What the notebook is about */ source: { /** * What Sentry knew about the source when the notebook started. Only on source-backed notebooks */ snapshot?: { [key: string]: { [key: string]: unknown; } | null | Array | string | number | boolean; }; /** * The source type: manual, or the type of what the notebook is about */ type: string; /** * The identifying fields of the source, such as an issue ID. Empty for a manual notebook */ ref: { [key: string]: { [key: string]: unknown; } | null | Array | string | number | boolean; }; /** * The notebook's revision for its source. A new revision starts once the previous one is archived. Null for a manual notebook */ revision: number | null; }; /** * Saved filters, stored with their original keys */ filters: { [key: string]: { [key: string]: unknown; } | null | Array | string | number | boolean; }; /** * The IDs of the projects the notebook covers */ projectIds: Array; /** * The notebook's parameters, in order */ parameters: Array<{ /** * The parameter ID */ id: string; /** * The key blocks use to refer to the parameter */ key: string; /** * The parameter's display name */ label: string; /** * What the parameter is for */ description: string; /** * The type of value the parameter takes */ type: string; /** * Whether the parameter needs a value */ required: boolean; /** * Limits on the parameter's value, by type */ constraints: { [key: string]: { [key: string]: unknown; } | null | Array | string | number | boolean; }; /** * The value used when none is saved */ defaultValue: { [key: string]: unknown; } | null | Array | string | number | boolean; /** * The saved value, or null */ savedValue: { [key: string]: unknown; } | null | Array | string | number | boolean; /** * Who defined the parameter */ source: string; /** * The parameter's position in the notebook */ position: number; /** * The parameter's concurrency token */ version: number; }>; /** * The notebook's blocks, in order */ blocks: Array<{ /** * The block ID */ id: string; /** * The block's position in the notebook, starting at 0 */ position: number; /** * text for Markdown, or query for a data query */ kind: string; /** * The block title. May be empty */ title: string; /** * The block's content: Markdown for text, the query for query */ content: string; /** * Instructions used when running the block */ generationPrompt: string; /** * The latest generated content, before anyone edited it */ generatedContent: string; /** * The latest successful result. Text blocks have schemaVersion and markdown */ output: { [key: string]: unknown; } | null | Array | string | number | boolean; /** * available, notRun, or the status of the latest execution */ outputStatus: string; /** * The latest execution, if the block has run */ currentExecution: { /** * The execution ID */ id: string; /** * The execution status */ status: string; /** * What ran the block */ executor: string; /** * The version of the result's schema */ schemaVersion: number; /** * When the execution started */ startedAt: string | null; /** * When the execution finished, if it has */ completedAt: string | null; /** * What went wrong, if the execution failed */ error: { [key: string]: unknown; } | null | Array | string | number | boolean; } | null; /** * How the block runs, such as auto-run */ config: { [key: string]: { [key: string]: unknown; } | null | Array | string | number | boolean; }; /** * How the block is shown. Text uses type markdown; query uses table, line, bar, or area */ display: { [key: string]: { [key: string]: unknown; } | null | Array | string | number | boolean; }; /** * The IDs of blocks this block depends on */ dependencies: Array; /** * The keys of the parameters the block uses */ parameterKeys: Array; /** * The block's concurrency token. Send it as version with a change */ version: number; /** * When an input changed after the output was made, if one did */ staleAt: string | null; /** * The ID of the user who added the block, if a user did */ createdBy: string | null; /** * The ID of the user who last edited the block, if a user did */ lastEditedBy: string | null; /** * The producer's key for the block, if a producer wrote it */ producerKey: string | null; /** * The producer's revision for the block, if a producer wrote it */ producerRevision: number | null; }>; /** * Steps the agent suggests, newest report first */ actionRequests: Array<{ /** * The action request ID */ id: string; /** * The agent's key for the request */ key: string; /** * The report revision that suggested it */ reportRevision: number; /** * Whether it's the recommended next step */ primary: boolean; /** * The block or hypothesis the request is under, if any */ anchor: { /** * block or hypothesis */ type: string; /** * The agent's ID for the block or hypothesis */ id: string; /** * The ID of the block the request is under, if it still exists */ blockId: string | null; } | null; /** * A short title for the step */ title: string; /** * Why the agent suggests it */ rationale: string; /** * What the step would change, if the agent said */ impact: string | null; /** * suggested, applied, failed, superseded, or withdrawn */ state: string; /** * Why the request is in its state, if there's a reason */ reason: string | null; /** * The agent's action payload, or null when the request is only advice */ action: { [key: string]: { [key: string]: unknown; } | null | Array | string | number | boolean; } | null; /** * Whether the requesting user can apply it now */ canApply: boolean; /** * Why the requesting user can't apply it, if they can't */ cannotApplyReason: 'investigation_archived' | 'not_suggested' | 'unsupported_action' | 'no_access' | 'not_target_detector' | 'detector_not_found' | 'permission_denied' | 'dynamic_detector' | null; /** * The user who applied it. Null when Sentry applied it */ appliedBy: { /** * SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access */ identities?: Array<{ /** * SSO identity ID */ id: string; /** * User's identifier at the auth provider */ name: string; /** * Organization the auth provider belongs to */ organization: { /** * Organization slug */ slug: string; /** * Organization name */ name: string; }; /** * Auth provider of the identity */ provider: { /** * Auth provider key, such as google or saml2 */ id: string; /** * Display name of the auth provider */ name: string; }; /** * When the identity was last verified by signing in through the auth provider */ dateVerified: string; /** * When the identity was last synced from the auth provider */ dateSynced: string; }>; /** * User avatar */ avatar?: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Two-factor authenticators of the user, without backup methods such as recovery codes */ authenticators?: Array<{ /** * Authenticator ID */ id: string; /** * Authenticator type, such as totp, sms, u2f or recovery */ type: string; /** * Display name of the authenticator type */ name: string; /** * When the authenticator was added */ dateCreated: string; /** * When the authenticator was last used, or null */ dateUsed: string | null; }>; /** * Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization */ canReset2fa?: boolean; /** * User ID */ id: string; /** * Display name: the user's name, or their email or username if no name is set */ name: string; /** * Username */ username: string; /** * Primary email address */ email: string; /** * Gravatar URL for the primary email address */ avatarUrl: string; /** * Whether the account is active */ isActive: boolean; /** * Whether the account is suspended. Suspended users can't sign in */ isSuspended: boolean; /** * Whether the user has a password set */ hasPasswordAuth: boolean; /** * Whether the account is managed, which stops the user from changing their username, password and similar details */ isManaged: boolean; /** * When the account was created */ dateJoined: string; /** * When the user last signed in, or null */ lastLogin: string | null; /** * Whether the user has two-factor authentication enabled */ has2fa: boolean; /** * When the user was last active, or null */ lastActive: string | null; /** * Whether the user is a superuser */ isSuperuser: boolean; /** * Whether the user has staff status */ isStaff: boolean; /** * Deprecated. Always an empty object */ experiments: { [key: string]: string; }; /** * Email addresses of the user. Only included for the requesting user or superusers; empty otherwise */ emails: Array<{ /** * Email ID */ id: string; /** * Email address */ email: string; /** * Whether the email address is verified */ is_verified: boolean; }>; } | null; /** * What applying it changed. The fields depend on the action */ appliedDetails: { /** * The ID of the monitor that was changed */ detectorId: string; /** * The name of the monitor that was changed */ detectorName: string; /** * The monitor settings that were changed */ fields: Array; } | { /** * The telemetry provider that was connected */ provider: 'datadog' | 'gcp'; } | null; /** * When it was applied */ dateApplied: string | null; /** * What went wrong, if applying it failed */ error: { /** * The error code */ code: 'already_applied' | 'withdrawn' | 'stale' | 'validation_failed' | 'action_changed' | 'not_stale' | 'not_retryable'; /** * The current values of the settings the action would change */ current?: { [key: string]: number | number | string | null; }; /** * Messages that explain the error */ messages?: Array; } | null; /** * The re-check or re-run Sentry sent the agent, if any */ followUp: { /** * Where the follow-up is */ status: 'accepted' | 'dispatched' | 'acknowledged' | 'failed'; /** * Why the agent turned down or dropped the follow-up, if it did */ reason: 'workflow_version_conflict' | 'idempotency_conflict' | 'invalid_command_target' | 'action_requests_report_changed' | 'run_cancelled' | 'run_failed' | 'provider_not_connected' | 'provider_already_used' | null; /** * What the agent did with a re-run. Null for a re-check */ rerun: 'started' | 'held' | 'skipped' | null; /** * Whether the requesting user can send it again */ retryable: boolean; } | null; /** * When the agent suggested it */ dateCreated: string; }>; }; }; export type GetOrganizationNotebookResponse = GetOrganizationNotebookResponses[keyof GetOrganizationNotebookResponses]; export type CreateOrganizationNotebookBlockData = { /** * Append a user's block, or write a producer's block by key and revision. * * Needs notebook, user_id and producer_writer in its context. */ body: { /** * Block kind: text for Markdown or query for an agent-generated data query. A producer's block must be text. * * * `text` - Text * * `query` - Query */ kind: 'text' | 'query'; /** * Current notebook version from the latest detail response. Stale versions return 409. Send this, or key and revision. */ notebookVersion?: number; /** * The producer's stable key for the block. Writing the same key again updates the block, even if a user edited or deleted it. Send with revision instead of notebookVersion. Only service accounts and Seer agents can send it. */ key?: string; /** * The producer's revision for the block. A block with a newer revision returns 409, and a write can raise it by at most 100. */ revision?: number; /** * Index among the notebook's blocks where a producer's block goes. Later blocks shift down, and a larger index puts it last. A new block goes last when omitted, and an existing block stays put. */ position?: number; /** * Block title. May be empty. */ title?: string; /** * Markdown content. May be empty, except in a producer's block. */ content?: string; /** * Instructions used when executing the block. May be empty. */ generationPrompt?: string; /** * Block configuration object. Nested keys are preserved. */ config?: { [key: string]: unknown; }; /** * Display settings. Text uses type markdown; query uses table, line, bar, or area. Versioned settings use version 1. Charts require xAxis and non-empty yAxes. Defaults to Markdown for text and table for query. */ display?: { [key: string]: unknown; }; }; path: { /** * The ID or slug of the organization the resource belongs to. */ organization_id_or_slug: string; /** * The ID of an investigation in this organization. */ notebook_id: string; }; query?: never; url: '/organizations/{organization_id_or_slug}/notebooks/{notebook_id}/blocks/'; }; export type CreateOrganizationNotebookBlockErrors = { /** * Bad Request */ 400: unknown; /** * Unauthorized */ 401: unknown; /** * Forbidden */ 403: unknown; /** * Not Found */ 404: unknown; /** * Conflict */ 409: unknown; }; export type CreateOrganizationNotebookBlockResponses = { /** * Notebook block. version is the block concurrency token; dependencies are block IDs and * parameterKeys reference notebook parameters. output is the latest successful result and may * remain available during a rerun; currentExecution describes the latest attempt. Poll * execution details for transcript and pending input. producerKey and producerRevision are * set on blocks a producer wrote. */ 200: { /** * The block ID */ id: string; /** * The block's position in the notebook, starting at 0 */ position: number; /** * text for Markdown, or query for a data query */ kind: string; /** * The block title. May be empty */ title: string; /** * The block's content: Markdown for text, the query for query */ content: string; /** * Instructions used when running the block */ generationPrompt: string; /** * The latest generated content, before anyone edited it */ generatedContent: string; /** * The latest successful result. Text blocks have schemaVersion and markdown */ output: { [key: string]: unknown; } | null | Array | string | number | boolean; /** * available, notRun, or the status of the latest execution */ outputStatus: string; /** * The latest execution, if the block has run */ currentExecution: { /** * The execution ID */ id: string; /** * The execution status */ status: string; /** * What ran the block */ executor: string; /** * The version of the result's schema */ schemaVersion: number; /** * When the execution started */ startedAt: string | null; /** * When the execution finished, if it has */ completedAt: string | null; /** * What went wrong, if the execution failed */ error: { [key: string]: unknown; } | null | Array | string | number | boolean; } | null; /** * How the block runs, such as auto-run */ config: { [key: string]: { [key: string]: unknown; } | null | Array | string | number | boolean; }; /** * How the block is shown. Text uses type markdown; query uses table, line, bar, or area */ display: { [key: string]: { [key: string]: unknown; } | null | Array | string | number | boolean; }; /** * The IDs of blocks this block depends on */ dependencies: Array; /** * The keys of the parameters the block uses */ parameterKeys: Array; /** * The block's concurrency token. Send it as version with a change */ version: number; /** * When an input changed after the output was made, if one did */ staleAt: string | null; /** * The ID of the user who added the block, if a user did */ createdBy: string | null; /** * The ID of the user who last edited the block, if a user did */ lastEditedBy: string | null; /** * The producer's key for the block, if a producer wrote it */ producerKey: string | null; /** * The producer's revision for the block, if a producer wrote it */ producerRevision: number | null; }; /** * Notebook block. version is the block concurrency token; dependencies are block IDs and * parameterKeys reference notebook parameters. output is the latest successful result and may * remain available during a rerun; currentExecution describes the latest attempt. Poll * execution details for transcript and pending input. producerKey and producerRevision are * set on blocks a producer wrote. */ 201: { /** * The block ID */ id: string; /** * The block's position in the notebook, starting at 0 */ position: number; /** * text for Markdown, or query for a data query */ kind: string; /** * The block title. May be empty */ title: string; /** * The block's content: Markdown for text, the query for query */ content: string; /** * Instructions used when running the block */ generationPrompt: string; /** * The latest generated content, before anyone edited it */ generatedContent: string; /** * The latest successful result. Text blocks have schemaVersion and markdown */ output: { [key: string]: unknown; } | null | Array | string | number | boolean; /** * available, notRun, or the status of the latest execution */ outputStatus: string; /** * The latest execution, if the block has run */ currentExecution: { /** * The execution ID */ id: string; /** * The execution status */ status: string; /** * What ran the block */ executor: string; /** * The version of the result's schema */ schemaVersion: number; /** * When the execution started */ startedAt: string | null; /** * When the execution finished, if it has */ completedAt: string | null; /** * What went wrong, if the execution failed */ error: { [key: string]: unknown; } | null | Array | string | number | boolean; } | null; /** * How the block runs, such as auto-run */ config: { [key: string]: { [key: string]: unknown; } | null | Array | string | number | boolean; }; /** * How the block is shown. Text uses type markdown; query uses table, line, bar, or area */ display: { [key: string]: { [key: string]: unknown; } | null | Array | string | number | boolean; }; /** * The IDs of blocks this block depends on */ dependencies: Array; /** * The keys of the parameters the block uses */ parameterKeys: Array; /** * The block's concurrency token. Send it as version with a change */ version: number; /** * When an input changed after the output was made, if one did */ staleAt: string | null; /** * The ID of the user who added the block, if a user did */ createdBy: string | null; /** * The ID of the user who last edited the block, if a user did */ lastEditedBy: string | null; /** * The producer's key for the block, if a producer wrote it */ producerKey: string | null; /** * The producer's revision for the block, if a producer wrote it */ producerRevision: number | null; }; }; export type CreateOrganizationNotebookBlockResponse = CreateOrganizationNotebookBlockResponses[keyof CreateOrganizationNotebookBlockResponses]; export type DeleteOrganizationNotebookBlockData = { /** * Camel-case API fields while preserving keys inside JSON objects. * * Unknown fields are rejected rather than silently dropped, so a typo'd field * name fails loudly instead of being ignored. */ body: { /** * Current notebook version from the latest detail response. Stale versions return 409. */ notebookVersion: number; /** * Current block version from the latest block response. Stale versions return 409. */ version: number; }; path: { /** * The ID or slug of the organization the resource belongs to. */ organization_id_or_slug: string; /** * The ID of an investigation in this organization. */ notebook_id: string; /** * The ID of an active block in this investigation. */ block_id: string; }; query?: never; url: '/organizations/{organization_id_or_slug}/notebooks/{notebook_id}/blocks/{block_id}/'; }; export type DeleteOrganizationNotebookBlockErrors = { /** * Bad Request */ 400: unknown; /** * Unauthorized */ 401: unknown; /** * Forbidden */ 403: unknown; /** * Not Found */ 404: unknown; /** * Conflict */ 409: unknown; }; export type DeleteOrganizationNotebookBlockResponses = { /** * No Content */ 204: void; }; export type DeleteOrganizationNotebookBlockResponse = DeleteOrganizationNotebookBlockResponses[keyof DeleteOrganizationNotebookBlockResponses]; export type UpdateOrganizationNotebookBlockData = { /** * Camel-case API fields while preserving keys inside JSON objects. * * Unknown fields are rejected rather than silently dropped, so a typo'd field * name fails loudly instead of being ignored. */ body: { /** * Current notebook version from the latest detail response. Stale versions return 409. */ notebookVersion: number; /** * Current block version from the latest block response. Stale versions return 409. */ version: number; /** * Block title. May be empty. */ title?: string; /** * User-authored content. May be empty. */ content?: string; /** * Instructions used when executing the block. May be empty. */ generationPrompt?: string; /** * Block configuration object. Nested keys are preserved. */ config?: { [key: string]: unknown; }; /** * Display settings. Text uses type markdown; query uses table, line, bar, or area. Versioned settings use version 1. Charts require xAxis and non-empty yAxes. Defaults to Markdown for text and table for query. */ display?: { [key: string]: unknown; }; }; path: { /** * The ID or slug of the organization the resource belongs to. */ organization_id_or_slug: string; /** * The ID of an investigation in this organization. */ notebook_id: string; /** * The ID of an active block in this investigation. */ block_id: string; }; query?: never; url: '/organizations/{organization_id_or_slug}/notebooks/{notebook_id}/blocks/{block_id}/'; }; export type UpdateOrganizationNotebookBlockErrors = { /** * Bad Request */ 400: unknown; /** * Unauthorized */ 401: unknown; /** * Forbidden */ 403: unknown; /** * Not Found */ 404: unknown; /** * Conflict */ 409: unknown; }; export type UpdateOrganizationNotebookBlockResponses = { /** * Notebook block. version is the block concurrency token; dependencies are block IDs and * parameterKeys reference notebook parameters. output is the latest successful result and may * remain available during a rerun; currentExecution describes the latest attempt. Poll * execution details for transcript and pending input. producerKey and producerRevision are * set on blocks a producer wrote. */ 200: { /** * The block ID */ id: string; /** * The block's position in the notebook, starting at 0 */ position: number; /** * text for Markdown, or query for a data query */ kind: string; /** * The block title. May be empty */ title: string; /** * The block's content: Markdown for text, the query for query */ content: string; /** * Instructions used when running the block */ generationPrompt: string; /** * The latest generated content, before anyone edited it */ generatedContent: string; /** * The latest successful result. Text blocks have schemaVersion and markdown */ output: { [key: string]: unknown; } | null | Array | string | number | boolean; /** * available, notRun, or the status of the latest execution */ outputStatus: string; /** * The latest execution, if the block has run */ currentExecution: { /** * The execution ID */ id: string; /** * The execution status */ status: string; /** * What ran the block */ executor: string; /** * The version of the result's schema */ schemaVersion: number; /** * When the execution started */ startedAt: string | null; /** * When the execution finished, if it has */ completedAt: string | null; /** * What went wrong, if the execution failed */ error: { [key: string]: unknown; } | null | Array | string | number | boolean; } | null; /** * How the block runs, such as auto-run */ config: { [key: string]: { [key: string]: unknown; } | null | Array | string | number | boolean; }; /** * How the block is shown. Text uses type markdown; query uses table, line, bar, or area */ display: { [key: string]: { [key: string]: unknown; } | null | Array | string | number | boolean; }; /** * The IDs of blocks this block depends on */ dependencies: Array; /** * The keys of the parameters the block uses */ parameterKeys: Array; /** * The block's concurrency token. Send it as version with a change */ version: number; /** * When an input changed after the output was made, if one did */ staleAt: string | null; /** * The ID of the user who added the block, if a user did */ createdBy: string | null; /** * The ID of the user who last edited the block, if a user did */ lastEditedBy: string | null; /** * The producer's key for the block, if a producer wrote it */ producerKey: string | null; /** * The producer's revision for the block, if a producer wrote it */ producerRevision: number | null; }; }; export type UpdateOrganizationNotebookBlockResponse = UpdateOrganizationNotebookBlockResponses[keyof UpdateOrganizationNotebookBlockResponses]; export type UpdateOrganizationNotebookBlocksOrderData = { /** * Camel-case API fields while preserving keys inside JSON objects. * * Unknown fields are rejected rather than silently dropped, so a typo'd field * name fails loudly instead of being ignored. */ body: { /** * Current notebook version from the latest detail response. Stale versions return 409. */ notebookVersion: number; /** * Every active block ID exactly once, in the desired order. */ blockIds: Array; }; path: { /** * The ID or slug of the organization the resource belongs to. */ organization_id_or_slug: string; /** * The ID of an investigation in this organization. */ notebook_id: string; }; query?: never; url: '/organizations/{organization_id_or_slug}/notebooks/{notebook_id}/blocks/order/'; }; export type UpdateOrganizationNotebookBlocksOrderErrors = { /** * Bad Request */ 400: unknown; /** * Unauthorized */ 401: unknown; /** * Forbidden */ 403: unknown; /** * Not Found */ 404: unknown; /** * Conflict */ 409: unknown; }; export type UpdateOrganizationNotebookBlocksOrderResponses = { /** * Full notebook with ordered active blocks, parameter definitions and saved values, project * IDs, and source context. source.snapshot is present only for source-backed investigations. * actionRequests has Seer's action requests that aren't superseded, plus stale ones while Seer * re-checks them, newest report first, with that report's primary at the top. */ 200: { /** * The notebook ID */ id: string; /** * The notebook title */ title: string; /** * A one-line summary of the notebook, if one was generated */ summary: string | null; /** * A longer summary of the notebook, if one was generated */ summaryDescription: string | null; /** * active or archived. Archived notebooks are read-only */ status: string; /** * What the notebook is about: manual, or a source type */ sourceType: string; /** * The ID of the user who created the notebook, if a user did */ createdBy: string | null; /** * The user or service account that created the notebook */ creator: { /** * Whether a user or a service account created the notebook */ type: 'user' | 'service_account' | 'system' | 'integration' | 'agent' | 'unknown'; /** * The ID of the user or service account that created the notebook */ id: string; } | null; /** * When the notebook was created */ dateCreated: string; /** * When the notebook last changed */ dateUpdated: string; /** * The notebook's concurrency token. Send it as notebookVersion with a change */ version: number; /** * The number of blocks the notebook has */ blockCount: number; /** * Whether the requesting user favorited the notebook */ isFavorited: boolean; /** * The state of automatic title generation */ titleGeneration: { /** * The state of automatic title generation, or null if it hasn't run */ status: string | null; }; /** * The agent's run for the notebook, if it has one */ orchestration: { /** * The phase the agent's run is in */ phase: string; /** * The status of the agent's run */ status: string; /** * When the run last reported progress */ heartbeatAt: string | null; /** * How many times the run has changed the notebook's report */ notebookRevision: number; } | null; /** * The template the notebook started from, if any */ template: { /** * The key of the template the notebook started from, if any */ key: string | null; /** * The version of that template, if any */ version: number | null; } | null; /** * What the notebook is about */ source: { /** * What Sentry knew about the source when the notebook started. Only on source-backed notebooks */ snapshot?: { [key: string]: { [key: string]: unknown; } | null | Array | string | number | boolean; }; /** * The source type: manual, or the type of what the notebook is about */ type: string; /** * The identifying fields of the source, such as an issue ID. Empty for a manual notebook */ ref: { [key: string]: { [key: string]: unknown; } | null | Array | string | number | boolean; }; /** * The notebook's revision for its source. A new revision starts once the previous one is archived. Null for a manual notebook */ revision: number | null; }; /** * Saved filters, stored with their original keys */ filters: { [key: string]: { [key: string]: unknown; } | null | Array | string | number | boolean; }; /** * The IDs of the projects the notebook covers */ projectIds: Array; /** * The notebook's parameters, in order */ parameters: Array<{ /** * The parameter ID */ id: string; /** * The key blocks use to refer to the parameter */ key: string; /** * The parameter's display name */ label: string; /** * What the parameter is for */ description: string; /** * The type of value the parameter takes */ type: string; /** * Whether the parameter needs a value */ required: boolean; /** * Limits on the parameter's value, by type */ constraints: { [key: string]: { [key: string]: unknown; } | null | Array | string | number | boolean; }; /** * The value used when none is saved */ defaultValue: { [key: string]: unknown; } | null | Array | string | number | boolean; /** * The saved value, or null */ savedValue: { [key: string]: unknown; } | null | Array | string | number | boolean; /** * Who defined the parameter */ source: string; /** * The parameter's position in the notebook */ position: number; /** * The parameter's concurrency token */ version: number; }>; /** * The notebook's blocks, in order */ blocks: Array<{ /** * The block ID */ id: string; /** * The block's position in the notebook, starting at 0 */ position: number; /** * text for Markdown, or query for a data query */ kind: string; /** * The block title. May be empty */ title: string; /** * The block's content: Markdown for text, the query for query */ content: string; /** * Instructions used when running the block */ generationPrompt: string; /** * The latest generated content, before anyone edited it */ generatedContent: string; /** * The latest successful result. Text blocks have schemaVersion and markdown */ output: { [key: string]: unknown; } | null | Array | string | number | boolean; /** * available, notRun, or the status of the latest execution */ outputStatus: string; /** * The latest execution, if the block has run */ currentExecution: { /** * The execution ID */ id: string; /** * The execution status */ status: string; /** * What ran the block */ executor: string; /** * The version of the result's schema */ schemaVersion: number; /** * When the execution started */ startedAt: string | null; /** * When the execution finished, if it has */ completedAt: string | null; /** * What went wrong, if the execution failed */ error: { [key: string]: unknown; } | null | Array | string | number | boolean; } | null; /** * How the block runs, such as auto-run */ config: { [key: string]: { [key: string]: unknown; } | null | Array | string | number | boolean; }; /** * How the block is shown. Text uses type markdown; query uses table, line, bar, or area */ display: { [key: string]: { [key: string]: unknown; } | null | Array | string | number | boolean; }; /** * The IDs of blocks this block depends on */ dependencies: Array; /** * The keys of the parameters the block uses */ parameterKeys: Array; /** * The block's concurrency token. Send it as version with a change */ version: number; /** * When an input changed after the output was made, if one did */ staleAt: string | null; /** * The ID of the user who added the block, if a user did */ createdBy: string | null; /** * The ID of the user who last edited the block, if a user did */ lastEditedBy: string | null; /** * The producer's key for the block, if a producer wrote it */ producerKey: string | null; /** * The producer's revision for the block, if a producer wrote it */ producerRevision: number | null; }>; /** * Steps the agent suggests, newest report first */ actionRequests: Array<{ /** * The action request ID */ id: string; /** * The agent's key for the request */ key: string; /** * The report revision that suggested it */ reportRevision: number; /** * Whether it's the recommended next step */ primary: boolean; /** * The block or hypothesis the request is under, if any */ anchor: { /** * block or hypothesis */ type: string; /** * The agent's ID for the block or hypothesis */ id: string; /** * The ID of the block the request is under, if it still exists */ blockId: string | null; } | null; /** * A short title for the step */ title: string; /** * Why the agent suggests it */ rationale: string; /** * What the step would change, if the agent said */ impact: string | null; /** * suggested, applied, failed, superseded, or withdrawn */ state: string; /** * Why the request is in its state, if there's a reason */ reason: string | null; /** * The agent's action payload, or null when the request is only advice */ action: { [key: string]: { [key: string]: unknown; } | null | Array | string | number | boolean; } | null; /** * Whether the requesting user can apply it now */ canApply: boolean; /** * Why the requesting user can't apply it, if they can't */ cannotApplyReason: 'investigation_archived' | 'not_suggested' | 'unsupported_action' | 'no_access' | 'not_target_detector' | 'detector_not_found' | 'permission_denied' | 'dynamic_detector' | null; /** * The user who applied it. Null when Sentry applied it */ appliedBy: { /** * SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access */ identities?: Array<{ /** * SSO identity ID */ id: string; /** * User's identifier at the auth provider */ name: string; /** * Organization the auth provider belongs to */ organization: { /** * Organization slug */ slug: string; /** * Organization name */ name: string; }; /** * Auth provider of the identity */ provider: { /** * Auth provider key, such as google or saml2 */ id: string; /** * Display name of the auth provider */ name: string; }; /** * When the identity was last verified by signing in through the auth provider */ dateVerified: string; /** * When the identity was last synced from the auth provider */ dateSynced: string; }>; /** * User avatar */ avatar?: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Two-factor authenticators of the user, without backup methods such as recovery codes */ authenticators?: Array<{ /** * Authenticator ID */ id: string; /** * Authenticator type, such as totp, sms, u2f or recovery */ type: string; /** * Display name of the authenticator type */ name: string; /** * When the authenticator was added */ dateCreated: string; /** * When the authenticator was last used, or null */ dateUsed: string | null; }>; /** * Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization */ canReset2fa?: boolean; /** * User ID */ id: string; /** * Display name: the user's name, or their email or username if no name is set */ name: string; /** * Username */ username: string; /** * Primary email address */ email: string; /** * Gravatar URL for the primary email address */ avatarUrl: string; /** * Whether the account is active */ isActive: boolean; /** * Whether the account is suspended. Suspended users can't sign in */ isSuspended: boolean; /** * Whether the user has a password set */ hasPasswordAuth: boolean; /** * Whether the account is managed, which stops the user from changing their username, password and similar details */ isManaged: boolean; /** * When the account was created */ dateJoined: string; /** * When the user last signed in, or null */ lastLogin: string | null; /** * Whether the user has two-factor authentication enabled */ has2fa: boolean; /** * When the user was last active, or null */ lastActive: string | null; /** * Whether the user is a superuser */ isSuperuser: boolean; /** * Whether the user has staff status */ isStaff: boolean; /** * Deprecated. Always an empty object */ experiments: { [key: string]: string; }; /** * Email addresses of the user. Only included for the requesting user or superusers; empty otherwise */ emails: Array<{ /** * Email ID */ id: string; /** * Email address */ email: string; /** * Whether the email address is verified */ is_verified: boolean; }>; } | null; /** * What applying it changed. The fields depend on the action */ appliedDetails: { /** * The ID of the monitor that was changed */ detectorId: string; /** * The name of the monitor that was changed */ detectorName: string; /** * The monitor settings that were changed */ fields: Array; } | { /** * The telemetry provider that was connected */ provider: 'datadog' | 'gcp'; } | null; /** * When it was applied */ dateApplied: string | null; /** * What went wrong, if applying it failed */ error: { /** * The error code */ code: 'already_applied' | 'withdrawn' | 'stale' | 'validation_failed' | 'action_changed' | 'not_stale' | 'not_retryable'; /** * The current values of the settings the action would change */ current?: { [key: string]: number | number | string | null; }; /** * Messages that explain the error */ messages?: Array; } | null; /** * The re-check or re-run Sentry sent the agent, if any */ followUp: { /** * Where the follow-up is */ status: 'accepted' | 'dispatched' | 'acknowledged' | 'failed'; /** * Why the agent turned down or dropped the follow-up, if it did */ reason: 'workflow_version_conflict' | 'idempotency_conflict' | 'invalid_command_target' | 'action_requests_report_changed' | 'run_cancelled' | 'run_failed' | 'provider_not_connected' | 'provider_already_used' | null; /** * What the agent did with a re-run. Null for a re-check */ rerun: 'started' | 'held' | 'skipped' | null; /** * Whether the requesting user can send it again */ retryable: boolean; } | null; /** * When the agent suggested it */ dateCreated: string; }>; }; }; export type UpdateOrganizationNotebookBlocksOrderResponse = UpdateOrganizationNotebookBlocksOrderResponses[keyof UpdateOrganizationNotebookBlocksOrderResponses]; export type ListOrganizationNotificationsActionsData = { body?: never; path: { /** * The ID or slug of the organization the resource belongs to. */ organization_id_or_slug: string; }; query?: { /** * The IDs or slugs of projects to filter by. Project slugs are unique within each organization. Omit this parameter to include all accessible projects. `-1` is also accepted to include all accessible projects. * For example, the following are valid parameters: * - `/?project=1234&project=56789` * - `/?project=android&project=javascript-react` * - `/?project=-1` * */ project?: Array; /** * The legacy project slug filter. Prefer `project`, which accepts project IDs or slugs. Use `$all` to include all available projects. For example, the following are valid parameters: * - `/?projectSlug=$all` * - `/?projectSlug=android&projectSlug=javascript-react` * */ project_id_or_slug?: Array; /** * Type of the trigger that causes the notification. The only supported value right now is: `spike-protection` */ triggerType?: string; }; url: '/organizations/{organization_id_or_slug}/notifications/actions/'; }; export type ListOrganizationNotificationsActionsErrors = { /** * Bad Request */ 400: unknown; /** * Forbidden */ 403: unknown; }; export type ListOrganizationNotificationsActionsResponses = { 201: { /** * ID of the notification action */ id: number; /** * ID of the organization */ organizationId: number; /** * ID of the integration that sends the notification. Null when none is used */ integrationId: number | null; /** * ID of the Sentry app that receives the notification. Null when none is used */ sentryAppId: number | null; /** * IDs of the projects the action applies to */ projects: Array; /** * Service that sends the notification, such as email, slack or pagerduty */ serviceType: string | null; /** * What triggers the action, such as audit-log or spike-protection */ triggerType: string; /** * Kind of target: specific, user, team, sentry_app or issue_owners */ targetType: string | null; /** * ID of the target in the service, such as a Slack channel ID */ targetIdentifier: string | null; /** * Name of the target, such as #alerts */ targetDisplay: string | null; }; }; export type ListOrganizationNotificationsActionsResponse = ListOrganizationNotificationsActionsResponses[keyof ListOrganizationNotificationsActionsResponses]; export type CreateOrganizationNotificationsActionData = { /** * Django Rest Framework serializer for incoming NotificationAction API payloads */ body: { /** * Type of the trigger that causes the notification. The only supported trigger right now is: `spike-protection`. */ trigger_type: string; /** * Service that is used for sending the notification. * - `email` * - `slack` * - `sentry_notification` * - `pagerduty` * - `opsgenie` * */ service_type: string; /** * ID of the integration used as the notification service. See * [List Integrations](https://docs.sentry.io/api/integrations/list-an-organizations-available-integrations/) * to retrieve a full list of integrations. * * Required if **service_type** is `slack`, `pagerduty` or `opsgenie`. * */ integration_id?: number; /** * ID of the notification target, like a Slack channel ID. * * Required if **service_type** is `slack` or `opsgenie`. * */ target_identifier?: string; /** * Name of the notification target, like a Slack channel name. * * Required if **service_type** is `slack` or `opsgenie`. * */ target_display?: string; /** * List of project IDs or slugs that the Notification Action is created for. */ projects?: Array; /** * ID of the custom integration to notify, when the target is a Sentry app. */ sentry_app_id?: number; /** * How the notification target is addressed. */ target_type?: string; }; path: { /** * The ID or slug of the organization the resource belongs to. */ organization_id_or_slug: string; }; query?: never; url: '/organizations/{organization_id_or_slug}/notifications/actions/'; }; export type CreateOrganizationNotificationsActionErrors = { /** * Bad Request */ 400: unknown; /** * Forbidden */ 403: unknown; }; export type CreateOrganizationNotificationsActionResponses = { 201: { /** * ID of the notification action */ id: number; /** * ID of the organization */ organizationId: number; /** * ID of the integration that sends the notification. Null when none is used */ integrationId: number | null; /** * ID of the Sentry app that receives the notification. Null when none is used */ sentryAppId: number | null; /** * IDs of the projects the action applies to */ projects: Array; /** * Service that sends the notification, such as email, slack or pagerduty */ serviceType: string | null; /** * What triggers the action, such as audit-log or spike-protection */ triggerType: string; /** * Kind of target: specific, user, team, sentry_app or issue_owners */ targetType: string | null; /** * ID of the target in the service, such as a Slack channel ID */ targetIdentifier: string | null; /** * Name of the target, such as #alerts */ targetDisplay: string | null; }; }; export type CreateOrganizationNotificationsActionResponse = CreateOrganizationNotificationsActionResponses[keyof CreateOrganizationNotificationsActionResponses]; export type DeleteOrganizationNotificationsActionData = { body?: never; path: { /** * The ID or slug of the organization the resource belongs to. */ organization_id_or_slug: string; /** * ID of the notification action to retrieve */ action_id: number; }; query?: never; url: '/organizations/{organization_id_or_slug}/notifications/actions/{action_id}/'; }; export type DeleteOrganizationNotificationsActionResponses = { /** * No Content */ 204: void; }; export type DeleteOrganizationNotificationsActionResponse = DeleteOrganizationNotificationsActionResponses[keyof DeleteOrganizationNotificationsActionResponses]; export type GetOrganizationNotificationsActionData = { body?: never; path: { /** * The ID or slug of the organization the resource belongs to. */ organization_id_or_slug: string; /** * ID of the notification action to retrieve */ action_id: number; }; query?: never; url: '/organizations/{organization_id_or_slug}/notifications/actions/{action_id}/'; }; export type GetOrganizationNotificationsActionResponses = { 200: { /** * ID of the notification action */ id: number; /** * ID of the organization */ organizationId: number; /** * ID of the integration that sends the notification. Null when none is used */ integrationId: number | null; /** * ID of the Sentry app that receives the notification. Null when none is used */ sentryAppId: number | null; /** * IDs of the projects the action applies to */ projects: Array; /** * Service that sends the notification, such as email, slack or pagerduty */ serviceType: string | null; /** * What triggers the action, such as audit-log or spike-protection */ triggerType: string; /** * Kind of target: specific, user, team, sentry_app or issue_owners */ targetType: string | null; /** * ID of the target in the service, such as a Slack channel ID */ targetIdentifier: string | null; /** * Name of the target, such as #alerts */ targetDisplay: string | null; }; }; export type GetOrganizationNotificationsActionResponse = GetOrganizationNotificationsActionResponses[keyof GetOrganizationNotificationsActionResponses]; export type UpdateOrganizationNotificationsActionData = { /** * Django Rest Framework serializer for incoming NotificationAction API payloads */ body: { /** * Type of the trigger that causes the notification. The only supported trigger right now is: `spike-protection`. */ trigger_type: string; /** * Service that is used for sending the notification. * - `email` * - `slack` * - `sentry_notification` * - `pagerduty` * - `opsgenie` * */ service_type: string; /** * ID of the integration used as the notification service. See * [List Integrations](https://docs.sentry.io/api/integrations/list-an-organizations-available-integrations/) * to retrieve a full list of integrations. * * Required if **service_type** is `slack`, `pagerduty` or `opsgenie`. * */ integration_id?: number; /** * ID of the notification target, like a Slack channel ID. * * Required if **service_type** is `slack` or `opsgenie`. * */ target_identifier?: string; /** * Name of the notification target, like a Slack channel name. * * Required if **service_type** is `slack` or `opsgenie`. * */ target_display?: string; /** * List of project IDs or slugs that the Notification Action is created for. */ projects?: Array; /** * ID of the custom integration to notify, when the target is a Sentry app. */ sentry_app_id?: number; /** * How the notification target is addressed. */ target_type?: string; }; path: { /** * The ID or slug of the organization the resource belongs to. */ organization_id_or_slug: string; /** * ID of the notification action to retrieve */ action_id: number; }; query?: never; url: '/organizations/{organization_id_or_slug}/notifications/actions/{action_id}/'; }; export type UpdateOrganizationNotificationsActionErrors = { /** * Bad Request */ 400: unknown; }; export type UpdateOrganizationNotificationsActionResponses = { 202: { /** * ID of the notification action */ id: number; /** * ID of the organization */ organizationId: number; /** * ID of the integration that sends the notification. Null when none is used */ integrationId: number | null; /** * ID of the Sentry app that receives the notification. Null when none is used */ sentryAppId: number | null; /** * IDs of the projects the action applies to */ projects: Array; /** * Service that sends the notification, such as email, slack or pagerduty */ serviceType: string | null; /** * What triggers the action, such as audit-log or spike-protection */ triggerType: string; /** * Kind of target: specific, user, team, sentry_app or issue_owners */ targetType: string | null; /** * ID of the target in the service, such as a Slack channel ID */ targetIdentifier: string | null; /** * Name of the target, such as #alerts */ targetDisplay: string | null; }; }; export type UpdateOrganizationNotificationsActionResponse = UpdateOrganizationNotificationsActionResponses[keyof UpdateOrganizationNotificationsActionResponses]; export type ListOrganizationOpenPeriodsData = { body?: never; path: { /** * The ID or slug of the organization the resource belongs to. */ organization_id_or_slug: string; }; query?: { /** * The start of the period of time for the query, expected in ISO-8601 format. For example, `2001-12-14T12:34:56.7890`. */ start?: string; /** * The end of the period of time for the query, expected in ISO-8601 format. For example, `2001-12-14T12:34:56.7890`. */ end?: string; /** * The period of time for the query, will override the start & end parameters, a number followed by one of: * - `d` for days * - `h` for hours * - `m` for minutes * - `s` for seconds * - `w` for weeks * * For example, `24h`, to mean query data starting from 24 hours ago to now. */ statsPeriod?: string; /** * Limit the number of rows to return in the result. Default and maximum allowed is 100. */ per_page?: number; /** * A pointer to the last object fetched and its sort order; used to retrieve the next or previous results. */ cursor?: string; /** * ID of the detector. Returns open periods from every issue the detector has opened if it opens a new issue per activation, otherwise from its most recent issue. */ detectorId?: string; /** * ID of the issue group. */ groupId?: string; /** * ID of the event to filter open periods by. */ eventId?: string; /** * Seconds to subtract from each open period's start and end, such as the detector's time window, so they line up with the event bucket instead of the update. Defaults to 0. */ bucketSize?: number; }; url: '/organizations/{organization_id_or_slug}/open-periods/'; }; export type ListOrganizationOpenPeriodsErrors = { /** * Bad Request */ 400: unknown; /** * Unauthorized */ 401: unknown; /** * Forbidden */ 403: unknown; /** * Not Found */ 404: unknown; }; export type ListOrganizationOpenPeriodsResponses = { 200: Array<{ /** * ID of the open period */ id: string; /** * ID of the issue */ groupId: string; /** * Short ID of the issue, such as PROJECT-1A */ shortId: string | null; /** * When the issue opened, less `bucketSize` */ start: string; /** * When the issue closed, less `bucketSize`. Null while open */ end: string | null; /** * Whether the open period is still open */ isOpen: boolean; /** * Activities in the date range, oldest first, up to 100. With `start`, the last activity before it comes first */ activities: Array<{ /** * ID of the activity */ id: string; /** * What happened: `opened`, `status_change` or `closed` */ type: string; /** * Issue priority after the activity, such as `high` */ value: string | null; /** * When the activity happened */ dateCreated: string; /** * ID of the event that caused the activity */ eventId: string | null; }> | null; }>; }; export type ListOrganizationOpenPeriodsResponse = ListOrganizationOpenPeriodsResponses[keyof ListOrganizationOpenPeriodsResponses]; export type ListOrganizationAuthTokensData = { body?: never; path: { /** * The ID or slug of the organization the resource belongs to. */ organization_id_or_slug: string; }; query?: never; url: '/organizations/{organization_id_or_slug}/org-auth-tokens/'; }; export type ListOrganizationAuthTokensErrors = { /** * Forbidden */ 403: unknown; /** * Not Found */ 404: unknown; }; export type ListOrganizationAuthTokensResponses = { 200: Array<{ /** * ID of the org auth token */ id: string; /** * Name of the org auth token */ name: string; /** * Scopes granted to the token, such as org:ci */ scopes: Array; /** * Last four characters of the token, to tell tokens apart, or null */ tokenLastCharacters: string | null; /** * When the token was created */ dateCreated: string; /** * When the token last authenticated a request, or null */ dateLastUsed: string | null; /** * ID of the project the token was last used with, or null */ projectLastUsedId: string | null; /** * The full token. Only included in the response that creates the token, and can't be retrieved again */ token?: string; }>; }; export type ListOrganizationAuthTokensResponse = ListOrganizationAuthTokensResponses[keyof ListOrganizationAuthTokensResponses]; export type CreateOrganizationAuthTokenData = { body?: { /** * Required. A name for the token, up to 255 characters, to tell it apart from the organization's other tokens. */ name?: string | null; /** * Scopes to grant the token. Org auth tokens can only be granted `org:ci`, which is also the default: `["org:ci"]`. */ scopes?: Array; }; path: { /** * The ID or slug of the organization the resource belongs to. */ organization_id_or_slug: string; }; query?: never; url: '/organizations/{organization_id_or_slug}/org-auth-tokens/'; }; export type CreateOrganizationAuthTokenErrors = { /** * Bad Request */ 400: unknown; /** * Forbidden */ 403: unknown; /** * Not Found */ 404: unknown; }; export type CreateOrganizationAuthTokenResponses = { 201: { /** * ID of the org auth token */ id: string; /** * Name of the org auth token */ name: string; /** * Scopes granted to the token, such as org:ci */ scopes: Array; /** * Last four characters of the token, to tell tokens apart, or null */ tokenLastCharacters: string | null; /** * When the token was created */ dateCreated: string; /** * When the token last authenticated a request, or null */ dateLastUsed: string | null; /** * ID of the project the token was last used with, or null */ projectLastUsedId: string | null; /** * The full token. Only included in the response that creates the token, and can't be retrieved again */ token?: string; }; }; export type CreateOrganizationAuthTokenResponse = CreateOrganizationAuthTokenResponses[keyof CreateOrganizationAuthTokenResponses]; export type DeleteOrganizationAuthTokenData = { body?: never; path: { /** * The ID or slug of the organization the resource belongs to. */ organization_id_or_slug: string; /** * The ID of the org auth token to revoke. */ token_id: number; }; query?: never; url: '/organizations/{organization_id_or_slug}/org-auth-tokens/{token_id}/'; }; export type DeleteOrganizationAuthTokenErrors = { /** * Forbidden */ 403: unknown; /** * Not Found */ 404: unknown; }; export type DeleteOrganizationAuthTokenResponses = { /** * No Content */ 204: void; }; export type DeleteOrganizationAuthTokenResponse = DeleteOrganizationAuthTokenResponses[keyof DeleteOrganizationAuthTokenResponses]; export type GetOrganizationPreprodArtifactInstallDetailsData = { body?: never; path: { /** * The ID or slug of the organization the resource belongs to. */ organization_id_or_slug: string; /** * The ID of the build artifact. */ artifact_id: string; }; query?: never; url: '/organizations/{organization_id_or_slug}/preprodartifacts/{artifact_id}/install-details/'; }; export type GetOrganizationPreprodArtifactInstallDetailsErrors = { /** * Forbidden */ 403: unknown; /** * Not Found */ 404: unknown; }; export type GetOrganizationPreprodArtifactInstallDetailsResponses = { 200: { /** * ID of the build */ buildId: string; /** * State of the build */ state: 'UPLOADING' | 'UPLOADED' | 'PROCESSED' | 'FAILED'; /** * App details of the build */ appInfo: { /** * App identifier of the build */ appId: string | null; /** * App name */ name: string | null; /** * Version of the build */ version: string | null; /** * Build number */ buildNumber: number | null; /** * Type of the build file */ artifactType: 'XCARCHIVE' | 'AAB' | 'APK' | null; /** * When the build was uploaded (ISO 8601) */ dateAdded: string | null; /** * When the build was built (ISO 8601) */ dateBuilt: string | null; }; /** * Version control details of the build. Null when the build has none */ gitInfo: { /** * Commit SHA of the build */ headSha: string | null; /** * Commit SHA of the base the build is compared against */ baseSha: string | null; /** * Version control provider, such as github */ provider: string | null; /** * Repository name of the head commit */ headRepoName: string | null; /** * Repository name of the base commit */ baseRepoName: string | null; /** * Branch or ref of the head commit */ headRef: string | null; /** * Branch or ref of the base commit */ baseRef: string | null; /** * Pull request number */ prNumber: number | null; } | null; /** * Platform of the build, in uppercase */ platform: string | null; /** * ID of the project the build belongs to */ projectId: string; /** * Slug of the project the build belongs to */ projectSlug: string; /** * Name of the build configuration, such as Release */ buildConfiguration: string | null; /** * Whether the build can be installed */ isInstallable: boolean; /** * URL to install the build. Null when the build isn't installable */ installUrl: string | null; /** * When installUrl expires (ISO 8601) */ installUrlExpiresAt: string | null; /** * Number of times the build was downloaded */ downloadCount: number; /** * Release notes uploaded with the build */ releaseNotes: string | null; /** * Install groups the build belongs to */ installGroups: Array | null; /** * Whether the build's code signature is valid. Only set for Apple builds */ isCodeSignatureValid: boolean | null; /** * Name of the provisioning profile. Only set for Apple builds */ profileName: string | null; /** * Code signing type, such as development or app-store. Only set for Apple builds */ codesigningType: string | null; }; }; export type GetOrganizationPreprodArtifactInstallDetailsResponse = GetOrganizationPreprodArtifactInstallDetailsResponses[keyof GetOrganizationPreprodArtifactInstallDetailsResponses]; export type GetOrganizationPreprodArtifactSizeAnalysisData = { body?: never; path: { /** * The ID or slug of the organization the resource belongs to. */ organization_id_or_slug: string; /** * The ID of the build artifact. */ artifact_id: string; }; query?: { /** * Optional ID of the base artifact to compare against. If not provided, uses the default base head artifact. */ baseArtifactId?: string; }; url: '/organizations/{organization_id_or_slug}/preprodartifacts/{artifact_id}/size-analysis/'; }; export type GetOrganizationPreprodArtifactSizeAnalysisErrors = { /** * Bad Request */ 400: unknown; /** * Forbidden */ 403: unknown; /** * Not Found */ 404: unknown; }; export type GetOrganizationPreprodArtifactSizeAnalysisResponses = { 200: { /** * ID of the build */ buildId: string; /** * State of the size analysis */ state: 'PENDING' | 'PROCESSING' | 'COMPLETED' | 'FAILED' | 'NOT_RAN'; /** * App details of the build */ appInfo: { /** * App identifier of the build */ appId: string | null; /** * App name */ name: string | null; /** * Version of the build */ version: string | null; /** * Build number */ buildNumber: number | null; /** * Type of the build file */ artifactType: 'XCARCHIVE' | 'AAB' | 'APK' | null; /** * When the build was uploaded (ISO 8601) */ dateAdded: string | null; /** * When the build was built (ISO 8601) */ dateBuilt: string | null; }; /** * Version control details of the build. Null when the build has none */ gitInfo: { /** * Commit SHA of the build */ headSha: string | null; /** * Commit SHA of the base the build is compared against */ baseSha: string | null; /** * Version control provider, such as github */ provider: string | null; /** * Repository name of the head commit */ headRepoName: string | null; /** * Repository name of the base commit */ baseRepoName: string | null; /** * Branch or ref of the head commit */ headRef: string | null; /** * Branch or ref of the base commit */ baseRef: string | null; /** * Pull request number */ prNumber: number | null; } | null; /** * Error code when the size analysis failed or didn't run */ errorCode: string | null; /** * Error message when the size analysis failed or didn't run */ errorMessage: string | null; /** * Download size of the build in bytes. Only set when the analysis completed */ downloadSize: number | null; /** * Install size of the build in bytes. Only set when the analysis completed */ installSize: number | null; /** * How long the analysis took, in seconds. Only set when the analysis completed */ analysisDuration: number | null; /** * Version of the analyzer that produced the results */ analysisVersion: string | null; /** * ID of the base build the build is compared against. Null when there's no comparison */ baseBuildId: string | null; /** * App details of the base build. Null when there's no comparison */ baseAppInfo: { /** * App identifier of the build */ appId: string | null; /** * App name */ name: string | null; /** * Version of the build */ version: string | null; /** * Build number */ buildNumber: number | null; /** * Type of the build file */ artifactType: 'XCARCHIVE' | 'AAB' | 'APK' | null; /** * When the build was uploaded (ISO 8601) */ dateAdded: string | null; /** * When the build was built (ISO 8601) */ dateBuilt: string | null; } | null; /** * Suggestions for reducing the build's size. Null when there are none */ insights: { /** * Platform of the build */ platform: 'android'; /** * Files that are duplicated */ duplicateFiles: { /** * Potential savings of the insight in bytes */ totalSavings: number; /** * Groups of files the insight applies to */ groups: Array<{ /** * Name of the group */ name: string; /** * Files in the group */ files: Array<{ /** * Path of the file inside the build */ filePath: string; /** * Potential savings for the file in bytes */ totalSavings: number; }>; /** * Potential savings for the group in bytes */ totalSavings: number; }>; } | null; /** * Images that can be converted to WebP */ webpOptimization: { /** * Potential savings of the insight in bytes */ totalSavings: number; /** * Files the insight applies to */ files: Array<{ /** * Path of the file inside the build */ filePath: string; /** * Potential savings for the file in bytes */ totalSavings: number; }>; } | null; /** * Large images */ largeImages: { /** * Potential savings of the insight in bytes */ totalSavings: number; /** * Files the insight applies to */ files: Array<{ /** * Path of the file inside the build */ filePath: string; /** * Potential savings for the file in bytes */ totalSavings: number; }>; } | null; /** * Large videos */ largeVideos: { /** * Potential savings of the insight in bytes */ totalSavings: number; /** * Files the insight applies to */ files: Array<{ /** * Path of the file inside the build */ filePath: string; /** * Potential savings for the file in bytes */ totalSavings: number; }>; } | null; /** * Large audio files */ largeAudio: { /** * Potential savings of the insight in bytes */ totalSavings: number; /** * Files the insight applies to */ files: Array<{ /** * Path of the file inside the build */ filePath: string; /** * Potential savings for the file in bytes */ totalSavings: number; }>; } | null; /** * Hermes bytecode files that contain debug info */ hermesDebugInfo: { /** * Potential savings of the insight in bytes */ totalSavings: number; /** * Files the insight applies to */ files: Array<{ /** * Path of the file inside the build */ filePath: string; /** * Potential savings for the file in bytes */ totalSavings: number; }>; } | null; /** * Native libraries for architectures other than arm64-v8a */ multipleNativeLibraryArchs: { /** * Potential savings of the insight in bytes */ totalSavings: number; /** * Files the insight applies to */ files: Array<{ /** * Path of the file inside the build */ filePath: string; /** * Potential savings for the file in bytes */ totalSavings: number; }>; } | null; } | { /** * Platform of the build */ platform: 'apple'; /** * Files that are duplicated */ duplicateFiles: { /** * Potential savings of the insight in bytes */ totalSavings: number; /** * Groups of files the insight applies to */ groups: Array<{ /** * Name of the group */ name: string; /** * Files in the group */ files: Array<{ /** * Path of the file inside the build */ filePath: string; /** * Potential savings for the file in bytes */ totalSavings: number; }>; /** * Potential savings for the group in bytes */ totalSavings: number; }>; } | null; /** * Large images */ largeImages: { /** * Potential savings of the insight in bytes */ totalSavings: number; /** * Files the insight applies to */ files: Array<{ /** * Path of the file inside the build */ filePath: string; /** * Potential savings for the file in bytes */ totalSavings: number; }>; } | null; /** * Large audio files */ largeAudios: { /** * Potential savings of the insight in bytes */ totalSavings: number; /** * Files the insight applies to */ files: Array<{ /** * Path of the file inside the build */ filePath: string; /** * Potential savings for the file in bytes */ totalSavings: number; }>; } | null; /** * Large videos */ largeVideos: { /** * Potential savings of the insight in bytes */ totalSavings: number; /** * Files the insight applies to */ files: Array<{ /** * Path of the file inside the build */ filePath: string; /** * Potential savings for the file in bytes */ totalSavings: number; }>; } | null; /** * Binaries with debug sections or symbols that can be stripped */ stripBinary: { /** * Potential savings of the insight in bytes */ totalSavings: number; /** * Binaries that can be stripped */ files: Array<{ /** * Path of the binary inside the build */ filePath: string; /** * Savings from stripping debug sections in bytes */ debugSectionsSavings: number; /** * Savings from stripping the symbol table in bytes */ symbolTableSavings: number; /** * Potential savings for the binary in bytes */ totalSavings: number; }>; /** * Savings from stripping debug sections of all binaries in bytes */ totalDebugSectionsSavings: number; /** * Savings from stripping symbol tables of all binaries in bytes */ totalSymbolTableSavings: number; } | null; /** * Localized strings files with comments that can be stripped */ localizedStringsMinify: { /** * Potential savings of the insight in bytes */ totalSavings: number; /** * Files the insight applies to */ files: Array<{ /** * Path of the file inside the build */ filePath: string; /** * Potential savings for the file in bytes */ totalSavings: number; }>; } | null; /** * Files smaller than the file system block size */ smallFiles: { /** * Potential savings of the insight in bytes */ totalSavings: number; /** * Files the insight applies to */ files: Array<{ /** * Path of the file inside the build */ filePath: string; /** * Potential savings for the file in bytes */ totalSavings: number; }>; } | null; /** * Images that could move into an asset catalog */ looseImages: { /** * Potential savings of the insight in bytes */ totalSavings: number; /** * Groups of files the insight applies to */ groups: Array<{ /** * Name of the group */ name: string; /** * Files in the group */ files: Array<{ /** * Path of the file inside the build */ filePath: string; /** * Potential savings for the file in bytes */ totalSavings: number; }>; /** * Potential savings for the group in bytes */ totalSavings: number; }>; } | null; /** * Hermes bytecode files that contain debug info */ hermesDebugInfo: { /** * Potential savings of the insight in bytes */ totalSavings: number; /** * Files the insight applies to */ files: Array<{ /** * Path of the file inside the build */ filePath: string; /** * Potential savings for the file in bytes */ totalSavings: number; }>; } | null; /** * Images that can be optimized */ imageOptimization: { /** * Potential savings of the insight in bytes */ totalSavings: number; /** * Images that can be optimized */ optimizableFiles: Array<{ /** * Path of the image inside the build */ filePath: string; /** * Current size of the image in bytes */ currentSize: number; /** * Savings from minifying the image in bytes */ minifySavings: number; /** * Size of the minified image in bytes. Null when not computed */ minifiedSize: number | null; /** * Savings from converting the image to HEIC in bytes */ conversionSavings: number; /** * Size of the image as HEIC in bytes. Null when not computed */ heicSize: number | null; /** * Asset catalog idiom of the image. Null outside asset catalogs */ idiom: string | null; /** * Asset catalog color space of the image. Null outside asset catalogs */ colorspace: string | null; }>; } | null; /** * Main binaries with export metadata that can be reduced */ mainBinaryExportedSymbols: { /** * Potential savings of the insight in bytes */ totalSavings: number; /** * Files the insight applies to */ files: Array<{ /** * Path of the file inside the build */ filePath: string; /** * Potential savings for the file in bytes */ totalSavings: number; }>; } | null; /** * Files that can be removed */ unnecessaryFiles: { /** * Potential savings of the insight in bytes */ totalSavings: number; /** * Files the insight applies to */ files: Array<{ /** * Path of the file inside the build */ filePath: string; /** * Potential savings for the file in bytes */ totalSavings: number; }>; } | null; /** * Audio files that can be compressed */ audioCompression: { /** * Potential savings of the insight in bytes */ totalSavings: number; /** * Files the insight applies to */ files: Array<{ /** * Path of the file inside the build */ filePath: string; /** * Potential savings for the file in bytes */ totalSavings: number; }>; } | null; /** * Videos that can be compressed */ videoCompression: { /** * Potential savings of the insight in bytes */ totalSavings: number; /** * Videos that can be compressed */ files: Array<{ /** * Path of the video inside the build */ filePath: string; /** * Potential savings for the video in bytes */ totalSavings: number; /** * Codec recommended for the video */ recommendedCodec: string; }>; } | null; /** * Alternate app icons that can be optimized */ alternateIconsOptimization: { /** * Potential savings of the insight in bytes */ totalSavings: number; /** * Images that can be optimized */ optimizableFiles: Array<{ /** * Path of the image inside the build */ filePath: string; /** * Current size of the image in bytes */ currentSize: number; /** * Savings from minifying the image in bytes */ minifySavings: number; /** * Size of the minified image in bytes. Null when not computed */ minifiedSize: number | null; /** * Savings from converting the image to HEIC in bytes */ conversionSavings: number; /** * Size of the image as HEIC in bytes. Null when not computed */ heicSize: number | null; /** * Asset catalog idiom of the image. Null outside asset catalogs */ idiom: string | null; /** * Asset catalog color space of the image. Null outside asset catalogs */ colorspace: string | null; }>; } | null; } | null; /** * Components of the build, such as watch apps or dynamic features, with their sizes */ appComponents: Array<{ /** * Type of the component */ componentType: 'MAIN_ARTIFACT' | 'WATCH_ARTIFACT' | 'ANDROID_DYNAMIC_FEATURE' | 'APP_CLIP_ARTIFACT'; /** * Name of the component */ name: string; /** * App identifier of the component */ appId: string; /** * Path of the component inside the build */ path: string; /** * Download size of the component in bytes */ downloadSize: number; /** * Install size of the component in bytes */ installSize: number; }> | null; /** * Size comparisons against the base build, one per component. Null when there's no base build */ comparisons: Array<{ /** * Type of the component compared */ metricsArtifactType: 'MAIN_ARTIFACT' | 'WATCH_ARTIFACT' | 'ANDROID_DYNAMIC_FEATURE' | 'APP_CLIP_ARTIFACT'; /** * Identifier of the component, such as a dynamic feature name */ identifier: string | null; /** * State of the comparison */ state: 'PENDING' | 'PROCESSING' | 'SUCCESS' | 'FAILED'; /** * Error code when the comparison failed */ errorCode: string | null; /** * Error message when the comparison failed */ errorMessage: string | null; /** * Head and base sizes. Only set when the comparison succeeded */ sizeMetricDiff: { /** * Type of the component the sizes are for */ metricsArtifactType: 'MAIN_ARTIFACT' | 'WATCH_ARTIFACT' | 'ANDROID_DYNAMIC_FEATURE' | 'APP_CLIP_ARTIFACT'; /** * Identifier of the component, such as a dynamic feature name */ identifier: string | null; /** * Install size of the head build in bytes */ headInstallSize: number; /** * Download size of the head build in bytes */ headDownloadSize: number; /** * Install size of the base build in bytes */ baseInstallSize: number; /** * Download size of the base build in bytes */ baseDownloadSize: number; } | null; /** * File and group size changes. Only set when the comparison succeeded */ diffItems: Array<{ /** * Size change in bytes between the base and head builds */ sizeDiff: number; /** * Size in bytes in the head build. Null when the item was removed */ headSize: number | null; /** * Size in bytes in the base build. Null when the item was added */ baseSize: number | null; /** * Path of the file or group */ path: string; /** * Type of the file or group */ itemType: string | null; /** * How the item changed */ type: 'added' | 'removed' | 'increased' | 'decreased'; /** * Changes to the item's children, in the same shape */ diffItems: Array<{ [key: string]: unknown; }> | null; }> | null; /** * Changes to size insights. Only set when the comparison succeeded */ insightDiffItems: Array<{ /** * Type of the insight, such as duplicate_files or large_images */ insightType: string; /** * How the insight changed */ status: 'new' | 'resolved' | 'unresolved'; /** * Change in the insight's potential savings in bytes */ totalSavingsChange: number; /** * File-level changes for the insight */ fileDiffs: Array<{ /** * Size change in bytes between the base and head builds */ sizeDiff: number; /** * Size in bytes in the head build. Null when the item was removed */ headSize: number | null; /** * Size in bytes in the base build. Null when the item was added */ baseSize: number | null; /** * Path of the file or group */ path: string; /** * Type of the file or group */ itemType: string | null; /** * How the item changed */ type: 'added' | 'removed' | 'increased' | 'decreased'; /** * Changes to the item's children, in the same shape */ diffItems: Array<{ [key: string]: unknown; }> | null; }>; /** * Group-level changes for the insight */ groupDiffs: Array<{ /** * Size change in bytes between the base and head builds */ sizeDiff: number; /** * Size in bytes in the head build. Null when the item was removed */ headSize: number | null; /** * Size in bytes in the base build. Null when the item was added */ baseSize: number | null; /** * Path of the file or group */ path: string; /** * Type of the file or group */ itemType: string | null; /** * How the item changed */ type: 'added' | 'removed' | 'increased' | 'decreased'; /** * Changes to the item's children, in the same shape */ diffItems: Array<{ [key: string]: unknown; }> | null; }>; }> | null; }> | null; }; }; export type GetOrganizationPreprodArtifactSizeAnalysisResponse = GetOrganizationPreprodArtifactSizeAnalysisResponses[keyof GetOrganizationPreprodArtifactSizeAnalysisResponses]; export type DeleteOrganizationPreprodArtifactSnapshotData = { body?: never; path: { /** * The ID or slug of the organization the resource belongs to. */ organization_id_or_slug: string; /** * The ID of the snapshot to delete. */ snapshot_id: string; }; query?: never; url: '/organizations/{organization_id_or_slug}/preprodartifacts/snapshots/{snapshot_id}/'; }; export type DeleteOrganizationPreprodArtifactSnapshotErrors = { /** * Bad Request */ 400: unknown; /** * Forbidden */ 403: unknown; /** * Not Found */ 404: unknown; }; export type DeleteOrganizationPreprodArtifactSnapshotResponses = { /** * No response body */ 204: void; }; export type DeleteOrganizationPreprodArtifactSnapshotResponse = DeleteOrganizationPreprodArtifactSnapshotResponses[keyof DeleteOrganizationPreprodArtifactSnapshotResponses]; export type GetOrganizationPreprodArtifactSnapshotData = { body?: never; path: { /** * The ID or slug of the organization the resource belongs to. */ organization_id_or_slug: string; /** * The ID of the snapshot. */ snapshot_id: string; }; query?: { /** * Set to '1' or 'true' to strip image metadata to display_name, image_file_name, group, and description only. */ compact_metadata?: string; }; url: '/organizations/{organization_id_or_slug}/preprodartifacts/snapshots/{snapshot_id}/'; }; export type GetOrganizationPreprodArtifactSnapshotErrors = { /** * Forbidden */ 403: unknown; /** * Not Found */ 404: unknown; }; export type GetOrganizationPreprodArtifactSnapshotResponses = { 200: { /** * ID of the build the snapshot belongs to */ head_artifact_id?: string; /** * ID of the base build the snapshot is compared against */ base_artifact_id?: string | null; /** * ID of the project */ project_id?: string; /** * How the snapshot is compared: diff when a comparison exists, waiting_for_base when the build has a base commit but no comparison yet, or solo otherwise */ comparison_type?: string; /** * State of the build: UPLOADING, UPLOADED, PROCESSED or FAILED */ state?: string; /** * Version control details of the build */ vcs_info?: { /** * Commit SHA of the build */ head_sha?: string | null; /** * Commit SHA of the base the build is compared against */ base_sha?: string | null; /** * Version control provider, such as github */ provider?: string | null; /** * Repository name of the head commit */ head_repo_name?: string | null; /** * Repository name of the base commit */ base_repo_name?: string | null; /** * Branch or ref of the head commit */ head_ref?: string | null; /** * Branch or ref of the base commit */ base_ref?: string | null; /** * Pull request number */ pr_number?: number | null; }; /** * App identifier of the build */ app_id?: string | null; /** * Whether the upload contained only a subset of the app's images */ is_selective?: boolean; /** * All images in the snapshot. Empty when comparison_type is diff */ images?: Array<{ /** * Content hash of the image */ key?: string; /** * Display name of the image */ display_name?: string | null; /** * Group the image belongs to */ group?: string | null; /** * File name of the image, which identifies it within the snapshot */ image_file_name?: string; /** * Width of the image in pixels */ width?: number; /** * Height of the image in pixels */ height?: number; /** * Theme the image was rendered with: light or dark */ canvas_theme?: 'light' | 'dark' | null; }>; /** * Number of images in the snapshot */ image_count?: number; /** * Images in the head snapshot but not the base */ added?: Array<{ /** * Content hash of the image */ key?: string; /** * Display name of the image */ display_name?: string | null; /** * Group the image belongs to */ group?: string | null; /** * File name of the image, which identifies it within the snapshot */ image_file_name?: string; /** * Width of the image in pixels */ width?: number; /** * Height of the image in pixels */ height?: number; /** * Theme the image was rendered with: light or dark */ canvas_theme?: 'light' | 'dark' | null; }>; /** * Number of added images */ added_count?: number; /** * Images in the base snapshot but not the head */ removed?: Array<{ /** * Content hash of the image */ key?: string; /** * Display name of the image */ display_name?: string | null; /** * Group the image belongs to */ group?: string | null; /** * File name of the image, which identifies it within the snapshot */ image_file_name?: string; /** * Width of the image in pixels */ width?: number; /** * Height of the image in pixels */ height?: number; /** * Theme the image was rendered with: light or dark */ canvas_theme?: 'light' | 'dark' | null; }>; /** * Number of removed images */ removed_count?: number; /** * Images whose file name changed but whose content didn't */ renamed?: Array<{ /** * Image from the base snapshot */ base_image?: { /** * Content hash of the image */ key?: string; /** * Display name of the image */ display_name?: string | null; /** * Group the image belongs to */ group?: string | null; /** * File name of the image, which identifies it within the snapshot */ image_file_name?: string; /** * Width of the image in pixels */ width?: number; /** * Height of the image in pixels */ height?: number; /** * Theme the image was rendered with: light or dark */ canvas_theme?: 'light' | 'dark' | null; }; /** * Image from the head snapshot */ head_image?: { /** * Content hash of the image */ key?: string; /** * Display name of the image */ display_name?: string | null; /** * Group the image belongs to */ group?: string | null; /** * File name of the image, which identifies it within the snapshot */ image_file_name?: string; /** * Width of the image in pixels */ width?: number; /** * Height of the image in pixels */ height?: number; /** * Theme the image was rendered with: light or dark */ canvas_theme?: 'light' | 'dark' | null; }; /** * ID of the diff mask image highlighting changed pixels. Only set for changed images */ diff_image_key?: string | null; /** * Fraction of pixels that changed, from 0 to 1. Only set for changed images */ diff?: number | null; }>; /** * Number of renamed images */ renamed_count?: number; /** * Images whose changed pixels exceed the diff threshold, sorted by most changed first */ changed?: Array<{ /** * Image from the base snapshot */ base_image?: { /** * Content hash of the image */ key?: string; /** * Display name of the image */ display_name?: string | null; /** * Group the image belongs to */ group?: string | null; /** * File name of the image, which identifies it within the snapshot */ image_file_name?: string; /** * Width of the image in pixels */ width?: number; /** * Height of the image in pixels */ height?: number; /** * Theme the image was rendered with: light or dark */ canvas_theme?: 'light' | 'dark' | null; }; /** * Image from the head snapshot */ head_image?: { /** * Content hash of the image */ key?: string; /** * Display name of the image */ display_name?: string | null; /** * Group the image belongs to */ group?: string | null; /** * File name of the image, which identifies it within the snapshot */ image_file_name?: string; /** * Width of the image in pixels */ width?: number; /** * Height of the image in pixels */ height?: number; /** * Theme the image was rendered with: light or dark */ canvas_theme?: 'light' | 'dark' | null; }; /** * ID of the diff mask image highlighting changed pixels. Only set for changed images */ diff_image_key?: string | null; /** * Fraction of pixels that changed, from 0 to 1. Only set for changed images */ diff?: number | null; }>; /** * Number of changed images */ changed_count?: number; /** * Images that match the base snapshot */ unchanged?: Array<{ /** * Content hash of the image */ key?: string; /** * Display name of the image */ display_name?: string | null; /** * Group the image belongs to */ group?: string | null; /** * File name of the image, which identifies it within the snapshot */ image_file_name?: string; /** * Width of the image in pixels */ width?: number; /** * Height of the image in pixels */ height?: number; /** * Theme the image was rendered with: light or dark */ canvas_theme?: 'light' | 'dark' | null; }>; /** * Number of unchanged images */ unchanged_count?: number; /** * Images that couldn't be compared */ errored?: Array<{ /** * Image from the base snapshot */ base_image?: { /** * Content hash of the image */ key?: string; /** * Display name of the image */ display_name?: string | null; /** * Group the image belongs to */ group?: string | null; /** * File name of the image, which identifies it within the snapshot */ image_file_name?: string; /** * Width of the image in pixels */ width?: number; /** * Height of the image in pixels */ height?: number; /** * Theme the image was rendered with: light or dark */ canvas_theme?: 'light' | 'dark' | null; }; /** * Image from the head snapshot */ head_image?: { /** * Content hash of the image */ key?: string; /** * Display name of the image */ display_name?: string | null; /** * Group the image belongs to */ group?: string | null; /** * File name of the image, which identifies it within the snapshot */ image_file_name?: string; /** * Width of the image in pixels */ width?: number; /** * Height of the image in pixels */ height?: number; /** * Theme the image was rendered with: light or dark */ canvas_theme?: 'light' | 'dark' | null; }; /** * ID of the diff mask image highlighting changed pixels. Only set for changed images */ diff_image_key?: string | null; /** * Fraction of pixels that changed, from 0 to 1. Only set for changed images */ diff?: number | null; }>; /** * Number of errored images */ errored_count?: number; /** * Base images that a selective upload didn't include */ skipped?: Array<{ /** * Content hash of the image */ key?: string; /** * Display name of the image */ display_name?: string | null; /** * Group the image belongs to */ group?: string | null; /** * File name of the image, which identifies it within the snapshot */ image_file_name?: string; /** * Width of the image in pixels */ width?: number; /** * Height of the image in pixels */ height?: number; /** * Theme the image was rendered with: light or dark */ canvas_theme?: 'light' | 'dark' | null; }>; /** * Number of skipped images */ skipped_count?: number; /** * Fraction of changed pixels, from 0 to 1, above which an image counts as changed. Images can override it */ diff_threshold?: number | null; /** * State of the latest comparison: pending, processing, success, failed, waiting_for_base or no_base_build */ comparison_state?: string | null; /** * Approval status of the latest comparison: approved, auto_approved or requires_approval */ approval_status?: string | null; /** * Error message when the latest comparison failed */ comparison_error_message?: string | null; /** * People who approved the snapshot changes */ approvers?: Array<{ /** * Sentry user ID, or GitHub user ID for approvals from GitHub */ id?: string | null; /** * Display name of the approver, or GitHub login for approvals from GitHub */ name?: string | null; /** * Email address of the approver. Only set for Sentry users */ email?: string | null; /** * Username of the approver, or GitHub login for approvals from GitHub */ username?: string | null; /** * Avatar URL of the approver. Only set for approvals from GitHub */ avatar_url?: string | null; /** * When the approval was given (ISO 8601) */ approved_at?: string | null; /** * Where the approval was given: sentry or github */ source?: 'sentry' | 'github'; }>; }; }; export type GetOrganizationPreprodArtifactSnapshotResponse = GetOrganizationPreprodArtifactSnapshotResponses[keyof GetOrganizationPreprodArtifactSnapshotResponses]; export type GetOrganizationPreprodSnapshotArchiveStatusData = { body?: never; path: { /** * The ID or slug of the organization the resource belongs to. */ organization_id_or_slug: string; /** * The ID of the snapshot. */ snapshot_id: string; }; query?: never; url: '/organizations/{organization_id_or_slug}/preprodartifacts/snapshots/{snapshot_id}/archive/'; }; export type GetOrganizationPreprodSnapshotArchiveStatusErrors = { /** * Unauthorized */ 401: unknown; /** * Forbidden */ 403: unknown; /** * Not Found */ 404: unknown; }; export type GetOrganizationPreprodSnapshotArchiveStatusResponses = { 200: { /** * Whether the archive of the snapshot's images is built and ready */ ready: boolean; }; }; export type GetOrganizationPreprodSnapshotArchiveStatusResponse = GetOrganizationPreprodSnapshotArchiveStatusResponses[keyof GetOrganizationPreprodSnapshotArchiveStatusResponses]; export type StartOrganizationPreprodSnapshotArchiveData = { body?: never; path: { /** * The ID or slug of the organization the resource belongs to. */ organization_id_or_slug: string; /** * The ID of the snapshot. */ snapshot_id: string; }; query?: never; url: '/organizations/{organization_id_or_slug}/preprodartifacts/snapshots/{snapshot_id}/archive/'; }; export type StartOrganizationPreprodSnapshotArchiveErrors = { /** * Unauthorized */ 401: unknown; /** * Forbidden */ 403: unknown; /** * Not Found */ 404: unknown; /** * Too Many Requests */ 429: unknown; }; export type StartOrganizationPreprodSnapshotArchiveResponses = { 202: { /** * Message saying that the archive is being built */ detail: string; }; }; export type StartOrganizationPreprodSnapshotArchiveResponse = StartOrganizationPreprodSnapshotArchiveResponses[keyof StartOrganizationPreprodSnapshotArchiveResponses]; export type GetOrganizationPreprodArtifactSnapshotImageData = { body?: never; path: { /** * The ID or slug of the organization the resource belongs to. */ organization_id_or_slug: string; /** * The ID of the snapshot. */ snapshot_id: string; /** * The image filename or content hash. */ image_identifier: string; }; query?: never; url: '/organizations/{organization_id_or_slug}/preprodartifacts/snapshots/{snapshot_id}/images/{image_identifier}/'; }; export type GetOrganizationPreprodArtifactSnapshotImageErrors = { /** * Forbidden */ 403: unknown; /** * Not Found */ 404: unknown; }; export type GetOrganizationPreprodArtifactSnapshotImageResponses = { 200: { /** * File name of the image */ image_file_name?: string; /** * Comparison result for the image: added, removed, changed, unchanged, renamed, errored or skipped. Null when there is no comparison */ comparison_status?: string | null; /** * Image in the head snapshot. Null when the image was removed */ head_image?: { /** * Content hash of the image */ key?: string; /** * Display name of the image */ display_name?: string | null; /** * Group the image belongs to */ group?: string | null; /** * File name of the image, which identifies it within the snapshot */ image_file_name?: string; /** * Width of the image in pixels */ width?: number; /** * Height of the image in pixels */ height?: number; /** * Theme the image was rendered with: light or dark */ canvas_theme?: 'light' | 'dark' | null; /** * Fraction of changed pixels, from 0 to 1, above which the image counts as changed */ diff_threshold?: number | null; /** * Description of the image */ description?: string | null; /** * Tags attached to the image */ tags?: { [key: string]: string; } | null; /** * API URL to download the image */ image_url?: string; } | null; /** * Image in the base snapshot */ base_image?: { /** * Content hash of the image */ key?: string; /** * Display name of the image */ display_name?: string | null; /** * Group the image belongs to */ group?: string | null; /** * File name of the image, which identifies it within the snapshot */ image_file_name?: string; /** * Width of the image in pixels */ width?: number; /** * Height of the image in pixels */ height?: number; /** * Theme the image was rendered with: light or dark */ canvas_theme?: 'light' | 'dark' | null; /** * Fraction of changed pixels, from 0 to 1, above which the image counts as changed */ diff_threshold?: number | null; /** * Description of the image */ description?: string | null; /** * Tags attached to the image */ tags?: { [key: string]: string; } | null; /** * API URL to download the image */ image_url?: string; } | null; /** * API URL to download the diff mask image. Only set for changed images */ diff_image_url?: string | null; /** * Fraction of pixels that changed, from 0 to 1. Only set for changed images */ diff_percentage?: number | null; /** * Previous file name of the image. Only set for renamed images */ previous_image_file_name?: string | null; }; }; export type GetOrganizationPreprodArtifactSnapshotImageResponse = GetOrganizationPreprodArtifactSnapshotImageResponses[keyof GetOrganizationPreprodArtifactSnapshotImageResponses]; export type GetOrganizationPreprodArtifactSnapshotLatestBaseData = { body?: never; path: { /** * The ID or slug of the organization the resource belongs to. */ organization_id_or_slug: string; }; query: { /** * App identifier to match. */ app_id: string; /** * Git branch name to filter on. */ branch?: string; /** * Project ID or slug to scope the lookup. */ project?: number | string; /** * Set to '1' or 'true' to strip image metadata to display_name, image_file_name, group, description, and image_url only. */ compact_metadata?: string; }; url: '/organizations/{organization_id_or_slug}/preprodartifacts/snapshots/latest-base/'; }; export type GetOrganizationPreprodArtifactSnapshotLatestBaseErrors = { /** * Bad Request */ 400: unknown; /** * Forbidden */ 403: unknown; /** * Not Found */ 404: unknown; }; export type GetOrganizationPreprodArtifactSnapshotLatestBaseResponses = { 200: { /** * ID of the build the snapshot belongs to */ head_artifact_id?: string; /** * ID of the project */ project_id?: string; /** * Slug of the project */ project_slug?: string; /** * App identifier of the build */ app_id?: string | null; /** * Number of images in the snapshot */ image_count?: number; /** * Images in the snapshot */ images?: Array<{ /** * Content hash of the image */ key?: string; /** * Display name of the image */ display_name?: string | null; /** * Group the image belongs to */ group?: string | null; /** * File name of the image, which identifies it within the snapshot */ image_file_name?: string; /** * Width of the image in pixels */ width?: number; /** * Height of the image in pixels */ height?: number; /** * Theme the image was rendered with: light or dark */ canvas_theme?: 'light' | 'dark' | null; /** * API URL to download the image */ image_url?: string; }>; /** * Fraction of changed pixels, from 0 to 1, above which an image counts as changed. Images can override it */ diff_threshold?: number | null; /** * When the build was uploaded (ISO 8601) */ date_added?: string; /** * Version control details of the build */ vcs_info?: { /** * Commit SHA of the build */ head_sha?: string | null; /** * Commit SHA of the base. Empty or null for base snapshots */ base_sha?: string | null; /** * Branch or ref of the build */ head_ref?: string | null; /** * Branch or ref of the base */ base_ref?: string | null; /** * Repository name of the build */ head_repo_name?: string | null; /** * Pull request number */ pr_number?: number | null; }; }; }; export type GetOrganizationPreprodArtifactSnapshotLatestBaseResponse = GetOrganizationPreprodArtifactSnapshotLatestBaseResponses[keyof GetOrganizationPreprodArtifactSnapshotLatestBaseResponses]; export type ListOrganizationProfilingChunksData = { body?: never; path: { /** * The ID or slug of the organization the resource belongs to. */ organization_id_or_slug: string; }; query: { /** * The ID or slug of the project to fetch chunks for. Exactly one project must be specified. */ project: string; /** * The continuous-profiler ID to fetch chunks for. */ profiler_id: string; /** * The period of time for the query, will override the start & end parameters, a number followed by one of: * - `d` for days * - `h` for hours * - `m` for minutes * - `s` for seconds * - `w` for weeks * * For example, `24h`, to mean query data starting from 24 hours ago to now. */ statsPeriod?: string; /** * The start of the period of time for the query, expected in ISO-8601 format. For example, `2001-12-14T12:34:56.7890`. */ start?: string; /** * The end of the period of time for the query, expected in ISO-8601 format. For example, `2001-12-14T12:34:56.7890`. */ end?: string; }; url: '/organizations/{organization_id_or_slug}/profiling/chunks/'; }; export type ListOrganizationProfilingChunksErrors = { /** * Bad Request */ 400: unknown; /** * Unauthorized */ 401: unknown; /** * Forbidden */ 403: unknown; /** * Not Found */ 404: unknown; }; export type ListOrganizationProfilingChunksResponses = { 200: { [key: string]: unknown; }; }; export type ListOrganizationProfilingChunksResponse = ListOrganizationProfilingChunksResponses[keyof ListOrganizationProfilingChunksResponses]; export type GetOrganizationProfilingFlamegraphData = { body?: never; path: { /** * The ID or slug of the organization the resource belongs to. */ organization_id_or_slug: string; }; query?: { /** * The IDs or slugs of projects to filter by. Project slugs are unique within each organization. Omit this parameter to include all accessible projects. `-1` is also accepted to include all accessible projects. * For example, the following are valid parameters: * - `/?project=1234&project=56789` * - `/?project=android&project=javascript-react` * - `/?project=-1` * */ project?: Array; /** * The name of environments to filter by. */ environment?: Array; /** * The period of time for the query, will override the start & end parameters, a number followed by one of: * - `d` for days * - `h` for hours * - `m` for minutes * - `s` for seconds * - `w` for weeks * * For example, `24h`, to mean query data starting from 24 hours ago to now. */ statsPeriod?: string; /** * The start of the period of time for the query, expected in ISO-8601 format. For example, `2001-12-14T12:34:56.7890`. */ start?: string; /** * The end of the period of time for the query, expected in ISO-8601 format. For example, `2001-12-14T12:34:56.7890`. */ end?: string; /** * A UInt32 function fingerprint. Only valid when `dataSource=functions`. */ fingerprint?: number; /** * Source dataset to build the flamegraph from. Defaults to `functions` when `fingerprint` is set and `transactions` otherwise. * * * `transactions` * * `profiles` * * `functions` * * `spans` */ dataSource?: 'transactions' | 'profiles' | 'functions' | 'spans'; /** * Sentry [search syntax](https://docs.sentry.io/concepts/search/) to filter the candidate profiles. */ query?: string; /** * Optional expansions. Pass `metrics` to include flamegraph metric aggregates in the response. */ expand?: Array<'metrics'>; }; url: '/organizations/{organization_id_or_slug}/profiling/flamegraph/'; }; export type GetOrganizationProfilingFlamegraphErrors = { /** * Bad Request */ 400: unknown; /** * Unauthorized */ 401: unknown; /** * Forbidden */ 403: unknown; /** * Not Found */ 404: unknown; }; export type GetOrganizationProfilingFlamegraphResponses = { 200: { [key: string]: unknown; }; }; export type GetOrganizationProfilingFlamegraphResponse = GetOrganizationProfilingFlamegraphResponses[keyof GetOrganizationProfilingFlamegraphResponses]; export type ListOrganizationProjectKeysData = { body?: never; path: { /** * The ID or slug of the organization the resource belongs to. */ organization_id_or_slug: string; }; query?: { /** * A pointer to the last object fetched and its sort order; used to retrieve the next or previous results. */ cursor?: string; /** * Filter keys by team slug or ID. If provided, only keys for projects belonging to this team will be returned. */ team?: string; /** * Filter keys by status. Options are 'active' or 'inactive'. * * * `active` * * `inactive` */ status?: 'active' | 'inactive'; }; url: '/organizations/{organization_id_or_slug}/project-keys/'; }; export type ListOrganizationProjectKeysErrors = { /** * Bad Request */ 400: unknown; /** * Forbidden */ 403: unknown; /** * Not Found */ 404: unknown; }; export type ListOrganizationProjectKeysResponses = { 200: Array<{ /** * ID of the client key, same as its public key */ id: string; /** * Name of the client key */ name: string; /** * Name of the client key, same as name */ label: string; /** * Public key */ public: string | null; /** * Secret key */ secret: string | null; /** * ID of the project the key belongs to */ projectId: number; /** * Whether the client key accepts events */ isActive: boolean; /** * Rate limit for events sent with the key. Null when there's none */ rateLimit: { /** * Rate limit window in seconds */ window: number; /** * Number of events accepted per window */ count: number; } | null; /** * DSN and ingestion endpoints for the key */ dsn: { /** * DSN that includes the secret key */ secret: string; /** * Public DSN to configure SDKs with */ public: string; /** * Endpoint for Content Security Policy reports */ csp: string; /** * Endpoint for security reports */ security: string; /** * Endpoint for minidump crash reports */ minidump: string; /** * Endpoint for Network Error Logging reports */ nel: string; /** * Endpoint for Unreal Engine crash reports */ unreal: string; /** * Endpoint for cron monitor check-ins */ crons: string; /** * URL of the JavaScript SDK Loader script */ cdn: string; /** * Endpoint for PlayStation crash reports */ playstation: string; /** * Base URL for integration endpoints, such as the OpenTelemetry endpoints */ integration: string; /** * OpenTelemetry (OTLP) endpoint for traces */ otlp_traces: string; /** * OpenTelemetry (OTLP) endpoint for logs */ otlp_logs: string; }; /** * JavaScript SDK version the Loader serves */ browserSdkVersion: string; /** * JavaScript SDK versions the Loader can serve */ browserSdk: { /** * JavaScript SDK versions the Loader can serve, as [value, label] pairs */ choices: Array>; }; /** * When the client key was created (ISO 8601) */ dateCreated: string | null; /** * Features the JavaScript SDK Loader enables */ dynamicSdkLoaderOptions: { /** * Whether the Loader enables Session Replay */ hasReplay: boolean; /** * Whether the Loader enables tracing */ hasPerformance: boolean; /** * Whether the Loader loads the debug bundle */ hasDebug: boolean; /** * Whether the Loader enables User Feedback */ hasFeedback: boolean; /** * Whether the Loader enables logs and metrics */ hasLogsAndMetrics: boolean; }; /** * What the key is used for, such as user or profiling. Only included for superusers */ useCase?: string; }>; }; export type ListOrganizationProjectKeysResponse = ListOrganizationProjectKeysResponses[keyof ListOrganizationProjectKeysResponses]; export type ListOrganizationProjectsData = { body?: never; path: { /** * The ID or slug of the organization the resource belongs to. */ organization_id_or_slug: string; }; query?: { /** * A pointer to the last object fetched and its sort order; used to retrieve the next or previous results. */ cursor?: string; /** * Limit the number of rows to return in the result. Default and maximum allowed is 100. */ per_page?: number; /** * Filter projects by name or slug. */ query?: string; /** * Parts of the response to skip computing. Specify `latestDeploys` to omit `latestDeploys`, and `unusedFeatures` to leave out feature flags that the Sentry web UI does not use from `features`. Unknown values are ignored. */ collapse?: Array<'latestDeploys' | 'unusedFeatures'>; }; url: '/organizations/{organization_id_or_slug}/projects/'; }; export type ListOrganizationProjectsErrors = { /** * Bad Request */ 400: unknown; /** * Unauthorized */ 401: unknown; /** * Forbidden */ 403: unknown; /** * Not Found */ 404: unknown; }; export type ListOrganizationProjectsResponses = { 200: Array<{ /** * Latest deploy for each environment, keyed by environment name, with its release version and finish time. Omitted when collapsed */ latestDeploys?: { [key: string]: { [key: string]: string; }; } | null; /** * Requested project options, keyed by option name. Only included when options are requested */ options?: { [key: string]: unknown; }; /** * Counts of non-transaction events per interval over the requested stats period, as [timestamp, count] pairs. Only included when a stats period is requested */ stats?: Array> | { [key: string]: number; }; /** * Counts of transactions per interval over the requested stats period, as [timestamp, count] pairs. Only included when transaction stats are requested */ transactionStats?: Array>; /** * Crash-free session rates for the current and previous stats period. Only included when session stats are requested */ sessionStats?: { /** * Crash-free rate in the current period, as a percentage. Null when there's no session data */ currentCrashFreeRate: number | null; /** * Crash-free rate in the previous period, as a percentage. Null when there's no session data */ previousCrashFreeRate: number | null; /** * Whether the project has release health (session) data */ hasHealthData: boolean; }; /** * ID of the project */ id: string; /** * Slug of the project */ slug: string; /** * Name of the project */ name: string; /** * Platform of the project */ platform: string | null; /** * When the project was created (ISO 8601) */ dateCreated: string; /** * Whether the requesting user bookmarked the project */ isBookmarked: boolean; /** * Whether the requesting user is a member of a team with access to the project */ isMember: boolean; /** * Features enabled for the project */ features: Array; /** * When the project received its first event (ISO 8601) */ firstEvent: string | null; /** * Whether the project has sent transactions */ firstTransactionEvent: boolean; /** * Scopes the requesting user has on the project through team membership and organization role */ access: Array; /** * Whether the requesting user has access to the project */ hasAccess: boolean; /** * Whether the project has sent user feedback */ hasFeedbacks: boolean; /** * Whether the project has sent feature flags */ hasFlags: boolean; /** * Whether the project has sent an event with a minified stack trace */ hasMinifiedStackTrace: boolean; /** * Whether the project has cron monitors */ hasMonitors: boolean; /** * Whether the project has sent user feedback from the user feedback widget */ hasNewFeedbacks: boolean; /** * Whether the project has sent profiles */ hasProfiles: boolean; /** * Whether the project has sent replays */ hasReplays: boolean; /** * Whether the project has sent sessions */ hasSessions: boolean; /** * Whether the project has sent HTTP request spans used by Insights */ hasInsightsHttp: boolean; /** * Whether the project has sent database spans used by Insights */ hasInsightsDb: boolean; /** * Whether the project has sent asset spans used by Insights */ hasInsightsAssets: boolean; /** * Whether the project has sent app start spans used by Insights */ hasInsightsAppStart: boolean; /** * Whether the project has sent screen load spans used by Insights */ hasInsightsScreenLoad: boolean; /** * Whether the project has sent web vitals spans used by Insights */ hasInsightsVitals: boolean; /** * Whether the project has sent cache spans used by Insights */ hasInsightsCaches: boolean; /** * Whether the project has sent queue spans used by Insights */ hasInsightsQueues: boolean; /** * Whether the project has sent AI agent spans used by Insights */ hasInsightsAgentMonitoring: boolean; /** * Whether the project has sent MCP spans used by Insights */ hasInsightsMCP: boolean; /** * Whether the project has sent logs. Always true outside sentry.io */ hasLogs: boolean; /** * Whether the project has sent trace metrics. Always true outside sentry.io */ hasTraceMetrics: boolean; /** * First team with access to the project; use teams instead */ team: { /** * ID of the team */ id: string; /** * Name of the team */ name: string; /** * Slug of the team */ slug: string; } | null; /** * Teams with access to the project */ teams: Array<{ /** * ID of the team */ id: string; /** * Name of the team */ name: string; /** * Slug of the team */ slug: string; }>; /** * Platforms seen in the project's events */ platforms: Array; /** * Whether the project has received user reports */ hasUserReports: boolean; /** * Environments seen in the project's events */ environments: Array; /** * Latest release of the project */ latestRelease: { /** * Version of the release */ version: string; } | null; }>; }; export type ListOrganizationProjectsResponse = ListOrganizationProjectsResponses[keyof ListOrganizationProjectsResponses]; export type CreateOrganizationProjectData = { body: { /** * The name for the project. */ name: string; /** * Uniquely identifies a project and is used for the interface. * If not provided, it is automatically generated from the name. */ slug?: string | null; /** * The platform for the project. */ platform?: string | null; /** * * Defaults to true where the behavior is to alert the user on every new * issue. Setting this to false will turn this off and the user must create * their own alerts to be notified of new issues. * */ default_rules?: boolean; }; path: { /** * The ID or slug of the organization the resource belongs to. */ organization_id_or_slug: string; }; query?: never; url: '/organizations/{organization_id_or_slug}/projects/'; }; export type CreateOrganizationProjectErrors = { /** * Bad Request */ 400: unknown; /** * Unauthorized */ 401: unknown; /** * Forbidden */ 403: unknown; /** * Not Found */ 404: unknown; /** * Conflict */ 409: unknown; }; export type CreateOrganizationProjectResponses = { 201: { /** * Latest deploy for each environment, keyed by environment name, with its release version and finish time. Omitted when collapsed */ latestDeploys?: { [key: string]: { [key: string]: string; }; } | null; /** * Requested project options, keyed by option name. Only included when options are requested */ options?: { [key: string]: unknown; }; /** * Counts of non-transaction events per interval over the requested stats period, as [timestamp, count] pairs. Only included when a stats period is requested */ stats?: Array> | { [key: string]: number; }; /** * Counts of transactions per interval over the requested stats period, as [timestamp, count] pairs. Only included when transaction stats are requested */ transactionStats?: Array>; /** * Crash-free session rates for the current and previous stats period. Only included when session stats are requested */ sessionStats?: { /** * Crash-free rate in the current period, as a percentage. Null when there's no session data */ currentCrashFreeRate: number | null; /** * Crash-free rate in the previous period, as a percentage. Null when there's no session data */ previousCrashFreeRate: number | null; /** * Whether the project has release health (session) data */ hasHealthData: boolean; }; /** * ID of the project */ id: string; /** * Slug of the project */ slug: string; /** * Name of the project */ name: string; /** * Platform of the project */ platform: string | null; /** * When the project was created (ISO 8601) */ dateCreated: string; /** * Whether the requesting user bookmarked the project */ isBookmarked: boolean; /** * Whether the requesting user is a member of a team with access to the project */ isMember: boolean; /** * Features enabled for the project */ features: Array; /** * When the project received its first event (ISO 8601) */ firstEvent: string | null; /** * Whether the project has sent transactions */ firstTransactionEvent: boolean; /** * Scopes the requesting user has on the project through team membership and organization role */ access: Array; /** * Whether the requesting user has access to the project */ hasAccess: boolean; /** * Whether the project has sent user feedback */ hasFeedbacks: boolean; /** * Whether the project has sent feature flags */ hasFlags: boolean; /** * Whether the project has sent an event with a minified stack trace */ hasMinifiedStackTrace: boolean; /** * Whether the project has cron monitors */ hasMonitors: boolean; /** * Whether the project has sent user feedback from the user feedback widget */ hasNewFeedbacks: boolean; /** * Whether the project has sent profiles */ hasProfiles: boolean; /** * Whether the project has sent replays */ hasReplays: boolean; /** * Whether the project has sent sessions */ hasSessions: boolean; /** * Whether the project has sent HTTP request spans used by Insights */ hasInsightsHttp: boolean; /** * Whether the project has sent database spans used by Insights */ hasInsightsDb: boolean; /** * Whether the project has sent asset spans used by Insights */ hasInsightsAssets: boolean; /** * Whether the project has sent app start spans used by Insights */ hasInsightsAppStart: boolean; /** * Whether the project has sent screen load spans used by Insights */ hasInsightsScreenLoad: boolean; /** * Whether the project has sent web vitals spans used by Insights */ hasInsightsVitals: boolean; /** * Whether the project has sent cache spans used by Insights */ hasInsightsCaches: boolean; /** * Whether the project has sent queue spans used by Insights */ hasInsightsQueues: boolean; /** * Whether the project has sent AI agent spans used by Insights */ hasInsightsAgentMonitoring: boolean; /** * Whether the project has sent MCP spans used by Insights */ hasInsightsMCP: boolean; /** * Whether the project has sent logs. Always true outside sentry.io */ hasLogs: boolean; /** * Whether the project has sent trace metrics. Always true outside sentry.io */ hasTraceMetrics: boolean; /** * First team with access to the project; use teams instead */ team: { /** * ID of the team */ id: string; /** * Name of the team */ name: string; /** * Slug of the team */ slug: string; } | null; /** * Teams with access to the project */ teams: Array<{ /** * ID of the team */ id: string; /** * Name of the team */ name: string; /** * Slug of the team */ slug: string; }>; /** * Platforms seen in the project's events */ platforms: Array; /** * Whether the project has received user reports */ hasUserReports: boolean; /** * Environments seen in the project's events */ environments: Array; /** * Latest release of the project */ latestRelease: { /** * Version of the release */ version: string; } | null; }; }; export type CreateOrganizationProjectResponse = CreateOrganizationProjectResponses[keyof CreateOrganizationProjectResponses]; export type CreateOrganizationProjectDetectorData = { body: ({ /** * Name of the monitor. */ name: string; type: 'metric_issue'; /** * The IDs of the alerts to connect this monitor to. Use the 'Fetch Alerts' endpoint to find the IDs. */ workflowIds?: Array; dataSources: Array<{ query_type?: number; dataset: string; query: string; aggregate: string; time_window: number; environment: string | null; event_types: Array; group_by?: Array; extrapolation_mode?: string | null; }>; config?: { comparisonDelta?: 300 | 900 | 3600 | 86400 | 604800 | 2592000; detectionType: 'static'; } | { comparisonDelta?: 300 | 900 | 3600 | 86400 | 604800 | 2592000; detectionType: 'percent'; } | { comparisonDelta?: 300 | 900 | 3600 | 86400 | 604800 | 2592000; detectionType: 'dynamic'; }; /** * Allows parameters to be defined in snake case, but passed as camel case. * * Errors are output in camel case. */ conditionGroup: { id?: number; /** * * `any` * * `any-short` * * `all` * * `none` */ logicType: 'any' | 'any-short' | 'all' | 'none'; conditions: Array<{ id?: number; conditionResult: 0 | 50 | 75; type: 'gt' | 'lt' | 'gte' | 'lte'; comparison: number; } | { id?: number; conditionResult: 0 | 50 | 75; type: 'anomaly_detection'; comparison: { sensitivity: 'low' | 'medium' | 'high'; seasonality: 'auto' | 'hourly' | 'daily' | 'weekly' | 'hourly_daily' | 'hourly_weekly' | 'hourly_daily_weekly' | 'daily_weekly'; thresholdType: 0 | 1 | 2; }; }>; }; /** * * The ID user or team who owns the monitor or alert prefaced by the string 'user' or 'team'. * * **User** * ```json * "user:123456" * ``` * * **Team** * ```json * "team:456789" * ``` * */ owner?: string | null; /** * A description of the monitor. Will be used in the resulting issue. */ description?: string | null; /** * Set to False if you want to disable the monitor. */ enabled?: boolean; } | { /** * Name of the monitor. */ name: string; type: 'monitor_check_in_failure'; /** * The IDs of the alerts to connect this monitor to. Use the 'Fetch Alerts' endpoint to find the IDs. */ workflowIds?: Array; dataSources?: Array<{ /** * Name of the monitor. Used for notifications. */ name?: string; /** * Uniquely identifies your monitor within your organization. */ slug?: string; status?: string; owner?: string | null; is_muted?: boolean; config: { [key: string]: unknown; }; }>; config?: { [key: string]: unknown; }; /** * * Issue detection configuration for when to create an issue and at what priority level. * * * - `logicType`: `any` * - `type`: Any of `gt` (greater than), `gte` (greater than or equal), `lt` (less than), `lte` (less than or equal), or `anomaly_detection` (dynamic) * - `comparison`: Any positive integer. This is threshold that must be crossed for the monitor to create an issue, e.g. "Create a metric issue when there are more than 5 unresolved error events". * - If creating a **change** monitor, `comparison` is the current value as a percentage of the value `comparisonDelta` seconds earlier, not the size of the change. For example, use `120` with `gt` for 20% higher, or `70` with `lt` for 30% lower. * - If creating a **dynamic** monitor, see the options below. * - `seasonality`: `auto` * - `sensitivity`: Level of responsiveness. Options are one of `low`, `medium`, or `high` * - `thresholdType`: If you want to be alerted to anomalies that are moving above, below, or in both directions in relation to your threshold. * - `0`: Above * - `1`: Below * - `2`: Above and below * * - `conditionResult`: The issue state change when the threshold is crossed. * - `75`: High priority * - `50`: Low priority * - `0`: Resolved * * * **Threshold Monitor** * ```json * "logicType": "any", * "conditions": [ * { * "type": "gt", * "comparison": 10, * "conditionResult": 75 * }, * { * "type": "lte", * "comparison": 10, * "conditionResult": 0 * } * ], * "actions": [] * ``` * * **Change Monitor** (20% higher than `comparisonDelta` seconds earlier) * ```json * "logicType": "any", * "conditions": [ * { * "type": "gt", * "comparison": 120, * "conditionResult": 75 * }, * { * "type": "lte", * "comparison": 120, * "conditionResult": 0 * } * ], * "actions": [] * ``` * * **Threshold Monitor with Medium Priority** * ```json * "logicType": "any", * "conditions": [ * { * type: "gt", * comparison: 5, * conditionResult: 75 * }, * { * type: "gt", * comparison: 2, * conditionResult: 50 * }, * { * type: "lte", * comparison: 2, * conditionResult: 0 * } * ], * "actions": [] * ``` * * **Dynamic Monitor** * ```json * "logicType": "any", * "conditions": [ * { * "type": "anomaly_detection", * "comparison": { * "seasonality": "auto", * "sensitivity": "medium", * "thresholdType": 2 * }, * "conditionResult": 75 * } * ], * "actions": [] * ``` * */ conditionGroup?: { id?: number; /** * * `any` * * `any-short` * * `all` * * `none` */ logicType: 'any' | 'any-short' | 'all' | 'none'; conditions?: Array; }; /** * * The ID user or team who owns the monitor or alert prefaced by the string 'user' or 'team'. * * **User** * ```json * "user:123456" * ``` * * **Team** * ```json * "team:456789" * ``` * */ owner?: string | null; /** * A description of the monitor. Will be used in the resulting issue. */ description?: string | null; /** * Set to False if you want to disable the monitor. */ enabled?: boolean; } | { /** * Name of the monitor. */ name: string; type: 'preprod_size_analysis'; /** * The IDs of the alerts to connect this monitor to. Use the 'Fetch Alerts' endpoint to find the IDs. */ workflowIds?: Array; /** * * The data sources for the metric monitor to use based on what you want to measure. * * The schema of each data source lists the `aggregate` values that its `dataset` and * `eventTypes` accept. * * `timeWindow` is measured in seconds. Cron Monitors use schedules instead of this field. * Legacy metric alert rules expressed this value in minutes, so multiply a legacy value * by 60 when migrating it to a monitor. For example, a legacy 5-minute window becomes * `"timeWindow": 300`. * * **Number of Errors Metric Monitor** * - `eventTypes`: Any of `error` or `default`. * ```json * [ * { * "aggregate": "count()", * "dataset" : "events", * "environment": "prod", * "eventTypes": ["default", "error"], * "query": "is:unresolved", * "queryType": 0, * "timeWindow": 3600 * } * ] * ``` * * **Users Experiencing Errors Metric Monitor** * - `eventTypes`: Any of `error` or `default`. * ```json * [ * { * "aggregate": "count_unique(tags[sentry:user])", * "dataset" : "events", * "environment": "prod", * "eventTypes": ["default", "error"], * "query": "is:unresolved", * "queryType": 0, * "timeWindow": 3600 * } * ] * ``` * * * **Throughput Metric Monitor** * ```json * [ * { * "aggregate":"count(span.duration)", * "dataset":"events_analytics_platform", * "environment":"prod", * "eventTypes":["trace_item_span"], * "query":"", * "queryType":1, * "timeWindow":3600, * "extrapolationMode":"unknown" * } * ] * ``` * * **Duration Metric Monitor** * ```json * [ * { * "aggregate":"p95(span.duration)", * "dataset":"events_analytics_platform", * "environment":"prod", * "eventTypes":["trace_item_span"], * "query":"", * "queryType":1, * "timeWindow":3600, * "extrapolationMode":"unknown" * } * ] * ``` * * **Failure Rate Metric Monitor** * ```json * [ * { * "aggregate":"failure_rate()", * "dataset":"events_analytics_platform", * "environment":"prod", * "eventTypes":["trace_item_span"], * "query":"", * "queryType":1, * "timeWindow":3600, * "extrapolationMode":"unknown" * } * ] * ``` * * **Largest Contentful Paint Metric Monitor** * - `dataset`: Use `events_analytics_platform`. To query transaction spans, add `is_transaction:true` to `query`. * - `aggregate`: Valid values are `avg(measurements.lcp)`, `p50(measurements.lcp)`, `p75(measurements.lcp)`, `p95(measurements.lcp)`, `p99(measurements.lcp)`, and `p100(measurements.lcp)`. * * ```json * [ * { * "aggregate":"p95(measurements.lcp)", * "dataset":"events_analytics_platform", * "environment":"prod", * "eventTypes":["trace_item_span"], * "query":"is_transaction:true", * "queryType":1, * "timeWindow":3600, * "extrapolationMode":"unknown" * } * ] * ``` * * **Custom Metric Monitor** * - `dataset`: Use `events_analytics_platform`. To query transaction spans, add `is_transaction:true` to `query`. * - `aggregate`: Valid values are: * `avg(x)`, where `x` is `transaction.duration`, `measurements.cls`, `measurements.fcp`, `measurements.fid`, `measurements.fp`, `measurements.lcp`, `measurements.ttfb`, or `measurements.ttfb.requesttime`. * `p50(x)`, where `x` is `transaction.duration`, `measurements.cls`, `measurements.fcp`, `measurements.fid`, `measurements.fp`, `measurements.lcp`, `measurements.ttfb`, or `measurements.ttfb.requesttime`. * `p75(x)`, where x is `transaction.duration`, `measurements.cls`, `measurements.fcp`, `measurements.fid`, `measurements.fp`, `measurements.lcp`, `measurements.ttfb`, or `measurements.ttfb.requesttime`. * `p95(x)`, where x is `transaction.duration`, `measurements.cls`, `measurements.fcp`, `measurements.fid`, `measurements.fp`, `measurements.lcp`, `measurements.ttfb`, or `measurements.ttfb.requesttime`. * `p99(x)`, where x is `transaction.duration`, `measurements.cls`, `measurements.fcp`, `measurements.fid`, `measurements.fp`, `measurements.lcp`, `measurements.ttfb`, or `measurements.ttfb.requesttime`. * `p100(x)`, where `x` is `transaction.duration`, `measurements.cls`, `measurements.fcp`, `measurements.fid`, `measurements.fp`, `measurements.lcp`, `measurements.ttfb`, or `measurements.ttfb.requesttime`. * `failure_rate()` * `apdex(x)`, where `x` is the value of the Apdex score. * `count()` * * ```json * [ * { * "aggregate": "p75(measurements.ttfb)", * "dataset": "events_analytics_platform", * "environment": "prod", * "queryType": 1, * "eventTypes": ["trace_item_span"], * "query": "is_transaction:true", * "timeWindow": 3600, * "extrapolationMode": "unknown" * } * ] * ``` * */ dataSources?: Array<{ query_type?: 0; dataset: 'events'; /** * A search query to filter the events, such as `is:unresolved`. */ query: string; aggregate: 'count()' | 'count_unique(user)' | 'count_unique(dist)' | 'count_unique(release)' | 'count_unique(tags[sentry:user])' | 'count_unique(tags[sentry:dist])' | 'count_unique(tags[sentry:release])'; /** * The time window to aggregate over, in seconds. */ time_window: number; environment: string | null; event_types: Array<'error' | 'default'>; extrapolation_mode?: string | null; } | { query_type?: 1; dataset: 'events_analytics_platform'; /** * A search query to filter the events, such as `is:unresolved`. */ query: string; aggregate: string; /** * The time window to aggregate over, in seconds. */ time_window: number; environment: string | null; event_types: [ 'trace_item_span' ]; extrapolation_mode?: string | null; } | { query_type?: 1; dataset: 'events_analytics_platform'; /** * A search query to filter the events, such as `is:unresolved`. */ query: string; aggregate: string; /** * The time window to aggregate over, in seconds. */ time_window: number; environment: string | null; event_types: [ 'trace_item_log' ]; extrapolation_mode?: string | null; } | { query_type?: 1; dataset: 'events_analytics_platform'; /** * A search query to filter the events, such as `is:unresolved`. */ query: string; aggregate: string; /** * The time window to aggregate over, in seconds. */ time_window: number; environment: string | null; event_types: [ 'trace_item_metric' ]; extrapolation_mode?: string | null; } | { query_type?: 2; dataset: 'metrics'; /** * A search query to filter the events, such as `is:unresolved`. */ query: string; aggregate: string; /** * The time window to aggregate over, in seconds. */ time_window: number; environment: string | null; /** * Ignored for this dataset. Send an empty list. */ event_types: Array; extrapolation_mode?: string | null; }>; /** * Configuration for preprod static analysis detector */ config?: { /** * The type of threshold to apply */ thresholdType: 'absolute_diff' | 'absolute' | 'relative_diff'; /** * The measurement to track */ measurement: 'install_size' | 'download_size'; /** * Search query to filter which artifacts are monitored */ query?: string; }; /** * * Issue detection configuration for when to create an issue and at what priority level. * * * - `logicType`: `any` * - `type`: Any of `gt` (greater than), `gte` (greater than or equal), `lt` (less than), `lte` (less than or equal), or `anomaly_detection` (dynamic) * - `comparison`: Any positive integer. This is threshold that must be crossed for the monitor to create an issue, e.g. "Create a metric issue when there are more than 5 unresolved error events". * - If creating a **change** monitor, `comparison` is the current value as a percentage of the value `comparisonDelta` seconds earlier, not the size of the change. For example, use `120` with `gt` for 20% higher, or `70` with `lt` for 30% lower. * - If creating a **dynamic** monitor, see the options below. * - `seasonality`: `auto` * - `sensitivity`: Level of responsiveness. Options are one of `low`, `medium`, or `high` * - `thresholdType`: If you want to be alerted to anomalies that are moving above, below, or in both directions in relation to your threshold. * - `0`: Above * - `1`: Below * - `2`: Above and below * * - `conditionResult`: The issue state change when the threshold is crossed. * - `75`: High priority * - `50`: Low priority * - `0`: Resolved * * * **Threshold Monitor** * ```json * "logicType": "any", * "conditions": [ * { * "type": "gt", * "comparison": 10, * "conditionResult": 75 * }, * { * "type": "lte", * "comparison": 10, * "conditionResult": 0 * } * ], * "actions": [] * ``` * * **Change Monitor** (20% higher than `comparisonDelta` seconds earlier) * ```json * "logicType": "any", * "conditions": [ * { * "type": "gt", * "comparison": 120, * "conditionResult": 75 * }, * { * "type": "lte", * "comparison": 120, * "conditionResult": 0 * } * ], * "actions": [] * ``` * * **Threshold Monitor with Medium Priority** * ```json * "logicType": "any", * "conditions": [ * { * type: "gt", * comparison: 5, * conditionResult: 75 * }, * { * type: "gt", * comparison: 2, * conditionResult: 50 * }, * { * type: "lte", * comparison: 2, * conditionResult: 0 * } * ], * "actions": [] * ``` * * **Dynamic Monitor** * ```json * "logicType": "any", * "conditions": [ * { * "type": "anomaly_detection", * "comparison": { * "seasonality": "auto", * "sensitivity": "medium", * "thresholdType": 2 * }, * "conditionResult": 75 * } * ], * "actions": [] * ``` * */ conditionGroup?: { id?: number; /** * * `any` * * `any-short` * * `all` * * `none` */ logicType: 'any' | 'any-short' | 'all' | 'none'; conditions?: Array; }; /** * * The ID user or team who owns the monitor or alert prefaced by the string 'user' or 'team'. * * **User** * ```json * "user:123456" * ``` * * **Team** * ```json * "team:456789" * ``` * */ owner?: string | null; /** * A description of the monitor. Will be used in the resulting issue. */ description?: string | null; /** * Set to False if you want to disable the monitor. */ enabled?: boolean; } | { /** * Name of the monitor. */ name: string; type: 'uptime_domain_failure'; /** * The IDs of the alerts to connect this monitor to. Use the 'Fetch Alerts' endpoint to find the IDs. */ workflowIds?: Array; dataSources?: Array<{ url: string; /** * Additional headers to send with the check request. */ headers?: { [key: string]: unknown; }; /** * The number of milliseconds the request will wait for a response before timing-out. */ timeout_ms: number; /** * The HTTP method used to make the check request. * * * `GET` * * `POST` * * `HEAD` * * `PUT` * * `DELETE` * * `PATCH` * * `OPTIONS` */ method?: 'GET' | 'POST' | 'HEAD' | 'PUT' | 'DELETE' | 'PATCH' | 'OPTIONS'; /** * When enabled allows check requets to be considered for dowstream performance tracing. */ trace_sampling?: boolean; /** * When enabled, response body and headers will be captured on check failures. */ response_capture_enabled?: boolean; /** * The body to send with the check request. */ body?: string | null; /** * Time in seconds between uptime checks. * * * `60` - 1 minute * * `300` - 5 minutes * * `600` - 10 minutes * * `1200` - 20 minutes * * `1800` - 30 minutes * * `3600` - 1 hour */ interval_seconds: 60 | 300 | 600 | 1200 | 1800 | 3600; /** * The assertion to send with the check request. */ assertion?: { [key: string]: unknown; } | null; }>; /** * A representation of an uptime alert */ config?: { mode: 1 | 2 | 3; environment: string | null; /** * Number of consecutive successful checks required to mark monitor as recovered */ recoveryThreshold: number; /** * Number of consecutive failed checks required to mark monitor as down */ downtimeThreshold: number; }; /** * * Issue detection configuration for when to create an issue and at what priority level. * * * - `logicType`: `any` * - `type`: Any of `gt` (greater than), `gte` (greater than or equal), `lt` (less than), `lte` (less than or equal), or `anomaly_detection` (dynamic) * - `comparison`: Any positive integer. This is threshold that must be crossed for the monitor to create an issue, e.g. "Create a metric issue when there are more than 5 unresolved error events". * - If creating a **change** monitor, `comparison` is the current value as a percentage of the value `comparisonDelta` seconds earlier, not the size of the change. For example, use `120` with `gt` for 20% higher, or `70` with `lt` for 30% lower. * - If creating a **dynamic** monitor, see the options below. * - `seasonality`: `auto` * - `sensitivity`: Level of responsiveness. Options are one of `low`, `medium`, or `high` * - `thresholdType`: If you want to be alerted to anomalies that are moving above, below, or in both directions in relation to your threshold. * - `0`: Above * - `1`: Below * - `2`: Above and below * * - `conditionResult`: The issue state change when the threshold is crossed. * - `75`: High priority * - `50`: Low priority * - `0`: Resolved * * * **Threshold Monitor** * ```json * "logicType": "any", * "conditions": [ * { * "type": "gt", * "comparison": 10, * "conditionResult": 75 * }, * { * "type": "lte", * "comparison": 10, * "conditionResult": 0 * } * ], * "actions": [] * ``` * * **Change Monitor** (20% higher than `comparisonDelta` seconds earlier) * ```json * "logicType": "any", * "conditions": [ * { * "type": "gt", * "comparison": 120, * "conditionResult": 75 * }, * { * "type": "lte", * "comparison": 120, * "conditionResult": 0 * } * ], * "actions": [] * ``` * * **Threshold Monitor with Medium Priority** * ```json * "logicType": "any", * "conditions": [ * { * type: "gt", * comparison: 5, * conditionResult: 75 * }, * { * type: "gt", * comparison: 2, * conditionResult: 50 * }, * { * type: "lte", * comparison: 2, * conditionResult: 0 * } * ], * "actions": [] * ``` * * **Dynamic Monitor** * ```json * "logicType": "any", * "conditions": [ * { * "type": "anomaly_detection", * "comparison": { * "seasonality": "auto", * "sensitivity": "medium", * "thresholdType": 2 * }, * "conditionResult": 75 * } * ], * "actions": [] * ``` * */ conditionGroup?: { id?: number; /** * * `any` * * `any-short` * * `all` * * `none` */ logicType: 'any' | 'any-short' | 'all' | 'none'; conditions?: Array; }; /** * * The ID user or team who owns the monitor or alert prefaced by the string 'user' or 'team'. * * **User** * ```json * "user:123456" * ``` * * **Team** * ```json * "team:456789" * ``` * */ owner?: string | null; /** * A description of the monitor. Will be used in the resulting issue. */ description?: string | null; /** * Set to False if you want to disable the monitor. */ enabled?: boolean; }) & { /** * Name of the monitor. */ name: string; /** * The type of monitor - `metric_issue`. */ type: string; /** * The IDs of the alerts to connect this monitor to. Use the 'Fetch Alerts' endpoint to find the IDs. */ workflowIds?: Array; /** * * The data sources for the metric monitor to use based on what you want to measure. * * The schema of each data source lists the `aggregate` values that its `dataset` and * `eventTypes` accept. * * `timeWindow` is measured in seconds. Cron Monitors use schedules instead of this field. * Legacy metric alert rules expressed this value in minutes, so multiply a legacy value * by 60 when migrating it to a monitor. For example, a legacy 5-minute window becomes * `"timeWindow": 300`. * * **Number of Errors Metric Monitor** * - `eventTypes`: Any of `error` or `default`. * ```json * [ * { * "aggregate": "count()", * "dataset" : "events", * "environment": "prod", * "eventTypes": ["default", "error"], * "query": "is:unresolved", * "queryType": 0, * "timeWindow": 3600 * } * ] * ``` * * **Users Experiencing Errors Metric Monitor** * - `eventTypes`: Any of `error` or `default`. * ```json * [ * { * "aggregate": "count_unique(tags[sentry:user])", * "dataset" : "events", * "environment": "prod", * "eventTypes": ["default", "error"], * "query": "is:unresolved", * "queryType": 0, * "timeWindow": 3600 * } * ] * ``` * * * **Throughput Metric Monitor** * ```json * [ * { * "aggregate":"count(span.duration)", * "dataset":"events_analytics_platform", * "environment":"prod", * "eventTypes":["trace_item_span"], * "query":"", * "queryType":1, * "timeWindow":3600, * "extrapolationMode":"unknown" * } * ] * ``` * * **Duration Metric Monitor** * ```json * [ * { * "aggregate":"p95(span.duration)", * "dataset":"events_analytics_platform", * "environment":"prod", * "eventTypes":["trace_item_span"], * "query":"", * "queryType":1, * "timeWindow":3600, * "extrapolationMode":"unknown" * } * ] * ``` * * **Failure Rate Metric Monitor** * ```json * [ * { * "aggregate":"failure_rate()", * "dataset":"events_analytics_platform", * "environment":"prod", * "eventTypes":["trace_item_span"], * "query":"", * "queryType":1, * "timeWindow":3600, * "extrapolationMode":"unknown" * } * ] * ``` * * **Largest Contentful Paint Metric Monitor** * - `dataset`: Use `events_analytics_platform`. To query transaction spans, add `is_transaction:true` to `query`. * - `aggregate`: Valid values are `avg(measurements.lcp)`, `p50(measurements.lcp)`, `p75(measurements.lcp)`, `p95(measurements.lcp)`, `p99(measurements.lcp)`, and `p100(measurements.lcp)`. * * ```json * [ * { * "aggregate":"p95(measurements.lcp)", * "dataset":"events_analytics_platform", * "environment":"prod", * "eventTypes":["trace_item_span"], * "query":"is_transaction:true", * "queryType":1, * "timeWindow":3600, * "extrapolationMode":"unknown" * } * ] * ``` * * **Custom Metric Monitor** * - `dataset`: Use `events_analytics_platform`. To query transaction spans, add `is_transaction:true` to `query`. * - `aggregate`: Valid values are: * `avg(x)`, where `x` is `transaction.duration`, `measurements.cls`, `measurements.fcp`, `measurements.fid`, `measurements.fp`, `measurements.lcp`, `measurements.ttfb`, or `measurements.ttfb.requesttime`. * `p50(x)`, where `x` is `transaction.duration`, `measurements.cls`, `measurements.fcp`, `measurements.fid`, `measurements.fp`, `measurements.lcp`, `measurements.ttfb`, or `measurements.ttfb.requesttime`. * `p75(x)`, where x is `transaction.duration`, `measurements.cls`, `measurements.fcp`, `measurements.fid`, `measurements.fp`, `measurements.lcp`, `measurements.ttfb`, or `measurements.ttfb.requesttime`. * `p95(x)`, where x is `transaction.duration`, `measurements.cls`, `measurements.fcp`, `measurements.fid`, `measurements.fp`, `measurements.lcp`, `measurements.ttfb`, or `measurements.ttfb.requesttime`. * `p99(x)`, where x is `transaction.duration`, `measurements.cls`, `measurements.fcp`, `measurements.fid`, `measurements.fp`, `measurements.lcp`, `measurements.ttfb`, or `measurements.ttfb.requesttime`. * `p100(x)`, where `x` is `transaction.duration`, `measurements.cls`, `measurements.fcp`, `measurements.fid`, `measurements.fp`, `measurements.lcp`, `measurements.ttfb`, or `measurements.ttfb.requesttime`. * `failure_rate()` * `apdex(x)`, where `x` is the value of the Apdex score. * `count()` * * ```json * [ * { * "aggregate": "p75(measurements.ttfb)", * "dataset": "events_analytics_platform", * "environment": "prod", * "queryType": 1, * "eventTypes": ["trace_item_span"], * "query": "is_transaction:true", * "timeWindow": 3600, * "extrapolationMode": "unknown" * } * ] * ``` * */ dataSources?: Array<{ query_type?: 0; dataset: 'events'; /** * A search query to filter the events, such as `is:unresolved`. */ query: string; aggregate: 'count()' | 'count_unique(user)' | 'count_unique(dist)' | 'count_unique(release)' | 'count_unique(tags[sentry:user])' | 'count_unique(tags[sentry:dist])' | 'count_unique(tags[sentry:release])'; /** * The time window to aggregate over, in seconds. */ time_window: number; environment: string | null; event_types: Array<'error' | 'default'>; extrapolation_mode?: string | null; } | { query_type?: 1; dataset: 'events_analytics_platform'; /** * A search query to filter the events, such as `is:unresolved`. */ query: string; aggregate: string; /** * The time window to aggregate over, in seconds. */ time_window: number; environment: string | null; event_types: [ 'trace_item_span' ]; extrapolation_mode?: string | null; } | { query_type?: 1; dataset: 'events_analytics_platform'; /** * A search query to filter the events, such as `is:unresolved`. */ query: string; aggregate: string; /** * The time window to aggregate over, in seconds. */ time_window: number; environment: string | null; event_types: [ 'trace_item_log' ]; extrapolation_mode?: string | null; } | { query_type?: 1; dataset: 'events_analytics_platform'; /** * A search query to filter the events, such as `is:unresolved`. */ query: string; aggregate: string; /** * The time window to aggregate over, in seconds. */ time_window: number; environment: string | null; event_types: [ 'trace_item_metric' ]; extrapolation_mode?: string | null; } | { query_type?: 2; dataset: 'metrics'; /** * A search query to filter the events, such as `is:unresolved`. */ query: string; aggregate: string; /** * The time window to aggregate over, in seconds. */ time_window: number; environment: string | null; /** * Ignored for this dataset. Send an empty list. */ event_types: Array; extrapolation_mode?: string | null; }>; /** * * The issue detection type configuration. * * * - `detectionType` * - `static`: Threshold based monitor * - `percent`: Change based monitor * - `dynamic`: Dynamic monitor * - `comparisonDelta`: If selecting a **change** detection type, the comparison delta is the time period, in seconds, at which to compare against historical data. * For example, a value of 3600 compares the metric tracked against data 1 hour ago. * - `300`: 5 minutes * - `900`: 15 minutes * - `3600`: 1 hour * - `86400`: 1 day * - `604800`: 1 week * - `2592000`: 1 month * * **Threshold** * ```json * { * "detectionType": "static" * } * ``` * **Change** * ```json * { * "detectionType": "percent", * "comparisonDelta": 3600 * } * ``` * **Dynamic** * ```json * { * "detectionType": "dynamic" * } * ``` * */ config?: { [key: string]: unknown; }; /** * * Issue detection configuration for when to create an issue and at what priority level. * * * - `logicType`: `any` * - `type`: Any of `gt` (greater than), `gte` (greater than or equal), `lt` (less than), `lte` (less than or equal), or `anomaly_detection` (dynamic) * - `comparison`: Any positive integer. This is threshold that must be crossed for the monitor to create an issue, e.g. "Create a metric issue when there are more than 5 unresolved error events". * - If creating a **change** monitor, `comparison` is the current value as a percentage of the value `comparisonDelta` seconds earlier, not the size of the change. For example, use `120` with `gt` for 20% higher, or `70` with `lt` for 30% lower. * - If creating a **dynamic** monitor, see the options below. * - `seasonality`: `auto` * - `sensitivity`: Level of responsiveness. Options are one of `low`, `medium`, or `high` * - `thresholdType`: If you want to be alerted to anomalies that are moving above, below, or in both directions in relation to your threshold. * - `0`: Above * - `1`: Below * - `2`: Above and below * * - `conditionResult`: The issue state change when the threshold is crossed. * - `75`: High priority * - `50`: Low priority * - `0`: Resolved * * * **Threshold Monitor** * ```json * "logicType": "any", * "conditions": [ * { * "type": "gt", * "comparison": 10, * "conditionResult": 75 * }, * { * "type": "lte", * "comparison": 10, * "conditionResult": 0 * } * ], * "actions": [] * ``` * * **Change Monitor** (20% higher than `comparisonDelta` seconds earlier) * ```json * "logicType": "any", * "conditions": [ * { * "type": "gt", * "comparison": 120, * "conditionResult": 75 * }, * { * "type": "lte", * "comparison": 120, * "conditionResult": 0 * } * ], * "actions": [] * ``` * * **Threshold Monitor with Medium Priority** * ```json * "logicType": "any", * "conditions": [ * { * type: "gt", * comparison: 5, * conditionResult: 75 * }, * { * type: "gt", * comparison: 2, * conditionResult: 50 * }, * { * type: "lte", * comparison: 2, * conditionResult: 0 * } * ], * "actions": [] * ``` * * **Dynamic Monitor** * ```json * "logicType": "any", * "conditions": [ * { * "type": "anomaly_detection", * "comparison": { * "seasonality": "auto", * "sensitivity": "medium", * "thresholdType": 2 * }, * "conditionResult": 75 * } * ], * "actions": [] * ``` * */ conditionGroup?: { id?: number; /** * * `any` * * `any-short` * * `all` * * `none` */ logicType: 'any' | 'any-short' | 'all' | 'none'; conditions?: Array; }; /** * * The ID user or team who owns the monitor or alert prefaced by the string 'user' or 'team'. * * **User** * ```json * "user:123456" * ``` * * **Team** * ```json * "team:456789" * ``` * */ owner?: string | null; /** * A description of the monitor. Will be used in the resulting issue. */ description?: string | null; /** * Set to False if you want to disable the monitor. */ enabled?: boolean; }; path: { /** * The ID or slug of the organization the resource belongs to. */ organization_id_or_slug: string; /** * The ID or slug of the project the resource belongs to. Project slugs are unique within each organization. */ project_id_or_slug: string; }; query?: never; url: '/organizations/{organization_id_or_slug}/projects/{project_id_or_slug}/detectors/'; }; export type CreateOrganizationProjectDetectorErrors = { /** * Bad Request */ 400: unknown; /** * Unauthorized */ 401: unknown; /** * Forbidden */ 403: unknown; /** * Not Found */ 404: unknown; }; export type CreateOrganizationProjectDetectorResponses = { 201: { /** * Team or user that owns the monitor */ owner?: { /** * Whether the actor is a user or a team */ type: 'user' | 'team'; /** * ID of the user or team */ id: string; /** * Display name of the user, or slug of the team */ name: string; /** * Email address of the user. Only set for users */ email?: string; } | null; /** * ID of the user who created the monitor */ createdBy?: string | null; /** * Latest issue the monitor created */ latestGroup?: { /** * ID of the issue */ id: string; /** * Title of the issue */ title: string; /** * Function or module where the issue occurs */ culprit: string | null; /** * Short ID of the issue, such as PROJECT-1A */ shortId: string | null; /** * Severity level of the issue */ level: 'sample' | 'debug' | 'info' | 'warning' | 'error' | 'fatal' | 'unknown'; /** * Issue status */ status: 'resolved' | 'ignored' | 'pending_deletion' | 'pending_merge' | 'reprocessing' | 'unresolved'; /** * Substatus of the issue, such as ongoing, regressed or escalating */ substatus: 'archived_until_escalating' | 'archived_until_condition_met' | 'archived_forever' | 'escalating' | 'ongoing' | 'regressed' | 'new' | null; /** * Platform of the issue's events */ platform: string | null; /** * Project the issue belongs to */ project: { /** * ID of the project */ id: string; /** * Name of the project */ name: string; /** * Slug of the project */ slug: string; /** * Platform of the project */ platform: string | null; }; /** * Event type of the issue, such as error or default */ type: 'default' | 'error' | 'csp' | 'nel' | 'hpkp' | 'expectct' | 'expectstaple' | 'transaction' | 'generic' | 'feedback'; /** * Issue type, such as error or performance_n_plus_one_db_queries */ issueType: string; /** * Issue category, such as error or performance */ issueCategory: string; /** * Issue metadata */ metadata: { /** * Title of default and issue platform events */ title?: string; /** * Exception value, or the subtitle of an issue */ value?: string; /** * Exception type of error events */ type?: string; /** * Whether the SDK fabricated the exception to carry a stacktrace, so its type is a platform label rather than what went wrong */ synthetic?: boolean; /** * File of the frame where the error happened */ filename?: string; /** * Function of the frame where the error happened */ function?: string; /** * Message of default, security and feedback events */ message?: string; /** * URI that a CSP report blocked */ uri?: string; /** * CSP directive that was violated */ directive?: string; /** * Host name of HPKP, Expect-CT and Expect-Staple reports */ origin?: string; /** * Name of the person who sent user feedback */ name?: string; /** * Email of the person who sent user feedback */ contact_email?: string; /** * Where user feedback came from, such as a widget */ source?: string; /** * Whether the stacktrace has in-app frames, system frames or both */ in_app_frame_mix?: string; /** * Whether a crash report was dropped because the issue already stores the most allowed */ stripped_crash?: boolean; /** * SDK of the issue's first event */ sdk?: { /** * Name of the SDK, or unknown */ name: string; /** * Name of the SDK, normalized for grouping */ name_normalized: string; }; /** * Severity score of the issue's first event */ severity?: number; /** * Why the severity score is what it is */ severity_reason?: string; /** * Priority the issue was created with */ initial_priority?: number; }; /** * Number of comments on the issue */ numComments: number; /** * When the issue was first seen (ISO 8601) */ firstSeen: string | null; /** * When the issue was last seen (ISO 8601) */ lastSeen: string | null; } | null; /** * Description of the monitor */ description?: string | null; /** * Monitor ID */ id: string; /** * ID of the project the monitor belongs to */ projectId: string | null; /** * Monitor name */ name: string; /** * Type of the monitor, such as metric_issue or error */ type: string; /** * IDs of the alerts connected to the monitor */ workflowIds: Array | null; /** * When the monitor was created (ISO 8601) */ dateCreated: string; /** * When the monitor was last updated (ISO 8601) */ dateUpdated: string; /** * Data sources the monitor evaluates, such as a query subscription */ dataSources: Array<{ /** * ID of the data source */ id: string; /** * ID of the organization */ organizationId: string; /** * Type of the data source */ type: 'snuba_query_subscription' | 'cron_monitor' | 'uptime_subscription'; /** * ID of the query subscription, cron monitor or uptime subscription */ sourceId: string; /** * The query subscription, cron monitor or uptime subscription, which depends on type. Null when it no longer exists */ queryObj: { /** * ID of the query subscription */ id: string; /** * Status of the subscription: 0 active, 1 creating, 2 updating, 3 deleting or 4 disabled */ status: number; /** * ID of the subscription in Snuba. Null while it's being created */ subscription: string | null; /** * Query the subscription runs */ snubaQuery: { /** * ID of the query */ id: string; /** * Dataset the query runs on, such as events or events_analytics_platform */ dataset: string; /** * Search query that filters the data */ query: string; /** * Aggregate function the query computes, such as count() */ aggregate: string; /** * Time window of the query in seconds */ timeWindow: number; /** * Environment the query is limited to. Null for all environments */ environment: string | null; /** * Event types the query includes, such as error or transaction */ eventTypes: Array; /** * How sampled data is extrapolated, unknown, none, client_and_server_weighted or server_weighted. Null when not set */ extrapolationMode: string | null; }; } | { /** * ID of the monitor */ id: string; /** * Name of the monitor */ name: string; /** * Slug that identifies the monitor in the organization */ slug: string; /** * Status of the monitor. Disabled monitors don't accept check-ins */ status: 'active' | 'disabled' | 'pending_deletion' | 'deletion_in_progress'; /** * Whether incidents are muted in all of the monitor's environments */ isMuted: boolean; /** * Whether the most recent check-in was an upsert check-in */ isUpserting: boolean; /** * Configuration of the monitor */ config: { /** * Type of schedule: crontab or interval */ schedule_type: 'crontab' | 'interval'; /** * Schedule of the monitor: a crontab string, or a [value, unit] pair for intervals, such as [1, "day"] */ schedule: string | Array; /** * How long in minutes after the expected check-in time to wait before the check-in counts as missed */ checkin_margin: number | null; /** * How long in minutes a check-in can stay in progress before it counts as failed */ max_runtime: number | null; /** * Timezone the schedule is evaluated in, as a tz database name */ timezone: string | null; /** * Number of consecutive missed or failed check-ins before an issue is created */ failure_issue_threshold: number | null; /** * Number of consecutive successful check-ins before the issue is resolved */ recovery_threshold: number | null; /** * ID of the alert rule linked to the monitor */ alert_rule_id: number | null; }; /** * When the monitor was created (ISO 8601) */ dateCreated: string; /** * Project the monitor belongs to */ project: { /** * Counts of non-transaction events per interval over the requested stats period, as [timestamp, count] pairs. Only included when a stats period is requested */ stats?: Array> | { [key: string]: number; }; /** * Counts of transactions per interval over the requested stats period, as [timestamp, count] pairs. Only included when transaction stats are requested */ transactionStats?: Array>; /** * Crash-free session rates for the current and previous stats period. Only included when session stats are requested */ sessionStats?: { /** * Crash-free rate in the current period, as a percentage. Null when there's no session data */ currentCrashFreeRate: number | null; /** * Crash-free rate in the previous period, as a percentage. Null when there's no session data */ previousCrashFreeRate: number | null; /** * Whether the project has release health (session) data */ hasHealthData: boolean; }; /** * ID of the project */ id: string; /** * Slug of the project */ slug: string; /** * Name of the project */ name: string; /** * Platform of the project */ platform: string | null; /** * When the project was created (ISO 8601) */ dateCreated: string; /** * Whether the requesting user bookmarked the project */ isBookmarked: boolean; /** * Whether the requesting user is a member of a team with access to the project */ isMember: boolean; /** * Features enabled for the project */ features: Array; /** * When the project received its first event (ISO 8601) */ firstEvent: string | null; /** * Whether the project has sent transactions */ firstTransactionEvent: boolean; /** * Scopes the requesting user has on the project through team membership and organization role */ access: Array; /** * Whether the requesting user has access to the project */ hasAccess: boolean; /** * Whether the project has sent user feedback */ hasFeedbacks: boolean; /** * Whether the project has sent feature flags */ hasFlags: boolean; /** * Whether the project has sent an event with a minified stack trace */ hasMinifiedStackTrace: boolean; /** * Whether the project has cron monitors */ hasMonitors: boolean; /** * Whether the project has sent user feedback from the user feedback widget */ hasNewFeedbacks: boolean; /** * Whether the project has sent profiles */ hasProfiles: boolean; /** * Whether the project has sent replays */ hasReplays: boolean; /** * Whether the project has sent sessions */ hasSessions: boolean; /** * Whether the project has sent HTTP request spans used by Insights */ hasInsightsHttp: boolean; /** * Whether the project has sent database spans used by Insights */ hasInsightsDb: boolean; /** * Whether the project has sent asset spans used by Insights */ hasInsightsAssets: boolean; /** * Whether the project has sent app start spans used by Insights */ hasInsightsAppStart: boolean; /** * Whether the project has sent screen load spans used by Insights */ hasInsightsScreenLoad: boolean; /** * Whether the project has sent web vitals spans used by Insights */ hasInsightsVitals: boolean; /** * Whether the project has sent cache spans used by Insights */ hasInsightsCaches: boolean; /** * Whether the project has sent queue spans used by Insights */ hasInsightsQueues: boolean; /** * Whether the project has sent AI agent spans used by Insights */ hasInsightsAgentMonitoring: boolean; /** * Whether the project has sent MCP spans used by Insights */ hasInsightsMCP: boolean; /** * Whether the project has sent logs. Always true outside sentry.io */ hasLogs: boolean; /** * Whether the project has sent trace metrics. Always true outside sentry.io */ hasTraceMetrics: boolean; /** * Whether this is the Sentry install's own internal project */ isInternal: boolean; /** * Whether the project is public */ isPublic: boolean; /** * Avatar of the project. Always a letter avatar */ avatar: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Hex color code for the project, derived from its slug unless set explicitly */ color: string; /** * Status of the project: active, deleted, or unknown */ status: string; }; /** * Environments the monitor has received check-ins for */ environments: Array<{ /** * Name of the environment */ name: string; /** * Status of the monitor in the environment */ status: 'active' | 'disabled' | 'pending_deletion' | 'deletion_in_progress' | 'ok' | 'error'; /** * Whether incidents are muted for the monitor in the environment */ isMuted: boolean; /** * When the monitor was created (ISO 8601) */ dateCreated: string; /** * When the most recent check-in was received, not counting missed check-ins (ISO 8601) */ lastCheckIn: string | null; /** * When the next check-in is expected (ISO 8601) */ nextCheckIn: string | null; /** * Latest time the next check-in can arrive before it counts as missed (ISO 8601) */ nextCheckInLatest: string | null; /** * Unresolved incident for the monitor in the environment. Null when there's none */ activeIncident: { /** * When the incident started (ISO 8601) */ startingTimestamp: string | null; /** * When the incident was resolved (ISO 8601) */ resolvingTimestamp: string | null; /** * Details of the broken monitor notice for the incident. Null when there's none */ brokenNotice: { /** * When users were notified that the monitor environment looks broken (ISO 8601) */ userNotifiedTimestamp: string | null; /** * When the broken monitor environment was muted (ISO 8601) */ environmentMutedTimestamp: string | null; } | null; } | null; }>; /** * Team or user that owns the monitor. Null when there's no owner */ owner: { /** * Whether the actor is a user or a team */ type: 'user' | 'team'; /** * ID of the user or team */ id: string; /** * Display name of the user, or slug of the team */ name: string; /** * Email address of the user. Only set for users */ email?: string; } | null; } | { /** * URL the check requests */ url: string; /** * HTTP method of the check request, such as GET */ method: string; /** * Body of the check request. Null when it has none */ body: string | null; /** * Headers of the check request, each a name and value pair */ headers: Array>; /** * How often the check runs, in seconds */ intervalSeconds: number; /** * How long the check waits for a response, in milliseconds */ timeoutMs: number; /** * Whether the check request samples a trace */ traceSampling: boolean; /** * Whether failed checks capture the response body and headers */ responseCaptureEnabled: boolean; /** * Assertion the response must pass. Null when the check has none */ assertion: { /** * All possible assertion operations */ root?: { /** * Operation, always and */ op?: 'and'; /** * Operations that must all pass */ children?: Array<{ [key: string]: unknown; }>; } | { /** * Operation, always or */ op?: 'or'; /** * Operations of which at least one must pass */ children?: Array<{ [key: string]: unknown; }>; } | { /** * Operation, always not */ op?: 'not'; /** * All possible assertion operations. Its fields are the same as the one this is inside, so they're left out here. */ operand?: { [key: string]: unknown; }; } | { /** * HTTP status code to compare the response status code against */ value?: number; /** * The kind of comparison to make. */ operator?: 'always' | 'never' | 'less_than' | 'greater_than' | 'equals' | 'not_equals'; } | { /** * Operation, always json_path */ op?: 'json_path'; /** * JSONPath query to run on the response body */ value?: string; /** * The kind of comparison to make. */ operator?: 'always' | 'never' | 'less_than' | 'greater_than' | 'equals' | 'not_equals' | null; /** * An operand for comparison against json path values */ operand?: { /** * Kind of operand, always glob */ header_op?: 'glob'; /** * The actual glob pattern, as a string */ pattern?: { /** * Glob pattern */ value?: string; }; } | { /** * Kind of operand, always literal */ jsonpath_op?: 'literal'; /** * Value to compare the query result against */ value?: string; } | { /** * Kind of operand, always none */ header_op?: 'none'; } | null; } | { /** * The kind of comparison to make. */ key_op?: 'always' | 'never' | 'less_than' | 'greater_than' | 'equals' | 'not_equals'; /** * A operand for comparison against HTTP header keys and values */ key_operand?: { /** * Kind of operand, always glob */ header_op?: 'glob'; /** * The actual glob pattern, as a string */ pattern?: { /** * Glob pattern */ value?: string; }; } | { /** * Kind of operand, always literal */ header_op?: 'literal'; /** * Value to compare the header key or value against */ value?: string; } | { /** * Kind of operand, always none */ header_op?: 'none'; }; /** * The kind of comparison to make. */ value_op?: 'always' | 'never' | 'less_than' | 'greater_than' | 'equals' | 'not_equals'; /** * A operand for comparison against HTTP header keys and values */ value_operand?: { /** * Kind of operand, always glob */ header_op?: 'glob'; /** * The actual glob pattern, as a string */ pattern?: { /** * Glob pattern */ value?: string; }; } | { /** * Kind of operand, always literal */ header_op?: 'literal'; /** * Value to compare the header key or value against */ value?: string; } | { /** * Kind of operand, always none */ header_op?: 'none'; }; }; } | null; } | null; }> | null; /** * Conditions that decide the monitor's status */ conditionGroup: { /** * ID of the condition group */ id?: string; /** * ID of the organization */ organizationId?: string; /** * How the conditions in the group combine */ logicType?: 'any' | 'any-short' | 'all' | 'none'; /** * Conditions in the group */ conditions?: Array<{ /** * ID of the condition */ id: string; /** * Type of the condition, such as first_seen_event or level */ type: string; /** * Value the condition compares against, which depends on its type */ comparison: number | string | boolean | { /** * Whether the issue must be older or newer than the age */ comparisonType: 'older' | 'newer'; /** * Age of the issue, in units of time */ value: number; /** * Unit of the age */ time: 'minute' | 'hour' | 'day' | 'week'; } | { /** * How sensitive anomaly detection is */ sensitivity: 'low' | 'medium' | 'high'; /** * Seasonal pattern that anomaly detection accounts for */ seasonality: 'auto' | 'hourly' | 'daily' | 'weekly' | 'hourly_daily' | 'hourly_weekly' | 'hourly_daily_weekly' | 'daily_weekly'; /** * Anomalies to detect: 0 above, 1 below, 2 above or below the expected value */ thresholdType: 0 | 1 | 2; } | { /** * Who the issue must be assigned to */ targetType: 'Unassigned' | 'Team' | 'Member'; /** * ID of the team or member. Not set for Unassigned */ targetIdentifier?: number | string; } | { /** * Event attribute to match, such as message or user.email */ attribute?: 'message' | 'platform' | 'environment' | 'type' | 'error.handled' | 'error.unhandled' | 'error.main_thread' | 'exception.type' | 'exception.value' | 'user.id' | 'user.email' | 'user.username' | 'user.ip_address' | 'http.method' | 'http.url' | 'http.status_code' | 'sdk.name' | 'stacktrace.code' | 'stacktrace.module' | 'stacktrace.filename' | 'stacktrace.abs_path' | 'stacktrace.package' | 'unreal.crash_type' | 'app.in_foreground' | 'os.distribution_name' | 'os.distribution_version' | 'symbolicated_in_app' | 'ota_updates.channel' | 'ota_updates.runtime_version' | 'ota_updates.update_id'; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the attribute against. Not set for is and ns */ value?: string; } | number | { /** * Time window to count in, such as 1h */ interval: '1m' | '5m' | '15m' | '1h' | '1d' | '1w' | '30d'; /** * Number of events in the interval that meets the condition */ value: number; /** * Tag or attribute filters that events must match to count */ filters?: Array<{ /** * Tag key to match */ key?: string; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the tag or attribute against. Not set for is and ns */ value?: string; } | { /** * Event attribute to match, such as message or user.email */ attribute?: 'message' | 'platform' | 'environment' | 'type' | 'error.handled' | 'error.unhandled' | 'error.main_thread' | 'exception.type' | 'exception.value' | 'user.id' | 'user.email' | 'user.username' | 'user.ip_address' | 'http.method' | 'http.url' | 'http.status_code' | 'sdk.name' | 'stacktrace.code' | 'stacktrace.module' | 'stacktrace.filename' | 'stacktrace.abs_path' | 'stacktrace.package' | 'unreal.crash_type' | 'app.in_foreground' | 'os.distribution_name' | 'os.distribution_version' | 'symbolicated_in_app' | 'ota_updates.channel' | 'ota_updates.runtime_version' | 'ota_updates.update_id'; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the tag or attribute against. Not set for is and ns */ value?: string; }>; } | { /** * Time window to count in, such as 1h */ interval: '1m' | '5m' | '15m' | '1h' | '1d' | '1w' | '30d'; /** * Percent increase in events over the comparison interval that meets the condition */ value: number; /** * Earlier time window to compare the count against, such as 1w */ comparisonInterval: '5m' | '15m' | '1h' | '1d' | '1w' | '30d'; /** * Tag or attribute filters that events must match to count */ filters?: Array<{ /** * Tag key to match */ key?: string; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the tag or attribute against. Not set for is and ns */ value?: string; } | { /** * Event attribute to match, such as message or user.email */ attribute?: 'message' | 'platform' | 'environment' | 'type' | 'error.handled' | 'error.unhandled' | 'error.main_thread' | 'exception.type' | 'exception.value' | 'user.id' | 'user.email' | 'user.username' | 'user.ip_address' | 'http.method' | 'http.url' | 'http.status_code' | 'sdk.name' | 'stacktrace.code' | 'stacktrace.module' | 'stacktrace.filename' | 'stacktrace.abs_path' | 'stacktrace.package' | 'unreal.crash_type' | 'app.in_foreground' | 'os.distribution_name' | 'os.distribution_version' | 'symbolicated_in_app' | 'ota_updates.channel' | 'ota_updates.runtime_version' | 'ota_updates.update_id'; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the tag or attribute against. Not set for is and ns */ value?: string; }>; } | { /** * Time window to count in, such as 1h */ interval: '1m' | '5m' | '15m' | '1h' | '1d' | '1w' | '30d'; /** * Number of affected users in the interval that meets the condition */ value: number; /** * Tag or attribute filters that events must match to count */ filters?: Array<{ /** * Tag key to match */ key?: string; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the tag or attribute against. Not set for is and ns */ value?: string; } | { /** * Event attribute to match, such as message or user.email */ attribute?: 'message' | 'platform' | 'environment' | 'type' | 'error.handled' | 'error.unhandled' | 'error.main_thread' | 'exception.type' | 'exception.value' | 'user.id' | 'user.email' | 'user.username' | 'user.ip_address' | 'http.method' | 'http.url' | 'http.status_code' | 'sdk.name' | 'stacktrace.code' | 'stacktrace.module' | 'stacktrace.filename' | 'stacktrace.abs_path' | 'stacktrace.package' | 'unreal.crash_type' | 'app.in_foreground' | 'os.distribution_name' | 'os.distribution_version' | 'symbolicated_in_app' | 'ota_updates.channel' | 'ota_updates.runtime_version' | 'ota_updates.update_id'; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the tag or attribute against. Not set for is and ns */ value?: string; }>; } | { /** * Time window to count in, such as 1h */ interval: '1m' | '5m' | '15m' | '1h' | '1d' | '1w' | '30d'; /** * Percent increase in affected users over the comparison interval that meets the condition */ value: number; /** * Earlier time window to compare the count against, such as 1w */ comparisonInterval: '5m' | '15m' | '1h' | '1d' | '1w' | '30d'; /** * Tag or attribute filters that events must match to count */ filters?: Array<{ /** * Tag key to match */ key?: string; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the tag or attribute against. Not set for is and ns */ value?: string; } | { /** * Event attribute to match, such as message or user.email */ attribute?: 'message' | 'platform' | 'environment' | 'type' | 'error.handled' | 'error.unhandled' | 'error.main_thread' | 'exception.type' | 'exception.value' | 'user.id' | 'user.email' | 'user.username' | 'user.ip_address' | 'http.method' | 'http.url' | 'http.status_code' | 'sdk.name' | 'stacktrace.code' | 'stacktrace.module' | 'stacktrace.filename' | 'stacktrace.abs_path' | 'stacktrace.package' | 'unreal.crash_type' | 'app.in_foreground' | 'os.distribution_name' | 'os.distribution_version' | 'symbolicated_in_app' | 'ota_updates.channel' | 'ota_updates.runtime_version' | 'ota_updates.update_id'; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the tag or attribute against. Not set for is and ns */ value?: string; }>; } | { /** * ID of the issue category */ value: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 19; /** * Whether the issue must be in the category or not. Defaults to true */ include?: boolean; } | { /** * Number of times the issue must have occurred */ value: number; } | 25 | 50 | 75 | 1 | { /** * Slug of the issue type */ value: 'performance_slow_db_query' | 'performance_render_blocking_asset_span' | 'performance_n_plus_one_db_queries' | 'performance_n_plus_one_db_queries_experimental' | 'performance_consecutive_db_queries' | 'performance_file_io_main_thread' | 'performance_consecutive_http' | 'performance_n_plus_one_api_calls' | 'performance_n_plus_one_api_calls_experimental' | 'performance_m_n_plus_one_db_queries' | 'performance_m_n_plus_one_db_queries_experimental' | 'performance_uncompressed_assets' | 'performance_db_main_thread' | 'performance_large_http_payload' | 'performance_http_overhead' | 'performance_p95_endpoint_regression' | 'performance_streamed_spans_exp' | 'db_query_injection_vulnerability' | 'query_injection_vulnerability' | 'profile_file_io_main_thread' | 'profile_image_decode_main_thread' | 'profile_json_decode_main_thread' | 'profile_regex_main_thread' | 'profile_frame_drop' | 'profile_function_regression' | 'llm_detected_experimental' | 'llm_detected_experimental_v2' | 'ai_detected_http' | 'ai_detected_db' | 'ai_detected_runtime_performance' | 'ai_detected_security' | 'ai_detected_code_health' | 'ai_detected_general' | 'replay_click_rage' | 'replay_hydration_error' | 'feedback' | 'web_vitals' | 'issue_stream' | 'metric_issue' | 'error' | 'uptime_domain_failure' | 'send-test-notification' | 'monitor_check_in_failure' | 'sourcemap_configuration' | 'low_value_span_configuration' | 'preprod_size_analysis'; /** * Whether the issue must be of the type or not. Defaults to true */ include?: boolean; } | { /** * Whether to compare against the oldest or newest adopted release */ releaseAgeType: 'oldest' | 'newest'; /** * Whether the event's release must be older or newer than that release */ ageComparison: 'older' | 'newer'; /** * Environment the release was adopted in */ environment: string; } | { /** * Event level: 0 sample, 10 debug, 20 info, 30 warning, 40 error, 50 fatal */ level: 0 | 10 | 20 | 30 | 40 | 50; /** * How to compare the event's level: eq, gte or lte */ match: 'eq' | 'gte' | 'lte'; } | { /** * Time window to count in, such as 1h */ interval: '1m' | '5m' | '10m' | '30m' | '1h'; /** * Percent of sessions affected in the interval that meets the condition */ value: number; /** * Tag or attribute filters that events must match to count */ filters?: Array<{ /** * Tag key to match */ key?: string; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the tag or attribute against. Not set for is and ns */ value?: string; } | { /** * Event attribute to match, such as message or user.email */ attribute?: 'message' | 'platform' | 'environment' | 'type' | 'error.handled' | 'error.unhandled' | 'error.main_thread' | 'exception.type' | 'exception.value' | 'user.id' | 'user.email' | 'user.username' | 'user.ip_address' | 'http.method' | 'http.url' | 'http.status_code' | 'sdk.name' | 'stacktrace.code' | 'stacktrace.module' | 'stacktrace.filename' | 'stacktrace.abs_path' | 'stacktrace.package' | 'unreal.crash_type' | 'app.in_foreground' | 'os.distribution_name' | 'os.distribution_version' | 'symbolicated_in_app' | 'ota_updates.channel' | 'ota_updates.runtime_version' | 'ota_updates.update_id'; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the tag or attribute against. Not set for is and ns */ value?: string; }>; } | { /** * Time window to count in, such as 1h */ interval: '1m' | '5m' | '10m' | '30m' | '1h'; /** * Percent increase in affected sessions over the comparison interval that meets the condition */ value: number; /** * Earlier time window to compare the count against, such as 1w */ comparisonInterval: '5m' | '15m' | '1h' | '1d' | '1w' | '30d'; /** * Tag or attribute filters that events must match to count */ filters?: Array<{ /** * Tag key to match */ key?: string; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the tag or attribute against. Not set for is and ns */ value?: string; } | { /** * Event attribute to match, such as message or user.email */ attribute?: 'message' | 'platform' | 'environment' | 'type' | 'error.handled' | 'error.unhandled' | 'error.main_thread' | 'exception.type' | 'exception.value' | 'user.id' | 'user.email' | 'user.username' | 'user.ip_address' | 'http.method' | 'http.url' | 'http.status_code' | 'sdk.name' | 'stacktrace.code' | 'stacktrace.module' | 'stacktrace.filename' | 'stacktrace.abs_path' | 'stacktrace.package' | 'unreal.crash_type' | 'app.in_foreground' | 'os.distribution_name' | 'os.distribution_version' | 'symbolicated_in_app' | 'ota_updates.channel' | 'ota_updates.runtime_version' | 'ota_updates.update_id'; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the tag or attribute against. Not set for is and ns */ value?: string; }>; } | Array<'rca_completed' | 'solution_completed' | 'coding_completed' | 'pr_ready_for_review'> | { /** * Tag key to match */ key?: string; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the tag against. Not set for is and ns */ value?: string; }; /** * Result the condition produces when it matches: true for alert conditions, or the priority level for monitor conditions */ conditionResult: boolean | number | number | null; }>; /** * Actions to fire when the conditions pass */ actions?: Array<{ /** * ID of the action */ id?: string; /** * Type of the action */ type?: 'slack' | 'slack_staging' | 'msteams' | 'discord' | 'pagerduty' | 'opsgenie' | 'github' | 'github_enterprise' | 'jira' | 'jira_server' | 'vsts' | 'email' | 'sentry_app' | 'plugin' | 'webhook' | 'seer_investigation'; /** * ID of the integration the action uses. Null for actions without one */ integrationId?: string | null; /** * Extra data for the action, which depends on its type */ data?: { /** * Tags to add to the message */ tags?: string; } | { /** * The fallthrough type for issue owners email notifications */ fallthroughType?: 'AllMembers' | 'ActiveMembers' | 'NoOne'; } | { /** * Dynamic form fields from customer configuration */ dynamicFormFields?: Array<{ /** * Name of the field */ name?: string; /** * Label of the field */ label?: string; /** * Type of the field, such as select or text */ type?: string; }>; /** * Additional fields that aren't part of standard fields */ additionalFields: { /** * Repository to create the issue in, as owner/name */ repo: string; /** * Labels to add to the issue */ labels?: Array | null; /** * User to assign the issue to */ assignee?: string | null; [key: string]: unknown; }; } | { /** * Dynamic form fields from customer configuration */ dynamicFormFields?: Array<{ /** * Name of the field */ name?: string; /** * Label of the field */ label?: string; /** * Type of the field, such as select or text */ type?: string; }>; /** * Additional fields that aren't part of standard fields */ additionalFields?: { [key: string]: string | null | number | boolean | Array; }; } | { [key: string]: never; } | { /** * The priority of the opsgenie action */ priority?: 'P1' | 'P2' | 'P3' | 'P4' | 'P5'; } | { /** * The priority of the pagerduty action */ priority?: 'default' | 'critical' | 'warning' | 'error' | 'info'; } | { [key: string]: string; } | { /** * Prompt the investigation runs */ prompt?: string; /** * Seer skill the investigation runs, instead of a prompt */ skill?: 'agentic_triage'; } | { /** * Values of the Sentry App's alert rule settings form, each with a name and value */ settings?: Array; } | { /** * Tags to add to the message */ tags?: string; /** * Notes to add to the message */ notes?: string; }; /** * Configuration of the action, such as targetType and targetIdentifier */ config?: { /** * ID of the target, such as a channel, user or team ID */ targetIdentifier: string; /** * Display name of the target, such as a channel name */ targetDisplay?: string | null; /** * Kind of target the action notifies, such as specific, user or team */ targetType: 'specific'; } | { /** * ID of the target, such as a channel, user or team ID */ targetIdentifier?: string | null; /** * Display name of the target, such as a channel name */ targetDisplay?: null; /** * Kind of target the action notifies, such as specific, user or team */ targetType: 'user' | 'team' | 'issue_owners'; } | { /** * ID of the target, such as a channel, user or team ID */ targetIdentifier?: null; /** * Display name of the target, such as a channel name */ targetDisplay?: null; /** * Kind of target the action notifies, such as specific, user or team */ targetType?: 'specific'; } | { /** * ID of the target, such as a channel, user or team ID */ targetIdentifier?: string; /** * Display name of the target, such as a channel name */ targetDisplay: string; /** * Kind of target the action notifies, such as specific, user or team */ targetType: 'specific'; } | { /** * ID of the target, such as a channel, user or team ID */ targetIdentifier: string; /** * Display name of the target, such as a channel name */ targetDisplay?: string | null; /** * Kind of target the action notifies, such as specific, user or team */ targetType: 'specific'; } | { /** * ID of the target, such as a channel, user or team ID */ targetIdentifier?: string | null; /** * Display name of the target, such as a channel name */ targetDisplay?: string | null; /** * Kind of target the action notifies, such as specific, user or team */ targetType?: null; } | { [key: string]: never; } | { /** * ID of the target, such as a channel, user or team ID */ targetIdentifier: string; /** * Display name of the target, such as a channel name */ targetDisplay?: string | null; /** * Kind of target the action notifies, such as specific, user or team */ targetType: 'sentry_app'; } | { /** * ID of the target, such as a channel, user or team ID */ targetIdentifier?: string; /** * Display name of the target, such as a channel name */ targetDisplay?: string; /** * Kind of target the action notifies, such as specific, user or team */ targetType: 'specific'; } | { /** * ID of the target, such as a channel, user or team ID */ targetIdentifier?: string; /** * Display name of the target, such as a channel name */ targetDisplay?: null; /** * Kind of target the action notifies, such as specific, user or team */ targetType?: null; }; /** * Status of the action */ status?: 'active' | 'disabled' | 'pending_deletion' | 'deletion_in_progress'; }>; } | null; /** * Configuration of the monitor, which depends on its type */ config: { [key: string]: unknown; } | { /** * Fingerprinting rules of the project */ 'sentry:fingerprintingRules'?: string; /** * Hours of inactivity after which the project's issues resolve. 0 to never */ 'sentry:resolveAge'?: number; } | { /** * ID of the organization */ organizationId?: number; } | { /** * For percent detection, how far back the compared window is, in seconds */ comparisonDelta?: 300 | 900 | 3600 | 86400 | 604800 | 2592000; /** * How the monitor detects issues: static thresholds, percent change or dynamic anomalies */ detectionType: 'static' | 'percent' | 'dynamic'; } | { /** * The type of threshold to apply */ thresholdType: 'absolute_diff' | 'absolute' | 'relative_diff'; /** * The measurement to track */ measurement: 'install_size' | 'download_size'; /** * Search query to filter which artifacts are monitored */ query?: string; } | { /** * How the monitor was created: 1 manually, 2 auto-detected and onboarding, 3 auto-detected and active */ mode: 1 | 2 | 3; /** * Environment of the monitor. Null for none */ environment: string | null; /** * Number of consecutive successful checks required to mark monitor as recovered */ recoveryThreshold: number; /** * Number of consecutive failed checks required to mark monitor as down */ downtimeThreshold: number; }; /** * Whether the monitor is enabled */ enabled: boolean; }; }; export type CreateOrganizationProjectDetectorResponse = CreateOrganizationProjectDetectorResponses[keyof CreateOrganizationProjectDetectorResponses]; export type ListOrganizationRelayUsageData = { body?: never; path: { /** * The ID or slug of the organization the resource belongs to. */ organization_id_or_slug: string; }; query?: never; url: '/organizations/{organization_id_or_slug}/relay_usage/'; }; export type ListOrganizationRelayUsageErrors = { /** * Not Found */ 404: unknown; }; export type ListOrganizationRelayUsageResponses = { 200: Array<{ /** * ID of the Relay */ relayId: string; /** * Version of the Relay */ version: string; /** * Public key of the Relay */ publicKey: string | null; /** * When the Relay first connected (ISO 8601) */ firstSeen: string; /** * When the Relay last connected (ISO 8601) */ lastSeen: string; }>; }; export type ListOrganizationRelayUsageResponse = ListOrganizationRelayUsageResponses[keyof ListOrganizationRelayUsageResponses]; export type ListOrganizationReleaseThresholdStatusesData = { body?: never; path: { /** * The ID or slug of the organization the resource belongs to. */ organization_id_or_slug: string; }; query: { /** * The start of the time series range as an explicit datetime, either in UTC ISO8601 or epoch seconds. Use along with `end`. */ start: string; /** * The inclusive end of the time series range as an explicit datetime, either in UTC ISO8601 or epoch seconds. Use along with `start`. */ end: string; /** * A list of environment names to filter your results by. */ environment?: Array; /** * A list of project slugs to filter your results by. */ projectSlug?: Array; /** * A list of release versions to filter your results by. */ release?: Array; /** * A list of project IDs or slugs to filter your results by. */ project?: Array; }; url: '/organizations/{organization_id_or_slug}/release-threshold-statuses/'; }; export type ListOrganizationReleaseThresholdStatusesErrors = { /** * Bad Request */ 400: unknown; }; export type ListOrganizationReleaseThresholdStatusesResponses = { 200: { [key: string]: Array<{ /** * ID of the threshold */ id?: string; /** * When the threshold was created (ISO 8601) */ date_added?: string; /** * Environment the threshold applies to. Null for all environments */ environment?: { /** * ID of the environment */ id: string; /** * Name of the environment */ name: string; } | null; /** * Project the threshold applies to */ project?: { /** * Counts of non-transaction events per interval over the requested stats period, as [timestamp, count] pairs. Only included when a stats period is requested */ stats?: Array> | { [key: string]: number; }; /** * Counts of transactions per interval over the requested stats period, as [timestamp, count] pairs. Only included when transaction stats are requested */ transactionStats?: Array>; /** * Crash-free session rates for the current and previous stats period. Only included when session stats are requested */ sessionStats?: { /** * Crash-free rate in the current period, as a percentage. Null when there's no session data */ currentCrashFreeRate: number | null; /** * Crash-free rate in the previous period, as a percentage. Null when there's no session data */ previousCrashFreeRate: number | null; /** * Whether the project has release health (session) data */ hasHealthData: boolean; }; /** * ID of the project */ id: string; /** * Slug of the project */ slug: string; /** * Name of the project */ name: string; /** * Platform of the project */ platform: string | null; /** * When the project was created (ISO 8601) */ dateCreated: string; /** * Whether the requesting user bookmarked the project */ isBookmarked: boolean; /** * Whether the requesting user is a member of a team with access to the project */ isMember: boolean; /** * Features enabled for the project */ features: Array; /** * When the project received its first event (ISO 8601) */ firstEvent: string | null; /** * Whether the project has sent transactions */ firstTransactionEvent: boolean; /** * Scopes the requesting user has on the project through team membership and organization role */ access: Array; /** * Whether the requesting user has access to the project */ hasAccess: boolean; /** * Whether the project has sent user feedback */ hasFeedbacks: boolean; /** * Whether the project has sent feature flags */ hasFlags: boolean; /** * Whether the project has sent an event with a minified stack trace */ hasMinifiedStackTrace: boolean; /** * Whether the project has cron monitors */ hasMonitors: boolean; /** * Whether the project has sent user feedback from the user feedback widget */ hasNewFeedbacks: boolean; /** * Whether the project has sent profiles */ hasProfiles: boolean; /** * Whether the project has sent replays */ hasReplays: boolean; /** * Whether the project has sent sessions */ hasSessions: boolean; /** * Whether the project has sent HTTP request spans used by Insights */ hasInsightsHttp: boolean; /** * Whether the project has sent database spans used by Insights */ hasInsightsDb: boolean; /** * Whether the project has sent asset spans used by Insights */ hasInsightsAssets: boolean; /** * Whether the project has sent app start spans used by Insights */ hasInsightsAppStart: boolean; /** * Whether the project has sent screen load spans used by Insights */ hasInsightsScreenLoad: boolean; /** * Whether the project has sent web vitals spans used by Insights */ hasInsightsVitals: boolean; /** * Whether the project has sent cache spans used by Insights */ hasInsightsCaches: boolean; /** * Whether the project has sent queue spans used by Insights */ hasInsightsQueues: boolean; /** * Whether the project has sent AI agent spans used by Insights */ hasInsightsAgentMonitoring: boolean; /** * Whether the project has sent MCP spans used by Insights */ hasInsightsMCP: boolean; /** * Whether the project has sent logs. Always true outside sentry.io */ hasLogs: boolean; /** * Whether the project has sent trace metrics. Always true outside sentry.io */ hasTraceMetrics: boolean; /** * Whether this is the Sentry install's own internal project */ isInternal: boolean; /** * Whether the project is public */ isPublic: boolean; /** * Avatar of the project. Always a letter avatar */ avatar: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Hex color code for the project, derived from its slug unless set explicitly */ color: string; /** * Status of the project: active, deleted, or unknown */ status: string; }; /** * Version of the release the threshold was checked against */ release?: string; /** * Metric the threshold checks: total_error_count, new_issue_count, unhandled_issue_count, regressed_issue_count, failure_rate, crash_free_session_rate or crash_free_user_rate */ threshold_type?: 'total_error_count' | 'new_issue_count' | 'unhandled_issue_count' | 'regressed_issue_count' | 'failure_rate' | 'crash_free_session_rate' | 'crash_free_user_rate'; /** * Whether the threshold fails when the metric goes over or under value */ trigger_type?: 'over' | 'under'; /** * Value the metric is compared with */ value?: number; /** * Time after the release or deploy during which the threshold is checked, in seconds */ window_in_seconds?: number; /** * End of the window the threshold was checked in (ISO 8601) */ end: string; /** * Whether the metric stayed within the threshold */ is_healthy: boolean; /** * Key that groups thresholds of the same project and release */ key: string; /** * Slug of the project */ project_slug: string; /** * ID of the project */ project_id: number; /** * Start of the window the threshold was checked in: the latest deploy, or the release date (ISO 8601) */ start: string; /** * Value of the metric in the window. Null when it couldn't be computed */ metric_value: number | number | null; }>; }; }; export type ListOrganizationReleaseThresholdStatusesResponse = ListOrganizationReleaseThresholdStatusesResponses[keyof ListOrganizationReleaseThresholdStatusesResponses]; export type ListOrganizationReleasesData = { body?: never; path: { /** * The ID or slug of the organization the resource belongs to. */ organization_id_or_slug: string; }; query?: { /** * The IDs or slugs of projects to filter by. Project slugs are unique within each organization. Omit this parameter to include all accessible projects. `-1` is also accepted to include all accessible projects. * For example, the following are valid parameters: * - `/?project=1234&project=56789` * - `/?project=android&project=javascript-react` * - `/?project=-1` * */ project?: Array; /** * The name of environments to filter by. */ environment?: Array; /** * Case-insensitive substring match against the release version. */ query?: string; /** * Limit the number of rows to return in the result. Default and maximum allowed is 100. */ per_page?: number; /** * A pointer to the last object fetched and its sort order; used to retrieve the next or previous results. */ cursor?: string; }; url: '/organizations/{organization_id_or_slug}/releases/'; }; export type ListOrganizationReleasesErrors = { /** * Unauthorized */ 401: unknown; /** * Forbidden */ 403: unknown; /** * Not Found */ 404: unknown; }; export type ListOrganizationReleasesResponses = { 200: Array<{ /** * Version control reference, such as a commit SHA or tag */ ref?: string | null; /** * Release URL */ url?: string | null; /** * When the release went live (ISO 8601) */ dateReleased?: string | null; /** * When the release was created (ISO 8601) */ dateCreated?: string | null; /** * When the release started (ISO 8601) */ dateStarted?: string | null; /** * Release owner */ owner?: { /** * SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access */ identities?: Array<{ /** * SSO identity ID */ id: string; /** * User's identifier at the auth provider */ name: string; /** * Organization the auth provider belongs to */ organization: { /** * Organization slug */ slug: string; /** * Organization name */ name: string; }; /** * Auth provider of the identity */ provider: { /** * Auth provider key, such as google or saml2 */ id: string; /** * Display name of the auth provider */ name: string; }; /** * When the identity was last verified by signing in through the auth provider */ dateVerified: string; /** * When the identity was last synced from the auth provider */ dateSynced: string; }>; /** * User avatar */ avatar?: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Two-factor authenticators of the user, without backup methods such as recovery codes */ authenticators?: Array<{ /** * Authenticator ID */ id: string; /** * Authenticator type, such as totp, sms, u2f or recovery */ type: string; /** * Display name of the authenticator type */ name: string; /** * When the authenticator was added */ dateCreated: string; /** * When the authenticator was last used, or null */ dateUsed: string | null; }>; /** * Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization */ canReset2fa?: boolean; /** * User ID */ id: string; /** * Display name: the user's name, or their email or username if no name is set */ name: string; /** * Username */ username: string; /** * Primary email address */ email: string; /** * Gravatar URL for the primary email address */ avatarUrl: string; /** * Whether the account is active */ isActive: boolean; /** * Whether the account is suspended. Suspended users can't sign in */ isSuspended: boolean; /** * Whether the user has a password set */ hasPasswordAuth: boolean; /** * Whether the account is managed, which stops the user from changing their username, password and similar details */ isManaged: boolean; /** * When the account was created */ dateJoined: string; /** * When the user last signed in, or null */ lastLogin: string | null; /** * Whether the user has two-factor authentication enabled */ has2fa: boolean; /** * When the user was last active, or null */ lastActive: string | null; /** * Whether the user is a superuser */ isSuperuser: boolean; /** * Whether the user has staff status */ isStaff: boolean; /** * Deprecated. Always an empty object */ experiments: { [key: string]: string; }; /** * Email addresses of the user. Only included for the requesting user or superusers; empty otherwise */ emails: Array<{ /** * Email ID */ id: string; /** * Email address */ email: string; /** * Whether the email address is verified */ is_verified: boolean; }>; } | null; /** * Most recent commit in the release */ lastCommit?: { /** * Commit SHA */ id: string; /** * Commit message */ message: string | null; /** * When the commit was made (ISO 8601) */ dateCreated: string; /** * Pull request the commit belongs to */ pullRequest: { /** * Number or key of the pull request in the provider */ id: string; /** * Title of the pull request */ title: string | null; /** * Description of the pull request */ message: string | null; /** * When Sentry recorded the pull request (ISO 8601) */ dateCreated: string; /** * When the pull request was merged (ISO 8601). Null when it isn't merged */ mergedAt: string | null; /** * State of the pull request: merged, open, closed, draft or unknown. Null when not known */ status: 'merged' | 'open' | 'closed' | 'draft' | 'unknown' | null; /** * Repository of the pull request */ repository: { /** * URL of the repository */ url?: string | null; /** * Provider of the repository, with its id and name */ provider?: { [key: string]: string; }; /** * Status of the repository */ status?: 'active' | 'disabled' | 'pending_deletion' | 'deletion_in_progress'; /** * ID of the repository's integration. Null for repositories added without an integration */ integrationId?: string | null; /** * Identifier of the repository in the provider, such as owner/name */ externalSlug?: string | null; /** * ID of the repository in the provider */ externalId?: string | null; /** * Settings of the repository. Only set when expand includes settings. Null when it has none */ settings?: { /** * Whether AI code review is on for the repository */ enabledCodeReview: boolean; /** * Pull request events that start a code review: on_new_commit or on_ready_for_review */ codeReviewTriggers: Array; } | null; /** * ID of the repository */ id: string; /** * Name of the repository, such as owner/name */ name: string; /** * When the repository was added to Sentry (ISO 8601) */ dateCreated: string; }; /** * Author of the pull request, or an empty object when it has none */ author: { /** * SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access */ identities?: Array<{ /** * SSO identity ID */ id: string; /** * User's identifier at the auth provider */ name: string; /** * Organization the auth provider belongs to */ organization: { /** * Organization slug */ slug: string; /** * Organization name */ name: string; }; /** * Auth provider of the identity */ provider: { /** * Auth provider key, such as google or saml2 */ id: string; /** * Display name of the auth provider */ name: string; }; /** * When the identity was last verified by signing in through the auth provider */ dateVerified: string; /** * When the identity was last synced from the auth provider */ dateSynced: string; }>; /** * User avatar */ avatar?: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Two-factor authenticators of the user, without backup methods such as recovery codes */ authenticators?: Array<{ /** * Authenticator ID */ id: string; /** * Authenticator type, such as totp, sms, u2f or recovery */ type: string; /** * Display name of the authenticator type */ name: string; /** * When the authenticator was added */ dateCreated: string; /** * When the authenticator was last used, or null */ dateUsed: string | null; }>; /** * Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization */ canReset2fa?: boolean; /** * User ID */ id: string; /** * Display name: the user's name, or their email or username if no name is set */ name: string; /** * Username */ username: string; /** * Primary email address */ email: string; /** * Gravatar URL for the primary email address */ avatarUrl: string; /** * Whether the account is active */ isActive: boolean; /** * Whether the account is suspended. Suspended users can't sign in */ isSuspended: boolean; /** * Whether the user has a password set */ hasPasswordAuth: boolean; /** * Whether the account is managed, which stops the user from changing their username, password and similar details */ isManaged: boolean; /** * When the account was created */ dateJoined: string; /** * When the user last signed in, or null */ lastLogin: string | null; /** * Whether the user has two-factor authentication enabled */ has2fa: boolean; /** * When the user was last active, or null */ lastActive: string | null; /** * Whether the user is a superuser */ isSuperuser: boolean; /** * Whether the user has staff status */ isStaff: boolean; /** * Deprecated. Always an empty object */ experiments: { [key: string]: string; }; /** * Email addresses of the user. Only included for the requesting user or superusers; empty otherwise */ emails: Array<{ /** * Email ID */ id: string; /** * Email address */ email: string; /** * Whether the email address is verified */ is_verified: boolean; }>; } | { /** * Commit author name */ name: string | null; /** * Commit author email */ email: string; } | { [key: string]: unknown; }; /** * URL of the pull request in the provider, or null when the provider can't build one */ externalUrl: string | null; } | null; /** * How the commit was found as a suspect commit: via commit in release or via SCM integration. Empty for other commits */ suspectCommitType: string; /** * Repository the commit belongs to */ repository?: { /** * URL of the repository */ url?: string | null; /** * Provider of the repository, with its id and name */ provider?: { [key: string]: string; }; /** * Status of the repository */ status?: 'active' | 'disabled' | 'pending_deletion' | 'deletion_in_progress'; /** * ID of the repository's integration. Null for repositories added without an integration */ integrationId?: string | null; /** * Identifier of the repository in the provider, such as owner/name */ externalSlug?: string | null; /** * ID of the repository in the provider */ externalId?: string | null; /** * Settings of the repository. Only set when expand includes settings. Null when it has none */ settings?: { /** * Whether AI code review is on for the repository */ enabledCodeReview: boolean; /** * Pull request events that start a code review: on_new_commit or on_ready_for_review */ codeReviewTriggers: Array; } | null; /** * ID of the repository */ id: string; /** * Name of the repository, such as owner/name */ name: string; /** * When the repository was added to Sentry (ISO 8601) */ dateCreated: string; }; /** * Author of the commit: a Sentry user when the email matches one, otherwise the name and email from the commit */ author?: { /** * SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access */ identities?: Array<{ /** * SSO identity ID */ id: string; /** * User's identifier at the auth provider */ name: string; /** * Organization the auth provider belongs to */ organization: { /** * Organization slug */ slug: string; /** * Organization name */ name: string; }; /** * Auth provider of the identity */ provider: { /** * Auth provider key, such as google or saml2 */ id: string; /** * Display name of the auth provider */ name: string; }; /** * When the identity was last verified by signing in through the auth provider */ dateVerified: string; /** * When the identity was last synced from the auth provider */ dateSynced: string; }>; /** * User avatar */ avatar?: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Two-factor authenticators of the user, without backup methods such as recovery codes */ authenticators?: Array<{ /** * Authenticator ID */ id: string; /** * Authenticator type, such as totp, sms, u2f or recovery */ type: string; /** * Display name of the authenticator type */ name: string; /** * When the authenticator was added */ dateCreated: string; /** * When the authenticator was last used, or null */ dateUsed: string | null; }>; /** * Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization */ canReset2fa?: boolean; /** * User ID */ id: string; /** * Display name: the user's name, or their email or username if no name is set */ name: string; /** * Username */ username: string; /** * Primary email address */ email: string; /** * Gravatar URL for the primary email address */ avatarUrl: string; /** * Whether the account is active */ isActive: boolean; /** * Whether the account is suspended. Suspended users can't sign in */ isSuspended: boolean; /** * Whether the user has a password set */ hasPasswordAuth: boolean; /** * Whether the account is managed, which stops the user from changing their username, password and similar details */ isManaged: boolean; /** * When the account was created */ dateJoined: string; /** * When the user last signed in, or null */ lastLogin: string | null; /** * Whether the user has two-factor authentication enabled */ has2fa: boolean; /** * When the user was last active, or null */ lastActive: string | null; /** * Whether the user is a superuser */ isSuperuser: boolean; /** * Whether the user has staff status */ isStaff: boolean; /** * Deprecated. Always an empty object */ experiments: { [key: string]: string; }; /** * Email addresses of the user. Only included for the requesting user or superusers; empty otherwise */ emails: Array<{ /** * Email ID */ id: string; /** * Email address */ email: string; /** * Whether the email address is verified */ is_verified: boolean; }>; } | { /** * Commit author name */ name: string | null; /** * Commit author email */ email: string; } | { [key: string]: unknown; }; } | null; /** * Most recent deploy of the release */ lastDeploy?: { /** * When the deploy started (ISO 8601) */ dateStarted?: string | null; /** * URL of the deploy */ url?: string | null; /** * ID of the deploy */ id: string; /** * Environment the release was deployed to */ environment: string; /** * When the deploy finished (ISO 8601) */ dateFinished: string; /** * Name of the deploy */ name: string | null; } | null; /** * When the release received its first event (ISO 8601) */ firstEvent?: string | null; /** * When the release received its most recent event (ISO 8601) */ lastEvent?: string | null; /** * Session bounds and neighboring release versions in the current project, when a project is requested */ currentProjectMeta?: { /** * Start of the release's sessions in the project (ISO 8601) */ sessionsLowerBound?: string | null; /** * End of the release's sessions in the project (ISO 8601) */ sessionsUpperBound?: string | null; /** * Version of the next release in the project */ nextReleaseVersion?: string | null; /** * Version of the previous release in the project */ prevReleaseVersion?: string | null; /** * Version of the first release in the project */ firstReleaseVersion?: string | null; /** * Version of the latest release in the project */ lastReleaseVersion?: string | null; } | null; /** * User agent of the client that created the release */ userAgent?: string | null; /** * Adoption stage of the release in each project, keyed by project slug */ adoptionStages?: { [key: string]: { /** * Adoption stage of the release */ stage: 'adopted' | 'low_adoption' | 'replaced'; /** * When the release was adopted (ISO 8601) */ adopted: string | null; /** * When the release stopped being adopted (ISO 8601) */ unadopted: string | null; }; } | null; /** * Release ID */ id: number; /** * Version of the release */ version: string; /** * Number of new issues first seen in the release */ newGroups: number; /** * Release status */ status: 'open' | 'archived'; /** * Shortened release version */ shortVersion: string; /** * Parsed version information */ versionInfo: { /** * Human-readable version, such as 1.0.0 (123) */ description?: string; /** * Package name parsed from the release version, such as com.example.app */ package: string | null; /** * Parsed version: the raw string, plus major, minor, patch, pre, buildCode and components when it's a semantic version */ version: { /** * Major version */ major?: number; /** * Minor version */ minor?: number; /** * Patch version */ patch?: number; /** * Pre-release identifier, such as rc1 */ pre?: string | null; /** * Build code, such as 123 */ buildCode?: string | null; /** * Number of version components given */ components?: number; /** * Version string the release was created with */ raw: string; }; /** * Build hash parsed from the release version */ buildHash: string | null; } | null; /** * Extra data stored on the release */ data: { [key: string]: unknown; }; /** * Number of commits in the release */ commitCount: number; /** * Number of deploys of the release */ deployCount: number; /** * Authors of the release's commits */ authors: Array<{ /** * SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access */ identities?: Array<{ /** * SSO identity ID */ id: string; /** * User's identifier at the auth provider */ name: string; /** * Organization the auth provider belongs to */ organization: { /** * Organization slug */ slug: string; /** * Organization name */ name: string; }; /** * Auth provider of the identity */ provider: { /** * Auth provider key, such as google or saml2 */ id: string; /** * Display name of the auth provider */ name: string; }; /** * When the identity was last verified by signing in through the auth provider */ dateVerified: string; /** * When the identity was last synced from the auth provider */ dateSynced: string; }>; /** * User avatar */ avatar?: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Two-factor authenticators of the user, without backup methods such as recovery codes */ authenticators?: Array<{ /** * Authenticator ID */ id: string; /** * Authenticator type, such as totp, sms, u2f or recovery */ type: string; /** * Display name of the authenticator type */ name: string; /** * When the authenticator was added */ dateCreated: string; /** * When the authenticator was last used, or null */ dateUsed: string | null; }>; /** * Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization */ canReset2fa?: boolean; /** * User ID */ id: string; /** * Display name: the user's name, or their email or username if no name is set */ name: string; /** * Username */ username: string; /** * Primary email address */ email: string; /** * Gravatar URL for the primary email address */ avatarUrl: string; /** * Whether the account is active */ isActive: boolean; /** * Whether the account is suspended. Suspended users can't sign in */ isSuspended: boolean; /** * Whether the user has a password set */ hasPasswordAuth: boolean; /** * Whether the account is managed, which stops the user from changing their username, password and similar details */ isManaged: boolean; /** * When the account was created */ dateJoined: string; /** * When the user last signed in, or null */ lastLogin: string | null; /** * Whether the user has two-factor authentication enabled */ has2fa: boolean; /** * When the user was last active, or null */ lastActive: string | null; /** * Whether the user is a superuser */ isSuperuser: boolean; /** * Whether the user has staff status */ isStaff: boolean; /** * Deprecated. Always an empty object */ experiments: { [key: string]: string; }; /** * Email addresses of the user. Only included for the requesting user or superusers; empty otherwise */ emails: Array<{ /** * Email ID */ id: string; /** * Email address */ email: string; /** * Whether the email address is verified */ is_verified: boolean; }>; } | { /** * Commit author name */ name: string | null; /** * Commit author email */ email: string; }>; /** * Projects in the release */ projects: Array<{ /** * Release health data for the project. Only included when health data is requested */ healthData?: { /** * Median session duration in seconds */ durationP50?: number | null; /** * 90th percentile session duration in seconds */ durationP90?: number | null; /** * Percentage of users who didn't experience a crash */ crashFreeUsers?: number | null; /** * Percentage of sessions that didn't crash */ crashFreeSessions?: number | null; /** * Total number of users in the release */ totalUsers?: number | null; /** * Number of users in the release over the last 24 hours */ totalUsers24h?: number | null; /** * Number of users in the project over the last 24 hours */ totalProjectUsers24h?: number | null; /** * Total number of sessions in the release */ totalSessions?: number | null; /** * Number of sessions in the release over the last 24 hours */ totalSessions24h?: number | null; /** * Number of sessions in the project over the last 24 hours */ totalProjectSessions24h?: number | null; /** * Percentage of the project's users over the last 24 hours that were on the release */ adoption?: number | null; /** * Percentage of the project's sessions over the last 24 hours that were on the release */ sessionsAdoption?: number | null; /** * Number of crashed sessions */ sessionsCrashed: number; /** * Number of sessions with errors */ sessionsErrored: number; /** * Whether the release has session data */ hasHealthData: boolean; /** * Session or user counts over time, keyed by stats period */ stats: { [key: string]: Array>; }; } | null; /** * When the release was released in the project (ISO 8601) */ dateReleased?: string | null; /** * When the release was created (ISO 8601) */ dateCreated?: string | null; /** * When work on the release started (ISO 8601) */ dateStarted?: string | null; /** * ID of the project */ id: number; /** * Slug of the project */ slug: string; /** * Name of the project */ name: string; /** * Platform of the project */ platform: string | null; /** * Platforms of the project */ platforms: Array | null; /** * Whether the release has session data in the project */ hasHealthData: boolean; /** * Number of new issues first seen in the release in the project */ newGroups: number; }>; }>; }; export type ListOrganizationReleasesResponse2 = ListOrganizationReleasesResponses[keyof ListOrganizationReleasesResponses]; export type CreateOrganizationReleaseData = { body: { /** * A version identifier for this release. Can be a version number, a commit hash, and so on. */ version: string; /** * A list of project slugs that are involved in this release. */ projects: Array; /** * An optional commit reference. This is useful if a tagged version has been provided. */ ref?: string | null; /** * A URL that points to the release. For instance, this can be the path to an online interface to the source code, such as a GitHub URL. */ url?: string | null; /** * An optional date that indicates when the release went live. If not provided the current time is used. */ dateReleased?: string | null; /** * An optional list of commit data to be associated. Very long lists are truncated to the most recent commits. */ commits?: Array<{ id: string; repository?: string | null; message?: string | null; author_name?: string | null; author_email?: string | null; timestamp?: string | null; patch_set?: Array<{ path: string; type: string; }> | null; }>; /** * The status of the release. Can be `open` or `archived`. */ status?: string; /** * The username of the user to set as the release owner. */ owner?: string; /** * (Deprecated) Use `refs` instead. An optional list of head commits to associate with the release, one per repository. */ headCommits?: Array<{ currentId: string; repository: string; previousId?: string | null; }>; /** * An optional list of commit references, one per repository, used to associate commits with the release. */ refs?: Array<{ commit: string; repository: string; previousCommit?: string | null; }>; }; path: { /** * The ID or slug of the organization the resource belongs to. */ organization_id_or_slug: string; }; query?: never; url: '/organizations/{organization_id_or_slug}/releases/'; }; export type CreateOrganizationReleaseErrors = { /** * Bad Request */ 400: unknown; /** * Unauthorized */ 401: unknown; /** * Forbidden */ 403: unknown; }; export type CreateOrganizationReleaseResponses = { 201: { /** * Version control reference, such as a commit SHA or tag */ ref?: string | null; /** * Release URL */ url?: string | null; /** * When the release went live (ISO 8601) */ dateReleased?: string | null; /** * When the release was created (ISO 8601) */ dateCreated?: string | null; /** * When the release started (ISO 8601) */ dateStarted?: string | null; /** * Release owner */ owner?: { /** * SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access */ identities?: Array<{ /** * SSO identity ID */ id: string; /** * User's identifier at the auth provider */ name: string; /** * Organization the auth provider belongs to */ organization: { /** * Organization slug */ slug: string; /** * Organization name */ name: string; }; /** * Auth provider of the identity */ provider: { /** * Auth provider key, such as google or saml2 */ id: string; /** * Display name of the auth provider */ name: string; }; /** * When the identity was last verified by signing in through the auth provider */ dateVerified: string; /** * When the identity was last synced from the auth provider */ dateSynced: string; }>; /** * User avatar */ avatar?: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Two-factor authenticators of the user, without backup methods such as recovery codes */ authenticators?: Array<{ /** * Authenticator ID */ id: string; /** * Authenticator type, such as totp, sms, u2f or recovery */ type: string; /** * Display name of the authenticator type */ name: string; /** * When the authenticator was added */ dateCreated: string; /** * When the authenticator was last used, or null */ dateUsed: string | null; }>; /** * Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization */ canReset2fa?: boolean; /** * User ID */ id: string; /** * Display name: the user's name, or their email or username if no name is set */ name: string; /** * Username */ username: string; /** * Primary email address */ email: string; /** * Gravatar URL for the primary email address */ avatarUrl: string; /** * Whether the account is active */ isActive: boolean; /** * Whether the account is suspended. Suspended users can't sign in */ isSuspended: boolean; /** * Whether the user has a password set */ hasPasswordAuth: boolean; /** * Whether the account is managed, which stops the user from changing their username, password and similar details */ isManaged: boolean; /** * When the account was created */ dateJoined: string; /** * When the user last signed in, or null */ lastLogin: string | null; /** * Whether the user has two-factor authentication enabled */ has2fa: boolean; /** * When the user was last active, or null */ lastActive: string | null; /** * Whether the user is a superuser */ isSuperuser: boolean; /** * Whether the user has staff status */ isStaff: boolean; /** * Deprecated. Always an empty object */ experiments: { [key: string]: string; }; /** * Email addresses of the user. Only included for the requesting user or superusers; empty otherwise */ emails: Array<{ /** * Email ID */ id: string; /** * Email address */ email: string; /** * Whether the email address is verified */ is_verified: boolean; }>; } | null; /** * Most recent commit in the release */ lastCommit?: { /** * Commit SHA */ id: string; /** * Commit message */ message: string | null; /** * When the commit was made (ISO 8601) */ dateCreated: string; /** * Pull request the commit belongs to */ pullRequest: { /** * Number or key of the pull request in the provider */ id: string; /** * Title of the pull request */ title: string | null; /** * Description of the pull request */ message: string | null; /** * When Sentry recorded the pull request (ISO 8601) */ dateCreated: string; /** * When the pull request was merged (ISO 8601). Null when it isn't merged */ mergedAt: string | null; /** * State of the pull request: merged, open, closed, draft or unknown. Null when not known */ status: 'merged' | 'open' | 'closed' | 'draft' | 'unknown' | null; /** * Repository of the pull request */ repository: { /** * URL of the repository */ url?: string | null; /** * Provider of the repository, with its id and name */ provider?: { [key: string]: string; }; /** * Status of the repository */ status?: 'active' | 'disabled' | 'pending_deletion' | 'deletion_in_progress'; /** * ID of the repository's integration. Null for repositories added without an integration */ integrationId?: string | null; /** * Identifier of the repository in the provider, such as owner/name */ externalSlug?: string | null; /** * ID of the repository in the provider */ externalId?: string | null; /** * Settings of the repository. Only set when expand includes settings. Null when it has none */ settings?: { /** * Whether AI code review is on for the repository */ enabledCodeReview: boolean; /** * Pull request events that start a code review: on_new_commit or on_ready_for_review */ codeReviewTriggers: Array; } | null; /** * ID of the repository */ id: string; /** * Name of the repository, such as owner/name */ name: string; /** * When the repository was added to Sentry (ISO 8601) */ dateCreated: string; }; /** * Author of the pull request, or an empty object when it has none */ author: { /** * SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access */ identities?: Array<{ /** * SSO identity ID */ id: string; /** * User's identifier at the auth provider */ name: string; /** * Organization the auth provider belongs to */ organization: { /** * Organization slug */ slug: string; /** * Organization name */ name: string; }; /** * Auth provider of the identity */ provider: { /** * Auth provider key, such as google or saml2 */ id: string; /** * Display name of the auth provider */ name: string; }; /** * When the identity was last verified by signing in through the auth provider */ dateVerified: string; /** * When the identity was last synced from the auth provider */ dateSynced: string; }>; /** * User avatar */ avatar?: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Two-factor authenticators of the user, without backup methods such as recovery codes */ authenticators?: Array<{ /** * Authenticator ID */ id: string; /** * Authenticator type, such as totp, sms, u2f or recovery */ type: string; /** * Display name of the authenticator type */ name: string; /** * When the authenticator was added */ dateCreated: string; /** * When the authenticator was last used, or null */ dateUsed: string | null; }>; /** * Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization */ canReset2fa?: boolean; /** * User ID */ id: string; /** * Display name: the user's name, or their email or username if no name is set */ name: string; /** * Username */ username: string; /** * Primary email address */ email: string; /** * Gravatar URL for the primary email address */ avatarUrl: string; /** * Whether the account is active */ isActive: boolean; /** * Whether the account is suspended. Suspended users can't sign in */ isSuspended: boolean; /** * Whether the user has a password set */ hasPasswordAuth: boolean; /** * Whether the account is managed, which stops the user from changing their username, password and similar details */ isManaged: boolean; /** * When the account was created */ dateJoined: string; /** * When the user last signed in, or null */ lastLogin: string | null; /** * Whether the user has two-factor authentication enabled */ has2fa: boolean; /** * When the user was last active, or null */ lastActive: string | null; /** * Whether the user is a superuser */ isSuperuser: boolean; /** * Whether the user has staff status */ isStaff: boolean; /** * Deprecated. Always an empty object */ experiments: { [key: string]: string; }; /** * Email addresses of the user. Only included for the requesting user or superusers; empty otherwise */ emails: Array<{ /** * Email ID */ id: string; /** * Email address */ email: string; /** * Whether the email address is verified */ is_verified: boolean; }>; } | { /** * Commit author name */ name: string | null; /** * Commit author email */ email: string; } | { [key: string]: unknown; }; /** * URL of the pull request in the provider, or null when the provider can't build one */ externalUrl: string | null; } | null; /** * How the commit was found as a suspect commit: via commit in release or via SCM integration. Empty for other commits */ suspectCommitType: string; /** * Repository the commit belongs to */ repository?: { /** * URL of the repository */ url?: string | null; /** * Provider of the repository, with its id and name */ provider?: { [key: string]: string; }; /** * Status of the repository */ status?: 'active' | 'disabled' | 'pending_deletion' | 'deletion_in_progress'; /** * ID of the repository's integration. Null for repositories added without an integration */ integrationId?: string | null; /** * Identifier of the repository in the provider, such as owner/name */ externalSlug?: string | null; /** * ID of the repository in the provider */ externalId?: string | null; /** * Settings of the repository. Only set when expand includes settings. Null when it has none */ settings?: { /** * Whether AI code review is on for the repository */ enabledCodeReview: boolean; /** * Pull request events that start a code review: on_new_commit or on_ready_for_review */ codeReviewTriggers: Array; } | null; /** * ID of the repository */ id: string; /** * Name of the repository, such as owner/name */ name: string; /** * When the repository was added to Sentry (ISO 8601) */ dateCreated: string; }; /** * Author of the commit: a Sentry user when the email matches one, otherwise the name and email from the commit */ author?: { /** * SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access */ identities?: Array<{ /** * SSO identity ID */ id: string; /** * User's identifier at the auth provider */ name: string; /** * Organization the auth provider belongs to */ organization: { /** * Organization slug */ slug: string; /** * Organization name */ name: string; }; /** * Auth provider of the identity */ provider: { /** * Auth provider key, such as google or saml2 */ id: string; /** * Display name of the auth provider */ name: string; }; /** * When the identity was last verified by signing in through the auth provider */ dateVerified: string; /** * When the identity was last synced from the auth provider */ dateSynced: string; }>; /** * User avatar */ avatar?: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Two-factor authenticators of the user, without backup methods such as recovery codes */ authenticators?: Array<{ /** * Authenticator ID */ id: string; /** * Authenticator type, such as totp, sms, u2f or recovery */ type: string; /** * Display name of the authenticator type */ name: string; /** * When the authenticator was added */ dateCreated: string; /** * When the authenticator was last used, or null */ dateUsed: string | null; }>; /** * Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization */ canReset2fa?: boolean; /** * User ID */ id: string; /** * Display name: the user's name, or their email or username if no name is set */ name: string; /** * Username */ username: string; /** * Primary email address */ email: string; /** * Gravatar URL for the primary email address */ avatarUrl: string; /** * Whether the account is active */ isActive: boolean; /** * Whether the account is suspended. Suspended users can't sign in */ isSuspended: boolean; /** * Whether the user has a password set */ hasPasswordAuth: boolean; /** * Whether the account is managed, which stops the user from changing their username, password and similar details */ isManaged: boolean; /** * When the account was created */ dateJoined: string; /** * When the user last signed in, or null */ lastLogin: string | null; /** * Whether the user has two-factor authentication enabled */ has2fa: boolean; /** * When the user was last active, or null */ lastActive: string | null; /** * Whether the user is a superuser */ isSuperuser: boolean; /** * Whether the user has staff status */ isStaff: boolean; /** * Deprecated. Always an empty object */ experiments: { [key: string]: string; }; /** * Email addresses of the user. Only included for the requesting user or superusers; empty otherwise */ emails: Array<{ /** * Email ID */ id: string; /** * Email address */ email: string; /** * Whether the email address is verified */ is_verified: boolean; }>; } | { /** * Commit author name */ name: string | null; /** * Commit author email */ email: string; } | { [key: string]: unknown; }; } | null; /** * Most recent deploy of the release */ lastDeploy?: { /** * When the deploy started (ISO 8601) */ dateStarted?: string | null; /** * URL of the deploy */ url?: string | null; /** * ID of the deploy */ id: string; /** * Environment the release was deployed to */ environment: string; /** * When the deploy finished (ISO 8601) */ dateFinished: string; /** * Name of the deploy */ name: string | null; } | null; /** * When the release received its first event (ISO 8601) */ firstEvent?: string | null; /** * When the release received its most recent event (ISO 8601) */ lastEvent?: string | null; /** * Session bounds and neighboring release versions in the current project, when a project is requested */ currentProjectMeta?: { /** * Start of the release's sessions in the project (ISO 8601) */ sessionsLowerBound?: string | null; /** * End of the release's sessions in the project (ISO 8601) */ sessionsUpperBound?: string | null; /** * Version of the next release in the project */ nextReleaseVersion?: string | null; /** * Version of the previous release in the project */ prevReleaseVersion?: string | null; /** * Version of the first release in the project */ firstReleaseVersion?: string | null; /** * Version of the latest release in the project */ lastReleaseVersion?: string | null; } | null; /** * User agent of the client that created the release */ userAgent?: string | null; /** * Adoption stage of the release in each project, keyed by project slug */ adoptionStages?: { [key: string]: { /** * Adoption stage of the release */ stage: 'adopted' | 'low_adoption' | 'replaced'; /** * When the release was adopted (ISO 8601) */ adopted: string | null; /** * When the release stopped being adopted (ISO 8601) */ unadopted: string | null; }; } | null; /** * Release ID */ id: number; /** * Version of the release */ version: string; /** * Number of new issues first seen in the release */ newGroups: number; /** * Release status */ status: 'open' | 'archived'; /** * Shortened release version */ shortVersion: string; /** * Parsed version information */ versionInfo: { /** * Human-readable version, such as 1.0.0 (123) */ description?: string; /** * Package name parsed from the release version, such as com.example.app */ package: string | null; /** * Parsed version: the raw string, plus major, minor, patch, pre, buildCode and components when it's a semantic version */ version: { /** * Major version */ major?: number; /** * Minor version */ minor?: number; /** * Patch version */ patch?: number; /** * Pre-release identifier, such as rc1 */ pre?: string | null; /** * Build code, such as 123 */ buildCode?: string | null; /** * Number of version components given */ components?: number; /** * Version string the release was created with */ raw: string; }; /** * Build hash parsed from the release version */ buildHash: string | null; } | null; /** * Extra data stored on the release */ data: { [key: string]: unknown; }; /** * Number of commits in the release */ commitCount: number; /** * Number of deploys of the release */ deployCount: number; /** * Authors of the release's commits */ authors: Array<{ /** * SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access */ identities?: Array<{ /** * SSO identity ID */ id: string; /** * User's identifier at the auth provider */ name: string; /** * Organization the auth provider belongs to */ organization: { /** * Organization slug */ slug: string; /** * Organization name */ name: string; }; /** * Auth provider of the identity */ provider: { /** * Auth provider key, such as google or saml2 */ id: string; /** * Display name of the auth provider */ name: string; }; /** * When the identity was last verified by signing in through the auth provider */ dateVerified: string; /** * When the identity was last synced from the auth provider */ dateSynced: string; }>; /** * User avatar */ avatar?: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Two-factor authenticators of the user, without backup methods such as recovery codes */ authenticators?: Array<{ /** * Authenticator ID */ id: string; /** * Authenticator type, such as totp, sms, u2f or recovery */ type: string; /** * Display name of the authenticator type */ name: string; /** * When the authenticator was added */ dateCreated: string; /** * When the authenticator was last used, or null */ dateUsed: string | null; }>; /** * Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization */ canReset2fa?: boolean; /** * User ID */ id: string; /** * Display name: the user's name, or their email or username if no name is set */ name: string; /** * Username */ username: string; /** * Primary email address */ email: string; /** * Gravatar URL for the primary email address */ avatarUrl: string; /** * Whether the account is active */ isActive: boolean; /** * Whether the account is suspended. Suspended users can't sign in */ isSuspended: boolean; /** * Whether the user has a password set */ hasPasswordAuth: boolean; /** * Whether the account is managed, which stops the user from changing their username, password and similar details */ isManaged: boolean; /** * When the account was created */ dateJoined: string; /** * When the user last signed in, or null */ lastLogin: string | null; /** * Whether the user has two-factor authentication enabled */ has2fa: boolean; /** * When the user was last active, or null */ lastActive: string | null; /** * Whether the user is a superuser */ isSuperuser: boolean; /** * Whether the user has staff status */ isStaff: boolean; /** * Deprecated. Always an empty object */ experiments: { [key: string]: string; }; /** * Email addresses of the user. Only included for the requesting user or superusers; empty otherwise */ emails: Array<{ /** * Email ID */ id: string; /** * Email address */ email: string; /** * Whether the email address is verified */ is_verified: boolean; }>; } | { /** * Commit author name */ name: string | null; /** * Commit author email */ email: string; }>; /** * Projects in the release */ projects: Array<{ /** * Release health data for the project. Only included when health data is requested */ healthData?: { /** * Median session duration in seconds */ durationP50?: number | null; /** * 90th percentile session duration in seconds */ durationP90?: number | null; /** * Percentage of users who didn't experience a crash */ crashFreeUsers?: number | null; /** * Percentage of sessions that didn't crash */ crashFreeSessions?: number | null; /** * Total number of users in the release */ totalUsers?: number | null; /** * Number of users in the release over the last 24 hours */ totalUsers24h?: number | null; /** * Number of users in the project over the last 24 hours */ totalProjectUsers24h?: number | null; /** * Total number of sessions in the release */ totalSessions?: number | null; /** * Number of sessions in the release over the last 24 hours */ totalSessions24h?: number | null; /** * Number of sessions in the project over the last 24 hours */ totalProjectSessions24h?: number | null; /** * Percentage of the project's users over the last 24 hours that were on the release */ adoption?: number | null; /** * Percentage of the project's sessions over the last 24 hours that were on the release */ sessionsAdoption?: number | null; /** * Number of crashed sessions */ sessionsCrashed: number; /** * Number of sessions with errors */ sessionsErrored: number; /** * Whether the release has session data */ hasHealthData: boolean; /** * Session or user counts over time, keyed by stats period */ stats: { [key: string]: Array>; }; } | null; /** * When the release was released in the project (ISO 8601) */ dateReleased?: string | null; /** * When the release was created (ISO 8601) */ dateCreated?: string | null; /** * When work on the release started (ISO 8601) */ dateStarted?: string | null; /** * ID of the project */ id: number; /** * Slug of the project */ slug: string; /** * Name of the project */ name: string; /** * Platform of the project */ platform: string | null; /** * Platforms of the project */ platforms: Array | null; /** * Whether the release has session data in the project */ hasHealthData: boolean; /** * Number of new issues first seen in the release in the project */ newGroups: number; }>; }; /** * Already Reported */ 208: unknown; }; export type CreateOrganizationReleaseResponse2 = CreateOrganizationReleaseResponses[keyof CreateOrganizationReleaseResponses]; export type DeleteOrganizationReleaseData = { body?: never; path: { /** * The ID or slug of the organization the resource belongs to. */ organization_id_or_slug: string; /** * The version identifier of the release */ version: string; }; query?: never; url: '/organizations/{organization_id_or_slug}/releases/{version}/'; }; export type DeleteOrganizationReleaseErrors = { /** * Bad Request */ 400: unknown; /** * Unauthorized */ 401: unknown; /** * Forbidden */ 403: unknown; /** * Not Found */ 404: unknown; }; export type DeleteOrganizationReleaseResponses = { /** * No Content */ 204: void; }; export type DeleteOrganizationReleaseResponse = DeleteOrganizationReleaseResponses[keyof DeleteOrganizationReleaseResponses]; export type GetOrganizationReleaseData = { body?: never; path: { /** * The ID or slug of the organization the resource belongs to. */ organization_id_or_slug: string; /** * The version identifier of the release */ version: string; }; query?: { /** * Deprecated. Use project instead. * * @deprecated */ project_id?: string; /** * The project ID or slug to filter by. Overrides project_id when both are sent. */ project?: number | string; /** * Whether or not to include health data with the release. By default, this is false. */ health?: boolean; /** * Whether or not to include adoption stages with the release. By default, this is false. */ adoptionStages?: boolean; /** * The period of time used to query summary stats for the release. By default, this is 14d. */ summaryStatsPeriod?: '14d' | '1d' | '1h' | '24h' | '2d' | '30d' | '48h' | '7d' | '90d'; /** * The period of time used to query health stats for the release. By default, this is 24h if health is enabled. */ healthStatsPeriod?: '14d' | '1d' | '1h' | '24h' | '2d' | '30d' | '48h' | '7d' | '90d'; /** * The field used to sort results by. By default, this is `date`. */ sort?: 'date'; /** * Release statuses that you can filter by. */ status?: 'archived' | 'open'; /** * Filters results by using [query syntax](/product/sentry-basics/search/). * * Example: `query=(transaction:foo AND release:abc) OR (transaction:[bar,baz] AND release:def)` * */ query?: string; }; url: '/organizations/{organization_id_or_slug}/releases/{version}/'; }; export type GetOrganizationReleaseErrors = { /** * Bad Request */ 400: unknown; /** * Unauthorized */ 401: unknown; /** * Forbidden */ 403: unknown; /** * Not Found */ 404: unknown; }; export type GetOrganizationReleaseResponses = { 200: { /** * Version control reference, such as a commit SHA or tag */ ref?: string | null; /** * Release URL */ url?: string | null; /** * When the release went live (ISO 8601) */ dateReleased?: string | null; /** * When the release was created (ISO 8601) */ dateCreated?: string | null; /** * When the release started (ISO 8601) */ dateStarted?: string | null; /** * Release owner */ owner?: { /** * SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access */ identities?: Array<{ /** * SSO identity ID */ id: string; /** * User's identifier at the auth provider */ name: string; /** * Organization the auth provider belongs to */ organization: { /** * Organization slug */ slug: string; /** * Organization name */ name: string; }; /** * Auth provider of the identity */ provider: { /** * Auth provider key, such as google or saml2 */ id: string; /** * Display name of the auth provider */ name: string; }; /** * When the identity was last verified by signing in through the auth provider */ dateVerified: string; /** * When the identity was last synced from the auth provider */ dateSynced: string; }>; /** * User avatar */ avatar?: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Two-factor authenticators of the user, without backup methods such as recovery codes */ authenticators?: Array<{ /** * Authenticator ID */ id: string; /** * Authenticator type, such as totp, sms, u2f or recovery */ type: string; /** * Display name of the authenticator type */ name: string; /** * When the authenticator was added */ dateCreated: string; /** * When the authenticator was last used, or null */ dateUsed: string | null; }>; /** * Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization */ canReset2fa?: boolean; /** * User ID */ id: string; /** * Display name: the user's name, or their email or username if no name is set */ name: string; /** * Username */ username: string; /** * Primary email address */ email: string; /** * Gravatar URL for the primary email address */ avatarUrl: string; /** * Whether the account is active */ isActive: boolean; /** * Whether the account is suspended. Suspended users can't sign in */ isSuspended: boolean; /** * Whether the user has a password set */ hasPasswordAuth: boolean; /** * Whether the account is managed, which stops the user from changing their username, password and similar details */ isManaged: boolean; /** * When the account was created */ dateJoined: string; /** * When the user last signed in, or null */ lastLogin: string | null; /** * Whether the user has two-factor authentication enabled */ has2fa: boolean; /** * When the user was last active, or null */ lastActive: string | null; /** * Whether the user is a superuser */ isSuperuser: boolean; /** * Whether the user has staff status */ isStaff: boolean; /** * Deprecated. Always an empty object */ experiments: { [key: string]: string; }; /** * Email addresses of the user. Only included for the requesting user or superusers; empty otherwise */ emails: Array<{ /** * Email ID */ id: string; /** * Email address */ email: string; /** * Whether the email address is verified */ is_verified: boolean; }>; } | null; /** * Most recent commit in the release */ lastCommit?: { /** * Commit SHA */ id: string; /** * Commit message */ message: string | null; /** * When the commit was made (ISO 8601) */ dateCreated: string; /** * Pull request the commit belongs to */ pullRequest: { /** * Number or key of the pull request in the provider */ id: string; /** * Title of the pull request */ title: string | null; /** * Description of the pull request */ message: string | null; /** * When Sentry recorded the pull request (ISO 8601) */ dateCreated: string; /** * When the pull request was merged (ISO 8601). Null when it isn't merged */ mergedAt: string | null; /** * State of the pull request: merged, open, closed, draft or unknown. Null when not known */ status: 'merged' | 'open' | 'closed' | 'draft' | 'unknown' | null; /** * Repository of the pull request */ repository: { /** * URL of the repository */ url?: string | null; /** * Provider of the repository, with its id and name */ provider?: { [key: string]: string; }; /** * Status of the repository */ status?: 'active' | 'disabled' | 'pending_deletion' | 'deletion_in_progress'; /** * ID of the repository's integration. Null for repositories added without an integration */ integrationId?: string | null; /** * Identifier of the repository in the provider, such as owner/name */ externalSlug?: string | null; /** * ID of the repository in the provider */ externalId?: string | null; /** * Settings of the repository. Only set when expand includes settings. Null when it has none */ settings?: { /** * Whether AI code review is on for the repository */ enabledCodeReview: boolean; /** * Pull request events that start a code review: on_new_commit or on_ready_for_review */ codeReviewTriggers: Array; } | null; /** * ID of the repository */ id: string; /** * Name of the repository, such as owner/name */ name: string; /** * When the repository was added to Sentry (ISO 8601) */ dateCreated: string; }; /** * Author of the pull request, or an empty object when it has none */ author: { /** * SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access */ identities?: Array<{ /** * SSO identity ID */ id: string; /** * User's identifier at the auth provider */ name: string; /** * Organization the auth provider belongs to */ organization: { /** * Organization slug */ slug: string; /** * Organization name */ name: string; }; /** * Auth provider of the identity */ provider: { /** * Auth provider key, such as google or saml2 */ id: string; /** * Display name of the auth provider */ name: string; }; /** * When the identity was last verified by signing in through the auth provider */ dateVerified: string; /** * When the identity was last synced from the auth provider */ dateSynced: string; }>; /** * User avatar */ avatar?: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Two-factor authenticators of the user, without backup methods such as recovery codes */ authenticators?: Array<{ /** * Authenticator ID */ id: string; /** * Authenticator type, such as totp, sms, u2f or recovery */ type: string; /** * Display name of the authenticator type */ name: string; /** * When the authenticator was added */ dateCreated: string; /** * When the authenticator was last used, or null */ dateUsed: string | null; }>; /** * Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization */ canReset2fa?: boolean; /** * User ID */ id: string; /** * Display name: the user's name, or their email or username if no name is set */ name: string; /** * Username */ username: string; /** * Primary email address */ email: string; /** * Gravatar URL for the primary email address */ avatarUrl: string; /** * Whether the account is active */ isActive: boolean; /** * Whether the account is suspended. Suspended users can't sign in */ isSuspended: boolean; /** * Whether the user has a password set */ hasPasswordAuth: boolean; /** * Whether the account is managed, which stops the user from changing their username, password and similar details */ isManaged: boolean; /** * When the account was created */ dateJoined: string; /** * When the user last signed in, or null */ lastLogin: string | null; /** * Whether the user has two-factor authentication enabled */ has2fa: boolean; /** * When the user was last active, or null */ lastActive: string | null; /** * Whether the user is a superuser */ isSuperuser: boolean; /** * Whether the user has staff status */ isStaff: boolean; /** * Deprecated. Always an empty object */ experiments: { [key: string]: string; }; /** * Email addresses of the user. Only included for the requesting user or superusers; empty otherwise */ emails: Array<{ /** * Email ID */ id: string; /** * Email address */ email: string; /** * Whether the email address is verified */ is_verified: boolean; }>; } | { /** * Commit author name */ name: string | null; /** * Commit author email */ email: string; } | { [key: string]: unknown; }; /** * URL of the pull request in the provider, or null when the provider can't build one */ externalUrl: string | null; } | null; /** * How the commit was found as a suspect commit: via commit in release or via SCM integration. Empty for other commits */ suspectCommitType: string; /** * Repository the commit belongs to */ repository?: { /** * URL of the repository */ url?: string | null; /** * Provider of the repository, with its id and name */ provider?: { [key: string]: string; }; /** * Status of the repository */ status?: 'active' | 'disabled' | 'pending_deletion' | 'deletion_in_progress'; /** * ID of the repository's integration. Null for repositories added without an integration */ integrationId?: string | null; /** * Identifier of the repository in the provider, such as owner/name */ externalSlug?: string | null; /** * ID of the repository in the provider */ externalId?: string | null; /** * Settings of the repository. Only set when expand includes settings. Null when it has none */ settings?: { /** * Whether AI code review is on for the repository */ enabledCodeReview: boolean; /** * Pull request events that start a code review: on_new_commit or on_ready_for_review */ codeReviewTriggers: Array; } | null; /** * ID of the repository */ id: string; /** * Name of the repository, such as owner/name */ name: string; /** * When the repository was added to Sentry (ISO 8601) */ dateCreated: string; }; /** * Author of the commit: a Sentry user when the email matches one, otherwise the name and email from the commit */ author?: { /** * SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access */ identities?: Array<{ /** * SSO identity ID */ id: string; /** * User's identifier at the auth provider */ name: string; /** * Organization the auth provider belongs to */ organization: { /** * Organization slug */ slug: string; /** * Organization name */ name: string; }; /** * Auth provider of the identity */ provider: { /** * Auth provider key, such as google or saml2 */ id: string; /** * Display name of the auth provider */ name: string; }; /** * When the identity was last verified by signing in through the auth provider */ dateVerified: string; /** * When the identity was last synced from the auth provider */ dateSynced: string; }>; /** * User avatar */ avatar?: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Two-factor authenticators of the user, without backup methods such as recovery codes */ authenticators?: Array<{ /** * Authenticator ID */ id: string; /** * Authenticator type, such as totp, sms, u2f or recovery */ type: string; /** * Display name of the authenticator type */ name: string; /** * When the authenticator was added */ dateCreated: string; /** * When the authenticator was last used, or null */ dateUsed: string | null; }>; /** * Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization */ canReset2fa?: boolean; /** * User ID */ id: string; /** * Display name: the user's name, or their email or username if no name is set */ name: string; /** * Username */ username: string; /** * Primary email address */ email: string; /** * Gravatar URL for the primary email address */ avatarUrl: string; /** * Whether the account is active */ isActive: boolean; /** * Whether the account is suspended. Suspended users can't sign in */ isSuspended: boolean; /** * Whether the user has a password set */ hasPasswordAuth: boolean; /** * Whether the account is managed, which stops the user from changing their username, password and similar details */ isManaged: boolean; /** * When the account was created */ dateJoined: string; /** * When the user last signed in, or null */ lastLogin: string | null; /** * Whether the user has two-factor authentication enabled */ has2fa: boolean; /** * When the user was last active, or null */ lastActive: string | null; /** * Whether the user is a superuser */ isSuperuser: boolean; /** * Whether the user has staff status */ isStaff: boolean; /** * Deprecated. Always an empty object */ experiments: { [key: string]: string; }; /** * Email addresses of the user. Only included for the requesting user or superusers; empty otherwise */ emails: Array<{ /** * Email ID */ id: string; /** * Email address */ email: string; /** * Whether the email address is verified */ is_verified: boolean; }>; } | { /** * Commit author name */ name: string | null; /** * Commit author email */ email: string; } | { [key: string]: unknown; }; } | null; /** * Most recent deploy of the release */ lastDeploy?: { /** * When the deploy started (ISO 8601) */ dateStarted?: string | null; /** * URL of the deploy */ url?: string | null; /** * ID of the deploy */ id: string; /** * Environment the release was deployed to */ environment: string; /** * When the deploy finished (ISO 8601) */ dateFinished: string; /** * Name of the deploy */ name: string | null; } | null; /** * When the release received its first event (ISO 8601) */ firstEvent?: string | null; /** * When the release received its most recent event (ISO 8601) */ lastEvent?: string | null; /** * Session bounds and neighboring release versions in the current project, when a project is requested */ currentProjectMeta?: { /** * Start of the release's sessions in the project (ISO 8601) */ sessionsLowerBound?: string | null; /** * End of the release's sessions in the project (ISO 8601) */ sessionsUpperBound?: string | null; /** * Version of the next release in the project */ nextReleaseVersion?: string | null; /** * Version of the previous release in the project */ prevReleaseVersion?: string | null; /** * Version of the first release in the project */ firstReleaseVersion?: string | null; /** * Version of the latest release in the project */ lastReleaseVersion?: string | null; } | null; /** * User agent of the client that created the release */ userAgent?: string | null; /** * Adoption stage of the release in each project, keyed by project slug */ adoptionStages?: { [key: string]: { /** * Adoption stage of the release */ stage: 'adopted' | 'low_adoption' | 'replaced'; /** * When the release was adopted (ISO 8601) */ adopted: string | null; /** * When the release stopped being adopted (ISO 8601) */ unadopted: string | null; }; } | null; /** * Release ID */ id: number; /** * Version of the release */ version: string; /** * Number of new issues first seen in the release */ newGroups: number; /** * Release status */ status: 'open' | 'archived'; /** * Shortened release version */ shortVersion: string; /** * Parsed version information */ versionInfo: { /** * Human-readable version, such as 1.0.0 (123) */ description?: string; /** * Package name parsed from the release version, such as com.example.app */ package: string | null; /** * Parsed version: the raw string, plus major, minor, patch, pre, buildCode and components when it's a semantic version */ version: { /** * Major version */ major?: number; /** * Minor version */ minor?: number; /** * Patch version */ patch?: number; /** * Pre-release identifier, such as rc1 */ pre?: string | null; /** * Build code, such as 123 */ buildCode?: string | null; /** * Number of version components given */ components?: number; /** * Version string the release was created with */ raw: string; }; /** * Build hash parsed from the release version */ buildHash: string | null; } | null; /** * Extra data stored on the release */ data: { [key: string]: unknown; }; /** * Number of commits in the release */ commitCount: number; /** * Number of deploys of the release */ deployCount: number; /** * Authors of the release's commits */ authors: Array<{ /** * SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access */ identities?: Array<{ /** * SSO identity ID */ id: string; /** * User's identifier at the auth provider */ name: string; /** * Organization the auth provider belongs to */ organization: { /** * Organization slug */ slug: string; /** * Organization name */ name: string; }; /** * Auth provider of the identity */ provider: { /** * Auth provider key, such as google or saml2 */ id: string; /** * Display name of the auth provider */ name: string; }; /** * When the identity was last verified by signing in through the auth provider */ dateVerified: string; /** * When the identity was last synced from the auth provider */ dateSynced: string; }>; /** * User avatar */ avatar?: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Two-factor authenticators of the user, without backup methods such as recovery codes */ authenticators?: Array<{ /** * Authenticator ID */ id: string; /** * Authenticator type, such as totp, sms, u2f or recovery */ type: string; /** * Display name of the authenticator type */ name: string; /** * When the authenticator was added */ dateCreated: string; /** * When the authenticator was last used, or null */ dateUsed: string | null; }>; /** * Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization */ canReset2fa?: boolean; /** * User ID */ id: string; /** * Display name: the user's name, or their email or username if no name is set */ name: string; /** * Username */ username: string; /** * Primary email address */ email: string; /** * Gravatar URL for the primary email address */ avatarUrl: string; /** * Whether the account is active */ isActive: boolean; /** * Whether the account is suspended. Suspended users can't sign in */ isSuspended: boolean; /** * Whether the user has a password set */ hasPasswordAuth: boolean; /** * Whether the account is managed, which stops the user from changing their username, password and similar details */ isManaged: boolean; /** * When the account was created */ dateJoined: string; /** * When the user last signed in, or null */ lastLogin: string | null; /** * Whether the user has two-factor authentication enabled */ has2fa: boolean; /** * When the user was last active, or null */ lastActive: string | null; /** * Whether the user is a superuser */ isSuperuser: boolean; /** * Whether the user has staff status */ isStaff: boolean; /** * Deprecated. Always an empty object */ experiments: { [key: string]: string; }; /** * Email addresses of the user. Only included for the requesting user or superusers; empty otherwise */ emails: Array<{ /** * Email ID */ id: string; /** * Email address */ email: string; /** * Whether the email address is verified */ is_verified: boolean; }>; } | { /** * Commit author name */ name: string | null; /** * Commit author email */ email: string; }>; /** * Projects in the release */ projects: Array<{ /** * Release health data for the project. Only included when health data is requested */ healthData?: { /** * Median session duration in seconds */ durationP50?: number | null; /** * 90th percentile session duration in seconds */ durationP90?: number | null; /** * Percentage of users who didn't experience a crash */ crashFreeUsers?: number | null; /** * Percentage of sessions that didn't crash */ crashFreeSessions?: number | null; /** * Total number of users in the release */ totalUsers?: number | null; /** * Number of users in the release over the last 24 hours */ totalUsers24h?: number | null; /** * Number of users in the project over the last 24 hours */ totalProjectUsers24h?: number | null; /** * Total number of sessions in the release */ totalSessions?: number | null; /** * Number of sessions in the release over the last 24 hours */ totalSessions24h?: number | null; /** * Number of sessions in the project over the last 24 hours */ totalProjectSessions24h?: number | null; /** * Percentage of the project's users over the last 24 hours that were on the release */ adoption?: number | null; /** * Percentage of the project's sessions over the last 24 hours that were on the release */ sessionsAdoption?: number | null; /** * Number of crashed sessions */ sessionsCrashed: number; /** * Number of sessions with errors */ sessionsErrored: number; /** * Whether the release has session data */ hasHealthData: boolean; /** * Session or user counts over time, keyed by stats period */ stats: { [key: string]: Array>; }; } | null; /** * When the release was released in the project (ISO 8601) */ dateReleased?: string | null; /** * When the release was created (ISO 8601) */ dateCreated?: string | null; /** * When work on the release started (ISO 8601) */ dateStarted?: string | null; /** * ID of the project */ id: number; /** * Slug of the project */ slug: string; /** * Name of the project */ name: string; /** * Platform of the project */ platform: string | null; /** * Platforms of the project */ platforms: Array | null; /** * Whether the release has session data in the project */ hasHealthData: boolean; /** * Number of new issues first seen in the release in the project */ newGroups: number; }>; }; }; export type GetOrganizationReleaseResponse = GetOrganizationReleaseResponses[keyof GetOrganizationReleaseResponses]; export type UpdateOrganizationReleaseData = { body?: { /** * An optional commit reference. This is useful if a tagged version has been provided. */ ref?: string | null; /** * A URL that points to the release. For instance, this can be the path to an online interface to the source code, such as a GitHub URL. */ url?: string | null; /** * An optional date that indicates when the release went live. If not provided the current time is used. */ dateReleased?: string | null; /** * An optional list of commit data to be associated. Very long lists are truncated to the most recent commits. */ commits?: Array<{ id: string; repository?: string | null; message?: string | null; author_name?: string | null; author_email?: string | null; timestamp?: string | null; patch_set?: Array<{ path: string; type: string; }> | null; }>; /** * The status of the release. Can be `open` or `archived`. */ status?: string; /** * Deprecated, use `commits`. Head commits to associate with the release. */ headCommits?: Array<{ currentId: string; repository: string; previousId?: string | null; }>; /** * An optional way to indicate the start and end commits for each repository included in a release. Head commits must include parameters ``repository`` and ``commit`` (the HEAD SHA). For GitLab repositories, please use the Group name instead of the slug. They can optionally include ``previousCommit`` (the SHA of the HEAD of the previous release), which should be specified if this is the first time you've sent commit data. */ refs?: Array<{ commit: string; repository: string; previousCommit?: string | null; }>; }; path: { /** * The ID or slug of the organization the resource belongs to. */ organization_id_or_slug: string; /** * The version identifier of the release */ version: string; }; query?: never; url: '/organizations/{organization_id_or_slug}/releases/{version}/'; }; export type UpdateOrganizationReleaseErrors = { /** * Bad Request */ 400: unknown; /** * Unauthorized */ 401: unknown; /** * Forbidden */ 403: unknown; /** * Not Found */ 404: unknown; }; export type UpdateOrganizationReleaseResponses = { 200: { /** * Version control reference, such as a commit SHA or tag */ ref?: string | null; /** * Release URL */ url?: string | null; /** * When the release went live (ISO 8601) */ dateReleased?: string | null; /** * When the release was created (ISO 8601) */ dateCreated?: string | null; /** * When the release started (ISO 8601) */ dateStarted?: string | null; /** * Release owner */ owner?: { /** * SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access */ identities?: Array<{ /** * SSO identity ID */ id: string; /** * User's identifier at the auth provider */ name: string; /** * Organization the auth provider belongs to */ organization: { /** * Organization slug */ slug: string; /** * Organization name */ name: string; }; /** * Auth provider of the identity */ provider: { /** * Auth provider key, such as google or saml2 */ id: string; /** * Display name of the auth provider */ name: string; }; /** * When the identity was last verified by signing in through the auth provider */ dateVerified: string; /** * When the identity was last synced from the auth provider */ dateSynced: string; }>; /** * User avatar */ avatar?: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Two-factor authenticators of the user, without backup methods such as recovery codes */ authenticators?: Array<{ /** * Authenticator ID */ id: string; /** * Authenticator type, such as totp, sms, u2f or recovery */ type: string; /** * Display name of the authenticator type */ name: string; /** * When the authenticator was added */ dateCreated: string; /** * When the authenticator was last used, or null */ dateUsed: string | null; }>; /** * Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization */ canReset2fa?: boolean; /** * User ID */ id: string; /** * Display name: the user's name, or their email or username if no name is set */ name: string; /** * Username */ username: string; /** * Primary email address */ email: string; /** * Gravatar URL for the primary email address */ avatarUrl: string; /** * Whether the account is active */ isActive: boolean; /** * Whether the account is suspended. Suspended users can't sign in */ isSuspended: boolean; /** * Whether the user has a password set */ hasPasswordAuth: boolean; /** * Whether the account is managed, which stops the user from changing their username, password and similar details */ isManaged: boolean; /** * When the account was created */ dateJoined: string; /** * When the user last signed in, or null */ lastLogin: string | null; /** * Whether the user has two-factor authentication enabled */ has2fa: boolean; /** * When the user was last active, or null */ lastActive: string | null; /** * Whether the user is a superuser */ isSuperuser: boolean; /** * Whether the user has staff status */ isStaff: boolean; /** * Deprecated. Always an empty object */ experiments: { [key: string]: string; }; /** * Email addresses of the user. Only included for the requesting user or superusers; empty otherwise */ emails: Array<{ /** * Email ID */ id: string; /** * Email address */ email: string; /** * Whether the email address is verified */ is_verified: boolean; }>; } | null; /** * Most recent commit in the release */ lastCommit?: { /** * Commit SHA */ id: string; /** * Commit message */ message: string | null; /** * When the commit was made (ISO 8601) */ dateCreated: string; /** * Pull request the commit belongs to */ pullRequest: { /** * Number or key of the pull request in the provider */ id: string; /** * Title of the pull request */ title: string | null; /** * Description of the pull request */ message: string | null; /** * When Sentry recorded the pull request (ISO 8601) */ dateCreated: string; /** * When the pull request was merged (ISO 8601). Null when it isn't merged */ mergedAt: string | null; /** * State of the pull request: merged, open, closed, draft or unknown. Null when not known */ status: 'merged' | 'open' | 'closed' | 'draft' | 'unknown' | null; /** * Repository of the pull request */ repository: { /** * URL of the repository */ url?: string | null; /** * Provider of the repository, with its id and name */ provider?: { [key: string]: string; }; /** * Status of the repository */ status?: 'active' | 'disabled' | 'pending_deletion' | 'deletion_in_progress'; /** * ID of the repository's integration. Null for repositories added without an integration */ integrationId?: string | null; /** * Identifier of the repository in the provider, such as owner/name */ externalSlug?: string | null; /** * ID of the repository in the provider */ externalId?: string | null; /** * Settings of the repository. Only set when expand includes settings. Null when it has none */ settings?: { /** * Whether AI code review is on for the repository */ enabledCodeReview: boolean; /** * Pull request events that start a code review: on_new_commit or on_ready_for_review */ codeReviewTriggers: Array; } | null; /** * ID of the repository */ id: string; /** * Name of the repository, such as owner/name */ name: string; /** * When the repository was added to Sentry (ISO 8601) */ dateCreated: string; }; /** * Author of the pull request, or an empty object when it has none */ author: { /** * SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access */ identities?: Array<{ /** * SSO identity ID */ id: string; /** * User's identifier at the auth provider */ name: string; /** * Organization the auth provider belongs to */ organization: { /** * Organization slug */ slug: string; /** * Organization name */ name: string; }; /** * Auth provider of the identity */ provider: { /** * Auth provider key, such as google or saml2 */ id: string; /** * Display name of the auth provider */ name: string; }; /** * When the identity was last verified by signing in through the auth provider */ dateVerified: string; /** * When the identity was last synced from the auth provider */ dateSynced: string; }>; /** * User avatar */ avatar?: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Two-factor authenticators of the user, without backup methods such as recovery codes */ authenticators?: Array<{ /** * Authenticator ID */ id: string; /** * Authenticator type, such as totp, sms, u2f or recovery */ type: string; /** * Display name of the authenticator type */ name: string; /** * When the authenticator was added */ dateCreated: string; /** * When the authenticator was last used, or null */ dateUsed: string | null; }>; /** * Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization */ canReset2fa?: boolean; /** * User ID */ id: string; /** * Display name: the user's name, or their email or username if no name is set */ name: string; /** * Username */ username: string; /** * Primary email address */ email: string; /** * Gravatar URL for the primary email address */ avatarUrl: string; /** * Whether the account is active */ isActive: boolean; /** * Whether the account is suspended. Suspended users can't sign in */ isSuspended: boolean; /** * Whether the user has a password set */ hasPasswordAuth: boolean; /** * Whether the account is managed, which stops the user from changing their username, password and similar details */ isManaged: boolean; /** * When the account was created */ dateJoined: string; /** * When the user last signed in, or null */ lastLogin: string | null; /** * Whether the user has two-factor authentication enabled */ has2fa: boolean; /** * When the user was last active, or null */ lastActive: string | null; /** * Whether the user is a superuser */ isSuperuser: boolean; /** * Whether the user has staff status */ isStaff: boolean; /** * Deprecated. Always an empty object */ experiments: { [key: string]: string; }; /** * Email addresses of the user. Only included for the requesting user or superusers; empty otherwise */ emails: Array<{ /** * Email ID */ id: string; /** * Email address */ email: string; /** * Whether the email address is verified */ is_verified: boolean; }>; } | { /** * Commit author name */ name: string | null; /** * Commit author email */ email: string; } | { [key: string]: unknown; }; /** * URL of the pull request in the provider, or null when the provider can't build one */ externalUrl: string | null; } | null; /** * How the commit was found as a suspect commit: via commit in release or via SCM integration. Empty for other commits */ suspectCommitType: string; /** * Repository the commit belongs to */ repository?: { /** * URL of the repository */ url?: string | null; /** * Provider of the repository, with its id and name */ provider?: { [key: string]: string; }; /** * Status of the repository */ status?: 'active' | 'disabled' | 'pending_deletion' | 'deletion_in_progress'; /** * ID of the repository's integration. Null for repositories added without an integration */ integrationId?: string | null; /** * Identifier of the repository in the provider, such as owner/name */ externalSlug?: string | null; /** * ID of the repository in the provider */ externalId?: string | null; /** * Settings of the repository. Only set when expand includes settings. Null when it has none */ settings?: { /** * Whether AI code review is on for the repository */ enabledCodeReview: boolean; /** * Pull request events that start a code review: on_new_commit or on_ready_for_review */ codeReviewTriggers: Array; } | null; /** * ID of the repository */ id: string; /** * Name of the repository, such as owner/name */ name: string; /** * When the repository was added to Sentry (ISO 8601) */ dateCreated: string; }; /** * Author of the commit: a Sentry user when the email matches one, otherwise the name and email from the commit */ author?: { /** * SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access */ identities?: Array<{ /** * SSO identity ID */ id: string; /** * User's identifier at the auth provider */ name: string; /** * Organization the auth provider belongs to */ organization: { /** * Organization slug */ slug: string; /** * Organization name */ name: string; }; /** * Auth provider of the identity */ provider: { /** * Auth provider key, such as google or saml2 */ id: string; /** * Display name of the auth provider */ name: string; }; /** * When the identity was last verified by signing in through the auth provider */ dateVerified: string; /** * When the identity was last synced from the auth provider */ dateSynced: string; }>; /** * User avatar */ avatar?: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Two-factor authenticators of the user, without backup methods such as recovery codes */ authenticators?: Array<{ /** * Authenticator ID */ id: string; /** * Authenticator type, such as totp, sms, u2f or recovery */ type: string; /** * Display name of the authenticator type */ name: string; /** * When the authenticator was added */ dateCreated: string; /** * When the authenticator was last used, or null */ dateUsed: string | null; }>; /** * Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization */ canReset2fa?: boolean; /** * User ID */ id: string; /** * Display name: the user's name, or their email or username if no name is set */ name: string; /** * Username */ username: string; /** * Primary email address */ email: string; /** * Gravatar URL for the primary email address */ avatarUrl: string; /** * Whether the account is active */ isActive: boolean; /** * Whether the account is suspended. Suspended users can't sign in */ isSuspended: boolean; /** * Whether the user has a password set */ hasPasswordAuth: boolean; /** * Whether the account is managed, which stops the user from changing their username, password and similar details */ isManaged: boolean; /** * When the account was created */ dateJoined: string; /** * When the user last signed in, or null */ lastLogin: string | null; /** * Whether the user has two-factor authentication enabled */ has2fa: boolean; /** * When the user was last active, or null */ lastActive: string | null; /** * Whether the user is a superuser */ isSuperuser: boolean; /** * Whether the user has staff status */ isStaff: boolean; /** * Deprecated. Always an empty object */ experiments: { [key: string]: string; }; /** * Email addresses of the user. Only included for the requesting user or superusers; empty otherwise */ emails: Array<{ /** * Email ID */ id: string; /** * Email address */ email: string; /** * Whether the email address is verified */ is_verified: boolean; }>; } | { /** * Commit author name */ name: string | null; /** * Commit author email */ email: string; } | { [key: string]: unknown; }; } | null; /** * Most recent deploy of the release */ lastDeploy?: { /** * When the deploy started (ISO 8601) */ dateStarted?: string | null; /** * URL of the deploy */ url?: string | null; /** * ID of the deploy */ id: string; /** * Environment the release was deployed to */ environment: string; /** * When the deploy finished (ISO 8601) */ dateFinished: string; /** * Name of the deploy */ name: string | null; } | null; /** * When the release received its first event (ISO 8601) */ firstEvent?: string | null; /** * When the release received its most recent event (ISO 8601) */ lastEvent?: string | null; /** * Session bounds and neighboring release versions in the current project, when a project is requested */ currentProjectMeta?: { /** * Start of the release's sessions in the project (ISO 8601) */ sessionsLowerBound?: string | null; /** * End of the release's sessions in the project (ISO 8601) */ sessionsUpperBound?: string | null; /** * Version of the next release in the project */ nextReleaseVersion?: string | null; /** * Version of the previous release in the project */ prevReleaseVersion?: string | null; /** * Version of the first release in the project */ firstReleaseVersion?: string | null; /** * Version of the latest release in the project */ lastReleaseVersion?: string | null; } | null; /** * User agent of the client that created the release */ userAgent?: string | null; /** * Adoption stage of the release in each project, keyed by project slug */ adoptionStages?: { [key: string]: { /** * Adoption stage of the release */ stage: 'adopted' | 'low_adoption' | 'replaced'; /** * When the release was adopted (ISO 8601) */ adopted: string | null; /** * When the release stopped being adopted (ISO 8601) */ unadopted: string | null; }; } | null; /** * Release ID */ id: number; /** * Version of the release */ version: string; /** * Number of new issues first seen in the release */ newGroups: number; /** * Release status */ status: 'open' | 'archived'; /** * Shortened release version */ shortVersion: string; /** * Parsed version information */ versionInfo: { /** * Human-readable version, such as 1.0.0 (123) */ description?: string; /** * Package name parsed from the release version, such as com.example.app */ package: string | null; /** * Parsed version: the raw string, plus major, minor, patch, pre, buildCode and components when it's a semantic version */ version: { /** * Major version */ major?: number; /** * Minor version */ minor?: number; /** * Patch version */ patch?: number; /** * Pre-release identifier, such as rc1 */ pre?: string | null; /** * Build code, such as 123 */ buildCode?: string | null; /** * Number of version components given */ components?: number; /** * Version string the release was created with */ raw: string; }; /** * Build hash parsed from the release version */ buildHash: string | null; } | null; /** * Extra data stored on the release */ data: { [key: string]: unknown; }; /** * Number of commits in the release */ commitCount: number; /** * Number of deploys of the release */ deployCount: number; /** * Authors of the release's commits */ authors: Array<{ /** * SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access */ identities?: Array<{ /** * SSO identity ID */ id: string; /** * User's identifier at the auth provider */ name: string; /** * Organization the auth provider belongs to */ organization: { /** * Organization slug */ slug: string; /** * Organization name */ name: string; }; /** * Auth provider of the identity */ provider: { /** * Auth provider key, such as google or saml2 */ id: string; /** * Display name of the auth provider */ name: string; }; /** * When the identity was last verified by signing in through the auth provider */ dateVerified: string; /** * When the identity was last synced from the auth provider */ dateSynced: string; }>; /** * User avatar */ avatar?: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Two-factor authenticators of the user, without backup methods such as recovery codes */ authenticators?: Array<{ /** * Authenticator ID */ id: string; /** * Authenticator type, such as totp, sms, u2f or recovery */ type: string; /** * Display name of the authenticator type */ name: string; /** * When the authenticator was added */ dateCreated: string; /** * When the authenticator was last used, or null */ dateUsed: string | null; }>; /** * Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization */ canReset2fa?: boolean; /** * User ID */ id: string; /** * Display name: the user's name, or their email or username if no name is set */ name: string; /** * Username */ username: string; /** * Primary email address */ email: string; /** * Gravatar URL for the primary email address */ avatarUrl: string; /** * Whether the account is active */ isActive: boolean; /** * Whether the account is suspended. Suspended users can't sign in */ isSuspended: boolean; /** * Whether the user has a password set */ hasPasswordAuth: boolean; /** * Whether the account is managed, which stops the user from changing their username, password and similar details */ isManaged: boolean; /** * When the account was created */ dateJoined: string; /** * When the user last signed in, or null */ lastLogin: string | null; /** * Whether the user has two-factor authentication enabled */ has2fa: boolean; /** * When the user was last active, or null */ lastActive: string | null; /** * Whether the user is a superuser */ isSuperuser: boolean; /** * Whether the user has staff status */ isStaff: boolean; /** * Deprecated. Always an empty object */ experiments: { [key: string]: string; }; /** * Email addresses of the user. Only included for the requesting user or superusers; empty otherwise */ emails: Array<{ /** * Email ID */ id: string; /** * Email address */ email: string; /** * Whether the email address is verified */ is_verified: boolean; }>; } | { /** * Commit author name */ name: string | null; /** * Commit author email */ email: string; }>; /** * Projects in the release */ projects: Array<{ /** * Release health data for the project. Only included when health data is requested */ healthData?: { /** * Median session duration in seconds */ durationP50?: number | null; /** * 90th percentile session duration in seconds */ durationP90?: number | null; /** * Percentage of users who didn't experience a crash */ crashFreeUsers?: number | null; /** * Percentage of sessions that didn't crash */ crashFreeSessions?: number | null; /** * Total number of users in the release */ totalUsers?: number | null; /** * Number of users in the release over the last 24 hours */ totalUsers24h?: number | null; /** * Number of users in the project over the last 24 hours */ totalProjectUsers24h?: number | null; /** * Total number of sessions in the release */ totalSessions?: number | null; /** * Number of sessions in the release over the last 24 hours */ totalSessions24h?: number | null; /** * Number of sessions in the project over the last 24 hours */ totalProjectSessions24h?: number | null; /** * Percentage of the project's users over the last 24 hours that were on the release */ adoption?: number | null; /** * Percentage of the project's sessions over the last 24 hours that were on the release */ sessionsAdoption?: number | null; /** * Number of crashed sessions */ sessionsCrashed: number; /** * Number of sessions with errors */ sessionsErrored: number; /** * Whether the release has session data */ hasHealthData: boolean; /** * Session or user counts over time, keyed by stats period */ stats: { [key: string]: Array>; }; } | null; /** * When the release was released in the project (ISO 8601) */ dateReleased?: string | null; /** * When the release was created (ISO 8601) */ dateCreated?: string | null; /** * When work on the release started (ISO 8601) */ dateStarted?: string | null; /** * ID of the project */ id: number; /** * Slug of the project */ slug: string; /** * Name of the project */ name: string; /** * Platform of the project */ platform: string | null; /** * Platforms of the project */ platforms: Array | null; /** * Whether the release has session data in the project */ hasHealthData: boolean; /** * Number of new issues first seen in the release in the project */ newGroups: number; }>; }; }; export type UpdateOrganizationReleaseResponse = UpdateOrganizationReleaseResponses[keyof UpdateOrganizationReleaseResponses]; export type ListOrganizationReleaseCommitsData = { body?: never; path: { /** * The ID or slug of the organization the resource belongs to. */ organization_id_or_slug: string; /** * The version identifier of the release */ version: string; }; query?: { /** * A pointer to the last object fetched and its sort order; used to retrieve the next or previous results. */ cursor?: string; }; url: '/organizations/{organization_id_or_slug}/releases/{version}/commits/'; }; export type ListOrganizationReleaseCommitsErrors = { /** * Unauthorized */ 401: unknown; /** * Forbidden */ 403: unknown; /** * Not Found */ 404: unknown; }; export type ListOrganizationReleaseCommitsResponses = { 200: Array<{ /** * Commit SHA */ id: string; /** * Commit message */ message: string | null; /** * When the commit was made (ISO 8601) */ dateCreated: string; /** * Pull request the commit belongs to */ pullRequest: { /** * Number or key of the pull request in the provider */ id: string; /** * Title of the pull request */ title: string | null; /** * Description of the pull request */ message: string | null; /** * When Sentry recorded the pull request (ISO 8601) */ dateCreated: string; /** * When the pull request was merged (ISO 8601). Null when it isn't merged */ mergedAt: string | null; /** * State of the pull request: merged, open, closed, draft or unknown. Null when not known */ status: 'merged' | 'open' | 'closed' | 'draft' | 'unknown' | null; /** * Repository of the pull request */ repository: { /** * URL of the repository */ url?: string | null; /** * Provider of the repository, with its id and name */ provider?: { [key: string]: string; }; /** * Status of the repository */ status?: 'active' | 'disabled' | 'pending_deletion' | 'deletion_in_progress'; /** * ID of the repository's integration. Null for repositories added without an integration */ integrationId?: string | null; /** * Identifier of the repository in the provider, such as owner/name */ externalSlug?: string | null; /** * ID of the repository in the provider */ externalId?: string | null; /** * Settings of the repository. Only set when expand includes settings. Null when it has none */ settings?: { /** * Whether AI code review is on for the repository */ enabledCodeReview: boolean; /** * Pull request events that start a code review: on_new_commit or on_ready_for_review */ codeReviewTriggers: Array; } | null; /** * ID of the repository */ id: string; /** * Name of the repository, such as owner/name */ name: string; /** * When the repository was added to Sentry (ISO 8601) */ dateCreated: string; }; /** * Author of the pull request, or an empty object when it has none */ author: { /** * SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access */ identities?: Array<{ /** * SSO identity ID */ id: string; /** * User's identifier at the auth provider */ name: string; /** * Organization the auth provider belongs to */ organization: { /** * Organization slug */ slug: string; /** * Organization name */ name: string; }; /** * Auth provider of the identity */ provider: { /** * Auth provider key, such as google or saml2 */ id: string; /** * Display name of the auth provider */ name: string; }; /** * When the identity was last verified by signing in through the auth provider */ dateVerified: string; /** * When the identity was last synced from the auth provider */ dateSynced: string; }>; /** * User avatar */ avatar?: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Two-factor authenticators of the user, without backup methods such as recovery codes */ authenticators?: Array<{ /** * Authenticator ID */ id: string; /** * Authenticator type, such as totp, sms, u2f or recovery */ type: string; /** * Display name of the authenticator type */ name: string; /** * When the authenticator was added */ dateCreated: string; /** * When the authenticator was last used, or null */ dateUsed: string | null; }>; /** * Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization */ canReset2fa?: boolean; /** * User ID */ id: string; /** * Display name: the user's name, or their email or username if no name is set */ name: string; /** * Username */ username: string; /** * Primary email address */ email: string; /** * Gravatar URL for the primary email address */ avatarUrl: string; /** * Whether the account is active */ isActive: boolean; /** * Whether the account is suspended. Suspended users can't sign in */ isSuspended: boolean; /** * Whether the user has a password set */ hasPasswordAuth: boolean; /** * Whether the account is managed, which stops the user from changing their username, password and similar details */ isManaged: boolean; /** * When the account was created */ dateJoined: string; /** * When the user last signed in, or null */ lastLogin: string | null; /** * Whether the user has two-factor authentication enabled */ has2fa: boolean; /** * When the user was last active, or null */ lastActive: string | null; /** * Whether the user is a superuser */ isSuperuser: boolean; /** * Whether the user has staff status */ isStaff: boolean; /** * Deprecated. Always an empty object */ experiments: { [key: string]: string; }; /** * Email addresses of the user. Only included for the requesting user or superusers; empty otherwise */ emails: Array<{ /** * Email ID */ id: string; /** * Email address */ email: string; /** * Whether the email address is verified */ is_verified: boolean; }>; } | { /** * Commit author name */ name: string | null; /** * Commit author email */ email: string; } | { [key: string]: unknown; }; /** * URL of the pull request in the provider, or null when the provider can't build one */ externalUrl: string | null; } | null; /** * How the commit was found as a suspect commit: via commit in release or via SCM integration. Empty for other commits */ suspectCommitType: string; /** * Repository the commit belongs to */ repository?: { /** * URL of the repository */ url?: string | null; /** * Provider of the repository, with its id and name */ provider?: { [key: string]: string; }; /** * Status of the repository */ status?: 'active' | 'disabled' | 'pending_deletion' | 'deletion_in_progress'; /** * ID of the repository's integration. Null for repositories added without an integration */ integrationId?: string | null; /** * Identifier of the repository in the provider, such as owner/name */ externalSlug?: string | null; /** * ID of the repository in the provider */ externalId?: string | null; /** * Settings of the repository. Only set when expand includes settings. Null when it has none */ settings?: { /** * Whether AI code review is on for the repository */ enabledCodeReview: boolean; /** * Pull request events that start a code review: on_new_commit or on_ready_for_review */ codeReviewTriggers: Array; } | null; /** * ID of the repository */ id: string; /** * Name of the repository, such as owner/name */ name: string; /** * When the repository was added to Sentry (ISO 8601) */ dateCreated: string; }; /** * Author of the commit: a Sentry user when the email matches one, otherwise the name and email from the commit */ author?: { /** * SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access */ identities?: Array<{ /** * SSO identity ID */ id: string; /** * User's identifier at the auth provider */ name: string; /** * Organization the auth provider belongs to */ organization: { /** * Organization slug */ slug: string; /** * Organization name */ name: string; }; /** * Auth provider of the identity */ provider: { /** * Auth provider key, such as google or saml2 */ id: string; /** * Display name of the auth provider */ name: string; }; /** * When the identity was last verified by signing in through the auth provider */ dateVerified: string; /** * When the identity was last synced from the auth provider */ dateSynced: string; }>; /** * User avatar */ avatar?: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Two-factor authenticators of the user, without backup methods such as recovery codes */ authenticators?: Array<{ /** * Authenticator ID */ id: string; /** * Authenticator type, such as totp, sms, u2f or recovery */ type: string; /** * Display name of the authenticator type */ name: string; /** * When the authenticator was added */ dateCreated: string; /** * When the authenticator was last used, or null */ dateUsed: string | null; }>; /** * Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization */ canReset2fa?: boolean; /** * User ID */ id: string; /** * Display name: the user's name, or their email or username if no name is set */ name: string; /** * Username */ username: string; /** * Primary email address */ email: string; /** * Gravatar URL for the primary email address */ avatarUrl: string; /** * Whether the account is active */ isActive: boolean; /** * Whether the account is suspended. Suspended users can't sign in */ isSuspended: boolean; /** * Whether the user has a password set */ hasPasswordAuth: boolean; /** * Whether the account is managed, which stops the user from changing their username, password and similar details */ isManaged: boolean; /** * When the account was created */ dateJoined: string; /** * When the user last signed in, or null */ lastLogin: string | null; /** * Whether the user has two-factor authentication enabled */ has2fa: boolean; /** * When the user was last active, or null */ lastActive: string | null; /** * Whether the user is a superuser */ isSuperuser: boolean; /** * Whether the user has staff status */ isStaff: boolean; /** * Deprecated. Always an empty object */ experiments: { [key: string]: string; }; /** * Email addresses of the user. Only included for the requesting user or superusers; empty otherwise */ emails: Array<{ /** * Email ID */ id: string; /** * Email address */ email: string; /** * Whether the email address is verified */ is_verified: boolean; }>; } | { /** * Commit author name */ name: string | null; /** * Commit author email */ email: string; } | { [key: string]: unknown; }; /** * Releases that contain the commit */ releases: Array<{ /** * Version of the release */ version: string; /** * Short version of the release */ shortVersion: string; /** * Commit ref of the release */ ref: string | null; /** * URL of the release */ url: string | null; /** * When the release was released (ISO 8601) */ dateReleased: string | null; /** * When the release was created (ISO 8601) */ dateCreated: string; }>; }>; }; export type ListOrganizationReleaseCommitsResponse2 = ListOrganizationReleaseCommitsResponses[keyof ListOrganizationReleaseCommitsResponses]; export type ListOrganizationReleaseDeploysData = { body?: never; path: { /** * The ID or slug of the organization the resource belongs to. */ organization_id_or_slug: string; /** * The version identifier of the release */ version: string; }; query?: { /** * A pointer to the last object fetched and its sort order; used to retrieve the next or previous results. */ cursor?: string; }; url: '/organizations/{organization_id_or_slug}/releases/{version}/deploys/'; }; export type ListOrganizationReleaseDeploysResponses = { 200: Array<{ /** * The ID of the deploy */ id: string; /** * The environment name */ environment: string; /** * An optional date that indicates when the deploy started */ dateStarted: string | null; /** * An optional date that indicates when the deploy ended */ dateFinished: string; /** * The optional name of the deploy */ name: string | null; /** * The optional URL that points to the deploy */ url: string | null; }>; }; export type ListOrganizationReleaseDeploysResponse = ListOrganizationReleaseDeploysResponses[keyof ListOrganizationReleaseDeploysResponses]; export type CreateOrganizationReleaseDeployData = { body: { /** * The environment you're deploying to */ environment: string; /** * The optional name of the deploy */ name?: string | null; /** * The optional URL that points to the deploy */ url?: string | null; /** * An optional date that indicates when the deploy started */ dateStarted?: string | null; /** * An optional date that indicates when the deploy ended. If not provided, the current time is used. */ dateFinished?: string | null; /** * The optional list of project slugs to create a deploy within. If not provided, deploys are created for all of the release's projects. */ projects?: Array; }; path: { /** * The ID or slug of the organization the resource belongs to. */ organization_id_or_slug: string; /** * The version identifier of the release */ version: string; }; query?: never; url: '/organizations/{organization_id_or_slug}/releases/{version}/deploys/'; }; export type CreateOrganizationReleaseDeployErrors = { /** * Bad Request */ 400: unknown; }; export type CreateOrganizationReleaseDeployResponses = { /** * Serializer for Deploy response objects */ 201: { /** * The ID of the deploy */ id: string; /** * The environment name */ environment: string; /** * An optional date that indicates when the deploy started */ dateStarted: string | null; /** * An optional date that indicates when the deploy ended */ dateFinished: string; /** * The optional name of the deploy */ name: string | null; /** * The optional URL that points to the deploy */ url: string | null; }; }; export type CreateOrganizationReleaseDeployResponse = CreateOrganizationReleaseDeployResponses[keyof CreateOrganizationReleaseDeployResponses]; export type ListOrganizationReleaseFilesData = { body?: never; path: { /** * The ID or slug of the organization the resource belongs to. */ organization_id_or_slug: string; /** * The version identifier of the release */ version: string; }; query?: { /** * If set, only files with these partial names will be returned. */ query?: Array; /** * If set, only files with these exact checksums will be returned. */ checksum?: Array; /** * A pointer to the last object fetched and its sort order; used to retrieve the next or previous results. */ cursor?: string; }; url: '/organizations/{organization_id_or_slug}/releases/{version}/files/'; }; export type ListOrganizationReleaseFilesErrors = { /** * Unauthorized */ 401: unknown; /** * Forbidden */ 403: unknown; /** * Not Found */ 404: unknown; }; export type ListOrganizationReleaseFilesResponses = { 200: Array<{ /** * ID of the release file. Files that only exist in an artifact bundle get a base64-encoded ID built from the dist and file name */ id: string | Blob | File | null; /** * Name of the file, usually its URL */ name: string; /** * Name of the distribution the file belongs to */ dist: string | null; /** * HTTP headers stored with the file, such as Content-Type and Sourcemap */ headers: { [key: string]: string; }; /** * Size of the file in bytes */ size: number | null; /** * SHA-1 checksum of the file */ sha1: string | null; /** * When the file was uploaded (ISO 8601) */ dateCreated: string; }>; }; export type ListOrganizationReleaseFilesResponse = ListOrganizationReleaseFilesResponses[keyof ListOrganizationReleaseFilesResponses]; export type UploadOrganizationReleaseFileData = { /** * Documents the multipart/form-data body of the release file upload endpoints. * * The endpoints read the upload directly off ``request.data``; this serializer * exists to describe the request body in the OpenAPI schema. */ body: { /** * The multipart-encoded file contents to upload. */ file: string; /** * The name (full path) the file will be referenced as, e.g. the full web URI of a JavaScript file. Defaults to the uploaded file's name. */ name?: string; /** * The name of the distribution to associate the file with. */ dist?: string; /** * Headers to attach to the file, each formatted as a `"key:value"` string (for example, to define a content type). May be supplied multiple times. */ header?: Array; }; path: { /** * The ID or slug of the organization the resource belongs to. */ organization_id_or_slug: string; /** * The version identifier of the release */ version: string; }; query?: never; url: '/organizations/{organization_id_or_slug}/releases/{version}/files/'; }; export type UploadOrganizationReleaseFileErrors = { /** * Bad Request */ 400: unknown; /** * Unauthorized */ 401: unknown; /** * Forbidden */ 403: unknown; /** * Not Found */ 404: unknown; /** * Conflict */ 409: unknown; }; export type UploadOrganizationReleaseFileResponses = { 201: { /** * ID of the release file. Files that only exist in an artifact bundle get a base64-encoded ID built from the dist and file name */ id: string | Blob | File | null; /** * Name of the file, usually its URL */ name: string; /** * Name of the distribution the file belongs to */ dist: string | null; /** * HTTP headers stored with the file, such as Content-Type and Sourcemap */ headers: { [key: string]: string; }; /** * Size of the file in bytes */ size: number | null; /** * SHA-1 checksum of the file */ sha1: string | null; /** * When the file was uploaded (ISO 8601) */ dateCreated: string; }; }; export type UploadOrganizationReleaseFileResponse = UploadOrganizationReleaseFileResponses[keyof UploadOrganizationReleaseFileResponses]; export type DeleteOrganizationReleaseFileData = { body?: never; path: { /** * The ID or slug of the organization the resource belongs to. */ organization_id_or_slug: string; /** * The version identifier of the release */ version: string; /** * The ID of the release file. */ file_id: string; }; query?: never; url: '/organizations/{organization_id_or_slug}/releases/{version}/files/{file_id}/'; }; export type DeleteOrganizationReleaseFileErrors = { /** * Unauthorized */ 401: unknown; /** * Forbidden */ 403: unknown; /** * Not Found */ 404: unknown; }; export type DeleteOrganizationReleaseFileResponses = { /** * No Content */ 204: void; }; export type DeleteOrganizationReleaseFileResponse = DeleteOrganizationReleaseFileResponses[keyof DeleteOrganizationReleaseFileResponses]; export type GetOrganizationReleaseFileData = { body?: never; path: { /** * The ID or slug of the organization the resource belongs to. */ organization_id_or_slug: string; /** * The version identifier of the release */ version: string; /** * The ID of the release file. */ file_id: string; }; query?: { /** * If set, download the file contents instead of returning metadata. */ download?: string; }; url: '/organizations/{organization_id_or_slug}/releases/{version}/files/{file_id}/'; }; export type GetOrganizationReleaseFileErrors = { /** * Unauthorized */ 401: unknown; /** * Forbidden */ 403: unknown; /** * Not Found */ 404: unknown; }; export type GetOrganizationReleaseFileResponses = { 200: { /** * ID of the release file. Files that only exist in an artifact bundle get a base64-encoded ID built from the dist and file name */ id: string | Blob | File | null; /** * Name of the file, usually its URL */ name: string; /** * Name of the distribution the file belongs to */ dist: string | null; /** * HTTP headers stored with the file, such as Content-Type and Sourcemap */ headers: { [key: string]: string; }; /** * Size of the file in bytes */ size: number | null; /** * SHA-1 checksum of the file */ sha1: string | null; /** * When the file was uploaded (ISO 8601) */ dateCreated: string; }; }; export type GetOrganizationReleaseFileResponse = GetOrganizationReleaseFileResponses[keyof GetOrganizationReleaseFileResponses]; export type UpdateOrganizationReleaseFileData = { body: { /** * The new name (full path) of the file. */ name: string; }; path: { /** * The ID or slug of the organization the resource belongs to. */ organization_id_or_slug: string; /** * The version identifier of the release */ version: string; /** * The ID of the release file. */ file_id: string; }; query?: never; url: '/organizations/{organization_id_or_slug}/releases/{version}/files/{file_id}/'; }; export type UpdateOrganizationReleaseFileErrors = { /** * Bad Request */ 400: unknown; /** * Unauthorized */ 401: unknown; /** * Forbidden */ 403: unknown; /** * Not Found */ 404: unknown; }; export type UpdateOrganizationReleaseFileResponses = { 200: { /** * ID of the release file. Files that only exist in an artifact bundle get a base64-encoded ID built from the dist and file name */ id: string | Blob | File | null; /** * Name of the file, usually its URL */ name: string; /** * Name of the distribution the file belongs to */ dist: string | null; /** * HTTP headers stored with the file, such as Content-Type and Sourcemap */ headers: { [key: string]: string; }; /** * Size of the file in bytes */ size: number | null; /** * SHA-1 checksum of the file */ sha1: string | null; /** * When the file was uploaded (ISO 8601) */ dateCreated: string; }; }; export type UpdateOrganizationReleaseFileResponse = UpdateOrganizationReleaseFileResponses[keyof UpdateOrganizationReleaseFileResponses]; export type GetOrganizationPreviousReleaseWithCommitsData = { body?: never; path: { /** * The ID or slug of the organization the resource belongs to. */ organization_id_or_slug: string; /** * The version identifier of the release */ version: string; }; query?: { /** * The IDs or slugs of projects to filter by. Project slugs are unique within each organization. Omit this parameter to include all accessible projects. `-1` is also accepted to include all accessible projects. * For example, the following are valid parameters: * - `/?project=1234&project=56789` * - `/?project=android&project=javascript-react` * - `/?project=-1` * */ project?: Array; }; url: '/organizations/{organization_id_or_slug}/releases/{version}/previous-with-commits/'; }; export type GetOrganizationPreviousReleaseWithCommitsErrors = { /** * Unauthorized */ 401: unknown; /** * Forbidden */ 403: unknown; /** * Not Found */ 404: unknown; }; export type GetOrganizationPreviousReleaseWithCommitsResponses = { 200: { /** * Version control reference, such as a commit SHA or tag */ ref?: string | null; /** * Release URL */ url?: string | null; /** * When the release went live (ISO 8601) */ dateReleased?: string | null; /** * When the release was created (ISO 8601) */ dateCreated?: string | null; /** * When the release started (ISO 8601) */ dateStarted?: string | null; /** * Release owner */ owner?: { /** * SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access */ identities?: Array<{ /** * SSO identity ID */ id: string; /** * User's identifier at the auth provider */ name: string; /** * Organization the auth provider belongs to */ organization: { /** * Organization slug */ slug: string; /** * Organization name */ name: string; }; /** * Auth provider of the identity */ provider: { /** * Auth provider key, such as google or saml2 */ id: string; /** * Display name of the auth provider */ name: string; }; /** * When the identity was last verified by signing in through the auth provider */ dateVerified: string; /** * When the identity was last synced from the auth provider */ dateSynced: string; }>; /** * User avatar */ avatar?: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Two-factor authenticators of the user, without backup methods such as recovery codes */ authenticators?: Array<{ /** * Authenticator ID */ id: string; /** * Authenticator type, such as totp, sms, u2f or recovery */ type: string; /** * Display name of the authenticator type */ name: string; /** * When the authenticator was added */ dateCreated: string; /** * When the authenticator was last used, or null */ dateUsed: string | null; }>; /** * Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization */ canReset2fa?: boolean; /** * User ID */ id: string; /** * Display name: the user's name, or their email or username if no name is set */ name: string; /** * Username */ username: string; /** * Primary email address */ email: string; /** * Gravatar URL for the primary email address */ avatarUrl: string; /** * Whether the account is active */ isActive: boolean; /** * Whether the account is suspended. Suspended users can't sign in */ isSuspended: boolean; /** * Whether the user has a password set */ hasPasswordAuth: boolean; /** * Whether the account is managed, which stops the user from changing their username, password and similar details */ isManaged: boolean; /** * When the account was created */ dateJoined: string; /** * When the user last signed in, or null */ lastLogin: string | null; /** * Whether the user has two-factor authentication enabled */ has2fa: boolean; /** * When the user was last active, or null */ lastActive: string | null; /** * Whether the user is a superuser */ isSuperuser: boolean; /** * Whether the user has staff status */ isStaff: boolean; /** * Deprecated. Always an empty object */ experiments: { [key: string]: string; }; /** * Email addresses of the user. Only included for the requesting user or superusers; empty otherwise */ emails: Array<{ /** * Email ID */ id: string; /** * Email address */ email: string; /** * Whether the email address is verified */ is_verified: boolean; }>; } | null; /** * Most recent commit in the release */ lastCommit?: { /** * Commit SHA */ id: string; /** * Commit message */ message: string | null; /** * When the commit was made (ISO 8601) */ dateCreated: string; /** * Pull request the commit belongs to */ pullRequest: { /** * Number or key of the pull request in the provider */ id: string; /** * Title of the pull request */ title: string | null; /** * Description of the pull request */ message: string | null; /** * When Sentry recorded the pull request (ISO 8601) */ dateCreated: string; /** * When the pull request was merged (ISO 8601). Null when it isn't merged */ mergedAt: string | null; /** * State of the pull request: merged, open, closed, draft or unknown. Null when not known */ status: 'merged' | 'open' | 'closed' | 'draft' | 'unknown' | null; /** * Repository of the pull request */ repository: { /** * URL of the repository */ url?: string | null; /** * Provider of the repository, with its id and name */ provider?: { [key: string]: string; }; /** * Status of the repository */ status?: 'active' | 'disabled' | 'pending_deletion' | 'deletion_in_progress'; /** * ID of the repository's integration. Null for repositories added without an integration */ integrationId?: string | null; /** * Identifier of the repository in the provider, such as owner/name */ externalSlug?: string | null; /** * ID of the repository in the provider */ externalId?: string | null; /** * Settings of the repository. Only set when expand includes settings. Null when it has none */ settings?: { /** * Whether AI code review is on for the repository */ enabledCodeReview: boolean; /** * Pull request events that start a code review: on_new_commit or on_ready_for_review */ codeReviewTriggers: Array; } | null; /** * ID of the repository */ id: string; /** * Name of the repository, such as owner/name */ name: string; /** * When the repository was added to Sentry (ISO 8601) */ dateCreated: string; }; /** * Author of the pull request, or an empty object when it has none */ author: { /** * SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access */ identities?: Array<{ /** * SSO identity ID */ id: string; /** * User's identifier at the auth provider */ name: string; /** * Organization the auth provider belongs to */ organization: { /** * Organization slug */ slug: string; /** * Organization name */ name: string; }; /** * Auth provider of the identity */ provider: { /** * Auth provider key, such as google or saml2 */ id: string; /** * Display name of the auth provider */ name: string; }; /** * When the identity was last verified by signing in through the auth provider */ dateVerified: string; /** * When the identity was last synced from the auth provider */ dateSynced: string; }>; /** * User avatar */ avatar?: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Two-factor authenticators of the user, without backup methods such as recovery codes */ authenticators?: Array<{ /** * Authenticator ID */ id: string; /** * Authenticator type, such as totp, sms, u2f or recovery */ type: string; /** * Display name of the authenticator type */ name: string; /** * When the authenticator was added */ dateCreated: string; /** * When the authenticator was last used, or null */ dateUsed: string | null; }>; /** * Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization */ canReset2fa?: boolean; /** * User ID */ id: string; /** * Display name: the user's name, or their email or username if no name is set */ name: string; /** * Username */ username: string; /** * Primary email address */ email: string; /** * Gravatar URL for the primary email address */ avatarUrl: string; /** * Whether the account is active */ isActive: boolean; /** * Whether the account is suspended. Suspended users can't sign in */ isSuspended: boolean; /** * Whether the user has a password set */ hasPasswordAuth: boolean; /** * Whether the account is managed, which stops the user from changing their username, password and similar details */ isManaged: boolean; /** * When the account was created */ dateJoined: string; /** * When the user last signed in, or null */ lastLogin: string | null; /** * Whether the user has two-factor authentication enabled */ has2fa: boolean; /** * When the user was last active, or null */ lastActive: string | null; /** * Whether the user is a superuser */ isSuperuser: boolean; /** * Whether the user has staff status */ isStaff: boolean; /** * Deprecated. Always an empty object */ experiments: { [key: string]: string; }; /** * Email addresses of the user. Only included for the requesting user or superusers; empty otherwise */ emails: Array<{ /** * Email ID */ id: string; /** * Email address */ email: string; /** * Whether the email address is verified */ is_verified: boolean; }>; } | { /** * Commit author name */ name: string | null; /** * Commit author email */ email: string; } | { [key: string]: unknown; }; /** * URL of the pull request in the provider, or null when the provider can't build one */ externalUrl: string | null; } | null; /** * How the commit was found as a suspect commit: via commit in release or via SCM integration. Empty for other commits */ suspectCommitType: string; /** * Repository the commit belongs to */ repository?: { /** * URL of the repository */ url?: string | null; /** * Provider of the repository, with its id and name */ provider?: { [key: string]: string; }; /** * Status of the repository */ status?: 'active' | 'disabled' | 'pending_deletion' | 'deletion_in_progress'; /** * ID of the repository's integration. Null for repositories added without an integration */ integrationId?: string | null; /** * Identifier of the repository in the provider, such as owner/name */ externalSlug?: string | null; /** * ID of the repository in the provider */ externalId?: string | null; /** * Settings of the repository. Only set when expand includes settings. Null when it has none */ settings?: { /** * Whether AI code review is on for the repository */ enabledCodeReview: boolean; /** * Pull request events that start a code review: on_new_commit or on_ready_for_review */ codeReviewTriggers: Array; } | null; /** * ID of the repository */ id: string; /** * Name of the repository, such as owner/name */ name: string; /** * When the repository was added to Sentry (ISO 8601) */ dateCreated: string; }; /** * Author of the commit: a Sentry user when the email matches one, otherwise the name and email from the commit */ author?: { /** * SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access */ identities?: Array<{ /** * SSO identity ID */ id: string; /** * User's identifier at the auth provider */ name: string; /** * Organization the auth provider belongs to */ organization: { /** * Organization slug */ slug: string; /** * Organization name */ name: string; }; /** * Auth provider of the identity */ provider: { /** * Auth provider key, such as google or saml2 */ id: string; /** * Display name of the auth provider */ name: string; }; /** * When the identity was last verified by signing in through the auth provider */ dateVerified: string; /** * When the identity was last synced from the auth provider */ dateSynced: string; }>; /** * User avatar */ avatar?: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Two-factor authenticators of the user, without backup methods such as recovery codes */ authenticators?: Array<{ /** * Authenticator ID */ id: string; /** * Authenticator type, such as totp, sms, u2f or recovery */ type: string; /** * Display name of the authenticator type */ name: string; /** * When the authenticator was added */ dateCreated: string; /** * When the authenticator was last used, or null */ dateUsed: string | null; }>; /** * Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization */ canReset2fa?: boolean; /** * User ID */ id: string; /** * Display name: the user's name, or their email or username if no name is set */ name: string; /** * Username */ username: string; /** * Primary email address */ email: string; /** * Gravatar URL for the primary email address */ avatarUrl: string; /** * Whether the account is active */ isActive: boolean; /** * Whether the account is suspended. Suspended users can't sign in */ isSuspended: boolean; /** * Whether the user has a password set */ hasPasswordAuth: boolean; /** * Whether the account is managed, which stops the user from changing their username, password and similar details */ isManaged: boolean; /** * When the account was created */ dateJoined: string; /** * When the user last signed in, or null */ lastLogin: string | null; /** * Whether the user has two-factor authentication enabled */ has2fa: boolean; /** * When the user was last active, or null */ lastActive: string | null; /** * Whether the user is a superuser */ isSuperuser: boolean; /** * Whether the user has staff status */ isStaff: boolean; /** * Deprecated. Always an empty object */ experiments: { [key: string]: string; }; /** * Email addresses of the user. Only included for the requesting user or superusers; empty otherwise */ emails: Array<{ /** * Email ID */ id: string; /** * Email address */ email: string; /** * Whether the email address is verified */ is_verified: boolean; }>; } | { /** * Commit author name */ name: string | null; /** * Commit author email */ email: string; } | { [key: string]: unknown; }; } | null; /** * Most recent deploy of the release */ lastDeploy?: { /** * When the deploy started (ISO 8601) */ dateStarted?: string | null; /** * URL of the deploy */ url?: string | null; /** * ID of the deploy */ id: string; /** * Environment the release was deployed to */ environment: string; /** * When the deploy finished (ISO 8601) */ dateFinished: string; /** * Name of the deploy */ name: string | null; } | null; /** * When the release received its first event (ISO 8601) */ firstEvent?: string | null; /** * When the release received its most recent event (ISO 8601) */ lastEvent?: string | null; /** * Session bounds and neighboring release versions in the current project, when a project is requested */ currentProjectMeta?: { /** * Start of the release's sessions in the project (ISO 8601) */ sessionsLowerBound?: string | null; /** * End of the release's sessions in the project (ISO 8601) */ sessionsUpperBound?: string | null; /** * Version of the next release in the project */ nextReleaseVersion?: string | null; /** * Version of the previous release in the project */ prevReleaseVersion?: string | null; /** * Version of the first release in the project */ firstReleaseVersion?: string | null; /** * Version of the latest release in the project */ lastReleaseVersion?: string | null; } | null; /** * User agent of the client that created the release */ userAgent?: string | null; /** * Adoption stage of the release in each project, keyed by project slug */ adoptionStages?: { [key: string]: { /** * Adoption stage of the release */ stage: 'adopted' | 'low_adoption' | 'replaced'; /** * When the release was adopted (ISO 8601) */ adopted: string | null; /** * When the release stopped being adopted (ISO 8601) */ unadopted: string | null; }; } | null; /** * Release ID */ id: number; /** * Version of the release */ version: string; /** * Number of new issues first seen in the release */ newGroups: number; /** * Release status */ status: 'open' | 'archived'; /** * Shortened release version */ shortVersion: string; /** * Parsed version information */ versionInfo: { /** * Human-readable version, such as 1.0.0 (123) */ description?: string; /** * Package name parsed from the release version, such as com.example.app */ package: string | null; /** * Parsed version: the raw string, plus major, minor, patch, pre, buildCode and components when it's a semantic version */ version: { /** * Major version */ major?: number; /** * Minor version */ minor?: number; /** * Patch version */ patch?: number; /** * Pre-release identifier, such as rc1 */ pre?: string | null; /** * Build code, such as 123 */ buildCode?: string | null; /** * Number of version components given */ components?: number; /** * Version string the release was created with */ raw: string; }; /** * Build hash parsed from the release version */ buildHash: string | null; } | null; /** * Extra data stored on the release */ data: { [key: string]: unknown; }; /** * Number of commits in the release */ commitCount: number; /** * Number of deploys of the release */ deployCount: number; /** * Authors of the release's commits */ authors: Array<{ /** * SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access */ identities?: Array<{ /** * SSO identity ID */ id: string; /** * User's identifier at the auth provider */ name: string; /** * Organization the auth provider belongs to */ organization: { /** * Organization slug */ slug: string; /** * Organization name */ name: string; }; /** * Auth provider of the identity */ provider: { /** * Auth provider key, such as google or saml2 */ id: string; /** * Display name of the auth provider */ name: string; }; /** * When the identity was last verified by signing in through the auth provider */ dateVerified: string; /** * When the identity was last synced from the auth provider */ dateSynced: string; }>; /** * User avatar */ avatar?: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Two-factor authenticators of the user, without backup methods such as recovery codes */ authenticators?: Array<{ /** * Authenticator ID */ id: string; /** * Authenticator type, such as totp, sms, u2f or recovery */ type: string; /** * Display name of the authenticator type */ name: string; /** * When the authenticator was added */ dateCreated: string; /** * When the authenticator was last used, or null */ dateUsed: string | null; }>; /** * Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization */ canReset2fa?: boolean; /** * User ID */ id: string; /** * Display name: the user's name, or their email or username if no name is set */ name: string; /** * Username */ username: string; /** * Primary email address */ email: string; /** * Gravatar URL for the primary email address */ avatarUrl: string; /** * Whether the account is active */ isActive: boolean; /** * Whether the account is suspended. Suspended users can't sign in */ isSuspended: boolean; /** * Whether the user has a password set */ hasPasswordAuth: boolean; /** * Whether the account is managed, which stops the user from changing their username, password and similar details */ isManaged: boolean; /** * When the account was created */ dateJoined: string; /** * When the user last signed in, or null */ lastLogin: string | null; /** * Whether the user has two-factor authentication enabled */ has2fa: boolean; /** * When the user was last active, or null */ lastActive: string | null; /** * Whether the user is a superuser */ isSuperuser: boolean; /** * Whether the user has staff status */ isStaff: boolean; /** * Deprecated. Always an empty object */ experiments: { [key: string]: string; }; /** * Email addresses of the user. Only included for the requesting user or superusers; empty otherwise */ emails: Array<{ /** * Email ID */ id: string; /** * Email address */ email: string; /** * Whether the email address is verified */ is_verified: boolean; }>; } | { /** * Commit author name */ name: string | null; /** * Commit author email */ email: string; }>; /** * Projects in the release */ projects: Array<{ /** * Release health data for the project. Only included when health data is requested */ healthData?: { /** * Median session duration in seconds */ durationP50?: number | null; /** * 90th percentile session duration in seconds */ durationP90?: number | null; /** * Percentage of users who didn't experience a crash */ crashFreeUsers?: number | null; /** * Percentage of sessions that didn't crash */ crashFreeSessions?: number | null; /** * Total number of users in the release */ totalUsers?: number | null; /** * Number of users in the release over the last 24 hours */ totalUsers24h?: number | null; /** * Number of users in the project over the last 24 hours */ totalProjectUsers24h?: number | null; /** * Total number of sessions in the release */ totalSessions?: number | null; /** * Number of sessions in the release over the last 24 hours */ totalSessions24h?: number | null; /** * Number of sessions in the project over the last 24 hours */ totalProjectSessions24h?: number | null; /** * Percentage of the project's users over the last 24 hours that were on the release */ adoption?: number | null; /** * Percentage of the project's sessions over the last 24 hours that were on the release */ sessionsAdoption?: number | null; /** * Number of crashed sessions */ sessionsCrashed: number; /** * Number of sessions with errors */ sessionsErrored: number; /** * Whether the release has session data */ hasHealthData: boolean; /** * Session or user counts over time, keyed by stats period */ stats: { [key: string]: Array>; }; } | null; /** * When the release was released in the project (ISO 8601) */ dateReleased?: string | null; /** * When the release was created (ISO 8601) */ dateCreated?: string | null; /** * When work on the release started (ISO 8601) */ dateStarted?: string | null; /** * ID of the project */ id: number; /** * Slug of the project */ slug: string; /** * Name of the project */ name: string; /** * Platform of the project */ platform: string | null; /** * Platforms of the project */ platforms: Array | null; /** * Whether the release has session data in the project */ hasHealthData: boolean; /** * Number of new issues first seen in the release in the project */ newGroups: number; }>; } | { [key: string]: unknown; }; }; export type GetOrganizationPreviousReleaseWithCommitsResponse = GetOrganizationPreviousReleaseWithCommitsResponses[keyof GetOrganizationPreviousReleaseWithCommitsResponses]; export type GetOrganizationReplayCountData = { body?: never; path: { /** * The ID or slug of the organization the resource belongs to. */ organization_id_or_slug: string; }; query: { /** * Filters results by using [query syntax](/product/sentry-basics/search/). * * Example: `query=(transaction:foo AND release:abc) OR (transaction:[bar,baz] AND release:def)` * */ query: string; /** * The data source to query replays from. * * * `errors` * * `search_issues` * * `spans` */ data_source: 'errors' | 'search_issues' | 'spans'; /** * The name of environments to filter by. */ environment?: Array; /** * The start of the period of time for the query, expected in ISO-8601 format. For example, `2001-12-14T12:34:56.7890`. */ start?: string; /** * The end of the period of time for the query, expected in ISO-8601 format. For example, `2001-12-14T12:34:56.7890`. */ end?: string; /** * The period of time for the query, will override the start & end parameters, a number followed by one of: * - `d` for days * - `h` for hours * - `m` for minutes * - `s` for seconds * - `w` for weeks * * For example, `24h`, to mean query data starting from 24 hours ago to now. */ statsPeriod?: string; /** * The IDs or slugs of projects to filter by. Project slugs are unique within each organization. Omit this parameter to include all accessible projects. `-1` is also accepted to include all accessible projects. * For example, the following are valid parameters: * - `/?project=1234&project=56789` * - `/?project=android&project=javascript-react` * - `/?project=-1` * */ project?: Array; /** * The legacy project slug filter. Prefer `project`, which accepts project IDs or slugs. Use `$all` to include all available projects. For example, the following are valid parameters: * - `/?projectSlug=$all` * - `/?projectSlug=android&projectSlug=javascript-react` * */ project_id_or_slug?: Array; /** * If true, return issue IDs rather than counts. */ returnIds?: boolean; }; url: '/organizations/{organization_id_or_slug}/replay-count/'; }; export type GetOrganizationReplayCountErrors = { /** * Bad Request */ 400: unknown; /** * Forbidden */ 403: unknown; /** * Not Found */ 404: unknown; /** * The transactions, discover, and events datasets are deprecated and no longer available. */ 410: unknown; }; export type GetOrganizationReplayCountResponses = { 200: { [key: string]: number; }; }; export type GetOrganizationReplayCountResponse = GetOrganizationReplayCountResponses[keyof GetOrganizationReplayCountResponses]; export type ListOrganizationReplaySelectorsData = { body?: never; path: { /** * The ID or slug of the organization the resource belongs to. */ organization_id_or_slug: string; }; query?: { /** * The environment to filter by. */ environment?: Array; /** * This defines the range of the time series, relative to now. The range is given in a `` format. For example `1d` for a one day range. Possible units are `m` for minutes, `h` for hours, `d` for days and `w` for weeks.You must either provide a `statsPeriod`, or a `start` and `end`. */ statsPeriod?: string; /** * This defines the start of the time series range as an explicit datetime, either in UTC ISO8601 or epoch seconds.Use along with `end` instead of `statsPeriod`. */ start?: string; /** * This defines the inclusive end of the time series range as an explicit datetime, either in UTC ISO8601 or epoch seconds.Use along with `start` instead of `statsPeriod`. */ end?: string; /** * A list of project IDs or slugs to filter by. */ project?: Array; /** * A list of project slugs to filter your results by. */ projectSlug?: Array; /** * The field to sort the output by. */ sort?: string; /** * The field to sort the output by. */ sortBy?: string; /** * The field to sort the output by. */ orderBy?: string; /** * A pointer to the last object fetched and its sort order; used to retrieve the next or previous results. */ cursor?: string; /** * Limit the number of rows to return in the result. Default and maximum allowed is 100. */ per_page?: number; /** * Filters results by using [query syntax](/product/sentry-basics/search/). * * Example: `query=(transaction:foo AND release:abc) OR (transaction:[bar,baz] AND release:def)` * */ query?: string; }; url: '/organizations/{organization_id_or_slug}/replay-selectors/'; }; export type ListOrganizationReplaySelectorsErrors = { /** * Bad Request */ 400: unknown; /** * Forbidden */ 403: unknown; }; export type ListOrganizationReplaySelectorsResponses = { 200: { /** * Selectors of clicked elements that match the query */ data: Array<{ /** * Number of dead clicks on the element */ count_dead_clicks?: number; /** * Number of rage clicks on the element */ count_rage_clicks?: number; /** * CSS selector of the element, built from its tag, ID and classes */ dom_element?: string; /** * Attributes of the clicked element */ element?: { /** * `alt` attribute of the element */ alt: string; /** * `aria-label` attribute of the element */ aria_label: string; /** * CSS classes of the element */ class: Array; /** * `data-sentry-component` attribute of the element */ component_name: string; /** * `id` attribute of the element */ id: string; /** * `role` attribute of the element */ role: string; /** * HTML tag of the element */ tag: string; /** * `data-testid` attribute of the element */ testid: string; /** * `title` attribute of the element */ title: string; }; /** * ID of the project the clicks were recorded in */ project_id?: string; }>; }; }; export type ListOrganizationReplaySelectorsResponse = ListOrganizationReplaySelectorsResponses[keyof ListOrganizationReplaySelectorsResponses]; export type ListOrganizationReplaysData = { body?: never; path: { /** * The ID or slug of the organization the resource belongs to. */ organization_id_or_slug: string; }; query?: { /** * * This defines the range of the time series, relative to now. The range is given in a * `` format. For example `1d` for a one day range. Possible units are `m` for * minutes, `h` for hours, `d` for days and `w` for weeks. You must either provide a * `statsPeriod`, or a `start` and `end`. * */ statsPeriod?: string; /** * * This defines the start of the time series range as an explicit datetime, either in UTC * ISO8601 or epoch seconds. Use along with `end` instead of `statsPeriod`. * */ start?: string; /** * * This defines the inclusive end of the time series range as an explicit datetime, either in * UTC ISO8601 or epoch seconds. Use along with `start` instead of `statsPeriod`. * */ end?: string; /** * Specifies a field that should be marshaled in the output. Invalid fields will be rejected. */ field?: Array<'activity' | 'browser' | 'clicks' | 'count_dead_clicks' | 'count_errors' | 'count_infos' | 'count_rage_clicks' | 'count_segments' | 'count_urls' | 'count_warnings' | 'device' | 'dist' | 'duration' | 'environment' | 'error_ids' | 'finished_at' | 'has_viewed' | 'id' | 'is_archived' | 'os' | 'ota_updates' | 'platform' | 'project_id' | 'releases' | 'replay_type' | 'sdk' | 'segment_names' | 'started_at' | 'tags' | 'trace_ids' | 'urls' | 'user'>; /** * A list of project IDs or slugs to filter by. */ project?: Array; /** * A list of project slugs to filter your results by. */ projectSlug?: Array; /** * The environments to filter by. */ environment?: Array; /** * The field to sort the output by. */ sort?: string; /** * The field to sort the output by. */ sortBy?: string; /** * The field to sort the output by. */ orderBy?: string; /** * A structured query string to filter the output by. */ query?: string; /** * Internal referrer identifier used for query tracing. */ queryReferrer?: string; /** * Limit the number of rows to return in the result. */ per_page?: number; /** * The cursor parameter is used to paginate results. See [here](https://docs.sentry.io/api/pagination/) for how to use this query parameter */ cursor?: string; }; url: '/organizations/{organization_id_or_slug}/replays/'; }; export type ListOrganizationReplaysErrors = { /** * Bad Request */ 400: unknown; /** * Forbidden */ 403: unknown; }; export type ListOrganizationReplaysResponses = { 200: { /** * Replays that match the query */ data: Array<{ /** * Replay ID */ id?: string; /** * ID of the project the replay belongs to */ project_id?: string; /** * IDs of traces linked to the replay */ trace_ids?: Array; /** * IDs of errors linked to the replay */ error_ids?: Array; /** * Environment of the replay */ environment?: string | null; /** * Replay tags */ tags?: { [key: string]: Array; } | Array; /** * User metadata */ user?: { /** * ID of the user */ id?: string | null; /** * Username of the user */ username?: string | null; /** * Email address of the user */ email?: string | null; /** * IP address of the user */ ip?: string | null; /** * Name to display for the user: the username, email, ID or IP address, whichever is set first */ display_name?: string | null; /** * Geographic location of the user */ geo?: { /** * City of the user */ city?: string | null; /** * Country code of the user */ country_code?: string | null; /** * Region of the user */ region?: string | null; /** * Subdivision of the user's country, such as a state or province */ subdivision?: string | null; }; }; /** * SDK metadata */ sdk?: { /** * Name of the SDK that recorded the replay */ name?: string | null; /** * Version of the SDK that recorded the replay */ version?: string | null; }; /** * Operating system metadata */ os?: { /** * Name of the operating system */ name?: string | null; /** * Version of the operating system */ version?: string | null; }; /** * Browser metadata */ browser?: { /** * Name of the browser */ name?: string | null; /** * Version of the browser */ version?: string | null; }; /** * Device metadata */ device?: { /** * Name of the device */ name?: string | null; /** * Brand of the device */ brand?: string | null; /** * Model of the device */ model?: string | null; /** * Family of the device */ family?: string | null; }; /** * Over-the-air update metadata */ ota_updates?: { /** * Channel of the over-the-air update */ channel?: string | null; /** * Runtime version of the over-the-air update */ runtime_version?: string | null; /** * ID of the over-the-air update */ update_id?: string | null; }; /** * Whether the replay is archived */ is_archived?: boolean | null; /** * URLs visited during the replay */ urls?: Array | null; /** * Names of the replay's segments */ segment_names?: Array | null; /** * Clicks recorded during the replay, one object per click */ clicks?: Array<{ /** * Alt text of the clicked element */ 'click.alt': string | null; /** * ARIA label of the clicked element */ 'click.label': string | null; /** * CSS classes of the clicked element */ 'click.classes': Array | null; /** * Name of the frontend component that was clicked */ 'click.component_name': string | null; /** * ID of the clicked element */ 'click.id': string | null; /** * Role of the clicked element */ 'click.role': string | null; /** * HTML tag of the clicked element */ 'click.tag': string | null; /** * Test ID of the clicked element */ 'click.testid': string | null; /** * Text of the clicked element */ 'click.text': string | null; /** * Title of the clicked element */ 'click.title': string | null; }>; /** * Number of dead clicks */ count_dead_clicks?: number | null; /** * Number of rage clicks */ count_rage_clicks?: number | null; /** * Number of errors linked to the replay */ count_errors?: number | null; /** * Replay duration in seconds */ duration?: number | null; /** * When the replay finished (ISO 8601) */ finished_at?: string | null; /** * When the replay started (ISO 8601) */ started_at?: string | null; /** * Replay activity score */ activity?: number | null; /** * Number of URLs visited during the replay */ count_urls?: number | null; /** * Recording mode of the replay, such as session or buffer */ replay_type?: string; /** * Number of recording segments */ count_segments?: number | null; /** * Platform of the replay */ platform?: string | null; /** * Releases associated with the replay */ releases?: Array; /** * Distribution of the replay */ dist?: string | null; /** * Number of warning events linked to the replay */ count_warnings?: number | null; /** * Number of info events linked to the replay */ count_infos?: number | null; /** * Whether the requesting user has viewed the replay */ has_viewed?: boolean; }>; }; }; export type ListOrganizationReplaysResponse = ListOrganizationReplaysResponses[keyof ListOrganizationReplaysResponses]; export type GetOrganizationReplayData = { body?: never; path: { /** * The ID or slug of the organization the resource belongs to. */ organization_id_or_slug: string; /** * The ID of the replay you'd like to retrieve. It is a 32-character hexadecimal string. */ replay_id: string; }; query?: { /** * * This defines the range of the time series, relative to now. The range is given in a * `` format. For example `1d` for a one day range. Possible units are `m` for * minutes, `h` for hours, `d` for days and `w` for weeks. You must either provide a * `statsPeriod`, or a `start` and `end`. * */ statsPeriod?: string; /** * * This defines the start of the time series range as an explicit datetime, either in UTC * ISO8601 or epoch seconds. Use along with `end` instead of `statsPeriod`. * */ start?: string; /** * * This defines the inclusive end of the time series range as an explicit datetime, either in * UTC ISO8601 or epoch seconds. Use along with `start` instead of `statsPeriod`. * */ end?: string; /** * Specifies a field that should be marshaled in the output. Invalid fields will be rejected. */ field?: Array<'activity' | 'browser' | 'clicks' | 'count_dead_clicks' | 'count_errors' | 'count_infos' | 'count_rage_clicks' | 'count_segments' | 'count_urls' | 'count_warnings' | 'device' | 'dist' | 'duration' | 'environment' | 'error_ids' | 'finished_at' | 'has_viewed' | 'id' | 'is_archived' | 'os' | 'ota_updates' | 'platform' | 'project_id' | 'releases' | 'replay_type' | 'sdk' | 'segment_names' | 'started_at' | 'tags' | 'trace_ids' | 'urls' | 'user'>; /** * A list of project IDs or slugs to filter by. */ project?: Array; /** * A list of project slugs to filter your results by. */ projectSlug?: Array; /** * The environments to filter by. */ environment?: Array; /** * The field to sort the output by. */ sort?: string; /** * The field to sort the output by. */ sortBy?: string; /** * The field to sort the output by. */ orderBy?: string; /** * A structured query string to filter the output by. */ query?: string; /** * Internal referrer identifier used for query tracing. */ queryReferrer?: string; /** * Limit the number of rows to return in the result. */ per_page?: number; /** * The cursor parameter is used to paginate results. See [here](https://docs.sentry.io/api/pagination/) for how to use this query parameter */ cursor?: string; }; url: '/organizations/{organization_id_or_slug}/replays/{replay_id}/'; }; export type GetOrganizationReplayErrors = { /** * Bad Request */ 400: unknown; /** * Forbidden */ 403: unknown; /** * Not Found */ 404: unknown; }; export type GetOrganizationReplayResponses = { 200: { /** * The replay */ data: { /** * Replay ID */ id?: string; /** * ID of the project the replay belongs to */ project_id?: string; /** * IDs of traces linked to the replay */ trace_ids?: Array; /** * IDs of errors linked to the replay */ error_ids?: Array; /** * Environment of the replay */ environment?: string | null; /** * Replay tags */ tags?: { [key: string]: Array; } | Array; /** * User metadata */ user?: { /** * ID of the user */ id?: string | null; /** * Username of the user */ username?: string | null; /** * Email address of the user */ email?: string | null; /** * IP address of the user */ ip?: string | null; /** * Name to display for the user: the username, email, ID or IP address, whichever is set first */ display_name?: string | null; /** * Geographic location of the user */ geo?: { /** * City of the user */ city?: string | null; /** * Country code of the user */ country_code?: string | null; /** * Region of the user */ region?: string | null; /** * Subdivision of the user's country, such as a state or province */ subdivision?: string | null; }; }; /** * SDK metadata */ sdk?: { /** * Name of the SDK that recorded the replay */ name?: string | null; /** * Version of the SDK that recorded the replay */ version?: string | null; }; /** * Operating system metadata */ os?: { /** * Name of the operating system */ name?: string | null; /** * Version of the operating system */ version?: string | null; }; /** * Browser metadata */ browser?: { /** * Name of the browser */ name?: string | null; /** * Version of the browser */ version?: string | null; }; /** * Device metadata */ device?: { /** * Name of the device */ name?: string | null; /** * Brand of the device */ brand?: string | null; /** * Model of the device */ model?: string | null; /** * Family of the device */ family?: string | null; }; /** * Over-the-air update metadata */ ota_updates?: { /** * Channel of the over-the-air update */ channel?: string | null; /** * Runtime version of the over-the-air update */ runtime_version?: string | null; /** * ID of the over-the-air update */ update_id?: string | null; }; /** * Whether the replay is archived */ is_archived?: boolean | null; /** * URLs visited during the replay */ urls?: Array | null; /** * Names of the replay's segments */ segment_names?: Array | null; /** * Clicks recorded during the replay, one object per click */ clicks?: Array<{ /** * Alt text of the clicked element */ 'click.alt': string | null; /** * ARIA label of the clicked element */ 'click.label': string | null; /** * CSS classes of the clicked element */ 'click.classes': Array | null; /** * Name of the frontend component that was clicked */ 'click.component_name': string | null; /** * ID of the clicked element */ 'click.id': string | null; /** * Role of the clicked element */ 'click.role': string | null; /** * HTML tag of the clicked element */ 'click.tag': string | null; /** * Test ID of the clicked element */ 'click.testid': string | null; /** * Text of the clicked element */ 'click.text': string | null; /** * Title of the clicked element */ 'click.title': string | null; }>; /** * Number of dead clicks */ count_dead_clicks?: number | null; /** * Number of rage clicks */ count_rage_clicks?: number | null; /** * Number of errors linked to the replay */ count_errors?: number | null; /** * Replay duration in seconds */ duration?: number | null; /** * When the replay finished (ISO 8601) */ finished_at?: string | null; /** * When the replay started (ISO 8601) */ started_at?: string | null; /** * Replay activity score */ activity?: number | null; /** * Number of URLs visited during the replay */ count_urls?: number | null; /** * Recording mode of the replay, such as session or buffer */ replay_type?: string; /** * Number of recording segments */ count_segments?: number | null; /** * Platform of the replay */ platform?: string | null; /** * Releases associated with the replay */ releases?: Array; /** * Distribution of the replay */ dist?: string | null; /** * Number of warning events linked to the replay */ count_warnings?: number | null; /** * Number of info events linked to the replay */ count_infos?: number | null; /** * Whether the requesting user has viewed the replay */ has_viewed?: boolean; }; }; }; export type GetOrganizationReplayResponse = GetOrganizationReplayResponses[keyof GetOrganizationReplayResponses]; export type ListOrganizationReposData = { body?: never; path: { /** * The ID or slug of the organization the resource belongs to. */ organization_id_or_slug: string; }; query?: { /** * Filter repositories by name. */ query?: string; /** * Filter repositories by status. Defaults to `active`. */ status?: 'active' | 'deleted'; /** * Filter repositories by integration ID. */ integration_id?: string; /** * Optional repository fields to expand, such as `settings`. */ expand?: Array; /** * A pointer to the last object fetched and its sort order; used to retrieve the next or previous results. */ cursor?: string; /** * The maximum number of repositories to return per page (1–100). */ per_page?: number; }; url: '/organizations/{organization_id_or_slug}/repos/'; }; export type ListOrganizationReposErrors = { /** * Unauthorized */ 401: unknown; /** * Forbidden */ 403: unknown; /** * Not Found */ 404: unknown; }; export type ListOrganizationReposResponses = { 200: Array<{ /** * URL of the repository */ url?: string | null; /** * Provider of the repository, with its id and name */ provider?: { [key: string]: string; }; /** * Status of the repository */ status?: 'active' | 'disabled' | 'pending_deletion' | 'deletion_in_progress'; /** * ID of the repository's integration. Null for repositories added without an integration */ integrationId?: string | null; /** * Identifier of the repository in the provider, such as owner/name */ externalSlug?: string | null; /** * ID of the repository in the provider */ externalId?: string | null; /** * Settings of the repository. Only set when expand includes settings. Null when it has none */ settings?: { /** * Whether AI code review is on for the repository */ enabledCodeReview: boolean; /** * Pull request events that start a code review: on_new_commit or on_ready_for_review */ codeReviewTriggers: Array; } | null; /** * ID of the repository */ id: string; /** * Name of the repository, such as owner/name */ name: string; /** * When the repository was added to Sentry (ISO 8601) */ dateCreated: string; }>; }; export type ListOrganizationReposResponse = ListOrganizationReposResponses[keyof ListOrganizationReposResponses]; export type ListOrganizationRepoCommitsData = { body?: never; path: { /** * The ID or slug of the organization the resource belongs to. */ organization_id_or_slug: string; /** * The repository ID. */ repo_id: string; }; query?: { /** * A pointer to the last object fetched and its sort order; used to retrieve the next or previous results. */ cursor?: string; }; url: '/organizations/{organization_id_or_slug}/repos/{repo_id}/commits/'; }; export type ListOrganizationRepoCommitsErrors = { /** * Bad Request */ 400: unknown; /** * Unauthorized */ 401: unknown; /** * Forbidden */ 403: unknown; /** * Not Found */ 404: unknown; }; export type ListOrganizationRepoCommitsResponses = { 200: Array<{ /** * Commit SHA */ id: string; /** * Commit message */ message: string | null; /** * When the commit was made (ISO 8601) */ dateCreated: string; /** * Pull request the commit belongs to */ pullRequest: { /** * Number or key of the pull request in the provider */ id: string; /** * Title of the pull request */ title: string | null; /** * Description of the pull request */ message: string | null; /** * When Sentry recorded the pull request (ISO 8601) */ dateCreated: string; /** * When the pull request was merged (ISO 8601). Null when it isn't merged */ mergedAt: string | null; /** * State of the pull request: merged, open, closed, draft or unknown. Null when not known */ status: 'merged' | 'open' | 'closed' | 'draft' | 'unknown' | null; /** * Repository of the pull request */ repository: { /** * URL of the repository */ url?: string | null; /** * Provider of the repository, with its id and name */ provider?: { [key: string]: string; }; /** * Status of the repository */ status?: 'active' | 'disabled' | 'pending_deletion' | 'deletion_in_progress'; /** * ID of the repository's integration. Null for repositories added without an integration */ integrationId?: string | null; /** * Identifier of the repository in the provider, such as owner/name */ externalSlug?: string | null; /** * ID of the repository in the provider */ externalId?: string | null; /** * Settings of the repository. Only set when expand includes settings. Null when it has none */ settings?: { /** * Whether AI code review is on for the repository */ enabledCodeReview: boolean; /** * Pull request events that start a code review: on_new_commit or on_ready_for_review */ codeReviewTriggers: Array; } | null; /** * ID of the repository */ id: string; /** * Name of the repository, such as owner/name */ name: string; /** * When the repository was added to Sentry (ISO 8601) */ dateCreated: string; }; /** * Author of the pull request, or an empty object when it has none */ author: { /** * SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access */ identities?: Array<{ /** * SSO identity ID */ id: string; /** * User's identifier at the auth provider */ name: string; /** * Organization the auth provider belongs to */ organization: { /** * Organization slug */ slug: string; /** * Organization name */ name: string; }; /** * Auth provider of the identity */ provider: { /** * Auth provider key, such as google or saml2 */ id: string; /** * Display name of the auth provider */ name: string; }; /** * When the identity was last verified by signing in through the auth provider */ dateVerified: string; /** * When the identity was last synced from the auth provider */ dateSynced: string; }>; /** * User avatar */ avatar?: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Two-factor authenticators of the user, without backup methods such as recovery codes */ authenticators?: Array<{ /** * Authenticator ID */ id: string; /** * Authenticator type, such as totp, sms, u2f or recovery */ type: string; /** * Display name of the authenticator type */ name: string; /** * When the authenticator was added */ dateCreated: string; /** * When the authenticator was last used, or null */ dateUsed: string | null; }>; /** * Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization */ canReset2fa?: boolean; /** * User ID */ id: string; /** * Display name: the user's name, or their email or username if no name is set */ name: string; /** * Username */ username: string; /** * Primary email address */ email: string; /** * Gravatar URL for the primary email address */ avatarUrl: string; /** * Whether the account is active */ isActive: boolean; /** * Whether the account is suspended. Suspended users can't sign in */ isSuspended: boolean; /** * Whether the user has a password set */ hasPasswordAuth: boolean; /** * Whether the account is managed, which stops the user from changing their username, password and similar details */ isManaged: boolean; /** * When the account was created */ dateJoined: string; /** * When the user last signed in, or null */ lastLogin: string | null; /** * Whether the user has two-factor authentication enabled */ has2fa: boolean; /** * When the user was last active, or null */ lastActive: string | null; /** * Whether the user is a superuser */ isSuperuser: boolean; /** * Whether the user has staff status */ isStaff: boolean; /** * Deprecated. Always an empty object */ experiments: { [key: string]: string; }; /** * Email addresses of the user. Only included for the requesting user or superusers; empty otherwise */ emails: Array<{ /** * Email ID */ id: string; /** * Email address */ email: string; /** * Whether the email address is verified */ is_verified: boolean; }>; } | { /** * Commit author name */ name: string | null; /** * Commit author email */ email: string; } | { [key: string]: unknown; }; /** * URL of the pull request in the provider, or null when the provider can't build one */ externalUrl: string | null; } | null; /** * How the commit was found as a suspect commit: via commit in release or via SCM integration. Empty for other commits */ suspectCommitType: string; /** * Repository the commit belongs to */ repository?: { /** * URL of the repository */ url?: string | null; /** * Provider of the repository, with its id and name */ provider?: { [key: string]: string; }; /** * Status of the repository */ status?: 'active' | 'disabled' | 'pending_deletion' | 'deletion_in_progress'; /** * ID of the repository's integration. Null for repositories added without an integration */ integrationId?: string | null; /** * Identifier of the repository in the provider, such as owner/name */ externalSlug?: string | null; /** * ID of the repository in the provider */ externalId?: string | null; /** * Settings of the repository. Only set when expand includes settings. Null when it has none */ settings?: { /** * Whether AI code review is on for the repository */ enabledCodeReview: boolean; /** * Pull request events that start a code review: on_new_commit or on_ready_for_review */ codeReviewTriggers: Array; } | null; /** * ID of the repository */ id: string; /** * Name of the repository, such as owner/name */ name: string; /** * When the repository was added to Sentry (ISO 8601) */ dateCreated: string; }; /** * Author of the commit: a Sentry user when the email matches one, otherwise the name and email from the commit */ author?: { /** * SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access */ identities?: Array<{ /** * SSO identity ID */ id: string; /** * User's identifier at the auth provider */ name: string; /** * Organization the auth provider belongs to */ organization: { /** * Organization slug */ slug: string; /** * Organization name */ name: string; }; /** * Auth provider of the identity */ provider: { /** * Auth provider key, such as google or saml2 */ id: string; /** * Display name of the auth provider */ name: string; }; /** * When the identity was last verified by signing in through the auth provider */ dateVerified: string; /** * When the identity was last synced from the auth provider */ dateSynced: string; }>; /** * User avatar */ avatar?: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Two-factor authenticators of the user, without backup methods such as recovery codes */ authenticators?: Array<{ /** * Authenticator ID */ id: string; /** * Authenticator type, such as totp, sms, u2f or recovery */ type: string; /** * Display name of the authenticator type */ name: string; /** * When the authenticator was added */ dateCreated: string; /** * When the authenticator was last used, or null */ dateUsed: string | null; }>; /** * Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization */ canReset2fa?: boolean; /** * User ID */ id: string; /** * Display name: the user's name, or their email or username if no name is set */ name: string; /** * Username */ username: string; /** * Primary email address */ email: string; /** * Gravatar URL for the primary email address */ avatarUrl: string; /** * Whether the account is active */ isActive: boolean; /** * Whether the account is suspended. Suspended users can't sign in */ isSuspended: boolean; /** * Whether the user has a password set */ hasPasswordAuth: boolean; /** * Whether the account is managed, which stops the user from changing their username, password and similar details */ isManaged: boolean; /** * When the account was created */ dateJoined: string; /** * When the user last signed in, or null */ lastLogin: string | null; /** * Whether the user has two-factor authentication enabled */ has2fa: boolean; /** * When the user was last active, or null */ lastActive: string | null; /** * Whether the user is a superuser */ isSuperuser: boolean; /** * Whether the user has staff status */ isStaff: boolean; /** * Deprecated. Always an empty object */ experiments: { [key: string]: string; }; /** * Email addresses of the user. Only included for the requesting user or superusers; empty otherwise */ emails: Array<{ /** * Email ID */ id: string; /** * Email address */ email: string; /** * Whether the email address is verified */ is_verified: boolean; }>; } | { /** * Commit author name */ name: string | null; /** * Commit author email */ email: string; } | { [key: string]: unknown; }; }>; }; export type ListOrganizationRepoCommitsResponse = ListOrganizationRepoCommitsResponses[keyof ListOrganizationRepoCommitsResponses]; export type UpdateOrganizationRepositorySettingsData = { body: { /** * List of repository IDs to update settings for. Maximum 1000 repositories. */ repositoryIds: Array; /** * Whether code review is enabled for these repositories */ enabledCodeReview?: boolean; /** * List of triggers for code review */ codeReviewTriggers?: Array<'on_new_commit' | 'on_ready_for_review'>; }; path: { /** * The ID or slug of the organization the resource belongs to. */ organization_id_or_slug: string; }; query?: never; url: '/organizations/{organization_id_or_slug}/repos/settings/'; }; export type UpdateOrganizationRepositorySettingsErrors = { /** * Bad Request */ 400: unknown; /** * Unauthorized */ 401: unknown; /** * Forbidden */ 403: unknown; /** * Not Found */ 404: unknown; }; export type UpdateOrganizationRepositorySettingsResponses = { 200: Array<{ /** * URL of the repository */ url?: string | null; /** * Provider of the repository, with its id and name */ provider?: { [key: string]: string; }; /** * Status of the repository */ status?: 'active' | 'disabled' | 'pending_deletion' | 'deletion_in_progress'; /** * ID of the repository's integration. Null for repositories added without an integration */ integrationId?: string | null; /** * Identifier of the repository in the provider, such as owner/name */ externalSlug?: string | null; /** * ID of the repository in the provider */ externalId?: string | null; /** * Settings of the repository. Only set when expand includes settings. Null when it has none */ settings?: { /** * Whether AI code review is on for the repository */ enabledCodeReview: boolean; /** * Pull request events that start a code review: on_new_commit or on_ready_for_review */ codeReviewTriggers: Array; } | null; /** * ID of the repository */ id: string; /** * Name of the repository, such as owner/name */ name: string; /** * When the repository was added to Sentry (ISO 8601) */ dateCreated: string; }>; }; export type UpdateOrganizationRepositorySettingsResponse = UpdateOrganizationRepositorySettingsResponses[keyof UpdateOrganizationRepositorySettingsResponses]; export type ListOrganizationScimV2GroupsData = { body?: never; path: { /** * The ID or slug of the organization the resource belongs to. */ organization_id_or_slug: string; }; query?: { /** * SCIM 1-offset based index for pagination. */ startIndex?: number; /** * The maximum number of results the query should return, maximum of 100. */ count?: number; /** * A SCIM filter expression. The only operator currently supported is `eq`. */ filter?: string; /** * Fields that should be left off of return values. Right now the only supported field for this query is members. */ excludedAttributes?: Array; }; url: '/organizations/{organization_id_or_slug}/scim/v2/Groups'; }; export type ListOrganizationScimV2GroupsErrors = { /** * Unauthorized */ 401: unknown; /** * Forbidden */ 403: unknown; /** * Not Found */ 404: unknown; }; export type ListOrganizationScimV2GroupsResponses = { 200: { /** * SCIM schema URIs of the response, always the ListResponse message schema */ schemas: Array; /** * Total number of resources that match the query */ totalResults: number; /** * 1-based index of the first resource in this page */ startIndex: number; /** * Number of resources in this page */ itemsPerPage: number; /** * Teams in this page, as SCIM groups */ Resources: Array<{ /** * SCIM schema URIs of the resource */ schemas: Array; /** * Team ID */ id: string; /** * Display name of the team */ displayName: string; /** * SCIM resource metadata */ meta: { /** * SCIM resource type, such as User or Group */ resourceType: string; }; /** * Members of the team. Included only when members are requested */ members?: Array<{ /** * Organization member ID */ value: string; /** * Email address of the member */ display: string; }>; }>; }; }; export type ListOrganizationScimV2GroupsResponse = ListOrganizationScimV2GroupsResponses[keyof ListOrganizationScimV2GroupsResponses]; export type ProvisionOrganizationScimV2GroupData = { body: { /** * The slug of the team that is shown in the UI. */ displayName: string; }; path: { /** * The ID or slug of the organization the resource belongs to. */ organization_id_or_slug: string; }; query?: never; url: '/organizations/{organization_id_or_slug}/scim/v2/Groups'; }; export type ProvisionOrganizationScimV2GroupErrors = { /** * Bad Request */ 400: unknown; /** * Unauthorized */ 401: unknown; /** * Forbidden */ 403: unknown; /** * Not Found */ 404: unknown; }; export type ProvisionOrganizationScimV2GroupResponses = { 201: { /** * SCIM schema URIs of the resource */ schemas: Array; /** * Team ID */ id: string; /** * Display name of the team */ displayName: string; /** * SCIM resource metadata */ meta: { /** * SCIM resource type, such as User or Group */ resourceType: string; }; /** * Members of the team. Included only when members are requested */ members?: Array<{ /** * Organization member ID */ value: string; /** * Email address of the member */ display: string; }>; }; }; export type ProvisionOrganizationScimV2GroupResponse = ProvisionOrganizationScimV2GroupResponses[keyof ProvisionOrganizationScimV2GroupResponses]; export type DeleteOrganizationScimV2GroupData = { body?: never; path: { /** * The ID or slug of the organization the resource belongs to. */ organization_id_or_slug: string; /** * The ID or slug of the team the resource belongs to. */ team_id_or_slug: string; }; query?: never; url: '/organizations/{organization_id_or_slug}/scim/v2/Groups/{team_id_or_slug}'; }; export type DeleteOrganizationScimV2GroupErrors = { /** * Unauthorized */ 401: unknown; /** * Forbidden */ 403: unknown; /** * Not Found */ 404: unknown; }; export type DeleteOrganizationScimV2GroupResponses = { /** * Success */ 204: void; }; export type DeleteOrganizationScimV2GroupResponse = DeleteOrganizationScimV2GroupResponses[keyof DeleteOrganizationScimV2GroupResponses]; export type GetOrganizationScimV2GroupData = { body?: never; path: { /** * The ID or slug of the team the resource belongs to. */ team_id_or_slug: string; /** * The ID or slug of the organization the resource belongs to. */ organization_id_or_slug: string; }; query?: never; url: '/organizations/{organization_id_or_slug}/scim/v2/Groups/{team_id_or_slug}'; }; export type GetOrganizationScimV2GroupErrors = { /** * Unauthorized */ 401: unknown; /** * Forbidden */ 403: unknown; /** * Not Found */ 404: unknown; }; export type GetOrganizationScimV2GroupResponses = { 200: { /** * SCIM schema URIs of the resource */ schemas: Array; /** * Team ID */ id: string; /** * Display name of the team */ displayName: string; /** * SCIM resource metadata */ meta: { /** * SCIM resource type, such as User or Group */ resourceType: string; }; /** * Members of the team. Included only when members are requested */ members?: Array<{ /** * Organization member ID */ value: string; /** * Email address of the member */ display: string; }>; }; }; export type GetOrganizationScimV2GroupResponse = GetOrganizationScimV2GroupResponses[keyof GetOrganizationScimV2GroupResponses]; export type UpdateOrganizationScimV2GroupData = { body: { /** * SCIM schema URIs identifying the request format. Must be the PatchOp schema. */ schemas: Array; /** * The list of operations to perform. Valid operations are: * * Renaming a team: * ```json * { * "Operations": [{ * "op": "replace", * "value": { * "id": 23, * "displayName": "newName" * } * }] * } * ``` * * Adding a member to a team: * ```json * { * "Operations": [{ * "op": "add", * "path": "members", * "value": [ * { * "value": 23, * "display": "testexample@example.com" * } * ] * }] * } * ``` * * Removing a member from a team: * ```json * { * "Operations": [{ * "op": "remove", * "path": "members[value eq "23"]" * }] * } * ``` * * Replacing an entire member set of a team: * ```json * { * "Operations": [{ * "op": "replace", * "path": "members", * "value": [ * { * "value": 23, * "display": "testexample2@sentry.io" * }, * { * "value": 24, * "display": "testexample3@sentry.io" * } * ] * }] * } * ``` * */ Operations: Array<{ op: string; value?: { [key: string]: unknown; }; path?: string; }>; }; path: { /** * The ID or slug of the organization the resource belongs to. */ organization_id_or_slug: string; /** * The ID or slug of the team the resource belongs to. */ team_id_or_slug: string; }; query?: never; url: '/organizations/{organization_id_or_slug}/scim/v2/Groups/{team_id_or_slug}'; }; export type UpdateOrganizationScimV2GroupErrors = { /** * Bad Request */ 400: unknown; /** * Unauthorized */ 401: unknown; /** * Forbidden */ 403: unknown; /** * Not Found */ 404: unknown; }; export type UpdateOrganizationScimV2GroupResponses = { /** * Success */ 204: void; }; export type UpdateOrganizationScimV2GroupResponse = UpdateOrganizationScimV2GroupResponses[keyof UpdateOrganizationScimV2GroupResponses]; export type ListOrganizationScimV2ResourceTypesData = { body?: never; path: { /** * The ID or slug of the organization the resource belongs to. */ organization_id_or_slug: string; }; query?: never; url: '/organizations/{organization_id_or_slug}/scim/v2/ResourceTypes'; }; export type ListOrganizationScimV2ResourceTypesErrors = { /** * Unauthorized */ 401: unknown; /** * Forbidden */ 403: unknown; /** * Not Found */ 404: unknown; }; export type ListOrganizationScimV2ResourceTypesResponses = { 200: { /** * SCIM schema URIs of the response, always the ListResponse message schema */ schemas: Array; /** * Total number of resources that match the query */ totalResults: number; /** * 1-based index of the first resource in this page */ startIndex: number; /** * Number of resources in this page */ itemsPerPage: number; /** * SCIM resource types Sentry supports */ Resources: Array<{ /** * SCIM schema URIs of the resource type, always the ResourceType schema */ schemas: Array; /** * ID of the resource type: User or Group */ id: string; /** * Name of the resource type: User or Group */ name: string; /** * What the resource type maps to in Sentry */ description: string; /** * Path of the resource type's endpoint, relative to the SCIM base URL */ endpoint: string; /** * URI of the resource type's core schema */ schema: string; /** * Resource type and location of the resource type */ meta: { /** * SCIM resource type of the resource, such as Schema or ResourceType */ resourceType: string; /** * Absolute URL of the resource */ location: string; }; }>; }; }; export type ListOrganizationScimV2ResourceTypesResponse = ListOrganizationScimV2ResourceTypesResponses[keyof ListOrganizationScimV2ResourceTypesResponses]; export type GetOrganizationScimV2ResourceTypeData = { body?: never; path: { /** * The ID or slug of the organization the resource belongs to. */ organization_id_or_slug: string; /** * The SCIM resource type name: `User` or `Group`. */ resource_type_name: string; }; query?: never; url: '/organizations/{organization_id_or_slug}/scim/v2/ResourceTypes/{resource_type_name}'; }; export type GetOrganizationScimV2ResourceTypeErrors = { /** * Unauthorized */ 401: unknown; /** * Forbidden */ 403: unknown; /** * Not Found */ 404: unknown; }; export type GetOrganizationScimV2ResourceTypeResponses = { 200: { /** * SCIM schema URIs of the resource type, always the ResourceType schema */ schemas: Array; /** * ID of the resource type: User or Group */ id: string; /** * Name of the resource type: User or Group */ name: string; /** * What the resource type maps to in Sentry */ description: string; /** * Path of the resource type's endpoint, relative to the SCIM base URL */ endpoint: string; /** * URI of the resource type's core schema */ schema: string; /** * Resource type and location of the resource type */ meta: { /** * SCIM resource type of the resource, such as Schema or ResourceType */ resourceType: string; /** * Absolute URL of the resource */ location: string; }; }; }; export type GetOrganizationScimV2ResourceTypeResponse = GetOrganizationScimV2ResourceTypeResponses[keyof GetOrganizationScimV2ResourceTypeResponses]; export type GetOrganizationScimV2SchemaData = { body?: never; path: { /** * The ID or slug of the organization the resource belongs to. */ organization_id_or_slug: string; /** * The SCIM schema URI, e.g. `urn:ietf:params:scim:schemas:core:2.0:User`. */ schema_uri: string; }; query?: never; url: '/organizations/{organization_id_or_slug}/scim/v2/Schemas/{schema_uri}'; }; export type GetOrganizationScimV2SchemaErrors = { /** * Unauthorized */ 401: unknown; /** * Forbidden */ 403: unknown; /** * Not Found */ 404: unknown; }; export type GetOrganizationScimV2SchemaResponses = { 200: { /** * SCIM schema URIs of the response, always the Schema schema */ schemas: Array; /** * URI of the schema */ id: string; /** * Name of the schema: User or Group */ name: string; /** * What the schema's resources map to in Sentry */ description: string; /** * Attributes of the schema, as SCIM attribute definitions */ attributes: Array<{ /** * Name of the attribute */ name: string; /** * Data type of the attribute */ type: 'string' | 'boolean' | 'decimal' | 'integer' | 'dateTime' | 'reference' | 'complex' | 'binary'; /** * Whether the attribute holds a list of values */ multiValued: boolean; /** * What the attribute holds */ description: string; /** * Whether the attribute is required */ required: boolean; /** * Whether string values are compared case-sensitively */ caseExact?: boolean; /** * Values the attribute is expected to take */ canonicalValues?: Array; /** * Whether and when the attribute can be changed */ mutability: 'readOnly' | 'readWrite' | 'immutable' | 'writeOnly'; /** * When the attribute is returned in a response */ returned: 'always' | 'never' | 'default' | 'request'; /** * Scope in which values are unique */ uniqueness?: 'none' | 'server' | 'global'; /** * Attributes of a complex attribute */ subAttributes?: Array<{ /** * Name of the attribute */ name: string; /** * Data type of the attribute */ type: 'string' | 'boolean' | 'decimal' | 'integer' | 'dateTime' | 'reference' | 'complex' | 'binary'; /** * Whether the attribute holds a list of values */ multiValued: boolean; /** * What the attribute holds */ description: string; /** * Whether the attribute is required */ required: boolean; /** * Whether string values are compared case-sensitively */ caseExact?: boolean; /** * Values the attribute is expected to take */ canonicalValues?: Array; /** * Whether and when the attribute can be changed */ mutability: 'readOnly' | 'readWrite' | 'immutable' | 'writeOnly'; /** * When the attribute is returned in a response */ returned: 'always' | 'never' | 'default' | 'request'; /** * Scope in which values are unique */ uniqueness?: 'none' | 'server' | 'global'; }>; }>; /** * Resource type and location of the schema */ meta: { /** * SCIM resource type of the resource, such as Schema or ResourceType */ resourceType: string; /** * Absolute URL of the resource */ location: string; }; }; }; export type GetOrganizationScimV2SchemaResponse = GetOrganizationScimV2SchemaResponses[keyof GetOrganizationScimV2SchemaResponses]; export type GetOrganizationScimV2ServiceProviderConfigData = { body?: never; path: { /** * The ID or slug of the organization the resource belongs to. */ organization_id_or_slug: string; }; query?: never; url: '/organizations/{organization_id_or_slug}/scim/v2/ServiceProviderConfig'; }; export type GetOrganizationScimV2ServiceProviderConfigErrors = { /** * Unauthorized */ 401: unknown; /** * Forbidden */ 403: unknown; /** * Not Found */ 404: unknown; }; export type GetOrganizationScimV2ServiceProviderConfigResponses = { 200: { /** * SCIM schema URIs of the response, always the ServiceProviderConfig schema */ schemas: Array; /** * URL of Sentry's SCIM documentation */ documentationUri: string; /** * Whether PATCH operations are supported */ patch: { /** * Whether Sentry supports the feature */ supported: boolean; }; /** * Bulk operation support */ bulk: { /** * Whether Sentry supports bulk operations. Always false */ supported: boolean; /** * Maximum number of operations in a bulk request. Always 0 */ maxOperations: number; /** * Maximum payload size of a bulk request in bytes. Always 0 */ maxPayloadSize: number; }; /** * Filter support */ filter: { /** * Whether Sentry supports filtering. Only the eq operator is supported */ supported: boolean; /** * Maximum number of resources returned in a page */ maxResults: number; }; /** * Whether password changes are supported */ changePassword: { /** * Whether Sentry supports the feature */ supported: boolean; }; /** * Whether sorting is supported */ sort: { /** * Whether Sentry supports the feature */ supported: boolean; }; /** * Whether ETags are supported */ etag: { /** * Whether Sentry supports the feature */ supported: boolean; }; /** * Authentication schemes the SCIM API accepts */ authenticationSchemes: Array<{ /** * Type of the authentication scheme, always oauthbearertoken */ type: string; /** * Name of the authentication scheme */ name: string; /** * How to authenticate with the scheme */ description: string; /** * URL of the scheme's specification */ specUri: string; /** * Whether this is the preferred authentication scheme */ primary: boolean; }>; /** * Resource type and location of the configuration */ meta: { /** * SCIM resource type of the resource, such as Schema or ResourceType */ resourceType: string; /** * Absolute URL of the resource */ location: string; }; }; }; export type GetOrganizationScimV2ServiceProviderConfigResponse = GetOrganizationScimV2ServiceProviderConfigResponses[keyof GetOrganizationScimV2ServiceProviderConfigResponses]; export type ListOrganizationScimV2UsersData = { body?: never; path: { /** * The ID or slug of the organization the resource belongs to. */ organization_id_or_slug: string; }; query?: { /** * SCIM 1-offset based index for pagination. */ startIndex?: number; /** * The maximum number of results the query should return, maximum of 100. */ count?: number; /** * A SCIM filter expression. The only operator currently supported is `eq`. */ filter?: string; /** * Fields that should be left off of return values. Right now the only supported field for this query is members. */ excludedAttributes?: Array; }; url: '/organizations/{organization_id_or_slug}/scim/v2/Users'; }; export type ListOrganizationScimV2UsersErrors = { /** * Unauthorized */ 401: unknown; /** * Forbidden */ 403: unknown; /** * Not Found */ 404: unknown; }; export type ListOrganizationScimV2UsersResponses = { 200: { /** * SCIM schema URIs of the response, always the ListResponse message schema */ schemas: Array; /** * Total number of resources that match the query */ totalResults: number; /** * 1-based index of the first resource in this page */ startIndex: number; /** * Number of resources in this page */ itemsPerPage: number; /** * Organization members in this page, as SCIM users */ Resources: Array<{ /** * Always true when included. Sentry doesn't use this field, but SCIM expects it */ active?: boolean; /** * SCIM schema URIs of the resource */ schemas: Array; /** * Organization member ID */ id: string; /** * Email address of the member */ userName: string; /** * Name of the member */ name: { /** * Given name. Always N/A, because Sentry doesn't store it */ givenName: string; /** * Family name. Always N/A, because Sentry doesn't store it */ familyName: string; }; /** * Email addresses of the member */ emails: Array<{ /** * Whether this is the primary email address. Always true */ primary: boolean; /** * Email address */ value: string; /** * Email type. Always work */ type: string; }>; /** * SCIM resource metadata */ meta: { /** * SCIM resource type, such as User or Group */ resourceType: string; }; /** * ID of the member's organization role */ sentryOrgRole: string; }>; }; }; export type ListOrganizationScimV2UsersResponse = ListOrganizationScimV2UsersResponses[keyof ListOrganizationScimV2UsersResponses]; export type ProvisionOrganizationScimV2UserData = { body: { /** * The SAML field used for email. */ userName: string; /** * The organization role of the member. If unspecified, this will be * set to the organization's default role. The options are: * * * `billing` - Can manage payment and compliance details. * * `member` - Can view and act on events, as well as view most other data within the organization. * * `manager` - Has full management access to all teams and projects. Can also manage * the organization's membership. * * `admin` - Can edit global integrations, manage projects, and add/remove teams. * They automatically assume the Team Admin role for teams they join. * Note: This role can no longer be assigned in Business and Enterprise plans. Use `TeamRoles` instead. * */ sentryOrgRole?: 'billing' | 'member' | 'manager' | 'admin'; }; path: { /** * The ID or slug of the organization the resource belongs to. */ organization_id_or_slug: string; }; query?: never; url: '/organizations/{organization_id_or_slug}/scim/v2/Users'; }; export type ProvisionOrganizationScimV2UserErrors = { /** * Unauthorized */ 401: unknown; /** * Forbidden */ 403: unknown; /** * Not Found */ 404: unknown; }; export type ProvisionOrganizationScimV2UserResponses = { /** * Conforming to the SCIM RFC, this represents a Sentry Org Member * as a SCIM user object. */ 201: { /** * Always true when included. Sentry doesn't use this field, but SCIM expects it */ active?: boolean; /** * SCIM schema URIs of the resource */ schemas: Array; /** * Organization member ID */ id: string; /** * Email address of the member */ userName: string; /** * Name of the member */ name: { /** * Given name. Always N/A, because Sentry doesn't store it */ givenName: string; /** * Family name. Always N/A, because Sentry doesn't store it */ familyName: string; }; /** * Email addresses of the member */ emails: Array<{ /** * Whether this is the primary email address. Always true */ primary: boolean; /** * Email address */ value: string; /** * Email type. Always work */ type: string; }>; /** * SCIM resource metadata */ meta: { /** * SCIM resource type, such as User or Group */ resourceType: string; }; /** * ID of the member's organization role */ sentryOrgRole: string; }; }; export type ProvisionOrganizationScimV2UserResponse = ProvisionOrganizationScimV2UserResponses[keyof ProvisionOrganizationScimV2UserResponses]; export type DeleteOrganizationScimV2UserData = { body?: never; path: { /** * The ID or slug of the organization the resource belongs to. */ organization_id_or_slug: string; /** * The ID of the member to delete. */ member_id: string; }; query?: never; url: '/organizations/{organization_id_or_slug}/scim/v2/Users/{member_id}'; }; export type DeleteOrganizationScimV2UserErrors = { /** * Unauthorized */ 401: unknown; /** * Forbidden */ 403: unknown; /** * Not Found */ 404: unknown; }; export type DeleteOrganizationScimV2UserResponses = { /** * Success */ 204: void; }; export type DeleteOrganizationScimV2UserResponse = DeleteOrganizationScimV2UserResponses[keyof DeleteOrganizationScimV2UserResponses]; export type GetOrganizationScimV2UserData = { body?: never; path: { /** * The ID or slug of the organization the resource belongs to. */ organization_id_or_slug: string; /** * The ID of the member to query. */ member_id: string; }; query?: never; url: '/organizations/{organization_id_or_slug}/scim/v2/Users/{member_id}'; }; export type GetOrganizationScimV2UserErrors = { /** * Unauthorized */ 401: unknown; /** * Forbidden */ 403: unknown; /** * Not Found */ 404: unknown; }; export type GetOrganizationScimV2UserResponses = { /** * Conforming to the SCIM RFC, this represents a Sentry Org Member * as a SCIM user object. */ 200: { /** * Always true when included. Sentry doesn't use this field, but SCIM expects it */ active?: boolean; /** * SCIM schema URIs of the resource */ schemas: Array; /** * Organization member ID */ id: string; /** * Email address of the member */ userName: string; /** * Name of the member */ name: { /** * Given name. Always N/A, because Sentry doesn't store it */ givenName: string; /** * Family name. Always N/A, because Sentry doesn't store it */ familyName: string; }; /** * Email addresses of the member */ emails: Array<{ /** * Whether this is the primary email address. Always true */ primary: boolean; /** * Email address */ value: string; /** * Email type. Always work */ type: string; }>; /** * SCIM resource metadata */ meta: { /** * SCIM resource type, such as User or Group */ resourceType: string; }; /** * ID of the member's organization role */ sentryOrgRole: string; }; }; export type GetOrganizationScimV2UserResponse = GetOrganizationScimV2UserResponses[keyof GetOrganizationScimV2UserResponses]; export type UpdateOrganizationScimV2UserData = { body: { /** * A list of operations to perform. Currently, the only valid operation is setting * a member's `active` attribute to false, after which the member will be permanently deleted. * ```json * { * "Operations": [{ * "op": "replace", * "path": "active", * "value": False * }] * } * ``` * */ Operations: Array<{ op: string; value: unknown; path?: string; }>; /** * SCIM schema URIs identifying the request format. Must be the PatchOp schema. */ schemas?: Array; }; path: { /** * The ID or slug of the organization the resource belongs to. */ organization_id_or_slug: string; /** * The ID of the member to update. */ member_id: string; }; query?: never; url: '/organizations/{organization_id_or_slug}/scim/v2/Users/{member_id}'; }; export type UpdateOrganizationScimV2UserErrors = { /** * Unauthorized */ 401: unknown; /** * Forbidden */ 403: unknown; /** * Not Found */ 404: unknown; }; export type UpdateOrganizationScimV2UserResponses = { /** * Success */ 204: void; }; export type UpdateOrganizationScimV2UserResponse = UpdateOrganizationScimV2UserResponses[keyof UpdateOrganizationScimV2UserResponses]; export type ListOrganizationSentryAppComponentsData = { body?: never; path: { /** * The ID or slug of the organization the resource belongs to. */ organization_id_or_slug: string; }; query?: { /** * A pointer to the last object fetched and its sort order; used to retrieve the next or previous results. */ cursor?: string; /** * Filter components by type, such as `issue-link`. */ filter?: string; }; url: '/organizations/{organization_id_or_slug}/sentry-app-components/'; }; export type ListOrganizationSentryAppComponentsErrors = { /** * Unauthorized */ 401: unknown; /** * Forbidden */ 403: unknown; /** * Not Found */ 404: unknown; }; export type ListOrganizationSentryAppComponentsResponses = { 200: Array<{ /** * UUID of the component */ uuid: string; /** * Type of the component, such as issue-link, stacktrace-link or alert-rule-action */ type: string; /** * UI schema of the component */ schema: { /** * Type of the element */ type: 'issue-link'; /** * Form for linking an existing issue */ link: { /** * Path on the integration's server that Sentry sends requests to */ uri: string; /** * Fields that the user must fill in */ required_fields: Array<{ /** * Type of the element */ type: 'select'; /** * Label of the form field */ label: string; /** * Name of the form field, which keys its value in the submitted form */ name: string; /** * Whether the field loads its options from uri as the user types */ async?: boolean; /** * Whether to skip loading the options from uri when the form opens */ skip_load_on_open?: boolean; /** * Whether more than one option can be selected */ multiple?: boolean; /** * Path on the integration's server that Sentry sends requests to */ uri?: string; /** * Options to choose from, each a two-item array */ options?: Array<[ string | number, string | number ]>; /** * Names of the fields that this field's options depend on */ depends_on?: Array; /** * Options to choose from, loaded from options or from uri. Each is a two-item array */ choices?: Array<[ string | number, string | number ]>; /** * Value selected by default, from the options loaded from uri */ defaultValue?: string; } | { /** * Type of the element */ type: 'text'; /** * Label of the form field */ label: string; /** * Name of the form field, which keys its value in the submitted form */ name: string; /** * Issue field that prefills the field */ default?: 'issue.title' | 'issue.description'; } | { /** * Type of the element */ type: 'textarea'; /** * Label of the form field */ label: string; /** * Name of the form field, which keys its value in the submitted form */ name: string; /** * Issue field that prefills the field */ default?: 'issue.title' | 'issue.description'; }>; /** * Fields that the user can fill in */ optional_fields?: Array<{ /** * Type of the element */ type: 'select'; /** * Label of the form field */ label: string; /** * Name of the form field, which keys its value in the submitted form */ name: string; /** * Whether the field loads its options from uri as the user types */ async?: boolean; /** * Whether to skip loading the options from uri when the form opens */ skip_load_on_open?: boolean; /** * Whether more than one option can be selected */ multiple?: boolean; /** * Path on the integration's server that Sentry sends requests to */ uri?: string; /** * Options to choose from, each a two-item array */ options?: Array<[ string | number, string | number ]>; /** * Names of the fields that this field's options depend on */ depends_on?: Array; /** * Options to choose from, loaded from options or from uri. Each is a two-item array */ choices?: Array<[ string | number, string | number ]>; /** * Value selected by default, from the options loaded from uri */ defaultValue?: string; } | { /** * Type of the element */ type: 'text'; /** * Label of the form field */ label: string; /** * Name of the form field, which keys its value in the submitted form */ name: string; /** * Issue field that prefills the field */ default?: 'issue.title' | 'issue.description'; } | { /** * Type of the element */ type: 'textarea'; /** * Label of the form field */ label: string; /** * Name of the form field, which keys its value in the submitted form */ name: string; /** * Issue field that prefills the field */ default?: 'issue.title' | 'issue.description'; }>; }; /** * Form for creating an issue */ create: { /** * Path on the integration's server that Sentry sends requests to */ uri: string; /** * Fields that the user must fill in */ required_fields: Array<{ /** * Type of the element */ type: 'select'; /** * Label of the form field */ label: string; /** * Name of the form field, which keys its value in the submitted form */ name: string; /** * Whether the field loads its options from uri as the user types */ async?: boolean; /** * Whether to skip loading the options from uri when the form opens */ skip_load_on_open?: boolean; /** * Whether more than one option can be selected */ multiple?: boolean; /** * Path on the integration's server that Sentry sends requests to */ uri?: string; /** * Options to choose from, each a two-item array */ options?: Array<[ string | number, string | number ]>; /** * Names of the fields that this field's options depend on */ depends_on?: Array; /** * Options to choose from, loaded from options or from uri. Each is a two-item array */ choices?: Array<[ string | number, string | number ]>; /** * Value selected by default, from the options loaded from uri */ defaultValue?: string; } | { /** * Type of the element */ type: 'text'; /** * Label of the form field */ label: string; /** * Name of the form field, which keys its value in the submitted form */ name: string; /** * Issue field that prefills the field */ default?: 'issue.title' | 'issue.description'; } | { /** * Type of the element */ type: 'textarea'; /** * Label of the form field */ label: string; /** * Name of the form field, which keys its value in the submitted form */ name: string; /** * Issue field that prefills the field */ default?: 'issue.title' | 'issue.description'; }>; /** * Fields that the user can fill in */ optional_fields?: Array<{ /** * Type of the element */ type: 'select'; /** * Label of the form field */ label: string; /** * Name of the form field, which keys its value in the submitted form */ name: string; /** * Whether the field loads its options from uri as the user types */ async?: boolean; /** * Whether to skip loading the options from uri when the form opens */ skip_load_on_open?: boolean; /** * Whether more than one option can be selected */ multiple?: boolean; /** * Path on the integration's server that Sentry sends requests to */ uri?: string; /** * Options to choose from, each a two-item array */ options?: Array<[ string | number, string | number ]>; /** * Names of the fields that this field's options depend on */ depends_on?: Array; /** * Options to choose from, loaded from options or from uri. Each is a two-item array */ choices?: Array<[ string | number, string | number ]>; /** * Value selected by default, from the options loaded from uri */ defaultValue?: string; } | { /** * Type of the element */ type: 'text'; /** * Label of the form field */ label: string; /** * Name of the form field, which keys its value in the submitted form */ name: string; /** * Issue field that prefills the field */ default?: 'issue.title' | 'issue.description'; } | { /** * Type of the element */ type: 'textarea'; /** * Label of the form field */ label: string; /** * Name of the form field, which keys its value in the submitted form */ name: string; /** * Issue field that prefills the field */ default?: 'issue.title' | 'issue.description'; }>; }; } | { /** * Type of the element */ type: 'alert-rule-action'; /** * Title of the element */ title: string; /** * Settings form of the alert rule action */ settings: { /** * Type of the element */ type: 'alert-rule-settings'; /** * Text shown above the settings form */ description?: string; /** * Path on the integration's server that Sentry sends requests to */ uri: string; /** * Fields that the user must fill in */ required_fields: Array<{ /** * Type of the element */ type: 'select'; /** * Label of the form field */ label: string; /** * Name of the form field, which keys its value in the submitted form */ name: string; /** * Whether the field loads its options from uri as the user types */ async?: boolean; /** * Whether to skip loading the options from uri when the form opens */ skip_load_on_open?: boolean; /** * Whether more than one option can be selected */ multiple?: boolean; /** * Path on the integration's server that Sentry sends requests to */ uri?: string; /** * Options to choose from, each a two-item array */ options?: Array<[ string | number, string | number ]>; /** * Names of the fields that this field's options depend on */ depends_on?: Array; /** * Options to choose from, loaded from options or from uri. Each is a two-item array */ choices?: Array<[ string | number, string | number ]>; /** * Value selected by default, from the options loaded from uri */ defaultValue?: string; } | { /** * Type of the element */ type: 'text'; /** * Label of the form field */ label: string; /** * Name of the form field, which keys its value in the submitted form */ name: string; /** * Issue field that prefills the field */ default?: 'issue.title' | 'issue.description'; } | { /** * Type of the element */ type: 'textarea'; /** * Label of the form field */ label: string; /** * Name of the form field, which keys its value in the submitted form */ name: string; /** * Issue field that prefills the field */ default?: 'issue.title' | 'issue.description'; }>; /** * Fields that the user can fill in */ optional_fields?: Array<{ /** * Type of the element */ type: 'select'; /** * Label of the form field */ label: string; /** * Name of the form field, which keys its value in the submitted form */ name: string; /** * Whether the field loads its options from uri as the user types */ async?: boolean; /** * Whether to skip loading the options from uri when the form opens */ skip_load_on_open?: boolean; /** * Whether more than one option can be selected */ multiple?: boolean; /** * Path on the integration's server that Sentry sends requests to */ uri?: string; /** * Options to choose from, each a two-item array */ options?: Array<[ string | number, string | number ]>; /** * Names of the fields that this field's options depend on */ depends_on?: Array; /** * Options to choose from, loaded from options or from uri. Each is a two-item array */ choices?: Array<[ string | number, string | number ]>; /** * Value selected by default, from the options loaded from uri */ defaultValue?: string; } | { /** * Type of the element */ type: 'text'; /** * Label of the form field */ label: string; /** * Name of the form field, which keys its value in the submitted form */ name: string; /** * Issue field that prefills the field */ default?: 'issue.title' | 'issue.description'; } | { /** * Type of the element */ type: 'textarea'; /** * Label of the form field */ label: string; /** * Name of the form field, which keys its value in the submitted form */ name: string; /** * Issue field that prefills the field */ default?: 'issue.title' | 'issue.description'; }>; }; } | { /** * Type of the element */ type: 'issue-media'; /** * Title of the element */ title: string; /** * Media elements to show */ elements: Array<{ /** * Type of the element */ type: 'header'; /** * Text of the header */ text: string; } | { /** * Type of the element */ type: 'markdown'; /** * Markdown text */ text: string; } | { /** * Type of the element */ type: 'image'; /** * URL of the image */ url: string; /** * Alternative text of the image */ alt?: string; } | { /** * Type of the element */ type: 'video'; /** * URL of the video */ url: string; }>; } | { /** * Type of the element */ type: 'stacktrace-link'; /** * Path on the integration's server that Sentry sends requests to */ uri: string; /** * URL of the link, built from uri with the installation and project */ url?: string; }; /** * Error from loading the component. Empty when there's none */ error: string | { /** * Error message */ detail?: string; /** * Additional public details about the error, if any */ context?: { [key: string]: unknown; }; }; /** * Custom integration that provides the component */ sentryApp: { /** * UUID of the custom integration */ uuid: string; /** * Slug of the custom integration */ slug: string; /** * Name of the custom integration */ name: string; /** * Avatars of the custom integration */ avatars: Array<{ /** * Avatar type: `default` or `upload` */ avatarType: string; /** * Unique identifier of the uploaded avatar file, or an empty string if none is set */ avatarUuid: string; /** * Absolute URL of the avatar image */ avatarUrl: string; /** * Whether this is the color logo (`true`) or the simple icon (`false`) */ color: boolean; /** * Kind of image: `logo` for the color logo or `icon` for the simple icon */ photoType: string; }>; }; /** * UUID of the integration installation the component belongs to */ installationUuid?: string; }>; }; export type ListOrganizationSentryAppComponentsResponse = ListOrganizationSentryAppComponentsResponses[keyof ListOrganizationSentryAppComponentsResponses]; export type ListOrganizationSentryAppsData = { body?: never; path: { /** * The ID or slug of the organization the resource belongs to. */ organization_id_or_slug: string; }; query?: never; url: '/organizations/{organization_id_or_slug}/sentry-apps/'; }; export type ListOrganizationSentryAppsResponses = { 200: Array<{ /** * Allowed origins for CORS */ allowedOrigins: Array; /** * Avatars of the custom integration */ avatars: Array<{ /** * Avatar type: `default` or `upload` */ avatarType: string; /** * Unique identifier of the uploaded avatar file, or an empty string if none is set */ avatarUuid: string; /** * Absolute URL of the avatar image */ avatarUrl: string; /** * Whether this is the color logo (`true`) or the simple icon (`false`) */ color: boolean; /** * Kind of image: `logo` for the color logo or `icon` for the simple icon */ photoType: string; }>; /** * Resources the integration's webhooks are subscribed to, such as issue */ events: Array; /** * Webhook events the integration is subscribed to, such as issue.resolved */ webhookEvents: Array; /** * Features the integration supports. Empty for internal integrations */ featureData: Array; /** * Whether the integration can be used in alert rules */ isAlertable: boolean; /** * Metadata of the integration */ metadata: string; /** * Name of the custom integration */ name: string; /** * UI components schema used to render the integration's UI elements */ schema: string; /** * Permission scopes for API access */ scopes: Array; /** * Slug of the custom integration */ slug: string; /** * Status of the integration */ status: 'unpublished' | 'published' | 'internal' | 'publish_request_inprogress' | 'deletion_in_progress'; /** * UUID of the custom integration */ uuid: string; /** * Whether installations of the integration must be verified */ verifyInstall: boolean; /** * Custom headers sent with every webhook request, as Header-Name: value pairs. Values are masked */ webhookHeaders: Array; /** * Whether the integration is disabled */ isDisabled?: boolean; /** * Author of the integration */ author?: string | null; /** * Description of the integration */ overview?: string | null; /** * Popularity score of the integration */ popularity?: number | null; /** * URL to redirect to after installation */ redirectUrl?: string | null; /** * Webhook destination URL */ webhookUrl?: string | null; /** * OAuth client secret. Only shown to authorized users within 5 minutes of creation, and masked otherwise */ clientSecret?: string | null; /** * When the integration was published (ISO 8601). Only set for published integrations */ datePublished?: string; /** * OAuth client ID. Only included for members of the owner organization */ clientId?: string; /** * Organization that owns the integration. Only included for members of the owner organization */ owner?: { /** * ID of the organization that owns the integration */ id: number; /** * Slug of the organization that owns the integration */ slug: string; }; }>; }; export type ListOrganizationSentryAppsResponse = ListOrganizationSentryAppsResponses[keyof ListOrganizationSentryAppsResponses]; export type GetOrganizationSessionsData = { body?: never; path: { /** * The ID or slug of the organization the resource belongs to. */ organization_id_or_slug: string; }; query: { /** * The list of fields to query. * * The available fields are * - `sum(session)` * - `count_unique(user)` * - `avg`, `p50`, `p75`, `p90`, `p95`, `p99`, `max` applied to `session.duration`. For example, `p99(session.duration)`. Session duration is [no longer being recorded](https://github.com/getsentry/sentry/discussions/42716) as of on Jan 12, 2023. Returned data may be incomplete. * - `crash_rate`, `crash_free_rate` applied to `user` or `session`. For example, `crash_free_rate(user)` * */ field: Array; /** * The start of the period of time for the query, expected in ISO-8601 format. For example, `2001-12-14T12:34:56.7890`. */ start?: string; /** * The end of the period of time for the query, expected in ISO-8601 format. For example, `2001-12-14T12:34:56.7890`. */ end?: string; /** * The name of environments to filter by. */ environment?: Array; /** * The period of time for the query, will override the start & end parameters, a number followed by one of: * - `d` for days * - `h` for hours * - `m` for minutes * - `s` for seconds * - `w` for weeks * * For example, `24h`, to mean query data starting from 24 hours ago to now. */ statsPeriod?: string; /** * The IDs or slugs of projects to filter by. Project slugs are unique within each organization. Omit this parameter to include all accessible projects. `-1` is also accepted to include all accessible projects. * For example, the following are valid parameters: * - `/?project=1234&project=56789` * - `/?project=android&project=javascript-react` * - `/?project=-1` * */ project?: Array; /** * The number of groups to return per request. */ per_page?: number; /** * Resolution of the time series, given in the same format as `statsPeriod`. * * The default and * the minimum interval is `1h`. */ interval?: string; /** * The list of properties to group by. * * The available groupBy conditions are `project`, * `release`, `environment` and `session.status`. */ groupBy?: Array; /** * An optional field to order by, which must be one of the fields provided in `field`. Use `-` * for descending order, for example, `-sum(session)` */ orderBy?: string; /** * Specify `0` to exclude totals from the response. The default is `1` */ includeTotals?: number; /** * Specify `0` to exclude series from the response. The default is `1` */ includeSeries?: number; /** * Filters results by using [query syntax](/product/sentry-basics/search/). * * Example: `query=(transaction:foo AND release:abc) OR (transaction:[bar,baz] AND release:def)` * */ query?: string; }; url: '/organizations/{organization_id_or_slug}/sessions/'; }; export type GetOrganizationSessionsErrors = { /** * Bad Request */ 400: unknown; /** * Unauthorized */ 401: unknown; }; export type GetOrganizationSessionsResponses = { 200: { /** * Start of the queried time range (ISO 8601) */ start: string; /** * End of the queried time range (ISO 8601) */ end: string; /** * Start of each interval in the series (ISO 8601) */ intervals: Array; /** * Result for each group */ groups: Array<{ /** * Values of the group-by columns of the group */ by: { /** * ID of the project */ project?: number; /** * Version of the release */ release?: string; /** * Name of the environment */ environment?: string; /** * Status of the sessions: healthy, abnormal, crashed or errored */ 'session.status'?: string; }; /** * Value of each requested field for each interval, by field */ series: { [key: string]: Array; }; /** * Value of each requested field over the whole time range, by field */ totals: { [key: string]: number | null; }; }>; /** * Search query that filtered the sessions */ query: string; }; }; export type GetOrganizationSessionsResponse = GetOrganizationSessionsResponses[keyof GetOrganizationSessionsResponses]; export type ResolveOrganizationShortIdData = { body?: never; path: { /** * The ID or slug of the organization the resource belongs to. */ organization_id_or_slug: string; /** * The short ID of the issue to resolve. */ issue_id: string; }; query?: { /** * Fields to remove from the response to improve query performance. */ collapse?: Array<'base' | 'filtered' | 'lifetime' | 'stats' | 'unhandled'>; }; url: '/organizations/{organization_id_or_slug}/shortids/{issue_id}/'; }; export type ResolveOrganizationShortIdErrors = { /** * Bad Request */ 400: unknown; /** * Unauthorized */ 401: unknown; /** * Forbidden */ 403: unknown; /** * Not Found */ 404: unknown; }; export type ResolveOrganizationShortIdResponses = { 200: { /** * Slug of the organization */ organizationSlug: string; /** * Slug of the issue's project */ projectSlug: string; /** * ID of the issue */ groupId: string; /** * The issue */ group: { /** * Whether the issue includes unhandled events */ isUnhandled?: boolean; /** * Total number of events in the issue */ count?: string; /** * Number of users affected by the issue */ userCount?: number; /** * When the issue was first seen (ISO 8601) */ firstSeen?: string | null; /** * When the issue was last seen (ISO 8601) */ lastSeen?: string | null; /** * Additional data derived for the issue. Only included when requested with expand */ derivedData?: { /** * Action that blocks progress on the issue: none, approve_root_cause, approve_plan, approve_code_changes or merge_pr */ blocker: string; /** * How far the issue is toward resolution: identified, assigned, diagnosed, fix_proposed or fix_applied */ progress: string; /** * Status of the issue from its action log: open or closed */ status: string; /** * Number of times the issue was viewed */ viewCount: number; /** * Whether an open pull request is linked to the issue */ hasOpenFixPr: boolean; /** * Whether the issue has an assignee */ isAssigned: boolean; /** * Whether a root cause was found for the issue */ hasRootCause: boolean; /** * Furthest Autofix step completed: none, root_cause, solution, code_changes, pr_created or pr_iteration */ lastCompletedAutofixStep: string; /** * When the issue's progress last advanced (ISO 8601) */ lastProgressedAt: string | null; /** * The issue's impact assessment, or null when no assessment is available */ impact?: { /** * Estimated per-occurrence impact on the end user's capability from 0 to 100 */ score: number | null; /** * Impact level derived from the assessment score */ level: 'super_low' | 'low' | 'moderate' | 'high' | 'super_high' | null; /** * Human-readable description of the capability affected by the issue */ description: string; /** * Evidence-backed claims supporting the impact assessment */ citations: Array<{ /** * Stable identifier for the evidence supporting this claim */ reference: string; /** * Concise explanation of what the cited evidence establishes */ claim: string; /** * The category of evidence cited, such as an event, trace, replay, or log */ source: string; }>; /** * ID of the issue event used to generate the impact assessment */ sourceEventId: string; } | null; }; /** * ID of the issue */ id: string; /** * ID used in the issue's public share URL. Null when the issue isn't shared */ shareId: string | null; /** * Short ID of the issue, such as PROJECT-1A */ shortId: string | null; /** * Title of the issue */ title: string; /** * Function or module where the issue occurs */ culprit: string | null; /** * URL of the issue in Sentry */ permalink: string; /** * Logger of the issue's events */ logger: string | null; /** * Severity level of the issue */ level: 'sample' | 'debug' | 'info' | 'warning' | 'error' | 'fatal' | 'unknown'; /** * Issue status */ status: 'resolved' | 'ignored' | 'pending_deletion' | 'pending_merge' | 'reprocessing' | 'unresolved'; /** * Details of the issue's status, such as when an ignore expires or which release resolves it */ statusDetails: { /** * Number of additional events after which the issue stops being ignored */ ignoreCount?: number | null; /** * When the issue stops being ignored (ISO 8601) */ ignoreUntil?: string | null; /** * Number of additional affected users after which the issue stops being ignored */ ignoreUserCount?: number | null; /** * Time window in minutes for ignoreUserCount */ ignoreUserWindow?: number | null; /** * Time window in minutes for ignoreCount */ ignoreWindow?: number | null; /** * User who ignored or resolved the issue */ actor?: { /** * SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access */ identities?: Array<{ /** * SSO identity ID */ id: string; /** * User's identifier at the auth provider */ name: string; /** * Organization the auth provider belongs to */ organization: { /** * Organization slug */ slug: string; /** * Organization name */ name: string; }; /** * Auth provider of the identity */ provider: { /** * Auth provider key, such as google or saml2 */ id: string; /** * Display name of the auth provider */ name: string; }; /** * When the identity was last verified by signing in through the auth provider */ dateVerified: string; /** * When the identity was last synced from the auth provider */ dateSynced: string; }>; /** * User avatar */ avatar?: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Two-factor authenticators of the user, without backup methods such as recovery codes */ authenticators?: Array<{ /** * Authenticator ID */ id: string; /** * Authenticator type, such as totp, sms, u2f or recovery */ type: string; /** * Display name of the authenticator type */ name: string; /** * When the authenticator was added */ dateCreated: string; /** * When the authenticator was last used, or null */ dateUsed: string | null; }>; /** * Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization */ canReset2fa?: boolean; /** * User ID */ id: string; /** * Display name: the user's name, or their email or username if no name is set */ name: string; /** * Username */ username: string; /** * Primary email address */ email: string; /** * Gravatar URL for the primary email address */ avatarUrl: string; /** * Whether the account is active */ isActive: boolean; /** * Whether the account is suspended. Suspended users can't sign in */ isSuspended: boolean; /** * Whether the user has a password set */ hasPasswordAuth: boolean; /** * Whether the account is managed, which stops the user from changing their username, password and similar details */ isManaged: boolean; /** * When the account was created */ dateJoined: string; /** * When the user last signed in, or null */ lastLogin: string | null; /** * Whether the user has two-factor authentication enabled */ has2fa: boolean; /** * When the user was last active, or null */ lastActive: string | null; /** * Whether the user is a superuser */ isSuperuser: boolean; /** * Whether the user has staff status */ isStaff: boolean; /** * Deprecated. Always an empty object */ experiments: { [key: string]: string; }; /** * Email addresses of the user. Only included for the requesting user or superusers; empty otherwise */ emails: Array<{ /** * Email ID */ id: string; /** * Email address */ email: string; /** * Whether the email address is verified */ is_verified: boolean; }>; } | null; /** * Whether the issue is resolved in the next release */ inNextRelease?: boolean; /** * Version of the release the issue is resolved in */ inRelease?: string; /** * Commit the issue is resolved in */ inCommit?: string; /** * Number of events still waiting to be reprocessed */ pendingEvents?: number; /** * Reprocessing progress details */ info?: { /** * When reprocessing started (ISO 8601) */ dateCreated: string; /** * Number of events in the issue when reprocessing started */ syncCount: number; /** * Number of events to reprocess, at most the requested maximum */ totalEvents: number; } | null; }; /** * Substatus of the issue, such as ongoing, regressed or escalating */ substatus: 'archived_until_escalating' | 'archived_until_condition_met' | 'archived_forever' | 'escalating' | 'ongoing' | 'regressed' | 'new' | null; /** * Whether the issue is shared publicly */ isPublic: boolean; /** * Platform of the issue's events */ platform: string | null; /** * Priority of the issue: high, medium or low */ priority: 'low' | 'medium' | 'high' | null; /** * When the priority was last set manually, which stops automatic priority updates (ISO 8601) */ priorityLockedAt: string | null; /** * Seer's score for how likely the issue is to be fixable */ seerFixabilityScore: number | null; /** * When Seer Autofix was last triggered for the issue (ISO 8601) */ seerAutofixLastTriggered: string | null; /** * When the Seer explorer agent last completed an Autofix step for the issue (ISO 8601) */ seerExplorerAutofixLastTriggered: string | null; /** * Project the issue belongs to */ project: { /** * ID of the project */ id: string; /** * Name of the project */ name: string; /** * Slug of the project */ slug: string; /** * Platform of the project */ platform: string | null; }; /** * Event type of the issue, such as error or default */ type: 'default' | 'error' | 'csp' | 'nel' | 'hpkp' | 'expectct' | 'expectstaple' | 'transaction' | 'generic' | 'feedback'; /** * Issue type, such as error or performance_n_plus_one_db_queries */ issueType: string; /** * Issue category, such as error or performance */ issueCategory: string; /** * Issue metadata */ metadata: { /** * Title of default and issue platform events */ title?: string; /** * Exception value, or the subtitle of an issue */ value?: string; /** * Exception type of error events */ type?: string; /** * Whether the SDK fabricated the exception to carry a stacktrace, so its type is a platform label rather than what went wrong */ synthetic?: boolean; /** * File of the frame where the error happened */ filename?: string; /** * Function of the frame where the error happened */ function?: string; /** * Message of default, security and feedback events */ message?: string; /** * URI that a CSP report blocked */ uri?: string; /** * CSP directive that was violated */ directive?: string; /** * Host name of HPKP, Expect-CT and Expect-Staple reports */ origin?: string; /** * Name of the person who sent user feedback */ name?: string; /** * Email of the person who sent user feedback */ contact_email?: string; /** * Where user feedback came from, such as a widget */ source?: string; /** * Whether the stacktrace has in-app frames, system frames or both */ in_app_frame_mix?: string; /** * Whether a crash report was dropped because the issue already stores the most allowed */ stripped_crash?: boolean; /** * SDK of the issue's first event */ sdk?: { /** * Name of the SDK, or unknown */ name: string; /** * Name of the SDK, normalized for grouping */ name_normalized: string; }; /** * Severity score of the issue's first event */ severity?: number; /** * Why the severity score is what it is */ severity_reason?: string; /** * Priority the issue was created with */ initial_priority?: number; }; /** * Number of comments on the issue */ numComments: number; /** * User or team the issue is assigned to */ assignedTo: { /** * Whether the actor is a user or a team */ type: 'user' | 'team'; /** * ID of the user or team */ id: string; /** * Display name of the user, or slug of the team */ name: string; /** * Email address of the user. Only set for users */ email?: string; } | null; /** * Whether the requesting user bookmarked the issue */ isBookmarked: boolean; /** * Whether the requesting user is subscribed to the issue */ isSubscribed: boolean; /** * Why the requesting user is subscribed to the issue */ subscriptionDetails: { /** * Whether the requesting user turned off notifications for the issue */ disabled?: boolean; /** * Why the requesting user is subscribed: commented, assigned, bookmarked, changed_status, mentioned or unknown */ reason?: string; } | null; /** * Whether the requesting user has seen the issue since it last occurred */ hasSeen: boolean; /** * External issues linked to the issue */ annotations: Array<{ /** * Display name of the linked external issue */ displayName: string; /** * URL of the linked external issue */ url: string; }>; }; /** * Short ID of the issue, such as PROJECT-1A */ shortId: string; }; }; export type ResolveOrganizationShortIdResponse = ResolveOrganizationShortIdResponses[keyof ResolveOrganizationShortIdResponses]; export type UnstarOrganizationServiceSpanData = { body?: never; path: { /** * The ID or slug of the organization the resource belongs to. */ organization_id_or_slug: string; }; query: { /** * The name of the service span to unstar. */ service_span: string; /** * The ID of the project the service span belongs to. */ project_id: number; }; url: '/organizations/{organization_id_or_slug}/starred-service-spans/'; }; export type UnstarOrganizationServiceSpanErrors = { /** * Bad Request */ 400: unknown; /** * Unauthorized */ 401: unknown; /** * Forbidden */ 403: unknown; /** * Not Found */ 404: unknown; }; export type UnstarOrganizationServiceSpanResponses = { /** * Success */ 200: unknown; }; export type StarOrganizationServiceSpanData = { body: { /** * The name of the service span to star or unstar. */ service_span: string; /** * The ID of the project the service span belongs to. */ project_id: number; }; path: { /** * The ID or slug of the organization the resource belongs to. */ organization_id_or_slug: string; }; query?: never; url: '/organizations/{organization_id_or_slug}/starred-service-spans/'; }; export type StarOrganizationServiceSpanErrors = { /** * Bad Request */ 400: unknown; /** * Unauthorized */ 401: unknown; /** * Forbidden */ 403: unknown; /** * Not Found */ 404: unknown; }; export type StarOrganizationServiceSpanResponses = { /** * Success */ 200: unknown; }; export type GetOrganizationStatsSummaryData = { body?: never; path: { /** * The ID or slug of the organization the resource belongs to. */ organization_id_or_slug: string; }; query: { /** * the `sum(quantity)` field is bytes for attachments, and all others the 'event' count for those types of events. * * `sum(times_seen)` sums the number of times an event has been seen. For 'normal' event types, this will be equal to `sum(quantity)` for now. For sessions, quantity will sum the total number of events seen in a session, while `times_seen` will be the unique number of sessions. and for attachments, `times_seen` will be the total number of attachments, while quantity will be the total sum of attachment bytes. * * * `sum(quantity)` * * `sum(times_seen)` */ field: 'sum(quantity)' | 'sum(times_seen)'; /** * This defines the range of the time series, relative to now. The range is given in a `` format. For example `1d` for a one day range. Possible units are `m` for minutes, `h` for hours, `d` for days and `w` for weeks. You must either provide a `statsPeriod`, or a `start` and `end`. */ statsPeriod?: string; /** * This is the resolution of the time series, given in the same format as `statsPeriod`. The default resolution is `1h` and the minimum resolution is currently restricted to `1h` as well. Intervals larger than `1d` are not supported, and the interval has to cleanly divide one day. */ interval?: string; /** * This defines the start of the time series range as an explicit datetime, either in UTC ISO8601 or epoch seconds. Use along with `end` instead of `statsPeriod`. */ start?: string; /** * This defines the inclusive end of the time series range as an explicit datetime, either in UTC ISO8601 or epoch seconds. Use along with `start` instead of `statsPeriod`. */ end?: string; /** * The ID of the projects to filter by. */ project?: Array; /** * If filtering by attachments, you cannot filter by any other category due to quantity values becoming nonsensical (combining bytes and event counts). * * If filtering by `error`, it will automatically add `default` and `security` as we currently roll those two categories into `error` for displaying. * * * `error` * * `transaction` * * `attachment` * * `replays` * * `profiles` */ category?: 'error' | 'transaction' | 'attachment' | 'replays' | 'profiles'; /** * See https://docs.sentry.io/product/stats/ for more information on outcome statuses. * * * `accepted` * * `filtered` * * `rate_limited` * * `invalid` * * `abuse` * * `client_discard` * * `cardinality_limited` */ outcome?: 'accepted' | 'filtered' | 'rate_limited' | 'invalid' | 'abuse' | 'client_discard' | 'cardinality_limited'; /** * The reason field will contain why an event was filtered/dropped. */ reason?: string; /** * Download the API response in as a csv file */ download?: boolean; }; url: '/organizations/{organization_id_or_slug}/stats-summary/'; }; export type GetOrganizationStatsSummaryErrors = { /** * Unauthorized */ 401: unknown; /** * Not Found */ 404: unknown; }; export type GetOrganizationStatsSummaryResponses = { 200: { /** * Start of the queried time range (ISO 8601) */ start: string; /** * End of the queried time range (ISO 8601) */ end: string; /** * Outcome stats of each project */ projects: Array<{ /** * ID of the project */ id: number; /** * Slug of the project */ slug: string; /** * Outcome counts of the project by data category */ stats: Array<{ /** * Data category of the counts, such as error */ category: string; /** * Quantity of each outcome, such as accepted or rate_limited */ outcomes: { [key: string]: number; }; /** * Totals of the requested fields, such as sum(quantity). Also has dropped, the quantity of the dropped outcomes, unless the outcome filter leaves them all out */ totals: { [key: string]: number; }; /** * Reason for the outcomes. Only present when grouped by reason */ reason?: string; }>; }>; }; }; export type GetOrganizationStatsSummaryResponse = GetOrganizationStatsSummaryResponses[keyof GetOrganizationStatsSummaryResponses]; export type ListOrganizationStatsV2Data = { body?: never; path: { /** * The ID or slug of the organization the resource belongs to. */ organization_id_or_slug: string; }; query: { /** * can pass multiple groupBy parameters to group by multiple, e.g. `groupBy=project&groupBy=outcome` to group by multiple dimensions. Note that grouping by project can cause missing rows if the number of projects / interval is large. If you have a large number of projects, we recommend filtering and querying by them individually.Also note that grouping by projects does not currently support timeseries interval responses and will instead be a sum of the projectover the entire period specified. */ groupBy: Array<'outcome' | 'category' | 'reason' | 'project'>; /** * the `sum(quantity)` field is bytes for attachments, and all others the 'event' count for those types of events. * * `sum(times_seen)` sums the number of times an event has been seen. For 'normal' event types, this will be equal to `sum(quantity)` for now. For sessions, quantity will sum the total number of events seen in a session, while `times_seen` will be the unique number of sessions. and for attachments, `times_seen` will be the total number of attachments, while quantity will be the total sum of attachment bytes. * * * `sum(quantity)` * * `sum(times_seen)` */ field: 'sum(quantity)' | 'sum(times_seen)'; /** * This defines the range of the time series, relative to now. The range is given in a `` format. For example `1d` for a one day range. Possible units are `m` for minutes, `h` for hours, `d` for days and `w` for weeks. You must either provide a `statsPeriod`, or a `start` and `end`. */ statsPeriod?: string; /** * This is the resolution of the time series, given in the same format as `statsPeriod`. The default resolution is `1h` and the minimum resolution is currently restricted to `1h` as well. Intervals larger than `1d` are not supported, and the interval has to cleanly divide one day. */ interval?: string; /** * This defines the start of the time series range as an explicit datetime, either in UTC ISO8601 or epoch seconds. Use along with `end` instead of `statsPeriod`. */ start?: string; /** * This defines the inclusive end of the time series range as an explicit datetime, either in UTC ISO8601 or epoch seconds. Use along with `start` instead of `statsPeriod`. */ end?: string; /** * The ID of the projects to filter by. * * Use `-1` to include all accessible projects. */ project?: Array; /** * Filter by data category. Each category represents a different type of data: * * - `error`: Error events (includes `default` and `security` categories) * - `transaction`: Transaction events * - `attachment`: File attachments (note: cannot be combined with other categories since quantity represents bytes) * - `replay`: Session replay events * - `profile`: Performance profiles * - `profile_duration`: Profile duration data (note: cannot be combined with other categories since quantity represents milliseconds) * - `profile_duration_ui`: Profile duration (UI) data (note: cannot be combined with other categories since quantity represents milliseconds) * - `profile_chunk`: Profile chunk data * - `profile_chunk_ui`: Profile chunk (UI) data * - `monitor`: Cron monitor events * * * `error` * * `transaction` * * `attachment` * * `replay` * * `profile` * * `profile_duration` * * `profile_duration_ui` * * `profile_chunk` * * `profile_chunk_ui` * * `monitor` */ category?: 'error' | 'transaction' | 'attachment' | 'replay' | 'profile' | 'profile_duration' | 'profile_duration_ui' | 'profile_chunk' | 'profile_chunk_ui' | 'monitor'; /** * See https://docs.sentry.io/product/stats/ for more information on outcome statuses. * * * `accepted` * * `filtered` * * `rate_limited` * * `invalid` * * `abuse` * * `client_discard` * * `cardinality_limited` */ outcome?: 'accepted' | 'filtered' | 'rate_limited' | 'invalid' | 'abuse' | 'client_discard' | 'cardinality_limited'; /** * The reason field will contain why an event was filtered/dropped. */ reason?: string; }; url: '/organizations/{organization_id_or_slug}/stats_v2/'; }; export type ListOrganizationStatsV2Errors = { /** * Unauthorized */ 401: unknown; /** * Not Found */ 404: unknown; }; export type ListOrganizationStatsV2Responses = { 200: { /** * Start of the queried time range (ISO 8601) */ start: string; /** * End of the queried time range (ISO 8601) */ end: string; /** * Start of each interval in the series (ISO 8601) */ intervals?: Array; /** * Result for each group */ groups: Array<{ /** * Values of the group-by columns of the group */ by: { [key: string]: string | number; }; /** * Value of each requested field over the whole time range, by field */ totals: { [key: string]: number; }; /** * Value of each requested field for each interval, by field */ series?: { [key: string]: Array; }; }>; }; }; export type ListOrganizationStatsV2Response = ListOrganizationStatsV2Responses[keyof ListOrganizationStatsV2Responses]; export type ListOrganizationTagsData = { body?: never; path: { /** * The ID or slug of the organization the resource belongs to. */ organization_id_or_slug: string; }; query?: { /** * The IDs or slugs of projects to filter by. Project slugs are unique within each organization. Omit this parameter to include all accessible projects. `-1` is also accepted to include all accessible projects. * For example, the following are valid parameters: * - `/?project=1234&project=56789` * - `/?project=android&project=javascript-react` * - `/?project=-1` * */ project?: Array; /** * The name of environments to filter by. */ environment?: Array; /** * The period of time for the query, will override the start & end parameters, a number followed by one of: * - `d` for days * - `h` for hours * - `m` for minutes * - `s` for seconds * - `w` for weeks * * For example, `24h`, to mean query data starting from 24 hours ago to now. */ statsPeriod?: string; /** * The start of the period of time for the query, expected in ISO-8601 format. For example, `2001-12-14T12:34:56.7890`. */ start?: string; /** * The end of the period of time for the query, expected in ISO-8601 format. For example, `2001-12-14T12:34:56.7890`. */ end?: string; /** * The dataset to query. Defaults to `discover`. */ dataset?: 'discover' | 'events' | 'replays' | 'search_issues'; /** * Set to `"1"` to enable caching for the tag key query. */ use_cache?: '0' | '1'; /** * Set to `"1"` to query feature flags instead of tags. */ useFlagsBackend?: '0' | '1'; }; url: '/organizations/{organization_id_or_slug}/tags/'; }; export type ListOrganizationTagsErrors = { /** * Bad Request */ 400: unknown; /** * Unauthorized */ 401: unknown; /** * Forbidden */ 403: unknown; }; export type ListOrganizationTagsResponses = { 200: Array<{ /** * Number of distinct values seen for the tag key */ uniqueValues?: number | null; /** * Number of events counted for the tag key. For an issue tag, this is the issue's retained event count, including events without the tag */ totalValues?: number | null; /** * Most frequent values of the tag key, ordered by count */ topValues?: Array<{ /** * Search query that matches events with the tag value. Only set for the user tag */ query?: string | null; /** * Tag key, with the `sentry:` prefix removed from built-in keys */ key: string; /** * Display label of the tag value. For the user tag, the `id:`, `email:`, `username:` or `ip:` prefix is removed */ name: string | null; /** * Tag value */ value: string | null; /** * Number of events with the tag value. Null for an empty value */ count: number | null; /** * When the tag value was last seen (ISO 8601). Null for an empty value */ lastSeen: string | null; /** * When the tag value was first seen (ISO 8601). Null for an empty value */ firstSeen: string | null; }> | null; /** * Tag key, with the `sentry:` prefix removed from built-in keys */ key: string; /** * Display label of the tag key */ name: string; }>; }; export type ListOrganizationTagsResponse2 = ListOrganizationTagsResponses[keyof ListOrganizationTagsResponses]; export type ListOrganizationTeamsData = { body?: never; path: { /** * The ID or slug of the organization the resource belongs to. */ organization_id_or_slug: string; }; query?: { /** * * Specify `"0"` to return team details that do not include projects. * */ detailed?: string; /** * A pointer to the last object fetched and its sort order; used to retrieve the next or previous results. */ cursor?: string; /** * Limit the number of rows to return in the result. Default and maximum allowed is 100. */ per_page?: number; /** * Filter teams by name or slug. */ query?: string; }; url: '/organizations/{organization_id_or_slug}/teams/'; }; export type ListOrganizationTeamsErrors = { /** * Forbidden */ 403: unknown; /** * Not Found */ 404: unknown; }; export type ListOrganizationTeamsResponses = { 200: Array<{ /** * Team ID */ id: string; /** * Team slug, unique within the organization */ slug: string; /** * Display name of the team */ name: string; /** * When the team was created (ISO 8601) */ dateCreated: string | null; /** * Whether the requesting user is a member of the team */ isMember: boolean; /** * The requesting user's role in the team */ teamRole: string | null; /** * Team flags. idp:provisioned is true when the team is managed by an identity provider through SCIM */ flags: { [key: string]: boolean; }; /** * Scopes the requesting user has on the team through their team role. Empty if the user has no access */ access: Array; /** * Whether the requesting user can access the team, as a member, through open membership or through an organization role with access to all teams */ hasAccess: boolean; /** * Whether the requesting user has a pending request to join the team */ isPending: boolean; /** * Number of members in the team */ memberCount: number; /** * Team avatar */ avatar: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Teams in external providers, such as Slack or GitHub, that are linked to this team */ externalTeams?: Array<{ /** * ID of the user or team in the provider */ externalId?: string; /** * ID of the Sentry user. Only set for user mappings */ userId?: string; /** * ID of the Sentry team. Only set for team mappings */ teamId?: string; /** * ID of the external actor mapping */ id: string; /** * Provider of the external actor, such as github or slack */ provider: string; /** * Name of the user or team in the provider, such as @octocat */ externalName: string; /** * ID of the integration the mapping belongs to */ integrationId: string; }>; /** * Organization the team belongs to */ organization?: { /** * Features enabled for the organization */ features?: Array; /** * Server-wide options that the Sentry UI reads */ extraOptions?: { [key: string]: { [key: string]: unknown; }; }; /** * Scopes the requesting user has in the organization */ access?: Array; /** * Onboarding tasks the organization has completed or skipped */ onboardingTasks?: Array<{ /** * Onboarding task key, such as create_project */ task: string | null; /** * Task status: complete or skipped */ status: string; /** * When the task's completion was marked as seen, or null */ completionSeen: string | null; /** * When the task was completed or skipped */ dateCompleted: string; /** * Data recorded for the task. Most tasks record none, so it's often empty */ data: { /** * ID of the member whose invite completed the invite_member task */ invited_member_id?: number; /** * Platform of the first event, for the first_event task */ platform?: string | null; /** * Slug of the plugin enabled for the task */ plugin?: string; /** * Integration providers installed for the integrations task */ providers?: Array; }; }>; /** * Organization ID */ id: string; /** * Organization slug */ slug: string; /** * Organization status */ status: { /** * Status ID: active, pending_deletion, deletion_in_progress or relocation_pending_approval */ id: string; /** * Status label, such as active or pending deletion */ name: string; }; /** * Organization name, or its slug when it has no name */ name: string; /** * When the organization was created (ISO 8601) */ dateCreated: string; /** * Whether the organization is an early adopter */ isEarlyAdopter: boolean; /** * Whether members must use two-factor authentication */ require2FA: boolean; /** * Organization avatar */ avatar: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Organization and region URLs */ links: { /** * Base URL of the organization */ organizationUrl: string; /** * Base URL of the API for the organization's region */ regionUrl: string; }; /** * Whether SSO is configured for the organization */ hasAuthProvider: boolean; /** * Whether members can invite other members */ allowMemberInvite: boolean; /** * Whether members can create projects */ allowMemberProjectCreation: boolean; /** * Whether Sentry superusers can access the organization */ allowSuperuserAccess: boolean; }; /** * Projects the team has access to */ projects?: Array<{ /** * Counts of non-transaction events per interval over the requested stats period, as [timestamp, count] pairs. Only included when a stats period is requested */ stats?: Array> | { [key: string]: number; }; /** * Counts of transactions per interval over the requested stats period, as [timestamp, count] pairs. Only included when transaction stats are requested */ transactionStats?: Array>; /** * Crash-free session rates for the current and previous stats period. Only included when session stats are requested */ sessionStats?: { /** * Crash-free rate in the current period, as a percentage. Null when there's no session data */ currentCrashFreeRate: number | null; /** * Crash-free rate in the previous period, as a percentage. Null when there's no session data */ previousCrashFreeRate: number | null; /** * Whether the project has release health (session) data */ hasHealthData: boolean; }; /** * ID of the project */ id: string; /** * Slug of the project */ slug: string; /** * Name of the project */ name: string; /** * Platform of the project */ platform: string | null; /** * When the project was created (ISO 8601) */ dateCreated: string; /** * Whether the requesting user bookmarked the project */ isBookmarked: boolean; /** * Whether the requesting user is a member of a team with access to the project */ isMember: boolean; /** * Features enabled for the project */ features: Array; /** * When the project received its first event (ISO 8601) */ firstEvent: string | null; /** * Whether the project has sent transactions */ firstTransactionEvent: boolean; /** * Scopes the requesting user has on the project through team membership and organization role */ access: Array; /** * Whether the requesting user has access to the project */ hasAccess: boolean; /** * Whether the project has sent user feedback */ hasFeedbacks: boolean; /** * Whether the project has sent feature flags */ hasFlags: boolean; /** * Whether the project has sent an event with a minified stack trace */ hasMinifiedStackTrace: boolean; /** * Whether the project has cron monitors */ hasMonitors: boolean; /** * Whether the project has sent user feedback from the user feedback widget */ hasNewFeedbacks: boolean; /** * Whether the project has sent profiles */ hasProfiles: boolean; /** * Whether the project has sent replays */ hasReplays: boolean; /** * Whether the project has sent sessions */ hasSessions: boolean; /** * Whether the project has sent HTTP request spans used by Insights */ hasInsightsHttp: boolean; /** * Whether the project has sent database spans used by Insights */ hasInsightsDb: boolean; /** * Whether the project has sent asset spans used by Insights */ hasInsightsAssets: boolean; /** * Whether the project has sent app start spans used by Insights */ hasInsightsAppStart: boolean; /** * Whether the project has sent screen load spans used by Insights */ hasInsightsScreenLoad: boolean; /** * Whether the project has sent web vitals spans used by Insights */ hasInsightsVitals: boolean; /** * Whether the project has sent cache spans used by Insights */ hasInsightsCaches: boolean; /** * Whether the project has sent queue spans used by Insights */ hasInsightsQueues: boolean; /** * Whether the project has sent AI agent spans used by Insights */ hasInsightsAgentMonitoring: boolean; /** * Whether the project has sent MCP spans used by Insights */ hasInsightsMCP: boolean; /** * Whether the project has sent logs. Always true outside sentry.io */ hasLogs: boolean; /** * Whether the project has sent trace metrics. Always true outside sentry.io */ hasTraceMetrics: boolean; /** * Whether this is the Sentry install's own internal project */ isInternal: boolean; /** * Whether the project is public */ isPublic: boolean; /** * Avatar of the project. Always a letter avatar */ avatar: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Hex color code for the project, derived from its slug unless set explicitly */ color: string; /** * Status of the project: active, deleted, or unknown */ status: string; }>; }>; }; export type ListOrganizationTeamsResponse = ListOrganizationTeamsResponses[keyof ListOrganizationTeamsResponses]; export type CreateOrganizationTeamData = { body?: { /** * Uniquely identifies a team and is used for the interface. If not * provided, it is automatically generated from the name. */ slug?: string | null; /** * **`[DEPRECATED]`** The name for the team. If not provided, it is * automatically generated from the slug * * @deprecated */ name?: string | null; }; path: { /** * The ID or slug of the organization the resource belongs to. */ organization_id_or_slug: string; }; query?: never; url: '/organizations/{organization_id_or_slug}/teams/'; }; export type CreateOrganizationTeamErrors = { /** * Bad Request */ 400: unknown; /** * Forbidden */ 403: unknown; /** * A team with this slug already exists. */ 404: unknown; /** * Conflict */ 409: unknown; }; export type CreateOrganizationTeamResponses = { 201: { /** * Team ID */ id: string; /** * Team slug, unique within the organization */ slug: string; /** * Display name of the team */ name: string; /** * When the team was created (ISO 8601) */ dateCreated: string | null; /** * Whether the requesting user is a member of the team */ isMember: boolean; /** * The requesting user's role in the team */ teamRole: string | null; /** * Team flags. idp:provisioned is true when the team is managed by an identity provider through SCIM */ flags: { [key: string]: boolean; }; /** * Scopes the requesting user has on the team through their team role. Empty if the user has no access */ access: Array; /** * Whether the requesting user can access the team, as a member, through open membership or through an organization role with access to all teams */ hasAccess: boolean; /** * Whether the requesting user has a pending request to join the team */ isPending: boolean; /** * Number of members in the team */ memberCount: number; /** * Team avatar */ avatar: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Teams in external providers, such as Slack or GitHub, that are linked to this team */ externalTeams?: Array<{ /** * ID of the user or team in the provider */ externalId?: string; /** * ID of the Sentry user. Only set for user mappings */ userId?: string; /** * ID of the Sentry team. Only set for team mappings */ teamId?: string; /** * ID of the external actor mapping */ id: string; /** * Provider of the external actor, such as github or slack */ provider: string; /** * Name of the user or team in the provider, such as @octocat */ externalName: string; /** * ID of the integration the mapping belongs to */ integrationId: string; }>; /** * Organization the team belongs to */ organization?: { /** * Features enabled for the organization */ features?: Array; /** * Server-wide options that the Sentry UI reads */ extraOptions?: { [key: string]: { [key: string]: unknown; }; }; /** * Scopes the requesting user has in the organization */ access?: Array; /** * Onboarding tasks the organization has completed or skipped */ onboardingTasks?: Array<{ /** * Onboarding task key, such as create_project */ task: string | null; /** * Task status: complete or skipped */ status: string; /** * When the task's completion was marked as seen, or null */ completionSeen: string | null; /** * When the task was completed or skipped */ dateCompleted: string; /** * Data recorded for the task. Most tasks record none, so it's often empty */ data: { /** * ID of the member whose invite completed the invite_member task */ invited_member_id?: number; /** * Platform of the first event, for the first_event task */ platform?: string | null; /** * Slug of the plugin enabled for the task */ plugin?: string; /** * Integration providers installed for the integrations task */ providers?: Array; }; }>; /** * Organization ID */ id: string; /** * Organization slug */ slug: string; /** * Organization status */ status: { /** * Status ID: active, pending_deletion, deletion_in_progress or relocation_pending_approval */ id: string; /** * Status label, such as active or pending deletion */ name: string; }; /** * Organization name, or its slug when it has no name */ name: string; /** * When the organization was created (ISO 8601) */ dateCreated: string; /** * Whether the organization is an early adopter */ isEarlyAdopter: boolean; /** * Whether members must use two-factor authentication */ require2FA: boolean; /** * Organization avatar */ avatar: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Organization and region URLs */ links: { /** * Base URL of the organization */ organizationUrl: string; /** * Base URL of the API for the organization's region */ regionUrl: string; }; /** * Whether SSO is configured for the organization */ hasAuthProvider: boolean; /** * Whether members can invite other members */ allowMemberInvite: boolean; /** * Whether members can create projects */ allowMemberProjectCreation: boolean; /** * Whether Sentry superusers can access the organization */ allowSuperuserAccess: boolean; }; /** * Projects the team has access to */ projects?: Array<{ /** * Counts of non-transaction events per interval over the requested stats period, as [timestamp, count] pairs. Only included when a stats period is requested */ stats?: Array> | { [key: string]: number; }; /** * Counts of transactions per interval over the requested stats period, as [timestamp, count] pairs. Only included when transaction stats are requested */ transactionStats?: Array>; /** * Crash-free session rates for the current and previous stats period. Only included when session stats are requested */ sessionStats?: { /** * Crash-free rate in the current period, as a percentage. Null when there's no session data */ currentCrashFreeRate: number | null; /** * Crash-free rate in the previous period, as a percentage. Null when there's no session data */ previousCrashFreeRate: number | null; /** * Whether the project has release health (session) data */ hasHealthData: boolean; }; /** * ID of the project */ id: string; /** * Slug of the project */ slug: string; /** * Name of the project */ name: string; /** * Platform of the project */ platform: string | null; /** * When the project was created (ISO 8601) */ dateCreated: string; /** * Whether the requesting user bookmarked the project */ isBookmarked: boolean; /** * Whether the requesting user is a member of a team with access to the project */ isMember: boolean; /** * Features enabled for the project */ features: Array; /** * When the project received its first event (ISO 8601) */ firstEvent: string | null; /** * Whether the project has sent transactions */ firstTransactionEvent: boolean; /** * Scopes the requesting user has on the project through team membership and organization role */ access: Array; /** * Whether the requesting user has access to the project */ hasAccess: boolean; /** * Whether the project has sent user feedback */ hasFeedbacks: boolean; /** * Whether the project has sent feature flags */ hasFlags: boolean; /** * Whether the project has sent an event with a minified stack trace */ hasMinifiedStackTrace: boolean; /** * Whether the project has cron monitors */ hasMonitors: boolean; /** * Whether the project has sent user feedback from the user feedback widget */ hasNewFeedbacks: boolean; /** * Whether the project has sent profiles */ hasProfiles: boolean; /** * Whether the project has sent replays */ hasReplays: boolean; /** * Whether the project has sent sessions */ hasSessions: boolean; /** * Whether the project has sent HTTP request spans used by Insights */ hasInsightsHttp: boolean; /** * Whether the project has sent database spans used by Insights */ hasInsightsDb: boolean; /** * Whether the project has sent asset spans used by Insights */ hasInsightsAssets: boolean; /** * Whether the project has sent app start spans used by Insights */ hasInsightsAppStart: boolean; /** * Whether the project has sent screen load spans used by Insights */ hasInsightsScreenLoad: boolean; /** * Whether the project has sent web vitals spans used by Insights */ hasInsightsVitals: boolean; /** * Whether the project has sent cache spans used by Insights */ hasInsightsCaches: boolean; /** * Whether the project has sent queue spans used by Insights */ hasInsightsQueues: boolean; /** * Whether the project has sent AI agent spans used by Insights */ hasInsightsAgentMonitoring: boolean; /** * Whether the project has sent MCP spans used by Insights */ hasInsightsMCP: boolean; /** * Whether the project has sent logs. Always true outside sentry.io */ hasLogs: boolean; /** * Whether the project has sent trace metrics. Always true outside sentry.io */ hasTraceMetrics: boolean; /** * Whether this is the Sentry install's own internal project */ isInternal: boolean; /** * Whether the project is public */ isPublic: boolean; /** * Avatar of the project. Always a letter avatar */ avatar: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Hex color code for the project, derived from its slug unless set explicitly */ color: string; /** * Status of the project: active, deleted, or unknown */ status: string; }>; }; }; export type CreateOrganizationTeamResponse = CreateOrganizationTeamResponses[keyof CreateOrganizationTeamResponses]; export type ListOrganizationTraceItemAttributesData = { body?: never; path: { /** * The ID or slug of the organization the resource belongs to. */ organization_id_or_slug: string; }; query?: { /** * The period of time for the query, will override the start & end parameters, a number followed by one of: * - `d` for days * - `h` for hours * - `m` for minutes * - `s` for seconds * - `w` for weeks * * For example, `24h`, to mean query data starting from 24 hours ago to now. */ statsPeriod?: string; /** * The start of the period of time for the query, expected in ISO-8601 format. For example, `2001-12-14T12:34:56.7890`. */ start?: string; /** * The end of the period of time for the query, expected in ISO-8601 format. For example, `2001-12-14T12:34:56.7890`. */ end?: string; /** * The name of environments to filter by. */ environment?: Array; /** * The IDs or slugs of projects to filter by. Project slugs are unique within each organization. Omit this parameter to include all accessible projects. `-1` is also accepted to include all accessible projects. * For example, the following are valid parameters: * - `/?project=1234&project=56789` * - `/?project=android&project=javascript-react` * - `/?project=-1` * */ project?: Array; /** * The trace item dataset to list attributes for. One of `itemType` or `dataset` is required. */ dataset?: 'logs' | 'preprod' | 'processing_errors' | 'spans' | 'tracemetrics'; /** * Deprecated alias of `dataset`. Use `dataset` instead. * * @deprecated */ itemType?: 'logs' | 'preprod' | 'processing_errors' | 'spans' | 'tracemetrics'; /** * Filter to attributes of one or more types. Defaults to all types. */ attributeType?: Array<'array' | 'boolean' | 'number' | 'string'>; /** * Restrict results to attribute names containing this substring (case-sensitive). */ substringMatch?: string; /** * Sentry [search syntax](https://docs.sentry.io/concepts/search/) to filter trace items before computing attributes. */ query?: string; /** * **Experimental:** This parameter is under active development and may change. * * Optional fields to expand. Pass `context` to include attribute metadata (brief, examples, deprecation, etc.). */ expand?: Array<'context'>; /** * A pointer to the last object fetched and its sort order; used to retrieve the next or previous results. */ cursor?: string; }; url: '/organizations/{organization_id_or_slug}/trace-items/attributes/'; }; export type ListOrganizationTraceItemAttributesErrors = { /** * Bad Request */ 400: unknown; /** * Unauthorized */ 401: unknown; /** * Forbidden */ 403: unknown; /** * Not Found */ 404: unknown; }; export type ListOrganizationTraceItemAttributesResponses = { 200: Array<{ /** * Key to use when querying the attribute */ key: string; /** * Display name of the attribute */ name: string; /** * Other names the attribute can be queried by */ secondaryAliases?: Array; /** * Where the attribute comes from */ attributeSource: { /** * Who set the attribute: `sentry` for attributes Sentry defines, or `user` for custom attributes */ source_type: 'sentry' | 'user'; /** * Whether the attribute name is an alias Sentry maps to an internal column */ is_transformed_alias?: boolean; }; /** * Type of the attribute: `string`, `number`, `boolean` or `array` */ attributeType: 'string' | 'number' | 'boolean' | 'array'; /** * Additional, mostly-static metadata about an attribute. * * When ``expand=context`` is requested, context is attached to every attribute. * Metadata comes from the sentry conventions, Sentry's own column definitions, * or user-authored context (gated behind ``data-browsing-attribute-context``), * in that precedence order. Only the fields available are included, so an * attribute with no metadata gets an empty context. */ context?: { /** * Whether this context comes from a known Sentry convention */ isConvention?: boolean; /** * Whether this context was written by a user */ isCustom?: boolean; /** * Short description of the attribute */ brief?: string; /** * Whether the convention is deprecated */ isDeprecated?: boolean; /** * Longer notes about the attribute, such as caveats */ details?: Array; /** * Example values for the attribute */ examples?: Array; /** * Attribute that replaces this one, when it is deprecated */ replacementAttribute?: string; /** * Whether this Sentry convention is part of the OpenTelemetry semantic conventions. Present (and true) only for such conventions; OpenTelemetry attributes that aren't Sentry conventions are never marked */ isInOtel?: boolean; /** * Unit of a number attribute, from the dataset's Sentry-defined attributes or from Sentry conventions, which apply in every dataset */ unit?: 'byte' | 'currency' | 'millisecond' | 'percentage' | 'second'; }; }>; }; export type ListOrganizationTraceItemAttributesResponse = ListOrganizationTraceItemAttributesResponses[keyof ListOrganizationTraceItemAttributesResponses]; export type ListOrganizationTraceMetricsData = { body?: never; path: { /** * The ID or slug of the organization the resource belongs to. */ organization_id_or_slug: string; }; query?: { /** * The IDs or slugs of projects to filter by. Project slugs are unique within each organization. Omit this parameter to include all accessible projects. `-1` is also accepted to include all accessible projects. * For example, the following are valid parameters: * - `/?project=1234&project=56789` * - `/?project=android&project=javascript-react` * - `/?project=-1` * */ project?: Array; /** * The name of environments to filter by. */ environment?: Array; /** * The period of time for the query, will override the start & end parameters, a number followed by one of: * - `d` for days * - `h` for hours * - `m` for minutes * - `s` for seconds * - `w` for weeks * * For example, `24h`, to mean query data starting from 24 hours ago to now. */ statsPeriod?: string; /** * The start of the period of time for the query, expected in ISO-8601 format. For example, `2001-12-14T12:34:56.7890`. */ start?: string; /** * The end of the period of time for the query, expected in ISO-8601 format. For example, `2001-12-14T12:34:56.7890`. */ end?: string; /** * Search query to filter metrics, using the same syntax as the metrics dataset. */ query?: string; /** * Response field to sort by, prefixed with `-` for descending. Defaults to metric name ascending. */ sort?: '-count' | '-lastSeen' | '-name' | '-type' | '-unit' | 'count' | 'lastSeen' | 'name' | 'type' | 'unit'; /** * Optional fields to expand. Pass `context` to include each metric's authored context (brief and details), which describes what the metric measures. Requires the `data-browsing-attribute-context` feature; without it the `context` field is omitted. */ expand?: Array<'context'>; /** * Return only metrics that have authored context, and include that context in the response. Use this to discover the metrics that are described well enough to query confidently. Requires the `data-browsing-attribute-context` feature; without it this is a no-op. */ contextOnly?: boolean; }; url: '/organizations/{organization_id_or_slug}/trace-items/metrics/'; }; export type ListOrganizationTraceMetricsErrors = { /** * Bad Request */ 400: unknown; /** * Unauthorized */ 401: unknown; /** * Forbidden */ 403: unknown; /** * Not Found */ 404: unknown; }; export type ListOrganizationTraceMetricsResponses = { 200: Array<{ /** * Name of the metric */ name: string; /** * Type of the metric: counter, gauge or distribution */ type: 'counter' | 'gauge' | 'distribution'; /** * Unit of the metric. Null when it has none */ unit: string | null; /** * Number of data points of the metric in the time range */ count: number; /** * When the metric was last seen, as a Unix timestamp. Null when not known */ lastSeen: number | null; /** * Description of the metric. Only set when expand includes context */ context?: { /** * Short description of the metric */ brief?: string; /** * Longer notes about the metric */ details?: Array; }; }>; }; export type ListOrganizationTraceMetricsResponse2 = ListOrganizationTraceMetricsResponses[keyof ListOrganizationTraceMetricsResponses]; export type ListOrganizationTraceItemsStatsData = { body?: never; path: { /** * The ID or slug of the organization the resource belongs to. */ organization_id_or_slug: string; }; query: { /** * The statistics to compute over the matching trace items. */ statsType: Array<'attributeDistributions'>; /** * The IDs or slugs of projects to filter by. Project slugs are unique within each organization. Omit this parameter to include all accessible projects. `-1` is also accepted to include all accessible projects. * For example, the following are valid parameters: * - `/?project=1234&project=56789` * - `/?project=android&project=javascript-react` * - `/?project=-1` * */ project?: Array; /** * The name of environments to filter by. */ environment?: Array; /** * The period of time for the query, will override the start & end parameters, a number followed by one of: * - `d` for days * - `h` for hours * - `m` for minutes * - `s` for seconds * - `w` for weeks * * For example, `24h`, to mean query data starting from 24 hours ago to now. */ statsPeriod?: string; /** * The start of the period of time for the query, expected in ISO-8601 format. For example, `2001-12-14T12:34:56.7890`. */ start?: string; /** * The end of the period of time for the query, expected in ISO-8601 format. For example, `2001-12-14T12:34:56.7890`. */ end?: string; /** * Sentry [search syntax](https://docs.sentry.io/concepts/search/) to filter trace items before computing statistics. */ query?: string; /** * Restrict results to attribute names containing this substring (case-sensitive). */ substringMatch?: string; /** * Maximum number of trace items to sample when computing statistics. Defaults to `1000`, which is also the maximum. */ traceItemsLimit?: number; /** * The trace item dataset to compute statistics for. Defaults to `spans`. * * * `spans` * * `occurrences` */ itemType?: 'spans' | 'occurrences'; /** * A pointer to the last object fetched and its sort order; used to retrieve the next or previous results. */ cursor?: string; }; url: '/organizations/{organization_id_or_slug}/trace-items/stats/'; }; export type ListOrganizationTraceItemsStatsErrors = { /** * Bad Request */ 400: unknown; /** * Unauthorized */ 401: unknown; /** * Forbidden */ 403: unknown; /** * Not Found */ 404: unknown; }; export type ListOrganizationTraceItemsStatsResponses = { 200: { /** * Requested stats */ data: Array<{ /** * Value distributions of the attributes */ attributeDistributions: { /** * Value distribution of each attribute, by attribute name */ data: { [key: string]: Array<{ /** * Value of the attribute */ label: string; /** * Number of items with the value */ value: number; }>; }; }; }>; }; }; export type ListOrganizationTraceItemsStatsResponse = ListOrganizationTraceItemsStatsResponses[keyof ListOrganizationTraceItemsStatsResponses]; export type ListOrganizationTraceLogsData = { body?: never; path: { /** * The ID or slug of the organization the resource belongs to. */ organization_id_or_slug: string; }; query?: { /** * The period of time for the query, will override the start & end parameters, a number followed by one of: * - `d` for days * - `h` for hours * - `m` for minutes * - `s` for seconds * - `w` for weeks * * For example, `24h`, to mean query data starting from 24 hours ago to now. */ statsPeriod?: string; /** * The start of the period of time for the query, expected in ISO-8601 format. For example, `2001-12-14T12:34:56.7890`. */ start?: string; /** * The end of the period of time for the query, expected in ISO-8601 format. For example, `2001-12-14T12:34:56.7890`. */ end?: string; /** * The 32-character ID of a trace to list logs for. Can be repeated. At least one `traceId` or a `replayId` is required. */ traceId?: Array; /** * The 32-character ID of a replay to list logs for. Logs matching either a `traceId` or the `replayId` are returned. */ replayId?: string; /** * Additional [search query](https://docs.sentry.io/concepts/search/) to filter the logs. */ query?: string; /** * Columns to sort by, prefixed with `-` for descending. Must be one of `id`, `project.id`, `trace`, `severity_number`, `severity`, `timestamp`, `timestamp_precise`, `message`. Defaults to `-timestamp` then `-timestamp_precise`. */ sort?: Array; /** * An ISO 8601 timestamp of an event in the trace. When passed, the query is narrowed to a window around this time, which is faster than searching the full time range. */ timestamp?: string; /** * The number of logs to return per page, up to 9999. */ per_page?: number; /** * A pointer to the last object fetched and its sort order; used to retrieve the next or previous results. */ cursor?: string; }; url: '/organizations/{organization_id_or_slug}/trace-logs/'; }; export type ListOrganizationTraceLogsErrors = { /** * Bad Request */ 400: unknown; /** * Unauthorized */ 401: unknown; /** * Forbidden */ 403: unknown; /** * Not Found */ 404: unknown; }; export type ListOrganizationTraceLogsResponses = { 200: { /** * The logs, sorted by the `sort` parameter */ data: Array<{ /** * The ID of the log */ id: string; /** * The ID of the project the log belongs to */ 'project.id': number; /** * The ID of the trace the log belongs to */ trace: string; /** * The OpenTelemetry severity number of the log, from 1 to 24, or 0 if unset */ severity_number: number; /** * The severity text of the log, such as `info` or `error` */ severity: string; /** * When the log was recorded */ timestamp: string; /** * When the log was recorded, in nanoseconds since the Unix epoch */ timestamp_precise: number; /** * The body of the log */ message: string; }>; /** * Metadata about the query and its fields */ meta: { /** * Type of each returned field, keyed by field name */ fields: { [key: string]: string; }; /** * Whether the query scanned the full data set rather than a downsampled sample */ full_scan?: boolean; /** * Number of bytes the query scanned, or null if it wasn't reported */ bytes_scanned?: number | null; /** * Opaque routing hint of the query. Pass it unchanged as routing_hint when fetching the details of a log */ routingHint?: string; }; /** * Sampling confidence of each row in `data`, keyed by field. Logs are not aggregated, so each entry is an empty object */ confidence: Array<{ [key: string]: 'low' | 'high' | null; }>; }; }; export type ListOrganizationTraceLogsResponse = ListOrganizationTraceLogsResponses[keyof ListOrganizationTraceLogsResponses]; export type GetOrganizationTraceMetaData = { body?: never; path: { /** * The ID or slug of the organization the resource belongs to. */ organization_id_or_slug: string; /** * The ID of the trace, a 32-character hexadecimal string. */ trace_id: string; }; query?: { /** * The period of time for the query, will override the start & end parameters, a number followed by one of: * - `d` for days * - `h` for hours * - `m` for minutes * - `s` for seconds * - `w` for weeks * * For example, `24h`, to mean query data starting from 24 hours ago to now. */ statsPeriod?: string; /** * The start of the period of time for the query, expected in ISO-8601 format. For example, `2001-12-14T12:34:56.7890`. */ start?: string; /** * The end of the period of time for the query, expected in ISO-8601 format. For example, `2001-12-14T12:34:56.7890`. */ end?: string; /** * The timestamp of an event in the trace, as an ISO 8601 string or Unix timestamp in * seconds. When passed, the query is narrowed to a window around this time, which is faster than * searching the full time range. */ timestamp?: string; /** * Set to `1` to include uptime check counts in the response. Defaults to `0` (disabled). */ include_uptime?: '0' | '1'; }; url: '/organizations/{organization_id_or_slug}/trace-meta/{trace_id}/'; }; export type GetOrganizationTraceMetaErrors = { /** * Unauthorized */ 401: unknown; /** * Forbidden */ 403: unknown; /** * Not Found */ 404: unknown; }; export type GetOrganizationTraceMetaResponses = { 200: { /** * Number of uptime checks in the trace. Only present when `include_uptime=1` */ uptimeCount?: number; /** * Number of errors in the trace */ errorsCount: number; /** * Number of logs in the trace */ logsCount: number; /** * Number of metric samples in the trace, excluding metrics derived from spans */ metricsCount: number; /** * Number of performance issues in the trace */ performanceIssuesCount: number; /** * Number of spans in the trace */ spansCount: number; /** * Number of child spans of each transaction */ transactionChildCountMap: Array<{ /** * ID of the transaction. Null for spans that belong to no transaction */ 'transaction.event_id': string | null; /** * Number of child spans of the transaction */ 'count()': number; }>; /** * Number of spans in the trace for each span operation, keyed by `span.op` */ spansCountMap: { [key: string]: number; }; }; }; export type GetOrganizationTraceMetaResponse = GetOrganizationTraceMetaResponses[keyof GetOrganizationTraceMetaResponses]; export type GetOrganizationTraceData = { body?: never; path: { /** * The ID or slug of the organization the resource belongs to. */ organization_id_or_slug: string; /** * The ID of the trace, a 32-character hexadecimal string. */ trace_id: string; }; query?: { /** * The period of time for the query, will override the start & end parameters, a number followed by one of: * - `d` for days * - `h` for hours * - `m` for minutes * - `s` for seconds * - `w` for weeks * * For example, `24h`, to mean query data starting from 24 hours ago to now. */ statsPeriod?: string; /** * The start of the period of time for the query, expected in ISO-8601 format. For example, `2001-12-14T12:34:56.7890`. */ start?: string; /** * The end of the period of time for the query, expected in ISO-8601 format. For example, `2001-12-14T12:34:56.7890`. */ end?: string; /** * Internal referrer identifier used for query tracing. Most clients can omit this. */ referrer?: string; /** * The timestamp of an event in the trace, as an ISO 8601 string or Unix timestamp in * seconds. When passed, the query is narrowed to a window around this time, which is faster than * searching the full time range. */ timestamp?: string; /** * A 32-character hexadecimal event ID to bias the trace results toward including. */ errorId?: string; /** * Additional span attributes to include on each event. Repeat to request multiple. */ additional_attributes?: Array; /** * Set to `1` to include uptime check results in the trace. Defaults to `0`. */ include_uptime?: '0' | '1'; }; url: '/organizations/{organization_id_or_slug}/trace/{trace_id}/'; }; export type GetOrganizationTraceErrors = { /** * Unauthorized */ 401: unknown; /** * Forbidden */ 403: unknown; /** * Not Found */ 404: unknown; }; export type GetOrganizationTraceResponses = { 200: Array<{ /** * Description of the item: the span description, the issue title or the error message */ description: string; /** * ID of the item */ event_id: string; /** * ID of the project the item belongs to */ project_id: number; /** * Slug of the project the item belongs to */ project_slug: string; /** * Name of the transaction the item belongs to */ transaction: string; /** * Kind of item, always span */ event_type: 'span'; /** * Child items of the item, such as spans */ children: Array<{ /** * Description of the item: the span description, the issue title or the error message */ description: string; /** * ID of the item */ event_id: string; /** * ID of the project the item belongs to */ project_id: number; /** * Slug of the project the item belongs to */ project_slug: string; /** * Name of the transaction the item belongs to */ transaction: string; }>; /** * Errors linked to the item */ errors: Array<{ /** * Description of the item: the span description, the issue title or the error message */ description: string; /** * ID of the item */ event_id: string; /** * ID of the project the item belongs to */ project_id: number; /** * Slug of the project the item belongs to */ project_slug: string; /** * Name of the transaction the item belongs to */ transaction: string; /** * Kind of issue item: error or occurrence */ event_type: 'error' | 'occurrence'; /** * ID of the issue */ issue_id: number; /** * Level of the issue, such as error or warning */ level: string; /** * When the error or occurrence started, as a Unix timestamp in seconds */ start_timestamp: number; /** * When the occurrence ended, as a Unix timestamp in seconds. Only set for occurrences */ end_timestamp?: number; /** * Function or module where the issue occurs */ culprit: string | null; /** * Short ID of the issue, such as PROJECT-1A */ short_id: string | null; /** * Numeric issue type ID */ issue_type: number; }>; /** * Non-error issue occurrences, such as performance issues, linked to the item */ occurrences: Array<{ /** * Description of the item: the span description, the issue title or the error message */ description: string; /** * ID of the item */ event_id: string; /** * ID of the project the item belongs to */ project_id: number; /** * Slug of the project the item belongs to */ project_slug: string; /** * Name of the transaction the item belongs to */ transaction: string; /** * Kind of issue item: error or occurrence */ event_type: 'error' | 'occurrence'; /** * ID of the issue */ issue_id: number; /** * Level of the issue, such as error or warning */ level: string; /** * When the error or occurrence started, as a Unix timestamp in seconds */ start_timestamp: number; /** * When the occurrence ended, as a Unix timestamp in seconds. Only set for occurrences */ end_timestamp?: number; /** * Function or module where the issue occurs */ culprit: string | null; /** * Short ID of the issue, such as PROJECT-1A */ short_id: string | null; /** * Numeric issue type ID */ issue_type: number; }>; /** * Duration of the span in milliseconds */ duration: number; /** * When the span ended, as a Unix timestamp in seconds */ end_timestamp: number; /** * Measurements recorded on the span, keyed by measurements. */ measurements: { [key: string]: number; }; /** * Browser web vitals recorded on the span, keyed by browser.web_vital. */ browser_web_vital: { [key: string]: number; }; /** * Mobile app vitals recorded on the span, keyed by app.vitals. */ mobile_app_vital: { [key: string]: number; }; /** * Operation of the span, such as http.client or db */ op: string; /** * Name of the span */ name: string; /** * ID of the parent span. Null for root spans */ parent_span_id: string | null; /** * ID of the transaction profile linked to the span */ profile_id: string; /** * ID of the continuous profiling session linked to the span */ profiler_id: string; /** * Name of the SDK that sent the span */ sdk_name: string; /** * When the span started, as a Unix timestamp in seconds */ start_timestamp: number; /** * Whether the span is a transaction (segment) span */ is_transaction: boolean; /** * ID of the transaction event the span belongs to */ transaction_id: string; /** * Extra span attributes requested with additional_attributes, keyed by attribute name */ additional_attributes?: { [key: string]: string | number | number | boolean; }; } | { /** * Description of the item: the span description, the issue title or the error message */ description: string; /** * ID of the item */ event_id: string; /** * ID of the project the item belongs to */ project_id: number; /** * Slug of the project the item belongs to */ project_slug: string; /** * Name of the transaction the item belongs to */ transaction: string; /** * Kind of issue item: error or occurrence */ event_type: 'error' | 'occurrence'; /** * ID of the issue */ issue_id: number; /** * Level of the issue, such as error or warning */ level: string; /** * When the error or occurrence started, as a Unix timestamp in seconds */ start_timestamp: number; /** * When the occurrence ended, as a Unix timestamp in seconds. Only set for occurrences */ end_timestamp?: number; /** * Function or module where the issue occurs */ culprit: string | null; /** * Short ID of the issue, such as PROJECT-1A */ short_id: string | null; /** * Numeric issue type ID */ issue_type: number; } | { /** * Description of the item: the span description, the issue title or the error message */ description: string; /** * ID of the item */ event_id: string; /** * ID of the project the item belongs to */ project_id: number; /** * Slug of the project the item belongs to */ project_slug: string; /** * Name of the transaction the item belongs to */ transaction: string; /** * Kind of item, always uptime_check */ event_type: 'uptime_check'; /** * Child items of the item, such as spans */ children: Array<{ /** * Description of the item: the span description, the issue title or the error message */ description: string; /** * ID of the item */ event_id: string; /** * ID of the project the item belongs to */ project_id: number; /** * Slug of the project the item belongs to */ project_slug: string; /** * Name of the transaction the item belongs to */ transaction: string; }>; /** * Errors linked to the item */ errors: Array<{ /** * Description of the item: the span description, the issue title or the error message */ description: string; /** * ID of the item */ event_id: string; /** * ID of the project the item belongs to */ project_id: number; /** * Slug of the project the item belongs to */ project_slug: string; /** * Name of the transaction the item belongs to */ transaction: string; /** * Kind of issue item: error or occurrence */ event_type: 'error' | 'occurrence'; /** * ID of the issue */ issue_id: number; /** * Level of the issue, such as error or warning */ level: string; /** * When the error or occurrence started, as a Unix timestamp in seconds */ start_timestamp: number; /** * When the occurrence ended, as a Unix timestamp in seconds. Only set for occurrences */ end_timestamp?: number; /** * Function or module where the issue occurs */ culprit: string | null; /** * Short ID of the issue, such as PROJECT-1A */ short_id: string | null; /** * Numeric issue type ID */ issue_type: number; }>; /** * Non-error issue occurrences, such as performance issues, linked to the item */ occurrences: Array<{ /** * Description of the item: the span description, the issue title or the error message */ description: string; /** * ID of the item */ event_id: string; /** * ID of the project the item belongs to */ project_id: number; /** * Slug of the project the item belongs to */ project_slug: string; /** * Name of the transaction the item belongs to */ transaction: string; /** * Kind of issue item: error or occurrence */ event_type: 'error' | 'occurrence'; /** * ID of the issue */ issue_id: number; /** * Level of the issue, such as error or warning */ level: string; /** * When the error or occurrence started, as a Unix timestamp in seconds */ start_timestamp: number; /** * When the occurrence ended, as a Unix timestamp in seconds. Only set for occurrences */ end_timestamp?: number; /** * Function or module where the issue occurs */ culprit: string | null; /** * Short ID of the issue, such as PROJECT-1A */ short_id: string | null; /** * Numeric issue type ID */ issue_type: number; }>; /** * ID of the trace the uptime check belongs to */ transaction_id: string; /** * Operation of the uptime check, always uptime.request */ op: string; /** * When the uptime check started, as a Unix timestamp in seconds */ start_timestamp: number; /** * When the uptime check ended, as a Unix timestamp in seconds */ end_timestamp: number; /** * Duration of the uptime check in milliseconds */ duration: number; /** * URL the uptime check requested */ name: string; /** * Region the uptime check ran from */ region_name: string; /** * Extra uptime check attributes, keyed by attribute name */ additional_attributes: { /** * ID of the uptime result */ id?: string; /** * ID of the trace the uptime check belongs to */ trace?: string; /** * ID of the span the uptime checker made up for the check */ span_id?: string; /** * Environment of the uptime monitor */ environment?: string; /** * Unique ID of the uptime check */ guid?: string; /** * ID of the uptime subscription the check ran for */ subscription_id?: string; /** * ID of the uptime check */ check_id?: string; /** * Outcome of the check */ check_status?: 'success' | 'failure' | 'missed_window' | 'disallowed_by_robots'; /** * Slug of the region the check ran from */ region?: string; /** * When the check was scheduled to run, in microseconds */ scheduled_check_time_us?: number; /** * When the check ran, in microseconds */ actual_check_time_us?: number; /** * Duration of the check in microseconds */ check_duration_us?: number; /** * Kind of failure */ status_reason_type?: 'timeout' | 'dns_error' | 'failure' | 'tls_error' | 'connection_error' | 'redirect_error' | 'miss_produced' | 'miss_backfill' | 'assertion_compilation_error' | 'assertion_evaluation_error'; /** * Description of why the check failed */ status_reason_description?: string; /** * Assertion that failed, as JSON */ assertion_failure_data?: string; /** * HTTP method of the first request of the check */ method?: 'GET' | 'POST' | 'HEAD' | 'PUT' | 'DELETE' | 'PATCH' | 'OPTIONS'; /** * URL of the first request of the check, before redirects */ original_url?: string; /** * Position of the request in the redirect chain, starting at 0 */ request_sequence?: number; /** * HTTP method of the request */ request_type?: 'GET' | 'POST' | 'HEAD' | 'PUT' | 'DELETE' | 'PATCH' | 'OPTIONS'; /** * URL of the request */ request_url?: string; /** * HTTP status code of the response */ http_status_code?: number; /** * Size of the request body in bytes */ request_body_size_bytes?: number; /** * Size of the response body in bytes */ response_body_size_bytes?: number; /** * Duration of the request in microseconds */ request_duration_us?: number; /** * When the DNS lookup started, in microseconds */ dns_lookup_start_us?: number; /** * Duration of the DNS lookup in microseconds */ dns_lookup_duration_us?: number; /** * When the TCP connection started, in microseconds */ tcp_connection_start_us?: number; /** * Duration of the TCP connection in microseconds */ tcp_connection_duration_us?: number; /** * When the TLS handshake started, in microseconds */ tls_handshake_start_us?: number; /** * Duration of the TLS handshake in microseconds */ tls_handshake_duration_us?: number; /** * When the wait for the first response byte started, in microseconds */ time_to_first_byte_start_us?: number; /** * Time to the first response byte in microseconds */ time_to_first_byte_duration_us?: number; /** * When sending the request started, in microseconds */ send_request_start_us?: number; /** * Duration of sending the request in microseconds */ send_request_duration_us?: number; /** * When receiving the response started, in microseconds */ receive_response_start_us?: number; /** * Duration of receiving the response in microseconds */ receive_response_duration_us?: number; /** * Whether the check is part of an incident: 1 if it is, 0 if not */ incident_status?: number; }; }>; }; export type GetOrganizationTraceResponse = GetOrganizationTraceResponses[keyof GetOrganizationTraceResponses]; export type ListOrganizationUptimeStatsData = { body?: never; path: { /** * The ID or slug of the organization the resource belongs to. */ organization_id_or_slug: string; }; query: { /** * The IDs of the uptime monitors to return stats for, up to 100. The request fails if any of them is missing or you can't access it. */ uptimeDetectorId: Array; /** * Start of the time range, as a Unix timestamp in seconds. Defaults to one day before `until`. */ since?: number; /** * End of the time range, as a Unix timestamp in seconds. Defaults to now. */ until?: number; /** * Size of each bucket, as a number followed by `s`, `m`, `h` or `d`. Must be one of 15s, 30s, 1m, 2m, 5m, 10m, 15m, 30m, 1h, 2h, 3h, 4h, 6h, 12h or 24h, and no longer than the time range. At most 10,100 buckets are allowed. Defaults to the smallest of these that is at least the size picked for the time range. */ resolution?: string; /** * The IDs or slugs of projects to filter by. Project slugs are unique within each organization. Omit this parameter to include all accessible projects. `-1` is also accepted to include all accessible projects. * For example, the following are valid parameters: * - `/?project=1234&project=56789` * - `/?project=android&project=javascript-react` * - `/?project=-1` * */ project?: Array; }; url: '/organizations/{organization_id_or_slug}/uptime-stats/'; }; export type ListOrganizationUptimeStatsErrors = { /** * Bad Request */ 400: unknown; /** * Forbidden */ 403: unknown; /** * Not Found */ 404: unknown; }; export type ListOrganizationUptimeStatsResponses = { 200: { [key: string]: Array>; }; }; export type ListOrganizationUptimeStatsResponse = ListOrganizationUptimeStatsResponses[keyof ListOrganizationUptimeStatsResponses]; export type ListOrganizationUserTeamsData = { body?: never; path: { /** * The ID or slug of the organization the resource belongs to. */ organization_id_or_slug: string; }; query?: never; url: '/organizations/{organization_id_or_slug}/user-teams/'; }; export type ListOrganizationUserTeamsErrors = { /** * Bad Request */ 400: unknown; /** * Forbidden */ 403: unknown; }; export type ListOrganizationUserTeamsResponses = { 200: Array<{ /** * Team ID */ id: string; /** * Team slug, unique within the organization */ slug: string; /** * Display name of the team */ name: string; /** * When the team was created (ISO 8601) */ dateCreated: string | null; /** * Whether the requesting user is a member of the team */ isMember: boolean; /** * The requesting user's role in the team */ teamRole: string | null; /** * Team flags. idp:provisioned is true when the team is managed by an identity provider through SCIM */ flags: { [key: string]: boolean; }; /** * Scopes the requesting user has on the team through their team role. Empty if the user has no access */ access: Array; /** * Whether the requesting user can access the team, as a member, through open membership or through an organization role with access to all teams */ hasAccess: boolean; /** * Whether the requesting user has a pending request to join the team */ isPending: boolean; /** * Number of members in the team */ memberCount: number; /** * Team avatar */ avatar: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Teams in external providers, such as Slack or GitHub, that are linked to this team */ externalTeams?: Array<{ /** * ID of the user or team in the provider */ externalId?: string; /** * ID of the Sentry user. Only set for user mappings */ userId?: string; /** * ID of the Sentry team. Only set for team mappings */ teamId?: string; /** * ID of the external actor mapping */ id: string; /** * Provider of the external actor, such as github or slack */ provider: string; /** * Name of the user or team in the provider, such as @octocat */ externalName: string; /** * ID of the integration the mapping belongs to */ integrationId: string; }>; /** * Organization the team belongs to */ organization?: { /** * Features enabled for the organization */ features?: Array; /** * Server-wide options that the Sentry UI reads */ extraOptions?: { [key: string]: { [key: string]: unknown; }; }; /** * Scopes the requesting user has in the organization */ access?: Array; /** * Onboarding tasks the organization has completed or skipped */ onboardingTasks?: Array<{ /** * Onboarding task key, such as create_project */ task: string | null; /** * Task status: complete or skipped */ status: string; /** * When the task's completion was marked as seen, or null */ completionSeen: string | null; /** * When the task was completed or skipped */ dateCompleted: string; /** * Data recorded for the task. Most tasks record none, so it's often empty */ data: { /** * ID of the member whose invite completed the invite_member task */ invited_member_id?: number; /** * Platform of the first event, for the first_event task */ platform?: string | null; /** * Slug of the plugin enabled for the task */ plugin?: string; /** * Integration providers installed for the integrations task */ providers?: Array; }; }>; /** * Organization ID */ id: string; /** * Organization slug */ slug: string; /** * Organization status */ status: { /** * Status ID: active, pending_deletion, deletion_in_progress or relocation_pending_approval */ id: string; /** * Status label, such as active or pending deletion */ name: string; }; /** * Organization name, or its slug when it has no name */ name: string; /** * When the organization was created (ISO 8601) */ dateCreated: string; /** * Whether the organization is an early adopter */ isEarlyAdopter: boolean; /** * Whether members must use two-factor authentication */ require2FA: boolean; /** * Organization avatar */ avatar: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Organization and region URLs */ links: { /** * Base URL of the organization */ organizationUrl: string; /** * Base URL of the API for the organization's region */ regionUrl: string; }; /** * Whether SSO is configured for the organization */ hasAuthProvider: boolean; /** * Whether members can invite other members */ allowMemberInvite: boolean; /** * Whether members can create projects */ allowMemberProjectCreation: boolean; /** * Whether Sentry superusers can access the organization */ allowSuperuserAccess: boolean; }; /** * Projects the team has access to */ projects?: Array<{ /** * Counts of non-transaction events per interval over the requested stats period, as [timestamp, count] pairs. Only included when a stats period is requested */ stats?: Array> | { [key: string]: number; }; /** * Counts of transactions per interval over the requested stats period, as [timestamp, count] pairs. Only included when transaction stats are requested */ transactionStats?: Array>; /** * Crash-free session rates for the current and previous stats period. Only included when session stats are requested */ sessionStats?: { /** * Crash-free rate in the current period, as a percentage. Null when there's no session data */ currentCrashFreeRate: number | null; /** * Crash-free rate in the previous period, as a percentage. Null when there's no session data */ previousCrashFreeRate: number | null; /** * Whether the project has release health (session) data */ hasHealthData: boolean; }; /** * ID of the project */ id: string; /** * Slug of the project */ slug: string; /** * Name of the project */ name: string; /** * Platform of the project */ platform: string | null; /** * When the project was created (ISO 8601) */ dateCreated: string; /** * Whether the requesting user bookmarked the project */ isBookmarked: boolean; /** * Whether the requesting user is a member of a team with access to the project */ isMember: boolean; /** * Features enabled for the project */ features: Array; /** * When the project received its first event (ISO 8601) */ firstEvent: string | null; /** * Whether the project has sent transactions */ firstTransactionEvent: boolean; /** * Scopes the requesting user has on the project through team membership and organization role */ access: Array; /** * Whether the requesting user has access to the project */ hasAccess: boolean; /** * Whether the project has sent user feedback */ hasFeedbacks: boolean; /** * Whether the project has sent feature flags */ hasFlags: boolean; /** * Whether the project has sent an event with a minified stack trace */ hasMinifiedStackTrace: boolean; /** * Whether the project has cron monitors */ hasMonitors: boolean; /** * Whether the project has sent user feedback from the user feedback widget */ hasNewFeedbacks: boolean; /** * Whether the project has sent profiles */ hasProfiles: boolean; /** * Whether the project has sent replays */ hasReplays: boolean; /** * Whether the project has sent sessions */ hasSessions: boolean; /** * Whether the project has sent HTTP request spans used by Insights */ hasInsightsHttp: boolean; /** * Whether the project has sent database spans used by Insights */ hasInsightsDb: boolean; /** * Whether the project has sent asset spans used by Insights */ hasInsightsAssets: boolean; /** * Whether the project has sent app start spans used by Insights */ hasInsightsAppStart: boolean; /** * Whether the project has sent screen load spans used by Insights */ hasInsightsScreenLoad: boolean; /** * Whether the project has sent web vitals spans used by Insights */ hasInsightsVitals: boolean; /** * Whether the project has sent cache spans used by Insights */ hasInsightsCaches: boolean; /** * Whether the project has sent queue spans used by Insights */ hasInsightsQueues: boolean; /** * Whether the project has sent AI agent spans used by Insights */ hasInsightsAgentMonitoring: boolean; /** * Whether the project has sent MCP spans used by Insights */ hasInsightsMCP: boolean; /** * Whether the project has sent logs. Always true outside sentry.io */ hasLogs: boolean; /** * Whether the project has sent trace metrics. Always true outside sentry.io */ hasTraceMetrics: boolean; /** * Whether this is the Sentry install's own internal project */ isInternal: boolean; /** * Whether the project is public */ isPublic: boolean; /** * Avatar of the project. Always a letter avatar */ avatar: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Hex color code for the project, derived from its slug unless set explicitly */ color: string; /** * Status of the project: active, deleted, or unknown */ status: string; }>; }>; }; export type ListOrganizationUserTeamsResponse = ListOrganizationUserTeamsResponses[keyof ListOrganizationUserTeamsResponses]; export type DeleteOrganizationWorkflowsData = { body?: never; path: { /** * The ID or slug of the organization the resource belongs to. */ organization_id_or_slug: string; }; query?: { /** * An optional search query for filtering alerts. */ query?: string; /** * The ID of the alert you'd like to query. */ id?: Array; /** * The IDs or slugs of projects to filter by. Project slugs are unique within each organization. Omit this parameter to include all accessible projects. `-1` is also accepted to include all accessible projects. * For example, the following are valid parameters: * - `/?project=1234&project=56789` * - `/?project=android&project=javascript-react` * - `/?project=-1` * */ project?: Array; }; url: '/organizations/{organization_id_or_slug}/workflows/'; }; export type DeleteOrganizationWorkflowsErrors = { /** * Bad Request */ 400: unknown; /** * Unauthorized */ 401: unknown; /** * Forbidden */ 403: unknown; /** * Not Found */ 404: unknown; }; export type DeleteOrganizationWorkflowsResponses = { /** * Success */ 200: unknown; /** * No Content */ 204: void; }; export type DeleteOrganizationWorkflowsResponse = DeleteOrganizationWorkflowsResponses[keyof DeleteOrganizationWorkflowsResponses]; export type ListOrganizationWorkflowsData = { body?: never; path: { /** * The ID or slug of the organization the resource belongs to. */ organization_id_or_slug: string; }; query?: { /** * The field to sort results by. If not specified, the results are sorted by id. * * Available fields are: * - `name` * - `id` * - `dateCreated` * - `dateUpdated` * - `connectedDetectors` * - `actions` * - `priorityDetector` * * Prefix with `-` to sort in descending order. * */ sortBy?: string; /** * An optional search query for filtering alerts. */ query?: string; /** * The ID of the alert you'd like to query. */ id?: Array; /** * The IDs of monitors connected to the alerts you'd like to query. */ detector?: Array; /** * The type of workflow you'd like to query. If not specified, all types are returned. */ type?: Array<'alert'>; /** * The IDs or slugs of projects to filter by. Project slugs are unique within each organization. Omit this parameter to include all accessible projects. `-1` is also accepted to include all accessible projects. * For example, the following are valid parameters: * - `/?project=1234&project=56789` * - `/?project=android&project=javascript-react` * - `/?project=-1` * */ project?: Array; /** * Limit the number of rows to return in the result. Default and maximum allowed is 100. */ per_page?: number; /** * A pointer to the last object fetched and its sort order; used to retrieve the next or previous results. */ cursor?: string; }; url: '/organizations/{organization_id_or_slug}/workflows/'; }; export type ListOrganizationWorkflowsErrors = { /** * Bad Request */ 400: unknown; /** * Unauthorized */ 401: unknown; /** * Forbidden */ 403: unknown; /** * Not Found */ 404: unknown; }; export type ListOrganizationWorkflowsResponses = { 200: Array<{ /** * Workflow ID */ id: string; /** * Workflow name */ name: string; /** * Type of the workflow, such as alert */ type: string; /** * ID of the organization the workflow belongs to */ organizationId: string; /** * ID of the user who created the workflow */ createdBy: string | null; /** * When the workflow was created (ISO 8601) */ dateCreated: string; /** * When the workflow was last updated (ISO 8601) */ dateUpdated: string; /** * Conditions on which the workflow triggers */ triggers: { /** * ID of the condition group */ id?: string; /** * ID of the organization */ organizationId?: string; /** * How the conditions in the group combine */ logicType?: 'any' | 'any-short' | 'all' | 'none'; /** * Conditions in the group */ conditions?: Array<{ /** * ID of the condition */ id: string; /** * Type of the condition, such as first_seen_event or level */ type: string; /** * Value the condition compares against, which depends on its type */ comparison: number | string | boolean | { /** * Whether the issue must be older or newer than the age */ comparisonType: 'older' | 'newer'; /** * Age of the issue, in units of time */ value: number; /** * Unit of the age */ time: 'minute' | 'hour' | 'day' | 'week'; } | { /** * How sensitive anomaly detection is */ sensitivity: 'low' | 'medium' | 'high'; /** * Seasonal pattern that anomaly detection accounts for */ seasonality: 'auto' | 'hourly' | 'daily' | 'weekly' | 'hourly_daily' | 'hourly_weekly' | 'hourly_daily_weekly' | 'daily_weekly'; /** * Anomalies to detect: 0 above, 1 below, 2 above or below the expected value */ thresholdType: 0 | 1 | 2; } | { /** * Who the issue must be assigned to */ targetType: 'Unassigned' | 'Team' | 'Member'; /** * ID of the team or member. Not set for Unassigned */ targetIdentifier?: number | string; } | { /** * Event attribute to match, such as message or user.email */ attribute?: 'message' | 'platform' | 'environment' | 'type' | 'error.handled' | 'error.unhandled' | 'error.main_thread' | 'exception.type' | 'exception.value' | 'user.id' | 'user.email' | 'user.username' | 'user.ip_address' | 'http.method' | 'http.url' | 'http.status_code' | 'sdk.name' | 'stacktrace.code' | 'stacktrace.module' | 'stacktrace.filename' | 'stacktrace.abs_path' | 'stacktrace.package' | 'unreal.crash_type' | 'app.in_foreground' | 'os.distribution_name' | 'os.distribution_version' | 'symbolicated_in_app' | 'ota_updates.channel' | 'ota_updates.runtime_version' | 'ota_updates.update_id'; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the attribute against. Not set for is and ns */ value?: string; } | number | { /** * Time window to count in, such as 1h */ interval: '1m' | '5m' | '15m' | '1h' | '1d' | '1w' | '30d'; /** * Number of events in the interval that meets the condition */ value: number; /** * Tag or attribute filters that events must match to count */ filters?: Array<{ /** * Tag key to match */ key?: string; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the tag or attribute against. Not set for is and ns */ value?: string; } | { /** * Event attribute to match, such as message or user.email */ attribute?: 'message' | 'platform' | 'environment' | 'type' | 'error.handled' | 'error.unhandled' | 'error.main_thread' | 'exception.type' | 'exception.value' | 'user.id' | 'user.email' | 'user.username' | 'user.ip_address' | 'http.method' | 'http.url' | 'http.status_code' | 'sdk.name' | 'stacktrace.code' | 'stacktrace.module' | 'stacktrace.filename' | 'stacktrace.abs_path' | 'stacktrace.package' | 'unreal.crash_type' | 'app.in_foreground' | 'os.distribution_name' | 'os.distribution_version' | 'symbolicated_in_app' | 'ota_updates.channel' | 'ota_updates.runtime_version' | 'ota_updates.update_id'; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the tag or attribute against. Not set for is and ns */ value?: string; }>; } | { /** * Time window to count in, such as 1h */ interval: '1m' | '5m' | '15m' | '1h' | '1d' | '1w' | '30d'; /** * Percent increase in events over the comparison interval that meets the condition */ value: number; /** * Earlier time window to compare the count against, such as 1w */ comparisonInterval: '5m' | '15m' | '1h' | '1d' | '1w' | '30d'; /** * Tag or attribute filters that events must match to count */ filters?: Array<{ /** * Tag key to match */ key?: string; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the tag or attribute against. Not set for is and ns */ value?: string; } | { /** * Event attribute to match, such as message or user.email */ attribute?: 'message' | 'platform' | 'environment' | 'type' | 'error.handled' | 'error.unhandled' | 'error.main_thread' | 'exception.type' | 'exception.value' | 'user.id' | 'user.email' | 'user.username' | 'user.ip_address' | 'http.method' | 'http.url' | 'http.status_code' | 'sdk.name' | 'stacktrace.code' | 'stacktrace.module' | 'stacktrace.filename' | 'stacktrace.abs_path' | 'stacktrace.package' | 'unreal.crash_type' | 'app.in_foreground' | 'os.distribution_name' | 'os.distribution_version' | 'symbolicated_in_app' | 'ota_updates.channel' | 'ota_updates.runtime_version' | 'ota_updates.update_id'; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the tag or attribute against. Not set for is and ns */ value?: string; }>; } | { /** * Time window to count in, such as 1h */ interval: '1m' | '5m' | '15m' | '1h' | '1d' | '1w' | '30d'; /** * Number of affected users in the interval that meets the condition */ value: number; /** * Tag or attribute filters that events must match to count */ filters?: Array<{ /** * Tag key to match */ key?: string; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the tag or attribute against. Not set for is and ns */ value?: string; } | { /** * Event attribute to match, such as message or user.email */ attribute?: 'message' | 'platform' | 'environment' | 'type' | 'error.handled' | 'error.unhandled' | 'error.main_thread' | 'exception.type' | 'exception.value' | 'user.id' | 'user.email' | 'user.username' | 'user.ip_address' | 'http.method' | 'http.url' | 'http.status_code' | 'sdk.name' | 'stacktrace.code' | 'stacktrace.module' | 'stacktrace.filename' | 'stacktrace.abs_path' | 'stacktrace.package' | 'unreal.crash_type' | 'app.in_foreground' | 'os.distribution_name' | 'os.distribution_version' | 'symbolicated_in_app' | 'ota_updates.channel' | 'ota_updates.runtime_version' | 'ota_updates.update_id'; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the tag or attribute against. Not set for is and ns */ value?: string; }>; } | { /** * Time window to count in, such as 1h */ interval: '1m' | '5m' | '15m' | '1h' | '1d' | '1w' | '30d'; /** * Percent increase in affected users over the comparison interval that meets the condition */ value: number; /** * Earlier time window to compare the count against, such as 1w */ comparisonInterval: '5m' | '15m' | '1h' | '1d' | '1w' | '30d'; /** * Tag or attribute filters that events must match to count */ filters?: Array<{ /** * Tag key to match */ key?: string; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the tag or attribute against. Not set for is and ns */ value?: string; } | { /** * Event attribute to match, such as message or user.email */ attribute?: 'message' | 'platform' | 'environment' | 'type' | 'error.handled' | 'error.unhandled' | 'error.main_thread' | 'exception.type' | 'exception.value' | 'user.id' | 'user.email' | 'user.username' | 'user.ip_address' | 'http.method' | 'http.url' | 'http.status_code' | 'sdk.name' | 'stacktrace.code' | 'stacktrace.module' | 'stacktrace.filename' | 'stacktrace.abs_path' | 'stacktrace.package' | 'unreal.crash_type' | 'app.in_foreground' | 'os.distribution_name' | 'os.distribution_version' | 'symbolicated_in_app' | 'ota_updates.channel' | 'ota_updates.runtime_version' | 'ota_updates.update_id'; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the tag or attribute against. Not set for is and ns */ value?: string; }>; } | { /** * ID of the issue category */ value: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 19; /** * Whether the issue must be in the category or not. Defaults to true */ include?: boolean; } | { /** * Number of times the issue must have occurred */ value: number; } | 25 | 50 | 75 | 1 | { /** * Slug of the issue type */ value: 'performance_slow_db_query' | 'performance_render_blocking_asset_span' | 'performance_n_plus_one_db_queries' | 'performance_n_plus_one_db_queries_experimental' | 'performance_consecutive_db_queries' | 'performance_file_io_main_thread' | 'performance_consecutive_http' | 'performance_n_plus_one_api_calls' | 'performance_n_plus_one_api_calls_experimental' | 'performance_m_n_plus_one_db_queries' | 'performance_m_n_plus_one_db_queries_experimental' | 'performance_uncompressed_assets' | 'performance_db_main_thread' | 'performance_large_http_payload' | 'performance_http_overhead' | 'performance_p95_endpoint_regression' | 'performance_streamed_spans_exp' | 'db_query_injection_vulnerability' | 'query_injection_vulnerability' | 'profile_file_io_main_thread' | 'profile_image_decode_main_thread' | 'profile_json_decode_main_thread' | 'profile_regex_main_thread' | 'profile_frame_drop' | 'profile_function_regression' | 'llm_detected_experimental' | 'llm_detected_experimental_v2' | 'ai_detected_http' | 'ai_detected_db' | 'ai_detected_runtime_performance' | 'ai_detected_security' | 'ai_detected_code_health' | 'ai_detected_general' | 'replay_click_rage' | 'replay_hydration_error' | 'feedback' | 'web_vitals' | 'issue_stream' | 'metric_issue' | 'error' | 'uptime_domain_failure' | 'send-test-notification' | 'monitor_check_in_failure' | 'sourcemap_configuration' | 'low_value_span_configuration' | 'preprod_size_analysis'; /** * Whether the issue must be of the type or not. Defaults to true */ include?: boolean; } | { /** * Whether to compare against the oldest or newest adopted release */ releaseAgeType: 'oldest' | 'newest'; /** * Whether the event's release must be older or newer than that release */ ageComparison: 'older' | 'newer'; /** * Environment the release was adopted in */ environment: string; } | { /** * Event level: 0 sample, 10 debug, 20 info, 30 warning, 40 error, 50 fatal */ level: 0 | 10 | 20 | 30 | 40 | 50; /** * How to compare the event's level: eq, gte or lte */ match: 'eq' | 'gte' | 'lte'; } | { /** * Time window to count in, such as 1h */ interval: '1m' | '5m' | '10m' | '30m' | '1h'; /** * Percent of sessions affected in the interval that meets the condition */ value: number; /** * Tag or attribute filters that events must match to count */ filters?: Array<{ /** * Tag key to match */ key?: string; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the tag or attribute against. Not set for is and ns */ value?: string; } | { /** * Event attribute to match, such as message or user.email */ attribute?: 'message' | 'platform' | 'environment' | 'type' | 'error.handled' | 'error.unhandled' | 'error.main_thread' | 'exception.type' | 'exception.value' | 'user.id' | 'user.email' | 'user.username' | 'user.ip_address' | 'http.method' | 'http.url' | 'http.status_code' | 'sdk.name' | 'stacktrace.code' | 'stacktrace.module' | 'stacktrace.filename' | 'stacktrace.abs_path' | 'stacktrace.package' | 'unreal.crash_type' | 'app.in_foreground' | 'os.distribution_name' | 'os.distribution_version' | 'symbolicated_in_app' | 'ota_updates.channel' | 'ota_updates.runtime_version' | 'ota_updates.update_id'; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the tag or attribute against. Not set for is and ns */ value?: string; }>; } | { /** * Time window to count in, such as 1h */ interval: '1m' | '5m' | '10m' | '30m' | '1h'; /** * Percent increase in affected sessions over the comparison interval that meets the condition */ value: number; /** * Earlier time window to compare the count against, such as 1w */ comparisonInterval: '5m' | '15m' | '1h' | '1d' | '1w' | '30d'; /** * Tag or attribute filters that events must match to count */ filters?: Array<{ /** * Tag key to match */ key?: string; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the tag or attribute against. Not set for is and ns */ value?: string; } | { /** * Event attribute to match, such as message or user.email */ attribute?: 'message' | 'platform' | 'environment' | 'type' | 'error.handled' | 'error.unhandled' | 'error.main_thread' | 'exception.type' | 'exception.value' | 'user.id' | 'user.email' | 'user.username' | 'user.ip_address' | 'http.method' | 'http.url' | 'http.status_code' | 'sdk.name' | 'stacktrace.code' | 'stacktrace.module' | 'stacktrace.filename' | 'stacktrace.abs_path' | 'stacktrace.package' | 'unreal.crash_type' | 'app.in_foreground' | 'os.distribution_name' | 'os.distribution_version' | 'symbolicated_in_app' | 'ota_updates.channel' | 'ota_updates.runtime_version' | 'ota_updates.update_id'; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the tag or attribute against. Not set for is and ns */ value?: string; }>; } | Array<'rca_completed' | 'solution_completed' | 'coding_completed' | 'pr_ready_for_review'> | { /** * Tag key to match */ key?: string; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the tag against. Not set for is and ns */ value?: string; }; /** * Result the condition produces when it matches: true for alert conditions, or the priority level for monitor conditions */ conditionResult: boolean | number | number | null; }>; /** * Actions to fire when the conditions pass */ actions?: Array<{ /** * ID of the action */ id?: string; /** * Type of the action */ type?: 'slack' | 'slack_staging' | 'msteams' | 'discord' | 'pagerduty' | 'opsgenie' | 'github' | 'github_enterprise' | 'jira' | 'jira_server' | 'vsts' | 'email' | 'sentry_app' | 'plugin' | 'webhook' | 'seer_investigation'; /** * ID of the integration the action uses. Null for actions without one */ integrationId?: string | null; /** * Extra data for the action, which depends on its type */ data?: { /** * Tags to add to the message */ tags?: string; } | { /** * The fallthrough type for issue owners email notifications */ fallthroughType?: 'AllMembers' | 'ActiveMembers' | 'NoOne'; } | { /** * Dynamic form fields from customer configuration */ dynamicFormFields?: Array<{ /** * Name of the field */ name?: string; /** * Label of the field */ label?: string; /** * Type of the field, such as select or text */ type?: string; }>; /** * Additional fields that aren't part of standard fields */ additionalFields: { /** * Repository to create the issue in, as owner/name */ repo: string; /** * Labels to add to the issue */ labels?: Array | null; /** * User to assign the issue to */ assignee?: string | null; [key: string]: unknown; }; } | { /** * Dynamic form fields from customer configuration */ dynamicFormFields?: Array<{ /** * Name of the field */ name?: string; /** * Label of the field */ label?: string; /** * Type of the field, such as select or text */ type?: string; }>; /** * Additional fields that aren't part of standard fields */ additionalFields?: { [key: string]: string | null | number | boolean | Array; }; } | { [key: string]: never; } | { /** * The priority of the opsgenie action */ priority?: 'P1' | 'P2' | 'P3' | 'P4' | 'P5'; } | { /** * The priority of the pagerduty action */ priority?: 'default' | 'critical' | 'warning' | 'error' | 'info'; } | { [key: string]: string; } | { /** * Prompt the investigation runs */ prompt?: string; /** * Seer skill the investigation runs, instead of a prompt */ skill?: 'agentic_triage'; } | { /** * Values of the Sentry App's alert rule settings form, each with a name and value */ settings?: Array; } | { /** * Tags to add to the message */ tags?: string; /** * Notes to add to the message */ notes?: string; }; /** * Configuration of the action, such as targetType and targetIdentifier */ config?: { /** * ID of the target, such as a channel, user or team ID */ targetIdentifier: string; /** * Display name of the target, such as a channel name */ targetDisplay?: string | null; /** * Kind of target the action notifies, such as specific, user or team */ targetType: 'specific'; } | { /** * ID of the target, such as a channel, user or team ID */ targetIdentifier?: string | null; /** * Display name of the target, such as a channel name */ targetDisplay?: null; /** * Kind of target the action notifies, such as specific, user or team */ targetType: 'user' | 'team' | 'issue_owners'; } | { /** * ID of the target, such as a channel, user or team ID */ targetIdentifier?: null; /** * Display name of the target, such as a channel name */ targetDisplay?: null; /** * Kind of target the action notifies, such as specific, user or team */ targetType?: 'specific'; } | { /** * ID of the target, such as a channel, user or team ID */ targetIdentifier?: string; /** * Display name of the target, such as a channel name */ targetDisplay: string; /** * Kind of target the action notifies, such as specific, user or team */ targetType: 'specific'; } | { /** * ID of the target, such as a channel, user or team ID */ targetIdentifier: string; /** * Display name of the target, such as a channel name */ targetDisplay?: string | null; /** * Kind of target the action notifies, such as specific, user or team */ targetType: 'specific'; } | { /** * ID of the target, such as a channel, user or team ID */ targetIdentifier?: string | null; /** * Display name of the target, such as a channel name */ targetDisplay?: string | null; /** * Kind of target the action notifies, such as specific, user or team */ targetType?: null; } | { [key: string]: never; } | { /** * ID of the target, such as a channel, user or team ID */ targetIdentifier: string; /** * Display name of the target, such as a channel name */ targetDisplay?: string | null; /** * Kind of target the action notifies, such as specific, user or team */ targetType: 'sentry_app'; } | { /** * ID of the target, such as a channel, user or team ID */ targetIdentifier?: string; /** * Display name of the target, such as a channel name */ targetDisplay?: string; /** * Kind of target the action notifies, such as specific, user or team */ targetType: 'specific'; } | { /** * ID of the target, such as a channel, user or team ID */ targetIdentifier?: string; /** * Display name of the target, such as a channel name */ targetDisplay?: null; /** * Kind of target the action notifies, such as specific, user or team */ targetType?: null; }; /** * Status of the action */ status?: 'active' | 'disabled' | 'pending_deletion' | 'deletion_in_progress'; }>; } | null; /** * Filters to run before actions fire, each with the actions to fire */ actionFilters: Array<{ /** * ID of the condition group */ id?: string; /** * ID of the organization */ organizationId?: string; /** * How the conditions in the group combine */ logicType?: 'any' | 'any-short' | 'all' | 'none'; /** * Conditions in the group */ conditions?: Array<{ /** * ID of the condition */ id: string; /** * Type of the condition, such as first_seen_event or level */ type: string; /** * Value the condition compares against, which depends on its type */ comparison: number | string | boolean | { /** * Whether the issue must be older or newer than the age */ comparisonType: 'older' | 'newer'; /** * Age of the issue, in units of time */ value: number; /** * Unit of the age */ time: 'minute' | 'hour' | 'day' | 'week'; } | { /** * How sensitive anomaly detection is */ sensitivity: 'low' | 'medium' | 'high'; /** * Seasonal pattern that anomaly detection accounts for */ seasonality: 'auto' | 'hourly' | 'daily' | 'weekly' | 'hourly_daily' | 'hourly_weekly' | 'hourly_daily_weekly' | 'daily_weekly'; /** * Anomalies to detect: 0 above, 1 below, 2 above or below the expected value */ thresholdType: 0 | 1 | 2; } | { /** * Who the issue must be assigned to */ targetType: 'Unassigned' | 'Team' | 'Member'; /** * ID of the team or member. Not set for Unassigned */ targetIdentifier?: number | string; } | { /** * Event attribute to match, such as message or user.email */ attribute?: 'message' | 'platform' | 'environment' | 'type' | 'error.handled' | 'error.unhandled' | 'error.main_thread' | 'exception.type' | 'exception.value' | 'user.id' | 'user.email' | 'user.username' | 'user.ip_address' | 'http.method' | 'http.url' | 'http.status_code' | 'sdk.name' | 'stacktrace.code' | 'stacktrace.module' | 'stacktrace.filename' | 'stacktrace.abs_path' | 'stacktrace.package' | 'unreal.crash_type' | 'app.in_foreground' | 'os.distribution_name' | 'os.distribution_version' | 'symbolicated_in_app' | 'ota_updates.channel' | 'ota_updates.runtime_version' | 'ota_updates.update_id'; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the attribute against. Not set for is and ns */ value?: string; } | number | { /** * Time window to count in, such as 1h */ interval: '1m' | '5m' | '15m' | '1h' | '1d' | '1w' | '30d'; /** * Number of events in the interval that meets the condition */ value: number; /** * Tag or attribute filters that events must match to count */ filters?: Array<{ /** * Tag key to match */ key?: string; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the tag or attribute against. Not set for is and ns */ value?: string; } | { /** * Event attribute to match, such as message or user.email */ attribute?: 'message' | 'platform' | 'environment' | 'type' | 'error.handled' | 'error.unhandled' | 'error.main_thread' | 'exception.type' | 'exception.value' | 'user.id' | 'user.email' | 'user.username' | 'user.ip_address' | 'http.method' | 'http.url' | 'http.status_code' | 'sdk.name' | 'stacktrace.code' | 'stacktrace.module' | 'stacktrace.filename' | 'stacktrace.abs_path' | 'stacktrace.package' | 'unreal.crash_type' | 'app.in_foreground' | 'os.distribution_name' | 'os.distribution_version' | 'symbolicated_in_app' | 'ota_updates.channel' | 'ota_updates.runtime_version' | 'ota_updates.update_id'; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the tag or attribute against. Not set for is and ns */ value?: string; }>; } | { /** * Time window to count in, such as 1h */ interval: '1m' | '5m' | '15m' | '1h' | '1d' | '1w' | '30d'; /** * Percent increase in events over the comparison interval that meets the condition */ value: number; /** * Earlier time window to compare the count against, such as 1w */ comparisonInterval: '5m' | '15m' | '1h' | '1d' | '1w' | '30d'; /** * Tag or attribute filters that events must match to count */ filters?: Array<{ /** * Tag key to match */ key?: string; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the tag or attribute against. Not set for is and ns */ value?: string; } | { /** * Event attribute to match, such as message or user.email */ attribute?: 'message' | 'platform' | 'environment' | 'type' | 'error.handled' | 'error.unhandled' | 'error.main_thread' | 'exception.type' | 'exception.value' | 'user.id' | 'user.email' | 'user.username' | 'user.ip_address' | 'http.method' | 'http.url' | 'http.status_code' | 'sdk.name' | 'stacktrace.code' | 'stacktrace.module' | 'stacktrace.filename' | 'stacktrace.abs_path' | 'stacktrace.package' | 'unreal.crash_type' | 'app.in_foreground' | 'os.distribution_name' | 'os.distribution_version' | 'symbolicated_in_app' | 'ota_updates.channel' | 'ota_updates.runtime_version' | 'ota_updates.update_id'; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the tag or attribute against. Not set for is and ns */ value?: string; }>; } | { /** * Time window to count in, such as 1h */ interval: '1m' | '5m' | '15m' | '1h' | '1d' | '1w' | '30d'; /** * Number of affected users in the interval that meets the condition */ value: number; /** * Tag or attribute filters that events must match to count */ filters?: Array<{ /** * Tag key to match */ key?: string; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the tag or attribute against. Not set for is and ns */ value?: string; } | { /** * Event attribute to match, such as message or user.email */ attribute?: 'message' | 'platform' | 'environment' | 'type' | 'error.handled' | 'error.unhandled' | 'error.main_thread' | 'exception.type' | 'exception.value' | 'user.id' | 'user.email' | 'user.username' | 'user.ip_address' | 'http.method' | 'http.url' | 'http.status_code' | 'sdk.name' | 'stacktrace.code' | 'stacktrace.module' | 'stacktrace.filename' | 'stacktrace.abs_path' | 'stacktrace.package' | 'unreal.crash_type' | 'app.in_foreground' | 'os.distribution_name' | 'os.distribution_version' | 'symbolicated_in_app' | 'ota_updates.channel' | 'ota_updates.runtime_version' | 'ota_updates.update_id'; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the tag or attribute against. Not set for is and ns */ value?: string; }>; } | { /** * Time window to count in, such as 1h */ interval: '1m' | '5m' | '15m' | '1h' | '1d' | '1w' | '30d'; /** * Percent increase in affected users over the comparison interval that meets the condition */ value: number; /** * Earlier time window to compare the count against, such as 1w */ comparisonInterval: '5m' | '15m' | '1h' | '1d' | '1w' | '30d'; /** * Tag or attribute filters that events must match to count */ filters?: Array<{ /** * Tag key to match */ key?: string; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the tag or attribute against. Not set for is and ns */ value?: string; } | { /** * Event attribute to match, such as message or user.email */ attribute?: 'message' | 'platform' | 'environment' | 'type' | 'error.handled' | 'error.unhandled' | 'error.main_thread' | 'exception.type' | 'exception.value' | 'user.id' | 'user.email' | 'user.username' | 'user.ip_address' | 'http.method' | 'http.url' | 'http.status_code' | 'sdk.name' | 'stacktrace.code' | 'stacktrace.module' | 'stacktrace.filename' | 'stacktrace.abs_path' | 'stacktrace.package' | 'unreal.crash_type' | 'app.in_foreground' | 'os.distribution_name' | 'os.distribution_version' | 'symbolicated_in_app' | 'ota_updates.channel' | 'ota_updates.runtime_version' | 'ota_updates.update_id'; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the tag or attribute against. Not set for is and ns */ value?: string; }>; } | { /** * ID of the issue category */ value: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 19; /** * Whether the issue must be in the category or not. Defaults to true */ include?: boolean; } | { /** * Number of times the issue must have occurred */ value: number; } | 25 | 50 | 75 | 1 | { /** * Slug of the issue type */ value: 'performance_slow_db_query' | 'performance_render_blocking_asset_span' | 'performance_n_plus_one_db_queries' | 'performance_n_plus_one_db_queries_experimental' | 'performance_consecutive_db_queries' | 'performance_file_io_main_thread' | 'performance_consecutive_http' | 'performance_n_plus_one_api_calls' | 'performance_n_plus_one_api_calls_experimental' | 'performance_m_n_plus_one_db_queries' | 'performance_m_n_plus_one_db_queries_experimental' | 'performance_uncompressed_assets' | 'performance_db_main_thread' | 'performance_large_http_payload' | 'performance_http_overhead' | 'performance_p95_endpoint_regression' | 'performance_streamed_spans_exp' | 'db_query_injection_vulnerability' | 'query_injection_vulnerability' | 'profile_file_io_main_thread' | 'profile_image_decode_main_thread' | 'profile_json_decode_main_thread' | 'profile_regex_main_thread' | 'profile_frame_drop' | 'profile_function_regression' | 'llm_detected_experimental' | 'llm_detected_experimental_v2' | 'ai_detected_http' | 'ai_detected_db' | 'ai_detected_runtime_performance' | 'ai_detected_security' | 'ai_detected_code_health' | 'ai_detected_general' | 'replay_click_rage' | 'replay_hydration_error' | 'feedback' | 'web_vitals' | 'issue_stream' | 'metric_issue' | 'error' | 'uptime_domain_failure' | 'send-test-notification' | 'monitor_check_in_failure' | 'sourcemap_configuration' | 'low_value_span_configuration' | 'preprod_size_analysis'; /** * Whether the issue must be of the type or not. Defaults to true */ include?: boolean; } | { /** * Whether to compare against the oldest or newest adopted release */ releaseAgeType: 'oldest' | 'newest'; /** * Whether the event's release must be older or newer than that release */ ageComparison: 'older' | 'newer'; /** * Environment the release was adopted in */ environment: string; } | { /** * Event level: 0 sample, 10 debug, 20 info, 30 warning, 40 error, 50 fatal */ level: 0 | 10 | 20 | 30 | 40 | 50; /** * How to compare the event's level: eq, gte or lte */ match: 'eq' | 'gte' | 'lte'; } | { /** * Time window to count in, such as 1h */ interval: '1m' | '5m' | '10m' | '30m' | '1h'; /** * Percent of sessions affected in the interval that meets the condition */ value: number; /** * Tag or attribute filters that events must match to count */ filters?: Array<{ /** * Tag key to match */ key?: string; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the tag or attribute against. Not set for is and ns */ value?: string; } | { /** * Event attribute to match, such as message or user.email */ attribute?: 'message' | 'platform' | 'environment' | 'type' | 'error.handled' | 'error.unhandled' | 'error.main_thread' | 'exception.type' | 'exception.value' | 'user.id' | 'user.email' | 'user.username' | 'user.ip_address' | 'http.method' | 'http.url' | 'http.status_code' | 'sdk.name' | 'stacktrace.code' | 'stacktrace.module' | 'stacktrace.filename' | 'stacktrace.abs_path' | 'stacktrace.package' | 'unreal.crash_type' | 'app.in_foreground' | 'os.distribution_name' | 'os.distribution_version' | 'symbolicated_in_app' | 'ota_updates.channel' | 'ota_updates.runtime_version' | 'ota_updates.update_id'; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the tag or attribute against. Not set for is and ns */ value?: string; }>; } | { /** * Time window to count in, such as 1h */ interval: '1m' | '5m' | '10m' | '30m' | '1h'; /** * Percent increase in affected sessions over the comparison interval that meets the condition */ value: number; /** * Earlier time window to compare the count against, such as 1w */ comparisonInterval: '5m' | '15m' | '1h' | '1d' | '1w' | '30d'; /** * Tag or attribute filters that events must match to count */ filters?: Array<{ /** * Tag key to match */ key?: string; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the tag or attribute against. Not set for is and ns */ value?: string; } | { /** * Event attribute to match, such as message or user.email */ attribute?: 'message' | 'platform' | 'environment' | 'type' | 'error.handled' | 'error.unhandled' | 'error.main_thread' | 'exception.type' | 'exception.value' | 'user.id' | 'user.email' | 'user.username' | 'user.ip_address' | 'http.method' | 'http.url' | 'http.status_code' | 'sdk.name' | 'stacktrace.code' | 'stacktrace.module' | 'stacktrace.filename' | 'stacktrace.abs_path' | 'stacktrace.package' | 'unreal.crash_type' | 'app.in_foreground' | 'os.distribution_name' | 'os.distribution_version' | 'symbolicated_in_app' | 'ota_updates.channel' | 'ota_updates.runtime_version' | 'ota_updates.update_id'; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the tag or attribute against. Not set for is and ns */ value?: string; }>; } | Array<'rca_completed' | 'solution_completed' | 'coding_completed' | 'pr_ready_for_review'> | { /** * Tag key to match */ key?: string; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the tag against. Not set for is and ns */ value?: string; }; /** * Result the condition produces when it matches: true for alert conditions, or the priority level for monitor conditions */ conditionResult: boolean | number | number | null; }>; /** * Actions to fire when the conditions pass */ actions?: Array<{ /** * ID of the action */ id?: string; /** * Type of the action */ type?: 'slack' | 'slack_staging' | 'msteams' | 'discord' | 'pagerduty' | 'opsgenie' | 'github' | 'github_enterprise' | 'jira' | 'jira_server' | 'vsts' | 'email' | 'sentry_app' | 'plugin' | 'webhook' | 'seer_investigation'; /** * ID of the integration the action uses. Null for actions without one */ integrationId?: string | null; /** * Extra data for the action, which depends on its type */ data?: { /** * Tags to add to the message */ tags?: string; } | { /** * The fallthrough type for issue owners email notifications */ fallthroughType?: 'AllMembers' | 'ActiveMembers' | 'NoOne'; } | { /** * Dynamic form fields from customer configuration */ dynamicFormFields?: Array<{ /** * Name of the field */ name?: string; /** * Label of the field */ label?: string; /** * Type of the field, such as select or text */ type?: string; }>; /** * Additional fields that aren't part of standard fields */ additionalFields: { /** * Repository to create the issue in, as owner/name */ repo: string; /** * Labels to add to the issue */ labels?: Array | null; /** * User to assign the issue to */ assignee?: string | null; [key: string]: unknown; }; } | { /** * Dynamic form fields from customer configuration */ dynamicFormFields?: Array<{ /** * Name of the field */ name?: string; /** * Label of the field */ label?: string; /** * Type of the field, such as select or text */ type?: string; }>; /** * Additional fields that aren't part of standard fields */ additionalFields?: { [key: string]: string | null | number | boolean | Array; }; } | { [key: string]: never; } | { /** * The priority of the opsgenie action */ priority?: 'P1' | 'P2' | 'P3' | 'P4' | 'P5'; } | { /** * The priority of the pagerduty action */ priority?: 'default' | 'critical' | 'warning' | 'error' | 'info'; } | { [key: string]: string; } | { /** * Prompt the investigation runs */ prompt?: string; /** * Seer skill the investigation runs, instead of a prompt */ skill?: 'agentic_triage'; } | { /** * Values of the Sentry App's alert rule settings form, each with a name and value */ settings?: Array; } | { /** * Tags to add to the message */ tags?: string; /** * Notes to add to the message */ notes?: string; }; /** * Configuration of the action, such as targetType and targetIdentifier */ config?: { /** * ID of the target, such as a channel, user or team ID */ targetIdentifier: string; /** * Display name of the target, such as a channel name */ targetDisplay?: string | null; /** * Kind of target the action notifies, such as specific, user or team */ targetType: 'specific'; } | { /** * ID of the target, such as a channel, user or team ID */ targetIdentifier?: string | null; /** * Display name of the target, such as a channel name */ targetDisplay?: null; /** * Kind of target the action notifies, such as specific, user or team */ targetType: 'user' | 'team' | 'issue_owners'; } | { /** * ID of the target, such as a channel, user or team ID */ targetIdentifier?: null; /** * Display name of the target, such as a channel name */ targetDisplay?: null; /** * Kind of target the action notifies, such as specific, user or team */ targetType?: 'specific'; } | { /** * ID of the target, such as a channel, user or team ID */ targetIdentifier?: string; /** * Display name of the target, such as a channel name */ targetDisplay: string; /** * Kind of target the action notifies, such as specific, user or team */ targetType: 'specific'; } | { /** * ID of the target, such as a channel, user or team ID */ targetIdentifier: string; /** * Display name of the target, such as a channel name */ targetDisplay?: string | null; /** * Kind of target the action notifies, such as specific, user or team */ targetType: 'specific'; } | { /** * ID of the target, such as a channel, user or team ID */ targetIdentifier?: string | null; /** * Display name of the target, such as a channel name */ targetDisplay?: string | null; /** * Kind of target the action notifies, such as specific, user or team */ targetType?: null; } | { [key: string]: never; } | { /** * ID of the target, such as a channel, user or team ID */ targetIdentifier: string; /** * Display name of the target, such as a channel name */ targetDisplay?: string | null; /** * Kind of target the action notifies, such as specific, user or team */ targetType: 'sentry_app'; } | { /** * ID of the target, such as a channel, user or team ID */ targetIdentifier?: string; /** * Display name of the target, such as a channel name */ targetDisplay?: string; /** * Kind of target the action notifies, such as specific, user or team */ targetType: 'specific'; } | { /** * ID of the target, such as a channel, user or team ID */ targetIdentifier?: string; /** * Display name of the target, such as a channel name */ targetDisplay?: null; /** * Kind of target the action notifies, such as specific, user or team */ targetType?: null; }; /** * Status of the action */ status?: 'active' | 'disabled' | 'pending_deletion' | 'deletion_in_progress'; }>; }> | null; /** * Name of the environment the workflow is limited to. Null for all environments */ environment: string | null; /** * Configuration of the workflow, such as frequency in minutes */ config: { /** * How often the workflow should fire for a Group (minutes) */ frequency?: number; }; /** * IDs of the monitors connected to the workflow */ detectorIds: Array | null; /** * Whether the workflow is enabled */ enabled: boolean; /** * When the workflow last fired (ISO 8601) */ lastTriggered: string | null; /** * Team or user that owns the workflow, such as user:123 or team:456 */ owner: string | null; }>; }; export type ListOrganizationWorkflowsResponse = ListOrganizationWorkflowsResponses[keyof ListOrganizationWorkflowsResponses]; export type CreateOrganizationWorkflowData = { /** * Allows parameters to be defined in snake case, but passed as camel case. * * Errors are output in camel case. */ body: { /** * The name of the alert */ name: string; /** * The ID of the existing alert */ id?: string; /** * Whether the alert is enabled or disabled */ enabled?: boolean; /** * The IDs of the monitors to connect this alert to. Use 'Fetch an Organization's Monitors' to find the IDs. */ detectorIds?: Array; /** * * Typically the frequency at which the alert will fire, in minutes. * * - `0`: 0 minutes * - `5`: 5 minutes * - `10`: 10 minutes * - `30`: 30 minutes * - `60`: 1 hour * - `180`: 3 hours * - `720`: 12 hours * - `1440`: 24 hours * * ```json * { * "frequency": 60 * } * ``` * */ config?: { [key: string]: unknown; }; /** * The name of the environment for the alert to evaluate in */ environment?: string | null; /** * The conditions on which the alert will trigger. See available options below. * ```json * { * "triggers": { * "organizationId": "1", * "logicType": "any-short", * "conditions": [ * { * "type": "first_seen_event", * "comparison": true, * "conditionResult": true * }, * { * "type": "issue_resolved_trigger", * "comparison": true, * "conditionResult": true * }, * { * "type": "reappeared_event", * "comparison": true, * "conditionResult": true * }, * { * "type": "regression_event", * "comparison": true, * "conditionResult": true * }, * { * "type": "seer_activity_trigger", * "comparison": [ * "rca_completed", * "solution_completed", * "coding_completed", * "pr_ready_for_review" * ], * "conditionResult": true * } * ] * } * } * ``` * */ triggers?: { id?: number; logicType: 'any-short'; conditions?: Array<{ id?: number; type: 'every_event'; comparison: boolean; conditionResult: boolean; } | { id?: number; type: 'first_seen_event'; comparison: boolean; conditionResult: boolean; } | { id?: number; type: 'issue_resolved_trigger'; comparison: boolean; conditionResult: boolean; } | { id?: number; type: 'reappeared_event'; comparison: boolean; conditionResult: boolean; } | { id?: number; type: 'regression_event'; comparison: boolean; conditionResult: boolean; } | { id?: number; type: 'seer_activity_trigger'; comparison: Array<'rca_completed' | 'solution_completed' | 'coding_completed' | 'pr_ready_for_review'>; conditionResult: boolean; }>; }; /** * The filters to run before the action will fire and the action(s) to fire. * * `logicType` can be one of `any-short`, `all`, or `none`. * * Below is a basic example. See below for all other options. * * ```json * "actionFilters": [ * { * "logicType": "any", * "conditions": [ * { * "type": "level", * "comparison": { * "level": 50, * "match": "eq" * }, * "conditionResult": true * } * ], * "actions": [ * { * "id": "123", * "type": "email", * "integrationId": null, * "data": {}, * "config": { * "targetType": "user", * "targetDisplay": null, * "targetIdentifier": "56789" * }, * "status": "active" * } * ] * } * ] * ``` * * ## Conditions * * **Issue Age** * - `time`: One of `minute`, `hour`, `day`, or `week`. * - `value`: A positive integer. * - `comparisonType`: One of `older` or `newer`. * ```json * { * "type": "age_comparison", * "comparison": { * "time": "minute", * "value": 10, * "comparisonType": "older" * }, * "conditionResult": true * } * * ``` * * **Issue Assignment** * - `targetType`: Who the issue is assigned to * - `Unassigned`: Unassigned * - `Member`: Assigned to a user * - `Team`: Assigned to a team * - `targetIdentifier`: The ID of the user or team from the `targetType`. Enter "" if `targetType` is `Unassigned`. * ```json * { * "type": "assigned_to", * "comparison": { * "targetType": "Member", * "targetIdentifier": 123456 * }, * "conditionResult": true * } * ``` * * **Issue Category** * - `value`: The issue category to filter to. * - `1`: Error issues * - `6`: Feedback issues * - `10`: Outage issues * - `11`: Metric issues * - `12`: DB Query issues * - `13`: HTTP Client issues * - `14`: Front end issues * - `15`: Mobile issues * - `17`: Preprod issues * - `19`: Configuration issues * ```json * { * "type": "issue_category", * "comparison": { * "value": 1 * }, * "conditionResult": true * } * ``` * * **Issue Frequency** * - `value`: A positive integer representing how many times the issue has to happen before the alert will fire. * ```json * { * "type": "issue_occurrences", * "comparison": { * "value": 10 * }, * "conditionResult": true * } * ``` * * **De-escalation** * - `comparison`: The priority threshold the issue must de-escalate below. * - `75`: High priority * - `50`: Medium priority * - `25`: Low priority * ```json * { * "type": "issue_priority_deescalating", * "comparison": 75, * "conditionResult": true * } * ``` * * **Issue Priority** * - `comparison`: The priority the issue must be for the alert to fire. * - `75`: High priority * - `50`: Medium priority * - `25`: Low priority * ```json * { * "type": "issue_priority_greater_or_equal", * "comparison": 75, * "conditionResult": true * } * ``` * * **Number of Users Affected** * - `value`: A positive integer representing the number of users that must be affected before the alert will fire. * - `filters`: A list of additional sub-filters to evaluate before the alert will fire. * - `interval`: The time period in which to evaluate the value. e.g. Number of users affected by an issue is more than `value` in `interval`. * - `1m`: 1 minute * - `5m`: 5 minutes * - `15m`: 15 minutes * - `1h`: 1 hour * - `1d`: 1 day * - `1w`: 1 week * - `30d`: 30 days * ```json * { * "type": "event_unique_user_frequency_count", * "comparison": { * "value": 100, * "filters": [{"key": "foo", "match": "eq", "value": "bar"}], * "interval": "1h" * }, * "conditionResult": true * } * ``` * * **Number of Events** * - `value`: A positive integer representing the number of events in an issue that must come in before the alert will fire * - `interval`: The time period in which to evaluate the value. e.g. Number of events in an issue is more than `value` in `interval`. * - `1m`: 1 minute * - `5m`: 5 minutes * - `15m`: 15 minutes * - `1h`: 1 hour * - `1d`: 1 day * - `1w`: 1 week * - `30d`: 30 days * ```json * { * "type": "event_frequency_count", * "comparison": { * "value": 100, * "interval": "1h" * }, * "conditionResult": true * } * ``` * * **Percent of Events** * - `value`: A positive integer representing the number of events in an issue that must come in before the alert will fire * - `interval`: The time period in which to evaluate the value. * - `1m`: 1 minute * - `5m`: 5 minutes * - `15m`: 15 minutes * - `1h`: 1 hour * - `1d`: 1 day * - `1w`: 1 week * - `30d`: 30 days * - `comparisonInterval`: The time period to compare against. * - `5m`: 5 minutes * - `15m`: 15 minutes * - `1h`: 1 hour * - `1d`: 1 day * - `1w`: 1 week * - `30d`: 30 days * ```json * { * "type": "event_frequency_percent", * "comparison": { * "value": 100, * "interval": "1h", * "comparisonInterval": "1w" * }, * "conditionResult": true * } * * ``` * * **Percentage of Sessions Affected Count** * - `value`: A positive integer representing the number of events in an issue that must come in before the alert will fire * - `interval`: The time period in which to evaluate the value. e.g. Percentage of sessions affected by an issue is more than `value` in `interval`. * - `1m`: 1 minute * - `5m`: 5 minutes * - `10m`: 10 minutes * - `30m`: 30 minutes * - `1h`: 1 hour * ```json * { * "type": "percent_sessions_count", * "comparison": { * "value": 10, * "interval": "1h" * }, * "conditionResult": true * } * ``` * * **Percentage of Sessions Affected Percent** * - `value`: A positive integer representing the number of events in an issue that must come in before the alert will fire * - `interval`: The time period in which to evaluate the value. * - `1m`: 1 minute * - `5m`: 5 minutes * - `10m`: 10 minutes * - `30m`: 30 minutes * - `1h`: 1 hour * - `comparisonInterval`: The time period to compare against. * - `5m`: 5 minutes * - `15m`: 15 minutes * - `1h`: 1 hour * - `1d`: 1 day * - `1w`: 1 week * - `30d`: 30 days * ```json * { * "type": "percent_sessions_percent", * "comparison": { * "value": 10, * "interval": "1h", * "comparisonInterval": "1w" * }, * "conditionResult": true * } * ``` * * **Event Attribute** * The event's `attribute` value `match` `value` * * - `attribute`: The event attribute to match on. Valid values are: `message`, `platform`, `environment`, `type`, `error.handled`, `error.unhandled`, `error.main_thread`, `exception.type`, `exception.value`, `user.id`, `user.email`, `user.username`, `user.ip_address`, `http.method`, `http.url`, `http.status_code`, `sdk.name`, `stacktrace.code`, `stacktrace.module`, `stacktrace.filename`, `stacktrace.abs_path`, `stacktrace.package`, `unreal.crash_type`, `app.in_foreground`. * - `match`: The comparison operator * - `co`: Contains * - `nc`: Does not contain * - `eq`: Equals * - `ne`: Does not equal * - `sw`: Starts with * - `ew`: Ends with * - `is`: Is set * - `ns`: Is not set * - `value`: A string. Must be omitted when match is `is` or `ns`; required otherwise. * * ```json * { * "type": "event_attribute", * "comparison": { * "match": "co", * "value": "bar", * "attribute": "message" * }, * "conditionResult": true * } * ``` * * **Tagged Event** * The event's tags `key` match `value` * - `key`: The tag value * - `match`: The comparison operator * - `co`: Contains * - `nc`: Does not contain * - `eq`: Equals * - `ne`: Does not equal * - `sw`: Starts with * - `ew`: Ends with * - `is`: Is set * - `ns`: Is not set * - `value`: A string. Must be omitted when match is `is` or `ns`; required otherwise. * * ```json * { * "type": "tagged_event", * "comparison": { * "key": "level", * "match": "eq", * "value": "error" * }, * "conditionResult": true * } * ``` * * **Latest Release** * The event is from the latest release * * ```json * { * "type": "latest_release", * "comparison": true, * "conditionResult": true * } * ``` * * **Release Age** * ```json * { * "type": "latest_adopted_release", * "comparison": { * "environment": "production", * "ageComparison": "older", * "releaseAgeType": "oldest" * }, * "conditionResult": true * } * ``` * * **Event Level** * The event's level is `match` `level` * - `match`: The comparison operator * - `eq`: Equal * - `gte`: Greater than or equal * - `lte`: Less than or equal * - `level`: The event level * - `50`: Fatal * - `40`: Error * - `30`: Warning * - `20`: Info * - `10`: Debug * - `0`: Sample * * ```json * { * "type": "level", * "comparison": { * "level": 50, * "match": "eq" * }, * "conditionResult": true * } * ``` * * ## Actions * A list of actions that take place when all required conditions and filters for the alert are met. See below for a list of possible actions. * * * **Notify on Preferred Channel** * - `data`: A dictionary with the fallthrough type option when choosing to notify Suggested Assignees. Leave empty if notifying a user or team. * - `fallthroughType` * - `ActiveMembers` * - `AllMembers` * - `NoOne` * - `config`: A dictionary with the configuration options for notification. * - `targetType`: The type of recipient to notify * - `user`: User * - `team`: Team * - `issue_owners`: Suggested Assignees * - `targetDisplay`: null * - `targetIdentifier`: The id of the user or team to notify. Leave null for Suggested Assignees. * * ```json * { * "type":"email", * "integrationId":null, * "data":{}, * "config":{ * "targetType":"user", * "targetDisplay":null, * "targetIdentifier":"232692" * }, * "status":"active" * }, * { * "type":"email", * "integrationId":null, * "data":{ * "fallthroughType":"ActiveMembers" * }, * "config":{ * "targetType":"issue_owners", * "targetDisplay":null, * "targetIdentifier":""} * , * "status":"active" * } * ``` * **Notify on Slack** * - `targetDisplay`: The name of the channel to notify in. * `integrationId`: The stringified ID of the integration. * * ```json * { * "type":"slack", * "config":{ * "targetType":"specific", * "targetIdentifier":"", * "targetDisplay":"notify-errors" * }, * "integrationId":"1", * "data":{}, * "status":"active" * } * ``` * * **Notify on PagerDuty** * - `targetDisplay`: The name of the service to create the ticket in. * - `integrationId`: The stringified ID of the integration. * - `data["priority"]`: The severity level for the notification. * * ```json * { * "type":"pagerduty", * "config":{ * "targetType":"specific", * "targetIdentifier":"123456", * "targetDisplay":"Error Service" * }, * "integrationId":"2345", * "data":{ * "priority":"default" * }, * "status":"active" * } * ``` * * **Notify on Discord** * - `targetDisplay`: The name of the service to create the ticket in. * - `integrationId`: The stringified ID of the integration. * - `data["tags"]`: Comma separated list of tags to add to the notification. * * ```json * { * "type":"discord", * "config":{ * "targetType":"specific", * "targetIdentifier":"12345", * "targetDisplay":"" * }, * "integrationId":"1234", * "data":{ * "tags":"transaction,environment" * }, * "status":"active" * } * ``` * * **Notify on MSTeams** * - `targetIdentifier` - The integration ID associated with the Microsoft Teams team. * - `targetDisplay` - The name of the channel to send the notification to. * - `integrationId`: The stringified ID of the integration. * ```json * { * "type":"msteams", * "config":{ * "targetType":"specific", * "targetIdentifier":"19:a4b3kghaghgkjah357y6847@thread.skype", * "targetDisplay":"notify-errors" * }, * "integrationId":"1", * "data":{}, * "status":"active" * } * ``` * * **Notify on OpsGenie** * - `targetDisplay`: The name of the Opsgenie team. * - `targetIdentifier`: The ID of the Opsgenie team to send the notification to. * - `integrationId`: The stringified ID of the integration. * - `data["priority"]`: The priority level for the notification. * * ```json * { * "type":"opsgenie", * "config":{ * "targetType":"specific", * "targetIdentifier":"123456-Error-Service", * "targetDisplay":"Error Service" * }, * "integrationId":"2345", * "data":{ * "priority":"P3" * }, * "status":"active" * } * ``` * * **Notify on Azure DevOps** * - `integrationId`: The stringified ID of the integration. * - `data` - A list of any fields you want to include in the ticket as objects. * * ```json * { * "type":"vsts", * "config":{ * "targetType":"specific", * "targetIdentifier":", * "targetDisplay":"" * }, * "integrationId":"2345", * "data":{...}, * "status":"active" * } * ``` * * **Create a Jira ticket** * - `integrationId`: The stringified ID of the integration. * - `data` - A list of any fields you want to include in the ticket as objects. * * ```json * { * "type":"jira", * "config":{ * "targetType":"specific", * "targetIdentifier":", * "targetDisplay":"" * }, * "integrationId":"2345", * "data":{...}, * "status":"active" * } * ``` * * **Create a Jira Server ticket** * - `integrationId`: The stringified ID of the integration. * - `data` - A list of any fields you want to include in the ticket as objects. * * ```json * { * "type":"jira_server", * "config":{ * "targetType":"specific", * "targetIdentifier":", * "targetDisplay":"" * }, * "integrationId":"2345", * "data":{...}, * "status":"active" * } * ``` * * **Create a GitHub issue** * - `integrationId`: The stringified ID of the integration. * - `data` - A list of any fields you want to include in the ticket as objects. * * ```json * { * "type":"github", * "config":{ * "targetType":"specific", * "targetIdentifier":", * "targetDisplay":"" * }, * "integrationId":"2345", * "data":{ * "additional_fields": { * "assignee": "", * "integration": "2345", * "labels": [], * "repo": "example-repo", * }, * "dynamic_form_fields": [ * { * "choices": [["YourOrg/example-repo", "example-repo"]], * "default": "YourOrg/example-repo", * "label": "GitHub Repository", * "name": "repo", * "required": true * "type": "select", * "updatesForm": true, * "url": "/extensions/github/search/example-repo/1234567/", * }, * ], * }, * "status":"active" * } * ``` * */ actionFilters?: Array<{ id?: number; /** * * `any` * * `any-short` * * `all` * * `none` */ logicType: 'any' | 'any-short' | 'all' | 'none'; conditions?: Array<{ id?: number; type: 'age_comparison'; comparison: { comparisonType: 'older' | 'newer'; value: number; time: 'minute' | 'hour' | 'day' | 'week'; }; conditionResult: boolean; } | { id?: number; type: 'assigned_to'; comparison: { targetType: 'Unassigned' | 'Team' | 'Member'; targetIdentifier?: number | string; }; conditionResult: boolean; } | { id?: number; type: 'event_attribute'; comparison: ({ attribute: 'message' | 'platform' | 'environment' | 'type' | 'error.handled' | 'error.unhandled' | 'error.main_thread' | 'exception.type' | 'exception.value' | 'user.id' | 'user.email' | 'user.username' | 'user.ip_address' | 'http.method' | 'http.url' | 'http.status_code' | 'sdk.name' | 'stacktrace.code' | 'stacktrace.module' | 'stacktrace.filename' | 'stacktrace.abs_path' | 'stacktrace.package' | 'unreal.crash_type' | 'app.in_foreground' | 'os.distribution_name' | 'os.distribution_version' | 'symbolicated_in_app' | 'ota_updates.channel' | 'ota_updates.runtime_version' | 'ota_updates.update_id'; match: 'is' | 'ns'; } | { attribute: 'message' | 'platform' | 'environment' | 'type' | 'error.handled' | 'error.unhandled' | 'error.main_thread' | 'exception.type' | 'exception.value' | 'user.id' | 'user.email' | 'user.username' | 'user.ip_address' | 'http.method' | 'http.url' | 'http.status_code' | 'sdk.name' | 'stacktrace.code' | 'stacktrace.module' | 'stacktrace.filename' | 'stacktrace.abs_path' | 'stacktrace.package' | 'unreal.crash_type' | 'app.in_foreground' | 'os.distribution_name' | 'os.distribution_version' | 'symbolicated_in_app' | 'ota_updates.channel' | 'ota_updates.runtime_version' | 'ota_updates.update_id'; match: unknown; value: string; }) & { attribute?: 'message' | 'platform' | 'environment' | 'type' | 'error.handled' | 'error.unhandled' | 'error.main_thread' | 'exception.type' | 'exception.value' | 'user.id' | 'user.email' | 'user.username' | 'user.ip_address' | 'http.method' | 'http.url' | 'http.status_code' | 'sdk.name' | 'stacktrace.code' | 'stacktrace.module' | 'stacktrace.filename' | 'stacktrace.abs_path' | 'stacktrace.package' | 'unreal.crash_type' | 'app.in_foreground' | 'os.distribution_name' | 'os.distribution_version' | 'symbolicated_in_app' | 'ota_updates.channel' | 'ota_updates.runtime_version' | 'ota_updates.update_id'; match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; value?: string; }; conditionResult: boolean; } | { id?: number; type: 'event_frequency_count'; comparison: { interval: '1m' | '5m' | '15m' | '1h' | '1d' | '1w' | '30d'; value: number; filters?: Array<(({ key: string; match: 'is' | 'ns'; } | { key: string; match: unknown; value: string; }) & { key?: string; match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; value?: string; }) | (({ attribute: 'message' | 'platform' | 'environment' | 'type' | 'error.handled' | 'error.unhandled' | 'error.main_thread' | 'exception.type' | 'exception.value' | 'user.id' | 'user.email' | 'user.username' | 'user.ip_address' | 'http.method' | 'http.url' | 'http.status_code' | 'sdk.name' | 'stacktrace.code' | 'stacktrace.module' | 'stacktrace.filename' | 'stacktrace.abs_path' | 'stacktrace.package' | 'unreal.crash_type' | 'app.in_foreground' | 'os.distribution_name' | 'os.distribution_version' | 'symbolicated_in_app' | 'ota_updates.channel' | 'ota_updates.runtime_version' | 'ota_updates.update_id'; match: 'is' | 'ns'; } | { attribute: 'message' | 'platform' | 'environment' | 'type' | 'error.handled' | 'error.unhandled' | 'error.main_thread' | 'exception.type' | 'exception.value' | 'user.id' | 'user.email' | 'user.username' | 'user.ip_address' | 'http.method' | 'http.url' | 'http.status_code' | 'sdk.name' | 'stacktrace.code' | 'stacktrace.module' | 'stacktrace.filename' | 'stacktrace.abs_path' | 'stacktrace.package' | 'unreal.crash_type' | 'app.in_foreground' | 'os.distribution_name' | 'os.distribution_version' | 'symbolicated_in_app' | 'ota_updates.channel' | 'ota_updates.runtime_version' | 'ota_updates.update_id'; match: unknown; value: string; }) & { attribute?: 'message' | 'platform' | 'environment' | 'type' | 'error.handled' | 'error.unhandled' | 'error.main_thread' | 'exception.type' | 'exception.value' | 'user.id' | 'user.email' | 'user.username' | 'user.ip_address' | 'http.method' | 'http.url' | 'http.status_code' | 'sdk.name' | 'stacktrace.code' | 'stacktrace.module' | 'stacktrace.filename' | 'stacktrace.abs_path' | 'stacktrace.package' | 'unreal.crash_type' | 'app.in_foreground' | 'os.distribution_name' | 'os.distribution_version' | 'symbolicated_in_app' | 'ota_updates.channel' | 'ota_updates.runtime_version' | 'ota_updates.update_id'; match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; value?: string; })>; }; conditionResult: boolean; } | { id?: number; type: 'event_frequency_percent'; comparison: { interval: '1m' | '5m' | '15m' | '1h' | '1d' | '1w' | '30d'; value: number; comparisonInterval: '5m' | '15m' | '1h' | '1d' | '1w' | '30d'; filters?: Array<(({ key: string; match: 'is' | 'ns'; } | { key: string; match: unknown; value: string; }) & { key?: string; match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; value?: string; }) | (({ attribute: 'message' | 'platform' | 'environment' | 'type' | 'error.handled' | 'error.unhandled' | 'error.main_thread' | 'exception.type' | 'exception.value' | 'user.id' | 'user.email' | 'user.username' | 'user.ip_address' | 'http.method' | 'http.url' | 'http.status_code' | 'sdk.name' | 'stacktrace.code' | 'stacktrace.module' | 'stacktrace.filename' | 'stacktrace.abs_path' | 'stacktrace.package' | 'unreal.crash_type' | 'app.in_foreground' | 'os.distribution_name' | 'os.distribution_version' | 'symbolicated_in_app' | 'ota_updates.channel' | 'ota_updates.runtime_version' | 'ota_updates.update_id'; match: 'is' | 'ns'; } | { attribute: 'message' | 'platform' | 'environment' | 'type' | 'error.handled' | 'error.unhandled' | 'error.main_thread' | 'exception.type' | 'exception.value' | 'user.id' | 'user.email' | 'user.username' | 'user.ip_address' | 'http.method' | 'http.url' | 'http.status_code' | 'sdk.name' | 'stacktrace.code' | 'stacktrace.module' | 'stacktrace.filename' | 'stacktrace.abs_path' | 'stacktrace.package' | 'unreal.crash_type' | 'app.in_foreground' | 'os.distribution_name' | 'os.distribution_version' | 'symbolicated_in_app' | 'ota_updates.channel' | 'ota_updates.runtime_version' | 'ota_updates.update_id'; match: unknown; value: string; }) & { attribute?: 'message' | 'platform' | 'environment' | 'type' | 'error.handled' | 'error.unhandled' | 'error.main_thread' | 'exception.type' | 'exception.value' | 'user.id' | 'user.email' | 'user.username' | 'user.ip_address' | 'http.method' | 'http.url' | 'http.status_code' | 'sdk.name' | 'stacktrace.code' | 'stacktrace.module' | 'stacktrace.filename' | 'stacktrace.abs_path' | 'stacktrace.package' | 'unreal.crash_type' | 'app.in_foreground' | 'os.distribution_name' | 'os.distribution_version' | 'symbolicated_in_app' | 'ota_updates.channel' | 'ota_updates.runtime_version' | 'ota_updates.update_id'; match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; value?: string; })>; }; conditionResult: boolean; } | { id?: number; type: 'event_unique_user_frequency_count'; comparison: { interval: '1m' | '5m' | '15m' | '1h' | '1d' | '1w' | '30d'; value: number; filters?: Array<(({ key: string; match: 'is' | 'ns'; } | { key: string; match: unknown; value: string; }) & { key?: string; match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; value?: string; }) | (({ attribute: 'message' | 'platform' | 'environment' | 'type' | 'error.handled' | 'error.unhandled' | 'error.main_thread' | 'exception.type' | 'exception.value' | 'user.id' | 'user.email' | 'user.username' | 'user.ip_address' | 'http.method' | 'http.url' | 'http.status_code' | 'sdk.name' | 'stacktrace.code' | 'stacktrace.module' | 'stacktrace.filename' | 'stacktrace.abs_path' | 'stacktrace.package' | 'unreal.crash_type' | 'app.in_foreground' | 'os.distribution_name' | 'os.distribution_version' | 'symbolicated_in_app' | 'ota_updates.channel' | 'ota_updates.runtime_version' | 'ota_updates.update_id'; match: 'is' | 'ns'; } | { attribute: 'message' | 'platform' | 'environment' | 'type' | 'error.handled' | 'error.unhandled' | 'error.main_thread' | 'exception.type' | 'exception.value' | 'user.id' | 'user.email' | 'user.username' | 'user.ip_address' | 'http.method' | 'http.url' | 'http.status_code' | 'sdk.name' | 'stacktrace.code' | 'stacktrace.module' | 'stacktrace.filename' | 'stacktrace.abs_path' | 'stacktrace.package' | 'unreal.crash_type' | 'app.in_foreground' | 'os.distribution_name' | 'os.distribution_version' | 'symbolicated_in_app' | 'ota_updates.channel' | 'ota_updates.runtime_version' | 'ota_updates.update_id'; match: unknown; value: string; }) & { attribute?: 'message' | 'platform' | 'environment' | 'type' | 'error.handled' | 'error.unhandled' | 'error.main_thread' | 'exception.type' | 'exception.value' | 'user.id' | 'user.email' | 'user.username' | 'user.ip_address' | 'http.method' | 'http.url' | 'http.status_code' | 'sdk.name' | 'stacktrace.code' | 'stacktrace.module' | 'stacktrace.filename' | 'stacktrace.abs_path' | 'stacktrace.package' | 'unreal.crash_type' | 'app.in_foreground' | 'os.distribution_name' | 'os.distribution_version' | 'symbolicated_in_app' | 'ota_updates.channel' | 'ota_updates.runtime_version' | 'ota_updates.update_id'; match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; value?: string; })>; }; conditionResult: boolean; } | { id?: number; type: 'event_unique_user_frequency_percent'; comparison: { interval: '1m' | '5m' | '15m' | '1h' | '1d' | '1w' | '30d'; value: number; comparisonInterval: '5m' | '15m' | '1h' | '1d' | '1w' | '30d'; filters?: Array<(({ key: string; match: 'is' | 'ns'; } | { key: string; match: unknown; value: string; }) & { key?: string; match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; value?: string; }) | (({ attribute: 'message' | 'platform' | 'environment' | 'type' | 'error.handled' | 'error.unhandled' | 'error.main_thread' | 'exception.type' | 'exception.value' | 'user.id' | 'user.email' | 'user.username' | 'user.ip_address' | 'http.method' | 'http.url' | 'http.status_code' | 'sdk.name' | 'stacktrace.code' | 'stacktrace.module' | 'stacktrace.filename' | 'stacktrace.abs_path' | 'stacktrace.package' | 'unreal.crash_type' | 'app.in_foreground' | 'os.distribution_name' | 'os.distribution_version' | 'symbolicated_in_app' | 'ota_updates.channel' | 'ota_updates.runtime_version' | 'ota_updates.update_id'; match: 'is' | 'ns'; } | { attribute: 'message' | 'platform' | 'environment' | 'type' | 'error.handled' | 'error.unhandled' | 'error.main_thread' | 'exception.type' | 'exception.value' | 'user.id' | 'user.email' | 'user.username' | 'user.ip_address' | 'http.method' | 'http.url' | 'http.status_code' | 'sdk.name' | 'stacktrace.code' | 'stacktrace.module' | 'stacktrace.filename' | 'stacktrace.abs_path' | 'stacktrace.package' | 'unreal.crash_type' | 'app.in_foreground' | 'os.distribution_name' | 'os.distribution_version' | 'symbolicated_in_app' | 'ota_updates.channel' | 'ota_updates.runtime_version' | 'ota_updates.update_id'; match: unknown; value: string; }) & { attribute?: 'message' | 'platform' | 'environment' | 'type' | 'error.handled' | 'error.unhandled' | 'error.main_thread' | 'exception.type' | 'exception.value' | 'user.id' | 'user.email' | 'user.username' | 'user.ip_address' | 'http.method' | 'http.url' | 'http.status_code' | 'sdk.name' | 'stacktrace.code' | 'stacktrace.module' | 'stacktrace.filename' | 'stacktrace.abs_path' | 'stacktrace.package' | 'unreal.crash_type' | 'app.in_foreground' | 'os.distribution_name' | 'os.distribution_version' | 'symbolicated_in_app' | 'ota_updates.channel' | 'ota_updates.runtime_version' | 'ota_updates.update_id'; match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; value?: string; })>; }; conditionResult: boolean; } | { id?: number; type: 'issue_category'; comparison: { value: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 19; include?: boolean; }; conditionResult: boolean; } | { id?: number; type: 'issue_occurrences'; comparison: { value: number; }; conditionResult: boolean; } | { id?: number; type: 'issue_priority_deescalating'; comparison: 25 | 50 | 75; conditionResult: boolean; } | { id?: number; type: 'issue_priority_greater_or_equal'; comparison: 25 | 50 | 75; conditionResult: boolean; } | { id?: number; type: 'issue_type'; comparison: { value: 'performance_slow_db_query' | 'performance_render_blocking_asset_span' | 'performance_n_plus_one_db_queries' | 'performance_n_plus_one_db_queries_experimental' | 'performance_consecutive_db_queries' | 'performance_file_io_main_thread' | 'performance_consecutive_http' | 'performance_n_plus_one_api_calls' | 'performance_n_plus_one_api_calls_experimental' | 'performance_m_n_plus_one_db_queries' | 'performance_m_n_plus_one_db_queries_experimental' | 'performance_uncompressed_assets' | 'performance_db_main_thread' | 'performance_large_http_payload' | 'performance_http_overhead' | 'performance_p95_endpoint_regression' | 'performance_streamed_spans_exp' | 'db_query_injection_vulnerability' | 'query_injection_vulnerability' | 'profile_file_io_main_thread' | 'profile_image_decode_main_thread' | 'profile_json_decode_main_thread' | 'profile_regex_main_thread' | 'profile_frame_drop' | 'profile_function_regression' | 'llm_detected_experimental' | 'llm_detected_experimental_v2' | 'ai_detected_http' | 'ai_detected_db' | 'ai_detected_runtime_performance' | 'ai_detected_security' | 'ai_detected_code_health' | 'ai_detected_general' | 'replay_click_rage' | 'replay_hydration_error' | 'feedback' | 'web_vitals' | 'issue_stream' | 'metric_issue' | 'error' | 'uptime_domain_failure' | 'send-test-notification' | 'monitor_check_in_failure' | 'sourcemap_configuration' | 'low_value_span_configuration' | 'preprod_size_analysis'; include?: boolean; }; conditionResult: boolean; } | { id?: number; type: 'latest_adopted_release'; comparison: { releaseAgeType: 'oldest' | 'newest'; ageComparison: 'older' | 'newer'; environment: string; }; conditionResult: boolean; } | { id?: number; type: 'latest_release'; comparison: boolean; conditionResult: boolean; } | { id?: number; type: 'level'; comparison: { level: 0 | 10 | 20 | 30 | 40 | 50; match: 'eq' | 'gte' | 'lte'; }; conditionResult: boolean; } | { id?: number; type: 'percent_sessions_count'; comparison: { interval: '1m' | '5m' | '10m' | '30m' | '1h'; value: number; filters?: Array<(({ key: string; match: 'is' | 'ns'; } | { key: string; match: unknown; value: string; }) & { key?: string; match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; value?: string; }) | (({ attribute: 'message' | 'platform' | 'environment' | 'type' | 'error.handled' | 'error.unhandled' | 'error.main_thread' | 'exception.type' | 'exception.value' | 'user.id' | 'user.email' | 'user.username' | 'user.ip_address' | 'http.method' | 'http.url' | 'http.status_code' | 'sdk.name' | 'stacktrace.code' | 'stacktrace.module' | 'stacktrace.filename' | 'stacktrace.abs_path' | 'stacktrace.package' | 'unreal.crash_type' | 'app.in_foreground' | 'os.distribution_name' | 'os.distribution_version' | 'symbolicated_in_app' | 'ota_updates.channel' | 'ota_updates.runtime_version' | 'ota_updates.update_id'; match: 'is' | 'ns'; } | { attribute: 'message' | 'platform' | 'environment' | 'type' | 'error.handled' | 'error.unhandled' | 'error.main_thread' | 'exception.type' | 'exception.value' | 'user.id' | 'user.email' | 'user.username' | 'user.ip_address' | 'http.method' | 'http.url' | 'http.status_code' | 'sdk.name' | 'stacktrace.code' | 'stacktrace.module' | 'stacktrace.filename' | 'stacktrace.abs_path' | 'stacktrace.package' | 'unreal.crash_type' | 'app.in_foreground' | 'os.distribution_name' | 'os.distribution_version' | 'symbolicated_in_app' | 'ota_updates.channel' | 'ota_updates.runtime_version' | 'ota_updates.update_id'; match: unknown; value: string; }) & { attribute?: 'message' | 'platform' | 'environment' | 'type' | 'error.handled' | 'error.unhandled' | 'error.main_thread' | 'exception.type' | 'exception.value' | 'user.id' | 'user.email' | 'user.username' | 'user.ip_address' | 'http.method' | 'http.url' | 'http.status_code' | 'sdk.name' | 'stacktrace.code' | 'stacktrace.module' | 'stacktrace.filename' | 'stacktrace.abs_path' | 'stacktrace.package' | 'unreal.crash_type' | 'app.in_foreground' | 'os.distribution_name' | 'os.distribution_version' | 'symbolicated_in_app' | 'ota_updates.channel' | 'ota_updates.runtime_version' | 'ota_updates.update_id'; match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; value?: string; })>; }; conditionResult: boolean; } | { id?: number; type: 'percent_sessions_percent'; comparison: { interval: '1m' | '5m' | '10m' | '30m' | '1h'; value: number; comparisonInterval: '5m' | '15m' | '1h' | '1d' | '1w' | '30d'; filters?: Array<(({ key: string; match: 'is' | 'ns'; } | { key: string; match: unknown; value: string; }) & { key?: string; match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; value?: string; }) | (({ attribute: 'message' | 'platform' | 'environment' | 'type' | 'error.handled' | 'error.unhandled' | 'error.main_thread' | 'exception.type' | 'exception.value' | 'user.id' | 'user.email' | 'user.username' | 'user.ip_address' | 'http.method' | 'http.url' | 'http.status_code' | 'sdk.name' | 'stacktrace.code' | 'stacktrace.module' | 'stacktrace.filename' | 'stacktrace.abs_path' | 'stacktrace.package' | 'unreal.crash_type' | 'app.in_foreground' | 'os.distribution_name' | 'os.distribution_version' | 'symbolicated_in_app' | 'ota_updates.channel' | 'ota_updates.runtime_version' | 'ota_updates.update_id'; match: 'is' | 'ns'; } | { attribute: 'message' | 'platform' | 'environment' | 'type' | 'error.handled' | 'error.unhandled' | 'error.main_thread' | 'exception.type' | 'exception.value' | 'user.id' | 'user.email' | 'user.username' | 'user.ip_address' | 'http.method' | 'http.url' | 'http.status_code' | 'sdk.name' | 'stacktrace.code' | 'stacktrace.module' | 'stacktrace.filename' | 'stacktrace.abs_path' | 'stacktrace.package' | 'unreal.crash_type' | 'app.in_foreground' | 'os.distribution_name' | 'os.distribution_version' | 'symbolicated_in_app' | 'ota_updates.channel' | 'ota_updates.runtime_version' | 'ota_updates.update_id'; match: unknown; value: string; }) & { attribute?: 'message' | 'platform' | 'environment' | 'type' | 'error.handled' | 'error.unhandled' | 'error.main_thread' | 'exception.type' | 'exception.value' | 'user.id' | 'user.email' | 'user.username' | 'user.ip_address' | 'http.method' | 'http.url' | 'http.status_code' | 'sdk.name' | 'stacktrace.code' | 'stacktrace.module' | 'stacktrace.filename' | 'stacktrace.abs_path' | 'stacktrace.package' | 'unreal.crash_type' | 'app.in_foreground' | 'os.distribution_name' | 'os.distribution_version' | 'symbolicated_in_app' | 'ota_updates.channel' | 'ota_updates.runtime_version' | 'ota_updates.update_id'; match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; value?: string; })>; }; conditionResult: boolean; } | { id?: number; type: 'tagged_event'; comparison: ({ key: string; match: 'is' | 'ns'; } | { key: string; match: unknown; value: string; }) & { key?: string; match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; value?: string; }; conditionResult: boolean; }>; actions: Array<{ id?: string; type: 'discord'; /** * Schema for Discord action data blob */ data: { /** * Tags to add to the message */ tags?: string; }; /** * The configuration schema for a Discord Action */ config: { targetIdentifier: string; targetDisplay?: string | null; targetType: 'specific'; }; status?: string; integrationId: string; } | { id?: string; type: 'email'; data: { /** * The fallthrough type for issue owners email notifications */ fallthroughType?: 'AllMembers' | 'ActiveMembers' | 'NoOne'; }; /** * The configuration schema for an email Action */ config: { /** * The stringified Sentry User.id or Team.id. Resolve users with the organization members endpoint and teams with the organization teams endpoint. Member IDs, email addresses, team slugs, and 'me' are not accepted. Omit this field when targetType is issue_owners. */ targetIdentifier?: string | null; targetDisplay?: unknown; targetType: 'user' | 'team' | 'issue_owners'; }; status?: string; } | { id?: string; type: 'github'; /** * Schema for GitHub ticket creation action data blob */ data: { /** * Dynamic form fields from customer configuration */ dynamicFormFields?: Array<{ [key: string]: unknown; }>; /** * Additional fields that aren't part of standard fields */ additionalFields: { repo: string; labels?: Array | null; assignee?: string | null; [key: string]: unknown; }; }; /** * The configuration schema for a Ticketing Action */ config: { targetIdentifier?: unknown; targetDisplay?: unknown; targetType?: 'specific'; }; status?: string; integrationId: string; } | { id?: string; type: 'github_enterprise'; /** * Schema for GitHub ticket creation action data blob */ data: { /** * Dynamic form fields from customer configuration */ dynamicFormFields?: Array<{ [key: string]: unknown; }>; /** * Additional fields that aren't part of standard fields */ additionalFields: { repo: string; labels?: Array | null; assignee?: string | null; [key: string]: unknown; }; }; /** * The configuration schema for a Ticketing Action */ config: { targetIdentifier?: unknown; targetDisplay?: unknown; targetType?: 'specific'; }; status?: string; integrationId: string; } | { id?: string; type: 'jira'; /** * Schema for ticket creation action data blob */ data: { /** * Dynamic form fields from customer configuration */ dynamicFormFields?: Array<{ [key: string]: unknown; }>; /** * Additional fields that aren't part of standard fields */ additionalFields?: { [key: string]: unknown; }; }; /** * The configuration schema for a Ticketing Action */ config: { targetIdentifier?: unknown; targetDisplay?: unknown; targetType?: 'specific'; }; status?: string; integrationId: string; } | { id?: string; type: 'jira_server'; /** * Schema for ticket creation action data blob */ data: { /** * Dynamic form fields from customer configuration */ dynamicFormFields?: Array<{ [key: string]: unknown; }>; /** * Additional fields that aren't part of standard fields */ additionalFields?: { [key: string]: unknown; }; }; /** * The configuration schema for a Ticketing Action */ config: { targetIdentifier?: unknown; targetDisplay?: unknown; targetType?: 'specific'; }; status?: string; integrationId: string; } | { id?: string; type: 'msteams'; /** * Schema for MSTeams action data blob */ data: { [key: string]: never; }; /** * The configuration schema for a Messaging Action */ config: { targetIdentifier?: string; targetDisplay: string; targetType: 'specific'; }; status?: string; integrationId: string; } | { id?: string; type: 'opsgenie'; data: { /** * The priority of the opsgenie action */ priority?: 'P1' | 'P2' | 'P3' | 'P4' | 'P5'; }; /** * The configuration schema for a on-call Action */ config: { targetIdentifier: string; targetDisplay?: string | null; targetType: 'specific'; }; status?: string; integrationId: string; } | { id?: string; type: 'pagerduty'; data: { /** * The priority of the pagerduty action */ priority?: 'default' | 'critical' | 'warning' | 'error' | 'info'; }; /** * The configuration schema for a on-call Action */ config: { targetIdentifier: string; targetDisplay?: string | null; targetType: 'specific'; }; status?: string; integrationId: string; } | { id?: string; type: 'seer_investigation'; data: unknown & { /** * Prompt the investigation runs */ prompt?: string; /** * Seer skill the investigation runs, instead of a prompt */ skill?: 'agentic_triage'; }; config: { [key: string]: never; }; status?: string; } | { id?: string; type: 'sentry_app'; /** * The data schema for a Sentry App Action */ data: { settings?: Array; }; /** * The configuration schema for a Sentry App Action */ config: { targetIdentifier: string; targetDisplay?: string | null; targetType: 'sentry_app'; }; status?: string; } | { id?: string; type: 'slack'; /** * Schema for Slack action data blob */ data: { /** * Tags to add to the message */ tags?: string; /** * Notes to add to the message */ notes?: string; }; /** * The configuration schema for a Messaging Action */ config: { targetIdentifier?: string; targetDisplay?: string; targetType: 'specific'; }; status?: string; integrationId: string; } | { id?: string; type: 'slack_staging'; /** * Schema for Slack action data blob */ data: { /** * Tags to add to the message */ tags?: string; /** * Notes to add to the message */ notes?: string; }; /** * The configuration schema for a Messaging Action */ config: { targetIdentifier?: string; targetDisplay?: string; targetType: 'specific'; }; status?: string; integrationId: string; } | { id?: string; type: 'vsts'; /** * Schema for ticket creation action data blob */ data: { /** * Dynamic form fields from customer configuration */ dynamicFormFields?: Array<{ [key: string]: unknown; }>; /** * Additional fields that aren't part of standard fields */ additionalFields?: { [key: string]: unknown; }; }; /** * The configuration schema for a Ticketing Action */ config: { targetIdentifier?: unknown; targetDisplay?: unknown; targetType?: 'specific'; }; status?: string; integrationId: string; } | { id?: string; type: 'webhook'; data: { [key: string]: unknown; }; /** * The configuration schema for Webhook Actions */ config: { targetIdentifier?: string; targetDisplay?: unknown; targetType?: null; }; status?: string; }>; }>; /** * * The ID user or team who owns the monitor or alert prefaced by the string 'user' or 'team'. * * **User** * ```json * "user:123456" * ``` * * **Team** * ```json * "team:456789" * ``` * */ owner?: string | null; }; path: { /** * The ID or slug of the organization the resource belongs to. */ organization_id_or_slug: string; }; query?: never; url: '/organizations/{organization_id_or_slug}/workflows/'; }; export type CreateOrganizationWorkflowErrors = { /** * Bad Request */ 400: unknown; /** * Unauthorized */ 401: unknown; /** * Forbidden */ 403: unknown; /** * Not Found */ 404: unknown; }; export type CreateOrganizationWorkflowResponses = { 201: { /** * Workflow ID */ id: string; /** * Workflow name */ name: string; /** * Type of the workflow, such as alert */ type: string; /** * ID of the organization the workflow belongs to */ organizationId: string; /** * ID of the user who created the workflow */ createdBy: string | null; /** * When the workflow was created (ISO 8601) */ dateCreated: string; /** * When the workflow was last updated (ISO 8601) */ dateUpdated: string; /** * Conditions on which the workflow triggers */ triggers: { /** * ID of the condition group */ id?: string; /** * ID of the organization */ organizationId?: string; /** * How the conditions in the group combine */ logicType?: 'any' | 'any-short' | 'all' | 'none'; /** * Conditions in the group */ conditions?: Array<{ /** * ID of the condition */ id: string; /** * Type of the condition, such as first_seen_event or level */ type: string; /** * Value the condition compares against, which depends on its type */ comparison: number | string | boolean | { /** * Whether the issue must be older or newer than the age */ comparisonType: 'older' | 'newer'; /** * Age of the issue, in units of time */ value: number; /** * Unit of the age */ time: 'minute' | 'hour' | 'day' | 'week'; } | { /** * How sensitive anomaly detection is */ sensitivity: 'low' | 'medium' | 'high'; /** * Seasonal pattern that anomaly detection accounts for */ seasonality: 'auto' | 'hourly' | 'daily' | 'weekly' | 'hourly_daily' | 'hourly_weekly' | 'hourly_daily_weekly' | 'daily_weekly'; /** * Anomalies to detect: 0 above, 1 below, 2 above or below the expected value */ thresholdType: 0 | 1 | 2; } | { /** * Who the issue must be assigned to */ targetType: 'Unassigned' | 'Team' | 'Member'; /** * ID of the team or member. Not set for Unassigned */ targetIdentifier?: number | string; } | { /** * Event attribute to match, such as message or user.email */ attribute?: 'message' | 'platform' | 'environment' | 'type' | 'error.handled' | 'error.unhandled' | 'error.main_thread' | 'exception.type' | 'exception.value' | 'user.id' | 'user.email' | 'user.username' | 'user.ip_address' | 'http.method' | 'http.url' | 'http.status_code' | 'sdk.name' | 'stacktrace.code' | 'stacktrace.module' | 'stacktrace.filename' | 'stacktrace.abs_path' | 'stacktrace.package' | 'unreal.crash_type' | 'app.in_foreground' | 'os.distribution_name' | 'os.distribution_version' | 'symbolicated_in_app' | 'ota_updates.channel' | 'ota_updates.runtime_version' | 'ota_updates.update_id'; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the attribute against. Not set for is and ns */ value?: string; } | number | { /** * Time window to count in, such as 1h */ interval: '1m' | '5m' | '15m' | '1h' | '1d' | '1w' | '30d'; /** * Number of events in the interval that meets the condition */ value: number; /** * Tag or attribute filters that events must match to count */ filters?: Array<{ /** * Tag key to match */ key?: string; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the tag or attribute against. Not set for is and ns */ value?: string; } | { /** * Event attribute to match, such as message or user.email */ attribute?: 'message' | 'platform' | 'environment' | 'type' | 'error.handled' | 'error.unhandled' | 'error.main_thread' | 'exception.type' | 'exception.value' | 'user.id' | 'user.email' | 'user.username' | 'user.ip_address' | 'http.method' | 'http.url' | 'http.status_code' | 'sdk.name' | 'stacktrace.code' | 'stacktrace.module' | 'stacktrace.filename' | 'stacktrace.abs_path' | 'stacktrace.package' | 'unreal.crash_type' | 'app.in_foreground' | 'os.distribution_name' | 'os.distribution_version' | 'symbolicated_in_app' | 'ota_updates.channel' | 'ota_updates.runtime_version' | 'ota_updates.update_id'; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the tag or attribute against. Not set for is and ns */ value?: string; }>; } | { /** * Time window to count in, such as 1h */ interval: '1m' | '5m' | '15m' | '1h' | '1d' | '1w' | '30d'; /** * Percent increase in events over the comparison interval that meets the condition */ value: number; /** * Earlier time window to compare the count against, such as 1w */ comparisonInterval: '5m' | '15m' | '1h' | '1d' | '1w' | '30d'; /** * Tag or attribute filters that events must match to count */ filters?: Array<{ /** * Tag key to match */ key?: string; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the tag or attribute against. Not set for is and ns */ value?: string; } | { /** * Event attribute to match, such as message or user.email */ attribute?: 'message' | 'platform' | 'environment' | 'type' | 'error.handled' | 'error.unhandled' | 'error.main_thread' | 'exception.type' | 'exception.value' | 'user.id' | 'user.email' | 'user.username' | 'user.ip_address' | 'http.method' | 'http.url' | 'http.status_code' | 'sdk.name' | 'stacktrace.code' | 'stacktrace.module' | 'stacktrace.filename' | 'stacktrace.abs_path' | 'stacktrace.package' | 'unreal.crash_type' | 'app.in_foreground' | 'os.distribution_name' | 'os.distribution_version' | 'symbolicated_in_app' | 'ota_updates.channel' | 'ota_updates.runtime_version' | 'ota_updates.update_id'; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the tag or attribute against. Not set for is and ns */ value?: string; }>; } | { /** * Time window to count in, such as 1h */ interval: '1m' | '5m' | '15m' | '1h' | '1d' | '1w' | '30d'; /** * Number of affected users in the interval that meets the condition */ value: number; /** * Tag or attribute filters that events must match to count */ filters?: Array<{ /** * Tag key to match */ key?: string; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the tag or attribute against. Not set for is and ns */ value?: string; } | { /** * Event attribute to match, such as message or user.email */ attribute?: 'message' | 'platform' | 'environment' | 'type' | 'error.handled' | 'error.unhandled' | 'error.main_thread' | 'exception.type' | 'exception.value' | 'user.id' | 'user.email' | 'user.username' | 'user.ip_address' | 'http.method' | 'http.url' | 'http.status_code' | 'sdk.name' | 'stacktrace.code' | 'stacktrace.module' | 'stacktrace.filename' | 'stacktrace.abs_path' | 'stacktrace.package' | 'unreal.crash_type' | 'app.in_foreground' | 'os.distribution_name' | 'os.distribution_version' | 'symbolicated_in_app' | 'ota_updates.channel' | 'ota_updates.runtime_version' | 'ota_updates.update_id'; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the tag or attribute against. Not set for is and ns */ value?: string; }>; } | { /** * Time window to count in, such as 1h */ interval: '1m' | '5m' | '15m' | '1h' | '1d' | '1w' | '30d'; /** * Percent increase in affected users over the comparison interval that meets the condition */ value: number; /** * Earlier time window to compare the count against, such as 1w */ comparisonInterval: '5m' | '15m' | '1h' | '1d' | '1w' | '30d'; /** * Tag or attribute filters that events must match to count */ filters?: Array<{ /** * Tag key to match */ key?: string; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the tag or attribute against. Not set for is and ns */ value?: string; } | { /** * Event attribute to match, such as message or user.email */ attribute?: 'message' | 'platform' | 'environment' | 'type' | 'error.handled' | 'error.unhandled' | 'error.main_thread' | 'exception.type' | 'exception.value' | 'user.id' | 'user.email' | 'user.username' | 'user.ip_address' | 'http.method' | 'http.url' | 'http.status_code' | 'sdk.name' | 'stacktrace.code' | 'stacktrace.module' | 'stacktrace.filename' | 'stacktrace.abs_path' | 'stacktrace.package' | 'unreal.crash_type' | 'app.in_foreground' | 'os.distribution_name' | 'os.distribution_version' | 'symbolicated_in_app' | 'ota_updates.channel' | 'ota_updates.runtime_version' | 'ota_updates.update_id'; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the tag or attribute against. Not set for is and ns */ value?: string; }>; } | { /** * ID of the issue category */ value: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 19; /** * Whether the issue must be in the category or not. Defaults to true */ include?: boolean; } | { /** * Number of times the issue must have occurred */ value: number; } | 25 | 50 | 75 | 1 | { /** * Slug of the issue type */ value: 'performance_slow_db_query' | 'performance_render_blocking_asset_span' | 'performance_n_plus_one_db_queries' | 'performance_n_plus_one_db_queries_experimental' | 'performance_consecutive_db_queries' | 'performance_file_io_main_thread' | 'performance_consecutive_http' | 'performance_n_plus_one_api_calls' | 'performance_n_plus_one_api_calls_experimental' | 'performance_m_n_plus_one_db_queries' | 'performance_m_n_plus_one_db_queries_experimental' | 'performance_uncompressed_assets' | 'performance_db_main_thread' | 'performance_large_http_payload' | 'performance_http_overhead' | 'performance_p95_endpoint_regression' | 'performance_streamed_spans_exp' | 'db_query_injection_vulnerability' | 'query_injection_vulnerability' | 'profile_file_io_main_thread' | 'profile_image_decode_main_thread' | 'profile_json_decode_main_thread' | 'profile_regex_main_thread' | 'profile_frame_drop' | 'profile_function_regression' | 'llm_detected_experimental' | 'llm_detected_experimental_v2' | 'ai_detected_http' | 'ai_detected_db' | 'ai_detected_runtime_performance' | 'ai_detected_security' | 'ai_detected_code_health' | 'ai_detected_general' | 'replay_click_rage' | 'replay_hydration_error' | 'feedback' | 'web_vitals' | 'issue_stream' | 'metric_issue' | 'error' | 'uptime_domain_failure' | 'send-test-notification' | 'monitor_check_in_failure' | 'sourcemap_configuration' | 'low_value_span_configuration' | 'preprod_size_analysis'; /** * Whether the issue must be of the type or not. Defaults to true */ include?: boolean; } | { /** * Whether to compare against the oldest or newest adopted release */ releaseAgeType: 'oldest' | 'newest'; /** * Whether the event's release must be older or newer than that release */ ageComparison: 'older' | 'newer'; /** * Environment the release was adopted in */ environment: string; } | { /** * Event level: 0 sample, 10 debug, 20 info, 30 warning, 40 error, 50 fatal */ level: 0 | 10 | 20 | 30 | 40 | 50; /** * How to compare the event's level: eq, gte or lte */ match: 'eq' | 'gte' | 'lte'; } | { /** * Time window to count in, such as 1h */ interval: '1m' | '5m' | '10m' | '30m' | '1h'; /** * Percent of sessions affected in the interval that meets the condition */ value: number; /** * Tag or attribute filters that events must match to count */ filters?: Array<{ /** * Tag key to match */ key?: string; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the tag or attribute against. Not set for is and ns */ value?: string; } | { /** * Event attribute to match, such as message or user.email */ attribute?: 'message' | 'platform' | 'environment' | 'type' | 'error.handled' | 'error.unhandled' | 'error.main_thread' | 'exception.type' | 'exception.value' | 'user.id' | 'user.email' | 'user.username' | 'user.ip_address' | 'http.method' | 'http.url' | 'http.status_code' | 'sdk.name' | 'stacktrace.code' | 'stacktrace.module' | 'stacktrace.filename' | 'stacktrace.abs_path' | 'stacktrace.package' | 'unreal.crash_type' | 'app.in_foreground' | 'os.distribution_name' | 'os.distribution_version' | 'symbolicated_in_app' | 'ota_updates.channel' | 'ota_updates.runtime_version' | 'ota_updates.update_id'; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the tag or attribute against. Not set for is and ns */ value?: string; }>; } | { /** * Time window to count in, such as 1h */ interval: '1m' | '5m' | '10m' | '30m' | '1h'; /** * Percent increase in affected sessions over the comparison interval that meets the condition */ value: number; /** * Earlier time window to compare the count against, such as 1w */ comparisonInterval: '5m' | '15m' | '1h' | '1d' | '1w' | '30d'; /** * Tag or attribute filters that events must match to count */ filters?: Array<{ /** * Tag key to match */ key?: string; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the tag or attribute against. Not set for is and ns */ value?: string; } | { /** * Event attribute to match, such as message or user.email */ attribute?: 'message' | 'platform' | 'environment' | 'type' | 'error.handled' | 'error.unhandled' | 'error.main_thread' | 'exception.type' | 'exception.value' | 'user.id' | 'user.email' | 'user.username' | 'user.ip_address' | 'http.method' | 'http.url' | 'http.status_code' | 'sdk.name' | 'stacktrace.code' | 'stacktrace.module' | 'stacktrace.filename' | 'stacktrace.abs_path' | 'stacktrace.package' | 'unreal.crash_type' | 'app.in_foreground' | 'os.distribution_name' | 'os.distribution_version' | 'symbolicated_in_app' | 'ota_updates.channel' | 'ota_updates.runtime_version' | 'ota_updates.update_id'; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the tag or attribute against. Not set for is and ns */ value?: string; }>; } | Array<'rca_completed' | 'solution_completed' | 'coding_completed' | 'pr_ready_for_review'> | { /** * Tag key to match */ key?: string; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the tag against. Not set for is and ns */ value?: string; }; /** * Result the condition produces when it matches: true for alert conditions, or the priority level for monitor conditions */ conditionResult: boolean | number | number | null; }>; /** * Actions to fire when the conditions pass */ actions?: Array<{ /** * ID of the action */ id?: string; /** * Type of the action */ type?: 'slack' | 'slack_staging' | 'msteams' | 'discord' | 'pagerduty' | 'opsgenie' | 'github' | 'github_enterprise' | 'jira' | 'jira_server' | 'vsts' | 'email' | 'sentry_app' | 'plugin' | 'webhook' | 'seer_investigation'; /** * ID of the integration the action uses. Null for actions without one */ integrationId?: string | null; /** * Extra data for the action, which depends on its type */ data?: { /** * Tags to add to the message */ tags?: string; } | { /** * The fallthrough type for issue owners email notifications */ fallthroughType?: 'AllMembers' | 'ActiveMembers' | 'NoOne'; } | { /** * Dynamic form fields from customer configuration */ dynamicFormFields?: Array<{ /** * Name of the field */ name?: string; /** * Label of the field */ label?: string; /** * Type of the field, such as select or text */ type?: string; }>; /** * Additional fields that aren't part of standard fields */ additionalFields: { /** * Repository to create the issue in, as owner/name */ repo: string; /** * Labels to add to the issue */ labels?: Array | null; /** * User to assign the issue to */ assignee?: string | null; [key: string]: unknown; }; } | { /** * Dynamic form fields from customer configuration */ dynamicFormFields?: Array<{ /** * Name of the field */ name?: string; /** * Label of the field */ label?: string; /** * Type of the field, such as select or text */ type?: string; }>; /** * Additional fields that aren't part of standard fields */ additionalFields?: { [key: string]: string | null | number | boolean | Array; }; } | { [key: string]: never; } | { /** * The priority of the opsgenie action */ priority?: 'P1' | 'P2' | 'P3' | 'P4' | 'P5'; } | { /** * The priority of the pagerduty action */ priority?: 'default' | 'critical' | 'warning' | 'error' | 'info'; } | { [key: string]: string; } | { /** * Prompt the investigation runs */ prompt?: string; /** * Seer skill the investigation runs, instead of a prompt */ skill?: 'agentic_triage'; } | { /** * Values of the Sentry App's alert rule settings form, each with a name and value */ settings?: Array; } | { /** * Tags to add to the message */ tags?: string; /** * Notes to add to the message */ notes?: string; }; /** * Configuration of the action, such as targetType and targetIdentifier */ config?: { /** * ID of the target, such as a channel, user or team ID */ targetIdentifier: string; /** * Display name of the target, such as a channel name */ targetDisplay?: string | null; /** * Kind of target the action notifies, such as specific, user or team */ targetType: 'specific'; } | { /** * ID of the target, such as a channel, user or team ID */ targetIdentifier?: string | null; /** * Display name of the target, such as a channel name */ targetDisplay?: null; /** * Kind of target the action notifies, such as specific, user or team */ targetType: 'user' | 'team' | 'issue_owners'; } | { /** * ID of the target, such as a channel, user or team ID */ targetIdentifier?: null; /** * Display name of the target, such as a channel name */ targetDisplay?: null; /** * Kind of target the action notifies, such as specific, user or team */ targetType?: 'specific'; } | { /** * ID of the target, such as a channel, user or team ID */ targetIdentifier?: string; /** * Display name of the target, such as a channel name */ targetDisplay: string; /** * Kind of target the action notifies, such as specific, user or team */ targetType: 'specific'; } | { /** * ID of the target, such as a channel, user or team ID */ targetIdentifier: string; /** * Display name of the target, such as a channel name */ targetDisplay?: string | null; /** * Kind of target the action notifies, such as specific, user or team */ targetType: 'specific'; } | { /** * ID of the target, such as a channel, user or team ID */ targetIdentifier?: string | null; /** * Display name of the target, such as a channel name */ targetDisplay?: string | null; /** * Kind of target the action notifies, such as specific, user or team */ targetType?: null; } | { [key: string]: never; } | { /** * ID of the target, such as a channel, user or team ID */ targetIdentifier: string; /** * Display name of the target, such as a channel name */ targetDisplay?: string | null; /** * Kind of target the action notifies, such as specific, user or team */ targetType: 'sentry_app'; } | { /** * ID of the target, such as a channel, user or team ID */ targetIdentifier?: string; /** * Display name of the target, such as a channel name */ targetDisplay?: string; /** * Kind of target the action notifies, such as specific, user or team */ targetType: 'specific'; } | { /** * ID of the target, such as a channel, user or team ID */ targetIdentifier?: string; /** * Display name of the target, such as a channel name */ targetDisplay?: null; /** * Kind of target the action notifies, such as specific, user or team */ targetType?: null; }; /** * Status of the action */ status?: 'active' | 'disabled' | 'pending_deletion' | 'deletion_in_progress'; }>; } | null; /** * Filters to run before actions fire, each with the actions to fire */ actionFilters: Array<{ /** * ID of the condition group */ id?: string; /** * ID of the organization */ organizationId?: string; /** * How the conditions in the group combine */ logicType?: 'any' | 'any-short' | 'all' | 'none'; /** * Conditions in the group */ conditions?: Array<{ /** * ID of the condition */ id: string; /** * Type of the condition, such as first_seen_event or level */ type: string; /** * Value the condition compares against, which depends on its type */ comparison: number | string | boolean | { /** * Whether the issue must be older or newer than the age */ comparisonType: 'older' | 'newer'; /** * Age of the issue, in units of time */ value: number; /** * Unit of the age */ time: 'minute' | 'hour' | 'day' | 'week'; } | { /** * How sensitive anomaly detection is */ sensitivity: 'low' | 'medium' | 'high'; /** * Seasonal pattern that anomaly detection accounts for */ seasonality: 'auto' | 'hourly' | 'daily' | 'weekly' | 'hourly_daily' | 'hourly_weekly' | 'hourly_daily_weekly' | 'daily_weekly'; /** * Anomalies to detect: 0 above, 1 below, 2 above or below the expected value */ thresholdType: 0 | 1 | 2; } | { /** * Who the issue must be assigned to */ targetType: 'Unassigned' | 'Team' | 'Member'; /** * ID of the team or member. Not set for Unassigned */ targetIdentifier?: number | string; } | { /** * Event attribute to match, such as message or user.email */ attribute?: 'message' | 'platform' | 'environment' | 'type' | 'error.handled' | 'error.unhandled' | 'error.main_thread' | 'exception.type' | 'exception.value' | 'user.id' | 'user.email' | 'user.username' | 'user.ip_address' | 'http.method' | 'http.url' | 'http.status_code' | 'sdk.name' | 'stacktrace.code' | 'stacktrace.module' | 'stacktrace.filename' | 'stacktrace.abs_path' | 'stacktrace.package' | 'unreal.crash_type' | 'app.in_foreground' | 'os.distribution_name' | 'os.distribution_version' | 'symbolicated_in_app' | 'ota_updates.channel' | 'ota_updates.runtime_version' | 'ota_updates.update_id'; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the attribute against. Not set for is and ns */ value?: string; } | number | { /** * Time window to count in, such as 1h */ interval: '1m' | '5m' | '15m' | '1h' | '1d' | '1w' | '30d'; /** * Number of events in the interval that meets the condition */ value: number; /** * Tag or attribute filters that events must match to count */ filters?: Array<{ /** * Tag key to match */ key?: string; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the tag or attribute against. Not set for is and ns */ value?: string; } | { /** * Event attribute to match, such as message or user.email */ attribute?: 'message' | 'platform' | 'environment' | 'type' | 'error.handled' | 'error.unhandled' | 'error.main_thread' | 'exception.type' | 'exception.value' | 'user.id' | 'user.email' | 'user.username' | 'user.ip_address' | 'http.method' | 'http.url' | 'http.status_code' | 'sdk.name' | 'stacktrace.code' | 'stacktrace.module' | 'stacktrace.filename' | 'stacktrace.abs_path' | 'stacktrace.package' | 'unreal.crash_type' | 'app.in_foreground' | 'os.distribution_name' | 'os.distribution_version' | 'symbolicated_in_app' | 'ota_updates.channel' | 'ota_updates.runtime_version' | 'ota_updates.update_id'; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the tag or attribute against. Not set for is and ns */ value?: string; }>; } | { /** * Time window to count in, such as 1h */ interval: '1m' | '5m' | '15m' | '1h' | '1d' | '1w' | '30d'; /** * Percent increase in events over the comparison interval that meets the condition */ value: number; /** * Earlier time window to compare the count against, such as 1w */ comparisonInterval: '5m' | '15m' | '1h' | '1d' | '1w' | '30d'; /** * Tag or attribute filters that events must match to count */ filters?: Array<{ /** * Tag key to match */ key?: string; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the tag or attribute against. Not set for is and ns */ value?: string; } | { /** * Event attribute to match, such as message or user.email */ attribute?: 'message' | 'platform' | 'environment' | 'type' | 'error.handled' | 'error.unhandled' | 'error.main_thread' | 'exception.type' | 'exception.value' | 'user.id' | 'user.email' | 'user.username' | 'user.ip_address' | 'http.method' | 'http.url' | 'http.status_code' | 'sdk.name' | 'stacktrace.code' | 'stacktrace.module' | 'stacktrace.filename' | 'stacktrace.abs_path' | 'stacktrace.package' | 'unreal.crash_type' | 'app.in_foreground' | 'os.distribution_name' | 'os.distribution_version' | 'symbolicated_in_app' | 'ota_updates.channel' | 'ota_updates.runtime_version' | 'ota_updates.update_id'; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the tag or attribute against. Not set for is and ns */ value?: string; }>; } | { /** * Time window to count in, such as 1h */ interval: '1m' | '5m' | '15m' | '1h' | '1d' | '1w' | '30d'; /** * Number of affected users in the interval that meets the condition */ value: number; /** * Tag or attribute filters that events must match to count */ filters?: Array<{ /** * Tag key to match */ key?: string; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the tag or attribute against. Not set for is and ns */ value?: string; } | { /** * Event attribute to match, such as message or user.email */ attribute?: 'message' | 'platform' | 'environment' | 'type' | 'error.handled' | 'error.unhandled' | 'error.main_thread' | 'exception.type' | 'exception.value' | 'user.id' | 'user.email' | 'user.username' | 'user.ip_address' | 'http.method' | 'http.url' | 'http.status_code' | 'sdk.name' | 'stacktrace.code' | 'stacktrace.module' | 'stacktrace.filename' | 'stacktrace.abs_path' | 'stacktrace.package' | 'unreal.crash_type' | 'app.in_foreground' | 'os.distribution_name' | 'os.distribution_version' | 'symbolicated_in_app' | 'ota_updates.channel' | 'ota_updates.runtime_version' | 'ota_updates.update_id'; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the tag or attribute against. Not set for is and ns */ value?: string; }>; } | { /** * Time window to count in, such as 1h */ interval: '1m' | '5m' | '15m' | '1h' | '1d' | '1w' | '30d'; /** * Percent increase in affected users over the comparison interval that meets the condition */ value: number; /** * Earlier time window to compare the count against, such as 1w */ comparisonInterval: '5m' | '15m' | '1h' | '1d' | '1w' | '30d'; /** * Tag or attribute filters that events must match to count */ filters?: Array<{ /** * Tag key to match */ key?: string; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the tag or attribute against. Not set for is and ns */ value?: string; } | { /** * Event attribute to match, such as message or user.email */ attribute?: 'message' | 'platform' | 'environment' | 'type' | 'error.handled' | 'error.unhandled' | 'error.main_thread' | 'exception.type' | 'exception.value' | 'user.id' | 'user.email' | 'user.username' | 'user.ip_address' | 'http.method' | 'http.url' | 'http.status_code' | 'sdk.name' | 'stacktrace.code' | 'stacktrace.module' | 'stacktrace.filename' | 'stacktrace.abs_path' | 'stacktrace.package' | 'unreal.crash_type' | 'app.in_foreground' | 'os.distribution_name' | 'os.distribution_version' | 'symbolicated_in_app' | 'ota_updates.channel' | 'ota_updates.runtime_version' | 'ota_updates.update_id'; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the tag or attribute against. Not set for is and ns */ value?: string; }>; } | { /** * ID of the issue category */ value: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 19; /** * Whether the issue must be in the category or not. Defaults to true */ include?: boolean; } | { /** * Number of times the issue must have occurred */ value: number; } | 25 | 50 | 75 | 1 | { /** * Slug of the issue type */ value: 'performance_slow_db_query' | 'performance_render_blocking_asset_span' | 'performance_n_plus_one_db_queries' | 'performance_n_plus_one_db_queries_experimental' | 'performance_consecutive_db_queries' | 'performance_file_io_main_thread' | 'performance_consecutive_http' | 'performance_n_plus_one_api_calls' | 'performance_n_plus_one_api_calls_experimental' | 'performance_m_n_plus_one_db_queries' | 'performance_m_n_plus_one_db_queries_experimental' | 'performance_uncompressed_assets' | 'performance_db_main_thread' | 'performance_large_http_payload' | 'performance_http_overhead' | 'performance_p95_endpoint_regression' | 'performance_streamed_spans_exp' | 'db_query_injection_vulnerability' | 'query_injection_vulnerability' | 'profile_file_io_main_thread' | 'profile_image_decode_main_thread' | 'profile_json_decode_main_thread' | 'profile_regex_main_thread' | 'profile_frame_drop' | 'profile_function_regression' | 'llm_detected_experimental' | 'llm_detected_experimental_v2' | 'ai_detected_http' | 'ai_detected_db' | 'ai_detected_runtime_performance' | 'ai_detected_security' | 'ai_detected_code_health' | 'ai_detected_general' | 'replay_click_rage' | 'replay_hydration_error' | 'feedback' | 'web_vitals' | 'issue_stream' | 'metric_issue' | 'error' | 'uptime_domain_failure' | 'send-test-notification' | 'monitor_check_in_failure' | 'sourcemap_configuration' | 'low_value_span_configuration' | 'preprod_size_analysis'; /** * Whether the issue must be of the type or not. Defaults to true */ include?: boolean; } | { /** * Whether to compare against the oldest or newest adopted release */ releaseAgeType: 'oldest' | 'newest'; /** * Whether the event's release must be older or newer than that release */ ageComparison: 'older' | 'newer'; /** * Environment the release was adopted in */ environment: string; } | { /** * Event level: 0 sample, 10 debug, 20 info, 30 warning, 40 error, 50 fatal */ level: 0 | 10 | 20 | 30 | 40 | 50; /** * How to compare the event's level: eq, gte or lte */ match: 'eq' | 'gte' | 'lte'; } | { /** * Time window to count in, such as 1h */ interval: '1m' | '5m' | '10m' | '30m' | '1h'; /** * Percent of sessions affected in the interval that meets the condition */ value: number; /** * Tag or attribute filters that events must match to count */ filters?: Array<{ /** * Tag key to match */ key?: string; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the tag or attribute against. Not set for is and ns */ value?: string; } | { /** * Event attribute to match, such as message or user.email */ attribute?: 'message' | 'platform' | 'environment' | 'type' | 'error.handled' | 'error.unhandled' | 'error.main_thread' | 'exception.type' | 'exception.value' | 'user.id' | 'user.email' | 'user.username' | 'user.ip_address' | 'http.method' | 'http.url' | 'http.status_code' | 'sdk.name' | 'stacktrace.code' | 'stacktrace.module' | 'stacktrace.filename' | 'stacktrace.abs_path' | 'stacktrace.package' | 'unreal.crash_type' | 'app.in_foreground' | 'os.distribution_name' | 'os.distribution_version' | 'symbolicated_in_app' | 'ota_updates.channel' | 'ota_updates.runtime_version' | 'ota_updates.update_id'; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the tag or attribute against. Not set for is and ns */ value?: string; }>; } | { /** * Time window to count in, such as 1h */ interval: '1m' | '5m' | '10m' | '30m' | '1h'; /** * Percent increase in affected sessions over the comparison interval that meets the condition */ value: number; /** * Earlier time window to compare the count against, such as 1w */ comparisonInterval: '5m' | '15m' | '1h' | '1d' | '1w' | '30d'; /** * Tag or attribute filters that events must match to count */ filters?: Array<{ /** * Tag key to match */ key?: string; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the tag or attribute against. Not set for is and ns */ value?: string; } | { /** * Event attribute to match, such as message or user.email */ attribute?: 'message' | 'platform' | 'environment' | 'type' | 'error.handled' | 'error.unhandled' | 'error.main_thread' | 'exception.type' | 'exception.value' | 'user.id' | 'user.email' | 'user.username' | 'user.ip_address' | 'http.method' | 'http.url' | 'http.status_code' | 'sdk.name' | 'stacktrace.code' | 'stacktrace.module' | 'stacktrace.filename' | 'stacktrace.abs_path' | 'stacktrace.package' | 'unreal.crash_type' | 'app.in_foreground' | 'os.distribution_name' | 'os.distribution_version' | 'symbolicated_in_app' | 'ota_updates.channel' | 'ota_updates.runtime_version' | 'ota_updates.update_id'; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the tag or attribute against. Not set for is and ns */ value?: string; }>; } | Array<'rca_completed' | 'solution_completed' | 'coding_completed' | 'pr_ready_for_review'> | { /** * Tag key to match */ key?: string; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the tag against. Not set for is and ns */ value?: string; }; /** * Result the condition produces when it matches: true for alert conditions, or the priority level for monitor conditions */ conditionResult: boolean | number | number | null; }>; /** * Actions to fire when the conditions pass */ actions?: Array<{ /** * ID of the action */ id?: string; /** * Type of the action */ type?: 'slack' | 'slack_staging' | 'msteams' | 'discord' | 'pagerduty' | 'opsgenie' | 'github' | 'github_enterprise' | 'jira' | 'jira_server' | 'vsts' | 'email' | 'sentry_app' | 'plugin' | 'webhook' | 'seer_investigation'; /** * ID of the integration the action uses. Null for actions without one */ integrationId?: string | null; /** * Extra data for the action, which depends on its type */ data?: { /** * Tags to add to the message */ tags?: string; } | { /** * The fallthrough type for issue owners email notifications */ fallthroughType?: 'AllMembers' | 'ActiveMembers' | 'NoOne'; } | { /** * Dynamic form fields from customer configuration */ dynamicFormFields?: Array<{ /** * Name of the field */ name?: string; /** * Label of the field */ label?: string; /** * Type of the field, such as select or text */ type?: string; }>; /** * Additional fields that aren't part of standard fields */ additionalFields: { /** * Repository to create the issue in, as owner/name */ repo: string; /** * Labels to add to the issue */ labels?: Array | null; /** * User to assign the issue to */ assignee?: string | null; [key: string]: unknown; }; } | { /** * Dynamic form fields from customer configuration */ dynamicFormFields?: Array<{ /** * Name of the field */ name?: string; /** * Label of the field */ label?: string; /** * Type of the field, such as select or text */ type?: string; }>; /** * Additional fields that aren't part of standard fields */ additionalFields?: { [key: string]: string | null | number | boolean | Array; }; } | { [key: string]: never; } | { /** * The priority of the opsgenie action */ priority?: 'P1' | 'P2' | 'P3' | 'P4' | 'P5'; } | { /** * The priority of the pagerduty action */ priority?: 'default' | 'critical' | 'warning' | 'error' | 'info'; } | { [key: string]: string; } | { /** * Prompt the investigation runs */ prompt?: string; /** * Seer skill the investigation runs, instead of a prompt */ skill?: 'agentic_triage'; } | { /** * Values of the Sentry App's alert rule settings form, each with a name and value */ settings?: Array; } | { /** * Tags to add to the message */ tags?: string; /** * Notes to add to the message */ notes?: string; }; /** * Configuration of the action, such as targetType and targetIdentifier */ config?: { /** * ID of the target, such as a channel, user or team ID */ targetIdentifier: string; /** * Display name of the target, such as a channel name */ targetDisplay?: string | null; /** * Kind of target the action notifies, such as specific, user or team */ targetType: 'specific'; } | { /** * ID of the target, such as a channel, user or team ID */ targetIdentifier?: string | null; /** * Display name of the target, such as a channel name */ targetDisplay?: null; /** * Kind of target the action notifies, such as specific, user or team */ targetType: 'user' | 'team' | 'issue_owners'; } | { /** * ID of the target, such as a channel, user or team ID */ targetIdentifier?: null; /** * Display name of the target, such as a channel name */ targetDisplay?: null; /** * Kind of target the action notifies, such as specific, user or team */ targetType?: 'specific'; } | { /** * ID of the target, such as a channel, user or team ID */ targetIdentifier?: string; /** * Display name of the target, such as a channel name */ targetDisplay: string; /** * Kind of target the action notifies, such as specific, user or team */ targetType: 'specific'; } | { /** * ID of the target, such as a channel, user or team ID */ targetIdentifier: string; /** * Display name of the target, such as a channel name */ targetDisplay?: string | null; /** * Kind of target the action notifies, such as specific, user or team */ targetType: 'specific'; } | { /** * ID of the target, such as a channel, user or team ID */ targetIdentifier?: string | null; /** * Display name of the target, such as a channel name */ targetDisplay?: string | null; /** * Kind of target the action notifies, such as specific, user or team */ targetType?: null; } | { [key: string]: never; } | { /** * ID of the target, such as a channel, user or team ID */ targetIdentifier: string; /** * Display name of the target, such as a channel name */ targetDisplay?: string | null; /** * Kind of target the action notifies, such as specific, user or team */ targetType: 'sentry_app'; } | { /** * ID of the target, such as a channel, user or team ID */ targetIdentifier?: string; /** * Display name of the target, such as a channel name */ targetDisplay?: string; /** * Kind of target the action notifies, such as specific, user or team */ targetType: 'specific'; } | { /** * ID of the target, such as a channel, user or team ID */ targetIdentifier?: string; /** * Display name of the target, such as a channel name */ targetDisplay?: null; /** * Kind of target the action notifies, such as specific, user or team */ targetType?: null; }; /** * Status of the action */ status?: 'active' | 'disabled' | 'pending_deletion' | 'deletion_in_progress'; }>; }> | null; /** * Name of the environment the workflow is limited to. Null for all environments */ environment: string | null; /** * Configuration of the workflow, such as frequency in minutes */ config: { /** * How often the workflow should fire for a Group (minutes) */ frequency?: number; }; /** * IDs of the monitors connected to the workflow */ detectorIds: Array | null; /** * Whether the workflow is enabled */ enabled: boolean; /** * When the workflow last fired (ISO 8601) */ lastTriggered: string | null; /** * Team or user that owns the workflow, such as user:123 or team:456 */ owner: string | null; }; }; export type CreateOrganizationWorkflowResponse = CreateOrganizationWorkflowResponses[keyof CreateOrganizationWorkflowResponses]; export type UpdateOrganizationWorkflowsData = { body: { /** * Whether to enable or disable the alerts */ enabled: boolean; }; path: { /** * The ID or slug of the organization the resource belongs to. */ organization_id_or_slug: string; }; query?: { /** * An optional search query for filtering alerts. */ query?: string; /** * The ID of the alert you'd like to query. */ id?: Array; /** * The IDs or slugs of projects to filter by. Project slugs are unique within each organization. Omit this parameter to include all accessible projects. `-1` is also accepted to include all accessible projects. * For example, the following are valid parameters: * - `/?project=1234&project=56789` * - `/?project=android&project=javascript-react` * - `/?project=-1` * */ project?: Array; }; url: '/organizations/{organization_id_or_slug}/workflows/'; }; export type UpdateOrganizationWorkflowsErrors = { /** * Bad Request */ 400: unknown; /** * Unauthorized */ 401: unknown; /** * Forbidden */ 403: unknown; /** * Not Found */ 404: unknown; }; export type UpdateOrganizationWorkflowsResponses = { 200: Array<{ /** * Workflow ID */ id: string; /** * Workflow name */ name: string; /** * Type of the workflow, such as alert */ type: string; /** * ID of the organization the workflow belongs to */ organizationId: string; /** * ID of the user who created the workflow */ createdBy: string | null; /** * When the workflow was created (ISO 8601) */ dateCreated: string; /** * When the workflow was last updated (ISO 8601) */ dateUpdated: string; /** * Conditions on which the workflow triggers */ triggers: { /** * ID of the condition group */ id?: string; /** * ID of the organization */ organizationId?: string; /** * How the conditions in the group combine */ logicType?: 'any' | 'any-short' | 'all' | 'none'; /** * Conditions in the group */ conditions?: Array<{ /** * ID of the condition */ id: string; /** * Type of the condition, such as first_seen_event or level */ type: string; /** * Value the condition compares against, which depends on its type */ comparison: number | string | boolean | { /** * Whether the issue must be older or newer than the age */ comparisonType: 'older' | 'newer'; /** * Age of the issue, in units of time */ value: number; /** * Unit of the age */ time: 'minute' | 'hour' | 'day' | 'week'; } | { /** * How sensitive anomaly detection is */ sensitivity: 'low' | 'medium' | 'high'; /** * Seasonal pattern that anomaly detection accounts for */ seasonality: 'auto' | 'hourly' | 'daily' | 'weekly' | 'hourly_daily' | 'hourly_weekly' | 'hourly_daily_weekly' | 'daily_weekly'; /** * Anomalies to detect: 0 above, 1 below, 2 above or below the expected value */ thresholdType: 0 | 1 | 2; } | { /** * Who the issue must be assigned to */ targetType: 'Unassigned' | 'Team' | 'Member'; /** * ID of the team or member. Not set for Unassigned */ targetIdentifier?: number | string; } | { /** * Event attribute to match, such as message or user.email */ attribute?: 'message' | 'platform' | 'environment' | 'type' | 'error.handled' | 'error.unhandled' | 'error.main_thread' | 'exception.type' | 'exception.value' | 'user.id' | 'user.email' | 'user.username' | 'user.ip_address' | 'http.method' | 'http.url' | 'http.status_code' | 'sdk.name' | 'stacktrace.code' | 'stacktrace.module' | 'stacktrace.filename' | 'stacktrace.abs_path' | 'stacktrace.package' | 'unreal.crash_type' | 'app.in_foreground' | 'os.distribution_name' | 'os.distribution_version' | 'symbolicated_in_app' | 'ota_updates.channel' | 'ota_updates.runtime_version' | 'ota_updates.update_id'; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the attribute against. Not set for is and ns */ value?: string; } | number | { /** * Time window to count in, such as 1h */ interval: '1m' | '5m' | '15m' | '1h' | '1d' | '1w' | '30d'; /** * Number of events in the interval that meets the condition */ value: number; /** * Tag or attribute filters that events must match to count */ filters?: Array<{ /** * Tag key to match */ key?: string; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the tag or attribute against. Not set for is and ns */ value?: string; } | { /** * Event attribute to match, such as message or user.email */ attribute?: 'message' | 'platform' | 'environment' | 'type' | 'error.handled' | 'error.unhandled' | 'error.main_thread' | 'exception.type' | 'exception.value' | 'user.id' | 'user.email' | 'user.username' | 'user.ip_address' | 'http.method' | 'http.url' | 'http.status_code' | 'sdk.name' | 'stacktrace.code' | 'stacktrace.module' | 'stacktrace.filename' | 'stacktrace.abs_path' | 'stacktrace.package' | 'unreal.crash_type' | 'app.in_foreground' | 'os.distribution_name' | 'os.distribution_version' | 'symbolicated_in_app' | 'ota_updates.channel' | 'ota_updates.runtime_version' | 'ota_updates.update_id'; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the tag or attribute against. Not set for is and ns */ value?: string; }>; } | { /** * Time window to count in, such as 1h */ interval: '1m' | '5m' | '15m' | '1h' | '1d' | '1w' | '30d'; /** * Percent increase in events over the comparison interval that meets the condition */ value: number; /** * Earlier time window to compare the count against, such as 1w */ comparisonInterval: '5m' | '15m' | '1h' | '1d' | '1w' | '30d'; /** * Tag or attribute filters that events must match to count */ filters?: Array<{ /** * Tag key to match */ key?: string; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the tag or attribute against. Not set for is and ns */ value?: string; } | { /** * Event attribute to match, such as message or user.email */ attribute?: 'message' | 'platform' | 'environment' | 'type' | 'error.handled' | 'error.unhandled' | 'error.main_thread' | 'exception.type' | 'exception.value' | 'user.id' | 'user.email' | 'user.username' | 'user.ip_address' | 'http.method' | 'http.url' | 'http.status_code' | 'sdk.name' | 'stacktrace.code' | 'stacktrace.module' | 'stacktrace.filename' | 'stacktrace.abs_path' | 'stacktrace.package' | 'unreal.crash_type' | 'app.in_foreground' | 'os.distribution_name' | 'os.distribution_version' | 'symbolicated_in_app' | 'ota_updates.channel' | 'ota_updates.runtime_version' | 'ota_updates.update_id'; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the tag or attribute against. Not set for is and ns */ value?: string; }>; } | { /** * Time window to count in, such as 1h */ interval: '1m' | '5m' | '15m' | '1h' | '1d' | '1w' | '30d'; /** * Number of affected users in the interval that meets the condition */ value: number; /** * Tag or attribute filters that events must match to count */ filters?: Array<{ /** * Tag key to match */ key?: string; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the tag or attribute against. Not set for is and ns */ value?: string; } | { /** * Event attribute to match, such as message or user.email */ attribute?: 'message' | 'platform' | 'environment' | 'type' | 'error.handled' | 'error.unhandled' | 'error.main_thread' | 'exception.type' | 'exception.value' | 'user.id' | 'user.email' | 'user.username' | 'user.ip_address' | 'http.method' | 'http.url' | 'http.status_code' | 'sdk.name' | 'stacktrace.code' | 'stacktrace.module' | 'stacktrace.filename' | 'stacktrace.abs_path' | 'stacktrace.package' | 'unreal.crash_type' | 'app.in_foreground' | 'os.distribution_name' | 'os.distribution_version' | 'symbolicated_in_app' | 'ota_updates.channel' | 'ota_updates.runtime_version' | 'ota_updates.update_id'; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the tag or attribute against. Not set for is and ns */ value?: string; }>; } | { /** * Time window to count in, such as 1h */ interval: '1m' | '5m' | '15m' | '1h' | '1d' | '1w' | '30d'; /** * Percent increase in affected users over the comparison interval that meets the condition */ value: number; /** * Earlier time window to compare the count against, such as 1w */ comparisonInterval: '5m' | '15m' | '1h' | '1d' | '1w' | '30d'; /** * Tag or attribute filters that events must match to count */ filters?: Array<{ /** * Tag key to match */ key?: string; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the tag or attribute against. Not set for is and ns */ value?: string; } | { /** * Event attribute to match, such as message or user.email */ attribute?: 'message' | 'platform' | 'environment' | 'type' | 'error.handled' | 'error.unhandled' | 'error.main_thread' | 'exception.type' | 'exception.value' | 'user.id' | 'user.email' | 'user.username' | 'user.ip_address' | 'http.method' | 'http.url' | 'http.status_code' | 'sdk.name' | 'stacktrace.code' | 'stacktrace.module' | 'stacktrace.filename' | 'stacktrace.abs_path' | 'stacktrace.package' | 'unreal.crash_type' | 'app.in_foreground' | 'os.distribution_name' | 'os.distribution_version' | 'symbolicated_in_app' | 'ota_updates.channel' | 'ota_updates.runtime_version' | 'ota_updates.update_id'; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the tag or attribute against. Not set for is and ns */ value?: string; }>; } | { /** * ID of the issue category */ value: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 19; /** * Whether the issue must be in the category or not. Defaults to true */ include?: boolean; } | { /** * Number of times the issue must have occurred */ value: number; } | 25 | 50 | 75 | 1 | { /** * Slug of the issue type */ value: 'performance_slow_db_query' | 'performance_render_blocking_asset_span' | 'performance_n_plus_one_db_queries' | 'performance_n_plus_one_db_queries_experimental' | 'performance_consecutive_db_queries' | 'performance_file_io_main_thread' | 'performance_consecutive_http' | 'performance_n_plus_one_api_calls' | 'performance_n_plus_one_api_calls_experimental' | 'performance_m_n_plus_one_db_queries' | 'performance_m_n_plus_one_db_queries_experimental' | 'performance_uncompressed_assets' | 'performance_db_main_thread' | 'performance_large_http_payload' | 'performance_http_overhead' | 'performance_p95_endpoint_regression' | 'performance_streamed_spans_exp' | 'db_query_injection_vulnerability' | 'query_injection_vulnerability' | 'profile_file_io_main_thread' | 'profile_image_decode_main_thread' | 'profile_json_decode_main_thread' | 'profile_regex_main_thread' | 'profile_frame_drop' | 'profile_function_regression' | 'llm_detected_experimental' | 'llm_detected_experimental_v2' | 'ai_detected_http' | 'ai_detected_db' | 'ai_detected_runtime_performance' | 'ai_detected_security' | 'ai_detected_code_health' | 'ai_detected_general' | 'replay_click_rage' | 'replay_hydration_error' | 'feedback' | 'web_vitals' | 'issue_stream' | 'metric_issue' | 'error' | 'uptime_domain_failure' | 'send-test-notification' | 'monitor_check_in_failure' | 'sourcemap_configuration' | 'low_value_span_configuration' | 'preprod_size_analysis'; /** * Whether the issue must be of the type or not. Defaults to true */ include?: boolean; } | { /** * Whether to compare against the oldest or newest adopted release */ releaseAgeType: 'oldest' | 'newest'; /** * Whether the event's release must be older or newer than that release */ ageComparison: 'older' | 'newer'; /** * Environment the release was adopted in */ environment: string; } | { /** * Event level: 0 sample, 10 debug, 20 info, 30 warning, 40 error, 50 fatal */ level: 0 | 10 | 20 | 30 | 40 | 50; /** * How to compare the event's level: eq, gte or lte */ match: 'eq' | 'gte' | 'lte'; } | { /** * Time window to count in, such as 1h */ interval: '1m' | '5m' | '10m' | '30m' | '1h'; /** * Percent of sessions affected in the interval that meets the condition */ value: number; /** * Tag or attribute filters that events must match to count */ filters?: Array<{ /** * Tag key to match */ key?: string; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the tag or attribute against. Not set for is and ns */ value?: string; } | { /** * Event attribute to match, such as message or user.email */ attribute?: 'message' | 'platform' | 'environment' | 'type' | 'error.handled' | 'error.unhandled' | 'error.main_thread' | 'exception.type' | 'exception.value' | 'user.id' | 'user.email' | 'user.username' | 'user.ip_address' | 'http.method' | 'http.url' | 'http.status_code' | 'sdk.name' | 'stacktrace.code' | 'stacktrace.module' | 'stacktrace.filename' | 'stacktrace.abs_path' | 'stacktrace.package' | 'unreal.crash_type' | 'app.in_foreground' | 'os.distribution_name' | 'os.distribution_version' | 'symbolicated_in_app' | 'ota_updates.channel' | 'ota_updates.runtime_version' | 'ota_updates.update_id'; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the tag or attribute against. Not set for is and ns */ value?: string; }>; } | { /** * Time window to count in, such as 1h */ interval: '1m' | '5m' | '10m' | '30m' | '1h'; /** * Percent increase in affected sessions over the comparison interval that meets the condition */ value: number; /** * Earlier time window to compare the count against, such as 1w */ comparisonInterval: '5m' | '15m' | '1h' | '1d' | '1w' | '30d'; /** * Tag or attribute filters that events must match to count */ filters?: Array<{ /** * Tag key to match */ key?: string; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the tag or attribute against. Not set for is and ns */ value?: string; } | { /** * Event attribute to match, such as message or user.email */ attribute?: 'message' | 'platform' | 'environment' | 'type' | 'error.handled' | 'error.unhandled' | 'error.main_thread' | 'exception.type' | 'exception.value' | 'user.id' | 'user.email' | 'user.username' | 'user.ip_address' | 'http.method' | 'http.url' | 'http.status_code' | 'sdk.name' | 'stacktrace.code' | 'stacktrace.module' | 'stacktrace.filename' | 'stacktrace.abs_path' | 'stacktrace.package' | 'unreal.crash_type' | 'app.in_foreground' | 'os.distribution_name' | 'os.distribution_version' | 'symbolicated_in_app' | 'ota_updates.channel' | 'ota_updates.runtime_version' | 'ota_updates.update_id'; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the tag or attribute against. Not set for is and ns */ value?: string; }>; } | Array<'rca_completed' | 'solution_completed' | 'coding_completed' | 'pr_ready_for_review'> | { /** * Tag key to match */ key?: string; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the tag against. Not set for is and ns */ value?: string; }; /** * Result the condition produces when it matches: true for alert conditions, or the priority level for monitor conditions */ conditionResult: boolean | number | number | null; }>; /** * Actions to fire when the conditions pass */ actions?: Array<{ /** * ID of the action */ id?: string; /** * Type of the action */ type?: 'slack' | 'slack_staging' | 'msteams' | 'discord' | 'pagerduty' | 'opsgenie' | 'github' | 'github_enterprise' | 'jira' | 'jira_server' | 'vsts' | 'email' | 'sentry_app' | 'plugin' | 'webhook' | 'seer_investigation'; /** * ID of the integration the action uses. Null for actions without one */ integrationId?: string | null; /** * Extra data for the action, which depends on its type */ data?: { /** * Tags to add to the message */ tags?: string; } | { /** * The fallthrough type for issue owners email notifications */ fallthroughType?: 'AllMembers' | 'ActiveMembers' | 'NoOne'; } | { /** * Dynamic form fields from customer configuration */ dynamicFormFields?: Array<{ /** * Name of the field */ name?: string; /** * Label of the field */ label?: string; /** * Type of the field, such as select or text */ type?: string; }>; /** * Additional fields that aren't part of standard fields */ additionalFields: { /** * Repository to create the issue in, as owner/name */ repo: string; /** * Labels to add to the issue */ labels?: Array | null; /** * User to assign the issue to */ assignee?: string | null; [key: string]: unknown; }; } | { /** * Dynamic form fields from customer configuration */ dynamicFormFields?: Array<{ /** * Name of the field */ name?: string; /** * Label of the field */ label?: string; /** * Type of the field, such as select or text */ type?: string; }>; /** * Additional fields that aren't part of standard fields */ additionalFields?: { [key: string]: string | null | number | boolean | Array; }; } | { [key: string]: never; } | { /** * The priority of the opsgenie action */ priority?: 'P1' | 'P2' | 'P3' | 'P4' | 'P5'; } | { /** * The priority of the pagerduty action */ priority?: 'default' | 'critical' | 'warning' | 'error' | 'info'; } | { [key: string]: string; } | { /** * Prompt the investigation runs */ prompt?: string; /** * Seer skill the investigation runs, instead of a prompt */ skill?: 'agentic_triage'; } | { /** * Values of the Sentry App's alert rule settings form, each with a name and value */ settings?: Array; } | { /** * Tags to add to the message */ tags?: string; /** * Notes to add to the message */ notes?: string; }; /** * Configuration of the action, such as targetType and targetIdentifier */ config?: { /** * ID of the target, such as a channel, user or team ID */ targetIdentifier: string; /** * Display name of the target, such as a channel name */ targetDisplay?: string | null; /** * Kind of target the action notifies, such as specific, user or team */ targetType: 'specific'; } | { /** * ID of the target, such as a channel, user or team ID */ targetIdentifier?: string | null; /** * Display name of the target, such as a channel name */ targetDisplay?: null; /** * Kind of target the action notifies, such as specific, user or team */ targetType: 'user' | 'team' | 'issue_owners'; } | { /** * ID of the target, such as a channel, user or team ID */ targetIdentifier?: null; /** * Display name of the target, such as a channel name */ targetDisplay?: null; /** * Kind of target the action notifies, such as specific, user or team */ targetType?: 'specific'; } | { /** * ID of the target, such as a channel, user or team ID */ targetIdentifier?: string; /** * Display name of the target, such as a channel name */ targetDisplay: string; /** * Kind of target the action notifies, such as specific, user or team */ targetType: 'specific'; } | { /** * ID of the target, such as a channel, user or team ID */ targetIdentifier: string; /** * Display name of the target, such as a channel name */ targetDisplay?: string | null; /** * Kind of target the action notifies, such as specific, user or team */ targetType: 'specific'; } | { /** * ID of the target, such as a channel, user or team ID */ targetIdentifier?: string | null; /** * Display name of the target, such as a channel name */ targetDisplay?: string | null; /** * Kind of target the action notifies, such as specific, user or team */ targetType?: null; } | { [key: string]: never; } | { /** * ID of the target, such as a channel, user or team ID */ targetIdentifier: string; /** * Display name of the target, such as a channel name */ targetDisplay?: string | null; /** * Kind of target the action notifies, such as specific, user or team */ targetType: 'sentry_app'; } | { /** * ID of the target, such as a channel, user or team ID */ targetIdentifier?: string; /** * Display name of the target, such as a channel name */ targetDisplay?: string; /** * Kind of target the action notifies, such as specific, user or team */ targetType: 'specific'; } | { /** * ID of the target, such as a channel, user or team ID */ targetIdentifier?: string; /** * Display name of the target, such as a channel name */ targetDisplay?: null; /** * Kind of target the action notifies, such as specific, user or team */ targetType?: null; }; /** * Status of the action */ status?: 'active' | 'disabled' | 'pending_deletion' | 'deletion_in_progress'; }>; } | null; /** * Filters to run before actions fire, each with the actions to fire */ actionFilters: Array<{ /** * ID of the condition group */ id?: string; /** * ID of the organization */ organizationId?: string; /** * How the conditions in the group combine */ logicType?: 'any' | 'any-short' | 'all' | 'none'; /** * Conditions in the group */ conditions?: Array<{ /** * ID of the condition */ id: string; /** * Type of the condition, such as first_seen_event or level */ type: string; /** * Value the condition compares against, which depends on its type */ comparison: number | string | boolean | { /** * Whether the issue must be older or newer than the age */ comparisonType: 'older' | 'newer'; /** * Age of the issue, in units of time */ value: number; /** * Unit of the age */ time: 'minute' | 'hour' | 'day' | 'week'; } | { /** * How sensitive anomaly detection is */ sensitivity: 'low' | 'medium' | 'high'; /** * Seasonal pattern that anomaly detection accounts for */ seasonality: 'auto' | 'hourly' | 'daily' | 'weekly' | 'hourly_daily' | 'hourly_weekly' | 'hourly_daily_weekly' | 'daily_weekly'; /** * Anomalies to detect: 0 above, 1 below, 2 above or below the expected value */ thresholdType: 0 | 1 | 2; } | { /** * Who the issue must be assigned to */ targetType: 'Unassigned' | 'Team' | 'Member'; /** * ID of the team or member. Not set for Unassigned */ targetIdentifier?: number | string; } | { /** * Event attribute to match, such as message or user.email */ attribute?: 'message' | 'platform' | 'environment' | 'type' | 'error.handled' | 'error.unhandled' | 'error.main_thread' | 'exception.type' | 'exception.value' | 'user.id' | 'user.email' | 'user.username' | 'user.ip_address' | 'http.method' | 'http.url' | 'http.status_code' | 'sdk.name' | 'stacktrace.code' | 'stacktrace.module' | 'stacktrace.filename' | 'stacktrace.abs_path' | 'stacktrace.package' | 'unreal.crash_type' | 'app.in_foreground' | 'os.distribution_name' | 'os.distribution_version' | 'symbolicated_in_app' | 'ota_updates.channel' | 'ota_updates.runtime_version' | 'ota_updates.update_id'; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the attribute against. Not set for is and ns */ value?: string; } | number | { /** * Time window to count in, such as 1h */ interval: '1m' | '5m' | '15m' | '1h' | '1d' | '1w' | '30d'; /** * Number of events in the interval that meets the condition */ value: number; /** * Tag or attribute filters that events must match to count */ filters?: Array<{ /** * Tag key to match */ key?: string; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the tag or attribute against. Not set for is and ns */ value?: string; } | { /** * Event attribute to match, such as message or user.email */ attribute?: 'message' | 'platform' | 'environment' | 'type' | 'error.handled' | 'error.unhandled' | 'error.main_thread' | 'exception.type' | 'exception.value' | 'user.id' | 'user.email' | 'user.username' | 'user.ip_address' | 'http.method' | 'http.url' | 'http.status_code' | 'sdk.name' | 'stacktrace.code' | 'stacktrace.module' | 'stacktrace.filename' | 'stacktrace.abs_path' | 'stacktrace.package' | 'unreal.crash_type' | 'app.in_foreground' | 'os.distribution_name' | 'os.distribution_version' | 'symbolicated_in_app' | 'ota_updates.channel' | 'ota_updates.runtime_version' | 'ota_updates.update_id'; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the tag or attribute against. Not set for is and ns */ value?: string; }>; } | { /** * Time window to count in, such as 1h */ interval: '1m' | '5m' | '15m' | '1h' | '1d' | '1w' | '30d'; /** * Percent increase in events over the comparison interval that meets the condition */ value: number; /** * Earlier time window to compare the count against, such as 1w */ comparisonInterval: '5m' | '15m' | '1h' | '1d' | '1w' | '30d'; /** * Tag or attribute filters that events must match to count */ filters?: Array<{ /** * Tag key to match */ key?: string; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the tag or attribute against. Not set for is and ns */ value?: string; } | { /** * Event attribute to match, such as message or user.email */ attribute?: 'message' | 'platform' | 'environment' | 'type' | 'error.handled' | 'error.unhandled' | 'error.main_thread' | 'exception.type' | 'exception.value' | 'user.id' | 'user.email' | 'user.username' | 'user.ip_address' | 'http.method' | 'http.url' | 'http.status_code' | 'sdk.name' | 'stacktrace.code' | 'stacktrace.module' | 'stacktrace.filename' | 'stacktrace.abs_path' | 'stacktrace.package' | 'unreal.crash_type' | 'app.in_foreground' | 'os.distribution_name' | 'os.distribution_version' | 'symbolicated_in_app' | 'ota_updates.channel' | 'ota_updates.runtime_version' | 'ota_updates.update_id'; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the tag or attribute against. Not set for is and ns */ value?: string; }>; } | { /** * Time window to count in, such as 1h */ interval: '1m' | '5m' | '15m' | '1h' | '1d' | '1w' | '30d'; /** * Number of affected users in the interval that meets the condition */ value: number; /** * Tag or attribute filters that events must match to count */ filters?: Array<{ /** * Tag key to match */ key?: string; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the tag or attribute against. Not set for is and ns */ value?: string; } | { /** * Event attribute to match, such as message or user.email */ attribute?: 'message' | 'platform' | 'environment' | 'type' | 'error.handled' | 'error.unhandled' | 'error.main_thread' | 'exception.type' | 'exception.value' | 'user.id' | 'user.email' | 'user.username' | 'user.ip_address' | 'http.method' | 'http.url' | 'http.status_code' | 'sdk.name' | 'stacktrace.code' | 'stacktrace.module' | 'stacktrace.filename' | 'stacktrace.abs_path' | 'stacktrace.package' | 'unreal.crash_type' | 'app.in_foreground' | 'os.distribution_name' | 'os.distribution_version' | 'symbolicated_in_app' | 'ota_updates.channel' | 'ota_updates.runtime_version' | 'ota_updates.update_id'; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the tag or attribute against. Not set for is and ns */ value?: string; }>; } | { /** * Time window to count in, such as 1h */ interval: '1m' | '5m' | '15m' | '1h' | '1d' | '1w' | '30d'; /** * Percent increase in affected users over the comparison interval that meets the condition */ value: number; /** * Earlier time window to compare the count against, such as 1w */ comparisonInterval: '5m' | '15m' | '1h' | '1d' | '1w' | '30d'; /** * Tag or attribute filters that events must match to count */ filters?: Array<{ /** * Tag key to match */ key?: string; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the tag or attribute against. Not set for is and ns */ value?: string; } | { /** * Event attribute to match, such as message or user.email */ attribute?: 'message' | 'platform' | 'environment' | 'type' | 'error.handled' | 'error.unhandled' | 'error.main_thread' | 'exception.type' | 'exception.value' | 'user.id' | 'user.email' | 'user.username' | 'user.ip_address' | 'http.method' | 'http.url' | 'http.status_code' | 'sdk.name' | 'stacktrace.code' | 'stacktrace.module' | 'stacktrace.filename' | 'stacktrace.abs_path' | 'stacktrace.package' | 'unreal.crash_type' | 'app.in_foreground' | 'os.distribution_name' | 'os.distribution_version' | 'symbolicated_in_app' | 'ota_updates.channel' | 'ota_updates.runtime_version' | 'ota_updates.update_id'; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the tag or attribute against. Not set for is and ns */ value?: string; }>; } | { /** * ID of the issue category */ value: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 19; /** * Whether the issue must be in the category or not. Defaults to true */ include?: boolean; } | { /** * Number of times the issue must have occurred */ value: number; } | 25 | 50 | 75 | 1 | { /** * Slug of the issue type */ value: 'performance_slow_db_query' | 'performance_render_blocking_asset_span' | 'performance_n_plus_one_db_queries' | 'performance_n_plus_one_db_queries_experimental' | 'performance_consecutive_db_queries' | 'performance_file_io_main_thread' | 'performance_consecutive_http' | 'performance_n_plus_one_api_calls' | 'performance_n_plus_one_api_calls_experimental' | 'performance_m_n_plus_one_db_queries' | 'performance_m_n_plus_one_db_queries_experimental' | 'performance_uncompressed_assets' | 'performance_db_main_thread' | 'performance_large_http_payload' | 'performance_http_overhead' | 'performance_p95_endpoint_regression' | 'performance_streamed_spans_exp' | 'db_query_injection_vulnerability' | 'query_injection_vulnerability' | 'profile_file_io_main_thread' | 'profile_image_decode_main_thread' | 'profile_json_decode_main_thread' | 'profile_regex_main_thread' | 'profile_frame_drop' | 'profile_function_regression' | 'llm_detected_experimental' | 'llm_detected_experimental_v2' | 'ai_detected_http' | 'ai_detected_db' | 'ai_detected_runtime_performance' | 'ai_detected_security' | 'ai_detected_code_health' | 'ai_detected_general' | 'replay_click_rage' | 'replay_hydration_error' | 'feedback' | 'web_vitals' | 'issue_stream' | 'metric_issue' | 'error' | 'uptime_domain_failure' | 'send-test-notification' | 'monitor_check_in_failure' | 'sourcemap_configuration' | 'low_value_span_configuration' | 'preprod_size_analysis'; /** * Whether the issue must be of the type or not. Defaults to true */ include?: boolean; } | { /** * Whether to compare against the oldest or newest adopted release */ releaseAgeType: 'oldest' | 'newest'; /** * Whether the event's release must be older or newer than that release */ ageComparison: 'older' | 'newer'; /** * Environment the release was adopted in */ environment: string; } | { /** * Event level: 0 sample, 10 debug, 20 info, 30 warning, 40 error, 50 fatal */ level: 0 | 10 | 20 | 30 | 40 | 50; /** * How to compare the event's level: eq, gte or lte */ match: 'eq' | 'gte' | 'lte'; } | { /** * Time window to count in, such as 1h */ interval: '1m' | '5m' | '10m' | '30m' | '1h'; /** * Percent of sessions affected in the interval that meets the condition */ value: number; /** * Tag or attribute filters that events must match to count */ filters?: Array<{ /** * Tag key to match */ key?: string; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the tag or attribute against. Not set for is and ns */ value?: string; } | { /** * Event attribute to match, such as message or user.email */ attribute?: 'message' | 'platform' | 'environment' | 'type' | 'error.handled' | 'error.unhandled' | 'error.main_thread' | 'exception.type' | 'exception.value' | 'user.id' | 'user.email' | 'user.username' | 'user.ip_address' | 'http.method' | 'http.url' | 'http.status_code' | 'sdk.name' | 'stacktrace.code' | 'stacktrace.module' | 'stacktrace.filename' | 'stacktrace.abs_path' | 'stacktrace.package' | 'unreal.crash_type' | 'app.in_foreground' | 'os.distribution_name' | 'os.distribution_version' | 'symbolicated_in_app' | 'ota_updates.channel' | 'ota_updates.runtime_version' | 'ota_updates.update_id'; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the tag or attribute against. Not set for is and ns */ value?: string; }>; } | { /** * Time window to count in, such as 1h */ interval: '1m' | '5m' | '10m' | '30m' | '1h'; /** * Percent increase in affected sessions over the comparison interval that meets the condition */ value: number; /** * Earlier time window to compare the count against, such as 1w */ comparisonInterval: '5m' | '15m' | '1h' | '1d' | '1w' | '30d'; /** * Tag or attribute filters that events must match to count */ filters?: Array<{ /** * Tag key to match */ key?: string; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the tag or attribute against. Not set for is and ns */ value?: string; } | { /** * Event attribute to match, such as message or user.email */ attribute?: 'message' | 'platform' | 'environment' | 'type' | 'error.handled' | 'error.unhandled' | 'error.main_thread' | 'exception.type' | 'exception.value' | 'user.id' | 'user.email' | 'user.username' | 'user.ip_address' | 'http.method' | 'http.url' | 'http.status_code' | 'sdk.name' | 'stacktrace.code' | 'stacktrace.module' | 'stacktrace.filename' | 'stacktrace.abs_path' | 'stacktrace.package' | 'unreal.crash_type' | 'app.in_foreground' | 'os.distribution_name' | 'os.distribution_version' | 'symbolicated_in_app' | 'ota_updates.channel' | 'ota_updates.runtime_version' | 'ota_updates.update_id'; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the tag or attribute against. Not set for is and ns */ value?: string; }>; } | Array<'rca_completed' | 'solution_completed' | 'coding_completed' | 'pr_ready_for_review'> | { /** * Tag key to match */ key?: string; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the tag against. Not set for is and ns */ value?: string; }; /** * Result the condition produces when it matches: true for alert conditions, or the priority level for monitor conditions */ conditionResult: boolean | number | number | null; }>; /** * Actions to fire when the conditions pass */ actions?: Array<{ /** * ID of the action */ id?: string; /** * Type of the action */ type?: 'slack' | 'slack_staging' | 'msteams' | 'discord' | 'pagerduty' | 'opsgenie' | 'github' | 'github_enterprise' | 'jira' | 'jira_server' | 'vsts' | 'email' | 'sentry_app' | 'plugin' | 'webhook' | 'seer_investigation'; /** * ID of the integration the action uses. Null for actions without one */ integrationId?: string | null; /** * Extra data for the action, which depends on its type */ data?: { /** * Tags to add to the message */ tags?: string; } | { /** * The fallthrough type for issue owners email notifications */ fallthroughType?: 'AllMembers' | 'ActiveMembers' | 'NoOne'; } | { /** * Dynamic form fields from customer configuration */ dynamicFormFields?: Array<{ /** * Name of the field */ name?: string; /** * Label of the field */ label?: string; /** * Type of the field, such as select or text */ type?: string; }>; /** * Additional fields that aren't part of standard fields */ additionalFields: { /** * Repository to create the issue in, as owner/name */ repo: string; /** * Labels to add to the issue */ labels?: Array | null; /** * User to assign the issue to */ assignee?: string | null; [key: string]: unknown; }; } | { /** * Dynamic form fields from customer configuration */ dynamicFormFields?: Array<{ /** * Name of the field */ name?: string; /** * Label of the field */ label?: string; /** * Type of the field, such as select or text */ type?: string; }>; /** * Additional fields that aren't part of standard fields */ additionalFields?: { [key: string]: string | null | number | boolean | Array; }; } | { [key: string]: never; } | { /** * The priority of the opsgenie action */ priority?: 'P1' | 'P2' | 'P3' | 'P4' | 'P5'; } | { /** * The priority of the pagerduty action */ priority?: 'default' | 'critical' | 'warning' | 'error' | 'info'; } | { [key: string]: string; } | { /** * Prompt the investigation runs */ prompt?: string; /** * Seer skill the investigation runs, instead of a prompt */ skill?: 'agentic_triage'; } | { /** * Values of the Sentry App's alert rule settings form, each with a name and value */ settings?: Array; } | { /** * Tags to add to the message */ tags?: string; /** * Notes to add to the message */ notes?: string; }; /** * Configuration of the action, such as targetType and targetIdentifier */ config?: { /** * ID of the target, such as a channel, user or team ID */ targetIdentifier: string; /** * Display name of the target, such as a channel name */ targetDisplay?: string | null; /** * Kind of target the action notifies, such as specific, user or team */ targetType: 'specific'; } | { /** * ID of the target, such as a channel, user or team ID */ targetIdentifier?: string | null; /** * Display name of the target, such as a channel name */ targetDisplay?: null; /** * Kind of target the action notifies, such as specific, user or team */ targetType: 'user' | 'team' | 'issue_owners'; } | { /** * ID of the target, such as a channel, user or team ID */ targetIdentifier?: null; /** * Display name of the target, such as a channel name */ targetDisplay?: null; /** * Kind of target the action notifies, such as specific, user or team */ targetType?: 'specific'; } | { /** * ID of the target, such as a channel, user or team ID */ targetIdentifier?: string; /** * Display name of the target, such as a channel name */ targetDisplay: string; /** * Kind of target the action notifies, such as specific, user or team */ targetType: 'specific'; } | { /** * ID of the target, such as a channel, user or team ID */ targetIdentifier: string; /** * Display name of the target, such as a channel name */ targetDisplay?: string | null; /** * Kind of target the action notifies, such as specific, user or team */ targetType: 'specific'; } | { /** * ID of the target, such as a channel, user or team ID */ targetIdentifier?: string | null; /** * Display name of the target, such as a channel name */ targetDisplay?: string | null; /** * Kind of target the action notifies, such as specific, user or team */ targetType?: null; } | { [key: string]: never; } | { /** * ID of the target, such as a channel, user or team ID */ targetIdentifier: string; /** * Display name of the target, such as a channel name */ targetDisplay?: string | null; /** * Kind of target the action notifies, such as specific, user or team */ targetType: 'sentry_app'; } | { /** * ID of the target, such as a channel, user or team ID */ targetIdentifier?: string; /** * Display name of the target, such as a channel name */ targetDisplay?: string; /** * Kind of target the action notifies, such as specific, user or team */ targetType: 'specific'; } | { /** * ID of the target, such as a channel, user or team ID */ targetIdentifier?: string; /** * Display name of the target, such as a channel name */ targetDisplay?: null; /** * Kind of target the action notifies, such as specific, user or team */ targetType?: null; }; /** * Status of the action */ status?: 'active' | 'disabled' | 'pending_deletion' | 'deletion_in_progress'; }>; }> | null; /** * Name of the environment the workflow is limited to. Null for all environments */ environment: string | null; /** * Configuration of the workflow, such as frequency in minutes */ config: { /** * How often the workflow should fire for a Group (minutes) */ frequency?: number; }; /** * IDs of the monitors connected to the workflow */ detectorIds: Array | null; /** * Whether the workflow is enabled */ enabled: boolean; /** * When the workflow last fired (ISO 8601) */ lastTriggered: string | null; /** * Team or user that owns the workflow, such as user:123 or team:456 */ owner: string | null; }>; }; export type UpdateOrganizationWorkflowsResponse = UpdateOrganizationWorkflowsResponses[keyof UpdateOrganizationWorkflowsResponses]; export type DeleteOrganizationWorkflowData = { body?: never; path: { /** * The ID or slug of the organization the resource belongs to. */ organization_id_or_slug: string; /** * The ID of the alert you'd like to query. */ workflow_id: number; }; query?: never; url: '/organizations/{organization_id_or_slug}/workflows/{workflow_id}/'; }; export type DeleteOrganizationWorkflowErrors = { /** * Bad Request */ 400: unknown; /** * Unauthorized */ 401: unknown; /** * Forbidden */ 403: unknown; /** * Not Found */ 404: unknown; }; export type DeleteOrganizationWorkflowResponses = { /** * No Content */ 204: void; }; export type DeleteOrganizationWorkflowResponse = DeleteOrganizationWorkflowResponses[keyof DeleteOrganizationWorkflowResponses]; export type GetOrganizationWorkflowData = { body?: never; path: { /** * The ID or slug of the organization the resource belongs to. */ organization_id_or_slug: string; /** * The ID of the alert you'd like to query. */ workflow_id: number; }; query?: never; url: '/organizations/{organization_id_or_slug}/workflows/{workflow_id}/'; }; export type GetOrganizationWorkflowErrors = { /** * Bad Request */ 400: unknown; /** * Unauthorized */ 401: unknown; /** * Forbidden */ 403: unknown; /** * Not Found */ 404: unknown; }; export type GetOrganizationWorkflowResponses = { 200: { /** * Workflow ID */ id: string; /** * Workflow name */ name: string; /** * Type of the workflow, such as alert */ type: string; /** * ID of the organization the workflow belongs to */ organizationId: string; /** * ID of the user who created the workflow */ createdBy: string | null; /** * When the workflow was created (ISO 8601) */ dateCreated: string; /** * When the workflow was last updated (ISO 8601) */ dateUpdated: string; /** * Conditions on which the workflow triggers */ triggers: { /** * ID of the condition group */ id?: string; /** * ID of the organization */ organizationId?: string; /** * How the conditions in the group combine */ logicType?: 'any' | 'any-short' | 'all' | 'none'; /** * Conditions in the group */ conditions?: Array<{ /** * ID of the condition */ id: string; /** * Type of the condition, such as first_seen_event or level */ type: string; /** * Value the condition compares against, which depends on its type */ comparison: number | string | boolean | { /** * Whether the issue must be older or newer than the age */ comparisonType: 'older' | 'newer'; /** * Age of the issue, in units of time */ value: number; /** * Unit of the age */ time: 'minute' | 'hour' | 'day' | 'week'; } | { /** * How sensitive anomaly detection is */ sensitivity: 'low' | 'medium' | 'high'; /** * Seasonal pattern that anomaly detection accounts for */ seasonality: 'auto' | 'hourly' | 'daily' | 'weekly' | 'hourly_daily' | 'hourly_weekly' | 'hourly_daily_weekly' | 'daily_weekly'; /** * Anomalies to detect: 0 above, 1 below, 2 above or below the expected value */ thresholdType: 0 | 1 | 2; } | { /** * Who the issue must be assigned to */ targetType: 'Unassigned' | 'Team' | 'Member'; /** * ID of the team or member. Not set for Unassigned */ targetIdentifier?: number | string; } | { /** * Event attribute to match, such as message or user.email */ attribute?: 'message' | 'platform' | 'environment' | 'type' | 'error.handled' | 'error.unhandled' | 'error.main_thread' | 'exception.type' | 'exception.value' | 'user.id' | 'user.email' | 'user.username' | 'user.ip_address' | 'http.method' | 'http.url' | 'http.status_code' | 'sdk.name' | 'stacktrace.code' | 'stacktrace.module' | 'stacktrace.filename' | 'stacktrace.abs_path' | 'stacktrace.package' | 'unreal.crash_type' | 'app.in_foreground' | 'os.distribution_name' | 'os.distribution_version' | 'symbolicated_in_app' | 'ota_updates.channel' | 'ota_updates.runtime_version' | 'ota_updates.update_id'; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the attribute against. Not set for is and ns */ value?: string; } | number | { /** * Time window to count in, such as 1h */ interval: '1m' | '5m' | '15m' | '1h' | '1d' | '1w' | '30d'; /** * Number of events in the interval that meets the condition */ value: number; /** * Tag or attribute filters that events must match to count */ filters?: Array<{ /** * Tag key to match */ key?: string; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the tag or attribute against. Not set for is and ns */ value?: string; } | { /** * Event attribute to match, such as message or user.email */ attribute?: 'message' | 'platform' | 'environment' | 'type' | 'error.handled' | 'error.unhandled' | 'error.main_thread' | 'exception.type' | 'exception.value' | 'user.id' | 'user.email' | 'user.username' | 'user.ip_address' | 'http.method' | 'http.url' | 'http.status_code' | 'sdk.name' | 'stacktrace.code' | 'stacktrace.module' | 'stacktrace.filename' | 'stacktrace.abs_path' | 'stacktrace.package' | 'unreal.crash_type' | 'app.in_foreground' | 'os.distribution_name' | 'os.distribution_version' | 'symbolicated_in_app' | 'ota_updates.channel' | 'ota_updates.runtime_version' | 'ota_updates.update_id'; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the tag or attribute against. Not set for is and ns */ value?: string; }>; } | { /** * Time window to count in, such as 1h */ interval: '1m' | '5m' | '15m' | '1h' | '1d' | '1w' | '30d'; /** * Percent increase in events over the comparison interval that meets the condition */ value: number; /** * Earlier time window to compare the count against, such as 1w */ comparisonInterval: '5m' | '15m' | '1h' | '1d' | '1w' | '30d'; /** * Tag or attribute filters that events must match to count */ filters?: Array<{ /** * Tag key to match */ key?: string; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the tag or attribute against. Not set for is and ns */ value?: string; } | { /** * Event attribute to match, such as message or user.email */ attribute?: 'message' | 'platform' | 'environment' | 'type' | 'error.handled' | 'error.unhandled' | 'error.main_thread' | 'exception.type' | 'exception.value' | 'user.id' | 'user.email' | 'user.username' | 'user.ip_address' | 'http.method' | 'http.url' | 'http.status_code' | 'sdk.name' | 'stacktrace.code' | 'stacktrace.module' | 'stacktrace.filename' | 'stacktrace.abs_path' | 'stacktrace.package' | 'unreal.crash_type' | 'app.in_foreground' | 'os.distribution_name' | 'os.distribution_version' | 'symbolicated_in_app' | 'ota_updates.channel' | 'ota_updates.runtime_version' | 'ota_updates.update_id'; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the tag or attribute against. Not set for is and ns */ value?: string; }>; } | { /** * Time window to count in, such as 1h */ interval: '1m' | '5m' | '15m' | '1h' | '1d' | '1w' | '30d'; /** * Number of affected users in the interval that meets the condition */ value: number; /** * Tag or attribute filters that events must match to count */ filters?: Array<{ /** * Tag key to match */ key?: string; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the tag or attribute against. Not set for is and ns */ value?: string; } | { /** * Event attribute to match, such as message or user.email */ attribute?: 'message' | 'platform' | 'environment' | 'type' | 'error.handled' | 'error.unhandled' | 'error.main_thread' | 'exception.type' | 'exception.value' | 'user.id' | 'user.email' | 'user.username' | 'user.ip_address' | 'http.method' | 'http.url' | 'http.status_code' | 'sdk.name' | 'stacktrace.code' | 'stacktrace.module' | 'stacktrace.filename' | 'stacktrace.abs_path' | 'stacktrace.package' | 'unreal.crash_type' | 'app.in_foreground' | 'os.distribution_name' | 'os.distribution_version' | 'symbolicated_in_app' | 'ota_updates.channel' | 'ota_updates.runtime_version' | 'ota_updates.update_id'; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the tag or attribute against. Not set for is and ns */ value?: string; }>; } | { /** * Time window to count in, such as 1h */ interval: '1m' | '5m' | '15m' | '1h' | '1d' | '1w' | '30d'; /** * Percent increase in affected users over the comparison interval that meets the condition */ value: number; /** * Earlier time window to compare the count against, such as 1w */ comparisonInterval: '5m' | '15m' | '1h' | '1d' | '1w' | '30d'; /** * Tag or attribute filters that events must match to count */ filters?: Array<{ /** * Tag key to match */ key?: string; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the tag or attribute against. Not set for is and ns */ value?: string; } | { /** * Event attribute to match, such as message or user.email */ attribute?: 'message' | 'platform' | 'environment' | 'type' | 'error.handled' | 'error.unhandled' | 'error.main_thread' | 'exception.type' | 'exception.value' | 'user.id' | 'user.email' | 'user.username' | 'user.ip_address' | 'http.method' | 'http.url' | 'http.status_code' | 'sdk.name' | 'stacktrace.code' | 'stacktrace.module' | 'stacktrace.filename' | 'stacktrace.abs_path' | 'stacktrace.package' | 'unreal.crash_type' | 'app.in_foreground' | 'os.distribution_name' | 'os.distribution_version' | 'symbolicated_in_app' | 'ota_updates.channel' | 'ota_updates.runtime_version' | 'ota_updates.update_id'; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the tag or attribute against. Not set for is and ns */ value?: string; }>; } | { /** * ID of the issue category */ value: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 19; /** * Whether the issue must be in the category or not. Defaults to true */ include?: boolean; } | { /** * Number of times the issue must have occurred */ value: number; } | 25 | 50 | 75 | 1 | { /** * Slug of the issue type */ value: 'performance_slow_db_query' | 'performance_render_blocking_asset_span' | 'performance_n_plus_one_db_queries' | 'performance_n_plus_one_db_queries_experimental' | 'performance_consecutive_db_queries' | 'performance_file_io_main_thread' | 'performance_consecutive_http' | 'performance_n_plus_one_api_calls' | 'performance_n_plus_one_api_calls_experimental' | 'performance_m_n_plus_one_db_queries' | 'performance_m_n_plus_one_db_queries_experimental' | 'performance_uncompressed_assets' | 'performance_db_main_thread' | 'performance_large_http_payload' | 'performance_http_overhead' | 'performance_p95_endpoint_regression' | 'performance_streamed_spans_exp' | 'db_query_injection_vulnerability' | 'query_injection_vulnerability' | 'profile_file_io_main_thread' | 'profile_image_decode_main_thread' | 'profile_json_decode_main_thread' | 'profile_regex_main_thread' | 'profile_frame_drop' | 'profile_function_regression' | 'llm_detected_experimental' | 'llm_detected_experimental_v2' | 'ai_detected_http' | 'ai_detected_db' | 'ai_detected_runtime_performance' | 'ai_detected_security' | 'ai_detected_code_health' | 'ai_detected_general' | 'replay_click_rage' | 'replay_hydration_error' | 'feedback' | 'web_vitals' | 'issue_stream' | 'metric_issue' | 'error' | 'uptime_domain_failure' | 'send-test-notification' | 'monitor_check_in_failure' | 'sourcemap_configuration' | 'low_value_span_configuration' | 'preprod_size_analysis'; /** * Whether the issue must be of the type or not. Defaults to true */ include?: boolean; } | { /** * Whether to compare against the oldest or newest adopted release */ releaseAgeType: 'oldest' | 'newest'; /** * Whether the event's release must be older or newer than that release */ ageComparison: 'older' | 'newer'; /** * Environment the release was adopted in */ environment: string; } | { /** * Event level: 0 sample, 10 debug, 20 info, 30 warning, 40 error, 50 fatal */ level: 0 | 10 | 20 | 30 | 40 | 50; /** * How to compare the event's level: eq, gte or lte */ match: 'eq' | 'gte' | 'lte'; } | { /** * Time window to count in, such as 1h */ interval: '1m' | '5m' | '10m' | '30m' | '1h'; /** * Percent of sessions affected in the interval that meets the condition */ value: number; /** * Tag or attribute filters that events must match to count */ filters?: Array<{ /** * Tag key to match */ key?: string; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the tag or attribute against. Not set for is and ns */ value?: string; } | { /** * Event attribute to match, such as message or user.email */ attribute?: 'message' | 'platform' | 'environment' | 'type' | 'error.handled' | 'error.unhandled' | 'error.main_thread' | 'exception.type' | 'exception.value' | 'user.id' | 'user.email' | 'user.username' | 'user.ip_address' | 'http.method' | 'http.url' | 'http.status_code' | 'sdk.name' | 'stacktrace.code' | 'stacktrace.module' | 'stacktrace.filename' | 'stacktrace.abs_path' | 'stacktrace.package' | 'unreal.crash_type' | 'app.in_foreground' | 'os.distribution_name' | 'os.distribution_version' | 'symbolicated_in_app' | 'ota_updates.channel' | 'ota_updates.runtime_version' | 'ota_updates.update_id'; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the tag or attribute against. Not set for is and ns */ value?: string; }>; } | { /** * Time window to count in, such as 1h */ interval: '1m' | '5m' | '10m' | '30m' | '1h'; /** * Percent increase in affected sessions over the comparison interval that meets the condition */ value: number; /** * Earlier time window to compare the count against, such as 1w */ comparisonInterval: '5m' | '15m' | '1h' | '1d' | '1w' | '30d'; /** * Tag or attribute filters that events must match to count */ filters?: Array<{ /** * Tag key to match */ key?: string; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the tag or attribute against. Not set for is and ns */ value?: string; } | { /** * Event attribute to match, such as message or user.email */ attribute?: 'message' | 'platform' | 'environment' | 'type' | 'error.handled' | 'error.unhandled' | 'error.main_thread' | 'exception.type' | 'exception.value' | 'user.id' | 'user.email' | 'user.username' | 'user.ip_address' | 'http.method' | 'http.url' | 'http.status_code' | 'sdk.name' | 'stacktrace.code' | 'stacktrace.module' | 'stacktrace.filename' | 'stacktrace.abs_path' | 'stacktrace.package' | 'unreal.crash_type' | 'app.in_foreground' | 'os.distribution_name' | 'os.distribution_version' | 'symbolicated_in_app' | 'ota_updates.channel' | 'ota_updates.runtime_version' | 'ota_updates.update_id'; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the tag or attribute against. Not set for is and ns */ value?: string; }>; } | Array<'rca_completed' | 'solution_completed' | 'coding_completed' | 'pr_ready_for_review'> | { /** * Tag key to match */ key?: string; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the tag against. Not set for is and ns */ value?: string; }; /** * Result the condition produces when it matches: true for alert conditions, or the priority level for monitor conditions */ conditionResult: boolean | number | number | null; }>; /** * Actions to fire when the conditions pass */ actions?: Array<{ /** * ID of the action */ id?: string; /** * Type of the action */ type?: 'slack' | 'slack_staging' | 'msteams' | 'discord' | 'pagerduty' | 'opsgenie' | 'github' | 'github_enterprise' | 'jira' | 'jira_server' | 'vsts' | 'email' | 'sentry_app' | 'plugin' | 'webhook' | 'seer_investigation'; /** * ID of the integration the action uses. Null for actions without one */ integrationId?: string | null; /** * Extra data for the action, which depends on its type */ data?: { /** * Tags to add to the message */ tags?: string; } | { /** * The fallthrough type for issue owners email notifications */ fallthroughType?: 'AllMembers' | 'ActiveMembers' | 'NoOne'; } | { /** * Dynamic form fields from customer configuration */ dynamicFormFields?: Array<{ /** * Name of the field */ name?: string; /** * Label of the field */ label?: string; /** * Type of the field, such as select or text */ type?: string; }>; /** * Additional fields that aren't part of standard fields */ additionalFields: { /** * Repository to create the issue in, as owner/name */ repo: string; /** * Labels to add to the issue */ labels?: Array | null; /** * User to assign the issue to */ assignee?: string | null; [key: string]: unknown; }; } | { /** * Dynamic form fields from customer configuration */ dynamicFormFields?: Array<{ /** * Name of the field */ name?: string; /** * Label of the field */ label?: string; /** * Type of the field, such as select or text */ type?: string; }>; /** * Additional fields that aren't part of standard fields */ additionalFields?: { [key: string]: string | null | number | boolean | Array; }; } | { [key: string]: never; } | { /** * The priority of the opsgenie action */ priority?: 'P1' | 'P2' | 'P3' | 'P4' | 'P5'; } | { /** * The priority of the pagerduty action */ priority?: 'default' | 'critical' | 'warning' | 'error' | 'info'; } | { [key: string]: string; } | { /** * Prompt the investigation runs */ prompt?: string; /** * Seer skill the investigation runs, instead of a prompt */ skill?: 'agentic_triage'; } | { /** * Values of the Sentry App's alert rule settings form, each with a name and value */ settings?: Array; } | { /** * Tags to add to the message */ tags?: string; /** * Notes to add to the message */ notes?: string; }; /** * Configuration of the action, such as targetType and targetIdentifier */ config?: { /** * ID of the target, such as a channel, user or team ID */ targetIdentifier: string; /** * Display name of the target, such as a channel name */ targetDisplay?: string | null; /** * Kind of target the action notifies, such as specific, user or team */ targetType: 'specific'; } | { /** * ID of the target, such as a channel, user or team ID */ targetIdentifier?: string | null; /** * Display name of the target, such as a channel name */ targetDisplay?: null; /** * Kind of target the action notifies, such as specific, user or team */ targetType: 'user' | 'team' | 'issue_owners'; } | { /** * ID of the target, such as a channel, user or team ID */ targetIdentifier?: null; /** * Display name of the target, such as a channel name */ targetDisplay?: null; /** * Kind of target the action notifies, such as specific, user or team */ targetType?: 'specific'; } | { /** * ID of the target, such as a channel, user or team ID */ targetIdentifier?: string; /** * Display name of the target, such as a channel name */ targetDisplay: string; /** * Kind of target the action notifies, such as specific, user or team */ targetType: 'specific'; } | { /** * ID of the target, such as a channel, user or team ID */ targetIdentifier: string; /** * Display name of the target, such as a channel name */ targetDisplay?: string | null; /** * Kind of target the action notifies, such as specific, user or team */ targetType: 'specific'; } | { /** * ID of the target, such as a channel, user or team ID */ targetIdentifier?: string | null; /** * Display name of the target, such as a channel name */ targetDisplay?: string | null; /** * Kind of target the action notifies, such as specific, user or team */ targetType?: null; } | { [key: string]: never; } | { /** * ID of the target, such as a channel, user or team ID */ targetIdentifier: string; /** * Display name of the target, such as a channel name */ targetDisplay?: string | null; /** * Kind of target the action notifies, such as specific, user or team */ targetType: 'sentry_app'; } | { /** * ID of the target, such as a channel, user or team ID */ targetIdentifier?: string; /** * Display name of the target, such as a channel name */ targetDisplay?: string; /** * Kind of target the action notifies, such as specific, user or team */ targetType: 'specific'; } | { /** * ID of the target, such as a channel, user or team ID */ targetIdentifier?: string; /** * Display name of the target, such as a channel name */ targetDisplay?: null; /** * Kind of target the action notifies, such as specific, user or team */ targetType?: null; }; /** * Status of the action */ status?: 'active' | 'disabled' | 'pending_deletion' | 'deletion_in_progress'; }>; } | null; /** * Filters to run before actions fire, each with the actions to fire */ actionFilters: Array<{ /** * ID of the condition group */ id?: string; /** * ID of the organization */ organizationId?: string; /** * How the conditions in the group combine */ logicType?: 'any' | 'any-short' | 'all' | 'none'; /** * Conditions in the group */ conditions?: Array<{ /** * ID of the condition */ id: string; /** * Type of the condition, such as first_seen_event or level */ type: string; /** * Value the condition compares against, which depends on its type */ comparison: number | string | boolean | { /** * Whether the issue must be older or newer than the age */ comparisonType: 'older' | 'newer'; /** * Age of the issue, in units of time */ value: number; /** * Unit of the age */ time: 'minute' | 'hour' | 'day' | 'week'; } | { /** * How sensitive anomaly detection is */ sensitivity: 'low' | 'medium' | 'high'; /** * Seasonal pattern that anomaly detection accounts for */ seasonality: 'auto' | 'hourly' | 'daily' | 'weekly' | 'hourly_daily' | 'hourly_weekly' | 'hourly_daily_weekly' | 'daily_weekly'; /** * Anomalies to detect: 0 above, 1 below, 2 above or below the expected value */ thresholdType: 0 | 1 | 2; } | { /** * Who the issue must be assigned to */ targetType: 'Unassigned' | 'Team' | 'Member'; /** * ID of the team or member. Not set for Unassigned */ targetIdentifier?: number | string; } | { /** * Event attribute to match, such as message or user.email */ attribute?: 'message' | 'platform' | 'environment' | 'type' | 'error.handled' | 'error.unhandled' | 'error.main_thread' | 'exception.type' | 'exception.value' | 'user.id' | 'user.email' | 'user.username' | 'user.ip_address' | 'http.method' | 'http.url' | 'http.status_code' | 'sdk.name' | 'stacktrace.code' | 'stacktrace.module' | 'stacktrace.filename' | 'stacktrace.abs_path' | 'stacktrace.package' | 'unreal.crash_type' | 'app.in_foreground' | 'os.distribution_name' | 'os.distribution_version' | 'symbolicated_in_app' | 'ota_updates.channel' | 'ota_updates.runtime_version' | 'ota_updates.update_id'; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the attribute against. Not set for is and ns */ value?: string; } | number | { /** * Time window to count in, such as 1h */ interval: '1m' | '5m' | '15m' | '1h' | '1d' | '1w' | '30d'; /** * Number of events in the interval that meets the condition */ value: number; /** * Tag or attribute filters that events must match to count */ filters?: Array<{ /** * Tag key to match */ key?: string; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the tag or attribute against. Not set for is and ns */ value?: string; } | { /** * Event attribute to match, such as message or user.email */ attribute?: 'message' | 'platform' | 'environment' | 'type' | 'error.handled' | 'error.unhandled' | 'error.main_thread' | 'exception.type' | 'exception.value' | 'user.id' | 'user.email' | 'user.username' | 'user.ip_address' | 'http.method' | 'http.url' | 'http.status_code' | 'sdk.name' | 'stacktrace.code' | 'stacktrace.module' | 'stacktrace.filename' | 'stacktrace.abs_path' | 'stacktrace.package' | 'unreal.crash_type' | 'app.in_foreground' | 'os.distribution_name' | 'os.distribution_version' | 'symbolicated_in_app' | 'ota_updates.channel' | 'ota_updates.runtime_version' | 'ota_updates.update_id'; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the tag or attribute against. Not set for is and ns */ value?: string; }>; } | { /** * Time window to count in, such as 1h */ interval: '1m' | '5m' | '15m' | '1h' | '1d' | '1w' | '30d'; /** * Percent increase in events over the comparison interval that meets the condition */ value: number; /** * Earlier time window to compare the count against, such as 1w */ comparisonInterval: '5m' | '15m' | '1h' | '1d' | '1w' | '30d'; /** * Tag or attribute filters that events must match to count */ filters?: Array<{ /** * Tag key to match */ key?: string; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the tag or attribute against. Not set for is and ns */ value?: string; } | { /** * Event attribute to match, such as message or user.email */ attribute?: 'message' | 'platform' | 'environment' | 'type' | 'error.handled' | 'error.unhandled' | 'error.main_thread' | 'exception.type' | 'exception.value' | 'user.id' | 'user.email' | 'user.username' | 'user.ip_address' | 'http.method' | 'http.url' | 'http.status_code' | 'sdk.name' | 'stacktrace.code' | 'stacktrace.module' | 'stacktrace.filename' | 'stacktrace.abs_path' | 'stacktrace.package' | 'unreal.crash_type' | 'app.in_foreground' | 'os.distribution_name' | 'os.distribution_version' | 'symbolicated_in_app' | 'ota_updates.channel' | 'ota_updates.runtime_version' | 'ota_updates.update_id'; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the tag or attribute against. Not set for is and ns */ value?: string; }>; } | { /** * Time window to count in, such as 1h */ interval: '1m' | '5m' | '15m' | '1h' | '1d' | '1w' | '30d'; /** * Number of affected users in the interval that meets the condition */ value: number; /** * Tag or attribute filters that events must match to count */ filters?: Array<{ /** * Tag key to match */ key?: string; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the tag or attribute against. Not set for is and ns */ value?: string; } | { /** * Event attribute to match, such as message or user.email */ attribute?: 'message' | 'platform' | 'environment' | 'type' | 'error.handled' | 'error.unhandled' | 'error.main_thread' | 'exception.type' | 'exception.value' | 'user.id' | 'user.email' | 'user.username' | 'user.ip_address' | 'http.method' | 'http.url' | 'http.status_code' | 'sdk.name' | 'stacktrace.code' | 'stacktrace.module' | 'stacktrace.filename' | 'stacktrace.abs_path' | 'stacktrace.package' | 'unreal.crash_type' | 'app.in_foreground' | 'os.distribution_name' | 'os.distribution_version' | 'symbolicated_in_app' | 'ota_updates.channel' | 'ota_updates.runtime_version' | 'ota_updates.update_id'; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the tag or attribute against. Not set for is and ns */ value?: string; }>; } | { /** * Time window to count in, such as 1h */ interval: '1m' | '5m' | '15m' | '1h' | '1d' | '1w' | '30d'; /** * Percent increase in affected users over the comparison interval that meets the condition */ value: number; /** * Earlier time window to compare the count against, such as 1w */ comparisonInterval: '5m' | '15m' | '1h' | '1d' | '1w' | '30d'; /** * Tag or attribute filters that events must match to count */ filters?: Array<{ /** * Tag key to match */ key?: string; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the tag or attribute against. Not set for is and ns */ value?: string; } | { /** * Event attribute to match, such as message or user.email */ attribute?: 'message' | 'platform' | 'environment' | 'type' | 'error.handled' | 'error.unhandled' | 'error.main_thread' | 'exception.type' | 'exception.value' | 'user.id' | 'user.email' | 'user.username' | 'user.ip_address' | 'http.method' | 'http.url' | 'http.status_code' | 'sdk.name' | 'stacktrace.code' | 'stacktrace.module' | 'stacktrace.filename' | 'stacktrace.abs_path' | 'stacktrace.package' | 'unreal.crash_type' | 'app.in_foreground' | 'os.distribution_name' | 'os.distribution_version' | 'symbolicated_in_app' | 'ota_updates.channel' | 'ota_updates.runtime_version' | 'ota_updates.update_id'; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the tag or attribute against. Not set for is and ns */ value?: string; }>; } | { /** * ID of the issue category */ value: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 19; /** * Whether the issue must be in the category or not. Defaults to true */ include?: boolean; } | { /** * Number of times the issue must have occurred */ value: number; } | 25 | 50 | 75 | 1 | { /** * Slug of the issue type */ value: 'performance_slow_db_query' | 'performance_render_blocking_asset_span' | 'performance_n_plus_one_db_queries' | 'performance_n_plus_one_db_queries_experimental' | 'performance_consecutive_db_queries' | 'performance_file_io_main_thread' | 'performance_consecutive_http' | 'performance_n_plus_one_api_calls' | 'performance_n_plus_one_api_calls_experimental' | 'performance_m_n_plus_one_db_queries' | 'performance_m_n_plus_one_db_queries_experimental' | 'performance_uncompressed_assets' | 'performance_db_main_thread' | 'performance_large_http_payload' | 'performance_http_overhead' | 'performance_p95_endpoint_regression' | 'performance_streamed_spans_exp' | 'db_query_injection_vulnerability' | 'query_injection_vulnerability' | 'profile_file_io_main_thread' | 'profile_image_decode_main_thread' | 'profile_json_decode_main_thread' | 'profile_regex_main_thread' | 'profile_frame_drop' | 'profile_function_regression' | 'llm_detected_experimental' | 'llm_detected_experimental_v2' | 'ai_detected_http' | 'ai_detected_db' | 'ai_detected_runtime_performance' | 'ai_detected_security' | 'ai_detected_code_health' | 'ai_detected_general' | 'replay_click_rage' | 'replay_hydration_error' | 'feedback' | 'web_vitals' | 'issue_stream' | 'metric_issue' | 'error' | 'uptime_domain_failure' | 'send-test-notification' | 'monitor_check_in_failure' | 'sourcemap_configuration' | 'low_value_span_configuration' | 'preprod_size_analysis'; /** * Whether the issue must be of the type or not. Defaults to true */ include?: boolean; } | { /** * Whether to compare against the oldest or newest adopted release */ releaseAgeType: 'oldest' | 'newest'; /** * Whether the event's release must be older or newer than that release */ ageComparison: 'older' | 'newer'; /** * Environment the release was adopted in */ environment: string; } | { /** * Event level: 0 sample, 10 debug, 20 info, 30 warning, 40 error, 50 fatal */ level: 0 | 10 | 20 | 30 | 40 | 50; /** * How to compare the event's level: eq, gte or lte */ match: 'eq' | 'gte' | 'lte'; } | { /** * Time window to count in, such as 1h */ interval: '1m' | '5m' | '10m' | '30m' | '1h'; /** * Percent of sessions affected in the interval that meets the condition */ value: number; /** * Tag or attribute filters that events must match to count */ filters?: Array<{ /** * Tag key to match */ key?: string; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the tag or attribute against. Not set for is and ns */ value?: string; } | { /** * Event attribute to match, such as message or user.email */ attribute?: 'message' | 'platform' | 'environment' | 'type' | 'error.handled' | 'error.unhandled' | 'error.main_thread' | 'exception.type' | 'exception.value' | 'user.id' | 'user.email' | 'user.username' | 'user.ip_address' | 'http.method' | 'http.url' | 'http.status_code' | 'sdk.name' | 'stacktrace.code' | 'stacktrace.module' | 'stacktrace.filename' | 'stacktrace.abs_path' | 'stacktrace.package' | 'unreal.crash_type' | 'app.in_foreground' | 'os.distribution_name' | 'os.distribution_version' | 'symbolicated_in_app' | 'ota_updates.channel' | 'ota_updates.runtime_version' | 'ota_updates.update_id'; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the tag or attribute against. Not set for is and ns */ value?: string; }>; } | { /** * Time window to count in, such as 1h */ interval: '1m' | '5m' | '10m' | '30m' | '1h'; /** * Percent increase in affected sessions over the comparison interval that meets the condition */ value: number; /** * Earlier time window to compare the count against, such as 1w */ comparisonInterval: '5m' | '15m' | '1h' | '1d' | '1w' | '30d'; /** * Tag or attribute filters that events must match to count */ filters?: Array<{ /** * Tag key to match */ key?: string; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the tag or attribute against. Not set for is and ns */ value?: string; } | { /** * Event attribute to match, such as message or user.email */ attribute?: 'message' | 'platform' | 'environment' | 'type' | 'error.handled' | 'error.unhandled' | 'error.main_thread' | 'exception.type' | 'exception.value' | 'user.id' | 'user.email' | 'user.username' | 'user.ip_address' | 'http.method' | 'http.url' | 'http.status_code' | 'sdk.name' | 'stacktrace.code' | 'stacktrace.module' | 'stacktrace.filename' | 'stacktrace.abs_path' | 'stacktrace.package' | 'unreal.crash_type' | 'app.in_foreground' | 'os.distribution_name' | 'os.distribution_version' | 'symbolicated_in_app' | 'ota_updates.channel' | 'ota_updates.runtime_version' | 'ota_updates.update_id'; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the tag or attribute against. Not set for is and ns */ value?: string; }>; } | Array<'rca_completed' | 'solution_completed' | 'coding_completed' | 'pr_ready_for_review'> | { /** * Tag key to match */ key?: string; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the tag against. Not set for is and ns */ value?: string; }; /** * Result the condition produces when it matches: true for alert conditions, or the priority level for monitor conditions */ conditionResult: boolean | number | number | null; }>; /** * Actions to fire when the conditions pass */ actions?: Array<{ /** * ID of the action */ id?: string; /** * Type of the action */ type?: 'slack' | 'slack_staging' | 'msteams' | 'discord' | 'pagerduty' | 'opsgenie' | 'github' | 'github_enterprise' | 'jira' | 'jira_server' | 'vsts' | 'email' | 'sentry_app' | 'plugin' | 'webhook' | 'seer_investigation'; /** * ID of the integration the action uses. Null for actions without one */ integrationId?: string | null; /** * Extra data for the action, which depends on its type */ data?: { /** * Tags to add to the message */ tags?: string; } | { /** * The fallthrough type for issue owners email notifications */ fallthroughType?: 'AllMembers' | 'ActiveMembers' | 'NoOne'; } | { /** * Dynamic form fields from customer configuration */ dynamicFormFields?: Array<{ /** * Name of the field */ name?: string; /** * Label of the field */ label?: string; /** * Type of the field, such as select or text */ type?: string; }>; /** * Additional fields that aren't part of standard fields */ additionalFields: { /** * Repository to create the issue in, as owner/name */ repo: string; /** * Labels to add to the issue */ labels?: Array | null; /** * User to assign the issue to */ assignee?: string | null; [key: string]: unknown; }; } | { /** * Dynamic form fields from customer configuration */ dynamicFormFields?: Array<{ /** * Name of the field */ name?: string; /** * Label of the field */ label?: string; /** * Type of the field, such as select or text */ type?: string; }>; /** * Additional fields that aren't part of standard fields */ additionalFields?: { [key: string]: string | null | number | boolean | Array; }; } | { [key: string]: never; } | { /** * The priority of the opsgenie action */ priority?: 'P1' | 'P2' | 'P3' | 'P4' | 'P5'; } | { /** * The priority of the pagerduty action */ priority?: 'default' | 'critical' | 'warning' | 'error' | 'info'; } | { [key: string]: string; } | { /** * Prompt the investigation runs */ prompt?: string; /** * Seer skill the investigation runs, instead of a prompt */ skill?: 'agentic_triage'; } | { /** * Values of the Sentry App's alert rule settings form, each with a name and value */ settings?: Array; } | { /** * Tags to add to the message */ tags?: string; /** * Notes to add to the message */ notes?: string; }; /** * Configuration of the action, such as targetType and targetIdentifier */ config?: { /** * ID of the target, such as a channel, user or team ID */ targetIdentifier: string; /** * Display name of the target, such as a channel name */ targetDisplay?: string | null; /** * Kind of target the action notifies, such as specific, user or team */ targetType: 'specific'; } | { /** * ID of the target, such as a channel, user or team ID */ targetIdentifier?: string | null; /** * Display name of the target, such as a channel name */ targetDisplay?: null; /** * Kind of target the action notifies, such as specific, user or team */ targetType: 'user' | 'team' | 'issue_owners'; } | { /** * ID of the target, such as a channel, user or team ID */ targetIdentifier?: null; /** * Display name of the target, such as a channel name */ targetDisplay?: null; /** * Kind of target the action notifies, such as specific, user or team */ targetType?: 'specific'; } | { /** * ID of the target, such as a channel, user or team ID */ targetIdentifier?: string; /** * Display name of the target, such as a channel name */ targetDisplay: string; /** * Kind of target the action notifies, such as specific, user or team */ targetType: 'specific'; } | { /** * ID of the target, such as a channel, user or team ID */ targetIdentifier: string; /** * Display name of the target, such as a channel name */ targetDisplay?: string | null; /** * Kind of target the action notifies, such as specific, user or team */ targetType: 'specific'; } | { /** * ID of the target, such as a channel, user or team ID */ targetIdentifier?: string | null; /** * Display name of the target, such as a channel name */ targetDisplay?: string | null; /** * Kind of target the action notifies, such as specific, user or team */ targetType?: null; } | { [key: string]: never; } | { /** * ID of the target, such as a channel, user or team ID */ targetIdentifier: string; /** * Display name of the target, such as a channel name */ targetDisplay?: string | null; /** * Kind of target the action notifies, such as specific, user or team */ targetType: 'sentry_app'; } | { /** * ID of the target, such as a channel, user or team ID */ targetIdentifier?: string; /** * Display name of the target, such as a channel name */ targetDisplay?: string; /** * Kind of target the action notifies, such as specific, user or team */ targetType: 'specific'; } | { /** * ID of the target, such as a channel, user or team ID */ targetIdentifier?: string; /** * Display name of the target, such as a channel name */ targetDisplay?: null; /** * Kind of target the action notifies, such as specific, user or team */ targetType?: null; }; /** * Status of the action */ status?: 'active' | 'disabled' | 'pending_deletion' | 'deletion_in_progress'; }>; }> | null; /** * Name of the environment the workflow is limited to. Null for all environments */ environment: string | null; /** * Configuration of the workflow, such as frequency in minutes */ config: { /** * How often the workflow should fire for a Group (minutes) */ frequency?: number; }; /** * IDs of the monitors connected to the workflow */ detectorIds: Array | null; /** * Whether the workflow is enabled */ enabled: boolean; /** * When the workflow last fired (ISO 8601) */ lastTriggered: string | null; /** * Team or user that owns the workflow, such as user:123 or team:456 */ owner: string | null; }; }; export type GetOrganizationWorkflowResponse = GetOrganizationWorkflowResponses[keyof GetOrganizationWorkflowResponses]; export type UpdateOrganizationWorkflowData = { /** * Allows parameters to be defined in snake case, but passed as camel case. * * Errors are output in camel case. */ body: { /** * The name of the alert */ name: string; /** * The ID of the existing alert */ id?: string; /** * Whether the alert is enabled or disabled */ enabled?: boolean; /** * The IDs of the monitors to connect this alert to. Use 'Fetch an Organization's Monitors' to find the IDs. */ detectorIds?: Array; /** * * Typically the frequency at which the alert will fire, in minutes. * * - `0`: 0 minutes * - `5`: 5 minutes * - `10`: 10 minutes * - `30`: 30 minutes * - `60`: 1 hour * - `180`: 3 hours * - `720`: 12 hours * - `1440`: 24 hours * * ```json * { * "frequency": 60 * } * ``` * */ config?: { [key: string]: unknown; }; /** * The name of the environment for the alert to evaluate in */ environment?: string | null; /** * The conditions on which the alert will trigger. See available options below. * ```json * { * "triggers": { * "organizationId": "1", * "logicType": "any-short", * "conditions": [ * { * "type": "first_seen_event", * "comparison": true, * "conditionResult": true * }, * { * "type": "issue_resolved_trigger", * "comparison": true, * "conditionResult": true * }, * { * "type": "reappeared_event", * "comparison": true, * "conditionResult": true * }, * { * "type": "regression_event", * "comparison": true, * "conditionResult": true * }, * { * "type": "seer_activity_trigger", * "comparison": [ * "rca_completed", * "solution_completed", * "coding_completed", * "pr_ready_for_review" * ], * "conditionResult": true * } * ] * } * } * ``` * */ triggers?: { id?: number; logicType: 'any-short'; conditions?: Array<{ id?: number; type: 'every_event'; comparison: boolean; conditionResult: boolean; } | { id?: number; type: 'first_seen_event'; comparison: boolean; conditionResult: boolean; } | { id?: number; type: 'issue_resolved_trigger'; comparison: boolean; conditionResult: boolean; } | { id?: number; type: 'reappeared_event'; comparison: boolean; conditionResult: boolean; } | { id?: number; type: 'regression_event'; comparison: boolean; conditionResult: boolean; } | { id?: number; type: 'seer_activity_trigger'; comparison: Array<'rca_completed' | 'solution_completed' | 'coding_completed' | 'pr_ready_for_review'>; conditionResult: boolean; }>; }; /** * The filters to run before the action will fire and the action(s) to fire. * * `logicType` can be one of `any-short`, `all`, or `none`. * * Below is a basic example. See below for all other options. * * ```json * "actionFilters": [ * { * "logicType": "any", * "conditions": [ * { * "type": "level", * "comparison": { * "level": 50, * "match": "eq" * }, * "conditionResult": true * } * ], * "actions": [ * { * "id": "123", * "type": "email", * "integrationId": null, * "data": {}, * "config": { * "targetType": "user", * "targetDisplay": null, * "targetIdentifier": "56789" * }, * "status": "active" * } * ] * } * ] * ``` * * ## Conditions * * **Issue Age** * - `time`: One of `minute`, `hour`, `day`, or `week`. * - `value`: A positive integer. * - `comparisonType`: One of `older` or `newer`. * ```json * { * "type": "age_comparison", * "comparison": { * "time": "minute", * "value": 10, * "comparisonType": "older" * }, * "conditionResult": true * } * * ``` * * **Issue Assignment** * - `targetType`: Who the issue is assigned to * - `Unassigned`: Unassigned * - `Member`: Assigned to a user * - `Team`: Assigned to a team * - `targetIdentifier`: The ID of the user or team from the `targetType`. Enter "" if `targetType` is `Unassigned`. * ```json * { * "type": "assigned_to", * "comparison": { * "targetType": "Member", * "targetIdentifier": 123456 * }, * "conditionResult": true * } * ``` * * **Issue Category** * - `value`: The issue category to filter to. * - `1`: Error issues * - `6`: Feedback issues * - `10`: Outage issues * - `11`: Metric issues * - `12`: DB Query issues * - `13`: HTTP Client issues * - `14`: Front end issues * - `15`: Mobile issues * - `17`: Preprod issues * - `19`: Configuration issues * ```json * { * "type": "issue_category", * "comparison": { * "value": 1 * }, * "conditionResult": true * } * ``` * * **Issue Frequency** * - `value`: A positive integer representing how many times the issue has to happen before the alert will fire. * ```json * { * "type": "issue_occurrences", * "comparison": { * "value": 10 * }, * "conditionResult": true * } * ``` * * **De-escalation** * - `comparison`: The priority threshold the issue must de-escalate below. * - `75`: High priority * - `50`: Medium priority * - `25`: Low priority * ```json * { * "type": "issue_priority_deescalating", * "comparison": 75, * "conditionResult": true * } * ``` * * **Issue Priority** * - `comparison`: The priority the issue must be for the alert to fire. * - `75`: High priority * - `50`: Medium priority * - `25`: Low priority * ```json * { * "type": "issue_priority_greater_or_equal", * "comparison": 75, * "conditionResult": true * } * ``` * * **Number of Users Affected** * - `value`: A positive integer representing the number of users that must be affected before the alert will fire. * - `filters`: A list of additional sub-filters to evaluate before the alert will fire. * - `interval`: The time period in which to evaluate the value. e.g. Number of users affected by an issue is more than `value` in `interval`. * - `1m`: 1 minute * - `5m`: 5 minutes * - `15m`: 15 minutes * - `1h`: 1 hour * - `1d`: 1 day * - `1w`: 1 week * - `30d`: 30 days * ```json * { * "type": "event_unique_user_frequency_count", * "comparison": { * "value": 100, * "filters": [{"key": "foo", "match": "eq", "value": "bar"}], * "interval": "1h" * }, * "conditionResult": true * } * ``` * * **Number of Events** * - `value`: A positive integer representing the number of events in an issue that must come in before the alert will fire * - `interval`: The time period in which to evaluate the value. e.g. Number of events in an issue is more than `value` in `interval`. * - `1m`: 1 minute * - `5m`: 5 minutes * - `15m`: 15 minutes * - `1h`: 1 hour * - `1d`: 1 day * - `1w`: 1 week * - `30d`: 30 days * ```json * { * "type": "event_frequency_count", * "comparison": { * "value": 100, * "interval": "1h" * }, * "conditionResult": true * } * ``` * * **Percent of Events** * - `value`: A positive integer representing the number of events in an issue that must come in before the alert will fire * - `interval`: The time period in which to evaluate the value. * - `1m`: 1 minute * - `5m`: 5 minutes * - `15m`: 15 minutes * - `1h`: 1 hour * - `1d`: 1 day * - `1w`: 1 week * - `30d`: 30 days * - `comparisonInterval`: The time period to compare against. * - `5m`: 5 minutes * - `15m`: 15 minutes * - `1h`: 1 hour * - `1d`: 1 day * - `1w`: 1 week * - `30d`: 30 days * ```json * { * "type": "event_frequency_percent", * "comparison": { * "value": 100, * "interval": "1h", * "comparisonInterval": "1w" * }, * "conditionResult": true * } * * ``` * * **Percentage of Sessions Affected Count** * - `value`: A positive integer representing the number of events in an issue that must come in before the alert will fire * - `interval`: The time period in which to evaluate the value. e.g. Percentage of sessions affected by an issue is more than `value` in `interval`. * - `1m`: 1 minute * - `5m`: 5 minutes * - `10m`: 10 minutes * - `30m`: 30 minutes * - `1h`: 1 hour * ```json * { * "type": "percent_sessions_count", * "comparison": { * "value": 10, * "interval": "1h" * }, * "conditionResult": true * } * ``` * * **Percentage of Sessions Affected Percent** * - `value`: A positive integer representing the number of events in an issue that must come in before the alert will fire * - `interval`: The time period in which to evaluate the value. * - `1m`: 1 minute * - `5m`: 5 minutes * - `10m`: 10 minutes * - `30m`: 30 minutes * - `1h`: 1 hour * - `comparisonInterval`: The time period to compare against. * - `5m`: 5 minutes * - `15m`: 15 minutes * - `1h`: 1 hour * - `1d`: 1 day * - `1w`: 1 week * - `30d`: 30 days * ```json * { * "type": "percent_sessions_percent", * "comparison": { * "value": 10, * "interval": "1h", * "comparisonInterval": "1w" * }, * "conditionResult": true * } * ``` * * **Event Attribute** * The event's `attribute` value `match` `value` * * - `attribute`: The event attribute to match on. Valid values are: `message`, `platform`, `environment`, `type`, `error.handled`, `error.unhandled`, `error.main_thread`, `exception.type`, `exception.value`, `user.id`, `user.email`, `user.username`, `user.ip_address`, `http.method`, `http.url`, `http.status_code`, `sdk.name`, `stacktrace.code`, `stacktrace.module`, `stacktrace.filename`, `stacktrace.abs_path`, `stacktrace.package`, `unreal.crash_type`, `app.in_foreground`. * - `match`: The comparison operator * - `co`: Contains * - `nc`: Does not contain * - `eq`: Equals * - `ne`: Does not equal * - `sw`: Starts with * - `ew`: Ends with * - `is`: Is set * - `ns`: Is not set * - `value`: A string. Must be omitted when match is `is` or `ns`; required otherwise. * * ```json * { * "type": "event_attribute", * "comparison": { * "match": "co", * "value": "bar", * "attribute": "message" * }, * "conditionResult": true * } * ``` * * **Tagged Event** * The event's tags `key` match `value` * - `key`: The tag value * - `match`: The comparison operator * - `co`: Contains * - `nc`: Does not contain * - `eq`: Equals * - `ne`: Does not equal * - `sw`: Starts with * - `ew`: Ends with * - `is`: Is set * - `ns`: Is not set * - `value`: A string. Must be omitted when match is `is` or `ns`; required otherwise. * * ```json * { * "type": "tagged_event", * "comparison": { * "key": "level", * "match": "eq", * "value": "error" * }, * "conditionResult": true * } * ``` * * **Latest Release** * The event is from the latest release * * ```json * { * "type": "latest_release", * "comparison": true, * "conditionResult": true * } * ``` * * **Release Age** * ```json * { * "type": "latest_adopted_release", * "comparison": { * "environment": "production", * "ageComparison": "older", * "releaseAgeType": "oldest" * }, * "conditionResult": true * } * ``` * * **Event Level** * The event's level is `match` `level` * - `match`: The comparison operator * - `eq`: Equal * - `gte`: Greater than or equal * - `lte`: Less than or equal * - `level`: The event level * - `50`: Fatal * - `40`: Error * - `30`: Warning * - `20`: Info * - `10`: Debug * - `0`: Sample * * ```json * { * "type": "level", * "comparison": { * "level": 50, * "match": "eq" * }, * "conditionResult": true * } * ``` * * ## Actions * A list of actions that take place when all required conditions and filters for the alert are met. See below for a list of possible actions. * * * **Notify on Preferred Channel** * - `data`: A dictionary with the fallthrough type option when choosing to notify Suggested Assignees. Leave empty if notifying a user or team. * - `fallthroughType` * - `ActiveMembers` * - `AllMembers` * - `NoOne` * - `config`: A dictionary with the configuration options for notification. * - `targetType`: The type of recipient to notify * - `user`: User * - `team`: Team * - `issue_owners`: Suggested Assignees * - `targetDisplay`: null * - `targetIdentifier`: The id of the user or team to notify. Leave null for Suggested Assignees. * * ```json * { * "type":"email", * "integrationId":null, * "data":{}, * "config":{ * "targetType":"user", * "targetDisplay":null, * "targetIdentifier":"232692" * }, * "status":"active" * }, * { * "type":"email", * "integrationId":null, * "data":{ * "fallthroughType":"ActiveMembers" * }, * "config":{ * "targetType":"issue_owners", * "targetDisplay":null, * "targetIdentifier":""} * , * "status":"active" * } * ``` * **Notify on Slack** * - `targetDisplay`: The name of the channel to notify in. * `integrationId`: The stringified ID of the integration. * * ```json * { * "type":"slack", * "config":{ * "targetType":"specific", * "targetIdentifier":"", * "targetDisplay":"notify-errors" * }, * "integrationId":"1", * "data":{}, * "status":"active" * } * ``` * * **Notify on PagerDuty** * - `targetDisplay`: The name of the service to create the ticket in. * - `integrationId`: The stringified ID of the integration. * - `data["priority"]`: The severity level for the notification. * * ```json * { * "type":"pagerduty", * "config":{ * "targetType":"specific", * "targetIdentifier":"123456", * "targetDisplay":"Error Service" * }, * "integrationId":"2345", * "data":{ * "priority":"default" * }, * "status":"active" * } * ``` * * **Notify on Discord** * - `targetDisplay`: The name of the service to create the ticket in. * - `integrationId`: The stringified ID of the integration. * - `data["tags"]`: Comma separated list of tags to add to the notification. * * ```json * { * "type":"discord", * "config":{ * "targetType":"specific", * "targetIdentifier":"12345", * "targetDisplay":"" * }, * "integrationId":"1234", * "data":{ * "tags":"transaction,environment" * }, * "status":"active" * } * ``` * * **Notify on MSTeams** * - `targetIdentifier` - The integration ID associated with the Microsoft Teams team. * - `targetDisplay` - The name of the channel to send the notification to. * - `integrationId`: The stringified ID of the integration. * ```json * { * "type":"msteams", * "config":{ * "targetType":"specific", * "targetIdentifier":"19:a4b3kghaghgkjah357y6847@thread.skype", * "targetDisplay":"notify-errors" * }, * "integrationId":"1", * "data":{}, * "status":"active" * } * ``` * * **Notify on OpsGenie** * - `targetDisplay`: The name of the Opsgenie team. * - `targetIdentifier`: The ID of the Opsgenie team to send the notification to. * - `integrationId`: The stringified ID of the integration. * - `data["priority"]`: The priority level for the notification. * * ```json * { * "type":"opsgenie", * "config":{ * "targetType":"specific", * "targetIdentifier":"123456-Error-Service", * "targetDisplay":"Error Service" * }, * "integrationId":"2345", * "data":{ * "priority":"P3" * }, * "status":"active" * } * ``` * * **Notify on Azure DevOps** * - `integrationId`: The stringified ID of the integration. * - `data` - A list of any fields you want to include in the ticket as objects. * * ```json * { * "type":"vsts", * "config":{ * "targetType":"specific", * "targetIdentifier":", * "targetDisplay":"" * }, * "integrationId":"2345", * "data":{...}, * "status":"active" * } * ``` * * **Create a Jira ticket** * - `integrationId`: The stringified ID of the integration. * - `data` - A list of any fields you want to include in the ticket as objects. * * ```json * { * "type":"jira", * "config":{ * "targetType":"specific", * "targetIdentifier":", * "targetDisplay":"" * }, * "integrationId":"2345", * "data":{...}, * "status":"active" * } * ``` * * **Create a Jira Server ticket** * - `integrationId`: The stringified ID of the integration. * - `data` - A list of any fields you want to include in the ticket as objects. * * ```json * { * "type":"jira_server", * "config":{ * "targetType":"specific", * "targetIdentifier":", * "targetDisplay":"" * }, * "integrationId":"2345", * "data":{...}, * "status":"active" * } * ``` * * **Create a GitHub issue** * - `integrationId`: The stringified ID of the integration. * - `data` - A list of any fields you want to include in the ticket as objects. * * ```json * { * "type":"github", * "config":{ * "targetType":"specific", * "targetIdentifier":", * "targetDisplay":"" * }, * "integrationId":"2345", * "data":{ * "additional_fields": { * "assignee": "", * "integration": "2345", * "labels": [], * "repo": "example-repo", * }, * "dynamic_form_fields": [ * { * "choices": [["YourOrg/example-repo", "example-repo"]], * "default": "YourOrg/example-repo", * "label": "GitHub Repository", * "name": "repo", * "required": true * "type": "select", * "updatesForm": true, * "url": "/extensions/github/search/example-repo/1234567/", * }, * ], * }, * "status":"active" * } * ``` * */ actionFilters?: Array<{ id?: number; /** * * `any` * * `any-short` * * `all` * * `none` */ logicType: 'any' | 'any-short' | 'all' | 'none'; conditions?: Array<{ id?: number; type: 'age_comparison'; comparison: { comparisonType: 'older' | 'newer'; value: number; time: 'minute' | 'hour' | 'day' | 'week'; }; conditionResult: boolean; } | { id?: number; type: 'assigned_to'; comparison: { targetType: 'Unassigned' | 'Team' | 'Member'; targetIdentifier?: number | string; }; conditionResult: boolean; } | { id?: number; type: 'event_attribute'; comparison: ({ attribute: 'message' | 'platform' | 'environment' | 'type' | 'error.handled' | 'error.unhandled' | 'error.main_thread' | 'exception.type' | 'exception.value' | 'user.id' | 'user.email' | 'user.username' | 'user.ip_address' | 'http.method' | 'http.url' | 'http.status_code' | 'sdk.name' | 'stacktrace.code' | 'stacktrace.module' | 'stacktrace.filename' | 'stacktrace.abs_path' | 'stacktrace.package' | 'unreal.crash_type' | 'app.in_foreground' | 'os.distribution_name' | 'os.distribution_version' | 'symbolicated_in_app' | 'ota_updates.channel' | 'ota_updates.runtime_version' | 'ota_updates.update_id'; match: 'is' | 'ns'; } | { attribute: 'message' | 'platform' | 'environment' | 'type' | 'error.handled' | 'error.unhandled' | 'error.main_thread' | 'exception.type' | 'exception.value' | 'user.id' | 'user.email' | 'user.username' | 'user.ip_address' | 'http.method' | 'http.url' | 'http.status_code' | 'sdk.name' | 'stacktrace.code' | 'stacktrace.module' | 'stacktrace.filename' | 'stacktrace.abs_path' | 'stacktrace.package' | 'unreal.crash_type' | 'app.in_foreground' | 'os.distribution_name' | 'os.distribution_version' | 'symbolicated_in_app' | 'ota_updates.channel' | 'ota_updates.runtime_version' | 'ota_updates.update_id'; match: unknown; value: string; }) & { attribute?: 'message' | 'platform' | 'environment' | 'type' | 'error.handled' | 'error.unhandled' | 'error.main_thread' | 'exception.type' | 'exception.value' | 'user.id' | 'user.email' | 'user.username' | 'user.ip_address' | 'http.method' | 'http.url' | 'http.status_code' | 'sdk.name' | 'stacktrace.code' | 'stacktrace.module' | 'stacktrace.filename' | 'stacktrace.abs_path' | 'stacktrace.package' | 'unreal.crash_type' | 'app.in_foreground' | 'os.distribution_name' | 'os.distribution_version' | 'symbolicated_in_app' | 'ota_updates.channel' | 'ota_updates.runtime_version' | 'ota_updates.update_id'; match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; value?: string; }; conditionResult: boolean; } | { id?: number; type: 'event_frequency_count'; comparison: { interval: '1m' | '5m' | '15m' | '1h' | '1d' | '1w' | '30d'; value: number; filters?: Array<(({ key: string; match: 'is' | 'ns'; } | { key: string; match: unknown; value: string; }) & { key?: string; match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; value?: string; }) | (({ attribute: 'message' | 'platform' | 'environment' | 'type' | 'error.handled' | 'error.unhandled' | 'error.main_thread' | 'exception.type' | 'exception.value' | 'user.id' | 'user.email' | 'user.username' | 'user.ip_address' | 'http.method' | 'http.url' | 'http.status_code' | 'sdk.name' | 'stacktrace.code' | 'stacktrace.module' | 'stacktrace.filename' | 'stacktrace.abs_path' | 'stacktrace.package' | 'unreal.crash_type' | 'app.in_foreground' | 'os.distribution_name' | 'os.distribution_version' | 'symbolicated_in_app' | 'ota_updates.channel' | 'ota_updates.runtime_version' | 'ota_updates.update_id'; match: 'is' | 'ns'; } | { attribute: 'message' | 'platform' | 'environment' | 'type' | 'error.handled' | 'error.unhandled' | 'error.main_thread' | 'exception.type' | 'exception.value' | 'user.id' | 'user.email' | 'user.username' | 'user.ip_address' | 'http.method' | 'http.url' | 'http.status_code' | 'sdk.name' | 'stacktrace.code' | 'stacktrace.module' | 'stacktrace.filename' | 'stacktrace.abs_path' | 'stacktrace.package' | 'unreal.crash_type' | 'app.in_foreground' | 'os.distribution_name' | 'os.distribution_version' | 'symbolicated_in_app' | 'ota_updates.channel' | 'ota_updates.runtime_version' | 'ota_updates.update_id'; match: unknown; value: string; }) & { attribute?: 'message' | 'platform' | 'environment' | 'type' | 'error.handled' | 'error.unhandled' | 'error.main_thread' | 'exception.type' | 'exception.value' | 'user.id' | 'user.email' | 'user.username' | 'user.ip_address' | 'http.method' | 'http.url' | 'http.status_code' | 'sdk.name' | 'stacktrace.code' | 'stacktrace.module' | 'stacktrace.filename' | 'stacktrace.abs_path' | 'stacktrace.package' | 'unreal.crash_type' | 'app.in_foreground' | 'os.distribution_name' | 'os.distribution_version' | 'symbolicated_in_app' | 'ota_updates.channel' | 'ota_updates.runtime_version' | 'ota_updates.update_id'; match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; value?: string; })>; }; conditionResult: boolean; } | { id?: number; type: 'event_frequency_percent'; comparison: { interval: '1m' | '5m' | '15m' | '1h' | '1d' | '1w' | '30d'; value: number; comparisonInterval: '5m' | '15m' | '1h' | '1d' | '1w' | '30d'; filters?: Array<(({ key: string; match: 'is' | 'ns'; } | { key: string; match: unknown; value: string; }) & { key?: string; match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; value?: string; }) | (({ attribute: 'message' | 'platform' | 'environment' | 'type' | 'error.handled' | 'error.unhandled' | 'error.main_thread' | 'exception.type' | 'exception.value' | 'user.id' | 'user.email' | 'user.username' | 'user.ip_address' | 'http.method' | 'http.url' | 'http.status_code' | 'sdk.name' | 'stacktrace.code' | 'stacktrace.module' | 'stacktrace.filename' | 'stacktrace.abs_path' | 'stacktrace.package' | 'unreal.crash_type' | 'app.in_foreground' | 'os.distribution_name' | 'os.distribution_version' | 'symbolicated_in_app' | 'ota_updates.channel' | 'ota_updates.runtime_version' | 'ota_updates.update_id'; match: 'is' | 'ns'; } | { attribute: 'message' | 'platform' | 'environment' | 'type' | 'error.handled' | 'error.unhandled' | 'error.main_thread' | 'exception.type' | 'exception.value' | 'user.id' | 'user.email' | 'user.username' | 'user.ip_address' | 'http.method' | 'http.url' | 'http.status_code' | 'sdk.name' | 'stacktrace.code' | 'stacktrace.module' | 'stacktrace.filename' | 'stacktrace.abs_path' | 'stacktrace.package' | 'unreal.crash_type' | 'app.in_foreground' | 'os.distribution_name' | 'os.distribution_version' | 'symbolicated_in_app' | 'ota_updates.channel' | 'ota_updates.runtime_version' | 'ota_updates.update_id'; match: unknown; value: string; }) & { attribute?: 'message' | 'platform' | 'environment' | 'type' | 'error.handled' | 'error.unhandled' | 'error.main_thread' | 'exception.type' | 'exception.value' | 'user.id' | 'user.email' | 'user.username' | 'user.ip_address' | 'http.method' | 'http.url' | 'http.status_code' | 'sdk.name' | 'stacktrace.code' | 'stacktrace.module' | 'stacktrace.filename' | 'stacktrace.abs_path' | 'stacktrace.package' | 'unreal.crash_type' | 'app.in_foreground' | 'os.distribution_name' | 'os.distribution_version' | 'symbolicated_in_app' | 'ota_updates.channel' | 'ota_updates.runtime_version' | 'ota_updates.update_id'; match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; value?: string; })>; }; conditionResult: boolean; } | { id?: number; type: 'event_unique_user_frequency_count'; comparison: { interval: '1m' | '5m' | '15m' | '1h' | '1d' | '1w' | '30d'; value: number; filters?: Array<(({ key: string; match: 'is' | 'ns'; } | { key: string; match: unknown; value: string; }) & { key?: string; match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; value?: string; }) | (({ attribute: 'message' | 'platform' | 'environment' | 'type' | 'error.handled' | 'error.unhandled' | 'error.main_thread' | 'exception.type' | 'exception.value' | 'user.id' | 'user.email' | 'user.username' | 'user.ip_address' | 'http.method' | 'http.url' | 'http.status_code' | 'sdk.name' | 'stacktrace.code' | 'stacktrace.module' | 'stacktrace.filename' | 'stacktrace.abs_path' | 'stacktrace.package' | 'unreal.crash_type' | 'app.in_foreground' | 'os.distribution_name' | 'os.distribution_version' | 'symbolicated_in_app' | 'ota_updates.channel' | 'ota_updates.runtime_version' | 'ota_updates.update_id'; match: 'is' | 'ns'; } | { attribute: 'message' | 'platform' | 'environment' | 'type' | 'error.handled' | 'error.unhandled' | 'error.main_thread' | 'exception.type' | 'exception.value' | 'user.id' | 'user.email' | 'user.username' | 'user.ip_address' | 'http.method' | 'http.url' | 'http.status_code' | 'sdk.name' | 'stacktrace.code' | 'stacktrace.module' | 'stacktrace.filename' | 'stacktrace.abs_path' | 'stacktrace.package' | 'unreal.crash_type' | 'app.in_foreground' | 'os.distribution_name' | 'os.distribution_version' | 'symbolicated_in_app' | 'ota_updates.channel' | 'ota_updates.runtime_version' | 'ota_updates.update_id'; match: unknown; value: string; }) & { attribute?: 'message' | 'platform' | 'environment' | 'type' | 'error.handled' | 'error.unhandled' | 'error.main_thread' | 'exception.type' | 'exception.value' | 'user.id' | 'user.email' | 'user.username' | 'user.ip_address' | 'http.method' | 'http.url' | 'http.status_code' | 'sdk.name' | 'stacktrace.code' | 'stacktrace.module' | 'stacktrace.filename' | 'stacktrace.abs_path' | 'stacktrace.package' | 'unreal.crash_type' | 'app.in_foreground' | 'os.distribution_name' | 'os.distribution_version' | 'symbolicated_in_app' | 'ota_updates.channel' | 'ota_updates.runtime_version' | 'ota_updates.update_id'; match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; value?: string; })>; }; conditionResult: boolean; } | { id?: number; type: 'event_unique_user_frequency_percent'; comparison: { interval: '1m' | '5m' | '15m' | '1h' | '1d' | '1w' | '30d'; value: number; comparisonInterval: '5m' | '15m' | '1h' | '1d' | '1w' | '30d'; filters?: Array<(({ key: string; match: 'is' | 'ns'; } | { key: string; match: unknown; value: string; }) & { key?: string; match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; value?: string; }) | (({ attribute: 'message' | 'platform' | 'environment' | 'type' | 'error.handled' | 'error.unhandled' | 'error.main_thread' | 'exception.type' | 'exception.value' | 'user.id' | 'user.email' | 'user.username' | 'user.ip_address' | 'http.method' | 'http.url' | 'http.status_code' | 'sdk.name' | 'stacktrace.code' | 'stacktrace.module' | 'stacktrace.filename' | 'stacktrace.abs_path' | 'stacktrace.package' | 'unreal.crash_type' | 'app.in_foreground' | 'os.distribution_name' | 'os.distribution_version' | 'symbolicated_in_app' | 'ota_updates.channel' | 'ota_updates.runtime_version' | 'ota_updates.update_id'; match: 'is' | 'ns'; } | { attribute: 'message' | 'platform' | 'environment' | 'type' | 'error.handled' | 'error.unhandled' | 'error.main_thread' | 'exception.type' | 'exception.value' | 'user.id' | 'user.email' | 'user.username' | 'user.ip_address' | 'http.method' | 'http.url' | 'http.status_code' | 'sdk.name' | 'stacktrace.code' | 'stacktrace.module' | 'stacktrace.filename' | 'stacktrace.abs_path' | 'stacktrace.package' | 'unreal.crash_type' | 'app.in_foreground' | 'os.distribution_name' | 'os.distribution_version' | 'symbolicated_in_app' | 'ota_updates.channel' | 'ota_updates.runtime_version' | 'ota_updates.update_id'; match: unknown; value: string; }) & { attribute?: 'message' | 'platform' | 'environment' | 'type' | 'error.handled' | 'error.unhandled' | 'error.main_thread' | 'exception.type' | 'exception.value' | 'user.id' | 'user.email' | 'user.username' | 'user.ip_address' | 'http.method' | 'http.url' | 'http.status_code' | 'sdk.name' | 'stacktrace.code' | 'stacktrace.module' | 'stacktrace.filename' | 'stacktrace.abs_path' | 'stacktrace.package' | 'unreal.crash_type' | 'app.in_foreground' | 'os.distribution_name' | 'os.distribution_version' | 'symbolicated_in_app' | 'ota_updates.channel' | 'ota_updates.runtime_version' | 'ota_updates.update_id'; match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; value?: string; })>; }; conditionResult: boolean; } | { id?: number; type: 'issue_category'; comparison: { value: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 19; include?: boolean; }; conditionResult: boolean; } | { id?: number; type: 'issue_occurrences'; comparison: { value: number; }; conditionResult: boolean; } | { id?: number; type: 'issue_priority_deescalating'; comparison: 25 | 50 | 75; conditionResult: boolean; } | { id?: number; type: 'issue_priority_greater_or_equal'; comparison: 25 | 50 | 75; conditionResult: boolean; } | { id?: number; type: 'issue_type'; comparison: { value: 'performance_slow_db_query' | 'performance_render_blocking_asset_span' | 'performance_n_plus_one_db_queries' | 'performance_n_plus_one_db_queries_experimental' | 'performance_consecutive_db_queries' | 'performance_file_io_main_thread' | 'performance_consecutive_http' | 'performance_n_plus_one_api_calls' | 'performance_n_plus_one_api_calls_experimental' | 'performance_m_n_plus_one_db_queries' | 'performance_m_n_plus_one_db_queries_experimental' | 'performance_uncompressed_assets' | 'performance_db_main_thread' | 'performance_large_http_payload' | 'performance_http_overhead' | 'performance_p95_endpoint_regression' | 'performance_streamed_spans_exp' | 'db_query_injection_vulnerability' | 'query_injection_vulnerability' | 'profile_file_io_main_thread' | 'profile_image_decode_main_thread' | 'profile_json_decode_main_thread' | 'profile_regex_main_thread' | 'profile_frame_drop' | 'profile_function_regression' | 'llm_detected_experimental' | 'llm_detected_experimental_v2' | 'ai_detected_http' | 'ai_detected_db' | 'ai_detected_runtime_performance' | 'ai_detected_security' | 'ai_detected_code_health' | 'ai_detected_general' | 'replay_click_rage' | 'replay_hydration_error' | 'feedback' | 'web_vitals' | 'issue_stream' | 'metric_issue' | 'error' | 'uptime_domain_failure' | 'send-test-notification' | 'monitor_check_in_failure' | 'sourcemap_configuration' | 'low_value_span_configuration' | 'preprod_size_analysis'; include?: boolean; }; conditionResult: boolean; } | { id?: number; type: 'latest_adopted_release'; comparison: { releaseAgeType: 'oldest' | 'newest'; ageComparison: 'older' | 'newer'; environment: string; }; conditionResult: boolean; } | { id?: number; type: 'latest_release'; comparison: boolean; conditionResult: boolean; } | { id?: number; type: 'level'; comparison: { level: 0 | 10 | 20 | 30 | 40 | 50; match: 'eq' | 'gte' | 'lte'; }; conditionResult: boolean; } | { id?: number; type: 'percent_sessions_count'; comparison: { interval: '1m' | '5m' | '10m' | '30m' | '1h'; value: number; filters?: Array<(({ key: string; match: 'is' | 'ns'; } | { key: string; match: unknown; value: string; }) & { key?: string; match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; value?: string; }) | (({ attribute: 'message' | 'platform' | 'environment' | 'type' | 'error.handled' | 'error.unhandled' | 'error.main_thread' | 'exception.type' | 'exception.value' | 'user.id' | 'user.email' | 'user.username' | 'user.ip_address' | 'http.method' | 'http.url' | 'http.status_code' | 'sdk.name' | 'stacktrace.code' | 'stacktrace.module' | 'stacktrace.filename' | 'stacktrace.abs_path' | 'stacktrace.package' | 'unreal.crash_type' | 'app.in_foreground' | 'os.distribution_name' | 'os.distribution_version' | 'symbolicated_in_app' | 'ota_updates.channel' | 'ota_updates.runtime_version' | 'ota_updates.update_id'; match: 'is' | 'ns'; } | { attribute: 'message' | 'platform' | 'environment' | 'type' | 'error.handled' | 'error.unhandled' | 'error.main_thread' | 'exception.type' | 'exception.value' | 'user.id' | 'user.email' | 'user.username' | 'user.ip_address' | 'http.method' | 'http.url' | 'http.status_code' | 'sdk.name' | 'stacktrace.code' | 'stacktrace.module' | 'stacktrace.filename' | 'stacktrace.abs_path' | 'stacktrace.package' | 'unreal.crash_type' | 'app.in_foreground' | 'os.distribution_name' | 'os.distribution_version' | 'symbolicated_in_app' | 'ota_updates.channel' | 'ota_updates.runtime_version' | 'ota_updates.update_id'; match: unknown; value: string; }) & { attribute?: 'message' | 'platform' | 'environment' | 'type' | 'error.handled' | 'error.unhandled' | 'error.main_thread' | 'exception.type' | 'exception.value' | 'user.id' | 'user.email' | 'user.username' | 'user.ip_address' | 'http.method' | 'http.url' | 'http.status_code' | 'sdk.name' | 'stacktrace.code' | 'stacktrace.module' | 'stacktrace.filename' | 'stacktrace.abs_path' | 'stacktrace.package' | 'unreal.crash_type' | 'app.in_foreground' | 'os.distribution_name' | 'os.distribution_version' | 'symbolicated_in_app' | 'ota_updates.channel' | 'ota_updates.runtime_version' | 'ota_updates.update_id'; match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; value?: string; })>; }; conditionResult: boolean; } | { id?: number; type: 'percent_sessions_percent'; comparison: { interval: '1m' | '5m' | '10m' | '30m' | '1h'; value: number; comparisonInterval: '5m' | '15m' | '1h' | '1d' | '1w' | '30d'; filters?: Array<(({ key: string; match: 'is' | 'ns'; } | { key: string; match: unknown; value: string; }) & { key?: string; match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; value?: string; }) | (({ attribute: 'message' | 'platform' | 'environment' | 'type' | 'error.handled' | 'error.unhandled' | 'error.main_thread' | 'exception.type' | 'exception.value' | 'user.id' | 'user.email' | 'user.username' | 'user.ip_address' | 'http.method' | 'http.url' | 'http.status_code' | 'sdk.name' | 'stacktrace.code' | 'stacktrace.module' | 'stacktrace.filename' | 'stacktrace.abs_path' | 'stacktrace.package' | 'unreal.crash_type' | 'app.in_foreground' | 'os.distribution_name' | 'os.distribution_version' | 'symbolicated_in_app' | 'ota_updates.channel' | 'ota_updates.runtime_version' | 'ota_updates.update_id'; match: 'is' | 'ns'; } | { attribute: 'message' | 'platform' | 'environment' | 'type' | 'error.handled' | 'error.unhandled' | 'error.main_thread' | 'exception.type' | 'exception.value' | 'user.id' | 'user.email' | 'user.username' | 'user.ip_address' | 'http.method' | 'http.url' | 'http.status_code' | 'sdk.name' | 'stacktrace.code' | 'stacktrace.module' | 'stacktrace.filename' | 'stacktrace.abs_path' | 'stacktrace.package' | 'unreal.crash_type' | 'app.in_foreground' | 'os.distribution_name' | 'os.distribution_version' | 'symbolicated_in_app' | 'ota_updates.channel' | 'ota_updates.runtime_version' | 'ota_updates.update_id'; match: unknown; value: string; }) & { attribute?: 'message' | 'platform' | 'environment' | 'type' | 'error.handled' | 'error.unhandled' | 'error.main_thread' | 'exception.type' | 'exception.value' | 'user.id' | 'user.email' | 'user.username' | 'user.ip_address' | 'http.method' | 'http.url' | 'http.status_code' | 'sdk.name' | 'stacktrace.code' | 'stacktrace.module' | 'stacktrace.filename' | 'stacktrace.abs_path' | 'stacktrace.package' | 'unreal.crash_type' | 'app.in_foreground' | 'os.distribution_name' | 'os.distribution_version' | 'symbolicated_in_app' | 'ota_updates.channel' | 'ota_updates.runtime_version' | 'ota_updates.update_id'; match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; value?: string; })>; }; conditionResult: boolean; } | { id?: number; type: 'tagged_event'; comparison: ({ key: string; match: 'is' | 'ns'; } | { key: string; match: unknown; value: string; }) & { key?: string; match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; value?: string; }; conditionResult: boolean; }>; actions: Array<{ id?: string; type: 'discord'; /** * Schema for Discord action data blob */ data: { /** * Tags to add to the message */ tags?: string; }; /** * The configuration schema for a Discord Action */ config: { targetIdentifier: string; targetDisplay?: string | null; targetType: 'specific'; }; status?: string; integrationId: string; } | { id?: string; type: 'email'; data: { /** * The fallthrough type for issue owners email notifications */ fallthroughType?: 'AllMembers' | 'ActiveMembers' | 'NoOne'; }; /** * The configuration schema for an email Action */ config: { /** * The stringified Sentry User.id or Team.id. Resolve users with the organization members endpoint and teams with the organization teams endpoint. Member IDs, email addresses, team slugs, and 'me' are not accepted. Omit this field when targetType is issue_owners. */ targetIdentifier?: string | null; targetDisplay?: unknown; targetType: 'user' | 'team' | 'issue_owners'; }; status?: string; } | { id?: string; type: 'github'; /** * Schema for GitHub ticket creation action data blob */ data: { /** * Dynamic form fields from customer configuration */ dynamicFormFields?: Array<{ [key: string]: unknown; }>; /** * Additional fields that aren't part of standard fields */ additionalFields: { repo: string; labels?: Array | null; assignee?: string | null; [key: string]: unknown; }; }; /** * The configuration schema for a Ticketing Action */ config: { targetIdentifier?: unknown; targetDisplay?: unknown; targetType?: 'specific'; }; status?: string; integrationId: string; } | { id?: string; type: 'github_enterprise'; /** * Schema for GitHub ticket creation action data blob */ data: { /** * Dynamic form fields from customer configuration */ dynamicFormFields?: Array<{ [key: string]: unknown; }>; /** * Additional fields that aren't part of standard fields */ additionalFields: { repo: string; labels?: Array | null; assignee?: string | null; [key: string]: unknown; }; }; /** * The configuration schema for a Ticketing Action */ config: { targetIdentifier?: unknown; targetDisplay?: unknown; targetType?: 'specific'; }; status?: string; integrationId: string; } | { id?: string; type: 'jira'; /** * Schema for ticket creation action data blob */ data: { /** * Dynamic form fields from customer configuration */ dynamicFormFields?: Array<{ [key: string]: unknown; }>; /** * Additional fields that aren't part of standard fields */ additionalFields?: { [key: string]: unknown; }; }; /** * The configuration schema for a Ticketing Action */ config: { targetIdentifier?: unknown; targetDisplay?: unknown; targetType?: 'specific'; }; status?: string; integrationId: string; } | { id?: string; type: 'jira_server'; /** * Schema for ticket creation action data blob */ data: { /** * Dynamic form fields from customer configuration */ dynamicFormFields?: Array<{ [key: string]: unknown; }>; /** * Additional fields that aren't part of standard fields */ additionalFields?: { [key: string]: unknown; }; }; /** * The configuration schema for a Ticketing Action */ config: { targetIdentifier?: unknown; targetDisplay?: unknown; targetType?: 'specific'; }; status?: string; integrationId: string; } | { id?: string; type: 'msteams'; /** * Schema for MSTeams action data blob */ data: { [key: string]: never; }; /** * The configuration schema for a Messaging Action */ config: { targetIdentifier?: string; targetDisplay: string; targetType: 'specific'; }; status?: string; integrationId: string; } | { id?: string; type: 'opsgenie'; data: { /** * The priority of the opsgenie action */ priority?: 'P1' | 'P2' | 'P3' | 'P4' | 'P5'; }; /** * The configuration schema for a on-call Action */ config: { targetIdentifier: string; targetDisplay?: string | null; targetType: 'specific'; }; status?: string; integrationId: string; } | { id?: string; type: 'pagerduty'; data: { /** * The priority of the pagerduty action */ priority?: 'default' | 'critical' | 'warning' | 'error' | 'info'; }; /** * The configuration schema for a on-call Action */ config: { targetIdentifier: string; targetDisplay?: string | null; targetType: 'specific'; }; status?: string; integrationId: string; } | { id?: string; type: 'seer_investigation'; data: unknown & { /** * Prompt the investigation runs */ prompt?: string; /** * Seer skill the investigation runs, instead of a prompt */ skill?: 'agentic_triage'; }; config: { [key: string]: never; }; status?: string; } | { id?: string; type: 'sentry_app'; /** * The data schema for a Sentry App Action */ data: { settings?: Array; }; /** * The configuration schema for a Sentry App Action */ config: { targetIdentifier: string; targetDisplay?: string | null; targetType: 'sentry_app'; }; status?: string; } | { id?: string; type: 'slack'; /** * Schema for Slack action data blob */ data: { /** * Tags to add to the message */ tags?: string; /** * Notes to add to the message */ notes?: string; }; /** * The configuration schema for a Messaging Action */ config: { targetIdentifier?: string; targetDisplay?: string; targetType: 'specific'; }; status?: string; integrationId: string; } | { id?: string; type: 'slack_staging'; /** * Schema for Slack action data blob */ data: { /** * Tags to add to the message */ tags?: string; /** * Notes to add to the message */ notes?: string; }; /** * The configuration schema for a Messaging Action */ config: { targetIdentifier?: string; targetDisplay?: string; targetType: 'specific'; }; status?: string; integrationId: string; } | { id?: string; type: 'vsts'; /** * Schema for ticket creation action data blob */ data: { /** * Dynamic form fields from customer configuration */ dynamicFormFields?: Array<{ [key: string]: unknown; }>; /** * Additional fields that aren't part of standard fields */ additionalFields?: { [key: string]: unknown; }; }; /** * The configuration schema for a Ticketing Action */ config: { targetIdentifier?: unknown; targetDisplay?: unknown; targetType?: 'specific'; }; status?: string; integrationId: string; } | { id?: string; type: 'webhook'; data: { [key: string]: unknown; }; /** * The configuration schema for Webhook Actions */ config: { targetIdentifier?: string; targetDisplay?: unknown; targetType?: null; }; status?: string; }>; }>; /** * * The ID user or team who owns the monitor or alert prefaced by the string 'user' or 'team'. * * **User** * ```json * "user:123456" * ``` * * **Team** * ```json * "team:456789" * ``` * */ owner?: string | null; }; path: { /** * The ID or slug of the organization the resource belongs to. */ organization_id_or_slug: string; /** * The ID of the alert you'd like to query. */ workflow_id: number; }; query?: never; url: '/organizations/{organization_id_or_slug}/workflows/{workflow_id}/'; }; export type UpdateOrganizationWorkflowErrors = { /** * Bad Request */ 400: unknown; /** * Unauthorized */ 401: unknown; /** * Forbidden */ 403: unknown; /** * Not Found */ 404: unknown; }; export type UpdateOrganizationWorkflowResponses = { 200: { /** * Workflow ID */ id: string; /** * Workflow name */ name: string; /** * Type of the workflow, such as alert */ type: string; /** * ID of the organization the workflow belongs to */ organizationId: string; /** * ID of the user who created the workflow */ createdBy: string | null; /** * When the workflow was created (ISO 8601) */ dateCreated: string; /** * When the workflow was last updated (ISO 8601) */ dateUpdated: string; /** * Conditions on which the workflow triggers */ triggers: { /** * ID of the condition group */ id?: string; /** * ID of the organization */ organizationId?: string; /** * How the conditions in the group combine */ logicType?: 'any' | 'any-short' | 'all' | 'none'; /** * Conditions in the group */ conditions?: Array<{ /** * ID of the condition */ id: string; /** * Type of the condition, such as first_seen_event or level */ type: string; /** * Value the condition compares against, which depends on its type */ comparison: number | string | boolean | { /** * Whether the issue must be older or newer than the age */ comparisonType: 'older' | 'newer'; /** * Age of the issue, in units of time */ value: number; /** * Unit of the age */ time: 'minute' | 'hour' | 'day' | 'week'; } | { /** * How sensitive anomaly detection is */ sensitivity: 'low' | 'medium' | 'high'; /** * Seasonal pattern that anomaly detection accounts for */ seasonality: 'auto' | 'hourly' | 'daily' | 'weekly' | 'hourly_daily' | 'hourly_weekly' | 'hourly_daily_weekly' | 'daily_weekly'; /** * Anomalies to detect: 0 above, 1 below, 2 above or below the expected value */ thresholdType: 0 | 1 | 2; } | { /** * Who the issue must be assigned to */ targetType: 'Unassigned' | 'Team' | 'Member'; /** * ID of the team or member. Not set for Unassigned */ targetIdentifier?: number | string; } | { /** * Event attribute to match, such as message or user.email */ attribute?: 'message' | 'platform' | 'environment' | 'type' | 'error.handled' | 'error.unhandled' | 'error.main_thread' | 'exception.type' | 'exception.value' | 'user.id' | 'user.email' | 'user.username' | 'user.ip_address' | 'http.method' | 'http.url' | 'http.status_code' | 'sdk.name' | 'stacktrace.code' | 'stacktrace.module' | 'stacktrace.filename' | 'stacktrace.abs_path' | 'stacktrace.package' | 'unreal.crash_type' | 'app.in_foreground' | 'os.distribution_name' | 'os.distribution_version' | 'symbolicated_in_app' | 'ota_updates.channel' | 'ota_updates.runtime_version' | 'ota_updates.update_id'; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the attribute against. Not set for is and ns */ value?: string; } | number | { /** * Time window to count in, such as 1h */ interval: '1m' | '5m' | '15m' | '1h' | '1d' | '1w' | '30d'; /** * Number of events in the interval that meets the condition */ value: number; /** * Tag or attribute filters that events must match to count */ filters?: Array<{ /** * Tag key to match */ key?: string; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the tag or attribute against. Not set for is and ns */ value?: string; } | { /** * Event attribute to match, such as message or user.email */ attribute?: 'message' | 'platform' | 'environment' | 'type' | 'error.handled' | 'error.unhandled' | 'error.main_thread' | 'exception.type' | 'exception.value' | 'user.id' | 'user.email' | 'user.username' | 'user.ip_address' | 'http.method' | 'http.url' | 'http.status_code' | 'sdk.name' | 'stacktrace.code' | 'stacktrace.module' | 'stacktrace.filename' | 'stacktrace.abs_path' | 'stacktrace.package' | 'unreal.crash_type' | 'app.in_foreground' | 'os.distribution_name' | 'os.distribution_version' | 'symbolicated_in_app' | 'ota_updates.channel' | 'ota_updates.runtime_version' | 'ota_updates.update_id'; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the tag or attribute against. Not set for is and ns */ value?: string; }>; } | { /** * Time window to count in, such as 1h */ interval: '1m' | '5m' | '15m' | '1h' | '1d' | '1w' | '30d'; /** * Percent increase in events over the comparison interval that meets the condition */ value: number; /** * Earlier time window to compare the count against, such as 1w */ comparisonInterval: '5m' | '15m' | '1h' | '1d' | '1w' | '30d'; /** * Tag or attribute filters that events must match to count */ filters?: Array<{ /** * Tag key to match */ key?: string; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the tag or attribute against. Not set for is and ns */ value?: string; } | { /** * Event attribute to match, such as message or user.email */ attribute?: 'message' | 'platform' | 'environment' | 'type' | 'error.handled' | 'error.unhandled' | 'error.main_thread' | 'exception.type' | 'exception.value' | 'user.id' | 'user.email' | 'user.username' | 'user.ip_address' | 'http.method' | 'http.url' | 'http.status_code' | 'sdk.name' | 'stacktrace.code' | 'stacktrace.module' | 'stacktrace.filename' | 'stacktrace.abs_path' | 'stacktrace.package' | 'unreal.crash_type' | 'app.in_foreground' | 'os.distribution_name' | 'os.distribution_version' | 'symbolicated_in_app' | 'ota_updates.channel' | 'ota_updates.runtime_version' | 'ota_updates.update_id'; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the tag or attribute against. Not set for is and ns */ value?: string; }>; } | { /** * Time window to count in, such as 1h */ interval: '1m' | '5m' | '15m' | '1h' | '1d' | '1w' | '30d'; /** * Number of affected users in the interval that meets the condition */ value: number; /** * Tag or attribute filters that events must match to count */ filters?: Array<{ /** * Tag key to match */ key?: string; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the tag or attribute against. Not set for is and ns */ value?: string; } | { /** * Event attribute to match, such as message or user.email */ attribute?: 'message' | 'platform' | 'environment' | 'type' | 'error.handled' | 'error.unhandled' | 'error.main_thread' | 'exception.type' | 'exception.value' | 'user.id' | 'user.email' | 'user.username' | 'user.ip_address' | 'http.method' | 'http.url' | 'http.status_code' | 'sdk.name' | 'stacktrace.code' | 'stacktrace.module' | 'stacktrace.filename' | 'stacktrace.abs_path' | 'stacktrace.package' | 'unreal.crash_type' | 'app.in_foreground' | 'os.distribution_name' | 'os.distribution_version' | 'symbolicated_in_app' | 'ota_updates.channel' | 'ota_updates.runtime_version' | 'ota_updates.update_id'; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the tag or attribute against. Not set for is and ns */ value?: string; }>; } | { /** * Time window to count in, such as 1h */ interval: '1m' | '5m' | '15m' | '1h' | '1d' | '1w' | '30d'; /** * Percent increase in affected users over the comparison interval that meets the condition */ value: number; /** * Earlier time window to compare the count against, such as 1w */ comparisonInterval: '5m' | '15m' | '1h' | '1d' | '1w' | '30d'; /** * Tag or attribute filters that events must match to count */ filters?: Array<{ /** * Tag key to match */ key?: string; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the tag or attribute against. Not set for is and ns */ value?: string; } | { /** * Event attribute to match, such as message or user.email */ attribute?: 'message' | 'platform' | 'environment' | 'type' | 'error.handled' | 'error.unhandled' | 'error.main_thread' | 'exception.type' | 'exception.value' | 'user.id' | 'user.email' | 'user.username' | 'user.ip_address' | 'http.method' | 'http.url' | 'http.status_code' | 'sdk.name' | 'stacktrace.code' | 'stacktrace.module' | 'stacktrace.filename' | 'stacktrace.abs_path' | 'stacktrace.package' | 'unreal.crash_type' | 'app.in_foreground' | 'os.distribution_name' | 'os.distribution_version' | 'symbolicated_in_app' | 'ota_updates.channel' | 'ota_updates.runtime_version' | 'ota_updates.update_id'; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the tag or attribute against. Not set for is and ns */ value?: string; }>; } | { /** * ID of the issue category */ value: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 19; /** * Whether the issue must be in the category or not. Defaults to true */ include?: boolean; } | { /** * Number of times the issue must have occurred */ value: number; } | 25 | 50 | 75 | 1 | { /** * Slug of the issue type */ value: 'performance_slow_db_query' | 'performance_render_blocking_asset_span' | 'performance_n_plus_one_db_queries' | 'performance_n_plus_one_db_queries_experimental' | 'performance_consecutive_db_queries' | 'performance_file_io_main_thread' | 'performance_consecutive_http' | 'performance_n_plus_one_api_calls' | 'performance_n_plus_one_api_calls_experimental' | 'performance_m_n_plus_one_db_queries' | 'performance_m_n_plus_one_db_queries_experimental' | 'performance_uncompressed_assets' | 'performance_db_main_thread' | 'performance_large_http_payload' | 'performance_http_overhead' | 'performance_p95_endpoint_regression' | 'performance_streamed_spans_exp' | 'db_query_injection_vulnerability' | 'query_injection_vulnerability' | 'profile_file_io_main_thread' | 'profile_image_decode_main_thread' | 'profile_json_decode_main_thread' | 'profile_regex_main_thread' | 'profile_frame_drop' | 'profile_function_regression' | 'llm_detected_experimental' | 'llm_detected_experimental_v2' | 'ai_detected_http' | 'ai_detected_db' | 'ai_detected_runtime_performance' | 'ai_detected_security' | 'ai_detected_code_health' | 'ai_detected_general' | 'replay_click_rage' | 'replay_hydration_error' | 'feedback' | 'web_vitals' | 'issue_stream' | 'metric_issue' | 'error' | 'uptime_domain_failure' | 'send-test-notification' | 'monitor_check_in_failure' | 'sourcemap_configuration' | 'low_value_span_configuration' | 'preprod_size_analysis'; /** * Whether the issue must be of the type or not. Defaults to true */ include?: boolean; } | { /** * Whether to compare against the oldest or newest adopted release */ releaseAgeType: 'oldest' | 'newest'; /** * Whether the event's release must be older or newer than that release */ ageComparison: 'older' | 'newer'; /** * Environment the release was adopted in */ environment: string; } | { /** * Event level: 0 sample, 10 debug, 20 info, 30 warning, 40 error, 50 fatal */ level: 0 | 10 | 20 | 30 | 40 | 50; /** * How to compare the event's level: eq, gte or lte */ match: 'eq' | 'gte' | 'lte'; } | { /** * Time window to count in, such as 1h */ interval: '1m' | '5m' | '10m' | '30m' | '1h'; /** * Percent of sessions affected in the interval that meets the condition */ value: number; /** * Tag or attribute filters that events must match to count */ filters?: Array<{ /** * Tag key to match */ key?: string; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the tag or attribute against. Not set for is and ns */ value?: string; } | { /** * Event attribute to match, such as message or user.email */ attribute?: 'message' | 'platform' | 'environment' | 'type' | 'error.handled' | 'error.unhandled' | 'error.main_thread' | 'exception.type' | 'exception.value' | 'user.id' | 'user.email' | 'user.username' | 'user.ip_address' | 'http.method' | 'http.url' | 'http.status_code' | 'sdk.name' | 'stacktrace.code' | 'stacktrace.module' | 'stacktrace.filename' | 'stacktrace.abs_path' | 'stacktrace.package' | 'unreal.crash_type' | 'app.in_foreground' | 'os.distribution_name' | 'os.distribution_version' | 'symbolicated_in_app' | 'ota_updates.channel' | 'ota_updates.runtime_version' | 'ota_updates.update_id'; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the tag or attribute against. Not set for is and ns */ value?: string; }>; } | { /** * Time window to count in, such as 1h */ interval: '1m' | '5m' | '10m' | '30m' | '1h'; /** * Percent increase in affected sessions over the comparison interval that meets the condition */ value: number; /** * Earlier time window to compare the count against, such as 1w */ comparisonInterval: '5m' | '15m' | '1h' | '1d' | '1w' | '30d'; /** * Tag or attribute filters that events must match to count */ filters?: Array<{ /** * Tag key to match */ key?: string; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the tag or attribute against. Not set for is and ns */ value?: string; } | { /** * Event attribute to match, such as message or user.email */ attribute?: 'message' | 'platform' | 'environment' | 'type' | 'error.handled' | 'error.unhandled' | 'error.main_thread' | 'exception.type' | 'exception.value' | 'user.id' | 'user.email' | 'user.username' | 'user.ip_address' | 'http.method' | 'http.url' | 'http.status_code' | 'sdk.name' | 'stacktrace.code' | 'stacktrace.module' | 'stacktrace.filename' | 'stacktrace.abs_path' | 'stacktrace.package' | 'unreal.crash_type' | 'app.in_foreground' | 'os.distribution_name' | 'os.distribution_version' | 'symbolicated_in_app' | 'ota_updates.channel' | 'ota_updates.runtime_version' | 'ota_updates.update_id'; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the tag or attribute against. Not set for is and ns */ value?: string; }>; } | Array<'rca_completed' | 'solution_completed' | 'coding_completed' | 'pr_ready_for_review'> | { /** * Tag key to match */ key?: string; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the tag against. Not set for is and ns */ value?: string; }; /** * Result the condition produces when it matches: true for alert conditions, or the priority level for monitor conditions */ conditionResult: boolean | number | number | null; }>; /** * Actions to fire when the conditions pass */ actions?: Array<{ /** * ID of the action */ id?: string; /** * Type of the action */ type?: 'slack' | 'slack_staging' | 'msteams' | 'discord' | 'pagerduty' | 'opsgenie' | 'github' | 'github_enterprise' | 'jira' | 'jira_server' | 'vsts' | 'email' | 'sentry_app' | 'plugin' | 'webhook' | 'seer_investigation'; /** * ID of the integration the action uses. Null for actions without one */ integrationId?: string | null; /** * Extra data for the action, which depends on its type */ data?: { /** * Tags to add to the message */ tags?: string; } | { /** * The fallthrough type for issue owners email notifications */ fallthroughType?: 'AllMembers' | 'ActiveMembers' | 'NoOne'; } | { /** * Dynamic form fields from customer configuration */ dynamicFormFields?: Array<{ /** * Name of the field */ name?: string; /** * Label of the field */ label?: string; /** * Type of the field, such as select or text */ type?: string; }>; /** * Additional fields that aren't part of standard fields */ additionalFields: { /** * Repository to create the issue in, as owner/name */ repo: string; /** * Labels to add to the issue */ labels?: Array | null; /** * User to assign the issue to */ assignee?: string | null; [key: string]: unknown; }; } | { /** * Dynamic form fields from customer configuration */ dynamicFormFields?: Array<{ /** * Name of the field */ name?: string; /** * Label of the field */ label?: string; /** * Type of the field, such as select or text */ type?: string; }>; /** * Additional fields that aren't part of standard fields */ additionalFields?: { [key: string]: string | null | number | boolean | Array; }; } | { [key: string]: never; } | { /** * The priority of the opsgenie action */ priority?: 'P1' | 'P2' | 'P3' | 'P4' | 'P5'; } | { /** * The priority of the pagerduty action */ priority?: 'default' | 'critical' | 'warning' | 'error' | 'info'; } | { [key: string]: string; } | { /** * Prompt the investigation runs */ prompt?: string; /** * Seer skill the investigation runs, instead of a prompt */ skill?: 'agentic_triage'; } | { /** * Values of the Sentry App's alert rule settings form, each with a name and value */ settings?: Array; } | { /** * Tags to add to the message */ tags?: string; /** * Notes to add to the message */ notes?: string; }; /** * Configuration of the action, such as targetType and targetIdentifier */ config?: { /** * ID of the target, such as a channel, user or team ID */ targetIdentifier: string; /** * Display name of the target, such as a channel name */ targetDisplay?: string | null; /** * Kind of target the action notifies, such as specific, user or team */ targetType: 'specific'; } | { /** * ID of the target, such as a channel, user or team ID */ targetIdentifier?: string | null; /** * Display name of the target, such as a channel name */ targetDisplay?: null; /** * Kind of target the action notifies, such as specific, user or team */ targetType: 'user' | 'team' | 'issue_owners'; } | { /** * ID of the target, such as a channel, user or team ID */ targetIdentifier?: null; /** * Display name of the target, such as a channel name */ targetDisplay?: null; /** * Kind of target the action notifies, such as specific, user or team */ targetType?: 'specific'; } | { /** * ID of the target, such as a channel, user or team ID */ targetIdentifier?: string; /** * Display name of the target, such as a channel name */ targetDisplay: string; /** * Kind of target the action notifies, such as specific, user or team */ targetType: 'specific'; } | { /** * ID of the target, such as a channel, user or team ID */ targetIdentifier: string; /** * Display name of the target, such as a channel name */ targetDisplay?: string | null; /** * Kind of target the action notifies, such as specific, user or team */ targetType: 'specific'; } | { /** * ID of the target, such as a channel, user or team ID */ targetIdentifier?: string | null; /** * Display name of the target, such as a channel name */ targetDisplay?: string | null; /** * Kind of target the action notifies, such as specific, user or team */ targetType?: null; } | { [key: string]: never; } | { /** * ID of the target, such as a channel, user or team ID */ targetIdentifier: string; /** * Display name of the target, such as a channel name */ targetDisplay?: string | null; /** * Kind of target the action notifies, such as specific, user or team */ targetType: 'sentry_app'; } | { /** * ID of the target, such as a channel, user or team ID */ targetIdentifier?: string; /** * Display name of the target, such as a channel name */ targetDisplay?: string; /** * Kind of target the action notifies, such as specific, user or team */ targetType: 'specific'; } | { /** * ID of the target, such as a channel, user or team ID */ targetIdentifier?: string; /** * Display name of the target, such as a channel name */ targetDisplay?: null; /** * Kind of target the action notifies, such as specific, user or team */ targetType?: null; }; /** * Status of the action */ status?: 'active' | 'disabled' | 'pending_deletion' | 'deletion_in_progress'; }>; } | null; /** * Filters to run before actions fire, each with the actions to fire */ actionFilters: Array<{ /** * ID of the condition group */ id?: string; /** * ID of the organization */ organizationId?: string; /** * How the conditions in the group combine */ logicType?: 'any' | 'any-short' | 'all' | 'none'; /** * Conditions in the group */ conditions?: Array<{ /** * ID of the condition */ id: string; /** * Type of the condition, such as first_seen_event or level */ type: string; /** * Value the condition compares against, which depends on its type */ comparison: number | string | boolean | { /** * Whether the issue must be older or newer than the age */ comparisonType: 'older' | 'newer'; /** * Age of the issue, in units of time */ value: number; /** * Unit of the age */ time: 'minute' | 'hour' | 'day' | 'week'; } | { /** * How sensitive anomaly detection is */ sensitivity: 'low' | 'medium' | 'high'; /** * Seasonal pattern that anomaly detection accounts for */ seasonality: 'auto' | 'hourly' | 'daily' | 'weekly' | 'hourly_daily' | 'hourly_weekly' | 'hourly_daily_weekly' | 'daily_weekly'; /** * Anomalies to detect: 0 above, 1 below, 2 above or below the expected value */ thresholdType: 0 | 1 | 2; } | { /** * Who the issue must be assigned to */ targetType: 'Unassigned' | 'Team' | 'Member'; /** * ID of the team or member. Not set for Unassigned */ targetIdentifier?: number | string; } | { /** * Event attribute to match, such as message or user.email */ attribute?: 'message' | 'platform' | 'environment' | 'type' | 'error.handled' | 'error.unhandled' | 'error.main_thread' | 'exception.type' | 'exception.value' | 'user.id' | 'user.email' | 'user.username' | 'user.ip_address' | 'http.method' | 'http.url' | 'http.status_code' | 'sdk.name' | 'stacktrace.code' | 'stacktrace.module' | 'stacktrace.filename' | 'stacktrace.abs_path' | 'stacktrace.package' | 'unreal.crash_type' | 'app.in_foreground' | 'os.distribution_name' | 'os.distribution_version' | 'symbolicated_in_app' | 'ota_updates.channel' | 'ota_updates.runtime_version' | 'ota_updates.update_id'; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the attribute against. Not set for is and ns */ value?: string; } | number | { /** * Time window to count in, such as 1h */ interval: '1m' | '5m' | '15m' | '1h' | '1d' | '1w' | '30d'; /** * Number of events in the interval that meets the condition */ value: number; /** * Tag or attribute filters that events must match to count */ filters?: Array<{ /** * Tag key to match */ key?: string; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the tag or attribute against. Not set for is and ns */ value?: string; } | { /** * Event attribute to match, such as message or user.email */ attribute?: 'message' | 'platform' | 'environment' | 'type' | 'error.handled' | 'error.unhandled' | 'error.main_thread' | 'exception.type' | 'exception.value' | 'user.id' | 'user.email' | 'user.username' | 'user.ip_address' | 'http.method' | 'http.url' | 'http.status_code' | 'sdk.name' | 'stacktrace.code' | 'stacktrace.module' | 'stacktrace.filename' | 'stacktrace.abs_path' | 'stacktrace.package' | 'unreal.crash_type' | 'app.in_foreground' | 'os.distribution_name' | 'os.distribution_version' | 'symbolicated_in_app' | 'ota_updates.channel' | 'ota_updates.runtime_version' | 'ota_updates.update_id'; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the tag or attribute against. Not set for is and ns */ value?: string; }>; } | { /** * Time window to count in, such as 1h */ interval: '1m' | '5m' | '15m' | '1h' | '1d' | '1w' | '30d'; /** * Percent increase in events over the comparison interval that meets the condition */ value: number; /** * Earlier time window to compare the count against, such as 1w */ comparisonInterval: '5m' | '15m' | '1h' | '1d' | '1w' | '30d'; /** * Tag or attribute filters that events must match to count */ filters?: Array<{ /** * Tag key to match */ key?: string; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the tag or attribute against. Not set for is and ns */ value?: string; } | { /** * Event attribute to match, such as message or user.email */ attribute?: 'message' | 'platform' | 'environment' | 'type' | 'error.handled' | 'error.unhandled' | 'error.main_thread' | 'exception.type' | 'exception.value' | 'user.id' | 'user.email' | 'user.username' | 'user.ip_address' | 'http.method' | 'http.url' | 'http.status_code' | 'sdk.name' | 'stacktrace.code' | 'stacktrace.module' | 'stacktrace.filename' | 'stacktrace.abs_path' | 'stacktrace.package' | 'unreal.crash_type' | 'app.in_foreground' | 'os.distribution_name' | 'os.distribution_version' | 'symbolicated_in_app' | 'ota_updates.channel' | 'ota_updates.runtime_version' | 'ota_updates.update_id'; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the tag or attribute against. Not set for is and ns */ value?: string; }>; } | { /** * Time window to count in, such as 1h */ interval: '1m' | '5m' | '15m' | '1h' | '1d' | '1w' | '30d'; /** * Number of affected users in the interval that meets the condition */ value: number; /** * Tag or attribute filters that events must match to count */ filters?: Array<{ /** * Tag key to match */ key?: string; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the tag or attribute against. Not set for is and ns */ value?: string; } | { /** * Event attribute to match, such as message or user.email */ attribute?: 'message' | 'platform' | 'environment' | 'type' | 'error.handled' | 'error.unhandled' | 'error.main_thread' | 'exception.type' | 'exception.value' | 'user.id' | 'user.email' | 'user.username' | 'user.ip_address' | 'http.method' | 'http.url' | 'http.status_code' | 'sdk.name' | 'stacktrace.code' | 'stacktrace.module' | 'stacktrace.filename' | 'stacktrace.abs_path' | 'stacktrace.package' | 'unreal.crash_type' | 'app.in_foreground' | 'os.distribution_name' | 'os.distribution_version' | 'symbolicated_in_app' | 'ota_updates.channel' | 'ota_updates.runtime_version' | 'ota_updates.update_id'; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the tag or attribute against. Not set for is and ns */ value?: string; }>; } | { /** * Time window to count in, such as 1h */ interval: '1m' | '5m' | '15m' | '1h' | '1d' | '1w' | '30d'; /** * Percent increase in affected users over the comparison interval that meets the condition */ value: number; /** * Earlier time window to compare the count against, such as 1w */ comparisonInterval: '5m' | '15m' | '1h' | '1d' | '1w' | '30d'; /** * Tag or attribute filters that events must match to count */ filters?: Array<{ /** * Tag key to match */ key?: string; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the tag or attribute against. Not set for is and ns */ value?: string; } | { /** * Event attribute to match, such as message or user.email */ attribute?: 'message' | 'platform' | 'environment' | 'type' | 'error.handled' | 'error.unhandled' | 'error.main_thread' | 'exception.type' | 'exception.value' | 'user.id' | 'user.email' | 'user.username' | 'user.ip_address' | 'http.method' | 'http.url' | 'http.status_code' | 'sdk.name' | 'stacktrace.code' | 'stacktrace.module' | 'stacktrace.filename' | 'stacktrace.abs_path' | 'stacktrace.package' | 'unreal.crash_type' | 'app.in_foreground' | 'os.distribution_name' | 'os.distribution_version' | 'symbolicated_in_app' | 'ota_updates.channel' | 'ota_updates.runtime_version' | 'ota_updates.update_id'; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the tag or attribute against. Not set for is and ns */ value?: string; }>; } | { /** * ID of the issue category */ value: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 19; /** * Whether the issue must be in the category or not. Defaults to true */ include?: boolean; } | { /** * Number of times the issue must have occurred */ value: number; } | 25 | 50 | 75 | 1 | { /** * Slug of the issue type */ value: 'performance_slow_db_query' | 'performance_render_blocking_asset_span' | 'performance_n_plus_one_db_queries' | 'performance_n_plus_one_db_queries_experimental' | 'performance_consecutive_db_queries' | 'performance_file_io_main_thread' | 'performance_consecutive_http' | 'performance_n_plus_one_api_calls' | 'performance_n_plus_one_api_calls_experimental' | 'performance_m_n_plus_one_db_queries' | 'performance_m_n_plus_one_db_queries_experimental' | 'performance_uncompressed_assets' | 'performance_db_main_thread' | 'performance_large_http_payload' | 'performance_http_overhead' | 'performance_p95_endpoint_regression' | 'performance_streamed_spans_exp' | 'db_query_injection_vulnerability' | 'query_injection_vulnerability' | 'profile_file_io_main_thread' | 'profile_image_decode_main_thread' | 'profile_json_decode_main_thread' | 'profile_regex_main_thread' | 'profile_frame_drop' | 'profile_function_regression' | 'llm_detected_experimental' | 'llm_detected_experimental_v2' | 'ai_detected_http' | 'ai_detected_db' | 'ai_detected_runtime_performance' | 'ai_detected_security' | 'ai_detected_code_health' | 'ai_detected_general' | 'replay_click_rage' | 'replay_hydration_error' | 'feedback' | 'web_vitals' | 'issue_stream' | 'metric_issue' | 'error' | 'uptime_domain_failure' | 'send-test-notification' | 'monitor_check_in_failure' | 'sourcemap_configuration' | 'low_value_span_configuration' | 'preprod_size_analysis'; /** * Whether the issue must be of the type or not. Defaults to true */ include?: boolean; } | { /** * Whether to compare against the oldest or newest adopted release */ releaseAgeType: 'oldest' | 'newest'; /** * Whether the event's release must be older or newer than that release */ ageComparison: 'older' | 'newer'; /** * Environment the release was adopted in */ environment: string; } | { /** * Event level: 0 sample, 10 debug, 20 info, 30 warning, 40 error, 50 fatal */ level: 0 | 10 | 20 | 30 | 40 | 50; /** * How to compare the event's level: eq, gte or lte */ match: 'eq' | 'gte' | 'lte'; } | { /** * Time window to count in, such as 1h */ interval: '1m' | '5m' | '10m' | '30m' | '1h'; /** * Percent of sessions affected in the interval that meets the condition */ value: number; /** * Tag or attribute filters that events must match to count */ filters?: Array<{ /** * Tag key to match */ key?: string; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the tag or attribute against. Not set for is and ns */ value?: string; } | { /** * Event attribute to match, such as message or user.email */ attribute?: 'message' | 'platform' | 'environment' | 'type' | 'error.handled' | 'error.unhandled' | 'error.main_thread' | 'exception.type' | 'exception.value' | 'user.id' | 'user.email' | 'user.username' | 'user.ip_address' | 'http.method' | 'http.url' | 'http.status_code' | 'sdk.name' | 'stacktrace.code' | 'stacktrace.module' | 'stacktrace.filename' | 'stacktrace.abs_path' | 'stacktrace.package' | 'unreal.crash_type' | 'app.in_foreground' | 'os.distribution_name' | 'os.distribution_version' | 'symbolicated_in_app' | 'ota_updates.channel' | 'ota_updates.runtime_version' | 'ota_updates.update_id'; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the tag or attribute against. Not set for is and ns */ value?: string; }>; } | { /** * Time window to count in, such as 1h */ interval: '1m' | '5m' | '10m' | '30m' | '1h'; /** * Percent increase in affected sessions over the comparison interval that meets the condition */ value: number; /** * Earlier time window to compare the count against, such as 1w */ comparisonInterval: '5m' | '15m' | '1h' | '1d' | '1w' | '30d'; /** * Tag or attribute filters that events must match to count */ filters?: Array<{ /** * Tag key to match */ key?: string; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the tag or attribute against. Not set for is and ns */ value?: string; } | { /** * Event attribute to match, such as message or user.email */ attribute?: 'message' | 'platform' | 'environment' | 'type' | 'error.handled' | 'error.unhandled' | 'error.main_thread' | 'exception.type' | 'exception.value' | 'user.id' | 'user.email' | 'user.username' | 'user.ip_address' | 'http.method' | 'http.url' | 'http.status_code' | 'sdk.name' | 'stacktrace.code' | 'stacktrace.module' | 'stacktrace.filename' | 'stacktrace.abs_path' | 'stacktrace.package' | 'unreal.crash_type' | 'app.in_foreground' | 'os.distribution_name' | 'os.distribution_version' | 'symbolicated_in_app' | 'ota_updates.channel' | 'ota_updates.runtime_version' | 'ota_updates.update_id'; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the tag or attribute against. Not set for is and ns */ value?: string; }>; } | Array<'rca_completed' | 'solution_completed' | 'coding_completed' | 'pr_ready_for_review'> | { /** * Tag key to match */ key?: string; /** * How to compare, such as eq for equals, co for contains or is for is set */ match?: 'co' | 'ew' | 'eq' | 'is' | 'in' | 'nc' | 'new' | 'ne' | 'ns' | 'nsw' | 'nin' | 'sw'; /** * Value to compare the tag against. Not set for is and ns */ value?: string; }; /** * Result the condition produces when it matches: true for alert conditions, or the priority level for monitor conditions */ conditionResult: boolean | number | number | null; }>; /** * Actions to fire when the conditions pass */ actions?: Array<{ /** * ID of the action */ id?: string; /** * Type of the action */ type?: 'slack' | 'slack_staging' | 'msteams' | 'discord' | 'pagerduty' | 'opsgenie' | 'github' | 'github_enterprise' | 'jira' | 'jira_server' | 'vsts' | 'email' | 'sentry_app' | 'plugin' | 'webhook' | 'seer_investigation'; /** * ID of the integration the action uses. Null for actions without one */ integrationId?: string | null; /** * Extra data for the action, which depends on its type */ data?: { /** * Tags to add to the message */ tags?: string; } | { /** * The fallthrough type for issue owners email notifications */ fallthroughType?: 'AllMembers' | 'ActiveMembers' | 'NoOne'; } | { /** * Dynamic form fields from customer configuration */ dynamicFormFields?: Array<{ /** * Name of the field */ name?: string; /** * Label of the field */ label?: string; /** * Type of the field, such as select or text */ type?: string; }>; /** * Additional fields that aren't part of standard fields */ additionalFields: { /** * Repository to create the issue in, as owner/name */ repo: string; /** * Labels to add to the issue */ labels?: Array | null; /** * User to assign the issue to */ assignee?: string | null; [key: string]: unknown; }; } | { /** * Dynamic form fields from customer configuration */ dynamicFormFields?: Array<{ /** * Name of the field */ name?: string; /** * Label of the field */ label?: string; /** * Type of the field, such as select or text */ type?: string; }>; /** * Additional fields that aren't part of standard fields */ additionalFields?: { [key: string]: string | null | number | boolean | Array; }; } | { [key: string]: never; } | { /** * The priority of the opsgenie action */ priority?: 'P1' | 'P2' | 'P3' | 'P4' | 'P5'; } | { /** * The priority of the pagerduty action */ priority?: 'default' | 'critical' | 'warning' | 'error' | 'info'; } | { [key: string]: string; } | { /** * Prompt the investigation runs */ prompt?: string; /** * Seer skill the investigation runs, instead of a prompt */ skill?: 'agentic_triage'; } | { /** * Values of the Sentry App's alert rule settings form, each with a name and value */ settings?: Array; } | { /** * Tags to add to the message */ tags?: string; /** * Notes to add to the message */ notes?: string; }; /** * Configuration of the action, such as targetType and targetIdentifier */ config?: { /** * ID of the target, such as a channel, user or team ID */ targetIdentifier: string; /** * Display name of the target, such as a channel name */ targetDisplay?: string | null; /** * Kind of target the action notifies, such as specific, user or team */ targetType: 'specific'; } | { /** * ID of the target, such as a channel, user or team ID */ targetIdentifier?: string | null; /** * Display name of the target, such as a channel name */ targetDisplay?: null; /** * Kind of target the action notifies, such as specific, user or team */ targetType: 'user' | 'team' | 'issue_owners'; } | { /** * ID of the target, such as a channel, user or team ID */ targetIdentifier?: null; /** * Display name of the target, such as a channel name */ targetDisplay?: null; /** * Kind of target the action notifies, such as specific, user or team */ targetType?: 'specific'; } | { /** * ID of the target, such as a channel, user or team ID */ targetIdentifier?: string; /** * Display name of the target, such as a channel name */ targetDisplay: string; /** * Kind of target the action notifies, such as specific, user or team */ targetType: 'specific'; } | { /** * ID of the target, such as a channel, user or team ID */ targetIdentifier: string; /** * Display name of the target, such as a channel name */ targetDisplay?: string | null; /** * Kind of target the action notifies, such as specific, user or team */ targetType: 'specific'; } | { /** * ID of the target, such as a channel, user or team ID */ targetIdentifier?: string | null; /** * Display name of the target, such as a channel name */ targetDisplay?: string | null; /** * Kind of target the action notifies, such as specific, user or team */ targetType?: null; } | { [key: string]: never; } | { /** * ID of the target, such as a channel, user or team ID */ targetIdentifier: string; /** * Display name of the target, such as a channel name */ targetDisplay?: string | null; /** * Kind of target the action notifies, such as specific, user or team */ targetType: 'sentry_app'; } | { /** * ID of the target, such as a channel, user or team ID */ targetIdentifier?: string; /** * Display name of the target, such as a channel name */ targetDisplay?: string; /** * Kind of target the action notifies, such as specific, user or team */ targetType: 'specific'; } | { /** * ID of the target, such as a channel, user or team ID */ targetIdentifier?: string; /** * Display name of the target, such as a channel name */ targetDisplay?: null; /** * Kind of target the action notifies, such as specific, user or team */ targetType?: null; }; /** * Status of the action */ status?: 'active' | 'disabled' | 'pending_deletion' | 'deletion_in_progress'; }>; }> | null; /** * Name of the environment the workflow is limited to. Null for all environments */ environment: string | null; /** * Configuration of the workflow, such as frequency in minutes */ config: { /** * How often the workflow should fire for a Group (minutes) */ frequency?: number; }; /** * IDs of the monitors connected to the workflow */ detectorIds: Array | null; /** * Whether the workflow is enabled */ enabled: boolean; /** * When the workflow last fired (ISO 8601) */ lastTriggered: string | null; /** * Team or user that owns the workflow, such as user:123 or team:456 */ owner: string | null; }; }; export type UpdateOrganizationWorkflowResponse = UpdateOrganizationWorkflowResponses[keyof UpdateOrganizationWorkflowResponses]; export type DeleteProjectData = { body?: never; path: { /** * The ID or slug of the organization the resource belongs to. */ organization_id_or_slug: string; /** * The ID or slug of the project the resource belongs to. Project slugs are unique within each organization. */ project_id_or_slug: string; }; query?: never; url: '/projects/{organization_id_or_slug}/{project_id_or_slug}/'; }; export type DeleteProjectErrors = { /** * Forbidden */ 403: unknown; /** * Not Found */ 404: unknown; }; export type DeleteProjectResponses = { /** * No Content */ 204: void; }; export type DeleteProjectResponse = DeleteProjectResponses[keyof DeleteProjectResponses]; export type GetProjectData = { body?: never; path: { /** * The ID or slug of the organization the resource belongs to. */ organization_id_or_slug: string; /** * The ID or slug of the project the resource belongs to. Project slugs are unique within each organization. */ project_id_or_slug: string; }; query?: never; url: '/projects/{organization_id_or_slug}/{project_id_or_slug}/'; }; export type GetProjectErrors = { /** * Bad Request */ 400: unknown; /** * Forbidden */ 403: unknown; /** * Not Found */ 404: unknown; }; export type GetProjectResponses = { 200: { /** * Counts of non-transaction events per interval over the requested stats period, as [timestamp, count] pairs. Only included when a stats period is requested */ stats?: Array> | { [key: string]: number; }; /** * Counts of transactions per interval over the requested stats period, as [timestamp, count] pairs. Only included when transaction stats are requested */ transactionStats?: Array>; /** * Crash-free session rates for the current and previous stats period. Only included when session stats are requested */ sessionStats?: { /** * Crash-free rate in the current period, as a percentage. Null when there's no session data */ currentCrashFreeRate: number | null; /** * Crash-free rate in the previous period, as a percentage. Null when there's no session data */ previousCrashFreeRate: number | null; /** * Whether the project has release health (session) data */ hasHealthData: boolean; }; /** * ID of the project */ id: string; /** * Slug of the project */ slug: string; /** * Name of the project */ name: string; /** * Platform of the project */ platform: string | null; /** * When the project was created (ISO 8601) */ dateCreated: string; /** * Whether the requesting user bookmarked the project */ isBookmarked: boolean; /** * Whether the requesting user is a member of a team with access to the project */ isMember: boolean; /** * Features enabled for the project */ features: Array; /** * When the project received its first event (ISO 8601) */ firstEvent: string | null; /** * Whether the project has sent transactions */ firstTransactionEvent: boolean; /** * Scopes the requesting user has on the project through team membership and organization role */ access: Array; /** * Whether the requesting user has access to the project */ hasAccess: boolean; /** * Whether the project has sent user feedback */ hasFeedbacks: boolean; /** * Whether the project has sent feature flags */ hasFlags: boolean; /** * Whether the project has sent an event with a minified stack trace */ hasMinifiedStackTrace: boolean; /** * Whether the project has cron monitors */ hasMonitors: boolean; /** * Whether the project has sent user feedback from the user feedback widget */ hasNewFeedbacks: boolean; /** * Whether the project has sent profiles */ hasProfiles: boolean; /** * Whether the project has sent replays */ hasReplays: boolean; /** * Whether the project has sent sessions */ hasSessions: boolean; /** * Whether the project has sent HTTP request spans used by Insights */ hasInsightsHttp: boolean; /** * Whether the project has sent database spans used by Insights */ hasInsightsDb: boolean; /** * Whether the project has sent asset spans used by Insights */ hasInsightsAssets: boolean; /** * Whether the project has sent app start spans used by Insights */ hasInsightsAppStart: boolean; /** * Whether the project has sent screen load spans used by Insights */ hasInsightsScreenLoad: boolean; /** * Whether the project has sent web vitals spans used by Insights */ hasInsightsVitals: boolean; /** * Whether the project has sent cache spans used by Insights */ hasInsightsCaches: boolean; /** * Whether the project has sent queue spans used by Insights */ hasInsightsQueues: boolean; /** * Whether the project has sent AI agent spans used by Insights */ hasInsightsAgentMonitoring: boolean; /** * Whether the project has sent MCP spans used by Insights */ hasInsightsMCP: boolean; /** * Whether the project has sent logs. Always true outside sentry.io */ hasLogs: boolean; /** * Whether the project has sent trace metrics. Always true outside sentry.io */ hasTraceMetrics: boolean; /** * Whether this is the Sentry install's own internal project */ isInternal: boolean; /** * Whether the project is public */ isPublic: boolean; /** * Avatar of the project. Always a letter avatar */ avatar: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Hex color code for the project, derived from its slug unless set explicitly */ color: string; /** * Status of the project: active, deleted, or unknown */ status: string; /** * First team with access to the project; use teams instead */ team?: { /** * ID of the team */ id: string; /** * Name of the team */ name: string; /** * Slug of the team */ slug: string; }; /** * Teams with access to the project */ teams: Array<{ /** * ID of the team */ id: string; /** * Name of the team */ name: string; /** * Slug of the team */ slug: string; }>; /** * Latest release of the project */ latestRelease: { /** * Version of the release */ version: string; } | null; /** * Additional project settings keyed by option name, such as inbound filters and preprod settings */ options: { [key: string]: unknown; }; /** * Minimum time in seconds to wait before sending an issue digest email */ digestsMinDelay: number; /** * Maximum time in seconds to wait before sending an issue digest email */ digestsMaxDelay: number; /** * Custom prefix for emails from this project */ subjectPrefix: string; /** * Origins permitted to send events to this project. `*` allows any */ allowedDomains: Array; /** * Hours after which an issue that hasn't been seen is automatically resolved. 0 disables auto-resolve */ resolveAge: number; /** * Whether known sensitive values are removed from events before they are stored */ dataScrubber: boolean; /** * Whether Sentry's built-in list of sensitive field names is also scrubbed */ dataScrubberDefaults: boolean; /** * Field names exempt from scrubbing */ safeFields: Array; /** * Number of native crash report files stored per issue. -1 means unlimited, 0 stores none, and null inherits the organization setting */ storeCrashReports: number | null; /** * Additional field names scrubbed from events, beyond the defaults */ sensitiveFields: Array; /** * Email subject used for individual alerts, excluding the prefix */ subjectTemplate: string; /** * Token sent with outbound source-scraping requests. Returns an empty string without project:write or project:admin access */ securityToken: string; /** * Name of the header carrying the outbound source-scraping token. Defaults to X-Sentry-Token */ securityTokenHeader: string | null; /** * Whether SSL certificates are verified when delivering outbound webhooks and service hooks */ verifySSL: boolean; /** * Whether client IP addresses are discarded rather than stored on events */ scrubIPAddresses: boolean; /** * Whether Sentry may fetch source files and source maps from your servers */ scrapeJavaScript: boolean; /** * Whether releases are created automatically from ingested events */ enableAutoReleaseCreation: boolean; /** * Tag keys highlighted on the project's issues */ highlightTags: Array; /** * Context keys highlighted on the project's issues, as a mapping of context types to lists of keys */ highlightContext: { [key: string]: Array; }; /** * Default highlighted tags and context for the project's platform */ highlightPreset: { /** * Tag keys to highlight by default */ tags: Array; /** * Context keys to highlight by default, by context name */ context: { [key: string]: Array; }; }; /** * Identifier of the grouping algorithm used to assign events to issues */ groupingConfig: string; /** * Stack trace rules that Sentry derives from the project's code mappings, as a newline-delimited config string */ derivedGroupingEnhancements: string; /** * Grouping enhancement rules, as a newline-delimited config string, adjusting which stack frames contribute to an issue */ groupingEnhancements: string; /** * Unix timestamp after which the secondary grouping algorithm stops running */ secondaryGroupingExpiry: number; /** * Grouping algorithm run alongside the primary one during a grouping migration */ secondaryGroupingConfig: string | null; /** * Fingerprinting rules, as a newline-delimited config string, controlling how events are grouped into issues */ fingerprintingRules: string; /** * Organization that owns the project */ organization: { /** * Features enabled for the organization */ features?: Array; /** * Server-wide options that the Sentry UI reads */ extraOptions?: { [key: string]: { [key: string]: unknown; }; }; /** * Scopes the requesting user has in the organization */ access?: Array; /** * Onboarding tasks the organization has completed or skipped */ onboardingTasks?: Array<{ /** * Onboarding task key, such as create_project */ task: string | null; /** * Task status: complete or skipped */ status: string; /** * When the task's completion was marked as seen, or null */ completionSeen: string | null; /** * When the task was completed or skipped */ dateCompleted: string; /** * Data recorded for the task. Most tasks record none, so it's often empty */ data: { /** * ID of the member whose invite completed the invite_member task */ invited_member_id?: number; /** * Platform of the first event, for the first_event task */ platform?: string | null; /** * Slug of the plugin enabled for the task */ plugin?: string; /** * Integration providers installed for the integrations task */ providers?: Array; }; }>; /** * Organization ID */ id: string; /** * Organization slug */ slug: string; /** * Organization status */ status: { /** * Status ID: active, pending_deletion, deletion_in_progress or relocation_pending_approval */ id: string; /** * Status label, such as active or pending deletion */ name: string; }; /** * Organization name, or its slug when it has no name */ name: string; /** * When the organization was created (ISO 8601) */ dateCreated: string; /** * Whether the organization is an early adopter */ isEarlyAdopter: boolean; /** * Whether members must use two-factor authentication */ require2FA: boolean; /** * Organization avatar */ avatar: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Organization and region URLs */ links: { /** * Base URL of the organization */ organizationUrl: string; /** * Base URL of the API for the organization's region */ regionUrl: string; }; /** * Whether SSO is configured for the organization */ hasAuthProvider: boolean; /** * Whether members can invite other members */ allowMemberInvite: boolean; /** * Whether members can create projects */ allowMemberProjectCreation: boolean; /** * Whether Sentry superusers can access the organization */ allowSuperuserAccess: boolean; }; /** * Platforms seen in the project's events */ platforms: Array; /** * Always 0 */ processingIssues: number; /** * Environment selected by default when viewing this project */ defaultEnvironment: string | null; /** * Advanced data scrubbing rules, as a JSON string, applied before events are stored */ relayPiiConfig: string | null; /** * Identifiers of Sentry-hosted symbol sources used when symbolicating events */ builtinSymbolSources: Array; /** * Whether source server (srcsrv) information from native debug files is applied to symbolicated frames */ enableNativeSourceServerMapping: boolean; /** * Per-bias toggles adjusting which transactions dynamic sampling favors retaining */ dynamicSamplingBiases: Array<{ [key: string]: string | boolean; }> | null; /** * Custom symbol sources as a JSON string, with secrets redacted */ symbolSources: string; /** * Whether dynamic sampling retains less than 100% of the project's transactions */ isDynamicallySampled: boolean; /** * Whether screenshots attached to console crash reports are fetched. Only included when the organization has Tempest access */ tempestFetchScreenshots?: boolean; /** * How aggressively Seer runs Autofix on new issues */ autofixAutomationTuning?: string; /** * Whether Seer scans new issues automatically */ seerScannerAutomation?: boolean; /** * Experimental Seer settings with no stable shape */ seerNightshiftTweaks?: unknown; /** * Whether source context is fetched on demand from SCM integrations for stack traces */ scmSourceContextEnabled?: boolean; /** * Role required to download debug information files, ProGuard mappings and source maps. Null inherits the organization setting */ debugFilesRole?: string | null; }; }; export type GetProjectResponse = GetProjectResponses[keyof GetProjectResponses]; export type UpdateProjectData = { body?: { /** * Enables starring the project within the projects tab. Can be updated with **`project:read`** permission. */ isBookmarked?: boolean; /** * How aggressively Seer runs Autofix on new issues. Can be updated with **`project:read`** permission. * * * `off` * * `super_low` * * `low` * * `medium` * * `high` * * `always` */ autofixAutomationTuning?: 'off' | 'super_low' | 'low' | 'medium' | 'high' | 'always'; /** * Let Seer scan new issues automatically. Can be updated with **`project:read`** permission. */ seerScannerAutomation?: boolean; /** * Enable preprod size status checks. Can be updated with **`project:read`** permission. */ preprodSizeStatusChecksEnabled?: boolean; /** * Rules controlling when preprod size status checks fail. Can be updated with **`project:read`** permission. */ preprodSizeStatusChecksRules?: { [key: string]: unknown; }; /** * Enable preprod size PR comments. Can be updated with **`project:read`** permission. */ preprodSizePrCommentsEnabled?: boolean; /** * Rules controlling which preprod size changes are posted as PR comments. Can be updated with **`project:read`** permission. */ preprodSizePrCommentsRules?: { [key: string]: unknown; }; /** * Enable preprod snapshot status checks. */ preprodSnapshotStatusChecksEnabled?: boolean; /** * Fail the preprod snapshot status check when snapshots are added. */ preprodSnapshotStatusChecksFailOnAdded?: boolean; /** * Fail the preprod snapshot status check when snapshots are removed. */ preprodSnapshotStatusChecksFailOnRemoved?: boolean; /** * Fail the preprod snapshot status check when snapshots change. */ preprodSnapshotStatusChecksFailOnChanged?: boolean; /** * Fail the preprod snapshot status check when snapshots are renamed. */ preprodSnapshotStatusChecksFailOnRenamed?: boolean; /** * Enable preprod size analysis. Can be updated with **`project:read`** permission. */ preprodSizeEnabledByCustomer?: boolean | null; /** * Enable preprod build distribution. Can be updated with **`project:read`** permission. */ preprodDistributionEnabledByCustomer?: boolean | null; /** * Post preprod distribution updates as PR comments. Can be updated with **`project:read`** permission. */ preprodDistributionPrCommentsEnabledByCustomer?: boolean | null; /** * Post preprod snapshot changes as PR comments. */ preprodSnapshotPrCommentsEnabled?: boolean | null; /** * Include added snapshots in preprod snapshot PR comments. */ preprodSnapshotPrCommentsPostOnAdded?: boolean | null; /** * Include removed snapshots in preprod snapshot PR comments. */ preprodSnapshotPrCommentsPostOnRemoved?: boolean | null; /** * Include changed snapshots in preprod snapshot PR comments. */ preprodSnapshotPrCommentsPostOnChanged?: boolean | null; /** * Include renamed snapshots in preprod snapshot PR comments. */ preprodSnapshotPrCommentsPostOnRenamed?: boolean | null; /** * Query selecting which preprod builds are size-analyzed. Can be updated with **`project:read`** permission. */ preprodSizeEnabledQuery?: string | null; /** * Query selecting which preprod builds are distributed. Can be updated with **`project:read`** permission. */ preprodDistributionEnabledQuery?: string | null; /** * The name for the project */ name?: string; /** * Uniquely identifies a project and is used for the interface. */ slug?: string; /** * The platform for the project */ platform?: string | null; /** * Custom prefix for emails from this project. */ subjectPrefix?: string; /** * The email subject to use (excluding the prefix) for individual alerts. Here are the list of variables you can use: * - `$title` * - `$shortID` * - `$projectID` * - `$orgID` * - `${tag:key}` - such as `${tag:environment}` or `${tag:release}`. */ subjectTemplate?: string; /** * Automatically resolve an issue if it hasn't been seen for this many hours. Set to `0` to disable auto-resolve. */ resolveAge?: number | null; /** * A JSON mapping of context types to lists of strings for their keys. * E.g. `{'user': ['id', 'email']}` */ highlightContext?: { [key: string]: unknown; }; /** * A list of strings with tag keys to highlight on this project's issues. * E.g. `['release', 'environment']` */ highlightTags?: Array; /** * Minimum time in seconds to wait before sending an issue digest email. */ digestsMinDelay?: number; /** * Maximum time in seconds to wait before sending an issue digest email. */ digestsMaxDelay?: number; /** * Token sent with security reports (CSP, Expect-CT, HPKP) so Sentry can verify their origin. */ securityToken?: string; /** * Name of the header carrying the security token on inbound security reports. */ securityTokenHeader?: string; /** * Verify SSL certificates when delivering outbound webhooks and service hooks. */ verifySSL?: boolean; /** * Environment selected by default when viewing this project. */ defaultEnvironment?: string | null; /** * Remove known sensitive values from events before storing them. */ dataScrubber?: boolean; /** * Also scrub Sentry's built-in list of sensitive field names. */ dataScrubberDefaults?: boolean; /** * Additional field names to scrub from events, beyond the defaults. */ sensitiveFields?: Array; /** * Field names to exempt from scrubbing, including the built-in defaults. */ safeFields?: Array; /** * Number of native crash report files to store per issue. Use `-1` for unlimited or `0` to store none. */ storeCrashReports?: number | null; /** * Advanced data scrubbing rules, as a JSON string, applied before events are stored. */ relayPiiConfig?: string | null; /** * Identifiers of Sentry-hosted symbol sources to use when symbolicating events. */ builtinSymbolSources?: Array; /** * Custom symbol sources, as a JSON string, to use when symbolicating events. */ symbolSources?: string | null; /** * Apply source server (srcsrv) information from native debug files to symbolicated frames. */ enableNativeSourceServerMapping?: boolean; /** * Discard client IP addresses rather than storing them on events. */ scrubIPAddresses?: boolean; /** * Identifier of the grouping algorithm used to assign events to issues. */ groupingConfig?: string | null; /** * Grouping enhancement rules, as a newline-delimited config string, adjusting which stack frames contribute to an issue. */ groupingEnhancements?: string | null; /** * Fingerprinting rules, as a newline-delimited config string, controlling how events are grouped into issues. */ fingerprintingRules?: string | null; /** * Grouping algorithm run alongside the primary one during a grouping migration. */ secondaryGroupingConfig?: string | null; /** * Unix timestamp after which the secondary grouping algorithm stops running. */ secondaryGroupingExpiry?: number | null; /** * Allow Sentry to fetch source files and source maps from your servers. */ scrapeJavaScript?: boolean; /** * Automatically create releases from ingested events. When disabled, releases must be created manually (e.g. via the Sentry CLI). */ enableAutoReleaseCreation?: boolean; /** * Origins permitted to send events to this project. Use `*` to allow any. */ allowedDomains?: Array; /** * ID of a project whose settings, teams, and keys should be copied into this one. */ copy_from_project?: number; /** * Per-bias toggles adjusting which transactions dynamic sampling favors retaining. */ dynamicSamplingBiases?: Array<{ /** * * `boostEnvironments` * * `boostKeyTransactions` * * `boostLatestRelease` * * `boostLowVolumeTransactions` * * `boostReplayId` * * `ignoreHealthChecks` * * `minimumSampleRate` * * `recalibrationRule` */ id: 'boostEnvironments' | 'boostKeyTransactions' | 'boostLatestRelease' | 'boostLowVolumeTransactions' | 'boostReplayId' | 'ignoreHealthChecks' | 'minimumSampleRate' | 'recalibrationRule'; active?: boolean; }>; /** * Fetch screenshots attached to console crash reports. Requires the Tempest feature. */ tempestFetchScreenshots?: boolean; /** * Enable on-demand source context fetching from SCM integrations for stack traces. */ scmSourceContextEnabled?: boolean; /** * The role required to download debug information files, ProGuard mappings and source maps. If not set, inherits from organization setting. * * * `member` - Member * * `admin` - Admin * * `manager` - Manager * * `owner` - Owner */ debugFilesRole?: 'member' | 'admin' | 'manager' | 'owner' | null; }; path: { /** * The ID or slug of the organization the resource belongs to. */ organization_id_or_slug: string; /** * The ID or slug of the project the resource belongs to. Project slugs are unique within each organization. */ project_id_or_slug: string; }; query?: never; url: '/projects/{organization_id_or_slug}/{project_id_or_slug}/'; }; export type UpdateProjectErrors = { /** * Bad Request */ 400: unknown; /** * Forbidden */ 403: unknown; /** * Not Found */ 404: unknown; /** * Conflict */ 409: unknown; }; export type UpdateProjectResponses = { 200: { /** * Counts of non-transaction events per interval over the requested stats period, as [timestamp, count] pairs. Only included when a stats period is requested */ stats?: Array> | { [key: string]: number; }; /** * Counts of transactions per interval over the requested stats period, as [timestamp, count] pairs. Only included when transaction stats are requested */ transactionStats?: Array>; /** * Crash-free session rates for the current and previous stats period. Only included when session stats are requested */ sessionStats?: { /** * Crash-free rate in the current period, as a percentage. Null when there's no session data */ currentCrashFreeRate: number | null; /** * Crash-free rate in the previous period, as a percentage. Null when there's no session data */ previousCrashFreeRate: number | null; /** * Whether the project has release health (session) data */ hasHealthData: boolean; }; /** * ID of the project */ id: string; /** * Slug of the project */ slug: string; /** * Name of the project */ name: string; /** * Platform of the project */ platform: string | null; /** * When the project was created (ISO 8601) */ dateCreated: string; /** * Whether the requesting user bookmarked the project */ isBookmarked: boolean; /** * Whether the requesting user is a member of a team with access to the project */ isMember: boolean; /** * Features enabled for the project */ features: Array; /** * When the project received its first event (ISO 8601) */ firstEvent: string | null; /** * Whether the project has sent transactions */ firstTransactionEvent: boolean; /** * Scopes the requesting user has on the project through team membership and organization role */ access: Array; /** * Whether the requesting user has access to the project */ hasAccess: boolean; /** * Whether the project has sent user feedback */ hasFeedbacks: boolean; /** * Whether the project has sent feature flags */ hasFlags: boolean; /** * Whether the project has sent an event with a minified stack trace */ hasMinifiedStackTrace: boolean; /** * Whether the project has cron monitors */ hasMonitors: boolean; /** * Whether the project has sent user feedback from the user feedback widget */ hasNewFeedbacks: boolean; /** * Whether the project has sent profiles */ hasProfiles: boolean; /** * Whether the project has sent replays */ hasReplays: boolean; /** * Whether the project has sent sessions */ hasSessions: boolean; /** * Whether the project has sent HTTP request spans used by Insights */ hasInsightsHttp: boolean; /** * Whether the project has sent database spans used by Insights */ hasInsightsDb: boolean; /** * Whether the project has sent asset spans used by Insights */ hasInsightsAssets: boolean; /** * Whether the project has sent app start spans used by Insights */ hasInsightsAppStart: boolean; /** * Whether the project has sent screen load spans used by Insights */ hasInsightsScreenLoad: boolean; /** * Whether the project has sent web vitals spans used by Insights */ hasInsightsVitals: boolean; /** * Whether the project has sent cache spans used by Insights */ hasInsightsCaches: boolean; /** * Whether the project has sent queue spans used by Insights */ hasInsightsQueues: boolean; /** * Whether the project has sent AI agent spans used by Insights */ hasInsightsAgentMonitoring: boolean; /** * Whether the project has sent MCP spans used by Insights */ hasInsightsMCP: boolean; /** * Whether the project has sent logs. Always true outside sentry.io */ hasLogs: boolean; /** * Whether the project has sent trace metrics. Always true outside sentry.io */ hasTraceMetrics: boolean; /** * Whether this is the Sentry install's own internal project */ isInternal: boolean; /** * Whether the project is public */ isPublic: boolean; /** * Avatar of the project. Always a letter avatar */ avatar: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Hex color code for the project, derived from its slug unless set explicitly */ color: string; /** * Status of the project: active, deleted, or unknown */ status: string; /** * First team with access to the project; use teams instead */ team?: { /** * ID of the team */ id: string; /** * Name of the team */ name: string; /** * Slug of the team */ slug: string; }; /** * Teams with access to the project */ teams: Array<{ /** * ID of the team */ id: string; /** * Name of the team */ name: string; /** * Slug of the team */ slug: string; }>; /** * Latest release of the project */ latestRelease: { /** * Version of the release */ version: string; } | null; /** * Additional project settings keyed by option name, such as inbound filters and preprod settings */ options: { [key: string]: unknown; }; /** * Minimum time in seconds to wait before sending an issue digest email */ digestsMinDelay: number; /** * Maximum time in seconds to wait before sending an issue digest email */ digestsMaxDelay: number; /** * Custom prefix for emails from this project */ subjectPrefix: string; /** * Origins permitted to send events to this project. `*` allows any */ allowedDomains: Array; /** * Hours after which an issue that hasn't been seen is automatically resolved. 0 disables auto-resolve */ resolveAge: number; /** * Whether known sensitive values are removed from events before they are stored */ dataScrubber: boolean; /** * Whether Sentry's built-in list of sensitive field names is also scrubbed */ dataScrubberDefaults: boolean; /** * Field names exempt from scrubbing */ safeFields: Array; /** * Number of native crash report files stored per issue. -1 means unlimited, 0 stores none, and null inherits the organization setting */ storeCrashReports: number | null; /** * Additional field names scrubbed from events, beyond the defaults */ sensitiveFields: Array; /** * Email subject used for individual alerts, excluding the prefix */ subjectTemplate: string; /** * Token sent with outbound source-scraping requests. Returns an empty string without project:write or project:admin access */ securityToken: string; /** * Name of the header carrying the outbound source-scraping token. Defaults to X-Sentry-Token */ securityTokenHeader: string | null; /** * Whether SSL certificates are verified when delivering outbound webhooks and service hooks */ verifySSL: boolean; /** * Whether client IP addresses are discarded rather than stored on events */ scrubIPAddresses: boolean; /** * Whether Sentry may fetch source files and source maps from your servers */ scrapeJavaScript: boolean; /** * Whether releases are created automatically from ingested events */ enableAutoReleaseCreation: boolean; /** * Tag keys highlighted on the project's issues */ highlightTags: Array; /** * Context keys highlighted on the project's issues, as a mapping of context types to lists of keys */ highlightContext: { [key: string]: Array; }; /** * Default highlighted tags and context for the project's platform */ highlightPreset: { /** * Tag keys to highlight by default */ tags: Array; /** * Context keys to highlight by default, by context name */ context: { [key: string]: Array; }; }; /** * Identifier of the grouping algorithm used to assign events to issues */ groupingConfig: string; /** * Stack trace rules that Sentry derives from the project's code mappings, as a newline-delimited config string */ derivedGroupingEnhancements: string; /** * Grouping enhancement rules, as a newline-delimited config string, adjusting which stack frames contribute to an issue */ groupingEnhancements: string; /** * Unix timestamp after which the secondary grouping algorithm stops running */ secondaryGroupingExpiry: number; /** * Grouping algorithm run alongside the primary one during a grouping migration */ secondaryGroupingConfig: string | null; /** * Fingerprinting rules, as a newline-delimited config string, controlling how events are grouped into issues */ fingerprintingRules: string; /** * Organization that owns the project */ organization: { /** * Features enabled for the organization */ features?: Array; /** * Server-wide options that the Sentry UI reads */ extraOptions?: { [key: string]: { [key: string]: unknown; }; }; /** * Scopes the requesting user has in the organization */ access?: Array; /** * Onboarding tasks the organization has completed or skipped */ onboardingTasks?: Array<{ /** * Onboarding task key, such as create_project */ task: string | null; /** * Task status: complete or skipped */ status: string; /** * When the task's completion was marked as seen, or null */ completionSeen: string | null; /** * When the task was completed or skipped */ dateCompleted: string; /** * Data recorded for the task. Most tasks record none, so it's often empty */ data: { /** * ID of the member whose invite completed the invite_member task */ invited_member_id?: number; /** * Platform of the first event, for the first_event task */ platform?: string | null; /** * Slug of the plugin enabled for the task */ plugin?: string; /** * Integration providers installed for the integrations task */ providers?: Array; }; }>; /** * Organization ID */ id: string; /** * Organization slug */ slug: string; /** * Organization status */ status: { /** * Status ID: active, pending_deletion, deletion_in_progress or relocation_pending_approval */ id: string; /** * Status label, such as active or pending deletion */ name: string; }; /** * Organization name, or its slug when it has no name */ name: string; /** * When the organization was created (ISO 8601) */ dateCreated: string; /** * Whether the organization is an early adopter */ isEarlyAdopter: boolean; /** * Whether members must use two-factor authentication */ require2FA: boolean; /** * Organization avatar */ avatar: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Organization and region URLs */ links: { /** * Base URL of the organization */ organizationUrl: string; /** * Base URL of the API for the organization's region */ regionUrl: string; }; /** * Whether SSO is configured for the organization */ hasAuthProvider: boolean; /** * Whether members can invite other members */ allowMemberInvite: boolean; /** * Whether members can create projects */ allowMemberProjectCreation: boolean; /** * Whether Sentry superusers can access the organization */ allowSuperuserAccess: boolean; }; /** * Platforms seen in the project's events */ platforms: Array; /** * Always 0 */ processingIssues: number; /** * Environment selected by default when viewing this project */ defaultEnvironment: string | null; /** * Advanced data scrubbing rules, as a JSON string, applied before events are stored */ relayPiiConfig: string | null; /** * Identifiers of Sentry-hosted symbol sources used when symbolicating events */ builtinSymbolSources: Array; /** * Whether source server (srcsrv) information from native debug files is applied to symbolicated frames */ enableNativeSourceServerMapping: boolean; /** * Per-bias toggles adjusting which transactions dynamic sampling favors retaining */ dynamicSamplingBiases: Array<{ [key: string]: string | boolean; }> | null; /** * Custom symbol sources as a JSON string, with secrets redacted */ symbolSources: string; /** * Whether dynamic sampling retains less than 100% of the project's transactions */ isDynamicallySampled: boolean; /** * Whether screenshots attached to console crash reports are fetched. Only included when the organization has Tempest access */ tempestFetchScreenshots?: boolean; /** * How aggressively Seer runs Autofix on new issues */ autofixAutomationTuning?: string; /** * Whether Seer scans new issues automatically */ seerScannerAutomation?: boolean; /** * Experimental Seer settings with no stable shape */ seerNightshiftTweaks?: unknown; /** * Whether source context is fetched on demand from SCM integrations for stack traces */ scmSourceContextEnabled?: boolean; /** * Role required to download debug information files, ProGuard mappings and source maps. Null inherits the organization setting */ debugFilesRole?: string | null; }; }; export type UpdateProjectResponse = UpdateProjectResponses[keyof UpdateProjectResponses]; export type ListStackCodeMappingPrefixesData = { body?: never; path: { /** * The ID or slug of the organization the resource belongs to. */ organization_id_or_slug: string; /** * The ID or slug of the project the resource belongs to. Project slugs are unique within each organization. */ project_id_or_slug: string; }; query?: never; url: '/projects/{organization_id_or_slug}/{project_id_or_slug}/code-mapping-prefixes/stack/'; }; export type ListStackCodeMappingPrefixesErrors = { /** * Unauthorized */ 401: unknown; /** * Forbidden */ 403: unknown; /** * Not Found */ 404: unknown; }; export type ListStackCodeMappingPrefixesResponses = { 200: { /** * Path prefixes of the project's stack trace frames */ prefixes: Array<{ /** * Path prefix */ path: string; /** * Number of files under the prefix */ fileCount: number; }>; }; }; export type ListStackCodeMappingPrefixesResponse = ListStackCodeMappingPrefixesResponses[keyof ListStackCodeMappingPrefixesResponses]; export type ListProjectCodeOwnersData = { body?: never; path: { /** * The ID or slug of the organization the resource belongs to. */ organization_id_or_slug: string; /** * The ID or slug of the project the resource belongs to. Project slugs are unique within each organization. */ project_id_or_slug: string; }; query?: { /** * Optional fields to expand. */ expand?: Array<'codeMapping' | 'ownershipSyntax'>; }; url: '/projects/{organization_id_or_slug}/{project_id_or_slug}/codeowners/'; }; export type ListProjectCodeOwnersErrors = { /** * Unauthorized */ 401: unknown; /** * Forbidden */ 403: unknown; /** * Not Found */ 404: unknown; }; export type ListProjectCodeOwnersResponses = { 200: Array<{ /** * Code mapping of the CODEOWNERS file. Only set when expand includes codeMapping */ codeMapping?: { /** * ID of the code mapping */ id: string; /** * ID of the project */ projectId: string; /** * Slug of the project */ projectSlug: string; /** * ID of the repository */ repoId: string; /** * Name of the repository */ repoName: string; /** * ID of the repository's integration */ integrationId: string | null; /** * Provider of the repository's integration */ provider: { /** * Key of the integration provider, such as github */ key: string; /** * Slug of the integration provider, same as key */ slug: string; /** * Display name of the integration provider */ name: string; /** * Whether the integration can be installed from Sentry */ canAdd: boolean; /** * Whether the integration must be uninstalled from the provider instead of in Sentry */ canDisable: boolean; /** * Features the integration provider supports, such as issue-basic or commits */ features: Array; /** * Extra provider details shown during setup, such as alerts and configuration instructions */ aspects: { /** * Alerts shown during setup */ alerts?: Array<{ /** * Style of the alert, such as warning */ type: string; /** * Icon shown with the alert, such as icon-warning-sm */ icon: string; /** * Text of the alert, in Markdown */ text: string; }>; /** * Configuration step after install */ configure_integration?: { /** * Title of the configuration step */ title: string; }; /** * Whether the integration is enabled without an install flow */ directEnable?: boolean; /** * Dialog shown before the integration is disabled */ disable_dialog?: { /** * Label of the dialog's confirm button */ actionText: string; /** * Text of the dialog */ body: string; }; /** * Where to install the integration when it's installed outside Sentry */ externalInstall?: { /** * URL to install the integration from, such as a marketplace */ url: string; /** * Label of the install button */ buttonText: string; /** * Notice shown before the user leaves Sentry */ noticeText: string; }; /** * Dialog shown before the integration is removed */ removal_dialog?: { /** * Label of the dialog's confirm button */ actionText: string; /** * Text of the dialog */ body: string; }; }; } | null; /** * Stack trace path prefix that the mapping replaces */ stackRoot: string; /** * Repository path prefix that replaces the stack root */ sourceRoot: string; /** * Branch to link source files on */ defaultBranch: string | null; /** * Whether Sentry created the mapping automatically */ automaticallyGenerated: boolean; /** * Whether the mapping has a CODEOWNERS file linked */ hasCodeOwner: boolean; }; /** * CODEOWNERS rules translated to Sentry ownership rules. Only set when expand includes ownershipSyntax */ ownershipSyntax?: string; /** * Owners that couldn't be associated, by reason. Only set when expand includes errors */ errors?: { /** * Email owners in the CODEOWNERS file with no matching Sentry user */ missing_user_emails: Array; /** * User owners in the CODEOWNERS file with no external user mapping */ missing_external_users: Array; /** * Team owners in the CODEOWNERS file with no external team mapping */ missing_external_teams: Array; /** * Teams in the CODEOWNERS file that don't have access to the project */ teams_without_access: Array; /** * Users in the CODEOWNERS file who aren't members of a team with access to the project */ users_without_access: Array; }; /** * Parsed rules of the CODEOWNERS file. Only set when expand includes hasTargetingContext */ schema?: { /** * Version of the ownership rules schema */ $version: number; /** * Ownership rules, in order */ rules: Array<{ /** * What the rule matches */ matcher: { /** * What the rule matches on, path, module, url, codeowners or tags. */ type: string; /** * Pattern the value is matched against */ pattern: string; }; /** * Owners the rule assigns */ owners: Array<{ /** * Whether the owner is a user or a team */ type: string; /** * Email of the user, or slug of the team */ name: string; /** * ID of the user or team. Only set when the owner was resolved */ id?: string; }>; }>; } | { [key: string]: unknown; }; /** * URL of the CODEOWNERS file in the repository, or unknown. Only set when expand includes hasTargetingContext */ codeOwnersUrl?: string; /** * ID of the CODEOWNERS record */ id: string; /** * Contents of the CODEOWNERS file */ raw: string; /** * When the CODEOWNERS file was added (ISO 8601) */ dateCreated: string; /** * When the record was last updated (ISO 8601) */ dateUpdated: string; /** * When the file was last synced from the repository (ISO 8601). Null when it was never synced */ dateSynced: string | null; /** * ID of the code mapping of the CODEOWNERS file */ codeMappingId: string; /** * Provider of the repository's integration, such as github, or unknown */ provider: string; }>; }; export type ListProjectCodeOwnersResponse = ListProjectCodeOwnersResponses[keyof ListProjectCodeOwnersResponses]; export type CreateProjectCodeOwnersData = { body: { /** * The raw contents of the CODEOWNERS file. */ raw: string; /** * The ID of the code mapping used to translate repository paths to stack trace paths. */ codeMappingId: string; }; path: { /** * The ID or slug of the organization the resource belongs to. */ organization_id_or_slug: string; /** * The ID or slug of the project the resource belongs to. Project slugs are unique within each organization. */ project_id_or_slug: string; }; query?: never; url: '/projects/{organization_id_or_slug}/{project_id_or_slug}/codeowners/'; }; export type CreateProjectCodeOwnersErrors = { /** * Bad Request */ 400: unknown; /** * Unauthorized */ 401: unknown; /** * Forbidden */ 403: unknown; /** * Not Found */ 404: unknown; }; export type CreateProjectCodeOwnersResponses = { 201: { /** * Code mapping of the CODEOWNERS file. Only set when expand includes codeMapping */ codeMapping?: { /** * ID of the code mapping */ id: string; /** * ID of the project */ projectId: string; /** * Slug of the project */ projectSlug: string; /** * ID of the repository */ repoId: string; /** * Name of the repository */ repoName: string; /** * ID of the repository's integration */ integrationId: string | null; /** * Provider of the repository's integration */ provider: { /** * Key of the integration provider, such as github */ key: string; /** * Slug of the integration provider, same as key */ slug: string; /** * Display name of the integration provider */ name: string; /** * Whether the integration can be installed from Sentry */ canAdd: boolean; /** * Whether the integration must be uninstalled from the provider instead of in Sentry */ canDisable: boolean; /** * Features the integration provider supports, such as issue-basic or commits */ features: Array; /** * Extra provider details shown during setup, such as alerts and configuration instructions */ aspects: { /** * Alerts shown during setup */ alerts?: Array<{ /** * Style of the alert, such as warning */ type: string; /** * Icon shown with the alert, such as icon-warning-sm */ icon: string; /** * Text of the alert, in Markdown */ text: string; }>; /** * Configuration step after install */ configure_integration?: { /** * Title of the configuration step */ title: string; }; /** * Whether the integration is enabled without an install flow */ directEnable?: boolean; /** * Dialog shown before the integration is disabled */ disable_dialog?: { /** * Label of the dialog's confirm button */ actionText: string; /** * Text of the dialog */ body: string; }; /** * Where to install the integration when it's installed outside Sentry */ externalInstall?: { /** * URL to install the integration from, such as a marketplace */ url: string; /** * Label of the install button */ buttonText: string; /** * Notice shown before the user leaves Sentry */ noticeText: string; }; /** * Dialog shown before the integration is removed */ removal_dialog?: { /** * Label of the dialog's confirm button */ actionText: string; /** * Text of the dialog */ body: string; }; }; } | null; /** * Stack trace path prefix that the mapping replaces */ stackRoot: string; /** * Repository path prefix that replaces the stack root */ sourceRoot: string; /** * Branch to link source files on */ defaultBranch: string | null; /** * Whether Sentry created the mapping automatically */ automaticallyGenerated: boolean; /** * Whether the mapping has a CODEOWNERS file linked */ hasCodeOwner: boolean; }; /** * CODEOWNERS rules translated to Sentry ownership rules. Only set when expand includes ownershipSyntax */ ownershipSyntax?: string; /** * Owners that couldn't be associated, by reason. Only set when expand includes errors */ errors?: { /** * Email owners in the CODEOWNERS file with no matching Sentry user */ missing_user_emails: Array; /** * User owners in the CODEOWNERS file with no external user mapping */ missing_external_users: Array; /** * Team owners in the CODEOWNERS file with no external team mapping */ missing_external_teams: Array; /** * Teams in the CODEOWNERS file that don't have access to the project */ teams_without_access: Array; /** * Users in the CODEOWNERS file who aren't members of a team with access to the project */ users_without_access: Array; }; /** * Parsed rules of the CODEOWNERS file. Only set when expand includes hasTargetingContext */ schema?: { /** * Version of the ownership rules schema */ $version: number; /** * Ownership rules, in order */ rules: Array<{ /** * What the rule matches */ matcher: { /** * What the rule matches on, path, module, url, codeowners or tags. */ type: string; /** * Pattern the value is matched against */ pattern: string; }; /** * Owners the rule assigns */ owners: Array<{ /** * Whether the owner is a user or a team */ type: string; /** * Email of the user, or slug of the team */ name: string; /** * ID of the user or team. Only set when the owner was resolved */ id?: string; }>; }>; } | { [key: string]: unknown; }; /** * URL of the CODEOWNERS file in the repository, or unknown. Only set when expand includes hasTargetingContext */ codeOwnersUrl?: string; /** * ID of the CODEOWNERS record */ id: string; /** * Contents of the CODEOWNERS file */ raw: string; /** * When the CODEOWNERS file was added (ISO 8601) */ dateCreated: string; /** * When the record was last updated (ISO 8601) */ dateUpdated: string; /** * When the file was last synced from the repository (ISO 8601). Null when it was never synced */ dateSynced: string | null; /** * ID of the code mapping of the CODEOWNERS file */ codeMappingId: string; /** * Provider of the repository's integration, such as github, or unknown */ provider: string; }; }; export type CreateProjectCodeOwnersResponse = CreateProjectCodeOwnersResponses[keyof CreateProjectCodeOwnersResponses]; export type DeleteProjectCodeOwnersData = { body?: never; path: { /** * The ID or slug of the organization the resource belongs to. */ organization_id_or_slug: string; /** * The ID or slug of the project the resource belongs to. Project slugs are unique within each organization. */ project_id_or_slug: string; /** * The ID of the CODEOWNERS configuration. */ codeowners_id: string; }; query?: never; url: '/projects/{organization_id_or_slug}/{project_id_or_slug}/codeowners/{codeowners_id}/'; }; export type DeleteProjectCodeOwnersErrors = { /** * Unauthorized */ 401: unknown; /** * Forbidden */ 403: unknown; /** * Not Found */ 404: unknown; }; export type DeleteProjectCodeOwnersResponses = { /** * No Content */ 204: void; }; export type DeleteProjectCodeOwnersResponse = DeleteProjectCodeOwnersResponses[keyof DeleteProjectCodeOwnersResponses]; export type RetrieveProjectCodeOwnersData = { body?: never; path: { /** * The ID or slug of the organization the resource belongs to. */ organization_id_or_slug: string; /** * The ID or slug of the project the resource belongs to. Project slugs are unique within each organization. */ project_id_or_slug: string; /** * The ID of the CODEOWNERS configuration. */ codeowners_id: string; }; query?: never; url: '/projects/{organization_id_or_slug}/{project_id_or_slug}/codeowners/{codeowners_id}/'; }; export type RetrieveProjectCodeOwnersErrors = { /** * Unauthorized */ 401: unknown; /** * Forbidden */ 403: unknown; /** * Not Found */ 404: unknown; }; export type RetrieveProjectCodeOwnersResponses = { 200: { /** * Code mapping of the CODEOWNERS file. Only set when expand includes codeMapping */ codeMapping?: { /** * ID of the code mapping */ id: string; /** * ID of the project */ projectId: string; /** * Slug of the project */ projectSlug: string; /** * ID of the repository */ repoId: string; /** * Name of the repository */ repoName: string; /** * ID of the repository's integration */ integrationId: string | null; /** * Provider of the repository's integration */ provider: { /** * Key of the integration provider, such as github */ key: string; /** * Slug of the integration provider, same as key */ slug: string; /** * Display name of the integration provider */ name: string; /** * Whether the integration can be installed from Sentry */ canAdd: boolean; /** * Whether the integration must be uninstalled from the provider instead of in Sentry */ canDisable: boolean; /** * Features the integration provider supports, such as issue-basic or commits */ features: Array; /** * Extra provider details shown during setup, such as alerts and configuration instructions */ aspects: { /** * Alerts shown during setup */ alerts?: Array<{ /** * Style of the alert, such as warning */ type: string; /** * Icon shown with the alert, such as icon-warning-sm */ icon: string; /** * Text of the alert, in Markdown */ text: string; }>; /** * Configuration step after install */ configure_integration?: { /** * Title of the configuration step */ title: string; }; /** * Whether the integration is enabled without an install flow */ directEnable?: boolean; /** * Dialog shown before the integration is disabled */ disable_dialog?: { /** * Label of the dialog's confirm button */ actionText: string; /** * Text of the dialog */ body: string; }; /** * Where to install the integration when it's installed outside Sentry */ externalInstall?: { /** * URL to install the integration from, such as a marketplace */ url: string; /** * Label of the install button */ buttonText: string; /** * Notice shown before the user leaves Sentry */ noticeText: string; }; /** * Dialog shown before the integration is removed */ removal_dialog?: { /** * Label of the dialog's confirm button */ actionText: string; /** * Text of the dialog */ body: string; }; }; } | null; /** * Stack trace path prefix that the mapping replaces */ stackRoot: string; /** * Repository path prefix that replaces the stack root */ sourceRoot: string; /** * Branch to link source files on */ defaultBranch: string | null; /** * Whether Sentry created the mapping automatically */ automaticallyGenerated: boolean; /** * Whether the mapping has a CODEOWNERS file linked */ hasCodeOwner: boolean; }; /** * CODEOWNERS rules translated to Sentry ownership rules. Only set when expand includes ownershipSyntax */ ownershipSyntax?: string; /** * Owners that couldn't be associated, by reason. Only set when expand includes errors */ errors?: { /** * Email owners in the CODEOWNERS file with no matching Sentry user */ missing_user_emails: Array; /** * User owners in the CODEOWNERS file with no external user mapping */ missing_external_users: Array; /** * Team owners in the CODEOWNERS file with no external team mapping */ missing_external_teams: Array; /** * Teams in the CODEOWNERS file that don't have access to the project */ teams_without_access: Array; /** * Users in the CODEOWNERS file who aren't members of a team with access to the project */ users_without_access: Array; }; /** * Parsed rules of the CODEOWNERS file. Only set when expand includes hasTargetingContext */ schema?: { /** * Version of the ownership rules schema */ $version: number; /** * Ownership rules, in order */ rules: Array<{ /** * What the rule matches */ matcher: { /** * What the rule matches on, path, module, url, codeowners or tags. */ type: string; /** * Pattern the value is matched against */ pattern: string; }; /** * Owners the rule assigns */ owners: Array<{ /** * Whether the owner is a user or a team */ type: string; /** * Email of the user, or slug of the team */ name: string; /** * ID of the user or team. Only set when the owner was resolved */ id?: string; }>; }>; } | { [key: string]: unknown; }; /** * URL of the CODEOWNERS file in the repository, or unknown. Only set when expand includes hasTargetingContext */ codeOwnersUrl?: string; /** * ID of the CODEOWNERS record */ id: string; /** * Contents of the CODEOWNERS file */ raw: string; /** * When the CODEOWNERS file was added (ISO 8601) */ dateCreated: string; /** * When the record was last updated (ISO 8601) */ dateUpdated: string; /** * When the file was last synced from the repository (ISO 8601). Null when it was never synced */ dateSynced: string | null; /** * ID of the code mapping of the CODEOWNERS file */ codeMappingId: string; /** * Provider of the repository's integration, such as github, or unknown */ provider: string; }; }; export type RetrieveProjectCodeOwnersResponse = RetrieveProjectCodeOwnersResponses[keyof RetrieveProjectCodeOwnersResponses]; export type UpdateProjectCodeOwnersData = { body?: { /** * The raw contents of the CODEOWNERS file. */ raw?: string; /** * The ID of the code mapping used to translate repository paths to stack trace paths. */ codeMappingId?: string; }; path: { /** * The ID or slug of the organization the resource belongs to. */ organization_id_or_slug: string; /** * The ID or slug of the project the resource belongs to. Project slugs are unique within each organization. */ project_id_or_slug: string; /** * The ID of the CODEOWNERS configuration. */ codeowners_id: string; }; query?: never; url: '/projects/{organization_id_or_slug}/{project_id_or_slug}/codeowners/{codeowners_id}/'; }; export type UpdateProjectCodeOwnersErrors = { /** * Bad Request */ 400: unknown; /** * Unauthorized */ 401: unknown; /** * Forbidden */ 403: unknown; /** * Not Found */ 404: unknown; }; export type UpdateProjectCodeOwnersResponses = { 200: { /** * Code mapping of the CODEOWNERS file. Only set when expand includes codeMapping */ codeMapping?: { /** * ID of the code mapping */ id: string; /** * ID of the project */ projectId: string; /** * Slug of the project */ projectSlug: string; /** * ID of the repository */ repoId: string; /** * Name of the repository */ repoName: string; /** * ID of the repository's integration */ integrationId: string | null; /** * Provider of the repository's integration */ provider: { /** * Key of the integration provider, such as github */ key: string; /** * Slug of the integration provider, same as key */ slug: string; /** * Display name of the integration provider */ name: string; /** * Whether the integration can be installed from Sentry */ canAdd: boolean; /** * Whether the integration must be uninstalled from the provider instead of in Sentry */ canDisable: boolean; /** * Features the integration provider supports, such as issue-basic or commits */ features: Array; /** * Extra provider details shown during setup, such as alerts and configuration instructions */ aspects: { /** * Alerts shown during setup */ alerts?: Array<{ /** * Style of the alert, such as warning */ type: string; /** * Icon shown with the alert, such as icon-warning-sm */ icon: string; /** * Text of the alert, in Markdown */ text: string; }>; /** * Configuration step after install */ configure_integration?: { /** * Title of the configuration step */ title: string; }; /** * Whether the integration is enabled without an install flow */ directEnable?: boolean; /** * Dialog shown before the integration is disabled */ disable_dialog?: { /** * Label of the dialog's confirm button */ actionText: string; /** * Text of the dialog */ body: string; }; /** * Where to install the integration when it's installed outside Sentry */ externalInstall?: { /** * URL to install the integration from, such as a marketplace */ url: string; /** * Label of the install button */ buttonText: string; /** * Notice shown before the user leaves Sentry */ noticeText: string; }; /** * Dialog shown before the integration is removed */ removal_dialog?: { /** * Label of the dialog's confirm button */ actionText: string; /** * Text of the dialog */ body: string; }; }; } | null; /** * Stack trace path prefix that the mapping replaces */ stackRoot: string; /** * Repository path prefix that replaces the stack root */ sourceRoot: string; /** * Branch to link source files on */ defaultBranch: string | null; /** * Whether Sentry created the mapping automatically */ automaticallyGenerated: boolean; /** * Whether the mapping has a CODEOWNERS file linked */ hasCodeOwner: boolean; }; /** * CODEOWNERS rules translated to Sentry ownership rules. Only set when expand includes ownershipSyntax */ ownershipSyntax?: string; /** * Owners that couldn't be associated, by reason. Only set when expand includes errors */ errors?: { /** * Email owners in the CODEOWNERS file with no matching Sentry user */ missing_user_emails: Array; /** * User owners in the CODEOWNERS file with no external user mapping */ missing_external_users: Array; /** * Team owners in the CODEOWNERS file with no external team mapping */ missing_external_teams: Array; /** * Teams in the CODEOWNERS file that don't have access to the project */ teams_without_access: Array; /** * Users in the CODEOWNERS file who aren't members of a team with access to the project */ users_without_access: Array; }; /** * Parsed rules of the CODEOWNERS file. Only set when expand includes hasTargetingContext */ schema?: { /** * Version of the ownership rules schema */ $version: number; /** * Ownership rules, in order */ rules: Array<{ /** * What the rule matches */ matcher: { /** * What the rule matches on, path, module, url, codeowners or tags. */ type: string; /** * Pattern the value is matched against */ pattern: string; }; /** * Owners the rule assigns */ owners: Array<{ /** * Whether the owner is a user or a team */ type: string; /** * Email of the user, or slug of the team */ name: string; /** * ID of the user or team. Only set when the owner was resolved */ id?: string; }>; }>; } | { [key: string]: unknown; }; /** * URL of the CODEOWNERS file in the repository, or unknown. Only set when expand includes hasTargetingContext */ codeOwnersUrl?: string; /** * ID of the CODEOWNERS record */ id: string; /** * Contents of the CODEOWNERS file */ raw: string; /** * When the CODEOWNERS file was added (ISO 8601) */ dateCreated: string; /** * When the record was last updated (ISO 8601) */ dateUpdated: string; /** * When the file was last synced from the repository (ISO 8601). Null when it was never synced */ dateSynced: string | null; /** * ID of the code mapping of the CODEOWNERS file */ codeMappingId: string; /** * Provider of the repository's integration, such as github, or unknown */ provider: string; }; }; export type UpdateProjectCodeOwnersResponse = UpdateProjectCodeOwnersResponses[keyof UpdateProjectCodeOwnersResponses]; export type ListProjectCustomInboundFiltersData = { body?: never; path: { /** * The ID or slug of the organization the resource belongs to. */ organization_id_or_slug: string; /** * The ID or slug of the project the resource belongs to. Project slugs are unique within each organization. */ project_id_or_slug: string; }; query?: never; url: '/projects/{organization_id_or_slug}/{project_id_or_slug}/custom-inbound-filters/'; }; export type ListProjectCustomInboundFiltersErrors = { /** * Bad Request */ 400: unknown; /** * Forbidden */ 403: unknown; /** * Not Found */ 404: unknown; }; export type ListProjectCustomInboundFiltersResponses = { 200: Array<{ /** * The ID of the filter. */ readonly id: string; /** * A human-readable label for the filter. */ name: string | null; /** * Whether the filter drops matching data. An inactive filter is kept but ignored. */ active: boolean; /** * The data the filter matches against. `all` is the catch-all: it filters every data type Sentry ingests, including ones added later, and accepts only the conditions that every data type carries a field for. * * * `all` * * `error` * * `log` * * `metric` * * `span` */ dataType: 'all' | 'error' | 'log' | 'metric' | 'span'; /** * Conditions are combined with AND: an event must match every condition to be filtered out. There is no OR between conditions, so e.g. two release conditions can express a range (`gte 2.0` and `lt 4.0`). To broaden matching, widen a condition's values or add separate filters. */ conditions: Array<{ /** * The field the condition matches against. Every `dataType` accepts `release`, `environment`, `ip_address`, `browser_name` and `browser_version`. In addition, `error` accepts `error_type`, `error_message` and `geo_country_code`, `log` accepts `log_message`, and `metric` accepts `metric_name`. `span` and `all` accept no other types. * * * `error_type` * * `error_message` * * `log_message` * * `metric_name` * * `release` * * `environment` * * `ip_address` * * `geo_country_code` * * `browser_name` * * `browser_version` */ type: 'error_type' | 'error_message' | 'log_message' | 'metric_name' | 'release' | 'environment' | 'ip_address' | 'geo_country_code' | 'browser_name' | 'browser_version'; /** * How the field compares to `value`. `glob` matches the field against each value as a glob pattern. `equals`, `starts_with`, `contains` and `ends_with` match the field against each value case-insensitively, with every character read literally; `does_not_start_with`, `does_not_contain` and `does_not_end_with` match when the field is set and no value does. `cidr` matches `ip_address` against each value as an address or a CIDR range, and `not_cidr` matches when no value does. `gt`, `gte`, `lt` and `lte` compare one value as a version and only apply to `release` and `browser_version`. * * * `glob` * * `equals` * * `starts_with` * * `contains` * * `ends_with` * * `does_not_start_with` * * `does_not_contain` * * `does_not_end_with` * * `cidr` * * `not_cidr` * * `gt` * * `gte` * * `lt` * * `lte` */ operator?: 'glob' | 'equals' | 'starts_with' | 'contains' | 'ends_with' | 'does_not_start_with' | 'does_not_contain' | 'does_not_end_with' | 'cidr' | 'not_cidr' | 'gt' | 'gte' | 'lt' | 'lte'; /** * The values the field is compared to. The condition matches when any value matches, so multiple values act as OR; a negated operator matches when none does. A version comparison takes one release with a version such as `1.2.0` or `myapp@1.2.0`. A comparison with a package only applies to releases of that package. A `browser_version` comparison takes a version without a package, such as `120` or `120.0.6099`. */ value: Array; }>; /** * When the filter was created. */ readonly dateCreated: string; /** * When the filter was last changed. */ readonly dateUpdated: string; /** * Set on a filter that holds one of the filter lists of the project settings, to the id its outcomes are reported under. Such a filter keeps its data type and its one condition: only the name, the active flag and the condition values can change, and deleting it empties the list. */ readonly legacyFilter: string | null; }>; }; export type ListProjectCustomInboundFiltersResponse = ListProjectCustomInboundFiltersResponses[keyof ListProjectCustomInboundFiltersResponses]; export type CreateProjectCustomInboundFilterData = { /** * The body of a create or update request: the fields a caller can set. The server sets * the id, the dates and the legacy filter, so they are not part of it. */ body: { /** * The data the filter matches against. `all` is the catch-all: it filters every data type Sentry ingests, including ones added later, and accepts only the conditions that every data type carries a field for. * * * `all` * * `error` * * `log` * * `metric` * * `span` */ dataType: 'all' | 'error' | 'log' | 'metric' | 'span'; /** * Conditions are combined with AND: an event must match every condition to be filtered out. There is no OR between conditions, so e.g. two release conditions can express a range (`gte 2.0` and `lt 4.0`). To broaden matching, widen a condition's values or add separate filters. */ conditions: Array<{ /** * The field the condition matches against. Every `dataType` accepts `release`, `environment`, `ip_address`, `browser_name` and `browser_version`. In addition, `error` accepts `error_type`, `error_message` and `geo_country_code`, `log` accepts `log_message`, and `metric` accepts `metric_name`. `span` and `all` accept no other types. * * * `error_type` * * `error_message` * * `log_message` * * `metric_name` * * `release` * * `environment` * * `ip_address` * * `geo_country_code` * * `browser_name` * * `browser_version` */ type: 'error_type' | 'error_message' | 'log_message' | 'metric_name' | 'release' | 'environment' | 'ip_address' | 'geo_country_code' | 'browser_name' | 'browser_version'; /** * How the field compares to `value`. `glob` matches the field against each value as a glob pattern. `equals`, `starts_with`, `contains` and `ends_with` match the field against each value case-insensitively, with every character read literally; `does_not_start_with`, `does_not_contain` and `does_not_end_with` match when the field is set and no value does. `cidr` matches `ip_address` against each value as an address or a CIDR range, and `not_cidr` matches when no value does. `gt`, `gte`, `lt` and `lte` compare one value as a version and only apply to `release` and `browser_version`. * * * `glob` * * `equals` * * `starts_with` * * `contains` * * `ends_with` * * `does_not_start_with` * * `does_not_contain` * * `does_not_end_with` * * `cidr` * * `not_cidr` * * `gt` * * `gte` * * `lt` * * `lte` */ operator: 'glob' | 'equals' | 'starts_with' | 'contains' | 'ends_with' | 'does_not_start_with' | 'does_not_contain' | 'does_not_end_with' | 'cidr' | 'not_cidr' | 'gt' | 'gte' | 'lt' | 'lte'; /** * The values the field is compared to. The condition matches when any value matches, so multiple values act as OR; a negated operator matches when none does. A version comparison takes one release with a version such as `1.2.0` or `myapp@1.2.0`. A comparison with a package only applies to releases of that package. A `browser_version` comparison takes a version without a package, such as `120` or `120.0.6099`. */ value: Array; }>; /** * A human-readable label for the filter. */ name?: string | null; /** * Whether the filter drops matching data. An inactive filter is kept but ignored. */ active?: boolean; }; path: { /** * The ID or slug of the organization the resource belongs to. */ organization_id_or_slug: string; /** * The ID or slug of the project the resource belongs to. Project slugs are unique within each organization. */ project_id_or_slug: string; }; query?: never; url: '/projects/{organization_id_or_slug}/{project_id_or_slug}/custom-inbound-filters/'; }; export type CreateProjectCustomInboundFilterErrors = { /** * Bad Request */ 400: unknown; /** * Forbidden */ 403: unknown; /** * Not Found */ 404: unknown; }; export type CreateProjectCustomInboundFilterResponses = { /** * A filter as the API returns it. Requests go through * `CustomInboundFilterRequestSerializer`, which takes only the fields a caller can set. */ 201: { /** * The ID of the filter. */ readonly id: string; /** * A human-readable label for the filter. */ name: string | null; /** * Whether the filter drops matching data. An inactive filter is kept but ignored. */ active: boolean; /** * The data the filter matches against. `all` is the catch-all: it filters every data type Sentry ingests, including ones added later, and accepts only the conditions that every data type carries a field for. * * * `all` * * `error` * * `log` * * `metric` * * `span` */ dataType: 'all' | 'error' | 'log' | 'metric' | 'span'; /** * Conditions are combined with AND: an event must match every condition to be filtered out. There is no OR between conditions, so e.g. two release conditions can express a range (`gte 2.0` and `lt 4.0`). To broaden matching, widen a condition's values or add separate filters. */ conditions: Array<{ /** * The field the condition matches against. Every `dataType` accepts `release`, `environment`, `ip_address`, `browser_name` and `browser_version`. In addition, `error` accepts `error_type`, `error_message` and `geo_country_code`, `log` accepts `log_message`, and `metric` accepts `metric_name`. `span` and `all` accept no other types. * * * `error_type` * * `error_message` * * `log_message` * * `metric_name` * * `release` * * `environment` * * `ip_address` * * `geo_country_code` * * `browser_name` * * `browser_version` */ type: 'error_type' | 'error_message' | 'log_message' | 'metric_name' | 'release' | 'environment' | 'ip_address' | 'geo_country_code' | 'browser_name' | 'browser_version'; /** * How the field compares to `value`. `glob` matches the field against each value as a glob pattern. `equals`, `starts_with`, `contains` and `ends_with` match the field against each value case-insensitively, with every character read literally; `does_not_start_with`, `does_not_contain` and `does_not_end_with` match when the field is set and no value does. `cidr` matches `ip_address` against each value as an address or a CIDR range, and `not_cidr` matches when no value does. `gt`, `gte`, `lt` and `lte` compare one value as a version and only apply to `release` and `browser_version`. * * * `glob` * * `equals` * * `starts_with` * * `contains` * * `ends_with` * * `does_not_start_with` * * `does_not_contain` * * `does_not_end_with` * * `cidr` * * `not_cidr` * * `gt` * * `gte` * * `lt` * * `lte` */ operator?: 'glob' | 'equals' | 'starts_with' | 'contains' | 'ends_with' | 'does_not_start_with' | 'does_not_contain' | 'does_not_end_with' | 'cidr' | 'not_cidr' | 'gt' | 'gte' | 'lt' | 'lte'; /** * The values the field is compared to. The condition matches when any value matches, so multiple values act as OR; a negated operator matches when none does. A version comparison takes one release with a version such as `1.2.0` or `myapp@1.2.0`. A comparison with a package only applies to releases of that package. A `browser_version` comparison takes a version without a package, such as `120` or `120.0.6099`. */ value: Array; }>; /** * When the filter was created. */ readonly dateCreated: string; /** * When the filter was last changed. */ readonly dateUpdated: string; /** * Set on a filter that holds one of the filter lists of the project settings, to the id its outcomes are reported under. Such a filter keeps its data type and its one condition: only the name, the active flag and the condition values can change, and deleting it empties the list. */ readonly legacyFilter: string | null; }; }; export type CreateProjectCustomInboundFilterResponse = CreateProjectCustomInboundFilterResponses[keyof CreateProjectCustomInboundFilterResponses]; export type DeleteProjectCustomInboundFilterData = { body?: never; path: { /** * The ID or slug of the organization the resource belongs to. */ organization_id_or_slug: string; /** * The ID or slug of the project the resource belongs to. Project slugs are unique within each organization. */ project_id_or_slug: string; /** * The ID of the custom inbound filter. */ filter_id: string; }; query?: never; url: '/projects/{organization_id_or_slug}/{project_id_or_slug}/custom-inbound-filters/{filter_id}/'; }; export type DeleteProjectCustomInboundFilterErrors = { /** * Bad Request */ 400: unknown; /** * Forbidden */ 403: unknown; /** * Not Found */ 404: unknown; }; export type DeleteProjectCustomInboundFilterResponses = { /** * No response body */ 204: void; }; export type DeleteProjectCustomInboundFilterResponse = DeleteProjectCustomInboundFilterResponses[keyof DeleteProjectCustomInboundFilterResponses]; export type GetProjectCustomInboundFilterData = { body?: never; path: { /** * The ID or slug of the organization the resource belongs to. */ organization_id_or_slug: string; /** * The ID or slug of the project the resource belongs to. Project slugs are unique within each organization. */ project_id_or_slug: string; /** * The ID of the custom inbound filter. */ filter_id: string; }; query?: never; url: '/projects/{organization_id_or_slug}/{project_id_or_slug}/custom-inbound-filters/{filter_id}/'; }; export type GetProjectCustomInboundFilterErrors = { /** * Bad Request */ 400: unknown; /** * Forbidden */ 403: unknown; /** * Not Found */ 404: unknown; }; export type GetProjectCustomInboundFilterResponses = { /** * A filter as the API returns it. Requests go through * `CustomInboundFilterRequestSerializer`, which takes only the fields a caller can set. */ 200: { /** * The ID of the filter. */ readonly id: string; /** * A human-readable label for the filter. */ name: string | null; /** * Whether the filter drops matching data. An inactive filter is kept but ignored. */ active: boolean; /** * The data the filter matches against. `all` is the catch-all: it filters every data type Sentry ingests, including ones added later, and accepts only the conditions that every data type carries a field for. * * * `all` * * `error` * * `log` * * `metric` * * `span` */ dataType: 'all' | 'error' | 'log' | 'metric' | 'span'; /** * Conditions are combined with AND: an event must match every condition to be filtered out. There is no OR between conditions, so e.g. two release conditions can express a range (`gte 2.0` and `lt 4.0`). To broaden matching, widen a condition's values or add separate filters. */ conditions: Array<{ /** * The field the condition matches against. Every `dataType` accepts `release`, `environment`, `ip_address`, `browser_name` and `browser_version`. In addition, `error` accepts `error_type`, `error_message` and `geo_country_code`, `log` accepts `log_message`, and `metric` accepts `metric_name`. `span` and `all` accept no other types. * * * `error_type` * * `error_message` * * `log_message` * * `metric_name` * * `release` * * `environment` * * `ip_address` * * `geo_country_code` * * `browser_name` * * `browser_version` */ type: 'error_type' | 'error_message' | 'log_message' | 'metric_name' | 'release' | 'environment' | 'ip_address' | 'geo_country_code' | 'browser_name' | 'browser_version'; /** * How the field compares to `value`. `glob` matches the field against each value as a glob pattern. `equals`, `starts_with`, `contains` and `ends_with` match the field against each value case-insensitively, with every character read literally; `does_not_start_with`, `does_not_contain` and `does_not_end_with` match when the field is set and no value does. `cidr` matches `ip_address` against each value as an address or a CIDR range, and `not_cidr` matches when no value does. `gt`, `gte`, `lt` and `lte` compare one value as a version and only apply to `release` and `browser_version`. * * * `glob` * * `equals` * * `starts_with` * * `contains` * * `ends_with` * * `does_not_start_with` * * `does_not_contain` * * `does_not_end_with` * * `cidr` * * `not_cidr` * * `gt` * * `gte` * * `lt` * * `lte` */ operator?: 'glob' | 'equals' | 'starts_with' | 'contains' | 'ends_with' | 'does_not_start_with' | 'does_not_contain' | 'does_not_end_with' | 'cidr' | 'not_cidr' | 'gt' | 'gte' | 'lt' | 'lte'; /** * The values the field is compared to. The condition matches when any value matches, so multiple values act as OR; a negated operator matches when none does. A version comparison takes one release with a version such as `1.2.0` or `myapp@1.2.0`. A comparison with a package only applies to releases of that package. A `browser_version` comparison takes a version without a package, such as `120` or `120.0.6099`. */ value: Array; }>; /** * When the filter was created. */ readonly dateCreated: string; /** * When the filter was last changed. */ readonly dateUpdated: string; /** * Set on a filter that holds one of the filter lists of the project settings, to the id its outcomes are reported under. Such a filter keeps its data type and its one condition: only the name, the active flag and the condition values can change, and deleting it empties the list. */ readonly legacyFilter: string | null; }; }; export type GetProjectCustomInboundFilterResponse = GetProjectCustomInboundFilterResponses[keyof GetProjectCustomInboundFilterResponses]; export type UpdateProjectCustomInboundFilterData = { /** * The body of an update request. An update changes only the fields it sends. */ body?: { /** * A human-readable label for the filter. */ name?: string | null; /** * Whether the filter drops matching data. An inactive filter is kept but ignored. */ active?: boolean; /** * The data the filter matches against. `all` is the catch-all: it filters every data type Sentry ingests, including ones added later, and accepts only the conditions that every data type carries a field for. * * * `all` * * `error` * * `log` * * `metric` * * `span` */ dataType?: 'all' | 'error' | 'log' | 'metric' | 'span'; /** * Conditions are combined with AND: an event must match every condition to be filtered out. There is no OR between conditions, so e.g. two release conditions can express a range (`gte 2.0` and `lt 4.0`). To broaden matching, widen a condition's values or add separate filters. */ conditions?: Array<{ /** * The field the condition matches against. Every `dataType` accepts `release`, `environment`, `ip_address`, `browser_name` and `browser_version`. In addition, `error` accepts `error_type`, `error_message` and `geo_country_code`, `log` accepts `log_message`, and `metric` accepts `metric_name`. `span` and `all` accept no other types. * * * `error_type` * * `error_message` * * `log_message` * * `metric_name` * * `release` * * `environment` * * `ip_address` * * `geo_country_code` * * `browser_name` * * `browser_version` */ type: 'error_type' | 'error_message' | 'log_message' | 'metric_name' | 'release' | 'environment' | 'ip_address' | 'geo_country_code' | 'browser_name' | 'browser_version'; /** * How the field compares to `value`. `glob` matches the field against each value as a glob pattern. `equals`, `starts_with`, `contains` and `ends_with` match the field against each value case-insensitively, with every character read literally; `does_not_start_with`, `does_not_contain` and `does_not_end_with` match when the field is set and no value does. `cidr` matches `ip_address` against each value as an address or a CIDR range, and `not_cidr` matches when no value does. `gt`, `gte`, `lt` and `lte` compare one value as a version and only apply to `release` and `browser_version`. * * * `glob` * * `equals` * * `starts_with` * * `contains` * * `ends_with` * * `does_not_start_with` * * `does_not_contain` * * `does_not_end_with` * * `cidr` * * `not_cidr` * * `gt` * * `gte` * * `lt` * * `lte` */ operator: 'glob' | 'equals' | 'starts_with' | 'contains' | 'ends_with' | 'does_not_start_with' | 'does_not_contain' | 'does_not_end_with' | 'cidr' | 'not_cidr' | 'gt' | 'gte' | 'lt' | 'lte'; /** * The values the field is compared to. The condition matches when any value matches, so multiple values act as OR; a negated operator matches when none does. A version comparison takes one release with a version such as `1.2.0` or `myapp@1.2.0`. A comparison with a package only applies to releases of that package. A `browser_version` comparison takes a version without a package, such as `120` or `120.0.6099`. */ value: Array; }>; }; path: { /** * The ID or slug of the organization the resource belongs to. */ organization_id_or_slug: string; /** * The ID or slug of the project the resource belongs to. Project slugs are unique within each organization. */ project_id_or_slug: string; /** * The ID of the custom inbound filter. */ filter_id: string; }; query?: never; url: '/projects/{organization_id_or_slug}/{project_id_or_slug}/custom-inbound-filters/{filter_id}/'; }; export type UpdateProjectCustomInboundFilterErrors = { /** * Bad Request */ 400: unknown; /** * Forbidden */ 403: unknown; /** * Not Found */ 404: unknown; }; export type UpdateProjectCustomInboundFilterResponses = { /** * A filter as the API returns it. Requests go through * `CustomInboundFilterRequestSerializer`, which takes only the fields a caller can set. */ 200: { /** * The ID of the filter. */ readonly id: string; /** * A human-readable label for the filter. */ name: string | null; /** * Whether the filter drops matching data. An inactive filter is kept but ignored. */ active: boolean; /** * The data the filter matches against. `all` is the catch-all: it filters every data type Sentry ingests, including ones added later, and accepts only the conditions that every data type carries a field for. * * * `all` * * `error` * * `log` * * `metric` * * `span` */ dataType: 'all' | 'error' | 'log' | 'metric' | 'span'; /** * Conditions are combined with AND: an event must match every condition to be filtered out. There is no OR between conditions, so e.g. two release conditions can express a range (`gte 2.0` and `lt 4.0`). To broaden matching, widen a condition's values or add separate filters. */ conditions: Array<{ /** * The field the condition matches against. Every `dataType` accepts `release`, `environment`, `ip_address`, `browser_name` and `browser_version`. In addition, `error` accepts `error_type`, `error_message` and `geo_country_code`, `log` accepts `log_message`, and `metric` accepts `metric_name`. `span` and `all` accept no other types. * * * `error_type` * * `error_message` * * `log_message` * * `metric_name` * * `release` * * `environment` * * `ip_address` * * `geo_country_code` * * `browser_name` * * `browser_version` */ type: 'error_type' | 'error_message' | 'log_message' | 'metric_name' | 'release' | 'environment' | 'ip_address' | 'geo_country_code' | 'browser_name' | 'browser_version'; /** * How the field compares to `value`. `glob` matches the field against each value as a glob pattern. `equals`, `starts_with`, `contains` and `ends_with` match the field against each value case-insensitively, with every character read literally; `does_not_start_with`, `does_not_contain` and `does_not_end_with` match when the field is set and no value does. `cidr` matches `ip_address` against each value as an address or a CIDR range, and `not_cidr` matches when no value does. `gt`, `gte`, `lt` and `lte` compare one value as a version and only apply to `release` and `browser_version`. * * * `glob` * * `equals` * * `starts_with` * * `contains` * * `ends_with` * * `does_not_start_with` * * `does_not_contain` * * `does_not_end_with` * * `cidr` * * `not_cidr` * * `gt` * * `gte` * * `lt` * * `lte` */ operator?: 'glob' | 'equals' | 'starts_with' | 'contains' | 'ends_with' | 'does_not_start_with' | 'does_not_contain' | 'does_not_end_with' | 'cidr' | 'not_cidr' | 'gt' | 'gte' | 'lt' | 'lte'; /** * The values the field is compared to. The condition matches when any value matches, so multiple values act as OR; a negated operator matches when none does. A version comparison takes one release with a version such as `1.2.0` or `myapp@1.2.0`. A comparison with a package only applies to releases of that package. A `browser_version` comparison takes a version without a package, such as `120` or `120.0.6099`. */ value: Array; }>; /** * When the filter was created. */ readonly dateCreated: string; /** * When the filter was last changed. */ readonly dateUpdated: string; /** * Set on a filter that holds one of the filter lists of the project settings, to the id its outcomes are reported under. Such a filter keeps its data type and its one condition: only the name, the active flag and the condition values can change, and deleting it empties the list. */ readonly legacyFilter: string | null; }; }; export type UpdateProjectCustomInboundFilterResponse = UpdateProjectCustomInboundFilterResponses[keyof UpdateProjectCustomInboundFilterResponses]; export type ListProjectEnvironmentsData = { body?: never; path: { /** * The ID or slug of the organization the resource belongs to. */ organization_id_or_slug: string; /** * The ID or slug of the project the resource belongs to. Project slugs are unique within each organization. */ project_id_or_slug: string; }; query?: { /** * The visibility of the environments to filter by. Defaults to `visible`. * * * `all` * * `hidden` * * `visible` */ visibility?: 'all' | 'hidden' | 'visible'; }; url: '/projects/{organization_id_or_slug}/{project_id_or_slug}/environments/'; }; export type ListProjectEnvironmentsErrors = { /** * Invalid value for 'visibility'. */ 400: unknown; /** * Unauthorized */ 401: unknown; /** * Forbidden */ 403: unknown; /** * Not Found */ 404: unknown; }; export type ListProjectEnvironmentsResponses = { 200: Array<{ /** * ID of the environment */ id: string; /** * Name of the environment */ name: string; /** * Whether the environment is hidden in the project */ isHidden: boolean; }>; }; export type ListProjectEnvironmentsResponse = ListProjectEnvironmentsResponses[keyof ListProjectEnvironmentsResponses]; export type UpdateProjectEnvironmentsData = { body: { /** * List of environment names to update. Maximum 1000. */ environmentNames: Array; /** * Specify `true` to hide or `false` to show the specified environments. */ isHidden: boolean; }; path: { /** * The ID or slug of the organization the resource belongs to. */ organization_id_or_slug: string; /** * The ID or slug of the project the resource belongs to. Project slugs are unique within each organization. */ project_id_or_slug: string; }; query?: never; url: '/projects/{organization_id_or_slug}/{project_id_or_slug}/environments/'; }; export type UpdateProjectEnvironmentsErrors = { /** * Bad Request */ 400: unknown; /** * Unauthorized */ 401: unknown; /** * Forbidden */ 403: unknown; /** * Not Found */ 404: unknown; }; export type UpdateProjectEnvironmentsResponses = { 200: Array<{ /** * ID of the environment */ id: string; /** * Name of the environment */ name: string; /** * Whether the environment is hidden in the project */ isHidden: boolean; }>; }; export type UpdateProjectEnvironmentsResponse = UpdateProjectEnvironmentsResponses[keyof UpdateProjectEnvironmentsResponses]; export type GetProjectEnvironmentData = { body?: never; path: { /** * The ID or slug of the organization the resource belongs to. */ organization_id_or_slug: string; /** * The ID or slug of the project the resource belongs to. Project slugs are unique within each organization. */ project_id_or_slug: string; /** * The name of the environment. */ environment: string; }; query?: never; url: '/projects/{organization_id_or_slug}/{project_id_or_slug}/environments/{environment}/'; }; export type GetProjectEnvironmentErrors = { /** * Unauthorized */ 401: unknown; /** * Forbidden */ 403: unknown; /** * Not Found */ 404: unknown; }; export type GetProjectEnvironmentResponses = { 200: { /** * ID of the environment */ id: string; /** * Name of the environment */ name: string; /** * Whether the environment is hidden in the project */ isHidden: boolean; }; }; export type GetProjectEnvironmentResponse = GetProjectEnvironmentResponses[keyof GetProjectEnvironmentResponses]; export type UpdateProjectEnvironmentData = { body: { /** * Specify `true` to make the environment visible or `false` to make the environment hidden. */ isHidden: boolean; }; path: { /** * The ID or slug of the organization the resource belongs to. */ organization_id_or_slug: string; /** * The ID or slug of the project the resource belongs to. Project slugs are unique within each organization. */ project_id_or_slug: string; /** * The name of the environment. */ environment: string; }; query?: never; url: '/projects/{organization_id_or_slug}/{project_id_or_slug}/environments/{environment}/'; }; export type UpdateProjectEnvironmentErrors = { /** * Bad Request */ 400: unknown; /** * Unauthorized */ 401: unknown; /** * Forbidden */ 403: unknown; /** * Not Found */ 404: unknown; }; export type UpdateProjectEnvironmentResponses = { 200: { /** * ID of the environment */ id: string; /** * Name of the environment */ name: string; /** * Whether the environment is hidden in the project */ isHidden: boolean; }; }; export type UpdateProjectEnvironmentResponse = UpdateProjectEnvironmentResponses[keyof UpdateProjectEnvironmentResponses]; export type ListProjectEventsData = { body?: never; path: { /** * The ID or slug of the organization the resource belongs to. */ organization_id_or_slug: string; /** * The ID or slug of the project the resource belongs to. Project slugs are unique within each organization. */ project_id_or_slug: string; }; query?: { /** * The period of time for the query, will override the start & end parameters, a number followed by one of: * - `d` for days * - `h` for hours * - `m` for minutes * - `s` for seconds * - `w` for weeks * * For example, `24h`, to mean query data starting from 24 hours ago to now. */ statsPeriod?: string; /** * How long ago the query period starts, in the same format as `statsPeriod`. Must be sent with `statsPeriodEnd`, and is ignored when `statsPeriod` is sent. */ statsPeriodStart?: string; /** * How long ago the query period ends, in the same format as `statsPeriod`. Must be sent with `statsPeriodStart`, and is ignored when `statsPeriod` is sent. */ statsPeriodEnd?: string; /** * The start of the period of time for the query, expected in ISO-8601 format. For example, `2001-12-14T12:34:56.7890`. */ start?: string; /** * The end of the period of time for the query, expected in ISO-8601 format. For example, `2001-12-14T12:34:56.7890`. */ end?: string; /** * A pointer to the last object fetched and its sort order; used to retrieve the next or previous results. */ cursor?: string; /** * Specify true to include the full event body, including the stacktrace, in the event payload. When true, the page size is capped at 10. */ full?: boolean; /** * Return events in pseudo-random order. This is deterministic so an identical query will always return the same events in the same order. */ sample?: boolean; }; url: '/projects/{organization_id_or_slug}/{project_id_or_slug}/events/'; }; export type ListProjectEventsErrors = { /** * Unauthorized */ 401: unknown; /** * Forbidden */ 403: unknown; /** * Not Found */ 404: unknown; }; export type ListProjectEventsResponses = { 200: Array<{ /** * ID of the event */ id: string; /** * Event type, such as error, default or transaction */ 'event.type': string; /** * ID of the issue the event belongs to */ groupID: string | null; /** * ID of the event */ eventID: string; /** * ID of the project the event belongs to */ projectID: string; /** * Event message */ message: string; /** * Event title */ title: string; /** * Source location of the event, such as a file and line */ location: string | null; /** * Function or module that caused the event */ culprit: string | null; /** * User context of the event */ user: { /** * ID the SDK sent for the user */ id?: string | null; /** * Email address of the user */ email?: string | null; /** * Username of the user */ username?: string | null; /** * IP address of the user */ ip_address?: string | null; /** * Name of the user */ name?: string | null; /** * Location of the user, with keys such as country_code, city and region */ geo?: { [key: string]: string; } | null; /** * Extra data the SDK sent about the user */ data?: { [key: string]: unknown; } | null; } | null; /** * Tags attached to the event */ tags: Array<{ /** * Search query that matches this tag's user, such as user.email:"user@example.com". Only set for user tags */ query?: string; /** * Tag key */ key: string; /** * Tag value */ value: string; }>; /** * Platform of the event, such as python or javascript */ platform: string | null; /** * When the event occurred (ISO 8601) */ dateCreated: string; /** * Crash report attachment of the event, if any */ crashFile: string | null; /** * Event metadata */ metadata: { /** * Title of default and issue platform events */ title?: string; /** * Exception value, or the subtitle of an issue */ value?: string; /** * Exception type of error events */ type?: string; /** * Whether the SDK fabricated the exception to carry a stacktrace, so its type is a platform label rather than what went wrong */ synthetic?: boolean; /** * File of the frame where the error happened */ filename?: string; /** * Function of the frame where the error happened */ function?: string; /** * Message of default, security and feedback events */ message?: string; /** * URI that a CSP report blocked */ uri?: string; /** * CSP directive that was violated */ directive?: string; /** * Host name of HPKP, Expect-CT and Expect-Staple reports */ origin?: string; /** * Name of the person who sent user feedback */ name?: string; /** * Email of the person who sent user feedback */ contact_email?: string; /** * Where user feedback came from, such as a widget */ source?: string; /** * Whether the stacktrace has in-app frames, system frames or both */ in_app_frame_mix?: string; /** * Whether a crash report was dropped because the issue already stores the most allowed */ stripped_crash?: boolean; /** * SDK of the issue's first event */ sdk?: { /** * Name of the SDK, or unknown */ name: string; /** * Name of the SDK, normalized for grouping */ name_normalized: string; }; /** * Severity score of the issue's first event */ severity?: number; /** * Why the severity score is what it is */ severity_reason?: string; /** * Priority the issue was created with */ initial_priority?: number; }; }>; }; export type ListProjectEventsResponse = ListProjectEventsResponses[keyof ListProjectEventsResponses]; export type GetProjectEventData = { body?: never; path: { /** * The ID or slug of the organization the resource belongs to. */ organization_id_or_slug: string; /** * The ID or slug of the project the resource belongs to. Project slugs are unique within each organization. */ project_id_or_slug: string; /** * The ID of the event. It is a 32-character hexadecimal string as reported by the client. */ event_id: string; }; query?: { /** * The name of environments to filter by. */ environment?: Array; /** * The start of the period of time for the query, expected in ISO-8601 format. For example, `2001-12-14T12:34:56.7890`. */ start?: string; /** * The end of the period of time for the query, expected in ISO-8601 format. For example, `2001-12-14T12:34:56.7890`. */ end?: string; /** * The period of time for the query, will override the start & end parameters, a number followed by one of: * - `d` for days * - `h` for hours * - `m` for minutes * - `s` for seconds * - `w` for weeks * * For example, `24h`, to mean query data starting from 24 hours ago to now. */ statsPeriod?: string; /** * How long ago the query period starts, in the same format as `statsPeriod`. Must be sent with `statsPeriodEnd`, and is ignored when `statsPeriod` is sent. */ statsPeriodStart?: string; /** * How long ago the query period ends, in the same format as `statsPeriod`. Must be sent with `statsPeriodStart`, and is ignored when `statsPeriod` is sent. */ statsPeriodEnd?: string; /** * Parts of the response to skip computing. Specify `adjacentEvents` to skip looking up the neighboring events in the issue; `nextEventID` and `previousEventID` are then always `null`. Unknown values are ignored. */ collapse?: Array<'adjacentEvents'>; }; url: '/projects/{organization_id_or_slug}/{project_id_or_slug}/events/{event_id}/'; }; export type GetProjectEventErrors = { /** * Unauthorized */ 401: unknown; /** * Forbidden */ 403: unknown; /** * Not Found */ 404: unknown; }; export type GetProjectEventResponses = { 200: { /** * ID of the event */ id: string; /** * ID of the issue the event belongs to */ groupID: string | null; /** * ID of the event */ eventID: string; /** * ID of the project the event belongs to */ projectID: string; /** * Event message */ message: string | null; /** * Event title */ title: string; /** * Source location of the event, such as a file and line */ location: string | null; /** * Platform of the event, such as python or javascript */ platform: string | null; /** * When Sentry received the event (ISO 8601) */ dateReceived: string | null; /** * Size of the event payload in bytes */ size: number | null; /** * Event interfaces, such as exception, breadcrumbs and request, each with a type and data */ entries: Array; /** * Distribution of the release the event was sent with */ dist: string | null; /** * Modules loaded when the event occurred, keyed by module name with their versions */ packages: { [key: string]: string | null; }; /** * Event type, such as error, default or transaction */ type: 'default' | 'error' | 'csp' | 'nel' | 'hpkp' | 'expectct' | 'expectstaple' | 'transaction' | 'generic' | 'feedback'; /** * Event metadata */ metadata: { /** * Title of default and issue platform events */ title?: string; /** * Exception value, or the subtitle of an issue */ value?: string; /** * Exception type of error events */ type?: string; /** * Whether the SDK fabricated the exception to carry a stacktrace, so its type is a platform label rather than what went wrong */ synthetic?: boolean; /** * File of the frame where the error happened */ filename?: string; /** * Function of the frame where the error happened */ function?: string; /** * Message of default, security and feedback events */ message?: string; /** * URI that a CSP report blocked */ uri?: string; /** * CSP directive that was violated */ directive?: string; /** * Host name of HPKP, Expect-CT and Expect-Staple reports */ origin?: string; /** * Name of the person who sent user feedback */ name?: string; /** * Email of the person who sent user feedback */ contact_email?: string; /** * Where user feedback came from, such as a widget */ source?: string; /** * Whether the stacktrace has in-app frames, system frames or both */ in_app_frame_mix?: string; /** * Whether a crash report was dropped because the issue already stores the most allowed */ stripped_crash?: boolean; /** * SDK of the issue's first event */ sdk?: { /** * Name of the SDK, or unknown */ name: string; /** * Name of the SDK, normalized for grouping */ name_normalized: string; }; /** * Severity score of the issue's first event */ severity?: number; /** * Why the severity score is what it is */ severity_reason?: string; /** * Priority the issue was created with */ initial_priority?: number; }; /** * Issue occurrence data for events in non-error issues, such as performance issues. Null otherwise */ occurrence: { /** * ID of the occurrence */ id: string; /** * ID of the project */ projectId: number; /** * ID of the event the occurrence belongs to */ eventId: string; /** * Fingerprint that groups the occurrence into an issue */ fingerprint: Array; /** * Title of the issue */ issueTitle: string; /** * Subtitle of the issue */ subtitle: string; /** * ID of the resource the occurrence is about, such as a monitor. Null when not set */ resourceId: string | null; /** * Evidence to show on the issue */ evidenceDisplay: Array<{ /** * Name of the evidence */ name: string; /** * Value of the evidence */ value: string; /** * Whether to show the evidence first. At most one evidence of an occurrence is important */ important: boolean; }>; /** * When the problem was detected, as a Unix timestamp in seconds */ detectionTime: number; /** * Level of the occurrence, such as error or warning */ level: string | null; /** * Culprit of the occurrence */ culprit: string | null; /** * Actor the issue is assigned to, such as user:1 or team:1 */ assignee: string | null; /** * Initial priority of the issue: 25 low, 50 medium or 75 high */ priority: number | null; /** * Group type ID of metric issues, always 8001 */ type: 8001; /** * Detector and query that created the occurrence */ evidenceData: { /** * ID of the detector that created the occurrence */ detectorId: number; /** * ID of the metric alert rule the detector replaces. Null when there's none */ alertId: number | null; /** * Metric value that triggered the detector, or the anomaly detection result for dynamic detectors */ value: number | { /** * Metric value the anomaly detection model scored */ value: number; /** * ID of the data source that produced the value */ sourceId: string; /** * ID of the query subscription that produced the value */ subscriptionId: string; /** * When the value was measured */ timestamp: string; } | null; /** * ID of the query subscription that sent the data */ dataPacketSourceId: string; /** * Conditions of the detector */ conditions: Array<{ /** * ID of the detector condition */ id: number; /** * Type of the condition, such as gt, lt or anomaly_detection */ type: string; /** * Threshold the value is compared with, or the anomaly detection settings for an anomaly_detection condition */ comparison: number | { /** * How sensitive the anomaly detection is */ sensitivity: 'low' | 'medium' | 'high'; /** * Seasonality the anomaly detection model uses */ seasonality: 'auto' | 'hourly' | 'daily' | 'weekly' | 'hourly_daily' | 'hourly_weekly' | 'hourly_daily_weekly' | 'daily_weekly'; /** * Direction of anomalies to detect: 0 above, 1 below, 2 above and below */ thresholdType: 0 | 1 | 2; }; /** * Priority the detector reports when the condition matches: 0 ok, 25 low, 50 medium or 75 high */ conditionResult: number; }>; /** * Configuration of the detector */ config: { /** * How the detector evaluates the metric: static thresholds, percent change or dynamic anomaly detection */ detectionType: 'static' | 'percent' | 'dynamic'; /** * Time window in seconds that a percent change detector compares with */ comparisonDelta?: number | null; }; /** * Data sources of the detector */ dataSources: Array<{ /** * ID of the data source */ id: string; /** * ID of the organization */ organizationId: string; /** * Type of the data source, such as snuba_query_subscription */ type: string; /** * ID of the source object, such as the query subscription */ sourceId: string; /** * Query subscription the data source reads */ queryObj: { /** * ID of the query subscription */ id: string; /** * Status of the subscription: 0 active, 1 creating, 2 updating, 3 deleting or 4 disabled */ status: number; /** * ID of the subscription in Snuba. Null while it's being created */ subscription: string | null; /** * Query the subscription runs */ snubaQuery: { /** * ID of the query */ id: string; /** * Dataset the query runs on, such as events or events_analytics_platform */ dataset: string; /** * Search query that filters the data */ query: string; /** * Aggregate function the query computes, such as count() */ aggregate: string; /** * Time window of the query in seconds */ timeWindow: number; /** * Environment the query is limited to. Null for all environments */ environment: string | null; /** * Event types the query includes, such as error or transaction */ eventTypes: Array; /** * How sampled data is extrapolated, unknown, none, client_and_server_weighted or server_weighted. Null when not set */ extrapolationMode: string | null; }; }; }>; }; } | { /** * ID of the occurrence */ id: string; /** * ID of the project */ projectId: number; /** * ID of the event the occurrence belongs to */ eventId: string; /** * Fingerprint that groups the occurrence into an issue */ fingerprint: Array; /** * Title of the issue */ issueTitle: string; /** * Subtitle of the issue */ subtitle: string; /** * ID of the resource the occurrence is about, such as a monitor. Null when not set */ resourceId: string | null; /** * Evidence to show on the issue */ evidenceDisplay: Array<{ /** * Name of the evidence */ name: string; /** * Value of the evidence */ value: string; /** * Whether to show the evidence first. At most one evidence of an occurrence is important */ important: boolean; }>; /** * When the problem was detected, as a Unix timestamp in seconds */ detectionTime: number; /** * Level of the occurrence, such as error or warning */ level: string | null; /** * Culprit of the occurrence */ culprit: string | null; /** * Actor the issue is assigned to, such as user:1 or team:1 */ assignee: string | null; /** * Initial priority of the issue: 25 low, 50 medium or 75 high */ priority: number | null; /** * Group type ID of the occurrence */ type: number; /** * Data of the occurrence. Its keys depend on the group type */ evidenceData: { [key: string]: unknown; }; } | null; /** * Metadata about changes Sentry made to the event's fields, such as data scrubbing or trimming */ _meta: { [key: string]: unknown; }; /** * User context of the event */ user: { /** * ID the SDK sent for the user */ id?: string | null; /** * Email address of the user */ email?: string | null; /** * Username of the user */ username?: string | null; /** * IP address of the user */ ip_address?: string | null; /** * Name of the user */ name?: string | null; /** * Location of the user, with keys such as country_code, city and region */ geo?: { [key: string]: string; } | null; /** * Extra data the SDK sent about the user */ data?: { [key: string]: unknown; } | null; } | null; /** * Tags attached to the event */ tags: Array<{ /** * Search query that matches this tag's user, such as user.email:"user@example.com". Only set for user tags */ query?: string; /** * Tag key */ key: string; /** * Tag value */ value: string; }>; /** * Contexts of the event, such as device, os, browser and runtime, keyed by alias */ contexts: { [key: string]: { /** * Internal build ID as it appears on the platform. */ app_build?: string | null; /** * Version-independent application identifier, often a dotted bundle ID. */ app_identifier?: string | null; /** * Amount of memory used by the application in bytes. */ app_memory?: number | string | null; /** * Application name as it appears on the platform. */ app_name?: string | null; /** * Start time of the app. * * Formatted UTC timestamp when the user started the application. */ app_start_time?: string | null; /** * Application version as it appears on the platform. */ app_version?: string | null; /** * String identifying the kind of build. For example, `testflight`. */ build_type?: string | null; /** * Application-specific device identifier. */ device_app_hash?: string | null; /** * A flag indicating whether the app is in foreground or not. An app is in foreground when it's visible to the user. */ in_foreground?: boolean | null; /** * The names of the currently visible views. */ view_names?: Array | null; /** * Type of the context */ type: 'app'; [key: string]: unknown; } | { /** * Display name of the browser application. */ name?: string | null; /** * Version string of the browser. */ version?: string | null; /** * Type of the context */ type: 'browser'; [key: string]: unknown; } | { /** * Type of the context */ type: 'default'; [key: string]: unknown; } | { /** * Native cpu architecture of the device. */ arch?: string | null; /** * Current battery level in %. * * If the device has a battery, this can be a floating point value defining the battery level * (in the range 0-100). */ battery_level?: number | string | null; /** * Status of the device's battery. * * For example, `Unknown`, `Charging`, `Discharging`, `NotCharging`, `Full`. */ battery_status?: string | null; /** * Indicator when the device was booted. */ boot_time?: string | null; /** * Brand of the device. */ brand?: string | null; /** * Whether the device was charging or not. */ charging?: boolean | null; /** * CPU description. * * For example, Intel(R) Core(TM)2 Quad CPU Q6600 @ 2.40GHz. */ cpu_description?: string | null; /** * Kind of device the application is running on. * * For example, `Unknown`, `Handheld`, `Console`, `Desktop`. */ device_type?: string | null; /** * Unique device identifier. */ device_unique_identifier?: string | null; /** * Free size of the attached external storage in bytes (eg: android SDK card). */ external_free_storage?: number | string | null; /** * Total size of the attached external storage in bytes (eg: android SDK card). */ external_storage_size?: number | string | null; /** * Family of the device model. * * This is usually the common part of model names across generations. For instance, `iPhone` * would be a reasonable family, so would be `Samsung Galaxy`. */ family?: string | null; /** * How much memory is still available in bytes. */ free_memory?: number | string | null; /** * How much storage is free in bytes. */ free_storage?: number | string | null; /** * ISO 639-1 code of the locale the device is set to. */ locale?: string | null; /** * Whether the device was low on memory. */ low_memory?: boolean | null; /** * Manufacturer of the device. */ manufacturer?: string | null; /** * Total memory available in bytes. */ memory_size?: number | string | null; /** * Device model. * * This, for example, can be `Samsung Galaxy S3`. */ model?: string | null; /** * Device model (internal identifier). * * An internal hardware revision to identify the device exactly. */ model_id?: string | null; /** * Name of the device. */ name?: string | null; /** * Whether the device was online or not. */ online?: boolean | null; /** * Current screen orientation. * * This can be a string `portrait` or `landscape` to define the orientation of a device. */ orientation?: string | null; /** * Number of "logical processors". * * For example, 8. */ processor_count?: number | string | null; /** * Processor frequency in MHz. * * Note that the actual CPU frequency might vary depending on current load and * power conditions, especially on low-powered devices like phones and laptops. */ processor_frequency?: number | string | null; /** * Device screen density. */ screen_density?: number | string | null; /** * Screen density as dots-per-inch. */ screen_dpi?: number | string | null; /** * Height of the screen in pixels. */ screen_height_pixels?: number | string | null; /** * Device screen resolution. * * (e.g.: 800x600, 3040x1444) */ screen_resolution?: string | null; /** * Width of the screen in pixels. */ screen_width_pixels?: number | string | null; /** * Simulator/prod indicator. */ simulator?: boolean | null; /** * Total storage size of the device in bytes. */ storage_size?: number | string | null; /** * Whether the accelerometer is available on the device. */ supports_accelerometer?: boolean | null; /** * Whether audio is available on the device. */ supports_audio?: boolean | null; /** * Whether the gyroscope is available on the device. */ supports_gyroscope?: boolean | null; /** * Whether location support is available on the device. */ supports_location_service?: boolean | null; /** * Whether vibration is available on the device. */ supports_vibration?: boolean | null; /** * Timezone of the device. */ timezone?: string | null; /** * How much memory is usable for the app in bytes. */ usable_memory?: number | string | null; /** * UUID of the device. */ uuid?: string | null; /** * Type of the context */ type: 'device'; [key: string]: unknown; } | { /** * The device low-level API type. * * Examples: `"Apple Metal"` or `"Direct3D11"` */ api_type?: string | null; /** * Approximate "shader capability" level of the graphics device. * * For Example: Shader Model 2.0, OpenGL ES 3.0, Metal / OpenGL ES 3.1, 27 (unknown) */ graphics_shader_level?: string | null; /** * The PCI identifier of the graphics device. */ id?: number | string; /** * Largest size of a texture that is supported by the graphics hardware. * * For Example: 16384 */ max_texture_size?: number | string | null; /** * The total GPU memory available in Megabytes. */ memory_size?: number | string | null; /** * Whether the GPU has multi-threaded rendering or not. */ multi_threaded_rendering?: boolean | null; /** * The name of the graphics device. */ name?: string | null; /** * The Non-Power-Of-Two support. */ npot_support?: string | null; /** * Whether compute shaders are available on the device. */ supports_compute_shaders?: boolean | null; /** * Whether GPU draw call instancing is supported. */ supports_draw_call_instancing?: boolean | null; /** * Whether geometry shaders are available on the device. */ supports_geometry_shaders?: boolean | null; /** * Whether ray tracing is available on the device. */ supports_ray_tracing?: boolean | null; /** * The PCI vendor identifier of the graphics device. */ vendor_id?: string | null; /** * The vendor name as reported by the graphics device. */ vendor_name?: string | null; /** * The Version of the graphics device. */ version?: string | null; /** * Type of the context */ type: 'gpu'; [key: string]: unknown; } | { /** * Type of the context */ type: 'monitor'; [key: string]: unknown; } | { /** * Internal build number of the operating system. */ build?: string | null; /** * Current kernel version. * * This is typically the entire output of the `uname` syscall. */ kernel_version?: string | null; /** * Name of the operating system. */ name?: string | null; /** * Unprocessed operating system info. * * An unprocessed description string obtained by the operating system. For some well-known * runtimes, Sentry will attempt to parse `name` and `version` from this string, if they are * not explicitly given. */ raw_description?: string | null; /** * Indicator if the OS is rooted (mobile mostly). */ rooted?: boolean | null; /** * Version of the operating system. */ version?: string | null; /** * Type of the context */ type: 'os'; [key: string]: unknown; } | { /** * Attributes of the OpenTelemetry span that maps to a Sentry event. * * */ attributes?: { [key: string]: string | boolean | number | number | Array; } | null; /** * Information about an OpenTelemetry resource. * * */ resource?: { [key: string]: string | boolean | number | number | Array; } | null; /** * Type of the context */ type: 'otel'; [key: string]: unknown; } | { /** * Application build string, if it is separate from the version. */ build?: string | null; /** * Runtime name. */ name?: string | null; /** * Unprocessed runtime info. * * An unprocessed description string obtained by the runtime. For some well-known runtimes, * Sentry will attempt to parse `name` and `version` from this string, if they are not * explicitly given. */ raw_description?: string | null; /** * Runtime version string. */ version?: string | null; /** * Type of the context */ type: 'runtime'; [key: string]: unknown; } | { /** * The client-side sample rate as reported in the envelope's `trace.sample_rate` header. * * The server takes this field from envelope headers and writes it back into the event. Clients * should not ever send this value. */ client_sample_rate?: number | string | null; /** * The amount of time in milliseconds spent in this transaction span, * excluding its immediate child spans. */ exclusive_time?: number | string | null; /** * Span type (see `OperationType` docs). */ op?: string | null; /** * The origin of the trace indicates what created the trace (see [OriginType] docs). */ origin?: string | null; /** * The ID of the span enclosing this span. */ parent_span_id?: string | null; /** * Track whether the trace connected to this event has been sampled entirely. * * This flag only applies to events with [`Error`] type that have an associated dynamic sampling context. */ sampled?: boolean | null; /** * The ID of the span. */ span_id?: string | null; /** * Whether the trace failed or succeeded. Currently only used to indicate status of individual * transactions. */ status?: 'ok' | 'cancelled' | 'unknown' | 'invalid_argument' | 'deadline_exceeded' | 'not_found' | 'already_exists' | 'permission_denied' | 'resource_exhausted' | 'failed_precondition' | 'aborted' | 'out_of_range' | 'unimplemented' | 'internal_error' | 'unavailable' | 'data_loss' | 'unauthenticated' | null; /** * The trace ID. */ trace_id?: string | null; /** * Type of the context */ type: 'trace'; [key: string]: unknown; } | { /** * Type of the context */ type: 'unity'; [key: string]: unknown; }; } | null; /** * SDK that sent the event */ sdk: { /** * Name of the SDK that sent the event, such as sentry.python */ name: string | null; /** * Version of the SDK */ version: string | null; } | null; /** * Additional data sent with the event in its extra field */ context: { [key: string]: unknown; } | null; /** * Errors Sentry found while processing the event */ errors: Array<{ /** * Type of the processing error, such as invalid_data or js_no_source */ type: string; /** * Human-readable message of the error */ message: string; /** * Details of the error, such as the name of the invalid field. Other keys depend on the error type */ data: { /** * Affected key or path in the event */ name?: string | null; /** * Details of the error from the processor that hit it */ message?: string; /** * URL that couldn't be fetched, such as a source file */ url?: string; /** * Path of the debug image the error is about */ image_path?: string; /** * Name of the debug image the error is about */ image_name?: string; /** * Debug ID of the image the error is about */ image_uuid?: string; /** * CPU architecture of the image the error is about */ image_arch?: string; /** * Error type Symbolicator reported, such as missing_source */ symbolicator_type?: string; /** * Source file or URL the error is about */ source?: string; /** * Source map the error is about */ sourcemap?: string; /** * Line of the location that couldn't be mapped */ row?: number; /** * Column of the location that couldn't be mapped */ column?: number; /** * Time the SDK reported, for clock drift errors */ sdk_time?: string; /** * Time the server received the event, for clock drift errors */ server_time?: string; }; }>; /** * Crash report attachment of the event, if any */ crashFile?: string | null; /** * Function or module that caused the event */ culprit?: string | null; /** * When the event occurred (ISO 8601) */ dateCreated?: string; /** * Grouping hashes calculated for the event */ fingerprints?: Array; /** * Grouping configuration used to group the event */ groupingConfig?: { /** * ID of the grouping config, such as newstyle:2026-01-20 */ id: string; /** * Stack trace rules of the project, as an encoded string */ enhancements: string; }; /** * When the transaction started, as a Unix timestamp in seconds */ startTimestamp?: number; /** * When the transaction ended, as a Unix timestamp in seconds */ endTimestamp?: number; /** * Measurements recorded for the transaction, such as web vitals, keyed by name */ measurements?: { [key: string]: { /** * Measurement value */ value: number; /** * Unit of the measurement, such as millisecond */ unit?: string | null; }; } | null; /** * Span operation breakdowns for the transaction, keyed by breakdown name */ breakdowns?: { [key: string]: { [key: string]: { /** * Measurement value */ value: number; /** * Unit of the measurement, such as millisecond */ unit?: string | null; }; }; } | null; /** * Release the event was sent with. Null when the event has no release */ release: { /** * Release ID */ id?: number; /** * Number of commits in the release */ commitCount?: number; /** * Extra data stored on the release */ data?: { [key: string]: unknown; }; /** * When the release was created (ISO 8601) */ dateCreated?: string; /** * When the release went live (ISO 8601) */ dateReleased?: string | null; /** * Number of deploys of the release */ deployCount?: number; /** * Version control reference, such as a commit SHA or tag */ ref?: string | null; /** * Most recent commit in the release */ lastCommit?: { /** * Commit SHA */ id: string; /** * Commit message */ message: string | null; /** * When the commit was made (ISO 8601) */ dateCreated: string; /** * Pull request the commit belongs to */ pullRequest: { /** * Number or key of the pull request in the provider */ id: string; /** * Title of the pull request */ title: string | null; /** * Description of the pull request */ message: string | null; /** * When Sentry recorded the pull request (ISO 8601) */ dateCreated: string; /** * When the pull request was merged (ISO 8601). Null when it isn't merged */ mergedAt: string | null; /** * State of the pull request: merged, open, closed, draft or unknown. Null when not known */ status: 'merged' | 'open' | 'closed' | 'draft' | 'unknown' | null; /** * Repository of the pull request */ repository: { /** * URL of the repository */ url?: string | null; /** * Provider of the repository, with its id and name */ provider?: { [key: string]: string; }; /** * Status of the repository */ status?: 'active' | 'disabled' | 'pending_deletion' | 'deletion_in_progress'; /** * ID of the repository's integration. Null for repositories added without an integration */ integrationId?: string | null; /** * Identifier of the repository in the provider, such as owner/name */ externalSlug?: string | null; /** * ID of the repository in the provider */ externalId?: string | null; /** * Settings of the repository. Only set when expand includes settings. Null when it has none */ settings?: { /** * Whether AI code review is on for the repository */ enabledCodeReview: boolean; /** * Pull request events that start a code review: on_new_commit or on_ready_for_review */ codeReviewTriggers: Array; } | null; /** * ID of the repository */ id: string; /** * Name of the repository, such as owner/name */ name: string; /** * When the repository was added to Sentry (ISO 8601) */ dateCreated: string; }; /** * Author of the pull request, or an empty object when it has none */ author: { /** * SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access */ identities?: Array<{ /** * SSO identity ID */ id: string; /** * User's identifier at the auth provider */ name: string; /** * Organization the auth provider belongs to */ organization: { /** * Organization slug */ slug: string; /** * Organization name */ name: string; }; /** * Auth provider of the identity */ provider: { /** * Auth provider key, such as google or saml2 */ id: string; /** * Display name of the auth provider */ name: string; }; /** * When the identity was last verified by signing in through the auth provider */ dateVerified: string; /** * When the identity was last synced from the auth provider */ dateSynced: string; }>; /** * User avatar */ avatar?: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Two-factor authenticators of the user, without backup methods such as recovery codes */ authenticators?: Array<{ /** * Authenticator ID */ id: string; /** * Authenticator type, such as totp, sms, u2f or recovery */ type: string; /** * Display name of the authenticator type */ name: string; /** * When the authenticator was added */ dateCreated: string; /** * When the authenticator was last used, or null */ dateUsed: string | null; }>; /** * Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization */ canReset2fa?: boolean; /** * User ID */ id: string; /** * Display name: the user's name, or their email or username if no name is set */ name: string; /** * Username */ username: string; /** * Primary email address */ email: string; /** * Gravatar URL for the primary email address */ avatarUrl: string; /** * Whether the account is active */ isActive: boolean; /** * Whether the account is suspended. Suspended users can't sign in */ isSuspended: boolean; /** * Whether the user has a password set */ hasPasswordAuth: boolean; /** * Whether the account is managed, which stops the user from changing their username, password and similar details */ isManaged: boolean; /** * When the account was created */ dateJoined: string; /** * When the user last signed in, or null */ lastLogin: string | null; /** * Whether the user has two-factor authentication enabled */ has2fa: boolean; /** * When the user was last active, or null */ lastActive: string | null; /** * Whether the user is a superuser */ isSuperuser: boolean; /** * Whether the user has staff status */ isStaff: boolean; /** * Deprecated. Always an empty object */ experiments: { [key: string]: string; }; /** * Email addresses of the user. Only included for the requesting user or superusers; empty otherwise */ emails: Array<{ /** * Email ID */ id: string; /** * Email address */ email: string; /** * Whether the email address is verified */ is_verified: boolean; }>; } | { /** * Commit author name */ name: string | null; /** * Commit author email */ email: string; } | { [key: string]: unknown; }; /** * URL of the pull request in the provider, or null when the provider can't build one */ externalUrl: string | null; } | null; /** * How the commit was found as a suspect commit: via commit in release or via SCM integration. Empty for other commits */ suspectCommitType: string; /** * Repository the commit belongs to */ repository?: { /** * URL of the repository */ url?: string | null; /** * Provider of the repository, with its id and name */ provider?: { [key: string]: string; }; /** * Status of the repository */ status?: 'active' | 'disabled' | 'pending_deletion' | 'deletion_in_progress'; /** * ID of the repository's integration. Null for repositories added without an integration */ integrationId?: string | null; /** * Identifier of the repository in the provider, such as owner/name */ externalSlug?: string | null; /** * ID of the repository in the provider */ externalId?: string | null; /** * Settings of the repository. Only set when expand includes settings. Null when it has none */ settings?: { /** * Whether AI code review is on for the repository */ enabledCodeReview: boolean; /** * Pull request events that start a code review: on_new_commit or on_ready_for_review */ codeReviewTriggers: Array; } | null; /** * ID of the repository */ id: string; /** * Name of the repository, such as owner/name */ name: string; /** * When the repository was added to Sentry (ISO 8601) */ dateCreated: string; }; /** * Author of the commit: a Sentry user when the email matches one, otherwise the name and email from the commit */ author?: { /** * SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access */ identities?: Array<{ /** * SSO identity ID */ id: string; /** * User's identifier at the auth provider */ name: string; /** * Organization the auth provider belongs to */ organization: { /** * Organization slug */ slug: string; /** * Organization name */ name: string; }; /** * Auth provider of the identity */ provider: { /** * Auth provider key, such as google or saml2 */ id: string; /** * Display name of the auth provider */ name: string; }; /** * When the identity was last verified by signing in through the auth provider */ dateVerified: string; /** * When the identity was last synced from the auth provider */ dateSynced: string; }>; /** * User avatar */ avatar?: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Two-factor authenticators of the user, without backup methods such as recovery codes */ authenticators?: Array<{ /** * Authenticator ID */ id: string; /** * Authenticator type, such as totp, sms, u2f or recovery */ type: string; /** * Display name of the authenticator type */ name: string; /** * When the authenticator was added */ dateCreated: string; /** * When the authenticator was last used, or null */ dateUsed: string | null; }>; /** * Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization */ canReset2fa?: boolean; /** * User ID */ id: string; /** * Display name: the user's name, or their email or username if no name is set */ name: string; /** * Username */ username: string; /** * Primary email address */ email: string; /** * Gravatar URL for the primary email address */ avatarUrl: string; /** * Whether the account is active */ isActive: boolean; /** * Whether the account is suspended. Suspended users can't sign in */ isSuspended: boolean; /** * Whether the user has a password set */ hasPasswordAuth: boolean; /** * Whether the account is managed, which stops the user from changing their username, password and similar details */ isManaged: boolean; /** * When the account was created */ dateJoined: string; /** * When the user last signed in, or null */ lastLogin: string | null; /** * Whether the user has two-factor authentication enabled */ has2fa: boolean; /** * When the user was last active, or null */ lastActive: string | null; /** * Whether the user is a superuser */ isSuperuser: boolean; /** * Whether the user has staff status */ isStaff: boolean; /** * Deprecated. Always an empty object */ experiments: { [key: string]: string; }; /** * Email addresses of the user. Only included for the requesting user or superusers; empty otherwise */ emails: Array<{ /** * Email ID */ id: string; /** * Email address */ email: string; /** * Whether the email address is verified */ is_verified: boolean; }>; } | { /** * Commit author name */ name: string | null; /** * Commit author email */ email: string; } | { [key: string]: unknown; }; } | null; /** * Most recent deploy of the release */ lastDeploy?: { /** * When the deploy started (ISO 8601) */ dateStarted?: string | null; /** * URL of the deploy */ url?: string | null; /** * ID of the deploy */ id: string; /** * Environment the release was deployed to */ environment: string; /** * When the deploy finished (ISO 8601) */ dateFinished: string; /** * Name of the deploy */ name: string | null; } | null; /** * Release status */ status?: 'open' | 'archived'; /** * Release URL */ url?: string | null; /** * User agent of the client that created the release */ userAgent?: string | null; /** * Version of the release */ version?: string | null; /** * Parsed version information */ versionInfo?: { /** * Human-readable version, such as 1.0.0 (123) */ description?: string; /** * Package name parsed from the release version, such as com.example.app */ package: string | null; /** * Parsed version: the raw string, plus major, minor, patch, pre, buildCode and components when it's a semantic version */ version: { /** * Major version */ major?: number; /** * Minor version */ minor?: number; /** * Patch version */ patch?: number; /** * Pre-release identifier, such as rc1 */ pre?: string | null; /** * Build code, such as 123 */ buildCode?: string | null; /** * Number of version components given */ components?: number; /** * Version string the release was created with */ raw: string; }; /** * Build hash parsed from the release version */ buildHash: string | null; } | null; } | null; /** * User feedback submitted for the event. Null when there's none */ userReport: { /** * ID of the feedback */ id: string; /** * ID of the event the feedback is attached to */ eventID: string; /** * Name of the user who submitted the feedback. Falls back to the feedback's email address, then to the event user's name */ name: string | null; /** * Email address of the user who submitted the feedback. Falls back to the event user's email address */ email: string | null; /** * Comments the user submitted */ comments: string; /** * When the feedback was submitted (ISO 8601) */ dateCreated: string; /** * User recorded on the feedback's event. Null when the event isn't found or has no user */ user: { /** * ID of the user, as sent with the event */ id: string; /** * Username sent with the event */ username: string | null; /** * Email address sent with the event */ email: string | null; /** * Display name of the user: the name, email address or username sent with the event, whichever is set first */ name: string | null; /** * IP address sent with the event */ ipAddress: string | null; /** * Gravatar URL for the user's email address */ avatarUrl: string | null; } | null; /** * Event the feedback is attached to */ event: { /** * ID of the event the feedback is attached to */ id: string; /** * ID of the event the feedback is attached to */ eventID: string; }; } | null; /** * Suggested updates for the SDK that sent the event */ sdkUpdates: Array<{ /** * Kind of suggestion */ type: 'enableIntegration'; /** * Name of the SDK integration to enable */ integrationName: string; /** * Documentation URL of the integration */ integrationUrl: string; /** * Suggestions that become possible after this one is applied */ enables: Array<{ [key: string]: unknown; } | { /** * Kind of suggestion */ type: 'updateSdk'; /** * Name of the SDK to update */ sdkName: string; /** * SDK version to update to */ newSdkVersion: string | null; /** * Documentation URL of the SDK. Null when it isn't known */ sdkUrl: string | null; /** * Suggestions that become possible after this one is applied */ enables: Array<{ [key: string]: unknown; } | { [key: string]: unknown; } | { /** * Kind of suggestion */ type: 'changeSdk'; /** * Name of the SDK to switch to */ newSdkName: string; /** * Documentation URL of the SDK. Null when it isn't known */ sdkUrl: string | null; /** * Suggestions that become possible after this one is applied */ enables: Array<{ [key: string]: unknown; } | { [key: string]: unknown; } | { [key: string]: unknown; }>; }>; } | { /** * Kind of suggestion */ type: 'changeSdk'; /** * Name of the SDK to switch to */ newSdkName: string; /** * Documentation URL of the SDK. Null when it isn't known */ sdkUrl: string | null; /** * Suggestions that become possible after this one is applied */ enables: Array<{ [key: string]: unknown; } | { /** * Kind of suggestion */ type: 'updateSdk'; /** * Name of the SDK to update */ sdkName: string; /** * SDK version to update to */ newSdkVersion: string | null; /** * Documentation URL of the SDK. Null when it isn't known */ sdkUrl: string | null; /** * Suggestions that become possible after this one is applied */ enables: Array<{ [key: string]: unknown; } | { [key: string]: unknown; } | { [key: string]: unknown; }>; } | { [key: string]: unknown; }>; }>; } | { /** * Kind of suggestion */ type: 'updateSdk'; /** * Name of the SDK to update */ sdkName: string; /** * SDK version to update to */ newSdkVersion: string | null; /** * Documentation URL of the SDK. Null when it isn't known */ sdkUrl: string | null; /** * Suggestions that become possible after this one is applied */ enables: Array<{ /** * Kind of suggestion */ type: 'enableIntegration'; /** * Name of the SDK integration to enable */ integrationName: string; /** * Documentation URL of the integration */ integrationUrl: string; /** * Suggestions that become possible after this one is applied */ enables: Array<{ [key: string]: unknown; } | { [key: string]: unknown; } | { /** * Kind of suggestion */ type: 'changeSdk'; /** * Name of the SDK to switch to */ newSdkName: string; /** * Documentation URL of the SDK. Null when it isn't known */ sdkUrl: string | null; /** * Suggestions that become possible after this one is applied */ enables: Array<{ [key: string]: unknown; } | { [key: string]: unknown; } | { [key: string]: unknown; }>; }>; } | { [key: string]: unknown; } | { /** * Kind of suggestion */ type: 'changeSdk'; /** * Name of the SDK to switch to */ newSdkName: string; /** * Documentation URL of the SDK. Null when it isn't known */ sdkUrl: string | null; /** * Suggestions that become possible after this one is applied */ enables: Array<{ /** * Kind of suggestion */ type: 'enableIntegration'; /** * Name of the SDK integration to enable */ integrationName: string; /** * Documentation URL of the integration */ integrationUrl: string; /** * Suggestions that become possible after this one is applied */ enables: Array<{ [key: string]: unknown; } | { [key: string]: unknown; } | { [key: string]: unknown; }>; } | { [key: string]: unknown; } | { [key: string]: unknown; }>; }>; } | { /** * Kind of suggestion */ type: 'changeSdk'; /** * Name of the SDK to switch to */ newSdkName: string; /** * Documentation URL of the SDK. Null when it isn't known */ sdkUrl: string | null; /** * Suggestions that become possible after this one is applied */ enables: Array<{ /** * Kind of suggestion */ type: 'enableIntegration'; /** * Name of the SDK integration to enable */ integrationName: string; /** * Documentation URL of the integration */ integrationUrl: string; /** * Suggestions that become possible after this one is applied */ enables: Array<{ [key: string]: unknown; } | { /** * Kind of suggestion */ type: 'updateSdk'; /** * Name of the SDK to update */ sdkName: string; /** * SDK version to update to */ newSdkVersion: string | null; /** * Documentation URL of the SDK. Null when it isn't known */ sdkUrl: string | null; /** * Suggestions that become possible after this one is applied */ enables: Array<{ [key: string]: unknown; } | { [key: string]: unknown; } | { [key: string]: unknown; }>; } | { [key: string]: unknown; }>; } | { /** * Kind of suggestion */ type: 'updateSdk'; /** * Name of the SDK to update */ sdkName: string; /** * SDK version to update to */ newSdkVersion: string | null; /** * Documentation URL of the SDK. Null when it isn't known */ sdkUrl: string | null; /** * Suggestions that become possible after this one is applied */ enables: Array<{ /** * Kind of suggestion */ type: 'enableIntegration'; /** * Name of the SDK integration to enable */ integrationName: string; /** * Documentation URL of the integration */ integrationUrl: string; /** * Suggestions that become possible after this one is applied */ enables: Array<{ [key: string]: unknown; } | { [key: string]: unknown; } | { [key: string]: unknown; }>; } | { [key: string]: unknown; } | { [key: string]: unknown; }>; } | { [key: string]: unknown; }>; }>; /** * How the event's stack frames were resolved during processing, such as which source map lookup method was used */ resolvedWith: Array; /** * ID of the next event in the issue. Null for the latest event or when adjacentEvents is collapsed */ nextEventID: string | null; /** * ID of the previous event in the issue. Null for the first event or when adjacentEvents is collapsed */ previousEventID: string | null; }; }; export type GetProjectEventResponse = GetProjectEventResponses[keyof GetProjectEventResponses]; export type ListProjectEventAttachmentsData = { body?: never; path: { /** * The ID or slug of the organization the resource belongs to. */ organization_id_or_slug: string; /** * The ID or slug of the project the resource belongs to. Project slugs are unique within each organization. */ project_id_or_slug: string; /** * The ID of the event. It is a 32-character hexadecimal string as reported by the client. */ event_id: string; }; query?: { /** * Filter the attachments by name (substring match) or by attachment kind. Use `is:screenshot` to restrict the results to screenshot attachments. */ query?: string; /** * A pointer to the last object fetched and its sort order; used to retrieve the next or previous results. */ cursor?: string; }; url: '/projects/{organization_id_or_slug}/{project_id_or_slug}/events/{event_id}/attachments/'; }; export type ListProjectEventAttachmentsErrors = { /** * Unauthorized */ 401: unknown; /** * Forbidden */ 403: unknown; /** * Not Found */ 404: unknown; }; export type ListProjectEventAttachmentsResponses = { 200: Array<{ /** * ID of the attachment */ id: string; /** * ID of the event the attachment belongs to */ event_id: string; /** * Type of the attachment, such as event.attachment or event.minidump */ type: string; /** * File name of the attachment */ name: string; /** * MIME type of the attachment */ mimetype: string | null; /** * When the attachment was stored (ISO 8601) */ dateCreated: string; /** * Size of the attachment in bytes */ size: number; /** * Legacy field. Only contains Content-Type, which matches mimetype */ headers: { [key: string]: string | null; }; /** * Legacy field, always null */ sha1: string | null; }>; }; export type ListProjectEventAttachmentsResponse = ListProjectEventAttachmentsResponses[keyof ListProjectEventAttachmentsResponses]; export type GetProjectEventAttachmentData = { body?: never; path: { /** * The ID or slug of the organization the resource belongs to. */ organization_id_or_slug: string; /** * The ID or slug of the project the resource belongs to. Project slugs are unique within each organization. */ project_id_or_slug: string; /** * The ID of the event. It is a 32-character hexadecimal string as reported by the client. */ event_id: string; /** * The numeric ID of the attachment, as returned from the attachments list endpoint. */ attachment_id: string; }; query?: { /** * If this parameter is present, the response will be a binary file download instead of JSON metadata. The value does not matter — any value (including empty) triggers the download. Depending on where the attachment is stored, the response may be a redirect to the storage service, so clients must follow redirects. */ download?: string; }; url: '/projects/{organization_id_or_slug}/{project_id_or_slug}/events/{event_id}/attachments/{attachment_id}/'; }; export type GetProjectEventAttachmentErrors = { /** * Unauthorized */ 401: unknown; /** * Forbidden */ 403: unknown; /** * Not Found */ 404: unknown; }; export type GetProjectEventAttachmentResponses = { 200: { /** * ID of the attachment */ id: string; /** * ID of the event the attachment belongs to */ event_id: string; /** * Type of the attachment, such as event.attachment or event.minidump */ type: string; /** * File name of the attachment */ name: string; /** * MIME type of the attachment */ mimetype: string | null; /** * When the attachment was stored (ISO 8601) */ dateCreated: string; /** * Size of the attachment in bytes */ size: number; /** * Legacy field. Only contains Content-Type, which matches mimetype */ headers: { [key: string]: string | null; }; /** * Legacy field, always null */ sha1: string | null; }; }; export type GetProjectEventAttachmentResponse = GetProjectEventAttachmentResponses[keyof GetProjectEventAttachmentResponses]; export type GetProjectEventSourceMapDebugData = { body?: never; path: { /** * The ID or slug of the organization the resource belongs to. */ organization_id_or_slug: string; /** * The ID or slug of the project the resource belongs to. Project slugs are unique within each organization. */ project_id_or_slug: string; /** * The ID of the event. It is a 32-character hexadecimal string as reported by the client. */ event_id: string; }; query?: never; url: '/projects/{organization_id_or_slug}/{project_id_or_slug}/events/{event_id}/source-map-debug/'; }; export type GetProjectEventSourceMapDebugErrors = { /** * Unauthorized */ 401: unknown; /** * Forbidden */ 403: unknown; /** * Not Found */ 404: unknown; }; export type GetProjectEventSourceMapDebugResponses = { 200: { /** * Distribution of the event */ dist: string | null; /** * Release of the event */ release: string | null; /** * Source map debug results for each exception in the event */ exceptions: Array<{ /** * Source map debug results for each frame of the exception */ frames: Array<{ /** * Results of resolving the frame with debug IDs */ debug_id_process: { /** * Debug ID of the frame's source file. Null when the frame has none */ debug_id: string | null; /** * Whether a source file with the frame's debug ID was found when the event was processed */ uploaded_source_file_with_correct_debug_id: boolean; /** * Whether a source map with the frame's debug ID was found when the event was processed */ uploaded_source_map_with_correct_debug_id: boolean; }; /** * Results of resolving the frame with release artifacts. Null when the event has no release */ release_process: { /** * Absolute path of the frame's file */ abs_path: string; /** * Uploaded file names that could match the frame's file */ matching_source_file_names: Array; /** * Name of the uploaded source map that matches the frame's file */ matching_source_map_name: string | null; /** * Source map the source file refers to, from its sourceMappingURL or SourceMap header */ source_map_reference: string | null; /** * Result of looking up the source file in the release: found, wrong-dist or unsuccessful */ source_file_lookup_result: 'found' | 'wrong-dist' | 'unsuccessful'; /** * Result of looking up the source map in the release: found, wrong-dist or unsuccessful */ source_map_lookup_result: 'found' | 'wrong-dist' | 'unsuccessful'; } | null; /** * Results of fetching the frame's files from the web */ scraping_process: { /** * Result of fetching the frame's source file from the web. Null when there's no data */ source_file: { /** * URL Sentry fetched */ url: string; /** * Result of fetching the file, always success */ status: 'success'; } | { /** * URL Sentry didn't fetch */ url: string; /** * Result of fetching the file, always not_attempted */ status: 'not_attempted'; } | { /** * URL Sentry failed to fetch */ url: string; /** * Result of fetching the file, always failure */ status: 'failure'; /** * Why fetching failed, such as not_found, disabled, invalid_host, permission_denied or timeout */ reason: 'not_found' | 'disabled' | 'invalid_host' | 'permission_denied' | 'timeout' | 'download_error' | 'other'; /** * More details about the failure */ details: string | null; } | null; /** * Result of fetching the frame's source map from the web. Null when there's no data */ source_map: { /** * URL Sentry fetched */ url: string; /** * Result of fetching the file, always success */ status: 'success'; } | { /** * URL Sentry didn't fetch */ url: string; /** * Result of fetching the file, always not_attempted */ status: 'not_attempted'; } | { /** * URL Sentry failed to fetch */ url: string; /** * Result of fetching the file, always failure */ status: 'failure'; /** * Why fetching failed, such as not_found, disabled, invalid_host, permission_denied or timeout */ reason: 'not_found' | 'disabled' | 'invalid_host' | 'permission_denied' | 'timeout' | 'download_error' | 'other'; /** * More details about the failure */ details: string | null; } | null; }; }>; }>; /** * Whether the event has debug IDs */ has_debug_ids: boolean; /** * Minimum SDK version that supports debug IDs. Null when there's none */ min_debug_id_sdk_version: string | null; /** * Version of the SDK that sent the event */ sdk_version: string | null; /** * Whether the project has any artifact bundles */ project_has_some_artifact_bundle: boolean; /** * Whether the event's release has any uploaded artifacts */ release_has_some_artifact: boolean; /** * Whether any artifact with a debug ID was uploaded for the project */ has_uploaded_some_artifact_with_a_debug_id: boolean; /** * Whether the event's SDK supports debug IDs: not-supported, unofficial-sdk, needs-upgrade or full */ sdk_debug_id_support: 'not-supported' | 'unofficial-sdk' | 'needs-upgrade' | 'full'; /** * Whether the event has data about fetching source files from the web */ has_scraping_data: boolean; }; }; export type GetProjectEventSourceMapDebugResponse = GetProjectEventSourceMapDebugResponses[keyof GetProjectEventSourceMapDebugResponses]; export type AssembleProjectDebugFilesData = { /** * The files to assemble, keyed by the SHA-1 checksum of each whole file. */ body?: { [key: string]: { /** * The file name. A ProGuard mapping without `debug_id` can carry it in the name, as in `/proguard/mapping-.txt`. */ name: string; /** * The SHA-1 checksums of the file's chunks, in order. Upload missing chunks with the chunk upload endpoint. Send an empty list to poll the file's state. */ chunks: Array; /** * The debug ID to store the file under, overriding the one read from the file. */ debug_id?: string; [key: string]: unknown; }; }; path: { /** * The ID or slug of the organization the resource belongs to. */ organization_id_or_slug: string; /** * The ID or slug of the project the resource belongs to. Project slugs are unique within each organization. */ project_id_or_slug: string; }; query?: never; url: '/projects/{organization_id_or_slug}/{project_id_or_slug}/files/difs/assemble/'; }; export type AssembleProjectDebugFilesErrors = { /** * Bad Request */ 400: unknown; /** * Unauthorized */ 401: unknown; /** * Forbidden */ 403: unknown; /** * Not Found */ 404: unknown; }; export type AssembleProjectDebugFilesResponses = { 200: { [key: string]: { /** * State of the file: ok, not_found, created, assembling or error */ state: string; /** * Checksums of the chunks the server doesn't have yet */ missingChunks: Array; /** * Error message when the state is error */ detail?: string | null; /** * Debug file created from the chunks. Only set when the state is ok */ dif?: { /** * ID of the debug file */ id: string; /** * Debug ID without the age suffix, as a UUID */ uuid: string; /** * Debug ID of the file */ debugId: string; /** * Code ID of the file, such as the GNU build ID. Null when the file has none */ codeId: string | null; /** * CPU architecture of the file, such as x86_64 or arm64 */ cpuName: string; /** * Name of the object file */ objectName: string; /** * Format of the file, such as macho, elf, pe, pdb, breakpad or proguard */ symbolType: string; /** * HTTP headers to download the file with, such as Content-Type */ headers: { [key: string]: string; }; /** * Size of the file in bytes */ size: number; /** * SHA-1 checksum of the file */ sha1: string; /** * When the file was uploaded (ISO 8601) */ dateCreated: string; /** * Extra data about the file, such as its features. Empty when not known */ data: { /** * Kind of the object, such as executable, debug companion or library. Left out for mapping files */ type?: string; /** * Debug features the file provides, such as symtab, debug, unwind, sources or mapping */ features?: Array; }; }; }; }; }; export type AssembleProjectDebugFilesResponse2 = AssembleProjectDebugFilesResponses[keyof AssembleProjectDebugFilesResponses]; export type ListProjectDebugFilesData = { body?: never; path: { /** * The ID or slug of the organization the resource belongs to. */ organization_id_or_slug: string; /** * The ID or slug of the project the resource belongs to. Project slugs are unique within each organization. */ project_id_or_slug: string; }; query?: { /** * Substring filter matched against object name, debug ID, code ID, CPU name, and file headers. */ query?: string; /** * Filter results to debug information files matching the given debug ID. */ debug_id?: string; /** * Filter results to debug information files matching the given code ID. */ code_id?: string; /** * Restrict results to one or more file formats. */ file_formats?: Array; /** * A pointer to the last object fetched and its sort order; used to retrieve the next or previous results. */ cursor?: string; }; url: '/projects/{organization_id_or_slug}/{project_id_or_slug}/files/dsyms/'; }; export type ListProjectDebugFilesErrors = { /** * Unauthorized */ 401: unknown; /** * Forbidden */ 403: unknown; /** * Not Found */ 404: unknown; }; export type ListProjectDebugFilesResponses = { 200: Array<{ /** * ID of the debug file */ id: string; /** * Debug ID without the age suffix, as a UUID */ uuid: string; /** * Debug ID of the file */ debugId: string; /** * Code ID of the file, such as the GNU build ID. Null when the file has none */ codeId: string | null; /** * CPU architecture of the file, such as x86_64 or arm64 */ cpuName: string; /** * Name of the object file */ objectName: string; /** * Format of the file, such as macho, elf, pe, pdb, breakpad or proguard */ symbolType: string; /** * HTTP headers to download the file with, such as Content-Type */ headers: { [key: string]: string; }; /** * Size of the file in bytes */ size: number; /** * SHA-1 checksum of the file */ sha1: string; /** * When the file was uploaded (ISO 8601) */ dateCreated: string; /** * Extra data about the file, such as its features. Empty when not known */ data: { /** * Kind of the object, such as executable, debug companion or library. Left out for mapping files */ type?: string; /** * Debug features the file provides, such as symtab, debug, unwind, sources or mapping */ features?: Array; }; }>; }; export type ListProjectDebugFilesResponse2 = ListProjectDebugFilesResponses[keyof ListProjectDebugFilesResponses]; export type AssembleProjectPreprodArtifactData = { body?: { /** * SHA-1 checksum of the whole build file. */ checksum: string; /** * SHA-1 checksums of the file's chunks, in order. Upload missing chunks with the chunk upload endpoint first. */ chunks: Array; /** * Name of the build configuration, such as `Release` or `Debug`. */ build_configuration?: string; /** * Release notes to show with the build. */ release_notes?: string; /** * Install groups that can install the build. */ install_groups?: Array; /** * SHA of the commit the build was made from. */ head_sha?: string; /** * SHA of the commit to compare against, such as the merge base of a pull request. Requires `head_sha`. */ base_sha?: string; /** * VCS provider of the repository, such as `github`. */ provider?: string; /** * Name of the repository the build was made from, such as `owner/repo`. */ head_repo_name?: string; /** * Name of the repository of the base commit, such as `owner/repo`. */ base_repo_name?: string; /** * Branch or ref the build was made from, such as `feature/xyz`. */ head_ref?: string; /** * Branch or ref of the base commit, such as `main`. */ base_ref?: string; /** * Number of the pull request the build belongs to. */ pr_number?: number; }; path: { /** * The ID or slug of the organization the resource belongs to. */ organization_id_or_slug: string; /** * The ID or slug of the project the resource belongs to. Project slugs are unique within each organization. */ project_id_or_slug: string; }; query?: never; url: '/projects/{organization_id_or_slug}/{project_id_or_slug}/files/preprodartifacts/assemble/'; }; export type AssembleProjectPreprodArtifactErrors = { /** * Bad Request */ 400: unknown; /** * Unauthorized */ 401: unknown; /** * Forbidden */ 403: unknown; /** * Not Found */ 404: unknown; }; export type AssembleProjectPreprodArtifactResponses = { 200: { /** * State of the build file: not_found if chunks are missing or none were sent, created once the build is queued for assembly */ state: string; /** * Checksums of the chunks the server doesn't have yet */ missingChunks: Array; /** * URL of the build in Sentry. Only set when the state is created */ artifactUrl?: string; }; }; export type AssembleProjectPreprodArtifactResponse = AssembleProjectPreprodArtifactResponses[keyof AssembleProjectPreprodArtifactResponses]; export type ListProjectFiltersData = { body?: never; path: { /** * The ID or slug of the organization the resource belongs to. */ organization_id_or_slug: string; /** * The ID or slug of the project the resource belongs to. Project slugs are unique within each organization. */ project_id_or_slug: string; }; query?: never; url: '/projects/{organization_id_or_slug}/{project_id_or_slug}/filters/'; }; export type ListProjectFiltersErrors = { /** * Forbidden */ 403: unknown; }; export type ListProjectFiltersResponses = { 200: Array<{ /** * ID of the inbound filter, such as browser-extensions or legacy-browsers */ id: string; /** * Whether the filter is on. For legacy-browsers, the list of browsers it filters */ active: boolean | Array; }>; }; export type ListProjectFiltersResponse = ListProjectFiltersResponses[keyof ListProjectFiltersResponses]; export type UpdateProjectFilterData = { body?: { /** * Toggle the browser-extensions, localhost, filtered-transaction, or web-crawlers filter on or off. */ active?: boolean; /** * * Specifies which legacy browser filters should be active. Anything excluded from the list will be * disabled. The options are: * - `ie` - Internet Explorer Version 11 and lower * - `edge` - Edge Version 110 and lower * - `safari` - Safari Version 15 and lower * - `firefox` - Firefox Version 110 and lower * - `chrome` - Chrome Version 110 and lower * - `opera` - Opera Version 99 and lower * - `android` - Android Version 3 and lower * - `opera_mini` - Opera Mini Version 34 and lower * * Deprecated options: * - `ie_pre_9` - Internet Explorer Version 8 and lower * - `ie9` - Internet Explorer Version 9 * - `ie10` - Internet Explorer Version 10 * - `ie11` - Internet Explorer Version 11 * - `safari_pre_6` - Safari Version 5 and lower * - `opera_pre_15` - Opera Version 14 and lower * - `opera_mini_pre_8` - Opera Mini Version 8 and lower * - `android_pre_4` - Android Version 3 and lower * - `edge_pre_79` - Edge Version 18 and lower (non Chromium based) * */ subfilters?: Array<'ie' | 'edge' | 'safari' | 'firefox' | 'chrome' | 'opera' | 'android' | 'opera_mini' | 'ie_pre_9' | 'ie9' | 'ie10' | 'ie11' | 'opera_pre_15' | 'android_pre_4' | 'safari_pre_6' | 'opera_mini_pre_8' | 'edge_pre_79'>; }; path: { /** * The ID or slug of the organization the resource belongs to. */ organization_id_or_slug: string; /** * The ID or slug of the project the resource belongs to. Project slugs are unique within each organization. */ project_id_or_slug: string; /** * The type of filter toggle to update. The options are: * - `browser-extensions` - Filter out errors known to be caused by browser extensions. * - `localhost` - Filter out events coming from localhost. This applies to both IPv4 (``127.0.0.1``) * and IPv6 (``::1``) addresses. * - `filtered-transaction` - Filter out transactions for healthcheck and ping endpoints. * - `web-crawlers` - Filter out known web crawlers. Some crawlers may execute pages in incompatible * ways which cause errors that are unlikely to be seen by a normal user. * - `legacy-browser` - Filter out known errors from legacy browsers. Older browsers often give less * accurate information, and while they may report valid issues, the context to understand them is * incorrect or missing. * */ filter_id: string; }; query?: never; url: '/projects/{organization_id_or_slug}/{project_id_or_slug}/filters/{filter_id}/'; }; export type UpdateProjectFilterErrors = { /** * Bad Request */ 400: unknown; /** * Forbidden */ 403: unknown; /** * Not Found */ 404: unknown; }; export type UpdateProjectFilterResponses = { /** * No Content */ 204: void; }; export type UpdateProjectFilterResponse = UpdateProjectFilterResponses[keyof UpdateProjectFilterResponses]; export type ListProjectKeysData = { body?: never; path: { /** * The ID or slug of the organization the resource belongs to. */ organization_id_or_slug: string; /** * The ID or slug of the project the resource belongs to. Project slugs are unique within each organization. */ project_id_or_slug: string; }; query?: { /** * A pointer to the last object fetched and its sort order; used to retrieve the next or previous results. */ cursor?: string; /** * * Filter client keys by `active` or `inactive`. Defaults to returning all * keys if not specified. * */ status?: string; }; url: '/projects/{organization_id_or_slug}/{project_id_or_slug}/keys/'; }; export type ListProjectKeysErrors = { /** * Bad Request */ 400: unknown; /** * Forbidden */ 403: unknown; }; export type ListProjectKeysResponses = { 200: Array<{ /** * ID of the client key, same as its public key */ id: string; /** * Name of the client key */ name: string; /** * Name of the client key, same as name */ label: string; /** * Public key */ public: string | null; /** * Secret key */ secret: string | null; /** * ID of the project the key belongs to */ projectId: number; /** * Whether the client key accepts events */ isActive: boolean; /** * Rate limit for events sent with the key. Null when there's none */ rateLimit: { /** * Rate limit window in seconds */ window: number; /** * Number of events accepted per window */ count: number; } | null; /** * DSN and ingestion endpoints for the key */ dsn: { /** * DSN that includes the secret key */ secret: string; /** * Public DSN to configure SDKs with */ public: string; /** * Endpoint for Content Security Policy reports */ csp: string; /** * Endpoint for security reports */ security: string; /** * Endpoint for minidump crash reports */ minidump: string; /** * Endpoint for Network Error Logging reports */ nel: string; /** * Endpoint for Unreal Engine crash reports */ unreal: string; /** * Endpoint for cron monitor check-ins */ crons: string; /** * URL of the JavaScript SDK Loader script */ cdn: string; /** * Endpoint for PlayStation crash reports */ playstation: string; /** * Base URL for integration endpoints, such as the OpenTelemetry endpoints */ integration: string; /** * OpenTelemetry (OTLP) endpoint for traces */ otlp_traces: string; /** * OpenTelemetry (OTLP) endpoint for logs */ otlp_logs: string; }; /** * JavaScript SDK version the Loader serves */ browserSdkVersion: string; /** * JavaScript SDK versions the Loader can serve */ browserSdk: { /** * JavaScript SDK versions the Loader can serve, as [value, label] pairs */ choices: Array>; }; /** * When the client key was created (ISO 8601) */ dateCreated: string | null; /** * Features the JavaScript SDK Loader enables */ dynamicSdkLoaderOptions: { /** * Whether the Loader enables Session Replay */ hasReplay: boolean; /** * Whether the Loader enables tracing */ hasPerformance: boolean; /** * Whether the Loader loads the debug bundle */ hasDebug: boolean; /** * Whether the Loader enables User Feedback */ hasFeedback: boolean; /** * Whether the Loader enables logs and metrics */ hasLogsAndMetrics: boolean; }; /** * What the key is used for, such as user or profiling. Only included for superusers */ useCase?: string; }>; }; export type ListProjectKeysResponse = ListProjectKeysResponses[keyof ListProjectKeysResponses]; export type CreateProjectKeyData = { body?: { /** * The optional name of the key. If not provided it will be automatically generated. */ name?: string | null; /** * Applies a rate limit to cap the number of errors accepted during a given time window. To * disable entirely set `rateLimit` to null. * ```json * { * "rateLimit": { * "window": 7200, // time in seconds * "count": 1000 // error cap * } * } * ``` */ rateLimit?: { count?: number | null; window?: number | null; }; /** * * `user` * * `profiling` * * `tempest` * * `demo` */ useCase?: 'user' | 'profiling' | 'tempest' | 'demo'; }; path: { /** * The ID or slug of the organization the resource belongs to. */ organization_id_or_slug: string; /** * The ID or slug of the project the resource belongs to. Project slugs are unique within each organization. */ project_id_or_slug: string; }; query?: never; url: '/projects/{organization_id_or_slug}/{project_id_or_slug}/keys/'; }; export type CreateProjectKeyErrors = { /** * Bad Request */ 400: unknown; /** * Forbidden */ 403: unknown; }; export type CreateProjectKeyResponses = { /** * This represents a Sentry Project Client Key. */ 201: { /** * ID of the client key, same as its public key */ id: string; /** * Name of the client key */ name: string; /** * Name of the client key, same as name */ label: string; /** * Public key */ public: string | null; /** * Secret key */ secret: string | null; /** * ID of the project the key belongs to */ projectId: number; /** * Whether the client key accepts events */ isActive: boolean; /** * Rate limit for events sent with the key. Null when there's none */ rateLimit: { /** * Rate limit window in seconds */ window: number; /** * Number of events accepted per window */ count: number; } | null; /** * DSN and ingestion endpoints for the key */ dsn: { /** * DSN that includes the secret key */ secret: string; /** * Public DSN to configure SDKs with */ public: string; /** * Endpoint for Content Security Policy reports */ csp: string; /** * Endpoint for security reports */ security: string; /** * Endpoint for minidump crash reports */ minidump: string; /** * Endpoint for Network Error Logging reports */ nel: string; /** * Endpoint for Unreal Engine crash reports */ unreal: string; /** * Endpoint for cron monitor check-ins */ crons: string; /** * URL of the JavaScript SDK Loader script */ cdn: string; /** * Endpoint for PlayStation crash reports */ playstation: string; /** * Base URL for integration endpoints, such as the OpenTelemetry endpoints */ integration: string; /** * OpenTelemetry (OTLP) endpoint for traces */ otlp_traces: string; /** * OpenTelemetry (OTLP) endpoint for logs */ otlp_logs: string; }; /** * JavaScript SDK version the Loader serves */ browserSdkVersion: string; /** * JavaScript SDK versions the Loader can serve */ browserSdk: { /** * JavaScript SDK versions the Loader can serve, as [value, label] pairs */ choices: Array>; }; /** * When the client key was created (ISO 8601) */ dateCreated: string | null; /** * Features the JavaScript SDK Loader enables */ dynamicSdkLoaderOptions: { /** * Whether the Loader enables Session Replay */ hasReplay: boolean; /** * Whether the Loader enables tracing */ hasPerformance: boolean; /** * Whether the Loader loads the debug bundle */ hasDebug: boolean; /** * Whether the Loader enables User Feedback */ hasFeedback: boolean; /** * Whether the Loader enables logs and metrics */ hasLogsAndMetrics: boolean; }; /** * What the key is used for, such as user or profiling. Only included for superusers */ useCase?: string; }; }; export type CreateProjectKeyResponse = CreateProjectKeyResponses[keyof CreateProjectKeyResponses]; export type DeleteProjectKeyData = { body?: never; path: { /** * The ID or slug of the organization the resource belongs to. */ organization_id_or_slug: string; /** * The ID or slug of the project the resource belongs to. Project slugs are unique within each organization. */ project_id_or_slug: string; /** * The ID of the key to delete. */ key_id: string; }; query?: never; url: '/projects/{organization_id_or_slug}/{project_id_or_slug}/keys/{key_id}/'; }; export type DeleteProjectKeyErrors = { /** * Forbidden */ 403: unknown; /** * Not Found */ 404: unknown; }; export type DeleteProjectKeyResponses = { /** * No Content */ 204: void; }; export type DeleteProjectKeyResponse = DeleteProjectKeyResponses[keyof DeleteProjectKeyResponses]; export type GetProjectKeyData = { body?: never; path: { /** * The ID or slug of the organization the resource belongs to. */ organization_id_or_slug: string; /** * The ID or slug of the project the resource belongs to. Project slugs are unique within each organization. */ project_id_or_slug: string; /** * The ID of the client key */ key_id: string; }; query?: never; url: '/projects/{organization_id_or_slug}/{project_id_or_slug}/keys/{key_id}/'; }; export type GetProjectKeyErrors = { /** * Forbidden */ 403: unknown; /** * Not Found */ 404: unknown; }; export type GetProjectKeyResponses = { /** * This represents a Sentry Project Client Key. */ 200: { /** * ID of the client key, same as its public key */ id: string; /** * Name of the client key */ name: string; /** * Name of the client key, same as name */ label: string; /** * Public key */ public: string | null; /** * Secret key */ secret: string | null; /** * ID of the project the key belongs to */ projectId: number; /** * Whether the client key accepts events */ isActive: boolean; /** * Rate limit for events sent with the key. Null when there's none */ rateLimit: { /** * Rate limit window in seconds */ window: number; /** * Number of events accepted per window */ count: number; } | null; /** * DSN and ingestion endpoints for the key */ dsn: { /** * DSN that includes the secret key */ secret: string; /** * Public DSN to configure SDKs with */ public: string; /** * Endpoint for Content Security Policy reports */ csp: string; /** * Endpoint for security reports */ security: string; /** * Endpoint for minidump crash reports */ minidump: string; /** * Endpoint for Network Error Logging reports */ nel: string; /** * Endpoint for Unreal Engine crash reports */ unreal: string; /** * Endpoint for cron monitor check-ins */ crons: string; /** * URL of the JavaScript SDK Loader script */ cdn: string; /** * Endpoint for PlayStation crash reports */ playstation: string; /** * Base URL for integration endpoints, such as the OpenTelemetry endpoints */ integration: string; /** * OpenTelemetry (OTLP) endpoint for traces */ otlp_traces: string; /** * OpenTelemetry (OTLP) endpoint for logs */ otlp_logs: string; }; /** * JavaScript SDK version the Loader serves */ browserSdkVersion: string; /** * JavaScript SDK versions the Loader can serve */ browserSdk: { /** * JavaScript SDK versions the Loader can serve, as [value, label] pairs */ choices: Array>; }; /** * When the client key was created (ISO 8601) */ dateCreated: string | null; /** * Features the JavaScript SDK Loader enables */ dynamicSdkLoaderOptions: { /** * Whether the Loader enables Session Replay */ hasReplay: boolean; /** * Whether the Loader enables tracing */ hasPerformance: boolean; /** * Whether the Loader loads the debug bundle */ hasDebug: boolean; /** * Whether the Loader enables User Feedback */ hasFeedback: boolean; /** * Whether the Loader enables logs and metrics */ hasLogsAndMetrics: boolean; }; /** * What the key is used for, such as user or profiling. Only included for superusers */ useCase?: string; }; }; export type GetProjectKeyResponse = GetProjectKeyResponses[keyof GetProjectKeyResponses]; export type UpdateProjectKeyData = { body?: { /** * The name for the client key */ name?: string; /** * Activate or deactivate the client key. */ isActive?: boolean; /** * Applies a rate limit to cap the number of errors accepted during a given time window. To * disable entirely set `rateLimit` to null. * ```json * { * "rateLimit": { * "window": 7200, // time in seconds * "count": 1000 // error cap * } * } * ``` */ rateLimit?: { count?: number | null; window?: number | null; }; /** * The Sentry Javascript SDK version to use. The currently supported options are: * * * `latest` - Most recent version * * `7.x` - Version 7 releases */ browserSdkVersion?: 'latest' | '7.x'; /** * Configures multiple options for the Javascript Loader Script. * - `Performance Monitoring` * - `Debug Bundles & Logging` * - `Session Replay` - Note that the loader will load the ES6 bundle instead of the ES5 bundle. * - `User Feedback` - Note that the loader will load the ES6 bundle instead of the ES5 bundle. * - `Logs and Metrics` - Note that the loader will load the ES6 bundle instead of the ES5 bundle. Requires SDK >= 10.0.0. * ```json * { * "dynamicSdkLoaderOptions": { * "hasReplay": true, * "hasPerformance": true, * "hasDebug": true, * "hasFeedback": true, * "hasLogsAndMetrics": true * } * } * ``` */ dynamicSdkLoaderOptions?: { hasReplay?: boolean; hasPerformance?: boolean; hasDebug?: boolean; hasFeedback?: boolean; hasLogsAndMetrics?: boolean; }; }; path: { /** * The ID or slug of the organization the resource belongs to. */ organization_id_or_slug: string; /** * The ID or slug of the project the resource belongs to. Project slugs are unique within each organization. */ project_id_or_slug: string; /** * The ID of the key to update. */ key_id: string; }; query?: never; url: '/projects/{organization_id_or_slug}/{project_id_or_slug}/keys/{key_id}/'; }; export type UpdateProjectKeyErrors = { /** * Bad Request */ 400: unknown; /** * Forbidden */ 403: unknown; /** * Not Found */ 404: unknown; }; export type UpdateProjectKeyResponses = { /** * This represents a Sentry Project Client Key. */ 200: { /** * ID of the client key, same as its public key */ id: string; /** * Name of the client key */ name: string; /** * Name of the client key, same as name */ label: string; /** * Public key */ public: string | null; /** * Secret key */ secret: string | null; /** * ID of the project the key belongs to */ projectId: number; /** * Whether the client key accepts events */ isActive: boolean; /** * Rate limit for events sent with the key. Null when there's none */ rateLimit: { /** * Rate limit window in seconds */ window: number; /** * Number of events accepted per window */ count: number; } | null; /** * DSN and ingestion endpoints for the key */ dsn: { /** * DSN that includes the secret key */ secret: string; /** * Public DSN to configure SDKs with */ public: string; /** * Endpoint for Content Security Policy reports */ csp: string; /** * Endpoint for security reports */ security: string; /** * Endpoint for minidump crash reports */ minidump: string; /** * Endpoint for Network Error Logging reports */ nel: string; /** * Endpoint for Unreal Engine crash reports */ unreal: string; /** * Endpoint for cron monitor check-ins */ crons: string; /** * URL of the JavaScript SDK Loader script */ cdn: string; /** * Endpoint for PlayStation crash reports */ playstation: string; /** * Base URL for integration endpoints, such as the OpenTelemetry endpoints */ integration: string; /** * OpenTelemetry (OTLP) endpoint for traces */ otlp_traces: string; /** * OpenTelemetry (OTLP) endpoint for logs */ otlp_logs: string; }; /** * JavaScript SDK version the Loader serves */ browserSdkVersion: string; /** * JavaScript SDK versions the Loader can serve */ browserSdk: { /** * JavaScript SDK versions the Loader can serve, as [value, label] pairs */ choices: Array>; }; /** * When the client key was created (ISO 8601) */ dateCreated: string | null; /** * Features the JavaScript SDK Loader enables */ dynamicSdkLoaderOptions: { /** * Whether the Loader enables Session Replay */ hasReplay: boolean; /** * Whether the Loader enables tracing */ hasPerformance: boolean; /** * Whether the Loader loads the debug bundle */ hasDebug: boolean; /** * Whether the Loader enables User Feedback */ hasFeedback: boolean; /** * Whether the Loader enables logs and metrics */ hasLogsAndMetrics: boolean; }; /** * What the key is used for, such as user or profiling. Only included for superusers */ useCase?: string; }; }; export type UpdateProjectKeyResponse = UpdateProjectKeyResponses[keyof UpdateProjectKeyResponses]; export type ListProjectMembersData = { body?: never; path: { /** * The ID or slug of the organization the resource belongs to. */ organization_id_or_slug: string; /** * The ID or slug of the project the resource belongs to. Project slugs are unique within each organization. */ project_id_or_slug: string; }; query?: never; url: '/projects/{organization_id_or_slug}/{project_id_or_slug}/members/'; }; export type ListProjectMembersErrors = { /** * Bad Request */ 400: unknown; /** * Forbidden */ 403: unknown; }; export type ListProjectMembersResponses = { 200: Array<{ /** * Users in external providers, such as Slack or GitHub, linked to the member's user. Included only when requested */ externalUsers?: Array<{ /** * ID of the user or team in the provider */ externalId?: string; /** * ID of the Sentry user. Only set for user mappings */ userId?: string; /** * ID of the Sentry team. Only set for team mappings */ teamId?: string; /** * ID of the external actor mapping */ id: string; /** * Provider of the external actor, such as github or slack */ provider: string; /** * Name of the user or team in the provider, such as @octocat */ externalName: string; /** * ID of the integration the mapping belongs to */ integrationId: string; }>; /** * Organization member ID */ id: string; /** * Email address of the member's user, or the invited email address if they have no account yet */ email: string; /** * Display name of the member's user, or their email address if they have no account yet */ name: string; /** * The member's user. Null for invited members without an account, or if the user can't be found */ user: { /** * SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access */ identities?: Array<{ /** * SSO identity ID */ id: string; /** * User's identifier at the auth provider */ name: string; /** * Organization the auth provider belongs to */ organization: { /** * Organization slug */ slug: string; /** * Organization name */ name: string; }; /** * Auth provider of the identity */ provider: { /** * Auth provider key, such as google or saml2 */ id: string; /** * Display name of the auth provider */ name: string; }; /** * When the identity was last verified by signing in through the auth provider */ dateVerified: string; /** * When the identity was last synced from the auth provider */ dateSynced: string; }>; /** * User avatar */ avatar?: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Two-factor authenticators of the user, without backup methods such as recovery codes */ authenticators?: Array<{ /** * Authenticator ID */ id: string; /** * Authenticator type, such as totp, sms, u2f or recovery */ type: string; /** * Display name of the authenticator type */ name: string; /** * When the authenticator was added */ dateCreated: string; /** * When the authenticator was last used, or null */ dateUsed: string | null; }>; /** * Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization */ canReset2fa?: boolean; /** * User ID */ id: string; /** * Display name: the user's name, or their email or username if no name is set */ name: string; /** * Username */ username: string; /** * Primary email address */ email: string; /** * Gravatar URL for the primary email address */ avatarUrl: string; /** * Whether the account is active */ isActive: boolean; /** * Whether the account is suspended. Suspended users can't sign in */ isSuspended: boolean; /** * Whether the user has a password set */ hasPasswordAuth: boolean; /** * Whether the account is managed, which stops the user from changing their username, password and similar details */ isManaged: boolean; /** * When the account was created */ dateJoined: string; /** * When the user last signed in, or null */ lastLogin: string | null; /** * Whether the user has two-factor authentication enabled */ has2fa: boolean; /** * When the user was last active, or null */ lastActive: string | null; /** * Whether the user is a superuser */ isSuperuser: boolean; /** * Whether the user has staff status */ isStaff: boolean; /** * Deprecated. Always an empty object */ experiments: { [key: string]: string; }; /** * Email addresses of the user. Only included for the requesting user or superusers; empty otherwise */ emails: Array<{ /** * Email ID */ id: string; /** * Email address */ email: string; /** * Whether the email address is verified */ is_verified: boolean; }>; } | null; /** * ID of the member's organization role */ orgRole: string; /** * Whether the member has no user account linked yet, as with an invite that hasn't been accepted */ pending: boolean; /** * Whether the member's invite has expired */ expired: boolean; /** * Member flags */ flags: { /** * Whether the member is provisioned and managed through the organization's identity provider (SCIM) */ 'idp:provisioned': boolean; /** * Whether the member's organization role is set by the identity provider through SCIM */ 'idp:role-restricted': boolean; /** * Whether the member has linked their account to the organization's SSO provider */ 'sso:linked': boolean; /** * Whether the member's SSO link is invalid */ 'sso:invalid': boolean; /** * Whether the member is restricted by the plan's member limit */ 'member-limit:restricted': boolean; /** * Whether the member is managed by an active partnership and can't be changed until it ends */ 'partnership:restricted': boolean; }; /** * When the member was added or invited */ dateCreated: string; /** * Invite status */ inviteStatus: 'approved' | 'requested_to_be_invited' | 'requested_to_join' | null; /** * Name of the user who invited the member, or null */ inviterName: string | null; }>; }; export type ListProjectMembersResponse = ListProjectMembersResponses[keyof ListProjectMembersResponses]; export type DeleteProjectMonitorData = { body?: never; path: { /** * The ID or slug of the organization the resource belongs to. */ organization_id_or_slug: string; /** * The ID or slug of the project the resource belongs to. Project slugs are unique within each organization. */ project_id_or_slug: string; /** * The ID or slug of the monitor. */ monitor_id_or_slug: string; }; query?: { /** * The name of environments to filter by. */ environment?: Array; }; url: '/projects/{organization_id_or_slug}/{project_id_or_slug}/monitors/{monitor_id_or_slug}/'; }; export type DeleteProjectMonitorErrors = { /** * Unauthorized */ 401: unknown; /** * Forbidden */ 403: unknown; /** * Not Found */ 404: unknown; }; export type DeleteProjectMonitorResponses = { /** * Accepted */ 202: unknown; }; export type GetProjectMonitorData = { body?: never; path: { /** * The ID or slug of the organization the resource belongs to. */ organization_id_or_slug: string; /** * The ID or slug of the project the resource belongs to. Project slugs are unique within each organization. */ project_id_or_slug: string; /** * The ID or slug of the monitor. */ monitor_id_or_slug: string; }; query?: never; url: '/projects/{organization_id_or_slug}/{project_id_or_slug}/monitors/{monitor_id_or_slug}/'; }; export type GetProjectMonitorErrors = { /** * Unauthorized */ 401: unknown; /** * Forbidden */ 403: unknown; /** * Not Found */ 404: unknown; }; export type GetProjectMonitorResponses = { 200: { /** * ID of the monitor */ id: string; /** * Name of the monitor */ name: string; /** * Slug that identifies the monitor in the organization */ slug: string; /** * Status of the monitor. Disabled monitors don't accept check-ins */ status: 'active' | 'disabled' | 'pending_deletion' | 'deletion_in_progress'; /** * Whether incidents are muted in all of the monitor's environments */ isMuted: boolean; /** * Whether the most recent check-in was an upsert check-in */ isUpserting: boolean; /** * Configuration of the monitor */ config: { /** * Type of schedule: crontab or interval */ schedule_type: 'crontab' | 'interval'; /** * Schedule of the monitor: a crontab string, or a [value, unit] pair for intervals, such as [1, "day"] */ schedule: string | Array; /** * How long in minutes after the expected check-in time to wait before the check-in counts as missed */ checkin_margin: number | null; /** * How long in minutes a check-in can stay in progress before it counts as failed */ max_runtime: number | null; /** * Timezone the schedule is evaluated in, as a tz database name */ timezone: string | null; /** * Number of consecutive missed or failed check-ins before an issue is created */ failure_issue_threshold: number | null; /** * Number of consecutive successful check-ins before the issue is resolved */ recovery_threshold: number | null; /** * ID of the alert rule linked to the monitor */ alert_rule_id: number | null; }; /** * When the monitor was created (ISO 8601) */ dateCreated: string; /** * Project the monitor belongs to */ project: { /** * Counts of non-transaction events per interval over the requested stats period, as [timestamp, count] pairs. Only included when a stats period is requested */ stats?: Array> | { [key: string]: number; }; /** * Counts of transactions per interval over the requested stats period, as [timestamp, count] pairs. Only included when transaction stats are requested */ transactionStats?: Array>; /** * Crash-free session rates for the current and previous stats period. Only included when session stats are requested */ sessionStats?: { /** * Crash-free rate in the current period, as a percentage. Null when there's no session data */ currentCrashFreeRate: number | null; /** * Crash-free rate in the previous period, as a percentage. Null when there's no session data */ previousCrashFreeRate: number | null; /** * Whether the project has release health (session) data */ hasHealthData: boolean; }; /** * ID of the project */ id: string; /** * Slug of the project */ slug: string; /** * Name of the project */ name: string; /** * Platform of the project */ platform: string | null; /** * When the project was created (ISO 8601) */ dateCreated: string; /** * Whether the requesting user bookmarked the project */ isBookmarked: boolean; /** * Whether the requesting user is a member of a team with access to the project */ isMember: boolean; /** * Features enabled for the project */ features: Array; /** * When the project received its first event (ISO 8601) */ firstEvent: string | null; /** * Whether the project has sent transactions */ firstTransactionEvent: boolean; /** * Scopes the requesting user has on the project through team membership and organization role */ access: Array; /** * Whether the requesting user has access to the project */ hasAccess: boolean; /** * Whether the project has sent user feedback */ hasFeedbacks: boolean; /** * Whether the project has sent feature flags */ hasFlags: boolean; /** * Whether the project has sent an event with a minified stack trace */ hasMinifiedStackTrace: boolean; /** * Whether the project has cron monitors */ hasMonitors: boolean; /** * Whether the project has sent user feedback from the user feedback widget */ hasNewFeedbacks: boolean; /** * Whether the project has sent profiles */ hasProfiles: boolean; /** * Whether the project has sent replays */ hasReplays: boolean; /** * Whether the project has sent sessions */ hasSessions: boolean; /** * Whether the project has sent HTTP request spans used by Insights */ hasInsightsHttp: boolean; /** * Whether the project has sent database spans used by Insights */ hasInsightsDb: boolean; /** * Whether the project has sent asset spans used by Insights */ hasInsightsAssets: boolean; /** * Whether the project has sent app start spans used by Insights */ hasInsightsAppStart: boolean; /** * Whether the project has sent screen load spans used by Insights */ hasInsightsScreenLoad: boolean; /** * Whether the project has sent web vitals spans used by Insights */ hasInsightsVitals: boolean; /** * Whether the project has sent cache spans used by Insights */ hasInsightsCaches: boolean; /** * Whether the project has sent queue spans used by Insights */ hasInsightsQueues: boolean; /** * Whether the project has sent AI agent spans used by Insights */ hasInsightsAgentMonitoring: boolean; /** * Whether the project has sent MCP spans used by Insights */ hasInsightsMCP: boolean; /** * Whether the project has sent logs. Always true outside sentry.io */ hasLogs: boolean; /** * Whether the project has sent trace metrics. Always true outside sentry.io */ hasTraceMetrics: boolean; /** * Whether this is the Sentry install's own internal project */ isInternal: boolean; /** * Whether the project is public */ isPublic: boolean; /** * Avatar of the project. Always a letter avatar */ avatar: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Hex color code for the project, derived from its slug unless set explicitly */ color: string; /** * Status of the project: active, deleted, or unknown */ status: string; }; /** * Environments the monitor has received check-ins for */ environments: Array<{ /** * Name of the environment */ name: string; /** * Status of the monitor in the environment */ status: 'active' | 'disabled' | 'pending_deletion' | 'deletion_in_progress' | 'ok' | 'error'; /** * Whether incidents are muted for the monitor in the environment */ isMuted: boolean; /** * When the monitor was created (ISO 8601) */ dateCreated: string; /** * When the most recent check-in was received, not counting missed check-ins (ISO 8601) */ lastCheckIn: string | null; /** * When the next check-in is expected (ISO 8601) */ nextCheckIn: string | null; /** * Latest time the next check-in can arrive before it counts as missed (ISO 8601) */ nextCheckInLatest: string | null; /** * Unresolved incident for the monitor in the environment. Null when there's none */ activeIncident: { /** * When the incident started (ISO 8601) */ startingTimestamp: string | null; /** * When the incident was resolved (ISO 8601) */ resolvingTimestamp: string | null; /** * Details of the broken monitor notice for the incident. Null when there's none */ brokenNotice: { /** * When users were notified that the monitor environment looks broken (ISO 8601) */ userNotifiedTimestamp: string | null; /** * When the broken monitor environment was muted (ISO 8601) */ environmentMutedTimestamp: string | null; } | null; } | null; }>; /** * Team or user that owns the monitor. Null when there's no owner */ owner: { /** * Whether the actor is a user or a team */ type: 'user' | 'team'; /** * ID of the user or team */ id: string; /** * Display name of the user, or slug of the team */ name: string; /** * Email address of the user. Only set for users */ email?: string; } | null; }; }; export type GetProjectMonitorResponse = GetProjectMonitorResponses[keyof GetProjectMonitorResponses]; export type UpdateProjectMonitorData = { /** * Allows parameters to be defined in snake case, but passed as camel case. * * Errors are output in camel case. */ body: { /** * The project ID or slug to associate the monitor to. */ project: string; /** * Name of the monitor. Used for notifications. If not set the slug will be derived from your monitor name. */ name: string; /** * The configuration for the monitor. */ config: { /** * Currently supports "crontab" or "interval" * * * `crontab` * * `interval` */ schedule_type?: 'crontab' | 'interval'; /** * Varies depending on the schedule_type. Is either a crontab string, or a 2 element tuple for intervals (e.g. [1, 'day']) */ schedule: unknown; /** * How long (in minutes) after the expected checkin time will we wait until we consider the checkin to have been missed. */ checkin_margin?: number | null; /** * How long (in minutes) is the checkin allowed to run for in CheckInStatus.IN_PROGRESS before it is considered failed. Maximum 10080 (7 days). */ max_runtime?: number | null; /** * tz database style timezone string * * * `Africa/Abidjan` * * `Africa/Accra` * * `Africa/Addis_Ababa` * * `Africa/Algiers` * * `Africa/Asmara` * * `Africa/Asmera` * * `Africa/Bamako` * * `Africa/Bangui` * * `Africa/Banjul` * * `Africa/Bissau` * * `Africa/Blantyre` * * `Africa/Brazzaville` * * `Africa/Bujumbura` * * `Africa/Cairo` * * `Africa/Casablanca` * * `Africa/Ceuta` * * `Africa/Conakry` * * `Africa/Dakar` * * `Africa/Dar_es_Salaam` * * `Africa/Djibouti` * * `Africa/Douala` * * `Africa/El_Aaiun` * * `Africa/Freetown` * * `Africa/Gaborone` * * `Africa/Harare` * * `Africa/Johannesburg` * * `Africa/Juba` * * `Africa/Kampala` * * `Africa/Khartoum` * * `Africa/Kigali` * * `Africa/Kinshasa` * * `Africa/Lagos` * * `Africa/Libreville` * * `Africa/Lome` * * `Africa/Luanda` * * `Africa/Lubumbashi` * * `Africa/Lusaka` * * `Africa/Malabo` * * `Africa/Maputo` * * `Africa/Maseru` * * `Africa/Mbabane` * * `Africa/Mogadishu` * * `Africa/Monrovia` * * `Africa/Nairobi` * * `Africa/Ndjamena` * * `Africa/Niamey` * * `Africa/Nouakchott` * * `Africa/Ouagadougou` * * `Africa/Porto-Novo` * * `Africa/Sao_Tome` * * `Africa/Timbuktu` * * `Africa/Tripoli` * * `Africa/Tunis` * * `Africa/Windhoek` * * `America/Adak` * * `America/Anchorage` * * `America/Anguilla` * * `America/Antigua` * * `America/Araguaina` * * `America/Argentina/Buenos_Aires` * * `America/Argentina/Catamarca` * * `America/Argentina/ComodRivadavia` * * `America/Argentina/Cordoba` * * `America/Argentina/Jujuy` * * `America/Argentina/La_Rioja` * * `America/Argentina/Mendoza` * * `America/Argentina/Rio_Gallegos` * * `America/Argentina/Salta` * * `America/Argentina/San_Juan` * * `America/Argentina/San_Luis` * * `America/Argentina/Tucuman` * * `America/Argentina/Ushuaia` * * `America/Aruba` * * `America/Asuncion` * * `America/Atikokan` * * `America/Atka` * * `America/Bahia` * * `America/Bahia_Banderas` * * `America/Barbados` * * `America/Belem` * * `America/Belize` * * `America/Blanc-Sablon` * * `America/Boa_Vista` * * `America/Bogota` * * `America/Boise` * * `America/Buenos_Aires` * * `America/Cambridge_Bay` * * `America/Campo_Grande` * * `America/Cancun` * * `America/Caracas` * * `America/Catamarca` * * `America/Cayenne` * * `America/Cayman` * * `America/Chicago` * * `America/Chihuahua` * * `America/Ciudad_Juarez` * * `America/Coral_Harbour` * * `America/Cordoba` * * `America/Costa_Rica` * * `America/Coyhaique` * * `America/Creston` * * `America/Cuiaba` * * `America/Curacao` * * `America/Danmarkshavn` * * `America/Dawson` * * `America/Dawson_Creek` * * `America/Denver` * * `America/Detroit` * * `America/Dominica` * * `America/Edmonton` * * `America/Eirunepe` * * `America/El_Salvador` * * `America/Ensenada` * * `America/Fort_Nelson` * * `America/Fort_Wayne` * * `America/Fortaleza` * * `America/Glace_Bay` * * `America/Godthab` * * `America/Goose_Bay` * * `America/Grand_Turk` * * `America/Grenada` * * `America/Guadeloupe` * * `America/Guatemala` * * `America/Guayaquil` * * `America/Guyana` * * `America/Halifax` * * `America/Havana` * * `America/Hermosillo` * * `America/Indiana/Indianapolis` * * `America/Indiana/Knox` * * `America/Indiana/Marengo` * * `America/Indiana/Petersburg` * * `America/Indiana/Tell_City` * * `America/Indiana/Vevay` * * `America/Indiana/Vincennes` * * `America/Indiana/Winamac` * * `America/Indianapolis` * * `America/Inuvik` * * `America/Iqaluit` * * `America/Jamaica` * * `America/Jujuy` * * `America/Juneau` * * `America/Kentucky/Louisville` * * `America/Kentucky/Monticello` * * `America/Knox_IN` * * `America/Kralendijk` * * `America/La_Paz` * * `America/Lima` * * `America/Los_Angeles` * * `America/Louisville` * * `America/Lower_Princes` * * `America/Maceio` * * `America/Managua` * * `America/Manaus` * * `America/Marigot` * * `America/Martinique` * * `America/Matamoros` * * `America/Mazatlan` * * `America/Mendoza` * * `America/Menominee` * * `America/Merida` * * `America/Metlakatla` * * `America/Mexico_City` * * `America/Miquelon` * * `America/Moncton` * * `America/Monterrey` * * `America/Montevideo` * * `America/Montreal` * * `America/Montserrat` * * `America/Nassau` * * `America/New_York` * * `America/Nipigon` * * `America/Nome` * * `America/Noronha` * * `America/North_Dakota/Beulah` * * `America/North_Dakota/Center` * * `America/North_Dakota/New_Salem` * * `America/Nuuk` * * `America/Ojinaga` * * `America/Panama` * * `America/Pangnirtung` * * `America/Paramaribo` * * `America/Phoenix` * * `America/Port-au-Prince` * * `America/Port_of_Spain` * * `America/Porto_Acre` * * `America/Porto_Velho` * * `America/Puerto_Rico` * * `America/Punta_Arenas` * * `America/Rainy_River` * * `America/Rankin_Inlet` * * `America/Recife` * * `America/Regina` * * `America/Resolute` * * `America/Rio_Branco` * * `America/Rosario` * * `America/Santa_Isabel` * * `America/Santarem` * * `America/Santiago` * * `America/Santo_Domingo` * * `America/Sao_Paulo` * * `America/Scoresbysund` * * `America/Shiprock` * * `America/Sitka` * * `America/St_Barthelemy` * * `America/St_Johns` * * `America/St_Kitts` * * `America/St_Lucia` * * `America/St_Thomas` * * `America/St_Vincent` * * `America/Swift_Current` * * `America/Tegucigalpa` * * `America/Thule` * * `America/Thunder_Bay` * * `America/Tijuana` * * `America/Toronto` * * `America/Tortola` * * `America/Vancouver` * * `America/Virgin` * * `America/Whitehorse` * * `America/Winnipeg` * * `America/Yakutat` * * `America/Yellowknife` * * `Antarctica/Casey` * * `Antarctica/Davis` * * `Antarctica/DumontDUrville` * * `Antarctica/Macquarie` * * `Antarctica/Mawson` * * `Antarctica/McMurdo` * * `Antarctica/Palmer` * * `Antarctica/Rothera` * * `Antarctica/South_Pole` * * `Antarctica/Syowa` * * `Antarctica/Troll` * * `Antarctica/Vostok` * * `Arctic/Longyearbyen` * * `Asia/Aden` * * `Asia/Almaty` * * `Asia/Amman` * * `Asia/Anadyr` * * `Asia/Aqtau` * * `Asia/Aqtobe` * * `Asia/Ashgabat` * * `Asia/Ashkhabad` * * `Asia/Atyrau` * * `Asia/Baghdad` * * `Asia/Bahrain` * * `Asia/Baku` * * `Asia/Bangkok` * * `Asia/Barnaul` * * `Asia/Beirut` * * `Asia/Bishkek` * * `Asia/Brunei` * * `Asia/Calcutta` * * `Asia/Chita` * * `Asia/Choibalsan` * * `Asia/Chongqing` * * `Asia/Chungking` * * `Asia/Colombo` * * `Asia/Dacca` * * `Asia/Damascus` * * `Asia/Dhaka` * * `Asia/Dili` * * `Asia/Dubai` * * `Asia/Dushanbe` * * `Asia/Famagusta` * * `Asia/Gaza` * * `Asia/Harbin` * * `Asia/Hebron` * * `Asia/Ho_Chi_Minh` * * `Asia/Hong_Kong` * * `Asia/Hovd` * * `Asia/Irkutsk` * * `Asia/Istanbul` * * `Asia/Jakarta` * * `Asia/Jayapura` * * `Asia/Jerusalem` * * `Asia/Kabul` * * `Asia/Kamchatka` * * `Asia/Karachi` * * `Asia/Kashgar` * * `Asia/Kathmandu` * * `Asia/Katmandu` * * `Asia/Khandyga` * * `Asia/Kolkata` * * `Asia/Krasnoyarsk` * * `Asia/Kuala_Lumpur` * * `Asia/Kuching` * * `Asia/Kuwait` * * `Asia/Macao` * * `Asia/Macau` * * `Asia/Magadan` * * `Asia/Makassar` * * `Asia/Manila` * * `Asia/Muscat` * * `Asia/Nicosia` * * `Asia/Novokuznetsk` * * `Asia/Novosibirsk` * * `Asia/Omsk` * * `Asia/Oral` * * `Asia/Phnom_Penh` * * `Asia/Pontianak` * * `Asia/Pyongyang` * * `Asia/Qatar` * * `Asia/Qostanay` * * `Asia/Qyzylorda` * * `Asia/Rangoon` * * `Asia/Riyadh` * * `Asia/Saigon` * * `Asia/Sakhalin` * * `Asia/Samarkand` * * `Asia/Seoul` * * `Asia/Shanghai` * * `Asia/Singapore` * * `Asia/Srednekolymsk` * * `Asia/Taipei` * * `Asia/Tashkent` * * `Asia/Tbilisi` * * `Asia/Tehran` * * `Asia/Tel_Aviv` * * `Asia/Thimbu` * * `Asia/Thimphu` * * `Asia/Tokyo` * * `Asia/Tomsk` * * `Asia/Ujung_Pandang` * * `Asia/Ulaanbaatar` * * `Asia/Ulan_Bator` * * `Asia/Urumqi` * * `Asia/Ust-Nera` * * `Asia/Vientiane` * * `Asia/Vladivostok` * * `Asia/Yakutsk` * * `Asia/Yangon` * * `Asia/Yekaterinburg` * * `Asia/Yerevan` * * `Atlantic/Azores` * * `Atlantic/Bermuda` * * `Atlantic/Canary` * * `Atlantic/Cape_Verde` * * `Atlantic/Faeroe` * * `Atlantic/Faroe` * * `Atlantic/Jan_Mayen` * * `Atlantic/Madeira` * * `Atlantic/Reykjavik` * * `Atlantic/South_Georgia` * * `Atlantic/St_Helena` * * `Atlantic/Stanley` * * `Australia/ACT` * * `Australia/Adelaide` * * `Australia/Brisbane` * * `Australia/Broken_Hill` * * `Australia/Canberra` * * `Australia/Currie` * * `Australia/Darwin` * * `Australia/Eucla` * * `Australia/Hobart` * * `Australia/LHI` * * `Australia/Lindeman` * * `Australia/Lord_Howe` * * `Australia/Melbourne` * * `Australia/NSW` * * `Australia/North` * * `Australia/Perth` * * `Australia/Queensland` * * `Australia/South` * * `Australia/Sydney` * * `Australia/Tasmania` * * `Australia/Victoria` * * `Australia/West` * * `Australia/Yancowinna` * * `Brazil/Acre` * * `Brazil/DeNoronha` * * `Brazil/East` * * `Brazil/West` * * `CET` * * `CST6CDT` * * `Canada/Atlantic` * * `Canada/Central` * * `Canada/Eastern` * * `Canada/Mountain` * * `Canada/Newfoundland` * * `Canada/Pacific` * * `Canada/Saskatchewan` * * `Canada/Yukon` * * `Chile/Continental` * * `Chile/EasterIsland` * * `Cuba` * * `EET` * * `EST` * * `EST5EDT` * * `Egypt` * * `Eire` * * `Etc/GMT` * * `Etc/GMT+0` * * `Etc/GMT+1` * * `Etc/GMT+10` * * `Etc/GMT+11` * * `Etc/GMT+12` * * `Etc/GMT+2` * * `Etc/GMT+3` * * `Etc/GMT+4` * * `Etc/GMT+5` * * `Etc/GMT+6` * * `Etc/GMT+7` * * `Etc/GMT+8` * * `Etc/GMT+9` * * `Etc/GMT-0` * * `Etc/GMT-1` * * `Etc/GMT-10` * * `Etc/GMT-11` * * `Etc/GMT-12` * * `Etc/GMT-13` * * `Etc/GMT-14` * * `Etc/GMT-2` * * `Etc/GMT-3` * * `Etc/GMT-4` * * `Etc/GMT-5` * * `Etc/GMT-6` * * `Etc/GMT-7` * * `Etc/GMT-8` * * `Etc/GMT-9` * * `Etc/GMT0` * * `Etc/Greenwich` * * `Etc/UCT` * * `Etc/UTC` * * `Etc/Universal` * * `Etc/Zulu` * * `Europe/Amsterdam` * * `Europe/Andorra` * * `Europe/Astrakhan` * * `Europe/Athens` * * `Europe/Belfast` * * `Europe/Belgrade` * * `Europe/Berlin` * * `Europe/Bratislava` * * `Europe/Brussels` * * `Europe/Bucharest` * * `Europe/Budapest` * * `Europe/Busingen` * * `Europe/Chisinau` * * `Europe/Copenhagen` * * `Europe/Dublin` * * `Europe/Gibraltar` * * `Europe/Guernsey` * * `Europe/Helsinki` * * `Europe/Isle_of_Man` * * `Europe/Istanbul` * * `Europe/Jersey` * * `Europe/Kaliningrad` * * `Europe/Kiev` * * `Europe/Kirov` * * `Europe/Kyiv` * * `Europe/Lisbon` * * `Europe/Ljubljana` * * `Europe/London` * * `Europe/Luxembourg` * * `Europe/Madrid` * * `Europe/Malta` * * `Europe/Mariehamn` * * `Europe/Minsk` * * `Europe/Monaco` * * `Europe/Moscow` * * `Europe/Nicosia` * * `Europe/Oslo` * * `Europe/Paris` * * `Europe/Podgorica` * * `Europe/Prague` * * `Europe/Riga` * * `Europe/Rome` * * `Europe/Samara` * * `Europe/San_Marino` * * `Europe/Sarajevo` * * `Europe/Saratov` * * `Europe/Simferopol` * * `Europe/Skopje` * * `Europe/Sofia` * * `Europe/Stockholm` * * `Europe/Tallinn` * * `Europe/Tirane` * * `Europe/Tiraspol` * * `Europe/Ulyanovsk` * * `Europe/Uzhgorod` * * `Europe/Vaduz` * * `Europe/Vatican` * * `Europe/Vienna` * * `Europe/Vilnius` * * `Europe/Volgograd` * * `Europe/Warsaw` * * `Europe/Zagreb` * * `Europe/Zaporozhye` * * `Europe/Zurich` * * `GB` * * `GB-Eire` * * `GMT` * * `GMT+0` * * `GMT-0` * * `GMT0` * * `Greenwich` * * `HST` * * `Hongkong` * * `Iceland` * * `Indian/Antananarivo` * * `Indian/Chagos` * * `Indian/Christmas` * * `Indian/Cocos` * * `Indian/Comoro` * * `Indian/Kerguelen` * * `Indian/Mahe` * * `Indian/Maldives` * * `Indian/Mauritius` * * `Indian/Mayotte` * * `Indian/Reunion` * * `Iran` * * `Israel` * * `Jamaica` * * `Japan` * * `Kwajalein` * * `Libya` * * `MET` * * `MST` * * `MST7MDT` * * `Mexico/BajaNorte` * * `Mexico/BajaSur` * * `Mexico/General` * * `NZ` * * `NZ-CHAT` * * `Navajo` * * `PRC` * * `PST8PDT` * * `Pacific/Apia` * * `Pacific/Auckland` * * `Pacific/Bougainville` * * `Pacific/Chatham` * * `Pacific/Chuuk` * * `Pacific/Easter` * * `Pacific/Efate` * * `Pacific/Enderbury` * * `Pacific/Fakaofo` * * `Pacific/Fiji` * * `Pacific/Funafuti` * * `Pacific/Galapagos` * * `Pacific/Gambier` * * `Pacific/Guadalcanal` * * `Pacific/Guam` * * `Pacific/Honolulu` * * `Pacific/Johnston` * * `Pacific/Kanton` * * `Pacific/Kiritimati` * * `Pacific/Kosrae` * * `Pacific/Kwajalein` * * `Pacific/Majuro` * * `Pacific/Marquesas` * * `Pacific/Midway` * * `Pacific/Nauru` * * `Pacific/Niue` * * `Pacific/Norfolk` * * `Pacific/Noumea` * * `Pacific/Pago_Pago` * * `Pacific/Palau` * * `Pacific/Pitcairn` * * `Pacific/Pohnpei` * * `Pacific/Ponape` * * `Pacific/Port_Moresby` * * `Pacific/Rarotonga` * * `Pacific/Saipan` * * `Pacific/Samoa` * * `Pacific/Tahiti` * * `Pacific/Tarawa` * * `Pacific/Tongatapu` * * `Pacific/Truk` * * `Pacific/Wake` * * `Pacific/Wallis` * * `Pacific/Yap` * * `Poland` * * `Portugal` * * `ROC` * * `ROK` * * `Singapore` * * `Turkey` * * `UCT` * * `US/Alaska` * * `US/Aleutian` * * `US/Arizona` * * `US/Central` * * `US/East-Indiana` * * `US/Eastern` * * `US/Hawaii` * * `US/Indiana-Starke` * * `US/Michigan` * * `US/Mountain` * * `US/Pacific` * * `US/Samoa` * * `UTC` * * `Universal` * * `W-SU` * * `WET` * * `Zulu` * * `localtime` */ timezone?: 'Africa/Abidjan' | 'Africa/Accra' | 'Africa/Addis_Ababa' | 'Africa/Algiers' | 'Africa/Asmara' | 'Africa/Asmera' | 'Africa/Bamako' | 'Africa/Bangui' | 'Africa/Banjul' | 'Africa/Bissau' | 'Africa/Blantyre' | 'Africa/Brazzaville' | 'Africa/Bujumbura' | 'Africa/Cairo' | 'Africa/Casablanca' | 'Africa/Ceuta' | 'Africa/Conakry' | 'Africa/Dakar' | 'Africa/Dar_es_Salaam' | 'Africa/Djibouti' | 'Africa/Douala' | 'Africa/El_Aaiun' | 'Africa/Freetown' | 'Africa/Gaborone' | 'Africa/Harare' | 'Africa/Johannesburg' | 'Africa/Juba' | 'Africa/Kampala' | 'Africa/Khartoum' | 'Africa/Kigali' | 'Africa/Kinshasa' | 'Africa/Lagos' | 'Africa/Libreville' | 'Africa/Lome' | 'Africa/Luanda' | 'Africa/Lubumbashi' | 'Africa/Lusaka' | 'Africa/Malabo' | 'Africa/Maputo' | 'Africa/Maseru' | 'Africa/Mbabane' | 'Africa/Mogadishu' | 'Africa/Monrovia' | 'Africa/Nairobi' | 'Africa/Ndjamena' | 'Africa/Niamey' | 'Africa/Nouakchott' | 'Africa/Ouagadougou' | 'Africa/Porto-Novo' | 'Africa/Sao_Tome' | 'Africa/Timbuktu' | 'Africa/Tripoli' | 'Africa/Tunis' | 'Africa/Windhoek' | 'America/Adak' | 'America/Anchorage' | 'America/Anguilla' | 'America/Antigua' | 'America/Araguaina' | 'America/Argentina/Buenos_Aires' | 'America/Argentina/Catamarca' | 'America/Argentina/ComodRivadavia' | 'America/Argentina/Cordoba' | 'America/Argentina/Jujuy' | 'America/Argentina/La_Rioja' | 'America/Argentina/Mendoza' | 'America/Argentina/Rio_Gallegos' | 'America/Argentina/Salta' | 'America/Argentina/San_Juan' | 'America/Argentina/San_Luis' | 'America/Argentina/Tucuman' | 'America/Argentina/Ushuaia' | 'America/Aruba' | 'America/Asuncion' | 'America/Atikokan' | 'America/Atka' | 'America/Bahia' | 'America/Bahia_Banderas' | 'America/Barbados' | 'America/Belem' | 'America/Belize' | 'America/Blanc-Sablon' | 'America/Boa_Vista' | 'America/Bogota' | 'America/Boise' | 'America/Buenos_Aires' | 'America/Cambridge_Bay' | 'America/Campo_Grande' | 'America/Cancun' | 'America/Caracas' | 'America/Catamarca' | 'America/Cayenne' | 'America/Cayman' | 'America/Chicago' | 'America/Chihuahua' | 'America/Ciudad_Juarez' | 'America/Coral_Harbour' | 'America/Cordoba' | 'America/Costa_Rica' | 'America/Coyhaique' | 'America/Creston' | 'America/Cuiaba' | 'America/Curacao' | 'America/Danmarkshavn' | 'America/Dawson' | 'America/Dawson_Creek' | 'America/Denver' | 'America/Detroit' | 'America/Dominica' | 'America/Edmonton' | 'America/Eirunepe' | 'America/El_Salvador' | 'America/Ensenada' | 'America/Fort_Nelson' | 'America/Fort_Wayne' | 'America/Fortaleza' | 'America/Glace_Bay' | 'America/Godthab' | 'America/Goose_Bay' | 'America/Grand_Turk' | 'America/Grenada' | 'America/Guadeloupe' | 'America/Guatemala' | 'America/Guayaquil' | 'America/Guyana' | 'America/Halifax' | 'America/Havana' | 'America/Hermosillo' | 'America/Indiana/Indianapolis' | 'America/Indiana/Knox' | 'America/Indiana/Marengo' | 'America/Indiana/Petersburg' | 'America/Indiana/Tell_City' | 'America/Indiana/Vevay' | 'America/Indiana/Vincennes' | 'America/Indiana/Winamac' | 'America/Indianapolis' | 'America/Inuvik' | 'America/Iqaluit' | 'America/Jamaica' | 'America/Jujuy' | 'America/Juneau' | 'America/Kentucky/Louisville' | 'America/Kentucky/Monticello' | 'America/Knox_IN' | 'America/Kralendijk' | 'America/La_Paz' | 'America/Lima' | 'America/Los_Angeles' | 'America/Louisville' | 'America/Lower_Princes' | 'America/Maceio' | 'America/Managua' | 'America/Manaus' | 'America/Marigot' | 'America/Martinique' | 'America/Matamoros' | 'America/Mazatlan' | 'America/Mendoza' | 'America/Menominee' | 'America/Merida' | 'America/Metlakatla' | 'America/Mexico_City' | 'America/Miquelon' | 'America/Moncton' | 'America/Monterrey' | 'America/Montevideo' | 'America/Montreal' | 'America/Montserrat' | 'America/Nassau' | 'America/New_York' | 'America/Nipigon' | 'America/Nome' | 'America/Noronha' | 'America/North_Dakota/Beulah' | 'America/North_Dakota/Center' | 'America/North_Dakota/New_Salem' | 'America/Nuuk' | 'America/Ojinaga' | 'America/Panama' | 'America/Pangnirtung' | 'America/Paramaribo' | 'America/Phoenix' | 'America/Port-au-Prince' | 'America/Port_of_Spain' | 'America/Porto_Acre' | 'America/Porto_Velho' | 'America/Puerto_Rico' | 'America/Punta_Arenas' | 'America/Rainy_River' | 'America/Rankin_Inlet' | 'America/Recife' | 'America/Regina' | 'America/Resolute' | 'America/Rio_Branco' | 'America/Rosario' | 'America/Santa_Isabel' | 'America/Santarem' | 'America/Santiago' | 'America/Santo_Domingo' | 'America/Sao_Paulo' | 'America/Scoresbysund' | 'America/Shiprock' | 'America/Sitka' | 'America/St_Barthelemy' | 'America/St_Johns' | 'America/St_Kitts' | 'America/St_Lucia' | 'America/St_Thomas' | 'America/St_Vincent' | 'America/Swift_Current' | 'America/Tegucigalpa' | 'America/Thule' | 'America/Thunder_Bay' | 'America/Tijuana' | 'America/Toronto' | 'America/Tortola' | 'America/Vancouver' | 'America/Virgin' | 'America/Whitehorse' | 'America/Winnipeg' | 'America/Yakutat' | 'America/Yellowknife' | 'Antarctica/Casey' | 'Antarctica/Davis' | 'Antarctica/DumontDUrville' | 'Antarctica/Macquarie' | 'Antarctica/Mawson' | 'Antarctica/McMurdo' | 'Antarctica/Palmer' | 'Antarctica/Rothera' | 'Antarctica/South_Pole' | 'Antarctica/Syowa' | 'Antarctica/Troll' | 'Antarctica/Vostok' | 'Arctic/Longyearbyen' | 'Asia/Aden' | 'Asia/Almaty' | 'Asia/Amman' | 'Asia/Anadyr' | 'Asia/Aqtau' | 'Asia/Aqtobe' | 'Asia/Ashgabat' | 'Asia/Ashkhabad' | 'Asia/Atyrau' | 'Asia/Baghdad' | 'Asia/Bahrain' | 'Asia/Baku' | 'Asia/Bangkok' | 'Asia/Barnaul' | 'Asia/Beirut' | 'Asia/Bishkek' | 'Asia/Brunei' | 'Asia/Calcutta' | 'Asia/Chita' | 'Asia/Choibalsan' | 'Asia/Chongqing' | 'Asia/Chungking' | 'Asia/Colombo' | 'Asia/Dacca' | 'Asia/Damascus' | 'Asia/Dhaka' | 'Asia/Dili' | 'Asia/Dubai' | 'Asia/Dushanbe' | 'Asia/Famagusta' | 'Asia/Gaza' | 'Asia/Harbin' | 'Asia/Hebron' | 'Asia/Ho_Chi_Minh' | 'Asia/Hong_Kong' | 'Asia/Hovd' | 'Asia/Irkutsk' | 'Asia/Istanbul' | 'Asia/Jakarta' | 'Asia/Jayapura' | 'Asia/Jerusalem' | 'Asia/Kabul' | 'Asia/Kamchatka' | 'Asia/Karachi' | 'Asia/Kashgar' | 'Asia/Kathmandu' | 'Asia/Katmandu' | 'Asia/Khandyga' | 'Asia/Kolkata' | 'Asia/Krasnoyarsk' | 'Asia/Kuala_Lumpur' | 'Asia/Kuching' | 'Asia/Kuwait' | 'Asia/Macao' | 'Asia/Macau' | 'Asia/Magadan' | 'Asia/Makassar' | 'Asia/Manila' | 'Asia/Muscat' | 'Asia/Nicosia' | 'Asia/Novokuznetsk' | 'Asia/Novosibirsk' | 'Asia/Omsk' | 'Asia/Oral' | 'Asia/Phnom_Penh' | 'Asia/Pontianak' | 'Asia/Pyongyang' | 'Asia/Qatar' | 'Asia/Qostanay' | 'Asia/Qyzylorda' | 'Asia/Rangoon' | 'Asia/Riyadh' | 'Asia/Saigon' | 'Asia/Sakhalin' | 'Asia/Samarkand' | 'Asia/Seoul' | 'Asia/Shanghai' | 'Asia/Singapore' | 'Asia/Srednekolymsk' | 'Asia/Taipei' | 'Asia/Tashkent' | 'Asia/Tbilisi' | 'Asia/Tehran' | 'Asia/Tel_Aviv' | 'Asia/Thimbu' | 'Asia/Thimphu' | 'Asia/Tokyo' | 'Asia/Tomsk' | 'Asia/Ujung_Pandang' | 'Asia/Ulaanbaatar' | 'Asia/Ulan_Bator' | 'Asia/Urumqi' | 'Asia/Ust-Nera' | 'Asia/Vientiane' | 'Asia/Vladivostok' | 'Asia/Yakutsk' | 'Asia/Yangon' | 'Asia/Yekaterinburg' | 'Asia/Yerevan' | 'Atlantic/Azores' | 'Atlantic/Bermuda' | 'Atlantic/Canary' | 'Atlantic/Cape_Verde' | 'Atlantic/Faeroe' | 'Atlantic/Faroe' | 'Atlantic/Jan_Mayen' | 'Atlantic/Madeira' | 'Atlantic/Reykjavik' | 'Atlantic/South_Georgia' | 'Atlantic/St_Helena' | 'Atlantic/Stanley' | 'Australia/ACT' | 'Australia/Adelaide' | 'Australia/Brisbane' | 'Australia/Broken_Hill' | 'Australia/Canberra' | 'Australia/Currie' | 'Australia/Darwin' | 'Australia/Eucla' | 'Australia/Hobart' | 'Australia/LHI' | 'Australia/Lindeman' | 'Australia/Lord_Howe' | 'Australia/Melbourne' | 'Australia/NSW' | 'Australia/North' | 'Australia/Perth' | 'Australia/Queensland' | 'Australia/South' | 'Australia/Sydney' | 'Australia/Tasmania' | 'Australia/Victoria' | 'Australia/West' | 'Australia/Yancowinna' | 'Brazil/Acre' | 'Brazil/DeNoronha' | 'Brazil/East' | 'Brazil/West' | 'CET' | 'CST6CDT' | 'Canada/Atlantic' | 'Canada/Central' | 'Canada/Eastern' | 'Canada/Mountain' | 'Canada/Newfoundland' | 'Canada/Pacific' | 'Canada/Saskatchewan' | 'Canada/Yukon' | 'Chile/Continental' | 'Chile/EasterIsland' | 'Cuba' | 'EET' | 'EST' | 'EST5EDT' | 'Egypt' | 'Eire' | 'Etc/GMT' | 'Etc/GMT+0' | 'Etc/GMT+1' | 'Etc/GMT+10' | 'Etc/GMT+11' | 'Etc/GMT+12' | 'Etc/GMT+2' | 'Etc/GMT+3' | 'Etc/GMT+4' | 'Etc/GMT+5' | 'Etc/GMT+6' | 'Etc/GMT+7' | 'Etc/GMT+8' | 'Etc/GMT+9' | 'Etc/GMT-0' | 'Etc/GMT-1' | 'Etc/GMT-10' | 'Etc/GMT-11' | 'Etc/GMT-12' | 'Etc/GMT-13' | 'Etc/GMT-14' | 'Etc/GMT-2' | 'Etc/GMT-3' | 'Etc/GMT-4' | 'Etc/GMT-5' | 'Etc/GMT-6' | 'Etc/GMT-7' | 'Etc/GMT-8' | 'Etc/GMT-9' | 'Etc/GMT0' | 'Etc/Greenwich' | 'Etc/UCT' | 'Etc/UTC' | 'Etc/Universal' | 'Etc/Zulu' | 'Europe/Amsterdam' | 'Europe/Andorra' | 'Europe/Astrakhan' | 'Europe/Athens' | 'Europe/Belfast' | 'Europe/Belgrade' | 'Europe/Berlin' | 'Europe/Bratislava' | 'Europe/Brussels' | 'Europe/Bucharest' | 'Europe/Budapest' | 'Europe/Busingen' | 'Europe/Chisinau' | 'Europe/Copenhagen' | 'Europe/Dublin' | 'Europe/Gibraltar' | 'Europe/Guernsey' | 'Europe/Helsinki' | 'Europe/Isle_of_Man' | 'Europe/Istanbul' | 'Europe/Jersey' | 'Europe/Kaliningrad' | 'Europe/Kiev' | 'Europe/Kirov' | 'Europe/Kyiv' | 'Europe/Lisbon' | 'Europe/Ljubljana' | 'Europe/London' | 'Europe/Luxembourg' | 'Europe/Madrid' | 'Europe/Malta' | 'Europe/Mariehamn' | 'Europe/Minsk' | 'Europe/Monaco' | 'Europe/Moscow' | 'Europe/Nicosia' | 'Europe/Oslo' | 'Europe/Paris' | 'Europe/Podgorica' | 'Europe/Prague' | 'Europe/Riga' | 'Europe/Rome' | 'Europe/Samara' | 'Europe/San_Marino' | 'Europe/Sarajevo' | 'Europe/Saratov' | 'Europe/Simferopol' | 'Europe/Skopje' | 'Europe/Sofia' | 'Europe/Stockholm' | 'Europe/Tallinn' | 'Europe/Tirane' | 'Europe/Tiraspol' | 'Europe/Ulyanovsk' | 'Europe/Uzhgorod' | 'Europe/Vaduz' | 'Europe/Vatican' | 'Europe/Vienna' | 'Europe/Vilnius' | 'Europe/Volgograd' | 'Europe/Warsaw' | 'Europe/Zagreb' | 'Europe/Zaporozhye' | 'Europe/Zurich' | 'GB' | 'GB-Eire' | 'GMT' | 'GMT+0' | 'GMT-0' | 'GMT0' | 'Greenwich' | 'HST' | 'Hongkong' | 'Iceland' | 'Indian/Antananarivo' | 'Indian/Chagos' | 'Indian/Christmas' | 'Indian/Cocos' | 'Indian/Comoro' | 'Indian/Kerguelen' | 'Indian/Mahe' | 'Indian/Maldives' | 'Indian/Mauritius' | 'Indian/Mayotte' | 'Indian/Reunion' | 'Iran' | 'Israel' | 'Jamaica' | 'Japan' | 'Kwajalein' | 'Libya' | 'MET' | 'MST' | 'MST7MDT' | 'Mexico/BajaNorte' | 'Mexico/BajaSur' | 'Mexico/General' | 'NZ' | 'NZ-CHAT' | 'Navajo' | 'PRC' | 'PST8PDT' | 'Pacific/Apia' | 'Pacific/Auckland' | 'Pacific/Bougainville' | 'Pacific/Chatham' | 'Pacific/Chuuk' | 'Pacific/Easter' | 'Pacific/Efate' | 'Pacific/Enderbury' | 'Pacific/Fakaofo' | 'Pacific/Fiji' | 'Pacific/Funafuti' | 'Pacific/Galapagos' | 'Pacific/Gambier' | 'Pacific/Guadalcanal' | 'Pacific/Guam' | 'Pacific/Honolulu' | 'Pacific/Johnston' | 'Pacific/Kanton' | 'Pacific/Kiritimati' | 'Pacific/Kosrae' | 'Pacific/Kwajalein' | 'Pacific/Majuro' | 'Pacific/Marquesas' | 'Pacific/Midway' | 'Pacific/Nauru' | 'Pacific/Niue' | 'Pacific/Norfolk' | 'Pacific/Noumea' | 'Pacific/Pago_Pago' | 'Pacific/Palau' | 'Pacific/Pitcairn' | 'Pacific/Pohnpei' | 'Pacific/Ponape' | 'Pacific/Port_Moresby' | 'Pacific/Rarotonga' | 'Pacific/Saipan' | 'Pacific/Samoa' | 'Pacific/Tahiti' | 'Pacific/Tarawa' | 'Pacific/Tongatapu' | 'Pacific/Truk' | 'Pacific/Wake' | 'Pacific/Wallis' | 'Pacific/Yap' | 'Poland' | 'Portugal' | 'ROC' | 'ROK' | 'Singapore' | 'Turkey' | 'UCT' | 'US/Alaska' | 'US/Aleutian' | 'US/Arizona' | 'US/Central' | 'US/East-Indiana' | 'US/Eastern' | 'US/Hawaii' | 'US/Indiana-Starke' | 'US/Michigan' | 'US/Mountain' | 'US/Pacific' | 'US/Samoa' | 'UTC' | 'Universal' | 'W-SU' | 'WET' | 'Zulu' | 'localtime' | ''; /** * How many consecutive missed or failed check-ins in a row before creating a new issue. */ failure_issue_threshold?: number | null; /** * How many successful check-ins in a row before resolving an issue. */ recovery_threshold?: number | null; }; /** * Uniquely identifies your monitor within your organization. Changing this slug will require updates to any instrumented check-in calls. */ slug?: string; /** * Status of the monitor. Disabled monitors will not accept events and will not count towards the monitor quota. * * * `active` * * `disabled` */ status?: 'active' | 'disabled'; /** * The ID of the team or user that owns the monitor. (eg. user:51 or team:6) */ owner?: string | null; /** * Disable creation of monitor incidents */ is_muted?: boolean; }; path: { /** * The ID or slug of the organization the resource belongs to. */ organization_id_or_slug: string; /** * The ID or slug of the project the resource belongs to. Project slugs are unique within each organization. */ project_id_or_slug: string; /** * The ID or slug of the monitor. */ monitor_id_or_slug: string; }; query?: never; url: '/projects/{organization_id_or_slug}/{project_id_or_slug}/monitors/{monitor_id_or_slug}/'; }; export type UpdateProjectMonitorErrors = { /** * Bad Request */ 400: unknown; /** * Unauthorized */ 401: unknown; /** * Forbidden */ 403: unknown; /** * Not Found */ 404: unknown; }; export type UpdateProjectMonitorResponses = { 200: { /** * ID of the monitor */ id: string; /** * Name of the monitor */ name: string; /** * Slug that identifies the monitor in the organization */ slug: string; /** * Status of the monitor. Disabled monitors don't accept check-ins */ status: 'active' | 'disabled' | 'pending_deletion' | 'deletion_in_progress'; /** * Whether incidents are muted in all of the monitor's environments */ isMuted: boolean; /** * Whether the most recent check-in was an upsert check-in */ isUpserting: boolean; /** * Configuration of the monitor */ config: { /** * Type of schedule: crontab or interval */ schedule_type: 'crontab' | 'interval'; /** * Schedule of the monitor: a crontab string, or a [value, unit] pair for intervals, such as [1, "day"] */ schedule: string | Array; /** * How long in minutes after the expected check-in time to wait before the check-in counts as missed */ checkin_margin: number | null; /** * How long in minutes a check-in can stay in progress before it counts as failed */ max_runtime: number | null; /** * Timezone the schedule is evaluated in, as a tz database name */ timezone: string | null; /** * Number of consecutive missed or failed check-ins before an issue is created */ failure_issue_threshold: number | null; /** * Number of consecutive successful check-ins before the issue is resolved */ recovery_threshold: number | null; /** * ID of the alert rule linked to the monitor */ alert_rule_id: number | null; }; /** * When the monitor was created (ISO 8601) */ dateCreated: string; /** * Project the monitor belongs to */ project: { /** * Counts of non-transaction events per interval over the requested stats period, as [timestamp, count] pairs. Only included when a stats period is requested */ stats?: Array> | { [key: string]: number; }; /** * Counts of transactions per interval over the requested stats period, as [timestamp, count] pairs. Only included when transaction stats are requested */ transactionStats?: Array>; /** * Crash-free session rates for the current and previous stats period. Only included when session stats are requested */ sessionStats?: { /** * Crash-free rate in the current period, as a percentage. Null when there's no session data */ currentCrashFreeRate: number | null; /** * Crash-free rate in the previous period, as a percentage. Null when there's no session data */ previousCrashFreeRate: number | null; /** * Whether the project has release health (session) data */ hasHealthData: boolean; }; /** * ID of the project */ id: string; /** * Slug of the project */ slug: string; /** * Name of the project */ name: string; /** * Platform of the project */ platform: string | null; /** * When the project was created (ISO 8601) */ dateCreated: string; /** * Whether the requesting user bookmarked the project */ isBookmarked: boolean; /** * Whether the requesting user is a member of a team with access to the project */ isMember: boolean; /** * Features enabled for the project */ features: Array; /** * When the project received its first event (ISO 8601) */ firstEvent: string | null; /** * Whether the project has sent transactions */ firstTransactionEvent: boolean; /** * Scopes the requesting user has on the project through team membership and organization role */ access: Array; /** * Whether the requesting user has access to the project */ hasAccess: boolean; /** * Whether the project has sent user feedback */ hasFeedbacks: boolean; /** * Whether the project has sent feature flags */ hasFlags: boolean; /** * Whether the project has sent an event with a minified stack trace */ hasMinifiedStackTrace: boolean; /** * Whether the project has cron monitors */ hasMonitors: boolean; /** * Whether the project has sent user feedback from the user feedback widget */ hasNewFeedbacks: boolean; /** * Whether the project has sent profiles */ hasProfiles: boolean; /** * Whether the project has sent replays */ hasReplays: boolean; /** * Whether the project has sent sessions */ hasSessions: boolean; /** * Whether the project has sent HTTP request spans used by Insights */ hasInsightsHttp: boolean; /** * Whether the project has sent database spans used by Insights */ hasInsightsDb: boolean; /** * Whether the project has sent asset spans used by Insights */ hasInsightsAssets: boolean; /** * Whether the project has sent app start spans used by Insights */ hasInsightsAppStart: boolean; /** * Whether the project has sent screen load spans used by Insights */ hasInsightsScreenLoad: boolean; /** * Whether the project has sent web vitals spans used by Insights */ hasInsightsVitals: boolean; /** * Whether the project has sent cache spans used by Insights */ hasInsightsCaches: boolean; /** * Whether the project has sent queue spans used by Insights */ hasInsightsQueues: boolean; /** * Whether the project has sent AI agent spans used by Insights */ hasInsightsAgentMonitoring: boolean; /** * Whether the project has sent MCP spans used by Insights */ hasInsightsMCP: boolean; /** * Whether the project has sent logs. Always true outside sentry.io */ hasLogs: boolean; /** * Whether the project has sent trace metrics. Always true outside sentry.io */ hasTraceMetrics: boolean; /** * Whether this is the Sentry install's own internal project */ isInternal: boolean; /** * Whether the project is public */ isPublic: boolean; /** * Avatar of the project. Always a letter avatar */ avatar: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Hex color code for the project, derived from its slug unless set explicitly */ color: string; /** * Status of the project: active, deleted, or unknown */ status: string; }; /** * Environments the monitor has received check-ins for */ environments: Array<{ /** * Name of the environment */ name: string; /** * Status of the monitor in the environment */ status: 'active' | 'disabled' | 'pending_deletion' | 'deletion_in_progress' | 'ok' | 'error'; /** * Whether incidents are muted for the monitor in the environment */ isMuted: boolean; /** * When the monitor was created (ISO 8601) */ dateCreated: string; /** * When the most recent check-in was received, not counting missed check-ins (ISO 8601) */ lastCheckIn: string | null; /** * When the next check-in is expected (ISO 8601) */ nextCheckIn: string | null; /** * Latest time the next check-in can arrive before it counts as missed (ISO 8601) */ nextCheckInLatest: string | null; /** * Unresolved incident for the monitor in the environment. Null when there's none */ activeIncident: { /** * When the incident started (ISO 8601) */ startingTimestamp: string | null; /** * When the incident was resolved (ISO 8601) */ resolvingTimestamp: string | null; /** * Details of the broken monitor notice for the incident. Null when there's none */ brokenNotice: { /** * When users were notified that the monitor environment looks broken (ISO 8601) */ userNotifiedTimestamp: string | null; /** * When the broken monitor environment was muted (ISO 8601) */ environmentMutedTimestamp: string | null; } | null; } | null; }>; /** * Team or user that owns the monitor. Null when there's no owner */ owner: { /** * Whether the actor is a user or a team */ type: 'user' | 'team'; /** * ID of the user or team */ id: string; /** * Display name of the user, or slug of the team */ name: string; /** * Email address of the user. Only set for users */ email?: string; } | null; }; }; export type UpdateProjectMonitorResponse = UpdateProjectMonitorResponses[keyof UpdateProjectMonitorResponses]; export type ListProjectMonitorCheckinsData = { body?: never; path: { /** * The ID or slug of the organization the resource belongs to. */ organization_id_or_slug: string; /** * The ID or slug of the project the resource belongs to. Project slugs are unique within each organization. */ project_id_or_slug: string; /** * The ID or slug of the monitor. */ monitor_id_or_slug: string; }; query?: never; url: '/projects/{organization_id_or_slug}/{project_id_or_slug}/monitors/{monitor_id_or_slug}/checkins/'; }; export type ListProjectMonitorCheckinsErrors = { /** * Unauthorized */ 401: unknown; /** * Forbidden */ 403: unknown; /** * Not Found */ 404: unknown; }; export type ListProjectMonitorCheckinsResponses = { 200: Array<{ /** * Issues linked to the check-in's trace. Only included when requested with expand=groups */ groups?: Array; /** * ID of the check-in */ id: string; /** * Name of the environment the check-in belongs to */ environment: string; /** * Status of the check-in */ status: 'unknown' | 'ok' | 'error' | 'in_progress' | 'missed' | 'timeout'; /** * Duration of the job run in milliseconds */ duration: number | null; /** * When the check-in was stored (ISO 8601) */ dateCreated: string | null; /** * When the check-in was received (ISO 8601) */ dateAdded: string; /** * When the check-in was last updated (ISO 8601) */ dateUpdated: string; /** * When the first in_progress check-in was received (ISO 8601). Null when none was sent */ dateInProgress: string | null; /** * Clock time the check-in was processed at, relative to other check-in tasks (ISO 8601) */ dateClock: string | null; /** * When the check-in was expected (ISO 8601) */ expectedTime: string | null; /** * Monitor configuration when the check-in was received */ monitorConfig: { /** * Type of schedule: crontab or interval */ schedule_type: 'crontab' | 'interval'; /** * Schedule of the monitor: a crontab string, or a [value, unit] pair for intervals, such as [1, "day"] */ schedule: string | Array; /** * How long in minutes after the expected check-in time to wait before the check-in counts as missed */ checkin_margin: number | null; /** * How long in minutes a check-in can stay in progress before it counts as failed */ max_runtime: number | null; /** * Timezone the schedule is evaluated in, as a tz database name */ timezone: string | null; /** * Number of consecutive missed or failed check-ins before an issue is created */ failure_issue_threshold: number | null; /** * Number of consecutive successful check-ins before the issue is resolved */ recovery_threshold: number | null; /** * ID of the alert rule linked to the monitor */ alert_rule_id: number | null; }; }>; }; export type ListProjectMonitorCheckinsResponse = ListProjectMonitorCheckinsResponses[keyof ListProjectMonitorCheckinsResponses]; export type GetProjectOwnershipData = { body?: never; path: { /** * The ID or slug of the organization the resource belongs to. */ organization_id_or_slug: string; /** * The ID or slug of the project the resource belongs to. Project slugs are unique within each organization. */ project_id_or_slug: string; }; query?: never; url: '/projects/{organization_id_or_slug}/{project_id_or_slug}/ownership/'; }; export type GetProjectOwnershipResponses = { 200: { /** * Parsed ownership rules. Null when there are no rules */ schema?: { /** * Version of the ownership rules schema */ $version: number; /** * Ownership rules, in order */ rules: Array<{ /** * What the rule matches */ matcher: { /** * What the rule matches on, path, module, url, codeowners or tags. */ type: string; /** * Pattern the value is matched against */ pattern: string; }; /** * Owners the rule assigns */ owners: Array<{ /** * Whether the owner is a user or a team */ type: string; /** * Email of the user, or slug of the team */ name: string; /** * ID of the user or team. Only set when the owner was resolved */ id?: string; }>; }>; } | null; /** * Ownership rules as text */ raw: string | null; /** * Whether issues that match no rule are assigned to all project members */ fallthrough: boolean; /** * When the ownership rules were created (ISO 8601) */ dateCreated: string | null; /** * When the ownership rules were last updated (ISO 8601) */ lastUpdated: string | null; /** * Whether the ownership rules are active */ isActive: boolean; /** * Auto-assignment setting: Auto Assign to Suspect Commits, Auto Assign to Issue Owner or Turn off Auto-Assignment */ autoAssignment: string; /** * Whether CODEOWNERS files sync automatically when they change */ codeownersAutoSync: boolean | null; }; }; export type GetProjectOwnershipResponse = GetProjectOwnershipResponses[keyof GetProjectOwnershipResponses]; export type UpdateProjectOwnershipData = { body?: { /** * Raw input for ownership configuration. See the [Ownership Rules Documentation](/product/issues/ownership-rules/) to learn more. */ raw?: string; /** * A boolean determining who to assign ownership to when an ownership rule has no match. If set to `True`, all project members are made owners. Otherwise, no owners are set. */ fallthrough?: boolean; /** * Auto-assignment settings. The available options are: * - Auto Assign to Issue Owner * - Auto Assign to Suspect Commits * - Turn off Auto-Assignment */ autoAssignment?: string; /** * Set to `True` to sync issue owners with CODEOWNERS updates in a release. */ codeownersAutoSync?: boolean; }; path: { /** * The ID or slug of the organization the resource belongs to. */ organization_id_or_slug: string; /** * The ID or slug of the project the resource belongs to. Project slugs are unique within each organization. */ project_id_or_slug: string; }; query?: never; url: '/projects/{organization_id_or_slug}/{project_id_or_slug}/ownership/'; }; export type UpdateProjectOwnershipErrors = { /** * Bad Request */ 400: unknown; }; export type UpdateProjectOwnershipResponses = { 200: { /** * Parsed ownership rules. Null when there are no rules */ schema?: { /** * Version of the ownership rules schema */ $version: number; /** * Ownership rules, in order */ rules: Array<{ /** * What the rule matches */ matcher: { /** * What the rule matches on, path, module, url, codeowners or tags. */ type: string; /** * Pattern the value is matched against */ pattern: string; }; /** * Owners the rule assigns */ owners: Array<{ /** * Whether the owner is a user or a team */ type: string; /** * Email of the user, or slug of the team */ name: string; /** * ID of the user or team. Only set when the owner was resolved */ id?: string; }>; }>; } | null; /** * Ownership rules as text */ raw: string | null; /** * Whether issues that match no rule are assigned to all project members */ fallthrough: boolean; /** * When the ownership rules were created (ISO 8601) */ dateCreated: string | null; /** * When the ownership rules were last updated (ISO 8601) */ lastUpdated: string | null; /** * Whether the ownership rules are active */ isActive: boolean; /** * Auto-assignment setting: Auto Assign to Suspect Commits, Auto Assign to Issue Owner or Turn off Auto-Assignment */ autoAssignment: string; /** * Whether CODEOWNERS files sync automatically when they change */ codeownersAutoSync: boolean | null; }; }; export type UpdateProjectOwnershipResponse = UpdateProjectOwnershipResponses[keyof UpdateProjectOwnershipResponses]; export type GetProjectPreprodSizeAnalysisStatusCheckRulesData = { body?: never; path: { /** * The ID or slug of the organization the resource belongs to. */ organization_id_or_slug: string; /** * The ID or slug of the project the resource belongs to. Project slugs are unique within each organization. */ project_id_or_slug: string; }; query?: never; url: '/projects/{organization_id_or_slug}/{project_id_or_slug}/preprod/size-analysis/status-check-rules/'; }; export type GetProjectPreprodSizeAnalysisStatusCheckRulesErrors = { /** * Forbidden */ 403: unknown; /** * Not Found */ 404: unknown; }; export type GetProjectPreprodSizeAnalysisStatusCheckRulesResponses = { 200: { /** * Whether size status checks are enabled for the project */ enabled: boolean; /** * Rules that make the size status check fail */ rules: Array<{ /** * ID of the rule */ id: string; /** * Size metric the rule checks: install_size or download_size */ metric: 'install_size' | 'download_size'; /** * How the rule measures size: absolute (size in bytes), absolute_diff (increase in bytes) or relative_diff (increase in percent) */ measurement: 'absolute' | 'absolute_diff' | 'relative_diff'; /** * Threshold that makes the status check fail, in bytes or percent depending on measurement */ value: string; /** * Search query that selects the builds the rule applies to */ filterQuery: string; /** * filterQuery parsed into filters. Null when the query can't be parsed */ filters: Array<{ /** * Build field the filter checks: app_id, build_configuration_name, git_head_ref or platform_name */ key: 'app_id' | 'build_configuration_name' | 'git_head_ref' | 'platform_name'; /** * Conditions on the field */ conditions: Array<{ /** * How the condition compares the build's value, such as equals or startsWith */ operator: 'contains' | 'endsWith' | 'equals' | 'in' | 'matches' | 'notContains' | 'notEndsWith' | 'notEquals' | 'notIn' | 'notMatches' | 'notStartsWith' | 'startsWith'; /** * Values the condition compares against */ values: Array; }>; }> | null; /** * Components the rule applies to, such as main_artifact or all_artifacts */ artifactType: 'main_artifact' | 'watch_artifact' | 'android_dynamic_feature_artifact' | 'app_clip_artifact' | 'all_artifacts'; }>; }; }; export type GetProjectPreprodSizeAnalysisStatusCheckRulesResponse = GetProjectPreprodSizeAnalysisStatusCheckRulesResponses[keyof GetProjectPreprodSizeAnalysisStatusCheckRulesResponses]; export type CreateProjectPreprodSizeAnalysisSkippedStatusCheckData = { body: { /** * The full 40-character lowercase commit SHA. */ sha: string; /** * The repository name in `owner/name` format. */ repository: string; /** * The repository integration provider. * * * `github` * * `github_enterprise` */ provider: 'github' | 'github_enterprise'; }; path: { /** * The ID or slug of the organization the resource belongs to. */ organization_id_or_slug: string; /** * The ID or slug of the project the resource belongs to. Project slugs are unique within each organization. */ project_id_or_slug: string; }; query?: never; url: '/projects/{organization_id_or_slug}/{project_id_or_slug}/preprod/size-analysis/status-checks/skip/'; }; export type CreateProjectPreprodSizeAnalysisSkippedStatusCheckErrors = { /** * Bad Request */ 400: unknown; /** * Forbidden */ 403: unknown; /** * Not Found */ 404: unknown; /** * Too Many Requests */ 429: unknown; /** * Bad Gateway */ 502: unknown; }; export type CreateProjectPreprodSizeAnalysisSkippedStatusCheckResponses = { /** * Success */ 200: unknown; }; export type GetProjectPreprodSnapshotStatusCheckRulesData = { body?: never; path: { /** * The ID or slug of the organization the resource belongs to. */ organization_id_or_slug: string; /** * The ID or slug of the project the resource belongs to. Project slugs are unique within each organization. */ project_id_or_slug: string; }; query?: never; url: '/projects/{organization_id_or_slug}/{project_id_or_slug}/preprod/snapshots/status-check-rules/'; }; export type GetProjectPreprodSnapshotStatusCheckRulesErrors = { /** * Forbidden */ 403: unknown; /** * Not Found */ 404: unknown; }; export type GetProjectPreprodSnapshotStatusCheckRulesResponses = { 200: { /** * Whether snapshot status checks are enabled for the project */ enabled: boolean; /** * Which snapshot changes make the status check fail */ rules: { /** * Whether the snapshot status check fails when snapshots are added */ failOnAdded: boolean; /** * Whether the snapshot status check fails when snapshots are removed */ failOnRemoved: boolean; /** * Whether the snapshot status check fails when snapshots change */ failOnChanged: boolean; /** * Whether the snapshot status check fails when snapshots are renamed */ failOnRenamed: boolean; }; }; }; export type GetProjectPreprodSnapshotStatusCheckRulesResponse = GetProjectPreprodSnapshotStatusCheckRulesResponses[keyof GetProjectPreprodSnapshotStatusCheckRulesResponses]; export type CreateProjectPreprodSnapshotSkippedStatusCheckData = { body: { /** * The full 40-character lowercase commit SHA. */ sha: string; /** * The repository name in `owner/name` format. */ repository: string; /** * The repository integration provider. * * * `github` * * `github_enterprise` */ provider: 'github' | 'github_enterprise'; }; path: { /** * The ID or slug of the organization the resource belongs to. */ organization_id_or_slug: string; /** * The ID or slug of the project the resource belongs to. Project slugs are unique within each organization. */ project_id_or_slug: string; }; query?: never; url: '/projects/{organization_id_or_slug}/{project_id_or_slug}/preprod/snapshots/status-checks/skip/'; }; export type CreateProjectPreprodSnapshotSkippedStatusCheckErrors = { /** * Bad Request */ 400: unknown; /** * Forbidden */ 403: unknown; /** * Not Found */ 404: unknown; /** * Too Many Requests */ 429: unknown; /** * Bad Gateway */ 502: unknown; }; export type CreateProjectPreprodSnapshotSkippedStatusCheckResponses = { /** * Success */ 200: unknown; }; export type GetProjectInstallableBuildLatestData = { body?: never; path: { /** * The ID or slug of the organization the resource belongs to. */ organization_id_or_slug: string; /** * The ID or slug of the project the resource belongs to. Project slugs are unique within each organization. */ project_id_or_slug: string; }; query: { /** * App identifier (exact match). */ appId: string; /** * Platform: "apple" or "android". * * * `apple` - Apple * * `android` - Android */ platform: 'apple' | 'android'; /** * Current build version. When provided, enables check-for-updates mode. */ buildVersion?: string; /** * Current build number. Accepts a plain integer (e.g. 42) or a version string of two or more period-separated integers (e.g. 1.2.3), each up to 6 digits. Groups beyond the third are dropped. Either this or mainBinaryIdentifier must be provided when buildVersion is set. */ buildNumber?: number | string; /** * UUID of the main binary (e.g. Mach-O UUID for Apple builds). Either this or buildNumber must be provided when buildVersion is set. */ mainBinaryIdentifier?: string; /** * Filter by build configuration name (exact match). */ buildConfiguration?: string; /** * Filter by code signing type. */ codesigningType?: string; /** * Filter by install group name (repeatable for multiple groups). */ installGroups?: Array; }; url: '/projects/{organization_id_or_slug}/{project_id_or_slug}/preprodartifacts/build-distribution/latest/'; }; export type GetProjectInstallableBuildLatestErrors = { /** * Bad Request */ 400: unknown; /** * Forbidden */ 403: unknown; }; export type GetProjectInstallableBuildLatestResponses = { 200: { /** * Latest installable build that matches the filters. Null when there's none */ latestArtifact: { /** * ID of the build */ buildId: string; /** * State of the build */ state: 'UPLOADING' | 'UPLOADED' | 'PROCESSED' | 'FAILED'; /** * App details of the build */ appInfo: { /** * App identifier of the build */ appId: string | null; /** * App name */ name: string | null; /** * Version of the build */ version: string | null; /** * Build number */ buildNumber: number | null; /** * Type of the build file */ artifactType: 'XCARCHIVE' | 'AAB' | 'APK' | null; /** * When the build was uploaded (ISO 8601) */ dateAdded: string | null; /** * When the build was built (ISO 8601) */ dateBuilt: string | null; }; /** * Version control details of the build. Null when the build has none */ gitInfo: { /** * Commit SHA of the build */ headSha: string | null; /** * Commit SHA of the base the build is compared against */ baseSha: string | null; /** * Version control provider, such as github */ provider: string | null; /** * Repository name of the head commit */ headRepoName: string | null; /** * Repository name of the base commit */ baseRepoName: string | null; /** * Branch or ref of the head commit */ headRef: string | null; /** * Branch or ref of the base commit */ baseRef: string | null; /** * Pull request number */ prNumber: number | null; } | null; /** * Platform of the build, in uppercase */ platform: string | null; /** * ID of the project the build belongs to */ projectId: string; /** * Slug of the project the build belongs to */ projectSlug: string; /** * Name of the build configuration, such as Release */ buildConfiguration: string | null; /** * Whether the build can be installed */ isInstallable: boolean; /** * URL to install the build. Null when the build isn't installable */ installUrl: string | null; /** * When installUrl expires (ISO 8601) */ installUrlExpiresAt: string | null; /** * Number of times the build was downloaded */ downloadCount: number; /** * Release notes uploaded with the build */ releaseNotes: string | null; /** * Install groups the build belongs to */ installGroups: Array | null; /** * Whether the build's code signature is valid. Only set for Apple builds */ isCodeSignatureValid: boolean | null; /** * Name of the provisioning profile. Only set for Apple builds */ profileName: string | null; /** * Code signing type, such as development or app-store. Only set for Apple builds */ codesigningType: string | null; } | null; /** * Build that matches the given buildVersion. Null when buildVersion isn't given or no build matches */ currentArtifact: { /** * ID of the build */ buildId: string; /** * State of the build */ state: 'UPLOADING' | 'UPLOADED' | 'PROCESSED' | 'FAILED'; /** * App details of the build */ appInfo: { /** * App identifier of the build */ appId: string | null; /** * App name */ name: string | null; /** * Version of the build */ version: string | null; /** * Build number */ buildNumber: number | null; /** * Type of the build file */ artifactType: 'XCARCHIVE' | 'AAB' | 'APK' | null; /** * When the build was uploaded (ISO 8601) */ dateAdded: string | null; /** * When the build was built (ISO 8601) */ dateBuilt: string | null; }; /** * Version control details of the build. Null when the build has none */ gitInfo: { /** * Commit SHA of the build */ headSha: string | null; /** * Commit SHA of the base the build is compared against */ baseSha: string | null; /** * Version control provider, such as github */ provider: string | null; /** * Repository name of the head commit */ headRepoName: string | null; /** * Repository name of the base commit */ baseRepoName: string | null; /** * Branch or ref of the head commit */ headRef: string | null; /** * Branch or ref of the base commit */ baseRef: string | null; /** * Pull request number */ prNumber: number | null; } | null; /** * Platform of the build, in uppercase */ platform: string | null; /** * ID of the project the build belongs to */ projectId: string; /** * Slug of the project the build belongs to */ projectSlug: string; /** * Name of the build configuration, such as Release */ buildConfiguration: string | null; /** * Whether the build can be installed */ isInstallable: boolean; /** * URL to install the build. Null when the build isn't installable */ installUrl: string | null; /** * When installUrl expires (ISO 8601) */ installUrlExpiresAt: string | null; /** * Number of times the build was downloaded */ downloadCount: number; /** * Release notes uploaded with the build */ releaseNotes: string | null; /** * Install groups the build belongs to */ installGroups: Array | null; /** * Whether the build's code signature is valid. Only set for Apple builds */ isCodeSignatureValid: boolean | null; /** * Name of the provisioning profile. Only set for Apple builds */ profileName: string | null; /** * Code signing type, such as development or app-store. Only set for Apple builds */ codesigningType: string | null; } | null; }; }; export type GetProjectInstallableBuildLatestResponse = GetProjectInstallableBuildLatestResponses[keyof GetProjectInstallableBuildLatestResponses]; export type UploadProjectPreprodArtifactSnapshotData = { body?: { /** * ID of the app the snapshot belongs to, such as `com.example.app`. */ app_id: string; /** * Metadata of the snapshot's images, keyed by image file name. */ images: { [key: string]: { /** * Hash of the uploaded image file, which identifies the image. */ content_hash: string; /** * Name to show for the image. */ display_name?: string | null; /** * Group to show the image in, such as a device name. */ group?: string | null; /** * Width in pixels. */ width: number; /** * Height in pixels. */ height: number; /** * Overrides the snapshot's `diff_threshold` for this image. */ diff_threshold?: number | null; /** * Description of the image. */ description?: string | null; /** * Tags of the image, as an object of names to values or a list of names. */ tags?: { [key: string]: string; } | Array | null; /** * Theme the image was rendered in. Other values count as not set. */ canvas_theme?: 'light' | 'dark' | null; [key: string]: unknown; }; }; /** * Fraction of changed pixels, from 0 up to but not including 1, above which an image counts as changed. Images can override it. */ diff_threshold?: number; /** * Whether the snapshot holds only some of the app's images. Requires `base_sha`. */ selective?: boolean; /** * File names of all the app's images, including the ones a selective snapshot leaves out. Requires `selective`, and must include every key of `images`. */ all_image_file_names?: Array; /** * SHA of the commit the build was made from. */ head_sha?: string; /** * SHA of the commit to compare against, such as the merge base of a pull request. Requires `head_sha`. */ base_sha?: string; /** * VCS provider of the repository, such as `github`. */ provider?: string; /** * Name of the repository the build was made from, such as `owner/repo`. */ head_repo_name?: string; /** * Name of the repository of the base commit, such as `owner/repo`. */ base_repo_name?: string; /** * Branch or ref the build was made from, such as `feature/xyz`. */ head_ref?: string; /** * Branch or ref of the base commit, such as `main`. */ base_ref?: string; /** * Number of the pull request the build belongs to. */ pr_number?: number; [key: string]: unknown; }; path: { /** * The ID or slug of the organization the resource belongs to. */ organization_id_or_slug: string; /** * The ID or slug of the project the resource belongs to. Project slugs are unique within each organization. */ project_id_or_slug: string; }; query?: never; url: '/projects/{organization_id_or_slug}/{project_id_or_slug}/preprodartifacts/snapshots/'; }; export type UploadProjectPreprodArtifactSnapshotErrors = { /** * Bad Request */ 400: unknown; /** * Forbidden */ 403: unknown; }; export type UploadProjectPreprodArtifactSnapshotResponses = { 200: { /** * ID of the build created for the snapshot */ artifactId: string; /** * ID of the snapshot */ snapshotMetricsId: string; /** * Number of images in the snapshot */ imageCount: number; /** * URL of the snapshot in Sentry */ snapshotUrl: string; }; }; export type UploadProjectPreprodArtifactSnapshotResponse = UploadProjectPreprodArtifactSnapshotResponses[keyof UploadProjectPreprodArtifactSnapshotResponses]; export type GetProjectProfilingProfileData = { body?: never; path: { /** * The ID or slug of the organization the resource belongs to. */ organization_id_or_slug: string; /** * The ID or slug of the project the resource belongs to. Project slugs are unique within each organization. */ project_id_or_slug: string; /** * The ID of the profile. Either a numeric ID or a 32-character hexadecimal string. */ profile_id: string; }; query?: never; url: '/projects/{organization_id_or_slug}/{project_id_or_slug}/profiling/profiles/{profile_id}/'; }; export type GetProjectProfilingProfileErrors = { /** * Unauthorized */ 401: unknown; /** * Forbidden */ 403: unknown; /** * Not Found */ 404: unknown; }; export type GetProjectProfilingProfileResponses = { 200: { [key: string]: unknown; }; }; export type GetProjectProfilingProfileResponse = GetProjectProfilingProfileResponses[keyof GetProjectProfilingProfileResponses]; export type ListProjectReleasesData = { body?: never; path: { /** * The ID or slug of the organization the resource belongs to. */ organization_id_or_slug: string; /** * The ID or slug of the project the resource belongs to. Project slugs are unique within each organization. */ project_id_or_slug: string; }; query?: { /** * The name of environments to filter by. */ environment?: Array; /** * Case-insensitive substring match against the release version. */ query?: string; /** * Limit the number of rows to return in the result. Default and maximum allowed is 100. */ per_page?: number; /** * A pointer to the last object fetched and its sort order; used to retrieve the next or previous results. */ cursor?: string; }; url: '/projects/{organization_id_or_slug}/{project_id_or_slug}/releases/'; }; export type ListProjectReleasesErrors = { /** * Unauthorized */ 401: unknown; /** * Forbidden */ 403: unknown; /** * Not Found */ 404: unknown; }; export type ListProjectReleasesResponses = { 200: Array<{ /** * Version control reference, such as a commit SHA or tag */ ref?: string | null; /** * Release URL */ url?: string | null; /** * When the release went live (ISO 8601) */ dateReleased?: string | null; /** * When the release was created (ISO 8601) */ dateCreated?: string | null; /** * When the release started (ISO 8601) */ dateStarted?: string | null; /** * Release owner */ owner?: { /** * SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access */ identities?: Array<{ /** * SSO identity ID */ id: string; /** * User's identifier at the auth provider */ name: string; /** * Organization the auth provider belongs to */ organization: { /** * Organization slug */ slug: string; /** * Organization name */ name: string; }; /** * Auth provider of the identity */ provider: { /** * Auth provider key, such as google or saml2 */ id: string; /** * Display name of the auth provider */ name: string; }; /** * When the identity was last verified by signing in through the auth provider */ dateVerified: string; /** * When the identity was last synced from the auth provider */ dateSynced: string; }>; /** * User avatar */ avatar?: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Two-factor authenticators of the user, without backup methods such as recovery codes */ authenticators?: Array<{ /** * Authenticator ID */ id: string; /** * Authenticator type, such as totp, sms, u2f or recovery */ type: string; /** * Display name of the authenticator type */ name: string; /** * When the authenticator was added */ dateCreated: string; /** * When the authenticator was last used, or null */ dateUsed: string | null; }>; /** * Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization */ canReset2fa?: boolean; /** * User ID */ id: string; /** * Display name: the user's name, or their email or username if no name is set */ name: string; /** * Username */ username: string; /** * Primary email address */ email: string; /** * Gravatar URL for the primary email address */ avatarUrl: string; /** * Whether the account is active */ isActive: boolean; /** * Whether the account is suspended. Suspended users can't sign in */ isSuspended: boolean; /** * Whether the user has a password set */ hasPasswordAuth: boolean; /** * Whether the account is managed, which stops the user from changing their username, password and similar details */ isManaged: boolean; /** * When the account was created */ dateJoined: string; /** * When the user last signed in, or null */ lastLogin: string | null; /** * Whether the user has two-factor authentication enabled */ has2fa: boolean; /** * When the user was last active, or null */ lastActive: string | null; /** * Whether the user is a superuser */ isSuperuser: boolean; /** * Whether the user has staff status */ isStaff: boolean; /** * Deprecated. Always an empty object */ experiments: { [key: string]: string; }; /** * Email addresses of the user. Only included for the requesting user or superusers; empty otherwise */ emails: Array<{ /** * Email ID */ id: string; /** * Email address */ email: string; /** * Whether the email address is verified */ is_verified: boolean; }>; } | null; /** * Most recent commit in the release */ lastCommit?: { /** * Commit SHA */ id: string; /** * Commit message */ message: string | null; /** * When the commit was made (ISO 8601) */ dateCreated: string; /** * Pull request the commit belongs to */ pullRequest: { /** * Number or key of the pull request in the provider */ id: string; /** * Title of the pull request */ title: string | null; /** * Description of the pull request */ message: string | null; /** * When Sentry recorded the pull request (ISO 8601) */ dateCreated: string; /** * When the pull request was merged (ISO 8601). Null when it isn't merged */ mergedAt: string | null; /** * State of the pull request: merged, open, closed, draft or unknown. Null when not known */ status: 'merged' | 'open' | 'closed' | 'draft' | 'unknown' | null; /** * Repository of the pull request */ repository: { /** * URL of the repository */ url?: string | null; /** * Provider of the repository, with its id and name */ provider?: { [key: string]: string; }; /** * Status of the repository */ status?: 'active' | 'disabled' | 'pending_deletion' | 'deletion_in_progress'; /** * ID of the repository's integration. Null for repositories added without an integration */ integrationId?: string | null; /** * Identifier of the repository in the provider, such as owner/name */ externalSlug?: string | null; /** * ID of the repository in the provider */ externalId?: string | null; /** * Settings of the repository. Only set when expand includes settings. Null when it has none */ settings?: { /** * Whether AI code review is on for the repository */ enabledCodeReview: boolean; /** * Pull request events that start a code review: on_new_commit or on_ready_for_review */ codeReviewTriggers: Array; } | null; /** * ID of the repository */ id: string; /** * Name of the repository, such as owner/name */ name: string; /** * When the repository was added to Sentry (ISO 8601) */ dateCreated: string; }; /** * Author of the pull request, or an empty object when it has none */ author: { /** * SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access */ identities?: Array<{ /** * SSO identity ID */ id: string; /** * User's identifier at the auth provider */ name: string; /** * Organization the auth provider belongs to */ organization: { /** * Organization slug */ slug: string; /** * Organization name */ name: string; }; /** * Auth provider of the identity */ provider: { /** * Auth provider key, such as google or saml2 */ id: string; /** * Display name of the auth provider */ name: string; }; /** * When the identity was last verified by signing in through the auth provider */ dateVerified: string; /** * When the identity was last synced from the auth provider */ dateSynced: string; }>; /** * User avatar */ avatar?: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Two-factor authenticators of the user, without backup methods such as recovery codes */ authenticators?: Array<{ /** * Authenticator ID */ id: string; /** * Authenticator type, such as totp, sms, u2f or recovery */ type: string; /** * Display name of the authenticator type */ name: string; /** * When the authenticator was added */ dateCreated: string; /** * When the authenticator was last used, or null */ dateUsed: string | null; }>; /** * Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization */ canReset2fa?: boolean; /** * User ID */ id: string; /** * Display name: the user's name, or their email or username if no name is set */ name: string; /** * Username */ username: string; /** * Primary email address */ email: string; /** * Gravatar URL for the primary email address */ avatarUrl: string; /** * Whether the account is active */ isActive: boolean; /** * Whether the account is suspended. Suspended users can't sign in */ isSuspended: boolean; /** * Whether the user has a password set */ hasPasswordAuth: boolean; /** * Whether the account is managed, which stops the user from changing their username, password and similar details */ isManaged: boolean; /** * When the account was created */ dateJoined: string; /** * When the user last signed in, or null */ lastLogin: string | null; /** * Whether the user has two-factor authentication enabled */ has2fa: boolean; /** * When the user was last active, or null */ lastActive: string | null; /** * Whether the user is a superuser */ isSuperuser: boolean; /** * Whether the user has staff status */ isStaff: boolean; /** * Deprecated. Always an empty object */ experiments: { [key: string]: string; }; /** * Email addresses of the user. Only included for the requesting user or superusers; empty otherwise */ emails: Array<{ /** * Email ID */ id: string; /** * Email address */ email: string; /** * Whether the email address is verified */ is_verified: boolean; }>; } | { /** * Commit author name */ name: string | null; /** * Commit author email */ email: string; } | { [key: string]: unknown; }; /** * URL of the pull request in the provider, or null when the provider can't build one */ externalUrl: string | null; } | null; /** * How the commit was found as a suspect commit: via commit in release or via SCM integration. Empty for other commits */ suspectCommitType: string; /** * Repository the commit belongs to */ repository?: { /** * URL of the repository */ url?: string | null; /** * Provider of the repository, with its id and name */ provider?: { [key: string]: string; }; /** * Status of the repository */ status?: 'active' | 'disabled' | 'pending_deletion' | 'deletion_in_progress'; /** * ID of the repository's integration. Null for repositories added without an integration */ integrationId?: string | null; /** * Identifier of the repository in the provider, such as owner/name */ externalSlug?: string | null; /** * ID of the repository in the provider */ externalId?: string | null; /** * Settings of the repository. Only set when expand includes settings. Null when it has none */ settings?: { /** * Whether AI code review is on for the repository */ enabledCodeReview: boolean; /** * Pull request events that start a code review: on_new_commit or on_ready_for_review */ codeReviewTriggers: Array; } | null; /** * ID of the repository */ id: string; /** * Name of the repository, such as owner/name */ name: string; /** * When the repository was added to Sentry (ISO 8601) */ dateCreated: string; }; /** * Author of the commit: a Sentry user when the email matches one, otherwise the name and email from the commit */ author?: { /** * SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access */ identities?: Array<{ /** * SSO identity ID */ id: string; /** * User's identifier at the auth provider */ name: string; /** * Organization the auth provider belongs to */ organization: { /** * Organization slug */ slug: string; /** * Organization name */ name: string; }; /** * Auth provider of the identity */ provider: { /** * Auth provider key, such as google or saml2 */ id: string; /** * Display name of the auth provider */ name: string; }; /** * When the identity was last verified by signing in through the auth provider */ dateVerified: string; /** * When the identity was last synced from the auth provider */ dateSynced: string; }>; /** * User avatar */ avatar?: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Two-factor authenticators of the user, without backup methods such as recovery codes */ authenticators?: Array<{ /** * Authenticator ID */ id: string; /** * Authenticator type, such as totp, sms, u2f or recovery */ type: string; /** * Display name of the authenticator type */ name: string; /** * When the authenticator was added */ dateCreated: string; /** * When the authenticator was last used, or null */ dateUsed: string | null; }>; /** * Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization */ canReset2fa?: boolean; /** * User ID */ id: string; /** * Display name: the user's name, or their email or username if no name is set */ name: string; /** * Username */ username: string; /** * Primary email address */ email: string; /** * Gravatar URL for the primary email address */ avatarUrl: string; /** * Whether the account is active */ isActive: boolean; /** * Whether the account is suspended. Suspended users can't sign in */ isSuspended: boolean; /** * Whether the user has a password set */ hasPasswordAuth: boolean; /** * Whether the account is managed, which stops the user from changing their username, password and similar details */ isManaged: boolean; /** * When the account was created */ dateJoined: string; /** * When the user last signed in, or null */ lastLogin: string | null; /** * Whether the user has two-factor authentication enabled */ has2fa: boolean; /** * When the user was last active, or null */ lastActive: string | null; /** * Whether the user is a superuser */ isSuperuser: boolean; /** * Whether the user has staff status */ isStaff: boolean; /** * Deprecated. Always an empty object */ experiments: { [key: string]: string; }; /** * Email addresses of the user. Only included for the requesting user or superusers; empty otherwise */ emails: Array<{ /** * Email ID */ id: string; /** * Email address */ email: string; /** * Whether the email address is verified */ is_verified: boolean; }>; } | { /** * Commit author name */ name: string | null; /** * Commit author email */ email: string; } | { [key: string]: unknown; }; } | null; /** * Most recent deploy of the release */ lastDeploy?: { /** * When the deploy started (ISO 8601) */ dateStarted?: string | null; /** * URL of the deploy */ url?: string | null; /** * ID of the deploy */ id: string; /** * Environment the release was deployed to */ environment: string; /** * When the deploy finished (ISO 8601) */ dateFinished: string; /** * Name of the deploy */ name: string | null; } | null; /** * When the release received its first event (ISO 8601) */ firstEvent?: string | null; /** * When the release received its most recent event (ISO 8601) */ lastEvent?: string | null; /** * Session bounds and neighboring release versions in the current project, when a project is requested */ currentProjectMeta?: { /** * Start of the release's sessions in the project (ISO 8601) */ sessionsLowerBound?: string | null; /** * End of the release's sessions in the project (ISO 8601) */ sessionsUpperBound?: string | null; /** * Version of the next release in the project */ nextReleaseVersion?: string | null; /** * Version of the previous release in the project */ prevReleaseVersion?: string | null; /** * Version of the first release in the project */ firstReleaseVersion?: string | null; /** * Version of the latest release in the project */ lastReleaseVersion?: string | null; } | null; /** * User agent of the client that created the release */ userAgent?: string | null; /** * Adoption stage of the release in each project, keyed by project slug */ adoptionStages?: { [key: string]: { /** * Adoption stage of the release */ stage: 'adopted' | 'low_adoption' | 'replaced'; /** * When the release was adopted (ISO 8601) */ adopted: string | null; /** * When the release stopped being adopted (ISO 8601) */ unadopted: string | null; }; } | null; /** * Release ID */ id: number; /** * Version of the release */ version: string; /** * Number of new issues first seen in the release */ newGroups: number; /** * Release status */ status: 'open' | 'archived'; /** * Shortened release version */ shortVersion: string; /** * Parsed version information */ versionInfo: { /** * Human-readable version, such as 1.0.0 (123) */ description?: string; /** * Package name parsed from the release version, such as com.example.app */ package: string | null; /** * Parsed version: the raw string, plus major, minor, patch, pre, buildCode and components when it's a semantic version */ version: { /** * Major version */ major?: number; /** * Minor version */ minor?: number; /** * Patch version */ patch?: number; /** * Pre-release identifier, such as rc1 */ pre?: string | null; /** * Build code, such as 123 */ buildCode?: string | null; /** * Number of version components given */ components?: number; /** * Version string the release was created with */ raw: string; }; /** * Build hash parsed from the release version */ buildHash: string | null; } | null; /** * Extra data stored on the release */ data: { [key: string]: unknown; }; /** * Number of commits in the release */ commitCount: number; /** * Number of deploys of the release */ deployCount: number; /** * Authors of the release's commits */ authors: Array<{ /** * SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access */ identities?: Array<{ /** * SSO identity ID */ id: string; /** * User's identifier at the auth provider */ name: string; /** * Organization the auth provider belongs to */ organization: { /** * Organization slug */ slug: string; /** * Organization name */ name: string; }; /** * Auth provider of the identity */ provider: { /** * Auth provider key, such as google or saml2 */ id: string; /** * Display name of the auth provider */ name: string; }; /** * When the identity was last verified by signing in through the auth provider */ dateVerified: string; /** * When the identity was last synced from the auth provider */ dateSynced: string; }>; /** * User avatar */ avatar?: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Two-factor authenticators of the user, without backup methods such as recovery codes */ authenticators?: Array<{ /** * Authenticator ID */ id: string; /** * Authenticator type, such as totp, sms, u2f or recovery */ type: string; /** * Display name of the authenticator type */ name: string; /** * When the authenticator was added */ dateCreated: string; /** * When the authenticator was last used, or null */ dateUsed: string | null; }>; /** * Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization */ canReset2fa?: boolean; /** * User ID */ id: string; /** * Display name: the user's name, or their email or username if no name is set */ name: string; /** * Username */ username: string; /** * Primary email address */ email: string; /** * Gravatar URL for the primary email address */ avatarUrl: string; /** * Whether the account is active */ isActive: boolean; /** * Whether the account is suspended. Suspended users can't sign in */ isSuspended: boolean; /** * Whether the user has a password set */ hasPasswordAuth: boolean; /** * Whether the account is managed, which stops the user from changing their username, password and similar details */ isManaged: boolean; /** * When the account was created */ dateJoined: string; /** * When the user last signed in, or null */ lastLogin: string | null; /** * Whether the user has two-factor authentication enabled */ has2fa: boolean; /** * When the user was last active, or null */ lastActive: string | null; /** * Whether the user is a superuser */ isSuperuser: boolean; /** * Whether the user has staff status */ isStaff: boolean; /** * Deprecated. Always an empty object */ experiments: { [key: string]: string; }; /** * Email addresses of the user. Only included for the requesting user or superusers; empty otherwise */ emails: Array<{ /** * Email ID */ id: string; /** * Email address */ email: string; /** * Whether the email address is verified */ is_verified: boolean; }>; } | { /** * Commit author name */ name: string | null; /** * Commit author email */ email: string; }>; /** * Projects in the release */ projects: Array<{ /** * Release health data for the project. Only included when health data is requested */ healthData?: { /** * Median session duration in seconds */ durationP50?: number | null; /** * 90th percentile session duration in seconds */ durationP90?: number | null; /** * Percentage of users who didn't experience a crash */ crashFreeUsers?: number | null; /** * Percentage of sessions that didn't crash */ crashFreeSessions?: number | null; /** * Total number of users in the release */ totalUsers?: number | null; /** * Number of users in the release over the last 24 hours */ totalUsers24h?: number | null; /** * Number of users in the project over the last 24 hours */ totalProjectUsers24h?: number | null; /** * Total number of sessions in the release */ totalSessions?: number | null; /** * Number of sessions in the release over the last 24 hours */ totalSessions24h?: number | null; /** * Number of sessions in the project over the last 24 hours */ totalProjectSessions24h?: number | null; /** * Percentage of the project's users over the last 24 hours that were on the release */ adoption?: number | null; /** * Percentage of the project's sessions over the last 24 hours that were on the release */ sessionsAdoption?: number | null; /** * Number of crashed sessions */ sessionsCrashed: number; /** * Number of sessions with errors */ sessionsErrored: number; /** * Whether the release has session data */ hasHealthData: boolean; /** * Session or user counts over time, keyed by stats period */ stats: { [key: string]: Array>; }; } | null; /** * When the release was released in the project (ISO 8601) */ dateReleased?: string | null; /** * When the release was created (ISO 8601) */ dateCreated?: string | null; /** * When work on the release started (ISO 8601) */ dateStarted?: string | null; /** * ID of the project */ id: number; /** * Slug of the project */ slug: string; /** * Name of the project */ name: string; /** * Platform of the project */ platform: string | null; /** * Platforms of the project */ platforms: Array | null; /** * Whether the release has session data in the project */ hasHealthData: boolean; /** * Number of new issues first seen in the release in the project */ newGroups: number; }>; }>; }; export type ListProjectReleasesResponse2 = ListProjectReleasesResponses[keyof ListProjectReleasesResponses]; export type ListProjectReleaseCommitsData = { body?: never; path: { /** * The ID or slug of the organization the resource belongs to. */ organization_id_or_slug: string; /** * The ID or slug of the project the resource belongs to. Project slugs are unique within each organization. */ project_id_or_slug: string; /** * The version identifier of the release */ version: string; }; query?: { /** * A pointer to the last object fetched and its sort order; used to retrieve the next or previous results. */ cursor?: string; }; url: '/projects/{organization_id_or_slug}/{project_id_or_slug}/releases/{version}/commits/'; }; export type ListProjectReleaseCommitsErrors = { /** * Unauthorized */ 401: unknown; /** * Forbidden */ 403: unknown; /** * Not Found */ 404: unknown; }; export type ListProjectReleaseCommitsResponses = { 200: Array<{ /** * Commit SHA */ id: string; /** * Commit message */ message: string | null; /** * When the commit was made (ISO 8601) */ dateCreated: string; /** * Pull request the commit belongs to */ pullRequest: { /** * Number or key of the pull request in the provider */ id: string; /** * Title of the pull request */ title: string | null; /** * Description of the pull request */ message: string | null; /** * When Sentry recorded the pull request (ISO 8601) */ dateCreated: string; /** * When the pull request was merged (ISO 8601). Null when it isn't merged */ mergedAt: string | null; /** * State of the pull request: merged, open, closed, draft or unknown. Null when not known */ status: 'merged' | 'open' | 'closed' | 'draft' | 'unknown' | null; /** * Repository of the pull request */ repository: { /** * URL of the repository */ url?: string | null; /** * Provider of the repository, with its id and name */ provider?: { [key: string]: string; }; /** * Status of the repository */ status?: 'active' | 'disabled' | 'pending_deletion' | 'deletion_in_progress'; /** * ID of the repository's integration. Null for repositories added without an integration */ integrationId?: string | null; /** * Identifier of the repository in the provider, such as owner/name */ externalSlug?: string | null; /** * ID of the repository in the provider */ externalId?: string | null; /** * Settings of the repository. Only set when expand includes settings. Null when it has none */ settings?: { /** * Whether AI code review is on for the repository */ enabledCodeReview: boolean; /** * Pull request events that start a code review: on_new_commit or on_ready_for_review */ codeReviewTriggers: Array; } | null; /** * ID of the repository */ id: string; /** * Name of the repository, such as owner/name */ name: string; /** * When the repository was added to Sentry (ISO 8601) */ dateCreated: string; }; /** * Author of the pull request, or an empty object when it has none */ author: { /** * SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access */ identities?: Array<{ /** * SSO identity ID */ id: string; /** * User's identifier at the auth provider */ name: string; /** * Organization the auth provider belongs to */ organization: { /** * Organization slug */ slug: string; /** * Organization name */ name: string; }; /** * Auth provider of the identity */ provider: { /** * Auth provider key, such as google or saml2 */ id: string; /** * Display name of the auth provider */ name: string; }; /** * When the identity was last verified by signing in through the auth provider */ dateVerified: string; /** * When the identity was last synced from the auth provider */ dateSynced: string; }>; /** * User avatar */ avatar?: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Two-factor authenticators of the user, without backup methods such as recovery codes */ authenticators?: Array<{ /** * Authenticator ID */ id: string; /** * Authenticator type, such as totp, sms, u2f or recovery */ type: string; /** * Display name of the authenticator type */ name: string; /** * When the authenticator was added */ dateCreated: string; /** * When the authenticator was last used, or null */ dateUsed: string | null; }>; /** * Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization */ canReset2fa?: boolean; /** * User ID */ id: string; /** * Display name: the user's name, or their email or username if no name is set */ name: string; /** * Username */ username: string; /** * Primary email address */ email: string; /** * Gravatar URL for the primary email address */ avatarUrl: string; /** * Whether the account is active */ isActive: boolean; /** * Whether the account is suspended. Suspended users can't sign in */ isSuspended: boolean; /** * Whether the user has a password set */ hasPasswordAuth: boolean; /** * Whether the account is managed, which stops the user from changing their username, password and similar details */ isManaged: boolean; /** * When the account was created */ dateJoined: string; /** * When the user last signed in, or null */ lastLogin: string | null; /** * Whether the user has two-factor authentication enabled */ has2fa: boolean; /** * When the user was last active, or null */ lastActive: string | null; /** * Whether the user is a superuser */ isSuperuser: boolean; /** * Whether the user has staff status */ isStaff: boolean; /** * Deprecated. Always an empty object */ experiments: { [key: string]: string; }; /** * Email addresses of the user. Only included for the requesting user or superusers; empty otherwise */ emails: Array<{ /** * Email ID */ id: string; /** * Email address */ email: string; /** * Whether the email address is verified */ is_verified: boolean; }>; } | { /** * Commit author name */ name: string | null; /** * Commit author email */ email: string; } | { [key: string]: unknown; }; /** * URL of the pull request in the provider, or null when the provider can't build one */ externalUrl: string | null; } | null; /** * How the commit was found as a suspect commit: via commit in release or via SCM integration. Empty for other commits */ suspectCommitType: string; /** * Repository the commit belongs to */ repository?: { /** * URL of the repository */ url?: string | null; /** * Provider of the repository, with its id and name */ provider?: { [key: string]: string; }; /** * Status of the repository */ status?: 'active' | 'disabled' | 'pending_deletion' | 'deletion_in_progress'; /** * ID of the repository's integration. Null for repositories added without an integration */ integrationId?: string | null; /** * Identifier of the repository in the provider, such as owner/name */ externalSlug?: string | null; /** * ID of the repository in the provider */ externalId?: string | null; /** * Settings of the repository. Only set when expand includes settings. Null when it has none */ settings?: { /** * Whether AI code review is on for the repository */ enabledCodeReview: boolean; /** * Pull request events that start a code review: on_new_commit or on_ready_for_review */ codeReviewTriggers: Array; } | null; /** * ID of the repository */ id: string; /** * Name of the repository, such as owner/name */ name: string; /** * When the repository was added to Sentry (ISO 8601) */ dateCreated: string; }; /** * Author of the commit: a Sentry user when the email matches one, otherwise the name and email from the commit */ author?: { /** * SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access */ identities?: Array<{ /** * SSO identity ID */ id: string; /** * User's identifier at the auth provider */ name: string; /** * Organization the auth provider belongs to */ organization: { /** * Organization slug */ slug: string; /** * Organization name */ name: string; }; /** * Auth provider of the identity */ provider: { /** * Auth provider key, such as google or saml2 */ id: string; /** * Display name of the auth provider */ name: string; }; /** * When the identity was last verified by signing in through the auth provider */ dateVerified: string; /** * When the identity was last synced from the auth provider */ dateSynced: string; }>; /** * User avatar */ avatar?: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Two-factor authenticators of the user, without backup methods such as recovery codes */ authenticators?: Array<{ /** * Authenticator ID */ id: string; /** * Authenticator type, such as totp, sms, u2f or recovery */ type: string; /** * Display name of the authenticator type */ name: string; /** * When the authenticator was added */ dateCreated: string; /** * When the authenticator was last used, or null */ dateUsed: string | null; }>; /** * Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization */ canReset2fa?: boolean; /** * User ID */ id: string; /** * Display name: the user's name, or their email or username if no name is set */ name: string; /** * Username */ username: string; /** * Primary email address */ email: string; /** * Gravatar URL for the primary email address */ avatarUrl: string; /** * Whether the account is active */ isActive: boolean; /** * Whether the account is suspended. Suspended users can't sign in */ isSuspended: boolean; /** * Whether the user has a password set */ hasPasswordAuth: boolean; /** * Whether the account is managed, which stops the user from changing their username, password and similar details */ isManaged: boolean; /** * When the account was created */ dateJoined: string; /** * When the user last signed in, or null */ lastLogin: string | null; /** * Whether the user has two-factor authentication enabled */ has2fa: boolean; /** * When the user was last active, or null */ lastActive: string | null; /** * Whether the user is a superuser */ isSuperuser: boolean; /** * Whether the user has staff status */ isStaff: boolean; /** * Deprecated. Always an empty object */ experiments: { [key: string]: string; }; /** * Email addresses of the user. Only included for the requesting user or superusers; empty otherwise */ emails: Array<{ /** * Email ID */ id: string; /** * Email address */ email: string; /** * Whether the email address is verified */ is_verified: boolean; }>; } | { /** * Commit author name */ name: string | null; /** * Commit author email */ email: string; } | { [key: string]: unknown; }; /** * Releases that contain the commit */ releases: Array<{ /** * Version of the release */ version: string; /** * Short version of the release */ shortVersion: string; /** * Commit ref of the release */ ref: string | null; /** * URL of the release */ url: string | null; /** * When the release was released (ISO 8601) */ dateReleased: string | null; /** * When the release was created (ISO 8601) */ dateCreated: string; }>; }>; }; export type ListProjectReleaseCommitsResponse2 = ListProjectReleaseCommitsResponses[keyof ListProjectReleaseCommitsResponses]; export type ListProjectReleaseFilesData = { body?: never; path: { /** * The ID or slug of the organization the resource belongs to. */ organization_id_or_slug: string; /** * The ID or slug of the project the resource belongs to. Project slugs are unique within each organization. */ project_id_or_slug: string; /** * The version identifier of the release */ version: string; }; query?: { /** * If set, only files with these partial names will be returned. */ query?: Array; /** * If set, only files with these exact checksums will be returned. */ checksum?: Array; /** * A pointer to the last object fetched and its sort order; used to retrieve the next or previous results. */ cursor?: string; }; url: '/projects/{organization_id_or_slug}/{project_id_or_slug}/releases/{version}/files/'; }; export type ListProjectReleaseFilesErrors = { /** * Unauthorized */ 401: unknown; /** * Forbidden */ 403: unknown; /** * Not Found */ 404: unknown; }; export type ListProjectReleaseFilesResponses = { 200: Array<{ /** * ID of the release file. Files that only exist in an artifact bundle get a base64-encoded ID built from the dist and file name */ id: string | Blob | File | null; /** * Name of the file, usually its URL */ name: string; /** * Name of the distribution the file belongs to */ dist: string | null; /** * HTTP headers stored with the file, such as Content-Type and Sourcemap */ headers: { [key: string]: string; }; /** * Size of the file in bytes */ size: number | null; /** * SHA-1 checksum of the file */ sha1: string | null; /** * When the file was uploaded (ISO 8601) */ dateCreated: string; }>; }; export type ListProjectReleaseFilesResponse = ListProjectReleaseFilesResponses[keyof ListProjectReleaseFilesResponses]; export type UploadProjectReleaseFileData = { /** * Documents the multipart/form-data body of the release file upload endpoints. * * The endpoints read the upload directly off ``request.data``; this serializer * exists to describe the request body in the OpenAPI schema. */ body: { /** * The multipart-encoded file contents to upload. */ file: string; /** * The name (full path) the file will be referenced as, e.g. the full web URI of a JavaScript file. Defaults to the uploaded file's name. */ name?: string; /** * The name of the distribution to associate the file with. */ dist?: string; /** * Headers to attach to the file, each formatted as a `"key:value"` string (for example, to define a content type). May be supplied multiple times. */ header?: Array; }; path: { /** * The ID or slug of the organization the resource belongs to. */ organization_id_or_slug: string; /** * The ID or slug of the project the resource belongs to. Project slugs are unique within each organization. */ project_id_or_slug: string; /** * The version identifier of the release */ version: string; }; query?: never; url: '/projects/{organization_id_or_slug}/{project_id_or_slug}/releases/{version}/files/'; }; export type UploadProjectReleaseFileErrors = { /** * Bad Request */ 400: unknown; /** * Unauthorized */ 401: unknown; /** * Forbidden */ 403: unknown; /** * Not Found */ 404: unknown; /** * Conflict */ 409: unknown; }; export type UploadProjectReleaseFileResponses = { 201: { /** * ID of the release file. Files that only exist in an artifact bundle get a base64-encoded ID built from the dist and file name */ id: string | Blob | File | null; /** * Name of the file, usually its URL */ name: string; /** * Name of the distribution the file belongs to */ dist: string | null; /** * HTTP headers stored with the file, such as Content-Type and Sourcemap */ headers: { [key: string]: string; }; /** * Size of the file in bytes */ size: number | null; /** * SHA-1 checksum of the file */ sha1: string | null; /** * When the file was uploaded (ISO 8601) */ dateCreated: string; }; }; export type UploadProjectReleaseFileResponse = UploadProjectReleaseFileResponses[keyof UploadProjectReleaseFileResponses]; export type DeleteProjectReleaseFileData = { body?: never; path: { /** * The ID or slug of the organization the resource belongs to. */ organization_id_or_slug: string; /** * The ID or slug of the project the resource belongs to. Project slugs are unique within each organization. */ project_id_or_slug: string; /** * The version identifier of the release */ version: string; /** * The ID of the release file. */ file_id: string; }; query?: never; url: '/projects/{organization_id_or_slug}/{project_id_or_slug}/releases/{version}/files/{file_id}/'; }; export type DeleteProjectReleaseFileErrors = { /** * Unauthorized */ 401: unknown; /** * Forbidden */ 403: unknown; /** * Not Found */ 404: unknown; }; export type DeleteProjectReleaseFileResponses = { /** * No Content */ 204: void; }; export type DeleteProjectReleaseFileResponse = DeleteProjectReleaseFileResponses[keyof DeleteProjectReleaseFileResponses]; export type GetProjectReleaseFileData = { body?: never; path: { /** * The ID or slug of the organization the resource belongs to. */ organization_id_or_slug: string; /** * The ID or slug of the project the resource belongs to. Project slugs are unique within each organization. */ project_id_or_slug: string; /** * The version identifier of the release */ version: string; /** * The ID of the release file. */ file_id: string; }; query?: { /** * If set, download the file contents instead of returning metadata. */ download?: string; }; url: '/projects/{organization_id_or_slug}/{project_id_or_slug}/releases/{version}/files/{file_id}/'; }; export type GetProjectReleaseFileErrors = { /** * Unauthorized */ 401: unknown; /** * Forbidden */ 403: unknown; /** * Not Found */ 404: unknown; }; export type GetProjectReleaseFileResponses = { 200: { /** * ID of the release file. Files that only exist in an artifact bundle get a base64-encoded ID built from the dist and file name */ id: string | Blob | File | null; /** * Name of the file, usually its URL */ name: string; /** * Name of the distribution the file belongs to */ dist: string | null; /** * HTTP headers stored with the file, such as Content-Type and Sourcemap */ headers: { [key: string]: string; }; /** * Size of the file in bytes */ size: number | null; /** * SHA-1 checksum of the file */ sha1: string | null; /** * When the file was uploaded (ISO 8601) */ dateCreated: string; }; }; export type GetProjectReleaseFileResponse = GetProjectReleaseFileResponses[keyof GetProjectReleaseFileResponses]; export type UpdateProjectReleaseFileData = { body: { /** * The new name (full path) of the file. */ name: string; }; path: { /** * The ID or slug of the organization the resource belongs to. */ organization_id_or_slug: string; /** * The ID or slug of the project the resource belongs to. Project slugs are unique within each organization. */ project_id_or_slug: string; /** * The version identifier of the release */ version: string; /** * The ID of the release file. */ file_id: string; }; query?: never; url: '/projects/{organization_id_or_slug}/{project_id_or_slug}/releases/{version}/files/{file_id}/'; }; export type UpdateProjectReleaseFileErrors = { /** * Bad Request */ 400: unknown; /** * Unauthorized */ 401: unknown; /** * Forbidden */ 403: unknown; /** * Not Found */ 404: unknown; }; export type UpdateProjectReleaseFileResponses = { 200: { /** * ID of the release file. Files that only exist in an artifact bundle get a base64-encoded ID built from the dist and file name */ id: string | Blob | File | null; /** * Name of the file, usually its URL */ name: string; /** * Name of the distribution the file belongs to */ dist: string | null; /** * HTTP headers stored with the file, such as Content-Type and Sourcemap */ headers: { [key: string]: string; }; /** * Size of the file in bytes */ size: number | null; /** * SHA-1 checksum of the file */ sha1: string | null; /** * When the file was uploaded (ISO 8601) */ dateCreated: string; }; }; export type UpdateProjectReleaseFileResponse = UpdateProjectReleaseFileResponses[keyof UpdateProjectReleaseFileResponses]; export type GetProjectReleaseSetupCompletionData = { body?: never; path: { /** * The ID or slug of the organization the resource belongs to. */ organization_id_or_slug: string; /** * The ID or slug of the project the resource belongs to. Project slugs are unique within each organization. */ project_id_or_slug: string; }; query?: never; url: '/projects/{organization_id_or_slug}/{project_id_or_slug}/releases/completion/'; }; export type GetProjectReleaseSetupCompletionErrors = { /** * Unauthorized */ 401: unknown; /** * Forbidden */ 403: unknown; /** * Not Found */ 404: unknown; }; export type GetProjectReleaseSetupCompletionResponses = { 200: Array<{ /** * Setup step: tag, repo, commit or deploy */ step: 'tag' | 'repo' | 'commit' | 'deploy'; /** * Whether the project completed the step */ complete: boolean; }>; }; export type GetProjectReleaseSetupCompletionResponse = GetProjectReleaseSetupCompletionResponses[keyof GetProjectReleaseSetupCompletionResponses]; export type DeleteProjectReplayData = { body?: never; path: { /** * The ID or slug of the organization the resource belongs to. */ organization_id_or_slug: string; /** * The ID or slug of the project the resource belongs to. Project slugs are unique within each organization. */ project_id_or_slug: string; /** * The ID of the replay you'd like to retrieve. It is a 32-character hexadecimal string. */ replay_id: string; }; query?: never; url: '/projects/{organization_id_or_slug}/{project_id_or_slug}/replays/{replay_id}/'; }; export type DeleteProjectReplayErrors = { /** * Not Found */ 404: unknown; }; export type DeleteProjectReplayResponses = { /** * No Content */ 204: void; }; export type DeleteProjectReplayResponse = DeleteProjectReplayResponses[keyof DeleteProjectReplayResponses]; export type ListProjectReplayClicksData = { body?: never; path: { /** * The ID or slug of the organization the resource belongs to. */ organization_id_or_slug: string; /** * The ID or slug of the project the resource belongs to. Project slugs are unique within each organization. */ project_id_or_slug: string; /** * The ID of the replay you'd like to retrieve. It is a 32-character hexadecimal string. */ replay_id: string; }; query?: { /** * A pointer to the last object fetched and its sort order; used to retrieve the next or previous results. */ cursor?: string; /** * The name of environments to filter by. */ environment?: Array; /** * Limit the number of rows to return in the result. Default and maximum allowed is 100. */ per_page?: number; /** * Filters results by using [query syntax](/product/sentry-basics/search/). * * Example: `query=(transaction:foo AND release:abc) OR (transaction:[bar,baz] AND release:def)` * */ query?: string; }; url: '/projects/{organization_id_or_slug}/{project_id_or_slug}/replays/{replay_id}/clicks/'; }; export type ListProjectReplayClicksErrors = { /** * Bad Request */ 400: unknown; /** * Forbidden */ 403: unknown; /** * Not Found */ 404: unknown; }; export type ListProjectReplayClicksResponses = { 200: { /** * Clicks that match the query, in time order */ data: Array<{ /** * RRWeb DOM node ID of the clicked element */ node_id: number; /** * When the element was clicked */ timestamp: string; }>; }; }; export type ListProjectReplayClicksResponse = ListProjectReplayClicksResponses[keyof ListProjectReplayClicksResponses]; export type ListProjectReplayRecordingSegmentsData = { body?: never; path: { /** * The ID or slug of the organization the resource belongs to. */ organization_id_or_slug: string; /** * The ID or slug of the project the resource belongs to. Project slugs are unique within each organization. */ project_id_or_slug: string; /** * The ID of the replay you'd like to retrieve. It is a 32-character hexadecimal string. */ replay_id: string; }; query?: { /** * A pointer to the last object fetched and its sort order; used to retrieve the next or previous results. */ cursor?: string; /** * Limit the number of rows to return in the result. Default and maximum allowed is 100. */ per_page?: number; }; url: '/projects/{organization_id_or_slug}/{project_id_or_slug}/replays/{replay_id}/recording-segments/'; }; export type ListProjectReplayRecordingSegmentsErrors = { /** * Bad Request */ 400: unknown; /** * Forbidden */ 403: unknown; /** * Not Found */ 404: unknown; /** * Too Many Requests */ 429: unknown; }; export type ListProjectReplayRecordingSegmentsResponses = { 200: Array>; }; export type ListProjectReplayRecordingSegmentsResponse = ListProjectReplayRecordingSegmentsResponses[keyof ListProjectReplayRecordingSegmentsResponses]; export type GetProjectReplayRecordingSegmentData = { body?: never; path: { /** * The ID or slug of the organization the resource belongs to. */ organization_id_or_slug: string; /** * The ID or slug of the project the resource belongs to. Project slugs are unique within each organization. */ project_id_or_slug: string; /** * The ID of the replay you'd like to retrieve. It is a 32-character hexadecimal string. */ replay_id: string; /** * The ID of the segment you'd like to retrieve. */ segment_id: number; }; query?: never; url: '/projects/{organization_id_or_slug}/{project_id_or_slug}/replays/{replay_id}/recording-segments/{segment_id}/'; }; export type GetProjectReplayRecordingSegmentErrors = { /** * Bad Request */ 400: unknown; /** * Forbidden */ 403: unknown; /** * Not Found */ 404: unknown; }; export type GetProjectReplayRecordingSegmentResponses = { 200: { /** * Metadata of the recording segment */ data: { /** * ID of the replay the segment belongs to */ replayId: string; /** * ID of the segment within the replay */ segmentId: number; /** * ID of the project the replay belongs to */ projectId: string; /** * When the segment was stored (ISO 8601), or null if unknown */ dateAdded: string | null; }; }; }; export type GetProjectReplayRecordingSegmentResponse = GetProjectReplayRecordingSegmentResponses[keyof GetProjectReplayRecordingSegmentResponses]; export type ListProjectReplayViewedByData = { body?: never; path: { /** * The ID or slug of the organization the resource belongs to. */ organization_id_or_slug: string; /** * The ID or slug of the project the resource belongs to. Project slugs are unique within each organization. */ project_id_or_slug: string; /** * The ID of the replay you'd like to retrieve. It is a 32-character hexadecimal string. */ replay_id: string; }; query?: never; url: '/projects/{organization_id_or_slug}/{project_id_or_slug}/replays/{replay_id}/viewed-by/'; }; export type ListProjectReplayViewedByErrors = { /** * Bad Request */ 400: unknown; /** * Forbidden */ 403: unknown; /** * Not Found */ 404: unknown; }; export type ListProjectReplayViewedByResponses = { 200: { /** * Viewers of the replay */ data: { /** * Users who have viewed the replay */ viewed_by: Array<{ /** * User ID */ id: string; /** * Display name of the user */ name: string; /** * Username */ username: string; /** * Primary email address */ email: string; /** * Gravatar URL for the primary email address */ avatarUrl: string; /** * User avatar */ avatar: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Whether the account is active */ isActive: boolean; /** * Whether the user has a password set */ hasPasswordAuth: boolean; /** * Whether the account is managed, which stops the user from changing their username, password and similar details */ isManaged: boolean; /** * When the account was created (ISO 8601) */ dateJoined: string; /** * When the user last signed in (ISO 8601), or null */ lastLogin: string | null; /** * Whether the user has two-factor authentication on */ has2fa: boolean; /** * When the user was last active (ISO 8601), or null */ lastActive: string | null; /** * Whether the user is a superuser */ isSuperuser: boolean; /** * Whether the user has staff status */ isStaff: boolean; /** * Deprecated. Always an empty object */ experiments: { [key: string]: string; }; /** * Email addresses of the user. Only included for the requesting user or superusers; empty otherwise */ emails: Array<{ /** * Email ID */ id: string; /** * Email address */ email: string; /** * Whether the email address is verified */ is_verified: boolean; }>; /** * Kind of viewer. Always user */ type: 'user'; }>; }; }; }; export type ListProjectReplayViewedByResponse = ListProjectReplayViewedByResponses[keyof ListProjectReplayViewedByResponses]; export type ListProjectReplayDeletionJobsData = { body?: never; path: { /** * The ID or slug of the organization the resource belongs to. */ organization_id_or_slug: string; /** * The ID or slug of the project the resource belongs to. Project slugs are unique within each organization. */ project_id_or_slug: string; }; query?: never; url: '/projects/{organization_id_or_slug}/{project_id_or_slug}/replays/jobs/delete/'; }; export type ListProjectReplayDeletionJobsErrors = { /** * Forbidden */ 403: unknown; }; export type ListProjectReplayDeletionJobsResponses = { 200: { /** * Deletion jobs of the project */ data: Array<{ /** * ID of the deletion job */ id: number; /** * When the job was created */ dateCreated: string; /** * When the job was last updated */ dateUpdated: string; /** * Earliest UTC timestamp in the deletion range */ rangeStart: string; /** * Latest UTC timestamp in the deletion range */ rangeEnd: string; /** * Environments of the replays to delete. Empty means all environments */ environments: Array; /** * Status of the job: `pending`, `in-progress`, `completed` or `failed` */ status: string; /** * Search query that matches the replays to delete */ query: string; /** * Number of replays the job has deleted */ countDeleted: number; }>; }; }; export type ListProjectReplayDeletionJobsResponse = ListProjectReplayDeletionJobsResponses[keyof ListProjectReplayDeletionJobsResponses]; export type CreateProjectReplayDeletionJobData = { body: { data: { rangeStart: string; rangeEnd: string; environments: Array; query: string | null; }; }; path: { /** * The ID or slug of the organization the resource belongs to. */ organization_id_or_slug: string; /** * The ID or slug of the project the resource belongs to. Project slugs are unique within each organization. */ project_id_or_slug: string; }; query?: never; url: '/projects/{organization_id_or_slug}/{project_id_or_slug}/replays/jobs/delete/'; }; export type CreateProjectReplayDeletionJobErrors = { /** * Bad Request */ 400: unknown; /** * Forbidden */ 403: unknown; }; export type CreateProjectReplayDeletionJobResponses = { 201: { /** * The deletion job */ data: { /** * ID of the deletion job */ id: number; /** * When the job was created */ dateCreated: string; /** * When the job was last updated */ dateUpdated: string; /** * Earliest UTC timestamp in the deletion range */ rangeStart: string; /** * Latest UTC timestamp in the deletion range */ rangeEnd: string; /** * Environments of the replays to delete. Empty means all environments */ environments: Array; /** * Status of the job: `pending`, `in-progress`, `completed` or `failed` */ status: string; /** * Search query that matches the replays to delete */ query: string; /** * Number of replays the job has deleted */ countDeleted: number; }; }; }; export type CreateProjectReplayDeletionJobResponse = CreateProjectReplayDeletionJobResponses[keyof CreateProjectReplayDeletionJobResponses]; export type GetProjectReplayDeletionJobData = { body?: never; path: { /** * The ID or slug of the organization the resource belongs to. */ organization_id_or_slug: string; /** * The ID or slug of the project the resource belongs to. Project slugs are unique within each organization. */ project_id_or_slug: string; /** * The ID of the replay deletion job you'd like to retrieve. */ job_id: number; }; query?: never; url: '/projects/{organization_id_or_slug}/{project_id_or_slug}/replays/jobs/delete/{job_id}/'; }; export type GetProjectReplayDeletionJobErrors = { /** * Forbidden */ 403: unknown; /** * Not Found */ 404: unknown; }; export type GetProjectReplayDeletionJobResponses = { 200: { /** * The deletion job */ data: { /** * ID of the deletion job */ id: number; /** * When the job was created */ dateCreated: string; /** * When the job was last updated */ dateUpdated: string; /** * Earliest UTC timestamp in the deletion range */ rangeStart: string; /** * Latest UTC timestamp in the deletion range */ rangeEnd: string; /** * Environments of the replays to delete. Empty means all environments */ environments: Array; /** * Status of the job: `pending`, `in-progress`, `completed` or `failed` */ status: string; /** * Search query that matches the replays to delete */ query: string; /** * Number of replays the job has deleted */ countDeleted: number; }; }; }; export type GetProjectReplayDeletionJobResponse = GetProjectReplayDeletionJobResponses[keyof GetProjectReplayDeletionJobResponses]; export type ListProjectRepositoriesData = { body?: never; path: { /** * The ID or slug of the organization the resource belongs to. */ organization_id_or_slug: string; /** * The ID or slug of the project the resource belongs to. Project slugs are unique within each organization. */ project_id_or_slug: string; }; query?: { /** * When set to `1`, each row includes a `mappingCount` field with the number of code path mappings for that repository. Omitted by default to keep the response lightweight. */ includeMappingCount?: string; }; url: '/projects/{organization_id_or_slug}/{project_id_or_slug}/repo/'; }; export type ListProjectRepositoriesResponses = { 200: Array<{ /** * ID of the link between the project and the repository */ id: string; /** * ID of the repository's integration */ integrationId: string | null; /** * ID of the repository in the provider */ externalId: string | null; /** * ID of the project */ projectId: string; /** * ID of the repository */ repositoryId: string; /** * Name of the repository */ repoName: string; /** * How the link was made: manual, scm_onboarding, auto_event, auto_name_match or seer_preference */ source: string; /** * Key of the repository's provider, such as github */ providerKey: string | null; /** * Number of code mappings between the project and the repository */ mappingCount?: number; }>; }; export type ListProjectRepositoriesResponse = ListProjectRepositoriesResponses[keyof ListProjectRepositoriesResponses]; export type LinkProjectRepositoryData = { body: { /** * The ID of the repository to link. */ repositoryId: number; }; path: { /** * The ID or slug of the organization the resource belongs to. */ organization_id_or_slug: string; /** * The ID or slug of the project the resource belongs to. Project slugs are unique within each organization. */ project_id_or_slug: string; }; query?: never; url: '/projects/{organization_id_or_slug}/{project_id_or_slug}/repo/'; }; export type LinkProjectRepositoryErrors = { /** * Bad Request */ 400: unknown; /** * Not Found */ 404: unknown; }; export type LinkProjectRepositoryResponses = { 201: { /** * ID of the link between the project and the repository. */ id: string; /** * ID of the project. */ projectId: string; /** * ID of the repository. */ repositoryId: string; /** * How the link was made: manual, scm_onboarding, auto_event, auto_name_match or seer_preference. */ source: string; /** * Whether the request created the link. False when it already existed. */ created: boolean; }; }; export type LinkProjectRepositoryResponse = LinkProjectRepositoryResponses[keyof LinkProjectRepositoryResponses]; export type ListProjectSeerRepositoriesData = { body?: never; path: { /** * The ID or slug of the organization the resource belongs to. */ organization_id_or_slug: string; /** * The ID or slug of the project the resource belongs to. Project slugs are unique within each organization. */ project_id_or_slug: string; }; query?: { /** * Filter repositories using Sentry search syntax. `name` supports substring matching and is also the free-text key. `provider` supports `=`, `!=`, `IN`, and `NOT IN` operators, and matches with or without the `integrations:` prefix. */ query?: string; /** * Sort by repository name or provider. Defaults to `name`. */ sortBy?: '-name' | '-provider' | 'name' | 'provider'; /** * A pointer to the last object fetched and its sort order; used to retrieve the next or previous results. */ cursor?: string; /** * The maximum number of results per page. */ per_page?: number; }; url: '/projects/{organization_id_or_slug}/{project_id_or_slug}/seer/repos/'; }; export type ListProjectSeerRepositoriesErrors = { /** * Bad Request */ 400: unknown; /** * Unauthorized */ 401: unknown; /** * Forbidden */ 403: unknown; /** * Not Found */ 404: unknown; }; export type ListProjectSeerRepositoriesResponses = { 200: Array<{ /** * ID of the link between the project and the repository */ id: string; /** * ID of the repository */ repositoryId: string; /** * ID of the organization */ organizationId: string; /** * Provider of the repository, such as integrations:github */ provider: string; /** * Owner of the repository */ owner: string; /** * Name of the repository, without the owner */ name: string; /** * ID of the repository in the provider */ externalId: string; /** * ID of the repository's integration */ integrationId: string | null; /** * Branch Seer uses instead of the default branch. Null when not set */ branchName: string | null; /** * Deprecated. Branches Seer uses for issues with matching event tags */ branchOverrides: Array<{ /** * ID of the branch override */ id: string; /** * Event tag key to match */ tagName: string; /** * Event tag value to match */ tagValue: string; /** * Branch Seer uses for issues whose events have this tag value */ branchName: string; }>; /** * Instructions Seer follows when working with the repository */ instructions: string | null; }>; }; export type ListProjectSeerRepositoriesResponse = ListProjectSeerRepositoriesResponses[keyof ListProjectSeerRepositoriesResponses]; export type AddProjectSeerRepositoriesData = { /** * Allows parameters to be defined in snake case, but passed as camel case. * * Errors are output in camel case. */ body: { /** * Repositories to link and configure for Seer in this project. */ repos: Array<{ /** * The ID of an active, supported repository in the organization. */ repository_id: number; /** * The branch Seer works from in this repository. Leave empty to use the repository's default branch. */ branch_name?: string | null; /** * Extra context Seer should use when working with this repository. */ instructions?: string | null; /** * Deprecated. Branch overrides selected by matching tags. * * @deprecated */ branch_overrides?: Array<{ /** * Event tag key to match. */ tag_name: string; /** * Event tag value to match. */ tag_value: string; /** * The repository branch Seer uses for issues whose events have this tag value. */ branch_name: string; }>; }>; }; path: { /** * The ID or slug of the organization the resource belongs to. */ organization_id_or_slug: string; /** * The ID or slug of the project the resource belongs to. Project slugs are unique within each organization. */ project_id_or_slug: string; }; query?: never; url: '/projects/{organization_id_or_slug}/{project_id_or_slug}/seer/repos/'; }; export type AddProjectSeerRepositoriesErrors = { /** * Bad Request */ 400: unknown; /** * Unauthorized */ 401: unknown; /** * Forbidden */ 403: unknown; /** * Not Found */ 404: unknown; }; export type AddProjectSeerRepositoriesResponses = { /** * No Content */ 204: void; }; export type AddProjectSeerRepositoriesResponse = AddProjectSeerRepositoriesResponses[keyof AddProjectSeerRepositoriesResponses]; export type ReplaceProjectSeerRepositoriesData = { /** * Allows parameters to be defined in snake case, but passed as camel case. * * Errors are output in camel case. */ body: { /** * Repositories to link and configure for Seer in this project. */ repos: Array<{ /** * The ID of an active, supported repository in the organization. */ repository_id: number; /** * The branch Seer works from in this repository. Leave empty to use the repository's default branch. */ branch_name?: string | null; /** * Extra context Seer should use when working with this repository. */ instructions?: string | null; /** * Deprecated. Branch overrides selected by matching tags. * * @deprecated */ branch_overrides?: Array<{ /** * Event tag key to match. */ tag_name: string; /** * Event tag value to match. */ tag_value: string; /** * The repository branch Seer uses for issues whose events have this tag value. */ branch_name: string; }>; }>; }; path: { /** * The ID or slug of the organization the resource belongs to. */ organization_id_or_slug: string; /** * The ID or slug of the project the resource belongs to. Project slugs are unique within each organization. */ project_id_or_slug: string; }; query?: never; url: '/projects/{organization_id_or_slug}/{project_id_or_slug}/seer/repos/'; }; export type ReplaceProjectSeerRepositoriesErrors = { /** * Bad Request */ 400: unknown; /** * Unauthorized */ 401: unknown; /** * Forbidden */ 403: unknown; /** * Not Found */ 404: unknown; }; export type ReplaceProjectSeerRepositoriesResponses = { /** * No Content */ 204: void; }; export type ReplaceProjectSeerRepositoriesResponse = ReplaceProjectSeerRepositoriesResponses[keyof ReplaceProjectSeerRepositoriesResponses]; export type GetProjectStacktraceLinkData = { body?: never; path: { /** * The ID or slug of the organization the resource belongs to. */ organization_id_or_slug: string; /** * The ID or slug of the project the resource belongs to. Project slugs are unique within each organization. */ project_id_or_slug: string; }; query: { /** * The file path from the stack trace frame. */ file: string; /** * The platform associated with the frame. */ platform?: string; /** * The absolute path of the stack frame, if known. */ absPath?: string; /** * The commit ID associated with the event. */ commitId?: string; /** * The source server revision of the frame's file, if known. Takes precedence over `commitId`. */ fileRevision?: string; /** * The SDK name associated with the event. */ sdkName?: string; /** * The module name, if known. */ module?: string; /** * The package name, if known. */ package?: string; /** * The source line number, if known. */ lineNo?: string; /** * The issue ID, if known. */ groupId?: string; }; url: '/projects/{organization_id_or_slug}/{project_id_or_slug}/stacktrace-link/'; }; export type GetProjectStacktraceLinkErrors = { /** * Bad Request */ 400: unknown; /** * Unauthorized */ 401: unknown; /** * Forbidden */ 403: unknown; /** * Not Found */ 404: unknown; }; export type GetProjectStacktraceLinkResponses = { 200: { /** * Path of the file in the repository after the code mapping is applied */ sourcePath?: string | null; /** * URL Sentry tried when it couldn't find the file */ attemptedUrl?: string | null; /** * Why no link was found, such as no_code_mappings_for_project, stack_root_mismatch or file_not_found. Null when a link was found */ error: string | null; /** * Code mapping used for the link. Null when no code mapping matches */ config: { /** * ID of the code mapping */ id: string; /** * ID of the project */ projectId: string; /** * Slug of the project */ projectSlug: string; /** * ID of the repository */ repoId: string; /** * Name of the repository */ repoName: string; /** * ID of the repository's integration */ integrationId: string | null; /** * Provider of the repository's integration */ provider: { /** * Key of the integration provider, such as github */ key: string; /** * Slug of the integration provider, same as key */ slug: string; /** * Display name of the integration provider */ name: string; /** * Whether the integration can be installed from Sentry */ canAdd: boolean; /** * Whether the integration must be uninstalled from the provider instead of in Sentry */ canDisable: boolean; /** * Features the integration provider supports, such as issue-basic or commits */ features: Array; /** * Extra provider details shown during setup, such as alerts and configuration instructions */ aspects: { /** * Alerts shown during setup */ alerts?: Array<{ /** * Style of the alert, such as warning */ type: string; /** * Icon shown with the alert, such as icon-warning-sm */ icon: string; /** * Text of the alert, in Markdown */ text: string; }>; /** * Configuration step after install */ configure_integration?: { /** * Title of the configuration step */ title: string; }; /** * Whether the integration is enabled without an install flow */ directEnable?: boolean; /** * Dialog shown before the integration is disabled */ disable_dialog?: { /** * Label of the dialog's confirm button */ actionText: string; /** * Text of the dialog */ body: string; }; /** * Where to install the integration when it's installed outside Sentry */ externalInstall?: { /** * URL to install the integration from, such as a marketplace */ url: string; /** * Label of the install button */ buttonText: string; /** * Notice shown before the user leaves Sentry */ noticeText: string; }; /** * Dialog shown before the integration is removed */ removal_dialog?: { /** * Label of the dialog's confirm button */ actionText: string; /** * Text of the dialog */ body: string; }; }; } | null; /** * Stack trace path prefix that the mapping replaces */ stackRoot: string; /** * Repository path prefix that replaces the stack root */ sourceRoot: string; /** * Branch to link source files on */ defaultBranch: string | null; /** * Whether Sentry created the mapping automatically */ automaticallyGenerated: boolean; /** * Whether the mapping has a CODEOWNERS file linked */ hasCodeOwner: boolean; } | null; /** * URL of the file in the repository. Null when no link was found */ sourceUrl: string | null; /** * Source code integrations of the organization */ integrations: Array<{ /** * ID of the integration */ id: string; /** * Name of the integration, usually the connected account or workspace */ name: string; /** * URL of the connected account's icon */ icon: string | null; /** * Domain of the connected account, such as github.com/example-org */ domainName: string | null; /** * Type of the connected account, such as Organization or User */ accountType: string | null; /** * Permission scopes granted to the integration */ scopes: Array | null; /** * Whether the installation lacks permissions the latest version of the integration needs. Null for providers without a permissions model */ outOfDate: boolean | null; /** * Features the installation can't support because of missing permissions. Null for providers without a permissions model */ missingFeatures: Array<{ /** * Key of the missing feature */ key: string; /** * Description of the missing feature */ description: string; }> | null; /** * Status of the integration */ status: 'active' | 'disabled' | 'pending_deletion' | 'deletion_in_progress'; /** * Integration provider details */ provider: { /** * Key of the integration provider, such as github */ key: string; /** * Slug of the integration provider, same as key */ slug: string; /** * Display name of the integration provider */ name: string; /** * Whether the integration can be installed from Sentry */ canAdd: boolean; /** * Whether the integration must be uninstalled from the provider instead of in Sentry */ canDisable: boolean; /** * Features the integration provider supports, such as issue-basic or commits */ features: Array; /** * Extra provider details shown during setup, such as alerts and configuration instructions */ aspects: { /** * Alerts shown during setup */ alerts?: Array<{ /** * Style of the alert, such as warning */ type: string; /** * Icon shown with the alert, such as icon-warning-sm */ icon: string; /** * Text of the alert, in Markdown */ text: string; }>; /** * Configuration step after install */ configure_integration?: { /** * Title of the configuration step */ title: string; }; /** * Whether the integration is enabled without an install flow */ directEnable?: boolean; /** * Dialog shown before the integration is disabled */ disable_dialog?: { /** * Label of the dialog's confirm button */ actionText: string; /** * Text of the dialog */ body: string; }; /** * Where to install the integration when it's installed outside Sentry */ externalInstall?: { /** * URL to install the integration from, such as a marketplace */ url: string; /** * Label of the install button */ buttonText: string; /** * Notice shown before the user leaves Sentry */ noticeText: string; }; /** * Dialog shown before the integration is removed */ removal_dialog?: { /** * Label of the dialog's confirm button */ actionText: string; /** * Text of the dialog */ body: string; }; }; }; }>; }; }; export type GetProjectStacktraceLinkResponse = GetProjectStacktraceLinkResponses[keyof GetProjectStacktraceLinkResponses]; export type ListProjectStatsData = { body?: never; path: { /** * The ID or slug of the organization the resource belongs to. */ organization_id_or_slug: string; /** * The ID or slug of the project the resource belongs to. Project slugs are unique within each organization. */ project_id_or_slug: string; }; query?: { /** * The name of the stat to query. Defaults to `received`. */ stat?: 'blacklisted' | 'generated' | 'received' | 'rejected'; /** * A UNIX timestamp (in seconds) that sets the start of the query range. */ since?: number; /** * A UNIX timestamp (in seconds) that sets the end of the query range. */ until?: number; /** * An explicit time series resolution. */ resolution?: '10s' | '1d' | '1h'; }; url: '/projects/{organization_id_or_slug}/{project_id_or_slug}/stats/'; }; export type ListProjectStatsErrors = { /** * Unauthorized */ 401: unknown; /** * Forbidden */ 403: unknown; /** * Not Found */ 404: unknown; }; export type ListProjectStatsResponses = { 200: Array>; }; export type ListProjectStatsResponse = ListProjectStatsResponses[keyof ListProjectStatsResponses]; export type DeleteProjectSymbolSourceData = { body?: never; path: { /** * The ID or slug of the organization the resource belongs to. */ organization_id_or_slug: string; /** * The ID or slug of the project the resource belongs to. Project slugs are unique within each organization. */ project_id_or_slug: string; }; query: { /** * The ID of the source to delete. */ id: string; }; url: '/projects/{organization_id_or_slug}/{project_id_or_slug}/symbol-sources/'; }; export type DeleteProjectSymbolSourceErrors = { /** * Forbidden */ 403: unknown; /** * Not Found */ 404: unknown; }; export type DeleteProjectSymbolSourceResponses = { /** * No Content */ 204: void; }; export type DeleteProjectSymbolSourceResponse = DeleteProjectSymbolSourceResponses[keyof DeleteProjectSymbolSourceResponses]; export type ListProjectSymbolSourcesData = { body?: never; path: { /** * The ID or slug of the organization the resource belongs to. */ organization_id_or_slug: string; /** * The ID or slug of the project the resource belongs to. Project slugs are unique within each organization. */ project_id_or_slug: string; }; query?: { /** * The ID of the source to look up. If this is not provided, all sources are returned. */ id?: string; }; url: '/projects/{organization_id_or_slug}/{project_id_or_slug}/symbol-sources/'; }; export type ListProjectSymbolSourcesErrors = { /** * Forbidden */ 403: unknown; /** * Not Found */ 404: unknown; }; export type ListProjectSymbolSourcesResponses = { 200: Array<{ /** * The source type, always `http`. */ type: 'http'; /** * The base URL of the symbol server. */ url: string; /** * The user name for HTTP basic authentication with the symbol server. */ username?: string; /** * A secret that is set. Its value is never returned. */ password?: { /** * Always `true`. Marks a stored secret whose value is hidden. */ 'hidden-secret'?: true; }; /** * The ID of the source. */ id: string; /** * The human-readable name of the source. */ name?: string; /** * The directory layout the source uses to store debug files. */ layout: { /** * The directory layout, for example `native` or `symstore`. */ type: 'native' | 'symstore' | 'symstore_index2' | 'ssqp' | 'unified' | 'debuginfod' | 'slashsymbols' | 'nnsymstore'; /** * The casing applied to file paths on the source. */ casing?: 'lowercase' | 'uppercase' | 'default'; }; /** * Restrictions on which debug files are requested from the source. */ filters?: { /** * The file types requested from the source. Empty means all file types. */ filetypes?: Array<'pe' | 'pdb' | 'portablepdb' | 'mach_debug' | 'mach_code' | 'elf_debug' | 'elf_code' | 'wasm_debug' | 'wasm_code' | 'breakpad' | 'sourcebundle' | 'uuidmap' | 'bcsymbolmap' | 'il2cpp' | 'proguard' | 'dartsymbolmap'>; /** * Glob patterns matched against debug and code file paths. Only matching files are requested. Empty means no path filtering. */ path_patterns?: Array; /** * Whether requests to the source must include a debug checksum. */ requires_checksum?: boolean; }; /** * Whether the source is a public symbol server. */ is_public?: boolean; /** * Whether the source provides an index of its debug files to Symbolicator. */ has_index?: boolean; /** * The platforms an organization needs access to before the source is used. */ platforms?: Array; } | { /** * The source type, always `s3`. */ type: 's3'; /** * The name of the S3 bucket. */ bucket: string; /** * The AWS region of the S3 bucket. */ region: string; /** * The AWS access key ID. */ access_key: string; /** * A secret that is set. Its value is never returned. */ secret_key: { /** * Always `true`. Marks a stored secret whose value is hidden. */ 'hidden-secret'?: true; }; /** * The path prefix under which debug files are stored in the bucket or container. */ prefix?: string; /** * The ID of the source. */ id: string; /** * The human-readable name of the source. */ name?: string; /** * The directory layout the source uses to store debug files. */ layout: { /** * The directory layout, for example `native` or `symstore`. */ type: 'native' | 'symstore' | 'symstore_index2' | 'ssqp' | 'unified' | 'debuginfod' | 'slashsymbols' | 'nnsymstore'; /** * The casing applied to file paths on the source. */ casing?: 'lowercase' | 'uppercase' | 'default'; }; /** * Restrictions on which debug files are requested from the source. */ filters?: { /** * The file types requested from the source. Empty means all file types. */ filetypes?: Array<'pe' | 'pdb' | 'portablepdb' | 'mach_debug' | 'mach_code' | 'elf_debug' | 'elf_code' | 'wasm_debug' | 'wasm_code' | 'breakpad' | 'sourcebundle' | 'uuidmap' | 'bcsymbolmap' | 'il2cpp' | 'proguard' | 'dartsymbolmap'>; /** * Glob patterns matched against debug and code file paths. Only matching files are requested. Empty means no path filtering. */ path_patterns?: Array; /** * Whether requests to the source must include a debug checksum. */ requires_checksum?: boolean; }; /** * Whether the source is a public symbol server. */ is_public?: boolean; /** * Whether the source provides an index of its debug files to Symbolicator. */ has_index?: boolean; /** * The platforms an organization needs access to before the source is used. */ platforms?: Array; } | { /** * The source type, always `gcs`. */ type: 'gcs'; /** * The name of the Google Cloud Storage bucket. */ bucket: string; /** * The email address of the service account used for authentication. */ client_email: string; /** * A secret that is set. Its value is never returned. */ private_key: { /** * Always `true`. Marks a stored secret whose value is hidden. */ 'hidden-secret'?: true; }; /** * The path prefix under which debug files are stored in the bucket or container. */ prefix?: string; /** * The ID of the source. */ id: string; /** * The human-readable name of the source. */ name?: string; /** * The directory layout the source uses to store debug files. */ layout: { /** * The directory layout, for example `native` or `symstore`. */ type: 'native' | 'symstore' | 'symstore_index2' | 'ssqp' | 'unified' | 'debuginfod' | 'slashsymbols' | 'nnsymstore'; /** * The casing applied to file paths on the source. */ casing?: 'lowercase' | 'uppercase' | 'default'; }; /** * Restrictions on which debug files are requested from the source. */ filters?: { /** * The file types requested from the source. Empty means all file types. */ filetypes?: Array<'pe' | 'pdb' | 'portablepdb' | 'mach_debug' | 'mach_code' | 'elf_debug' | 'elf_code' | 'wasm_debug' | 'wasm_code' | 'breakpad' | 'sourcebundle' | 'uuidmap' | 'bcsymbolmap' | 'il2cpp' | 'proguard' | 'dartsymbolmap'>; /** * Glob patterns matched against debug and code file paths. Only matching files are requested. Empty means no path filtering. */ path_patterns?: Array; /** * Whether requests to the source must include a debug checksum. */ requires_checksum?: boolean; }; /** * Whether the source is a public symbol server. */ is_public?: boolean; /** * Whether the source provides an index of its debug files to Symbolicator. */ has_index?: boolean; /** * The platforms an organization needs access to before the source is used. */ platforms?: Array; } | { /** * The source type, always `azure`. */ type: 'azure'; /** * The name of the Azure storage account. */ account: string; /** * The name of the Azure blob container. */ container: string; /** * The Microsoft Entra tenant ID. */ tenant_id: string; /** * The Microsoft Entra application (client) ID. */ client_id: string; /** * A secret that is set. Its value is never returned. */ client_secret: { /** * Always `true`. Marks a stored secret whose value is hidden. */ 'hidden-secret'?: true; }; /** * The path prefix under which debug files are stored in the bucket or container. */ prefix?: string; /** * The ID of the source. */ id: string; /** * The human-readable name of the source. */ name?: string; /** * The directory layout the source uses to store debug files. */ layout: { /** * The directory layout, for example `native` or `symstore`. */ type: 'native' | 'symstore' | 'symstore_index2' | 'ssqp' | 'unified' | 'debuginfod' | 'slashsymbols' | 'nnsymstore'; /** * The casing applied to file paths on the source. */ casing?: 'lowercase' | 'uppercase' | 'default'; }; /** * Restrictions on which debug files are requested from the source. */ filters?: { /** * The file types requested from the source. Empty means all file types. */ filetypes?: Array<'pe' | 'pdb' | 'portablepdb' | 'mach_debug' | 'mach_code' | 'elf_debug' | 'elf_code' | 'wasm_debug' | 'wasm_code' | 'breakpad' | 'sourcebundle' | 'uuidmap' | 'bcsymbolmap' | 'il2cpp' | 'proguard' | 'dartsymbolmap'>; /** * Glob patterns matched against debug and code file paths. Only matching files are requested. Empty means no path filtering. */ path_patterns?: Array; /** * Whether requests to the source must include a debug checksum. */ requires_checksum?: boolean; }; /** * Whether the source is a public symbol server. */ is_public?: boolean; /** * Whether the source provides an index of its debug files to Symbolicator. */ has_index?: boolean; /** * The platforms an organization needs access to before the source is used. */ platforms?: Array; } | { /** * The source type, always `appStoreConnect`. */ type: 'appStoreConnect'; /** * The ID of the source. */ id: string; /** * The human-readable name of the source. */ name: string; /** * The issuer ID of the App Store Connect API key. */ appconnectIssuer: string; /** * The key ID of the App Store Connect API key. */ appconnectKey: string; /** * The private key of the App Store Connect API key. */ appconnectPrivateKey: string; /** * The name of the app in App Store Connect. */ appName: string; /** * The ID of the app in App Store Connect. */ appId: string; /** * The bundle ID of the app. */ bundleId: string; }>; }; export type ListProjectSymbolSourcesResponse = ListProjectSymbolSourcesResponses[keyof ListProjectSymbolSourcesResponses]; export type AddProjectSymbolSourceData = { body: { /** * The type of the source. * * * `http` - SymbolServer (HTTP) * * `gcs` - Google Cloud Storage * * `s3` - Amazon S3 * * `azure` - Azure Blob Storage */ type: 'http' | 'gcs' | 's3' | 'azure'; /** * The human-readable name of the source. */ name: string; /** * The internal ID of the source. Must be distinct from all other source IDs and cannot start with '`sentry:`'. If this is not provided, a new UUID will be generated. */ id?: string; /** * Layout settings for the source. This is required for HTTP, GCS, and S3 sources. * * **`type`** ***(string)*** - The layout of the folder structure. The options are: * - `native` - Platform-Specific (SymStore / GDB / LLVM) * - `symstore` - Microsoft SymStore * - `symstore_index2` - Microsoft SymStore (with index2.txt) * - `ssqp` - Microsoft SSQP * - `unified` - Unified Symbol Server Layout * - `debuginfod` - debuginfod * - `nnsymstore` - Nintendo Symbol Store * * **`casing`** ***(string)*** - The layout of the folder structure. The options are: * - `default` - Default (mixed case) * - `uppercase` - Uppercase * - `lowercase` - Lowercase * * ```json * { * "layout": { * "type": "native" * "casing": "default" * } * } * ``` */ layout?: { /** * The source's layout type. * * * `native` * * `symstore` * * `symstore_index2` * * `ssqp` * * `unified` * * `debuginfod` * * `slashsymbols` * * `nnsymstore` */ type: 'native' | 'symstore' | 'symstore_index2' | 'ssqp' | 'unified' | 'debuginfod' | 'slashsymbols' | 'nnsymstore'; /** * The source's casing rules. * * * `lowercase` * * `uppercase` * * `default` */ casing: 'lowercase' | 'uppercase' | 'default'; }; /** * Filter settings for the source. This is optional for all sources. * * **`filetypes`** ***(list)*** - A list of file types that can be found on this source. If this is left empty, all file types will be enabled. The options are: * - `pe` - Windows executable files * - `pdb` - Windows debug files * - `portablepdb` - .NET portable debug files * - `mach_code` - MacOS executable files * - `mach_debug` - MacOS debug files * - `elf_code` - ELF executable files * - `elf_debug` - ELF debug files * - `wasm_code` - WASM executable files * - `wasm_debug` - WASM debug files * - `breakpad` - Breakpad symbol files * - `sourcebundle` - Source code bundles * - `uuidmap` - Apple UUID mapping files * - `bcsymbolmap` - Apple bitcode symbol maps * - `il2cpp` - Unity IL2CPP mapping files * - `proguard` - ProGuard mapping files * * **`path_patterns`** ***(list)*** - A list of glob patterns to check against the debug and code file paths of debug files. Only files that match one of these patterns will be requested from the source. If this is left empty, no path-based filtering takes place. * * **`requires_checksum`** ***(boolean)*** - Whether this source requires a debug checksum to be sent with each request. Defaults to `false`. * * ```json * { * "filters": { * "filetypes": ["pe", "pdb", "portablepdb"], * "path_patterns": ["*ffmpeg*"] * } * } * ``` */ filters?: { /** * The file types enabled for the source. */ filetypes?: Array<'pe' | 'pdb' | 'portablepdb' | 'mach_debug' | 'mach_code' | 'elf_debug' | 'elf_code' | 'wasm_debug' | 'wasm_code' | 'breakpad' | 'sourcebundle' | 'uuidmap' | 'bcsymbolmap' | 'il2cpp' | 'proguard' | 'dartsymbolmap'>; /** * The debug and code file paths enabled for the source. */ path_patterns?: Array; /** * Whether the source requires debug checksums. */ requires_checksum?: boolean; }; /** * The source's URL. Optional for HTTP sources, invalid for all others. */ url?: string; /** * The user name for accessing the source. Optional for HTTP sources, invalid for all others. */ username?: string; /** * The password for accessing the source. Optional for HTTP sources, invalid for all others. */ password?: string; /** * The GCS or S3 bucket where the source resides. Required for GCS and S3 source, invalid for HTTP sources. */ bucket?: string; /** * The source's [S3 region](https://docs.aws.amazon.com/general/latest/gr/s3.html). Required for S3 sources, invalid for all others. * * * `us-east-2` - US East (Ohio) * * `us-east-1` - US East (N. Virginia) * * `us-west-1` - US West (N. California) * * `us-west-2` - US West (Oregon) * * `ap-east-1` - Asia Pacific (Hong Kong) * * `ap-south-1` - Asia Pacific (Mumbai) * * `ap-northeast-2` - Asia Pacific (Seoul) * * `ap-southeast-1` - Asia Pacific (Singapore) * * `ap-southeast-2` - Asia Pacific (Sydney) * * `ap-northeast-1` - Asia Pacific (Tokyo) * * `ca-central-1` - Canada (Central) * * `cn-north-1` - China (Beijing) * * `cn-northwest-1` - China (Ningxia) * * `eu-central-1` - EU (Frankfurt) * * `eu-west-1` - EU (Ireland) * * `eu-west-2` - EU (London) * * `eu-west-3` - EU (Paris) * * `eu-north-1` - EU (Stockholm) * * `sa-east-1` - South America (São Paulo) * * `us-gov-east-1` - AWS GovCloud (US-East) * * `us-gov-west-1` - AWS GovCloud (US) */ region?: 'us-east-2' | 'us-east-1' | 'us-west-1' | 'us-west-2' | 'ap-east-1' | 'ap-south-1' | 'ap-northeast-2' | 'ap-southeast-1' | 'ap-southeast-2' | 'ap-northeast-1' | 'ca-central-1' | 'cn-north-1' | 'cn-northwest-1' | 'eu-central-1' | 'eu-west-1' | 'eu-west-2' | 'eu-west-3' | 'eu-north-1' | 'sa-east-1' | 'us-gov-east-1' | 'us-gov-west-1'; /** * The [AWS Access Key](https://docs.aws.amazon.com/IAM/latest/UserGuide/security-creds.html#access-keys-and-secret-access-keys).Required for S3 sources, invalid for all others. */ access_key?: string; /** * The [AWS Secret Access Key](https://docs.aws.amazon.com/IAM/latest/UserGuide/security-creds.html#access-keys-and-secret-access-keys).Required for S3 sources, invalid for all others. */ secret_key?: string; /** * The GCS, Azure or [S3](https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-prefixes.html) prefix. Optional for GCS, Azure and S3 sources, invalid for HTTP. */ prefix?: string; /** * The GCS email address for authentication. Required for GCS sources, invalid for all others. */ client_email?: string; /** * The GCS private key. Required for GCS sources if not using impersonated tokens. Invalid for all others. */ private_key?: string; /** * The Azure storage account name. Required for Azure sources, invalid for all others. */ account?: string; /** * The Azure blob container name. Required for Azure sources, invalid for all others. */ container?: string; /** * The Microsoft Entra tenant ID. Required for Azure sources, invalid for all others. */ tenant_id?: string; /** * The Microsoft Entra application (client) ID. Required for Azure sources, invalid for all others. */ client_id?: string; /** * The Microsoft Entra client secret. Required for Azure sources, invalid for all others. */ client_secret?: string; }; path: { /** * The ID or slug of the organization the resource belongs to. */ organization_id_or_slug: string; /** * The ID or slug of the project the resource belongs to. Project slugs are unique within each organization. */ project_id_or_slug: string; }; query?: never; url: '/projects/{organization_id_or_slug}/{project_id_or_slug}/symbol-sources/'; }; export type AddProjectSymbolSourceErrors = { /** * Bad Request */ 400: unknown; /** * Forbidden */ 403: unknown; }; export type AddProjectSymbolSourceResponses = { 201: { /** * The source type, always `http`. */ type: 'http'; /** * The base URL of the symbol server. */ url: string; /** * The user name for HTTP basic authentication with the symbol server. */ username?: string; /** * A secret that is set. Its value is never returned. */ password?: { /** * Always `true`. Marks a stored secret whose value is hidden. */ 'hidden-secret'?: true; }; /** * The ID of the source. */ id: string; /** * The human-readable name of the source. */ name?: string; /** * The directory layout the source uses to store debug files. */ layout: { /** * The directory layout, for example `native` or `symstore`. */ type: 'native' | 'symstore' | 'symstore_index2' | 'ssqp' | 'unified' | 'debuginfod' | 'slashsymbols' | 'nnsymstore'; /** * The casing applied to file paths on the source. */ casing?: 'lowercase' | 'uppercase' | 'default'; }; /** * Restrictions on which debug files are requested from the source. */ filters?: { /** * The file types requested from the source. Empty means all file types. */ filetypes?: Array<'pe' | 'pdb' | 'portablepdb' | 'mach_debug' | 'mach_code' | 'elf_debug' | 'elf_code' | 'wasm_debug' | 'wasm_code' | 'breakpad' | 'sourcebundle' | 'uuidmap' | 'bcsymbolmap' | 'il2cpp' | 'proguard' | 'dartsymbolmap'>; /** * Glob patterns matched against debug and code file paths. Only matching files are requested. Empty means no path filtering. */ path_patterns?: Array; /** * Whether requests to the source must include a debug checksum. */ requires_checksum?: boolean; }; /** * Whether the source is a public symbol server. */ is_public?: boolean; /** * Whether the source provides an index of its debug files to Symbolicator. */ has_index?: boolean; /** * The platforms an organization needs access to before the source is used. */ platforms?: Array; } | { /** * The source type, always `s3`. */ type: 's3'; /** * The name of the S3 bucket. */ bucket: string; /** * The AWS region of the S3 bucket. */ region: string; /** * The AWS access key ID. */ access_key: string; /** * A secret that is set. Its value is never returned. */ secret_key: { /** * Always `true`. Marks a stored secret whose value is hidden. */ 'hidden-secret'?: true; }; /** * The path prefix under which debug files are stored in the bucket or container. */ prefix?: string; /** * The ID of the source. */ id: string; /** * The human-readable name of the source. */ name?: string; /** * The directory layout the source uses to store debug files. */ layout: { /** * The directory layout, for example `native` or `symstore`. */ type: 'native' | 'symstore' | 'symstore_index2' | 'ssqp' | 'unified' | 'debuginfod' | 'slashsymbols' | 'nnsymstore'; /** * The casing applied to file paths on the source. */ casing?: 'lowercase' | 'uppercase' | 'default'; }; /** * Restrictions on which debug files are requested from the source. */ filters?: { /** * The file types requested from the source. Empty means all file types. */ filetypes?: Array<'pe' | 'pdb' | 'portablepdb' | 'mach_debug' | 'mach_code' | 'elf_debug' | 'elf_code' | 'wasm_debug' | 'wasm_code' | 'breakpad' | 'sourcebundle' | 'uuidmap' | 'bcsymbolmap' | 'il2cpp' | 'proguard' | 'dartsymbolmap'>; /** * Glob patterns matched against debug and code file paths. Only matching files are requested. Empty means no path filtering. */ path_patterns?: Array; /** * Whether requests to the source must include a debug checksum. */ requires_checksum?: boolean; }; /** * Whether the source is a public symbol server. */ is_public?: boolean; /** * Whether the source provides an index of its debug files to Symbolicator. */ has_index?: boolean; /** * The platforms an organization needs access to before the source is used. */ platforms?: Array; } | { /** * The source type, always `gcs`. */ type: 'gcs'; /** * The name of the Google Cloud Storage bucket. */ bucket: string; /** * The email address of the service account used for authentication. */ client_email: string; /** * A secret that is set. Its value is never returned. */ private_key: { /** * Always `true`. Marks a stored secret whose value is hidden. */ 'hidden-secret'?: true; }; /** * The path prefix under which debug files are stored in the bucket or container. */ prefix?: string; /** * The ID of the source. */ id: string; /** * The human-readable name of the source. */ name?: string; /** * The directory layout the source uses to store debug files. */ layout: { /** * The directory layout, for example `native` or `symstore`. */ type: 'native' | 'symstore' | 'symstore_index2' | 'ssqp' | 'unified' | 'debuginfod' | 'slashsymbols' | 'nnsymstore'; /** * The casing applied to file paths on the source. */ casing?: 'lowercase' | 'uppercase' | 'default'; }; /** * Restrictions on which debug files are requested from the source. */ filters?: { /** * The file types requested from the source. Empty means all file types. */ filetypes?: Array<'pe' | 'pdb' | 'portablepdb' | 'mach_debug' | 'mach_code' | 'elf_debug' | 'elf_code' | 'wasm_debug' | 'wasm_code' | 'breakpad' | 'sourcebundle' | 'uuidmap' | 'bcsymbolmap' | 'il2cpp' | 'proguard' | 'dartsymbolmap'>; /** * Glob patterns matched against debug and code file paths. Only matching files are requested. Empty means no path filtering. */ path_patterns?: Array; /** * Whether requests to the source must include a debug checksum. */ requires_checksum?: boolean; }; /** * Whether the source is a public symbol server. */ is_public?: boolean; /** * Whether the source provides an index of its debug files to Symbolicator. */ has_index?: boolean; /** * The platforms an organization needs access to before the source is used. */ platforms?: Array; } | { /** * The source type, always `azure`. */ type: 'azure'; /** * The name of the Azure storage account. */ account: string; /** * The name of the Azure blob container. */ container: string; /** * The Microsoft Entra tenant ID. */ tenant_id: string; /** * The Microsoft Entra application (client) ID. */ client_id: string; /** * A secret that is set. Its value is never returned. */ client_secret: { /** * Always `true`. Marks a stored secret whose value is hidden. */ 'hidden-secret'?: true; }; /** * The path prefix under which debug files are stored in the bucket or container. */ prefix?: string; /** * The ID of the source. */ id: string; /** * The human-readable name of the source. */ name?: string; /** * The directory layout the source uses to store debug files. */ layout: { /** * The directory layout, for example `native` or `symstore`. */ type: 'native' | 'symstore' | 'symstore_index2' | 'ssqp' | 'unified' | 'debuginfod' | 'slashsymbols' | 'nnsymstore'; /** * The casing applied to file paths on the source. */ casing?: 'lowercase' | 'uppercase' | 'default'; }; /** * Restrictions on which debug files are requested from the source. */ filters?: { /** * The file types requested from the source. Empty means all file types. */ filetypes?: Array<'pe' | 'pdb' | 'portablepdb' | 'mach_debug' | 'mach_code' | 'elf_debug' | 'elf_code' | 'wasm_debug' | 'wasm_code' | 'breakpad' | 'sourcebundle' | 'uuidmap' | 'bcsymbolmap' | 'il2cpp' | 'proguard' | 'dartsymbolmap'>; /** * Glob patterns matched against debug and code file paths. Only matching files are requested. Empty means no path filtering. */ path_patterns?: Array; /** * Whether requests to the source must include a debug checksum. */ requires_checksum?: boolean; }; /** * Whether the source is a public symbol server. */ is_public?: boolean; /** * Whether the source provides an index of its debug files to Symbolicator. */ has_index?: boolean; /** * The platforms an organization needs access to before the source is used. */ platforms?: Array; } | { /** * The source type, always `appStoreConnect`. */ type: 'appStoreConnect'; /** * The ID of the source. */ id: string; /** * The human-readable name of the source. */ name: string; /** * The issuer ID of the App Store Connect API key. */ appconnectIssuer: string; /** * The key ID of the App Store Connect API key. */ appconnectKey: string; /** * The private key of the App Store Connect API key. */ appconnectPrivateKey: string; /** * The name of the app in App Store Connect. */ appName: string; /** * The ID of the app in App Store Connect. */ appId: string; /** * The bundle ID of the app. */ bundleId: string; }; }; export type AddProjectSymbolSourceResponse = AddProjectSymbolSourceResponses[keyof AddProjectSymbolSourceResponses]; export type UpdateProjectSymbolSourceData = { body: { /** * The type of the source. * * * `http` - SymbolServer (HTTP) * * `gcs` - Google Cloud Storage * * `s3` - Amazon S3 * * `azure` - Azure Blob Storage */ type: 'http' | 'gcs' | 's3' | 'azure'; /** * The human-readable name of the source. */ name: string; /** * The internal ID of the source. Must be distinct from all other source IDs and cannot start with '`sentry:`'. If this is not provided, a new UUID will be generated. */ id?: string; /** * Layout settings for the source. This is required for HTTP, GCS, and S3 sources. * * **`type`** ***(string)*** - The layout of the folder structure. The options are: * - `native` - Platform-Specific (SymStore / GDB / LLVM) * - `symstore` - Microsoft SymStore * - `symstore_index2` - Microsoft SymStore (with index2.txt) * - `ssqp` - Microsoft SSQP * - `unified` - Unified Symbol Server Layout * - `debuginfod` - debuginfod * - `nnsymstore` - Nintendo Symbol Store * * **`casing`** ***(string)*** - The layout of the folder structure. The options are: * - `default` - Default (mixed case) * - `uppercase` - Uppercase * - `lowercase` - Lowercase * * ```json * { * "layout": { * "type": "native" * "casing": "default" * } * } * ``` */ layout?: { /** * The source's layout type. * * * `native` * * `symstore` * * `symstore_index2` * * `ssqp` * * `unified` * * `debuginfod` * * `slashsymbols` * * `nnsymstore` */ type: 'native' | 'symstore' | 'symstore_index2' | 'ssqp' | 'unified' | 'debuginfod' | 'slashsymbols' | 'nnsymstore'; /** * The source's casing rules. * * * `lowercase` * * `uppercase` * * `default` */ casing: 'lowercase' | 'uppercase' | 'default'; }; /** * Filter settings for the source. This is optional for all sources. * * **`filetypes`** ***(list)*** - A list of file types that can be found on this source. If this is left empty, all file types will be enabled. The options are: * - `pe` - Windows executable files * - `pdb` - Windows debug files * - `portablepdb` - .NET portable debug files * - `mach_code` - MacOS executable files * - `mach_debug` - MacOS debug files * - `elf_code` - ELF executable files * - `elf_debug` - ELF debug files * - `wasm_code` - WASM executable files * - `wasm_debug` - WASM debug files * - `breakpad` - Breakpad symbol files * - `sourcebundle` - Source code bundles * - `uuidmap` - Apple UUID mapping files * - `bcsymbolmap` - Apple bitcode symbol maps * - `il2cpp` - Unity IL2CPP mapping files * - `proguard` - ProGuard mapping files * * **`path_patterns`** ***(list)*** - A list of glob patterns to check against the debug and code file paths of debug files. Only files that match one of these patterns will be requested from the source. If this is left empty, no path-based filtering takes place. * * **`requires_checksum`** ***(boolean)*** - Whether this source requires a debug checksum to be sent with each request. Defaults to `false`. * * ```json * { * "filters": { * "filetypes": ["pe", "pdb", "portablepdb"], * "path_patterns": ["*ffmpeg*"] * } * } * ``` */ filters?: { /** * The file types enabled for the source. */ filetypes?: Array<'pe' | 'pdb' | 'portablepdb' | 'mach_debug' | 'mach_code' | 'elf_debug' | 'elf_code' | 'wasm_debug' | 'wasm_code' | 'breakpad' | 'sourcebundle' | 'uuidmap' | 'bcsymbolmap' | 'il2cpp' | 'proguard' | 'dartsymbolmap'>; /** * The debug and code file paths enabled for the source. */ path_patterns?: Array; /** * Whether the source requires debug checksums. */ requires_checksum?: boolean; }; /** * The source's URL. Optional for HTTP sources, invalid for all others. */ url?: string; /** * The user name for accessing the source. Optional for HTTP sources, invalid for all others. */ username?: string; /** * The password for accessing the source. Optional for HTTP sources, invalid for all others. */ password?: string; /** * The GCS or S3 bucket where the source resides. Required for GCS and S3 source, invalid for HTTP sources. */ bucket?: string; /** * The source's [S3 region](https://docs.aws.amazon.com/general/latest/gr/s3.html). Required for S3 sources, invalid for all others. * * * `us-east-2` - US East (Ohio) * * `us-east-1` - US East (N. Virginia) * * `us-west-1` - US West (N. California) * * `us-west-2` - US West (Oregon) * * `ap-east-1` - Asia Pacific (Hong Kong) * * `ap-south-1` - Asia Pacific (Mumbai) * * `ap-northeast-2` - Asia Pacific (Seoul) * * `ap-southeast-1` - Asia Pacific (Singapore) * * `ap-southeast-2` - Asia Pacific (Sydney) * * `ap-northeast-1` - Asia Pacific (Tokyo) * * `ca-central-1` - Canada (Central) * * `cn-north-1` - China (Beijing) * * `cn-northwest-1` - China (Ningxia) * * `eu-central-1` - EU (Frankfurt) * * `eu-west-1` - EU (Ireland) * * `eu-west-2` - EU (London) * * `eu-west-3` - EU (Paris) * * `eu-north-1` - EU (Stockholm) * * `sa-east-1` - South America (São Paulo) * * `us-gov-east-1` - AWS GovCloud (US-East) * * `us-gov-west-1` - AWS GovCloud (US) */ region?: 'us-east-2' | 'us-east-1' | 'us-west-1' | 'us-west-2' | 'ap-east-1' | 'ap-south-1' | 'ap-northeast-2' | 'ap-southeast-1' | 'ap-southeast-2' | 'ap-northeast-1' | 'ca-central-1' | 'cn-north-1' | 'cn-northwest-1' | 'eu-central-1' | 'eu-west-1' | 'eu-west-2' | 'eu-west-3' | 'eu-north-1' | 'sa-east-1' | 'us-gov-east-1' | 'us-gov-west-1'; /** * The [AWS Access Key](https://docs.aws.amazon.com/IAM/latest/UserGuide/security-creds.html#access-keys-and-secret-access-keys).Required for S3 sources, invalid for all others. */ access_key?: string; /** * The [AWS Secret Access Key](https://docs.aws.amazon.com/IAM/latest/UserGuide/security-creds.html#access-keys-and-secret-access-keys).Required for S3 sources, invalid for all others. */ secret_key?: string; /** * The GCS, Azure or [S3](https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-prefixes.html) prefix. Optional for GCS, Azure and S3 sources, invalid for HTTP. */ prefix?: string; /** * The GCS email address for authentication. Required for GCS sources, invalid for all others. */ client_email?: string; /** * The GCS private key. Required for GCS sources if not using impersonated tokens. Invalid for all others. */ private_key?: string; /** * The Azure storage account name. Required for Azure sources, invalid for all others. */ account?: string; /** * The Azure blob container name. Required for Azure sources, invalid for all others. */ container?: string; /** * The Microsoft Entra tenant ID. Required for Azure sources, invalid for all others. */ tenant_id?: string; /** * The Microsoft Entra application (client) ID. Required for Azure sources, invalid for all others. */ client_id?: string; /** * The Microsoft Entra client secret. Required for Azure sources, invalid for all others. */ client_secret?: string; }; path: { /** * The ID or slug of the organization the resource belongs to. */ organization_id_or_slug: string; /** * The ID or slug of the project the resource belongs to. Project slugs are unique within each organization. */ project_id_or_slug: string; }; query: { /** * The ID of the source to update. */ id: string; }; url: '/projects/{organization_id_or_slug}/{project_id_or_slug}/symbol-sources/'; }; export type UpdateProjectSymbolSourceErrors = { /** * Bad Request */ 400: unknown; /** * Forbidden */ 403: unknown; /** * Not Found */ 404: unknown; }; export type UpdateProjectSymbolSourceResponses = { 200: { /** * The source type, always `http`. */ type: 'http'; /** * The base URL of the symbol server. */ url: string; /** * The user name for HTTP basic authentication with the symbol server. */ username?: string; /** * A secret that is set. Its value is never returned. */ password?: { /** * Always `true`. Marks a stored secret whose value is hidden. */ 'hidden-secret'?: true; }; /** * The ID of the source. */ id: string; /** * The human-readable name of the source. */ name?: string; /** * The directory layout the source uses to store debug files. */ layout: { /** * The directory layout, for example `native` or `symstore`. */ type: 'native' | 'symstore' | 'symstore_index2' | 'ssqp' | 'unified' | 'debuginfod' | 'slashsymbols' | 'nnsymstore'; /** * The casing applied to file paths on the source. */ casing?: 'lowercase' | 'uppercase' | 'default'; }; /** * Restrictions on which debug files are requested from the source. */ filters?: { /** * The file types requested from the source. Empty means all file types. */ filetypes?: Array<'pe' | 'pdb' | 'portablepdb' | 'mach_debug' | 'mach_code' | 'elf_debug' | 'elf_code' | 'wasm_debug' | 'wasm_code' | 'breakpad' | 'sourcebundle' | 'uuidmap' | 'bcsymbolmap' | 'il2cpp' | 'proguard' | 'dartsymbolmap'>; /** * Glob patterns matched against debug and code file paths. Only matching files are requested. Empty means no path filtering. */ path_patterns?: Array; /** * Whether requests to the source must include a debug checksum. */ requires_checksum?: boolean; }; /** * Whether the source is a public symbol server. */ is_public?: boolean; /** * Whether the source provides an index of its debug files to Symbolicator. */ has_index?: boolean; /** * The platforms an organization needs access to before the source is used. */ platforms?: Array; } | { /** * The source type, always `s3`. */ type: 's3'; /** * The name of the S3 bucket. */ bucket: string; /** * The AWS region of the S3 bucket. */ region: string; /** * The AWS access key ID. */ access_key: string; /** * A secret that is set. Its value is never returned. */ secret_key: { /** * Always `true`. Marks a stored secret whose value is hidden. */ 'hidden-secret'?: true; }; /** * The path prefix under which debug files are stored in the bucket or container. */ prefix?: string; /** * The ID of the source. */ id: string; /** * The human-readable name of the source. */ name?: string; /** * The directory layout the source uses to store debug files. */ layout: { /** * The directory layout, for example `native` or `symstore`. */ type: 'native' | 'symstore' | 'symstore_index2' | 'ssqp' | 'unified' | 'debuginfod' | 'slashsymbols' | 'nnsymstore'; /** * The casing applied to file paths on the source. */ casing?: 'lowercase' | 'uppercase' | 'default'; }; /** * Restrictions on which debug files are requested from the source. */ filters?: { /** * The file types requested from the source. Empty means all file types. */ filetypes?: Array<'pe' | 'pdb' | 'portablepdb' | 'mach_debug' | 'mach_code' | 'elf_debug' | 'elf_code' | 'wasm_debug' | 'wasm_code' | 'breakpad' | 'sourcebundle' | 'uuidmap' | 'bcsymbolmap' | 'il2cpp' | 'proguard' | 'dartsymbolmap'>; /** * Glob patterns matched against debug and code file paths. Only matching files are requested. Empty means no path filtering. */ path_patterns?: Array; /** * Whether requests to the source must include a debug checksum. */ requires_checksum?: boolean; }; /** * Whether the source is a public symbol server. */ is_public?: boolean; /** * Whether the source provides an index of its debug files to Symbolicator. */ has_index?: boolean; /** * The platforms an organization needs access to before the source is used. */ platforms?: Array; } | { /** * The source type, always `gcs`. */ type: 'gcs'; /** * The name of the Google Cloud Storage bucket. */ bucket: string; /** * The email address of the service account used for authentication. */ client_email: string; /** * A secret that is set. Its value is never returned. */ private_key: { /** * Always `true`. Marks a stored secret whose value is hidden. */ 'hidden-secret'?: true; }; /** * The path prefix under which debug files are stored in the bucket or container. */ prefix?: string; /** * The ID of the source. */ id: string; /** * The human-readable name of the source. */ name?: string; /** * The directory layout the source uses to store debug files. */ layout: { /** * The directory layout, for example `native` or `symstore`. */ type: 'native' | 'symstore' | 'symstore_index2' | 'ssqp' | 'unified' | 'debuginfod' | 'slashsymbols' | 'nnsymstore'; /** * The casing applied to file paths on the source. */ casing?: 'lowercase' | 'uppercase' | 'default'; }; /** * Restrictions on which debug files are requested from the source. */ filters?: { /** * The file types requested from the source. Empty means all file types. */ filetypes?: Array<'pe' | 'pdb' | 'portablepdb' | 'mach_debug' | 'mach_code' | 'elf_debug' | 'elf_code' | 'wasm_debug' | 'wasm_code' | 'breakpad' | 'sourcebundle' | 'uuidmap' | 'bcsymbolmap' | 'il2cpp' | 'proguard' | 'dartsymbolmap'>; /** * Glob patterns matched against debug and code file paths. Only matching files are requested. Empty means no path filtering. */ path_patterns?: Array; /** * Whether requests to the source must include a debug checksum. */ requires_checksum?: boolean; }; /** * Whether the source is a public symbol server. */ is_public?: boolean; /** * Whether the source provides an index of its debug files to Symbolicator. */ has_index?: boolean; /** * The platforms an organization needs access to before the source is used. */ platforms?: Array; } | { /** * The source type, always `azure`. */ type: 'azure'; /** * The name of the Azure storage account. */ account: string; /** * The name of the Azure blob container. */ container: string; /** * The Microsoft Entra tenant ID. */ tenant_id: string; /** * The Microsoft Entra application (client) ID. */ client_id: string; /** * A secret that is set. Its value is never returned. */ client_secret: { /** * Always `true`. Marks a stored secret whose value is hidden. */ 'hidden-secret'?: true; }; /** * The path prefix under which debug files are stored in the bucket or container. */ prefix?: string; /** * The ID of the source. */ id: string; /** * The human-readable name of the source. */ name?: string; /** * The directory layout the source uses to store debug files. */ layout: { /** * The directory layout, for example `native` or `symstore`. */ type: 'native' | 'symstore' | 'symstore_index2' | 'ssqp' | 'unified' | 'debuginfod' | 'slashsymbols' | 'nnsymstore'; /** * The casing applied to file paths on the source. */ casing?: 'lowercase' | 'uppercase' | 'default'; }; /** * Restrictions on which debug files are requested from the source. */ filters?: { /** * The file types requested from the source. Empty means all file types. */ filetypes?: Array<'pe' | 'pdb' | 'portablepdb' | 'mach_debug' | 'mach_code' | 'elf_debug' | 'elf_code' | 'wasm_debug' | 'wasm_code' | 'breakpad' | 'sourcebundle' | 'uuidmap' | 'bcsymbolmap' | 'il2cpp' | 'proguard' | 'dartsymbolmap'>; /** * Glob patterns matched against debug and code file paths. Only matching files are requested. Empty means no path filtering. */ path_patterns?: Array; /** * Whether requests to the source must include a debug checksum. */ requires_checksum?: boolean; }; /** * Whether the source is a public symbol server. */ is_public?: boolean; /** * Whether the source provides an index of its debug files to Symbolicator. */ has_index?: boolean; /** * The platforms an organization needs access to before the source is used. */ platforms?: Array; } | { /** * The source type, always `appStoreConnect`. */ type: 'appStoreConnect'; /** * The ID of the source. */ id: string; /** * The human-readable name of the source. */ name: string; /** * The issuer ID of the App Store Connect API key. */ appconnectIssuer: string; /** * The key ID of the App Store Connect API key. */ appconnectKey: string; /** * The private key of the App Store Connect API key. */ appconnectPrivateKey: string; /** * The name of the app in App Store Connect. */ appName: string; /** * The ID of the app in App Store Connect. */ appId: string; /** * The bundle ID of the app. */ bundleId: string; }; }; export type UpdateProjectSymbolSourceResponse = UpdateProjectSymbolSourceResponses[keyof UpdateProjectSymbolSourceResponses]; export type ListProjectTeamsData = { body?: never; path: { /** * The ID or slug of the organization the resource belongs to. */ organization_id_or_slug: string; /** * The ID or slug of the project the resource belongs to. Project slugs are unique within each organization. */ project_id_or_slug: string; }; query?: { /** * A pointer to the last object fetched and its sort order; used to retrieve the next or previous results. */ cursor?: string; }; url: '/projects/{organization_id_or_slug}/{project_id_or_slug}/teams/'; }; export type ListProjectTeamsErrors = { /** * Forbidden */ 403: unknown; /** * Not Found */ 404: unknown; }; export type ListProjectTeamsResponses = { 200: Array<{ /** * Team ID */ id: string; /** * Team slug, unique within the organization */ slug: string; /** * Display name of the team */ name: string; /** * When the team was created (ISO 8601) */ dateCreated: string | null; /** * Whether the requesting user is a member of the team */ isMember: boolean; /** * The requesting user's role in the team */ teamRole: string | null; /** * Team flags. idp:provisioned is true when the team is managed by an identity provider through SCIM */ flags: { [key: string]: boolean; }; /** * Scopes the requesting user has on the team through their team role. Empty if the user has no access */ access: Array; /** * Whether the requesting user can access the team, as a member, through open membership or through an organization role with access to all teams */ hasAccess: boolean; /** * Whether the requesting user has a pending request to join the team */ isPending: boolean; /** * Number of members in the team */ memberCount: number; /** * Team avatar */ avatar: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; }>; }; export type ListProjectTeamsResponse = ListProjectTeamsResponses[keyof ListProjectTeamsResponses]; export type DeleteProjectTeamData = { body?: never; path: { /** * The ID or slug of the organization the resource belongs to. */ organization_id_or_slug: string; /** * The ID or slug of the project the resource belongs to. Project slugs are unique within each organization. */ project_id_or_slug: string; /** * The ID or slug of the team the resource belongs to. */ team_id_or_slug: string; }; query?: never; url: '/projects/{organization_id_or_slug}/{project_id_or_slug}/teams/{team_id_or_slug}/'; }; export type DeleteProjectTeamErrors = { /** * Forbidden */ 403: unknown; /** * Not Found */ 404: unknown; }; export type DeleteProjectTeamResponses = { 200: { /** * Counts of non-transaction events per interval over the requested stats period, as [timestamp, count] pairs. Only included when a stats period is requested */ stats?: Array> | { [key: string]: number; }; /** * Counts of transactions per interval over the requested stats period, as [timestamp, count] pairs. Only included when transaction stats are requested */ transactionStats?: Array>; /** * Crash-free session rates for the current and previous stats period. Only included when session stats are requested */ sessionStats?: { /** * Crash-free rate in the current period, as a percentage. Null when there's no session data */ currentCrashFreeRate: number | null; /** * Crash-free rate in the previous period, as a percentage. Null when there's no session data */ previousCrashFreeRate: number | null; /** * Whether the project has release health (session) data */ hasHealthData: boolean; }; /** * ID of the project */ id: string; /** * Slug of the project */ slug: string; /** * Name of the project */ name: string; /** * Platform of the project */ platform: string | null; /** * When the project was created (ISO 8601) */ dateCreated: string; /** * Whether the requesting user bookmarked the project */ isBookmarked: boolean; /** * Whether the requesting user is a member of a team with access to the project */ isMember: boolean; /** * Features enabled for the project */ features: Array; /** * When the project received its first event (ISO 8601) */ firstEvent: string | null; /** * Whether the project has sent transactions */ firstTransactionEvent: boolean; /** * Scopes the requesting user has on the project through team membership and organization role */ access: Array; /** * Whether the requesting user has access to the project */ hasAccess: boolean; /** * Whether the project has sent user feedback */ hasFeedbacks: boolean; /** * Whether the project has sent feature flags */ hasFlags: boolean; /** * Whether the project has sent an event with a minified stack trace */ hasMinifiedStackTrace: boolean; /** * Whether the project has cron monitors */ hasMonitors: boolean; /** * Whether the project has sent user feedback from the user feedback widget */ hasNewFeedbacks: boolean; /** * Whether the project has sent profiles */ hasProfiles: boolean; /** * Whether the project has sent replays */ hasReplays: boolean; /** * Whether the project has sent sessions */ hasSessions: boolean; /** * Whether the project has sent HTTP request spans used by Insights */ hasInsightsHttp: boolean; /** * Whether the project has sent database spans used by Insights */ hasInsightsDb: boolean; /** * Whether the project has sent asset spans used by Insights */ hasInsightsAssets: boolean; /** * Whether the project has sent app start spans used by Insights */ hasInsightsAppStart: boolean; /** * Whether the project has sent screen load spans used by Insights */ hasInsightsScreenLoad: boolean; /** * Whether the project has sent web vitals spans used by Insights */ hasInsightsVitals: boolean; /** * Whether the project has sent cache spans used by Insights */ hasInsightsCaches: boolean; /** * Whether the project has sent queue spans used by Insights */ hasInsightsQueues: boolean; /** * Whether the project has sent AI agent spans used by Insights */ hasInsightsAgentMonitoring: boolean; /** * Whether the project has sent MCP spans used by Insights */ hasInsightsMCP: boolean; /** * Whether the project has sent logs. Always true outside sentry.io */ hasLogs: boolean; /** * Whether the project has sent trace metrics. Always true outside sentry.io */ hasTraceMetrics: boolean; /** * Whether this is the Sentry install's own internal project */ isInternal: boolean; /** * Whether the project is public */ isPublic: boolean; /** * Avatar of the project. Always a letter avatar */ avatar: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Hex color code for the project, derived from its slug unless set explicitly */ color: string; /** * Status of the project: active, deleted, or unknown */ status: string; /** * First team with access to the project; use teams instead */ team?: { /** * ID of the team */ id: string; /** * Name of the team */ name: string; /** * Slug of the team */ slug: string; }; /** * Teams with access to the project */ teams: Array<{ /** * ID of the team */ id: string; /** * Name of the team */ name: string; /** * Slug of the team */ slug: string; }>; }; }; export type DeleteProjectTeamResponse = DeleteProjectTeamResponses[keyof DeleteProjectTeamResponses]; export type AddProjectTeamData = { body?: never; path: { /** * The ID or slug of the organization the resource belongs to. */ organization_id_or_slug: string; /** * The ID or slug of the project the resource belongs to. Project slugs are unique within each organization. */ project_id_or_slug: string; /** * The ID or slug of the team the resource belongs to. */ team_id_or_slug: string; }; query?: never; url: '/projects/{organization_id_or_slug}/{project_id_or_slug}/teams/{team_id_or_slug}/'; }; export type AddProjectTeamErrors = { /** * Forbidden */ 403: unknown; /** * Not Found */ 404: unknown; }; export type AddProjectTeamResponses = { 201: { /** * Counts of non-transaction events per interval over the requested stats period, as [timestamp, count] pairs. Only included when a stats period is requested */ stats?: Array> | { [key: string]: number; }; /** * Counts of transactions per interval over the requested stats period, as [timestamp, count] pairs. Only included when transaction stats are requested */ transactionStats?: Array>; /** * Crash-free session rates for the current and previous stats period. Only included when session stats are requested */ sessionStats?: { /** * Crash-free rate in the current period, as a percentage. Null when there's no session data */ currentCrashFreeRate: number | null; /** * Crash-free rate in the previous period, as a percentage. Null when there's no session data */ previousCrashFreeRate: number | null; /** * Whether the project has release health (session) data */ hasHealthData: boolean; }; /** * ID of the project */ id: string; /** * Slug of the project */ slug: string; /** * Name of the project */ name: string; /** * Platform of the project */ platform: string | null; /** * When the project was created (ISO 8601) */ dateCreated: string; /** * Whether the requesting user bookmarked the project */ isBookmarked: boolean; /** * Whether the requesting user is a member of a team with access to the project */ isMember: boolean; /** * Features enabled for the project */ features: Array; /** * When the project received its first event (ISO 8601) */ firstEvent: string | null; /** * Whether the project has sent transactions */ firstTransactionEvent: boolean; /** * Scopes the requesting user has on the project through team membership and organization role */ access: Array; /** * Whether the requesting user has access to the project */ hasAccess: boolean; /** * Whether the project has sent user feedback */ hasFeedbacks: boolean; /** * Whether the project has sent feature flags */ hasFlags: boolean; /** * Whether the project has sent an event with a minified stack trace */ hasMinifiedStackTrace: boolean; /** * Whether the project has cron monitors */ hasMonitors: boolean; /** * Whether the project has sent user feedback from the user feedback widget */ hasNewFeedbacks: boolean; /** * Whether the project has sent profiles */ hasProfiles: boolean; /** * Whether the project has sent replays */ hasReplays: boolean; /** * Whether the project has sent sessions */ hasSessions: boolean; /** * Whether the project has sent HTTP request spans used by Insights */ hasInsightsHttp: boolean; /** * Whether the project has sent database spans used by Insights */ hasInsightsDb: boolean; /** * Whether the project has sent asset spans used by Insights */ hasInsightsAssets: boolean; /** * Whether the project has sent app start spans used by Insights */ hasInsightsAppStart: boolean; /** * Whether the project has sent screen load spans used by Insights */ hasInsightsScreenLoad: boolean; /** * Whether the project has sent web vitals spans used by Insights */ hasInsightsVitals: boolean; /** * Whether the project has sent cache spans used by Insights */ hasInsightsCaches: boolean; /** * Whether the project has sent queue spans used by Insights */ hasInsightsQueues: boolean; /** * Whether the project has sent AI agent spans used by Insights */ hasInsightsAgentMonitoring: boolean; /** * Whether the project has sent MCP spans used by Insights */ hasInsightsMCP: boolean; /** * Whether the project has sent logs. Always true outside sentry.io */ hasLogs: boolean; /** * Whether the project has sent trace metrics. Always true outside sentry.io */ hasTraceMetrics: boolean; /** * Whether this is the Sentry install's own internal project */ isInternal: boolean; /** * Whether the project is public */ isPublic: boolean; /** * Avatar of the project. Always a letter avatar */ avatar: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Hex color code for the project, derived from its slug unless set explicitly */ color: string; /** * Status of the project: active, deleted, or unknown */ status: string; /** * First team with access to the project; use teams instead */ team?: { /** * ID of the team */ id: string; /** * Name of the team */ name: string; /** * Slug of the team */ slug: string; }; /** * Teams with access to the project */ teams: Array<{ /** * ID of the team */ id: string; /** * Name of the team */ name: string; /** * Slug of the team */ slug: string; }>; }; }; export type AddProjectTeamResponse = AddProjectTeamResponses[keyof AddProjectTeamResponses]; export type RetrieveProjectTraceItemData = { body?: never; path: { /** * The ID or slug of the organization the resource belongs to. */ organization_id_or_slug: string; /** * The ID or slug of the project the resource belongs to. Project slugs are unique within each organization. */ project_id_or_slug: string; /** * The hexadecimal ID of the item: the 16-character span ID for a span, or the 32-character item ID for other item types */ item_id: string; }; query: { /** * The 32-character ID of the trace the item belongs to */ trace_id: string; /** * The type of the item */ item_type: 'attachments' | 'logs' | 'occurrences' | 'preprod' | 'processing_errors' | 'profile_functions' | 'spans' | 'tracemetrics' | 'uptime_results'; /** * The opaque `meta.routingHint` of the events response that contained the item. Pass it unchanged to look the item up in the same storage. When it's omitted or empty, the default storage is used */ routing_hint?: string; /** * When the item happened, as an ISO 8601 timestamp or Unix seconds. The lookup is narrowed to a few minutes around it, which makes it faster */ timestamp?: string; /** * The period of time for the query, will override the start & end parameters, a number followed by one of: * - `d` for days * - `h` for hours * - `m` for minutes * - `s` for seconds * - `w` for weeks * * For example, `24h`, to mean query data starting from 24 hours ago to now. */ statsPeriod?: string; /** * The start of the period of time for the query, expected in ISO-8601 format. For example, `2001-12-14T12:34:56.7890`. */ start?: string; /** * The end of the period of time for the query, expected in ISO-8601 format. For example, `2001-12-14T12:34:56.7890`. */ end?: string; }; url: '/projects/{organization_id_or_slug}/{project_id_or_slug}/trace-items/{item_id}/'; }; export type RetrieveProjectTraceItemErrors = { /** * Bad Request */ 400: unknown; /** * Unauthorized */ 401: unknown; /** * Forbidden */ 403: unknown; /** * Not Found */ 404: unknown; }; export type RetrieveProjectTraceItemResponses = { 200: { /** * The ID of the item. For a span, this is the 16-character span ID */ itemId: string; /** * When the item happened, as an RFC 3339 UTC timestamp ending in `Z` */ timestamp: string; /** * The attributes of the item, sorted by type and then by name */ attributes: Array<{ /** * The public name of the attribute, such as `severity`. A custom number or boolean attribute is named `tags[,number]` or `tags[,boolean]` */ name: string; /** * The name the attribute is stored under */ rawName?: string; /** * The type of the attribute value: `str`, `int`, `float`, `bool` or `array` */ type: 'str' | 'int' | 'float' | 'bool' | 'array'; /** * The attribute value. An `int` value is a string, so 64-bit integers keep their precision. An `array` value is a list of values of one type */ value: number | boolean | string | Array; }>; /** * Processing metadata, keyed by attribute name, for attributes that were changed during ingestion, such as a value that was trimmed for length */ meta: { [key: string]: { [key: string]: unknown; } | null | Array | string | number | boolean; }; /** * The span links of the item, or null if it has none */ links: Array<{ /** * The ID of the linked span */ itemId: string; /** * The ID of the trace the linked span belongs to */ traceId: string; /** * Whether the linked span was sampled */ sampled?: boolean; /** * The attributes of the link. Attributes with values that aren't a string, number or boolean are left out */ attributes?: Array<{ /** * The name of the link attribute, such as `sentry.link.type` */ name: string; /** * The link attribute value */ value: string | number | number | boolean; /** * The type of the link attribute value */ type: 'str' | 'int' | 'float' | 'bool'; }>; }> | null; /** * Fields of the event the item came from that are stored with it. Only present when at least one of them is */ event?: { /** * The contexts of the event the item came from */ contexts?: { [key: string]: unknown; } | null | Array | string | number | boolean; /** * The extra data of the event the item came from */ extra?: { [key: string]: unknown; } | null | Array | string | number | boolean; /** * The breadcrumbs of the event the item came from. Breadcrumb timestamps are ISO 8601 strings */ breadcrumbs?: { [key: string]: unknown; } | null | Array | string | number | boolean; }; }; }; export type RetrieveProjectTraceItemResponse = RetrieveProjectTraceItemResponses[keyof RetrieveProjectTraceItemResponses]; export type ListProjectUserFeedbackData = { body?: never; path: { /** * The ID or slug of the organization the resource belongs to. */ organization_id_or_slug: string; /** * The ID or slug of the project the resource belongs to. Project slugs are unique within each organization. */ project_id_or_slug: string; }; query?: { /** * A pointer to the last object fetched and its sort order; used to retrieve the next or previous results. */ cursor?: string; }; url: '/projects/{organization_id_or_slug}/{project_id_or_slug}/user-feedback/'; }; export type ListProjectUserFeedbackErrors = { /** * Forbidden */ 403: unknown; /** * Not Found */ 404: unknown; }; export type ListProjectUserFeedbackResponses = { /** * Success */ 200: Array<{ /** * ID of the feedback */ id: string; /** * ID of the event the feedback is attached to */ eventID: string; /** * Name of the user who submitted the feedback. Falls back to the feedback's email address, then to the event user's name */ name: string | null; /** * Email address of the user who submitted the feedback. Falls back to the event user's email address */ email: string | null; /** * Comments the user submitted */ comments: string; /** * When the feedback was submitted (ISO 8601) */ dateCreated: string; /** * User recorded on the feedback's event. Null when the event isn't found or has no user */ user: { /** * ID of the user, as sent with the event */ id: string; /** * Username sent with the event */ username: string | null; /** * Email address sent with the event */ email: string | null; /** * Display name of the user: the name, email address or username sent with the event, whichever is set first */ name: string | null; /** * IP address sent with the event */ ipAddress: string | null; /** * Gravatar URL for the user's email address */ avatarUrl: string | null; } | null; /** * Event the feedback is attached to */ event: { /** * ID of the event the feedback is attached to */ id: string; /** * ID of the event the feedback is attached to */ eventID: string; }; /** * Issue the feedback's event belongs to. Null when the feedback isn't linked to an issue */ issue: { /** * Whether the issue includes unhandled events */ isUnhandled?: boolean; /** * Total number of events in the issue */ count?: string; /** * Number of users affected by the issue */ userCount?: number; /** * When the issue was first seen (ISO 8601) */ firstSeen?: string | null; /** * When the issue was last seen (ISO 8601) */ lastSeen?: string | null; /** * Additional data derived for the issue. Only included when requested with expand */ derivedData?: { /** * Action that blocks progress on the issue: none, approve_root_cause, approve_plan, approve_code_changes or merge_pr */ blocker: string; /** * How far the issue is toward resolution: identified, assigned, diagnosed, fix_proposed or fix_applied */ progress: string; /** * Status of the issue from its action log: open or closed */ status: string; /** * Number of times the issue was viewed */ viewCount: number; /** * Whether an open pull request is linked to the issue */ hasOpenFixPr: boolean; /** * Whether the issue has an assignee */ isAssigned: boolean; /** * Whether a root cause was found for the issue */ hasRootCause: boolean; /** * Furthest Autofix step completed: none, root_cause, solution, code_changes, pr_created or pr_iteration */ lastCompletedAutofixStep: string; /** * When the issue's progress last advanced (ISO 8601) */ lastProgressedAt: string | null; /** * The issue's impact assessment, or null when no assessment is available */ impact?: { /** * Estimated per-occurrence impact on the end user's capability from 0 to 100 */ score: number | null; /** * Impact level derived from the assessment score */ level: 'super_low' | 'low' | 'moderate' | 'high' | 'super_high' | null; /** * Human-readable description of the capability affected by the issue */ description: string; /** * Evidence-backed claims supporting the impact assessment */ citations: Array<{ /** * Stable identifier for the evidence supporting this claim */ reference: string; /** * Concise explanation of what the cited evidence establishes */ claim: string; /** * The category of evidence cited, such as an event, trace, replay, or log */ source: string; }>; /** * ID of the issue event used to generate the impact assessment */ sourceEventId: string; } | null; }; /** * ID of the issue */ id: string; /** * ID used in the issue's public share URL. Null when the issue isn't shared */ shareId: string | null; /** * Short ID of the issue, such as PROJECT-1A */ shortId: string | null; /** * Title of the issue */ title: string; /** * Function or module where the issue occurs */ culprit: string | null; /** * URL of the issue in Sentry */ permalink: string; /** * Logger of the issue's events */ logger: string | null; /** * Severity level of the issue */ level: 'sample' | 'debug' | 'info' | 'warning' | 'error' | 'fatal' | 'unknown'; /** * Issue status */ status: 'resolved' | 'ignored' | 'pending_deletion' | 'pending_merge' | 'reprocessing' | 'unresolved'; /** * Details of the issue's status, such as when an ignore expires or which release resolves it */ statusDetails: { /** * Number of additional events after which the issue stops being ignored */ ignoreCount?: number | null; /** * When the issue stops being ignored (ISO 8601) */ ignoreUntil?: string | null; /** * Number of additional affected users after which the issue stops being ignored */ ignoreUserCount?: number | null; /** * Time window in minutes for ignoreUserCount */ ignoreUserWindow?: number | null; /** * Time window in minutes for ignoreCount */ ignoreWindow?: number | null; /** * User who ignored or resolved the issue */ actor?: { /** * SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access */ identities?: Array<{ /** * SSO identity ID */ id: string; /** * User's identifier at the auth provider */ name: string; /** * Organization the auth provider belongs to */ organization: { /** * Organization slug */ slug: string; /** * Organization name */ name: string; }; /** * Auth provider of the identity */ provider: { /** * Auth provider key, such as google or saml2 */ id: string; /** * Display name of the auth provider */ name: string; }; /** * When the identity was last verified by signing in through the auth provider */ dateVerified: string; /** * When the identity was last synced from the auth provider */ dateSynced: string; }>; /** * User avatar */ avatar?: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Two-factor authenticators of the user, without backup methods such as recovery codes */ authenticators?: Array<{ /** * Authenticator ID */ id: string; /** * Authenticator type, such as totp, sms, u2f or recovery */ type: string; /** * Display name of the authenticator type */ name: string; /** * When the authenticator was added */ dateCreated: string; /** * When the authenticator was last used, or null */ dateUsed: string | null; }>; /** * Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization */ canReset2fa?: boolean; /** * User ID */ id: string; /** * Display name: the user's name, or their email or username if no name is set */ name: string; /** * Username */ username: string; /** * Primary email address */ email: string; /** * Gravatar URL for the primary email address */ avatarUrl: string; /** * Whether the account is active */ isActive: boolean; /** * Whether the account is suspended. Suspended users can't sign in */ isSuspended: boolean; /** * Whether the user has a password set */ hasPasswordAuth: boolean; /** * Whether the account is managed, which stops the user from changing their username, password and similar details */ isManaged: boolean; /** * When the account was created */ dateJoined: string; /** * When the user last signed in, or null */ lastLogin: string | null; /** * Whether the user has two-factor authentication enabled */ has2fa: boolean; /** * When the user was last active, or null */ lastActive: string | null; /** * Whether the user is a superuser */ isSuperuser: boolean; /** * Whether the user has staff status */ isStaff: boolean; /** * Deprecated. Always an empty object */ experiments: { [key: string]: string; }; /** * Email addresses of the user. Only included for the requesting user or superusers; empty otherwise */ emails: Array<{ /** * Email ID */ id: string; /** * Email address */ email: string; /** * Whether the email address is verified */ is_verified: boolean; }>; } | null; /** * Whether the issue is resolved in the next release */ inNextRelease?: boolean; /** * Version of the release the issue is resolved in */ inRelease?: string; /** * Commit the issue is resolved in */ inCommit?: string; /** * Number of events still waiting to be reprocessed */ pendingEvents?: number; /** * Reprocessing progress details */ info?: { /** * When reprocessing started (ISO 8601) */ dateCreated: string; /** * Number of events in the issue when reprocessing started */ syncCount: number; /** * Number of events to reprocess, at most the requested maximum */ totalEvents: number; } | null; }; /** * Substatus of the issue, such as ongoing, regressed or escalating */ substatus: 'archived_until_escalating' | 'archived_until_condition_met' | 'archived_forever' | 'escalating' | 'ongoing' | 'regressed' | 'new' | null; /** * Whether the issue is shared publicly */ isPublic: boolean; /** * Platform of the issue's events */ platform: string | null; /** * Priority of the issue: high, medium or low */ priority: 'low' | 'medium' | 'high' | null; /** * When the priority was last set manually, which stops automatic priority updates (ISO 8601) */ priorityLockedAt: string | null; /** * Seer's score for how likely the issue is to be fixable */ seerFixabilityScore: number | null; /** * When Seer Autofix was last triggered for the issue (ISO 8601) */ seerAutofixLastTriggered: string | null; /** * When the Seer explorer agent last completed an Autofix step for the issue (ISO 8601) */ seerExplorerAutofixLastTriggered: string | null; /** * Project the issue belongs to */ project: { /** * ID of the project */ id: string; /** * Name of the project */ name: string; /** * Slug of the project */ slug: string; /** * Platform of the project */ platform: string | null; }; /** * Event type of the issue, such as error or default */ type: 'default' | 'error' | 'csp' | 'nel' | 'hpkp' | 'expectct' | 'expectstaple' | 'transaction' | 'generic' | 'feedback'; /** * Issue type, such as error or performance_n_plus_one_db_queries */ issueType: string; /** * Issue category, such as error or performance */ issueCategory: string; /** * Issue metadata */ metadata: { /** * Title of default and issue platform events */ title?: string; /** * Exception value, or the subtitle of an issue */ value?: string; /** * Exception type of error events */ type?: string; /** * Whether the SDK fabricated the exception to carry a stacktrace, so its type is a platform label rather than what went wrong */ synthetic?: boolean; /** * File of the frame where the error happened */ filename?: string; /** * Function of the frame where the error happened */ function?: string; /** * Message of default, security and feedback events */ message?: string; /** * URI that a CSP report blocked */ uri?: string; /** * CSP directive that was violated */ directive?: string; /** * Host name of HPKP, Expect-CT and Expect-Staple reports */ origin?: string; /** * Name of the person who sent user feedback */ name?: string; /** * Email of the person who sent user feedback */ contact_email?: string; /** * Where user feedback came from, such as a widget */ source?: string; /** * Whether the stacktrace has in-app frames, system frames or both */ in_app_frame_mix?: string; /** * Whether a crash report was dropped because the issue already stores the most allowed */ stripped_crash?: boolean; /** * SDK of the issue's first event */ sdk?: { /** * Name of the SDK, or unknown */ name: string; /** * Name of the SDK, normalized for grouping */ name_normalized: string; }; /** * Severity score of the issue's first event */ severity?: number; /** * Why the severity score is what it is */ severity_reason?: string; /** * Priority the issue was created with */ initial_priority?: number; }; /** * Number of comments on the issue */ numComments: number; /** * User or team the issue is assigned to */ assignedTo: { /** * Whether the actor is a user or a team */ type: 'user' | 'team'; /** * ID of the user or team */ id: string; /** * Display name of the user, or slug of the team */ name: string; /** * Email address of the user. Only set for users */ email?: string; } | null; /** * Whether the requesting user bookmarked the issue */ isBookmarked: boolean; /** * Whether the requesting user is subscribed to the issue */ isSubscribed: boolean; /** * Why the requesting user is subscribed to the issue */ subscriptionDetails: { /** * Whether the requesting user turned off notifications for the issue */ disabled?: boolean; /** * Why the requesting user is subscribed: commented, assigned, bookmarked, changed_status, mentioned or unknown */ reason?: string; } | null; /** * Whether the requesting user has seen the issue since it last occurred */ hasSeen: boolean; /** * External issues linked to the issue */ annotations: Array<{ /** * Display name of the linked external issue */ displayName: string; /** * URL of the linked external issue */ url: string; }>; } | null; }>; }; export type ListProjectUserFeedbackResponse2 = ListProjectUserFeedbackResponses[keyof ListProjectUserFeedbackResponses]; export type CreateProjectUserFeedbackData = { body: { /** * User's name. */ name: string; /** * User's email address. */ email: string; /** * Comments supplied by user. */ comments: string; /** * The event ID. This can be retrieved from the [beforeSend callback](https://docs.sentry.io/platforms/javascript/configuration/filtering/#using-beforesend). */ event_id: string; }; path: { /** * The ID or slug of the organization the resource belongs to. */ organization_id_or_slug: string; /** * The ID or slug of the project the resource belongs to. Project slugs are unique within each organization. */ project_id_or_slug: string; }; query?: never; url: '/projects/{organization_id_or_slug}/{project_id_or_slug}/user-feedback/'; }; export type CreateProjectUserFeedbackErrors = { /** * Bad Input */ 400: unknown; /** * Forbidden */ 403: unknown; /** * The requested resource does not exist */ 404: unknown; /** * Conflict */ 409: unknown; }; export type CreateProjectUserFeedbackResponses = { /** * Success */ 200: { /** * ID of the feedback */ id: string; /** * ID of the event the feedback is attached to */ eventID: string; /** * Name of the user who submitted the feedback. Falls back to the feedback's email address, then to the event user's name */ name: string | null; /** * Email address of the user who submitted the feedback. Falls back to the event user's email address */ email: string | null; /** * Comments the user submitted */ comments: string; /** * When the feedback was submitted (ISO 8601) */ dateCreated: string; /** * User recorded on the feedback's event. Null when the event isn't found or has no user */ user: { /** * ID of the user, as sent with the event */ id: string; /** * Username sent with the event */ username: string | null; /** * Email address sent with the event */ email: string | null; /** * Display name of the user: the name, email address or username sent with the event, whichever is set first */ name: string | null; /** * IP address sent with the event */ ipAddress: string | null; /** * Gravatar URL for the user's email address */ avatarUrl: string | null; } | null; /** * Event the feedback is attached to */ event: { /** * ID of the event the feedback is attached to */ id: string; /** * ID of the event the feedback is attached to */ eventID: string; }; /** * Issue the feedback's event belongs to. Null when the feedback isn't linked to an issue */ issue: { /** * Whether the issue includes unhandled events */ isUnhandled?: boolean; /** * Total number of events in the issue */ count?: string; /** * Number of users affected by the issue */ userCount?: number; /** * When the issue was first seen (ISO 8601) */ firstSeen?: string | null; /** * When the issue was last seen (ISO 8601) */ lastSeen?: string | null; /** * Additional data derived for the issue. Only included when requested with expand */ derivedData?: { /** * Action that blocks progress on the issue: none, approve_root_cause, approve_plan, approve_code_changes or merge_pr */ blocker: string; /** * How far the issue is toward resolution: identified, assigned, diagnosed, fix_proposed or fix_applied */ progress: string; /** * Status of the issue from its action log: open or closed */ status: string; /** * Number of times the issue was viewed */ viewCount: number; /** * Whether an open pull request is linked to the issue */ hasOpenFixPr: boolean; /** * Whether the issue has an assignee */ isAssigned: boolean; /** * Whether a root cause was found for the issue */ hasRootCause: boolean; /** * Furthest Autofix step completed: none, root_cause, solution, code_changes, pr_created or pr_iteration */ lastCompletedAutofixStep: string; /** * When the issue's progress last advanced (ISO 8601) */ lastProgressedAt: string | null; /** * The issue's impact assessment, or null when no assessment is available */ impact?: { /** * Estimated per-occurrence impact on the end user's capability from 0 to 100 */ score: number | null; /** * Impact level derived from the assessment score */ level: 'super_low' | 'low' | 'moderate' | 'high' | 'super_high' | null; /** * Human-readable description of the capability affected by the issue */ description: string; /** * Evidence-backed claims supporting the impact assessment */ citations: Array<{ /** * Stable identifier for the evidence supporting this claim */ reference: string; /** * Concise explanation of what the cited evidence establishes */ claim: string; /** * The category of evidence cited, such as an event, trace, replay, or log */ source: string; }>; /** * ID of the issue event used to generate the impact assessment */ sourceEventId: string; } | null; }; /** * ID of the issue */ id: string; /** * ID used in the issue's public share URL. Null when the issue isn't shared */ shareId: string | null; /** * Short ID of the issue, such as PROJECT-1A */ shortId: string | null; /** * Title of the issue */ title: string; /** * Function or module where the issue occurs */ culprit: string | null; /** * URL of the issue in Sentry */ permalink: string; /** * Logger of the issue's events */ logger: string | null; /** * Severity level of the issue */ level: 'sample' | 'debug' | 'info' | 'warning' | 'error' | 'fatal' | 'unknown'; /** * Issue status */ status: 'resolved' | 'ignored' | 'pending_deletion' | 'pending_merge' | 'reprocessing' | 'unresolved'; /** * Details of the issue's status, such as when an ignore expires or which release resolves it */ statusDetails: { /** * Number of additional events after which the issue stops being ignored */ ignoreCount?: number | null; /** * When the issue stops being ignored (ISO 8601) */ ignoreUntil?: string | null; /** * Number of additional affected users after which the issue stops being ignored */ ignoreUserCount?: number | null; /** * Time window in minutes for ignoreUserCount */ ignoreUserWindow?: number | null; /** * Time window in minutes for ignoreCount */ ignoreWindow?: number | null; /** * User who ignored or resolved the issue */ actor?: { /** * SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access */ identities?: Array<{ /** * SSO identity ID */ id: string; /** * User's identifier at the auth provider */ name: string; /** * Organization the auth provider belongs to */ organization: { /** * Organization slug */ slug: string; /** * Organization name */ name: string; }; /** * Auth provider of the identity */ provider: { /** * Auth provider key, such as google or saml2 */ id: string; /** * Display name of the auth provider */ name: string; }; /** * When the identity was last verified by signing in through the auth provider */ dateVerified: string; /** * When the identity was last synced from the auth provider */ dateSynced: string; }>; /** * User avatar */ avatar?: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Two-factor authenticators of the user, without backup methods such as recovery codes */ authenticators?: Array<{ /** * Authenticator ID */ id: string; /** * Authenticator type, such as totp, sms, u2f or recovery */ type: string; /** * Display name of the authenticator type */ name: string; /** * When the authenticator was added */ dateCreated: string; /** * When the authenticator was last used, or null */ dateUsed: string | null; }>; /** * Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization */ canReset2fa?: boolean; /** * User ID */ id: string; /** * Display name: the user's name, or their email or username if no name is set */ name: string; /** * Username */ username: string; /** * Primary email address */ email: string; /** * Gravatar URL for the primary email address */ avatarUrl: string; /** * Whether the account is active */ isActive: boolean; /** * Whether the account is suspended. Suspended users can't sign in */ isSuspended: boolean; /** * Whether the user has a password set */ hasPasswordAuth: boolean; /** * Whether the account is managed, which stops the user from changing their username, password and similar details */ isManaged: boolean; /** * When the account was created */ dateJoined: string; /** * When the user last signed in, or null */ lastLogin: string | null; /** * Whether the user has two-factor authentication enabled */ has2fa: boolean; /** * When the user was last active, or null */ lastActive: string | null; /** * Whether the user is a superuser */ isSuperuser: boolean; /** * Whether the user has staff status */ isStaff: boolean; /** * Deprecated. Always an empty object */ experiments: { [key: string]: string; }; /** * Email addresses of the user. Only included for the requesting user or superusers; empty otherwise */ emails: Array<{ /** * Email ID */ id: string; /** * Email address */ email: string; /** * Whether the email address is verified */ is_verified: boolean; }>; } | null; /** * Whether the issue is resolved in the next release */ inNextRelease?: boolean; /** * Version of the release the issue is resolved in */ inRelease?: string; /** * Commit the issue is resolved in */ inCommit?: string; /** * Number of events still waiting to be reprocessed */ pendingEvents?: number; /** * Reprocessing progress details */ info?: { /** * When reprocessing started (ISO 8601) */ dateCreated: string; /** * Number of events in the issue when reprocessing started */ syncCount: number; /** * Number of events to reprocess, at most the requested maximum */ totalEvents: number; } | null; }; /** * Substatus of the issue, such as ongoing, regressed or escalating */ substatus: 'archived_until_escalating' | 'archived_until_condition_met' | 'archived_forever' | 'escalating' | 'ongoing' | 'regressed' | 'new' | null; /** * Whether the issue is shared publicly */ isPublic: boolean; /** * Platform of the issue's events */ platform: string | null; /** * Priority of the issue: high, medium or low */ priority: 'low' | 'medium' | 'high' | null; /** * When the priority was last set manually, which stops automatic priority updates (ISO 8601) */ priorityLockedAt: string | null; /** * Seer's score for how likely the issue is to be fixable */ seerFixabilityScore: number | null; /** * When Seer Autofix was last triggered for the issue (ISO 8601) */ seerAutofixLastTriggered: string | null; /** * When the Seer explorer agent last completed an Autofix step for the issue (ISO 8601) */ seerExplorerAutofixLastTriggered: string | null; /** * Project the issue belongs to */ project: { /** * ID of the project */ id: string; /** * Name of the project */ name: string; /** * Slug of the project */ slug: string; /** * Platform of the project */ platform: string | null; }; /** * Event type of the issue, such as error or default */ type: 'default' | 'error' | 'csp' | 'nel' | 'hpkp' | 'expectct' | 'expectstaple' | 'transaction' | 'generic' | 'feedback'; /** * Issue type, such as error or performance_n_plus_one_db_queries */ issueType: string; /** * Issue category, such as error or performance */ issueCategory: string; /** * Issue metadata */ metadata: { /** * Title of default and issue platform events */ title?: string; /** * Exception value, or the subtitle of an issue */ value?: string; /** * Exception type of error events */ type?: string; /** * Whether the SDK fabricated the exception to carry a stacktrace, so its type is a platform label rather than what went wrong */ synthetic?: boolean; /** * File of the frame where the error happened */ filename?: string; /** * Function of the frame where the error happened */ function?: string; /** * Message of default, security and feedback events */ message?: string; /** * URI that a CSP report blocked */ uri?: string; /** * CSP directive that was violated */ directive?: string; /** * Host name of HPKP, Expect-CT and Expect-Staple reports */ origin?: string; /** * Name of the person who sent user feedback */ name?: string; /** * Email of the person who sent user feedback */ contact_email?: string; /** * Where user feedback came from, such as a widget */ source?: string; /** * Whether the stacktrace has in-app frames, system frames or both */ in_app_frame_mix?: string; /** * Whether a crash report was dropped because the issue already stores the most allowed */ stripped_crash?: boolean; /** * SDK of the issue's first event */ sdk?: { /** * Name of the SDK, or unknown */ name: string; /** * Name of the SDK, normalized for grouping */ name_normalized: string; }; /** * Severity score of the issue's first event */ severity?: number; /** * Why the severity score is what it is */ severity_reason?: string; /** * Priority the issue was created with */ initial_priority?: number; }; /** * Number of comments on the issue */ numComments: number; /** * User or team the issue is assigned to */ assignedTo: { /** * Whether the actor is a user or a team */ type: 'user' | 'team'; /** * ID of the user or team */ id: string; /** * Display name of the user, or slug of the team */ name: string; /** * Email address of the user. Only set for users */ email?: string; } | null; /** * Whether the requesting user bookmarked the issue */ isBookmarked: boolean; /** * Whether the requesting user is subscribed to the issue */ isSubscribed: boolean; /** * Why the requesting user is subscribed to the issue */ subscriptionDetails: { /** * Whether the requesting user turned off notifications for the issue */ disabled?: boolean; /** * Why the requesting user is subscribed: commented, assigned, bookmarked, changed_status, mentioned or unknown */ reason?: string; } | null; /** * Whether the requesting user has seen the issue since it last occurred */ hasSeen: boolean; /** * External issues linked to the issue */ annotations: Array<{ /** * Display name of the linked external issue */ displayName: string; /** * URL of the linked external issue */ url: string; }>; } | null; }; }; export type CreateProjectUserFeedbackResponse = CreateProjectUserFeedbackResponses[keyof CreateProjectUserFeedbackResponses]; export type ListProjectUsersData = { body?: never; path: { /** * The ID or slug of the organization the resource belongs to. */ organization_id_or_slug: string; /** * The ID or slug of the project the resource belongs to. Project slugs are unique within each organization. */ project_id_or_slug: string; }; query?: { /** * Limit results to users matching the given query. Prefixes should be used to suggest the field to match on: `id`, `email`, `username`, `ip`. For example, `query=email:foo@example.com`. */ query?: string; /** * A pointer to the last object fetched and its sort order; used to retrieve the next or previous results. */ cursor?: string; }; url: '/projects/{organization_id_or_slug}/{project_id_or_slug}/users/'; }; export type ListProjectUsersErrors = { /** * Unauthorized */ 401: unknown; /** * Forbidden */ 403: unknown; /** * Not Found */ 404: unknown; }; export type ListProjectUsersResponses = { 200: Array<{ /** * ID of the legacy EventUser record. Null for users built from events */ id: string | null; /** * Value of the user tag that matches the user, such as id:123 or email:jane@example.com */ tagValue: string | null; /** * ID the SDK sent for the user */ identifier: number | string | null; /** * Username the SDK sent for the user */ username: string | null; /** * Email address the SDK sent for the user */ email: string | null; /** * Display name of the user */ name: string | null; /** * IP address of the user */ ipAddress: string | null; /** * Gravatar URL of the user's email address */ avatarUrl: string; /** * MD5 hash of the first set user attribute: id, username, email or IP address */ hash: string | null; /** * Legacy field, always null */ dateCreated: string | null; }>; }; export type ListProjectUsersResponse2 = ListProjectUsersResponses[keyof ListProjectUsersResponses]; export type ListSeerModelsData = { body?: never; path?: never; query?: never; url: '/seer/models/'; }; export type ListSeerModelsResponses = { /** * Response containing list of actively used LLM model names from Seer. */ 200: { /** * Names of the LLM models Seer uses */ models: Array; }; }; export type ListSeerModelsResponse = ListSeerModelsResponses[keyof ListSeerModelsResponses]; export type ExecuteSentryAppInstallationExternalIssueActionData = { body: { /** * The numeric Sentry issue ID. */ groupId: string; /** * The action to perform: `link` or `create`. */ action: 'link' | 'create'; /** * The relative callback URI from the app's issue-link form. */ uri: string; [key: string]: unknown; }; path: { /** * The UUID of the Sentry App installation. */ uuid: string; }; query?: { /** * The exact canonical webUrl of the external issue to link. Only supported for action=link. An existing matching association is a no-op; a different association or callback URL returns 409 without replacing the link. */ expectedExternalIssueUrl?: string; }; url: '/sentry-app-installations/{uuid}/external-issue-actions/'; }; export type ExecuteSentryAppInstallationExternalIssueActionErrors = { /** * Bad Request */ 400: unknown; /** * Unauthorized */ 401: unknown; /** * Forbidden */ 403: unknown; /** * Not Found */ 404: unknown; /** * Conflict */ 409: unknown; }; export type ExecuteSentryAppInstallationExternalIssueActionResponses = { 200: { /** * ID of the external issue link */ id: string; /** * ID of the Sentry issue */ issueId: string; /** * Slug of the custom integration that created the external issue */ serviceType: string; /** * Display name of the external issue, such as ABC-123 */ displayName: string; /** * URL of the external issue */ webUrl: string; }; 201: { /** * ID of the external issue link */ id: string; /** * ID of the Sentry issue */ issueId: string; /** * Slug of the custom integration that created the external issue */ serviceType: string; /** * Display name of the external issue, such as ABC-123 */ displayName: string; /** * URL of the external issue */ webUrl: string; }; }; export type ExecuteSentryAppInstallationExternalIssueActionResponse = ExecuteSentryAppInstallationExternalIssueActionResponses[keyof ExecuteSentryAppInstallationExternalIssueActionResponses]; export type GetSentryAppInstallationExternalRequestOptionsData = { body?: never; path: { /** * The UUID of the Sentry App installation. */ uuid: string; }; query: { /** * The relative URI of the select field's options callback. */ uri: string; /** * The Sentry project ID to include in the options request. */ projectId?: number; /** * The search text for select options. */ query?: string; /** * A JSON-encoded object containing the values of fields this select depends on. */ dependentData?: string; }; url: '/sentry-app-installations/{uuid}/external-requests/'; }; export type GetSentryAppInstallationExternalRequestOptionsErrors = { /** * Bad Request */ 400: unknown; /** * Unauthorized */ 401: unknown; /** * Forbidden */ 403: unknown; /** * Not Found */ 404: unknown; }; export type GetSentryAppInstallationExternalRequestOptionsResponses = { 200: { /** * Select options returned by the installed app. Each choice is a `[value, label]` pair */ choices: Array>; /** * Value of the option to select by default, if the app returned one */ defaultValue?: string; }; }; export type GetSentryAppInstallationExternalRequestOptionsResponse = GetSentryAppInstallationExternalRequestOptionsResponses[keyof GetSentryAppInstallationExternalRequestOptionsResponses]; export type DeleteSentryAppData = { body?: never; path: { /** * The ID or slug of the custom integration. */ sentry_app_id_or_slug: string; }; query?: never; url: '/sentry-apps/{sentry_app_id_or_slug}/'; }; export type DeleteSentryAppErrors = { /** * Forbidden */ 403: unknown; }; export type DeleteSentryAppResponses = { /** * No Content */ 204: void; }; export type DeleteSentryAppResponse = DeleteSentryAppResponses[keyof DeleteSentryAppResponses]; export type GetSentryAppData = { body?: never; path: { /** * The ID or slug of the custom integration. */ sentry_app_id_or_slug: string; }; query?: never; url: '/sentry-apps/{sentry_app_id_or_slug}/'; }; export type GetSentryAppResponses = { 200: { /** * Allowed origins for CORS */ allowedOrigins: Array; /** * Avatars of the custom integration */ avatars: Array<{ /** * Avatar type: `default` or `upload` */ avatarType: string; /** * Unique identifier of the uploaded avatar file, or an empty string if none is set */ avatarUuid: string; /** * Absolute URL of the avatar image */ avatarUrl: string; /** * Whether this is the color logo (`true`) or the simple icon (`false`) */ color: boolean; /** * Kind of image: `logo` for the color logo or `icon` for the simple icon */ photoType: string; }>; /** * Resources the integration's webhooks are subscribed to, such as issue */ events: Array; /** * Webhook events the integration is subscribed to, such as issue.resolved */ webhookEvents: Array; /** * Features the integration supports. Empty for internal integrations */ featureData: Array; /** * Whether the integration can be used in alert rules */ isAlertable: boolean; /** * Metadata of the integration */ metadata: string; /** * Name of the custom integration */ name: string; /** * UI components schema used to render the integration's UI elements */ schema: string; /** * Permission scopes for API access */ scopes: Array; /** * Slug of the custom integration */ slug: string; /** * Status of the integration */ status: 'unpublished' | 'published' | 'internal' | 'publish_request_inprogress' | 'deletion_in_progress'; /** * UUID of the custom integration */ uuid: string; /** * Whether installations of the integration must be verified */ verifyInstall: boolean; /** * Custom headers sent with every webhook request, as Header-Name: value pairs. Values are masked */ webhookHeaders: Array; /** * Whether the integration is disabled */ isDisabled?: boolean; /** * Author of the integration */ author?: string | null; /** * Description of the integration */ overview?: string | null; /** * Popularity score of the integration */ popularity?: number | null; /** * URL to redirect to after installation */ redirectUrl?: string | null; /** * Webhook destination URL */ webhookUrl?: string | null; /** * OAuth client secret. Only shown to authorized users within 5 minutes of creation, and masked otherwise */ clientSecret?: string | null; /** * When the integration was published (ISO 8601). Only set for published integrations */ datePublished?: string; /** * OAuth client ID. Only included for members of the owner organization */ clientId?: string; /** * Organization that owns the integration. Only included for members of the owner organization */ owner?: { /** * ID of the organization that owns the integration */ id: number; /** * Slug of the organization that owns the integration */ slug: string; }; }; }; export type GetSentryAppResponse = GetSentryAppResponses[keyof GetSentryAppResponses]; export type UpdateSentryAppData = { body: { /** * The name of the custom integration. */ name: string; /** * The custom integration's permission scopes for API access. */ scopes: Array | null; /** * The custom integration's author. */ author?: string | null; /** * Webhook events the custom integration is subscribed to. */ events?: Array | null; /** * The list of features that the custom integration supports. */ features?: Array<0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 11 | 12 | ''> | null; /** * The UI components schema, used to render the custom integration's configuration UI elements. See our [schema docs](https://docs.sentry.io/organization/integrations/integration-platform/ui-components/) for more information. */ schema?: { [key: string]: unknown; } | null; /** * The webhook destination URL. */ webhookUrl?: string | null; /** * The post-installation redirect URL. */ redirectUrl?: string | null; /** * Whether or not the integration is internal only. False means the integration is public. */ isInternal?: boolean; /** * Marks whether or not the custom integration can be used in an alert rule. */ isAlertable?: boolean; /** * The custom integration's description. */ overview?: string | null; /** * Whether or not an installation of the custom integration should be verified. */ verifyInstall?: boolean; /** * The list of allowed origins for CORS. */ allowedOrigins?: Array; /** * Custom headers sent with every webhook request. Each entry is a single 'Header-Name: value' pair. */ webhookHeaders?: Array; }; path: { /** * The ID or slug of the custom integration. */ sentry_app_id_or_slug: string; }; query?: never; url: '/sentry-apps/{sentry_app_id_or_slug}/'; }; export type UpdateSentryAppErrors = { /** * Bad Request */ 400: unknown; /** * Forbidden */ 403: unknown; }; export type UpdateSentryAppResponses = { 200: { /** * Allowed origins for CORS */ allowedOrigins: Array; /** * Avatars of the custom integration */ avatars: Array<{ /** * Avatar type: `default` or `upload` */ avatarType: string; /** * Unique identifier of the uploaded avatar file, or an empty string if none is set */ avatarUuid: string; /** * Absolute URL of the avatar image */ avatarUrl: string; /** * Whether this is the color logo (`true`) or the simple icon (`false`) */ color: boolean; /** * Kind of image: `logo` for the color logo or `icon` for the simple icon */ photoType: string; }>; /** * Resources the integration's webhooks are subscribed to, such as issue */ events: Array; /** * Webhook events the integration is subscribed to, such as issue.resolved */ webhookEvents: Array; /** * Features the integration supports. Empty for internal integrations */ featureData: Array; /** * Whether the integration can be used in alert rules */ isAlertable: boolean; /** * Metadata of the integration */ metadata: string; /** * Name of the custom integration */ name: string; /** * UI components schema used to render the integration's UI elements */ schema: string; /** * Permission scopes for API access */ scopes: Array; /** * Slug of the custom integration */ slug: string; /** * Status of the integration */ status: 'unpublished' | 'published' | 'internal' | 'publish_request_inprogress' | 'deletion_in_progress'; /** * UUID of the custom integration */ uuid: string; /** * Whether installations of the integration must be verified */ verifyInstall: boolean; /** * Custom headers sent with every webhook request, as Header-Name: value pairs. Values are masked */ webhookHeaders: Array; /** * Whether the integration is disabled */ isDisabled?: boolean; /** * Author of the integration */ author?: string | null; /** * Description of the integration */ overview?: string | null; /** * Popularity score of the integration */ popularity?: number | null; /** * URL to redirect to after installation */ redirectUrl?: string | null; /** * Webhook destination URL */ webhookUrl?: string | null; /** * OAuth client secret. Only shown to authorized users within 5 minutes of creation, and masked otherwise */ clientSecret?: string | null; /** * When the integration was published (ISO 8601). Only set for published integrations */ datePublished?: string; /** * OAuth client ID. Only included for members of the owner organization */ clientId?: string; /** * Organization that owns the integration. Only included for members of the owner organization */ owner?: { /** * ID of the organization that owns the integration */ id: number; /** * Slug of the organization that owns the integration */ slug: string; }; }; }; export type UpdateSentryAppResponse = UpdateSentryAppResponses[keyof UpdateSentryAppResponses]; export type DeleteTeamData = { body?: never; path: { /** * The ID or slug of the organization the resource belongs to. */ organization_id_or_slug: string; /** * The ID or slug of the team the resource belongs to. */ team_id_or_slug: string; }; query?: never; url: '/teams/{organization_id_or_slug}/{team_id_or_slug}/'; }; export type DeleteTeamErrors = { /** * Forbidden */ 403: unknown; /** * Not Found */ 404: unknown; }; export type DeleteTeamResponses = { /** * No Content */ 204: void; }; export type DeleteTeamResponse = DeleteTeamResponses[keyof DeleteTeamResponses]; export type GetTeamData = { body?: never; path: { /** * The ID or slug of the organization the resource belongs to. */ organization_id_or_slug: string; /** * The ID or slug of the team the resource belongs to. */ team_id_or_slug: string; }; query?: { /** * * List of strings to opt in to additional data. Supports `projects`, `externalTeams`. * */ expand?: string; /** * * List of strings to opt out of certain pieces of data. Supports `organization`. * */ collapse?: string; }; url: '/teams/{organization_id_or_slug}/{team_id_or_slug}/'; }; export type GetTeamErrors = { /** * Unauthorized */ 401: unknown; /** * Forbidden */ 403: unknown; /** * Not Found */ 404: unknown; }; export type GetTeamResponses = { 200: { /** * Team ID */ id: string; /** * Team slug, unique within the organization */ slug: string; /** * Display name of the team */ name: string; /** * When the team was created (ISO 8601) */ dateCreated: string | null; /** * Whether the requesting user is a member of the team */ isMember: boolean; /** * The requesting user's role in the team */ teamRole: string | null; /** * Team flags. idp:provisioned is true when the team is managed by an identity provider through SCIM */ flags: { [key: string]: boolean; }; /** * Scopes the requesting user has on the team through their team role. Empty if the user has no access */ access: Array; /** * Whether the requesting user can access the team, as a member, through open membership or through an organization role with access to all teams */ hasAccess: boolean; /** * Whether the requesting user has a pending request to join the team */ isPending: boolean; /** * Number of members in the team */ memberCount: number; /** * Team avatar */ avatar: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Teams in external providers, such as Slack or GitHub, that are linked to this team */ externalTeams?: Array<{ /** * ID of the user or team in the provider */ externalId?: string; /** * ID of the Sentry user. Only set for user mappings */ userId?: string; /** * ID of the Sentry team. Only set for team mappings */ teamId?: string; /** * ID of the external actor mapping */ id: string; /** * Provider of the external actor, such as github or slack */ provider: string; /** * Name of the user or team in the provider, such as @octocat */ externalName: string; /** * ID of the integration the mapping belongs to */ integrationId: string; }>; /** * Organization the team belongs to */ organization?: { /** * Features enabled for the organization */ features?: Array; /** * Server-wide options that the Sentry UI reads */ extraOptions?: { [key: string]: { [key: string]: unknown; }; }; /** * Scopes the requesting user has in the organization */ access?: Array; /** * Onboarding tasks the organization has completed or skipped */ onboardingTasks?: Array<{ /** * Onboarding task key, such as create_project */ task: string | null; /** * Task status: complete or skipped */ status: string; /** * When the task's completion was marked as seen, or null */ completionSeen: string | null; /** * When the task was completed or skipped */ dateCompleted: string; /** * Data recorded for the task. Most tasks record none, so it's often empty */ data: { /** * ID of the member whose invite completed the invite_member task */ invited_member_id?: number; /** * Platform of the first event, for the first_event task */ platform?: string | null; /** * Slug of the plugin enabled for the task */ plugin?: string; /** * Integration providers installed for the integrations task */ providers?: Array; }; }>; /** * Organization ID */ id: string; /** * Organization slug */ slug: string; /** * Organization status */ status: { /** * Status ID: active, pending_deletion, deletion_in_progress or relocation_pending_approval */ id: string; /** * Status label, such as active or pending deletion */ name: string; }; /** * Organization name, or its slug when it has no name */ name: string; /** * When the organization was created (ISO 8601) */ dateCreated: string; /** * Whether the organization is an early adopter */ isEarlyAdopter: boolean; /** * Whether members must use two-factor authentication */ require2FA: boolean; /** * Organization avatar */ avatar: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Organization and region URLs */ links: { /** * Base URL of the organization */ organizationUrl: string; /** * Base URL of the API for the organization's region */ regionUrl: string; }; /** * Whether SSO is configured for the organization */ hasAuthProvider: boolean; /** * Whether members can invite other members */ allowMemberInvite: boolean; /** * Whether members can create projects */ allowMemberProjectCreation: boolean; /** * Whether Sentry superusers can access the organization */ allowSuperuserAccess: boolean; }; /** * Projects the team has access to */ projects?: Array<{ /** * Counts of non-transaction events per interval over the requested stats period, as [timestamp, count] pairs. Only included when a stats period is requested */ stats?: Array> | { [key: string]: number; }; /** * Counts of transactions per interval over the requested stats period, as [timestamp, count] pairs. Only included when transaction stats are requested */ transactionStats?: Array>; /** * Crash-free session rates for the current and previous stats period. Only included when session stats are requested */ sessionStats?: { /** * Crash-free rate in the current period, as a percentage. Null when there's no session data */ currentCrashFreeRate: number | null; /** * Crash-free rate in the previous period, as a percentage. Null when there's no session data */ previousCrashFreeRate: number | null; /** * Whether the project has release health (session) data */ hasHealthData: boolean; }; /** * ID of the project */ id: string; /** * Slug of the project */ slug: string; /** * Name of the project */ name: string; /** * Platform of the project */ platform: string | null; /** * When the project was created (ISO 8601) */ dateCreated: string; /** * Whether the requesting user bookmarked the project */ isBookmarked: boolean; /** * Whether the requesting user is a member of a team with access to the project */ isMember: boolean; /** * Features enabled for the project */ features: Array; /** * When the project received its first event (ISO 8601) */ firstEvent: string | null; /** * Whether the project has sent transactions */ firstTransactionEvent: boolean; /** * Scopes the requesting user has on the project through team membership and organization role */ access: Array; /** * Whether the requesting user has access to the project */ hasAccess: boolean; /** * Whether the project has sent user feedback */ hasFeedbacks: boolean; /** * Whether the project has sent feature flags */ hasFlags: boolean; /** * Whether the project has sent an event with a minified stack trace */ hasMinifiedStackTrace: boolean; /** * Whether the project has cron monitors */ hasMonitors: boolean; /** * Whether the project has sent user feedback from the user feedback widget */ hasNewFeedbacks: boolean; /** * Whether the project has sent profiles */ hasProfiles: boolean; /** * Whether the project has sent replays */ hasReplays: boolean; /** * Whether the project has sent sessions */ hasSessions: boolean; /** * Whether the project has sent HTTP request spans used by Insights */ hasInsightsHttp: boolean; /** * Whether the project has sent database spans used by Insights */ hasInsightsDb: boolean; /** * Whether the project has sent asset spans used by Insights */ hasInsightsAssets: boolean; /** * Whether the project has sent app start spans used by Insights */ hasInsightsAppStart: boolean; /** * Whether the project has sent screen load spans used by Insights */ hasInsightsScreenLoad: boolean; /** * Whether the project has sent web vitals spans used by Insights */ hasInsightsVitals: boolean; /** * Whether the project has sent cache spans used by Insights */ hasInsightsCaches: boolean; /** * Whether the project has sent queue spans used by Insights */ hasInsightsQueues: boolean; /** * Whether the project has sent AI agent spans used by Insights */ hasInsightsAgentMonitoring: boolean; /** * Whether the project has sent MCP spans used by Insights */ hasInsightsMCP: boolean; /** * Whether the project has sent logs. Always true outside sentry.io */ hasLogs: boolean; /** * Whether the project has sent trace metrics. Always true outside sentry.io */ hasTraceMetrics: boolean; /** * Whether this is the Sentry install's own internal project */ isInternal: boolean; /** * Whether the project is public */ isPublic: boolean; /** * Avatar of the project. Always a letter avatar */ avatar: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Hex color code for the project, derived from its slug unless set explicitly */ color: string; /** * Status of the project: active, deleted, or unknown */ status: string; }>; }; }; export type GetTeamResponse = GetTeamResponses[keyof GetTeamResponses]; export type UpdateTeamData = { /** * Allows parameters to be defined in snake case, but passed as camel case. * * Errors are output in camel case. */ body: { /** * Uniquely identifies a team. This is must be available. */ slug: string; /** * The name of the team. */ name?: string; }; path: { /** * The ID or slug of the organization the resource belongs to. */ organization_id_or_slug: string; /** * The ID or slug of the team the resource belongs to. */ team_id_or_slug: string; }; query?: never; url: '/teams/{organization_id_or_slug}/{team_id_or_slug}/'; }; export type UpdateTeamErrors = { /** * Bad Request */ 400: unknown; /** * Unauthorized */ 401: unknown; /** * Forbidden */ 403: unknown; /** * Not Found */ 404: unknown; }; export type UpdateTeamResponses = { 200: { /** * Team ID */ id: string; /** * Team slug, unique within the organization */ slug: string; /** * Display name of the team */ name: string; /** * When the team was created (ISO 8601) */ dateCreated: string | null; /** * Whether the requesting user is a member of the team */ isMember: boolean; /** * The requesting user's role in the team */ teamRole: string | null; /** * Team flags. idp:provisioned is true when the team is managed by an identity provider through SCIM */ flags: { [key: string]: boolean; }; /** * Scopes the requesting user has on the team through their team role. Empty if the user has no access */ access: Array; /** * Whether the requesting user can access the team, as a member, through open membership or through an organization role with access to all teams */ hasAccess: boolean; /** * Whether the requesting user has a pending request to join the team */ isPending: boolean; /** * Number of members in the team */ memberCount: number; /** * Team avatar */ avatar: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Teams in external providers, such as Slack or GitHub, that are linked to this team */ externalTeams?: Array<{ /** * ID of the user or team in the provider */ externalId?: string; /** * ID of the Sentry user. Only set for user mappings */ userId?: string; /** * ID of the Sentry team. Only set for team mappings */ teamId?: string; /** * ID of the external actor mapping */ id: string; /** * Provider of the external actor, such as github or slack */ provider: string; /** * Name of the user or team in the provider, such as @octocat */ externalName: string; /** * ID of the integration the mapping belongs to */ integrationId: string; }>; /** * Organization the team belongs to */ organization?: { /** * Features enabled for the organization */ features?: Array; /** * Server-wide options that the Sentry UI reads */ extraOptions?: { [key: string]: { [key: string]: unknown; }; }; /** * Scopes the requesting user has in the organization */ access?: Array; /** * Onboarding tasks the organization has completed or skipped */ onboardingTasks?: Array<{ /** * Onboarding task key, such as create_project */ task: string | null; /** * Task status: complete or skipped */ status: string; /** * When the task's completion was marked as seen, or null */ completionSeen: string | null; /** * When the task was completed or skipped */ dateCompleted: string; /** * Data recorded for the task. Most tasks record none, so it's often empty */ data: { /** * ID of the member whose invite completed the invite_member task */ invited_member_id?: number; /** * Platform of the first event, for the first_event task */ platform?: string | null; /** * Slug of the plugin enabled for the task */ plugin?: string; /** * Integration providers installed for the integrations task */ providers?: Array; }; }>; /** * Organization ID */ id: string; /** * Organization slug */ slug: string; /** * Organization status */ status: { /** * Status ID: active, pending_deletion, deletion_in_progress or relocation_pending_approval */ id: string; /** * Status label, such as active or pending deletion */ name: string; }; /** * Organization name, or its slug when it has no name */ name: string; /** * When the organization was created (ISO 8601) */ dateCreated: string; /** * Whether the organization is an early adopter */ isEarlyAdopter: boolean; /** * Whether members must use two-factor authentication */ require2FA: boolean; /** * Organization avatar */ avatar: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Organization and region URLs */ links: { /** * Base URL of the organization */ organizationUrl: string; /** * Base URL of the API for the organization's region */ regionUrl: string; }; /** * Whether SSO is configured for the organization */ hasAuthProvider: boolean; /** * Whether members can invite other members */ allowMemberInvite: boolean; /** * Whether members can create projects */ allowMemberProjectCreation: boolean; /** * Whether Sentry superusers can access the organization */ allowSuperuserAccess: boolean; }; /** * Projects the team has access to */ projects?: Array<{ /** * Counts of non-transaction events per interval over the requested stats period, as [timestamp, count] pairs. Only included when a stats period is requested */ stats?: Array> | { [key: string]: number; }; /** * Counts of transactions per interval over the requested stats period, as [timestamp, count] pairs. Only included when transaction stats are requested */ transactionStats?: Array>; /** * Crash-free session rates for the current and previous stats period. Only included when session stats are requested */ sessionStats?: { /** * Crash-free rate in the current period, as a percentage. Null when there's no session data */ currentCrashFreeRate: number | null; /** * Crash-free rate in the previous period, as a percentage. Null when there's no session data */ previousCrashFreeRate: number | null; /** * Whether the project has release health (session) data */ hasHealthData: boolean; }; /** * ID of the project */ id: string; /** * Slug of the project */ slug: string; /** * Name of the project */ name: string; /** * Platform of the project */ platform: string | null; /** * When the project was created (ISO 8601) */ dateCreated: string; /** * Whether the requesting user bookmarked the project */ isBookmarked: boolean; /** * Whether the requesting user is a member of a team with access to the project */ isMember: boolean; /** * Features enabled for the project */ features: Array; /** * When the project received its first event (ISO 8601) */ firstEvent: string | null; /** * Whether the project has sent transactions */ firstTransactionEvent: boolean; /** * Scopes the requesting user has on the project through team membership and organization role */ access: Array; /** * Whether the requesting user has access to the project */ hasAccess: boolean; /** * Whether the project has sent user feedback */ hasFeedbacks: boolean; /** * Whether the project has sent feature flags */ hasFlags: boolean; /** * Whether the project has sent an event with a minified stack trace */ hasMinifiedStackTrace: boolean; /** * Whether the project has cron monitors */ hasMonitors: boolean; /** * Whether the project has sent user feedback from the user feedback widget */ hasNewFeedbacks: boolean; /** * Whether the project has sent profiles */ hasProfiles: boolean; /** * Whether the project has sent replays */ hasReplays: boolean; /** * Whether the project has sent sessions */ hasSessions: boolean; /** * Whether the project has sent HTTP request spans used by Insights */ hasInsightsHttp: boolean; /** * Whether the project has sent database spans used by Insights */ hasInsightsDb: boolean; /** * Whether the project has sent asset spans used by Insights */ hasInsightsAssets: boolean; /** * Whether the project has sent app start spans used by Insights */ hasInsightsAppStart: boolean; /** * Whether the project has sent screen load spans used by Insights */ hasInsightsScreenLoad: boolean; /** * Whether the project has sent web vitals spans used by Insights */ hasInsightsVitals: boolean; /** * Whether the project has sent cache spans used by Insights */ hasInsightsCaches: boolean; /** * Whether the project has sent queue spans used by Insights */ hasInsightsQueues: boolean; /** * Whether the project has sent AI agent spans used by Insights */ hasInsightsAgentMonitoring: boolean; /** * Whether the project has sent MCP spans used by Insights */ hasInsightsMCP: boolean; /** * Whether the project has sent logs. Always true outside sentry.io */ hasLogs: boolean; /** * Whether the project has sent trace metrics. Always true outside sentry.io */ hasTraceMetrics: boolean; /** * Whether this is the Sentry install's own internal project */ isInternal: boolean; /** * Whether the project is public */ isPublic: boolean; /** * Avatar of the project. Always a letter avatar */ avatar: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Hex color code for the project, derived from its slug unless set explicitly */ color: string; /** * Status of the project: active, deleted, or unknown */ status: string; }>; }; }; export type UpdateTeamResponse = UpdateTeamResponses[keyof UpdateTeamResponses]; export type CreateTeamExternalTeamData = { /** * Allows parameters to be defined in snake case, but passed as camel case. * * Errors are output in camel case. */ body: { /** * ID of the Sentry team to link to the external team. */ team_id: number; /** * The associated name for the provider. */ external_name: string; /** * The provider of the external actor. * * * `github` * * `github_enterprise` * * `jira_server` * * `slack` * * `slack_staging` * * `perforce` * * `gitlab` * * `cursor_origin` * * `msteams` * * `custom_scm` */ provider: 'github' | 'github_enterprise' | 'jira_server' | 'slack' | 'slack_staging' | 'perforce' | 'gitlab' | 'cursor_origin' | 'msteams' | 'custom_scm'; /** * The Integration ID. */ integration_id: number; /** * The associated user ID for provider. */ external_id?: string | null; }; path: { /** * The ID or slug of the organization the resource belongs to. */ organization_id_or_slug: string; /** * The ID or slug of the team the resource belongs to. */ team_id_or_slug: string; }; query?: never; url: '/teams/{organization_id_or_slug}/{team_id_or_slug}/external-teams/'; }; export type CreateTeamExternalTeamErrors = { /** * Bad Request */ 400: unknown; /** * Forbidden */ 403: unknown; }; export type CreateTeamExternalTeamResponses = { 200: { /** * ID of the user or team in the provider */ externalId?: string; /** * ID of the Sentry user. Only set for user mappings */ userId?: string; /** * ID of the Sentry team. Only set for team mappings */ teamId?: string; /** * ID of the external actor mapping */ id: string; /** * Provider of the external actor, such as github or slack */ provider: string; /** * Name of the user or team in the provider, such as @octocat */ externalName: string; /** * ID of the integration the mapping belongs to */ integrationId: string; }; 201: { /** * ID of the user or team in the provider */ externalId?: string; /** * ID of the Sentry user. Only set for user mappings */ userId?: string; /** * ID of the Sentry team. Only set for team mappings */ teamId?: string; /** * ID of the external actor mapping */ id: string; /** * Provider of the external actor, such as github or slack */ provider: string; /** * Name of the user or team in the provider, such as @octocat */ externalName: string; /** * ID of the integration the mapping belongs to */ integrationId: string; }; }; export type CreateTeamExternalTeamResponse = CreateTeamExternalTeamResponses[keyof CreateTeamExternalTeamResponses]; export type DeleteTeamExternalTeamData = { body?: never; path: { /** * The ID or slug of the organization the resource belongs to. */ organization_id_or_slug: string; /** * The ID or slug of the team the resource belongs to. */ team_id_or_slug: string; /** * The ID of the external team object. This is returned when creating an external team. */ external_team_id: number; }; query?: never; url: '/teams/{organization_id_or_slug}/{team_id_or_slug}/external-teams/{external_team_id}/'; }; export type DeleteTeamExternalTeamErrors = { /** * Bad Request */ 400: unknown; /** * Forbidden */ 403: unknown; }; export type DeleteTeamExternalTeamResponses = { /** * No Content */ 204: void; }; export type DeleteTeamExternalTeamResponse = DeleteTeamExternalTeamResponses[keyof DeleteTeamExternalTeamResponses]; export type UpdateTeamExternalTeamData = { /** * Allows parameters to be defined in snake case, but passed as camel case. * * Errors are output in camel case. */ body: { /** * ID of the Sentry team to link to the external team. */ team_id: number; /** * The associated name for the provider. */ external_name: string; /** * The provider of the external actor. * * * `github` * * `github_enterprise` * * `jira_server` * * `slack` * * `slack_staging` * * `perforce` * * `gitlab` * * `cursor_origin` * * `msteams` * * `custom_scm` */ provider: 'github' | 'github_enterprise' | 'jira_server' | 'slack' | 'slack_staging' | 'perforce' | 'gitlab' | 'cursor_origin' | 'msteams' | 'custom_scm'; /** * The Integration ID. */ integration_id: number; /** * The associated user ID for provider. */ external_id?: string | null; }; path: { /** * The ID or slug of the organization the resource belongs to. */ organization_id_or_slug: string; /** * The ID or slug of the team the resource belongs to. */ team_id_or_slug: string; /** * The ID of the external team object. This is returned when creating an external team. */ external_team_id: number; }; query?: never; url: '/teams/{organization_id_or_slug}/{team_id_or_slug}/external-teams/{external_team_id}/'; }; export type UpdateTeamExternalTeamErrors = { /** * Bad Request */ 400: unknown; /** * Forbidden */ 403: unknown; }; export type UpdateTeamExternalTeamResponses = { 200: { /** * ID of the user or team in the provider */ externalId?: string; /** * ID of the Sentry user. Only set for user mappings */ userId?: string; /** * ID of the Sentry team. Only set for team mappings */ teamId?: string; /** * ID of the external actor mapping */ id: string; /** * Provider of the external actor, such as github or slack */ provider: string; /** * Name of the user or team in the provider, such as @octocat */ externalName: string; /** * ID of the integration the mapping belongs to */ integrationId: string; }; }; export type UpdateTeamExternalTeamResponse = UpdateTeamExternalTeamResponses[keyof UpdateTeamExternalTeamResponses]; export type ListTeamMembersData = { body?: never; path: { /** * The ID or slug of the organization the resource belongs to. */ organization_id_or_slug: string; /** * The ID or slug of the team the resource belongs to. */ team_id_or_slug: string; }; query?: { /** * A pointer to the last object fetched and its sort order; used to retrieve the next or previous results. */ cursor?: string; }; url: '/teams/{organization_id_or_slug}/{team_id_or_slug}/members/'; }; export type ListTeamMembersErrors = { /** * Forbidden */ 403: unknown; /** * Not Found */ 404: unknown; }; export type ListTeamMembersResponses = { 200: Array<{ /** * Users in external providers, such as Slack or GitHub, linked to the member's user. Included only when requested */ externalUsers?: Array<{ /** * ID of the user or team in the provider */ externalId?: string; /** * ID of the Sentry user. Only set for user mappings */ userId?: string; /** * ID of the Sentry team. Only set for team mappings */ teamId?: string; /** * ID of the external actor mapping */ id: string; /** * Provider of the external actor, such as github or slack */ provider: string; /** * Name of the user or team in the provider, such as @octocat */ externalName: string; /** * ID of the integration the mapping belongs to */ integrationId: string; }>; /** * Deprecated. Use orgRole */ role?: string; /** * Deprecated. Name of the member's organization role */ roleName?: string; /** * Organization member ID */ id: string; /** * Email address of the member's user, or the invited email address if they have no account yet */ email: string; /** * Display name of the member's user, or their email address if they have no account yet */ name: string; /** * The member's user */ user: { /** * SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access */ identities?: Array<{ /** * SSO identity ID */ id: string; /** * User's identifier at the auth provider */ name: string; /** * Organization the auth provider belongs to */ organization: { /** * Organization slug */ slug: string; /** * Organization name */ name: string; }; /** * Auth provider of the identity */ provider: { /** * Auth provider key, such as google or saml2 */ id: string; /** * Display name of the auth provider */ name: string; }; /** * When the identity was last verified by signing in through the auth provider */ dateVerified: string; /** * When the identity was last synced from the auth provider */ dateSynced: string; }>; /** * User avatar */ avatar?: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Two-factor authenticators of the user, without backup methods such as recovery codes */ authenticators?: Array<{ /** * Authenticator ID */ id: string; /** * Authenticator type, such as totp, sms, u2f or recovery */ type: string; /** * Display name of the authenticator type */ name: string; /** * When the authenticator was added */ dateCreated: string; /** * When the authenticator was last used, or null */ dateUsed: string | null; }>; /** * Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization */ canReset2fa?: boolean; /** * User ID */ id: string; /** * Display name: the user's name, or their email or username if no name is set */ name: string; /** * Username */ username: string; /** * Primary email address */ email: string; /** * Gravatar URL for the primary email address */ avatarUrl: string; /** * Whether the account is active */ isActive: boolean; /** * Whether the account is suspended. Suspended users can't sign in */ isSuspended: boolean; /** * Whether the user has a password set */ hasPasswordAuth: boolean; /** * Whether the account is managed, which stops the user from changing their username, password and similar details */ isManaged: boolean; /** * When the account was created */ dateJoined: string; /** * When the user last signed in, or null */ lastLogin: string | null; /** * Whether the user has two-factor authentication enabled */ has2fa: boolean; /** * When the user was last active, or null */ lastActive: string | null; /** * Whether the user is a superuser */ isSuperuser: boolean; /** * Whether the user has staff status */ isStaff: boolean; /** * Deprecated. Always an empty object */ experiments: { [key: string]: string; }; /** * Email addresses of the user. Only included for the requesting user or superusers; empty otherwise */ emails: Array<{ /** * Email ID */ id: string; /** * Email address */ email: string; /** * Whether the email address is verified */ is_verified: boolean; }>; }; /** * ID of the member's organization role */ orgRole: string; /** * Whether the member has no user account linked yet, as with an invite that hasn't been accepted */ pending: boolean; /** * Whether the member's invite has expired */ expired: boolean; /** * Member flags */ flags: { /** * Whether the member is provisioned and managed through the organization's identity provider (SCIM) */ 'idp:provisioned': boolean; /** * Whether the member's organization role is set by the identity provider through SCIM */ 'idp:role-restricted': boolean; /** * Whether the member has linked their account to the organization's SSO provider */ 'sso:linked': boolean; /** * Whether the member's SSO link is invalid */ 'sso:invalid': boolean; /** * Whether the member is restricted by the plan's member limit */ 'member-limit:restricted': boolean; /** * Whether the member is managed by an active partnership and can't be changed until it ends */ 'partnership:restricted': boolean; }; /** * When the member was added or invited */ dateCreated: string; /** * Invite status */ inviteStatus: 'approved' | 'requested_to_be_invited' | 'requested_to_join' | null; /** * Name of the user who invited the member, or null */ inviterName: string | null; /** * ID of the member's team role, or null if the member has the minimum team role from their organization role */ teamRole: string | null; /** * Slug of the team */ teamSlug: string; }>; }; export type ListTeamMembersResponse = ListTeamMembersResponses[keyof ListTeamMembersResponses]; export type ListTeamProjectsData = { body?: never; path: { /** * The ID or slug of the organization the resource belongs to. */ organization_id_or_slug: string; /** * The ID or slug of the team the resource belongs to. */ team_id_or_slug: string; }; query?: { /** * A pointer to the last object fetched and its sort order; used to retrieve the next or previous results. */ cursor?: string; }; url: '/teams/{organization_id_or_slug}/{team_id_or_slug}/projects/'; }; export type ListTeamProjectsErrors = { /** * Bad Request */ 400: unknown; /** * Forbidden */ 403: unknown; /** * Team not found. */ 404: unknown; }; export type ListTeamProjectsResponses = { 200: Array<{ /** * Latest deploy for each environment, keyed by environment name, with its release version and finish time. Omitted when collapsed */ latestDeploys?: { [key: string]: { [key: string]: string; }; } | null; /** * Requested project options, keyed by option name. Only included when options are requested */ options?: { [key: string]: unknown; }; /** * Counts of non-transaction events per interval over the requested stats period, as [timestamp, count] pairs. Only included when a stats period is requested */ stats?: Array> | { [key: string]: number; }; /** * Counts of transactions per interval over the requested stats period, as [timestamp, count] pairs. Only included when transaction stats are requested */ transactionStats?: Array>; /** * Crash-free session rates for the current and previous stats period. Only included when session stats are requested */ sessionStats?: { /** * Crash-free rate in the current period, as a percentage. Null when there's no session data */ currentCrashFreeRate: number | null; /** * Crash-free rate in the previous period, as a percentage. Null when there's no session data */ previousCrashFreeRate: number | null; /** * Whether the project has release health (session) data */ hasHealthData: boolean; }; /** * ID of the project */ id: string; /** * Slug of the project */ slug: string; /** * Name of the project */ name: string; /** * Platform of the project */ platform: string | null; /** * When the project was created (ISO 8601) */ dateCreated: string; /** * Whether the requesting user bookmarked the project */ isBookmarked: boolean; /** * Whether the requesting user is a member of a team with access to the project */ isMember: boolean; /** * Features enabled for the project */ features: Array; /** * When the project received its first event (ISO 8601) */ firstEvent: string | null; /** * Whether the project has sent transactions */ firstTransactionEvent: boolean; /** * Scopes the requesting user has on the project through team membership and organization role */ access: Array; /** * Whether the requesting user has access to the project */ hasAccess: boolean; /** * Whether the project has sent user feedback */ hasFeedbacks: boolean; /** * Whether the project has sent feature flags */ hasFlags: boolean; /** * Whether the project has sent an event with a minified stack trace */ hasMinifiedStackTrace: boolean; /** * Whether the project has cron monitors */ hasMonitors: boolean; /** * Whether the project has sent user feedback from the user feedback widget */ hasNewFeedbacks: boolean; /** * Whether the project has sent profiles */ hasProfiles: boolean; /** * Whether the project has sent replays */ hasReplays: boolean; /** * Whether the project has sent sessions */ hasSessions: boolean; /** * Whether the project has sent HTTP request spans used by Insights */ hasInsightsHttp: boolean; /** * Whether the project has sent database spans used by Insights */ hasInsightsDb: boolean; /** * Whether the project has sent asset spans used by Insights */ hasInsightsAssets: boolean; /** * Whether the project has sent app start spans used by Insights */ hasInsightsAppStart: boolean; /** * Whether the project has sent screen load spans used by Insights */ hasInsightsScreenLoad: boolean; /** * Whether the project has sent web vitals spans used by Insights */ hasInsightsVitals: boolean; /** * Whether the project has sent cache spans used by Insights */ hasInsightsCaches: boolean; /** * Whether the project has sent queue spans used by Insights */ hasInsightsQueues: boolean; /** * Whether the project has sent AI agent spans used by Insights */ hasInsightsAgentMonitoring: boolean; /** * Whether the project has sent MCP spans used by Insights */ hasInsightsMCP: boolean; /** * Whether the project has sent logs. Always true outside sentry.io */ hasLogs: boolean; /** * Whether the project has sent trace metrics. Always true outside sentry.io */ hasTraceMetrics: boolean; /** * First team with access to the project; use teams instead */ team: { /** * ID of the team */ id: string; /** * Name of the team */ name: string; /** * Slug of the team */ slug: string; } | null; /** * Teams with access to the project */ teams: Array<{ /** * ID of the team */ id: string; /** * Name of the team */ name: string; /** * Slug of the team */ slug: string; }>; /** * Platforms seen in the project's events */ platforms: Array; /** * Whether the project has received user reports */ hasUserReports: boolean; /** * Environments seen in the project's events */ environments: Array; /** * Latest release of the project */ latestRelease: { /** * Version of the release */ version: string; } | null; }>; }; export type ListTeamProjectsResponse = ListTeamProjectsResponses[keyof ListTeamProjectsResponses]; export type CreateTeamProjectData = { body: { /** * The name for the project. */ name: string; /** * Uniquely identifies a project and is used for the interface. * If not provided, it is automatically generated from the name. */ slug?: string | null; /** * The platform for the project. */ platform?: string | null; /** * * Defaults to true where the behavior is to alert the user on every new * issue. Setting this to false will turn this off and the user must create * their own alerts to be notified of new issues. * */ default_rules?: boolean; }; path: { /** * The ID or slug of the organization the resource belongs to. */ organization_id_or_slug: string; /** * The ID or slug of the team the resource belongs to. */ team_id_or_slug: string; }; query?: never; url: '/teams/{organization_id_or_slug}/{team_id_or_slug}/projects/'; }; export type CreateTeamProjectErrors = { /** * Bad Request */ 400: unknown; /** * Forbidden */ 403: unknown; /** * Team not found. */ 404: unknown; /** * A project with this slug already exists. */ 409: unknown; }; export type CreateTeamProjectResponses = { 201: { /** * Latest deploy for each environment, keyed by environment name, with its release version and finish time. Omitted when collapsed */ latestDeploys?: { [key: string]: { [key: string]: string; }; } | null; /** * Requested project options, keyed by option name. Only included when options are requested */ options?: { [key: string]: unknown; }; /** * Counts of non-transaction events per interval over the requested stats period, as [timestamp, count] pairs. Only included when a stats period is requested */ stats?: Array> | { [key: string]: number; }; /** * Counts of transactions per interval over the requested stats period, as [timestamp, count] pairs. Only included when transaction stats are requested */ transactionStats?: Array>; /** * Crash-free session rates for the current and previous stats period. Only included when session stats are requested */ sessionStats?: { /** * Crash-free rate in the current period, as a percentage. Null when there's no session data */ currentCrashFreeRate: number | null; /** * Crash-free rate in the previous period, as a percentage. Null when there's no session data */ previousCrashFreeRate: number | null; /** * Whether the project has release health (session) data */ hasHealthData: boolean; }; /** * ID of the project */ id: string; /** * Slug of the project */ slug: string; /** * Name of the project */ name: string; /** * Platform of the project */ platform: string | null; /** * When the project was created (ISO 8601) */ dateCreated: string; /** * Whether the requesting user bookmarked the project */ isBookmarked: boolean; /** * Whether the requesting user is a member of a team with access to the project */ isMember: boolean; /** * Features enabled for the project */ features: Array; /** * When the project received its first event (ISO 8601) */ firstEvent: string | null; /** * Whether the project has sent transactions */ firstTransactionEvent: boolean; /** * Scopes the requesting user has on the project through team membership and organization role */ access: Array; /** * Whether the requesting user has access to the project */ hasAccess: boolean; /** * Whether the project has sent user feedback */ hasFeedbacks: boolean; /** * Whether the project has sent feature flags */ hasFlags: boolean; /** * Whether the project has sent an event with a minified stack trace */ hasMinifiedStackTrace: boolean; /** * Whether the project has cron monitors */ hasMonitors: boolean; /** * Whether the project has sent user feedback from the user feedback widget */ hasNewFeedbacks: boolean; /** * Whether the project has sent profiles */ hasProfiles: boolean; /** * Whether the project has sent replays */ hasReplays: boolean; /** * Whether the project has sent sessions */ hasSessions: boolean; /** * Whether the project has sent HTTP request spans used by Insights */ hasInsightsHttp: boolean; /** * Whether the project has sent database spans used by Insights */ hasInsightsDb: boolean; /** * Whether the project has sent asset spans used by Insights */ hasInsightsAssets: boolean; /** * Whether the project has sent app start spans used by Insights */ hasInsightsAppStart: boolean; /** * Whether the project has sent screen load spans used by Insights */ hasInsightsScreenLoad: boolean; /** * Whether the project has sent web vitals spans used by Insights */ hasInsightsVitals: boolean; /** * Whether the project has sent cache spans used by Insights */ hasInsightsCaches: boolean; /** * Whether the project has sent queue spans used by Insights */ hasInsightsQueues: boolean; /** * Whether the project has sent AI agent spans used by Insights */ hasInsightsAgentMonitoring: boolean; /** * Whether the project has sent MCP spans used by Insights */ hasInsightsMCP: boolean; /** * Whether the project has sent logs. Always true outside sentry.io */ hasLogs: boolean; /** * Whether the project has sent trace metrics. Always true outside sentry.io */ hasTraceMetrics: boolean; /** * First team with access to the project; use teams instead */ team: { /** * ID of the team */ id: string; /** * Name of the team */ name: string; /** * Slug of the team */ slug: string; } | null; /** * Teams with access to the project */ teams: Array<{ /** * ID of the team */ id: string; /** * Name of the team */ name: string; /** * Slug of the team */ slug: string; }>; /** * Platforms seen in the project's events */ platforms: Array; /** * Whether the project has received user reports */ hasUserReports: boolean; /** * Environments seen in the project's events */ environments: Array; /** * Latest release of the project */ latestRelease: { /** * Version of the release */ version: string; } | null; }; }; export type CreateTeamProjectResponse = CreateTeamProjectResponses[keyof CreateTeamProjectResponses]; export type ListUptimeCheckerIpsData = { body?: never; path?: never; query?: never; url: '/uptime-ips/'; }; export type ListUptimeCheckerIpsResponses = { /** * The IP addresses, one per line. */ 200: string; }; export type ListUptimeCheckerIpsResponse = ListUptimeCheckerIpsResponses[keyof ListUptimeCheckerIpsResponses]; export type RetrieveUserDetailsData = { body?: never; path: { /** * The ID of the user, or `me` for the authenticated user. */ user_id: string; }; query?: never; url: '/users/{user_id}/'; }; export type RetrieveUserDetailsErrors = { /** * Unauthorized */ 401: unknown; /** * Forbidden */ 403: unknown; /** * Not Found */ 404: unknown; }; export type RetrieveUserDetailsResponses = { 200: { /** * SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access */ identities?: Array<{ /** * SSO identity ID */ id: string; /** * User's identifier at the auth provider */ name: string; /** * Organization the auth provider belongs to */ organization: { /** * Organization slug */ slug: string; /** * Organization name */ name: string; }; /** * Auth provider of the identity */ provider: { /** * Auth provider key, such as google or saml2 */ id: string; /** * Display name of the auth provider */ name: string; }; /** * When the identity was last verified by signing in through the auth provider */ dateVerified: string; /** * When the identity was last synced from the auth provider */ dateSynced: string; }>; /** * User avatar */ avatar?: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Two-factor authenticators of the user, without backup methods such as recovery codes */ authenticators?: Array<{ /** * Authenticator ID */ id: string; /** * Authenticator type, such as totp, sms, u2f or recovery */ type: string; /** * Display name of the authenticator type */ name: string; /** * When the authenticator was added */ dateCreated: string; /** * When the authenticator was last used, or null */ dateUsed: string | null; }>; /** * Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization */ canReset2fa?: boolean; /** * User ID */ id: string; /** * Display name: the user's name, or their email or username if no name is set */ name: string; /** * Username */ username: string; /** * Primary email address */ email: string; /** * Gravatar URL for the primary email address */ avatarUrl: string; /** * Whether the account is active */ isActive: boolean; /** * Whether the account is suspended. Suspended users can't sign in */ isSuspended: boolean; /** * Whether the user has a password set */ hasPasswordAuth: boolean; /** * Whether the account is managed, which stops the user from changing their username, password and similar details */ isManaged: boolean; /** * When the account was created */ dateJoined: string; /** * When the user last signed in, or null */ lastLogin: string | null; /** * Whether the user has two-factor authentication enabled */ has2fa: boolean; /** * When the user was last active, or null */ lastActive: string | null; /** * Whether the user is a superuser */ isSuperuser: boolean; /** * Whether the user has staff status */ isStaff: boolean; /** * Deprecated. Always an empty object */ experiments: { [key: string]: string; }; /** * Email addresses of the user. Only included for the requesting user or superusers; empty otherwise */ emails: Array<{ /** * Email ID */ id: string; /** * Email address */ email: string; /** * Whether the email address is verified */ is_verified: boolean; }>; /** * Sentry staff permissions granted to the user, such as users.admin. Empty for most users */ permissions: Array; /** * The user's preferences. Only included for the requesting user */ options?: { /** * UI theme: "light", "dark" or "system". Defaults to "system" */ theme: 'light' | 'dark' | 'system'; /** * Palette used in dark mode. Defaults to `default` */ themeVariantDark: 'default' | 'ash' | 'midnight'; /** * UI language code, such as `en` */ language: string; /** * Stack trace frame order: -1 for the default (most recent first), 1 for most recent last, 2 for most recent first */ stacktraceOrder: -1 | 1 | 2; /** * Event shown by default on issue details: "recommended", "latest" or "oldest" */ defaultIssueEvent: 'recommended' | 'latest' | 'oldest'; /** * Time zone for displayed dates, such as `UTC` */ timezone: string; /** * Whether times are shown in 24-hour format */ clock24Hours: boolean; /** * Whether the user prefers the streamlined issue details UI, or null if they haven't chosen */ prefersIssueDetailsStreamlinedUI: boolean | null; }; /** * Account flags. Only included for the requesting user */ flags?: { /** * Whether to ask the user for newsletter consent */ newsletter_consent_prompt: boolean; }; }; }; export type RetrieveUserDetailsResponse = RetrieveUserDetailsResponses[keyof RetrieveUserDetailsResponses]; export type ListProjectTagValuesData = { body?: never; path: { /** * The ID or slug of the organization. */ organization_id_or_slug: string; /** * The ID or slug of the project. */ project_id_or_slug: string; /** * The tag key to look up. */ key: string; }; query?: { /** * A pointer to the last object fetched and its sort order; used to retrieve the next or previous results. */ cursor?: string; }; url: '/projects/{organization_id_or_slug}/{project_id_or_slug}/tags/{key}/values/'; }; export type ListProjectTagValuesErrors = { /** * Forbidden */ 403: unknown; }; export type ListProjectTagValuesResponses = { /** * Success */ 200: Array<{ /** * The display label of the tag value. For the `sentry:user` tag, the `id:`, `email:`, `username:` or `ip:` prefix is removed. */ name: string; }>; }; export type ListProjectTagValuesResponse = ListProjectTagValuesResponses[keyof ListProjectTagValuesResponses]; export type ListProjectHooksData = { body?: never; path: { /** * The ID or slug of the organization the client keys belong to. */ organization_id_or_slug: string; /** * The ID or slug of the project the client keys belong to. */ project_id_or_slug: string; }; query?: { /** * A pointer to the last object fetched and its sort order; used to retrieve the next or previous results. */ cursor?: string; }; url: '/projects/{organization_id_or_slug}/{project_id_or_slug}/hooks/'; }; export type ListProjectHooksErrors = { /** * You do not have that feature enabled */ 403: unknown; }; export type ListProjectHooksResponses = { /** * Success */ 200: Array<{ /** * When the service hook was created (ISO 8601). */ dateCreated: string; /** * The events the service hook is subscribed to, such as `event.alert` and `event.created`. */ events: Array; /** * The ID of the service hook. */ id: string; /** * The webhook signing secret. Populated only when the hook is created; an empty string on subsequent reads and updates. Store the creation value securely to verify webhook signatures. */ secret: string; /** * The status of the service hook, such as `active` or `disabled`. */ status: string; /** * The URL that receives the service hook requests. */ url: string; }>; }; export type ListProjectHooksResponse = ListProjectHooksResponses[keyof ListProjectHooksResponses]; export type CreateProjectHookData = { body: { /** * The URL for the webhook. */ url: string; /** * The events to subscribe to. */ events: Array; }; path: { /** * The ID or slug of the organization the client keys belong to. */ organization_id_or_slug: string; /** * The ID or slug of the project the client keys belong to. */ project_id_or_slug: string; }; query?: never; url: '/projects/{organization_id_or_slug}/{project_id_or_slug}/hooks/'; }; export type CreateProjectHookErrors = { /** * You do not have that feature enabled */ 403: unknown; /** * The requested resource does not exist */ 404: unknown; }; export type CreateProjectHookResponses = { /** * Success */ 201: { /** * When the service hook was created (ISO 8601). */ dateCreated: string; /** * The events the service hook is subscribed to, such as `event.alert` and `event.created`. */ events: Array; /** * The ID of the service hook. */ id: string; /** * The webhook signing secret. Populated only when the hook is created; an empty string on subsequent reads and updates. Store the creation value securely to verify webhook signatures. */ secret: string; /** * The status of the service hook, such as `active` or `disabled`. */ status: string; /** * The URL that receives the service hook requests. */ url: string; }; }; export type CreateProjectHookResponse = CreateProjectHookResponses[keyof CreateProjectHookResponses]; export type DeleteProjectHookData = { body?: never; path: { /** * The ID or slug of the organization the client keys belong to. */ organization_id_or_slug: string; /** * The ID or slug of the project the client keys belong to. */ project_id_or_slug: string; /** * The GUID of the service hook. */ hook_id: string; }; query?: never; url: '/projects/{organization_id_or_slug}/{project_id_or_slug}/hooks/{hook_id}/'; }; export type DeleteProjectHookErrors = { /** * Forbidden */ 403: unknown; /** * The requested resource does not exist */ 404: unknown; }; export type DeleteProjectHookResponses = { /** * Success */ 204: void; }; export type DeleteProjectHookResponse = DeleteProjectHookResponses[keyof DeleteProjectHookResponses]; export type GetProjectHookData = { body?: never; path: { /** * The ID or slug of the organization the client keys belong to. */ organization_id_or_slug: string; /** * The ID or slug of the project the client keys belong to. */ project_id_or_slug: string; /** * The GUID of the service hook. */ hook_id: string; }; query?: never; url: '/projects/{organization_id_or_slug}/{project_id_or_slug}/hooks/{hook_id}/'; }; export type GetProjectHookErrors = { /** * Forbidden */ 403: unknown; /** * The requested resource does not exist */ 404: unknown; }; export type GetProjectHookResponses = { /** * Success */ 200: { /** * When the service hook was created (ISO 8601). */ dateCreated: string; /** * The events the service hook is subscribed to, such as `event.alert` and `event.created`. */ events: Array; /** * The ID of the service hook. */ id: string; /** * The webhook signing secret. Populated only when the hook is created; an empty string on subsequent reads and updates. Store the creation value securely to verify webhook signatures. */ secret: string; /** * The status of the service hook, such as `active` or `disabled`. */ status: string; /** * The URL that receives the service hook requests. */ url: string; }; }; export type GetProjectHookResponse = GetProjectHookResponses[keyof GetProjectHookResponses]; export type UpdateProjectHookData = { body?: { /** * The URL for the webhook. */ url: string; /** * The events to subscribe to. */ events: Array; }; path: { /** * The ID or slug of the organization the client keys belong to. */ organization_id_or_slug: string; /** * The ID or slug of the project the client keys belong to. */ project_id_or_slug: string; /** * The GUID of the service hook. */ hook_id: string; }; query?: never; url: '/projects/{organization_id_or_slug}/{project_id_or_slug}/hooks/{hook_id}/'; }; export type UpdateProjectHookErrors = { /** * Bad Input */ 400: unknown; /** * Forbidden */ 403: unknown; /** * The requested resource does not exist */ 404: unknown; }; export type UpdateProjectHookResponses = { /** * Success */ 200: { /** * When the service hook was created (ISO 8601). */ dateCreated: string; /** * The events the service hook is subscribed to, such as `event.alert` and `event.created`. */ events: Array; /** * The ID of the service hook. */ id: string; /** * The webhook signing secret. Populated only when the hook is created; an empty string on subsequent reads and updates. Store the creation value securely to verify webhook signatures. */ secret: string; /** * The status of the service hook, such as `active` or `disabled`. */ status: string; /** * The URL that receives the service hook requests. */ url: string; }; }; export type UpdateProjectHookResponse = UpdateProjectHookResponses[keyof UpdateProjectHookResponses]; export type DeleteProjectIssuesData = { body?: never; path: { /** * The ID or slug of the organization the issues belong to. */ organization_id_or_slug: string; /** * The ID or slug of the project the issues belong to. */ project_id_or_slug: string; }; query?: { /** * A list of IDs of the issues to be removed. This parameter shall be repeated for each issue, e.g. `?id=1&id=2&id=3`. If this parameter is not provided, it will attempt to remove the first 1000 issues. */ id?: number; /** * An optional Sentry structured search query that selects the issues to remove when `id` is not provided. If not provided an implied `"is:unresolved"` is assumed. Use `is:` (e.g. `is:resolved`) to limit it to issues with that status. */ query?: string; }; url: '/projects/{organization_id_or_slug}/{project_id_or_slug}/issues/'; }; export type DeleteProjectIssuesErrors = { /** * Forbidden */ 403: unknown; /** * Project not found */ 404: unknown; }; export type DeleteProjectIssuesResponses = { /** * Success */ 204: void; }; export type DeleteProjectIssuesResponse = DeleteProjectIssuesResponses[keyof DeleteProjectIssuesResponses]; export type ListProjectIssuesData = { body?: never; path: { /** * The ID or slug of the organization the issues belong to. */ organization_id_or_slug: string; /** * The ID or slug of the project the issues belong to. */ project_id_or_slug: string; }; query?: { /** * An optional stat period (can be one of `"24h"`, `"14d"`, and `""`), defaults to "24h" if not provided. */ statsPeriod?: string; /** * If this is set to `1` then short IDs are looked up by this function as well. This can cause the return value of the function to return an event issue of a different project which is why this is an opt-in. */ shortIdLookup?: '1' | '0'; /** * An optional Sentry structured search query. If not provided an implied `"is:unresolved"` is assumed. */ query?: string; /** * A list of hashes of groups to return. Is not compatible with 'query' parameter. The maximum number of hashes that can be sent is 100. If more are sent, only the first 100 will be used. */ hashes?: string; /** * The sort order of the issues. Options include 'Last Seen' (`date`), 'First Seen' (`new`), 'Trends' (`trends`), 'Events' (`freq`), 'Users' (`user`), and 'Recommended' (`recommended`). */ sort?: 'date' | 'new' | 'trends' | 'freq' | 'user' | 'recommended'; /** * The maximum number of issues to return. The maximum is 100. */ limit?: number; /** * A pointer to the last object fetched and its sort order; used to retrieve the next or previous results. */ cursor?: string; }; url: '/projects/{organization_id_or_slug}/{project_id_or_slug}/issues/'; }; export type ListProjectIssuesErrors = { /** * Forbidden */ 403: unknown; }; export type ListProjectIssuesResponses = { /** * Success */ 200: Array<{ /** * Annotations on the issue, such as links to external issues. */ annotations: Array; /** * The user or team the issue is assigned to. Null when the issue is unassigned. */ assignedTo: { /** * Whether the assignee is a user or a team. */ type: 'user' | 'team'; /** * The ID of the user or team. */ id: string; /** * The display name of the user, or the slug of the team. */ name: string; /** * The email address of the user. Only set for users. */ email?: string; } | null; /** * The total number of events in the issue. */ count: string; /** * The function or module where the issue occurs. */ culprit: string; /** * When the issue was first seen (ISO 8601). */ firstSeen: string; /** * Whether the requesting user has seen the issue since it last occurred. */ hasSeen: boolean; /** * The ID of the issue. */ id: string; /** * Whether the requesting user bookmarked the issue. */ isBookmarked: boolean; /** * Whether the issue is shared publicly. */ isPublic: boolean; /** * Whether the requesting user is subscribed to the issue. */ isSubscribed: boolean; /** * When the issue was last seen (ISO 8601). */ lastSeen: string; /** * The severity level of the issue, such as `error` or `warning`. */ level: string; /** * The logger of the issue's events. */ logger: string | null; /** * Metadata of the issue. Its keys depend on the issue type. */ metadata: { /** * The file where the error was raised. */ filename: string; /** * The type of the error. */ type: string; /** * The error message. */ value: string; } | { /** * The title of the issue. */ title: string; }; /** * The number of comments on the issue. */ numComments: number; /** * The URL of the issue in Sentry. */ permalink: string; /** * The project the issue belongs to. */ project: { /** * The ID of the project. */ id?: string; /** * The name of the project. */ name?: string; /** * The slug of the project. */ slug?: string; }; /** * The ID used in the issue's public share URL. Null when the issue isn't shared. */ shareId: string | null; /** * The short ID of the issue, such as `PROJECT-1A`. */ shortId: string; /** * Event counts for the issue over time. */ stats: { /** * Hourly event counts for the last 24 hours, as [timestamp, count] pairs. */ '24h'?: Array>; }; /** * The status of the issue. */ status: 'resolved' | 'unresolved' | 'ignored'; /** * Details of the issue's status, such as when an ignore expires or which release resolves it. Empty when the status has no details. */ statusDetails: { /** * Number of additional events after which the issue stops being ignored. */ ignoreCount?: number | null; /** * When the issue stops being ignored. */ ignoreUntil?: string | null; /** * Number of additional affected users after which the issue stops being ignored. */ ignoreUserCount?: number | null; /** * Time window in minutes for ignoreUserCount. */ ignoreUserWindow?: number | null; /** * Time window in minutes for ignoreCount. */ ignoreWindow?: number | null; /** * User who ignored or resolved the issue. */ actor?: { /** * ID of the user. */ id?: string; /** * Name of the user. */ name?: string; /** * Username of the user. */ username?: string; /** * Email address of the user. */ email?: string; } | null; /** * Whether the issue is resolved in the next release. */ inNextRelease?: boolean; /** * Version of the release the issue is resolved in. */ inRelease?: string; /** * Commit the issue is resolved in. */ inCommit?: string; /** * Number of events still waiting to be reprocessed. */ pendingEvents?: number; /** * Reprocessing progress details. */ info?: { /** * When reprocessing started (ISO 8601). */ dateCreated: string; /** * Number of events in the issue when reprocessing started. */ syncCount: number; /** * Number of events to reprocess, at most the requested maximum. */ totalEvents: number; } | null; }; /** * Why the requesting user is subscribed to the issue. Null when there's no subscription. */ subscriptionDetails: { /** * Whether the requesting user turned off notifications for the issue. */ disabled?: boolean; /** * Why the requesting user is subscribed, such as `commented`, `assigned`, `bookmarked`, `changed_status`, `mentioned` or `unknown`. */ reason?: string; } | null; /** * The title of the issue. */ title: string; /** * The event type of the issue, such as `error` or `default`. */ type: string; /** * The number of users affected by the issue. */ userCount: number; }>; }; export type ListProjectIssuesResponse = ListProjectIssuesResponses[keyof ListProjectIssuesResponses]; export type UpdateProjectIssuesData = { body: { /** * The new status for the issues. Valid values are `"resolved"`, `"resolvedInNextRelease"`, `"unresolved"`, and `"ignored"`. */ status?: string; /** * Additional details about the resolution. Valid values are `"inRelease"`, `"inNextRelease"`, `"inCommit"`, `"ignoreDuration"`, `"ignoreCount"`, `"ignoreWindow"`, `"ignoreUserCount"`, and `"ignoreUserWindow"`. */ statusDetails?: { inRelease?: string; inNextRelease?: boolean; inCommit?: string; ignoreDuration?: number; ignoreCount?: number; ignoreWindow?: number; ignoreUserCount?: number; ignoreUserWindow?: number; }; /** * The number of minutes to ignore this issue. */ ignoreDuration?: number; /** * Sets the issue to public or private. */ isPublic?: boolean; /** * Allows to merge or unmerge different issues. */ merge?: boolean; /** * The actor ID (or username) of the user or team that should be assigned to this issue. */ assignedTo?: string; /** * In case this API call is invoked with a user context this allows changing of the flag that indicates if the user has seen the event. */ hasSeen?: boolean; /** * In case this API call is invoked with a user context this allows changing of the bookmark flag. */ isBookmarked?: boolean; }; path: { /** * The ID or slug of the organization the issues belong to. */ organization_id_or_slug: string; /** * The ID or slug of the project the issues belong to. */ project_id_or_slug: string; }; query?: { /** * A list of IDs of the issues to be mutated. This parameter shall be repeated for each issue. It is optional only if a status is mutated in which case an implicit update all is assumed. */ id?: number; /** * An optional Sentry structured search query that selects the issues to update when `id` is not provided. If not provided an implied `"is:unresolved"` is assumed. Use `is:` (e.g. `is:resolved`) to limit it to issues with that status. */ query?: string; }; url: '/projects/{organization_id_or_slug}/{project_id_or_slug}/issues/'; }; export type UpdateProjectIssuesErrors = { /** * Bad Input */ 400: unknown; /** * Forbidden */ 403: unknown; /** * The requested resource does not exist */ 404: unknown; }; export type UpdateProjectIssuesResponses = { /** * Success */ 200: { /** * Whether the issues are shared publicly. */ isPublic: boolean; /** * The new status of the issues. */ status: 'resolved' | 'unresolved' | 'ignored'; /** * Details of the new status, such as the release that resolves the issues or when an ignore expires. Empty when the new status has no details. */ statusDetails: { /** * Number of additional events after which the issues stop being ignored. */ ignoreCount?: number | null; /** * When the issues stop being ignored. */ ignoreUntil?: string | null; /** * Number of additional affected users after which the issues stop being ignored. */ ignoreUserCount?: number | null; /** * Time window in minutes for ignoreUserCount. */ ignoreUserWindow?: number | null; /** * Time window in minutes for ignoreCount. */ ignoreWindow?: number | null; /** * Whether the issues stay ignored until they escalate. */ ignoreUntilEscalating?: boolean; /** * User who ignored or resolved the issues. */ actor?: { /** * ID of the user. */ id?: string; /** * Name of the user. */ name?: string; /** * Username of the user. */ username?: string; /** * Email address of the user. */ email?: string; } | null; /** * Whether the issues are resolved in the next release. */ inNextRelease?: boolean; /** * Version of the release the issues are resolved in. */ inRelease?: string; /** * Commit the issues are resolved in. */ inCommit?: { /** * Commit SHA. */ id?: string; /** * Commit message. */ message?: string | null; /** * When the commit was made. */ dateCreated?: string; }; }; }; }; export type UpdateProjectIssuesResponse = UpdateProjectIssuesResponses[keyof UpdateProjectIssuesResponses]; export type ListOrganizationReleaseCommitfilesData = { body?: never; path: { /** * The ID or slug of the organization the release belongs to. */ organization_id_or_slug: string; /** * The version identifier of the release. */ version: string; }; query?: never; url: '/organizations/{organization_id_or_slug}/releases/{version}/commitfiles/'; }; export type ListOrganizationReleaseCommitfilesErrors = { /** * Forbidden */ 403: unknown; /** * Not Found */ 404: unknown; }; export type ListOrganizationReleaseCommitfilesResponses = { /** * Success */ 200: unknown; }; export type ListOrganizationSentryAppInstallationsData = { body?: never; path: { /** * The organization short name. */ organization_id_or_slug: string; }; query?: { /** * A pointer to the last object fetched and its sort order; used to retrieve the next or previous results. */ cursor?: string; }; url: '/organizations/{organization_id_or_slug}/sentry-app-installations/'; }; export type ListOrganizationSentryAppInstallationsErrors = { /** * Forbidden */ 403: unknown; /** * Not Found */ 404: unknown; }; export type ListOrganizationSentryAppInstallationsResponses = { /** * Success */ 200: Array<{ /** * Custom integration that's installed */ app: { /** * UUID of the custom integration */ uuid: string; /** * Slug of the custom integration */ slug: string; /** * ID of the custom integration */ sentryAppId: number; }; /** * Organization the integration is installed in */ organization: { /** * Slug of the organization the integration is installed in */ slug: string; }; /** * UUID of the installation */ uuid: string; /** * Status of the installation, such as pending or installed */ status: string; }>; }; export type ListOrganizationSentryAppInstallationsResponse = ListOrganizationSentryAppInstallationsResponses[keyof ListOrganizationSentryAppInstallationsResponses]; export type CreateSentryAppInstallationExternalIssueData = { body: { /** * The ID of the Sentry issue to link the external issue to. */ issueId: number; /** * The URL of the external service to link the issue to. */ webUrl: string; /** * The external service's project. */ project: string; /** * A unique identifier of the external issue. */ identifier: string; }; path: { /** * The uuid of the integration platform integration. */ uuid: string; }; query?: never; url: '/sentry-app-installations/{uuid}/external-issues/'; }; export type CreateSentryAppInstallationExternalIssueErrors = { /** * Forbidden */ 403: unknown; /** * Not Found */ 404: unknown; }; export type CreateSentryAppInstallationExternalIssueResponses = { /** * Success */ 200: { /** * ID of the external issue link */ id: string; /** * ID of the Sentry issue */ issueId: string; /** * Slug of the custom integration that created the external issue */ serviceType: string; /** * Display name of the external issue, such as ABC-123 */ displayName: string; /** * URL of the external issue */ webUrl: string; }; }; export type CreateSentryAppInstallationExternalIssueResponse = CreateSentryAppInstallationExternalIssueResponses[keyof CreateSentryAppInstallationExternalIssueResponses]; export type DeleteSentryAppInstallationExternalIssueData = { body?: never; path: { /** * The uuid of the integration platform integration. */ uuid: string; /** * The ID of the external issue. */ external_issue_id: string; }; query?: never; url: '/sentry-app-installations/{uuid}/external-issues/{external_issue_id}/'; }; export type DeleteSentryAppInstallationExternalIssueErrors = { /** * Forbidden */ 403: unknown; /** * External issue not found */ 404: unknown; /** * This issue link is being updated. Try again. */ 409: unknown; }; export type DeleteSentryAppInstallationExternalIssueResponses = { /** * Success */ 204: void; }; export type DeleteSentryAppInstallationExternalIssueResponse = DeleteSentryAppInstallationExternalIssueResponses[keyof DeleteSentryAppInstallationExternalIssueResponses]; export type DeleteOrganizationSpikeProtectionsData = { /** * Django Rest Framework serializer for incoming Spike Protection API payloads */ body: { /** * Slugs of projects to disable Spike Protection for. Set to `$all` to disable Spike Protection for all the projects in the organization. */ projects: Array; }; path: { /** * The ID or slug of the organization the projects belong to */ organization_id_or_slug: string; }; query?: never; url: '/organizations/{organization_id_or_slug}/spike-protections/'; }; export type DeleteOrganizationSpikeProtectionsErrors = { /** * Bad Request */ 400: unknown; /** * Forbidden */ 403: unknown; }; export type DeleteOrganizationSpikeProtectionsResponses = { /** * Success */ 200: unknown; }; export type CreateOrganizationSpikeProtectionData = { /** * Django Rest Framework serializer for incoming Spike Protection API payloads */ body: { /** * Slugs of projects to enable Spike Protection for. Set to `$all` to enable Spike Protection for all the projects in the organization. */ projects: Array; }; path: { /** * The ID or slug of the organization the projects belong to */ organization_id_or_slug: string; }; query?: never; url: '/organizations/{organization_id_or_slug}/spike-protections/'; }; export type CreateOrganizationSpikeProtectionErrors = { /** * Bad Request */ 400: unknown; /** * Forbidden */ 403: unknown; }; export type CreateOrganizationSpikeProtectionResponses = { /** * Success */ 201: unknown; }; export type DeleteOrganizationIssueData = { body?: never; path: { /** * The ID or slug of the organization the resource belongs to. */ organization_id_or_slug: string; /** * The ID of the issue you'd like to query. */ issue_id: string; }; query?: never; url: '/organizations/{organization_id_or_slug}/issues/{issue_id}/'; }; export type DeleteOrganizationIssueErrors = { /** * Unauthorized */ 401: unknown; /** * Forbidden */ 403: unknown; /** * Not Found */ 404: unknown; }; export type DeleteOrganizationIssueResponses = { /** * Accepted */ 202: unknown; }; export type GetOrganizationIssueData = { body?: never; path: { /** * The ID or slug of the organization the resource belongs to. */ organization_id_or_slug: string; /** * The ID of the issue you'd like to query. */ issue_id: string; }; query?: { /** * The name of environments to filter by. */ environment?: Array; /** * Additional data to include in the response. */ expand?: Array<'forecast' | 'inbox' | 'integrationIssues' | 'latestEventHasAttachments' | 'owners' | 'sentryAppIssues'>; /** * Fields to remove from the response to improve query performance. */ collapse?: Array<'release' | 'stats' | 'tags'>; }; url: '/organizations/{organization_id_or_slug}/issues/{issue_id}/'; }; export type GetOrganizationIssueErrors = { /** * Unauthorized */ 401: unknown; /** * Forbidden */ 403: unknown; /** * Not Found */ 404: unknown; }; export type GetOrganizationIssueResponses = { 200: { /** * Whether the issue includes unhandled events */ isUnhandled?: boolean; /** * Total number of events in the issue */ count?: string; /** * Number of users affected by the issue */ userCount?: number; /** * When the issue was first seen (ISO 8601) */ firstSeen?: string | null; /** * When the issue was last seen (ISO 8601) */ lastSeen?: string | null; /** * Additional data derived for the issue. Only included when requested with expand */ derivedData?: { /** * Action that blocks progress on the issue: none, approve_root_cause, approve_plan, approve_code_changes or merge_pr */ blocker: string; /** * How far the issue is toward resolution: identified, assigned, diagnosed, fix_proposed or fix_applied */ progress: string; /** * Status of the issue from its action log: open or closed */ status: string; /** * Number of times the issue was viewed */ viewCount: number; /** * Whether an open pull request is linked to the issue */ hasOpenFixPr: boolean; /** * Whether the issue has an assignee */ isAssigned: boolean; /** * Whether a root cause was found for the issue */ hasRootCause: boolean; /** * Furthest Autofix step completed: none, root_cause, solution, code_changes, pr_created or pr_iteration */ lastCompletedAutofixStep: string; /** * When the issue's progress last advanced (ISO 8601) */ lastProgressedAt: string | null; /** * The issue's impact assessment, or null when no assessment is available */ impact?: { /** * Estimated per-occurrence impact on the end user's capability from 0 to 100 */ score: number | null; /** * Impact level derived from the assessment score */ level: 'super_low' | 'low' | 'moderate' | 'high' | 'super_high' | null; /** * Human-readable description of the capability affected by the issue */ description: string; /** * Evidence-backed claims supporting the impact assessment */ citations: Array<{ /** * Stable identifier for the evidence supporting this claim */ reference: string; /** * Concise explanation of what the cited evidence establishes */ claim: string; /** * The category of evidence cited, such as an event, trace, replay, or log */ source: string; }>; /** * ID of the issue event used to generate the impact assessment */ sourceEventId: string; } | null; }; /** * ID of the issue */ id: string; /** * ID used in the issue's public share URL. Null when the issue isn't shared */ shareId: string | null; /** * Short ID of the issue, such as PROJECT-1A */ shortId: string | null; /** * Title of the issue */ title: string; /** * Function or module where the issue occurs */ culprit: string | null; /** * URL of the issue in Sentry */ permalink: string; /** * Logger of the issue's events */ logger: string | null; /** * Severity level of the issue */ level: 'sample' | 'debug' | 'info' | 'warning' | 'error' | 'fatal' | 'unknown'; /** * Issue status */ status: 'resolved' | 'ignored' | 'pending_deletion' | 'pending_merge' | 'reprocessing' | 'unresolved'; /** * Details of the issue's status, such as when an ignore expires or which release resolves it */ statusDetails: { /** * Number of additional events after which the issue stops being ignored */ ignoreCount?: number | null; /** * When the issue stops being ignored (ISO 8601) */ ignoreUntil?: string | null; /** * Number of additional affected users after which the issue stops being ignored */ ignoreUserCount?: number | null; /** * Time window in minutes for ignoreUserCount */ ignoreUserWindow?: number | null; /** * Time window in minutes for ignoreCount */ ignoreWindow?: number | null; /** * User who ignored or resolved the issue */ actor?: { /** * SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access */ identities?: Array<{ /** * SSO identity ID */ id: string; /** * User's identifier at the auth provider */ name: string; /** * Organization the auth provider belongs to */ organization: { /** * Organization slug */ slug: string; /** * Organization name */ name: string; }; /** * Auth provider of the identity */ provider: { /** * Auth provider key, such as google or saml2 */ id: string; /** * Display name of the auth provider */ name: string; }; /** * When the identity was last verified by signing in through the auth provider */ dateVerified: string; /** * When the identity was last synced from the auth provider */ dateSynced: string; }>; /** * User avatar */ avatar?: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Two-factor authenticators of the user, without backup methods such as recovery codes */ authenticators?: Array<{ /** * Authenticator ID */ id: string; /** * Authenticator type, such as totp, sms, u2f or recovery */ type: string; /** * Display name of the authenticator type */ name: string; /** * When the authenticator was added */ dateCreated: string; /** * When the authenticator was last used, or null */ dateUsed: string | null; }>; /** * Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization */ canReset2fa?: boolean; /** * User ID */ id: string; /** * Display name: the user's name, or their email or username if no name is set */ name: string; /** * Username */ username: string; /** * Primary email address */ email: string; /** * Gravatar URL for the primary email address */ avatarUrl: string; /** * Whether the account is active */ isActive: boolean; /** * Whether the account is suspended. Suspended users can't sign in */ isSuspended: boolean; /** * Whether the user has a password set */ hasPasswordAuth: boolean; /** * Whether the account is managed, which stops the user from changing their username, password and similar details */ isManaged: boolean; /** * When the account was created */ dateJoined: string; /** * When the user last signed in, or null */ lastLogin: string | null; /** * Whether the user has two-factor authentication enabled */ has2fa: boolean; /** * When the user was last active, or null */ lastActive: string | null; /** * Whether the user is a superuser */ isSuperuser: boolean; /** * Whether the user has staff status */ isStaff: boolean; /** * Deprecated. Always an empty object */ experiments: { [key: string]: string; }; /** * Email addresses of the user. Only included for the requesting user or superusers; empty otherwise */ emails: Array<{ /** * Email ID */ id: string; /** * Email address */ email: string; /** * Whether the email address is verified */ is_verified: boolean; }>; } | null; /** * Whether the issue is resolved in the next release */ inNextRelease?: boolean; /** * Version of the release the issue is resolved in */ inRelease?: string; /** * Commit the issue is resolved in */ inCommit?: string; /** * Number of events still waiting to be reprocessed */ pendingEvents?: number; /** * Reprocessing progress details */ info?: { /** * When reprocessing started (ISO 8601) */ dateCreated: string; /** * Number of events in the issue when reprocessing started */ syncCount: number; /** * Number of events to reprocess, at most the requested maximum */ totalEvents: number; } | null; }; /** * Substatus of the issue, such as ongoing, regressed or escalating */ substatus: 'archived_until_escalating' | 'archived_until_condition_met' | 'archived_forever' | 'escalating' | 'ongoing' | 'regressed' | 'new' | null; /** * Whether the issue is shared publicly */ isPublic: boolean; /** * Platform of the issue's events */ platform: string | null; /** * Priority of the issue: high, medium or low */ priority: 'low' | 'medium' | 'high' | null; /** * When the priority was last set manually, which stops automatic priority updates (ISO 8601) */ priorityLockedAt: string | null; /** * Seer's score for how likely the issue is to be fixable */ seerFixabilityScore: number | null; /** * When Seer Autofix was last triggered for the issue (ISO 8601) */ seerAutofixLastTriggered: string | null; /** * When the Seer explorer agent last completed an Autofix step for the issue (ISO 8601) */ seerExplorerAutofixLastTriggered: string | null; /** * Project the issue belongs to */ project: { /** * ID of the project */ id: string; /** * Name of the project */ name: string; /** * Slug of the project */ slug: string; /** * Platform of the project */ platform: string | null; }; /** * Event type of the issue, such as error or default */ type: 'default' | 'error' | 'csp' | 'nel' | 'hpkp' | 'expectct' | 'expectstaple' | 'transaction' | 'generic' | 'feedback'; /** * Issue type, such as error or performance_n_plus_one_db_queries */ issueType: string; /** * Issue category, such as error or performance */ issueCategory: string; /** * Issue metadata */ metadata: { /** * Title of default and issue platform events */ title?: string; /** * Exception value, or the subtitle of an issue */ value?: string; /** * Exception type of error events */ type?: string; /** * Whether the SDK fabricated the exception to carry a stacktrace, so its type is a platform label rather than what went wrong */ synthetic?: boolean; /** * File of the frame where the error happened */ filename?: string; /** * Function of the frame where the error happened */ function?: string; /** * Message of default, security and feedback events */ message?: string; /** * URI that a CSP report blocked */ uri?: string; /** * CSP directive that was violated */ directive?: string; /** * Host name of HPKP, Expect-CT and Expect-Staple reports */ origin?: string; /** * Name of the person who sent user feedback */ name?: string; /** * Email of the person who sent user feedback */ contact_email?: string; /** * Where user feedback came from, such as a widget */ source?: string; /** * Whether the stacktrace has in-app frames, system frames or both */ in_app_frame_mix?: string; /** * Whether a crash report was dropped because the issue already stores the most allowed */ stripped_crash?: boolean; /** * SDK of the issue's first event */ sdk?: { /** * Name of the SDK, or unknown */ name: string; /** * Name of the SDK, normalized for grouping */ name_normalized: string; }; /** * Severity score of the issue's first event */ severity?: number; /** * Why the severity score is what it is */ severity_reason?: string; /** * Priority the issue was created with */ initial_priority?: number; }; /** * Number of comments on the issue */ numComments: number; /** * User or team the issue is assigned to */ assignedTo: { /** * Whether the actor is a user or a team */ type: 'user' | 'team'; /** * ID of the user or team */ id: string; /** * Display name of the user, or slug of the team */ name: string; /** * Email address of the user. Only set for users */ email?: string; } | null; /** * Whether the requesting user bookmarked the issue */ isBookmarked: boolean; /** * Whether the requesting user is subscribed to the issue */ isSubscribed: boolean; /** * Why the requesting user is subscribed to the issue */ subscriptionDetails: { /** * Whether the requesting user turned off notifications for the issue */ disabled?: boolean; /** * Why the requesting user is subscribed: commented, assigned, bookmarked, changed_status, mentioned or unknown */ reason?: string; } | null; /** * Whether the requesting user has seen the issue since it last occurred */ hasSeen: boolean; /** * External issues linked to the issue */ annotations: Array<{ /** * Display name of the linked external issue */ displayName: string; /** * URL of the linked external issue */ url: string; }>; /** * First release the issue was seen in. Omitted when release is collapsed */ firstRelease?: { /** * Version control reference, such as a commit SHA or tag */ ref?: string | null; /** * Release URL */ url?: string | null; /** * When the release went live (ISO 8601) */ dateReleased?: string | null; /** * When the release was created (ISO 8601) */ dateCreated?: string | null; /** * When the release started (ISO 8601) */ dateStarted?: string | null; /** * Release owner */ owner?: { /** * SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access */ identities?: Array<{ /** * SSO identity ID */ id: string; /** * User's identifier at the auth provider */ name: string; /** * Organization the auth provider belongs to */ organization: { /** * Organization slug */ slug: string; /** * Organization name */ name: string; }; /** * Auth provider of the identity */ provider: { /** * Auth provider key, such as google or saml2 */ id: string; /** * Display name of the auth provider */ name: string; }; /** * When the identity was last verified by signing in through the auth provider */ dateVerified: string; /** * When the identity was last synced from the auth provider */ dateSynced: string; }>; /** * User avatar */ avatar?: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Two-factor authenticators of the user, without backup methods such as recovery codes */ authenticators?: Array<{ /** * Authenticator ID */ id: string; /** * Authenticator type, such as totp, sms, u2f or recovery */ type: string; /** * Display name of the authenticator type */ name: string; /** * When the authenticator was added */ dateCreated: string; /** * When the authenticator was last used, or null */ dateUsed: string | null; }>; /** * Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization */ canReset2fa?: boolean; /** * User ID */ id: string; /** * Display name: the user's name, or their email or username if no name is set */ name: string; /** * Username */ username: string; /** * Primary email address */ email: string; /** * Gravatar URL for the primary email address */ avatarUrl: string; /** * Whether the account is active */ isActive: boolean; /** * Whether the account is suspended. Suspended users can't sign in */ isSuspended: boolean; /** * Whether the user has a password set */ hasPasswordAuth: boolean; /** * Whether the account is managed, which stops the user from changing their username, password and similar details */ isManaged: boolean; /** * When the account was created */ dateJoined: string; /** * When the user last signed in, or null */ lastLogin: string | null; /** * Whether the user has two-factor authentication enabled */ has2fa: boolean; /** * When the user was last active, or null */ lastActive: string | null; /** * Whether the user is a superuser */ isSuperuser: boolean; /** * Whether the user has staff status */ isStaff: boolean; /** * Deprecated. Always an empty object */ experiments: { [key: string]: string; }; /** * Email addresses of the user. Only included for the requesting user or superusers; empty otherwise */ emails: Array<{ /** * Email ID */ id: string; /** * Email address */ email: string; /** * Whether the email address is verified */ is_verified: boolean; }>; } | null; /** * Most recent commit in the release */ lastCommit?: { /** * Commit SHA */ id: string; /** * Commit message */ message: string | null; /** * When the commit was made (ISO 8601) */ dateCreated: string; /** * Pull request the commit belongs to */ pullRequest: { /** * Number or key of the pull request in the provider */ id: string; /** * Title of the pull request */ title: string | null; /** * Description of the pull request */ message: string | null; /** * When Sentry recorded the pull request (ISO 8601) */ dateCreated: string; /** * When the pull request was merged (ISO 8601). Null when it isn't merged */ mergedAt: string | null; /** * State of the pull request: merged, open, closed, draft or unknown. Null when not known */ status: 'merged' | 'open' | 'closed' | 'draft' | 'unknown' | null; /** * Repository of the pull request */ repository: { /** * URL of the repository */ url?: string | null; /** * Provider of the repository, with its id and name */ provider?: { [key: string]: string; }; /** * Status of the repository */ status?: 'active' | 'disabled' | 'pending_deletion' | 'deletion_in_progress'; /** * ID of the repository's integration. Null for repositories added without an integration */ integrationId?: string | null; /** * Identifier of the repository in the provider, such as owner/name */ externalSlug?: string | null; /** * ID of the repository in the provider */ externalId?: string | null; /** * Settings of the repository. Only set when expand includes settings. Null when it has none */ settings?: { /** * Whether AI code review is on for the repository */ enabledCodeReview: boolean; /** * Pull request events that start a code review: on_new_commit or on_ready_for_review */ codeReviewTriggers: Array; } | null; /** * ID of the repository */ id: string; /** * Name of the repository, such as owner/name */ name: string; /** * When the repository was added to Sentry (ISO 8601) */ dateCreated: string; }; /** * Author of the pull request, or an empty object when it has none */ author: { /** * SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access */ identities?: Array<{ /** * SSO identity ID */ id: string; /** * User's identifier at the auth provider */ name: string; /** * Organization the auth provider belongs to */ organization: { /** * Organization slug */ slug: string; /** * Organization name */ name: string; }; /** * Auth provider of the identity */ provider: { /** * Auth provider key, such as google or saml2 */ id: string; /** * Display name of the auth provider */ name: string; }; /** * When the identity was last verified by signing in through the auth provider */ dateVerified: string; /** * When the identity was last synced from the auth provider */ dateSynced: string; }>; /** * User avatar */ avatar?: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Two-factor authenticators of the user, without backup methods such as recovery codes */ authenticators?: Array<{ /** * Authenticator ID */ id: string; /** * Authenticator type, such as totp, sms, u2f or recovery */ type: string; /** * Display name of the authenticator type */ name: string; /** * When the authenticator was added */ dateCreated: string; /** * When the authenticator was last used, or null */ dateUsed: string | null; }>; /** * Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization */ canReset2fa?: boolean; /** * User ID */ id: string; /** * Display name: the user's name, or their email or username if no name is set */ name: string; /** * Username */ username: string; /** * Primary email address */ email: string; /** * Gravatar URL for the primary email address */ avatarUrl: string; /** * Whether the account is active */ isActive: boolean; /** * Whether the account is suspended. Suspended users can't sign in */ isSuspended: boolean; /** * Whether the user has a password set */ hasPasswordAuth: boolean; /** * Whether the account is managed, which stops the user from changing their username, password and similar details */ isManaged: boolean; /** * When the account was created */ dateJoined: string; /** * When the user last signed in, or null */ lastLogin: string | null; /** * Whether the user has two-factor authentication enabled */ has2fa: boolean; /** * When the user was last active, or null */ lastActive: string | null; /** * Whether the user is a superuser */ isSuperuser: boolean; /** * Whether the user has staff status */ isStaff: boolean; /** * Deprecated. Always an empty object */ experiments: { [key: string]: string; }; /** * Email addresses of the user. Only included for the requesting user or superusers; empty otherwise */ emails: Array<{ /** * Email ID */ id: string; /** * Email address */ email: string; /** * Whether the email address is verified */ is_verified: boolean; }>; } | { /** * Commit author name */ name: string | null; /** * Commit author email */ email: string; } | { [key: string]: unknown; }; /** * URL of the pull request in the provider, or null when the provider can't build one */ externalUrl: string | null; } | null; /** * How the commit was found as a suspect commit: via commit in release or via SCM integration. Empty for other commits */ suspectCommitType: string; /** * Repository the commit belongs to */ repository?: { /** * URL of the repository */ url?: string | null; /** * Provider of the repository, with its id and name */ provider?: { [key: string]: string; }; /** * Status of the repository */ status?: 'active' | 'disabled' | 'pending_deletion' | 'deletion_in_progress'; /** * ID of the repository's integration. Null for repositories added without an integration */ integrationId?: string | null; /** * Identifier of the repository in the provider, such as owner/name */ externalSlug?: string | null; /** * ID of the repository in the provider */ externalId?: string | null; /** * Settings of the repository. Only set when expand includes settings. Null when it has none */ settings?: { /** * Whether AI code review is on for the repository */ enabledCodeReview: boolean; /** * Pull request events that start a code review: on_new_commit or on_ready_for_review */ codeReviewTriggers: Array; } | null; /** * ID of the repository */ id: string; /** * Name of the repository, such as owner/name */ name: string; /** * When the repository was added to Sentry (ISO 8601) */ dateCreated: string; }; /** * Author of the commit: a Sentry user when the email matches one, otherwise the name and email from the commit */ author?: { /** * SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access */ identities?: Array<{ /** * SSO identity ID */ id: string; /** * User's identifier at the auth provider */ name: string; /** * Organization the auth provider belongs to */ organization: { /** * Organization slug */ slug: string; /** * Organization name */ name: string; }; /** * Auth provider of the identity */ provider: { /** * Auth provider key, such as google or saml2 */ id: string; /** * Display name of the auth provider */ name: string; }; /** * When the identity was last verified by signing in through the auth provider */ dateVerified: string; /** * When the identity was last synced from the auth provider */ dateSynced: string; }>; /** * User avatar */ avatar?: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Two-factor authenticators of the user, without backup methods such as recovery codes */ authenticators?: Array<{ /** * Authenticator ID */ id: string; /** * Authenticator type, such as totp, sms, u2f or recovery */ type: string; /** * Display name of the authenticator type */ name: string; /** * When the authenticator was added */ dateCreated: string; /** * When the authenticator was last used, or null */ dateUsed: string | null; }>; /** * Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization */ canReset2fa?: boolean; /** * User ID */ id: string; /** * Display name: the user's name, or their email or username if no name is set */ name: string; /** * Username */ username: string; /** * Primary email address */ email: string; /** * Gravatar URL for the primary email address */ avatarUrl: string; /** * Whether the account is active */ isActive: boolean; /** * Whether the account is suspended. Suspended users can't sign in */ isSuspended: boolean; /** * Whether the user has a password set */ hasPasswordAuth: boolean; /** * Whether the account is managed, which stops the user from changing their username, password and similar details */ isManaged: boolean; /** * When the account was created */ dateJoined: string; /** * When the user last signed in, or null */ lastLogin: string | null; /** * Whether the user has two-factor authentication enabled */ has2fa: boolean; /** * When the user was last active, or null */ lastActive: string | null; /** * Whether the user is a superuser */ isSuperuser: boolean; /** * Whether the user has staff status */ isStaff: boolean; /** * Deprecated. Always an empty object */ experiments: { [key: string]: string; }; /** * Email addresses of the user. Only included for the requesting user or superusers; empty otherwise */ emails: Array<{ /** * Email ID */ id: string; /** * Email address */ email: string; /** * Whether the email address is verified */ is_verified: boolean; }>; } | { /** * Commit author name */ name: string | null; /** * Commit author email */ email: string; } | { [key: string]: unknown; }; } | null; /** * Most recent deploy of the release */ lastDeploy?: { /** * When the deploy started (ISO 8601) */ dateStarted?: string | null; /** * URL of the deploy */ url?: string | null; /** * ID of the deploy */ id: string; /** * Environment the release was deployed to */ environment: string; /** * When the deploy finished (ISO 8601) */ dateFinished: string; /** * Name of the deploy */ name: string | null; } | null; /** * When the release received its first event (ISO 8601) */ firstEvent?: string | null; /** * When the release received its most recent event (ISO 8601) */ lastEvent?: string | null; /** * Session bounds and neighboring release versions in the current project, when a project is requested */ currentProjectMeta?: { /** * Start of the release's sessions in the project (ISO 8601) */ sessionsLowerBound?: string | null; /** * End of the release's sessions in the project (ISO 8601) */ sessionsUpperBound?: string | null; /** * Version of the next release in the project */ nextReleaseVersion?: string | null; /** * Version of the previous release in the project */ prevReleaseVersion?: string | null; /** * Version of the first release in the project */ firstReleaseVersion?: string | null; /** * Version of the latest release in the project */ lastReleaseVersion?: string | null; } | null; /** * User agent of the client that created the release */ userAgent?: string | null; /** * Adoption stage of the release in each project, keyed by project slug */ adoptionStages?: { [key: string]: { /** * Adoption stage of the release */ stage: 'adopted' | 'low_adoption' | 'replaced'; /** * When the release was adopted (ISO 8601) */ adopted: string | null; /** * When the release stopped being adopted (ISO 8601) */ unadopted: string | null; }; } | null; /** * Release ID */ id: number; /** * Version of the release */ version: string; /** * Number of new issues first seen in the release */ newGroups: number; /** * Release status */ status: 'open' | 'archived'; /** * Shortened release version */ shortVersion: string; /** * Parsed version information */ versionInfo: { /** * Human-readable version, such as 1.0.0 (123) */ description?: string; /** * Package name parsed from the release version, such as com.example.app */ package: string | null; /** * Parsed version: the raw string, plus major, minor, patch, pre, buildCode and components when it's a semantic version */ version: { /** * Major version */ major?: number; /** * Minor version */ minor?: number; /** * Patch version */ patch?: number; /** * Pre-release identifier, such as rc1 */ pre?: string | null; /** * Build code, such as 123 */ buildCode?: string | null; /** * Number of version components given */ components?: number; /** * Version string the release was created with */ raw: string; }; /** * Build hash parsed from the release version */ buildHash: string | null; } | null; /** * Extra data stored on the release */ data: { [key: string]: unknown; }; /** * Number of commits in the release */ commitCount: number; /** * Number of deploys of the release */ deployCount: number; /** * Authors of the release's commits */ authors: Array<{ /** * SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access */ identities?: Array<{ /** * SSO identity ID */ id: string; /** * User's identifier at the auth provider */ name: string; /** * Organization the auth provider belongs to */ organization: { /** * Organization slug */ slug: string; /** * Organization name */ name: string; }; /** * Auth provider of the identity */ provider: { /** * Auth provider key, such as google or saml2 */ id: string; /** * Display name of the auth provider */ name: string; }; /** * When the identity was last verified by signing in through the auth provider */ dateVerified: string; /** * When the identity was last synced from the auth provider */ dateSynced: string; }>; /** * User avatar */ avatar?: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Two-factor authenticators of the user, without backup methods such as recovery codes */ authenticators?: Array<{ /** * Authenticator ID */ id: string; /** * Authenticator type, such as totp, sms, u2f or recovery */ type: string; /** * Display name of the authenticator type */ name: string; /** * When the authenticator was added */ dateCreated: string; /** * When the authenticator was last used, or null */ dateUsed: string | null; }>; /** * Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization */ canReset2fa?: boolean; /** * User ID */ id: string; /** * Display name: the user's name, or their email or username if no name is set */ name: string; /** * Username */ username: string; /** * Primary email address */ email: string; /** * Gravatar URL for the primary email address */ avatarUrl: string; /** * Whether the account is active */ isActive: boolean; /** * Whether the account is suspended. Suspended users can't sign in */ isSuspended: boolean; /** * Whether the user has a password set */ hasPasswordAuth: boolean; /** * Whether the account is managed, which stops the user from changing their username, password and similar details */ isManaged: boolean; /** * When the account was created */ dateJoined: string; /** * When the user last signed in, or null */ lastLogin: string | null; /** * Whether the user has two-factor authentication enabled */ has2fa: boolean; /** * When the user was last active, or null */ lastActive: string | null; /** * Whether the user is a superuser */ isSuperuser: boolean; /** * Whether the user has staff status */ isStaff: boolean; /** * Deprecated. Always an empty object */ experiments: { [key: string]: string; }; /** * Email addresses of the user. Only included for the requesting user or superusers; empty otherwise */ emails: Array<{ /** * Email ID */ id: string; /** * Email address */ email: string; /** * Whether the email address is verified */ is_verified: boolean; }>; } | { /** * Commit author name */ name: string | null; /** * Commit author email */ email: string; }>; /** * Projects in the release */ projects: Array<{ /** * Release health data for the project. Only included when health data is requested */ healthData?: { /** * Median session duration in seconds */ durationP50?: number | null; /** * 90th percentile session duration in seconds */ durationP90?: number | null; /** * Percentage of users who didn't experience a crash */ crashFreeUsers?: number | null; /** * Percentage of sessions that didn't crash */ crashFreeSessions?: number | null; /** * Total number of users in the release */ totalUsers?: number | null; /** * Number of users in the release over the last 24 hours */ totalUsers24h?: number | null; /** * Number of users in the project over the last 24 hours */ totalProjectUsers24h?: number | null; /** * Total number of sessions in the release */ totalSessions?: number | null; /** * Number of sessions in the release over the last 24 hours */ totalSessions24h?: number | null; /** * Number of sessions in the project over the last 24 hours */ totalProjectSessions24h?: number | null; /** * Percentage of the project's users over the last 24 hours that were on the release */ adoption?: number | null; /** * Percentage of the project's sessions over the last 24 hours that were on the release */ sessionsAdoption?: number | null; /** * Number of crashed sessions */ sessionsCrashed: number; /** * Number of sessions with errors */ sessionsErrored: number; /** * Whether the release has session data */ hasHealthData: boolean; /** * Session or user counts over time, keyed by stats period */ stats: { [key: string]: Array>; }; } | null; /** * When the release was released in the project (ISO 8601) */ dateReleased?: string | null; /** * When the release was created (ISO 8601) */ dateCreated?: string | null; /** * When work on the release started (ISO 8601) */ dateStarted?: string | null; /** * ID of the project */ id: number; /** * Slug of the project */ slug: string; /** * Name of the project */ name: string; /** * Platform of the project */ platform: string | null; /** * Platforms of the project */ platforms: Array | null; /** * Whether the release has session data in the project */ hasHealthData: boolean; /** * Number of new issues first seen in the release in the project */ newGroups: number; }>; } | { /** * Version of the release */ version: string; } | null; /** * Latest release the issue was seen in. Omitted when release is collapsed */ lastRelease?: { /** * Version control reference, such as a commit SHA or tag */ ref?: string | null; /** * Release URL */ url?: string | null; /** * When the release went live (ISO 8601) */ dateReleased?: string | null; /** * When the release was created (ISO 8601) */ dateCreated?: string | null; /** * When the release started (ISO 8601) */ dateStarted?: string | null; /** * Release owner */ owner?: { /** * SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access */ identities?: Array<{ /** * SSO identity ID */ id: string; /** * User's identifier at the auth provider */ name: string; /** * Organization the auth provider belongs to */ organization: { /** * Organization slug */ slug: string; /** * Organization name */ name: string; }; /** * Auth provider of the identity */ provider: { /** * Auth provider key, such as google or saml2 */ id: string; /** * Display name of the auth provider */ name: string; }; /** * When the identity was last verified by signing in through the auth provider */ dateVerified: string; /** * When the identity was last synced from the auth provider */ dateSynced: string; }>; /** * User avatar */ avatar?: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Two-factor authenticators of the user, without backup methods such as recovery codes */ authenticators?: Array<{ /** * Authenticator ID */ id: string; /** * Authenticator type, such as totp, sms, u2f or recovery */ type: string; /** * Display name of the authenticator type */ name: string; /** * When the authenticator was added */ dateCreated: string; /** * When the authenticator was last used, or null */ dateUsed: string | null; }>; /** * Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization */ canReset2fa?: boolean; /** * User ID */ id: string; /** * Display name: the user's name, or their email or username if no name is set */ name: string; /** * Username */ username: string; /** * Primary email address */ email: string; /** * Gravatar URL for the primary email address */ avatarUrl: string; /** * Whether the account is active */ isActive: boolean; /** * Whether the account is suspended. Suspended users can't sign in */ isSuspended: boolean; /** * Whether the user has a password set */ hasPasswordAuth: boolean; /** * Whether the account is managed, which stops the user from changing their username, password and similar details */ isManaged: boolean; /** * When the account was created */ dateJoined: string; /** * When the user last signed in, or null */ lastLogin: string | null; /** * Whether the user has two-factor authentication enabled */ has2fa: boolean; /** * When the user was last active, or null */ lastActive: string | null; /** * Whether the user is a superuser */ isSuperuser: boolean; /** * Whether the user has staff status */ isStaff: boolean; /** * Deprecated. Always an empty object */ experiments: { [key: string]: string; }; /** * Email addresses of the user. Only included for the requesting user or superusers; empty otherwise */ emails: Array<{ /** * Email ID */ id: string; /** * Email address */ email: string; /** * Whether the email address is verified */ is_verified: boolean; }>; } | null; /** * Most recent commit in the release */ lastCommit?: { /** * Commit SHA */ id: string; /** * Commit message */ message: string | null; /** * When the commit was made (ISO 8601) */ dateCreated: string; /** * Pull request the commit belongs to */ pullRequest: { /** * Number or key of the pull request in the provider */ id: string; /** * Title of the pull request */ title: string | null; /** * Description of the pull request */ message: string | null; /** * When Sentry recorded the pull request (ISO 8601) */ dateCreated: string; /** * When the pull request was merged (ISO 8601). Null when it isn't merged */ mergedAt: string | null; /** * State of the pull request: merged, open, closed, draft or unknown. Null when not known */ status: 'merged' | 'open' | 'closed' | 'draft' | 'unknown' | null; /** * Repository of the pull request */ repository: { /** * URL of the repository */ url?: string | null; /** * Provider of the repository, with its id and name */ provider?: { [key: string]: string; }; /** * Status of the repository */ status?: 'active' | 'disabled' | 'pending_deletion' | 'deletion_in_progress'; /** * ID of the repository's integration. Null for repositories added without an integration */ integrationId?: string | null; /** * Identifier of the repository in the provider, such as owner/name */ externalSlug?: string | null; /** * ID of the repository in the provider */ externalId?: string | null; /** * Settings of the repository. Only set when expand includes settings. Null when it has none */ settings?: { /** * Whether AI code review is on for the repository */ enabledCodeReview: boolean; /** * Pull request events that start a code review: on_new_commit or on_ready_for_review */ codeReviewTriggers: Array; } | null; /** * ID of the repository */ id: string; /** * Name of the repository, such as owner/name */ name: string; /** * When the repository was added to Sentry (ISO 8601) */ dateCreated: string; }; /** * Author of the pull request, or an empty object when it has none */ author: { /** * SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access */ identities?: Array<{ /** * SSO identity ID */ id: string; /** * User's identifier at the auth provider */ name: string; /** * Organization the auth provider belongs to */ organization: { /** * Organization slug */ slug: string; /** * Organization name */ name: string; }; /** * Auth provider of the identity */ provider: { /** * Auth provider key, such as google or saml2 */ id: string; /** * Display name of the auth provider */ name: string; }; /** * When the identity was last verified by signing in through the auth provider */ dateVerified: string; /** * When the identity was last synced from the auth provider */ dateSynced: string; }>; /** * User avatar */ avatar?: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Two-factor authenticators of the user, without backup methods such as recovery codes */ authenticators?: Array<{ /** * Authenticator ID */ id: string; /** * Authenticator type, such as totp, sms, u2f or recovery */ type: string; /** * Display name of the authenticator type */ name: string; /** * When the authenticator was added */ dateCreated: string; /** * When the authenticator was last used, or null */ dateUsed: string | null; }>; /** * Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization */ canReset2fa?: boolean; /** * User ID */ id: string; /** * Display name: the user's name, or their email or username if no name is set */ name: string; /** * Username */ username: string; /** * Primary email address */ email: string; /** * Gravatar URL for the primary email address */ avatarUrl: string; /** * Whether the account is active */ isActive: boolean; /** * Whether the account is suspended. Suspended users can't sign in */ isSuspended: boolean; /** * Whether the user has a password set */ hasPasswordAuth: boolean; /** * Whether the account is managed, which stops the user from changing their username, password and similar details */ isManaged: boolean; /** * When the account was created */ dateJoined: string; /** * When the user last signed in, or null */ lastLogin: string | null; /** * Whether the user has two-factor authentication enabled */ has2fa: boolean; /** * When the user was last active, or null */ lastActive: string | null; /** * Whether the user is a superuser */ isSuperuser: boolean; /** * Whether the user has staff status */ isStaff: boolean; /** * Deprecated. Always an empty object */ experiments: { [key: string]: string; }; /** * Email addresses of the user. Only included for the requesting user or superusers; empty otherwise */ emails: Array<{ /** * Email ID */ id: string; /** * Email address */ email: string; /** * Whether the email address is verified */ is_verified: boolean; }>; } | { /** * Commit author name */ name: string | null; /** * Commit author email */ email: string; } | { [key: string]: unknown; }; /** * URL of the pull request in the provider, or null when the provider can't build one */ externalUrl: string | null; } | null; /** * How the commit was found as a suspect commit: via commit in release or via SCM integration. Empty for other commits */ suspectCommitType: string; /** * Repository the commit belongs to */ repository?: { /** * URL of the repository */ url?: string | null; /** * Provider of the repository, with its id and name */ provider?: { [key: string]: string; }; /** * Status of the repository */ status?: 'active' | 'disabled' | 'pending_deletion' | 'deletion_in_progress'; /** * ID of the repository's integration. Null for repositories added without an integration */ integrationId?: string | null; /** * Identifier of the repository in the provider, such as owner/name */ externalSlug?: string | null; /** * ID of the repository in the provider */ externalId?: string | null; /** * Settings of the repository. Only set when expand includes settings. Null when it has none */ settings?: { /** * Whether AI code review is on for the repository */ enabledCodeReview: boolean; /** * Pull request events that start a code review: on_new_commit or on_ready_for_review */ codeReviewTriggers: Array; } | null; /** * ID of the repository */ id: string; /** * Name of the repository, such as owner/name */ name: string; /** * When the repository was added to Sentry (ISO 8601) */ dateCreated: string; }; /** * Author of the commit: a Sentry user when the email matches one, otherwise the name and email from the commit */ author?: { /** * SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access */ identities?: Array<{ /** * SSO identity ID */ id: string; /** * User's identifier at the auth provider */ name: string; /** * Organization the auth provider belongs to */ organization: { /** * Organization slug */ slug: string; /** * Organization name */ name: string; }; /** * Auth provider of the identity */ provider: { /** * Auth provider key, such as google or saml2 */ id: string; /** * Display name of the auth provider */ name: string; }; /** * When the identity was last verified by signing in through the auth provider */ dateVerified: string; /** * When the identity was last synced from the auth provider */ dateSynced: string; }>; /** * User avatar */ avatar?: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Two-factor authenticators of the user, without backup methods such as recovery codes */ authenticators?: Array<{ /** * Authenticator ID */ id: string; /** * Authenticator type, such as totp, sms, u2f or recovery */ type: string; /** * Display name of the authenticator type */ name: string; /** * When the authenticator was added */ dateCreated: string; /** * When the authenticator was last used, or null */ dateUsed: string | null; }>; /** * Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization */ canReset2fa?: boolean; /** * User ID */ id: string; /** * Display name: the user's name, or their email or username if no name is set */ name: string; /** * Username */ username: string; /** * Primary email address */ email: string; /** * Gravatar URL for the primary email address */ avatarUrl: string; /** * Whether the account is active */ isActive: boolean; /** * Whether the account is suspended. Suspended users can't sign in */ isSuspended: boolean; /** * Whether the user has a password set */ hasPasswordAuth: boolean; /** * Whether the account is managed, which stops the user from changing their username, password and similar details */ isManaged: boolean; /** * When the account was created */ dateJoined: string; /** * When the user last signed in, or null */ lastLogin: string | null; /** * Whether the user has two-factor authentication enabled */ has2fa: boolean; /** * When the user was last active, or null */ lastActive: string | null; /** * Whether the user is a superuser */ isSuperuser: boolean; /** * Whether the user has staff status */ isStaff: boolean; /** * Deprecated. Always an empty object */ experiments: { [key: string]: string; }; /** * Email addresses of the user. Only included for the requesting user or superusers; empty otherwise */ emails: Array<{ /** * Email ID */ id: string; /** * Email address */ email: string; /** * Whether the email address is verified */ is_verified: boolean; }>; } | { /** * Commit author name */ name: string | null; /** * Commit author email */ email: string; } | { [key: string]: unknown; }; } | null; /** * Most recent deploy of the release */ lastDeploy?: { /** * When the deploy started (ISO 8601) */ dateStarted?: string | null; /** * URL of the deploy */ url?: string | null; /** * ID of the deploy */ id: string; /** * Environment the release was deployed to */ environment: string; /** * When the deploy finished (ISO 8601) */ dateFinished: string; /** * Name of the deploy */ name: string | null; } | null; /** * When the release received its first event (ISO 8601) */ firstEvent?: string | null; /** * When the release received its most recent event (ISO 8601) */ lastEvent?: string | null; /** * Session bounds and neighboring release versions in the current project, when a project is requested */ currentProjectMeta?: { /** * Start of the release's sessions in the project (ISO 8601) */ sessionsLowerBound?: string | null; /** * End of the release's sessions in the project (ISO 8601) */ sessionsUpperBound?: string | null; /** * Version of the next release in the project */ nextReleaseVersion?: string | null; /** * Version of the previous release in the project */ prevReleaseVersion?: string | null; /** * Version of the first release in the project */ firstReleaseVersion?: string | null; /** * Version of the latest release in the project */ lastReleaseVersion?: string | null; } | null; /** * User agent of the client that created the release */ userAgent?: string | null; /** * Adoption stage of the release in each project, keyed by project slug */ adoptionStages?: { [key: string]: { /** * Adoption stage of the release */ stage: 'adopted' | 'low_adoption' | 'replaced'; /** * When the release was adopted (ISO 8601) */ adopted: string | null; /** * When the release stopped being adopted (ISO 8601) */ unadopted: string | null; }; } | null; /** * Release ID */ id: number; /** * Version of the release */ version: string; /** * Number of new issues first seen in the release */ newGroups: number; /** * Release status */ status: 'open' | 'archived'; /** * Shortened release version */ shortVersion: string; /** * Parsed version information */ versionInfo: { /** * Human-readable version, such as 1.0.0 (123) */ description?: string; /** * Package name parsed from the release version, such as com.example.app */ package: string | null; /** * Parsed version: the raw string, plus major, minor, patch, pre, buildCode and components when it's a semantic version */ version: { /** * Major version */ major?: number; /** * Minor version */ minor?: number; /** * Patch version */ patch?: number; /** * Pre-release identifier, such as rc1 */ pre?: string | null; /** * Build code, such as 123 */ buildCode?: string | null; /** * Number of version components given */ components?: number; /** * Version string the release was created with */ raw: string; }; /** * Build hash parsed from the release version */ buildHash: string | null; } | null; /** * Extra data stored on the release */ data: { [key: string]: unknown; }; /** * Number of commits in the release */ commitCount: number; /** * Number of deploys of the release */ deployCount: number; /** * Authors of the release's commits */ authors: Array<{ /** * SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access */ identities?: Array<{ /** * SSO identity ID */ id: string; /** * User's identifier at the auth provider */ name: string; /** * Organization the auth provider belongs to */ organization: { /** * Organization slug */ slug: string; /** * Organization name */ name: string; }; /** * Auth provider of the identity */ provider: { /** * Auth provider key, such as google or saml2 */ id: string; /** * Display name of the auth provider */ name: string; }; /** * When the identity was last verified by signing in through the auth provider */ dateVerified: string; /** * When the identity was last synced from the auth provider */ dateSynced: string; }>; /** * User avatar */ avatar?: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Two-factor authenticators of the user, without backup methods such as recovery codes */ authenticators?: Array<{ /** * Authenticator ID */ id: string; /** * Authenticator type, such as totp, sms, u2f or recovery */ type: string; /** * Display name of the authenticator type */ name: string; /** * When the authenticator was added */ dateCreated: string; /** * When the authenticator was last used, or null */ dateUsed: string | null; }>; /** * Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization */ canReset2fa?: boolean; /** * User ID */ id: string; /** * Display name: the user's name, or their email or username if no name is set */ name: string; /** * Username */ username: string; /** * Primary email address */ email: string; /** * Gravatar URL for the primary email address */ avatarUrl: string; /** * Whether the account is active */ isActive: boolean; /** * Whether the account is suspended. Suspended users can't sign in */ isSuspended: boolean; /** * Whether the user has a password set */ hasPasswordAuth: boolean; /** * Whether the account is managed, which stops the user from changing their username, password and similar details */ isManaged: boolean; /** * When the account was created */ dateJoined: string; /** * When the user last signed in, or null */ lastLogin: string | null; /** * Whether the user has two-factor authentication enabled */ has2fa: boolean; /** * When the user was last active, or null */ lastActive: string | null; /** * Whether the user is a superuser */ isSuperuser: boolean; /** * Whether the user has staff status */ isStaff: boolean; /** * Deprecated. Always an empty object */ experiments: { [key: string]: string; }; /** * Email addresses of the user. Only included for the requesting user or superusers; empty otherwise */ emails: Array<{ /** * Email ID */ id: string; /** * Email address */ email: string; /** * Whether the email address is verified */ is_verified: boolean; }>; } | { /** * Commit author name */ name: string | null; /** * Commit author email */ email: string; }>; /** * Projects in the release */ projects: Array<{ /** * Release health data for the project. Only included when health data is requested */ healthData?: { /** * Median session duration in seconds */ durationP50?: number | null; /** * 90th percentile session duration in seconds */ durationP90?: number | null; /** * Percentage of users who didn't experience a crash */ crashFreeUsers?: number | null; /** * Percentage of sessions that didn't crash */ crashFreeSessions?: number | null; /** * Total number of users in the release */ totalUsers?: number | null; /** * Number of users in the release over the last 24 hours */ totalUsers24h?: number | null; /** * Number of users in the project over the last 24 hours */ totalProjectUsers24h?: number | null; /** * Total number of sessions in the release */ totalSessions?: number | null; /** * Number of sessions in the release over the last 24 hours */ totalSessions24h?: number | null; /** * Number of sessions in the project over the last 24 hours */ totalProjectSessions24h?: number | null; /** * Percentage of the project's users over the last 24 hours that were on the release */ adoption?: number | null; /** * Percentage of the project's sessions over the last 24 hours that were on the release */ sessionsAdoption?: number | null; /** * Number of crashed sessions */ sessionsCrashed: number; /** * Number of sessions with errors */ sessionsErrored: number; /** * Whether the release has session data */ hasHealthData: boolean; /** * Session or user counts over time, keyed by stats period */ stats: { [key: string]: Array>; }; } | null; /** * When the release was released in the project (ISO 8601) */ dateReleased?: string | null; /** * When the release was created (ISO 8601) */ dateCreated?: string | null; /** * When work on the release started (ISO 8601) */ dateStarted?: string | null; /** * ID of the project */ id: number; /** * Slug of the project */ slug: string; /** * Name of the project */ name: string; /** * Platform of the project */ platform: string | null; /** * Platforms of the project */ platforms: Array | null; /** * Whether the release has session data in the project */ hasHealthData: boolean; /** * Number of new issues first seen in the release in the project */ newGroups: number; }>; } | { /** * Version of the release */ version: string; } | null; /** * Tag keys seen on the issue's events, with their top values. Omitted when tags is collapsed */ tags?: Array<{ /** * Number of distinct values seen for the tag key */ uniqueValues?: number | null; /** * Number of events counted for the tag key. For an issue tag, this is the issue's retained event count, including events without the tag */ totalValues?: number | null; /** * Most frequent values of the tag key, ordered by count */ topValues?: Array<{ /** * Search query that matches events with the tag value. Only set for the user tag */ query?: string | null; /** * Tag key, with the `sentry:` prefix removed from built-in keys */ key: string; /** * Display label of the tag value. For the user tag, the `id:`, `email:`, `username:` or `ip:` prefix is removed */ name: string | null; /** * Tag value */ value: string | null; /** * Number of events with the tag value. Null for an empty value */ count: number | null; /** * When the tag value was last seen (ISO 8601). Null for an empty value */ lastSeen: string | null; /** * When the tag value was first seen (ISO 8601). Null for an empty value */ firstSeen: string | null; }> | null; /** * Tag key, with the `sentry:` prefix removed from built-in keys */ key: string; /** * Display label of the tag key */ name: string; }>; /** * Event counts for the last 24 hours (hourly) and 30 days (daily), as [timestamp, count] pairs. Omitted when stats is collapsed */ stats?: { [key: string]: Array>; }; /** * Why the issue is in the inbox. Only included when requested with expand */ inbox?: { /** * Why the issue is in the inbox: 0 new, 1 unignored, 2 regression, 3 manual, 4 reprocessed, 5 escalating or 6 ongoing */ reason: number; /** * Details of the ignore that ended when the issue came back to the inbox. Null otherwise */ reason_details: { /** * When the ignore that ended was set to expire (ISO 8601) */ until: string | null; /** * Number of occurrences the ignore that ended was set to wait for */ count: number | null; /** * Window in minutes for count */ window: number | null; /** * Number of affected users the ignore that ended was set to wait for */ user_count: number | null; /** * Window in minutes for user_count */ user_window: number | null; } | null; /** * When the issue was added to the inbox (ISO 8601) */ date_added: string; } | null; /** * Suggested owners of the issue. Only included when requested with expand */ owners?: Array<{ /** * How the owner was found: suspectCommit, ownershipRule, codeowners or seerSuggested */ type: string; /** * Owner as an actor identifier, such as user:1 or team:1 */ owner: string; /** * When the owner was suggested (ISO 8601) */ date_added: string; }> | null; /** * Escalation forecast for the issue. Only included when requested with expand */ forecast?: { /** * Forecast daily event counts, starting on the day the forecast was generated */ data: Array; /** * When the forecast was generated, as a Unix timestamp */ date_added: number; }; /** * External issues linked through integrations. Only included when requested with expand */ integrationIssues?: Array<{ /** * ID of the external issue link in Sentry */ id?: string; /** * Key of the issue in the integration, such as APP-123 */ key?: string; /** * Title of the issue in the integration */ title?: string | null; /** * Description of the issue in the integration */ description?: string | null; /** * Name of the issue to display */ displayName?: string; /** * Provider of the integration, such as jira */ integrationKey?: string; /** * Name of the integration */ integrationName?: string; }>; /** * External issues linked through Sentry apps. Only included when requested with expand */ sentryAppIssues?: Array<{ /** * ID of the external issue link */ id: string; /** * ID of the Sentry issue */ issueId: string; /** * Slug of the custom integration that created the external issue */ serviceType: string; /** * Display name of the external issue, such as ABC-123 */ displayName: string; /** * URL of the external issue */ webUrl: string; }>; /** * Whether the issue's latest event has attachments. Only included when requested with expand */ latestEventHasAttachments?: boolean; /** * Recent activity on the issue, newest first */ activity: Array<{ /** * ID of the activity, or 0 for a first-seen item built from the issue */ id: string; /** * ID to pass to the notes endpoints for a comment, otherwise null */ commentId: string | null; /** * User who acted, or null for Sentry, an integration or a Sentry App */ user: { /** * SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access */ identities?: Array<{ /** * SSO identity ID */ id: string; /** * User's identifier at the auth provider */ name: string; /** * Organization the auth provider belongs to */ organization: { /** * Organization slug */ slug: string; /** * Organization name */ name: string; }; /** * Auth provider of the identity */ provider: { /** * Auth provider key, such as google or saml2 */ id: string; /** * Display name of the auth provider */ name: string; }; /** * When the identity was last verified by signing in through the auth provider */ dateVerified: string; /** * When the identity was last synced from the auth provider */ dateSynced: string; }>; /** * User avatar */ avatar?: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Two-factor authenticators of the user, without backup methods such as recovery codes */ authenticators?: Array<{ /** * Authenticator ID */ id: string; /** * Authenticator type, such as totp, sms, u2f or recovery */ type: string; /** * Display name of the authenticator type */ name: string; /** * When the authenticator was added */ dateCreated: string; /** * When the authenticator was last used, or null */ dateUsed: string | null; }>; /** * Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization */ canReset2fa?: boolean; /** * User ID */ id: string; /** * Display name: the user's name, or their email or username if no name is set */ name: string; /** * Username */ username: string; /** * Primary email address */ email: string; /** * Gravatar URL for the primary email address */ avatarUrl: string; /** * Whether the account is active */ isActive: boolean; /** * Whether the account is suspended. Suspended users can't sign in */ isSuspended: boolean; /** * Whether the user has a password set */ hasPasswordAuth: boolean; /** * Whether the account is managed, which stops the user from changing their username, password and similar details */ isManaged: boolean; /** * When the account was created */ dateJoined: string; /** * When the user last signed in, or null */ lastLogin: string | null; /** * Whether the user has two-factor authentication enabled */ has2fa: boolean; /** * When the user was last active, or null */ lastActive: string | null; /** * Whether the user is a superuser */ isSuperuser: boolean; /** * Whether the user has staff status */ isStaff: boolean; /** * Deprecated. Always an empty object */ experiments: { [key: string]: string; }; /** * Email addresses of the user. Only included for the requesting user or superusers; empty otherwise */ emails: Array<{ /** * Email ID */ id: string; /** * Email address */ email: string; /** * Whether the email address is verified */ is_verified: boolean; }>; } | null; /** * Sentry App that acted, if one did */ sentry_app: { /** * ID of the Sentry App */ id: string; /** * Name of the Sentry App */ name: string; /** * Slug of the Sentry App */ slug: string; /** * Avatars of the Sentry App */ avatars: Array<{ /** * Avatar type: `default` or `upload` */ avatarType: string; /** * Unique identifier of the uploaded avatar file, or an empty string if none is set */ avatarUuid: string; /** * Absolute URL of the avatar image */ avatarUrl: string; /** * Whether this is the color logo (`true`) or the simple icon (`false`) */ color: boolean; /** * Kind of image: `logo` for the color logo or `icon` for the simple icon */ photoType: string; }>; } | null; /** * Type of the activity, which decides the shape of data */ type: 'assigned'; /** * Details of the activity, which depend on type */ data: { /** * ID of the user or team the issue was assigned to */ assignee?: string | null; /** * Email of the user the issue was assigned to */ assigneeEmail?: string | null; /** * Name of the user or team the issue was assigned to */ assigneeName?: string | null; /** * What the issue was assigned to: user or team */ assigneeType?: string | null; /** * What assigned the issue, such as codeowners or projectOwnership */ integration?: string | null; /** * Ownership rule that assigned the issue */ rule?: string | null; }; /** * When the activity happened (ISO 8601) */ dateCreated: string; /** * Where the action came from, such as web, api or mcp: */ source?: string | null; } | { /** * ID of the activity, or 0 for a first-seen item built from the issue */ id: string; /** * ID to pass to the notes endpoints for a comment, otherwise null */ commentId: string | null; /** * User who acted, or null for Sentry, an integration or a Sentry App */ user: { /** * SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access */ identities?: Array<{ /** * SSO identity ID */ id: string; /** * User's identifier at the auth provider */ name: string; /** * Organization the auth provider belongs to */ organization: { /** * Organization slug */ slug: string; /** * Organization name */ name: string; }; /** * Auth provider of the identity */ provider: { /** * Auth provider key, such as google or saml2 */ id: string; /** * Display name of the auth provider */ name: string; }; /** * When the identity was last verified by signing in through the auth provider */ dateVerified: string; /** * When the identity was last synced from the auth provider */ dateSynced: string; }>; /** * User avatar */ avatar?: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Two-factor authenticators of the user, without backup methods such as recovery codes */ authenticators?: Array<{ /** * Authenticator ID */ id: string; /** * Authenticator type, such as totp, sms, u2f or recovery */ type: string; /** * Display name of the authenticator type */ name: string; /** * When the authenticator was added */ dateCreated: string; /** * When the authenticator was last used, or null */ dateUsed: string | null; }>; /** * Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization */ canReset2fa?: boolean; /** * User ID */ id: string; /** * Display name: the user's name, or their email or username if no name is set */ name: string; /** * Username */ username: string; /** * Primary email address */ email: string; /** * Gravatar URL for the primary email address */ avatarUrl: string; /** * Whether the account is active */ isActive: boolean; /** * Whether the account is suspended. Suspended users can't sign in */ isSuspended: boolean; /** * Whether the user has a password set */ hasPasswordAuth: boolean; /** * Whether the account is managed, which stops the user from changing their username, password and similar details */ isManaged: boolean; /** * When the account was created */ dateJoined: string; /** * When the user last signed in, or null */ lastLogin: string | null; /** * Whether the user has two-factor authentication enabled */ has2fa: boolean; /** * When the user was last active, or null */ lastActive: string | null; /** * Whether the user is a superuser */ isSuperuser: boolean; /** * Whether the user has staff status */ isStaff: boolean; /** * Deprecated. Always an empty object */ experiments: { [key: string]: string; }; /** * Email addresses of the user. Only included for the requesting user or superusers; empty otherwise */ emails: Array<{ /** * Email ID */ id: string; /** * Email address */ email: string; /** * Whether the email address is verified */ is_verified: boolean; }>; } | null; /** * Sentry App that acted, if one did */ sentry_app: { /** * ID of the Sentry App */ id: string; /** * Name of the Sentry App */ name: string; /** * Slug of the Sentry App */ slug: string; /** * Avatars of the Sentry App */ avatars: Array<{ /** * Avatar type: `default` or `upload` */ avatarType: string; /** * Unique identifier of the uploaded avatar file, or an empty string if none is set */ avatarUuid: string; /** * Absolute URL of the avatar image */ avatarUrl: string; /** * Whether this is the color logo (`true`) or the simple icon (`false`) */ color: boolean; /** * Kind of image: `logo` for the color logo or `icon` for the simple icon */ photoType: string; }>; } | null; /** * Type of the activity, which decides the shape of data */ type: 'auto_set_ongoing'; /** * Details of the activity, which depend on type */ data: { /** * Days after which the issue became ongoing */ after_days?: number | null; /** * Whether a user marked the issue reviewed, rather than time passing */ manually?: boolean; }; /** * When the activity happened (ISO 8601) */ dateCreated: string; /** * Where the action came from, such as web, api or mcp: */ source?: string | null; } | { /** * ID of the activity, or 0 for a first-seen item built from the issue */ id: string; /** * ID to pass to the notes endpoints for a comment, otherwise null */ commentId: string | null; /** * User who acted, or null for Sentry, an integration or a Sentry App */ user: { /** * SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access */ identities?: Array<{ /** * SSO identity ID */ id: string; /** * User's identifier at the auth provider */ name: string; /** * Organization the auth provider belongs to */ organization: { /** * Organization slug */ slug: string; /** * Organization name */ name: string; }; /** * Auth provider of the identity */ provider: { /** * Auth provider key, such as google or saml2 */ id: string; /** * Display name of the auth provider */ name: string; }; /** * When the identity was last verified by signing in through the auth provider */ dateVerified: string; /** * When the identity was last synced from the auth provider */ dateSynced: string; }>; /** * User avatar */ avatar?: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Two-factor authenticators of the user, without backup methods such as recovery codes */ authenticators?: Array<{ /** * Authenticator ID */ id: string; /** * Authenticator type, such as totp, sms, u2f or recovery */ type: string; /** * Display name of the authenticator type */ name: string; /** * When the authenticator was added */ dateCreated: string; /** * When the authenticator was last used, or null */ dateUsed: string | null; }>; /** * Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization */ canReset2fa?: boolean; /** * User ID */ id: string; /** * Display name: the user's name, or their email or username if no name is set */ name: string; /** * Username */ username: string; /** * Primary email address */ email: string; /** * Gravatar URL for the primary email address */ avatarUrl: string; /** * Whether the account is active */ isActive: boolean; /** * Whether the account is suspended. Suspended users can't sign in */ isSuspended: boolean; /** * Whether the user has a password set */ hasPasswordAuth: boolean; /** * Whether the account is managed, which stops the user from changing their username, password and similar details */ isManaged: boolean; /** * When the account was created */ dateJoined: string; /** * When the user last signed in, or null */ lastLogin: string | null; /** * Whether the user has two-factor authentication enabled */ has2fa: boolean; /** * When the user was last active, or null */ lastActive: string | null; /** * Whether the user is a superuser */ isSuperuser: boolean; /** * Whether the user has staff status */ isStaff: boolean; /** * Deprecated. Always an empty object */ experiments: { [key: string]: string; }; /** * Email addresses of the user. Only included for the requesting user or superusers; empty otherwise */ emails: Array<{ /** * Email ID */ id: string; /** * Email address */ email: string; /** * Whether the email address is verified */ is_verified: boolean; }>; } | null; /** * Sentry App that acted, if one did */ sentry_app: { /** * ID of the Sentry App */ id: string; /** * Name of the Sentry App */ name: string; /** * Slug of the Sentry App */ slug: string; /** * Avatars of the Sentry App */ avatars: Array<{ /** * Avatar type: `default` or `upload` */ avatarType: string; /** * Unique identifier of the uploaded avatar file, or an empty string if none is set */ avatarUuid: string; /** * Absolute URL of the avatar image */ avatarUrl: string; /** * Whether this is the color logo (`true`) or the simple icon (`false`) */ color: boolean; /** * Kind of image: `logo` for the color logo or `icon` for the simple icon */ photoType: string; }>; } | null; /** * Type of the activity, which decides the shape of data */ type: 'create_issue'; /** * Details of the activity, which depend on type */ data: { /** * Title of the external issue */ title?: string; /** * Integration provider, such as Jira or GitHub */ provider?: string; /** * URL of the external issue */ location?: string; /** * Label of the external issue, such as PROJ-123 */ label?: string; /** * Whether the external issue was created, rather than linked */ new?: boolean | null; }; /** * When the activity happened (ISO 8601) */ dateCreated: string; /** * Where the action came from, such as web, api or mcp: */ source?: string | null; } | { /** * ID of the activity, or 0 for a first-seen item built from the issue */ id: string; /** * ID to pass to the notes endpoints for a comment, otherwise null */ commentId: string | null; /** * User who acted, or null for Sentry, an integration or a Sentry App */ user: { /** * SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access */ identities?: Array<{ /** * SSO identity ID */ id: string; /** * User's identifier at the auth provider */ name: string; /** * Organization the auth provider belongs to */ organization: { /** * Organization slug */ slug: string; /** * Organization name */ name: string; }; /** * Auth provider of the identity */ provider: { /** * Auth provider key, such as google or saml2 */ id: string; /** * Display name of the auth provider */ name: string; }; /** * When the identity was last verified by signing in through the auth provider */ dateVerified: string; /** * When the identity was last synced from the auth provider */ dateSynced: string; }>; /** * User avatar */ avatar?: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Two-factor authenticators of the user, without backup methods such as recovery codes */ authenticators?: Array<{ /** * Authenticator ID */ id: string; /** * Authenticator type, such as totp, sms, u2f or recovery */ type: string; /** * Display name of the authenticator type */ name: string; /** * When the authenticator was added */ dateCreated: string; /** * When the authenticator was last used, or null */ dateUsed: string | null; }>; /** * Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization */ canReset2fa?: boolean; /** * User ID */ id: string; /** * Display name: the user's name, or their email or username if no name is set */ name: string; /** * Username */ username: string; /** * Primary email address */ email: string; /** * Gravatar URL for the primary email address */ avatarUrl: string; /** * Whether the account is active */ isActive: boolean; /** * Whether the account is suspended. Suspended users can't sign in */ isSuspended: boolean; /** * Whether the user has a password set */ hasPasswordAuth: boolean; /** * Whether the account is managed, which stops the user from changing their username, password and similar details */ isManaged: boolean; /** * When the account was created */ dateJoined: string; /** * When the user last signed in, or null */ lastLogin: string | null; /** * Whether the user has two-factor authentication enabled */ has2fa: boolean; /** * When the user was last active, or null */ lastActive: string | null; /** * Whether the user is a superuser */ isSuperuser: boolean; /** * Whether the user has staff status */ isStaff: boolean; /** * Deprecated. Always an empty object */ experiments: { [key: string]: string; }; /** * Email addresses of the user. Only included for the requesting user or superusers; empty otherwise */ emails: Array<{ /** * Email ID */ id: string; /** * Email address */ email: string; /** * Whether the email address is verified */ is_verified: boolean; }>; } | null; /** * Sentry App that acted, if one did */ sentry_app: { /** * ID of the Sentry App */ id: string; /** * Name of the Sentry App */ name: string; /** * Slug of the Sentry App */ slug: string; /** * Avatars of the Sentry App */ avatars: Array<{ /** * Avatar type: `default` or `upload` */ avatarType: string; /** * Unique identifier of the uploaded avatar file, or an empty string if none is set */ avatarUuid: string; /** * Absolute URL of the avatar image */ avatarUrl: string; /** * Whether this is the color logo (`true`) or the simple icon (`false`) */ color: boolean; /** * Kind of image: `logo` for the color logo or `icon` for the simple icon */ photoType: string; }>; } | null; /** * Type of the activity, which decides the shape of data */ type: 'deleted_attachment'; /** * Details of the activity, which depend on type */ data: { [key: string]: unknown; }; /** * When the activity happened (ISO 8601) */ dateCreated: string; /** * Where the action came from, such as web, api or mcp: */ source?: string | null; } | { /** * ID of the activity, or 0 for a first-seen item built from the issue */ id: string; /** * ID to pass to the notes endpoints for a comment, otherwise null */ commentId: string | null; /** * User who acted, or null for Sentry, an integration or a Sentry App */ user: { /** * SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access */ identities?: Array<{ /** * SSO identity ID */ id: string; /** * User's identifier at the auth provider */ name: string; /** * Organization the auth provider belongs to */ organization: { /** * Organization slug */ slug: string; /** * Organization name */ name: string; }; /** * Auth provider of the identity */ provider: { /** * Auth provider key, such as google or saml2 */ id: string; /** * Display name of the auth provider */ name: string; }; /** * When the identity was last verified by signing in through the auth provider */ dateVerified: string; /** * When the identity was last synced from the auth provider */ dateSynced: string; }>; /** * User avatar */ avatar?: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Two-factor authenticators of the user, without backup methods such as recovery codes */ authenticators?: Array<{ /** * Authenticator ID */ id: string; /** * Authenticator type, such as totp, sms, u2f or recovery */ type: string; /** * Display name of the authenticator type */ name: string; /** * When the authenticator was added */ dateCreated: string; /** * When the authenticator was last used, or null */ dateUsed: string | null; }>; /** * Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization */ canReset2fa?: boolean; /** * User ID */ id: string; /** * Display name: the user's name, or their email or username if no name is set */ name: string; /** * Username */ username: string; /** * Primary email address */ email: string; /** * Gravatar URL for the primary email address */ avatarUrl: string; /** * Whether the account is active */ isActive: boolean; /** * Whether the account is suspended. Suspended users can't sign in */ isSuspended: boolean; /** * Whether the user has a password set */ hasPasswordAuth: boolean; /** * Whether the account is managed, which stops the user from changing their username, password and similar details */ isManaged: boolean; /** * When the account was created */ dateJoined: string; /** * When the user last signed in, or null */ lastLogin: string | null; /** * Whether the user has two-factor authentication enabled */ has2fa: boolean; /** * When the user was last active, or null */ lastActive: string | null; /** * Whether the user is a superuser */ isSuperuser: boolean; /** * Whether the user has staff status */ isStaff: boolean; /** * Deprecated. Always an empty object */ experiments: { [key: string]: string; }; /** * Email addresses of the user. Only included for the requesting user or superusers; empty otherwise */ emails: Array<{ /** * Email ID */ id: string; /** * Email address */ email: string; /** * Whether the email address is verified */ is_verified: boolean; }>; } | null; /** * Sentry App that acted, if one did */ sentry_app: { /** * ID of the Sentry App */ id: string; /** * Name of the Sentry App */ name: string; /** * Slug of the Sentry App */ slug: string; /** * Avatars of the Sentry App */ avatars: Array<{ /** * Avatar type: `default` or `upload` */ avatarType: string; /** * Unique identifier of the uploaded avatar file, or an empty string if none is set */ avatarUuid: string; /** * Absolute URL of the avatar image */ avatarUrl: string; /** * Whether this is the color logo (`true`) or the simple icon (`false`) */ color: boolean; /** * Kind of image: `logo` for the color logo or `icon` for the simple icon */ photoType: string; }>; } | null; /** * Type of the activity, which decides the shape of data */ type: 'first_seen'; /** * Details of the activity, which depend on type */ data: { /** * Priority the issue was created with */ priority: 'high' | 'medium' | 'low' | null; }; /** * When the activity happened (ISO 8601) */ dateCreated: string; /** * Where the action came from, such as web, api or mcp: */ source?: string | null; } | { /** * ID of the activity, or 0 for a first-seen item built from the issue */ id: string; /** * ID to pass to the notes endpoints for a comment, otherwise null */ commentId: string | null; /** * User who acted, or null for Sentry, an integration or a Sentry App */ user: { /** * SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access */ identities?: Array<{ /** * SSO identity ID */ id: string; /** * User's identifier at the auth provider */ name: string; /** * Organization the auth provider belongs to */ organization: { /** * Organization slug */ slug: string; /** * Organization name */ name: string; }; /** * Auth provider of the identity */ provider: { /** * Auth provider key, such as google or saml2 */ id: string; /** * Display name of the auth provider */ name: string; }; /** * When the identity was last verified by signing in through the auth provider */ dateVerified: string; /** * When the identity was last synced from the auth provider */ dateSynced: string; }>; /** * User avatar */ avatar?: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Two-factor authenticators of the user, without backup methods such as recovery codes */ authenticators?: Array<{ /** * Authenticator ID */ id: string; /** * Authenticator type, such as totp, sms, u2f or recovery */ type: string; /** * Display name of the authenticator type */ name: string; /** * When the authenticator was added */ dateCreated: string; /** * When the authenticator was last used, or null */ dateUsed: string | null; }>; /** * Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization */ canReset2fa?: boolean; /** * User ID */ id: string; /** * Display name: the user's name, or their email or username if no name is set */ name: string; /** * Username */ username: string; /** * Primary email address */ email: string; /** * Gravatar URL for the primary email address */ avatarUrl: string; /** * Whether the account is active */ isActive: boolean; /** * Whether the account is suspended. Suspended users can't sign in */ isSuspended: boolean; /** * Whether the user has a password set */ hasPasswordAuth: boolean; /** * Whether the account is managed, which stops the user from changing their username, password and similar details */ isManaged: boolean; /** * When the account was created */ dateJoined: string; /** * When the user last signed in, or null */ lastLogin: string | null; /** * Whether the user has two-factor authentication enabled */ has2fa: boolean; /** * When the user was last active, or null */ lastActive: string | null; /** * Whether the user is a superuser */ isSuperuser: boolean; /** * Whether the user has staff status */ isStaff: boolean; /** * Deprecated. Always an empty object */ experiments: { [key: string]: string; }; /** * Email addresses of the user. Only included for the requesting user or superusers; empty otherwise */ emails: Array<{ /** * Email ID */ id: string; /** * Email address */ email: string; /** * Whether the email address is verified */ is_verified: boolean; }>; } | null; /** * Sentry App that acted, if one did */ sentry_app: { /** * ID of the Sentry App */ id: string; /** * Name of the Sentry App */ name: string; /** * Slug of the Sentry App */ slug: string; /** * Avatars of the Sentry App */ avatars: Array<{ /** * Avatar type: `default` or `upload` */ avatarType: string; /** * Unique identifier of the uploaded avatar file, or an empty string if none is set */ avatarUuid: string; /** * Absolute URL of the avatar image */ avatarUrl: string; /** * Whether this is the color logo (`true`) or the simple icon (`false`) */ color: boolean; /** * Kind of image: `logo` for the color logo or `icon` for the simple icon */ photoType: string; }>; } | null; /** * Type of the activity, which decides the shape of data */ type: 'impact_assessment'; /** * Details of the activity, which depend on type */ data: { /** * Impact score from 0 to 100 */ score: number | null; /** * Impact level that the score falls in */ level: 'super_low' | 'low' | 'moderate' | 'high' | 'super_high' | null; /** * What the impact is */ description: string; /** * Evidence for the assessment */ citations: Array<{ /** * What is claimed */ claim: string; /** * What backs it */ reference: string; /** * Where it comes from */ source: string; }>; /** * ID of the event the assessment is based on */ sourceEventId: string; }; /** * When the activity happened (ISO 8601) */ dateCreated: string; /** * Where the action came from, such as web, api or mcp: */ source?: string | null; } | { /** * ID of the activity, or 0 for a first-seen item built from the issue */ id: string; /** * ID to pass to the notes endpoints for a comment, otherwise null */ commentId: string | null; /** * User who acted, or null for Sentry, an integration or a Sentry App */ user: { /** * SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access */ identities?: Array<{ /** * SSO identity ID */ id: string; /** * User's identifier at the auth provider */ name: string; /** * Organization the auth provider belongs to */ organization: { /** * Organization slug */ slug: string; /** * Organization name */ name: string; }; /** * Auth provider of the identity */ provider: { /** * Auth provider key, such as google or saml2 */ id: string; /** * Display name of the auth provider */ name: string; }; /** * When the identity was last verified by signing in through the auth provider */ dateVerified: string; /** * When the identity was last synced from the auth provider */ dateSynced: string; }>; /** * User avatar */ avatar?: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Two-factor authenticators of the user, without backup methods such as recovery codes */ authenticators?: Array<{ /** * Authenticator ID */ id: string; /** * Authenticator type, such as totp, sms, u2f or recovery */ type: string; /** * Display name of the authenticator type */ name: string; /** * When the authenticator was added */ dateCreated: string; /** * When the authenticator was last used, or null */ dateUsed: string | null; }>; /** * Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization */ canReset2fa?: boolean; /** * User ID */ id: string; /** * Display name: the user's name, or their email or username if no name is set */ name: string; /** * Username */ username: string; /** * Primary email address */ email: string; /** * Gravatar URL for the primary email address */ avatarUrl: string; /** * Whether the account is active */ isActive: boolean; /** * Whether the account is suspended. Suspended users can't sign in */ isSuspended: boolean; /** * Whether the user has a password set */ hasPasswordAuth: boolean; /** * Whether the account is managed, which stops the user from changing their username, password and similar details */ isManaged: boolean; /** * When the account was created */ dateJoined: string; /** * When the user last signed in, or null */ lastLogin: string | null; /** * Whether the user has two-factor authentication enabled */ has2fa: boolean; /** * When the user was last active, or null */ lastActive: string | null; /** * Whether the user is a superuser */ isSuperuser: boolean; /** * Whether the user has staff status */ isStaff: boolean; /** * Deprecated. Always an empty object */ experiments: { [key: string]: string; }; /** * Email addresses of the user. Only included for the requesting user or superusers; empty otherwise */ emails: Array<{ /** * Email ID */ id: string; /** * Email address */ email: string; /** * Whether the email address is verified */ is_verified: boolean; }>; } | null; /** * Sentry App that acted, if one did */ sentry_app: { /** * ID of the Sentry App */ id: string; /** * Name of the Sentry App */ name: string; /** * Slug of the Sentry App */ slug: string; /** * Avatars of the Sentry App */ avatars: Array<{ /** * Avatar type: `default` or `upload` */ avatarType: string; /** * Unique identifier of the uploaded avatar file, or an empty string if none is set */ avatarUuid: string; /** * Absolute URL of the avatar image */ avatarUrl: string; /** * Whether this is the color logo (`true`) or the simple icon (`false`) */ color: boolean; /** * Kind of image: `logo` for the color logo or `icon` for the simple icon */ photoType: string; }>; } | null; /** * Type of the activity, which decides the shape of data */ type: 'investigation_linked'; /** * Details of the activity, which depend on type */ data: { /** * The investigation that linked the issue, or null once it's deleted */ investigation: { /** * ID of the investigation */ id: string; /** * Investigation title */ title: string; /** * Whether the investigation is archived */ status: 'active' | 'archived'; } | null; /** * ID of the hypothesis */ hypothesisId: string; /** * The confirmed hypothesis whose evidence named the issue */ hypothesisStatement: string; /** * Why the evidence links the issue */ reason: string | null; }; /** * When the activity happened (ISO 8601) */ dateCreated: string; /** * Where the action came from, such as web, api or mcp: */ source?: string | null; } | { /** * ID of the activity, or 0 for a first-seen item built from the issue */ id: string; /** * ID to pass to the notes endpoints for a comment, otherwise null */ commentId: string | null; /** * User who acted, or null for Sentry, an integration or a Sentry App */ user: { /** * SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access */ identities?: Array<{ /** * SSO identity ID */ id: string; /** * User's identifier at the auth provider */ name: string; /** * Organization the auth provider belongs to */ organization: { /** * Organization slug */ slug: string; /** * Organization name */ name: string; }; /** * Auth provider of the identity */ provider: { /** * Auth provider key, such as google or saml2 */ id: string; /** * Display name of the auth provider */ name: string; }; /** * When the identity was last verified by signing in through the auth provider */ dateVerified: string; /** * When the identity was last synced from the auth provider */ dateSynced: string; }>; /** * User avatar */ avatar?: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Two-factor authenticators of the user, without backup methods such as recovery codes */ authenticators?: Array<{ /** * Authenticator ID */ id: string; /** * Authenticator type, such as totp, sms, u2f or recovery */ type: string; /** * Display name of the authenticator type */ name: string; /** * When the authenticator was added */ dateCreated: string; /** * When the authenticator was last used, or null */ dateUsed: string | null; }>; /** * Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization */ canReset2fa?: boolean; /** * User ID */ id: string; /** * Display name: the user's name, or their email or username if no name is set */ name: string; /** * Username */ username: string; /** * Primary email address */ email: string; /** * Gravatar URL for the primary email address */ avatarUrl: string; /** * Whether the account is active */ isActive: boolean; /** * Whether the account is suspended. Suspended users can't sign in */ isSuspended: boolean; /** * Whether the user has a password set */ hasPasswordAuth: boolean; /** * Whether the account is managed, which stops the user from changing their username, password and similar details */ isManaged: boolean; /** * When the account was created */ dateJoined: string; /** * When the user last signed in, or null */ lastLogin: string | null; /** * Whether the user has two-factor authentication enabled */ has2fa: boolean; /** * When the user was last active, or null */ lastActive: string | null; /** * Whether the user is a superuser */ isSuperuser: boolean; /** * Whether the user has staff status */ isStaff: boolean; /** * Deprecated. Always an empty object */ experiments: { [key: string]: string; }; /** * Email addresses of the user. Only included for the requesting user or superusers; empty otherwise */ emails: Array<{ /** * Email ID */ id: string; /** * Email address */ email: string; /** * Whether the email address is verified */ is_verified: boolean; }>; } | null; /** * Sentry App that acted, if one did */ sentry_app: { /** * ID of the Sentry App */ id: string; /** * Name of the Sentry App */ name: string; /** * Slug of the Sentry App */ slug: string; /** * Avatars of the Sentry App */ avatars: Array<{ /** * Avatar type: `default` or `upload` */ avatarType: string; /** * Unique identifier of the uploaded avatar file, or an empty string if none is set */ avatarUuid: string; /** * Absolute URL of the avatar image */ avatarUrl: string; /** * Whether this is the color logo (`true`) or the simple icon (`false`) */ color: boolean; /** * Kind of image: `logo` for the color logo or `icon` for the simple icon */ photoType: string; }>; } | null; /** * Type of the activity, which decides the shape of data */ type: 'mark_reviewed'; /** * Details of the activity, which depend on type */ data: { [key: string]: unknown; }; /** * When the activity happened (ISO 8601) */ dateCreated: string; /** * Where the action came from, such as web, api or mcp: */ source?: string | null; } | { /** * ID of the activity, or 0 for a first-seen item built from the issue */ id: string; /** * ID to pass to the notes endpoints for a comment, otherwise null */ commentId: string | null; /** * User who acted, or null for Sentry, an integration or a Sentry App */ user: { /** * SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access */ identities?: Array<{ /** * SSO identity ID */ id: string; /** * User's identifier at the auth provider */ name: string; /** * Organization the auth provider belongs to */ organization: { /** * Organization slug */ slug: string; /** * Organization name */ name: string; }; /** * Auth provider of the identity */ provider: { /** * Auth provider key, such as google or saml2 */ id: string; /** * Display name of the auth provider */ name: string; }; /** * When the identity was last verified by signing in through the auth provider */ dateVerified: string; /** * When the identity was last synced from the auth provider */ dateSynced: string; }>; /** * User avatar */ avatar?: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Two-factor authenticators of the user, without backup methods such as recovery codes */ authenticators?: Array<{ /** * Authenticator ID */ id: string; /** * Authenticator type, such as totp, sms, u2f or recovery */ type: string; /** * Display name of the authenticator type */ name: string; /** * When the authenticator was added */ dateCreated: string; /** * When the authenticator was last used, or null */ dateUsed: string | null; }>; /** * Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization */ canReset2fa?: boolean; /** * User ID */ id: string; /** * Display name: the user's name, or their email or username if no name is set */ name: string; /** * Username */ username: string; /** * Primary email address */ email: string; /** * Gravatar URL for the primary email address */ avatarUrl: string; /** * Whether the account is active */ isActive: boolean; /** * Whether the account is suspended. Suspended users can't sign in */ isSuspended: boolean; /** * Whether the user has a password set */ hasPasswordAuth: boolean; /** * Whether the account is managed, which stops the user from changing their username, password and similar details */ isManaged: boolean; /** * When the account was created */ dateJoined: string; /** * When the user last signed in, or null */ lastLogin: string | null; /** * Whether the user has two-factor authentication enabled */ has2fa: boolean; /** * When the user was last active, or null */ lastActive: string | null; /** * Whether the user is a superuser */ isSuperuser: boolean; /** * Whether the user has staff status */ isStaff: boolean; /** * Deprecated. Always an empty object */ experiments: { [key: string]: string; }; /** * Email addresses of the user. Only included for the requesting user or superusers; empty otherwise */ emails: Array<{ /** * Email ID */ id: string; /** * Email address */ email: string; /** * Whether the email address is verified */ is_verified: boolean; }>; } | null; /** * Sentry App that acted, if one did */ sentry_app: { /** * ID of the Sentry App */ id: string; /** * Name of the Sentry App */ name: string; /** * Slug of the Sentry App */ slug: string; /** * Avatars of the Sentry App */ avatars: Array<{ /** * Avatar type: `default` or `upload` */ avatarType: string; /** * Unique identifier of the uploaded avatar file, or an empty string if none is set */ avatarUuid: string; /** * Absolute URL of the avatar image */ avatarUrl: string; /** * Whether this is the color logo (`true`) or the simple icon (`false`) */ color: boolean; /** * Kind of image: `logo` for the color logo or `icon` for the simple icon */ photoType: string; }>; } | null; /** * Type of the activity, which decides the shape of data */ type: 'merge'; /** * Details of the activity, which depend on type */ data: { /** * Issues merged into this one */ issues: Array<{ /** * ID of the merged issue */ id: number | string; }>; }; /** * When the activity happened (ISO 8601) */ dateCreated: string; /** * Where the action came from, such as web, api or mcp: */ source?: string | null; } | { /** * ID of the activity, or 0 for a first-seen item built from the issue */ id: string; /** * ID to pass to the notes endpoints for a comment, otherwise null */ commentId: string | null; /** * User who acted, or null for Sentry, an integration or a Sentry App */ user: { /** * SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access */ identities?: Array<{ /** * SSO identity ID */ id: string; /** * User's identifier at the auth provider */ name: string; /** * Organization the auth provider belongs to */ organization: { /** * Organization slug */ slug: string; /** * Organization name */ name: string; }; /** * Auth provider of the identity */ provider: { /** * Auth provider key, such as google or saml2 */ id: string; /** * Display name of the auth provider */ name: string; }; /** * When the identity was last verified by signing in through the auth provider */ dateVerified: string; /** * When the identity was last synced from the auth provider */ dateSynced: string; }>; /** * User avatar */ avatar?: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Two-factor authenticators of the user, without backup methods such as recovery codes */ authenticators?: Array<{ /** * Authenticator ID */ id: string; /** * Authenticator type, such as totp, sms, u2f or recovery */ type: string; /** * Display name of the authenticator type */ name: string; /** * When the authenticator was added */ dateCreated: string; /** * When the authenticator was last used, or null */ dateUsed: string | null; }>; /** * Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization */ canReset2fa?: boolean; /** * User ID */ id: string; /** * Display name: the user's name, or their email or username if no name is set */ name: string; /** * Username */ username: string; /** * Primary email address */ email: string; /** * Gravatar URL for the primary email address */ avatarUrl: string; /** * Whether the account is active */ isActive: boolean; /** * Whether the account is suspended. Suspended users can't sign in */ isSuspended: boolean; /** * Whether the user has a password set */ hasPasswordAuth: boolean; /** * Whether the account is managed, which stops the user from changing their username, password and similar details */ isManaged: boolean; /** * When the account was created */ dateJoined: string; /** * When the user last signed in, or null */ lastLogin: string | null; /** * Whether the user has two-factor authentication enabled */ has2fa: boolean; /** * When the user was last active, or null */ lastActive: string | null; /** * Whether the user is a superuser */ isSuperuser: boolean; /** * Whether the user has staff status */ isStaff: boolean; /** * Deprecated. Always an empty object */ experiments: { [key: string]: string; }; /** * Email addresses of the user. Only included for the requesting user or superusers; empty otherwise */ emails: Array<{ /** * Email ID */ id: string; /** * Email address */ email: string; /** * Whether the email address is verified */ is_verified: boolean; }>; } | null; /** * Sentry App that acted, if one did */ sentry_app: { /** * ID of the Sentry App */ id: string; /** * Name of the Sentry App */ name: string; /** * Slug of the Sentry App */ slug: string; /** * Avatars of the Sentry App */ avatars: Array<{ /** * Avatar type: `default` or `upload` */ avatarType: string; /** * Unique identifier of the uploaded avatar file, or an empty string if none is set */ avatarUuid: string; /** * Absolute URL of the avatar image */ avatarUrl: string; /** * Whether this is the color logo (`true`) or the simple icon (`false`) */ color: boolean; /** * Kind of image: `logo` for the color logo or `icon` for the simple icon */ photoType: string; }>; } | null; /** * Type of the activity, which decides the shape of data */ type: 'note'; /** * Details of the activity, which depend on type */ data: { /** * Text of the comment, in Markdown */ text: string; /** * ID of the comment */ comment_id?: number; /** * Users the comment mentions */ mentions?: Array<{ /** * Display name of the mentioned user */ name: string; /** * Email of the mentioned user */ email: string; /** * Username of the mentioned user */ username: string; }>; }; /** * When the activity happened (ISO 8601) */ dateCreated: string; /** * Where the action came from, such as web, api or mcp: */ source?: string | null; } | { /** * ID of the activity, or 0 for a first-seen item built from the issue */ id: string; /** * ID to pass to the notes endpoints for a comment, otherwise null */ commentId: string | null; /** * User who acted, or null for Sentry, an integration or a Sentry App */ user: { /** * SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access */ identities?: Array<{ /** * SSO identity ID */ id: string; /** * User's identifier at the auth provider */ name: string; /** * Organization the auth provider belongs to */ organization: { /** * Organization slug */ slug: string; /** * Organization name */ name: string; }; /** * Auth provider of the identity */ provider: { /** * Auth provider key, such as google or saml2 */ id: string; /** * Display name of the auth provider */ name: string; }; /** * When the identity was last verified by signing in through the auth provider */ dateVerified: string; /** * When the identity was last synced from the auth provider */ dateSynced: string; }>; /** * User avatar */ avatar?: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Two-factor authenticators of the user, without backup methods such as recovery codes */ authenticators?: Array<{ /** * Authenticator ID */ id: string; /** * Authenticator type, such as totp, sms, u2f or recovery */ type: string; /** * Display name of the authenticator type */ name: string; /** * When the authenticator was added */ dateCreated: string; /** * When the authenticator was last used, or null */ dateUsed: string | null; }>; /** * Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization */ canReset2fa?: boolean; /** * User ID */ id: string; /** * Display name: the user's name, or their email or username if no name is set */ name: string; /** * Username */ username: string; /** * Primary email address */ email: string; /** * Gravatar URL for the primary email address */ avatarUrl: string; /** * Whether the account is active */ isActive: boolean; /** * Whether the account is suspended. Suspended users can't sign in */ isSuspended: boolean; /** * Whether the user has a password set */ hasPasswordAuth: boolean; /** * Whether the account is managed, which stops the user from changing their username, password and similar details */ isManaged: boolean; /** * When the account was created */ dateJoined: string; /** * When the user last signed in, or null */ lastLogin: string | null; /** * Whether the user has two-factor authentication enabled */ has2fa: boolean; /** * When the user was last active, or null */ lastActive: string | null; /** * Whether the user is a superuser */ isSuperuser: boolean; /** * Whether the user has staff status */ isStaff: boolean; /** * Deprecated. Always an empty object */ experiments: { [key: string]: string; }; /** * Email addresses of the user. Only included for the requesting user or superusers; empty otherwise */ emails: Array<{ /** * Email ID */ id: string; /** * Email address */ email: string; /** * Whether the email address is verified */ is_verified: boolean; }>; } | null; /** * Sentry App that acted, if one did */ sentry_app: { /** * ID of the Sentry App */ id: string; /** * Name of the Sentry App */ name: string; /** * Slug of the Sentry App */ slug: string; /** * Avatars of the Sentry App */ avatars: Array<{ /** * Avatar type: `default` or `upload` */ avatarType: string; /** * Unique identifier of the uploaded avatar file, or an empty string if none is set */ avatarUuid: string; /** * Absolute URL of the avatar image */ avatarUrl: string; /** * Whether this is the color logo (`true`) or the simple icon (`false`) */ color: boolean; /** * Kind of image: `logo` for the color logo or `icon` for the simple icon */ photoType: string; }>; } | null; /** * Type of the activity, which decides the shape of data */ type: 'pull_request_closed'; /** * Details of the activity, which depend on type */ data: { /** * The pull request */ pullRequest?: { /** * Number or key of the pull request in the provider */ id: string; /** * Title of the pull request */ title: string | null; /** * Description of the pull request */ message: string | null; /** * When Sentry recorded the pull request (ISO 8601) */ dateCreated: string; /** * When the pull request was merged (ISO 8601). Null when it isn't merged */ mergedAt: string | null; /** * State of the pull request: merged, open, closed, draft or unknown. Null when not known */ status: 'merged' | 'open' | 'closed' | 'draft' | 'unknown' | null; /** * Repository of the pull request */ repository: { /** * URL of the repository */ url?: string | null; /** * Provider of the repository, with its id and name */ provider?: { [key: string]: string; }; /** * Status of the repository */ status?: 'active' | 'disabled' | 'pending_deletion' | 'deletion_in_progress'; /** * ID of the repository's integration. Null for repositories added without an integration */ integrationId?: string | null; /** * Identifier of the repository in the provider, such as owner/name */ externalSlug?: string | null; /** * ID of the repository in the provider */ externalId?: string | null; /** * Settings of the repository. Only set when expand includes settings. Null when it has none */ settings?: { /** * Whether AI code review is on for the repository */ enabledCodeReview: boolean; /** * Pull request events that start a code review: on_new_commit or on_ready_for_review */ codeReviewTriggers: Array; } | null; /** * ID of the repository */ id: string; /** * Name of the repository, such as owner/name */ name: string; /** * When the repository was added to Sentry (ISO 8601) */ dateCreated: string; }; /** * Author of the pull request, or an empty object when it has none */ author: { /** * SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access */ identities?: Array<{ /** * SSO identity ID */ id: string; /** * User's identifier at the auth provider */ name: string; /** * Organization the auth provider belongs to */ organization: { /** * Organization slug */ slug: string; /** * Organization name */ name: string; }; /** * Auth provider of the identity */ provider: { /** * Auth provider key, such as google or saml2 */ id: string; /** * Display name of the auth provider */ name: string; }; /** * When the identity was last verified by signing in through the auth provider */ dateVerified: string; /** * When the identity was last synced from the auth provider */ dateSynced: string; }>; /** * User avatar */ avatar?: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Two-factor authenticators of the user, without backup methods such as recovery codes */ authenticators?: Array<{ /** * Authenticator ID */ id: string; /** * Authenticator type, such as totp, sms, u2f or recovery */ type: string; /** * Display name of the authenticator type */ name: string; /** * When the authenticator was added */ dateCreated: string; /** * When the authenticator was last used, or null */ dateUsed: string | null; }>; /** * Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization */ canReset2fa?: boolean; /** * User ID */ id: string; /** * Display name: the user's name, or their email or username if no name is set */ name: string; /** * Username */ username: string; /** * Primary email address */ email: string; /** * Gravatar URL for the primary email address */ avatarUrl: string; /** * Whether the account is active */ isActive: boolean; /** * Whether the account is suspended. Suspended users can't sign in */ isSuspended: boolean; /** * Whether the user has a password set */ hasPasswordAuth: boolean; /** * Whether the account is managed, which stops the user from changing their username, password and similar details */ isManaged: boolean; /** * When the account was created */ dateJoined: string; /** * When the user last signed in, or null */ lastLogin: string | null; /** * Whether the user has two-factor authentication enabled */ has2fa: boolean; /** * When the user was last active, or null */ lastActive: string | null; /** * Whether the user is a superuser */ isSuperuser: boolean; /** * Whether the user has staff status */ isStaff: boolean; /** * Deprecated. Always an empty object */ experiments: { [key: string]: string; }; /** * Email addresses of the user. Only included for the requesting user or superusers; empty otherwise */ emails: Array<{ /** * Email ID */ id: string; /** * Email address */ email: string; /** * Whether the email address is verified */ is_verified: boolean; }>; } | { /** * Commit author name */ name: string | null; /** * Commit author email */ email: string; } | { [key: string]: unknown; }; /** * URL of the pull request in the provider, or null when the provider can't build one */ externalUrl: string | null; } | null; }; /** * When the activity happened (ISO 8601) */ dateCreated: string; /** * Where the action came from, such as web, api or mcp: */ source?: string | null; } | { /** * ID of the activity, or 0 for a first-seen item built from the issue */ id: string; /** * ID to pass to the notes endpoints for a comment, otherwise null */ commentId: string | null; /** * User who acted, or null for Sentry, an integration or a Sentry App */ user: { /** * SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access */ identities?: Array<{ /** * SSO identity ID */ id: string; /** * User's identifier at the auth provider */ name: string; /** * Organization the auth provider belongs to */ organization: { /** * Organization slug */ slug: string; /** * Organization name */ name: string; }; /** * Auth provider of the identity */ provider: { /** * Auth provider key, such as google or saml2 */ id: string; /** * Display name of the auth provider */ name: string; }; /** * When the identity was last verified by signing in through the auth provider */ dateVerified: string; /** * When the identity was last synced from the auth provider */ dateSynced: string; }>; /** * User avatar */ avatar?: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Two-factor authenticators of the user, without backup methods such as recovery codes */ authenticators?: Array<{ /** * Authenticator ID */ id: string; /** * Authenticator type, such as totp, sms, u2f or recovery */ type: string; /** * Display name of the authenticator type */ name: string; /** * When the authenticator was added */ dateCreated: string; /** * When the authenticator was last used, or null */ dateUsed: string | null; }>; /** * Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization */ canReset2fa?: boolean; /** * User ID */ id: string; /** * Display name: the user's name, or their email or username if no name is set */ name: string; /** * Username */ username: string; /** * Primary email address */ email: string; /** * Gravatar URL for the primary email address */ avatarUrl: string; /** * Whether the account is active */ isActive: boolean; /** * Whether the account is suspended. Suspended users can't sign in */ isSuspended: boolean; /** * Whether the user has a password set */ hasPasswordAuth: boolean; /** * Whether the account is managed, which stops the user from changing their username, password and similar details */ isManaged: boolean; /** * When the account was created */ dateJoined: string; /** * When the user last signed in, or null */ lastLogin: string | null; /** * Whether the user has two-factor authentication enabled */ has2fa: boolean; /** * When the user was last active, or null */ lastActive: string | null; /** * Whether the user is a superuser */ isSuperuser: boolean; /** * Whether the user has staff status */ isStaff: boolean; /** * Deprecated. Always an empty object */ experiments: { [key: string]: string; }; /** * Email addresses of the user. Only included for the requesting user or superusers; empty otherwise */ emails: Array<{ /** * Email ID */ id: string; /** * Email address */ email: string; /** * Whether the email address is verified */ is_verified: boolean; }>; } | null; /** * Sentry App that acted, if one did */ sentry_app: { /** * ID of the Sentry App */ id: string; /** * Name of the Sentry App */ name: string; /** * Slug of the Sentry App */ slug: string; /** * Avatars of the Sentry App */ avatars: Array<{ /** * Avatar type: `default` or `upload` */ avatarType: string; /** * Unique identifier of the uploaded avatar file, or an empty string if none is set */ avatarUuid: string; /** * Absolute URL of the avatar image */ avatarUrl: string; /** * Whether this is the color logo (`true`) or the simple icon (`false`) */ color: boolean; /** * Kind of image: `logo` for the color logo or `icon` for the simple icon */ photoType: string; }>; } | null; /** * Type of the activity, which decides the shape of data */ type: 'pull_request_merged'; /** * Details of the activity, which depend on type */ data: { /** * The pull request */ pullRequest?: { /** * Number or key of the pull request in the provider */ id: string; /** * Title of the pull request */ title: string | null; /** * Description of the pull request */ message: string | null; /** * When Sentry recorded the pull request (ISO 8601) */ dateCreated: string; /** * When the pull request was merged (ISO 8601). Null when it isn't merged */ mergedAt: string | null; /** * State of the pull request: merged, open, closed, draft or unknown. Null when not known */ status: 'merged' | 'open' | 'closed' | 'draft' | 'unknown' | null; /** * Repository of the pull request */ repository: { /** * URL of the repository */ url?: string | null; /** * Provider of the repository, with its id and name */ provider?: { [key: string]: string; }; /** * Status of the repository */ status?: 'active' | 'disabled' | 'pending_deletion' | 'deletion_in_progress'; /** * ID of the repository's integration. Null for repositories added without an integration */ integrationId?: string | null; /** * Identifier of the repository in the provider, such as owner/name */ externalSlug?: string | null; /** * ID of the repository in the provider */ externalId?: string | null; /** * Settings of the repository. Only set when expand includes settings. Null when it has none */ settings?: { /** * Whether AI code review is on for the repository */ enabledCodeReview: boolean; /** * Pull request events that start a code review: on_new_commit or on_ready_for_review */ codeReviewTriggers: Array; } | null; /** * ID of the repository */ id: string; /** * Name of the repository, such as owner/name */ name: string; /** * When the repository was added to Sentry (ISO 8601) */ dateCreated: string; }; /** * Author of the pull request, or an empty object when it has none */ author: { /** * SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access */ identities?: Array<{ /** * SSO identity ID */ id: string; /** * User's identifier at the auth provider */ name: string; /** * Organization the auth provider belongs to */ organization: { /** * Organization slug */ slug: string; /** * Organization name */ name: string; }; /** * Auth provider of the identity */ provider: { /** * Auth provider key, such as google or saml2 */ id: string; /** * Display name of the auth provider */ name: string; }; /** * When the identity was last verified by signing in through the auth provider */ dateVerified: string; /** * When the identity was last synced from the auth provider */ dateSynced: string; }>; /** * User avatar */ avatar?: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Two-factor authenticators of the user, without backup methods such as recovery codes */ authenticators?: Array<{ /** * Authenticator ID */ id: string; /** * Authenticator type, such as totp, sms, u2f or recovery */ type: string; /** * Display name of the authenticator type */ name: string; /** * When the authenticator was added */ dateCreated: string; /** * When the authenticator was last used, or null */ dateUsed: string | null; }>; /** * Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization */ canReset2fa?: boolean; /** * User ID */ id: string; /** * Display name: the user's name, or their email or username if no name is set */ name: string; /** * Username */ username: string; /** * Primary email address */ email: string; /** * Gravatar URL for the primary email address */ avatarUrl: string; /** * Whether the account is active */ isActive: boolean; /** * Whether the account is suspended. Suspended users can't sign in */ isSuspended: boolean; /** * Whether the user has a password set */ hasPasswordAuth: boolean; /** * Whether the account is managed, which stops the user from changing their username, password and similar details */ isManaged: boolean; /** * When the account was created */ dateJoined: string; /** * When the user last signed in, or null */ lastLogin: string | null; /** * Whether the user has two-factor authentication enabled */ has2fa: boolean; /** * When the user was last active, or null */ lastActive: string | null; /** * Whether the user is a superuser */ isSuperuser: boolean; /** * Whether the user has staff status */ isStaff: boolean; /** * Deprecated. Always an empty object */ experiments: { [key: string]: string; }; /** * Email addresses of the user. Only included for the requesting user or superusers; empty otherwise */ emails: Array<{ /** * Email ID */ id: string; /** * Email address */ email: string; /** * Whether the email address is verified */ is_verified: boolean; }>; } | { /** * Commit author name */ name: string | null; /** * Commit author email */ email: string; } | { [key: string]: unknown; }; /** * URL of the pull request in the provider, or null when the provider can't build one */ externalUrl: string | null; } | null; }; /** * When the activity happened (ISO 8601) */ dateCreated: string; /** * Where the action came from, such as web, api or mcp: */ source?: string | null; } | { /** * ID of the activity, or 0 for a first-seen item built from the issue */ id: string; /** * ID to pass to the notes endpoints for a comment, otherwise null */ commentId: string | null; /** * User who acted, or null for Sentry, an integration or a Sentry App */ user: { /** * SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access */ identities?: Array<{ /** * SSO identity ID */ id: string; /** * User's identifier at the auth provider */ name: string; /** * Organization the auth provider belongs to */ organization: { /** * Organization slug */ slug: string; /** * Organization name */ name: string; }; /** * Auth provider of the identity */ provider: { /** * Auth provider key, such as google or saml2 */ id: string; /** * Display name of the auth provider */ name: string; }; /** * When the identity was last verified by signing in through the auth provider */ dateVerified: string; /** * When the identity was last synced from the auth provider */ dateSynced: string; }>; /** * User avatar */ avatar?: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Two-factor authenticators of the user, without backup methods such as recovery codes */ authenticators?: Array<{ /** * Authenticator ID */ id: string; /** * Authenticator type, such as totp, sms, u2f or recovery */ type: string; /** * Display name of the authenticator type */ name: string; /** * When the authenticator was added */ dateCreated: string; /** * When the authenticator was last used, or null */ dateUsed: string | null; }>; /** * Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization */ canReset2fa?: boolean; /** * User ID */ id: string; /** * Display name: the user's name, or their email or username if no name is set */ name: string; /** * Username */ username: string; /** * Primary email address */ email: string; /** * Gravatar URL for the primary email address */ avatarUrl: string; /** * Whether the account is active */ isActive: boolean; /** * Whether the account is suspended. Suspended users can't sign in */ isSuspended: boolean; /** * Whether the user has a password set */ hasPasswordAuth: boolean; /** * Whether the account is managed, which stops the user from changing their username, password and similar details */ isManaged: boolean; /** * When the account was created */ dateJoined: string; /** * When the user last signed in, or null */ lastLogin: string | null; /** * Whether the user has two-factor authentication enabled */ has2fa: boolean; /** * When the user was last active, or null */ lastActive: string | null; /** * Whether the user is a superuser */ isSuperuser: boolean; /** * Whether the user has staff status */ isStaff: boolean; /** * Deprecated. Always an empty object */ experiments: { [key: string]: string; }; /** * Email addresses of the user. Only included for the requesting user or superusers; empty otherwise */ emails: Array<{ /** * Email ID */ id: string; /** * Email address */ email: string; /** * Whether the email address is verified */ is_verified: boolean; }>; } | null; /** * Sentry App that acted, if one did */ sentry_app: { /** * ID of the Sentry App */ id: string; /** * Name of the Sentry App */ name: string; /** * Slug of the Sentry App */ slug: string; /** * Avatars of the Sentry App */ avatars: Array<{ /** * Avatar type: `default` or `upload` */ avatarType: string; /** * Unique identifier of the uploaded avatar file, or an empty string if none is set */ avatarUuid: string; /** * Absolute URL of the avatar image */ avatarUrl: string; /** * Whether this is the color logo (`true`) or the simple icon (`false`) */ color: boolean; /** * Kind of image: `logo` for the color logo or `icon` for the simple icon */ photoType: string; }>; } | null; /** * Type of the activity, which decides the shape of data */ type: 'pull_request_reopened'; /** * Details of the activity, which depend on type */ data: { /** * The pull request */ pullRequest?: { /** * Number or key of the pull request in the provider */ id: string; /** * Title of the pull request */ title: string | null; /** * Description of the pull request */ message: string | null; /** * When Sentry recorded the pull request (ISO 8601) */ dateCreated: string; /** * When the pull request was merged (ISO 8601). Null when it isn't merged */ mergedAt: string | null; /** * State of the pull request: merged, open, closed, draft or unknown. Null when not known */ status: 'merged' | 'open' | 'closed' | 'draft' | 'unknown' | null; /** * Repository of the pull request */ repository: { /** * URL of the repository */ url?: string | null; /** * Provider of the repository, with its id and name */ provider?: { [key: string]: string; }; /** * Status of the repository */ status?: 'active' | 'disabled' | 'pending_deletion' | 'deletion_in_progress'; /** * ID of the repository's integration. Null for repositories added without an integration */ integrationId?: string | null; /** * Identifier of the repository in the provider, such as owner/name */ externalSlug?: string | null; /** * ID of the repository in the provider */ externalId?: string | null; /** * Settings of the repository. Only set when expand includes settings. Null when it has none */ settings?: { /** * Whether AI code review is on for the repository */ enabledCodeReview: boolean; /** * Pull request events that start a code review: on_new_commit or on_ready_for_review */ codeReviewTriggers: Array; } | null; /** * ID of the repository */ id: string; /** * Name of the repository, such as owner/name */ name: string; /** * When the repository was added to Sentry (ISO 8601) */ dateCreated: string; }; /** * Author of the pull request, or an empty object when it has none */ author: { /** * SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access */ identities?: Array<{ /** * SSO identity ID */ id: string; /** * User's identifier at the auth provider */ name: string; /** * Organization the auth provider belongs to */ organization: { /** * Organization slug */ slug: string; /** * Organization name */ name: string; }; /** * Auth provider of the identity */ provider: { /** * Auth provider key, such as google or saml2 */ id: string; /** * Display name of the auth provider */ name: string; }; /** * When the identity was last verified by signing in through the auth provider */ dateVerified: string; /** * When the identity was last synced from the auth provider */ dateSynced: string; }>; /** * User avatar */ avatar?: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Two-factor authenticators of the user, without backup methods such as recovery codes */ authenticators?: Array<{ /** * Authenticator ID */ id: string; /** * Authenticator type, such as totp, sms, u2f or recovery */ type: string; /** * Display name of the authenticator type */ name: string; /** * When the authenticator was added */ dateCreated: string; /** * When the authenticator was last used, or null */ dateUsed: string | null; }>; /** * Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization */ canReset2fa?: boolean; /** * User ID */ id: string; /** * Display name: the user's name, or their email or username if no name is set */ name: string; /** * Username */ username: string; /** * Primary email address */ email: string; /** * Gravatar URL for the primary email address */ avatarUrl: string; /** * Whether the account is active */ isActive: boolean; /** * Whether the account is suspended. Suspended users can't sign in */ isSuspended: boolean; /** * Whether the user has a password set */ hasPasswordAuth: boolean; /** * Whether the account is managed, which stops the user from changing their username, password and similar details */ isManaged: boolean; /** * When the account was created */ dateJoined: string; /** * When the user last signed in, or null */ lastLogin: string | null; /** * Whether the user has two-factor authentication enabled */ has2fa: boolean; /** * When the user was last active, or null */ lastActive: string | null; /** * Whether the user is a superuser */ isSuperuser: boolean; /** * Whether the user has staff status */ isStaff: boolean; /** * Deprecated. Always an empty object */ experiments: { [key: string]: string; }; /** * Email addresses of the user. Only included for the requesting user or superusers; empty otherwise */ emails: Array<{ /** * Email ID */ id: string; /** * Email address */ email: string; /** * Whether the email address is verified */ is_verified: boolean; }>; } | { /** * Commit author name */ name: string | null; /** * Commit author email */ email: string; } | { [key: string]: unknown; }; /** * URL of the pull request in the provider, or null when the provider can't build one */ externalUrl: string | null; } | null; }; /** * When the activity happened (ISO 8601) */ dateCreated: string; /** * Where the action came from, such as web, api or mcp: */ source?: string | null; } | { /** * ID of the activity, or 0 for a first-seen item built from the issue */ id: string; /** * ID to pass to the notes endpoints for a comment, otherwise null */ commentId: string | null; /** * User who acted, or null for Sentry, an integration or a Sentry App */ user: { /** * SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access */ identities?: Array<{ /** * SSO identity ID */ id: string; /** * User's identifier at the auth provider */ name: string; /** * Organization the auth provider belongs to */ organization: { /** * Organization slug */ slug: string; /** * Organization name */ name: string; }; /** * Auth provider of the identity */ provider: { /** * Auth provider key, such as google or saml2 */ id: string; /** * Display name of the auth provider */ name: string; }; /** * When the identity was last verified by signing in through the auth provider */ dateVerified: string; /** * When the identity was last synced from the auth provider */ dateSynced: string; }>; /** * User avatar */ avatar?: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Two-factor authenticators of the user, without backup methods such as recovery codes */ authenticators?: Array<{ /** * Authenticator ID */ id: string; /** * Authenticator type, such as totp, sms, u2f or recovery */ type: string; /** * Display name of the authenticator type */ name: string; /** * When the authenticator was added */ dateCreated: string; /** * When the authenticator was last used, or null */ dateUsed: string | null; }>; /** * Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization */ canReset2fa?: boolean; /** * User ID */ id: string; /** * Display name: the user's name, or their email or username if no name is set */ name: string; /** * Username */ username: string; /** * Primary email address */ email: string; /** * Gravatar URL for the primary email address */ avatarUrl: string; /** * Whether the account is active */ isActive: boolean; /** * Whether the account is suspended. Suspended users can't sign in */ isSuspended: boolean; /** * Whether the user has a password set */ hasPasswordAuth: boolean; /** * Whether the account is managed, which stops the user from changing their username, password and similar details */ isManaged: boolean; /** * When the account was created */ dateJoined: string; /** * When the user last signed in, or null */ lastLogin: string | null; /** * Whether the user has two-factor authentication enabled */ has2fa: boolean; /** * When the user was last active, or null */ lastActive: string | null; /** * Whether the user is a superuser */ isSuperuser: boolean; /** * Whether the user has staff status */ isStaff: boolean; /** * Deprecated. Always an empty object */ experiments: { [key: string]: string; }; /** * Email addresses of the user. Only included for the requesting user or superusers; empty otherwise */ emails: Array<{ /** * Email ID */ id: string; /** * Email address */ email: string; /** * Whether the email address is verified */ is_verified: boolean; }>; } | null; /** * Sentry App that acted, if one did */ sentry_app: { /** * ID of the Sentry App */ id: string; /** * Name of the Sentry App */ name: string; /** * Slug of the Sentry App */ slug: string; /** * Avatars of the Sentry App */ avatars: Array<{ /** * Avatar type: `default` or `upload` */ avatarType: string; /** * Unique identifier of the uploaded avatar file, or an empty string if none is set */ avatarUuid: string; /** * Absolute URL of the avatar image */ avatarUrl: string; /** * Whether this is the color logo (`true`) or the simple icon (`false`) */ color: boolean; /** * Kind of image: `logo` for the color logo or `icon` for the simple icon */ photoType: string; }>; } | null; /** * Type of the activity, which decides the shape of data */ type: 'pull_request_unlinked'; /** * Details of the activity, which depend on type */ data: { /** * The pull request */ pullRequest?: { /** * Number or key of the pull request in the provider */ id: string; /** * Title of the pull request */ title: string | null; /** * Description of the pull request */ message: string | null; /** * When Sentry recorded the pull request (ISO 8601) */ dateCreated: string; /** * When the pull request was merged (ISO 8601). Null when it isn't merged */ mergedAt: string | null; /** * State of the pull request: merged, open, closed, draft or unknown. Null when not known */ status: 'merged' | 'open' | 'closed' | 'draft' | 'unknown' | null; /** * Repository of the pull request */ repository: { /** * URL of the repository */ url?: string | null; /** * Provider of the repository, with its id and name */ provider?: { [key: string]: string; }; /** * Status of the repository */ status?: 'active' | 'disabled' | 'pending_deletion' | 'deletion_in_progress'; /** * ID of the repository's integration. Null for repositories added without an integration */ integrationId?: string | null; /** * Identifier of the repository in the provider, such as owner/name */ externalSlug?: string | null; /** * ID of the repository in the provider */ externalId?: string | null; /** * Settings of the repository. Only set when expand includes settings. Null when it has none */ settings?: { /** * Whether AI code review is on for the repository */ enabledCodeReview: boolean; /** * Pull request events that start a code review: on_new_commit or on_ready_for_review */ codeReviewTriggers: Array; } | null; /** * ID of the repository */ id: string; /** * Name of the repository, such as owner/name */ name: string; /** * When the repository was added to Sentry (ISO 8601) */ dateCreated: string; }; /** * Author of the pull request, or an empty object when it has none */ author: { /** * SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access */ identities?: Array<{ /** * SSO identity ID */ id: string; /** * User's identifier at the auth provider */ name: string; /** * Organization the auth provider belongs to */ organization: { /** * Organization slug */ slug: string; /** * Organization name */ name: string; }; /** * Auth provider of the identity */ provider: { /** * Auth provider key, such as google or saml2 */ id: string; /** * Display name of the auth provider */ name: string; }; /** * When the identity was last verified by signing in through the auth provider */ dateVerified: string; /** * When the identity was last synced from the auth provider */ dateSynced: string; }>; /** * User avatar */ avatar?: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Two-factor authenticators of the user, without backup methods such as recovery codes */ authenticators?: Array<{ /** * Authenticator ID */ id: string; /** * Authenticator type, such as totp, sms, u2f or recovery */ type: string; /** * Display name of the authenticator type */ name: string; /** * When the authenticator was added */ dateCreated: string; /** * When the authenticator was last used, or null */ dateUsed: string | null; }>; /** * Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization */ canReset2fa?: boolean; /** * User ID */ id: string; /** * Display name: the user's name, or their email or username if no name is set */ name: string; /** * Username */ username: string; /** * Primary email address */ email: string; /** * Gravatar URL for the primary email address */ avatarUrl: string; /** * Whether the account is active */ isActive: boolean; /** * Whether the account is suspended. Suspended users can't sign in */ isSuspended: boolean; /** * Whether the user has a password set */ hasPasswordAuth: boolean; /** * Whether the account is managed, which stops the user from changing their username, password and similar details */ isManaged: boolean; /** * When the account was created */ dateJoined: string; /** * When the user last signed in, or null */ lastLogin: string | null; /** * Whether the user has two-factor authentication enabled */ has2fa: boolean; /** * When the user was last active, or null */ lastActive: string | null; /** * Whether the user is a superuser */ isSuperuser: boolean; /** * Whether the user has staff status */ isStaff: boolean; /** * Deprecated. Always an empty object */ experiments: { [key: string]: string; }; /** * Email addresses of the user. Only included for the requesting user or superusers; empty otherwise */ emails: Array<{ /** * Email ID */ id: string; /** * Email address */ email: string; /** * Whether the email address is verified */ is_verified: boolean; }>; } | { /** * Commit author name */ name: string | null; /** * Commit author email */ email: string; } | { [key: string]: unknown; }; /** * URL of the pull request in the provider, or null when the provider can't build one */ externalUrl: string | null; } | null; }; /** * When the activity happened (ISO 8601) */ dateCreated: string; /** * Where the action came from, such as web, api or mcp: */ source?: string | null; } | { /** * ID of the activity, or 0 for a first-seen item built from the issue */ id: string; /** * ID to pass to the notes endpoints for a comment, otherwise null */ commentId: string | null; /** * User who acted, or null for Sentry, an integration or a Sentry App */ user: { /** * SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access */ identities?: Array<{ /** * SSO identity ID */ id: string; /** * User's identifier at the auth provider */ name: string; /** * Organization the auth provider belongs to */ organization: { /** * Organization slug */ slug: string; /** * Organization name */ name: string; }; /** * Auth provider of the identity */ provider: { /** * Auth provider key, such as google or saml2 */ id: string; /** * Display name of the auth provider */ name: string; }; /** * When the identity was last verified by signing in through the auth provider */ dateVerified: string; /** * When the identity was last synced from the auth provider */ dateSynced: string; }>; /** * User avatar */ avatar?: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Two-factor authenticators of the user, without backup methods such as recovery codes */ authenticators?: Array<{ /** * Authenticator ID */ id: string; /** * Authenticator type, such as totp, sms, u2f or recovery */ type: string; /** * Display name of the authenticator type */ name: string; /** * When the authenticator was added */ dateCreated: string; /** * When the authenticator was last used, or null */ dateUsed: string | null; }>; /** * Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization */ canReset2fa?: boolean; /** * User ID */ id: string; /** * Display name: the user's name, or their email or username if no name is set */ name: string; /** * Username */ username: string; /** * Primary email address */ email: string; /** * Gravatar URL for the primary email address */ avatarUrl: string; /** * Whether the account is active */ isActive: boolean; /** * Whether the account is suspended. Suspended users can't sign in */ isSuspended: boolean; /** * Whether the user has a password set */ hasPasswordAuth: boolean; /** * Whether the account is managed, which stops the user from changing their username, password and similar details */ isManaged: boolean; /** * When the account was created */ dateJoined: string; /** * When the user last signed in, or null */ lastLogin: string | null; /** * Whether the user has two-factor authentication enabled */ has2fa: boolean; /** * When the user was last active, or null */ lastActive: string | null; /** * Whether the user is a superuser */ isSuperuser: boolean; /** * Whether the user has staff status */ isStaff: boolean; /** * Deprecated. Always an empty object */ experiments: { [key: string]: string; }; /** * Email addresses of the user. Only included for the requesting user or superusers; empty otherwise */ emails: Array<{ /** * Email ID */ id: string; /** * Email address */ email: string; /** * Whether the email address is verified */ is_verified: boolean; }>; } | null; /** * Sentry App that acted, if one did */ sentry_app: { /** * ID of the Sentry App */ id: string; /** * Name of the Sentry App */ name: string; /** * Slug of the Sentry App */ slug: string; /** * Avatars of the Sentry App */ avatars: Array<{ /** * Avatar type: `default` or `upload` */ avatarType: string; /** * Unique identifier of the uploaded avatar file, or an empty string if none is set */ avatarUuid: string; /** * Absolute URL of the avatar image */ avatarUrl: string; /** * Whether this is the color logo (`true`) or the simple icon (`false`) */ color: boolean; /** * Kind of image: `logo` for the color logo or `icon` for the simple icon */ photoType: string; }>; } | null; /** * Type of the activity, which decides the shape of data */ type: 'referenced_in_commit'; /** * Details of the activity, which depend on type */ data: { /** * The commit */ commit?: { /** * Commit SHA */ id: string; /** * Commit message */ message: string | null; /** * When the commit was made (ISO 8601) */ dateCreated: string; /** * Pull request the commit belongs to */ pullRequest: { /** * Number or key of the pull request in the provider */ id: string; /** * Title of the pull request */ title: string | null; /** * Description of the pull request */ message: string | null; /** * When Sentry recorded the pull request (ISO 8601) */ dateCreated: string; /** * When the pull request was merged (ISO 8601). Null when it isn't merged */ mergedAt: string | null; /** * State of the pull request: merged, open, closed, draft or unknown. Null when not known */ status: 'merged' | 'open' | 'closed' | 'draft' | 'unknown' | null; /** * Repository of the pull request */ repository: { /** * URL of the repository */ url?: string | null; /** * Provider of the repository, with its id and name */ provider?: { [key: string]: string; }; /** * Status of the repository */ status?: 'active' | 'disabled' | 'pending_deletion' | 'deletion_in_progress'; /** * ID of the repository's integration. Null for repositories added without an integration */ integrationId?: string | null; /** * Identifier of the repository in the provider, such as owner/name */ externalSlug?: string | null; /** * ID of the repository in the provider */ externalId?: string | null; /** * Settings of the repository. Only set when expand includes settings. Null when it has none */ settings?: { /** * Whether AI code review is on for the repository */ enabledCodeReview: boolean; /** * Pull request events that start a code review: on_new_commit or on_ready_for_review */ codeReviewTriggers: Array; } | null; /** * ID of the repository */ id: string; /** * Name of the repository, such as owner/name */ name: string; /** * When the repository was added to Sentry (ISO 8601) */ dateCreated: string; }; /** * Author of the pull request, or an empty object when it has none */ author: { /** * SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access */ identities?: Array<{ /** * SSO identity ID */ id: string; /** * User's identifier at the auth provider */ name: string; /** * Organization the auth provider belongs to */ organization: { /** * Organization slug */ slug: string; /** * Organization name */ name: string; }; /** * Auth provider of the identity */ provider: { /** * Auth provider key, such as google or saml2 */ id: string; /** * Display name of the auth provider */ name: string; }; /** * When the identity was last verified by signing in through the auth provider */ dateVerified: string; /** * When the identity was last synced from the auth provider */ dateSynced: string; }>; /** * User avatar */ avatar?: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Two-factor authenticators of the user, without backup methods such as recovery codes */ authenticators?: Array<{ /** * Authenticator ID */ id: string; /** * Authenticator type, such as totp, sms, u2f or recovery */ type: string; /** * Display name of the authenticator type */ name: string; /** * When the authenticator was added */ dateCreated: string; /** * When the authenticator was last used, or null */ dateUsed: string | null; }>; /** * Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization */ canReset2fa?: boolean; /** * User ID */ id: string; /** * Display name: the user's name, or their email or username if no name is set */ name: string; /** * Username */ username: string; /** * Primary email address */ email: string; /** * Gravatar URL for the primary email address */ avatarUrl: string; /** * Whether the account is active */ isActive: boolean; /** * Whether the account is suspended. Suspended users can't sign in */ isSuspended: boolean; /** * Whether the user has a password set */ hasPasswordAuth: boolean; /** * Whether the account is managed, which stops the user from changing their username, password and similar details */ isManaged: boolean; /** * When the account was created */ dateJoined: string; /** * When the user last signed in, or null */ lastLogin: string | null; /** * Whether the user has two-factor authentication enabled */ has2fa: boolean; /** * When the user was last active, or null */ lastActive: string | null; /** * Whether the user is a superuser */ isSuperuser: boolean; /** * Whether the user has staff status */ isStaff: boolean; /** * Deprecated. Always an empty object */ experiments: { [key: string]: string; }; /** * Email addresses of the user. Only included for the requesting user or superusers; empty otherwise */ emails: Array<{ /** * Email ID */ id: string; /** * Email address */ email: string; /** * Whether the email address is verified */ is_verified: boolean; }>; } | { /** * Commit author name */ name: string | null; /** * Commit author email */ email: string; } | { [key: string]: unknown; }; /** * URL of the pull request in the provider, or null when the provider can't build one */ externalUrl: string | null; } | null; /** * How the commit was found as a suspect commit: via commit in release or via SCM integration. Empty for other commits */ suspectCommitType: string; /** * Repository the commit belongs to */ repository?: { /** * URL of the repository */ url?: string | null; /** * Provider of the repository, with its id and name */ provider?: { [key: string]: string; }; /** * Status of the repository */ status?: 'active' | 'disabled' | 'pending_deletion' | 'deletion_in_progress'; /** * ID of the repository's integration. Null for repositories added without an integration */ integrationId?: string | null; /** * Identifier of the repository in the provider, such as owner/name */ externalSlug?: string | null; /** * ID of the repository in the provider */ externalId?: string | null; /** * Settings of the repository. Only set when expand includes settings. Null when it has none */ settings?: { /** * Whether AI code review is on for the repository */ enabledCodeReview: boolean; /** * Pull request events that start a code review: on_new_commit or on_ready_for_review */ codeReviewTriggers: Array; } | null; /** * ID of the repository */ id: string; /** * Name of the repository, such as owner/name */ name: string; /** * When the repository was added to Sentry (ISO 8601) */ dateCreated: string; }; /** * Author of the commit: a Sentry user when the email matches one, otherwise the name and email from the commit */ author?: { /** * SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access */ identities?: Array<{ /** * SSO identity ID */ id: string; /** * User's identifier at the auth provider */ name: string; /** * Organization the auth provider belongs to */ organization: { /** * Organization slug */ slug: string; /** * Organization name */ name: string; }; /** * Auth provider of the identity */ provider: { /** * Auth provider key, such as google or saml2 */ id: string; /** * Display name of the auth provider */ name: string; }; /** * When the identity was last verified by signing in through the auth provider */ dateVerified: string; /** * When the identity was last synced from the auth provider */ dateSynced: string; }>; /** * User avatar */ avatar?: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Two-factor authenticators of the user, without backup methods such as recovery codes */ authenticators?: Array<{ /** * Authenticator ID */ id: string; /** * Authenticator type, such as totp, sms, u2f or recovery */ type: string; /** * Display name of the authenticator type */ name: string; /** * When the authenticator was added */ dateCreated: string; /** * When the authenticator was last used, or null */ dateUsed: string | null; }>; /** * Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization */ canReset2fa?: boolean; /** * User ID */ id: string; /** * Display name: the user's name, or their email or username if no name is set */ name: string; /** * Username */ username: string; /** * Primary email address */ email: string; /** * Gravatar URL for the primary email address */ avatarUrl: string; /** * Whether the account is active */ isActive: boolean; /** * Whether the account is suspended. Suspended users can't sign in */ isSuspended: boolean; /** * Whether the user has a password set */ hasPasswordAuth: boolean; /** * Whether the account is managed, which stops the user from changing their username, password and similar details */ isManaged: boolean; /** * When the account was created */ dateJoined: string; /** * When the user last signed in, or null */ lastLogin: string | null; /** * Whether the user has two-factor authentication enabled */ has2fa: boolean; /** * When the user was last active, or null */ lastActive: string | null; /** * Whether the user is a superuser */ isSuperuser: boolean; /** * Whether the user has staff status */ isStaff: boolean; /** * Deprecated. Always an empty object */ experiments: { [key: string]: string; }; /** * Email addresses of the user. Only included for the requesting user or superusers; empty otherwise */ emails: Array<{ /** * Email ID */ id: string; /** * Email address */ email: string; /** * Whether the email address is verified */ is_verified: boolean; }>; } | { /** * Commit author name */ name: string | null; /** * Commit author email */ email: string; } | { [key: string]: unknown; }; /** * Releases that contain the commit */ releases: Array<{ /** * Version of the release */ version: string; /** * Short version of the release */ shortVersion: string; /** * Commit ref of the release */ ref: string | null; /** * URL of the release */ url: string | null; /** * When the release was released (ISO 8601) */ dateReleased: string | null; /** * When the release was created (ISO 8601) */ dateCreated: string; }>; } | null; }; /** * When the activity happened (ISO 8601) */ dateCreated: string; /** * Where the action came from, such as web, api or mcp: */ source?: string | null; } | { /** * ID of the activity, or 0 for a first-seen item built from the issue */ id: string; /** * ID to pass to the notes endpoints for a comment, otherwise null */ commentId: string | null; /** * User who acted, or null for Sentry, an integration or a Sentry App */ user: { /** * SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access */ identities?: Array<{ /** * SSO identity ID */ id: string; /** * User's identifier at the auth provider */ name: string; /** * Organization the auth provider belongs to */ organization: { /** * Organization slug */ slug: string; /** * Organization name */ name: string; }; /** * Auth provider of the identity */ provider: { /** * Auth provider key, such as google or saml2 */ id: string; /** * Display name of the auth provider */ name: string; }; /** * When the identity was last verified by signing in through the auth provider */ dateVerified: string; /** * When the identity was last synced from the auth provider */ dateSynced: string; }>; /** * User avatar */ avatar?: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Two-factor authenticators of the user, without backup methods such as recovery codes */ authenticators?: Array<{ /** * Authenticator ID */ id: string; /** * Authenticator type, such as totp, sms, u2f or recovery */ type: string; /** * Display name of the authenticator type */ name: string; /** * When the authenticator was added */ dateCreated: string; /** * When the authenticator was last used, or null */ dateUsed: string | null; }>; /** * Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization */ canReset2fa?: boolean; /** * User ID */ id: string; /** * Display name: the user's name, or their email or username if no name is set */ name: string; /** * Username */ username: string; /** * Primary email address */ email: string; /** * Gravatar URL for the primary email address */ avatarUrl: string; /** * Whether the account is active */ isActive: boolean; /** * Whether the account is suspended. Suspended users can't sign in */ isSuspended: boolean; /** * Whether the user has a password set */ hasPasswordAuth: boolean; /** * Whether the account is managed, which stops the user from changing their username, password and similar details */ isManaged: boolean; /** * When the account was created */ dateJoined: string; /** * When the user last signed in, or null */ lastLogin: string | null; /** * Whether the user has two-factor authentication enabled */ has2fa: boolean; /** * When the user was last active, or null */ lastActive: string | null; /** * Whether the user is a superuser */ isSuperuser: boolean; /** * Whether the user has staff status */ isStaff: boolean; /** * Deprecated. Always an empty object */ experiments: { [key: string]: string; }; /** * Email addresses of the user. Only included for the requesting user or superusers; empty otherwise */ emails: Array<{ /** * Email ID */ id: string; /** * Email address */ email: string; /** * Whether the email address is verified */ is_verified: boolean; }>; } | null; /** * Sentry App that acted, if one did */ sentry_app: { /** * ID of the Sentry App */ id: string; /** * Name of the Sentry App */ name: string; /** * Slug of the Sentry App */ slug: string; /** * Avatars of the Sentry App */ avatars: Array<{ /** * Avatar type: `default` or `upload` */ avatarType: string; /** * Unique identifier of the uploaded avatar file, or an empty string if none is set */ avatarUuid: string; /** * Absolute URL of the avatar image */ avatarUrl: string; /** * Whether this is the color logo (`true`) or the simple icon (`false`) */ color: boolean; /** * Kind of image: `logo` for the color logo or `icon` for the simple icon */ photoType: string; }>; } | null; /** * Type of the activity, which decides the shape of data */ type: 'reprocess'; /** * Details of the activity, which depend on type */ data: { /** * Number of events reprocessed */ eventCount?: number | null; /** * ID of the issue the events were reprocessed from */ oldGroupId?: number | null; /** * ID of the issue the events were reprocessed into */ newGroupId?: number | null; }; /** * When the activity happened (ISO 8601) */ dateCreated: string; /** * Where the action came from, such as web, api or mcp: */ source?: string | null; } | { /** * ID of the activity, or 0 for a first-seen item built from the issue */ id: string; /** * ID to pass to the notes endpoints for a comment, otherwise null */ commentId: string | null; /** * User who acted, or null for Sentry, an integration or a Sentry App */ user: { /** * SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access */ identities?: Array<{ /** * SSO identity ID */ id: string; /** * User's identifier at the auth provider */ name: string; /** * Organization the auth provider belongs to */ organization: { /** * Organization slug */ slug: string; /** * Organization name */ name: string; }; /** * Auth provider of the identity */ provider: { /** * Auth provider key, such as google or saml2 */ id: string; /** * Display name of the auth provider */ name: string; }; /** * When the identity was last verified by signing in through the auth provider */ dateVerified: string; /** * When the identity was last synced from the auth provider */ dateSynced: string; }>; /** * User avatar */ avatar?: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Two-factor authenticators of the user, without backup methods such as recovery codes */ authenticators?: Array<{ /** * Authenticator ID */ id: string; /** * Authenticator type, such as totp, sms, u2f or recovery */ type: string; /** * Display name of the authenticator type */ name: string; /** * When the authenticator was added */ dateCreated: string; /** * When the authenticator was last used, or null */ dateUsed: string | null; }>; /** * Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization */ canReset2fa?: boolean; /** * User ID */ id: string; /** * Display name: the user's name, or their email or username if no name is set */ name: string; /** * Username */ username: string; /** * Primary email address */ email: string; /** * Gravatar URL for the primary email address */ avatarUrl: string; /** * Whether the account is active */ isActive: boolean; /** * Whether the account is suspended. Suspended users can't sign in */ isSuspended: boolean; /** * Whether the user has a password set */ hasPasswordAuth: boolean; /** * Whether the account is managed, which stops the user from changing their username, password and similar details */ isManaged: boolean; /** * When the account was created */ dateJoined: string; /** * When the user last signed in, or null */ lastLogin: string | null; /** * Whether the user has two-factor authentication enabled */ has2fa: boolean; /** * When the user was last active, or null */ lastActive: string | null; /** * Whether the user is a superuser */ isSuperuser: boolean; /** * Whether the user has staff status */ isStaff: boolean; /** * Deprecated. Always an empty object */ experiments: { [key: string]: string; }; /** * Email addresses of the user. Only included for the requesting user or superusers; empty otherwise */ emails: Array<{ /** * Email ID */ id: string; /** * Email address */ email: string; /** * Whether the email address is verified */ is_verified: boolean; }>; } | null; /** * Sentry App that acted, if one did */ sentry_app: { /** * ID of the Sentry App */ id: string; /** * Name of the Sentry App */ name: string; /** * Slug of the Sentry App */ slug: string; /** * Avatars of the Sentry App */ avatars: Array<{ /** * Avatar type: `default` or `upload` */ avatarType: string; /** * Unique identifier of the uploaded avatar file, or an empty string if none is set */ avatarUuid: string; /** * Absolute URL of the avatar image */ avatarUrl: string; /** * Whether this is the color logo (`true`) or the simple icon (`false`) */ color: boolean; /** * Kind of image: `logo` for the color logo or `icon` for the simple icon */ photoType: string; }>; } | null; /** * Type of the activity, which decides the shape of data */ type: 'seer_coding_completed'; /** * Details of the activity, which depend on type */ data: { /** * ID of the Seer run */ run_id?: number | null; /** * Code changes that Seer made */ changes?: Array<{ [key: string]: string | number; }> | null; }; /** * When the activity happened (ISO 8601) */ dateCreated: string; /** * Where the action came from, such as web, api or mcp: */ source?: string | null; } | { /** * ID of the activity, or 0 for a first-seen item built from the issue */ id: string; /** * ID to pass to the notes endpoints for a comment, otherwise null */ commentId: string | null; /** * User who acted, or null for Sentry, an integration or a Sentry App */ user: { /** * SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access */ identities?: Array<{ /** * SSO identity ID */ id: string; /** * User's identifier at the auth provider */ name: string; /** * Organization the auth provider belongs to */ organization: { /** * Organization slug */ slug: string; /** * Organization name */ name: string; }; /** * Auth provider of the identity */ provider: { /** * Auth provider key, such as google or saml2 */ id: string; /** * Display name of the auth provider */ name: string; }; /** * When the identity was last verified by signing in through the auth provider */ dateVerified: string; /** * When the identity was last synced from the auth provider */ dateSynced: string; }>; /** * User avatar */ avatar?: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Two-factor authenticators of the user, without backup methods such as recovery codes */ authenticators?: Array<{ /** * Authenticator ID */ id: string; /** * Authenticator type, such as totp, sms, u2f or recovery */ type: string; /** * Display name of the authenticator type */ name: string; /** * When the authenticator was added */ dateCreated: string; /** * When the authenticator was last used, or null */ dateUsed: string | null; }>; /** * Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization */ canReset2fa?: boolean; /** * User ID */ id: string; /** * Display name: the user's name, or their email or username if no name is set */ name: string; /** * Username */ username: string; /** * Primary email address */ email: string; /** * Gravatar URL for the primary email address */ avatarUrl: string; /** * Whether the account is active */ isActive: boolean; /** * Whether the account is suspended. Suspended users can't sign in */ isSuspended: boolean; /** * Whether the user has a password set */ hasPasswordAuth: boolean; /** * Whether the account is managed, which stops the user from changing their username, password and similar details */ isManaged: boolean; /** * When the account was created */ dateJoined: string; /** * When the user last signed in, or null */ lastLogin: string | null; /** * Whether the user has two-factor authentication enabled */ has2fa: boolean; /** * When the user was last active, or null */ lastActive: string | null; /** * Whether the user is a superuser */ isSuperuser: boolean; /** * Whether the user has staff status */ isStaff: boolean; /** * Deprecated. Always an empty object */ experiments: { [key: string]: string; }; /** * Email addresses of the user. Only included for the requesting user or superusers; empty otherwise */ emails: Array<{ /** * Email ID */ id: string; /** * Email address */ email: string; /** * Whether the email address is verified */ is_verified: boolean; }>; } | null; /** * Sentry App that acted, if one did */ sentry_app: { /** * ID of the Sentry App */ id: string; /** * Name of the Sentry App */ name: string; /** * Slug of the Sentry App */ slug: string; /** * Avatars of the Sentry App */ avatars: Array<{ /** * Avatar type: `default` or `upload` */ avatarType: string; /** * Unique identifier of the uploaded avatar file, or an empty string if none is set */ avatarUuid: string; /** * Absolute URL of the avatar image */ avatarUrl: string; /** * Whether this is the color logo (`true`) or the simple icon (`false`) */ color: boolean; /** * Kind of image: `logo` for the color logo or `icon` for the simple icon */ photoType: string; }>; } | null; /** * Type of the activity, which decides the shape of data */ type: 'seer_coding_started'; /** * Details of the activity, which depend on type */ data: { /** * ID of the Seer run */ run_id?: number | null; }; /** * When the activity happened (ISO 8601) */ dateCreated: string; /** * Where the action came from, such as web, api or mcp: */ source?: string | null; } | { /** * ID of the activity, or 0 for a first-seen item built from the issue */ id: string; /** * ID to pass to the notes endpoints for a comment, otherwise null */ commentId: string | null; /** * User who acted, or null for Sentry, an integration or a Sentry App */ user: { /** * SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access */ identities?: Array<{ /** * SSO identity ID */ id: string; /** * User's identifier at the auth provider */ name: string; /** * Organization the auth provider belongs to */ organization: { /** * Organization slug */ slug: string; /** * Organization name */ name: string; }; /** * Auth provider of the identity */ provider: { /** * Auth provider key, such as google or saml2 */ id: string; /** * Display name of the auth provider */ name: string; }; /** * When the identity was last verified by signing in through the auth provider */ dateVerified: string; /** * When the identity was last synced from the auth provider */ dateSynced: string; }>; /** * User avatar */ avatar?: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Two-factor authenticators of the user, without backup methods such as recovery codes */ authenticators?: Array<{ /** * Authenticator ID */ id: string; /** * Authenticator type, such as totp, sms, u2f or recovery */ type: string; /** * Display name of the authenticator type */ name: string; /** * When the authenticator was added */ dateCreated: string; /** * When the authenticator was last used, or null */ dateUsed: string | null; }>; /** * Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization */ canReset2fa?: boolean; /** * User ID */ id: string; /** * Display name: the user's name, or their email or username if no name is set */ name: string; /** * Username */ username: string; /** * Primary email address */ email: string; /** * Gravatar URL for the primary email address */ avatarUrl: string; /** * Whether the account is active */ isActive: boolean; /** * Whether the account is suspended. Suspended users can't sign in */ isSuspended: boolean; /** * Whether the user has a password set */ hasPasswordAuth: boolean; /** * Whether the account is managed, which stops the user from changing their username, password and similar details */ isManaged: boolean; /** * When the account was created */ dateJoined: string; /** * When the user last signed in, or null */ lastLogin: string | null; /** * Whether the user has two-factor authentication enabled */ has2fa: boolean; /** * When the user was last active, or null */ lastActive: string | null; /** * Whether the user is a superuser */ isSuperuser: boolean; /** * Whether the user has staff status */ isStaff: boolean; /** * Deprecated. Always an empty object */ experiments: { [key: string]: string; }; /** * Email addresses of the user. Only included for the requesting user or superusers; empty otherwise */ emails: Array<{ /** * Email ID */ id: string; /** * Email address */ email: string; /** * Whether the email address is verified */ is_verified: boolean; }>; } | null; /** * Sentry App that acted, if one did */ sentry_app: { /** * ID of the Sentry App */ id: string; /** * Name of the Sentry App */ name: string; /** * Slug of the Sentry App */ slug: string; /** * Avatars of the Sentry App */ avatars: Array<{ /** * Avatar type: `default` or `upload` */ avatarType: string; /** * Unique identifier of the uploaded avatar file, or an empty string if none is set */ avatarUuid: string; /** * Absolute URL of the avatar image */ avatarUrl: string; /** * Whether this is the color logo (`true`) or the simple icon (`false`) */ color: boolean; /** * Kind of image: `logo` for the color logo or `icon` for the simple icon */ photoType: string; }>; } | null; /** * Type of the activity, which decides the shape of data */ type: 'seer_iteration_completed'; /** * Details of the activity, which depend on type */ data: { /** * ID of the Seer run */ run_id?: number; /** * Number of the iteration */ iteration_index?: number; /** * Pull requests that Seer opened or updated */ pull_requests?: Array<{ /** * Code host, such as github */ provider?: string; /** * Repository, such as owner/repo */ repo_name?: string; /** * The pull request */ pull_request?: { /** * Number of the pull request */ pr_number?: number; /** * URL of the pull request */ pr_url?: string; }; }>; }; /** * When the activity happened (ISO 8601) */ dateCreated: string; /** * Where the action came from, such as web, api or mcp: */ source?: string | null; } | { /** * ID of the activity, or 0 for a first-seen item built from the issue */ id: string; /** * ID to pass to the notes endpoints for a comment, otherwise null */ commentId: string | null; /** * User who acted, or null for Sentry, an integration or a Sentry App */ user: { /** * SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access */ identities?: Array<{ /** * SSO identity ID */ id: string; /** * User's identifier at the auth provider */ name: string; /** * Organization the auth provider belongs to */ organization: { /** * Organization slug */ slug: string; /** * Organization name */ name: string; }; /** * Auth provider of the identity */ provider: { /** * Auth provider key, such as google or saml2 */ id: string; /** * Display name of the auth provider */ name: string; }; /** * When the identity was last verified by signing in through the auth provider */ dateVerified: string; /** * When the identity was last synced from the auth provider */ dateSynced: string; }>; /** * User avatar */ avatar?: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Two-factor authenticators of the user, without backup methods such as recovery codes */ authenticators?: Array<{ /** * Authenticator ID */ id: string; /** * Authenticator type, such as totp, sms, u2f or recovery */ type: string; /** * Display name of the authenticator type */ name: string; /** * When the authenticator was added */ dateCreated: string; /** * When the authenticator was last used, or null */ dateUsed: string | null; }>; /** * Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization */ canReset2fa?: boolean; /** * User ID */ id: string; /** * Display name: the user's name, or their email or username if no name is set */ name: string; /** * Username */ username: string; /** * Primary email address */ email: string; /** * Gravatar URL for the primary email address */ avatarUrl: string; /** * Whether the account is active */ isActive: boolean; /** * Whether the account is suspended. Suspended users can't sign in */ isSuspended: boolean; /** * Whether the user has a password set */ hasPasswordAuth: boolean; /** * Whether the account is managed, which stops the user from changing their username, password and similar details */ isManaged: boolean; /** * When the account was created */ dateJoined: string; /** * When the user last signed in, or null */ lastLogin: string | null; /** * Whether the user has two-factor authentication enabled */ has2fa: boolean; /** * When the user was last active, or null */ lastActive: string | null; /** * Whether the user is a superuser */ isSuperuser: boolean; /** * Whether the user has staff status */ isStaff: boolean; /** * Deprecated. Always an empty object */ experiments: { [key: string]: string; }; /** * Email addresses of the user. Only included for the requesting user or superusers; empty otherwise */ emails: Array<{ /** * Email ID */ id: string; /** * Email address */ email: string; /** * Whether the email address is verified */ is_verified: boolean; }>; } | null; /** * Sentry App that acted, if one did */ sentry_app: { /** * ID of the Sentry App */ id: string; /** * Name of the Sentry App */ name: string; /** * Slug of the Sentry App */ slug: string; /** * Avatars of the Sentry App */ avatars: Array<{ /** * Avatar type: `default` or `upload` */ avatarType: string; /** * Unique identifier of the uploaded avatar file, or an empty string if none is set */ avatarUuid: string; /** * Absolute URL of the avatar image */ avatarUrl: string; /** * Whether this is the color logo (`true`) or the simple icon (`false`) */ color: boolean; /** * Kind of image: `logo` for the color logo or `icon` for the simple icon */ photoType: string; }>; } | null; /** * Type of the activity, which decides the shape of data */ type: 'seer_iteration_started'; /** * Details of the activity, which depend on type */ data: { /** * ID of the Seer run */ run_id?: number | null; /** * What started the Autofix run, such as api.web or slack */ referrer?: string | null; }; /** * When the activity happened (ISO 8601) */ dateCreated: string; /** * Where the action came from, such as web, api or mcp: */ source?: string | null; } | { /** * ID of the activity, or 0 for a first-seen item built from the issue */ id: string; /** * ID to pass to the notes endpoints for a comment, otherwise null */ commentId: string | null; /** * User who acted, or null for Sentry, an integration or a Sentry App */ user: { /** * SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access */ identities?: Array<{ /** * SSO identity ID */ id: string; /** * User's identifier at the auth provider */ name: string; /** * Organization the auth provider belongs to */ organization: { /** * Organization slug */ slug: string; /** * Organization name */ name: string; }; /** * Auth provider of the identity */ provider: { /** * Auth provider key, such as google or saml2 */ id: string; /** * Display name of the auth provider */ name: string; }; /** * When the identity was last verified by signing in through the auth provider */ dateVerified: string; /** * When the identity was last synced from the auth provider */ dateSynced: string; }>; /** * User avatar */ avatar?: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Two-factor authenticators of the user, without backup methods such as recovery codes */ authenticators?: Array<{ /** * Authenticator ID */ id: string; /** * Authenticator type, such as totp, sms, u2f or recovery */ type: string; /** * Display name of the authenticator type */ name: string; /** * When the authenticator was added */ dateCreated: string; /** * When the authenticator was last used, or null */ dateUsed: string | null; }>; /** * Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization */ canReset2fa?: boolean; /** * User ID */ id: string; /** * Display name: the user's name, or their email or username if no name is set */ name: string; /** * Username */ username: string; /** * Primary email address */ email: string; /** * Gravatar URL for the primary email address */ avatarUrl: string; /** * Whether the account is active */ isActive: boolean; /** * Whether the account is suspended. Suspended users can't sign in */ isSuspended: boolean; /** * Whether the user has a password set */ hasPasswordAuth: boolean; /** * Whether the account is managed, which stops the user from changing their username, password and similar details */ isManaged: boolean; /** * When the account was created */ dateJoined: string; /** * When the user last signed in, or null */ lastLogin: string | null; /** * Whether the user has two-factor authentication enabled */ has2fa: boolean; /** * When the user was last active, or null */ lastActive: string | null; /** * Whether the user is a superuser */ isSuperuser: boolean; /** * Whether the user has staff status */ isStaff: boolean; /** * Deprecated. Always an empty object */ experiments: { [key: string]: string; }; /** * Email addresses of the user. Only included for the requesting user or superusers; empty otherwise */ emails: Array<{ /** * Email ID */ id: string; /** * Email address */ email: string; /** * Whether the email address is verified */ is_verified: boolean; }>; } | null; /** * Sentry App that acted, if one did */ sentry_app: { /** * ID of the Sentry App */ id: string; /** * Name of the Sentry App */ name: string; /** * Slug of the Sentry App */ slug: string; /** * Avatars of the Sentry App */ avatars: Array<{ /** * Avatar type: `default` or `upload` */ avatarType: string; /** * Unique identifier of the uploaded avatar file, or an empty string if none is set */ avatarUuid: string; /** * Absolute URL of the avatar image */ avatarUrl: string; /** * Whether this is the color logo (`true`) or the simple icon (`false`) */ color: boolean; /** * Kind of image: `logo` for the color logo or `icon` for the simple icon */ photoType: string; }>; } | null; /** * Type of the activity, which decides the shape of data */ type: 'seer_pr_created'; /** * Details of the activity, which depend on type */ data: { /** * ID of the Seer run */ run_id?: number | null; /** * Pull requests that Seer opened or updated */ pull_requests?: Array<{ /** * Code host, such as github */ provider?: string; /** * Repository, such as owner/repo */ repo_name?: string; /** * The pull request */ pull_request?: { /** * Number of the pull request */ pr_number?: number; /** * URL of the pull request */ pr_url?: string; }; }> | null; }; /** * When the activity happened (ISO 8601) */ dateCreated: string; /** * Where the action came from, such as web, api or mcp: */ source?: string | null; } | { /** * ID of the activity, or 0 for a first-seen item built from the issue */ id: string; /** * ID to pass to the notes endpoints for a comment, otherwise null */ commentId: string | null; /** * User who acted, or null for Sentry, an integration or a Sentry App */ user: { /** * SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access */ identities?: Array<{ /** * SSO identity ID */ id: string; /** * User's identifier at the auth provider */ name: string; /** * Organization the auth provider belongs to */ organization: { /** * Organization slug */ slug: string; /** * Organization name */ name: string; }; /** * Auth provider of the identity */ provider: { /** * Auth provider key, such as google or saml2 */ id: string; /** * Display name of the auth provider */ name: string; }; /** * When the identity was last verified by signing in through the auth provider */ dateVerified: string; /** * When the identity was last synced from the auth provider */ dateSynced: string; }>; /** * User avatar */ avatar?: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Two-factor authenticators of the user, without backup methods such as recovery codes */ authenticators?: Array<{ /** * Authenticator ID */ id: string; /** * Authenticator type, such as totp, sms, u2f or recovery */ type: string; /** * Display name of the authenticator type */ name: string; /** * When the authenticator was added */ dateCreated: string; /** * When the authenticator was last used, or null */ dateUsed: string | null; }>; /** * Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization */ canReset2fa?: boolean; /** * User ID */ id: string; /** * Display name: the user's name, or their email or username if no name is set */ name: string; /** * Username */ username: string; /** * Primary email address */ email: string; /** * Gravatar URL for the primary email address */ avatarUrl: string; /** * Whether the account is active */ isActive: boolean; /** * Whether the account is suspended. Suspended users can't sign in */ isSuspended: boolean; /** * Whether the user has a password set */ hasPasswordAuth: boolean; /** * Whether the account is managed, which stops the user from changing their username, password and similar details */ isManaged: boolean; /** * When the account was created */ dateJoined: string; /** * When the user last signed in, or null */ lastLogin: string | null; /** * Whether the user has two-factor authentication enabled */ has2fa: boolean; /** * When the user was last active, or null */ lastActive: string | null; /** * Whether the user is a superuser */ isSuperuser: boolean; /** * Whether the user has staff status */ isStaff: boolean; /** * Deprecated. Always an empty object */ experiments: { [key: string]: string; }; /** * Email addresses of the user. Only included for the requesting user or superusers; empty otherwise */ emails: Array<{ /** * Email ID */ id: string; /** * Email address */ email: string; /** * Whether the email address is verified */ is_verified: boolean; }>; } | null; /** * Sentry App that acted, if one did */ sentry_app: { /** * ID of the Sentry App */ id: string; /** * Name of the Sentry App */ name: string; /** * Slug of the Sentry App */ slug: string; /** * Avatars of the Sentry App */ avatars: Array<{ /** * Avatar type: `default` or `upload` */ avatarType: string; /** * Unique identifier of the uploaded avatar file, or an empty string if none is set */ avatarUuid: string; /** * Absolute URL of the avatar image */ avatarUrl: string; /** * Whether this is the color logo (`true`) or the simple icon (`false`) */ color: boolean; /** * Kind of image: `logo` for the color logo or `icon` for the simple icon */ photoType: string; }>; } | null; /** * Type of the activity, which decides the shape of data */ type: 'seer_pr_ready_for_review'; /** * Details of the activity, which depend on type */ data: { /** * ID of the Seer run */ run_id?: number | null; /** * Pull requests that Seer opened or updated */ pull_requests?: Array<{ /** * Code host, such as github */ provider?: string; /** * Repository, such as owner/repo */ repo_name?: string; /** * The pull request */ pull_request?: { /** * Number of the pull request */ pr_number?: number; /** * URL of the pull request */ pr_url?: string; }; }> | null; }; /** * When the activity happened (ISO 8601) */ dateCreated: string; /** * Where the action came from, such as web, api or mcp: */ source?: string | null; } | { /** * ID of the activity, or 0 for a first-seen item built from the issue */ id: string; /** * ID to pass to the notes endpoints for a comment, otherwise null */ commentId: string | null; /** * User who acted, or null for Sentry, an integration or a Sentry App */ user: { /** * SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access */ identities?: Array<{ /** * SSO identity ID */ id: string; /** * User's identifier at the auth provider */ name: string; /** * Organization the auth provider belongs to */ organization: { /** * Organization slug */ slug: string; /** * Organization name */ name: string; }; /** * Auth provider of the identity */ provider: { /** * Auth provider key, such as google or saml2 */ id: string; /** * Display name of the auth provider */ name: string; }; /** * When the identity was last verified by signing in through the auth provider */ dateVerified: string; /** * When the identity was last synced from the auth provider */ dateSynced: string; }>; /** * User avatar */ avatar?: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Two-factor authenticators of the user, without backup methods such as recovery codes */ authenticators?: Array<{ /** * Authenticator ID */ id: string; /** * Authenticator type, such as totp, sms, u2f or recovery */ type: string; /** * Display name of the authenticator type */ name: string; /** * When the authenticator was added */ dateCreated: string; /** * When the authenticator was last used, or null */ dateUsed: string | null; }>; /** * Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization */ canReset2fa?: boolean; /** * User ID */ id: string; /** * Display name: the user's name, or their email or username if no name is set */ name: string; /** * Username */ username: string; /** * Primary email address */ email: string; /** * Gravatar URL for the primary email address */ avatarUrl: string; /** * Whether the account is active */ isActive: boolean; /** * Whether the account is suspended. Suspended users can't sign in */ isSuspended: boolean; /** * Whether the user has a password set */ hasPasswordAuth: boolean; /** * Whether the account is managed, which stops the user from changing their username, password and similar details */ isManaged: boolean; /** * When the account was created */ dateJoined: string; /** * When the user last signed in, or null */ lastLogin: string | null; /** * Whether the user has two-factor authentication enabled */ has2fa: boolean; /** * When the user was last active, or null */ lastActive: string | null; /** * Whether the user is a superuser */ isSuperuser: boolean; /** * Whether the user has staff status */ isStaff: boolean; /** * Deprecated. Always an empty object */ experiments: { [key: string]: string; }; /** * Email addresses of the user. Only included for the requesting user or superusers; empty otherwise */ emails: Array<{ /** * Email ID */ id: string; /** * Email address */ email: string; /** * Whether the email address is verified */ is_verified: boolean; }>; } | null; /** * Sentry App that acted, if one did */ sentry_app: { /** * ID of the Sentry App */ id: string; /** * Name of the Sentry App */ name: string; /** * Slug of the Sentry App */ slug: string; /** * Avatars of the Sentry App */ avatars: Array<{ /** * Avatar type: `default` or `upload` */ avatarType: string; /** * Unique identifier of the uploaded avatar file, or an empty string if none is set */ avatarUuid: string; /** * Absolute URL of the avatar image */ avatarUrl: string; /** * Whether this is the color logo (`true`) or the simple icon (`false`) */ color: boolean; /** * Kind of image: `logo` for the color logo or `icon` for the simple icon */ photoType: string; }>; } | null; /** * Type of the activity, which decides the shape of data */ type: 'seer_rca_completed'; /** * Details of the activity, which depend on type */ data: { /** * ID of the Seer run */ run_id?: number | string | null; /** * One-line summary of what Seer found */ summary?: string | null; /** * Root cause that Seer found */ root_cause?: { [key: string]: string | Array; } | null; }; /** * When the activity happened (ISO 8601) */ dateCreated: string; /** * Where the action came from, such as web, api or mcp: */ source?: string | null; } | { /** * ID of the activity, or 0 for a first-seen item built from the issue */ id: string; /** * ID to pass to the notes endpoints for a comment, otherwise null */ commentId: string | null; /** * User who acted, or null for Sentry, an integration or a Sentry App */ user: { /** * SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access */ identities?: Array<{ /** * SSO identity ID */ id: string; /** * User's identifier at the auth provider */ name: string; /** * Organization the auth provider belongs to */ organization: { /** * Organization slug */ slug: string; /** * Organization name */ name: string; }; /** * Auth provider of the identity */ provider: { /** * Auth provider key, such as google or saml2 */ id: string; /** * Display name of the auth provider */ name: string; }; /** * When the identity was last verified by signing in through the auth provider */ dateVerified: string; /** * When the identity was last synced from the auth provider */ dateSynced: string; }>; /** * User avatar */ avatar?: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Two-factor authenticators of the user, without backup methods such as recovery codes */ authenticators?: Array<{ /** * Authenticator ID */ id: string; /** * Authenticator type, such as totp, sms, u2f or recovery */ type: string; /** * Display name of the authenticator type */ name: string; /** * When the authenticator was added */ dateCreated: string; /** * When the authenticator was last used, or null */ dateUsed: string | null; }>; /** * Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization */ canReset2fa?: boolean; /** * User ID */ id: string; /** * Display name: the user's name, or their email or username if no name is set */ name: string; /** * Username */ username: string; /** * Primary email address */ email: string; /** * Gravatar URL for the primary email address */ avatarUrl: string; /** * Whether the account is active */ isActive: boolean; /** * Whether the account is suspended. Suspended users can't sign in */ isSuspended: boolean; /** * Whether the user has a password set */ hasPasswordAuth: boolean; /** * Whether the account is managed, which stops the user from changing their username, password and similar details */ isManaged: boolean; /** * When the account was created */ dateJoined: string; /** * When the user last signed in, or null */ lastLogin: string | null; /** * Whether the user has two-factor authentication enabled */ has2fa: boolean; /** * When the user was last active, or null */ lastActive: string | null; /** * Whether the user is a superuser */ isSuperuser: boolean; /** * Whether the user has staff status */ isStaff: boolean; /** * Deprecated. Always an empty object */ experiments: { [key: string]: string; }; /** * Email addresses of the user. Only included for the requesting user or superusers; empty otherwise */ emails: Array<{ /** * Email ID */ id: string; /** * Email address */ email: string; /** * Whether the email address is verified */ is_verified: boolean; }>; } | null; /** * Sentry App that acted, if one did */ sentry_app: { /** * ID of the Sentry App */ id: string; /** * Name of the Sentry App */ name: string; /** * Slug of the Sentry App */ slug: string; /** * Avatars of the Sentry App */ avatars: Array<{ /** * Avatar type: `default` or `upload` */ avatarType: string; /** * Unique identifier of the uploaded avatar file, or an empty string if none is set */ avatarUuid: string; /** * Absolute URL of the avatar image */ avatarUrl: string; /** * Whether this is the color logo (`true`) or the simple icon (`false`) */ color: boolean; /** * Kind of image: `logo` for the color logo or `icon` for the simple icon */ photoType: string; }>; } | null; /** * Type of the activity, which decides the shape of data */ type: 'seer_rca_started'; /** * Details of the activity, which depend on type */ data: { /** * ID of the Seer run */ run_id?: number | null; }; /** * When the activity happened (ISO 8601) */ dateCreated: string; /** * Where the action came from, such as web, api or mcp: */ source?: string | null; } | { /** * ID of the activity, or 0 for a first-seen item built from the issue */ id: string; /** * ID to pass to the notes endpoints for a comment, otherwise null */ commentId: string | null; /** * User who acted, or null for Sentry, an integration or a Sentry App */ user: { /** * SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access */ identities?: Array<{ /** * SSO identity ID */ id: string; /** * User's identifier at the auth provider */ name: string; /** * Organization the auth provider belongs to */ organization: { /** * Organization slug */ slug: string; /** * Organization name */ name: string; }; /** * Auth provider of the identity */ provider: { /** * Auth provider key, such as google or saml2 */ id: string; /** * Display name of the auth provider */ name: string; }; /** * When the identity was last verified by signing in through the auth provider */ dateVerified: string; /** * When the identity was last synced from the auth provider */ dateSynced: string; }>; /** * User avatar */ avatar?: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Two-factor authenticators of the user, without backup methods such as recovery codes */ authenticators?: Array<{ /** * Authenticator ID */ id: string; /** * Authenticator type, such as totp, sms, u2f or recovery */ type: string; /** * Display name of the authenticator type */ name: string; /** * When the authenticator was added */ dateCreated: string; /** * When the authenticator was last used, or null */ dateUsed: string | null; }>; /** * Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization */ canReset2fa?: boolean; /** * User ID */ id: string; /** * Display name: the user's name, or their email or username if no name is set */ name: string; /** * Username */ username: string; /** * Primary email address */ email: string; /** * Gravatar URL for the primary email address */ avatarUrl: string; /** * Whether the account is active */ isActive: boolean; /** * Whether the account is suspended. Suspended users can't sign in */ isSuspended: boolean; /** * Whether the user has a password set */ hasPasswordAuth: boolean; /** * Whether the account is managed, which stops the user from changing their username, password and similar details */ isManaged: boolean; /** * When the account was created */ dateJoined: string; /** * When the user last signed in, or null */ lastLogin: string | null; /** * Whether the user has two-factor authentication enabled */ has2fa: boolean; /** * When the user was last active, or null */ lastActive: string | null; /** * Whether the user is a superuser */ isSuperuser: boolean; /** * Whether the user has staff status */ isStaff: boolean; /** * Deprecated. Always an empty object */ experiments: { [key: string]: string; }; /** * Email addresses of the user. Only included for the requesting user or superusers; empty otherwise */ emails: Array<{ /** * Email ID */ id: string; /** * Email address */ email: string; /** * Whether the email address is verified */ is_verified: boolean; }>; } | null; /** * Sentry App that acted, if one did */ sentry_app: { /** * ID of the Sentry App */ id: string; /** * Name of the Sentry App */ name: string; /** * Slug of the Sentry App */ slug: string; /** * Avatars of the Sentry App */ avatars: Array<{ /** * Avatar type: `default` or `upload` */ avatarType: string; /** * Unique identifier of the uploaded avatar file, or an empty string if none is set */ avatarUuid: string; /** * Absolute URL of the avatar image */ avatarUrl: string; /** * Whether this is the color logo (`true`) or the simple icon (`false`) */ color: boolean; /** * Kind of image: `logo` for the color logo or `icon` for the simple icon */ photoType: string; }>; } | null; /** * Type of the activity, which decides the shape of data */ type: 'seer_solution_completed'; /** * Details of the activity, which depend on type */ data: { /** * ID of the Seer run */ run_id?: number | null; /** * Solution that Seer proposed */ solution?: { [key: string]: string | Array<{ [key: string]: string; }>; } | null; /** * One-line summary of what Seer found */ summary?: string | null; }; /** * When the activity happened (ISO 8601) */ dateCreated: string; /** * Where the action came from, such as web, api or mcp: */ source?: string | null; } | { /** * ID of the activity, or 0 for a first-seen item built from the issue */ id: string; /** * ID to pass to the notes endpoints for a comment, otherwise null */ commentId: string | null; /** * User who acted, or null for Sentry, an integration or a Sentry App */ user: { /** * SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access */ identities?: Array<{ /** * SSO identity ID */ id: string; /** * User's identifier at the auth provider */ name: string; /** * Organization the auth provider belongs to */ organization: { /** * Organization slug */ slug: string; /** * Organization name */ name: string; }; /** * Auth provider of the identity */ provider: { /** * Auth provider key, such as google or saml2 */ id: string; /** * Display name of the auth provider */ name: string; }; /** * When the identity was last verified by signing in through the auth provider */ dateVerified: string; /** * When the identity was last synced from the auth provider */ dateSynced: string; }>; /** * User avatar */ avatar?: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Two-factor authenticators of the user, without backup methods such as recovery codes */ authenticators?: Array<{ /** * Authenticator ID */ id: string; /** * Authenticator type, such as totp, sms, u2f or recovery */ type: string; /** * Display name of the authenticator type */ name: string; /** * When the authenticator was added */ dateCreated: string; /** * When the authenticator was last used, or null */ dateUsed: string | null; }>; /** * Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization */ canReset2fa?: boolean; /** * User ID */ id: string; /** * Display name: the user's name, or their email or username if no name is set */ name: string; /** * Username */ username: string; /** * Primary email address */ email: string; /** * Gravatar URL for the primary email address */ avatarUrl: string; /** * Whether the account is active */ isActive: boolean; /** * Whether the account is suspended. Suspended users can't sign in */ isSuspended: boolean; /** * Whether the user has a password set */ hasPasswordAuth: boolean; /** * Whether the account is managed, which stops the user from changing their username, password and similar details */ isManaged: boolean; /** * When the account was created */ dateJoined: string; /** * When the user last signed in, or null */ lastLogin: string | null; /** * Whether the user has two-factor authentication enabled */ has2fa: boolean; /** * When the user was last active, or null */ lastActive: string | null; /** * Whether the user is a superuser */ isSuperuser: boolean; /** * Whether the user has staff status */ isStaff: boolean; /** * Deprecated. Always an empty object */ experiments: { [key: string]: string; }; /** * Email addresses of the user. Only included for the requesting user or superusers; empty otherwise */ emails: Array<{ /** * Email ID */ id: string; /** * Email address */ email: string; /** * Whether the email address is verified */ is_verified: boolean; }>; } | null; /** * Sentry App that acted, if one did */ sentry_app: { /** * ID of the Sentry App */ id: string; /** * Name of the Sentry App */ name: string; /** * Slug of the Sentry App */ slug: string; /** * Avatars of the Sentry App */ avatars: Array<{ /** * Avatar type: `default` or `upload` */ avatarType: string; /** * Unique identifier of the uploaded avatar file, or an empty string if none is set */ avatarUuid: string; /** * Absolute URL of the avatar image */ avatarUrl: string; /** * Whether this is the color logo (`true`) or the simple icon (`false`) */ color: boolean; /** * Kind of image: `logo` for the color logo or `icon` for the simple icon */ photoType: string; }>; } | null; /** * Type of the activity, which decides the shape of data */ type: 'seer_solution_started'; /** * Details of the activity, which depend on type */ data: { /** * ID of the Seer run */ run_id?: number | null; }; /** * When the activity happened (ISO 8601) */ dateCreated: string; /** * Where the action came from, such as web, api or mcp: */ source?: string | null; } | { /** * ID of the activity, or 0 for a first-seen item built from the issue */ id: string; /** * ID to pass to the notes endpoints for a comment, otherwise null */ commentId: string | null; /** * User who acted, or null for Sentry, an integration or a Sentry App */ user: { /** * SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access */ identities?: Array<{ /** * SSO identity ID */ id: string; /** * User's identifier at the auth provider */ name: string; /** * Organization the auth provider belongs to */ organization: { /** * Organization slug */ slug: string; /** * Organization name */ name: string; }; /** * Auth provider of the identity */ provider: { /** * Auth provider key, such as google or saml2 */ id: string; /** * Display name of the auth provider */ name: string; }; /** * When the identity was last verified by signing in through the auth provider */ dateVerified: string; /** * When the identity was last synced from the auth provider */ dateSynced: string; }>; /** * User avatar */ avatar?: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Two-factor authenticators of the user, without backup methods such as recovery codes */ authenticators?: Array<{ /** * Authenticator ID */ id: string; /** * Authenticator type, such as totp, sms, u2f or recovery */ type: string; /** * Display name of the authenticator type */ name: string; /** * When the authenticator was added */ dateCreated: string; /** * When the authenticator was last used, or null */ dateUsed: string | null; }>; /** * Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization */ canReset2fa?: boolean; /** * User ID */ id: string; /** * Display name: the user's name, or their email or username if no name is set */ name: string; /** * Username */ username: string; /** * Primary email address */ email: string; /** * Gravatar URL for the primary email address */ avatarUrl: string; /** * Whether the account is active */ isActive: boolean; /** * Whether the account is suspended. Suspended users can't sign in */ isSuspended: boolean; /** * Whether the user has a password set */ hasPasswordAuth: boolean; /** * Whether the account is managed, which stops the user from changing their username, password and similar details */ isManaged: boolean; /** * When the account was created */ dateJoined: string; /** * When the user last signed in, or null */ lastLogin: string | null; /** * Whether the user has two-factor authentication enabled */ has2fa: boolean; /** * When the user was last active, or null */ lastActive: string | null; /** * Whether the user is a superuser */ isSuperuser: boolean; /** * Whether the user has staff status */ isStaff: boolean; /** * Deprecated. Always an empty object */ experiments: { [key: string]: string; }; /** * Email addresses of the user. Only included for the requesting user or superusers; empty otherwise */ emails: Array<{ /** * Email ID */ id: string; /** * Email address */ email: string; /** * Whether the email address is verified */ is_verified: boolean; }>; } | null; /** * Sentry App that acted, if one did */ sentry_app: { /** * ID of the Sentry App */ id: string; /** * Name of the Sentry App */ name: string; /** * Slug of the Sentry App */ slug: string; /** * Avatars of the Sentry App */ avatars: Array<{ /** * Avatar type: `default` or `upload` */ avatarType: string; /** * Unique identifier of the uploaded avatar file, or an empty string if none is set */ avatarUuid: string; /** * Absolute URL of the avatar image */ avatarUrl: string; /** * Whether this is the color logo (`true`) or the simple icon (`false`) */ color: boolean; /** * Kind of image: `logo` for the color logo or `icon` for the simple icon */ photoType: string; }>; } | null; /** * Type of the activity, which decides the shape of data */ type: 'seer_stopped'; /** * Details of the activity, which depend on type */ data: { /** * ID of the Seer run */ run_id?: number | null; /** * Why Seer stopped instead of fixing the issue */ reason?: string | null; /** * What Seer suggests doing instead */ suggestion?: string | null; }; /** * When the activity happened (ISO 8601) */ dateCreated: string; /** * Where the action came from, such as web, api or mcp: */ source?: string | null; } | { /** * ID of the activity, or 0 for a first-seen item built from the issue */ id: string; /** * ID to pass to the notes endpoints for a comment, otherwise null */ commentId: string | null; /** * User who acted, or null for Sentry, an integration or a Sentry App */ user: { /** * SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access */ identities?: Array<{ /** * SSO identity ID */ id: string; /** * User's identifier at the auth provider */ name: string; /** * Organization the auth provider belongs to */ organization: { /** * Organization slug */ slug: string; /** * Organization name */ name: string; }; /** * Auth provider of the identity */ provider: { /** * Auth provider key, such as google or saml2 */ id: string; /** * Display name of the auth provider */ name: string; }; /** * When the identity was last verified by signing in through the auth provider */ dateVerified: string; /** * When the identity was last synced from the auth provider */ dateSynced: string; }>; /** * User avatar */ avatar?: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Two-factor authenticators of the user, without backup methods such as recovery codes */ authenticators?: Array<{ /** * Authenticator ID */ id: string; /** * Authenticator type, such as totp, sms, u2f or recovery */ type: string; /** * Display name of the authenticator type */ name: string; /** * When the authenticator was added */ dateCreated: string; /** * When the authenticator was last used, or null */ dateUsed: string | null; }>; /** * Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization */ canReset2fa?: boolean; /** * User ID */ id: string; /** * Display name: the user's name, or their email or username if no name is set */ name: string; /** * Username */ username: string; /** * Primary email address */ email: string; /** * Gravatar URL for the primary email address */ avatarUrl: string; /** * Whether the account is active */ isActive: boolean; /** * Whether the account is suspended. Suspended users can't sign in */ isSuspended: boolean; /** * Whether the user has a password set */ hasPasswordAuth: boolean; /** * Whether the account is managed, which stops the user from changing their username, password and similar details */ isManaged: boolean; /** * When the account was created */ dateJoined: string; /** * When the user last signed in, or null */ lastLogin: string | null; /** * Whether the user has two-factor authentication enabled */ has2fa: boolean; /** * When the user was last active, or null */ lastActive: string | null; /** * Whether the user is a superuser */ isSuperuser: boolean; /** * Whether the user has staff status */ isStaff: boolean; /** * Deprecated. Always an empty object */ experiments: { [key: string]: string; }; /** * Email addresses of the user. Only included for the requesting user or superusers; empty otherwise */ emails: Array<{ /** * Email ID */ id: string; /** * Email address */ email: string; /** * Whether the email address is verified */ is_verified: boolean; }>; } | null; /** * Sentry App that acted, if one did */ sentry_app: { /** * ID of the Sentry App */ id: string; /** * Name of the Sentry App */ name: string; /** * Slug of the Sentry App */ slug: string; /** * Avatars of the Sentry App */ avatars: Array<{ /** * Avatar type: `default` or `upload` */ avatarType: string; /** * Unique identifier of the uploaded avatar file, or an empty string if none is set */ avatarUuid: string; /** * Absolute URL of the avatar image */ avatarUrl: string; /** * Whether this is the color logo (`true`) or the simple icon (`false`) */ color: boolean; /** * Kind of image: `logo` for the color logo or `icon` for the simple icon */ photoType: string; }>; } | null; /** * Type of the activity, which decides the shape of data */ type: 'set_escalating'; /** * Details of the activity, which depend on type */ data: { /** * ID of the event that caused the change */ event_id?: string | null; /** * Forecast of the issue's daily events when it escalated */ forecast?: number | null; /** * The archive conditions that expired when the issue escalated */ expired_snooze?: { /** * Event count condition */ count?: number | null; /** * Date condition */ until?: string | null; /** * User count condition */ user_count?: number | null; /** * Minutes over which user_count is counted */ user_window?: number | null; /** * Minutes over which count is counted */ window?: number | null; } | null; }; /** * When the activity happened (ISO 8601) */ dateCreated: string; /** * Where the action came from, such as web, api or mcp: */ source?: string | null; } | { /** * ID of the activity, or 0 for a first-seen item built from the issue */ id: string; /** * ID to pass to the notes endpoints for a comment, otherwise null */ commentId: string | null; /** * User who acted, or null for Sentry, an integration or a Sentry App */ user: { /** * SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access */ identities?: Array<{ /** * SSO identity ID */ id: string; /** * User's identifier at the auth provider */ name: string; /** * Organization the auth provider belongs to */ organization: { /** * Organization slug */ slug: string; /** * Organization name */ name: string; }; /** * Auth provider of the identity */ provider: { /** * Auth provider key, such as google or saml2 */ id: string; /** * Display name of the auth provider */ name: string; }; /** * When the identity was last verified by signing in through the auth provider */ dateVerified: string; /** * When the identity was last synced from the auth provider */ dateSynced: string; }>; /** * User avatar */ avatar?: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Two-factor authenticators of the user, without backup methods such as recovery codes */ authenticators?: Array<{ /** * Authenticator ID */ id: string; /** * Authenticator type, such as totp, sms, u2f or recovery */ type: string; /** * Display name of the authenticator type */ name: string; /** * When the authenticator was added */ dateCreated: string; /** * When the authenticator was last used, or null */ dateUsed: string | null; }>; /** * Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization */ canReset2fa?: boolean; /** * User ID */ id: string; /** * Display name: the user's name, or their email or username if no name is set */ name: string; /** * Username */ username: string; /** * Primary email address */ email: string; /** * Gravatar URL for the primary email address */ avatarUrl: string; /** * Whether the account is active */ isActive: boolean; /** * Whether the account is suspended. Suspended users can't sign in */ isSuspended: boolean; /** * Whether the user has a password set */ hasPasswordAuth: boolean; /** * Whether the account is managed, which stops the user from changing their username, password and similar details */ isManaged: boolean; /** * When the account was created */ dateJoined: string; /** * When the user last signed in, or null */ lastLogin: string | null; /** * Whether the user has two-factor authentication enabled */ has2fa: boolean; /** * When the user was last active, or null */ lastActive: string | null; /** * Whether the user is a superuser */ isSuperuser: boolean; /** * Whether the user has staff status */ isStaff: boolean; /** * Deprecated. Always an empty object */ experiments: { [key: string]: string; }; /** * Email addresses of the user. Only included for the requesting user or superusers; empty otherwise */ emails: Array<{ /** * Email ID */ id: string; /** * Email address */ email: string; /** * Whether the email address is verified */ is_verified: boolean; }>; } | null; /** * Sentry App that acted, if one did */ sentry_app: { /** * ID of the Sentry App */ id: string; /** * Name of the Sentry App */ name: string; /** * Slug of the Sentry App */ slug: string; /** * Avatars of the Sentry App */ avatars: Array<{ /** * Avatar type: `default` or `upload` */ avatarType: string; /** * Unique identifier of the uploaded avatar file, or an empty string if none is set */ avatarUuid: string; /** * Absolute URL of the avatar image */ avatarUrl: string; /** * Whether this is the color logo (`true`) or the simple icon (`false`) */ color: boolean; /** * Kind of image: `logo` for the color logo or `icon` for the simple icon */ photoType: string; }>; } | null; /** * Type of the activity, which decides the shape of data */ type: 'set_ignored'; /** * Details of the activity, which depend on type */ data: { /** * Number of events after which the issue is unarchived */ ignoreCount?: number | null; /** * Minutes the issue is archived for */ ignoreDuration?: number | null; /** * When the issue is unarchived (ISO 8601) */ ignoreUntil?: string | null; /** * Number of affected users after which the issue is unarchived */ ignoreUserCount?: number | null; /** * Minutes over which ignoreUserCount is counted */ ignoreUserWindow?: number | null; /** * Minutes over which ignoreCount is counted */ ignoreWindow?: number | null; /** * Whether the issue is archived until it escalates */ ignoreUntilEscalating?: boolean | null; }; /** * When the activity happened (ISO 8601) */ dateCreated: string; /** * Where the action came from, such as web, api or mcp: */ source?: string | null; } | { /** * ID of the activity, or 0 for a first-seen item built from the issue */ id: string; /** * ID to pass to the notes endpoints for a comment, otherwise null */ commentId: string | null; /** * User who acted, or null for Sentry, an integration or a Sentry App */ user: { /** * SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access */ identities?: Array<{ /** * SSO identity ID */ id: string; /** * User's identifier at the auth provider */ name: string; /** * Organization the auth provider belongs to */ organization: { /** * Organization slug */ slug: string; /** * Organization name */ name: string; }; /** * Auth provider of the identity */ provider: { /** * Auth provider key, such as google or saml2 */ id: string; /** * Display name of the auth provider */ name: string; }; /** * When the identity was last verified by signing in through the auth provider */ dateVerified: string; /** * When the identity was last synced from the auth provider */ dateSynced: string; }>; /** * User avatar */ avatar?: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Two-factor authenticators of the user, without backup methods such as recovery codes */ authenticators?: Array<{ /** * Authenticator ID */ id: string; /** * Authenticator type, such as totp, sms, u2f or recovery */ type: string; /** * Display name of the authenticator type */ name: string; /** * When the authenticator was added */ dateCreated: string; /** * When the authenticator was last used, or null */ dateUsed: string | null; }>; /** * Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization */ canReset2fa?: boolean; /** * User ID */ id: string; /** * Display name: the user's name, or their email or username if no name is set */ name: string; /** * Username */ username: string; /** * Primary email address */ email: string; /** * Gravatar URL for the primary email address */ avatarUrl: string; /** * Whether the account is active */ isActive: boolean; /** * Whether the account is suspended. Suspended users can't sign in */ isSuspended: boolean; /** * Whether the user has a password set */ hasPasswordAuth: boolean; /** * Whether the account is managed, which stops the user from changing their username, password and similar details */ isManaged: boolean; /** * When the account was created */ dateJoined: string; /** * When the user last signed in, or null */ lastLogin: string | null; /** * Whether the user has two-factor authentication enabled */ has2fa: boolean; /** * When the user was last active, or null */ lastActive: string | null; /** * Whether the user is a superuser */ isSuperuser: boolean; /** * Whether the user has staff status */ isStaff: boolean; /** * Deprecated. Always an empty object */ experiments: { [key: string]: string; }; /** * Email addresses of the user. Only included for the requesting user or superusers; empty otherwise */ emails: Array<{ /** * Email ID */ id: string; /** * Email address */ email: string; /** * Whether the email address is verified */ is_verified: boolean; }>; } | null; /** * Sentry App that acted, if one did */ sentry_app: { /** * ID of the Sentry App */ id: string; /** * Name of the Sentry App */ name: string; /** * Slug of the Sentry App */ slug: string; /** * Avatars of the Sentry App */ avatars: Array<{ /** * Avatar type: `default` or `upload` */ avatarType: string; /** * Unique identifier of the uploaded avatar file, or an empty string if none is set */ avatarUuid: string; /** * Absolute URL of the avatar image */ avatarUrl: string; /** * Whether this is the color logo (`true`) or the simple icon (`false`) */ color: boolean; /** * Kind of image: `logo` for the color logo or `icon` for the simple icon */ photoType: string; }>; } | null; /** * Type of the activity, which decides the shape of data */ type: 'set_priority'; /** * Details of the activity, which depend on type */ data: { /** * New priority of the issue: high, medium or low */ priority?: string; /** * Why the priority changed, such as escalating or ongoing */ reason?: string | null; }; /** * When the activity happened (ISO 8601) */ dateCreated: string; /** * Where the action came from, such as web, api or mcp: */ source?: string | null; } | { /** * ID of the activity, or 0 for a first-seen item built from the issue */ id: string; /** * ID to pass to the notes endpoints for a comment, otherwise null */ commentId: string | null; /** * User who acted, or null for Sentry, an integration or a Sentry App */ user: { /** * SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access */ identities?: Array<{ /** * SSO identity ID */ id: string; /** * User's identifier at the auth provider */ name: string; /** * Organization the auth provider belongs to */ organization: { /** * Organization slug */ slug: string; /** * Organization name */ name: string; }; /** * Auth provider of the identity */ provider: { /** * Auth provider key, such as google or saml2 */ id: string; /** * Display name of the auth provider */ name: string; }; /** * When the identity was last verified by signing in through the auth provider */ dateVerified: string; /** * When the identity was last synced from the auth provider */ dateSynced: string; }>; /** * User avatar */ avatar?: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Two-factor authenticators of the user, without backup methods such as recovery codes */ authenticators?: Array<{ /** * Authenticator ID */ id: string; /** * Authenticator type, such as totp, sms, u2f or recovery */ type: string; /** * Display name of the authenticator type */ name: string; /** * When the authenticator was added */ dateCreated: string; /** * When the authenticator was last used, or null */ dateUsed: string | null; }>; /** * Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization */ canReset2fa?: boolean; /** * User ID */ id: string; /** * Display name: the user's name, or their email or username if no name is set */ name: string; /** * Username */ username: string; /** * Primary email address */ email: string; /** * Gravatar URL for the primary email address */ avatarUrl: string; /** * Whether the account is active */ isActive: boolean; /** * Whether the account is suspended. Suspended users can't sign in */ isSuspended: boolean; /** * Whether the user has a password set */ hasPasswordAuth: boolean; /** * Whether the account is managed, which stops the user from changing their username, password and similar details */ isManaged: boolean; /** * When the account was created */ dateJoined: string; /** * When the user last signed in, or null */ lastLogin: string | null; /** * Whether the user has two-factor authentication enabled */ has2fa: boolean; /** * When the user was last active, or null */ lastActive: string | null; /** * Whether the user is a superuser */ isSuperuser: boolean; /** * Whether the user has staff status */ isStaff: boolean; /** * Deprecated. Always an empty object */ experiments: { [key: string]: string; }; /** * Email addresses of the user. Only included for the requesting user or superusers; empty otherwise */ emails: Array<{ /** * Email ID */ id: string; /** * Email address */ email: string; /** * Whether the email address is verified */ is_verified: boolean; }>; } | null; /** * Sentry App that acted, if one did */ sentry_app: { /** * ID of the Sentry App */ id: string; /** * Name of the Sentry App */ name: string; /** * Slug of the Sentry App */ slug: string; /** * Avatars of the Sentry App */ avatars: Array<{ /** * Avatar type: `default` or `upload` */ avatarType: string; /** * Unique identifier of the uploaded avatar file, or an empty string if none is set */ avatarUuid: string; /** * Absolute URL of the avatar image */ avatarUrl: string; /** * Whether this is the color logo (`true`) or the simple icon (`false`) */ color: boolean; /** * Kind of image: `logo` for the color logo or `icon` for the simple icon */ photoType: string; }>; } | null; /** * Type of the activity, which decides the shape of data */ type: 'set_private'; /** * Details of the activity, which depend on type */ data: { [key: string]: unknown; }; /** * When the activity happened (ISO 8601) */ dateCreated: string; /** * Where the action came from, such as web, api or mcp: */ source?: string | null; } | { /** * ID of the activity, or 0 for a first-seen item built from the issue */ id: string; /** * ID to pass to the notes endpoints for a comment, otherwise null */ commentId: string | null; /** * User who acted, or null for Sentry, an integration or a Sentry App */ user: { /** * SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access */ identities?: Array<{ /** * SSO identity ID */ id: string; /** * User's identifier at the auth provider */ name: string; /** * Organization the auth provider belongs to */ organization: { /** * Organization slug */ slug: string; /** * Organization name */ name: string; }; /** * Auth provider of the identity */ provider: { /** * Auth provider key, such as google or saml2 */ id: string; /** * Display name of the auth provider */ name: string; }; /** * When the identity was last verified by signing in through the auth provider */ dateVerified: string; /** * When the identity was last synced from the auth provider */ dateSynced: string; }>; /** * User avatar */ avatar?: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Two-factor authenticators of the user, without backup methods such as recovery codes */ authenticators?: Array<{ /** * Authenticator ID */ id: string; /** * Authenticator type, such as totp, sms, u2f or recovery */ type: string; /** * Display name of the authenticator type */ name: string; /** * When the authenticator was added */ dateCreated: string; /** * When the authenticator was last used, or null */ dateUsed: string | null; }>; /** * Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization */ canReset2fa?: boolean; /** * User ID */ id: string; /** * Display name: the user's name, or their email or username if no name is set */ name: string; /** * Username */ username: string; /** * Primary email address */ email: string; /** * Gravatar URL for the primary email address */ avatarUrl: string; /** * Whether the account is active */ isActive: boolean; /** * Whether the account is suspended. Suspended users can't sign in */ isSuspended: boolean; /** * Whether the user has a password set */ hasPasswordAuth: boolean; /** * Whether the account is managed, which stops the user from changing their username, password and similar details */ isManaged: boolean; /** * When the account was created */ dateJoined: string; /** * When the user last signed in, or null */ lastLogin: string | null; /** * Whether the user has two-factor authentication enabled */ has2fa: boolean; /** * When the user was last active, or null */ lastActive: string | null; /** * Whether the user is a superuser */ isSuperuser: boolean; /** * Whether the user has staff status */ isStaff: boolean; /** * Deprecated. Always an empty object */ experiments: { [key: string]: string; }; /** * Email addresses of the user. Only included for the requesting user or superusers; empty otherwise */ emails: Array<{ /** * Email ID */ id: string; /** * Email address */ email: string; /** * Whether the email address is verified */ is_verified: boolean; }>; } | null; /** * Sentry App that acted, if one did */ sentry_app: { /** * ID of the Sentry App */ id: string; /** * Name of the Sentry App */ name: string; /** * Slug of the Sentry App */ slug: string; /** * Avatars of the Sentry App */ avatars: Array<{ /** * Avatar type: `default` or `upload` */ avatarType: string; /** * Unique identifier of the uploaded avatar file, or an empty string if none is set */ avatarUuid: string; /** * Absolute URL of the avatar image */ avatarUrl: string; /** * Whether this is the color logo (`true`) or the simple icon (`false`) */ color: boolean; /** * Kind of image: `logo` for the color logo or `icon` for the simple icon */ photoType: string; }>; } | null; /** * Type of the activity, which decides the shape of data */ type: 'set_public'; /** * Details of the activity, which depend on type */ data: { [key: string]: unknown; }; /** * When the activity happened (ISO 8601) */ dateCreated: string; /** * Where the action came from, such as web, api or mcp: */ source?: string | null; } | { /** * ID of the activity, or 0 for a first-seen item built from the issue */ id: string; /** * ID to pass to the notes endpoints for a comment, otherwise null */ commentId: string | null; /** * User who acted, or null for Sentry, an integration or a Sentry App */ user: { /** * SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access */ identities?: Array<{ /** * SSO identity ID */ id: string; /** * User's identifier at the auth provider */ name: string; /** * Organization the auth provider belongs to */ organization: { /** * Organization slug */ slug: string; /** * Organization name */ name: string; }; /** * Auth provider of the identity */ provider: { /** * Auth provider key, such as google or saml2 */ id: string; /** * Display name of the auth provider */ name: string; }; /** * When the identity was last verified by signing in through the auth provider */ dateVerified: string; /** * When the identity was last synced from the auth provider */ dateSynced: string; }>; /** * User avatar */ avatar?: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Two-factor authenticators of the user, without backup methods such as recovery codes */ authenticators?: Array<{ /** * Authenticator ID */ id: string; /** * Authenticator type, such as totp, sms, u2f or recovery */ type: string; /** * Display name of the authenticator type */ name: string; /** * When the authenticator was added */ dateCreated: string; /** * When the authenticator was last used, or null */ dateUsed: string | null; }>; /** * Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization */ canReset2fa?: boolean; /** * User ID */ id: string; /** * Display name: the user's name, or their email or username if no name is set */ name: string; /** * Username */ username: string; /** * Primary email address */ email: string; /** * Gravatar URL for the primary email address */ avatarUrl: string; /** * Whether the account is active */ isActive: boolean; /** * Whether the account is suspended. Suspended users can't sign in */ isSuspended: boolean; /** * Whether the user has a password set */ hasPasswordAuth: boolean; /** * Whether the account is managed, which stops the user from changing their username, password and similar details */ isManaged: boolean; /** * When the account was created */ dateJoined: string; /** * When the user last signed in, or null */ lastLogin: string | null; /** * Whether the user has two-factor authentication enabled */ has2fa: boolean; /** * When the user was last active, or null */ lastActive: string | null; /** * Whether the user is a superuser */ isSuperuser: boolean; /** * Whether the user has staff status */ isStaff: boolean; /** * Deprecated. Always an empty object */ experiments: { [key: string]: string; }; /** * Email addresses of the user. Only included for the requesting user or superusers; empty otherwise */ emails: Array<{ /** * Email ID */ id: string; /** * Email address */ email: string; /** * Whether the email address is verified */ is_verified: boolean; }>; } | null; /** * Sentry App that acted, if one did */ sentry_app: { /** * ID of the Sentry App */ id: string; /** * Name of the Sentry App */ name: string; /** * Slug of the Sentry App */ slug: string; /** * Avatars of the Sentry App */ avatars: Array<{ /** * Avatar type: `default` or `upload` */ avatarType: string; /** * Unique identifier of the uploaded avatar file, or an empty string if none is set */ avatarUuid: string; /** * Absolute URL of the avatar image */ avatarUrl: string; /** * Whether this is the color logo (`true`) or the simple icon (`false`) */ color: boolean; /** * Kind of image: `logo` for the color logo or `icon` for the simple icon */ photoType: string; }>; } | null; /** * Type of the activity, which decides the shape of data */ type: 'set_regression'; /** * Details of the activity, which depend on type */ data: { /** * ID of the event that caused the change */ event_id?: string | null; /** * Version of the release */ version?: string | null; /** * Type of the event that regressed */ event_type?: string; /** * Whether the project's releases follow semantic versioning */ follows_semver?: boolean; /** * Release the issue was resolved in before it regressed */ resolved_in_version?: string; }; /** * When the activity happened (ISO 8601) */ dateCreated: string; /** * Where the action came from, such as web, api or mcp: */ source?: string | null; } | { /** * ID of the activity, or 0 for a first-seen item built from the issue */ id: string; /** * ID to pass to the notes endpoints for a comment, otherwise null */ commentId: string | null; /** * User who acted, or null for Sentry, an integration or a Sentry App */ user: { /** * SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access */ identities?: Array<{ /** * SSO identity ID */ id: string; /** * User's identifier at the auth provider */ name: string; /** * Organization the auth provider belongs to */ organization: { /** * Organization slug */ slug: string; /** * Organization name */ name: string; }; /** * Auth provider of the identity */ provider: { /** * Auth provider key, such as google or saml2 */ id: string; /** * Display name of the auth provider */ name: string; }; /** * When the identity was last verified by signing in through the auth provider */ dateVerified: string; /** * When the identity was last synced from the auth provider */ dateSynced: string; }>; /** * User avatar */ avatar?: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Two-factor authenticators of the user, without backup methods such as recovery codes */ authenticators?: Array<{ /** * Authenticator ID */ id: string; /** * Authenticator type, such as totp, sms, u2f or recovery */ type: string; /** * Display name of the authenticator type */ name: string; /** * When the authenticator was added */ dateCreated: string; /** * When the authenticator was last used, or null */ dateUsed: string | null; }>; /** * Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization */ canReset2fa?: boolean; /** * User ID */ id: string; /** * Display name: the user's name, or their email or username if no name is set */ name: string; /** * Username */ username: string; /** * Primary email address */ email: string; /** * Gravatar URL for the primary email address */ avatarUrl: string; /** * Whether the account is active */ isActive: boolean; /** * Whether the account is suspended. Suspended users can't sign in */ isSuspended: boolean; /** * Whether the user has a password set */ hasPasswordAuth: boolean; /** * Whether the account is managed, which stops the user from changing their username, password and similar details */ isManaged: boolean; /** * When the account was created */ dateJoined: string; /** * When the user last signed in, or null */ lastLogin: string | null; /** * Whether the user has two-factor authentication enabled */ has2fa: boolean; /** * When the user was last active, or null */ lastActive: string | null; /** * Whether the user is a superuser */ isSuperuser: boolean; /** * Whether the user has staff status */ isStaff: boolean; /** * Deprecated. Always an empty object */ experiments: { [key: string]: string; }; /** * Email addresses of the user. Only included for the requesting user or superusers; empty otherwise */ emails: Array<{ /** * Email ID */ id: string; /** * Email address */ email: string; /** * Whether the email address is verified */ is_verified: boolean; }>; } | null; /** * Sentry App that acted, if one did */ sentry_app: { /** * ID of the Sentry App */ id: string; /** * Name of the Sentry App */ name: string; /** * Slug of the Sentry App */ slug: string; /** * Avatars of the Sentry App */ avatars: Array<{ /** * Avatar type: `default` or `upload` */ avatarType: string; /** * Unique identifier of the uploaded avatar file, or an empty string if none is set */ avatarUuid: string; /** * Absolute URL of the avatar image */ avatarUrl: string; /** * Whether this is the color logo (`true`) or the simple icon (`false`) */ color: boolean; /** * Kind of image: `logo` for the color logo or `icon` for the simple icon */ photoType: string; }>; } | null; /** * Type of the activity, which decides the shape of data */ type: 'set_resolved'; /** * Details of the activity, which depend on type */ data: { /** * ID of the integration that changed the status, when an integration did */ integration_id?: number; /** * Name of the integration provider, such as Jira */ provider?: string; /** * Key of the integration provider, such as jira */ provider_key?: string; }; /** * When the activity happened (ISO 8601) */ dateCreated: string; /** * Where the action came from, such as web, api or mcp: */ source?: string | null; } | { /** * ID of the activity, or 0 for a first-seen item built from the issue */ id: string; /** * ID to pass to the notes endpoints for a comment, otherwise null */ commentId: string | null; /** * User who acted, or null for Sentry, an integration or a Sentry App */ user: { /** * SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access */ identities?: Array<{ /** * SSO identity ID */ id: string; /** * User's identifier at the auth provider */ name: string; /** * Organization the auth provider belongs to */ organization: { /** * Organization slug */ slug: string; /** * Organization name */ name: string; }; /** * Auth provider of the identity */ provider: { /** * Auth provider key, such as google or saml2 */ id: string; /** * Display name of the auth provider */ name: string; }; /** * When the identity was last verified by signing in through the auth provider */ dateVerified: string; /** * When the identity was last synced from the auth provider */ dateSynced: string; }>; /** * User avatar */ avatar?: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Two-factor authenticators of the user, without backup methods such as recovery codes */ authenticators?: Array<{ /** * Authenticator ID */ id: string; /** * Authenticator type, such as totp, sms, u2f or recovery */ type: string; /** * Display name of the authenticator type */ name: string; /** * When the authenticator was added */ dateCreated: string; /** * When the authenticator was last used, or null */ dateUsed: string | null; }>; /** * Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization */ canReset2fa?: boolean; /** * User ID */ id: string; /** * Display name: the user's name, or their email or username if no name is set */ name: string; /** * Username */ username: string; /** * Primary email address */ email: string; /** * Gravatar URL for the primary email address */ avatarUrl: string; /** * Whether the account is active */ isActive: boolean; /** * Whether the account is suspended. Suspended users can't sign in */ isSuspended: boolean; /** * Whether the user has a password set */ hasPasswordAuth: boolean; /** * Whether the account is managed, which stops the user from changing their username, password and similar details */ isManaged: boolean; /** * When the account was created */ dateJoined: string; /** * When the user last signed in, or null */ lastLogin: string | null; /** * Whether the user has two-factor authentication enabled */ has2fa: boolean; /** * When the user was last active, or null */ lastActive: string | null; /** * Whether the user is a superuser */ isSuperuser: boolean; /** * Whether the user has staff status */ isStaff: boolean; /** * Deprecated. Always an empty object */ experiments: { [key: string]: string; }; /** * Email addresses of the user. Only included for the requesting user or superusers; empty otherwise */ emails: Array<{ /** * Email ID */ id: string; /** * Email address */ email: string; /** * Whether the email address is verified */ is_verified: boolean; }>; } | null; /** * Sentry App that acted, if one did */ sentry_app: { /** * ID of the Sentry App */ id: string; /** * Name of the Sentry App */ name: string; /** * Slug of the Sentry App */ slug: string; /** * Avatars of the Sentry App */ avatars: Array<{ /** * Avatar type: `default` or `upload` */ avatarType: string; /** * Unique identifier of the uploaded avatar file, or an empty string if none is set */ avatarUuid: string; /** * Absolute URL of the avatar image */ avatarUrl: string; /** * Whether this is the color logo (`true`) or the simple icon (`false`) */ color: boolean; /** * Kind of image: `logo` for the color logo or `icon` for the simple icon */ photoType: string; }>; } | null; /** * Type of the activity, which decides the shape of data */ type: 'set_resolved_by_age'; /** * Details of the activity, which depend on type */ data: { /** * Hours without events after which the issue resolved */ age?: number | null; }; /** * When the activity happened (ISO 8601) */ dateCreated: string; /** * Where the action came from, such as web, api or mcp: */ source?: string | null; } | { /** * ID of the activity, or 0 for a first-seen item built from the issue */ id: string; /** * ID to pass to the notes endpoints for a comment, otherwise null */ commentId: string | null; /** * User who acted, or null for Sentry, an integration or a Sentry App */ user: { /** * SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access */ identities?: Array<{ /** * SSO identity ID */ id: string; /** * User's identifier at the auth provider */ name: string; /** * Organization the auth provider belongs to */ organization: { /** * Organization slug */ slug: string; /** * Organization name */ name: string; }; /** * Auth provider of the identity */ provider: { /** * Auth provider key, such as google or saml2 */ id: string; /** * Display name of the auth provider */ name: string; }; /** * When the identity was last verified by signing in through the auth provider */ dateVerified: string; /** * When the identity was last synced from the auth provider */ dateSynced: string; }>; /** * User avatar */ avatar?: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Two-factor authenticators of the user, without backup methods such as recovery codes */ authenticators?: Array<{ /** * Authenticator ID */ id: string; /** * Authenticator type, such as totp, sms, u2f or recovery */ type: string; /** * Display name of the authenticator type */ name: string; /** * When the authenticator was added */ dateCreated: string; /** * When the authenticator was last used, or null */ dateUsed: string | null; }>; /** * Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization */ canReset2fa?: boolean; /** * User ID */ id: string; /** * Display name: the user's name, or their email or username if no name is set */ name: string; /** * Username */ username: string; /** * Primary email address */ email: string; /** * Gravatar URL for the primary email address */ avatarUrl: string; /** * Whether the account is active */ isActive: boolean; /** * Whether the account is suspended. Suspended users can't sign in */ isSuspended: boolean; /** * Whether the user has a password set */ hasPasswordAuth: boolean; /** * Whether the account is managed, which stops the user from changing their username, password and similar details */ isManaged: boolean; /** * When the account was created */ dateJoined: string; /** * When the user last signed in, or null */ lastLogin: string | null; /** * Whether the user has two-factor authentication enabled */ has2fa: boolean; /** * When the user was last active, or null */ lastActive: string | null; /** * Whether the user is a superuser */ isSuperuser: boolean; /** * Whether the user has staff status */ isStaff: boolean; /** * Deprecated. Always an empty object */ experiments: { [key: string]: string; }; /** * Email addresses of the user. Only included for the requesting user or superusers; empty otherwise */ emails: Array<{ /** * Email ID */ id: string; /** * Email address */ email: string; /** * Whether the email address is verified */ is_verified: boolean; }>; } | null; /** * Sentry App that acted, if one did */ sentry_app: { /** * ID of the Sentry App */ id: string; /** * Name of the Sentry App */ name: string; /** * Slug of the Sentry App */ slug: string; /** * Avatars of the Sentry App */ avatars: Array<{ /** * Avatar type: `default` or `upload` */ avatarType: string; /** * Unique identifier of the uploaded avatar file, or an empty string if none is set */ avatarUuid: string; /** * Absolute URL of the avatar image */ avatarUrl: string; /** * Whether this is the color logo (`true`) or the simple icon (`false`) */ color: boolean; /** * Kind of image: `logo` for the color logo or `icon` for the simple icon */ photoType: string; }>; } | null; /** * Type of the activity, which decides the shape of data */ type: 'set_resolved_in_commit'; /** * Details of the activity, which depend on type */ data: { /** * The commit */ commit?: { /** * Commit SHA */ id: string; /** * Commit message */ message: string | null; /** * When the commit was made (ISO 8601) */ dateCreated: string; /** * Pull request the commit belongs to */ pullRequest: { /** * Number or key of the pull request in the provider */ id: string; /** * Title of the pull request */ title: string | null; /** * Description of the pull request */ message: string | null; /** * When Sentry recorded the pull request (ISO 8601) */ dateCreated: string; /** * When the pull request was merged (ISO 8601). Null when it isn't merged */ mergedAt: string | null; /** * State of the pull request: merged, open, closed, draft or unknown. Null when not known */ status: 'merged' | 'open' | 'closed' | 'draft' | 'unknown' | null; /** * Repository of the pull request */ repository: { /** * URL of the repository */ url?: string | null; /** * Provider of the repository, with its id and name */ provider?: { [key: string]: string; }; /** * Status of the repository */ status?: 'active' | 'disabled' | 'pending_deletion' | 'deletion_in_progress'; /** * ID of the repository's integration. Null for repositories added without an integration */ integrationId?: string | null; /** * Identifier of the repository in the provider, such as owner/name */ externalSlug?: string | null; /** * ID of the repository in the provider */ externalId?: string | null; /** * Settings of the repository. Only set when expand includes settings. Null when it has none */ settings?: { /** * Whether AI code review is on for the repository */ enabledCodeReview: boolean; /** * Pull request events that start a code review: on_new_commit or on_ready_for_review */ codeReviewTriggers: Array; } | null; /** * ID of the repository */ id: string; /** * Name of the repository, such as owner/name */ name: string; /** * When the repository was added to Sentry (ISO 8601) */ dateCreated: string; }; /** * Author of the pull request, or an empty object when it has none */ author: { /** * SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access */ identities?: Array<{ /** * SSO identity ID */ id: string; /** * User's identifier at the auth provider */ name: string; /** * Organization the auth provider belongs to */ organization: { /** * Organization slug */ slug: string; /** * Organization name */ name: string; }; /** * Auth provider of the identity */ provider: { /** * Auth provider key, such as google or saml2 */ id: string; /** * Display name of the auth provider */ name: string; }; /** * When the identity was last verified by signing in through the auth provider */ dateVerified: string; /** * When the identity was last synced from the auth provider */ dateSynced: string; }>; /** * User avatar */ avatar?: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Two-factor authenticators of the user, without backup methods such as recovery codes */ authenticators?: Array<{ /** * Authenticator ID */ id: string; /** * Authenticator type, such as totp, sms, u2f or recovery */ type: string; /** * Display name of the authenticator type */ name: string; /** * When the authenticator was added */ dateCreated: string; /** * When the authenticator was last used, or null */ dateUsed: string | null; }>; /** * Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization */ canReset2fa?: boolean; /** * User ID */ id: string; /** * Display name: the user's name, or their email or username if no name is set */ name: string; /** * Username */ username: string; /** * Primary email address */ email: string; /** * Gravatar URL for the primary email address */ avatarUrl: string; /** * Whether the account is active */ isActive: boolean; /** * Whether the account is suspended. Suspended users can't sign in */ isSuspended: boolean; /** * Whether the user has a password set */ hasPasswordAuth: boolean; /** * Whether the account is managed, which stops the user from changing their username, password and similar details */ isManaged: boolean; /** * When the account was created */ dateJoined: string; /** * When the user last signed in, or null */ lastLogin: string | null; /** * Whether the user has two-factor authentication enabled */ has2fa: boolean; /** * When the user was last active, or null */ lastActive: string | null; /** * Whether the user is a superuser */ isSuperuser: boolean; /** * Whether the user has staff status */ isStaff: boolean; /** * Deprecated. Always an empty object */ experiments: { [key: string]: string; }; /** * Email addresses of the user. Only included for the requesting user or superusers; empty otherwise */ emails: Array<{ /** * Email ID */ id: string; /** * Email address */ email: string; /** * Whether the email address is verified */ is_verified: boolean; }>; } | { /** * Commit author name */ name: string | null; /** * Commit author email */ email: string; } | { [key: string]: unknown; }; /** * URL of the pull request in the provider, or null when the provider can't build one */ externalUrl: string | null; } | null; /** * How the commit was found as a suspect commit: via commit in release or via SCM integration. Empty for other commits */ suspectCommitType: string; /** * Repository the commit belongs to */ repository?: { /** * URL of the repository */ url?: string | null; /** * Provider of the repository, with its id and name */ provider?: { [key: string]: string; }; /** * Status of the repository */ status?: 'active' | 'disabled' | 'pending_deletion' | 'deletion_in_progress'; /** * ID of the repository's integration. Null for repositories added without an integration */ integrationId?: string | null; /** * Identifier of the repository in the provider, such as owner/name */ externalSlug?: string | null; /** * ID of the repository in the provider */ externalId?: string | null; /** * Settings of the repository. Only set when expand includes settings. Null when it has none */ settings?: { /** * Whether AI code review is on for the repository */ enabledCodeReview: boolean; /** * Pull request events that start a code review: on_new_commit or on_ready_for_review */ codeReviewTriggers: Array; } | null; /** * ID of the repository */ id: string; /** * Name of the repository, such as owner/name */ name: string; /** * When the repository was added to Sentry (ISO 8601) */ dateCreated: string; }; /** * Author of the commit: a Sentry user when the email matches one, otherwise the name and email from the commit */ author?: { /** * SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access */ identities?: Array<{ /** * SSO identity ID */ id: string; /** * User's identifier at the auth provider */ name: string; /** * Organization the auth provider belongs to */ organization: { /** * Organization slug */ slug: string; /** * Organization name */ name: string; }; /** * Auth provider of the identity */ provider: { /** * Auth provider key, such as google or saml2 */ id: string; /** * Display name of the auth provider */ name: string; }; /** * When the identity was last verified by signing in through the auth provider */ dateVerified: string; /** * When the identity was last synced from the auth provider */ dateSynced: string; }>; /** * User avatar */ avatar?: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Two-factor authenticators of the user, without backup methods such as recovery codes */ authenticators?: Array<{ /** * Authenticator ID */ id: string; /** * Authenticator type, such as totp, sms, u2f or recovery */ type: string; /** * Display name of the authenticator type */ name: string; /** * When the authenticator was added */ dateCreated: string; /** * When the authenticator was last used, or null */ dateUsed: string | null; }>; /** * Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization */ canReset2fa?: boolean; /** * User ID */ id: string; /** * Display name: the user's name, or their email or username if no name is set */ name: string; /** * Username */ username: string; /** * Primary email address */ email: string; /** * Gravatar URL for the primary email address */ avatarUrl: string; /** * Whether the account is active */ isActive: boolean; /** * Whether the account is suspended. Suspended users can't sign in */ isSuspended: boolean; /** * Whether the user has a password set */ hasPasswordAuth: boolean; /** * Whether the account is managed, which stops the user from changing their username, password and similar details */ isManaged: boolean; /** * When the account was created */ dateJoined: string; /** * When the user last signed in, or null */ lastLogin: string | null; /** * Whether the user has two-factor authentication enabled */ has2fa: boolean; /** * When the user was last active, or null */ lastActive: string | null; /** * Whether the user is a superuser */ isSuperuser: boolean; /** * Whether the user has staff status */ isStaff: boolean; /** * Deprecated. Always an empty object */ experiments: { [key: string]: string; }; /** * Email addresses of the user. Only included for the requesting user or superusers; empty otherwise */ emails: Array<{ /** * Email ID */ id: string; /** * Email address */ email: string; /** * Whether the email address is verified */ is_verified: boolean; }>; } | { /** * Commit author name */ name: string | null; /** * Commit author email */ email: string; } | { [key: string]: unknown; }; /** * Releases that contain the commit */ releases: Array<{ /** * Version of the release */ version: string; /** * Short version of the release */ shortVersion: string; /** * Commit ref of the release */ ref: string | null; /** * URL of the release */ url: string | null; /** * When the release was released (ISO 8601) */ dateReleased: string | null; /** * When the release was created (ISO 8601) */ dateCreated: string; }>; } | null; }; /** * When the activity happened (ISO 8601) */ dateCreated: string; /** * Where the action came from, such as web, api or mcp: */ source?: string | null; } | { /** * ID of the activity, or 0 for a first-seen item built from the issue */ id: string; /** * ID to pass to the notes endpoints for a comment, otherwise null */ commentId: string | null; /** * User who acted, or null for Sentry, an integration or a Sentry App */ user: { /** * SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access */ identities?: Array<{ /** * SSO identity ID */ id: string; /** * User's identifier at the auth provider */ name: string; /** * Organization the auth provider belongs to */ organization: { /** * Organization slug */ slug: string; /** * Organization name */ name: string; }; /** * Auth provider of the identity */ provider: { /** * Auth provider key, such as google or saml2 */ id: string; /** * Display name of the auth provider */ name: string; }; /** * When the identity was last verified by signing in through the auth provider */ dateVerified: string; /** * When the identity was last synced from the auth provider */ dateSynced: string; }>; /** * User avatar */ avatar?: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Two-factor authenticators of the user, without backup methods such as recovery codes */ authenticators?: Array<{ /** * Authenticator ID */ id: string; /** * Authenticator type, such as totp, sms, u2f or recovery */ type: string; /** * Display name of the authenticator type */ name: string; /** * When the authenticator was added */ dateCreated: string; /** * When the authenticator was last used, or null */ dateUsed: string | null; }>; /** * Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization */ canReset2fa?: boolean; /** * User ID */ id: string; /** * Display name: the user's name, or their email or username if no name is set */ name: string; /** * Username */ username: string; /** * Primary email address */ email: string; /** * Gravatar URL for the primary email address */ avatarUrl: string; /** * Whether the account is active */ isActive: boolean; /** * Whether the account is suspended. Suspended users can't sign in */ isSuspended: boolean; /** * Whether the user has a password set */ hasPasswordAuth: boolean; /** * Whether the account is managed, which stops the user from changing their username, password and similar details */ isManaged: boolean; /** * When the account was created */ dateJoined: string; /** * When the user last signed in, or null */ lastLogin: string | null; /** * Whether the user has two-factor authentication enabled */ has2fa: boolean; /** * When the user was last active, or null */ lastActive: string | null; /** * Whether the user is a superuser */ isSuperuser: boolean; /** * Whether the user has staff status */ isStaff: boolean; /** * Deprecated. Always an empty object */ experiments: { [key: string]: string; }; /** * Email addresses of the user. Only included for the requesting user or superusers; empty otherwise */ emails: Array<{ /** * Email ID */ id: string; /** * Email address */ email: string; /** * Whether the email address is verified */ is_verified: boolean; }>; } | null; /** * Sentry App that acted, if one did */ sentry_app: { /** * ID of the Sentry App */ id: string; /** * Name of the Sentry App */ name: string; /** * Slug of the Sentry App */ slug: string; /** * Avatars of the Sentry App */ avatars: Array<{ /** * Avatar type: `default` or `upload` */ avatarType: string; /** * Unique identifier of the uploaded avatar file, or an empty string if none is set */ avatarUuid: string; /** * Absolute URL of the avatar image */ avatarUrl: string; /** * Whether this is the color logo (`true`) or the simple icon (`false`) */ color: boolean; /** * Kind of image: `logo` for the color logo or `icon` for the simple icon */ photoType: string; }>; } | null; /** * Type of the activity, which decides the shape of data */ type: 'set_resolved_in_pull_request'; /** * Details of the activity, which depend on type */ data: { /** * The pull request */ pullRequest?: { /** * Number or key of the pull request in the provider */ id: string; /** * Title of the pull request */ title: string | null; /** * Description of the pull request */ message: string | null; /** * When Sentry recorded the pull request (ISO 8601) */ dateCreated: string; /** * When the pull request was merged (ISO 8601). Null when it isn't merged */ mergedAt: string | null; /** * State of the pull request: merged, open, closed, draft or unknown. Null when not known */ status: 'merged' | 'open' | 'closed' | 'draft' | 'unknown' | null; /** * Repository of the pull request */ repository: { /** * URL of the repository */ url?: string | null; /** * Provider of the repository, with its id and name */ provider?: { [key: string]: string; }; /** * Status of the repository */ status?: 'active' | 'disabled' | 'pending_deletion' | 'deletion_in_progress'; /** * ID of the repository's integration. Null for repositories added without an integration */ integrationId?: string | null; /** * Identifier of the repository in the provider, such as owner/name */ externalSlug?: string | null; /** * ID of the repository in the provider */ externalId?: string | null; /** * Settings of the repository. Only set when expand includes settings. Null when it has none */ settings?: { /** * Whether AI code review is on for the repository */ enabledCodeReview: boolean; /** * Pull request events that start a code review: on_new_commit or on_ready_for_review */ codeReviewTriggers: Array; } | null; /** * ID of the repository */ id: string; /** * Name of the repository, such as owner/name */ name: string; /** * When the repository was added to Sentry (ISO 8601) */ dateCreated: string; }; /** * Author of the pull request, or an empty object when it has none */ author: { /** * SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access */ identities?: Array<{ /** * SSO identity ID */ id: string; /** * User's identifier at the auth provider */ name: string; /** * Organization the auth provider belongs to */ organization: { /** * Organization slug */ slug: string; /** * Organization name */ name: string; }; /** * Auth provider of the identity */ provider: { /** * Auth provider key, such as google or saml2 */ id: string; /** * Display name of the auth provider */ name: string; }; /** * When the identity was last verified by signing in through the auth provider */ dateVerified: string; /** * When the identity was last synced from the auth provider */ dateSynced: string; }>; /** * User avatar */ avatar?: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Two-factor authenticators of the user, without backup methods such as recovery codes */ authenticators?: Array<{ /** * Authenticator ID */ id: string; /** * Authenticator type, such as totp, sms, u2f or recovery */ type: string; /** * Display name of the authenticator type */ name: string; /** * When the authenticator was added */ dateCreated: string; /** * When the authenticator was last used, or null */ dateUsed: string | null; }>; /** * Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization */ canReset2fa?: boolean; /** * User ID */ id: string; /** * Display name: the user's name, or their email or username if no name is set */ name: string; /** * Username */ username: string; /** * Primary email address */ email: string; /** * Gravatar URL for the primary email address */ avatarUrl: string; /** * Whether the account is active */ isActive: boolean; /** * Whether the account is suspended. Suspended users can't sign in */ isSuspended: boolean; /** * Whether the user has a password set */ hasPasswordAuth: boolean; /** * Whether the account is managed, which stops the user from changing their username, password and similar details */ isManaged: boolean; /** * When the account was created */ dateJoined: string; /** * When the user last signed in, or null */ lastLogin: string | null; /** * Whether the user has two-factor authentication enabled */ has2fa: boolean; /** * When the user was last active, or null */ lastActive: string | null; /** * Whether the user is a superuser */ isSuperuser: boolean; /** * Whether the user has staff status */ isStaff: boolean; /** * Deprecated. Always an empty object */ experiments: { [key: string]: string; }; /** * Email addresses of the user. Only included for the requesting user or superusers; empty otherwise */ emails: Array<{ /** * Email ID */ id: string; /** * Email address */ email: string; /** * Whether the email address is verified */ is_verified: boolean; }>; } | { /** * Commit author name */ name: string | null; /** * Commit author email */ email: string; } | { [key: string]: unknown; }; /** * URL of the pull request in the provider, or null when the provider can't build one */ externalUrl: string | null; } | null; }; /** * When the activity happened (ISO 8601) */ dateCreated: string; /** * Where the action came from, such as web, api or mcp: */ source?: string | null; } | { /** * ID of the activity, or 0 for a first-seen item built from the issue */ id: string; /** * ID to pass to the notes endpoints for a comment, otherwise null */ commentId: string | null; /** * User who acted, or null for Sentry, an integration or a Sentry App */ user: { /** * SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access */ identities?: Array<{ /** * SSO identity ID */ id: string; /** * User's identifier at the auth provider */ name: string; /** * Organization the auth provider belongs to */ organization: { /** * Organization slug */ slug: string; /** * Organization name */ name: string; }; /** * Auth provider of the identity */ provider: { /** * Auth provider key, such as google or saml2 */ id: string; /** * Display name of the auth provider */ name: string; }; /** * When the identity was last verified by signing in through the auth provider */ dateVerified: string; /** * When the identity was last synced from the auth provider */ dateSynced: string; }>; /** * User avatar */ avatar?: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Two-factor authenticators of the user, without backup methods such as recovery codes */ authenticators?: Array<{ /** * Authenticator ID */ id: string; /** * Authenticator type, such as totp, sms, u2f or recovery */ type: string; /** * Display name of the authenticator type */ name: string; /** * When the authenticator was added */ dateCreated: string; /** * When the authenticator was last used, or null */ dateUsed: string | null; }>; /** * Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization */ canReset2fa?: boolean; /** * User ID */ id: string; /** * Display name: the user's name, or their email or username if no name is set */ name: string; /** * Username */ username: string; /** * Primary email address */ email: string; /** * Gravatar URL for the primary email address */ avatarUrl: string; /** * Whether the account is active */ isActive: boolean; /** * Whether the account is suspended. Suspended users can't sign in */ isSuspended: boolean; /** * Whether the user has a password set */ hasPasswordAuth: boolean; /** * Whether the account is managed, which stops the user from changing their username, password and similar details */ isManaged: boolean; /** * When the account was created */ dateJoined: string; /** * When the user last signed in, or null */ lastLogin: string | null; /** * Whether the user has two-factor authentication enabled */ has2fa: boolean; /** * When the user was last active, or null */ lastActive: string | null; /** * Whether the user is a superuser */ isSuperuser: boolean; /** * Whether the user has staff status */ isStaff: boolean; /** * Deprecated. Always an empty object */ experiments: { [key: string]: string; }; /** * Email addresses of the user. Only included for the requesting user or superusers; empty otherwise */ emails: Array<{ /** * Email ID */ id: string; /** * Email address */ email: string; /** * Whether the email address is verified */ is_verified: boolean; }>; } | null; /** * Sentry App that acted, if one did */ sentry_app: { /** * ID of the Sentry App */ id: string; /** * Name of the Sentry App */ name: string; /** * Slug of the Sentry App */ slug: string; /** * Avatars of the Sentry App */ avatars: Array<{ /** * Avatar type: `default` or `upload` */ avatarType: string; /** * Unique identifier of the uploaded avatar file, or an empty string if none is set */ avatarUuid: string; /** * Absolute URL of the avatar image */ avatarUrl: string; /** * Whether this is the color logo (`true`) or the simple icon (`false`) */ color: boolean; /** * Kind of image: `logo` for the color logo or `icon` for the simple icon */ photoType: string; }>; } | null; /** * Type of the activity, which decides the shape of data */ type: 'set_resolved_in_release'; /** * Details of the activity, which depend on type */ data: { /** * Version of the release */ version?: string | null; /** * Latest release when the issue was resolved, for semver releases */ current_release_version?: string | null; /** * The commit */ commit?: { /** * Commit SHA */ id: string; /** * Commit message */ message: string | null; /** * When the commit was made (ISO 8601) */ dateCreated: string; /** * Pull request the commit belongs to */ pullRequest: { /** * Number or key of the pull request in the provider */ id: string; /** * Title of the pull request */ title: string | null; /** * Description of the pull request */ message: string | null; /** * When Sentry recorded the pull request (ISO 8601) */ dateCreated: string; /** * When the pull request was merged (ISO 8601). Null when it isn't merged */ mergedAt: string | null; /** * State of the pull request: merged, open, closed, draft or unknown. Null when not known */ status: 'merged' | 'open' | 'closed' | 'draft' | 'unknown' | null; /** * Repository of the pull request */ repository: { /** * URL of the repository */ url?: string | null; /** * Provider of the repository, with its id and name */ provider?: { [key: string]: string; }; /** * Status of the repository */ status?: 'active' | 'disabled' | 'pending_deletion' | 'deletion_in_progress'; /** * ID of the repository's integration. Null for repositories added without an integration */ integrationId?: string | null; /** * Identifier of the repository in the provider, such as owner/name */ externalSlug?: string | null; /** * ID of the repository in the provider */ externalId?: string | null; /** * Settings of the repository. Only set when expand includes settings. Null when it has none */ settings?: { /** * Whether AI code review is on for the repository */ enabledCodeReview: boolean; /** * Pull request events that start a code review: on_new_commit or on_ready_for_review */ codeReviewTriggers: Array; } | null; /** * ID of the repository */ id: string; /** * Name of the repository, such as owner/name */ name: string; /** * When the repository was added to Sentry (ISO 8601) */ dateCreated: string; }; /** * Author of the pull request, or an empty object when it has none */ author: { /** * SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access */ identities?: Array<{ /** * SSO identity ID */ id: string; /** * User's identifier at the auth provider */ name: string; /** * Organization the auth provider belongs to */ organization: { /** * Organization slug */ slug: string; /** * Organization name */ name: string; }; /** * Auth provider of the identity */ provider: { /** * Auth provider key, such as google or saml2 */ id: string; /** * Display name of the auth provider */ name: string; }; /** * When the identity was last verified by signing in through the auth provider */ dateVerified: string; /** * When the identity was last synced from the auth provider */ dateSynced: string; }>; /** * User avatar */ avatar?: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Two-factor authenticators of the user, without backup methods such as recovery codes */ authenticators?: Array<{ /** * Authenticator ID */ id: string; /** * Authenticator type, such as totp, sms, u2f or recovery */ type: string; /** * Display name of the authenticator type */ name: string; /** * When the authenticator was added */ dateCreated: string; /** * When the authenticator was last used, or null */ dateUsed: string | null; }>; /** * Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization */ canReset2fa?: boolean; /** * User ID */ id: string; /** * Display name: the user's name, or their email or username if no name is set */ name: string; /** * Username */ username: string; /** * Primary email address */ email: string; /** * Gravatar URL for the primary email address */ avatarUrl: string; /** * Whether the account is active */ isActive: boolean; /** * Whether the account is suspended. Suspended users can't sign in */ isSuspended: boolean; /** * Whether the user has a password set */ hasPasswordAuth: boolean; /** * Whether the account is managed, which stops the user from changing their username, password and similar details */ isManaged: boolean; /** * When the account was created */ dateJoined: string; /** * When the user last signed in, or null */ lastLogin: string | null; /** * Whether the user has two-factor authentication enabled */ has2fa: boolean; /** * When the user was last active, or null */ lastActive: string | null; /** * Whether the user is a superuser */ isSuperuser: boolean; /** * Whether the user has staff status */ isStaff: boolean; /** * Deprecated. Always an empty object */ experiments: { [key: string]: string; }; /** * Email addresses of the user. Only included for the requesting user or superusers; empty otherwise */ emails: Array<{ /** * Email ID */ id: string; /** * Email address */ email: string; /** * Whether the email address is verified */ is_verified: boolean; }>; } | { /** * Commit author name */ name: string | null; /** * Commit author email */ email: string; } | { [key: string]: unknown; }; /** * URL of the pull request in the provider, or null when the provider can't build one */ externalUrl: string | null; } | null; /** * How the commit was found as a suspect commit: via commit in release or via SCM integration. Empty for other commits */ suspectCommitType: string; /** * Repository the commit belongs to */ repository?: { /** * URL of the repository */ url?: string | null; /** * Provider of the repository, with its id and name */ provider?: { [key: string]: string; }; /** * Status of the repository */ status?: 'active' | 'disabled' | 'pending_deletion' | 'deletion_in_progress'; /** * ID of the repository's integration. Null for repositories added without an integration */ integrationId?: string | null; /** * Identifier of the repository in the provider, such as owner/name */ externalSlug?: string | null; /** * ID of the repository in the provider */ externalId?: string | null; /** * Settings of the repository. Only set when expand includes settings. Null when it has none */ settings?: { /** * Whether AI code review is on for the repository */ enabledCodeReview: boolean; /** * Pull request events that start a code review: on_new_commit or on_ready_for_review */ codeReviewTriggers: Array; } | null; /** * ID of the repository */ id: string; /** * Name of the repository, such as owner/name */ name: string; /** * When the repository was added to Sentry (ISO 8601) */ dateCreated: string; }; /** * Author of the commit: a Sentry user when the email matches one, otherwise the name and email from the commit */ author?: { /** * SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access */ identities?: Array<{ /** * SSO identity ID */ id: string; /** * User's identifier at the auth provider */ name: string; /** * Organization the auth provider belongs to */ organization: { /** * Organization slug */ slug: string; /** * Organization name */ name: string; }; /** * Auth provider of the identity */ provider: { /** * Auth provider key, such as google or saml2 */ id: string; /** * Display name of the auth provider */ name: string; }; /** * When the identity was last verified by signing in through the auth provider */ dateVerified: string; /** * When the identity was last synced from the auth provider */ dateSynced: string; }>; /** * User avatar */ avatar?: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Two-factor authenticators of the user, without backup methods such as recovery codes */ authenticators?: Array<{ /** * Authenticator ID */ id: string; /** * Authenticator type, such as totp, sms, u2f or recovery */ type: string; /** * Display name of the authenticator type */ name: string; /** * When the authenticator was added */ dateCreated: string; /** * When the authenticator was last used, or null */ dateUsed: string | null; }>; /** * Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization */ canReset2fa?: boolean; /** * User ID */ id: string; /** * Display name: the user's name, or their email or username if no name is set */ name: string; /** * Username */ username: string; /** * Primary email address */ email: string; /** * Gravatar URL for the primary email address */ avatarUrl: string; /** * Whether the account is active */ isActive: boolean; /** * Whether the account is suspended. Suspended users can't sign in */ isSuspended: boolean; /** * Whether the user has a password set */ hasPasswordAuth: boolean; /** * Whether the account is managed, which stops the user from changing their username, password and similar details */ isManaged: boolean; /** * When the account was created */ dateJoined: string; /** * When the user last signed in, or null */ lastLogin: string | null; /** * Whether the user has two-factor authentication enabled */ has2fa: boolean; /** * When the user was last active, or null */ lastActive: string | null; /** * Whether the user is a superuser */ isSuperuser: boolean; /** * Whether the user has staff status */ isStaff: boolean; /** * Deprecated. Always an empty object */ experiments: { [key: string]: string; }; /** * Email addresses of the user. Only included for the requesting user or superusers; empty otherwise */ emails: Array<{ /** * Email ID */ id: string; /** * Email address */ email: string; /** * Whether the email address is verified */ is_verified: boolean; }>; } | { /** * Commit author name */ name: string | null; /** * Commit author email */ email: string; } | { [key: string]: unknown; }; /** * Releases that contain the commit */ releases: Array<{ /** * Version of the release */ version: string; /** * Short version of the release */ shortVersion: string; /** * Commit ref of the release */ ref: string | null; /** * URL of the release */ url: string | null; /** * When the release was released (ISO 8601) */ dateReleased: string | null; /** * When the release was created (ISO 8601) */ dateCreated: string; }>; } | null; /** * ID of the integration that changed the status, when an integration did */ integration_id?: number; /** * Name of the integration provider, such as Jira */ provider?: string; /** * Key of the integration provider, such as jira */ provider_key?: string; /** * Whether the issue resolves in the next release */ inNextRelease?: boolean; }; /** * When the activity happened (ISO 8601) */ dateCreated: string; /** * Where the action came from, such as web, api or mcp: */ source?: string | null; } | { /** * ID of the activity, or 0 for a first-seen item built from the issue */ id: string; /** * ID to pass to the notes endpoints for a comment, otherwise null */ commentId: string | null; /** * User who acted, or null for Sentry, an integration or a Sentry App */ user: { /** * SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access */ identities?: Array<{ /** * SSO identity ID */ id: string; /** * User's identifier at the auth provider */ name: string; /** * Organization the auth provider belongs to */ organization: { /** * Organization slug */ slug: string; /** * Organization name */ name: string; }; /** * Auth provider of the identity */ provider: { /** * Auth provider key, such as google or saml2 */ id: string; /** * Display name of the auth provider */ name: string; }; /** * When the identity was last verified by signing in through the auth provider */ dateVerified: string; /** * When the identity was last synced from the auth provider */ dateSynced: string; }>; /** * User avatar */ avatar?: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Two-factor authenticators of the user, without backup methods such as recovery codes */ authenticators?: Array<{ /** * Authenticator ID */ id: string; /** * Authenticator type, such as totp, sms, u2f or recovery */ type: string; /** * Display name of the authenticator type */ name: string; /** * When the authenticator was added */ dateCreated: string; /** * When the authenticator was last used, or null */ dateUsed: string | null; }>; /** * Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization */ canReset2fa?: boolean; /** * User ID */ id: string; /** * Display name: the user's name, or their email or username if no name is set */ name: string; /** * Username */ username: string; /** * Primary email address */ email: string; /** * Gravatar URL for the primary email address */ avatarUrl: string; /** * Whether the account is active */ isActive: boolean; /** * Whether the account is suspended. Suspended users can't sign in */ isSuspended: boolean; /** * Whether the user has a password set */ hasPasswordAuth: boolean; /** * Whether the account is managed, which stops the user from changing their username, password and similar details */ isManaged: boolean; /** * When the account was created */ dateJoined: string; /** * When the user last signed in, or null */ lastLogin: string | null; /** * Whether the user has two-factor authentication enabled */ has2fa: boolean; /** * When the user was last active, or null */ lastActive: string | null; /** * Whether the user is a superuser */ isSuperuser: boolean; /** * Whether the user has staff status */ isStaff: boolean; /** * Deprecated. Always an empty object */ experiments: { [key: string]: string; }; /** * Email addresses of the user. Only included for the requesting user or superusers; empty otherwise */ emails: Array<{ /** * Email ID */ id: string; /** * Email address */ email: string; /** * Whether the email address is verified */ is_verified: boolean; }>; } | null; /** * Sentry App that acted, if one did */ sentry_app: { /** * ID of the Sentry App */ id: string; /** * Name of the Sentry App */ name: string; /** * Slug of the Sentry App */ slug: string; /** * Avatars of the Sentry App */ avatars: Array<{ /** * Avatar type: `default` or `upload` */ avatarType: string; /** * Unique identifier of the uploaded avatar file, or an empty string if none is set */ avatarUuid: string; /** * Absolute URL of the avatar image */ avatarUrl: string; /** * Whether this is the color logo (`true`) or the simple icon (`false`) */ color: boolean; /** * Kind of image: `logo` for the color logo or `icon` for the simple icon */ photoType: string; }>; } | null; /** * Type of the activity, which decides the shape of data */ type: 'set_unresolved'; /** * Details of the activity, which depend on type */ data: { /** * ID of the event that caused the change */ event_id?: string | null; /** * ID of the integration that changed the status, when an integration did */ integration_id?: number; /** * Name of the integration provider, such as Jira */ provider?: string; /** * Key of the integration provider, such as jira */ provider_key?: string; /** * Forecast of the issue's daily events when it escalated */ forecast?: number; }; /** * When the activity happened (ISO 8601) */ dateCreated: string; /** * Where the action came from, such as web, api or mcp: */ source?: string | null; } | { /** * ID of the activity, or 0 for a first-seen item built from the issue */ id: string; /** * ID to pass to the notes endpoints for a comment, otherwise null */ commentId: string | null; /** * User who acted, or null for Sentry, an integration or a Sentry App */ user: { /** * SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access */ identities?: Array<{ /** * SSO identity ID */ id: string; /** * User's identifier at the auth provider */ name: string; /** * Organization the auth provider belongs to */ organization: { /** * Organization slug */ slug: string; /** * Organization name */ name: string; }; /** * Auth provider of the identity */ provider: { /** * Auth provider key, such as google or saml2 */ id: string; /** * Display name of the auth provider */ name: string; }; /** * When the identity was last verified by signing in through the auth provider */ dateVerified: string; /** * When the identity was last synced from the auth provider */ dateSynced: string; }>; /** * User avatar */ avatar?: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Two-factor authenticators of the user, without backup methods such as recovery codes */ authenticators?: Array<{ /** * Authenticator ID */ id: string; /** * Authenticator type, such as totp, sms, u2f or recovery */ type: string; /** * Display name of the authenticator type */ name: string; /** * When the authenticator was added */ dateCreated: string; /** * When the authenticator was last used, or null */ dateUsed: string | null; }>; /** * Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization */ canReset2fa?: boolean; /** * User ID */ id: string; /** * Display name: the user's name, or their email or username if no name is set */ name: string; /** * Username */ username: string; /** * Primary email address */ email: string; /** * Gravatar URL for the primary email address */ avatarUrl: string; /** * Whether the account is active */ isActive: boolean; /** * Whether the account is suspended. Suspended users can't sign in */ isSuspended: boolean; /** * Whether the user has a password set */ hasPasswordAuth: boolean; /** * Whether the account is managed, which stops the user from changing their username, password and similar details */ isManaged: boolean; /** * When the account was created */ dateJoined: string; /** * When the user last signed in, or null */ lastLogin: string | null; /** * Whether the user has two-factor authentication enabled */ has2fa: boolean; /** * When the user was last active, or null */ lastActive: string | null; /** * Whether the user is a superuser */ isSuperuser: boolean; /** * Whether the user has staff status */ isStaff: boolean; /** * Deprecated. Always an empty object */ experiments: { [key: string]: string; }; /** * Email addresses of the user. Only included for the requesting user or superusers; empty otherwise */ emails: Array<{ /** * Email ID */ id: string; /** * Email address */ email: string; /** * Whether the email address is verified */ is_verified: boolean; }>; } | null; /** * Sentry App that acted, if one did */ sentry_app: { /** * ID of the Sentry App */ id: string; /** * Name of the Sentry App */ name: string; /** * Slug of the Sentry App */ slug: string; /** * Avatars of the Sentry App */ avatars: Array<{ /** * Avatar type: `default` or `upload` */ avatarType: string; /** * Unique identifier of the uploaded avatar file, or an empty string if none is set */ avatarUuid: string; /** * Absolute URL of the avatar image */ avatarUrl: string; /** * Whether this is the color logo (`true`) or the simple icon (`false`) */ color: boolean; /** * Kind of image: `logo` for the color logo or `icon` for the simple icon */ photoType: string; }>; } | null; /** * Type of the activity, which decides the shape of data */ type: 'trigger_autofix'; /** * Details of the activity, which depend on type */ data: { /** * What started the Autofix run, such as api.web or slack */ referrer?: string | null; }; /** * When the activity happened (ISO 8601) */ dateCreated: string; /** * Where the action came from, such as web, api or mcp: */ source?: string | null; } | { /** * ID of the activity, or 0 for a first-seen item built from the issue */ id: string; /** * ID to pass to the notes endpoints for a comment, otherwise null */ commentId: string | null; /** * User who acted, or null for Sentry, an integration or a Sentry App */ user: { /** * SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access */ identities?: Array<{ /** * SSO identity ID */ id: string; /** * User's identifier at the auth provider */ name: string; /** * Organization the auth provider belongs to */ organization: { /** * Organization slug */ slug: string; /** * Organization name */ name: string; }; /** * Auth provider of the identity */ provider: { /** * Auth provider key, such as google or saml2 */ id: string; /** * Display name of the auth provider */ name: string; }; /** * When the identity was last verified by signing in through the auth provider */ dateVerified: string; /** * When the identity was last synced from the auth provider */ dateSynced: string; }>; /** * User avatar */ avatar?: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Two-factor authenticators of the user, without backup methods such as recovery codes */ authenticators?: Array<{ /** * Authenticator ID */ id: string; /** * Authenticator type, such as totp, sms, u2f or recovery */ type: string; /** * Display name of the authenticator type */ name: string; /** * When the authenticator was added */ dateCreated: string; /** * When the authenticator was last used, or null */ dateUsed: string | null; }>; /** * Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization */ canReset2fa?: boolean; /** * User ID */ id: string; /** * Display name: the user's name, or their email or username if no name is set */ name: string; /** * Username */ username: string; /** * Primary email address */ email: string; /** * Gravatar URL for the primary email address */ avatarUrl: string; /** * Whether the account is active */ isActive: boolean; /** * Whether the account is suspended. Suspended users can't sign in */ isSuspended: boolean; /** * Whether the user has a password set */ hasPasswordAuth: boolean; /** * Whether the account is managed, which stops the user from changing their username, password and similar details */ isManaged: boolean; /** * When the account was created */ dateJoined: string; /** * When the user last signed in, or null */ lastLogin: string | null; /** * Whether the user has two-factor authentication enabled */ has2fa: boolean; /** * When the user was last active, or null */ lastActive: string | null; /** * Whether the user is a superuser */ isSuperuser: boolean; /** * Whether the user has staff status */ isStaff: boolean; /** * Deprecated. Always an empty object */ experiments: { [key: string]: string; }; /** * Email addresses of the user. Only included for the requesting user or superusers; empty otherwise */ emails: Array<{ /** * Email ID */ id: string; /** * Email address */ email: string; /** * Whether the email address is verified */ is_verified: boolean; }>; } | null; /** * Sentry App that acted, if one did */ sentry_app: { /** * ID of the Sentry App */ id: string; /** * Name of the Sentry App */ name: string; /** * Slug of the Sentry App */ slug: string; /** * Avatars of the Sentry App */ avatars: Array<{ /** * Avatar type: `default` or `upload` */ avatarType: string; /** * Unique identifier of the uploaded avatar file, or an empty string if none is set */ avatarUuid: string; /** * Absolute URL of the avatar image */ avatarUrl: string; /** * Whether this is the color logo (`true`) or the simple icon (`false`) */ color: boolean; /** * Kind of image: `logo` for the color logo or `icon` for the simple icon */ photoType: string; }>; } | null; /** * Type of the activity, which decides the shape of data */ type: 'unassigned'; /** * Details of the activity, which depend on type */ data: { [key: string]: unknown; }; /** * When the activity happened (ISO 8601) */ dateCreated: string; /** * Where the action came from, such as web, api or mcp: */ source?: string | null; } | { /** * ID of the activity, or 0 for a first-seen item built from the issue */ id: string; /** * ID to pass to the notes endpoints for a comment, otherwise null */ commentId: string | null; /** * User who acted, or null for Sentry, an integration or a Sentry App */ user: { /** * SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access */ identities?: Array<{ /** * SSO identity ID */ id: string; /** * User's identifier at the auth provider */ name: string; /** * Organization the auth provider belongs to */ organization: { /** * Organization slug */ slug: string; /** * Organization name */ name: string; }; /** * Auth provider of the identity */ provider: { /** * Auth provider key, such as google or saml2 */ id: string; /** * Display name of the auth provider */ name: string; }; /** * When the identity was last verified by signing in through the auth provider */ dateVerified: string; /** * When the identity was last synced from the auth provider */ dateSynced: string; }>; /** * User avatar */ avatar?: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Two-factor authenticators of the user, without backup methods such as recovery codes */ authenticators?: Array<{ /** * Authenticator ID */ id: string; /** * Authenticator type, such as totp, sms, u2f or recovery */ type: string; /** * Display name of the authenticator type */ name: string; /** * When the authenticator was added */ dateCreated: string; /** * When the authenticator was last used, or null */ dateUsed: string | null; }>; /** * Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization */ canReset2fa?: boolean; /** * User ID */ id: string; /** * Display name: the user's name, or their email or username if no name is set */ name: string; /** * Username */ username: string; /** * Primary email address */ email: string; /** * Gravatar URL for the primary email address */ avatarUrl: string; /** * Whether the account is active */ isActive: boolean; /** * Whether the account is suspended. Suspended users can't sign in */ isSuspended: boolean; /** * Whether the user has a password set */ hasPasswordAuth: boolean; /** * Whether the account is managed, which stops the user from changing their username, password and similar details */ isManaged: boolean; /** * When the account was created */ dateJoined: string; /** * When the user last signed in, or null */ lastLogin: string | null; /** * Whether the user has two-factor authentication enabled */ has2fa: boolean; /** * When the user was last active, or null */ lastActive: string | null; /** * Whether the user is a superuser */ isSuperuser: boolean; /** * Whether the user has staff status */ isStaff: boolean; /** * Deprecated. Always an empty object */ experiments: { [key: string]: string; }; /** * Email addresses of the user. Only included for the requesting user or superusers; empty otherwise */ emails: Array<{ /** * Email ID */ id: string; /** * Email address */ email: string; /** * Whether the email address is verified */ is_verified: boolean; }>; } | null; /** * Sentry App that acted, if one did */ sentry_app: { /** * ID of the Sentry App */ id: string; /** * Name of the Sentry App */ name: string; /** * Slug of the Sentry App */ slug: string; /** * Avatars of the Sentry App */ avatars: Array<{ /** * Avatar type: `default` or `upload` */ avatarType: string; /** * Unique identifier of the uploaded avatar file, or an empty string if none is set */ avatarUuid: string; /** * Absolute URL of the avatar image */ avatarUrl: string; /** * Whether this is the color logo (`true`) or the simple icon (`false`) */ color: boolean; /** * Kind of image: `logo` for the color logo or `icon` for the simple icon */ photoType: string; }>; } | null; /** * Type of the activity, which decides the shape of data */ type: 'unlink_external_issue'; /** * Details of the activity, which depend on type */ data: { /** * Integration provider, such as Jira or GitHub */ provider: string; /** * Key of the external issue, such as PROJ-123 */ external_issue_key: string; }; /** * When the activity happened (ISO 8601) */ dateCreated: string; /** * Where the action came from, such as web, api or mcp: */ source?: string | null; } | { /** * ID of the activity, or 0 for a first-seen item built from the issue */ id: string; /** * ID to pass to the notes endpoints for a comment, otherwise null */ commentId: string | null; /** * User who acted, or null for Sentry, an integration or a Sentry App */ user: { /** * SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access */ identities?: Array<{ /** * SSO identity ID */ id: string; /** * User's identifier at the auth provider */ name: string; /** * Organization the auth provider belongs to */ organization: { /** * Organization slug */ slug: string; /** * Organization name */ name: string; }; /** * Auth provider of the identity */ provider: { /** * Auth provider key, such as google or saml2 */ id: string; /** * Display name of the auth provider */ name: string; }; /** * When the identity was last verified by signing in through the auth provider */ dateVerified: string; /** * When the identity was last synced from the auth provider */ dateSynced: string; }>; /** * User avatar */ avatar?: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Two-factor authenticators of the user, without backup methods such as recovery codes */ authenticators?: Array<{ /** * Authenticator ID */ id: string; /** * Authenticator type, such as totp, sms, u2f or recovery */ type: string; /** * Display name of the authenticator type */ name: string; /** * When the authenticator was added */ dateCreated: string; /** * When the authenticator was last used, or null */ dateUsed: string | null; }>; /** * Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization */ canReset2fa?: boolean; /** * User ID */ id: string; /** * Display name: the user's name, or their email or username if no name is set */ name: string; /** * Username */ username: string; /** * Primary email address */ email: string; /** * Gravatar URL for the primary email address */ avatarUrl: string; /** * Whether the account is active */ isActive: boolean; /** * Whether the account is suspended. Suspended users can't sign in */ isSuspended: boolean; /** * Whether the user has a password set */ hasPasswordAuth: boolean; /** * Whether the account is managed, which stops the user from changing their username, password and similar details */ isManaged: boolean; /** * When the account was created */ dateJoined: string; /** * When the user last signed in, or null */ lastLogin: string | null; /** * Whether the user has two-factor authentication enabled */ has2fa: boolean; /** * When the user was last active, or null */ lastActive: string | null; /** * Whether the user is a superuser */ isSuperuser: boolean; /** * Whether the user has staff status */ isStaff: boolean; /** * Deprecated. Always an empty object */ experiments: { [key: string]: string; }; /** * Email addresses of the user. Only included for the requesting user or superusers; empty otherwise */ emails: Array<{ /** * Email ID */ id: string; /** * Email address */ email: string; /** * Whether the email address is verified */ is_verified: boolean; }>; } | null; /** * Sentry App that acted, if one did */ sentry_app: { /** * ID of the Sentry App */ id: string; /** * Name of the Sentry App */ name: string; /** * Slug of the Sentry App */ slug: string; /** * Avatars of the Sentry App */ avatars: Array<{ /** * Avatar type: `default` or `upload` */ avatarType: string; /** * Unique identifier of the uploaded avatar file, or an empty string if none is set */ avatarUuid: string; /** * Absolute URL of the avatar image */ avatarUrl: string; /** * Whether this is the color logo (`true`) or the simple icon (`false`) */ color: boolean; /** * Kind of image: `logo` for the color logo or `icon` for the simple icon */ photoType: string; }>; } | null; /** * Type of the activity, which decides the shape of data */ type: 'unlink_platform_external_issue'; /** * Details of the activity, which depend on type */ data: { /** * Slug of the Sentry App that owns the external issue */ service_type: string; /** * Display name of the external issue */ display_name: string; /** * URL of the external issue */ web_url: string; }; /** * When the activity happened (ISO 8601) */ dateCreated: string; /** * Where the action came from, such as web, api or mcp: */ source?: string | null; } | { /** * ID of the activity, or 0 for a first-seen item built from the issue */ id: string; /** * ID to pass to the notes endpoints for a comment, otherwise null */ commentId: string | null; /** * User who acted, or null for Sentry, an integration or a Sentry App */ user: { /** * SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access */ identities?: Array<{ /** * SSO identity ID */ id: string; /** * User's identifier at the auth provider */ name: string; /** * Organization the auth provider belongs to */ organization: { /** * Organization slug */ slug: string; /** * Organization name */ name: string; }; /** * Auth provider of the identity */ provider: { /** * Auth provider key, such as google or saml2 */ id: string; /** * Display name of the auth provider */ name: string; }; /** * When the identity was last verified by signing in through the auth provider */ dateVerified: string; /** * When the identity was last synced from the auth provider */ dateSynced: string; }>; /** * User avatar */ avatar?: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Two-factor authenticators of the user, without backup methods such as recovery codes */ authenticators?: Array<{ /** * Authenticator ID */ id: string; /** * Authenticator type, such as totp, sms, u2f or recovery */ type: string; /** * Display name of the authenticator type */ name: string; /** * When the authenticator was added */ dateCreated: string; /** * When the authenticator was last used, or null */ dateUsed: string | null; }>; /** * Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization */ canReset2fa?: boolean; /** * User ID */ id: string; /** * Display name: the user's name, or their email or username if no name is set */ name: string; /** * Username */ username: string; /** * Primary email address */ email: string; /** * Gravatar URL for the primary email address */ avatarUrl: string; /** * Whether the account is active */ isActive: boolean; /** * Whether the account is suspended. Suspended users can't sign in */ isSuspended: boolean; /** * Whether the user has a password set */ hasPasswordAuth: boolean; /** * Whether the account is managed, which stops the user from changing their username, password and similar details */ isManaged: boolean; /** * When the account was created */ dateJoined: string; /** * When the user last signed in, or null */ lastLogin: string | null; /** * Whether the user has two-factor authentication enabled */ has2fa: boolean; /** * When the user was last active, or null */ lastActive: string | null; /** * Whether the user is a superuser */ isSuperuser: boolean; /** * Whether the user has staff status */ isStaff: boolean; /** * Deprecated. Always an empty object */ experiments: { [key: string]: string; }; /** * Email addresses of the user. Only included for the requesting user or superusers; empty otherwise */ emails: Array<{ /** * Email ID */ id: string; /** * Email address */ email: string; /** * Whether the email address is verified */ is_verified: boolean; }>; } | null; /** * Sentry App that acted, if one did */ sentry_app: { /** * ID of the Sentry App */ id: string; /** * Name of the Sentry App */ name: string; /** * Slug of the Sentry App */ slug: string; /** * Avatars of the Sentry App */ avatars: Array<{ /** * Avatar type: `default` or `upload` */ avatarType: string; /** * Unique identifier of the uploaded avatar file, or an empty string if none is set */ avatarUuid: string; /** * Absolute URL of the avatar image */ avatarUrl: string; /** * Whether this is the color logo (`true`) or the simple icon (`false`) */ color: boolean; /** * Kind of image: `logo` for the color logo or `icon` for the simple icon */ photoType: string; }>; } | null; /** * Type of the activity, which decides the shape of data */ type: 'unmerge_destination'; /** * Details of the activity, which depend on type */ data: { /** * Fingerprints */ fingerprints: Array; /** * Issue the events moved from */ source?: { /** * Whether the issue includes unhandled events */ isUnhandled?: boolean; /** * Total number of events in the issue */ count?: string; /** * Number of users affected by the issue */ userCount?: number; /** * When the issue was first seen (ISO 8601) */ firstSeen?: string | null; /** * When the issue was last seen (ISO 8601) */ lastSeen?: string | null; /** * Additional data derived for the issue. Only included when requested with expand */ derivedData?: { /** * Action that blocks progress on the issue: none, approve_root_cause, approve_plan, approve_code_changes or merge_pr */ blocker: string; /** * How far the issue is toward resolution: identified, assigned, diagnosed, fix_proposed or fix_applied */ progress: string; /** * Status of the issue from its action log: open or closed */ status: string; /** * Number of times the issue was viewed */ viewCount: number; /** * Whether an open pull request is linked to the issue */ hasOpenFixPr: boolean; /** * Whether the issue has an assignee */ isAssigned: boolean; /** * Whether a root cause was found for the issue */ hasRootCause: boolean; /** * Furthest Autofix step completed: none, root_cause, solution, code_changes, pr_created or pr_iteration */ lastCompletedAutofixStep: string; /** * When the issue's progress last advanced (ISO 8601) */ lastProgressedAt: string | null; /** * The issue's impact assessment, or null when no assessment is available */ impact?: { /** * Estimated per-occurrence impact on the end user's capability from 0 to 100 */ score: number | null; /** * Impact level derived from the assessment score */ level: 'super_low' | 'low' | 'moderate' | 'high' | 'super_high' | null; /** * Human-readable description of the capability affected by the issue */ description: string; /** * Evidence-backed claims supporting the impact assessment */ citations: Array<{ /** * Stable identifier for the evidence supporting this claim */ reference: string; /** * Concise explanation of what the cited evidence establishes */ claim: string; /** * The category of evidence cited, such as an event, trace, replay, or log */ source: string; }>; /** * ID of the issue event used to generate the impact assessment */ sourceEventId: string; } | null; }; /** * ID of the issue */ id: string; /** * ID used in the issue's public share URL. Null when the issue isn't shared */ shareId: string | null; /** * Short ID of the issue, such as PROJECT-1A */ shortId: string | null; /** * Title of the issue */ title: string; /** * Function or module where the issue occurs */ culprit: string | null; /** * URL of the issue in Sentry */ permalink: string; /** * Logger of the issue's events */ logger: string | null; /** * Severity level of the issue */ level: 'sample' | 'debug' | 'info' | 'warning' | 'error' | 'fatal' | 'unknown'; /** * Issue status */ status: 'resolved' | 'ignored' | 'pending_deletion' | 'pending_merge' | 'reprocessing' | 'unresolved'; /** * Details of the issue's status, such as when an ignore expires or which release resolves it */ statusDetails: { /** * Number of additional events after which the issue stops being ignored */ ignoreCount?: number | null; /** * When the issue stops being ignored (ISO 8601) */ ignoreUntil?: string | null; /** * Number of additional affected users after which the issue stops being ignored */ ignoreUserCount?: number | null; /** * Time window in minutes for ignoreUserCount */ ignoreUserWindow?: number | null; /** * Time window in minutes for ignoreCount */ ignoreWindow?: number | null; /** * User who ignored or resolved the issue */ actor?: { /** * SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access */ identities?: Array<{ /** * SSO identity ID */ id: string; /** * User's identifier at the auth provider */ name: string; /** * Organization the auth provider belongs to */ organization: { /** * Organization slug */ slug: string; /** * Organization name */ name: string; }; /** * Auth provider of the identity */ provider: { /** * Auth provider key, such as google or saml2 */ id: string; /** * Display name of the auth provider */ name: string; }; /** * When the identity was last verified by signing in through the auth provider */ dateVerified: string; /** * When the identity was last synced from the auth provider */ dateSynced: string; }>; /** * User avatar */ avatar?: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Two-factor authenticators of the user, without backup methods such as recovery codes */ authenticators?: Array<{ /** * Authenticator ID */ id: string; /** * Authenticator type, such as totp, sms, u2f or recovery */ type: string; /** * Display name of the authenticator type */ name: string; /** * When the authenticator was added */ dateCreated: string; /** * When the authenticator was last used, or null */ dateUsed: string | null; }>; /** * Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization */ canReset2fa?: boolean; /** * User ID */ id: string; /** * Display name: the user's name, or their email or username if no name is set */ name: string; /** * Username */ username: string; /** * Primary email address */ email: string; /** * Gravatar URL for the primary email address */ avatarUrl: string; /** * Whether the account is active */ isActive: boolean; /** * Whether the account is suspended. Suspended users can't sign in */ isSuspended: boolean; /** * Whether the user has a password set */ hasPasswordAuth: boolean; /** * Whether the account is managed, which stops the user from changing their username, password and similar details */ isManaged: boolean; /** * When the account was created */ dateJoined: string; /** * When the user last signed in, or null */ lastLogin: string | null; /** * Whether the user has two-factor authentication enabled */ has2fa: boolean; /** * When the user was last active, or null */ lastActive: string | null; /** * Whether the user is a superuser */ isSuperuser: boolean; /** * Whether the user has staff status */ isStaff: boolean; /** * Deprecated. Always an empty object */ experiments: { [key: string]: string; }; /** * Email addresses of the user. Only included for the requesting user or superusers; empty otherwise */ emails: Array<{ /** * Email ID */ id: string; /** * Email address */ email: string; /** * Whether the email address is verified */ is_verified: boolean; }>; } | null; /** * Whether the issue is resolved in the next release */ inNextRelease?: boolean; /** * Version of the release the issue is resolved in */ inRelease?: string; /** * Commit the issue is resolved in */ inCommit?: string; /** * Number of events still waiting to be reprocessed */ pendingEvents?: number; /** * Reprocessing progress details */ info?: { /** * When reprocessing started (ISO 8601) */ dateCreated: string; /** * Number of events in the issue when reprocessing started */ syncCount: number; /** * Number of events to reprocess, at most the requested maximum */ totalEvents: number; } | null; }; /** * Substatus of the issue, such as ongoing, regressed or escalating */ substatus: 'archived_until_escalating' | 'archived_until_condition_met' | 'archived_forever' | 'escalating' | 'ongoing' | 'regressed' | 'new' | null; /** * Whether the issue is shared publicly */ isPublic: boolean; /** * Platform of the issue's events */ platform: string | null; /** * Priority of the issue: high, medium or low */ priority: 'low' | 'medium' | 'high' | null; /** * When the priority was last set manually, which stops automatic priority updates (ISO 8601) */ priorityLockedAt: string | null; /** * Seer's score for how likely the issue is to be fixable */ seerFixabilityScore: number | null; /** * When Seer Autofix was last triggered for the issue (ISO 8601) */ seerAutofixLastTriggered: string | null; /** * When the Seer explorer agent last completed an Autofix step for the issue (ISO 8601) */ seerExplorerAutofixLastTriggered: string | null; /** * Project the issue belongs to */ project: { /** * ID of the project */ id: string; /** * Name of the project */ name: string; /** * Slug of the project */ slug: string; /** * Platform of the project */ platform: string | null; }; /** * Event type of the issue, such as error or default */ type: 'default' | 'error' | 'csp' | 'nel' | 'hpkp' | 'expectct' | 'expectstaple' | 'transaction' | 'generic' | 'feedback'; /** * Issue type, such as error or performance_n_plus_one_db_queries */ issueType: string; /** * Issue category, such as error or performance */ issueCategory: string; /** * Issue metadata */ metadata: { /** * Title of default and issue platform events */ title?: string; /** * Exception value, or the subtitle of an issue */ value?: string; /** * Exception type of error events */ type?: string; /** * Whether the SDK fabricated the exception to carry a stacktrace, so its type is a platform label rather than what went wrong */ synthetic?: boolean; /** * File of the frame where the error happened */ filename?: string; /** * Function of the frame where the error happened */ function?: string; /** * Message of default, security and feedback events */ message?: string; /** * URI that a CSP report blocked */ uri?: string; /** * CSP directive that was violated */ directive?: string; /** * Host name of HPKP, Expect-CT and Expect-Staple reports */ origin?: string; /** * Name of the person who sent user feedback */ name?: string; /** * Email of the person who sent user feedback */ contact_email?: string; /** * Where user feedback came from, such as a widget */ source?: string; /** * Whether the stacktrace has in-app frames, system frames or both */ in_app_frame_mix?: string; /** * Whether a crash report was dropped because the issue already stores the most allowed */ stripped_crash?: boolean; /** * SDK of the issue's first event */ sdk?: { /** * Name of the SDK, or unknown */ name: string; /** * Name of the SDK, normalized for grouping */ name_normalized: string; }; /** * Severity score of the issue's first event */ severity?: number; /** * Why the severity score is what it is */ severity_reason?: string; /** * Priority the issue was created with */ initial_priority?: number; }; /** * Number of comments on the issue */ numComments: number; /** * User or team the issue is assigned to */ assignedTo: { /** * Whether the actor is a user or a team */ type: 'user' | 'team'; /** * ID of the user or team */ id: string; /** * Display name of the user, or slug of the team */ name: string; /** * Email address of the user. Only set for users */ email?: string; } | null; /** * Whether the requesting user bookmarked the issue */ isBookmarked: boolean; /** * Whether the requesting user is subscribed to the issue */ isSubscribed: boolean; /** * Why the requesting user is subscribed to the issue */ subscriptionDetails: { /** * Whether the requesting user turned off notifications for the issue */ disabled?: boolean; /** * Why the requesting user is subscribed: commented, assigned, bookmarked, changed_status, mentioned or unknown */ reason?: string; } | null; /** * Whether the requesting user has seen the issue since it last occurred */ hasSeen: boolean; /** * External issues linked to the issue */ annotations: Array<{ /** * Display name of the linked external issue */ displayName: string; /** * URL of the linked external issue */ url: string; }>; } | null; }; /** * When the activity happened (ISO 8601) */ dateCreated: string; /** * Where the action came from, such as web, api or mcp: */ source?: string | null; } | { /** * ID of the activity, or 0 for a first-seen item built from the issue */ id: string; /** * ID to pass to the notes endpoints for a comment, otherwise null */ commentId: string | null; /** * User who acted, or null for Sentry, an integration or a Sentry App */ user: { /** * SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access */ identities?: Array<{ /** * SSO identity ID */ id: string; /** * User's identifier at the auth provider */ name: string; /** * Organization the auth provider belongs to */ organization: { /** * Organization slug */ slug: string; /** * Organization name */ name: string; }; /** * Auth provider of the identity */ provider: { /** * Auth provider key, such as google or saml2 */ id: string; /** * Display name of the auth provider */ name: string; }; /** * When the identity was last verified by signing in through the auth provider */ dateVerified: string; /** * When the identity was last synced from the auth provider */ dateSynced: string; }>; /** * User avatar */ avatar?: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Two-factor authenticators of the user, without backup methods such as recovery codes */ authenticators?: Array<{ /** * Authenticator ID */ id: string; /** * Authenticator type, such as totp, sms, u2f or recovery */ type: string; /** * Display name of the authenticator type */ name: string; /** * When the authenticator was added */ dateCreated: string; /** * When the authenticator was last used, or null */ dateUsed: string | null; }>; /** * Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization */ canReset2fa?: boolean; /** * User ID */ id: string; /** * Display name: the user's name, or their email or username if no name is set */ name: string; /** * Username */ username: string; /** * Primary email address */ email: string; /** * Gravatar URL for the primary email address */ avatarUrl: string; /** * Whether the account is active */ isActive: boolean; /** * Whether the account is suspended. Suspended users can't sign in */ isSuspended: boolean; /** * Whether the user has a password set */ hasPasswordAuth: boolean; /** * Whether the account is managed, which stops the user from changing their username, password and similar details */ isManaged: boolean; /** * When the account was created */ dateJoined: string; /** * When the user last signed in, or null */ lastLogin: string | null; /** * Whether the user has two-factor authentication enabled */ has2fa: boolean; /** * When the user was last active, or null */ lastActive: string | null; /** * Whether the user is a superuser */ isSuperuser: boolean; /** * Whether the user has staff status */ isStaff: boolean; /** * Deprecated. Always an empty object */ experiments: { [key: string]: string; }; /** * Email addresses of the user. Only included for the requesting user or superusers; empty otherwise */ emails: Array<{ /** * Email ID */ id: string; /** * Email address */ email: string; /** * Whether the email address is verified */ is_verified: boolean; }>; } | null; /** * Sentry App that acted, if one did */ sentry_app: { /** * ID of the Sentry App */ id: string; /** * Name of the Sentry App */ name: string; /** * Slug of the Sentry App */ slug: string; /** * Avatars of the Sentry App */ avatars: Array<{ /** * Avatar type: `default` or `upload` */ avatarType: string; /** * Unique identifier of the uploaded avatar file, or an empty string if none is set */ avatarUuid: string; /** * Absolute URL of the avatar image */ avatarUrl: string; /** * Whether this is the color logo (`true`) or the simple icon (`false`) */ color: boolean; /** * Kind of image: `logo` for the color logo or `icon` for the simple icon */ photoType: string; }>; } | null; /** * Type of the activity, which decides the shape of data */ type: 'unmerge_source'; /** * Details of the activity, which depend on type */ data: { /** * Fingerprints */ fingerprints: Array; /** * Issue the events moved to */ destination?: { /** * Whether the issue includes unhandled events */ isUnhandled?: boolean; /** * Total number of events in the issue */ count?: string; /** * Number of users affected by the issue */ userCount?: number; /** * When the issue was first seen (ISO 8601) */ firstSeen?: string | null; /** * When the issue was last seen (ISO 8601) */ lastSeen?: string | null; /** * Additional data derived for the issue. Only included when requested with expand */ derivedData?: { /** * Action that blocks progress on the issue: none, approve_root_cause, approve_plan, approve_code_changes or merge_pr */ blocker: string; /** * How far the issue is toward resolution: identified, assigned, diagnosed, fix_proposed or fix_applied */ progress: string; /** * Status of the issue from its action log: open or closed */ status: string; /** * Number of times the issue was viewed */ viewCount: number; /** * Whether an open pull request is linked to the issue */ hasOpenFixPr: boolean; /** * Whether the issue has an assignee */ isAssigned: boolean; /** * Whether a root cause was found for the issue */ hasRootCause: boolean; /** * Furthest Autofix step completed: none, root_cause, solution, code_changes, pr_created or pr_iteration */ lastCompletedAutofixStep: string; /** * When the issue's progress last advanced (ISO 8601) */ lastProgressedAt: string | null; /** * The issue's impact assessment, or null when no assessment is available */ impact?: { /** * Estimated per-occurrence impact on the end user's capability from 0 to 100 */ score: number | null; /** * Impact level derived from the assessment score */ level: 'super_low' | 'low' | 'moderate' | 'high' | 'super_high' | null; /** * Human-readable description of the capability affected by the issue */ description: string; /** * Evidence-backed claims supporting the impact assessment */ citations: Array<{ /** * Stable identifier for the evidence supporting this claim */ reference: string; /** * Concise explanation of what the cited evidence establishes */ claim: string; /** * The category of evidence cited, such as an event, trace, replay, or log */ source: string; }>; /** * ID of the issue event used to generate the impact assessment */ sourceEventId: string; } | null; }; /** * ID of the issue */ id: string; /** * ID used in the issue's public share URL. Null when the issue isn't shared */ shareId: string | null; /** * Short ID of the issue, such as PROJECT-1A */ shortId: string | null; /** * Title of the issue */ title: string; /** * Function or module where the issue occurs */ culprit: string | null; /** * URL of the issue in Sentry */ permalink: string; /** * Logger of the issue's events */ logger: string | null; /** * Severity level of the issue */ level: 'sample' | 'debug' | 'info' | 'warning' | 'error' | 'fatal' | 'unknown'; /** * Issue status */ status: 'resolved' | 'ignored' | 'pending_deletion' | 'pending_merge' | 'reprocessing' | 'unresolved'; /** * Details of the issue's status, such as when an ignore expires or which release resolves it */ statusDetails: { /** * Number of additional events after which the issue stops being ignored */ ignoreCount?: number | null; /** * When the issue stops being ignored (ISO 8601) */ ignoreUntil?: string | null; /** * Number of additional affected users after which the issue stops being ignored */ ignoreUserCount?: number | null; /** * Time window in minutes for ignoreUserCount */ ignoreUserWindow?: number | null; /** * Time window in minutes for ignoreCount */ ignoreWindow?: number | null; /** * User who ignored or resolved the issue */ actor?: { /** * SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access */ identities?: Array<{ /** * SSO identity ID */ id: string; /** * User's identifier at the auth provider */ name: string; /** * Organization the auth provider belongs to */ organization: { /** * Organization slug */ slug: string; /** * Organization name */ name: string; }; /** * Auth provider of the identity */ provider: { /** * Auth provider key, such as google or saml2 */ id: string; /** * Display name of the auth provider */ name: string; }; /** * When the identity was last verified by signing in through the auth provider */ dateVerified: string; /** * When the identity was last synced from the auth provider */ dateSynced: string; }>; /** * User avatar */ avatar?: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Two-factor authenticators of the user, without backup methods such as recovery codes */ authenticators?: Array<{ /** * Authenticator ID */ id: string; /** * Authenticator type, such as totp, sms, u2f or recovery */ type: string; /** * Display name of the authenticator type */ name: string; /** * When the authenticator was added */ dateCreated: string; /** * When the authenticator was last used, or null */ dateUsed: string | null; }>; /** * Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization */ canReset2fa?: boolean; /** * User ID */ id: string; /** * Display name: the user's name, or their email or username if no name is set */ name: string; /** * Username */ username: string; /** * Primary email address */ email: string; /** * Gravatar URL for the primary email address */ avatarUrl: string; /** * Whether the account is active */ isActive: boolean; /** * Whether the account is suspended. Suspended users can't sign in */ isSuspended: boolean; /** * Whether the user has a password set */ hasPasswordAuth: boolean; /** * Whether the account is managed, which stops the user from changing their username, password and similar details */ isManaged: boolean; /** * When the account was created */ dateJoined: string; /** * When the user last signed in, or null */ lastLogin: string | null; /** * Whether the user has two-factor authentication enabled */ has2fa: boolean; /** * When the user was last active, or null */ lastActive: string | null; /** * Whether the user is a superuser */ isSuperuser: boolean; /** * Whether the user has staff status */ isStaff: boolean; /** * Deprecated. Always an empty object */ experiments: { [key: string]: string; }; /** * Email addresses of the user. Only included for the requesting user or superusers; empty otherwise */ emails: Array<{ /** * Email ID */ id: string; /** * Email address */ email: string; /** * Whether the email address is verified */ is_verified: boolean; }>; } | null; /** * Whether the issue is resolved in the next release */ inNextRelease?: boolean; /** * Version of the release the issue is resolved in */ inRelease?: string; /** * Commit the issue is resolved in */ inCommit?: string; /** * Number of events still waiting to be reprocessed */ pendingEvents?: number; /** * Reprocessing progress details */ info?: { /** * When reprocessing started (ISO 8601) */ dateCreated: string; /** * Number of events in the issue when reprocessing started */ syncCount: number; /** * Number of events to reprocess, at most the requested maximum */ totalEvents: number; } | null; }; /** * Substatus of the issue, such as ongoing, regressed or escalating */ substatus: 'archived_until_escalating' | 'archived_until_condition_met' | 'archived_forever' | 'escalating' | 'ongoing' | 'regressed' | 'new' | null; /** * Whether the issue is shared publicly */ isPublic: boolean; /** * Platform of the issue's events */ platform: string | null; /** * Priority of the issue: high, medium or low */ priority: 'low' | 'medium' | 'high' | null; /** * When the priority was last set manually, which stops automatic priority updates (ISO 8601) */ priorityLockedAt: string | null; /** * Seer's score for how likely the issue is to be fixable */ seerFixabilityScore: number | null; /** * When Seer Autofix was last triggered for the issue (ISO 8601) */ seerAutofixLastTriggered: string | null; /** * When the Seer explorer agent last completed an Autofix step for the issue (ISO 8601) */ seerExplorerAutofixLastTriggered: string | null; /** * Project the issue belongs to */ project: { /** * ID of the project */ id: string; /** * Name of the project */ name: string; /** * Slug of the project */ slug: string; /** * Platform of the project */ platform: string | null; }; /** * Event type of the issue, such as error or default */ type: 'default' | 'error' | 'csp' | 'nel' | 'hpkp' | 'expectct' | 'expectstaple' | 'transaction' | 'generic' | 'feedback'; /** * Issue type, such as error or performance_n_plus_one_db_queries */ issueType: string; /** * Issue category, such as error or performance */ issueCategory: string; /** * Issue metadata */ metadata: { /** * Title of default and issue platform events */ title?: string; /** * Exception value, or the subtitle of an issue */ value?: string; /** * Exception type of error events */ type?: string; /** * Whether the SDK fabricated the exception to carry a stacktrace, so its type is a platform label rather than what went wrong */ synthetic?: boolean; /** * File of the frame where the error happened */ filename?: string; /** * Function of the frame where the error happened */ function?: string; /** * Message of default, security and feedback events */ message?: string; /** * URI that a CSP report blocked */ uri?: string; /** * CSP directive that was violated */ directive?: string; /** * Host name of HPKP, Expect-CT and Expect-Staple reports */ origin?: string; /** * Name of the person who sent user feedback */ name?: string; /** * Email of the person who sent user feedback */ contact_email?: string; /** * Where user feedback came from, such as a widget */ source?: string; /** * Whether the stacktrace has in-app frames, system frames or both */ in_app_frame_mix?: string; /** * Whether a crash report was dropped because the issue already stores the most allowed */ stripped_crash?: boolean; /** * SDK of the issue's first event */ sdk?: { /** * Name of the SDK, or unknown */ name: string; /** * Name of the SDK, normalized for grouping */ name_normalized: string; }; /** * Severity score of the issue's first event */ severity?: number; /** * Why the severity score is what it is */ severity_reason?: string; /** * Priority the issue was created with */ initial_priority?: number; }; /** * Number of comments on the issue */ numComments: number; /** * User or team the issue is assigned to */ assignedTo: { /** * Whether the actor is a user or a team */ type: 'user' | 'team'; /** * ID of the user or team */ id: string; /** * Display name of the user, or slug of the team */ name: string; /** * Email address of the user. Only set for users */ email?: string; } | null; /** * Whether the requesting user bookmarked the issue */ isBookmarked: boolean; /** * Whether the requesting user is subscribed to the issue */ isSubscribed: boolean; /** * Why the requesting user is subscribed to the issue */ subscriptionDetails: { /** * Whether the requesting user turned off notifications for the issue */ disabled?: boolean; /** * Why the requesting user is subscribed: commented, assigned, bookmarked, changed_status, mentioned or unknown */ reason?: string; } | null; /** * Whether the requesting user has seen the issue since it last occurred */ hasSeen: boolean; /** * External issues linked to the issue */ annotations: Array<{ /** * Display name of the linked external issue */ displayName: string; /** * URL of the linked external issue */ url: string; }>; } | null; }; /** * When the activity happened (ISO 8601) */ dateCreated: string; /** * Where the action came from, such as web, api or mcp: */ source?: string | null; }>; /** * Users who have seen the issue, with when they last saw it */ seenBy: Array<{ /** * SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access */ identities?: Array<{ /** * SSO identity ID */ id: string; /** * User's identifier at the auth provider */ name: string; /** * Organization the auth provider belongs to */ organization: { /** * Organization slug */ slug: string; /** * Organization name */ name: string; }; /** * Auth provider of the identity */ provider: { /** * Auth provider key, such as google or saml2 */ id: string; /** * Display name of the auth provider */ name: string; }; /** * When the identity was last verified by signing in through the auth provider */ dateVerified: string; /** * When the identity was last synced from the auth provider */ dateSynced: string; }>; /** * User avatar */ avatar?: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Two-factor authenticators of the user, without backup methods such as recovery codes */ authenticators?: Array<{ /** * Authenticator ID */ id: string; /** * Authenticator type, such as totp, sms, u2f or recovery */ type: string; /** * Display name of the authenticator type */ name: string; /** * When the authenticator was added */ dateCreated: string; /** * When the authenticator was last used, or null */ dateUsed: string | null; }>; /** * Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization */ canReset2fa?: boolean; /** * User ID */ id: string; /** * Display name: the user's name, or their email or username if no name is set */ name: string; /** * Username */ username: string; /** * Primary email address */ email: string; /** * Gravatar URL for the primary email address */ avatarUrl: string; /** * Whether the account is active */ isActive: boolean; /** * Whether the account is suspended. Suspended users can't sign in */ isSuspended: boolean; /** * Whether the user has a password set */ hasPasswordAuth: boolean; /** * Whether the account is managed, which stops the user from changing their username, password and similar details */ isManaged: boolean; /** * When the account was created */ dateJoined: string; /** * When the user last signed in, or null */ lastLogin: string | null; /** * Whether the user has two-factor authentication enabled */ has2fa: boolean; /** * When the user was last active, or null */ lastActive: string | null; /** * Whether the user is a superuser */ isSuperuser: boolean; /** * Whether the user has staff status */ isStaff: boolean; /** * Deprecated. Always an empty object */ experiments: { [key: string]: string; }; /** * Email addresses of the user. Only included for the requesting user or superusers; empty otherwise */ emails: Array<{ /** * Email ID */ id: string; /** * Email address */ email: string; /** * Whether the email address is verified */ is_verified: boolean; }>; /** * When the user last saw the issue (ISO 8601) */ lastSeen: string; }>; /** * Number of user reports for the issue */ userReportCount: number; /** * Users participating in the issue */ participants: Array<{ /** * SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access */ identities?: Array<{ /** * SSO identity ID */ id: string; /** * User's identifier at the auth provider */ name: string; /** * Organization the auth provider belongs to */ organization: { /** * Organization slug */ slug: string; /** * Organization name */ name: string; }; /** * Auth provider of the identity */ provider: { /** * Auth provider key, such as google or saml2 */ id: string; /** * Display name of the auth provider */ name: string; }; /** * When the identity was last verified by signing in through the auth provider */ dateVerified: string; /** * When the identity was last synced from the auth provider */ dateSynced: string; }>; /** * User avatar */ avatar?: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Two-factor authenticators of the user, without backup methods such as recovery codes */ authenticators?: Array<{ /** * Authenticator ID */ id: string; /** * Authenticator type, such as totp, sms, u2f or recovery */ type: string; /** * Display name of the authenticator type */ name: string; /** * When the authenticator was added */ dateCreated: string; /** * When the authenticator was last used, or null */ dateUsed: string | null; }>; /** * Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization */ canReset2fa?: boolean; /** * User ID */ id: string; /** * Display name: the user's name, or their email or username if no name is set */ name: string; /** * Username */ username: string; /** * Primary email address */ email: string; /** * Gravatar URL for the primary email address */ avatarUrl: string; /** * Whether the account is active */ isActive: boolean; /** * Whether the account is suspended. Suspended users can't sign in */ isSuspended: boolean; /** * Whether the user has a password set */ hasPasswordAuth: boolean; /** * Whether the account is managed, which stops the user from changing their username, password and similar details */ isManaged: boolean; /** * When the account was created */ dateJoined: string; /** * When the user last signed in, or null */ lastLogin: string | null; /** * Whether the user has two-factor authentication enabled */ has2fa: boolean; /** * When the user was last active, or null */ lastActive: string | null; /** * Whether the user is a superuser */ isSuperuser: boolean; /** * Whether the user has staff status */ isStaff: boolean; /** * Deprecated. Always an empty object */ experiments: { [key: string]: string; }; /** * Email addresses of the user. Only included for the requesting user or superusers; empty otherwise */ emails: Array<{ /** * Email ID */ id: string; /** * Email address */ email: string; /** * Whether the email address is verified */ is_verified: boolean; }>; /** * Kind of participant. Always user */ type: 'user'; }>; }; }; export type GetOrganizationIssueResponse = GetOrganizationIssueResponses[keyof GetOrganizationIssueResponses]; export type UpdateOrganizationIssueData = { body?: { /** * If true, marks the issue as reviewed by the requestor. */ inbox?: boolean; /** * The new status for the issues. * * * `resolved` * * `unresolved` * * `ignored` * * `resolvedInNextRelease` * * `muted` */ status?: 'resolved' | 'unresolved' | 'ignored' | 'resolvedInNextRelease' | 'muted'; /** * Additional details about the resolution. Status detail updates that include release data are only allowed for issues within a single project. */ statusDetails?: { /** * If true, marks the issue as resolved in the next release. */ inNextRelease?: boolean; /** * The version of the release that the issue should be resolved in.If set to `latest`, the latest release will be used. */ inRelease?: string; /** * The commit data that the issue should use for resolution. */ inCommit?: { /** * The SHA of the resolving commit. */ commit: string; /** * The name of the repository (as it appears in Sentry). */ repository: string; }; /** * Ignore the issue until for this many minutes. */ ignoreDuration?: number; /** * Ignore the issue until it has occurred this many times in `ignoreWindow` minutes. */ ignoreCount?: number; /** * Ignore the issue until it has occurred `ignoreCount` times in this many minutes. (Max: 1 week) */ ignoreWindow?: number; /** * Ignore the issue until it has affected this many users in `ignoreUserWindow` minutes. */ ignoreUserCount?: number; /** * Ignore the issue until it has affected `ignoreUserCount` users in this many minutes. (Max: 1 week) */ ignoreUserWindow?: number; }; /** * The new substatus of the issue. * * * `archived_until_escalating` * * `archived_until_condition_met` * * `archived_forever` * * `escalating` * * `ongoing` * * `regressed` * * `new` */ substatus?: 'archived_until_escalating' | 'archived_until_condition_met' | 'archived_forever' | 'escalating' | 'ongoing' | 'regressed' | 'new' | null; /** * If true, marks the issue as seen by the requestor. */ hasSeen?: boolean; /** * If true, bookmarks the issue for the requestor. */ isBookmarked?: boolean; /** * If true, publishes the issue. */ isPublic?: boolean; /** * If true, subscribes the requestor to the issue. */ isSubscribed?: boolean; /** * If true, merges the issues together. */ merge?: boolean; /** * If true, discards the issues instead of updating them. */ discard?: boolean; /** * The user or team that should be assigned to the issues. Values take the form of ``, `user:`, ``, ``, or `team:`. */ assignedTo?: string; /** * The priority that should be set for the issues * * * `low` * * `medium` * * `high` */ priority?: 'low' | 'medium' | 'high'; /** * Ignore the issue for this many minutes. */ ignoreDuration?: number; /** * Ignore the issue until it is seen this many more times. */ ignoreCount?: number; /** * Window in minutes over which `ignoreCount` is measured. Maximum is 7 days. */ ignoreWindow?: number; /** * Ignore the issue until it affects this many more users. */ ignoreUserCount?: number; /** * Window in minutes over which `ignoreUserCount` is measured. Maximum is 7 days. */ ignoreUserWindow?: number; /** * Snooze the issue for this many minutes. */ snoozeDuration?: number | null; }; path: { /** * The ID or slug of the organization the resource belongs to. */ organization_id_or_slug: string; /** * The ID of the issue you'd like to query. */ issue_id: string; }; query?: never; url: '/organizations/{organization_id_or_slug}/issues/{issue_id}/'; }; export type UpdateOrganizationIssueErrors = { /** * Bad Request */ 400: unknown; /** * Unauthorized */ 401: unknown; /** * Forbidden */ 403: unknown; /** * Not Found */ 404: unknown; }; export type UpdateOrganizationIssueResponses = { 200: { /** * Whether the issue includes unhandled events */ isUnhandled?: boolean; /** * Total number of events in the issue */ count?: string; /** * Number of users affected by the issue */ userCount?: number; /** * When the issue was first seen (ISO 8601) */ firstSeen?: string | null; /** * When the issue was last seen (ISO 8601) */ lastSeen?: string | null; /** * Additional data derived for the issue. Only included when requested with expand */ derivedData?: { /** * Action that blocks progress on the issue: none, approve_root_cause, approve_plan, approve_code_changes or merge_pr */ blocker: string; /** * How far the issue is toward resolution: identified, assigned, diagnosed, fix_proposed or fix_applied */ progress: string; /** * Status of the issue from its action log: open or closed */ status: string; /** * Number of times the issue was viewed */ viewCount: number; /** * Whether an open pull request is linked to the issue */ hasOpenFixPr: boolean; /** * Whether the issue has an assignee */ isAssigned: boolean; /** * Whether a root cause was found for the issue */ hasRootCause: boolean; /** * Furthest Autofix step completed: none, root_cause, solution, code_changes, pr_created or pr_iteration */ lastCompletedAutofixStep: string; /** * When the issue's progress last advanced (ISO 8601) */ lastProgressedAt: string | null; /** * The issue's impact assessment, or null when no assessment is available */ impact?: { /** * Estimated per-occurrence impact on the end user's capability from 0 to 100 */ score: number | null; /** * Impact level derived from the assessment score */ level: 'super_low' | 'low' | 'moderate' | 'high' | 'super_high' | null; /** * Human-readable description of the capability affected by the issue */ description: string; /** * Evidence-backed claims supporting the impact assessment */ citations: Array<{ /** * Stable identifier for the evidence supporting this claim */ reference: string; /** * Concise explanation of what the cited evidence establishes */ claim: string; /** * The category of evidence cited, such as an event, trace, replay, or log */ source: string; }>; /** * ID of the issue event used to generate the impact assessment */ sourceEventId: string; } | null; }; /** * ID of the issue */ id: string; /** * ID used in the issue's public share URL. Null when the issue isn't shared */ shareId: string | null; /** * Short ID of the issue, such as PROJECT-1A */ shortId: string | null; /** * Title of the issue */ title: string; /** * Function or module where the issue occurs */ culprit: string | null; /** * URL of the issue in Sentry */ permalink: string; /** * Logger of the issue's events */ logger: string | null; /** * Severity level of the issue */ level: 'sample' | 'debug' | 'info' | 'warning' | 'error' | 'fatal' | 'unknown'; /** * Issue status */ status: 'resolved' | 'ignored' | 'pending_deletion' | 'pending_merge' | 'reprocessing' | 'unresolved'; /** * Details of the issue's status, such as when an ignore expires or which release resolves it */ statusDetails: { /** * Number of additional events after which the issue stops being ignored */ ignoreCount?: number | null; /** * When the issue stops being ignored (ISO 8601) */ ignoreUntil?: string | null; /** * Number of additional affected users after which the issue stops being ignored */ ignoreUserCount?: number | null; /** * Time window in minutes for ignoreUserCount */ ignoreUserWindow?: number | null; /** * Time window in minutes for ignoreCount */ ignoreWindow?: number | null; /** * User who ignored or resolved the issue */ actor?: { /** * SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access */ identities?: Array<{ /** * SSO identity ID */ id: string; /** * User's identifier at the auth provider */ name: string; /** * Organization the auth provider belongs to */ organization: { /** * Organization slug */ slug: string; /** * Organization name */ name: string; }; /** * Auth provider of the identity */ provider: { /** * Auth provider key, such as google or saml2 */ id: string; /** * Display name of the auth provider */ name: string; }; /** * When the identity was last verified by signing in through the auth provider */ dateVerified: string; /** * When the identity was last synced from the auth provider */ dateSynced: string; }>; /** * User avatar */ avatar?: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Two-factor authenticators of the user, without backup methods such as recovery codes */ authenticators?: Array<{ /** * Authenticator ID */ id: string; /** * Authenticator type, such as totp, sms, u2f or recovery */ type: string; /** * Display name of the authenticator type */ name: string; /** * When the authenticator was added */ dateCreated: string; /** * When the authenticator was last used, or null */ dateUsed: string | null; }>; /** * Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization */ canReset2fa?: boolean; /** * User ID */ id: string; /** * Display name: the user's name, or their email or username if no name is set */ name: string; /** * Username */ username: string; /** * Primary email address */ email: string; /** * Gravatar URL for the primary email address */ avatarUrl: string; /** * Whether the account is active */ isActive: boolean; /** * Whether the account is suspended. Suspended users can't sign in */ isSuspended: boolean; /** * Whether the user has a password set */ hasPasswordAuth: boolean; /** * Whether the account is managed, which stops the user from changing their username, password and similar details */ isManaged: boolean; /** * When the account was created */ dateJoined: string; /** * When the user last signed in, or null */ lastLogin: string | null; /** * Whether the user has two-factor authentication enabled */ has2fa: boolean; /** * When the user was last active, or null */ lastActive: string | null; /** * Whether the user is a superuser */ isSuperuser: boolean; /** * Whether the user has staff status */ isStaff: boolean; /** * Deprecated. Always an empty object */ experiments: { [key: string]: string; }; /** * Email addresses of the user. Only included for the requesting user or superusers; empty otherwise */ emails: Array<{ /** * Email ID */ id: string; /** * Email address */ email: string; /** * Whether the email address is verified */ is_verified: boolean; }>; } | null; /** * Whether the issue is resolved in the next release */ inNextRelease?: boolean; /** * Version of the release the issue is resolved in */ inRelease?: string; /** * Commit the issue is resolved in */ inCommit?: string; /** * Number of events still waiting to be reprocessed */ pendingEvents?: number; /** * Reprocessing progress details */ info?: { /** * When reprocessing started (ISO 8601) */ dateCreated: string; /** * Number of events in the issue when reprocessing started */ syncCount: number; /** * Number of events to reprocess, at most the requested maximum */ totalEvents: number; } | null; }; /** * Substatus of the issue, such as ongoing, regressed or escalating */ substatus: 'archived_until_escalating' | 'archived_until_condition_met' | 'archived_forever' | 'escalating' | 'ongoing' | 'regressed' | 'new' | null; /** * Whether the issue is shared publicly */ isPublic: boolean; /** * Platform of the issue's events */ platform: string | null; /** * Priority of the issue: high, medium or low */ priority: 'low' | 'medium' | 'high' | null; /** * When the priority was last set manually, which stops automatic priority updates (ISO 8601) */ priorityLockedAt: string | null; /** * Seer's score for how likely the issue is to be fixable */ seerFixabilityScore: number | null; /** * When Seer Autofix was last triggered for the issue (ISO 8601) */ seerAutofixLastTriggered: string | null; /** * When the Seer explorer agent last completed an Autofix step for the issue (ISO 8601) */ seerExplorerAutofixLastTriggered: string | null; /** * Project the issue belongs to */ project: { /** * ID of the project */ id: string; /** * Name of the project */ name: string; /** * Slug of the project */ slug: string; /** * Platform of the project */ platform: string | null; }; /** * Event type of the issue, such as error or default */ type: 'default' | 'error' | 'csp' | 'nel' | 'hpkp' | 'expectct' | 'expectstaple' | 'transaction' | 'generic' | 'feedback'; /** * Issue type, such as error or performance_n_plus_one_db_queries */ issueType: string; /** * Issue category, such as error or performance */ issueCategory: string; /** * Issue metadata */ metadata: { /** * Title of default and issue platform events */ title?: string; /** * Exception value, or the subtitle of an issue */ value?: string; /** * Exception type of error events */ type?: string; /** * Whether the SDK fabricated the exception to carry a stacktrace, so its type is a platform label rather than what went wrong */ synthetic?: boolean; /** * File of the frame where the error happened */ filename?: string; /** * Function of the frame where the error happened */ function?: string; /** * Message of default, security and feedback events */ message?: string; /** * URI that a CSP report blocked */ uri?: string; /** * CSP directive that was violated */ directive?: string; /** * Host name of HPKP, Expect-CT and Expect-Staple reports */ origin?: string; /** * Name of the person who sent user feedback */ name?: string; /** * Email of the person who sent user feedback */ contact_email?: string; /** * Where user feedback came from, such as a widget */ source?: string; /** * Whether the stacktrace has in-app frames, system frames or both */ in_app_frame_mix?: string; /** * Whether a crash report was dropped because the issue already stores the most allowed */ stripped_crash?: boolean; /** * SDK of the issue's first event */ sdk?: { /** * Name of the SDK, or unknown */ name: string; /** * Name of the SDK, normalized for grouping */ name_normalized: string; }; /** * Severity score of the issue's first event */ severity?: number; /** * Why the severity score is what it is */ severity_reason?: string; /** * Priority the issue was created with */ initial_priority?: number; }; /** * Number of comments on the issue */ numComments: number; /** * User or team the issue is assigned to */ assignedTo: { /** * Whether the actor is a user or a team */ type: 'user' | 'team'; /** * ID of the user or team */ id: string; /** * Display name of the user, or slug of the team */ name: string; /** * Email address of the user. Only set for users */ email?: string; } | null; /** * Whether the requesting user bookmarked the issue */ isBookmarked: boolean; /** * Whether the requesting user is subscribed to the issue */ isSubscribed: boolean; /** * Why the requesting user is subscribed to the issue */ subscriptionDetails: { /** * Whether the requesting user turned off notifications for the issue */ disabled?: boolean; /** * Why the requesting user is subscribed: commented, assigned, bookmarked, changed_status, mentioned or unknown */ reason?: string; } | null; /** * Whether the requesting user has seen the issue since it last occurred */ hasSeen: boolean; /** * External issues linked to the issue */ annotations: Array<{ /** * Display name of the linked external issue */ displayName: string; /** * URL of the linked external issue */ url: string; }>; }; }; export type UpdateOrganizationIssueResponse = UpdateOrganizationIssueResponses[keyof UpdateOrganizationIssueResponses]; export type GetOrganizationIssueAutofixStateData = { body?: never; path: { /** * The ID or slug of the organization the resource belongs to. */ organization_id_or_slug: string; /** * The ID of the issue you'd like to query. */ issue_id: string; }; query?: { /** * If set, adds a `formatted` field to the response with the autofix rendered as the requested format for LLM consumption. */ llmFormat?: 'json' | 'markdown' | 'xml'; }; url: '/organizations/{organization_id_or_slug}/issues/{issue_id}/autofix/'; }; export type GetOrganizationIssueAutofixStateErrors = { /** * Unauthorized */ 401: unknown; /** * Forbidden */ 403: unknown; /** * Not Found */ 404: unknown; }; export type GetOrganizationIssueAutofixStateResponses = { /** * Response type for the GET endpoint */ 200: { /** * The ``formatted`` field the mixin adds to a response when ``?llmFormat`` is requested. * * ``content`` is text for the text formats and a serialized JSON object for ``json``, so the * response shape is the same whichever format a caller asks for. */ formatted?: { /** * Format of the content: markdown, xml or json */ format: 'markdown' | 'xml' | 'json'; /** * Response rendered in the requested format, as text */ content: string; }; /** * Autofix state of the issue. Null when Autofix hasn't run */ autofix: { [key: string]: unknown; } | null; }; }; export type GetOrganizationIssueAutofixStateResponse = GetOrganizationIssueAutofixStateResponses[keyof GetOrganizationIssueAutofixStateResponses]; export type StartOrganizationIssueAutofixData = { /** * Serializer for the agent-based autofix requests. */ body?: { /** * Which autofix step to run. * * * `root_cause` * * `solution` * * `code_changes` * * `pr_iteration` * * `open_pr` * * `coding_agent_handoff` */ step?: 'root_cause' | 'solution' | 'code_changes' | 'pr_iteration' | 'open_pr' | 'coding_agent_handoff'; /** * Where the issue fix process should stop. If not provided, will run to root cause. * * * `root_cause` * * `solution` * * `code_changes` * * `open_pr` */ stopping_point?: 'root_cause' | 'solution' | 'code_changes' | 'open_pr'; /** * **Deprecated** in favor of sentry_run_id; retained for backward compatibility. The existing run's numeric Seer id to continue. If neither run_id nor sentry_run_id is provided, starts a new run. */ run_id?: number; /** * Existing run's UUID to continue. Preferred over run_id, and takes precedence when both are given. */ sentry_run_id?: string; /** * Coding agent integration ID. Required for coding_agent_handoff step (unless provider is specified). */ integration_id?: number; /** * Coding agent provider (e.g., 'github_copilot'). Alternative to integration_id for user-authenticated providers. */ provider?: string; /** * Optional user context to append to the step prompt. */ user_context?: string; /** * Optional repository name for which to create the pull request. Do not pass a repository name to create pull requests in all relevant repositories. */ repo_name?: string; /** * Block index to insert at. When provided, truncates blocks after this point for retry-from-step. */ insert_index?: number; /** * Referrer identifying where the issue fix was triggered from. */ referrer?: string; }; path: { /** * The ID or slug of the organization the resource belongs to. */ organization_id_or_slug: string; /** * The ID of the issue you'd like to query. */ issue_id: string; }; query?: never; url: '/organizations/{organization_id_or_slug}/issues/{issue_id}/autofix/'; }; export type StartOrganizationIssueAutofixErrors = { /** * Bad Request */ 400: unknown; /** * Unauthorized */ 401: unknown; 402: { /** * Why the organization can't run Seer */ detail: string; /** * `seer_out_of_credits` when the organization does not have enough Seer credits, `seer_out_of_quota` when it has no Seer budget */ code: 'seer_out_of_credits' | 'seer_out_of_quota'; /** * Set with `seer_out_of_credits`. `not_enough_credits` when the organization's credit balance doesn't cover the operation, `daily_cap_exceeded` when it would pass the organization's daily spend cap, null when no reason is known */ denialReason?: 'not_enough_credits' | 'daily_cap_exceeded' | null; }; /** * Forbidden */ 403: unknown; /** * Not Found */ 404: unknown; 409: { /** * Why the step can't run */ detail: string; /** * Set when a client can act on the conflict. `scm_integration_required` and `repos_not_linked` mean the organization or project must finish Seer setup before a new run can start. `run_in_flight` means a step is already running for the run in `run_id`, so poll it instead of retrying */ code?: 'scm_integration_required' | 'repos_not_linked' | 'run_in_flight'; /** * ID of the run in Seer. Set with `run_in_flight` */ run_id?: number; /** * ID of the run in Sentry. Set with `run_in_flight`, null for legacy runs */ sentry_run_id?: string | null; }; }; export type StartOrganizationIssueAutofixError = StartOrganizationIssueAutofixErrors[keyof StartOrganizationIssueAutofixErrors]; export type StartOrganizationIssueAutofixResponses = { /** * Response type for the POST endpoint (default kickoff and step paths). */ 202: { /** * ID of the Autofix run in Seer */ run_id: number; /** * ID of the run in Sentry. Null for legacy runs */ sentry_run_id: string | null; /** * "autofix_single_run" for a single-run Autofix run, otherwise "autofix" */ feature_id: string; }; }; export type StartOrganizationIssueAutofixResponse = StartOrganizationIssueAutofixResponses[keyof StartOrganizationIssueAutofixResponses]; export type ListOrganizationIssueEventsData = { body?: never; path: { /** * The ID or slug of the organization the resource belongs to. */ organization_id_or_slug: string; /** * The ID of the issue you'd like to query. */ issue_id: string; }; query?: { /** * The start of the period of time for the query, expected in ISO-8601 format. For example, `2001-12-14T12:34:56.7890`. */ start?: string; /** * The end of the period of time for the query, expected in ISO-8601 format. For example, `2001-12-14T12:34:56.7890`. */ end?: string; /** * The period of time for the query, will override the start & end parameters, a number followed by one of: * - `d` for days * - `h` for hours * - `m` for minutes * - `s` for seconds * - `w` for weeks * * For example, `24h`, to mean query data starting from 24 hours ago to now. */ statsPeriod?: string; /** * How long ago the query period starts, in the same format as `statsPeriod`. Must be sent with `statsPeriodEnd`, and is ignored when `statsPeriod` is sent. */ statsPeriodStart?: string; /** * How long ago the query period ends, in the same format as `statsPeriod`. Must be sent with `statsPeriodStart`, and is ignored when `statsPeriod` is sent. */ statsPeriodEnd?: string; /** * The name of environments to filter by. */ environment?: Array; /** * Specify true to include the full event body, including the stacktrace, in the event payload. When true, the page size is capped at 10. */ full?: boolean; /** * Return events in pseudo-random order. This is deterministic so an identical query will always return the same events in the same order. */ sample?: boolean; /** * An optional search query for filtering events. See [search syntax](https://docs.sentry.io/concepts/search/) and queryable event properties at [Sentry Search Documentation](https://docs.sentry.io/concepts/search/searchable-properties/events/) for more information. An example query might be `query=transaction:foo AND release:abc` */ query?: string; /** * Limit the number of rows to return in the result. Default and maximum allowed is 100. */ per_page?: number; /** * A pointer to the last object fetched and its sort order; used to retrieve the next or previous results. */ cursor?: string; }; url: '/organizations/{organization_id_or_slug}/issues/{issue_id}/events/'; }; export type ListOrganizationIssueEventsErrors = { /** * Bad Request */ 400: unknown; /** * Unauthorized */ 401: unknown; /** * Forbidden */ 403: unknown; /** * Not Found */ 404: unknown; }; export type ListOrganizationIssueEventsResponses = { 200: Array<{ /** * ID of the event */ id: string; /** * Event type, such as error, default or transaction */ 'event.type': string; /** * ID of the issue the event belongs to */ groupID: string | null; /** * ID of the event */ eventID: string; /** * ID of the project the event belongs to */ projectID: string; /** * Event message */ message: string; /** * Event title */ title: string; /** * Source location of the event, such as a file and line */ location: string | null; /** * Function or module that caused the event */ culprit: string | null; /** * User context of the event */ user: { /** * ID the SDK sent for the user */ id?: string | null; /** * Email address of the user */ email?: string | null; /** * Username of the user */ username?: string | null; /** * IP address of the user */ ip_address?: string | null; /** * Name of the user */ name?: string | null; /** * Location of the user, with keys such as country_code, city and region */ geo?: { [key: string]: string; } | null; /** * Extra data the SDK sent about the user */ data?: { [key: string]: unknown; } | null; } | null; /** * Tags attached to the event */ tags: Array<{ /** * Search query that matches this tag's user, such as user.email:"user@example.com". Only set for user tags */ query?: string; /** * Tag key */ key: string; /** * Tag value */ value: string; }>; /** * Platform of the event, such as python or javascript */ platform: string | null; /** * When the event occurred (ISO 8601) */ dateCreated: string; /** * Crash report attachment of the event, if any */ crashFile: string | null; /** * Event metadata */ metadata: { /** * Title of default and issue platform events */ title?: string; /** * Exception value, or the subtitle of an issue */ value?: string; /** * Exception type of error events */ type?: string; /** * Whether the SDK fabricated the exception to carry a stacktrace, so its type is a platform label rather than what went wrong */ synthetic?: boolean; /** * File of the frame where the error happened */ filename?: string; /** * Function of the frame where the error happened */ function?: string; /** * Message of default, security and feedback events */ message?: string; /** * URI that a CSP report blocked */ uri?: string; /** * CSP directive that was violated */ directive?: string; /** * Host name of HPKP, Expect-CT and Expect-Staple reports */ origin?: string; /** * Name of the person who sent user feedback */ name?: string; /** * Email of the person who sent user feedback */ contact_email?: string; /** * Where user feedback came from, such as a widget */ source?: string; /** * Whether the stacktrace has in-app frames, system frames or both */ in_app_frame_mix?: string; /** * Whether a crash report was dropped because the issue already stores the most allowed */ stripped_crash?: boolean; /** * SDK of the issue's first event */ sdk?: { /** * Name of the SDK, or unknown */ name: string; /** * Name of the SDK, normalized for grouping */ name_normalized: string; }; /** * Severity score of the issue's first event */ severity?: number; /** * Why the severity score is what it is */ severity_reason?: string; /** * Priority the issue was created with */ initial_priority?: number; }; }>; }; export type ListOrganizationIssueEventsResponse = ListOrganizationIssueEventsResponses[keyof ListOrganizationIssueEventsResponses]; export type GetOrganizationIssueEventData = { body?: never; path: { /** * The ID or slug of the organization the resource belongs to. */ organization_id_or_slug: string; /** * The ID of the issue you'd like to query. */ issue_id: string; /** * The ID of the event to retrieve, or 'latest', 'oldest', or 'recommended'. */ event_id: string; }; query?: { /** * The name of environments to filter by. */ environment?: Array; /** * The start of the period of time for the query, expected in ISO-8601 format. For example, `2001-12-14T12:34:56.7890`. */ start?: string; /** * The end of the period of time for the query, expected in ISO-8601 format. For example, `2001-12-14T12:34:56.7890`. */ end?: string; /** * The period of time for the query, will override the start & end parameters, a number followed by one of: * - `d` for days * - `h` for hours * - `m` for minutes * - `s` for seconds * - `w` for weeks * * For example, `24h`, to mean query data starting from 24 hours ago to now. */ statsPeriod?: string; /** * How long ago the query period starts, in the same format as `statsPeriod`. Must be sent with `statsPeriodEnd`, and is ignored when `statsPeriod` is sent. */ statsPeriodStart?: string; /** * How long ago the query period ends, in the same format as `statsPeriod`. Must be sent with `statsPeriodStart`, and is ignored when `statsPeriod` is sent. */ statsPeriodEnd?: string; /** * Parts of the response to skip computing. Specify `adjacentEvents` to skip looking up the neighboring events in the issue; `nextEventID` and `previousEventID` are then always `null`. Unknown values are ignored. */ collapse?: Array<'adjacentEvents'>; /** * If set, adds a `formatted` field to the response with the event rendered as the requested format for LLM consumption. */ llmFormat?: 'json' | 'markdown' | 'xml'; }; url: '/organizations/{organization_id_or_slug}/issues/{issue_id}/events/{event_id}/'; }; export type GetOrganizationIssueEventErrors = { /** * Bad Request */ 400: unknown; /** * Unauthorized */ 401: unknown; /** * Forbidden */ 403: unknown; /** * Not Found */ 404: unknown; }; export type GetOrganizationIssueEventResponses = { 200: { /** * ID of the event */ id: string; /** * ID of the issue the event belongs to */ groupID: string | null; /** * ID of the event */ eventID: string; /** * ID of the project the event belongs to */ projectID: string; /** * Event message */ message: string | null; /** * Event title */ title: string; /** * Source location of the event, such as a file and line */ location: string | null; /** * Platform of the event, such as python or javascript */ platform: string | null; /** * When Sentry received the event (ISO 8601) */ dateReceived: string | null; /** * Size of the event payload in bytes */ size: number | null; /** * Event interfaces, such as exception, breadcrumbs and request, each with a type and data */ entries: Array; /** * Distribution of the release the event was sent with */ dist: string | null; /** * Modules loaded when the event occurred, keyed by module name with their versions */ packages: { [key: string]: string | null; }; /** * Event type, such as error, default or transaction */ type: 'default' | 'error' | 'csp' | 'nel' | 'hpkp' | 'expectct' | 'expectstaple' | 'transaction' | 'generic' | 'feedback'; /** * Event metadata */ metadata: { /** * Title of default and issue platform events */ title?: string; /** * Exception value, or the subtitle of an issue */ value?: string; /** * Exception type of error events */ type?: string; /** * Whether the SDK fabricated the exception to carry a stacktrace, so its type is a platform label rather than what went wrong */ synthetic?: boolean; /** * File of the frame where the error happened */ filename?: string; /** * Function of the frame where the error happened */ function?: string; /** * Message of default, security and feedback events */ message?: string; /** * URI that a CSP report blocked */ uri?: string; /** * CSP directive that was violated */ directive?: string; /** * Host name of HPKP, Expect-CT and Expect-Staple reports */ origin?: string; /** * Name of the person who sent user feedback */ name?: string; /** * Email of the person who sent user feedback */ contact_email?: string; /** * Where user feedback came from, such as a widget */ source?: string; /** * Whether the stacktrace has in-app frames, system frames or both */ in_app_frame_mix?: string; /** * Whether a crash report was dropped because the issue already stores the most allowed */ stripped_crash?: boolean; /** * SDK of the issue's first event */ sdk?: { /** * Name of the SDK, or unknown */ name: string; /** * Name of the SDK, normalized for grouping */ name_normalized: string; }; /** * Severity score of the issue's first event */ severity?: number; /** * Why the severity score is what it is */ severity_reason?: string; /** * Priority the issue was created with */ initial_priority?: number; }; /** * Issue occurrence data for events in non-error issues, such as performance issues. Null otherwise */ occurrence: { /** * ID of the occurrence */ id: string; /** * ID of the project */ projectId: number; /** * ID of the event the occurrence belongs to */ eventId: string; /** * Fingerprint that groups the occurrence into an issue */ fingerprint: Array; /** * Title of the issue */ issueTitle: string; /** * Subtitle of the issue */ subtitle: string; /** * ID of the resource the occurrence is about, such as a monitor. Null when not set */ resourceId: string | null; /** * Evidence to show on the issue */ evidenceDisplay: Array<{ /** * Name of the evidence */ name: string; /** * Value of the evidence */ value: string; /** * Whether to show the evidence first. At most one evidence of an occurrence is important */ important: boolean; }>; /** * When the problem was detected, as a Unix timestamp in seconds */ detectionTime: number; /** * Level of the occurrence, such as error or warning */ level: string | null; /** * Culprit of the occurrence */ culprit: string | null; /** * Actor the issue is assigned to, such as user:1 or team:1 */ assignee: string | null; /** * Initial priority of the issue: 25 low, 50 medium or 75 high */ priority: number | null; /** * Group type ID of metric issues, always 8001 */ type: 8001; /** * Detector and query that created the occurrence */ evidenceData: { /** * ID of the detector that created the occurrence */ detectorId: number; /** * ID of the metric alert rule the detector replaces. Null when there's none */ alertId: number | null; /** * Metric value that triggered the detector, or the anomaly detection result for dynamic detectors */ value: number | { /** * Metric value the anomaly detection model scored */ value: number; /** * ID of the data source that produced the value */ sourceId: string; /** * ID of the query subscription that produced the value */ subscriptionId: string; /** * When the value was measured */ timestamp: string; } | null; /** * ID of the query subscription that sent the data */ dataPacketSourceId: string; /** * Conditions of the detector */ conditions: Array<{ /** * ID of the detector condition */ id: number; /** * Type of the condition, such as gt, lt or anomaly_detection */ type: string; /** * Threshold the value is compared with, or the anomaly detection settings for an anomaly_detection condition */ comparison: number | { /** * How sensitive the anomaly detection is */ sensitivity: 'low' | 'medium' | 'high'; /** * Seasonality the anomaly detection model uses */ seasonality: 'auto' | 'hourly' | 'daily' | 'weekly' | 'hourly_daily' | 'hourly_weekly' | 'hourly_daily_weekly' | 'daily_weekly'; /** * Direction of anomalies to detect: 0 above, 1 below, 2 above and below */ thresholdType: 0 | 1 | 2; }; /** * Priority the detector reports when the condition matches: 0 ok, 25 low, 50 medium or 75 high */ conditionResult: number; }>; /** * Configuration of the detector */ config: { /** * How the detector evaluates the metric: static thresholds, percent change or dynamic anomaly detection */ detectionType: 'static' | 'percent' | 'dynamic'; /** * Time window in seconds that a percent change detector compares with */ comparisonDelta?: number | null; }; /** * Data sources of the detector */ dataSources: Array<{ /** * ID of the data source */ id: string; /** * ID of the organization */ organizationId: string; /** * Type of the data source, such as snuba_query_subscription */ type: string; /** * ID of the source object, such as the query subscription */ sourceId: string; /** * Query subscription the data source reads */ queryObj: { /** * ID of the query subscription */ id: string; /** * Status of the subscription: 0 active, 1 creating, 2 updating, 3 deleting or 4 disabled */ status: number; /** * ID of the subscription in Snuba. Null while it's being created */ subscription: string | null; /** * Query the subscription runs */ snubaQuery: { /** * ID of the query */ id: string; /** * Dataset the query runs on, such as events or events_analytics_platform */ dataset: string; /** * Search query that filters the data */ query: string; /** * Aggregate function the query computes, such as count() */ aggregate: string; /** * Time window of the query in seconds */ timeWindow: number; /** * Environment the query is limited to. Null for all environments */ environment: string | null; /** * Event types the query includes, such as error or transaction */ eventTypes: Array; /** * How sampled data is extrapolated, unknown, none, client_and_server_weighted or server_weighted. Null when not set */ extrapolationMode: string | null; }; }; }>; }; } | { /** * ID of the occurrence */ id: string; /** * ID of the project */ projectId: number; /** * ID of the event the occurrence belongs to */ eventId: string; /** * Fingerprint that groups the occurrence into an issue */ fingerprint: Array; /** * Title of the issue */ issueTitle: string; /** * Subtitle of the issue */ subtitle: string; /** * ID of the resource the occurrence is about, such as a monitor. Null when not set */ resourceId: string | null; /** * Evidence to show on the issue */ evidenceDisplay: Array<{ /** * Name of the evidence */ name: string; /** * Value of the evidence */ value: string; /** * Whether to show the evidence first. At most one evidence of an occurrence is important */ important: boolean; }>; /** * When the problem was detected, as a Unix timestamp in seconds */ detectionTime: number; /** * Level of the occurrence, such as error or warning */ level: string | null; /** * Culprit of the occurrence */ culprit: string | null; /** * Actor the issue is assigned to, such as user:1 or team:1 */ assignee: string | null; /** * Initial priority of the issue: 25 low, 50 medium or 75 high */ priority: number | null; /** * Group type ID of the occurrence */ type: number; /** * Data of the occurrence. Its keys depend on the group type */ evidenceData: { [key: string]: unknown; }; } | null; /** * Metadata about changes Sentry made to the event's fields, such as data scrubbing or trimming */ _meta: { [key: string]: unknown; }; /** * User context of the event */ user: { /** * ID the SDK sent for the user */ id?: string | null; /** * Email address of the user */ email?: string | null; /** * Username of the user */ username?: string | null; /** * IP address of the user */ ip_address?: string | null; /** * Name of the user */ name?: string | null; /** * Location of the user, with keys such as country_code, city and region */ geo?: { [key: string]: string; } | null; /** * Extra data the SDK sent about the user */ data?: { [key: string]: unknown; } | null; } | null; /** * Tags attached to the event */ tags: Array<{ /** * Search query that matches this tag's user, such as user.email:"user@example.com". Only set for user tags */ query?: string; /** * Tag key */ key: string; /** * Tag value */ value: string; }>; /** * Contexts of the event, such as device, os, browser and runtime, keyed by alias */ contexts: { [key: string]: { /** * Internal build ID as it appears on the platform. */ app_build?: string | null; /** * Version-independent application identifier, often a dotted bundle ID. */ app_identifier?: string | null; /** * Amount of memory used by the application in bytes. */ app_memory?: number | string | null; /** * Application name as it appears on the platform. */ app_name?: string | null; /** * Start time of the app. * * Formatted UTC timestamp when the user started the application. */ app_start_time?: string | null; /** * Application version as it appears on the platform. */ app_version?: string | null; /** * String identifying the kind of build. For example, `testflight`. */ build_type?: string | null; /** * Application-specific device identifier. */ device_app_hash?: string | null; /** * A flag indicating whether the app is in foreground or not. An app is in foreground when it's visible to the user. */ in_foreground?: boolean | null; /** * The names of the currently visible views. */ view_names?: Array | null; /** * Type of the context */ type: 'app'; [key: string]: unknown; } | { /** * Display name of the browser application. */ name?: string | null; /** * Version string of the browser. */ version?: string | null; /** * Type of the context */ type: 'browser'; [key: string]: unknown; } | { /** * Type of the context */ type: 'default'; [key: string]: unknown; } | { /** * Native cpu architecture of the device. */ arch?: string | null; /** * Current battery level in %. * * If the device has a battery, this can be a floating point value defining the battery level * (in the range 0-100). */ battery_level?: number | string | null; /** * Status of the device's battery. * * For example, `Unknown`, `Charging`, `Discharging`, `NotCharging`, `Full`. */ battery_status?: string | null; /** * Indicator when the device was booted. */ boot_time?: string | null; /** * Brand of the device. */ brand?: string | null; /** * Whether the device was charging or not. */ charging?: boolean | null; /** * CPU description. * * For example, Intel(R) Core(TM)2 Quad CPU Q6600 @ 2.40GHz. */ cpu_description?: string | null; /** * Kind of device the application is running on. * * For example, `Unknown`, `Handheld`, `Console`, `Desktop`. */ device_type?: string | null; /** * Unique device identifier. */ device_unique_identifier?: string | null; /** * Free size of the attached external storage in bytes (eg: android SDK card). */ external_free_storage?: number | string | null; /** * Total size of the attached external storage in bytes (eg: android SDK card). */ external_storage_size?: number | string | null; /** * Family of the device model. * * This is usually the common part of model names across generations. For instance, `iPhone` * would be a reasonable family, so would be `Samsung Galaxy`. */ family?: string | null; /** * How much memory is still available in bytes. */ free_memory?: number | string | null; /** * How much storage is free in bytes. */ free_storage?: number | string | null; /** * ISO 639-1 code of the locale the device is set to. */ locale?: string | null; /** * Whether the device was low on memory. */ low_memory?: boolean | null; /** * Manufacturer of the device. */ manufacturer?: string | null; /** * Total memory available in bytes. */ memory_size?: number | string | null; /** * Device model. * * This, for example, can be `Samsung Galaxy S3`. */ model?: string | null; /** * Device model (internal identifier). * * An internal hardware revision to identify the device exactly. */ model_id?: string | null; /** * Name of the device. */ name?: string | null; /** * Whether the device was online or not. */ online?: boolean | null; /** * Current screen orientation. * * This can be a string `portrait` or `landscape` to define the orientation of a device. */ orientation?: string | null; /** * Number of "logical processors". * * For example, 8. */ processor_count?: number | string | null; /** * Processor frequency in MHz. * * Note that the actual CPU frequency might vary depending on current load and * power conditions, especially on low-powered devices like phones and laptops. */ processor_frequency?: number | string | null; /** * Device screen density. */ screen_density?: number | string | null; /** * Screen density as dots-per-inch. */ screen_dpi?: number | string | null; /** * Height of the screen in pixels. */ screen_height_pixels?: number | string | null; /** * Device screen resolution. * * (e.g.: 800x600, 3040x1444) */ screen_resolution?: string | null; /** * Width of the screen in pixels. */ screen_width_pixels?: number | string | null; /** * Simulator/prod indicator. */ simulator?: boolean | null; /** * Total storage size of the device in bytes. */ storage_size?: number | string | null; /** * Whether the accelerometer is available on the device. */ supports_accelerometer?: boolean | null; /** * Whether audio is available on the device. */ supports_audio?: boolean | null; /** * Whether the gyroscope is available on the device. */ supports_gyroscope?: boolean | null; /** * Whether location support is available on the device. */ supports_location_service?: boolean | null; /** * Whether vibration is available on the device. */ supports_vibration?: boolean | null; /** * Timezone of the device. */ timezone?: string | null; /** * How much memory is usable for the app in bytes. */ usable_memory?: number | string | null; /** * UUID of the device. */ uuid?: string | null; /** * Type of the context */ type: 'device'; [key: string]: unknown; } | { /** * The device low-level API type. * * Examples: `"Apple Metal"` or `"Direct3D11"` */ api_type?: string | null; /** * Approximate "shader capability" level of the graphics device. * * For Example: Shader Model 2.0, OpenGL ES 3.0, Metal / OpenGL ES 3.1, 27 (unknown) */ graphics_shader_level?: string | null; /** * The PCI identifier of the graphics device. */ id?: number | string; /** * Largest size of a texture that is supported by the graphics hardware. * * For Example: 16384 */ max_texture_size?: number | string | null; /** * The total GPU memory available in Megabytes. */ memory_size?: number | string | null; /** * Whether the GPU has multi-threaded rendering or not. */ multi_threaded_rendering?: boolean | null; /** * The name of the graphics device. */ name?: string | null; /** * The Non-Power-Of-Two support. */ npot_support?: string | null; /** * Whether compute shaders are available on the device. */ supports_compute_shaders?: boolean | null; /** * Whether GPU draw call instancing is supported. */ supports_draw_call_instancing?: boolean | null; /** * Whether geometry shaders are available on the device. */ supports_geometry_shaders?: boolean | null; /** * Whether ray tracing is available on the device. */ supports_ray_tracing?: boolean | null; /** * The PCI vendor identifier of the graphics device. */ vendor_id?: string | null; /** * The vendor name as reported by the graphics device. */ vendor_name?: string | null; /** * The Version of the graphics device. */ version?: string | null; /** * Type of the context */ type: 'gpu'; [key: string]: unknown; } | { /** * Type of the context */ type: 'monitor'; [key: string]: unknown; } | { /** * Internal build number of the operating system. */ build?: string | null; /** * Current kernel version. * * This is typically the entire output of the `uname` syscall. */ kernel_version?: string | null; /** * Name of the operating system. */ name?: string | null; /** * Unprocessed operating system info. * * An unprocessed description string obtained by the operating system. For some well-known * runtimes, Sentry will attempt to parse `name` and `version` from this string, if they are * not explicitly given. */ raw_description?: string | null; /** * Indicator if the OS is rooted (mobile mostly). */ rooted?: boolean | null; /** * Version of the operating system. */ version?: string | null; /** * Type of the context */ type: 'os'; [key: string]: unknown; } | { /** * Attributes of the OpenTelemetry span that maps to a Sentry event. * * */ attributes?: { [key: string]: string | boolean | number | number | Array; } | null; /** * Information about an OpenTelemetry resource. * * */ resource?: { [key: string]: string | boolean | number | number | Array; } | null; /** * Type of the context */ type: 'otel'; [key: string]: unknown; } | { /** * Application build string, if it is separate from the version. */ build?: string | null; /** * Runtime name. */ name?: string | null; /** * Unprocessed runtime info. * * An unprocessed description string obtained by the runtime. For some well-known runtimes, * Sentry will attempt to parse `name` and `version` from this string, if they are not * explicitly given. */ raw_description?: string | null; /** * Runtime version string. */ version?: string | null; /** * Type of the context */ type: 'runtime'; [key: string]: unknown; } | { /** * The client-side sample rate as reported in the envelope's `trace.sample_rate` header. * * The server takes this field from envelope headers and writes it back into the event. Clients * should not ever send this value. */ client_sample_rate?: number | string | null; /** * The amount of time in milliseconds spent in this transaction span, * excluding its immediate child spans. */ exclusive_time?: number | string | null; /** * Span type (see `OperationType` docs). */ op?: string | null; /** * The origin of the trace indicates what created the trace (see [OriginType] docs). */ origin?: string | null; /** * The ID of the span enclosing this span. */ parent_span_id?: string | null; /** * Track whether the trace connected to this event has been sampled entirely. * * This flag only applies to events with [`Error`] type that have an associated dynamic sampling context. */ sampled?: boolean | null; /** * The ID of the span. */ span_id?: string | null; /** * Whether the trace failed or succeeded. Currently only used to indicate status of individual * transactions. */ status?: 'ok' | 'cancelled' | 'unknown' | 'invalid_argument' | 'deadline_exceeded' | 'not_found' | 'already_exists' | 'permission_denied' | 'resource_exhausted' | 'failed_precondition' | 'aborted' | 'out_of_range' | 'unimplemented' | 'internal_error' | 'unavailable' | 'data_loss' | 'unauthenticated' | null; /** * The trace ID. */ trace_id?: string | null; /** * Type of the context */ type: 'trace'; [key: string]: unknown; } | { /** * Type of the context */ type: 'unity'; [key: string]: unknown; }; } | null; /** * SDK that sent the event */ sdk: { /** * Name of the SDK that sent the event, such as sentry.python */ name: string | null; /** * Version of the SDK */ version: string | null; } | null; /** * Additional data sent with the event in its extra field */ context: { [key: string]: unknown; } | null; /** * Errors Sentry found while processing the event */ errors: Array<{ /** * Type of the processing error, such as invalid_data or js_no_source */ type: string; /** * Human-readable message of the error */ message: string; /** * Details of the error, such as the name of the invalid field. Other keys depend on the error type */ data: { /** * Affected key or path in the event */ name?: string | null; /** * Details of the error from the processor that hit it */ message?: string; /** * URL that couldn't be fetched, such as a source file */ url?: string; /** * Path of the debug image the error is about */ image_path?: string; /** * Name of the debug image the error is about */ image_name?: string; /** * Debug ID of the image the error is about */ image_uuid?: string; /** * CPU architecture of the image the error is about */ image_arch?: string; /** * Error type Symbolicator reported, such as missing_source */ symbolicator_type?: string; /** * Source file or URL the error is about */ source?: string; /** * Source map the error is about */ sourcemap?: string; /** * Line of the location that couldn't be mapped */ row?: number; /** * Column of the location that couldn't be mapped */ column?: number; /** * Time the SDK reported, for clock drift errors */ sdk_time?: string; /** * Time the server received the event, for clock drift errors */ server_time?: string; }; }>; /** * Crash report attachment of the event, if any */ crashFile?: string | null; /** * Function or module that caused the event */ culprit?: string | null; /** * When the event occurred (ISO 8601) */ dateCreated?: string; /** * Grouping hashes calculated for the event */ fingerprints?: Array; /** * Grouping configuration used to group the event */ groupingConfig?: { /** * ID of the grouping config, such as newstyle:2026-01-20 */ id: string; /** * Stack trace rules of the project, as an encoded string */ enhancements: string; }; /** * When the transaction started, as a Unix timestamp in seconds */ startTimestamp?: number; /** * When the transaction ended, as a Unix timestamp in seconds */ endTimestamp?: number; /** * Measurements recorded for the transaction, such as web vitals, keyed by name */ measurements?: { [key: string]: { /** * Measurement value */ value: number; /** * Unit of the measurement, such as millisecond */ unit?: string | null; }; } | null; /** * Span operation breakdowns for the transaction, keyed by breakdown name */ breakdowns?: { [key: string]: { [key: string]: { /** * Measurement value */ value: number; /** * Unit of the measurement, such as millisecond */ unit?: string | null; }; }; } | null; /** * Release the event was sent with. Null when the event has no release */ release: { /** * Release ID */ id?: number; /** * Number of commits in the release */ commitCount?: number; /** * Extra data stored on the release */ data?: { [key: string]: unknown; }; /** * When the release was created (ISO 8601) */ dateCreated?: string; /** * When the release went live (ISO 8601) */ dateReleased?: string | null; /** * Number of deploys of the release */ deployCount?: number; /** * Version control reference, such as a commit SHA or tag */ ref?: string | null; /** * Most recent commit in the release */ lastCommit?: { /** * Commit SHA */ id: string; /** * Commit message */ message: string | null; /** * When the commit was made (ISO 8601) */ dateCreated: string; /** * Pull request the commit belongs to */ pullRequest: { /** * Number or key of the pull request in the provider */ id: string; /** * Title of the pull request */ title: string | null; /** * Description of the pull request */ message: string | null; /** * When Sentry recorded the pull request (ISO 8601) */ dateCreated: string; /** * When the pull request was merged (ISO 8601). Null when it isn't merged */ mergedAt: string | null; /** * State of the pull request: merged, open, closed, draft or unknown. Null when not known */ status: 'merged' | 'open' | 'closed' | 'draft' | 'unknown' | null; /** * Repository of the pull request */ repository: { /** * URL of the repository */ url?: string | null; /** * Provider of the repository, with its id and name */ provider?: { [key: string]: string; }; /** * Status of the repository */ status?: 'active' | 'disabled' | 'pending_deletion' | 'deletion_in_progress'; /** * ID of the repository's integration. Null for repositories added without an integration */ integrationId?: string | null; /** * Identifier of the repository in the provider, such as owner/name */ externalSlug?: string | null; /** * ID of the repository in the provider */ externalId?: string | null; /** * Settings of the repository. Only set when expand includes settings. Null when it has none */ settings?: { /** * Whether AI code review is on for the repository */ enabledCodeReview: boolean; /** * Pull request events that start a code review: on_new_commit or on_ready_for_review */ codeReviewTriggers: Array; } | null; /** * ID of the repository */ id: string; /** * Name of the repository, such as owner/name */ name: string; /** * When the repository was added to Sentry (ISO 8601) */ dateCreated: string; }; /** * Author of the pull request, or an empty object when it has none */ author: { /** * SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access */ identities?: Array<{ /** * SSO identity ID */ id: string; /** * User's identifier at the auth provider */ name: string; /** * Organization the auth provider belongs to */ organization: { /** * Organization slug */ slug: string; /** * Organization name */ name: string; }; /** * Auth provider of the identity */ provider: { /** * Auth provider key, such as google or saml2 */ id: string; /** * Display name of the auth provider */ name: string; }; /** * When the identity was last verified by signing in through the auth provider */ dateVerified: string; /** * When the identity was last synced from the auth provider */ dateSynced: string; }>; /** * User avatar */ avatar?: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Two-factor authenticators of the user, without backup methods such as recovery codes */ authenticators?: Array<{ /** * Authenticator ID */ id: string; /** * Authenticator type, such as totp, sms, u2f or recovery */ type: string; /** * Display name of the authenticator type */ name: string; /** * When the authenticator was added */ dateCreated: string; /** * When the authenticator was last used, or null */ dateUsed: string | null; }>; /** * Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization */ canReset2fa?: boolean; /** * User ID */ id: string; /** * Display name: the user's name, or their email or username if no name is set */ name: string; /** * Username */ username: string; /** * Primary email address */ email: string; /** * Gravatar URL for the primary email address */ avatarUrl: string; /** * Whether the account is active */ isActive: boolean; /** * Whether the account is suspended. Suspended users can't sign in */ isSuspended: boolean; /** * Whether the user has a password set */ hasPasswordAuth: boolean; /** * Whether the account is managed, which stops the user from changing their username, password and similar details */ isManaged: boolean; /** * When the account was created */ dateJoined: string; /** * When the user last signed in, or null */ lastLogin: string | null; /** * Whether the user has two-factor authentication enabled */ has2fa: boolean; /** * When the user was last active, or null */ lastActive: string | null; /** * Whether the user is a superuser */ isSuperuser: boolean; /** * Whether the user has staff status */ isStaff: boolean; /** * Deprecated. Always an empty object */ experiments: { [key: string]: string; }; /** * Email addresses of the user. Only included for the requesting user or superusers; empty otherwise */ emails: Array<{ /** * Email ID */ id: string; /** * Email address */ email: string; /** * Whether the email address is verified */ is_verified: boolean; }>; } | { /** * Commit author name */ name: string | null; /** * Commit author email */ email: string; } | { [key: string]: unknown; }; /** * URL of the pull request in the provider, or null when the provider can't build one */ externalUrl: string | null; } | null; /** * How the commit was found as a suspect commit: via commit in release or via SCM integration. Empty for other commits */ suspectCommitType: string; /** * Repository the commit belongs to */ repository?: { /** * URL of the repository */ url?: string | null; /** * Provider of the repository, with its id and name */ provider?: { [key: string]: string; }; /** * Status of the repository */ status?: 'active' | 'disabled' | 'pending_deletion' | 'deletion_in_progress'; /** * ID of the repository's integration. Null for repositories added without an integration */ integrationId?: string | null; /** * Identifier of the repository in the provider, such as owner/name */ externalSlug?: string | null; /** * ID of the repository in the provider */ externalId?: string | null; /** * Settings of the repository. Only set when expand includes settings. Null when it has none */ settings?: { /** * Whether AI code review is on for the repository */ enabledCodeReview: boolean; /** * Pull request events that start a code review: on_new_commit or on_ready_for_review */ codeReviewTriggers: Array; } | null; /** * ID of the repository */ id: string; /** * Name of the repository, such as owner/name */ name: string; /** * When the repository was added to Sentry (ISO 8601) */ dateCreated: string; }; /** * Author of the commit: a Sentry user when the email matches one, otherwise the name and email from the commit */ author?: { /** * SSO identities of the user. Only included for the requesting user, unless the request has active superuser or staff access */ identities?: Array<{ /** * SSO identity ID */ id: string; /** * User's identifier at the auth provider */ name: string; /** * Organization the auth provider belongs to */ organization: { /** * Organization slug */ slug: string; /** * Organization name */ name: string; }; /** * Auth provider of the identity */ provider: { /** * Auth provider key, such as google or saml2 */ id: string; /** * Display name of the auth provider */ name: string; }; /** * When the identity was last verified by signing in through the auth provider */ dateVerified: string; /** * When the identity was last synced from the auth provider */ dateSynced: string; }>; /** * User avatar */ avatar?: { /** * Avatar type */ avatarType?: 'letter_avatar' | 'upload' | 'gravatar'; /** * ID of the uploaded avatar image, or null */ avatarUuid?: string | null; /** * URL of the avatar image, or null if none is set */ avatarUrl?: string | null; }; /** * Two-factor authenticators of the user, without backup methods such as recovery codes */ authenticators?: Array<{ /** * Authenticator ID */ id: string; /** * Authenticator type, such as totp, sms, u2f or recovery */ type: string; /** * Display name of the authenticator type */ name: string; /** * When the authenticator was added */ dateCreated: string; /** * When the authenticator was last used, or null */ dateUsed: string | null; }>; /** * Whether the organization can reset the user's two-factor authentication. True only if the user is a member of exactly one active organization */ canReset2fa?: boolean; /** * User ID */ id: string; /** * Display name: the user's name, or their email or username if no name is set */ name: string; /** * Username */ username: string; /** * Primary email address */ email: string; /** * Gravatar URL for the primary email address */ avatarUrl: string; /** * Whether the account is active */ isActive: boolean; /** * Whether the account is suspended. Suspended users can't sign in */ isSuspended: boolean; /** * Whether the user has a password set */ hasPasswordAuth: boolean; /** * Whether the account is managed, which stops the user from changing their username, password and similar details */ isManaged: boolean; /** * When the account was created */ dateJoined: string; /** * When the user last signed in, or null */ lastLogin: string | null; /** * Whether the user has two-factor authentication enabled */ has2fa: boolean; /** * When the user was last active, or null */ lastActive: string | null; /** * Whether the user is a superuser */ isSuperuser: boolean; /** * Whether the user has staff status */ isStaff: boolean; /** * Deprecated. Always an empty object */ experiments: { [key: string]: string; }; /** * Email addresses of the user. Only included for the requesting user or superusers; empty otherwise */ emails: Array<{ /** * Email ID */ id: string; /** * Email address */ email: string; /** * Whether the email address is verified */ is_verified: boolean; }>; } | { /** * Commit author name */ name: string | null; /** * Commit author email */ email: string; } | { [key: string]: unknown; }; } | null; /** * Most recent deploy of the release */ lastDeploy?: { /** * When the deploy started (ISO 8601) */ dateStarted?: string | null; /** * URL of the deploy */ url?: string | null; /** * ID of the deploy */ id: string; /** * Environment the release was deployed to */ environment: string; /** * When the deploy finished (ISO 8601) */ dateFinished: string; /** * Name of the deploy */ name: string | null; } | null; /** * Release status */ status?: 'open' | 'archived'; /** * Release URL */ url?: string | null; /** * User agent of the client that created the release */ userAgent?: string | null; /** * Version of the release */ version?: string | null; /** * Parsed version information */ versionInfo?: { /** * Human-readable version, such as 1.0.0 (123) */ description?: string; /** * Package name parsed from the release version, such as com.example.app */ package: string | null; /** * Parsed version: the raw string, plus major, minor, patch, pre, buildCode and components when it's a semantic version */ version: { /** * Major version */ major?: number; /** * Minor version */ minor?: number; /** * Patch version */ patch?: number; /** * Pre-release identifier, such as rc1 */ pre?: string | null; /** * Build code, such as 123 */ buildCode?: string | null; /** * Number of version components given */ components?: number; /** * Version string the release was created with */ raw: string; }; /** * Build hash parsed from the release version */ buildHash: string | null; } | null; } | null; /** * User feedback submitted for the event. Null when there's none */ userReport: { /** * ID of the feedback */ id: string; /** * ID of the event the feedback is attached to */ eventID: string; /** * Name of the user who submitted the feedback. Falls back to the feedback's email address, then to the event user's name */ name: string | null; /** * Email address of the user who submitted the feedback. Falls back to the event user's email address */ email: string | null; /** * Comments the user submitted */ comments: string; /** * When the feedback was submitted (ISO 8601) */ dateCreated: string; /** * User recorded on the feedback's event. Null when the event isn't found or has no user */ user: { /** * ID of the user, as sent with the event */ id: string; /** * Username sent with the event */ username: string | null; /** * Email address sent with the event */ email: string | null; /** * Display name of the user: the name, email address or username sent with the event, whichever is set first */ name: string | null; /** * IP address sent with the event */ ipAddress: string | null; /** * Gravatar URL for the user's email address */ avatarUrl: string | null; } | null; /** * Event the feedback is attached to */ event: { /** * ID of the event the feedback is attached to */ id: string; /** * ID of the event the feedback is attached to */ eventID: string; }; } | null; /** * Suggested updates for the SDK that sent the event */ sdkUpdates: Array<{ /** * Kind of suggestion */ type: 'enableIntegration'; /** * Name of the SDK integration to enable */ integrationName: string; /** * Documentation URL of the integration */ integrationUrl: string; /** * Suggestions that become possible after this one is applied */ enables: Array<{ [key: string]: unknown; } | { /** * Kind of suggestion */ type: 'updateSdk'; /** * Name of the SDK to update */ sdkName: string; /** * SDK version to update to */ newSdkVersion: string | null; /** * Documentation URL of the SDK. Null when it isn't known */ sdkUrl: string | null; /** * Suggestions that become possible after this one is applied */ enables: Array<{ [key: string]: unknown; } | { [key: string]: unknown; } | { /** * Kind of suggestion */ type: 'changeSdk'; /** * Name of the SDK to switch to */ newSdkName: string; /** * Documentation URL of the SDK. Null when it isn't known */ sdkUrl: string | null; /** * Suggestions that become possible after this one is applied */ enables: Array<{ [key: string]: unknown; } | { [key: string]: unknown; } | { [key: string]: unknown; }>; }>; } | { /** * Kind of suggestion */ type: 'changeSdk'; /** * Name of the SDK to switch to */ newSdkName: string; /** * Documentation URL of the SDK. Null when it isn't known */ sdkUrl: string | null; /** * Suggestions that become possible after this one is applied */ enables: Array<{ [key: string]: unknown; } | { /** * Kind of suggestion */ type: 'updateSdk'; /** * Name of the SDK to update */ sdkName: string; /** * SDK version to update to */ newSdkVersion: string | null; /** * Documentation URL of the SDK. Null when it isn't known */ sdkUrl: string | null; /** * Suggestions that become possible after this one is applied */ enables: Array<{ [key: string]: unknown; } | { [key: string]: unknown; } | { [key: string]: unknown; }>; } | { [key: string]: unknown; }>; }>; } | { /** * Kind of suggestion */ type: 'updateSdk'; /** * Name of the SDK to update */ sdkName: string; /** * SDK version to update to */ newSdkVersion: string | null; /** * Documentation URL of the SDK. Null when it isn't known */ sdkUrl: string | null; /** * Suggestions that become possible after this one is applied */ enables: Array<{ /** * Kind of suggestion */ type: 'enableIntegration'; /** * Name of the SDK integration to enable */ integrationName: string; /** * Documentation URL of the integration */ integrationUrl: string; /** * Suggestions that become possible after this one is applied */ enables: Array<{ [key: string]: unknown; } | { [key: string]: unknown; } | { /** * Kind of suggestion */ type: 'changeSdk'; /** * Name of the SDK to switch to */ newSdkName: string; /** * Documentation URL of the SDK. Null when it isn't known */ sdkUrl: string | null; /** * Suggestions that become possible after this one is applied */ enables: Array<{ [key: string]: unknown; } | { [key: string]: unknown; } | { [key: string]: unknown; }>; }>; } | { [key: string]: unknown; } | { /** * Kind of suggestion */ type: 'changeSdk'; /** * Name of the SDK to switch to */ newSdkName: string; /** * Documentation URL of the SDK. Null when it isn't known */ sdkUrl: string | null; /** * Suggestions that become possible after this one is applied */ enables: Array<{ /** * Kind of suggestion */ type: 'enableIntegration'; /** * Name of the SDK integration to enable */ integrationName: string; /** * Documentation URL of the integration */ integrationUrl: string; /** * Suggestions that become possible after this one is applied */ enables: Array<{ [key: string]: unknown; } | { [key: string]: unknown; } | { [key: string]: unknown; }>; } | { [key: string]: unknown; } | { [key: string]: unknown; }>; }>; } | { /** * Kind of suggestion */ type: 'changeSdk'; /** * Name of the SDK to switch to */ newSdkName: string; /** * Documentation URL of the SDK. Null when it isn't known */ sdkUrl: string | null; /** * Suggestions that become possible after this one is applied */ enables: Array<{ /** * Kind of suggestion */ type: 'enableIntegration'; /** * Name of the SDK integration to enable */ integrationName: string; /** * Documentation URL of the integration */ integrationUrl: string; /** * Suggestions that become possible after this one is applied */ enables: Array<{ [key: string]: unknown; } | { /** * Kind of suggestion */ type: 'updateSdk'; /** * Name of the SDK to update */ sdkName: string; /** * SDK version to update to */ newSdkVersion: string | null; /** * Documentation URL of the SDK. Null when it isn't known */ sdkUrl: string | null; /** * Suggestions that become possible after this one is applied */ enables: Array<{ [key: string]: unknown; } | { [key: string]: unknown; } | { [key: string]: unknown; }>; } | { [key: string]: unknown; }>; } | { /** * Kind of suggestion */ type: 'updateSdk'; /** * Name of the SDK to update */ sdkName: string; /** * SDK version to update to */ newSdkVersion: string | null; /** * Documentation URL of the SDK. Null when it isn't known */ sdkUrl: string | null; /** * Suggestions that become possible after this one is applied */ enables: Array<{ /** * Kind of suggestion */ type: 'enableIntegration'; /** * Name of the SDK integration to enable */ integrationName: string; /** * Documentation URL of the integration */ integrationUrl: string; /** * Suggestions that become possible after this one is applied */ enables: Array<{ [key: string]: unknown; } | { [key: string]: unknown; } | { [key: string]: unknown; }>; } | { [key: string]: unknown; } | { [key: string]: unknown; }>; } | { [key: string]: unknown; }>; }>; /** * How the event's stack frames were resolved during processing, such as which source map lookup method was used */ resolvedWith: Array; /** * ID of the next event in the issue. Null for the latest event or when adjacentEvents is collapsed */ nextEventID: string | null; /** * ID of the previous event in the issue. Null for the first event or when adjacentEvents is collapsed */ previousEventID: string | null; /** * The ``formatted`` field the mixin adds to a response when ``?llmFormat`` is requested. * * ``content`` is text for the text formats and a serialized JSON object for ``json``, so the * response shape is the same whichever format a caller asks for. */ formatted?: { /** * Format of the content: markdown, xml or json */ format: 'markdown' | 'xml' | 'json'; /** * Response rendered in the requested format, as text */ content: string; }; }; }; export type GetOrganizationIssueEventResponse = GetOrganizationIssueEventResponses[keyof GetOrganizationIssueEventResponses]; export type ListOrganizationIssueExternalIssuesData = { body?: never; path: { /** * The ID or slug of the organization the resource belongs to. */ organization_id_or_slug: string; /** * The ID of the issue you'd like to query. */ issue_id: string; }; query?: { /** * A pointer to the last object fetched and its sort order; used to retrieve the next or previous results. */ cursor?: string; }; url: '/organizations/{organization_id_or_slug}/issues/{issue_id}/external-issues/'; }; export type ListOrganizationIssueExternalIssuesResponses = { 200: Array<{ /** * ID of the external issue link */ id: string; /** * ID of the Sentry issue */ issueId: string; /** * Slug of the custom integration that created the external issue */ serviceType: string; /** * Display name of the external issue, such as ABC-123 */ displayName: string; /** * URL of the external issue */ webUrl: string; }>; }; export type ListOrganizationIssueExternalIssuesResponse = ListOrganizationIssueExternalIssuesResponses[keyof ListOrganizationIssueExternalIssuesResponses]; export type DeleteOrganizationIssueExternalIssueData = { body?: never; path: { /** * The ID or slug of the organization the resource belongs to. */ organization_id_or_slug: string; /** * The ID of the issue you'd like to query. */ issue_id: string; /** * The ID of the custom integration issue link to remove. */ external_issue_id: string; }; query?: never; url: '/organizations/{organization_id_or_slug}/issues/{issue_id}/external-issues/{external_issue_id}/'; }; export type DeleteOrganizationIssueExternalIssueErrors = { /** * Unauthorized */ 401: unknown; /** * Forbidden */ 403: unknown; /** * Not Found */ 404: unknown; /** * Conflict */ 409: unknown; }; export type DeleteOrganizationIssueExternalIssueResponses = { /** * No Content */ 204: void; }; export type DeleteOrganizationIssueExternalIssueResponse = DeleteOrganizationIssueExternalIssueResponses[keyof DeleteOrganizationIssueExternalIssueResponses]; export type ListOrganizationIssueHashesData = { body?: never; path: { /** * The ID or slug of the organization the resource belongs to. */ organization_id_or_slug: string; /** * The ID of the issue you'd like to query. */ issue_id: string; }; query?: { /** * Specify true to include the full event body, including the stacktrace, in the event payload. When true, the page size is capped at 10. */ full?: boolean; /** * A pointer to the last object fetched and its sort order; used to retrieve the next or previous results. */ cursor?: string; }; url: '/organizations/{organization_id_or_slug}/issues/{issue_id}/hashes/'; }; export type ListOrganizationIssueHashesErrors = { /** * Unauthorized */ 401: unknown; /** * Forbidden */ 403: unknown; /** * Not Found */ 404: unknown; }; export type ListOrganizationIssueHashesResponses = { 200: Array<{ /** * Fingerprint hash */ id: string; /** * Latest event with the hash. Null when the event isn't found */ latestEvent: { /** * ID of the event */ id: string; /** * ID of the issue the event belongs to */ groupID: string | null; /** * ID of the event */ eventID: string; /** * ID of the project the event belongs to */ projectID: string; /** * Event message */ message: string | null; /** * Event title */ title: string; /** * Source location of the event, such as a file and line */ location: string | null; /** * Platform of the event, such as python or javascript */ platform: string | null; /** * When Sentry received the event (ISO 8601) */ dateReceived: string | null; /** * Size of the event payload in bytes */ size: number | null; /** * Event interfaces, such as exception, breadcrumbs and request, each with a type and data */ entries: Array; /** * Distribution of the release the event was sent with */ dist: string | null; /** * Modules loaded when the event occurred, keyed by module name with their versions */ packages: { [key: string]: string | null; }; /** * Event type, such as error, default or transaction */ type: 'default' | 'error' | 'csp' | 'nel' | 'hpkp' | 'expectct' | 'expectstaple' | 'transaction' | 'generic' | 'feedback'; /** * Event metadata */ metadata: { /** * Title of default and issue platform events */ title?: string; /** * Exception value, or the subtitle of an issue */ value?: string; /** * Exception type of error events */ type?: string; /** * Whether the SDK fabricated the exception to carry a stacktrace, so its type is a platform label rather than what went wrong */ synthetic?: boolean; /** * File of the frame where the error happened */ filename?: string; /** * Function of the frame where the error happened */ function?: string; /** * Message of default, security and feedback events */ message?: string; /** * URI that a CSP report blocked */ uri?: string; /** * CSP directive that was violated */ directive?: string; /** * Host name of HPKP, Expect-CT and Expect-Staple reports */ origin?: string; /** * Name of the person who sent user feedback */ name?: string; /** * Email of the person who sent user feedback */ contact_email?: string; /** * Where user feedback came from, such as a widget */ source?: string; /** * Whether the stacktrace has in-app frames, system frames or both */ in_app_frame_mix?: string; /** * Whether a crash report was dropped because the issue already stores the most allowed */ stripped_crash?: boolean; /** * SDK of the issue's first event */ sdk?: { /** * Name of the SDK, or unknown */ name: string; /** * Name of the SDK, normalized for grouping */ name_normalized: string; }; /** * Severity score of the issue's first event */ severity?: number; /** * Why the severity score is what it is */ severity_reason?: string; /** * Priority the issue was created with */ initial_priority?: number; }; /** * Issue occurrence data for events in non-error issues, such as performance issues. Null otherwise */ occurrence: { /** * ID of the occurrence */ id: string; /** * ID of the project */ projectId: number; /** * ID of the event the occurrence belongs to */ eventId: string; /** * Fingerprint that groups the occurrence into an issue */ fingerprint: Array; /** * Title of the issue */ issueTitle: string; /** * Subtitle of the issue */ subtitle: string; /** * ID of the resource the occurrence is about, such as a monitor. Null when not set */ resourceId: string | null; /** * Evidence to show on the issue */ evidenceDisplay: Array<{ /** * Name of the evidence */ name: string; /** * Value of the evidence */ value: string; /** * Whether to show the evidence first. At most one evidence of an occurrence is important */ important: boolean; }>; /** * When the problem was detected, as a Unix timestamp in seconds */ detectionTime: number; /** * Level of the occurrence, such as error or warning */ level: string | null; /** * Culprit of the occurrence */ culprit: string | null; /** * Actor the issue is assigned to, such as user:1 or team:1 */ assignee: string | null; /** * Initial priority of the issue: 25 low, 50 medium or 75 high */ priority: number | null; /** * Group type ID of metric issues, always 8001 */ type: 8001; /** * Detector and query that created the occurrence */ evidenceData: { /** * ID of the detector that created the occurrence */ detectorId: number; /** * ID of the metric alert rule the detector replaces. Null when there's none */ alertId: number | null; /** * Metric value that triggered the detector, or the anomaly detection result for dynamic detectors */ value: number | { /** * Metric value the anomaly detection model scored */ value: number; /** * ID of the data source that produced the value */ sourceId: string; /** * ID of the query subscription that produced the value */ subscriptionId: string; /** * When the value was measured */ timestamp: string; } | null; /** * ID of the query subscription that sent the data */ dataPacketSourceId: string; /** * Conditions of the detector */ conditions: Array<{ /** * ID of the detector condition */ id: number; /** * Type of the condition, such as gt, lt or anomaly_detection */ type: string; /** * Threshold the value is compared with, or the anomaly detection settings for an anomaly_detection condition */ comparison: number | { /** * How sensitive the anomaly detection is */ sensitivity: 'low' | 'medium' | 'high'; /** * Seasonality the anomaly detection model uses */ seasonality: 'auto' | 'hourly' | 'daily' | 'weekly' | 'hourly_daily' | 'hourly_weekly' | 'hourly_daily_weekly' | 'daily_weekly'; /** * Direction of anomalies to detect: 0 above, 1 below, 2 above and below */ thresholdType: 0 | 1 | 2; }; /** * Priority the detector reports when the condition matches: 0 ok, 25 low, 50 medium or 75 high */ conditionResult: number; }>; /** * Configuration of the detector */ config: { /** * How the detector evaluates the metric: static thresholds, percent change or dynamic anomaly detection */ detectionType: 'static' | 'percent' | 'dynamic'; /** * Time window in seconds that a percent change detector compares with */ comparisonDelta?: number | null; }; /** * Data sources of the detector */ dataSources: Array<{ /** * ID of the data source */ id: string; /** * ID of the organization */ organizationId: string; /** * Type of the data source, such as snuba_query_subscription */ type: string; /** * ID of the source object, such as the query subscription */ sourceId: string; /** * Query subscription the data source reads */ queryObj: { /** * ID of the query subscription */ id: string; /** * Status of the subscription: 0 active, 1 creating, 2 updating, 3 deleting or 4 disabled */ status: number; /** * ID of the subscription in Snuba. Null while it's being created */ subscription: string | null; /** * Query the subscription runs */ snubaQuery: { /** * ID of the query */ id: string; /** * Dataset the query runs on, such as events or events_analytics_platform */ dataset: string; /** * Search query that filters the data */ query: string; /** * Aggregate function the query computes, such as count() */ aggregate: string; /** * Time window of the query in seconds */ timeWindow: number; /** * Environment the query is limited to. Null for all environments */ environment: string | null; /** * Event types the query includes, such as error or transaction */ eventTypes: Array; /** * How sampled data is extrapolated, unknown, none, client_and_server_weighted or server_weighted. Null when not set */ extrapolationMode: string | null; }; }; }>; }; } | { /** * ID of the occurrence */ id: string; /** * ID of the project */ projectId: number; /** * ID of the event the occurrence belongs to */ eventId: string; /** * Fingerprint that groups the occurrence into an issue */ fingerprint: Array; /** * Title of the issue */ issueTitle: string; /** * Subtitle of the issue */ subtitle: string; /** * ID of the resource the occurrence is about, such as a monitor. Null when not set */ resourceId: string | null; /** * Evidence to show on the issue */ evidenceDisplay: Array<{ /** * Name of the evidence */ name: string; /** * Value of the evidence */ value: string; /** * Whether to show the evidence first. At most one evidence of an occurrence is important */ important: boolean; }>; /** * When the problem was detected, as a Unix timestamp in seconds */ detectionTime: number; /** * Level of the occurrence, such as error or warning */ level: string | null; /** * Culprit of the occurrence */ culprit: string | null; /** * Actor the issue is assigned to, such as user:1 or team:1 */ assignee: string | null; /** * Initial priority of the issue: 25 low, 50 medium or 75 high */ priority: number | null; /** * Group type ID of the occurrence */ type: number; /** * Data of the occurrence. Its keys depend on the group type */ evidenceData: { [key: string]: unknown; }; } | null; /** * Metadata about changes Sentry made to the event's fields, such as data scrubbing or trimming */ _meta: { [key: string]: unknown; }; /** * User context of the event */ user: { /** * ID the SDK sent for the user */ id?: string | null; /** * Email address of the user */ email?: string | null; /** * Username of the user */ username?: string | null; /** * IP address of the user */ ip_address?: string | null; /** * Name of the user */ name?: string | null; /** * Location of the user, with keys such as country_code, city and region */ geo?: { [key: string]: string; } | null; /** * Extra data the SDK sent about the user */ data?: { [key: string]: unknown; } | null; } | null; /** * Tags attached to the event */ tags: Array<{ /** * Search query that matches this tag's user, such as user.email:"user@example.com". Only set for user tags */ query?: string; /** * Tag key */ key: string; /** * Tag value */ value: string; }>; /** * Contexts of the event, such as device, os, browser and runtime, keyed by alias */ contexts: { [key: string]: { /** * Internal build ID as it appears on the platform. */ app_build?: string | null; /** * Version-independent application identifier, often a dotted bundle ID. */ app_identifier?: string | null; /** * Amount of memory used by the application in bytes. */ app_memory?: number | string | null; /** * Application name as it appears on the platform. */ app_name?: string | null; /** * Start time of the app. * * Formatted UTC timestamp when the user started the application. */ app_start_time?: string | null; /** * Application version as it appears on the platform. */ app_version?: string | null; /** * String identifying the kind of build. For example, `testflight`. */ build_type?: string | null; /** * Application-specific device identifier. */ device_app_hash?: string | null; /** * A flag indicating whether the app is in foreground or not. An app is in foreground when it's visible to the user. */ in_foreground?: boolean | null; /** * The names of the currently visible views. */ view_names?: Array | null; /** * Type of the context */ type: 'app'; [key: string]: unknown; } | { /** * Display name of the browser application. */ name?: string | null; /** * Version string of the browser. */ version?: string | null; /** * Type of the context */ type: 'browser'; [key: string]: unknown; } | { /** * Type of the context */ type: 'default'; [key: string]: unknown; } | { /** * Native cpu architecture of the device. */ arch?: string | null; /** * Current battery level in %. * * If the device has a battery, this can be a floating point value defining the battery level * (in the range 0-100). */ battery_level?: number | string | null; /** * Status of the device's battery. * * For example, `Unknown`, `Charging`, `Discharging`, `NotCharging`, `Full`. */ battery_status?: string | null; /** * Indicator when the device was booted. */ boot_time?: string | null; /** * Brand of the device. */ brand?: string | null; /** * Whether the device was charging or not. */ charging?: boolean | null; /** * CPU description. * * For example, Intel(R) Core(TM)2 Quad CPU Q6600 @ 2.40GHz. */ cpu_description?: string | null; /** * Kind of device the application is running on. * * For example, `Unknown`, `Handheld`, `Console`, `Desktop`. */ device_type?: string | null; /** * Unique device identifier. */ device_unique_identifier?: string | null; /** * Free size of the attached external storage in bytes (eg: android SDK card). */ external_free_storage?: number | string | null; /** * Total size of the attached external storage in bytes (eg: android SDK card). */ external_storage_size?: number | string | null; /** * Family of the device model. * * This is usually the common part of model names across generations. For instance, `iPhone` * would be a reasonable family, so would be `Samsung Galaxy`. */ family?: string | null; /** * How much memory is still available in bytes. */ free_memory?: number | string | null; /** * How much storage is free in bytes. */ free_storage?: number | string | null; /** * ISO 639-1 code of the locale the device is set to. */ locale?: string | null; /** * Whether the device was low on memory. */ low_memory?: boolean | null; /** * Manufacturer of the device. */ manufacturer?: string | null; /** * Total memory available in bytes. */ memory_size?: number | string | null; /** * Device model. * * This, for example, can be `Samsung Galaxy S3`. */ model?: string | null; /** * Device model (internal identifier). * * An internal hardware revision to identify the device exactly. */ model_id?: string | null; /** * Name of the device. */ name?: string | null; /** * Whether the device was online or not. */ online?: boolean | null; /** * Current screen orientation. * * This can be a string `portrait` or `landscape` to define the orientation of a device. */ orientation?: string | null; /** * Number of "logical processors". * * For example, 8. */ processor_count?: number | string | null; /** * Processor frequency in MHz. * * Note that the actual CPU frequency might vary depending on current load and * power conditions, especially on low-powered devices like phones and laptops. */ processor_frequency?: number | string | null; /** * Device screen density. */ screen_density?: number | string | null; /** * Screen density as dots-per-inch. */ screen_dpi?: number | string | null; /** * Height of the screen in pixels. */ screen_height_pixels?: number | string | null; /** * Device screen resolution. * * (e.g.: 800x600, 3040x1444) */ screen_resolution?: string | null; /** * Width of the screen in pixels. */ screen_width_pixels?: number | string | null; /** * Simulator/prod indicator. */ simulator?: boolean | null; /** * Total storage size of the device in bytes. */ storage_size?: number | string | null; /** * Whether the accelerometer is available on the device. */ supports_accelerometer?: boolean | null; /** * Whether audio is available on the device. */ supports_audio?: boolean | null; /** * Whether the gyroscope is available on the device. */ supports_gyroscope?: boolean | null; /** * Whether location support is available on the device. */ supports_location_service?: boolean | null; /** * Whether vibration is available on the device. */ supports_vibration?: boolean | null; /** * Timezone of the device. */ timezone?: string | null; /** * How much memory is usable for the app in bytes. */ usable_memory?: number | string | null; /** * UUID of the device. */ uuid?: string | null; /** * Type of the context */ type: 'device'; [key: string]: unknown; } | { /** * The device low-level API type. * * Examples: `"Apple Metal"` or `"Direct3D11"` */ api_type?: string | null; /** * Approximate "shader capability" level of the graphics device. * * For Example: Shader Model 2.0, OpenGL ES 3.0, Metal / OpenGL ES 3.1, 27 (unknown) */ graphics_shader_level?: string | null; /** * The PCI identifier of the graphics device. */ id?: number | string; /** * Largest size of a texture that is supported by the graphics hardware. * * For Example: 16384 */ max_texture_size?: number | string | null; /** * The total GPU memory available in Megabytes. */ memory_size?: number | string | null; /** * Whether the GPU has multi-threaded rendering or not. */ multi_threaded_rendering?: boolean | null; /** * The name of the graphics device. */ name?: string | null; /** * The Non-Power-Of-Two support. */ npot_support?: string | null; /** * Whether compute shaders are available on the device. */ supports_compute_shaders?: boolean | null; /** * Whether GPU draw call instancing is supported. */ supports_draw_call_instancing?: boolean | null; /** * Whether geometry shaders are available on the device. */ supports_geometry_shaders?: boolean | null; /** * Whether ray tracing is available on the device. */ supports_ray_tracing?: boolean | null; /** * The PCI vendor identifier of the graphics device. */ vendor_id?: string | null; /** * The vendor name as reported by the graphics device. */ vendor_name?: string | null; /** * The Version of the graphics device. */ version?: string | null; /** * Type of the context */ type: 'gpu'; [key: string]: unknown; } | { /** * Type of the context */ type: 'monitor'; [key: string]: unknown; } | { /** * Internal build number of the operating system. */ build?: string | null; /** * Current kernel version. * * This is typically the entire output of the `uname` syscall. */ kernel_version?: string | null; /** * Name of the operating system. */ name?: string | null; /** * Unprocessed operating system info. * * An unprocessed description string obtained by the operating system. For some well-known * runtimes, Sentry will attempt to parse `name` and `version` from this string, if they are * not explicitly given. */ raw_description?: string | null; /** * Indicator if the OS is rooted (mobile mostly). */ rooted?: boolean | null; /** * Version of the operating system. */ version?: string | null; /** * Type of the context */ type: 'os'; [key: string]: unknown; } | { /** * Attributes of the OpenTelemetry span that maps to a Sentry event. * * */ attributes?: { [key: string]: string | boolean | number | number | Array; } | null; /** * Information about an OpenTelemetry resource. * * */ resource?: { [key: string]: string | boolean | number | number | Array; } | null; /** * Type of the context */ type: 'otel'; [key: string]: unknown; } | { /** * Application build string, if it is separate from the version. */ build?: string | null; /** * Runtime name. */ name?: string | null; /** * Unprocessed runtime info. * * An unprocessed description string obtained by the runtime. For some well-known runtimes, * Sentry will attempt to parse `name` and `version` from this string, if they are not * explicitly given. */ raw_description?: string | null; /** * Runtime version string. */ version?: string | null; /** * Type of the context */ type: 'runtime'; [key: string]: unknown; } | { /** * The client-side sample rate as reported in the envelope's `trace.sample_rate` header. * * The server takes this field from envelope headers and writes it back into the event. Clients * should not ever send this value. */ client_sample_rate?: number | string | null; /** * The amount of time in milliseconds spent in this transaction span, * excluding its immediate child spans. */ exclusive_time?: number | string | null; /** * Span type (see `OperationType` docs). */ op?: string | null; /** * The origin of the trace indicates what created the trace (see [OriginType] docs). */ origin?: string | null; /** * The ID of the span enclosing this span. */ parent_span_id?: string | null; /** * Track whether the trace connected to this event has been sampled entirely. * * This flag only applies to events with [`Error`] type that have an associated dynamic sampling context. */ sampled?: boolean | null; /** * The ID of the span. */ span_id?: string | null; /** * Whether the trace failed or succeeded. Currently only used to indicate status of individual * transactions. */ status?: 'ok' | 'cancelled' | 'unknown' | 'invalid_argument' | 'deadline_exceeded' | 'not_found' | 'already_exists' | 'permission_denied' | 'resource_exhausted' | 'failed_precondition' | 'aborted' | 'out_of_range' | 'unimplemented' | 'internal_error' | 'unavailable' | 'data_loss' | 'unauthenticated' | null; /** * The trace ID. */ trace_id?: string | null; /** * Type of the context */ type: 'trace'; [key: string]: unknown; } | { /** * Type of the context */ type: 'unity'; [key: string]: unknown; }; } | null; /** * SDK that sent the event */ sdk: { /** * Name of the SDK that sent the event, such as sentry.python */ name: string | null; /** * Version of the SDK */ version: string | null; } | null; /** * Additional data sent with the event in its extra field */ context: { [key: string]: unknown; } | null; /** * Errors Sentry found while processing the event */ errors: Array<{ /** * Type of the processing error, such as invalid_data or js_no_source */ type: string; /** * Human-readable message of the error */ message: string; /** * Details of the error, such as the name of the invalid field. Other keys depend on the error type */ data: { /** * Affected key or path in the event */ name?: string | null; /** * Details of the error from the processor that hit it */ message?: string; /** * URL that couldn't be fetched, such as a source file */ url?: string; /** * Path of the debug image the error is about */ image_path?: string; /** * Name of the debug image the error is about */ image_name?: string; /** * Debug ID of the image the error is about */ image_uuid?: string; /** * CPU architecture of the image the error is about */ image_arch?: string; /** * Error type Symbolicator reported, such as missing_source */ symbolicator_type?: string; /** * Source file or URL the error is about */ source?: string; /** * Source map the error is about */ sourcemap?: string; /** * Line of the location that couldn't be mapped */ row?: number; /** * Column of the location that couldn't be mapped */ column?: number; /** * Time the SDK reported, for clock drift errors */ sdk_time?: string; /** * Time the server received the event, for clock drift errors */ server_time?: string; }; }>; /** * Crash report attachment of the event, if any */ crashFile?: string | null; /** * Function or module that caused the event */ culprit?: string | null; /** * When the event occurred (ISO 8601) */ dateCreated?: string; /** * Grouping hashes calculated for the event */ fingerprints?: Array; /** * Grouping configuration used to group the event */ groupingConfig?: { /** * ID of the grouping config, such as newstyle:2026-01-20 */ id: string; /** * Stack trace rules of the project, as an encoded string */ enhancements: string; }; /** * When the transaction started, as a Unix timestamp in seconds */ startTimestamp?: number; /** * When the transaction ended, as a Unix timestamp in seconds */ endTimestamp?: number; /** * Measurements recorded for the transaction, such as web vitals, keyed by name */ measurements?: { [key: string]: { /** * Measurement value */ value: number; /** * Unit of the measurement, such as millisecond */ unit?: string | null; }; } | null; /** * Span operation breakdowns for the transaction, keyed by breakdown name */ breakdowns?: { [key: string]: { [key: string]: { /** * Measurement value */ value: number; /** * Unit of the measurement, such as millisecond */ unit?: string | null; }; }; } | null; } | { /** * ID of the event */ id: string; /** * Event type, such as error, default or transaction */ 'event.type': string; /** * ID of the issue the event belongs to */ groupID: string | null; /** * ID of the event */ eventID: string; /** * ID of the project the event belongs to */ projectID: string; /** * Event message */ message: string; /** * Event title */ title: string; /** * Source location of the event, such as a file and line */ location: string | null; /** * Function or module that caused the event */ culprit: string | null; /** * User context of the event */ user: { /** * ID the SDK sent for the user */ id?: string | null; /** * Email address of the user */ email?: string | null; /** * Username of the user */ username?: string | null; /** * IP address of the user */ ip_address?: string | null; /** * Name of the user */ name?: string | null; /** * Location of the user, with keys such as country_code, city and region */ geo?: { [key: string]: string; } | null; /** * Extra data the SDK sent about the user */ data?: { [key: string]: unknown; } | null; } | null; /** * Tags attached to the event */ tags: Array<{ /** * Search query that matches this tag's user, such as user.email:"user@example.com". Only set for user tags */ query?: string; /** * Tag key */ key: string; /** * Tag value */ value: string; }>; /** * Platform of the event, such as python or javascript */ platform: string | null; /** * When the event occurred (ISO 8601) */ dateCreated: string; /** * Crash report attachment of the event, if any */ crashFile: string | null; /** * Event metadata */ metadata: { /** * Title of default and issue platform events */ title?: string; /** * Exception value, or the subtitle of an issue */ value?: string; /** * Exception type of error events */ type?: string; /** * Whether the SDK fabricated the exception to carry a stacktrace, so its type is a platform label rather than what went wrong */ synthetic?: boolean; /** * File of the frame where the error happened */ filename?: string; /** * Function of the frame where the error happened */ function?: string; /** * Message of default, security and feedback events */ message?: string; /** * URI that a CSP report blocked */ uri?: string; /** * CSP directive that was violated */ directive?: string; /** * Host name of HPKP, Expect-CT and Expect-Staple reports */ origin?: string; /** * Name of the person who sent user feedback */ name?: string; /** * Email of the person who sent user feedback */ contact_email?: string; /** * Where user feedback came from, such as a widget */ source?: string; /** * Whether the stacktrace has in-app frames, system frames or both */ in_app_frame_mix?: string; /** * Whether a crash report was dropped because the issue already stores the most allowed */ stripped_crash?: boolean; /** * SDK of the issue's first event */ sdk?: { /** * Name of the SDK, or unknown */ name: string; /** * Name of the SDK, normalized for grouping */ name_normalized: string; }; /** * Severity score of the issue's first event */ severity?: number; /** * Why the severity score is what it is */ severity_reason?: string; /** * Priority the issue was created with */ initial_priority?: number; }; } | null; /** * Whether Seer merged the hash into the issue as a similar error */ mergedBySeer: boolean; /** * Distance between the hash's stack trace and the issue's when Seer merged them. Null when Seer didn't merge the hash */ seerMatchDistance: number | null; }>; }; export type ListOrganizationIssueHashesResponse = ListOrganizationIssueHashesResponses[keyof ListOrganizationIssueHashesResponses]; export type ListOrganizationIssueIntegrationsData = { body?: never; path: { /** * The ID or slug of the organization the resource belongs to. */ organization_id_or_slug: string; /** * The ID of the issue you'd like to query. */ issue_id: string; }; query?: { /** * A pointer to the last object fetched and its sort order; used to retrieve the next or previous results. */ cursor?: string; /** * The maximum number of integrations to return per page (1–100). */ per_page?: number; }; url: '/organizations/{organization_id_or_slug}/issues/{issue_id}/integrations/'; }; export type ListOrganizationIssueIntegrationsResponses = { 200: Array<{ /** * ID of the integration */ id: string; /** * Name of the integration, usually the connected account or workspace */ name: string; /** * URL of the connected account's icon */ icon: string | null; /** * Domain of the connected account, such as github.com/example-org */ domainName: string | null; /** * Type of the connected account, such as Organization or User */ accountType: string | null; /** * Permission scopes granted to the integration */ scopes: Array | null; /** * Whether the installation lacks permissions the latest version of the integration needs. Null for providers without a permissions model */ outOfDate: boolean | null; /** * Features the installation can't support because of missing permissions. Null for providers without a permissions model */ missingFeatures: Array<{ /** * Key of the missing feature */ key: string; /** * Description of the missing feature */ description: string; }> | null; /** * Status of the integration */ status: 'active' | 'disabled' | 'pending_deletion' | 'deletion_in_progress'; /** * Integration provider details */ provider: { /** * Key of the integration provider, such as github */ key: string; /** * Slug of the integration provider, same as key */ slug: string; /** * Display name of the integration provider */ name: string; /** * Whether the integration can be installed from Sentry */ canAdd: boolean; /** * Whether the integration must be uninstalled from the provider instead of in Sentry */ canDisable: boolean; /** * Features the integration provider supports, such as issue-basic or commits */ features: Array; /** * Extra provider details shown during setup, such as alerts and configuration instructions */ aspects: { /** * Alerts shown during setup */ alerts?: Array<{ /** * Style of the alert, such as warning */ type: string; /** * Icon shown with the alert, such as icon-warning-sm */ icon: string; /** * Text of the alert, in Markdown */ text: string; }>; /** * Configuration step after install */ configure_integration?: { /** * Title of the configuration step */ title: string; }; /** * Whether the integration is enabled without an install flow */ directEnable?: boolean; /** * Dialog shown before the integration is disabled */ disable_dialog?: { /** * Label of the dialog's confirm button */ actionText: string; /** * Text of the dialog */ body: string; }; /** * Where to install the integration when it's installed outside Sentry */ externalInstall?: { /** * URL to install the integration from, such as a marketplace */ url: string; /** * Label of the install button */ buttonText: string; /** * Notice shown before the user leaves Sentry */ noticeText: string; }; /** * Dialog shown before the integration is removed */ removal_dialog?: { /** * Label of the dialog's confirm button */ actionText: string; /** * Text of the dialog */ body: string; }; }; }; /** * External issues of this integration linked to the issue */ externalIssues: Array<{ /** * ID of the link between the issue and the external issue */ id: string; /** * Key of the external issue in the provider, such as PROJ-123 */ key: string; /** * URL of the external issue */ url: string; /** * Title of the external issue */ title: string | null; /** * Description of the external issue */ description: string | null; /** * Name to show for the external issue, such as owner/repo#1. Empty when the integration doesn't set one */ displayName: string; }>; }>; }; export type ListOrganizationIssueIntegrationsResponse = ListOrganizationIssueIntegrationsResponses[keyof ListOrganizationIssueIntegrationsResponses]; export type DeleteOrganizationIssueIntegrationData = { body?: never; path: { /** * The ID or slug of the organization the resource belongs to. */ organization_id_or_slug: string; /** * The ID of the issue you'd like to query. */ issue_id: string; /** * The ID of the integration installed on the organization. */ integration_id: string; }; query: { /** * The ID of the `ExternalIssue` link to remove. */ externalIssue: number; }; url: '/organizations/{organization_id_or_slug}/issues/{issue_id}/integrations/{integration_id}/'; }; export type DeleteOrganizationIssueIntegrationErrors = { /** * Bad Request */ 400: unknown; /** * Forbidden */ 403: unknown; /** * Not Found */ 404: unknown; /** * DRF's standard error-body shape: `{"detail": str}`. * * Use in `Response[T] | Response[DetailResponse]` annotations on endpoints * whose inline error returns are exactly `Response({"detail": "..."}, status=4xx)`. * Endpoints whose error bodies have richer or different shapes should * declare their own local TypedDicts instead. */ 409: { detail: string; }; }; export type DeleteOrganizationIssueIntegrationError = DeleteOrganizationIssueIntegrationErrors[keyof DeleteOrganizationIssueIntegrationErrors]; export type DeleteOrganizationIssueIntegrationResponses = { /** * No Content */ 204: void; }; export type DeleteOrganizationIssueIntegrationResponse = DeleteOrganizationIssueIntegrationResponses[keyof DeleteOrganizationIssueIntegrationResponses]; export type GetOrganizationIssueIntegrationData = { body?: never; path: { /** * The ID or slug of the organization the resource belongs to. */ organization_id_or_slug: string; /** * The ID of the issue you'd like to query. */ issue_id: string; /** * The ID of the integration installed on the organization. */ integration_id: string; }; query: { /** * Whether to fetch the config for linking an existing external issue (`link`) or creating a new one (`create`). */ action: 'create' | 'link'; }; url: '/organizations/{organization_id_or_slug}/issues/{issue_id}/integrations/{integration_id}/'; }; export type GetOrganizationIssueIntegrationErrors = { /** * Bad Request */ 400: unknown; /** * Unauthorized */ 401: unknown; /** * Forbidden */ 403: unknown; /** * Not Found */ 404: unknown; }; export type GetOrganizationIssueIntegrationResponses = { 200: { /** * ID of the integration */ id: string; /** * Name of the integration, usually the connected account or workspace */ name: string; /** * URL of the connected account's icon */ icon: string | null; /** * Domain of the connected account, such as github.com/example-org */ domainName: string | null; /** * Type of the connected account, such as Organization or User */ accountType: string | null; /** * Permission scopes granted to the integration */ scopes: Array | null; /** * Whether the installation lacks permissions the latest version of the integration needs. Null for providers without a permissions model */ outOfDate: boolean | null; /** * Features the installation can't support because of missing permissions. Null for providers without a permissions model */ missingFeatures: Array<{ /** * Key of the missing feature */ key: string; /** * Description of the missing feature */ description: string; }> | null; /** * Status of the integration */ status: 'active' | 'disabled' | 'pending_deletion' | 'deletion_in_progress'; /** * Integration provider details */ provider: { /** * Key of the integration provider, such as github */ key: string; /** * Slug of the integration provider, same as key */ slug: string; /** * Display name of the integration provider */ name: string; /** * Whether the integration can be installed from Sentry */ canAdd: boolean; /** * Whether the integration must be uninstalled from the provider instead of in Sentry */ canDisable: boolean; /** * Features the integration provider supports, such as issue-basic or commits */ features: Array; /** * Extra provider details shown during setup, such as alerts and configuration instructions */ aspects: { /** * Alerts shown during setup */ alerts?: Array<{ /** * Style of the alert, such as warning */ type: string; /** * Icon shown with the alert, such as icon-warning-sm */ icon: string; /** * Text of the alert, in Markdown */ text: string; }>; /** * Configuration step after install */ configure_integration?: { /** * Title of the configuration step */ title: string; }; /** * Whether the integration is enabled without an install flow */ directEnable?: boolean; /** * Dialog shown before the integration is disabled */ disable_dialog?: { /** * Label of the dialog's confirm button */ actionText: string; /** * Text of the dialog */ body: string; }; /** * Where to install the integration when it's installed outside Sentry */ externalInstall?: { /** * URL to install the integration from, such as a marketplace */ url: string; /** * Label of the install button */ buttonText: string; /** * Notice shown before the user leaves Sentry */ noticeText: string; }; /** * Dialog shown before the integration is removed */ removal_dialog?: { /** * Label of the dialog's confirm button */ actionText: string; /** * Text of the dialog */ body: string; }; }; }; /** * Form fields for linking an existing external issue. Only set when action is link */ linkIssueConfig?: Array<{ /** * Name of the form field */ name: string; /** * Label of the form field */ label: string; /** * Type of the form field, such as string, text, select or boolean */ type: string; /** * Default value of the field */ default?: string | number | boolean | Array | null; /** * Default value of the field, for integrations that use this key */ defaultValue?: string | number | boolean | Array | null; /** * Whether the field is required */ required?: boolean; /** * Options of a select field, as [value, label] pairs */ choices?: Array>; /** * URL that returns the field's options as the user types */ url?: string; /** * Whether changing the field reloads the form */ updatesForm?: boolean; /** * Whether the field accepts more than one value */ multiple?: boolean; /** * Whether a text field grows with its content */ autosize?: boolean; /** * Maximum number of rows of a text field */ maxRows?: number; /** * Maximum length of the value */ maxLength?: number; /** * Help text of the field */ help?: string; /** * Placeholder of the field */ placeholder?: string; /** * Whether the field's options load before the user types */ prefetch?: boolean; /** * Names of the fields whose values the field's options depend on */ dependsOn?: Array; }>; /** * Form fields for creating an external issue. Only set when action is create */ createIssueConfig?: Array<{ /** * Name of the form field */ name: string; /** * Label of the form field */ label: string; /** * Type of the form field, such as string, text, select or boolean */ type: string; /** * Default value of the field */ default?: string | number | boolean | Array | null; /** * Default value of the field, for integrations that use this key */ defaultValue?: string | number | boolean | Array | null; /** * Whether the field is required */ required?: boolean; /** * Options of a select field, as [value, label] pairs */ choices?: Array>; /** * URL that returns the field's options as the user types */ url?: string; /** * Whether changing the field reloads the form */ updatesForm?: boolean; /** * Whether the field accepts more than one value */ multiple?: boolean; /** * Whether a text field grows with its content */ autosize?: boolean; /** * Maximum number of rows of a text field */ maxRows?: number; /** * Maximum length of the value */ maxLength?: number; /** * Help text of the field */ help?: string; /** * Placeholder of the field */ placeholder?: string; /** * Whether the field's options load before the user types */ prefetch?: boolean; /** * Names of the fields whose values the field's options depend on */ dependsOn?: Array; }>; }; }; export type GetOrganizationIssueIntegrationResponse = GetOrganizationIssueIntegrationResponses[keyof GetOrganizationIssueIntegrationResponses]; export type CreateOrganizationIssueIntegrationData = { body: { /** * The title of the external issue to create. */ title: string; /** * The description (body) of the external issue to create. */ description?: string; }; path: { /** * The ID or slug of the organization the resource belongs to. */ organization_id_or_slug: string; /** * The ID of the issue you'd like to query. */ issue_id: string; /** * The ID of the integration installed on the organization. */ integration_id: string; }; query?: never; url: '/organizations/{organization_id_or_slug}/issues/{issue_id}/integrations/{integration_id}/'; }; export type CreateOrganizationIssueIntegrationErrors = { /** * Bad Request */ 400: unknown; /** * Unauthorized */ 401: unknown; /** * Not Found */ 404: unknown; }; export type CreateOrganizationIssueIntegrationResponses = { 201: { /** * ID of the link between the issue and the external issue */ id: number; /** * Key of the external issue in the provider, such as PROJ-123 */ key: string; /** * URL of the external issue */ url: string; /** * ID of the integration */ integrationId: number; /** * Name to show for the external issue, such as owner/repo#1. Empty when the integration doesn't set one */ displayName: string; }; }; export type CreateOrganizationIssueIntegrationResponse = CreateOrganizationIssueIntegrationResponses[keyof CreateOrganizationIssueIntegrationResponses]; export type UpdateOrganizationIssueIntegrationData = { body: { /** * The identifier or full URL of the existing external issue to link. URL support depends on the selected integration. */ externalIssue: string; /** * The repository containing the external issue, in owner/name format. Required by GitHub, GitHub Enterprise, and Bitbucket integrations. */ repo?: string; /** * An optional comment to post to the external issue when linking, if supported by the integration. */ comment?: string; }; path: { /** * The ID or slug of the organization the resource belongs to. */ organization_id_or_slug: string; /** * The ID of the issue you'd like to query. */ issue_id: string; /** * The ID of the integration installed on the organization. */ integration_id: string; }; query?: never; url: '/organizations/{organization_id_or_slug}/issues/{issue_id}/integrations/{integration_id}/'; }; export type UpdateOrganizationIssueIntegrationErrors = { /** * Bad Request */ 400: unknown; /** * Unauthorized */ 401: unknown; /** * Not Found */ 404: unknown; /** * DRF's standard error-body shape: `{"detail": str}`. * * Use in `Response[T] | Response[DetailResponse]` annotations on endpoints * whose inline error returns are exactly `Response({"detail": "..."}, status=4xx)`. * Endpoints whose error bodies have richer or different shapes should * declare their own local TypedDicts instead. */ 409: { detail: string; }; }; export type UpdateOrganizationIssueIntegrationError = UpdateOrganizationIssueIntegrationErrors[keyof UpdateOrganizationIssueIntegrationErrors]; export type UpdateOrganizationIssueIntegrationResponses = { 200: { /** * ID of the link between the issue and the external issue */ id: number; /** * Key of the external issue in the provider, such as PROJ-123 */ key: string; /** * URL of the external issue */ url: string; /** * ID of the integration */ integrationId: number; /** * Name to show for the external issue, such as owner/repo#1. Empty when the integration doesn't set one */ displayName: string; }; 201: { /** * ID of the link between the issue and the external issue */ id: number; /** * Key of the external issue in the provider, such as PROJ-123 */ key: string; /** * URL of the external issue */ url: string; /** * ID of the integration */ integrationId: number; /** * Name to show for the external issue, such as owner/repo#1. Empty when the integration doesn't set one */ displayName: string; }; }; export type UpdateOrganizationIssueIntegrationResponse = UpdateOrganizationIssueIntegrationResponses[keyof UpdateOrganizationIssueIntegrationResponses]; export type GetOrganizationIssueTagData = { body?: never; path: { /** * The ID of the issue you'd like to query. */ issue_id: string; /** * The ID or slug of the organization the resource belongs to. */ organization_id_or_slug: string; /** * The tag key to look the values up for. */ key: string; }; query?: { /** * The name of environments to filter by. */ environment?: Array; }; url: '/organizations/{organization_id_or_slug}/issues/{issue_id}/tags/{key}/'; }; export type GetOrganizationIssueTagErrors = { /** * Bad Request */ 400: unknown; /** * Unauthorized */ 401: unknown; /** * Forbidden */ 403: unknown; /** * Not Found */ 404: unknown; }; export type GetOrganizationIssueTagResponses = { 200: { /** * Number of distinct values seen for the tag key */ uniqueValues?: number | null; /** * Number of events counted for the tag key. For an issue tag, this is the issue's retained event count, including events without the tag */ totalValues?: number | null; /** * Most frequent values of the tag key, ordered by count */ topValues?: Array<{ /** * Search query that matches events with the tag value. Only set for the user tag */ query?: string | null; /** * Tag key, with the `sentry:` prefix removed from built-in keys */ key: string; /** * Display label of the tag value. For the user tag, the `id:`, `email:`, `username:` or `ip:` prefix is removed */ name: string | null; /** * Tag value */ value: string | null; /** * Number of events with the tag value. Null for an empty value */ count: number | null; /** * When the tag value was last seen (ISO 8601). Null for an empty value */ lastSeen: string | null; /** * When the tag value was first seen (ISO 8601). Null for an empty value */ firstSeen: string | null; }> | null; /** * Tag key, with the `sentry:` prefix removed from built-in keys */ key: string; /** * Display label of the tag key */ name: string; }; }; export type GetOrganizationIssueTagResponse = GetOrganizationIssueTagResponses[keyof GetOrganizationIssueTagResponses]; export type ListOrganizationIssueTagValuesData = { body?: never; path: { /** * The ID of the issue you'd like to query. */ issue_id: string; /** * The ID or slug of the organization the resource belongs to. */ organization_id_or_slug: string; /** * The tag key to look the values up for. */ key: string; }; query?: { /** * Sort order of the resulting tag values. Default is `id`. */ sort?: 'age' | 'count' | 'date' | 'id'; /** * The name of environments to filter by. */ environment?: Array; }; url: '/organizations/{organization_id_or_slug}/issues/{issue_id}/tags/{key}/values/'; }; export type ListOrganizationIssueTagValuesErrors = { /** * Bad Request */ 400: unknown; /** * Unauthorized */ 401: unknown; /** * Forbidden */ 403: unknown; /** * Not Found */ 404: unknown; }; export type ListOrganizationIssueTagValuesResponses = { 200: Array<{ /** * Search query that matches events with the tag value. Only set for the user tag */ query?: string | null; /** * Tag key, with the `sentry:` prefix removed from built-in keys */ key: string; /** * Display label of the tag value. For the user tag, the `id:`, `email:`, `username:` or `ip:` prefix is removed */ name: string | null; /** * Tag value */ value: string | null; /** * Number of events with the tag value. Null for an empty value */ count: number | null; /** * When the tag value was last seen (ISO 8601). Null for an empty value */ lastSeen: string | null; /** * When the tag value was first seen (ISO 8601). Null for an empty value */ firstSeen: string | null; }>; }; export type ListOrganizationIssueTagValuesResponse = ListOrganizationIssueTagValuesResponses[keyof ListOrganizationIssueTagValuesResponses]; export type GetOrganizationSharedIssueData = { body?: never; path: { /** * The ID or slug of the organization the resource belongs to. */ organization_id_or_slug: string; /** * The share ID of the issue, from its public share link. */ share_id: string; }; query?: never; url: '/organizations/{organization_id_or_slug}/shared/issues/{share_id}/'; }; export type GetOrganizationSharedIssueErrors = { /** * Not Found */ 404: unknown; }; export type GetOrganizationSharedIssueResponses = { 200: { /** * Function or module where the issue occurs */ culprit: string | null; /** * ID of the issue */ id: string; /** * Whether the issue includes unhandled events. Null when it isn't known */ isUnhandled: boolean | null; /** * Issue category, such as error or performance */ issueCategory: string; /** * URL of the issue in Sentry */ permalink: string; /** * Short ID of the issue, such as PROJECT-1A */ shortId: string | null; /** * Title of the issue */ title: string; /** * Latest event of the issue, without its user, tags, contexts, SDK, extra data, processing errors or breadcrumbs. Null when the issue has no stored event */ latestEvent: { /** * ID of the event */ id: string; /** * ID of the issue the event belongs to */ groupID: string | null; /** * ID of the event */ eventID: string; /** * ID of the project the event belongs to */ projectID: string; /** * Event message */ message: string | null; /** * Event title */ title: string; /** * Source location of the event, such as a file and line */ location: string | null; /** * Platform of the event, such as python or javascript */ platform: string | null; /** * When Sentry received the event (ISO 8601) */ dateReceived: string | null; /** * Size of the event payload in bytes */ size: number | null; /** * Event interfaces, such as exception, breadcrumbs and request, each with a type and data */ entries: Array; /** * Distribution of the release the event was sent with */ dist: string | null; /** * Modules loaded when the event occurred, keyed by module name with their versions */ packages: { [key: string]: string | null; }; /** * Event type, such as error, default or transaction */ type: 'default' | 'error' | 'csp' | 'nel' | 'hpkp' | 'expectct' | 'expectstaple' | 'transaction' | 'generic' | 'feedback'; /** * Event metadata */ metadata: { /** * Title of default and issue platform events */ title?: string; /** * Exception value, or the subtitle of an issue */ value?: string; /** * Exception type of error events */ type?: string; /** * Whether the SDK fabricated the exception to carry a stacktrace, so its type is a platform label rather than what went wrong */ synthetic?: boolean; /** * File of the frame where the error happened */ filename?: string; /** * Function of the frame where the error happened */ function?: string; /** * Message of default, security and feedback events */ message?: string; /** * URI that a CSP report blocked */ uri?: string; /** * CSP directive that was violated */ directive?: string; /** * Host name of HPKP, Expect-CT and Expect-Staple reports */ origin?: string; /** * Name of the person who sent user feedback */ name?: string; /** * Email of the person who sent user feedback */ contact_email?: string; /** * Where user feedback came from, such as a widget */ source?: string; /** * Whether the stacktrace has in-app frames, system frames or both */ in_app_frame_mix?: string; /** * Whether a crash report was dropped because the issue already stores the most allowed */ stripped_crash?: boolean; /** * SDK of the issue's first event */ sdk?: { /** * Name of the SDK, or unknown */ name: string; /** * Name of the SDK, normalized for grouping */ name_normalized: string; }; /** * Severity score of the issue's first event */ severity?: number; /** * Why the severity score is what it is */ severity_reason?: string; /** * Priority the issue was created with */ initial_priority?: number; }; /** * Issue occurrence data for events in non-error issues, such as performance issues. Null otherwise */ occurrence: { /** * ID of the occurrence */ id: string; /** * ID of the project */ projectId: number; /** * ID of the event the occurrence belongs to */ eventId: string; /** * Fingerprint that groups the occurrence into an issue */ fingerprint: Array; /** * Title of the issue */ issueTitle: string; /** * Subtitle of the issue */ subtitle: string; /** * ID of the resource the occurrence is about, such as a monitor. Null when not set */ resourceId: string | null; /** * Evidence to show on the issue */ evidenceDisplay: Array<{ /** * Name of the evidence */ name: string; /** * Value of the evidence */ value: string; /** * Whether to show the evidence first. At most one evidence of an occurrence is important */ important: boolean; }>; /** * When the problem was detected, as a Unix timestamp in seconds */ detectionTime: number; /** * Level of the occurrence, such as error or warning */ level: string | null; /** * Culprit of the occurrence */ culprit: string | null; /** * Actor the issue is assigned to, such as user:1 or team:1 */ assignee: string | null; /** * Initial priority of the issue: 25 low, 50 medium or 75 high */ priority: number | null; /** * Group type ID of metric issues, always 8001 */ type: 8001; /** * Detector and query that created the occurrence */ evidenceData: { /** * ID of the detector that created the occurrence */ detectorId: number; /** * ID of the metric alert rule the detector replaces. Null when there's none */ alertId: number | null; /** * Metric value that triggered the detector, or the anomaly detection result for dynamic detectors */ value: number | { /** * Metric value the anomaly detection model scored */ value: number; /** * ID of the data source that produced the value */ sourceId: string; /** * ID of the query subscription that produced the value */ subscriptionId: string; /** * When the value was measured */ timestamp: string; } | null; /** * ID of the query subscription that sent the data */ dataPacketSourceId: string; /** * Conditions of the detector */ conditions: Array<{ /** * ID of the detector condition */ id: number; /** * Type of the condition, such as gt, lt or anomaly_detection */ type: string; /** * Threshold the value is compared with, or the anomaly detection settings for an anomaly_detection condition */ comparison: number | { /** * How sensitive the anomaly detection is */ sensitivity: 'low' | 'medium' | 'high'; /** * Seasonality the anomaly detection model uses */ seasonality: 'auto' | 'hourly' | 'daily' | 'weekly' | 'hourly_daily' | 'hourly_weekly' | 'hourly_daily_weekly' | 'daily_weekly'; /** * Direction of anomalies to detect: 0 above, 1 below, 2 above and below */ thresholdType: 0 | 1 | 2; }; /** * Priority the detector reports when the condition matches: 0 ok, 25 low, 50 medium or 75 high */ conditionResult: number; }>; /** * Configuration of the detector */ config: { /** * How the detector evaluates the metric: static thresholds, percent change or dynamic anomaly detection */ detectionType: 'static' | 'percent' | 'dynamic'; /** * Time window in seconds that a percent change detector compares with */ comparisonDelta?: number | null; }; /** * Data sources of the detector */ dataSources: Array<{ /** * ID of the data source */ id: string; /** * ID of the organization */ organizationId: string; /** * Type of the data source, such as snuba_query_subscription */ type: string; /** * ID of the source object, such as the query subscription */ sourceId: string; /** * Query subscription the data source reads */ queryObj: { /** * ID of the query subscription */ id: string; /** * Status of the subscription: 0 active, 1 creating, 2 updating, 3 deleting or 4 disabled */ status: number; /** * ID of the subscription in Snuba. Null while it's being created */ subscription: string | null; /** * Query the subscription runs */ snubaQuery: { /** * ID of the query */ id: string; /** * Dataset the query runs on, such as events or events_analytics_platform */ dataset: string; /** * Search query that filters the data */ query: string; /** * Aggregate function the query computes, such as count() */ aggregate: string; /** * Time window of the query in seconds */ timeWindow: number; /** * Environment the query is limited to. Null for all environments */ environment: string | null; /** * Event types the query includes, such as error or transaction */ eventTypes: Array; /** * How sampled data is extrapolated, unknown, none, client_and_server_weighted or server_weighted. Null when not set */ extrapolationMode: string | null; }; }; }>; }; } | { /** * ID of the occurrence */ id: string; /** * ID of the project */ projectId: number; /** * ID of the event the occurrence belongs to */ eventId: string; /** * Fingerprint that groups the occurrence into an issue */ fingerprint: Array; /** * Title of the issue */ issueTitle: string; /** * Subtitle of the issue */ subtitle: string; /** * ID of the resource the occurrence is about, such as a monitor. Null when not set */ resourceId: string | null; /** * Evidence to show on the issue */ evidenceDisplay: Array<{ /** * Name of the evidence */ name: string; /** * Value of the evidence */ value: string; /** * Whether to show the evidence first. At most one evidence of an occurrence is important */ important: boolean; }>; /** * When the problem was detected, as a Unix timestamp in seconds */ detectionTime: number; /** * Level of the occurrence, such as error or warning */ level: string | null; /** * Culprit of the occurrence */ culprit: string | null; /** * Actor the issue is assigned to, such as user:1 or team:1 */ assignee: string | null; /** * Initial priority of the issue: 25 low, 50 medium or 75 high */ priority: number | null; /** * Group type ID of the occurrence */ type: number; /** * Data of the occurrence. Its keys depend on the group type */ evidenceData: { [key: string]: unknown; }; } | null; /** * Metadata about changes Sentry made to the event's fields, such as data scrubbing or trimming */ _meta: { [key: string]: unknown; }; /** * Crash report attachment of the event, if any */ crashFile?: string | null; /** * Function or module that caused the event */ culprit?: string | null; /** * When the event occurred (ISO 8601) */ dateCreated?: string; /** * Grouping hashes calculated for the event */ fingerprints?: Array; /** * Grouping configuration used to group the event */ groupingConfig?: { /** * ID of the grouping config, such as newstyle:2026-01-20 */ id: string; /** * Stack trace rules of the project, as an encoded string */ enhancements: string; }; /** * When the transaction started, as a Unix timestamp in seconds */ startTimestamp?: number; /** * When the transaction ended, as a Unix timestamp in seconds */ endTimestamp?: number; /** * Measurements recorded for the transaction, such as web vitals, keyed by name */ measurements?: { [key: string]: { /** * Measurement value */ value: number; /** * Unit of the measurement, such as millisecond */ unit?: string | null; }; } | null; /** * Span operation breakdowns for the transaction, keyed by breakdown name */ breakdowns?: { [key: string]: { [key: string]: { /** * Measurement value */ value: number; /** * Unit of the measurement, such as millisecond */ unit?: string | null; }; }; } | null; } | null; /** * Project of the issue */ project: { /** * Slug of the project */ slug: string; /** * Name of the project */ name: string; /** * Color of the project, as a hex code such as `#bf6e3f` */ color: string; /** * Always empty for a shared issue's project */ features: Array; /** * Organization the project belongs to */ organization: { /** * Slug of the organization */ slug: string; /** * Name of the organization */ name: string; }; }; }; }; export type GetOrganizationSharedIssueResponse = GetOrganizationSharedIssueResponses[keyof GetOrganizationSharedIssueResponses];