feat: add new attributes for API Keys

This commit is contained in:
Christy Jacob
2022-08-05 15:50:48 +05:30
parent 78d02f50af
commit c96f1e76e2
4 changed files with 44 additions and 0 deletions
@@ -58,6 +58,18 @@ class Key extends Model
'default' => '',
'example' => '919c2d18fb5d4...a2ae413da83346ad2',
])
->addRule('accessedAt', [
'type' => self::TYPE_INTEGER,
'description' => 'Most recent access date in Unix timestamp.',
'default' => null,
'example' => '1653990687',
])
->addRule('sdks', [
'type' => self::TYPE_STRING,
'description' => 'List of SDK user agents that used this key.',
'default' => null,
'example' => 'appwrite:flutter',
])
;
}