feat: PHP SDK update for version 23.1.1#70
Conversation
`Database.policies` was typed `list<Index>` and `archives` `list<Collection>` — the strict `IndexStatus` enum then threw `Unknown IndexStatus value: ''` when a Database's serialized `policies` (a backup policy, no `status`) was parsed, breaking any client reading `database.policies` (e.g. Appwrite→Appwrite migrations, whose source database listing parses the typed `Database` model). Matches the corrected `$ref` in the appwrite spec (`backupPolicy`/`backupArchive`).
Greptile SummaryThis PR is a regenerated SDK bump to version 23.1.1. The headline fix corrects
Confidence Score: 5/5Safe to merge — the core hydration fix is targeted and correct, and all new service methods follow established patterns. The No files require special attention; Important Files Changed
Reviews (3): Last reviewed commit: "docs: expand 23.1.1 changelog with full ..." | Re-trigger Greptile |
This PR updates the PHP SDK to version 23.1.1, regenerated from the Appwrite Cloud spec (cloud branch
backup-migration-multitype).What's Changed
Databasemodelpoliciesandarchivesnow hydrate asBackupPolicy/BackupArchiveinstead ofIndex/Collectionbigintcreate/update APIs for legacy Databases attributes andTablesDBcolumnsOAuth2GooglePrompt/Promptenums andpromptsupport onupdateOAuth2GoogleupdateDenyCanonicalEmailPolicy/updateDenyDisposableEmailPolicy/updateDenyFreeEmailPolicyProject endpointsBuildRuntime/Runtimeenumskey,resourceType,resourceId,secretWhy the
DatabasefixThe
Databaseresponse model previously declaredpolicieswith theIndexschema andarchiveswith theCollectionschema. The server therefore serialised backup-policy/archive documents through the wrong shape — emptystatusstrings — which brokeDatabase::from()hydration (IndexStatus::from('')throws), aborting the Appwrite→Appwrite migrationdatabaseresource report/transfer for any project that has a backup policy.Version bump (
23.1.0→23.1.1) and changelog included so the release is tag-ready on merge. Supersedes #69.