onehook-api-client 1.0.28 → 1.0.30

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (31) hide show
  1. package/README.md +21 -0
  2. package/dist-cjs/OneHook.js +6 -0
  3. package/dist-cjs/commands/GetAccountStateCommand.js +21 -0
  4. package/dist-cjs/commands/RecordSuggestionCommand.js +21 -0
  5. package/dist-cjs/commands/SetAccountStateCommand.js +21 -0
  6. package/dist-cjs/commands/index.js +3 -0
  7. package/dist-cjs/models/models_0.js +36 -1
  8. package/dist-cjs/protocols/Aws_restJson1.js +129 -3
  9. package/dist-cjs/telemetry/index.js +45 -5
  10. package/dist-es/OneHook.js +6 -0
  11. package/dist-es/commands/GetAccountStateCommand.js +17 -0
  12. package/dist-es/commands/RecordSuggestionCommand.js +17 -0
  13. package/dist-es/commands/SetAccountStateCommand.js +17 -0
  14. package/dist-es/commands/index.js +3 -0
  15. package/dist-es/models/models_0.js +34 -0
  16. package/dist-es/protocols/Aws_restJson1.js +121 -1
  17. package/dist-es/telemetry/index.js +44 -4
  18. package/dist-types/OneHook.d.ts +21 -0
  19. package/dist-types/OneHookClient.d.ts +5 -2
  20. package/dist-types/commands/DiscoverCommand.d.ts +18 -2
  21. package/dist-types/commands/GetAccountStateCommand.d.ts +83 -0
  22. package/dist-types/commands/RecordSuggestionCommand.d.ts +83 -0
  23. package/dist-types/commands/SetAccountStateCommand.d.ts +95 -0
  24. package/dist-types/commands/index.d.ts +3 -0
  25. package/dist-types/models/models_0.d.ts +233 -0
  26. package/dist-types/protocols/Aws_restJson1.d.ts +27 -0
  27. package/dist-types/telemetry/index.d.ts +45 -2
  28. package/package.json +1 -1
  29. package/telemetry/TelemetryCatalog.kt +62 -7
  30. package/telemetry/TelemetryCatalog.swift +52 -6
  31. package/telemetry/telemetry-catalog.json +594 -245
@@ -1,5 +1,5 @@
1
- export declare const TELEMETRY_CATALOG_VERSION = "1.4.0";
2
- export declare const TELEMETRY_CATALOG_HASH = "5cf9f7740c92eebe";
1
+ export declare const TELEMETRY_CATALOG_VERSION = "1.7.0";
2
+ export declare const TELEMETRY_CATALOG_HASH = "4a3328962531236a";
3
3
  /** Every signal type the ingest accepts. */
