appwrite/app/init
Damodar Lohani 27370b6acb feat!: rename ACTIVITY_TYPE_* constants to ACTOR_TYPE_*
Renames the actor identity constants used by the audit/auth flow:

- ACTIVITY_TYPE_USER             -> ACTOR_TYPE_USER             ('user')
- ACTIVITY_TYPE_ADMIN            -> ACTOR_TYPE_ADMIN            ('admin')
- ACTIVITY_TYPE_GUEST            -> ACTOR_TYPE_GUEST            ('guest')
- ACTIVITY_TYPE_KEY_PROJECT      -> ACTOR_TYPE_KEY_PROJECT      ('keyProject')
- ACTIVITY_TYPE_KEY_ACCOUNT      -> ACTOR_TYPE_KEY_ACCOUNT      ('keyAccount')
- ACTIVITY_TYPE_KEY_ORGANIZATION -> ACTOR_TYPE_KEY_ORGANIZATION ('keyOrganization')

Values are unchanged. Call sites updated in:
- app/controllers/shared/api.php
- src/Appwrite/Platform/Workers/Audits.php

Audit payload key rename (userType -> actorType) and utopia-php/audit
bump will land in a follow-up PR.

BREAKING CHANGE: ACTIVITY_TYPE_* global constants are removed. Any
downstream extension or plugin importing those names must be updated
to the ACTOR_TYPE_* equivalents.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-24 02:20:17 +00:00
..
database (refactor): inline CTAs as JSON on insights collection 2026-05-13 17:10:33 +12:00
realtime feat: add query param fallback for all impersonation params and simplify tests 2026-04-28 19:10:55 +05:30
resources chore: migrate to utopia-php/http feat-safe-wildcards 2026-05-21 21:09:41 +01:00
worker Consolidate shared DI resources 2026-05-18 16:16:23 +05:30
configs.php Implement new endpoints in /v1/project for services and protocols 2026-04-09 15:45:06 +02:00
constants.php feat!: rename ACTIVITY_TYPE_* constants to ACTOR_TYPE_* 2026-05-24 02:20:17 +00:00
locales.php Fixed format 2025-03-15 14:17:47 +01:00
models.php Merge branch '1.9.x' into feat-public-organization-api 2026-05-19 17:20:33 +02:00
registers.php Merge branch '1.9.x' into presence-api 2026-05-18 11:09:55 +05:30
resources.php Consolidate shared DI resources 2026-05-18 16:16:23 +05:30
span.php chore: normalize Span keys and centralize span lifecycle 2026-05-13 10:29:42 +01:00