33 lines
1.2 KiB
YAML
33 lines
1.2 KiB
YAML
|
|
# =====================================================================
|
||
|
|
# Studio Events — published by Studio Service
|
||
|
|
# =====================================================================
|
||
|
|
events:
|
||
|
|
|
||
|
|
studio.project.saved.v1:
|
||
|
|
routing_key: studio.project.saved.v1
|
||
|
|
description: User saved their project (used to trigger autosave events, analytics).
|
||
|
|
payload:
|
||
|
|
type: object
|
||
|
|
required: [saved_project_id, user_id]
|
||
|
|
properties:
|
||
|
|
saved_project_id: { type: string, format: uuid }
|
||
|
|
tenant_id: { type: string, format: uuid }
|
||
|
|
user_id: { type: string, format: uuid }
|
||
|
|
original_project_id: { type: string, format: uuid }
|
||
|
|
name: { type: string }
|
||
|
|
choose_mode: { type: string }
|
||
|
|
scene_count: { type: integer }
|
||
|
|
is_first_save: { type: boolean }
|
||
|
|
|
||
|
|
studio.project.deleted.v1:
|
||
|
|
routing_key: studio.project.deleted.v1
|
||
|
|
description: User deleted a saved project (moved to trash or hard-deleted).
|
||
|
|
payload:
|
||
|
|
type: object
|
||
|
|
required: [saved_project_id, user_id, hard_delete]
|
||
|
|
properties:
|
||
|
|
saved_project_id: { type: string, format: uuid }
|
||
|
|
tenant_id: { type: string, format: uuid }
|
||
|
|
user_id: { type: string, format: uuid }
|
||
|
|
hard_delete: { type: boolean }
|