4
4
  export declare const SignalType: {
5
5
  readonly SCREEN_VIEW: "screen_view";
@@ -20,6 +20,7 @@ export declare const SignalType: {
20
20
  readonly HOOKED_STATE_VIEW: "hooked_state_view";
21
21
  readonly LIKES_YOU_VIEW: "likes_you_view";
22
22
  readonly SAFETY_UI_OPEN: "safety_ui_open";
23
+ readonly REPORT_FLOW: "report_flow";
23
24
  };
24
25
  export type SignalType = (typeof SignalType)[keyof typeof SignalType];
25
26
  /** Client platform (from the X-OneHook-Platform header). */
@@ -185,6 +186,45 @@ export declare const HookedStateAction: {
185
186
  readonly DISMISS: "dismiss";
186
187
  };
187
188
  export type HookedStateAction = (typeof HookedStateAction)[keyof typeof HookedStateAction];
189
+ /** Member-report reason category the user chose. Mirrors the backend ReportCategory taxonomy (packages/matching ReportCategory / MODERATION.md section 1) so telemetry segments by the same codes the report API records. Carries no free text. */
190
+ export declare const ReportCategory: {
191
+ readonly HARASSMENT: "HARASSMENT";
192
+ readonly THREATS_VIOLENCE: "THREATS_VIOLENCE";
193
+ readonly SEXUAL_CONTENT_NONCONSENT: "SEXUAL_CONTENT_NONCONSENT";
194
+ readonly MINOR_SAFETY: "MINOR_SAFETY";
195
+ readonly SCAM_FRAUD: "SCAM_FRAUD";
196
+ readonly FAKE_IMPERSONATION: "FAKE_IMPERSONATION";
197
+ readonly SPAM_PROMOTION: "SPAM_PROMOTION";
198
+ readonly HATE: "HATE";
199
+ readonly SELF_HARM_CONCERN: "SELF_HARM_CONCERN";
200
+ readonly OFF_PLATFORM_HARM: "OFF_PLATFORM_HARM";
201
+ readonly OTHER: "OTHER";
202
+ };
203
+ export type ReportCategory = (typeof ReportCategory)[keyof typeof ReportCategory];
204
+ /** Where in the app the member started the report flow from (not the reported content). */
205
+ export declare const ReportSource: {
206
+ readonly CHAT: "chat";
207
+ readonly PROFILE: "profile";
208
+ };
209
+ export type ReportSource = (typeof ReportSource)[keyof typeof ReportSource];
210
+ /** Step in the member-report flow a report_flow signal records. The flow mixes presses, "shown" impressions and upload outcomes, so it is a signal (not a ui_interaction). Carries only the ReportCategory / ReportSource / evidence dimensions — never message text, user ids or report free text. */
211
+ export declare const ReportEvent: {
212
+ readonly REPORT_OPEN: "report.open";
213
+ readonly REPORT_CATEGORY_SELECTED: "report.category_selected";
214
+ readonly REPORT_NOT_REPORTABLE_SHOWN: "report.not_reportable_shown";
215
+ readonly REPORT_NOT_REPORTABLE_BLOCK: "report.not_reportable_block";
216
+ readonly REPORT_SELF_HARM_RESOURCES_SHOWN: "report.self_harm_resources_shown";
217
+ readonly REPORT_EVIDENCE_TOGGLE: "report.evidence_toggle";
218
+ readonly REPORT_ATTACHMENTS_TOGGLE: "report.attachments_toggle";
219
+ readonly REPORT_EVIDENCE_PREVIEW: "report.evidence_preview";
220
+ readonly REPORT_NUDGE_SHOWN: "report.nudge_shown";
221
+ readonly REPORT_SUBMIT_WITH_EVIDENCE: "report.submit_with_evidence";
222
+ readonly REPORT_SUBMIT_WITHOUT_EVIDENCE: "report.submit_without_evidence";
223
+ readonly REPORT_SUBMIT_FAILED: "report.submit_failed";
224
+ readonly REPORT_EVIDENCE_UPLOAD_SUCCEEDED: "report.evidence_upload_succeeded";
225
+ readonly REPORT_EVIDENCE_UPLOAD_FAILED: "report.evidence_upload_failed";
226
+ };
227
+ export type ReportEvent = (typeof ReportEvent)[keyof typeof ReportEvent];
188
228
  /** Registered UI element ids (`<screen>.<subject>`). Use with trackUi / data-track-id. */
189
229
  export declare const UiElement: {
190
230
  readonly NAV_TAB_SELECT: "nav.tab_select";
@@ -240,6 +280,7 @@ export declare const UiElement: {
240
280
  readonly ADMISSIONS_STATUS_REFRESH: "admissions_status.refresh";
241
281
  readonly ADMISSIONS_STATUS_CONTINUE_INVITE: "admissions_status.continue_invite";
242
282
  readonly ADMISSIONS_STATUS_WITHDRAW: "admissions_status.withdraw";
283
+ readonly ADMISSIONS_STATUS_TRAINING_OPT_OUT: "admissions_status.training_opt_out";
243
284
  readonly ONBOARDING_NEXT: "onboarding.next";
244
285
  readonly ONBOARDING_BACK: "onboarding.back";
245
286
  readonly ONBOARDING_FINISH: "onboarding.finish";
@@ -290,6 +331,8 @@ export declare const UiElement: {
290
331
  readonly CHAT_PROFILE_OPEN: "chat.profile_open";
291
332
  readonly CHAT_SAFETY_MENU_OPEN: "chat.safety_menu_open";
292
333
  readonly CHAT_UNMATCH: "chat.unmatch";
334
+ readonly CHAT_REPORT_OPEN: "chat.report_open";
335
+ readonly CHAT_BLOCK_OPEN: "chat.block_open";
293
336
  readonly CHAT_REPORT_SPAM: "chat.report_spam";
294
337
  readonly CHAT_REPORT_BLOCK: "chat.report_block";
295
338
  readonly CHAT_BLOCK_CONFIRM: "chat.block_confirm";
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "onehook-api-client",
3
3
  "description": "OneHook API Client",
4
- "version": "1.0.28",
4
+ "version": "1.0.30",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -1,8 +1,8 @@
1
1
  // GENERATED FILE - DO NOT EDIT.
2
- // telemetry-integrity: sha256 b2132f38e8304ee1cf24db09423818c9cc610d1f9b02171d4c66d864474251aa
2
+ // telemetry-integrity: sha256 fe621b683c87030c3da995991deaf051eecdf7c1bebc9f0436d49281addafe6b
3
3
  // Source of truth: OneHookBackend/packages/telemetry/src/catalog.ts
4
4
  // Regenerate: (OneHookBackend) npm run telemetry:generate && npm run telemetry:sync
5
- // Catalog version 1.4.0, hash 5cf9f7740c92eebe.
5
+ // Catalog version 1.7.0, hash 4a3328962531236a.
6
6
  //
7
7
  // HARD RULE: every user interaction MUST emit ui_interaction with an id from THIS file, and
8
8
  // ids are controlled by the backend. Read TELEMETRY_CONTRACT.txt (printed by every build).
@@ -12,8 +12,8 @@
12
12
  package club.onehook.telemetry
13
13
 
14
14
  object TelemetryCatalog {
15
- const val VERSION = "1.4.0"
16
- const val HASH = "5cf9f7740c92eebe"
15
+ const val VERSION = "1.7.0"
16
+ const val HASH = "4a3328962531236a"
17
17
  /** The only allowed `telemetry-exempt: <category>: <reason>` categories (see the catalog). */
18
18
  val EXEMPT_CATEGORIES: List<String> = listOf("duplicate", "backdrop", "gesture", "continuous", "disabled")
19
19
  }
@@ -37,7 +37,8 @@ enum class TelemetrySignalType(val wire: String) {
37
37
  PROFILE_REVISIT("profile_revisit"),
38
38
  HOOKED_STATE_VIEW("hooked_state_view"),
39
39
  LIKES_YOU_VIEW("likes_you_view"),
40
- SAFETY_UI_OPEN("safety_ui_open");
40
+ SAFETY_UI_OPEN("safety_ui_open"),
41
+ REPORT_FLOW("report_flow");
41
42
 
42
43
  companion object {
43
44
  fun fromWire(wire: String): TelemetrySignalType? = entries.firstOrNull { it.wire == wire }
@@ -226,6 +227,57 @@ enum class TelemetryHookedStateAction(val wire: String) {
226
227
  }
227
228
  }
228
229
 
230
+ /** Member-report reason category the user chose. Mirrors the backend ReportCategory taxonomy (packages/matching ReportCategory / MODERATION.md section 1) so telemetry segments by the same codes the report API records. Carries no free text. */
231
+ enum class TelemetryReportCategory(val wire: String) {
232
+ HARASSMENT("HARASSMENT"),
233
+ THREATS_VIOLENCE("THREATS_VIOLENCE"),
234
+ SEXUAL_CONTENT_NONCONSENT("SEXUAL_CONTENT_NONCONSENT"),
235
+ MINOR_SAFETY("MINOR_SAFETY"),
236
+ SCAM_FRAUD("SCAM_FRAUD"),
237
+ FAKE_IMPERSONATION("FAKE_IMPERSONATION"),
238
+ SPAM_PROMOTION("SPAM_PROMOTION"),
239
+ HATE("HATE"),
240
+ SELF_HARM_CONCERN("SELF_HARM_CONCERN"),
241
+ OFF_PLATFORM_HARM("OFF_PLATFORM_HARM"),
242
+ OTHER("OTHER");
243
+
244
+ companion object {
245
+ fun fromWire(wire: String): TelemetryReportCategory? = entries.firstOrNull { it.wire == wire }
246
+ }
247
+ }
248
+
249
+ /** Where in the app the member started the report flow from (not the reported content). */
250
+ enum class TelemetryReportSource(val wire: String) {
251
+ CHAT("chat"),
252
+ PROFILE("profile");
253
+
254
+ companion object {
255
+ fun fromWire(wire: String): TelemetryReportSource? = entries.firstOrNull { it.wire == wire }
256
+ }
257
+ }
258
+
259
+ /** Step in the member-report flow a report_flow signal records. The flow mixes presses, "shown" impressions and upload outcomes, so it is a signal (not a ui_interaction). Carries only the ReportCategory / ReportSource / evidence dimensions — never message text, user ids or report free text. */
260
+ enum class TelemetryReportEvent(val wire: String) {
261
+ REPORT_OPEN("report.open"),
262
+ REPORT_CATEGORY_SELECTED("report.category_selected"),
263
+ REPORT_NOT_REPORTABLE_SHOWN("report.not_reportable_shown"),
264
+ REPORT_NOT_REPORTABLE_BLOCK("report.not_reportable_block"),
265
+ REPORT_SELF_HARM_RESOURCES_SHOWN("report.self_harm_resources_shown"),
266
+ REPORT_EVIDENCE_TOGGLE("report.evidence_toggle"),
267
+ REPORT_ATTACHMENTS_TOGGLE("report.attachments_toggle"),
268
+ REPORT_EVIDENCE_PREVIEW("report.evidence_preview"),
269
+ REPORT_NUDGE_SHOWN("report.nudge_shown"),
270
+ REPORT_SUBMIT_WITH_EVIDENCE("report.submit_with_evidence"),
271
+ REPORT_SUBMIT_WITHOUT_EVIDENCE("report.submit_without_evidence"),
272
+ REPORT_SUBMIT_FAILED("report.submit_failed"),
273
+ REPORT_EVIDENCE_UPLOAD_SUCCEEDED("report.evidence_upload_succeeded"),
274
+ REPORT_EVIDENCE_UPLOAD_FAILED("report.evidence_upload_failed");
275
+
276
+ companion object {
277
+ fun fromWire(wire: String): TelemetryReportEvent? = entries.firstOrNull { it.wire == wire }
278
+ }
279
+ }
280
+
229
281
  /** Registered UI element ids (`<screen>.<subject>`). Track with `OneHookAnalytics.trackUi(...)`. */
230
282
  enum class UiElement(
231
283
  val id: String,
@@ -291,6 +343,7 @@ enum class UiElement(
291
343
  ADMISSIONS_STATUS_REFRESH("admissions_status.refresh", TelemetryScreen.ADMISSIONS_STATUS, UiElementKind.BUTTON, listOf(UiAction.TAP), null, listOf(TelemetryPlatform.IOS, TelemetryPlatform.ANDROID)),
292
344
  ADMISSIONS_STATUS_CONTINUE_INVITE("admissions_status.continue_invite", TelemetryScreen.ADMISSIONS_STATUS, UiElementKind.BUTTON, listOf(UiAction.TAP), null, listOf(TelemetryPlatform.IOS, TelemetryPlatform.ANDROID)),
293
345
  ADMISSIONS_STATUS_WITHDRAW("admissions_status.withdraw", TelemetryScreen.ADMISSIONS_STATUS, UiElementKind.BUTTON, listOf(UiAction.TAP), null, listOf(TelemetryPlatform.IOS, TelemetryPlatform.ANDROID)),
346
+ ADMISSIONS_STATUS_TRAINING_OPT_OUT("admissions_status.training_opt_out", TelemetryScreen.ADMISSIONS_STATUS, UiElementKind.BUTTON, listOf(UiAction.TAP), null, listOf(TelemetryPlatform.IOS, TelemetryPlatform.ANDROID)),
294
347
  ONBOARDING_NEXT("onboarding.next", TelemetryScreen.ONBOARDING, UiElementKind.BUTTON, listOf(UiAction.SUBMIT), listOf("basics", "photos", "media", "prompts", "details"), listOf(TelemetryPlatform.WEB, TelemetryPlatform.IOS)),
295
348
  ONBOARDING_BACK("onboarding.back", TelemetryScreen.ONBOARDING, UiElementKind.BUTTON, listOf(UiAction.TAP), null, listOf(TelemetryPlatform.WEB, TelemetryPlatform.IOS)),
296
349
  ONBOARDING_FINISH("onboarding.finish", TelemetryScreen.ONBOARDING, UiElementKind.BUTTON, listOf(UiAction.SUBMIT), null, listOf(TelemetryPlatform.WEB, TelemetryPlatform.IOS, TelemetryPlatform.ANDROID)),
@@ -341,8 +394,10 @@ enum class UiElement(
341
394
  CHAT_PROFILE_OPEN("chat.profile_open", TelemetryScreen.CHAT, UiElementKind.BUTTON, listOf(UiAction.TAP, UiAction.DISMISS), null, listOf(TelemetryPlatform.WEB, TelemetryPlatform.IOS, TelemetryPlatform.ANDROID)),
342
395
  CHAT_SAFETY_MENU_OPEN("chat.safety_menu_open", TelemetryScreen.CHAT, UiElementKind.BUTTON, listOf(UiAction.TAP, UiAction.DISMISS), null, listOf(TelemetryPlatform.WEB, TelemetryPlatform.IOS, TelemetryPlatform.ANDROID)),
343
396
  CHAT_UNMATCH("chat.unmatch", TelemetryScreen.CHAT, UiElementKind.MENU_ITEM, listOf(UiAction.TAP), null, listOf(TelemetryPlatform.IOS, TelemetryPlatform.ANDROID)),
344
- CHAT_REPORT_SPAM("chat.report_spam", TelemetryScreen.CHAT, UiElementKind.MENU_ITEM, listOf(UiAction.TAP), null, listOf(TelemetryPlatform.WEB, TelemetryPlatform.IOS, TelemetryPlatform.ANDROID)),
345
- CHAT_REPORT_BLOCK("chat.report_block", TelemetryScreen.CHAT, UiElementKind.MENU_ITEM, listOf(UiAction.TAP), null, listOf(TelemetryPlatform.WEB, TelemetryPlatform.IOS, TelemetryPlatform.ANDROID)),
397
+ CHAT_REPORT_OPEN("chat.report_open", TelemetryScreen.CHAT, UiElementKind.MENU_ITEM, listOf(UiAction.TAP), null, listOf(TelemetryPlatform.WEB, TelemetryPlatform.IOS, TelemetryPlatform.ANDROID)),
398
+ CHAT_BLOCK_OPEN("chat.block_open", TelemetryScreen.CHAT, UiElementKind.MENU_ITEM, listOf(UiAction.TAP), null, listOf(TelemetryPlatform.WEB, TelemetryPlatform.IOS, TelemetryPlatform.ANDROID)),
399
+ CHAT_REPORT_SPAM("chat.report_spam", TelemetryScreen.CHAT, UiElementKind.MENU_ITEM, listOf(UiAction.TAP), null, listOf()),
400
+ CHAT_REPORT_BLOCK("chat.report_block", TelemetryScreen.CHAT, UiElementKind.MENU_ITEM, listOf(UiAction.TAP), null, listOf()),
346
401
  CHAT_BLOCK_CONFIRM("chat.block_confirm", TelemetryScreen.CHAT, UiElementKind.DIALOG_BUTTON, listOf(UiAction.TAP, UiAction.DISMISS), null, listOf(TelemetryPlatform.WEB, TelemetryPlatform.IOS, TelemetryPlatform.ANDROID)),
347
402
  CHAT_SETTINGS_OPEN("chat.settings_open", TelemetryScreen.CHAT, UiElementKind.BUTTON, listOf(UiAction.TAP, UiAction.DISMISS), null, listOf(TelemetryPlatform.WEB, TelemetryPlatform.IOS)),
348
403
  CHAT_WALLPAPER_OPEN("chat.wallpaper_open", TelemetryScreen.CHAT, UiElementKind.MENU_ITEM, listOf(UiAction.TAP, UiAction.DISMISS), null, listOf(TelemetryPlatform.WEB)),
@@ -1,8 +1,8 @@
1
1
  // GENERATED FILE - DO NOT EDIT.
2
- // telemetry-integrity: sha256 b7b58bab688dee924a7c76fea46d4058a3e3e69c44043f9c86aa74d01e50c520
2
+ // telemetry-integrity: sha256 538edb7a38421501aed60248034c2f0b322a7974de5f7be9162d2605f9d67a1e
3
3
  // Source of truth: OneHookBackend/packages/telemetry/src/catalog.ts
4
4
  // Regenerate: (OneHookBackend) npm run telemetry:generate && npm run telemetry:sync
5
- // Catalog version 1.4.0, hash 5cf9f7740c92eebe.
5
+ // Catalog version 1.7.0, hash 4a3328962531236a.
6
6
  //
7
7
  // HARD RULE: every user interaction MUST emit ui_interaction with an id from THIS file, and
8
8
  // ids are controlled by the backend. Read TELEMETRY_CONTRACT.txt (printed by every build).
@@ -10,8 +10,8 @@
10
10
  import Foundation
11
11
 
12
12
  public enum TelemetryCatalog {
13
- public static let version = "1.4.0"
14
- public static let hash = "5cf9f7740c92eebe"
13
+ public static let version = "1.7.0"
14
+ public static let hash = "4a3328962531236a"
15
15
  /// The only allowed `telemetry-exempt: <category>: <reason>` categories (see the catalog).
16
16
  public static let exemptCategories: [String] = ["duplicate", "backdrop", "gesture", "continuous", "disabled"]
17
17
  }
@@ -36,6 +36,7 @@ public enum TelemetrySignalType: String, CaseIterable, Codable, Sendable {
36
36
  case hookedStateView = "hooked_state_view"
37
37
  case likesYouView = "likes_you_view"
38
38
  case safetyUiOpen = "safety_ui_open"
39
+ case reportFlow = "report_flow"
39
40
  }
40
41
 
41
42
  /// Client platform (from the X-OneHook-Platform header).
@@ -174,6 +175,45 @@ public enum TelemetryHookedStateAction: String, CaseIterable, Codable, Sendable
174
175
  case dismiss = "dismiss"
175
176
  }
176
177
 
178
+ /// Member-report reason category the user chose. Mirrors the backend ReportCategory taxonomy (packages/matching ReportCategory / MODERATION.md section 1) so telemetry segments by the same codes the report API records. Carries no free text.
179
+ public enum TelemetryReportCategory: String, CaseIterable, Codable, Sendable {
180
+ case harassment = "HARASSMENT"
181
+ case threatsViolence = "THREATS_VIOLENCE"
182
+ case sexualContentNonconsent = "SEXUAL_CONTENT_NONCONSENT"
183
+ case minorSafety = "MINOR_SAFETY"
184
+ case scamFraud = "SCAM_FRAUD"
185
+ case fakeImpersonation = "FAKE_IMPERSONATION"
186
+ case spamPromotion = "SPAM_PROMOTION"
187
+ case hate = "HATE"
188
+ case selfHarmConcern = "SELF_HARM_CONCERN"
189
+ case offPlatformHarm = "OFF_PLATFORM_HARM"
190
+ case other = "OTHER"
191
+ }
192
+
193
+ /// Where in the app the member started the report flow from (not the reported content).
194
+ public enum TelemetryReportSource: String, CaseIterable, Codable, Sendable {
195
+ case chat = "chat"
196
+ case profile = "profile"
197
+ }
198
+
199
+ /// Step in the member-report flow a report_flow signal records. The flow mixes presses, "shown" impressions and upload outcomes, so it is a signal (not a ui_interaction). Carries only the ReportCategory / ReportSource / evidence dimensions — never message text, user ids or report free text.
200
+ public enum TelemetryReportEvent: String, CaseIterable, Codable, Sendable {
201
+ case reportOpen = "report.open"
202
+ case reportCategorySelected = "report.category_selected"
203
+ case reportNotReportableShown = "report.not_reportable_shown"
204
+ case reportNotReportableBlock = "report.not_reportable_block"
205
+ case reportSelfHarmResourcesShown = "report.self_harm_resources_shown"
206
+ case reportEvidenceToggle = "report.evidence_toggle"
207
+ case reportAttachmentsToggle = "report.attachments_toggle"
208
+ case reportEvidencePreview = "report.evidence_preview"
209
+ case reportNudgeShown = "report.nudge_shown"
210
+ case reportSubmitWithEvidence = "report.submit_with_evidence"
211
+ case reportSubmitWithoutEvidence = "report.submit_without_evidence"
212
+ case reportSubmitFailed = "report.submit_failed"
213
+ case reportEvidenceUploadSucceeded = "report.evidence_upload_succeeded"
214
+ case reportEvidenceUploadFailed = "report.evidence_upload_failed"
215
+ }
216
+
177
217
  /// Static metadata of a registered UI element.
178
218
  public struct UiElementSpec: Sendable, Equatable {
179
219
  public let screen: TelemetryScreen
@@ -241,6 +281,7 @@ public enum UiElement: String, CaseIterable, Codable, Sendable {
241
281
  case admissionsStatusRefresh = "admissions_status.refresh"
242
282
  case admissionsStatusContinueInvite = "admissions_status.continue_invite"
243
283
  case admissionsStatusWithdraw = "admissions_status.withdraw"
284
+ case admissionsStatusTrainingOptOut = "admissions_status.training_opt_out"
244
285
  case onboardingNext = "onboarding.next"
245
286
  case onboardingBack = "onboarding.back"
246
287
  case onboardingFinish = "onboarding.finish"
@@ -291,6 +332,8 @@ public enum UiElement: String, CaseIterable, Codable, Sendable {
291
332
  case chatProfileOpen = "chat.profile_open"
292
333
  case chatSafetyMenuOpen = "chat.safety_menu_open"
293
334
  case chatUnmatch = "chat.unmatch"
335
+ case chatReportOpen = "chat.report_open"
336
+ case chatBlockOpen = "chat.block_open"
294
337
  case chatReportSpam = "chat.report_spam"
295
338
  case chatReportBlock = "chat.report_block"
296
339
  case chatBlockConfirm = "chat.block_confirm"
@@ -482,6 +525,7 @@ public enum UiElement: String, CaseIterable, Codable, Sendable {
482
525
  case .admissionsStatusRefresh: return UiElementSpec(screen: .admissionsStatus, kind: .button, actions: [.tap], allowedValues: nil, platforms: [.ios, .android])
483
526
  case .admissionsStatusContinueInvite: return UiElementSpec(screen: .admissionsStatus, kind: .button, actions: [.tap], allowedValues: nil, platforms: [.ios, .android])
484
527
  case .admissionsStatusWithdraw: return UiElementSpec(screen: .admissionsStatus, kind: .button, actions: [.tap], allowedValues: nil, platforms: [.ios, .android])
528
+ case .admissionsStatusTrainingOptOut: return UiElementSpec(screen: .admissionsStatus, kind: .button, actions: [.tap], allowedValues: nil, platforms: [.ios, .android])
485
529
  case .onboardingNext: return UiElementSpec(screen: .onboarding, kind: .button, actions: [.submit], allowedValues: ["basics", "photos", "media", "prompts", "details"], platforms: [.web, .ios])
486
530
  case .onboardingBack: return UiElementSpec(screen: .onboarding, kind: .button, actions: [.tap], allowedValues: nil, platforms: [.web, .ios])
487
531
  case .onboardingFinish: return UiElementSpec(screen: .onboarding, kind: .button, actions: [.submit], allowedValues: nil, platforms: [.web, .ios, .android])
@@ -532,8 +576,10 @@ public enum UiElement: String, CaseIterable, Codable, Sendable {
532
576
  case .chatProfileOpen: return UiElementSpec(screen: .chat, kind: .button, actions: [.tap, .dismiss], allowedValues: nil, platforms: [.web, .ios, .android])
533
577
  case .chatSafetyMenuOpen: return UiElementSpec(screen: .chat, kind: .button, actions: [.tap, .dismiss], allowedValues: nil, platforms: [.web, .ios, .android])
534
578
  case .chatUnmatch: return UiElementSpec(screen: .chat, kind: .menuItem, actions: [.tap], allowedValues: nil, platforms: [.ios, .android])
535
- case .chatReportSpam: return UiElementSpec(screen: .chat, kind: .menuItem, actions: [.tap], allowedValues: nil, platforms: [.web, .ios, .android])
536
- case .chatReportBlock: return UiElementSpec(screen: .chat, kind: .menuItem, actions: [.tap], allowedValues: nil, platforms: [.web, .ios, .android])
579
+ case .chatReportOpen: return UiElementSpec(screen: .chat, kind: .menuItem, actions: [.tap], allowedValues: nil, platforms: [.web, .ios, .android])
580
+ case .chatBlockOpen: return UiElementSpec(screen: .chat, kind: .menuItem, actions: [.tap], allowedValues: nil, platforms: [.web, .ios, .android])
581
+ case .chatReportSpam: return UiElementSpec(screen: .chat, kind: .menuItem, actions: [.tap], allowedValues: nil, platforms: [])
582
+ case .chatReportBlock: return UiElementSpec(screen: .chat, kind: .menuItem, actions: [.tap], allowedValues: nil, platforms: [])
537
583
  case .chatBlockConfirm: return UiElementSpec(screen: .chat, kind: .dialogButton, actions: [.tap, .dismiss], allowedValues: nil, platforms: [.web, .ios, .android])
538
584
  case .chatSettingsOpen: return UiElementSpec(screen: .chat, kind: .button, actions: [.tap, .dismiss], allowedValues: nil, platforms: [.web, .ios])
539
585
  case .chatWallpaperOpen: return UiElementSpec(screen: .chat, kind: .menuItem, actions: [.tap, .dismiss], allowedValues: nil, platforms: [.web])