Merge branch 'master' of github.com:appwrite/appwrite into 0.9.x
This commit is contained in:
commit
e42eab3671
62 changed files with 260 additions and 170 deletions
|
@ -15,7 +15,7 @@ then
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if test $(find "./app/db/DBIP/dbip-country-lite-2021-02.mmdb" -mmin +259200)
|
if test $(find "./app/db/DBIP/dbip-country-lite-2021-06.mmdb" -mmin +259200)
|
||||||
then
|
then
|
||||||
printf "${RED}GEO country DB has not been updated for more than 6 months. Go to https://db-ip.com/db/download/ip-to-country-lite to download a newer version${NC}\n"
|
printf "${RED}GEO country DB has not been updated for more than 6 months. Go to https://db-ip.com/db/download/ip-to-country-lite to download a newer version${NC}\n"
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -53,8 +53,10 @@ RUN \
|
||||||
make && make install && \
|
make && make install && \
|
||||||
cd .. && \
|
cd .. && \
|
||||||
## Imagick Extension
|
## Imagick Extension
|
||||||
git clone --depth 1 --branch $PHP_IMAGICK_VERSION https://github.com/Imagick/imagick && \
|
## Last working commit https://github.com/Imagick/imagick/commit/35741750aa1cda2b7ac354bfa6128fa037e9cf32
|
||||||
|
git clone --branch $PHP_IMAGICK_VERSION https://github.com/Imagick/imagick && \
|
||||||
cd imagick && \
|
cd imagick && \
|
||||||
|
git checkout 35741750aa1cda2b7ac354bfa6128fa037e9cf32 && \
|
||||||
phpize && \
|
phpize && \
|
||||||
./configure && \
|
./configure && \
|
||||||
make && make install && \
|
make && make install && \
|
||||||
|
|
|
@ -10,10 +10,10 @@
|
||||||
|
|
||||||
<!--[![Hacktoberfest](https://badgen.net/badge/hacktoberfest/friendly/pink)](CONTRIBUTING.md)-->
|
<!--[![Hacktoberfest](https://badgen.net/badge/hacktoberfest/friendly/pink)](CONTRIBUTING.md)-->
|
||||||
[![Discord](https://img.shields.io/discord/564160730845151244?label=discord&style=flat-square)](https://appwrite.io/discord)
|
[![Discord](https://img.shields.io/discord/564160730845151244?label=discord&style=flat-square)](https://appwrite.io/discord)
|
||||||
|
[![Swag Store](https://img.shields.io/badge/swag%20store-f02e65?style=flat-square)](https://store.appwrite.io)
|
||||||
[![Docker Pulls](https://img.shields.io/docker/pulls/appwrite/appwrite?color=f02e65&style=flat-square)](https://hub.docker.com/r/appwrite/appwrite)
|
[![Docker Pulls](https://img.shields.io/docker/pulls/appwrite/appwrite?color=f02e65&style=flat-square)](https://hub.docker.com/r/appwrite/appwrite)
|
||||||
[![Build Status](https://img.shields.io/travis/com/appwrite/appwrite?style=flat-square)](https://travis-ci.com/appwrite/appwrite)
|
[![Build Status](https://img.shields.io/travis/com/appwrite/appwrite?style=flat-square)](https://travis-ci.com/appwrite/appwrite)
|
||||||
[![Twitter Account](https://img.shields.io/twitter/follow/appwrite_io?color=00acee&label=twitter&style=flat-square)](https://twitter.com/appwrite_io)
|
[![Twitter Account](https://img.shields.io/twitter/follow/appwrite_io?color=00acee&label=twitter&style=flat-square)](https://twitter.com/appwrite_io)
|
||||||
[![Follow Appwrite on StackShare](https://img.shields.io/badge/follow%20on-stackshare-blue?style=flat-square)](https://stackshare.io/appwrite)
|
|
||||||
|
|
||||||
[**Appwrite 0.8 has been released! Learn what's new!**](https://dev.to/appwrite/announcing-appwrite-0-8-an-open-source-self-hosted-baas-kda)
|
[**Appwrite 0.8 has been released! Learn what's new!**](https://dev.to/appwrite/announcing-appwrite-0-8-an-open-source-self-hosted-baas-kda)
|
||||||
|
|
||||||
|
|
|
@ -15,7 +15,7 @@ return [
|
||||||
[
|
[
|
||||||
'key' => 'web',
|
'key' => 'web',
|
||||||
'name' => 'Web',
|
'name' => 'Web',
|
||||||
'version' => '3.0.4',
|
'version' => '3.1.0',
|
||||||
'url' => 'https://github.com/appwrite/sdk-for-web',
|
'url' => 'https://github.com/appwrite/sdk-for-web',
|
||||||
'package' => 'https://www.npmjs.com/package/appwrite',
|
'package' => 'https://www.npmjs.com/package/appwrite',
|
||||||
'enabled' => true,
|
'enabled' => true,
|
||||||
|
@ -62,7 +62,7 @@ return [
|
||||||
[
|
[
|
||||||
'key' => 'flutter',
|
'key' => 'flutter',
|
||||||
'name' => 'Flutter',
|
'name' => 'Flutter',
|
||||||
'version' => '0.6.2',
|
'version' => '0.6.4',
|
||||||
'url' => 'https://github.com/appwrite/sdk-for-flutter',
|
'url' => 'https://github.com/appwrite/sdk-for-flutter',
|
||||||
'package' => 'https://pub.dev/packages/appwrite',
|
'package' => 'https://pub.dev/packages/appwrite',
|
||||||
'enabled' => true,
|
'enabled' => true,
|
||||||
|
@ -179,7 +179,7 @@ return [
|
||||||
[
|
[
|
||||||
'key' => 'nodejs',
|
'key' => 'nodejs',
|
||||||
'name' => 'Node.js',
|
'name' => 'Node.js',
|
||||||
'version' => '2.2.2',
|
'version' => '2.3.0',
|
||||||
'url' => 'https://github.com/appwrite/sdk-for-node',
|
'url' => 'https://github.com/appwrite/sdk-for-node',
|
||||||
'package' => 'https://www.npmjs.com/package/node-appwrite',
|
'package' => 'https://www.npmjs.com/package/node-appwrite',
|
||||||
'enabled' => true,
|
'enabled' => true,
|
||||||
|
@ -196,7 +196,7 @@ return [
|
||||||
[
|
[
|
||||||
'key' => 'deno',
|
'key' => 'deno',
|
||||||
'name' => 'Deno',
|
'name' => 'Deno',
|
||||||
'version' => '0.2.1',
|
'version' => '0.2.2',
|
||||||
'url' => 'https://github.com/appwrite/sdk-for-deno',
|
'url' => 'https://github.com/appwrite/sdk-for-deno',
|
||||||
'package' => 'https://deno.land/x/appwrite',
|
'package' => 'https://deno.land/x/appwrite',
|
||||||
'enabled' => true,
|
'enabled' => true,
|
||||||
|
@ -213,7 +213,7 @@ return [
|
||||||
[
|
[
|
||||||
'key' => 'php',
|
'key' => 'php',
|
||||||
'name' => 'PHP',
|
'name' => 'PHP',
|
||||||
'version' => '2.1.1',
|
'version' => '2.1.2',
|
||||||
'url' => 'https://github.com/appwrite/sdk-for-php',
|
'url' => 'https://github.com/appwrite/sdk-for-php',
|
||||||
'package' => 'https://packagist.org/packages/appwrite/appwrite',
|
'package' => 'https://packagist.org/packages/appwrite/appwrite',
|
||||||
'enabled' => true,
|
'enabled' => true,
|
||||||
|
@ -230,7 +230,7 @@ return [
|
||||||
[
|
[
|
||||||
'key' => 'python',
|
'key' => 'python',
|
||||||
'name' => 'Python',
|
'name' => 'Python',
|
||||||
'version' => '0.2.1',
|
'version' => '0.3.0',
|
||||||
'url' => 'https://github.com/appwrite/sdk-for-python',
|
'url' => 'https://github.com/appwrite/sdk-for-python',
|
||||||
'package' => 'https://pypi.org/project/appwrite/',
|
'package' => 'https://pypi.org/project/appwrite/',
|
||||||
'enabled' => true,
|
'enabled' => true,
|
||||||
|
@ -247,7 +247,7 @@ return [
|
||||||
[
|
[
|
||||||
'key' => 'ruby',
|
'key' => 'ruby',
|
||||||
'name' => 'Ruby',
|
'name' => 'Ruby',
|
||||||
'version' => '2.1.1',
|
'version' => '2.2.0',
|
||||||
'url' => 'https://github.com/appwrite/sdk-for-ruby',
|
'url' => 'https://github.com/appwrite/sdk-for-ruby',
|
||||||
'package' => 'https://rubygems.org/gems/appwrite',
|
'package' => 'https://rubygems.org/gems/appwrite',
|
||||||
'enabled' => true,
|
'enabled' => true,
|
||||||
|
@ -315,7 +315,7 @@ return [
|
||||||
[
|
[
|
||||||
'key' => 'dart',
|
'key' => 'dart',
|
||||||
'name' => 'Dart',
|
'name' => 'Dart',
|
||||||
'version' => '0.6.1',
|
'version' => '0.6.3',
|
||||||
'url' => 'https://github.com/appwrite/sdk-for-dart',
|
'url' => 'https://github.com/appwrite/sdk-for-dart',
|
||||||
'package' => 'https://pub.dev/packages/dart_appwrite',
|
'package' => 'https://pub.dev/packages/dart_appwrite',
|
||||||
'enabled' => true,
|
'enabled' => true,
|
||||||
|
@ -332,7 +332,7 @@ return [
|
||||||
[
|
[
|
||||||
'key' => 'cli',
|
'key' => 'cli',
|
||||||
'name' => 'Command Line',
|
'name' => 'Command Line',
|
||||||
'version' => '0.10.1',
|
'version' => '0.10.0',
|
||||||
'url' => 'https://github.com/appwrite/sdk-for-cli',
|
'url' => 'https://github.com/appwrite/sdk-for-cli',
|
||||||
'package' => 'https://github.com/appwrite/sdk-for-cli',
|
'package' => 'https://github.com/appwrite/sdk-for-cli',
|
||||||
'enabled' => true,
|
'enabled' => true,
|
||||||
|
|
|
@ -58,15 +58,16 @@ App::post('/v1/account')
|
||||||
/** @var Appwrite\Database\Database $projectDB */
|
/** @var Appwrite\Database\Database $projectDB */
|
||||||
/** @var Appwrite\Event\Event $audits */
|
/** @var Appwrite\Event\Event $audits */
|
||||||
|
|
||||||
|
$email = \strtolower($email);
|
||||||
if ('console' === $project->getId()) {
|
if ('console' === $project->getId()) {
|
||||||
$whitlistEmails = $project->getAttribute('authWhitelistEmails');
|
$whitelistEmails = $project->getAttribute('authWhitelistEmails');
|
||||||
$whitlistIPs = $project->getAttribute('authWhitelistIPs');
|
$whitelistIPs = $project->getAttribute('authWhitelistIPs');
|
||||||
|
|
||||||
if (!empty($whitlistEmails) && !\in_array($email, $whitlistEmails)) {
|
if (!empty($whitelistEmails) && !\in_array($email, $whitelistEmails)) {
|
||||||
throw new Exception('Console registration is restricted to specific emails. Contact your administrator for more information.', 401);
|
throw new Exception('Console registration is restricted to specific emails. Contact your administrator for more information.', 401);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!empty($whitlistIPs) && !\in_array($request->getIP(), $whitlistIPs)) {
|
if (!empty($whitelistIPs) && !\in_array($request->getIP(), $whitelistIPs)) {
|
||||||
throw new Exception('Console registration is restricted to specific IPs. Contact your administrator for more information.', 401);
|
throw new Exception('Console registration is restricted to specific IPs. Contact your administrator for more information.', 401);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -174,6 +175,7 @@ App::post('/v1/account/sessions')
|
||||||
/** @var MaxMind\Db\Reader $geodb */
|
/** @var MaxMind\Db\Reader $geodb */
|
||||||
/** @var Appwrite\Event\Event $audits */
|
/** @var Appwrite\Event\Event $audits */
|
||||||
|
|
||||||
|
$email = \strtolower($email);
|
||||||
$protocol = $request->getProtocol();
|
$protocol = $request->getProtocol();
|
||||||
$profile = $projectDB->getCollectionFirst([ // Get user by email address
|
$profile = $projectDB->getCollectionFirst([ // Get user by email address
|
||||||
'limit' => 1,
|
'limit' => 1,
|
||||||
|
@ -1086,6 +1088,7 @@ App::patch('/v1/account/email')
|
||||||
throw new Exception('Invalid credentials', 401);
|
throw new Exception('Invalid credentials', 401);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$email = \strtolower($email);
|
||||||
$profile = $projectDB->getCollectionFirst([ // Get user by email address
|
$profile = $projectDB->getCollectionFirst([ // Get user by email address
|
||||||
'limit' => 1,
|
'limit' => 1,
|
||||||
'filters' => [
|
'filters' => [
|
||||||
|
@ -1409,6 +1412,7 @@ App::post('/v1/account/recovery')
|
||||||
$isPrivilegedUser = Auth::isPrivilegedUser(Authorization::$roles);
|
$isPrivilegedUser = Auth::isPrivilegedUser(Authorization::$roles);
|
||||||
$isAppUser = Auth::isAppUser(Authorization::$roles);
|
$isAppUser = Auth::isAppUser(Authorization::$roles);
|
||||||
|
|
||||||
|
$email = \strtolower($email);
|
||||||
$profile = $projectDB->getCollectionFirst([ // Get user by email address
|
$profile = $projectDB->getCollectionFirst([ // Get user by email address
|
||||||
'limit' => 1,
|
'limit' => 1,
|
||||||
'filters' => [
|
'filters' => [
|
||||||
|
|
|
@ -286,6 +286,7 @@ App::post('/v1/teams/:teamId/memberships')
|
||||||
$isPrivilegedUser = Auth::isPrivilegedUser(Authorization::$roles);
|
$isPrivilegedUser = Auth::isPrivilegedUser(Authorization::$roles);
|
||||||
$isAppUser = Auth::isAppUser(Authorization::$roles);
|
$isAppUser = Auth::isAppUser(Authorization::$roles);
|
||||||
|
|
||||||
|
$email = \strtolower($email);
|
||||||
$name = (empty($name)) ? $email : $name;
|
$name = (empty($name)) ? $email : $name;
|
||||||
$team = $projectDB->getDocument($teamId);
|
$team = $projectDB->getDocument($teamId);
|
||||||
|
|
||||||
|
|
|
@ -41,6 +41,7 @@ App::post('/v1/users')
|
||||||
/** @var Appwrite\Utopia\Response $response */
|
/** @var Appwrite\Utopia\Response $response */
|
||||||
/** @var Appwrite\Database\Database $projectDB */
|
/** @var Appwrite\Database\Database $projectDB */
|
||||||
|
|
||||||
|
$email = \strtolower($email);
|
||||||
$profile = $projectDB->getCollectionFirst([ // Get user by email address
|
$profile = $projectDB->getCollectionFirst([ // Get user by email address
|
||||||
'limit' => 1,
|
'limit' => 1,
|
||||||
'filters' => [
|
'filters' => [
|
||||||
|
|
|
@ -6,9 +6,9 @@ use Appwrite\Database\Document;
|
||||||
use Appwrite\Network\Validator\Host;
|
use Appwrite\Network\Validator\Host;
|
||||||
use Appwrite\Utopia\Response;
|
use Appwrite\Utopia\Response;
|
||||||
use Utopia\App;
|
use Utopia\App;
|
||||||
use Utopia\Validator\Numeric;
|
|
||||||
use Utopia\Validator\Text;
|
|
||||||
use Utopia\Validator\ArrayList;
|
use Utopia\Validator\ArrayList;
|
||||||
|
use Utopia\Validator\Integer;
|
||||||
|
use Utopia\Validator\Text;
|
||||||
use Utopia\Storage\Validator\File;
|
use Utopia\Storage\Validator\File;
|
||||||
|
|
||||||
App::get('/v1/mock/tests/foo')
|
App::get('/v1/mock/tests/foo')
|
||||||
|
@ -24,7 +24,7 @@ App::get('/v1/mock/tests/foo')
|
||||||
->label('sdk.response.model', Response::MODEL_MOCK)
|
->label('sdk.response.model', Response::MODEL_MOCK)
|
||||||
->label('sdk.mock', true)
|
->label('sdk.mock', true)
|
||||||
->param('x', '', new Text(100), 'Sample string param')
|
->param('x', '', new Text(100), 'Sample string param')
|
||||||
->param('y', '', new Numeric(), 'Sample numeric param')
|
->param('y', '', new Integer(), 'Sample numeric param')
|
||||||
->param('z', null, new ArrayList(new Text(256)), 'Sample array param')
|
->param('z', null, new ArrayList(new Text(256)), 'Sample array param')
|
||||||
->action(function ($x, $y, $z) {
|
->action(function ($x, $y, $z) {
|
||||||
});
|
});
|
||||||
|
@ -42,7 +42,7 @@ App::post('/v1/mock/tests/foo')
|
||||||
->label('sdk.response.model', Response::MODEL_MOCK)
|
->label('sdk.response.model', Response::MODEL_MOCK)
|
||||||
->label('sdk.mock', true)
|
->label('sdk.mock', true)
|
||||||
->param('x', '', new Text(100), 'Sample string param')
|
->param('x', '', new Text(100), 'Sample string param')
|
||||||
->param('y', '', new Numeric(), 'Sample numeric param')
|
->param('y', '', new Integer(), 'Sample numeric param')
|
||||||
->param('z', null, new ArrayList(new Text(256)), 'Sample array param')
|
->param('z', null, new ArrayList(new Text(256)), 'Sample array param')
|
||||||
->action(function ($x, $y, $z) {
|
->action(function ($x, $y, $z) {
|
||||||
});
|
});
|
||||||
|
@ -60,7 +60,7 @@ App::patch('/v1/mock/tests/foo')
|
||||||
->label('sdk.response.model', Response::MODEL_MOCK)
|
->label('sdk.response.model', Response::MODEL_MOCK)
|
||||||
->label('sdk.mock', true)
|
->label('sdk.mock', true)
|
||||||
->param('x', '', new Text(100), 'Sample string param')
|
->param('x', '', new Text(100), 'Sample string param')
|
||||||
->param('y', '', new Numeric(), 'Sample numeric param')
|
->param('y', '', new Integer(), 'Sample numeric param')
|
||||||
->param('z', null, new ArrayList(new Text(256)), 'Sample array param')
|
->param('z', null, new ArrayList(new Text(256)), 'Sample array param')
|
||||||
->action(function ($x, $y, $z) {
|
->action(function ($x, $y, $z) {
|
||||||
});
|
});
|
||||||
|
@ -78,7 +78,7 @@ App::put('/v1/mock/tests/foo')
|
||||||
->label('sdk.response.model', Response::MODEL_MOCK)
|
->label('sdk.response.model', Response::MODEL_MOCK)
|
||||||
->label('sdk.mock', true)
|
->label('sdk.mock', true)
|
||||||
->param('x', '', new Text(100), 'Sample string param')
|
->param('x', '', new Text(100), 'Sample string param')
|
||||||
->param('y', '', new Numeric(), 'Sample numeric param')
|
->param('y', '', new Integer(), 'Sample numeric param')
|
||||||
->param('z', null, new ArrayList(new Text(256)), 'Sample array param')
|
->param('z', null, new ArrayList(new Text(256)), 'Sample array param')
|
||||||
->action(function ($x, $y, $z) {
|
->action(function ($x, $y, $z) {
|
||||||
});
|
});
|
||||||
|
@ -96,7 +96,7 @@ App::delete('/v1/mock/tests/foo')
|
||||||
->label('sdk.response.model', Response::MODEL_MOCK)
|
->label('sdk.response.model', Response::MODEL_MOCK)
|
||||||
->label('sdk.mock', true)
|
->label('sdk.mock', true)
|
||||||
->param('x', '', new Text(100), 'Sample string param')
|
->param('x', '', new Text(100), 'Sample string param')
|
||||||
->param('y', '', new Numeric(), 'Sample numeric param')
|
->param('y', '', new Integer(), 'Sample numeric param')
|
||||||
->param('z', null, new ArrayList(new Text(256)), 'Sample array param')
|
->param('z', null, new ArrayList(new Text(256)), 'Sample array param')
|
||||||
->action(function ($x, $y, $z) {
|
->action(function ($x, $y, $z) {
|
||||||
});
|
});
|
||||||
|
@ -114,7 +114,7 @@ App::get('/v1/mock/tests/bar')
|
||||||
->label('sdk.response.model', Response::MODEL_MOCK)
|
->label('sdk.response.model', Response::MODEL_MOCK)
|
||||||
->label('sdk.mock', true)
|
->label('sdk.mock', true)
|
||||||
->param('x', '', new Text(100), 'Sample string param')
|
->param('x', '', new Text(100), 'Sample string param')
|
||||||
->param('y', '', new Numeric(), 'Sample numeric param')
|
->param('y', '', new Integer(), 'Sample numeric param')
|
||||||
->param('z', null, new ArrayList(new Text(256)), 'Sample array param')
|
->param('z', null, new ArrayList(new Text(256)), 'Sample array param')
|
||||||
->action(function ($x, $y, $z) {
|
->action(function ($x, $y, $z) {
|
||||||
});
|
});
|
||||||
|
@ -132,7 +132,7 @@ App::post('/v1/mock/tests/bar')
|
||||||
->label('sdk.response.model', Response::MODEL_MOCK)
|
->label('sdk.response.model', Response::MODEL_MOCK)
|
||||||
->label('sdk.mock', true)
|
->label('sdk.mock', true)
|
||||||
->param('x', '', new Text(100), 'Sample string param')
|
->param('x', '', new Text(100), 'Sample string param')
|
||||||
->param('y', '', new Numeric(), 'Sample numeric param')
|
->param('y', '', new Integer(), 'Sample numeric param')
|
||||||
->param('z', null, new ArrayList(new Text(256)), 'Sample array param')
|
->param('z', null, new ArrayList(new Text(256)), 'Sample array param')
|
||||||
->action(function ($x, $y, $z) {
|
->action(function ($x, $y, $z) {
|
||||||
});
|
});
|
||||||
|
@ -150,7 +150,7 @@ App::patch('/v1/mock/tests/bar')
|
||||||
->label('sdk.response.model', Response::MODEL_MOCK)
|
->label('sdk.response.model', Response::MODEL_MOCK)
|
||||||
->label('sdk.mock', true)
|
->label('sdk.mock', true)
|
||||||
->param('x', '', new Text(100), 'Sample string param')
|
->param('x', '', new Text(100), 'Sample string param')
|
||||||
->param('y', '', new Numeric(), 'Sample numeric param')
|
->param('y', '', new Integer(), 'Sample numeric param')
|
||||||
->param('z', null, new ArrayList(new Text(256)), 'Sample array param')
|
->param('z', null, new ArrayList(new Text(256)), 'Sample array param')
|
||||||
->action(function ($x, $y, $z) {
|
->action(function ($x, $y, $z) {
|
||||||
});
|
});
|
||||||
|
@ -168,7 +168,7 @@ App::put('/v1/mock/tests/bar')
|
||||||
->label('sdk.response.model', Response::MODEL_MOCK)
|
->label('sdk.response.model', Response::MODEL_MOCK)
|
||||||
->label('sdk.mock', true)
|
->label('sdk.mock', true)
|
||||||
->param('x', '', new Text(100), 'Sample string param')
|
->param('x', '', new Text(100), 'Sample string param')
|
||||||
->param('y', '', new Numeric(), 'Sample numeric param')
|
->param('y', '', new Integer(), 'Sample numeric param')
|
||||||
->param('z', null, new ArrayList(new Text(256)), 'Sample array param')
|
->param('z', null, new ArrayList(new Text(256)), 'Sample array param')
|
||||||
->action(function ($x, $y, $z) {
|
->action(function ($x, $y, $z) {
|
||||||
});
|
});
|
||||||
|
@ -186,7 +186,7 @@ App::delete('/v1/mock/tests/bar')
|
||||||
->label('sdk.response.model', Response::MODEL_MOCK)
|
->label('sdk.response.model', Response::MODEL_MOCK)
|
||||||
->label('sdk.mock', true)
|
->label('sdk.mock', true)
|
||||||
->param('x', '', new Text(100), 'Sample string param')
|
->param('x', '', new Text(100), 'Sample string param')
|
||||||
->param('y', '', new Numeric(), 'Sample numeric param')
|
->param('y', '', new Integer(), 'Sample numeric param')
|
||||||
->param('z', null, new ArrayList(new Text(256)), 'Sample array param')
|
->param('z', null, new ArrayList(new Text(256)), 'Sample array param')
|
||||||
->action(function ($x, $y, $z) {
|
->action(function ($x, $y, $z) {
|
||||||
});
|
});
|
||||||
|
@ -230,7 +230,7 @@ App::post('/v1/mock/tests/general/upload')
|
||||||
->label('sdk.response.model', Response::MODEL_MOCK)
|
->label('sdk.response.model', Response::MODEL_MOCK)
|
||||||
->label('sdk.mock', true)
|
->label('sdk.mock', true)
|
||||||
->param('x', '', new Text(100), 'Sample string param')
|
->param('x', '', new Text(100), 'Sample string param')
|
||||||
->param('y', '', new Numeric(), 'Sample numeric param')
|
->param('y', '', new Integer(), 'Sample numeric param')
|
||||||
->param('z', null, new ArrayList(new Text(256)), 'Sample array param')
|
->param('z', null, new ArrayList(new Text(256)), 'Sample array param')
|
||||||
->param('file', [], new File(), 'Sample file param', false)
|
->param('file', [], new File(), 'Sample file param', false)
|
||||||
->inject('request')
|
->inject('request')
|
||||||
|
@ -271,6 +271,7 @@ App::get('/v1/mock/tests/general/redirect')
|
||||||
->label('sdk.description', 'Mock a redirect request.')
|
->label('sdk.description', 'Mock a redirect request.')
|
||||||
->label('sdk.response.code', Response::STATUS_CODE_MOVED_PERMANENTLY)
|
->label('sdk.response.code', Response::STATUS_CODE_MOVED_PERMANENTLY)
|
||||||
->label('sdk.response.type', Response::CONTENT_TYPE_HTML)
|
->label('sdk.response.type', Response::CONTENT_TYPE_HTML)
|
||||||
|
->label('sdk.response.model', Response::MODEL_MOCK)
|
||||||
->label('sdk.mock', true)
|
->label('sdk.mock', true)
|
||||||
->inject('response')
|
->inject('response')
|
||||||
->action(function ($response) {
|
->action(function ($response) {
|
||||||
|
@ -394,6 +395,7 @@ App::get('/v1/mock/tests/general/502-error')
|
||||||
->label('sdk.description', 'Mock a 502 bad gateway.')
|
->label('sdk.description', 'Mock a 502 bad gateway.')
|
||||||
->label('sdk.response.code', Response::STATUS_CODE_BAD_GATEWAY)
|
->label('sdk.response.code', Response::STATUS_CODE_BAD_GATEWAY)
|
||||||
->label('sdk.response.type', Response::CONTENT_TYPE_TEXT)
|
->label('sdk.response.type', Response::CONTENT_TYPE_TEXT)
|
||||||
|
->label('sdk.response.model', Response::MODEL_ANY)
|
||||||
->label('sdk.mock', true)
|
->label('sdk.mock', true)
|
||||||
->inject('response')
|
->inject('response')
|
||||||
->action(function ($response) {
|
->action(function ($response) {
|
||||||
|
|
|
@ -8,6 +8,7 @@ use Utopia\App;
|
||||||
use Utopia\View;
|
use Utopia\View;
|
||||||
use Utopia\Config\Config;
|
use Utopia\Config\Config;
|
||||||
use Utopia\Exception;
|
use Utopia\Exception;
|
||||||
|
use Utopia\Validator\Boolean;
|
||||||
use Utopia\Validator\Range;
|
use Utopia\Validator\Range;
|
||||||
use Utopia\Validator\WhiteList;
|
use Utopia\Validator\WhiteList;
|
||||||
|
|
||||||
|
|
Binary file not shown.
BIN
app/db/DBIP/dbip-country-lite-2021-06.mmdb
Normal file
BIN
app/db/DBIP/dbip-country-lite-2021-06.mmdb
Normal file
Binary file not shown.
|
@ -39,7 +39,7 @@ const APP_USERAGENT = APP_NAME.'-Server v%s. Please report abuse at %s';
|
||||||
const APP_MODE_DEFAULT = 'default';
|
const APP_MODE_DEFAULT = 'default';
|
||||||
const APP_MODE_ADMIN = 'admin';
|
const APP_MODE_ADMIN = 'admin';
|
||||||
const APP_PAGING_LIMIT = 12;
|
const APP_PAGING_LIMIT = 12;
|
||||||
const APP_CACHE_BUSTER = 146;
|
const APP_CACHE_BUSTER = 148;
|
||||||
const APP_VERSION_STABLE = '0.8.0';
|
const APP_VERSION_STABLE = '0.8.0';
|
||||||
const APP_STORAGE_UPLOADS = '/storage/uploads';
|
const APP_STORAGE_UPLOADS = '/storage/uploads';
|
||||||
const APP_STORAGE_FUNCTIONS = '/storage/functions';
|
const APP_STORAGE_FUNCTIONS = '/storage/functions';
|
||||||
|
@ -233,7 +233,7 @@ $register->set('smtp', function () {
|
||||||
return $mail;
|
return $mail;
|
||||||
});
|
});
|
||||||
$register->set('geodb', function () {
|
$register->set('geodb', function () {
|
||||||
return new Reader(__DIR__.'/db/DBIP/dbip-country-lite-2021-02.mmdb');
|
return new Reader(__DIR__.'/db/DBIP/dbip-country-lite-2021-06.mmdb');
|
||||||
});
|
});
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
|
@ -201,7 +201,7 @@ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
||||||
\exec('rm -rf '.$target.' && \
|
\exec('rm -rf '.$target.' && \
|
||||||
mkdir -p '.$target.' && \
|
mkdir -p '.$target.' && \
|
||||||
cd '.$target.' && \
|
cd '.$target.' && \
|
||||||
git init && \
|
git init --initial-branch=master && \
|
||||||
git remote add origin '.$gitUrl.' && \
|
git remote add origin '.$gitUrl.' && \
|
||||||
git fetch && \
|
git fetch && \
|
||||||
git pull '.$gitUrl.' && \
|
git pull '.$gitUrl.' && \
|
||||||
|
|
|
@ -43,7 +43,7 @@ if(!empty($platforms)) {
|
||||||
<link rel="apple-touch-icon" href="/images/apple.png">
|
<link rel="apple-touch-icon" href="/images/apple.png">
|
||||||
<!-- <link rel="preconnect" href="" /> -->
|
<!-- <link rel="preconnect" href="" /> -->
|
||||||
<?php if (!empty($canonical)): ?>
|
<?php if (!empty($canonical)): ?>
|
||||||
<link rel="canonical" href="<?php echo $canonical; ?>" />
|
<link rel="canonical" href="<?php echo $this->escape($canonical); ?>" />
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
<?php foreach ($this->getParam('prefetch', []) as $prefetch): ?>
|
<?php foreach ($this->getParam('prefetch', []) as $prefetch): ?>
|
||||||
<link rel="prefetch" href="<?php echo $this->escape($prefetch); ?>" />
|
<link rel="prefetch" href="<?php echo $this->escape($prefetch); ?>" />
|
||||||
|
@ -52,12 +52,12 @@ if(!empty($platforms)) {
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=5" />
|
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=5" />
|
||||||
<meta name="theme-color" content="#24f4d4">
|
<meta name="theme-color" content="#24f4d4">
|
||||||
<meta property="og:type" content="website" />
|
<meta property="og:type" content="website" />
|
||||||
<meta property="og:title" content="<?php echo $this->getParam('title', ''); ?>" />
|
<meta property="og:title" content="<?php echo $this->escape($this->getParam('title', '')); ?>" />
|
||||||
<meta property="og:description" content="<?php echo $this->getParam('description', ''); ?>" />
|
<meta property="og:description" content="<?php echo $this->escape($this->getParam('description', '')); ?>" />
|
||||||
<?php if (!empty($canonical)): ?>
|
<?php if (!empty($canonical)): ?>
|
||||||
<meta property="og:url" content="<?php echo $canonical; ?>" />
|
<meta property="og:url" content="<?php echo $this->escape($canonical); ?>" />
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
<meta property="og:image" content="<?php echo $endpoint; ?>/images/logo.png?v=<?php echo APP_CACHE_BUSTER; ?>" />
|
<meta property="og:image" content="<?php echo $this->escape($endpoint); ?>/images/logo.png?v=<?php echo APP_CACHE_BUSTER; ?>" />
|
||||||
<script>
|
<script>
|
||||||
|
|
||||||
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
|
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
|
||||||
|
@ -69,11 +69,11 @@ if(!empty($platforms)) {
|
||||||
|
|
||||||
var APP_ENV = {
|
var APP_ENV = {
|
||||||
NAME: '<?php echo APP_NAME; ?>',
|
NAME: '<?php echo APP_NAME; ?>',
|
||||||
VERSION: '<?php echo $version; ?>',
|
VERSION: '<?php echo $this->escape($version); ?>',
|
||||||
CACHEBUSTER: '<?php echo $version; ?>/<?php echo APP_CACHE_BUSTER; ?>',
|
CACHEBUSTER: '<?php echo $this->escape($version); ?>/<?php echo APP_CACHE_BUSTER; ?>',
|
||||||
PROTOCOL: '<?php echo $protocol; ?>',
|
PROTOCOL: '<?php echo $this->escape($protocol); ?>',
|
||||||
ENDPOINT: '<?php echo $endpoint; ?>',
|
ENDPOINT: '<?php echo $this->escape($endpoint); ?>',
|
||||||
DOMAIN: '<?php echo $domain; ?>',
|
DOMAIN: '<?php echo $this->escape($domain); ?>',
|
||||||
HOME: '<?php echo $this->escape($this->getParam('home')); ?>',
|
HOME: '<?php echo $this->escape($this->getParam('home')); ?>',
|
||||||
SETUP: '<?php echo $this->escape($this->getParam('setup')); ?>',
|
SETUP: '<?php echo $this->escape($this->getParam('setup')); ?>',
|
||||||
API: '/v1',
|
API: '/v1',
|
||||||
|
@ -93,7 +93,7 @@ if(!empty($platforms)) {
|
||||||
|
|
||||||
script.type = 'text/javascript';
|
script.type = 'text/javascript';
|
||||||
script.async = true;
|
script.async = true;
|
||||||
script.src = '/dist/scripts/app-all.js?v=<?php echo APP_CACHE_BUSTER; ?>.<?php echo $version; ?>';
|
script.src = '/dist/scripts/app-all.js?v=<?php echo APP_CACHE_BUSTER; ?>.<?php echo $this->escape($version); ?>';
|
||||||
script.onload = function() {
|
script.onload = function() {
|
||||||
window.ls.run(window);
|
window.ls.run(window);
|
||||||
};
|
};
|
||||||
|
@ -142,6 +142,6 @@ if(!empty($platforms)) {
|
||||||
|
|
||||||
<?php echo $this->exec($this->getParam('footer', [])); ?>
|
<?php echo $this->exec($this->getParam('footer', [])); ?>
|
||||||
|
|
||||||
<!-- Version <?php echo $version; ?> -->
|
<!-- Version <?php echo $this->escape($version); ?> -->
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
|
@ -62,7 +62,7 @@
|
||||||
"slickdeals/statsd": "3.0.2"
|
"slickdeals/statsd": "3.0.2"
|
||||||
},
|
},
|
||||||
"require-dev": {
|
"require-dev": {
|
||||||
"appwrite/sdk-generator": "0.10.6",
|
"appwrite/sdk-generator": "0.10.11",
|
||||||
"swoole/ide-helper": "4.6.6",
|
"swoole/ide-helper": "4.6.6",
|
||||||
"phpunit/phpunit": "9.5.4",
|
"phpunit/phpunit": "9.5.4",
|
||||||
"vimeo/psalm": "4.7.2"
|
"vimeo/psalm": "4.7.2"
|
||||||
|
|
218
composer.lock
generated
218
composer.lock
generated
|
@ -4,7 +4,7 @@
|
||||||
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
|
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
|
||||||
"This file is @generated automatically"
|
"This file is @generated automatically"
|
||||||
],
|
],
|
||||||
"content-hash": "e433ce62dd355a107816e8967d5c769d",
|
"content-hash": "6704f7df5ffe0baac3633dc8e683ed78",
|
||||||
"packages": [
|
"packages": [
|
||||||
{
|
{
|
||||||
"name": "adhocore/jwt",
|
"name": "adhocore/jwt",
|
||||||
|
@ -1245,16 +1245,16 @@
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "symfony/polyfill-ctype",
|
"name": "symfony/polyfill-ctype",
|
||||||
"version": "v1.22.1",
|
"version": "v1.23.0",
|
||||||
"source": {
|
"source": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/symfony/polyfill-ctype.git",
|
"url": "https://github.com/symfony/polyfill-ctype.git",
|
||||||
"reference": "c6c942b1ac76c82448322025e084cadc56048b4e"
|
"reference": "46cd95797e9df938fdd2b03693b5fca5e64b01ce"
|
||||||
},
|
},
|
||||||
"dist": {
|
"dist": {
|
||||||
"type": "zip",
|
"type": "zip",
|
||||||
"url": "https://api.github.com/repos/symfony/polyfill-ctype/zipball/c6c942b1ac76c82448322025e084cadc56048b4e",
|
"url": "https://api.github.com/repos/symfony/polyfill-ctype/zipball/46cd95797e9df938fdd2b03693b5fca5e64b01ce",
|
||||||
"reference": "c6c942b1ac76c82448322025e084cadc56048b4e",
|
"reference": "46cd95797e9df938fdd2b03693b5fca5e64b01ce",
|
||||||
"shasum": ""
|
"shasum": ""
|
||||||
},
|
},
|
||||||
"require": {
|
"require": {
|
||||||
|
@ -1266,7 +1266,7 @@
|
||||||
"type": "library",
|
"type": "library",
|
||||||
"extra": {
|
"extra": {
|
||||||
"branch-alias": {
|
"branch-alias": {
|
||||||
"dev-main": "1.22-dev"
|
"dev-main": "1.23-dev"
|
||||||
},
|
},
|
||||||
"thanks": {
|
"thanks": {
|
||||||
"name": "symfony/polyfill",
|
"name": "symfony/polyfill",
|
||||||
|
@ -1304,7 +1304,7 @@
|
||||||
"portable"
|
"portable"
|
||||||
],
|
],
|
||||||
"support": {
|
"support": {
|
||||||
"source": "https://github.com/symfony/polyfill-ctype/tree/v1.22.1"
|
"source": "https://github.com/symfony/polyfill-ctype/tree/v1.23.0"
|
||||||
},
|
},
|
||||||
"funding": [
|
"funding": [
|
||||||
{
|
{
|
||||||
|
@ -1320,20 +1320,20 @@
|
||||||
"type": "tidelift"
|
"type": "tidelift"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"time": "2021-01-07T16:49:33+00:00"
|
"time": "2021-02-19T12:13:01+00:00"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "utopia-php/abuse",
|
"name": "utopia-php/abuse",
|
||||||
"version": "0.4.0",
|
"version": "0.4.1",
|
||||||
"source": {
|
"source": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/utopia-php/abuse.git",
|
"url": "https://github.com/utopia-php/abuse.git",
|
||||||
"reference": "2b8cc40a67c045c137b44d1a11326f494acf50a4"
|
"reference": "8b7973aae4b02489bd22ffea45b985608f13b6d9"
|
||||||
},
|
},
|
||||||
"dist": {
|
"dist": {
|
||||||
"type": "zip",
|
"type": "zip",
|
||||||
"url": "https://api.github.com/repos/utopia-php/abuse/zipball/2b8cc40a67c045c137b44d1a11326f494acf50a4",
|
"url": "https://api.github.com/repos/utopia-php/abuse/zipball/8b7973aae4b02489bd22ffea45b985608f13b6d9",
|
||||||
"reference": "2b8cc40a67c045c137b44d1a11326f494acf50a4",
|
"reference": "8b7973aae4b02489bd22ffea45b985608f13b6d9",
|
||||||
"shasum": ""
|
"shasum": ""
|
||||||
},
|
},
|
||||||
"require": {
|
"require": {
|
||||||
|
@ -1370,9 +1370,9 @@
|
||||||
],
|
],
|
||||||
"support": {
|
"support": {
|
||||||
"issues": "https://github.com/utopia-php/abuse/issues",
|
"issues": "https://github.com/utopia-php/abuse/issues",
|
||||||
"source": "https://github.com/utopia-php/abuse/tree/0.4.0"
|
"source": "https://github.com/utopia-php/abuse/tree/0.4.1"
|
||||||
},
|
},
|
||||||
"time": "2021-03-17T20:21:24+00:00"
|
"time": "2021-06-05T14:31:33+00:00"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "utopia-php/analytics",
|
"name": "utopia-php/analytics",
|
||||||
|
@ -2340,16 +2340,16 @@
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "appwrite/sdk-generator",
|
"name": "appwrite/sdk-generator",
|
||||||
"version": "0.10.6",
|
"version": "0.10.11",
|
||||||
"source": {
|
"source": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/appwrite/sdk-generator.git",
|
"url": "https://github.com/appwrite/sdk-generator.git",
|
||||||
"reference": "ab4adb0b9126c617e11c8fdf4352c8aa9a715ecc"
|
"reference": "f73391d482660798f4077d54760d67e633bdde1e"
|
||||||
},
|
},
|
||||||
"dist": {
|
"dist": {
|
||||||
"type": "zip",
|
"type": "zip",
|
||||||
"url": "https://api.github.com/repos/appwrite/sdk-generator/zipball/ab4adb0b9126c617e11c8fdf4352c8aa9a715ecc",
|
"url": "https://api.github.com/repos/appwrite/sdk-generator/zipball/f73391d482660798f4077d54760d67e633bdde1e",
|
||||||
"reference": "ab4adb0b9126c617e11c8fdf4352c8aa9a715ecc",
|
"reference": "f73391d482660798f4077d54760d67e633bdde1e",
|
||||||
"shasum": ""
|
"shasum": ""
|
||||||
},
|
},
|
||||||
"require": {
|
"require": {
|
||||||
|
@ -2383,9 +2383,9 @@
|
||||||
"description": "Appwrite PHP library for generating API SDKs for multiple programming languages and platforms",
|
"description": "Appwrite PHP library for generating API SDKs for multiple programming languages and platforms",
|
||||||
"support": {
|
"support": {
|
||||||
"issues": "https://github.com/appwrite/sdk-generator/issues",
|
"issues": "https://github.com/appwrite/sdk-generator/issues",
|
||||||
"source": "https://github.com/appwrite/sdk-generator/tree/0.10.6"
|
"source": "https://github.com/appwrite/sdk-generator/tree/0.10.11"
|
||||||
},
|
},
|
||||||
"time": "2021-05-24T14:32:40+00:00"
|
"time": "2021-06-07T11:37:50+00:00"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "composer/package-versions-deprecated",
|
"name": "composer/package-versions-deprecated",
|
||||||
|
@ -4823,16 +4823,16 @@
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "sebastian/type",
|
"name": "sebastian/type",
|
||||||
"version": "2.3.1",
|
"version": "2.3.2",
|
||||||
"source": {
|
"source": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/sebastianbergmann/type.git",
|
"url": "https://github.com/sebastianbergmann/type.git",
|
||||||
"reference": "81cd61ab7bbf2de744aba0ea61fae32f721df3d2"
|
"reference": "0d1c587401514d17e8f9258a27e23527cb1b06c1"
|
||||||
},
|
},
|
||||||
"dist": {
|
"dist": {
|
||||||
"type": "zip",
|
"type": "zip",
|
||||||
"url": "https://api.github.com/repos/sebastianbergmann/type/zipball/81cd61ab7bbf2de744aba0ea61fae32f721df3d2",
|
"url": "https://api.github.com/repos/sebastianbergmann/type/zipball/0d1c587401514d17e8f9258a27e23527cb1b06c1",
|
||||||
"reference": "81cd61ab7bbf2de744aba0ea61fae32f721df3d2",
|
"reference": "0d1c587401514d17e8f9258a27e23527cb1b06c1",
|
||||||
"shasum": ""
|
"shasum": ""
|
||||||
},
|
},
|
||||||
"require": {
|
"require": {
|
||||||
|
@ -4867,7 +4867,7 @@
|
||||||
"homepage": "https://github.com/sebastianbergmann/type",
|
"homepage": "https://github.com/sebastianbergmann/type",
|
||||||
"support": {
|
"support": {
|
||||||
"issues": "https://github.com/sebastianbergmann/type/issues",
|
"issues": "https://github.com/sebastianbergmann/type/issues",
|
||||||
"source": "https://github.com/sebastianbergmann/type/tree/2.3.1"
|
"source": "https://github.com/sebastianbergmann/type/tree/2.3.2"
|
||||||
},
|
},
|
||||||
"funding": [
|
"funding": [
|
||||||
{
|
{
|
||||||
|
@ -4875,7 +4875,7 @@
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"time": "2020-10-26T13:18:59+00:00"
|
"time": "2021-06-04T13:02:07+00:00"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "sebastian/version",
|
"name": "sebastian/version",
|
||||||
|
@ -4984,20 +4984,21 @@
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "symfony/console",
|
"name": "symfony/console",
|
||||||
"version": "v5.2.8",
|
"version": "v5.3.0",
|
||||||
"source": {
|
"source": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/symfony/console.git",
|
"url": "https://github.com/symfony/console.git",
|
||||||
"reference": "864568fdc0208b3eba3638b6000b69d2386e6768"
|
"reference": "058553870f7809087fa80fa734704a21b9bcaeb2"
|
||||||
},
|
},
|
||||||
"dist": {
|
"dist": {
|
||||||
"type": "zip",
|
"type": "zip",
|
||||||
"url": "https://api.github.com/repos/symfony/console/zipball/864568fdc0208b3eba3638b6000b69d2386e6768",
|
"url": "https://api.github.com/repos/symfony/console/zipball/058553870f7809087fa80fa734704a21b9bcaeb2",
|
||||||
"reference": "864568fdc0208b3eba3638b6000b69d2386e6768",
|
"reference": "058553870f7809087fa80fa734704a21b9bcaeb2",
|
||||||
"shasum": ""
|
"shasum": ""
|
||||||
},
|
},
|
||||||
"require": {
|
"require": {
|
||||||
"php": ">=7.2.5",
|
"php": ">=7.2.5",
|
||||||
|
"symfony/deprecation-contracts": "^2.1",
|
||||||
"symfony/polyfill-mbstring": "~1.0",
|
"symfony/polyfill-mbstring": "~1.0",
|
||||||
"symfony/polyfill-php73": "^1.8",
|
"symfony/polyfill-php73": "^1.8",
|
||||||
"symfony/polyfill-php80": "^1.15",
|
"symfony/polyfill-php80": "^1.15",
|
||||||
|
@ -5061,7 +5062,7 @@
|
||||||
"terminal"
|
"terminal"
|
||||||
],
|
],
|
||||||
"support": {
|
"support": {
|
||||||
"source": "https://github.com/symfony/console/tree/v5.2.8"
|
"source": "https://github.com/symfony/console/tree/v5.3.0"
|
||||||
},
|
},
|
||||||
"funding": [
|
"funding": [
|
||||||
{
|
{
|
||||||
|
@ -5077,20 +5078,87 @@
|
||||||
"type": "tidelift"
|
"type": "tidelift"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"time": "2021-05-11T15:45:21+00:00"
|
"time": "2021-05-26T17:43:10+00:00"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "symfony/polyfill-intl-grapheme",
|
"name": "symfony/deprecation-contracts",
|
||||||
"version": "v1.22.1",
|
"version": "v2.4.0",
|
||||||
"source": {
|
"source": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/symfony/polyfill-intl-grapheme.git",
|
"url": "https://github.com/symfony/deprecation-contracts.git",
|
||||||
"reference": "5601e09b69f26c1828b13b6bb87cb07cddba3170"
|
"reference": "5f38c8804a9e97d23e0c8d63341088cd8a22d627"
|
||||||
},
|
},
|
||||||
"dist": {
|
"dist": {
|
||||||
"type": "zip",
|
"type": "zip",
|
||||||
"url": "https://api.github.com/repos/symfony/polyfill-intl-grapheme/zipball/5601e09b69f26c1828b13b6bb87cb07cddba3170",
|
"url": "https://api.github.com/repos/symfony/deprecation-contracts/zipball/5f38c8804a9e97d23e0c8d63341088cd8a22d627",
|
||||||
"reference": "5601e09b69f26c1828b13b6bb87cb07cddba3170",
|
"reference": "5f38c8804a9e97d23e0c8d63341088cd8a22d627",
|
||||||
|
"shasum": ""
|
||||||
|
},
|
||||||
|
"require": {
|
||||||
|
"php": ">=7.1"
|
||||||
|
},
|
||||||
|
"type": "library",
|
||||||
|
"extra": {
|
||||||
|
"branch-alias": {
|
||||||
|
"dev-main": "2.4-dev"
|
||||||
|
},
|
||||||
|
"thanks": {
|
||||||
|
"name": "symfony/contracts",
|
||||||
|
"url": "https://github.com/symfony/contracts"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"autoload": {
|
||||||
|
"files": [
|
||||||
|
"function.php"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"notification-url": "https://packagist.org/downloads/",
|
||||||
|
"license": [
|
||||||
|
"MIT"
|
||||||
|
],
|
||||||
|
"authors": [
|
||||||
|
{
|
||||||
|
"name": "Nicolas Grekas",
|
||||||
|
"email": "p@tchwork.com"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Symfony Community",
|
||||||
|
"homepage": "https://symfony.com/contributors"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"description": "A generic function and convention to trigger deprecation notices",
|
||||||
|
"homepage": "https://symfony.com",
|
||||||
|
"support": {
|
||||||
|
"source": "https://github.com/symfony/deprecation-contracts/tree/v2.4.0"
|
||||||
|
},
|
||||||
|
"funding": [
|
||||||
|
{
|
||||||
|
"url": "https://symfony.com/sponsor",
|
||||||
|
"type": "custom"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"url": "https://github.com/fabpot",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"url": "https://tidelift.com/funding/github/packagist/symfony/symfony",
|
||||||
|
"type": "tidelift"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"time": "2021-03-23T23:28:01+00:00"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "symfony/polyfill-intl-grapheme",
|
||||||
|
"version": "v1.23.0",
|
||||||
|
"source": {
|
||||||
|
"type": "git",
|
||||||
|
"url": "https://github.com/symfony/polyfill-intl-grapheme.git",
|
||||||
|
"reference": "24b72c6baa32c746a4d0840147c9715e42bb68ab"
|
||||||
|
},
|
||||||
|
"dist": {
|
||||||
|
"type": "zip",
|
||||||
|
"url": "https://api.github.com/repos/symfony/polyfill-intl-grapheme/zipball/24b72c6baa32c746a4d0840147c9715e42bb68ab",
|
||||||
|
"reference": "24b72c6baa32c746a4d0840147c9715e42bb68ab",
|
||||||
"shasum": ""
|
"shasum": ""
|
||||||
},
|
},
|
||||||
"require": {
|
"require": {
|
||||||
|
@ -5102,7 +5170,7 @@
|
||||||
"type": "library",
|
"type": "library",
|
||||||
"extra": {
|
"extra": {
|
||||||
"branch-alias": {
|
"branch-alias": {
|
||||||
"dev-main": "1.22-dev"
|
"dev-main": "1.23-dev"
|
||||||
},
|
},
|
||||||
"thanks": {
|
"thanks": {
|
||||||
"name": "symfony/polyfill",
|
"name": "symfony/polyfill",
|
||||||
|
@ -5142,7 +5210,7 @@
|
||||||
"shim"
|
"shim"
|
||||||
],
|
],
|
||||||
"support": {
|
"support": {
|
||||||
"source": "https://github.com/symfony/polyfill-intl-grapheme/tree/v1.22.1"
|
"source": "https://github.com/symfony/polyfill-intl-grapheme/tree/v1.23.0"
|
||||||
},
|
},
|
||||||
"funding": [
|
"funding": [
|
||||||
{
|
{
|
||||||
|
@ -5158,20 +5226,20 @@
|
||||||
"type": "tidelift"
|
"type": "tidelift"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"time": "2021-01-22T09:19:47+00:00"
|
"time": "2021-05-27T09:17:38+00:00"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "symfony/polyfill-intl-normalizer",
|
"name": "symfony/polyfill-intl-normalizer",
|
||||||
"version": "v1.22.1",
|
"version": "v1.23.0",
|
||||||
"source": {
|
"source": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/symfony/polyfill-intl-normalizer.git",
|
"url": "https://github.com/symfony/polyfill-intl-normalizer.git",
|
||||||
"reference": "43a0283138253ed1d48d352ab6d0bdb3f809f248"
|
"reference": "8590a5f561694770bdcd3f9b5c69dde6945028e8"
|
||||||
},
|
},
|
||||||
"dist": {
|
"dist": {
|
||||||
"type": "zip",
|
"type": "zip",
|
||||||
"url": "https://api.github.com/repos/symfony/polyfill-intl-normalizer/zipball/43a0283138253ed1d48d352ab6d0bdb3f809f248",
|
"url": "https://api.github.com/repos/symfony/polyfill-intl-normalizer/zipball/8590a5f561694770bdcd3f9b5c69dde6945028e8",
|
||||||
"reference": "43a0283138253ed1d48d352ab6d0bdb3f809f248",
|
"reference": "8590a5f561694770bdcd3f9b5c69dde6945028e8",
|
||||||
"shasum": ""
|
"shasum": ""
|
||||||
},
|
},
|
||||||
"require": {
|
"require": {
|
||||||
|
@ -5183,7 +5251,7 @@
|
||||||
"type": "library",
|
"type": "library",
|
||||||
"extra": {
|
"extra": {
|
||||||
"branch-alias": {
|
"branch-alias": {
|
||||||
"dev-main": "1.22-dev"
|
"dev-main": "1.23-dev"
|
||||||
},
|
},
|
||||||
"thanks": {
|
"thanks": {
|
||||||
"name": "symfony/polyfill",
|
"name": "symfony/polyfill",
|
||||||
|
@ -5226,7 +5294,7 @@
|
||||||
"shim"
|
"shim"
|
||||||
],
|
],
|
||||||
"support": {
|
"support": {
|
||||||
"source": "https://github.com/symfony/polyfill-intl-normalizer/tree/v1.22.1"
|
"source": "https://github.com/symfony/polyfill-intl-normalizer/tree/v1.23.0"
|
||||||
},
|
},
|
||||||
"funding": [
|
"funding": [
|
||||||
{
|
{
|
||||||
|
@ -5242,20 +5310,20 @@
|
||||||
"type": "tidelift"
|
"type": "tidelift"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"time": "2021-01-22T09:19:47+00:00"
|
"time": "2021-02-19T12:13:01+00:00"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "symfony/polyfill-mbstring",
|
"name": "symfony/polyfill-mbstring",
|
||||||
"version": "v1.22.1",
|
"version": "v1.23.0",
|
||||||
"source": {
|
"source": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/symfony/polyfill-mbstring.git",
|
"url": "https://github.com/symfony/polyfill-mbstring.git",
|
||||||
"reference": "5232de97ee3b75b0360528dae24e73db49566ab1"
|
"reference": "2df51500adbaebdc4c38dea4c89a2e131c45c8a1"
|
||||||
},
|
},
|
||||||
"dist": {
|
"dist": {
|
||||||
"type": "zip",
|
"type": "zip",
|
||||||
"url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/5232de97ee3b75b0360528dae24e73db49566ab1",
|
"url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/2df51500adbaebdc4c38dea4c89a2e131c45c8a1",
|
||||||
"reference": "5232de97ee3b75b0360528dae24e73db49566ab1",
|
"reference": "2df51500adbaebdc4c38dea4c89a2e131c45c8a1",
|
||||||
"shasum": ""
|
"shasum": ""
|
||||||
},
|
},
|
||||||
"require": {
|
"require": {
|
||||||
|
@ -5267,7 +5335,7 @@
|
||||||
"type": "library",
|
"type": "library",
|
||||||
"extra": {
|
"extra": {
|
||||||
"branch-alias": {
|
"branch-alias": {
|
||||||
"dev-main": "1.22-dev"
|
"dev-main": "1.23-dev"
|
||||||
},
|
},
|
||||||
"thanks": {
|
"thanks": {
|
||||||
"name": "symfony/polyfill",
|
"name": "symfony/polyfill",
|
||||||
|
@ -5306,7 +5374,7 @@
|
||||||
"shim"
|
"shim"
|
||||||
],
|
],
|
||||||
"support": {
|
"support": {
|
||||||
"source": "https://github.com/symfony/polyfill-mbstring/tree/v1.22.1"
|
"source": "https://github.com/symfony/polyfill-mbstring/tree/v1.23.0"
|
||||||
},
|
},
|
||||||
"funding": [
|
"funding": [
|
||||||
{
|
{
|
||||||
|
@ -5322,20 +5390,20 @@
|
||||||
"type": "tidelift"
|
"type": "tidelift"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"time": "2021-01-22T09:19:47+00:00"
|
"time": "2021-05-27T09:27:20+00:00"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "symfony/polyfill-php73",
|
"name": "symfony/polyfill-php73",
|
||||||
"version": "v1.22.1",
|
"version": "v1.23.0",
|
||||||
"source": {
|
"source": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/symfony/polyfill-php73.git",
|
"url": "https://github.com/symfony/polyfill-php73.git",
|
||||||
"reference": "a678b42e92f86eca04b7fa4c0f6f19d097fb69e2"
|
"reference": "fba8933c384d6476ab14fb7b8526e5287ca7e010"
|
||||||
},
|
},
|
||||||
"dist": {
|
"dist": {
|
||||||
"type": "zip",
|
"type": "zip",
|
||||||
"url": "https://api.github.com/repos/symfony/polyfill-php73/zipball/a678b42e92f86eca04b7fa4c0f6f19d097fb69e2",
|
"url": "https://api.github.com/repos/symfony/polyfill-php73/zipball/fba8933c384d6476ab14fb7b8526e5287ca7e010",
|
||||||
"reference": "a678b42e92f86eca04b7fa4c0f6f19d097fb69e2",
|
"reference": "fba8933c384d6476ab14fb7b8526e5287ca7e010",
|
||||||
"shasum": ""
|
"shasum": ""
|
||||||
},
|
},
|
||||||
"require": {
|
"require": {
|
||||||
|
@ -5344,7 +5412,7 @@
|
||||||
"type": "library",
|
"type": "library",
|
||||||
"extra": {
|
"extra": {
|
||||||
"branch-alias": {
|
"branch-alias": {
|
||||||
"dev-main": "1.22-dev"
|
"dev-main": "1.23-dev"
|
||||||
},
|
},
|
||||||
"thanks": {
|
"thanks": {
|
||||||
"name": "symfony/polyfill",
|
"name": "symfony/polyfill",
|
||||||
|
@ -5385,7 +5453,7 @@
|
||||||
"shim"
|
"shim"
|
||||||
],
|
],
|
||||||
"support": {
|
"support": {
|
||||||
"source": "https://github.com/symfony/polyfill-php73/tree/v1.22.1"
|
"source": "https://github.com/symfony/polyfill-php73/tree/v1.23.0"
|
||||||
},
|
},
|
||||||
"funding": [
|
"funding": [
|
||||||
{
|
{
|
||||||
|
@ -5401,20 +5469,20 @@
|
||||||
"type": "tidelift"
|
"type": "tidelift"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"time": "2021-01-07T16:49:33+00:00"
|
"time": "2021-02-19T12:13:01+00:00"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "symfony/polyfill-php80",
|
"name": "symfony/polyfill-php80",
|
||||||
"version": "v1.22.1",
|
"version": "v1.23.0",
|
||||||
"source": {
|
"source": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/symfony/polyfill-php80.git",
|
"url": "https://github.com/symfony/polyfill-php80.git",
|
||||||
"reference": "dc3063ba22c2a1fd2f45ed856374d79114998f91"
|
"reference": "eca0bf41ed421bed1b57c4958bab16aa86b757d0"
|
||||||
},
|
},
|
||||||
"dist": {
|
"dist": {
|
||||||
"type": "zip",
|
"type": "zip",
|
||||||
"url": "https://api.github.com/repos/symfony/polyfill-php80/zipball/dc3063ba22c2a1fd2f45ed856374d79114998f91",
|
"url": "https://api.github.com/repos/symfony/polyfill-php80/zipball/eca0bf41ed421bed1b57c4958bab16aa86b757d0",
|
||||||
"reference": "dc3063ba22c2a1fd2f45ed856374d79114998f91",
|
"reference": "eca0bf41ed421bed1b57c4958bab16aa86b757d0",
|
||||||
"shasum": ""
|
"shasum": ""
|
||||||
},
|
},
|
||||||
"require": {
|
"require": {
|
||||||
|
@ -5423,7 +5491,7 @@
|
||||||
"type": "library",
|
"type": "library",
|
||||||
"extra": {
|
"extra": {
|
||||||
"branch-alias": {
|
"branch-alias": {
|
||||||
"dev-main": "1.22-dev"
|
"dev-main": "1.23-dev"
|
||||||
},
|
},
|
||||||
"thanks": {
|
"thanks": {
|
||||||
"name": "symfony/polyfill",
|
"name": "symfony/polyfill",
|
||||||
|
@ -5468,7 +5536,7 @@
|
||||||
"shim"
|
"shim"
|
||||||
],
|
],
|
||||||
"support": {
|
"support": {
|
||||||
"source": "https://github.com/symfony/polyfill-php80/tree/v1.22.1"
|
"source": "https://github.com/symfony/polyfill-php80/tree/v1.23.0"
|
||||||
},
|
},
|
||||||
"funding": [
|
"funding": [
|
||||||
{
|
{
|
||||||
|
@ -5484,7 +5552,7 @@
|
||||||
"type": "tidelift"
|
"type": "tidelift"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"time": "2021-01-07T16:49:33+00:00"
|
"time": "2021-02-19T12:13:01+00:00"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "symfony/service-contracts",
|
"name": "symfony/service-contracts",
|
||||||
|
@ -5567,16 +5635,16 @@
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "symfony/string",
|
"name": "symfony/string",
|
||||||
"version": "v5.2.8",
|
"version": "v5.3.0",
|
||||||
"source": {
|
"source": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/symfony/string.git",
|
"url": "https://github.com/symfony/string.git",
|
||||||
"reference": "01b35eb64cac8467c3f94cd0ce2d0d376bb7d1db"
|
"reference": "a9a0f8b6aafc5d2d1c116dcccd1573a95153515b"
|
||||||
},
|
},
|
||||||
"dist": {
|
"dist": {
|
||||||
"type": "zip",
|
"type": "zip",
|
||||||
"url": "https://api.github.com/repos/symfony/string/zipball/01b35eb64cac8467c3f94cd0ce2d0d376bb7d1db",
|
"url": "https://api.github.com/repos/symfony/string/zipball/a9a0f8b6aafc5d2d1c116dcccd1573a95153515b",
|
||||||
"reference": "01b35eb64cac8467c3f94cd0ce2d0d376bb7d1db",
|
"reference": "a9a0f8b6aafc5d2d1c116dcccd1573a95153515b",
|
||||||
"shasum": ""
|
"shasum": ""
|
||||||
},
|
},
|
||||||
"require": {
|
"require": {
|
||||||
|
@ -5630,7 +5698,7 @@
|
||||||
"utf8"
|
"utf8"
|
||||||
],
|
],
|
||||||
"support": {
|
"support": {
|
||||||
"source": "https://github.com/symfony/string/tree/v5.2.8"
|
"source": "https://github.com/symfony/string/tree/v5.3.0"
|
||||||
},
|
},
|
||||||
"funding": [
|
"funding": [
|
||||||
{
|
{
|
||||||
|
@ -5646,7 +5714,7 @@
|
||||||
"type": "tidelift"
|
"type": "tidelift"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"time": "2021-05-10T14:56:10+00:00"
|
"time": "2021-05-26T17:43:10+00:00"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "theseer/tokenizer",
|
"name": "theseer/tokenizer",
|
||||||
|
|
|
@ -2,7 +2,6 @@
|
||||||
# This is a development version of THE Appwrite docker-compose.yml file.
|
# This is a development version of THE Appwrite docker-compose.yml file.
|
||||||
# Avoid using this file in your production environment.
|
# Avoid using this file in your production environment.
|
||||||
# We're exposing here sensetive ports and mounting code volumes for rapid development and debugging of the server stack.
|
# We're exposing here sensetive ports and mounting code volumes for rapid development and debugging of the server stack.
|
||||||
# For a production ready compose file please use: https://appwrite.io/docker-compose.yml
|
|
||||||
|
|
||||||
version: '3'
|
version: '3'
|
||||||
|
|
||||||
|
|
|
@ -6,7 +6,7 @@ client = Client()
|
||||||
(client
|
(client
|
||||||
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
|
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
|
||||||
.set_project('5df5acd0d48c2') # Your project ID
|
.set_project('5df5acd0d48c2') # Your project ID
|
||||||
.set_j_w_t('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token
|
.set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token
|
||||||
)
|
)
|
||||||
|
|
||||||
account = Account(client)
|
account = Account(client)
|
||||||
|
|
|
@ -6,7 +6,7 @@ client = Client()
|
||||||
(client
|
(client
|
||||||
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
|
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
|
||||||
.set_project('5df5acd0d48c2') # Your project ID
|
.set_project('5df5acd0d48c2') # Your project ID
|
||||||
.set_j_w_t('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token
|
.set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token
|
||||||
)
|
)
|
||||||
|
|
||||||
account = Account(client)
|
account = Account(client)
|
||||||
|
|
|
@ -6,7 +6,7 @@ client = Client()
|
||||||
(client
|
(client
|
||||||
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
|
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
|
||||||
.set_project('5df5acd0d48c2') # Your project ID
|
.set_project('5df5acd0d48c2') # Your project ID
|
||||||
.set_j_w_t('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token
|
.set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token
|
||||||
)
|
)
|
||||||
|
|
||||||
account = Account(client)
|
account = Account(client)
|
||||||
|
|
|
@ -6,7 +6,7 @@ client = Client()
|
||||||
(client
|
(client
|
||||||
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
|
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
|
||||||
.set_project('5df5acd0d48c2') # Your project ID
|
.set_project('5df5acd0d48c2') # Your project ID
|
||||||
.set_j_w_t('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token
|
.set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token
|
||||||
)
|
)
|
||||||
|
|
||||||
account = Account(client)
|
account = Account(client)
|
||||||
|
|
|
@ -6,7 +6,7 @@ client = Client()
|
||||||
(client
|
(client
|
||||||
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
|
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
|
||||||
.set_project('5df5acd0d48c2') # Your project ID
|
.set_project('5df5acd0d48c2') # Your project ID
|
||||||
.set_j_w_t('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token
|
.set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token
|
||||||
)
|
)
|
||||||
|
|
||||||
account = Account(client)
|
account = Account(client)
|
||||||
|
|
|
@ -6,7 +6,7 @@ client = Client()
|
||||||
(client
|
(client
|
||||||
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
|
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
|
||||||
.set_project('5df5acd0d48c2') # Your project ID
|
.set_project('5df5acd0d48c2') # Your project ID
|
||||||
.set_j_w_t('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token
|
.set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token
|
||||||
)
|
)
|
||||||
|
|
||||||
account = Account(client)
|
account = Account(client)
|
||||||
|
|
|
@ -6,7 +6,7 @@ client = Client()
|
||||||
(client
|
(client
|
||||||
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
|
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
|
||||||
.set_project('5df5acd0d48c2') # Your project ID
|
.set_project('5df5acd0d48c2') # Your project ID
|
||||||
.set_j_w_t('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token
|
.set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token
|
||||||
)
|
)
|
||||||
|
|
||||||
account = Account(client)
|
account = Account(client)
|
||||||
|
|
|
@ -6,7 +6,7 @@ client = Client()
|
||||||
(client
|
(client
|
||||||
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
|
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
|
||||||
.set_project('5df5acd0d48c2') # Your project ID
|
.set_project('5df5acd0d48c2') # Your project ID
|
||||||
.set_j_w_t('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token
|
.set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token
|
||||||
)
|
)
|
||||||
|
|
||||||
account = Account(client)
|
account = Account(client)
|
||||||
|
|
|
@ -6,7 +6,7 @@ client = Client()
|
||||||
(client
|
(client
|
||||||
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
|
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
|
||||||
.set_project('5df5acd0d48c2') # Your project ID
|
.set_project('5df5acd0d48c2') # Your project ID
|
||||||
.set_j_w_t('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token
|
.set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token
|
||||||
)
|
)
|
||||||
|
|
||||||
account = Account(client)
|
account = Account(client)
|
||||||
|
|
|
@ -6,7 +6,7 @@ client = Client()
|
||||||
(client
|
(client
|
||||||
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
|
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
|
||||||
.set_project('5df5acd0d48c2') # Your project ID
|
.set_project('5df5acd0d48c2') # Your project ID
|
||||||
.set_j_w_t('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token
|
.set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token
|
||||||
)
|
)
|
||||||
|
|
||||||
account = Account(client)
|
account = Account(client)
|
||||||
|
|
|
@ -6,7 +6,7 @@ client = Client()
|
||||||
(client
|
(client
|
||||||
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
|
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
|
||||||
.set_project('5df5acd0d48c2') # Your project ID
|
.set_project('5df5acd0d48c2') # Your project ID
|
||||||
.set_j_w_t('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token
|
.set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token
|
||||||
)
|
)
|
||||||
|
|
||||||
account = Account(client)
|
account = Account(client)
|
||||||
|
|
|
@ -6,7 +6,7 @@ client = Client()
|
||||||
(client
|
(client
|
||||||
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
|
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
|
||||||
.set_project('5df5acd0d48c2') # Your project ID
|
.set_project('5df5acd0d48c2') # Your project ID
|
||||||
.set_j_w_t('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token
|
.set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token
|
||||||
)
|
)
|
||||||
|
|
||||||
account = Account(client)
|
account = Account(client)
|
||||||
|
|
|
@ -6,7 +6,7 @@ client = Client()
|
||||||
(client
|
(client
|
||||||
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
|
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
|
||||||
.set_project('5df5acd0d48c2') # Your project ID
|
.set_project('5df5acd0d48c2') # Your project ID
|
||||||
.set_j_w_t('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token
|
.set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token
|
||||||
)
|
)
|
||||||
|
|
||||||
account = Account(client)
|
account = Account(client)
|
||||||
|
|
|
@ -6,7 +6,7 @@ client = Client()
|
||||||
(client
|
(client
|
||||||
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
|
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
|
||||||
.set_project('5df5acd0d48c2') # Your project ID
|
.set_project('5df5acd0d48c2') # Your project ID
|
||||||
.set_j_w_t('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token
|
.set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token
|
||||||
)
|
)
|
||||||
|
|
||||||
account = Account(client)
|
account = Account(client)
|
||||||
|
|
|
@ -6,7 +6,7 @@ client = Client()
|
||||||
(client
|
(client
|
||||||
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
|
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
|
||||||
.set_project('5df5acd0d48c2') # Your project ID
|
.set_project('5df5acd0d48c2') # Your project ID
|
||||||
.set_j_w_t('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token
|
.set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token
|
||||||
)
|
)
|
||||||
|
|
||||||
account = Account(client)
|
account = Account(client)
|
||||||
|
|
|
@ -11,4 +11,4 @@ client = Client()
|
||||||
|
|
||||||
avatars = Avatars(client)
|
avatars = Avatars(client)
|
||||||
|
|
||||||
result = avatars.get_q_r('[TEXT]')
|
result = avatars.get_qr('[TEXT]')
|
||||||
|
|
|
@ -11,4 +11,4 @@ client = Client()
|
||||||
|
|
||||||
health = Health(client)
|
health = Health(client)
|
||||||
|
|
||||||
result = health.get_d_b()
|
result = health.get_db()
|
||||||
|
|
|
@ -11,4 +11,4 @@ client = Client()
|
||||||
|
|
||||||
locale = Locale(client)
|
locale = Locale(client)
|
||||||
|
|
||||||
result = locale.get_countries_e_u()
|
result = locale.get_countries_eu()
|
||||||
|
|
|
@ -6,7 +6,7 @@ client = Client()
|
||||||
(client
|
(client
|
||||||
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
|
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
|
||||||
.set_project('5df5acd0d48c2') # Your project ID
|
.set_project('5df5acd0d48c2') # Your project ID
|
||||||
.set_j_w_t('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token
|
.set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token
|
||||||
)
|
)
|
||||||
|
|
||||||
teams = Teams(client)
|
teams = Teams(client)
|
||||||
|
|
|
@ -5,7 +5,7 @@ client = Appwrite::Client.new()
|
||||||
client
|
client
|
||||||
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
|
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
|
||||||
.set_project('5df5acd0d48c2') # Your project ID
|
.set_project('5df5acd0d48c2') # Your project ID
|
||||||
.set_j_w_t('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token
|
.set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token
|
||||||
;
|
;
|
||||||
|
|
||||||
account = Appwrite::Account.new(client);
|
account = Appwrite::Account.new(client);
|
||||||
|
|
|
@ -5,7 +5,7 @@ client = Appwrite::Client.new()
|
||||||
client
|
client
|
||||||
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
|
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
|
||||||
.set_project('5df5acd0d48c2') # Your project ID
|
.set_project('5df5acd0d48c2') # Your project ID
|
||||||
.set_j_w_t('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token
|
.set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token
|
||||||
;
|
;
|
||||||
|
|
||||||
account = Appwrite::Account.new(client);
|
account = Appwrite::Account.new(client);
|
||||||
|
|
|
@ -5,7 +5,7 @@ client = Appwrite::Client.new()
|
||||||
client
|
client
|
||||||
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
|
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
|
||||||
.set_project('5df5acd0d48c2') # Your project ID
|
.set_project('5df5acd0d48c2') # Your project ID
|
||||||
.set_j_w_t('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token
|
.set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token
|
||||||
;
|
;
|
||||||
|
|
||||||
account = Appwrite::Account.new(client);
|
account = Appwrite::Account.new(client);
|
||||||
|
|
|
@ -5,7 +5,7 @@ client = Appwrite::Client.new()
|
||||||
client
|
client
|
||||||
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
|
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
|
||||||
.set_project('5df5acd0d48c2') # Your project ID
|
.set_project('5df5acd0d48c2') # Your project ID
|
||||||
.set_j_w_t('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token
|
.set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token
|
||||||
;
|
;
|
||||||
|
|
||||||
account = Appwrite::Account.new(client);
|
account = Appwrite::Account.new(client);
|
||||||
|
|
|
@ -5,7 +5,7 @@ client = Appwrite::Client.new()
|
||||||
client
|
client
|
||||||
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
|
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
|
||||||
.set_project('5df5acd0d48c2') # Your project ID
|
.set_project('5df5acd0d48c2') # Your project ID
|
||||||
.set_j_w_t('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token
|
.set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token
|
||||||
;
|
;
|
||||||
|
|
||||||
account = Appwrite::Account.new(client);
|
account = Appwrite::Account.new(client);
|
||||||
|
|
|
@ -5,7 +5,7 @@ client = Appwrite::Client.new()
|
||||||
client
|
client
|
||||||
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
|
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
|
||||||
.set_project('5df5acd0d48c2') # Your project ID
|
.set_project('5df5acd0d48c2') # Your project ID
|
||||||
.set_j_w_t('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token
|
.set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token
|
||||||
;
|
;
|
||||||
|
|
||||||
account = Appwrite::Account.new(client);
|
account = Appwrite::Account.new(client);
|
||||||
|
|
|
@ -5,7 +5,7 @@ client = Appwrite::Client.new()
|
||||||
client
|
client
|
||||||
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
|
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
|
||||||
.set_project('5df5acd0d48c2') # Your project ID
|
.set_project('5df5acd0d48c2') # Your project ID
|
||||||
.set_j_w_t('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token
|
.set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token
|
||||||
;
|
;
|
||||||
|
|
||||||
account = Appwrite::Account.new(client);
|
account = Appwrite::Account.new(client);
|
||||||
|
|
|
@ -5,7 +5,7 @@ client = Appwrite::Client.new()
|
||||||
client
|
client
|
||||||
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
|
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
|
||||||
.set_project('5df5acd0d48c2') # Your project ID
|
.set_project('5df5acd0d48c2') # Your project ID
|
||||||
.set_j_w_t('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token
|
.set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token
|
||||||
;
|
;
|
||||||
|
|
||||||
account = Appwrite::Account.new(client);
|
account = Appwrite::Account.new(client);
|
||||||
|
|
|
@ -5,7 +5,7 @@ client = Appwrite::Client.new()
|
||||||
client
|
client
|
||||||
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
|
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
|
||||||
.set_project('5df5acd0d48c2') # Your project ID
|
.set_project('5df5acd0d48c2') # Your project ID
|
||||||
.set_j_w_t('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token
|
.set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token
|
||||||
;
|
;
|
||||||
|
|
||||||
account = Appwrite::Account.new(client);
|
account = Appwrite::Account.new(client);
|
||||||
|
|
|
@ -5,7 +5,7 @@ client = Appwrite::Client.new()
|
||||||
client
|
client
|
||||||
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
|
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
|
||||||
.set_project('5df5acd0d48c2') # Your project ID
|
.set_project('5df5acd0d48c2') # Your project ID
|
||||||
.set_j_w_t('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token
|
.set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token
|
||||||
;
|
;
|
||||||
|
|
||||||
account = Appwrite::Account.new(client);
|
account = Appwrite::Account.new(client);
|
||||||
|
|
|
@ -5,7 +5,7 @@ client = Appwrite::Client.new()
|
||||||
client
|
client
|
||||||
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
|
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
|
||||||
.set_project('5df5acd0d48c2') # Your project ID
|
.set_project('5df5acd0d48c2') # Your project ID
|
||||||
.set_j_w_t('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token
|
.set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token
|
||||||
;
|
;
|
||||||
|
|
||||||
account = Appwrite::Account.new(client);
|
account = Appwrite::Account.new(client);
|
||||||
|
|
|
@ -5,7 +5,7 @@ client = Appwrite::Client.new()
|
||||||
client
|
client
|
||||||
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
|
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
|
||||||
.set_project('5df5acd0d48c2') # Your project ID
|
.set_project('5df5acd0d48c2') # Your project ID
|
||||||
.set_j_w_t('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token
|
.set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token
|
||||||
;
|
;
|
||||||
|
|
||||||
account = Appwrite::Account.new(client);
|
account = Appwrite::Account.new(client);
|
||||||
|
|
|
@ -5,7 +5,7 @@ client = Appwrite::Client.new()
|
||||||
client
|
client
|
||||||
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
|
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
|
||||||
.set_project('5df5acd0d48c2') # Your project ID
|
.set_project('5df5acd0d48c2') # Your project ID
|
||||||
.set_j_w_t('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token
|
.set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token
|
||||||
;
|
;
|
||||||
|
|
||||||
account = Appwrite::Account.new(client);
|
account = Appwrite::Account.new(client);
|
||||||
|
|
|
@ -5,7 +5,7 @@ client = Appwrite::Client.new()
|
||||||
client
|
client
|
||||||
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
|
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
|
||||||
.set_project('5df5acd0d48c2') # Your project ID
|
.set_project('5df5acd0d48c2') # Your project ID
|
||||||
.set_j_w_t('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token
|
.set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token
|
||||||
;
|
;
|
||||||
|
|
||||||
account = Appwrite::Account.new(client);
|
account = Appwrite::Account.new(client);
|
||||||
|
|
|
@ -5,7 +5,7 @@ client = Appwrite::Client.new()
|
||||||
client
|
client
|
||||||
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
|
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
|
||||||
.set_project('5df5acd0d48c2') # Your project ID
|
.set_project('5df5acd0d48c2') # Your project ID
|
||||||
.set_j_w_t('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token
|
.set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token
|
||||||
;
|
;
|
||||||
|
|
||||||
account = Appwrite::Account.new(client);
|
account = Appwrite::Account.new(client);
|
||||||
|
|
|
@ -10,6 +10,6 @@ client
|
||||||
|
|
||||||
avatars = Appwrite::Avatars.new(client);
|
avatars = Appwrite::Avatars.new(client);
|
||||||
|
|
||||||
response = avatars.get_q_r(text: '[TEXT]');
|
response = avatars.get_qr(text: '[TEXT]');
|
||||||
|
|
||||||
puts response
|
puts response
|
|
@ -10,6 +10,6 @@ client
|
||||||
|
|
||||||
health = Appwrite::Health.new(client);
|
health = Appwrite::Health.new(client);
|
||||||
|
|
||||||
response = health.get_d_b();
|
response = health.get_db();
|
||||||
|
|
||||||
puts response
|
puts response
|
|
@ -10,6 +10,6 @@ client
|
||||||
|
|
||||||
locale = Appwrite::Locale.new(client);
|
locale = Appwrite::Locale.new(client);
|
||||||
|
|
||||||
response = locale.get_countries_e_u();
|
response = locale.get_countries_eu();
|
||||||
|
|
||||||
puts response
|
puts response
|
|
@ -5,7 +5,7 @@ client = Appwrite::Client.new()
|
||||||
client
|
client
|
||||||
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
|
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
|
||||||
.set_project('5df5acd0d48c2') # Your project ID
|
.set_project('5df5acd0d48c2') # Your project ID
|
||||||
.set_j_w_t('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token
|
.set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token
|
||||||
;
|
;
|
||||||
|
|
||||||
teams = Appwrite::Teams.new(client);
|
teams = Appwrite::Teams.new(client);
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
Use this endpoint to create a JSON Web Token. You can use the resulting JWT to authenticate on behalf of the current user when working with the Appwrite server-side API and SDKs. The JWT secret is valid for 15 minutes from its creation and will be invalid if the user will logout.
|
Use this endpoint to create a JSON Web Token. You can use the resulting JWT to authenticate on behalf of the current user when working with the Appwrite server-side API and SDKs. The JWT secret is valid for 15 minutes from its creation and will be invalid if the user will logout in that time frame.
|
|
@ -1,3 +1,7 @@
|
||||||
|
## 0.6.2
|
||||||
|
|
||||||
|
- Removed default values, nothing should change in usage as default values are already allocated in server
|
||||||
|
|
||||||
## 0.6.1
|
## 0.6.1
|
||||||
|
|
||||||
- Fix for image preview param types
|
- Fix for image preview param types
|
||||||
|
|
|
@ -1,3 +1,7 @@
|
||||||
|
## 0.6.3
|
||||||
|
|
||||||
|
- Removed default values, nothing should change in usage as default values are already allocated in server
|
||||||
|
|
||||||
## 0.6.2
|
## 0.6.2
|
||||||
|
|
||||||
- Fixed deployment bug
|
- Fixed deployment bug
|
||||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 46 KiB After Width: | Height: | Size: 35 KiB |
|
@ -62,6 +62,7 @@ abstract class Format
|
||||||
* @param Route[] $routes
|
* @param Route[] $routes
|
||||||
* @param Model[] $models
|
* @param Model[] $models
|
||||||
* @param array $keys
|
* @param array $keys
|
||||||
|
* @param int $authCount
|
||||||
*/
|
*/
|
||||||
public function __construct(App $app, array $services, array $routes, array $models, array $keys, int $authCount)
|
public function __construct(App $app, array $services, array $routes, array $models, array $keys, int $authCount)
|
||||||
{
|
{
|
||||||
|
|
|
@ -4,7 +4,6 @@ namespace Appwrite\Specification\Format;
|
||||||
|
|
||||||
use Appwrite\Specification\Format;
|
use Appwrite\Specification\Format;
|
||||||
use Appwrite\Template\Template;
|
use Appwrite\Template\Template;
|
||||||
use Appwrite\Utopia\Response\Model;
|
|
||||||
use stdClass;
|
use stdClass;
|
||||||
use Utopia\Validator;
|
use Utopia\Validator;
|
||||||
|
|
||||||
|
@ -188,7 +187,7 @@ class Swagger2 extends Format
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
if($route->getLabel('sdk.response.code', 500) === 204) {
|
if(in_array($route->getLabel('sdk.response.code', 500), [204, 301, 302, 308], true)) {
|
||||||
$temp['responses'][(string)$route->getLabel('sdk.response.code', '500')]['description'] = 'No content';
|
$temp['responses'][(string)$route->getLabel('sdk.response.code', '500')]['description'] = 'No content';
|
||||||
unset($temp['responses'][(string)$route->getLabel('sdk.response.code', '500')]['schema']);
|
unset($temp['responses'][(string)$route->getLabel('sdk.response.code', '500')]['schema']);
|
||||||
}
|
}
|
||||||
|
@ -218,7 +217,7 @@ class Swagger2 extends Format
|
||||||
$bodyRequired = [];
|
$bodyRequired = [];
|
||||||
|
|
||||||
foreach ($route->getParams() as $name => $param) { // Set params
|
foreach ($route->getParams() as $name => $param) { // Set params
|
||||||
$validator = (\is_callable($param['validator'])) ? call_user_func_array($param['validator'], $this->app->getResources($param['injections'])) : $param['validator']; /* @var $validator \Utopia\Validator */
|
$validator = (\is_callable($param['validator'])) ? call_user_func_array($param['validator'], $this->app->getResources($param['injections'])) : $param['validator']; /** @var \Utopia\Validator $validator */
|
||||||
|
|
||||||
$node = [
|
$node = [
|
||||||
'name' => $name,
|
'name' => $name,
|
||||||
|
@ -279,6 +278,7 @@ class Swagger2 extends Format
|
||||||
$node['x-example'] = $validator->getMin();
|
$node['x-example'] = $validator->getMin();
|
||||||
break;
|
break;
|
||||||
case 'Utopia\Validator\Numeric':
|
case 'Utopia\Validator\Numeric':
|
||||||
|
case 'Utopia\Validator\Integer':
|
||||||
$node['type'] = $validator->getType();
|
$node['type'] = $validator->getType();
|
||||||
$node['format'] = 'int32';
|
$node['format'] = 'int32';
|
||||||
break;
|
break;
|
||||||
|
@ -355,13 +355,16 @@ class Swagger2 extends Format
|
||||||
}
|
}
|
||||||
foreach ($this->models as $model) {
|
foreach ($this->models as $model) {
|
||||||
foreach ($model->getRules() as $rule) {
|
foreach ($model->getRules() as $rule) {
|
||||||
if (!in_array($rule['type'], ['string', 'integer', 'boolean', 'json', 'float'])) {
|
if (
|
||||||
|
in_array($model->getType(), $usedModels)
|
||||||
|
&& !in_array($rule['type'], ['string', 'integer', 'boolean', 'json', 'float'])
|
||||||
|
) {
|
||||||
$usedModels[] = $rule['type'];
|
$usedModels[] = $rule['type'];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
foreach ($this->models as $model) {
|
foreach ($this->models as $model) {
|
||||||
if (!in_array($model->getType(), $usedModels) && $model->getType() !== 'error') {
|
if (!in_array($model->getType(), $usedModels)) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -90,7 +90,7 @@ class Project extends Model
|
||||||
'example' => '131102020',
|
'example' => '131102020',
|
||||||
])
|
])
|
||||||
->addRule('usersAuthLimit', [
|
->addRule('usersAuthLimit', [
|
||||||
'type' => self::TYPE_BOOLEAN,
|
'type' => self::TYPE_INTEGER,
|
||||||
'description' => 'Max users allowed. 0 is unlimited.',
|
'description' => 'Max users allowed. 0 is unlimited.',
|
||||||
'default' => 0,
|
'default' => 0,
|
||||||
'example' => 100,
|
'example' => 100,
|
||||||
|
|
Loading…
Reference in a new issue