* * @author Kate Döen * * @license GNU AGPL version 3 or any later version * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as * published by the Free Software Foundation, either version 3 of the * License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Affero General Public License for more details. * * You should have received a copy of the GNU Affero General Public License * along with this program. If not, see . * */ namespace OCA\Provisioning_API; /** * @psalm-type ProvisioningApiUserDetailsQuota = array{ * free?: float|int, * quota?: float|int|string, * relative?: float|int, * total?: float|int, * used?: float|int, * } * * @psalm-type ProvisioningApiUserDetails = array{ * additional_mail: string[], * additional_mailScope?: string[], * address: string, * addressScope?: string, * avatarScope?: string, * backend: string, * backendCapabilities: array{ * setDisplayName: bool, * setPassword: bool * }, * biography: string, * biographyScope?: string, * display-name: string, * displayname: string, * displaynameScope?: string, * email: ?string, * emailScope?: string, * enabled?: bool, * fediverse: string, * fediverseScope?: string, * groups: string[], * headline: string, * headlineScope?: string, * id: string, * language: string, * lastLogin: int, * locale: string, * manager: string, * notify_email: ?string, * organisation: string, * organisationScope?: string, * phone: string, * phoneScope?: string, * profile_enabled: string, * profile_enabledScope?: string, * quota: ProvisioningApiUserDetailsQuota, * role: string, * roleScope?: string, * storageLocation?: string, * subadmin: string[], * twitter: string, * twitterScope?: string, * website: string, * websiteScope?: string, * } * * @psalm-type ProvisioningApiAppInfo = array{ * active: bool|null, * activity: ?mixed, * author: ?mixed, * background-jobs: ?mixed, * bugs: ?mixed, * category: ?mixed, * collaboration: ?mixed, * commands: ?mixed, * default_enable: ?mixed, * dependencies: ?mixed, * description: string, * discussion: ?mixed, * documentation: ?mixed, * groups: ?mixed, * id: string, * info: ?mixed, * internal: bool|null, * level: int|null, * licence: ?mixed, * name: string, * namespace: ?mixed, * navigations: ?mixed, * preview: ?mixed, * previewAsIcon: bool|null, * public: ?mixed, * remote: ?mixed, * removable: bool|null, * repair-steps: ?mixed, * repository: ?mixed, * sabre: ?mixed, * screenshot: ?mixed, * settings: ?mixed, * summary: string, * trash: ?mixed, * two-factor-providers: ?mixed, * types: ?mixed, * version: string, * versions: ?mixed, * website: ?mixed, * } * * @psalm-type ProvisioningApiGroupDetails = array{ * id: string, * displayname: string, * usercount: bool|int, * disabled: bool|int, * canAdd: bool, * canRemove: bool, * } */ class ResponseDefinitions { }