1446 lines
No EOL
50 KiB
PHP
1446 lines
No EOL
50 KiB
PHP
<?php
|
|
|
|
use Database\Database;
|
|
|
|
return [
|
|
'console' => [
|
|
'$uid' => 'console',
|
|
'$collection' => 'projects',
|
|
'$permissions' => ['read' => ['*']],
|
|
'name' => 'Appwrite',
|
|
'description' => 'Appwrite core engine',
|
|
'logo' => '',
|
|
'teamId' => -1,
|
|
'webhooks' => [],
|
|
'keys' => [],
|
|
'platforms' => [
|
|
[
|
|
'$collection' => Database::SYSTEM_COLLECTION_PLATFORMS,
|
|
'name' => 'Production',
|
|
'type' => 'web',
|
|
'url' => 'https://appwrite.io',
|
|
],
|
|
[
|
|
'$collection' => Database::SYSTEM_COLLECTION_PLATFORMS,
|
|
'name' => 'Development (SSL)',
|
|
'type' => 'web',
|
|
'url' => 'https://appwrite.test',
|
|
],
|
|
[
|
|
'$collection' => Database::SYSTEM_COLLECTION_PLATFORMS,
|
|
'name' => 'Development (Non-SSL)',
|
|
'type' => 'web',
|
|
'url' => 'http://appwrite.test',
|
|
],
|
|
[
|
|
'$collection' => Database::SYSTEM_COLLECTION_PLATFORMS,
|
|
'name' => 'Localhost (SSL)',
|
|
'type' => 'web',
|
|
'url' => 'https://localhost',
|
|
],
|
|
[
|
|
'$collection' => Database::SYSTEM_COLLECTION_PLATFORMS,
|
|
'name' => 'Localhost (Non-SSL)',
|
|
'type' => 'web',
|
|
'url' => 'http://localhost',
|
|
],
|
|
],
|
|
'legalName' => '',
|
|
'legalCountry' => '',
|
|
'legalState' => '',
|
|
'legalCity' => '',
|
|
'legalAddress' => '',
|
|
'legalTaxId' => '',
|
|
// 'usersOauthBitbucketAppid' => '',
|
|
// 'usersOauthBitbucketSecret' => '',
|
|
'usersOauthFacebookAppid' => '',
|
|
'usersOauthFacebookSecret' => '',
|
|
'usersOauthGithubAppid' => '',
|
|
'usersOauthGithubSecret' => '',
|
|
// 'usersOauthGitlabAppid' => '',
|
|
// 'usersOauthGitlabSecret' => '',
|
|
// 'usersOauthGoogleAppid' => '',
|
|
// 'usersOauthGoogleSecret' => '',
|
|
// 'usersOauthInstagramAppid' => '',
|
|
// 'usersOauthInstagramSecret' => '',
|
|
'usersOauthLinkedinAppid' => '',
|
|
'usersOauthLinkedinSecret' => '',
|
|
// 'usersOauthMicrosoftAppid' => '',
|
|
// 'usersOauthMicrosoftSecret' => '',
|
|
// 'usersOauthTwitterAppid' => '',
|
|
// 'usersOauthTwitterSecret' => '',
|
|
],
|
|
Database::SYSTEM_COLLECTION_COLLECTIONS => [
|
|
'$collection' => Database::SYSTEM_COLLECTION_COLLECTIONS,
|
|
'$uid' => Database::SYSTEM_COLLECTION_COLLECTIONS,
|
|
'$permissions' => ['read' => ['*']],
|
|
'name' => 'Collections',
|
|
'structure' => true,
|
|
'rules' => [
|
|
[
|
|
'$collection' => Database::SYSTEM_COLLECTION_RULES,
|
|
'label' => 'Name',
|
|
'key' => 'name',
|
|
'type' => 'text',
|
|
'default' => '',
|
|
'required' => true,
|
|
'array' => false,
|
|
],
|
|
[
|
|
'$collection' => Database::SYSTEM_COLLECTION_RULES,
|
|
'label' => 'Date Created',
|
|
'key' => 'dateCreated',
|
|
'type' => 'numeric',
|
|
'default' => 0,
|
|
'required' => false,
|
|
'array' => false,
|
|
],
|
|
[
|
|
'$collection' => Database::SYSTEM_COLLECTION_RULES,
|
|
'label' => 'Date Updated',
|
|
'key' => 'dateUpdated',
|
|
'type' => 'numeric',
|
|
'default' => 0,
|
|
'required' => false,
|
|
'array' => false,
|
|
],
|
|
[
|
|
'$collection' => Database::SYSTEM_COLLECTION_RULES,
|
|
'label' => 'Structure',
|
|
'key' => 'structure',
|
|
'type' => 'boolean',
|
|
'default' => false,
|
|
'required' => true,
|
|
'array' => false,
|
|
],
|
|
[
|
|
'$collection' => Database::SYSTEM_COLLECTION_RULES,
|
|
'label' => 'Rules',
|
|
'key' => 'rules',
|
|
'type' => 'document',
|
|
'default' => [],
|
|
'required' => true,
|
|
'array' => true,
|
|
'options' => [
|
|
'$collection' => Database::SYSTEM_COLLECTION_OPTIONS,
|
|
'whitelist' => [Database::SYSTEM_COLLECTION_RULES]
|
|
],
|
|
],
|
|
],
|
|
],
|
|
Database::SYSTEM_COLLECTION_RULES => [
|
|
'$collection' => Database::SYSTEM_COLLECTION_COLLECTIONS,
|
|
'$uid' => Database::SYSTEM_COLLECTION_RULES,
|
|
'$permissions' => ['read' => ['*']],
|
|
'name' => 'Collections Rule',
|
|
'structure' => true,
|
|
'rules' => [
|
|
[
|
|
'$collection' => Database::SYSTEM_COLLECTION_RULES,
|
|
'label' => 'Label',
|
|
'key' => 'label',
|
|
'type' => 'text',
|
|
'default' => '',
|
|
'required' => true,
|
|
'array' => false,
|
|
],
|
|
[
|
|
'$collection' => Database::SYSTEM_COLLECTION_RULES,
|
|
'label' => 'Key',
|
|
'key' => 'key',
|
|
'type' => 'key',
|
|
'default' => '',
|
|
'required' => true,
|
|
'array' => false,
|
|
],
|
|
[
|
|
'$collection' => Database::SYSTEM_COLLECTION_RULES,
|
|
'label' => 'Type',
|
|
'key' => 'type',
|
|
'type' => 'text',
|
|
'default' => '',
|
|
'required' => true,
|
|
'array' => false,
|
|
],
|
|
[
|
|
'$collection' => Database::SYSTEM_COLLECTION_RULES,
|
|
'label' => 'Default',
|
|
'key' => 'default',
|
|
'type' => 'wildcard',
|
|
'default' => '',
|
|
'required' => false,
|
|
'array' => false,
|
|
],
|
|
[
|
|
'$collection' => Database::SYSTEM_COLLECTION_RULES,
|
|
'label' => 'Required',
|
|
'key' => 'required',
|
|
'type' => 'boolean',
|
|
'default' => true,
|
|
'required' => true,
|
|
'array' => false,
|
|
],
|
|
[
|
|
'$collection' => Database::SYSTEM_COLLECTION_RULES,
|
|
'label' => 'Array',
|
|
'key' => 'array',
|
|
'type' => 'boolean',
|
|
'default' => true,
|
|
'required' => true,
|
|
'array' => false,
|
|
],
|
|
[
|
|
'$collection' => Database::SYSTEM_COLLECTION_RULES,
|
|
'label' => 'Options',
|
|
'key' => 'options',
|
|
'type' => 'document',
|
|
'default' => [],
|
|
'required' => false,
|
|
'array' => false,
|
|
'options' => [
|
|
'$collection' => Database::SYSTEM_COLLECTION_OPTIONS,
|
|
'whitelist' => [Database::SYSTEM_COLLECTION_OPTIONS]
|
|
],
|
|
],
|
|
],
|
|
],
|
|
Database::SYSTEM_COLLECTION_OPTIONS => [
|
|
'$collection' => Database::SYSTEM_COLLECTION_COLLECTIONS,
|
|
'$uid' => Database::SYSTEM_COLLECTION_OPTIONS,
|
|
'$permissions' => ['read' => ['*']],
|
|
'name' => 'Collections Rule Option',
|
|
'structure' => true,
|
|
'rules' => [
|
|
[
|
|
'$collection' => Database::SYSTEM_COLLECTION_RULES,
|
|
'label' => 'Whitelist',
|
|
'key' => 'whitelist',
|
|
'type' => 'text',
|
|
'default' => '',
|
|
'required' => false,
|
|
'array' => true,
|
|
],
|
|
],
|
|
],
|
|
Database::SYSTEM_COLLECTION_USERS => [
|
|
'$collection' => Database::SYSTEM_COLLECTION_COLLECTIONS,
|
|
'$uid' => Database::SYSTEM_COLLECTION_USERS,
|
|
'$permissions' => ['read' => ['*']],
|
|
'name' => 'User',
|
|
'structure' => true,
|
|
'rules' => [
|
|
[
|
|
'$collection' => Database::SYSTEM_COLLECTION_RULES,
|
|
'label' => 'Name',
|
|
'key' => 'name',
|
|
'type' => 'text',
|
|
'default' => '',
|
|
'required' => true,
|
|
'array' => false,
|
|
],
|
|
[
|
|
'$collection' => Database::SYSTEM_COLLECTION_RULES,
|
|
'label' => 'Email',
|
|
'key' => 'email',
|
|
'type' => 'email',
|
|
'default' => '',
|
|
'required' => true,
|
|
'array' => false,
|
|
],
|
|
[
|
|
'$collection' => Database::SYSTEM_COLLECTION_RULES,
|
|
'label' => 'Status',
|
|
'key' => 'status',
|
|
'type' => 'numeric',
|
|
'default' => '',
|
|
'required' => true,
|
|
'array' => false,
|
|
],
|
|
[
|
|
'$collection' => Database::SYSTEM_COLLECTION_RULES,
|
|
'label' => 'Password',
|
|
'key' => 'password',
|
|
'type' => 'text',
|
|
'default' => '',
|
|
'required' => true,
|
|
'array' => false,
|
|
],
|
|
[
|
|
'$collection' => Database::SYSTEM_COLLECTION_RULES,
|
|
'label' => 'Password Update Date',
|
|
'key' => 'password-update',
|
|
'type' => 'numeric',
|
|
'default' => '',
|
|
'required' => true,
|
|
'array' => false,
|
|
],
|
|
[
|
|
'$collection' => Database::SYSTEM_COLLECTION_RULES,
|
|
'label' => 'Prefs',
|
|
'key' => 'prefs',
|
|
'type' => 'text',
|
|
'default' => '',
|
|
'required' => false,
|
|
'array' => false,
|
|
],
|
|
[
|
|
'$collection' => Database::SYSTEM_COLLECTION_RULES,
|
|
'label' => 'Registration Date',
|
|
'key' => 'registration',
|
|
'type' => 'numeric',
|
|
'default' => '',
|
|
'required' => true,
|
|
'array' => false,
|
|
],
|
|
[
|
|
'$collection' => Database::SYSTEM_COLLECTION_RULES,
|
|
'label' => 'Confirmation Status',
|
|
'key' => 'confirm',
|
|
'type' => 'boolean',
|
|
'default' => '',
|
|
'required' => true,
|
|
'array' => false,
|
|
],
|
|
[
|
|
'$collection' => Database::SYSTEM_COLLECTION_RULES,
|
|
'label' => 'Reset',
|
|
'key' => 'reset',
|
|
'type' => 'boolean',
|
|
'default' => '',
|
|
'required' => true,
|
|
'array' => false,
|
|
],
|
|
[
|
|
'$collection' => Database::SYSTEM_COLLECTION_RULES,
|
|
'label' => 'OAuth Bitbucket ID',
|
|
'key' => 'oauthBitbucket',
|
|
'type' => 'text',
|
|
'default' => '',
|
|
'required' => false,
|
|
'array' => false,
|
|
],
|
|
[
|
|
'$collection' => Database::SYSTEM_COLLECTION_RULES,
|
|
'label' => 'OAuth Bitbucket Access Token',
|
|
'key' => 'oauthBitbucketAccessToken',
|
|
'type' => 'text',
|
|
'default' => '',
|
|
'required' => false,
|
|
'array' => false,
|
|
],
|
|
[
|
|
'$collection' => Database::SYSTEM_COLLECTION_RULES,
|
|
'label' => 'OAuth Facebook ID',
|
|
'key' => 'oauthFacebook',
|
|
'type' => 'text',
|
|
'default' => '',
|
|
'required' => false,
|
|
'array' => false,
|
|
],
|
|
[
|
|
'$collection' => Database::SYSTEM_COLLECTION_RULES,
|
|
'label' => 'OAuth Facebook Access Token',
|
|
'key' => 'oauthFacebookAccessToken',
|
|
'type' => 'text',
|
|
'default' => '',
|
|
'required' => false,
|
|
'array' => false,
|
|
],
|
|
[
|
|
'$collection' => Database::SYSTEM_COLLECTION_RULES,
|
|
'label' => 'OAuth GitHub ID',
|
|
'key' => 'oauthGithub',
|
|
'type' => 'text',
|
|
'default' => '',
|
|
'required' => false,
|
|
'array' => false,
|
|
],
|
|
[
|
|
'$collection' => Database::SYSTEM_COLLECTION_RULES,
|
|
'label' => 'OAuth GitHub Access Token',
|
|
'key' => 'oauthGithubAccessToken',
|
|
'type' => 'text',
|
|
'default' => '',
|
|
'required' => false,
|
|
'array' => false,
|
|
],
|
|
[
|
|
'$collection' => Database::SYSTEM_COLLECTION_RULES,
|
|
'label' => 'OAuth Gitlab ID',
|
|
'key' => 'oauthGitlab',
|
|
'type' => 'text',
|
|
'default' => '',
|
|
'required' => false,
|
|
'array' => false,
|
|
],
|
|
[
|
|
'$collection' => Database::SYSTEM_COLLECTION_RULES,
|
|
'label' => 'OAuth Gitlab Access Token',
|
|
'key' => 'oauthGitlabAccessToken',
|
|
'type' => 'text',
|
|
'default' => '',
|
|
'required' => false,
|
|
'array' => false,
|
|
],
|
|
[
|
|
'$collection' => Database::SYSTEM_COLLECTION_RULES,
|
|
'label' => 'OAuth Google ID',
|
|
'key' => 'oauthGoogle',
|
|
'type' => 'text',
|
|
'default' => '',
|
|
'required' => false,
|
|
'array' => false,
|
|
],
|
|
[
|
|
'$collection' => Database::SYSTEM_COLLECTION_RULES,
|
|
'label' => 'OAuth Google Access Token',
|
|
'key' => 'oauthGoogleAccessToken',
|
|
'type' => 'text',
|
|
'default' => '',
|
|
'required' => false,
|
|
'array' => false,
|
|
],
|
|
[
|
|
'$collection' => Database::SYSTEM_COLLECTION_RULES,
|
|
'label' => 'OAuth Instagram ID',
|
|
'key' => 'oauthInstagram',
|
|
'type' => 'text',
|
|
'default' => '',
|
|
'required' => false,
|
|
'array' => false,
|
|
],
|
|
[
|
|
'$collection' => Database::SYSTEM_COLLECTION_RULES,
|
|
'label' => 'OAuth Instagram Access Token',
|
|
'key' => 'oauthInstagramAccessToken',
|
|
'type' => 'text',
|
|
'default' => '',
|
|
'required' => false,
|
|
'array' => false,
|
|
],
|
|
[
|
|
'$collection' => Database::SYSTEM_COLLECTION_RULES,
|
|
'label' => 'OAuth LinkedIn ID',
|
|
'key' => 'oauthLinkedin',
|
|
'type' => 'text',
|
|
'default' => '',
|
|
'required' => false,
|
|
'array' => false,
|
|
],
|
|
[
|
|
'$collection' => Database::SYSTEM_COLLECTION_RULES,
|
|
'label' => 'OAuth LinkedIn Access Token',
|
|
'key' => 'oauthLinkedinAccessToken',
|
|
'type' => 'text',
|
|
'default' => '',
|
|
'required' => false,
|
|
'array' => false,
|
|
],
|
|
[
|
|
'$collection' => Database::SYSTEM_COLLECTION_RULES,
|
|
'label' => 'OAuth Microsoft ID',
|
|
'key' => 'oauthMicrosoft',
|
|
'type' => 'text',
|
|
'default' => '',
|
|
'required' => false,
|
|
'array' => false,
|
|
],
|
|
[
|
|
'$collection' => Database::SYSTEM_COLLECTION_RULES,
|
|
'label' => 'OAuth Microsoft Access Token',
|
|
'key' => 'oauthMicrosoftAccessToken',
|
|
'type' => 'text',
|
|
'default' => '',
|
|
'required' => false,
|
|
'array' => false,
|
|
],
|
|
[
|
|
'$collection' => Database::SYSTEM_COLLECTION_RULES,
|
|
'label' => 'OAuth Twitter ID',
|
|
'key' => 'oauthTwitter',
|
|
'type' => 'text',
|
|
'default' => '',
|
|
'required' => false,
|
|
'array' => false,
|
|
],
|
|
[
|
|
'$collection' => Database::SYSTEM_COLLECTION_RULES,
|
|
'label' => 'OAuth Twitter Access Token',
|
|
'key' => 'oauthTwitterAccessToken',
|
|
'type' => 'text',
|
|
'default' => '',
|
|
'required' => false,
|
|
'array' => false,
|
|
],
|
|
[
|
|
'$collection' => Database::SYSTEM_COLLECTION_RULES,
|
|
'label' => 'Tokens',
|
|
'key' => 'tokens',
|
|
'type' => 'document',
|
|
'default' => [],
|
|
'required' => false,
|
|
'array' => true,
|
|
'options' => [
|
|
'$collection' => Database::SYSTEM_COLLECTION_OPTIONS,
|
|
'whitelist' => [Database::SYSTEM_COLLECTION_TOKENS]
|
|
],
|
|
],
|
|
[
|
|
'$collection' => Database::SYSTEM_COLLECTION_RULES,
|
|
'label' => 'Memberships',
|
|
'key' => 'memberships',
|
|
'type' => 'document',
|
|
'default' => [],
|
|
'required' => false,
|
|
'array' => true,
|
|
'options' => [
|
|
'$collection' => Database::SYSTEM_COLLECTION_OPTIONS,
|
|
'whitelist' => [Database::SYSTEM_COLLECTION_MEMBERSHIPS]
|
|
],
|
|
]
|
|
],
|
|
],
|
|
Database::SYSTEM_COLLECTION_TOKENS => [
|
|
'$collection' => Database::SYSTEM_COLLECTION_COLLECTIONS,
|
|
'$uid' => Database::SYSTEM_COLLECTION_TOKENS,
|
|
'$permissions' => ['read' => ['*']],
|
|
'name' => 'Token',
|
|
'structure' => true,
|
|
'rules' => [
|
|
[
|
|
'$collection' => Database::SYSTEM_COLLECTION_RULES,
|
|
'label' => 'Type',
|
|
'key' => 'type',
|
|
'type' => 'numeric',
|
|
'default' => null,
|
|
'required' => true,
|
|
'array' => false,
|
|
],
|
|
[
|
|
'$collection' => Database::SYSTEM_COLLECTION_RULES,
|
|
'label' => 'Secret',
|
|
'key' => 'secret',
|
|
'type' => 'text',
|
|
'default' => '',
|
|
'required' => true,
|
|
'array' => false,
|
|
],
|
|
[
|
|
'$collection' => Database::SYSTEM_COLLECTION_RULES,
|
|
'label' => 'Expire',
|
|
'key' => 'expire',
|
|
'type' => 'numeric',
|
|
'default' => 0,
|
|
'required' => true,
|
|
'array' => false,
|
|
],
|
|
[
|
|
'$collection' => Database::SYSTEM_COLLECTION_RULES,
|
|
'label' => 'User Agent',
|
|
'key' => 'userAgent',
|
|
'type' => 'text',
|
|
'default' => '',
|
|
'required' => true,
|
|
'array' => false,
|
|
],
|
|
[
|
|
'$collection' => Database::SYSTEM_COLLECTION_RULES,
|
|
'label' => 'IP',
|
|
'key' => 'ip',
|
|
'type' => 'ip',
|
|
'default' => '',
|
|
'required' => true,
|
|
'array' => false,
|
|
],
|
|
],
|
|
],
|
|
Database::SYSTEM_COLLECTION_MEMBERSHIPS => [
|
|
'$collection' => Database::SYSTEM_COLLECTION_COLLECTIONS,
|
|
'$uid' => Database::SYSTEM_COLLECTION_MEMBERSHIPS,
|
|
'$permissions' => ['read' => ['*']],
|
|
'name' => 'Membership',
|
|
'structure' => true,
|
|
'rules' => [
|
|
[
|
|
'$collection' => Database::SYSTEM_COLLECTION_RULES,
|
|
'label' => 'Team ID',
|
|
'key' => 'teamId',
|
|
'type' => 'text',
|
|
'default' => null,
|
|
'required' => true,
|
|
'array' => false,
|
|
],
|
|
[
|
|
'$collection' => Database::SYSTEM_COLLECTION_RULES,
|
|
'label' => 'User ID',
|
|
'key' => 'userId',
|
|
'type' => 'text',
|
|
'default' => null,
|
|
'required' => true,
|
|
'array' => false,
|
|
],
|
|
[
|
|
'$collection' => Database::SYSTEM_COLLECTION_RULES,
|
|
'label' => 'Roles',
|
|
'key' => 'roles',
|
|
'type' => 'text',
|
|
'default' => '',
|
|
'required' => true,
|
|
'array' => true,
|
|
],
|
|
[
|
|
'$collection' => Database::SYSTEM_COLLECTION_RULES,
|
|
'label' => 'Invited',
|
|
'key' => 'invited',
|
|
'type' => 'numeric',
|
|
'default' => 0,
|
|
'required' => false, //FIXME SHOULD BE REQUIRED
|
|
'array' => false,
|
|
],
|
|
[
|
|
'$collection' => Database::SYSTEM_COLLECTION_RULES,
|
|
'label' => 'Joined',
|
|
'key' => 'joined',
|
|
'type' => 'numeric',
|
|
'default' => 0,
|
|
'required' => true,
|
|
'array' => false,
|
|
],
|
|
[
|
|
'$collection' => Database::SYSTEM_COLLECTION_RULES,
|
|
'label' => 'Confirm',
|
|
'key' => 'confirm',
|
|
'type' => 'boolean',
|
|
'default' => '',
|
|
'required' => true,
|
|
'array' => false,
|
|
],
|
|
[
|
|
'$collection' => Database::SYSTEM_COLLECTION_RULES,
|
|
'label' => 'Secret',
|
|
'key' => 'secret',
|
|
'type' => 'text',
|
|
'default' => '',
|
|
'required' => false,
|
|
'array' => false,
|
|
],
|
|
],
|
|
],
|
|
Database::SYSTEM_COLLECTION_TEAMS => [
|
|
'$collection' => Database::SYSTEM_COLLECTION_COLLECTIONS,
|
|
'$uid' => Database::SYSTEM_COLLECTION_TEAMS,
|
|
'$permissions' => ['read' => ['*']],
|
|
'name' => 'Team',
|
|
'structure' => true,
|
|
'rules' => [
|
|
[
|
|
'$collection' => Database::SYSTEM_COLLECTION_RULES,
|
|
'label' => 'Name',
|
|
'key' => 'name',
|
|
'type' => 'text',
|
|
'default' => '',
|
|
'required' => true,
|
|
'array' => false,
|
|
],
|
|
[
|
|
'$collection' => Database::SYSTEM_COLLECTION_RULES,
|
|
'label' => 'Date Created',
|
|
'key' => 'dateCreated',
|
|
'type' => 'numeric',
|
|
'default' => '',
|
|
'required' => false,
|
|
'array' => false,
|
|
],
|
|
[
|
|
'$collection' => Database::SYSTEM_COLLECTION_RULES,
|
|
'label' => 'Sum',
|
|
'key' => 'sum',
|
|
'type' => 'numeric',
|
|
'default' => '',
|
|
'required' => false,
|
|
'array' => false,
|
|
],
|
|
],
|
|
],
|
|
Database::SYSTEM_COLLECTION_PROJECTS => [
|
|
'$collection' => Database::SYSTEM_COLLECTION_COLLECTIONS,
|
|
'$uid' => Database::SYSTEM_COLLECTION_PROJECTS,
|
|
'$permissions' => ['read' => ['*']],
|
|
'name' => 'Project',
|
|
'structure' => true,
|
|
'rules' => [
|
|
[
|
|
'$collection' => Database::SYSTEM_COLLECTION_RULES,
|
|
'label' => 'Name',
|
|
'key' => 'name',
|
|
'type' => 'text',
|
|
'default' => null,
|
|
'required' => true,
|
|
'array' => false,
|
|
],
|
|
[
|
|
'$collection' => Database::SYSTEM_COLLECTION_RULES,
|
|
'label' => 'Description',
|
|
'key' => 'description',
|
|
'type' => 'text',
|
|
'default' => null,
|
|
'required' => false,
|
|
'array' => false,
|
|
],
|
|
[
|
|
'$collection' => Database::SYSTEM_COLLECTION_RULES,
|
|
'label' => 'Logo',
|
|
'key' => 'logo',
|
|
'type' => 'text',
|
|
'default' => '',
|
|
'required' => false,
|
|
],
|
|
[
|
|
'$collection' => Database::SYSTEM_COLLECTION_RULES,
|
|
'label' => 'URL',
|
|
'key' => 'url',
|
|
'type' => 'url',
|
|
'default' => '',
|
|
'required' => false,
|
|
],
|
|
[
|
|
'$collection' => Database::SYSTEM_COLLECTION_RULES,
|
|
'label' => 'Team ID',
|
|
'key' => 'teamId',
|
|
'type' => 'text',
|
|
'default' => 0,
|
|
'required' => true,
|
|
'array' => false,
|
|
],
|
|
[
|
|
'$collection' => Database::SYSTEM_COLLECTION_RULES,
|
|
'label' => 'Legal Name',
|
|
'key' => 'legalName',
|
|
'type' => 'text',
|
|
'default' => '',
|
|
'required' => false,
|
|
],
|
|
[
|
|
'$collection' => Database::SYSTEM_COLLECTION_RULES,
|
|
'label' => 'Legal Country',
|
|
'key' => 'legalCountry',
|
|
'type' => 'text',
|
|
'default' => '',
|
|
'required' => false,
|
|
],
|
|
[
|
|
'$collection' => Database::SYSTEM_COLLECTION_RULES,
|
|
'label' => 'Legal State',
|
|
'key' => 'legalState',
|
|
'type' => 'text',
|
|
'default' => '',
|
|
'required' => false,
|
|
],
|
|
[
|
|
'$collection' => Database::SYSTEM_COLLECTION_RULES,
|
|
'label' => 'Legal City',
|
|
'key' => 'legalCity',
|
|
'type' => 'text',
|
|
'default' => '',
|
|
'required' => false,
|
|
],
|
|
[
|
|
'$collection' => Database::SYSTEM_COLLECTION_RULES,
|
|
'label' => 'Legal Address',
|
|
'key' => 'legalAddress',
|
|
'type' => 'text',
|
|
'default' => '',
|
|
'required' => false,
|
|
],
|
|
[
|
|
'$collection' => Database::SYSTEM_COLLECTION_RULES,
|
|
'label' => 'Legal Tax ID',
|
|
'key' => 'legalTaxId',
|
|
'type' => 'text',
|
|
'default' => '',
|
|
'required' => false,
|
|
],
|
|
[
|
|
'$collection' => Database::SYSTEM_COLLECTION_RULES,
|
|
'label' => 'OAuth Bitbucket AppID',
|
|
'key' => 'usersOauthBitbucketAppid',
|
|
'type' => 'text',
|
|
'default' => '',
|
|
'required' => false,
|
|
'array' => false,
|
|
],
|
|
[
|
|
'$collection' => Database::SYSTEM_COLLECTION_RULES,
|
|
'label' => 'OAuth Bitbucket Secret',
|
|
'key' => 'usersOauthBitbucketSecret',
|
|
'type' => 'text',
|
|
'default' => '',
|
|
'required' => false,
|
|
'array' => false,
|
|
],
|
|
[
|
|
'$collection' => Database::SYSTEM_COLLECTION_RULES,
|
|
'label' => 'OAuth Facebook AppID',
|
|
'key' => 'usersOauthFacebookAppid',
|
|
'type' => 'text',
|
|
'default' => '',
|
|
'required' => false,
|
|
'array' => false,
|
|
],
|
|
[
|
|
'$collection' => Database::SYSTEM_COLLECTION_RULES,
|
|
'label' => 'OAuth Facebook Secret',
|
|
'key' => 'usersOauthFacebookSecret',
|
|
'type' => 'text',
|
|
'default' => '',
|
|
'required' => false,
|
|
'array' => false,
|
|
],
|
|
[
|
|
'$collection' => Database::SYSTEM_COLLECTION_RULES,
|
|
'label' => 'OAuth GitHub AppID',
|
|
'key' => 'usersOauthGithubAppid',
|
|
'type' => 'text',
|
|
'default' => '',
|
|
'required' => false,
|
|
'array' => false,
|
|
],
|
|
[
|
|
'$collection' => Database::SYSTEM_COLLECTION_RULES,
|
|
'label' => 'OAuth GitHub Secret',
|
|
'key' => 'usersOauthGithubSecret',
|
|
'type' => 'text',
|
|
'default' => '',
|
|
'required' => false,
|
|
'array' => false,
|
|
],
|
|
[
|
|
'$collection' => Database::SYSTEM_COLLECTION_RULES,
|
|
'label' => 'OAuth Gitlab AppID',
|
|
'key' => 'usersOauthGitlabAppid',
|
|
'type' => 'text',
|
|
'default' => '',
|
|
'required' => false,
|
|
'array' => false,
|
|
],
|
|
[
|
|
'$collection' => Database::SYSTEM_COLLECTION_RULES,
|
|
'label' => 'OAuth Gitlab Secret',
|
|
'key' => 'usersOauthGitlabSecret',
|
|
'type' => 'text',
|
|
'default' => '',
|
|
'required' => false,
|
|
'array' => false,
|
|
],
|
|
[
|
|
'$collection' => Database::SYSTEM_COLLECTION_RULES,
|
|
'label' => 'OAuth Google AppID',
|
|
'key' => 'usersOauthGoogleAppid',
|
|
'type' => 'text',
|
|
'default' => '',
|
|
'required' => false,
|
|
'array' => false,
|
|
],
|
|
[
|
|
'$collection' => Database::SYSTEM_COLLECTION_RULES,
|
|
'label' => 'OAuth Google Secret',
|
|
'key' => 'usersOauthGoogleSecret',
|
|
'type' => 'text',
|
|
'default' => '',
|
|
'required' => false,
|
|
'array' => false,
|
|
],
|
|
[
|
|
'$collection' => Database::SYSTEM_COLLECTION_RULES,
|
|
'label' => 'OAuth Instagram AppID',
|
|
'key' => 'usersOauthInstagramAppid',
|
|
'type' => 'text',
|
|
'default' => '',
|
|
'required' => false,
|
|
'array' => false,
|
|
],
|
|
[
|
|
'$collection' => Database::SYSTEM_COLLECTION_RULES,
|
|
'label' => 'OAuth Instagram Secret',
|
|
'key' => 'usersOauthInstagramSecret',
|
|
'type' => 'text',
|
|
'default' => '',
|
|
'required' => false,
|
|
'array' => false,
|
|
],
|
|
[
|
|
'$collection' => Database::SYSTEM_COLLECTION_RULES,
|
|
'label' => 'OAuth LinkedIn AppID',
|
|
'key' => 'usersOauthLinkedinAppid',
|
|
'type' => 'text',
|
|
'default' => '',
|
|
'required' => false,
|
|
'array' => false,
|
|
],
|
|
[
|
|
'$collection' => Database::SYSTEM_COLLECTION_RULES,
|
|
'label' => 'OAuth LinkedIn Secret',
|
|
'key' => 'usersOauthLinkedinSecret',
|
|
'type' => 'text',
|
|
'default' => '',
|
|
'required' => false,
|
|
'array' => false,
|
|
],
|
|
[
|
|
'$collection' => Database::SYSTEM_COLLECTION_RULES,
|
|
'label' => 'OAuth Microsoft AppID',
|
|
'key' => 'usersOauthMicrosoftAppid',
|
|
'type' => 'text',
|
|
'default' => '',
|
|
'required' => false,
|
|
'array' => false,
|
|
],
|
|
[
|
|
'$collection' => Database::SYSTEM_COLLECTION_RULES,
|
|
'label' => 'OAuth Microsoft Secret',
|
|
'key' => 'usersOauthMicrosoftSecret',
|
|
'type' => 'text',
|
|
'default' => '',
|
|
'required' => false,
|
|
'array' => false,
|
|
],
|
|
[
|
|
'$collection' => Database::SYSTEM_COLLECTION_RULES,
|
|
'label' => 'OAuth Twitter AppID',
|
|
'key' => 'usersOauthTwitterAppid',
|
|
'type' => 'text',
|
|
'default' => '',
|
|
'required' => false,
|
|
'array' => false,
|
|
],
|
|
[
|
|
'$collection' => Database::SYSTEM_COLLECTION_RULES,
|
|
'label' => 'OAuth Twitter Secret',
|
|
'key' => 'usersOauthTwitterSecret',
|
|
'type' => 'text',
|
|
'default' => '',
|
|
'required' => false,
|
|
'array' => false,
|
|
],
|
|
[
|
|
'$collection' => Database::SYSTEM_COLLECTION_RULES,
|
|
'label' => 'Webhooks',
|
|
'key' => 'webhooks',
|
|
'type' => 'document',
|
|
'default' => [],
|
|
'required' => false,
|
|
'array' => true,
|
|
'options' => [
|
|
'$collection' => Database::SYSTEM_COLLECTION_OPTIONS,
|
|
'whitelist' => [Database::SYSTEM_COLLECTION_WEBHOOKS]
|
|
],
|
|
],
|
|
[
|
|
'$collection' => Database::SYSTEM_COLLECTION_RULES,
|
|
'label' => 'API Keys',
|
|
'key' => 'keys',
|
|
'type' => 'document',
|
|
'default' => [],
|
|
'required' => false,
|
|
'array' => true,
|
|
'options' => [
|
|
'$collection' => Database::SYSTEM_COLLECTION_OPTIONS,
|
|
'whitelist' => [Database::SYSTEM_COLLECTION_KEYS]
|
|
],
|
|
],
|
|
[
|
|
'$collection' => Database::SYSTEM_COLLECTION_RULES,
|
|
'label' => 'Tasks',
|
|
'key' => 'tasks',
|
|
'type' => 'document',
|
|
'default' => [],
|
|
'required' => false,
|
|
'array' => true,
|
|
'options' => [
|
|
'$collection' => Database::SYSTEM_COLLECTION_OPTIONS,
|
|
'whitelist' => [Database::SYSTEM_COLLECTION_TASKS]
|
|
],
|
|
],
|
|
[
|
|
'$collection' => Database::SYSTEM_COLLECTION_RULES,
|
|
'label' => 'Platforms',
|
|
'key' => 'platforms',
|
|
'type' => 'document',
|
|
'default' => [],
|
|
'required' => false,
|
|
'array' => true,
|
|
'options' => [
|
|
'$collection' => Database::SYSTEM_COLLECTION_OPTIONS,
|
|
'whitelist' => [Database::SYSTEM_COLLECTION_PLATFORMS]
|
|
],
|
|
],
|
|
],
|
|
],
|
|
Database::SYSTEM_COLLECTION_WEBHOOKS => [
|
|
'$collection' => Database::SYSTEM_COLLECTION_COLLECTIONS,
|
|
'$uid' => Database::SYSTEM_COLLECTION_WEBHOOKS,
|
|
'$permissions' => ['read' => ['*']],
|
|
'name' => 'Webhook',
|
|
'structure' => true,
|
|
'rules' => [
|
|
[
|
|
'$collection' => Database::SYSTEM_COLLECTION_RULES,
|
|
'label' => 'Name',
|
|
'key' => 'name',
|
|
'type' => 'text',
|
|
'default' => null,
|
|
'required' => true,
|
|
'array' => false,
|
|
],
|
|
[
|
|
'$collection' => Database::SYSTEM_COLLECTION_RULES,
|
|
'label' => 'Events',
|
|
'key' => 'events',
|
|
'type' => 'text',
|
|
'default' => null,
|
|
'required' => false,
|
|
'array' => true,
|
|
],
|
|
[
|
|
'$collection' => Database::SYSTEM_COLLECTION_RULES,
|
|
'label' => 'URL',
|
|
'key' => 'url',
|
|
'type' => 'url',
|
|
'default' => '',
|
|
'required' => false,
|
|
'array' => false,
|
|
],
|
|
[
|
|
'$collection' => Database::SYSTEM_COLLECTION_RULES,
|
|
'label' => 'Security',
|
|
'key' => 'security',
|
|
'type' => 'numeric',
|
|
'default' => '',
|
|
'required' => false,
|
|
'array' => false,
|
|
],
|
|
[
|
|
'$collection' => Database::SYSTEM_COLLECTION_RULES,
|
|
'label' => 'HTTP User',
|
|
'key' => 'httpUser',
|
|
'type' => 'text',
|
|
'default' => '',
|
|
'required' => false,
|
|
'array' => false,
|
|
],
|
|
[
|
|
'$collection' => Database::SYSTEM_COLLECTION_RULES,
|
|
'label' => 'HTTP Password',
|
|
'key' => 'httpPass',
|
|
'type' => 'text',
|
|
'default' => '',
|
|
'required' => false,
|
|
'array' => false,
|
|
],
|
|
],
|
|
],
|
|
Database::SYSTEM_COLLECTION_KEYS => [
|
|
'$collection' => Database::SYSTEM_COLLECTION_COLLECTIONS,
|
|
'$uid' => Database::SYSTEM_COLLECTION_KEYS,
|
|
'$permissions' => ['read' => ['*']],
|
|
'name' => 'Key',
|
|
'structure' => true,
|
|
'rules' => [
|
|
[
|
|
'$collection' => Database::SYSTEM_COLLECTION_RULES,
|
|
'label' => 'Name',
|
|
'key' => 'name',
|
|
'type' => 'text',
|
|
'default' => null,
|
|
'required' => true,
|
|
'array' => false,
|
|
],
|
|
[
|
|
'$collection' => Database::SYSTEM_COLLECTION_RULES,
|
|
'label' => 'Scopes',
|
|
'key' => 'scopes',
|
|
'type' => 'text',
|
|
'default' => null,
|
|
'required' => false,
|
|
'array' => true,
|
|
],
|
|
[
|
|
'$collection' => Database::SYSTEM_COLLECTION_RULES,
|
|
'label' => 'Secret',
|
|
'key' => 'secret',
|
|
'type' => 'text',
|
|
'default' => '',
|
|
'required' => false,
|
|
],
|
|
],
|
|
],
|
|
Database::SYSTEM_COLLECTION_TASKS => [
|
|
'$collection' => Database::SYSTEM_COLLECTION_COLLECTIONS,
|
|
'$uid' => Database::SYSTEM_COLLECTION_TASKS,
|
|
'$permissions' => ['read' => ['*']],
|
|
'name' => 'Task',
|
|
'structure' => true,
|
|
'rules' => [
|
|
[
|
|
'$collection' => Database::SYSTEM_COLLECTION_RULES,
|
|
'label' => 'Name',
|
|
'key' => 'name',
|
|
'type' => 'text',
|
|
'default' => null,
|
|
'required' => true,
|
|
'array' => false,
|
|
],
|
|
[
|
|
'$collection' => Database::SYSTEM_COLLECTION_RULES,
|
|
'label' => 'Status',
|
|
'key' => 'status',
|
|
'type' => 'text',
|
|
'default' => '',
|
|
'required' => false,
|
|
'array' => false,
|
|
],
|
|
[
|
|
'$collection' => Database::SYSTEM_COLLECTION_RULES,
|
|
'label' => 'Updated',
|
|
'key' => 'updated',
|
|
'type' => 'numeric',
|
|
'default' => '',
|
|
'required' => false,
|
|
'array' => false,
|
|
],
|
|
[
|
|
'$collection' => Database::SYSTEM_COLLECTION_RULES,
|
|
'label' => 'Schedule',
|
|
'key' => 'schedule',
|
|
'type' => 'text',
|
|
'default' => '',
|
|
'required' => false,
|
|
'array' => false,
|
|
],
|
|
[
|
|
'$collection' => Database::SYSTEM_COLLECTION_RULES,
|
|
'label' => 'Previous',
|
|
'key' => 'previous',
|
|
'type' => 'numeric',
|
|
'default' => '',
|
|
'required' => false,
|
|
'array' => false,
|
|
],
|
|
[
|
|
'$collection' => Database::SYSTEM_COLLECTION_RULES,
|
|
'label' => 'Next',
|
|
'key' => 'next',
|
|
'type' => 'numeric',
|
|
'default' => '',
|
|
'required' => false,
|
|
'array' => false,
|
|
],
|
|
[
|
|
'$collection' => Database::SYSTEM_COLLECTION_RULES,
|
|
'label' => 'Duration',
|
|
'key' => 'duration',
|
|
'type' => 'numeric',
|
|
'default' => '',
|
|
'required' => false,
|
|
'array' => false,
|
|
],
|
|
[
|
|
'$collection' => Database::SYSTEM_COLLECTION_RULES,
|
|
'label' => 'Delay',
|
|
'key' => 'delay',
|
|
'type' => 'numeric',
|
|
'default' => '',
|
|
'required' => false,
|
|
'array' => false,
|
|
],
|
|
[
|
|
'$collection' => Database::SYSTEM_COLLECTION_RULES,
|
|
'label' => 'Security',
|
|
'key' => 'security',
|
|
'type' => 'numeric',
|
|
'default' => '',
|
|
'required' => false,
|
|
'array' => false,
|
|
],
|
|
[
|
|
'$collection' => Database::SYSTEM_COLLECTION_RULES,
|
|
'label' => 'HTTP Method',
|
|
'key' => 'httpMethod',
|
|
'type' => 'text',
|
|
'default' => '',
|
|
'required' => false,
|
|
'array' => false,
|
|
],
|
|
[
|
|
'$collection' => Database::SYSTEM_COLLECTION_RULES,
|
|
'label' => 'HTTP URL',
|
|
'key' => 'httpUrl',
|
|
'type' => 'text',
|
|
'default' => '',
|
|
'required' => false,
|
|
'array' => false,
|
|
],
|
|
[
|
|
'$collection' => Database::SYSTEM_COLLECTION_RULES,
|
|
'label' => 'HTTP Headers',
|
|
'key' => 'httpHeaders',
|
|
'type' => 'text',
|
|
'default' => null,
|
|
'required' => false,
|
|
'array' => true,
|
|
],
|
|
[
|
|
'$collection' => Database::SYSTEM_COLLECTION_RULES,
|
|
'label' => 'HTTP User',
|
|
'key' => 'httpUser',
|
|
'type' => 'text',
|
|
'default' => '',
|
|
'required' => false,
|
|
'array' => false,
|
|
],
|
|
[
|
|
'$collection' => Database::SYSTEM_COLLECTION_RULES,
|
|
'label' => 'HTTP Password',
|
|
'key' => 'httpPass',
|
|
'type' => 'text',
|
|
'default' => '',
|
|
'required' => false,
|
|
'array' => false,
|
|
],
|
|
[
|
|
'$collection' => Database::SYSTEM_COLLECTION_RULES,
|
|
'label' => 'Log',
|
|
'key' => 'log',
|
|
'type' => 'text',
|
|
'default' => '',
|
|
'required' => false,
|
|
'array' => false,
|
|
],
|
|
[
|
|
'$collection' => Database::SYSTEM_COLLECTION_RULES,
|
|
'label' => 'Failures',
|
|
'key' => 'failures',
|
|
'type' => 'numeric',
|
|
'default' => '',
|
|
'required' => false,
|
|
'array' => false,
|
|
],
|
|
],
|
|
],
|
|
Database::SYSTEM_COLLECTION_PLATFORMS => [
|
|
'$collection' => Database::SYSTEM_COLLECTION_COLLECTIONS,
|
|
'$uid' => Database::SYSTEM_COLLECTION_PLATFORMS,
|
|
'$permissions' => ['read' => ['*']],
|
|
'name' => 'Platform',
|
|
'structure' => true,
|
|
'rules' => [
|
|
[
|
|
'$collection' => Database::SYSTEM_COLLECTION_RULES,
|
|
'label' => 'Type',
|
|
'key' => 'type',
|
|
'type' => 'text',
|
|
'default' => null,
|
|
'required' => true,
|
|
'array' => false,
|
|
],
|
|
[
|
|
'$collection' => Database::SYSTEM_COLLECTION_RULES,
|
|
'label' => 'Name',
|
|
'key' => 'name',
|
|
'type' => 'text',
|
|
'default' => null,
|
|
'required' => true,
|
|
'array' => false,
|
|
],
|
|
[
|
|
'$collection' => Database::SYSTEM_COLLECTION_RULES,
|
|
'label' => 'Date Created',
|
|
'key' => 'dateCreated',
|
|
'type' => 'numeric',
|
|
'default' => 0,
|
|
'required' => false,
|
|
'array' => false,
|
|
],
|
|
[
|
|
'$collection' => Database::SYSTEM_COLLECTION_RULES,
|
|
'label' => 'Date Updated',
|
|
'key' => 'dateUpdated',
|
|
'type' => 'numeric',
|
|
'default' => 0,
|
|
'required' => false,
|
|
'array' => false,
|
|
],
|
|
[
|
|
'$collection' => Database::SYSTEM_COLLECTION_RULES,
|
|
'label' => 'Key',
|
|
'key' => 'key',
|
|
'type' => 'text',
|
|
'default' => '',
|
|
'required' => false,
|
|
'array' => false,
|
|
],
|
|
[
|
|
'$collection' => Database::SYSTEM_COLLECTION_RULES,
|
|
'label' => 'Store',
|
|
'key' => 'store',
|
|
'type' => 'text',
|
|
'default' => '',
|
|
'required' => false,
|
|
'array' => false,
|
|
],
|
|
[
|
|
'$collection' => Database::SYSTEM_COLLECTION_RULES,
|
|
'label' => 'url',
|
|
'key' => 'url',
|
|
'type' => 'text',
|
|
'default' => '',
|
|
'required' => false,
|
|
'array' => false,
|
|
],
|
|
],
|
|
],
|
|
Database::SYSTEM_COLLECTION_FILES => [
|
|
'$collection' => Database::SYSTEM_COLLECTION_COLLECTIONS,
|
|
'$uid' => Database::SYSTEM_COLLECTION_FILES,
|
|
'$permissions' => ['read' => ['*']],
|
|
'name' => 'File',
|
|
'structure' => true,
|
|
'rules' => [
|
|
[
|
|
'$collection' => Database::SYSTEM_COLLECTION_RULES,
|
|
'label' => 'Date Created',
|
|
'key' => 'dateCreated',
|
|
'type' => 'numeric',
|
|
'default' => 0,
|
|
'required' => false,
|
|
'array' => false,
|
|
],
|
|
[
|
|
'$collection' => Database::SYSTEM_COLLECTION_RULES,
|
|
'label' => 'Folder ID',
|
|
'key' => 'folderId',
|
|
'type' => 'numeric',
|
|
'default' => 0,
|
|
'required' => true,
|
|
'array' => false,
|
|
],
|
|
[
|
|
'$collection' => Database::SYSTEM_COLLECTION_RULES,
|
|
'label' => 'Name',
|
|
'key' => 'name',
|
|
'type' => 'text',
|
|
'default' => '',
|
|
'required' => true,
|
|
'array' => false,
|
|
],
|
|
[
|
|
'$collection' => Database::SYSTEM_COLLECTION_RULES,
|
|
'label' => 'Path',
|
|
'key' => 'path',
|
|
'type' => 'text',
|
|
'default' => '',
|
|
'required' => true,
|
|
'array' => false,
|
|
],
|
|
[
|
|
'$collection' => Database::SYSTEM_COLLECTION_RULES,
|
|
'label' => 'Signature',
|
|
'key' => 'signature',
|
|
'type' => 'text',
|
|
'default' => '',
|
|
'required' => true,
|
|
'array' => false,
|
|
],
|
|
[
|
|
'$collection' => Database::SYSTEM_COLLECTION_RULES,
|
|
'label' => 'Mime Type',
|
|
'key' => 'mimeType',
|
|
'type' => 'text',
|
|
'default' => '',
|
|
'required' => true,
|
|
'array' => false,
|
|
],
|
|
[
|
|
'$collection' => Database::SYSTEM_COLLECTION_RULES,
|
|
'label' => 'Size Original',
|
|
'key' => 'sizeOriginal',
|
|
'type' => 'numeric',
|
|
'default' => 0,
|
|
'required' => true,
|
|
'array' => false,
|
|
],
|
|
[
|
|
'$collection' => Database::SYSTEM_COLLECTION_RULES,
|
|
'label' => 'Size Compressed',
|
|
'key' => 'sizeCompressed',
|
|
'type' => 'numeric',
|
|
'default' => 0,
|
|
'required' => true,
|
|
'array' => false,
|
|
],
|
|
[
|
|
'$collection' => Database::SYSTEM_COLLECTION_RULES,
|
|
'label' => 'Algorithm',
|
|
'key' => 'algorithm',
|
|
'type' => 'text',
|
|
'default' => '',
|
|
'required' => true,
|
|
'array' => false,
|
|
],
|
|
[
|
|
'$collection' => Database::SYSTEM_COLLECTION_RULES,
|
|
'label' => 'Token',
|
|
'key' => 'token',
|
|
'type' => 'text',
|
|
'default' => '',
|
|
'required' => true,
|
|
'array' => false,
|
|
],
|
|
[
|
|
'$collection' => Database::SYSTEM_COLLECTION_RULES,
|
|
'label' => 'Comment',
|
|
'key' => 'comment',
|
|
'type' => 'text',
|
|
'default' => '',
|
|
'required' => false,
|
|
'array' => false,
|
|
],
|
|
[
|
|
'$collection' => Database::SYSTEM_COLLECTION_RULES,
|
|
'label' => 'File OpenSSL Version',
|
|
'key' => 'fileOpenSSLVersion',
|
|
'type' => 'text',
|
|
'default' => '',
|
|
'required' => false,
|
|
'array' => false,
|
|
],
|
|
[
|
|
'$collection' => Database::SYSTEM_COLLECTION_RULES,
|
|
'label' => 'File OpenSSL Cipher',
|
|
'key' => 'fileOpenSSLCipher',
|
|
'type' => 'text',
|
|
'default' => '',
|
|
'required' => false,
|
|
'array' => false,
|
|
],
|
|
[
|
|
'$collection' => Database::SYSTEM_COLLECTION_RULES,
|
|
'label' => 'File OpenSSL Tag',
|
|
'key' => 'fileOpenSSLTag',
|
|
'type' => 'text',
|
|
'default' => '',
|
|
'required' => false,
|
|
'array' => false,
|
|
],
|
|
[
|
|
'$collection' => Database::SYSTEM_COLLECTION_RULES,
|
|
'label' => 'File OpenSSL IV',
|
|
'key' => 'fileOpenSSLIV',
|
|
'type' => 'text',
|
|
'default' => '',
|
|
'required' => false,
|
|
'array' => false,
|
|
],
|
|
],
|
|
],
|
|
]; |