diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 520b4f1404..e2139b09df 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -8,7 +8,15 @@ env: IMAGE: appwrite-dev CACHE_KEY: appwrite-dev-${{ github.event.pull_request.head.sha }} -on: [ pull_request ] +on: + pull_request: + workflow_dispatch: + inputs: + response_format: + description: 'Response format version to test (e.g., 1.5.0, 1.4.0)' + required: false + type: string + default: '' jobs: check_database_changes: @@ -100,7 +108,10 @@ jobs: run: docker compose exec -T appwrite vars - name: Run Unit Tests - run: docker compose exec appwrite test /usr/src/code/tests/unit + run: | + docker compose exec \ + -e _APP_E2E_RESPONSE_FORMAT="${{ github.event.inputs.response_format }}" \ + appwrite test /usr/src/code/tests/unit e2e_general_test: name: E2E General Test @@ -132,7 +143,10 @@ jobs: done - name: Run General Tests - run: docker compose exec -T appwrite test /usr/src/code/tests/e2e/General --debug + run: | + docker compose exec -T \ + -e _APP_E2E_RESPONSE_FORMAT="${{ github.event.inputs.response_format }}" \ + appwrite test /usr/src/code/tests/e2e/General --debug - name: Failure Logs if: failure() @@ -228,10 +242,12 @@ jobs: docker compose exec -T \ -e _APP_DATABASE_SHARED_TABLES \ -e _APP_DATABASE_SHARED_TABLES_V1 \ + -e _APP_E2E_RESPONSE_FORMAT="${{ github.event.inputs.response_format }}" \ -e _APP_DB_ADAPTER \ -e _APP_DB_HOST \ -e _APP_DB_PORT \ -e _APP_DB_SCHEMA \ + -e _APP_E2E_RESPONSE_FORMAT="${{ github.event.inputs.response_format }}" \ appwrite test /usr/src/code/tests/e2e/Services/${{ matrix.service }} --debug --exclude-group devKeys,screenshots - name: Failure Logs @@ -320,6 +336,7 @@ jobs: docker compose exec -T \ -e _APP_DATABASE_SHARED_TABLES \ -e _APP_DATABASE_SHARED_TABLES_V1 \ + -e _APP_E2E_RESPONSE_FORMAT="${{ github.event.inputs.response_format }}" \ appwrite test /usr/src/code/tests/e2e/Services/${{ matrix.service }} --debug --exclude-group devKeys,screenshots - name: Failure Logs @@ -361,6 +378,7 @@ jobs: docker compose exec -T \ -e _APP_DATABASE_SHARED_TABLES \ -e _APP_DATABASE_SHARED_TABLES_V1 \ + -e _APP_E2E_RESPONSE_FORMAT="${{ github.event.inputs.response_format }}" \ appwrite test /usr/src/code/tests/e2e/Services/Projects --debug --group=devKeys - name: Failure Logs @@ -416,6 +434,7 @@ jobs: docker compose exec -T \ -e _APP_DATABASE_SHARED_TABLES \ -e _APP_DATABASE_SHARED_TABLES_V1 \ + -e _APP_E2E_RESPONSE_FORMAT="${{ github.event.inputs.response_format }}" \ appwrite test /usr/src/code/tests/e2e/Services/Projects --debug --group=devKeys - name: Failure Logs @@ -458,6 +477,7 @@ jobs: docker compose exec -T \ -e _APP_DATABASE_SHARED_TABLES \ -e _APP_DATABASE_SHARED_TABLES_V1 \ + -e _APP_E2E_RESPONSE_FORMAT="${{ github.event.inputs.response_format }}" \ appwrite test /usr/src/code/tests/e2e/Services/Sites --debug --group=screenshots - name: Failure Logs @@ -514,6 +534,7 @@ jobs: docker compose exec -T \ -e _APP_DATABASE_SHARED_TABLES \ -e _APP_DATABASE_SHARED_TABLES_V1 \ + -e _APP_E2E_RESPONSE_FORMAT="${{ github.event.inputs.response_format }}" \ appwrite test /usr/src/code/tests/e2e/Services/Sites --debug --group=screenshots - name: Failure Logs @@ -522,4 +543,4 @@ jobs: echo "=== Appwrite Worker Builds Logs ===" docker compose logs appwrite-worker-builds echo "=== OpenRuntimes Executor Logs ===" - docker compose logs openruntimes-executor + docker compose logs openruntimes-executor \ No newline at end of file diff --git a/app/config/avatars/credit-cards.php b/app/config/avatars/credit-cards.php index 52760bf9dc..b693e99fb2 100644 --- a/app/config/avatars/credit-cards.php +++ b/app/config/avatars/credit-cards.php @@ -13,7 +13,7 @@ return [ 'mastercard' => ['name' => 'Mastercard', 'path' => __DIR__ . '/credit-cards/mastercard.png'], 'naranja' => ['name' => 'Naranja', 'path' => __DIR__ . '/credit-cards/naranja.png'], 'targeta-shopping' => ['name' => 'Tarjeta Shopping', 'path' => __DIR__ . '/credit-cards/tarjeta-shopping.png'], - 'union-china-pay' => ['name' => 'Union China Pay', 'path' => __DIR__ . '/credit-cards/union-china-pay.png'], + 'unionpay' => ['name' => 'Union Pay', 'path' => __DIR__ . '/credit-cards/unionpay.png'], 'visa' => ['name' => 'Visa', 'path' => __DIR__ . '/credit-cards/visa.png'], 'mir' => ['name' => 'MIR', 'path' => __DIR__ . '/credit-cards/mir.png'], 'maestro' => ['name' => 'Maestro', 'path' => __DIR__ . '/credit-cards/maestro.png'], diff --git a/app/config/avatars/credit-cards/union-china-pay.png b/app/config/avatars/credit-cards/unionpay.png similarity index 100% rename from app/config/avatars/credit-cards/union-china-pay.png rename to app/config/avatars/credit-cards/unionpay.png diff --git a/app/config/errors.php b/app/config/errors.php index 23df60f4ba..156af5db8f 100644 --- a/app/config/errors.php +++ b/app/config/errors.php @@ -435,6 +435,11 @@ return [ 'description' => 'The requested favicon could not be found.', 'code' => 404, ], + Exception::AVATAR_SVG_SANITIZATION_FAILED => [ + 'name' => Exception::AVATAR_SVG_SANITIZATION_FAILED, + 'description' => 'SVG sanitization failed.', + 'code' => 400, + ], /** Storage */ Exception::STORAGE_FILE_ALREADY_EXISTS => [ @@ -837,6 +842,12 @@ return [ 'code' => 400, ], + Exception::ATTRIBUTE_TYPE_NOT_SUPPORTED => [ + 'name' => Exception::ATTRIBUTE_TYPE_NOT_SUPPORTED, + 'description' => 'Attribute type is not supported.', + 'code' => 400, + ], + /** Exists for both Attributes & Columns */ Exception::RELATIONSHIP_VALUE_INVALID => [ 'name' => Exception::RELATIONSHIP_VALUE_INVALID, @@ -895,6 +906,11 @@ return [ 'description' => "Existing data is too large for new size, truncate your existing data then try again.", 'code' => 400, ], + Exception::COLUMN_TYPE_NOT_SUPPORTED => [ + 'name' => Exception::COLUMN_TYPE_NOT_SUPPORTED, + 'description' => 'Column type is not supported.', + 'code' => 400, + ], /** Indexes */ Exception::INDEX_NOT_FOUND => [ diff --git a/app/config/locale/translations/af.json b/app/config/locale/translations/af.json index 86da260a90..db2a234d5e 100644 --- a/app/config/locale/translations/af.json +++ b/app/config/locale/translations/af.json @@ -2,7 +2,7 @@ "settings.inspire": "\"Wie nie waag nie, sal nie wen nie.\"", "settings.locale": "af", "settings.direction": "ltr", - "emails.sender": "%s span", + "emails.sender": "{{project}} span", "emails.verification.subject": "Rekening Bevestiging", "emails.verification.hello": "Goeie dag {{user}},", "emails.verification.body": "Volg hierdie skakel om u e-pos adres te bevestig.", @@ -21,7 +21,7 @@ "emails.recovery.thanks": "Baie dankie,", "emails.recovery.buttonText": "Stel wagwoord terug", "emails.recovery.signature": "Die {{project}} span", - "emails.invitation.subject": "Uitnodiging om by die %s span aan te sluit by %s", + "emails.invitation.subject": "Uitnodiging om by die {{team}} span aan te sluit by {{project}}", "emails.invitation.hello": "Goeie dag,", "emails.invitation.body": "Hierdie boodskap is aan u gestuur omdat {{owner}} u uitnooi om 'n lid van die {{team}} groep by die {{project}} projek te wees.", "emails.invitation.footer": "As u nie belang stel nie, kan u gerus hierdie boodskap ignoreer.", diff --git a/app/config/locale/translations/ar-ma.json b/app/config/locale/translations/ar-ma.json index 31b656da60..f0a7132aed 100644 --- a/app/config/locale/translations/ar-ma.json +++ b/app/config/locale/translations/ar-ma.json @@ -2,7 +2,7 @@ "settings.inspire": "\"الفن ديال الحكمة هو الفن ديال أنك تعرف أش تنخّل.\"", "settings.locale": "ar-ma", "settings.direction": "rtl", - "emails.sender": "فرقة %s", + "emails.sender": "فرقة {{project}}", "emails.verification.subject": "التيْقان ديال الحساب", "emails.verification.hello": "السلام {{user}}،", "emails.verification.body": "تبّع هاد الوصلة باش تيقّن لادريسة تاع ليميل ديالك.", @@ -21,14 +21,14 @@ "emails.recovery.thanks": "شكرا،", "emails.recovery.buttonText": "إعادة تعيين كلمة السر", "emails.recovery.signature": "فرقة {{project}}", - "emails.invitation.subject": "عراضة ل فرقة %s ف %s", + "emails.invitation.subject": "عراضة ل فرقة {{team}} ف {{project}}", "emails.invitation.hello": "السلام،", "emails.invitation.body": "هاد البرية تصيفطات ليك حيت {{owner}} بغى يعرض عليك تولّي عضو ف فرقة {{team}} عند {{project}}.", "emails.invitation.footer": "إلا كنتي ما مسوّقش, ممكن تنخّل هاد البرية.", "emails.invitation.thanks": "شكرا،", "emails.invitation.buttonText": "اقبل الدعوة إلى {{team}}", "emails.invitation.signature": "فرقة {{project}}", - "emails.certificate.subject": "السرتافيكة فشلات ل %s", + "emails.certificate.subject": "السرتافيكة فشلات ل {{domain}}", "emails.certificate.hello": "السلام،", "emails.certificate.body": "السرتافيكة ديال الضومين ديالك '{{domain}}' ما قدّاتش تجينيرا. هادي هي المحاولة نمرة {{attempt}}, السبب ديال هاد الفشل هو: {{error}}", "emails.certificate.footer": "السرتافيكة الفايتة ديالك غاتبقى مزيانة لمدة 30 يوم من عند أول فشل. كانشجعوك بزاف أنك تبقشش فهاد الموضوع, وا إلّا الضومين ديالك ما غايبقاش خدّام فيه الـ SSL.", diff --git a/app/config/locale/translations/ar.json b/app/config/locale/translations/ar.json index d005009275..df077c8685 100644 --- a/app/config/locale/translations/ar.json +++ b/app/config/locale/translations/ar.json @@ -2,7 +2,7 @@ "settings.inspire": "\"فن الحكمة هو فن معرفة ما يجب التغاضي عنه.\"", "settings.locale": "ar", "settings.direction": "rtl", - "emails.sender": "فريق %s", + "emails.sender": "فريق {{project}}", "emails.verification.subject": "تأكيد الحساب", "emails.verification.hello": "مرحبا {{user}}،", "emails.verification.body": "برجاء اتباع الرابط التالي لتأكيد بريدك الإلكتروني", @@ -21,7 +21,7 @@ "emails.recovery.thanks": "شكرا،", "emails.recovery.buttonText": "إعادة تعيين كلمة المرور", "emails.recovery.signature": "فريق {{project}}", - "emails.invitation.subject": "دعوة لفريق %s في %s", + "emails.invitation.subject": "دعوة لفريق {{team}} في {{project}}", "emails.invitation.hello": "أهلا،", "emails.invitation.body": "هذة الرسالة تم ارسالها لك لأن {{owner}} ارسل لك دعوة لتكون عضوا بفريق {{team}} في {{project}}", "emails.invitation.footer": "اذا كنت غير مهتم، يمكنك تجاهل هذه الرسالة", diff --git a/app/config/locale/translations/as.json b/app/config/locale/translations/as.json index 0cad3e1000..f750c6f3e4 100644 --- a/app/config/locale/translations/as.json +++ b/app/config/locale/translations/as.json @@ -2,7 +2,7 @@ "settings.inspire": "\"জ্ঞানী হোৱাৰ কলা হৈছে কি উপেক্ষা কৰিব লাগে জনাৰ কলা।\"", "settings.locale": "as", "settings.direction": "ltr", - "emails.sender": "%s দল", + "emails.sender": "{{project}} দল", "emails.verification.subject": "একাউণ্ট প্ৰমাণীকৰণ", "emails.verification.hello": "নমস্কাৰ {{user}},", "emails.verification.body": "আপোনাৰ ইমেইল ঠিকনা প্ৰমাণিত কৰিবলৈ এই লিংকটো অনুসৰণ কৰক।", @@ -21,7 +21,7 @@ "emails.recovery.thanks": "ধন্যবাদ,", "emails.recovery.buttonText": "পাছৱৰ্ড ৰিছেট কৰক", "emails.recovery.signature": "{{project}} দল", - "emails.invitation.subject": "%s বছৰত %s দললৈ নিমন্ত্ৰণ", + "emails.invitation.subject": "{{team}} বছৰত {{project}} দললৈ নিমন্ত্ৰণ", "emails.invitation.hello": "নমস্কাৰ,", "emails.invitation.body": "এই মেইলটো আপোনালৈ প্ৰেৰণ কৰা হৈছিল কাৰণ {{owner}} জনে আপোনাক {{project}} বছৰবয়সত {{team}} দলৰ সদস্য হ'বলৈ আমন্ত্ৰণ জনাব বিচাৰিছিল।", "emails.invitation.footer": "যদি আপুনি আগ্ৰহী নহয়, আপুনি এই বাৰ্তাটো উপেক্ষা কৰিব পাৰে।", @@ -245,7 +245,7 @@ "emails.otpSession.securityPhrase": "এই ইমেইলৰ সুৰক্ষা বাক্যটো হৈছে {{phrase}}। আপুনি এই ইমেইলটোত আস্থা ৰাখিব পাৰে যদি প্ৰবেশৰ সময়ত দেখুৱাই থকা বাক্যটোৰ লগত এই বাক্যটো মেলে।", "emails.otpSession.thanks": "ধন্যবাদ,", "emails.otpSession.signature": "{{project}} দল", - "emails.certificate.subject": "%sৰ বাবে প্ৰমাণপত্ৰ ব্যৰ্থতা", + "emails.certificate.subject": "{{domain}}ৰ বাবে প্ৰমাণপত্ৰ ব্যৰ্থতা", "emails.certificate.hello": "নমস্কাৰ,", "emails.certificate.body": "আপোনাৰ ডোমেইন '{{domain}}' ৰ বাবে প্ৰমাণপত্ৰটো উত্‌পন্ন কৰিব পৰা নগ'ল। এয়া প্ৰচেষ্টা নম্বৰ {{attempt}}, আৰু বিফলতাৰ কাৰণ হ'ল: {{error}}", "emails.certificate.footer": "আপোনাৰ পূৰ্বৰ প্ৰমাণপত্ৰটো প্ৰথম ব্ৰিফল হোৱাৰ দিনৰ পৰা ৩০ দিনলৈ বৈধ থাকিব। আমি এই ঘটনাটোৰ তদন্ত কৰিবলৈ উচ্চ পৰামৰ্শ দিয়ে, অন্যথা আপোনাৰ ডোমেইনটো অবৈধ SSL যোগাযোগ অবিহনে থাকিব।", diff --git a/app/config/locale/translations/az.json b/app/config/locale/translations/az.json index 7e0d206ff1..7b94b4424e 100644 --- a/app/config/locale/translations/az.json +++ b/app/config/locale/translations/az.json @@ -2,7 +2,7 @@ "settings.inspire": "\"Ağıllı olmaq sənəti, nəyi gözdən qaçıracağını bilmək sənətidir.\"", "settings.locale": "az", "settings.direction": "ltr", - "emails.sender": "%s Komandası", + "emails.sender": "{{project}} Komandası", "emails.verification.subject": "Hesab Doğrulama", "emails.verification.hello": "Salam {{user}},", "emails.verification.body": "E-poçt ünvanınızı təsdiq etmək üçün bu linki izləyin.", @@ -21,7 +21,7 @@ "emails.recovery.thanks": "Təşəkkürlər,", "emails.recovery.buttonText": "Şifrəni sıfırla", "emails.recovery.signature": "{{project}} komandası", - "emails.invitation.subject": "%s Komandasına Dəvət %sdə", + "emails.invitation.subject": "{{team}} Komandasına Dəvət {{project}}də", "emails.invitation.hello": "Salam,", "emails.invitation.body": "{{owner}}, {{project}}də {{team}} komandasına üzv olmağa dəvət etmək istədiyi üçün bu məktub sizə göndərildi.", "emails.invitation.footer": "Əgər maraqlanmırsınızsa, bu mesajı gözardı edə bilərsiniz.", diff --git a/app/config/locale/translations/be.json b/app/config/locale/translations/be.json index b64ed20bc6..2c6d14d79e 100644 --- a/app/config/locale/translations/be.json +++ b/app/config/locale/translations/be.json @@ -2,7 +2,7 @@ "settings.inspire": "\"Мастацтва быць мудрым - гэта мастацтва ведаць, на што нельга звярнуць увагу.\"", "settings.locale": "be", "settings.direction": "ltr", - "emails.sender": "Каманда %s", + "emails.sender": "Каманда {{project}}", "emails.verification.subject": "Верыфікацыя акаўнта", "emails.verification.hello": "Прывітанне {{user}},", "emails.verification.body": "Перайдзіце па гэтай спасылцы, каб пацвердзіць свой адрас электроннай пошты", @@ -21,7 +21,7 @@ "emails.recovery.thanks": "Дзякуем,", "emails.recovery.buttonText": "Аднавіць пароль", "emails.recovery.signature": "каманда {{project}}", - "emails.invitation.subject": "Запрошення до Команди %s у %s", + "emails.invitation.subject": "Запрошення до Команди {{team}} у {{project}}", "emails.invitation.hello": "Прывітанне,", "emails.invitation.body": "Гэта паведамленне было адпраўлена вам, таму што {{owner}} хацеў запрасіць вас стаць членам каманды {{team}} у {{project}}.", "emails.invitation.footer": "Калі вам гэта не цікава, вы можаце праігнараваць гэтае паведамленне.", @@ -245,7 +245,7 @@ "emails.otpSession.securityPhrase": "Фраза бяспекі для гэтага ліста - {{phrase}}. Вы можаце давяраць гэтаму лісту, калі гэтая фраза супадае з фразай, паказанай пры ўваходзе.", "emails.otpSession.thanks": "Дзякуй,", "emails.otpSession.signature": "каманда {{project}}", - "emails.certificate.subject": "Сведчанне няўдалае для %s", + "emails.certificate.subject": "Сведчанне няўдалае для {{domain}}", "emails.certificate.hello": "Прывітанне,", "emails.certificate.body": "Сертыфікат для вашага дамена '{{domain}}' не можа быць створаны. Гэта спроба нумар {{attempt}}, і прычынай няўдачы з'яўляецца: {{error}}", "emails.certificate.footer": "Ваш папярэдні сертыфікат будзе дзейнічаць 30 дзён з моманту першай няўдачы. Мы высока рэкамендуем расследаваць гэтую сітуацыю, інакш ваш дамен апынецца без дзейнага сертыфіката SSL-злучэння.", diff --git a/app/config/locale/translations/bg.json b/app/config/locale/translations/bg.json index f3ed2e7642..4fd1e6fdbf 100644 --- a/app/config/locale/translations/bg.json +++ b/app/config/locale/translations/bg.json @@ -2,7 +2,7 @@ "settings.inspire": "\"Изкуството да бъдеш мъдър е изкуството да знаеш какво да пренебрегнеш.\"", "settings.locale": "bg", "settings.direction": "ltr", - "emails.sender": "%s Екип", + "emails.sender": "{{project}} Екип", "emails.verification.subject": "", "emails.verification.hello": ",", "emails.verification.body": "", diff --git a/app/config/locale/translations/bh.json b/app/config/locale/translations/bh.json index 04ef824f2b..8543e4f241 100644 --- a/app/config/locale/translations/bh.json +++ b/app/config/locale/translations/bh.json @@ -2,7 +2,7 @@ "settings.inspire": "\"बुद्धिमान होइत क कला ई जाने क कला अछि जे की अनदेखा कर्मा चाहि| \"", "settings.locale": "bh", "settings.direction": "ltr", - "emails.sender": "%s टीम", + "emails.sender": "{{project}} टीम", "emails.verification.subject": "खाता प्रमाणिकरण", "emails.verification.hello": "नमस्ते {{user}},", "emails.verification.body": "ईमेल प्रमाणिकरण करे क लेल दिहल गइल लिंक फॉलो करें|", @@ -21,7 +21,7 @@ "emails.recovery.thanks": "धन्यवाद,", "emails.recovery.buttonText": "पासवर्ड रीसेट करीं", "emails.recovery.signature": "{{project}} टीम", - "emails.invitation.subject": "%s टीम क %s पे न्योता देवे क लेल|", + "emails.invitation.subject": "{{team}} टीम क {{project}} पे न्योता देवे क लेल|", "emails.invitation.hello": "प्रणाम,", "emails.invitation.body": "ई मेल आपके एही लेल भेजल गईल रहल काहे क {{owner}} आपके {{project}} क {{team}} टीम का सदस्य बनावे चाहित रहे|", "emails.invitation.footer": "अगर आवे क इच्छा ना होवत, तो आप ई संदेश क अनदेखा कर सकत अछि।", @@ -245,7 +245,7 @@ "emails.otpSession.securityPhrase": "एही ईमेल खातिर सुरक्षा वाक्य {{phrase}} हऽ। अगर ई वाक्य साइन इन कइला के समय देखावल गेल वाक्य से मेल खाता, त एह ईमेल पर भरोसा कर सकैत छी।", "emails.otpSession.thanks": "धन्यवाद,", "emails.otpSession.signature": "{{project}} टीम", - "emails.certificate.subject": "%s लेल प्रमाणपत्र असफलта", + "emails.certificate.subject": "{{domain}} लेल प्रमाणपत्र असफलता", "emails.certificate.hello": "नमस्ते,", "emails.certificate.body": "आपके डोमेन '{{domain}}' के लिए प्रमाणपत्र नहीं बनाया जा सका। ई प्रयास संख्या {{attempt}} है, और ई असफलता के कारण रहे: {{error}}", "emails.certificate.footer": "तोहार पिछलका प्रमाणपत्र पहिल असफलता से 30 दिन धरी मान्य होईत। हम बहुत जोर देके सलाह देतानी कि एह मामला के जांच करीं, नहीं त तोहार डोमेन बिना कोनो मान्य SSL संवाद के रहि जाईत।", diff --git a/app/config/locale/translations/bn.json b/app/config/locale/translations/bn.json index 617d5815a0..a1be879e0c 100644 --- a/app/config/locale/translations/bn.json +++ b/app/config/locale/translations/bn.json @@ -2,7 +2,7 @@ "settings.inspire": "\"জ্ঞানী হওয়ার শিল্প হলো কোন বিষয়টিকে উপেক্ষা করা উচিত তা জানার শিল্প\"", "settings.locale": "bn", "settings.direction": "ltr", - "emails.sender": "%s টীম", + "emails.sender": "{{project}} টীম", "emails.verification.subject": "বিষয়", "emails.verification.hello": "নমস্কার {{user}},", "emails.verification.body": "এই লিঙ্কের মাধ্যমে ইমেইল যাচাই করুন।", @@ -21,7 +21,7 @@ "emails.recovery.thanks": "ধন্যবাদ,", "emails.recovery.buttonText": "পাসওয়ার্ড রিসেট করুন", "emails.recovery.signature": "{{project}} টীম", - "emails.invitation.subject": "%s টিমকে %s তে আমন্ত্রণ জানান", + "emails.invitation.subject": "{{team}} টিমকে {{project}} তে আমন্ত্রণ জানান", "emails.invitation.hello": "নমস্কার,", "emails.invitation.body": "এই মেইলটি আপনাকে পাঠানো হয়েছে কারণ {{owner}} আপনাকে {{project}} এর সাথে যুক্ত {{team}} টিমের সদস্য হওয়ার জন্য আমন্ত্রণ জানাতে চেয়েছিলেন।", "emails.invitation.footer": "যদি এটি আপনার জন্য প্রয়োজনীয় না হয়, আপনি এই বার্তাটি উপেক্ষা করতে পারেন।", diff --git a/app/config/locale/translations/bs.json b/app/config/locale/translations/bs.json index 29c081c069..22a54383a9 100644 --- a/app/config/locale/translations/bs.json +++ b/app/config/locale/translations/bs.json @@ -2,7 +2,7 @@ "settings.inspire": "\"Umjetnost mudrosti je umjetnost znanja o tome šta zanemariti.\"", "settings.locale": "bs", "settings.direction": "ltr", - "emails.sender": "%s Tim", + "emails.sender": "{{project}} Tim", "emails.verification.subject": "", "emails.verification.hello": ",", "emails.verification.body": "", diff --git a/app/config/locale/translations/ca.json b/app/config/locale/translations/ca.json index 38519f10c9..7f4be27f1c 100644 --- a/app/config/locale/translations/ca.json +++ b/app/config/locale/translations/ca.json @@ -2,7 +2,7 @@ "settings.inspire": "\"L'art de ser savi és l'art de saber què passar per alt\"", "settings.locale": "ca", "settings.direction": "ltr", - "emails.sender": "%s Equip", + "emails.sender": "{{project}} Equip", "emails.verification.subject": "Verificació del compte", "emails.verification.hello": "Hola {{user}},", "emails.verification.body": "Accedeix a aquest enllaç per tal de verificar la teva adreça electrònica.", @@ -21,7 +21,7 @@ "emails.recovery.thanks": "Gràcies,", "emails.recovery.buttonText": "Restableix la contrasenya", "emails.recovery.signature": "Equip {{project}}", - "emails.invitation.subject": "Invitació a l'equip %s a s%", + "emails.invitation.subject": "Invitació a l'equip {{team}} a {{project}}", "emails.invitation.hello": "Hola,", "emails.invitation.body": "Aquest correu se t'ha enviat perquè {{owner}} vol convidar-te a formar part de l'equip {{team}} al {{project}}.", "emails.invitation.footer": "Si no és del teu interès, pots ignorar aquest missatge.", diff --git a/app/config/locale/translations/cs.json b/app/config/locale/translations/cs.json index f043a6a5c7..609f064969 100644 --- a/app/config/locale/translations/cs.json +++ b/app/config/locale/translations/cs.json @@ -2,7 +2,7 @@ "settings.inspire": "\"Umění moudrosti je umění vědět, co přehlédnout.\"", "settings.locale": "cs", "settings.direction": "ltr", - "emails.sender": "%s tým", + "emails.sender": "{{project}} tým", "emails.verification.subject": "", "emails.verification.hello": ",", "emails.verification.body": "", diff --git a/app/config/locale/translations/da.json b/app/config/locale/translations/da.json index 4b4af3446d..2b52bdb6a9 100644 --- a/app/config/locale/translations/da.json +++ b/app/config/locale/translations/da.json @@ -2,7 +2,7 @@ "settings.inspire": "\"Kunsten at være klog er kunsten at vide, hvad man skal overse.\"", "settings.locale": "da", "settings.direction": "ltr", - "emails.sender": "%s Team", + "emails.sender": "{{project}} Team", "emails.verification.subject": "Konto Verifikation", "emails.verification.hello": "Hej {{user}},", "emails.verification.body": "Følg dette link, for at verificere din email adresse.", @@ -21,7 +21,7 @@ "emails.recovery.thanks": "Tak,", "emails.recovery.buttonText": "Nulstil adgangskode", "emails.recovery.signature": "{{project}} team", - "emails.invitation.subject": "Invitation til %s Team på %s", + "emails.invitation.subject": "Invitation til {{team}} Team på {{project}}", "emails.invitation.hello": "Hej,", "emails.invitation.body": "Denne mail blev sendt til dig, fordi {{owner}} vil invitere dig til at blive medlem af {{team}} teamet på {{project}}.", "emails.invitation.footer": "Hvis du ikke er interesseret, ignorer venligst denne besked.", diff --git a/app/config/locale/translations/de.json b/app/config/locale/translations/de.json index 8f17faf136..0793753789 100644 --- a/app/config/locale/translations/de.json +++ b/app/config/locale/translations/de.json @@ -2,7 +2,7 @@ "settings.inspire": "\"Die Kunst, weise zu sein, ist die Kunst, zu wissen, was zu übersehen ist.\"", "settings.locale": "de", "settings.direction": "ltr", - "emails.sender": "%s Team", + "emails.sender": "{{project}} Team", "emails.verification.subject": "Kontoverifizierung", "emails.verification.hello": "Hey {{user}},", "emails.verification.body": "Folge diesem Link, um deine E-Mail-Adresse zu bestätigen.", @@ -21,7 +21,7 @@ "emails.recovery.thanks": "Danke,", "emails.recovery.buttonText": "Passwort zurücksetzen", "emails.recovery.signature": "{{project}}-Team", - "emails.invitation.subject": "Einladung zum %s-Team auf %s", + "emails.invitation.subject": "Einladung zum {{team}}-Team auf {{project}}", "emails.invitation.hello": "Hello,", "emails.invitation.body": "Du erhälst diese E-Mail, weil {{owner}} dich in das Team {{team}} auf {{project}} eingeladen hat.", "emails.invitation.footer": "Wenn du nicht interessiert bist, kannst du diese Nachricht ignorieren.", diff --git a/app/config/locale/translations/el.json b/app/config/locale/translations/el.json index ec3b02c691..54b14c1846 100644 --- a/app/config/locale/translations/el.json +++ b/app/config/locale/translations/el.json @@ -2,7 +2,7 @@ "settings.inspire": "\"Η τέχνη του να είσαι σοφός, είναι η τέχνη να ξέρεις τι πρέπει να παραβλέψεις.\"", "settings.locale": "gr", "settings.direction": "ltr", - "emails.sender": "Ομάδα %s", + "emails.sender": "Ομάδα {{project}}", "emails.verification.subject": "Επαλήθευση Λογαριασμού", "emails.verification.hello": "Γεια σου {{user}},", "emails.verification.body": "Ακολουθήστε αυτό το link για να επαληθεύσετε τη δ/νση του email σας", @@ -21,7 +21,7 @@ "emails.recovery.thanks": "Ευχαριστούμε,", "emails.recovery.buttonText": "Επαναφορά κωδικού πρόσβασης", "emails.recovery.signature": "Η ομάδα του {{project}}", - "emails.invitation.subject": "Πρόσκληση στην %s Ομάδα στον %s", + "emails.invitation.subject": "Πρόσκληση στην {{team}} Ομάδα στον {{project}}", "emails.invitation.hello": "Γεια σου,", "emails.invitation.body": "Αυτό το email στάλθηκε επειδή ο/η {{owner}} θέλει να σας προσκαλέσει να γίνετε μέλος της ομάδας {{team}} του {{project}}.", "emails.invitation.footer": "Εάν δεν ενδιαφέρεστε, μπορείτε να αγνοήσετε αυτό το μήνυμα.", diff --git a/app/config/locale/translations/en.json b/app/config/locale/translations/en.json index a3284440f4..e2ee20b2d7 100644 --- a/app/config/locale/translations/en.json +++ b/app/config/locale/translations/en.json @@ -2,7 +2,7 @@ "settings.inspire": "\"The art of being wise is the art of knowing what to overlook.\"", "settings.locale": "en", "settings.direction": "ltr", - "emails.sender": "%s Team", + "emails.sender": "{{project}} Team", "emails.verification.subject": "Account Verification", "emails.verification.preview": "Verify your email to activate your {{project}} account.", "emails.verification.hello": "Hello {{user}},", @@ -54,7 +54,7 @@ "emails.recovery.thanks": "Thanks,", "emails.recovery.buttonText": "Reset password", "emails.recovery.signature": "{{project}} team", - "emails.invitation.subject": "Invitation to %s Team at %s", + "emails.invitation.subject": "Invitation to {{team}} Team at {{project}}", "emails.invitation.preview": "{{owner}} invited you to join {{team}} at {{project}}", "emails.invitation.hello": "Hello {{user}},", "emails.invitation.body": "This mail was sent to you because {{b}}{{owner}}{{/b}} invited you to become a member of the {{b}}{{team}}{{/b}} team at {{b}}{{project}}{{/b}}.", @@ -62,8 +62,8 @@ "emails.invitation.thanks": "Thanks,", "emails.invitation.buttonText": "Accept invite to {{team}}", "emails.invitation.signature": "{{project}} team", - "emails.certificate.subject": "Certificate failure for %s", - "emails.certificate.preview": "Your domain %s certificate generation has failed.", + "emails.certificate.subject": "Certificate failure for {{domain}}", + "emails.certificate.preview": "Your domain {{domain}} certificate generation has failed.", "emails.certificate.hello": "Hello,", "emails.certificate.body": "Certificate for your domain '{{domain}}' could not be generated. This is attempt no. {{attempt}}, and the failure was caused by: {{error}}", "emails.certificate.footer": "Your previous certificate will be valid for 30 days since the first failure. We highly recommend investigating this case, otherwise your domain will end up without a valid SSL communication.", diff --git a/app/config/locale/translations/eo.json b/app/config/locale/translations/eo.json index 82d7eb53f0..8b5eb0fe90 100644 --- a/app/config/locale/translations/eo.json +++ b/app/config/locale/translations/eo.json @@ -1,7 +1,7 @@ { "settings.locale": "eo", "settings.direction": "ltr", - "emails.sender": "Teamo %s", + "emails.sender": "Teamo {{project}}", "emails.verification.subject": "Konta Konfirmo", "emails.verification.hello": "Saluton {{user}},", "emails.verification.body": "Alklaku ĉi tiun ligon por kontroli vian retpoŝtan adreson.", @@ -20,7 +20,7 @@ "emails.recovery.thanks": "Dankegon,", "emails.recovery.buttonText": "Pasvorton restarigi", "emails.recovery.signature": "Teamo {{project}}", - "emails.invitation.subject": "Invito al la Teamo %s em %s", + "emails.invitation.subject": "Invito al la Teamo {{team}} em {{project}}", "emails.invitation.hello": "Dankegon,", "emails.invitation.body": "Ĉi tiu retpoŝto estis sendita ĉar la {{owner}} volas inviti vin fariĝi membro de la Teamo {{team}} en {{project}}.", "emails.invitation.footer": "Se vi ne interesiĝas, vi povas ignori ĉi tiun mesaĝon.", diff --git a/app/config/locale/translations/es.json b/app/config/locale/translations/es.json index 27955eae30..21a406b418 100644 --- a/app/config/locale/translations/es.json +++ b/app/config/locale/translations/es.json @@ -2,7 +2,7 @@ "settings.inspire": "\"El arte de ser sabio es el arte de saber qué pasar por alto\"", "settings.locale": "es", "settings.direction": "ltr", - "emails.sender": "El equipo de %s", + "emails.sender": "El equipo de {{project}}", "emails.verification.subject": "Verificación de cuenta", "emails.verification.hello": "Hola, {{name}}.,", "emails.verification.body": "Haz clic en este enlace para verificar tu correo:", @@ -21,7 +21,7 @@ "emails.recovery.thanks": "Gracias.,", "emails.recovery.buttonText": "Restablecer contraseña", "emails.recovery.signature": "El equipo de {{project}}", - "emails.invitation.subject": "Invitación al equipo %s en %s", + "emails.invitation.subject": "Invitación al equipo {{team}} en {{project}}", "emails.invitation.hello": "Hola,", "emails.invitation.body": "Este correo ha sido enviado a petición de {{owner}} quién quiere invitarte a formar parte del equipo {{team}} en {{project}}.", "emails.invitation.footer": "Si no estás interesado, puedes ignorar este mensaje.", diff --git a/app/config/locale/translations/fa.json b/app/config/locale/translations/fa.json index f8420288df..84cd154f4e 100644 --- a/app/config/locale/translations/fa.json +++ b/app/config/locale/translations/fa.json @@ -2,7 +2,7 @@ "settings.inspire": "\"هنر خردمند بودن این است که بدانید چه چیزی را نادیده بگیرید.\"", "settings.locale": "fa", "settings.direction": "rtl", - "emails.sender": "تیم %s", + "emails.sender": "تیم {{project}}", "emails.verification.subject": "تأیید حساب", "emails.verification.hello": "سلام {{user}}،", "emails.verification.body": "برای تأیید ایمیل‌تان پیوند زیر را دنبال کنید.", @@ -21,7 +21,7 @@ "emails.recovery.thanks": "سپاس فراوان،", "emails.recovery.buttonText": "بازنشانی رمز عبور", "emails.recovery.signature": "تیم {{user}}", - "emails.invitation.subject": "دعوت به تیم %s در %s", + "emails.invitation.subject": "دعوت به تیم {{team}} در {{project}}", "emails.invitation.hello": "سلام،", "emails.invitation.body": "این ایمیل برای شما فرستاده شده‌است زیرا {{owner}} می‌خواهد شما را به تیم {{team}} در پروژه‌ی {{project}} بیفزاید.", "emails.invitation.footer": "اگر علاقه ندارید، می‌توانید این پیام را نادیده بگیرید.", diff --git a/app/config/locale/translations/fi.json b/app/config/locale/translations/fi.json index da4599bb58..2a5ff54078 100644 --- a/app/config/locale/translations/fi.json +++ b/app/config/locale/translations/fi.json @@ -2,7 +2,7 @@ "settings.inspire": "\"The art of being wise is the art of knowing what to overlook.\"", "settings.locale": "fi", "settings.direction": "ltr", - "emails.sender": "%s Tiimi", + "emails.sender": "{{project}} Tiimi", "emails.verification.subject": "", "emails.verification.hello": ",", "emails.verification.body": "", diff --git a/app/config/locale/translations/fo.json b/app/config/locale/translations/fo.json index cfe63322b4..e301d158fa 100644 --- a/app/config/locale/translations/fo.json +++ b/app/config/locale/translations/fo.json @@ -2,7 +2,7 @@ "settings.inspire": "\"Kunstin om at vera vís er at vita hvat man skal misrøkja.\"", "settings.locale": "fo", "settings.direction": "ltr", - "emails.sender": "%s Lið", + "emails.sender": "{{project}} Lið", "emails.verification.subject": "", "emails.verification.hello": ",", "emails.verification.body": "", diff --git a/app/config/locale/translations/fr.json b/app/config/locale/translations/fr.json index 7f3fca739d..95abe15787 100644 --- a/app/config/locale/translations/fr.json +++ b/app/config/locale/translations/fr.json @@ -2,7 +2,7 @@ "settings.inspire": "\"L'art d'être sage est l'art de savoir quoi négliger.\"", "settings.locale": "fr", "settings.direction": "ltr", - "emails.sender": "Équipe %s", + "emails.sender": "Équipe {{project}}", "emails.verification.subject": "Vérification du compte", "emails.verification.hello": "Bonjour {{user}},", "emails.verification.body": "Suivez ce lien pour vérifier votre adresse e-mail.", @@ -21,7 +21,7 @@ "emails.recovery.thanks": "Merci,", "emails.recovery.buttonText": "Réinitialisation du mot de passe", "emails.recovery.signature": "L'équipe {{project}}", - "emails.invitation.subject": "Invitation à l'équipe %s de %s", + "emails.invitation.subject": "Invitation à l'équipe {{team}} de {{project}}", "emails.invitation.hello": "Bonjour,", "emails.invitation.body": "Cet e-mail vous a été envoyé parce que {{owner}} souhaite vous inviter à devenir membre de l'équipe {{team}} pour {{project}}.", "emails.invitation.footer": "Si vous n'êtes pas intéressé, vous pouvez ignorer ce message.", diff --git a/app/config/locale/translations/ga.json b/app/config/locale/translations/ga.json index f9611e07b5..b3e480c22c 100644 --- a/app/config/locale/translations/ga.json +++ b/app/config/locale/translations/ga.json @@ -2,7 +2,7 @@ "settings.inspire": "\"Is í ealaín na críonnachta ná rudaí a aithint chun cluas bhodhar a thabhairt dóibh.\"", "settings.locale": "ga", "settings.direction": "ltr", - "emails.sender": "%s Foireann", + "emails.sender": "{{project}} Foireann", "emails.verification.subject": "Fíoraithe cuntais", "emails.verification.hello": "Haigh {{user}},", "emails.verification.body": "Lean an nasc seo chun do ríomhphost a fhíorú.", @@ -21,7 +21,7 @@ "emails.recovery.thanks": "Go raibh maith agat,", "emails.recovery.buttonText": "Athshocraigh focal faire", "emails.recovery.signature": "{{project}} foireann", - "emails.invitation.subject": "Cuireadh do %s foireann ag %s", + "emails.invitation.subject": "Cuireadh do {{team}} foireann ag {{project}}", "emails.invitation.hello": "Haigh,", "emails.invitation.body": "Seoladh an ríomhphost seo chugat mar ba mhaith le {{owner}} cuireadh a thabhairt duit bheith mar bhall den fhoireann {{team}} ag obair ar {{project}}.", "emails.invitation.footer": "Is cuma leat? Déan neamhaird den teachtaireacht seo.", diff --git a/app/config/locale/translations/gu.json b/app/config/locale/translations/gu.json index 8b9b41c0c9..97d73b8d5c 100644 --- a/app/config/locale/translations/gu.json +++ b/app/config/locale/translations/gu.json @@ -2,7 +2,7 @@ "settings.inspire": "\"સ્માર્ટ બનવાની કળા એ છે કે શું અવગણવું તે જાણવાની કળા છે.\"", "settings.locale": "gu", "settings.direction": "ltr", - "emails.sender": "%s ટીમ", + "emails.sender": "{{project}} ટીમ", "emails.verification.subject": "ખાતાની ચકાસણી", "emails.verification.hello": "નમસ્કાર {{user}},", "emails.verification.body": "તમારું ઇમેઇલ સરનામું ચકાસવા માટે આ લિંકને અનુસરો.", @@ -21,7 +21,7 @@ "emails.recovery.thanks": "આભાર,", "emails.recovery.buttonText": "પાસવર્ડ રીસેટ કરો", "emails.recovery.signature": "{{project}} ટીમ", - "emails.invitation.subject": "%s ટીમને %s પર આમંત્રણ", + "emails.invitation.subject": "{{team}} ટીમને {{project}} પર આમંત્રણ", "emails.invitation.hello": "નમસ્કાર,", "emails.invitation.body": "આ મેઇલ તમને મોકલવામાં આવ્યો હતો કારણ કે {{owner}} તમને {{project}} માં {{team}} ટીમના સભ્ય બનવા માટે આમંત્રિત કરવા માંગતા હતો.", "emails.invitation.footer": "જો તમને રસ નથી, તો તમે આ સંદેશને અવગણી શકો છો.", diff --git a/app/config/locale/translations/he.json b/app/config/locale/translations/he.json index ab61085fa1..96c9eb3d50 100644 --- a/app/config/locale/translations/he.json +++ b/app/config/locale/translations/he.json @@ -2,7 +2,7 @@ "settings.inspire": "\"להיות חכם זה לדעת ממה להתעלם.\"", "settings.locale": "he", "settings.direction": "rtl", - "emails.sender": "צוות %s", + "emails.sender": "צוות {{project}}", "emails.verification.subject": "אימות חשבון", "emails.verification.hello": "שלום {{user}},", "emails.verification.body": "לחץ על קישור זה כדי לאמת את כתובת הדוא\"ל שלך.", @@ -21,7 +21,7 @@ "emails.recovery.thanks": "תודה,", "emails.recovery.buttonText": "סיסמא איפוס", "emails.recovery.signature": "צוות {{project}}", - "emails.invitation.subject": "הזמנה לצוות %s ב- %s", + "emails.invitation.subject": "הזמנה לצוות {{team}} ב- {{project}}", "emails.invitation.hello": "שלום,", "emails.invitation.body": "דואר זה נשלח אליך מכיוון ש {{owner}} רצה להזמין אותך להיות חבר בצוות {{team}} ב-{{project}}.", "emails.invitation.footer": "אם אינך מעוניין, תוכל להתעלם מהודעה זו.", diff --git a/app/config/locale/translations/hi.json b/app/config/locale/translations/hi.json index fe2aa9b5d2..51f404260e 100644 --- a/app/config/locale/translations/hi.json +++ b/app/config/locale/translations/hi.json @@ -2,7 +2,7 @@ "settings.inspire": "\"बुद्धिमान होने की कला यह जानने की कला है कि क्या अनदेखा किया जाए |\"", "settings.locale": "hi", "settings.direction": "ltr", - "emails.sender": "%s टीम", + "emails.sender": "{{project}} टीम", "emails.verification.subject": "अकाउंट वेरिफिकेशन ", "emails.verification.hello": "नमस्ते {{user}},", "emails.verification.body": "इस लिंक के माध्यम से अपने ईमेल को सत्यापित कीजिये।", @@ -21,7 +21,7 @@ "emails.recovery.thanks": "धन्यवाद,", "emails.recovery.buttonText": "पासवर्ड रीसेट करें", "emails.recovery.signature": "{{project}} टीम", - "emails.invitation.subject": "%s टीम का यहाँ %s पर आमंत्रण", + "emails.invitation.subject": "{{team}} टीम का यहाँ {{project}} पर आमंत्रण", "emails.invitation.hello": "नमस्ते,", "emails.invitation.body": "यह मेल आपको इसलिए भेजा गया है क्योंकि {{owner}} आपको {{team}} टीम का सदस्य बनाना चाहते है, जो {{project}} से जुड़ा हुआ है।", "emails.invitation.footer": "यदि आप इसमें रूचि नहीं रखते, तो आप इस संदेश को नज़रअंदाज़ कर सकते हैं।", diff --git a/app/config/locale/translations/hr.json b/app/config/locale/translations/hr.json index 7ffe10668b..e956a530c1 100644 --- a/app/config/locale/translations/hr.json +++ b/app/config/locale/translations/hr.json @@ -2,7 +2,7 @@ "settings.inspire": "\"Umjetnost mudrosti je umjetnost znanja o tome što zanemariti.\"", "settings.locale": "hr", "settings.direction": "ltr", - "emails.sender": "%s Tim", + "emails.sender": "{{project}} Tim", "emails.verification.subject": "Verifikacija računa", "emails.verification.hello": "Pozdrav {{user}},", "emails.verification.body": "Slijedite ovu poveznicu da biste potvrdili svoju adresu e-pošte.", @@ -21,7 +21,7 @@ "emails.recovery.thanks": "Hvala,", "emails.recovery.buttonText": "Resetiraj lozinku", "emails.recovery.signature": "{{project}} tim", - "emails.invitation.subject": "Pozivnica za %s tim na %s", + "emails.invitation.subject": "Pozivnica za {{team}} tim na {{project}}", "emails.invitation.hello": "Pozdrav,", "emails.invitation.body": "Ova poruka Vam je poslana jer Vas je {{owner}} htio pozvati da postanete član {{team}} tima na {{project}}.", "emails.invitation.footer": "Ukoliko niste zainteresirani, možete zanemariti ovu poruku.", diff --git a/app/config/locale/translations/hu.json b/app/config/locale/translations/hu.json index 54e204e798..2593099c52 100644 --- a/app/config/locale/translations/hu.json +++ b/app/config/locale/translations/hu.json @@ -2,7 +2,7 @@ "settings.inspire": "\"The art of being wise is the art of knowing what to overlook.\"", "settings.locale": "hu", "settings.direction": "ltr", - "emails.sender": "%s Csapat", + "emails.sender": "{{project}} Csapat", "emails.verification.subject": "Fiók Megerősítése", "emails.verification.hello": "Szia {{user}},", "emails.verification.body": "Kattints a linkre, hogy megerősítsd az email címedet.", @@ -21,7 +21,7 @@ "emails.recovery.thanks": "Köszönettel,", "emails.recovery.buttonText": "Jelszó visszaállítása", "emails.recovery.signature": "a {{project}} csapat", - "emails.invitation.subject": "Meghívó a(z) %s csapatba, a(z) %s projektbe", + "emails.invitation.subject": "Meghívó a(z) {{team}} csapatba, a(z) {{project}} projektbe", "emails.invitation.hello": "Szia,", "emails.invitation.body": "Ezt a levelet azért kaptad, mert {{owner}} meghívott, hogy légy a {{team}} csapat tagja a {{project}} projektben.", "emails.invitation.footer": "Ha nem érdekel a lehetőség, nyugodtan hagyd figyelmen kívül ezt az üzenetet.", diff --git a/app/config/locale/translations/hy.json b/app/config/locale/translations/hy.json index 08dcbb59eb..b0c264d87c 100644 --- a/app/config/locale/translations/hy.json +++ b/app/config/locale/translations/hy.json @@ -2,7 +2,7 @@ "settings.inspire": "\"Искусство быть мудрым — это искусство знать, чем можно пренебречь.\"", "settings.locale": "ru", "settings.direction": "ltr", - "emails.sender": "Թիմ %s", + "emails.sender": "Թիմ {{project}}", "emails.verification.subject": "", "emails.verification.hello": ",", "emails.verification.body": "", diff --git a/app/config/locale/translations/id.json b/app/config/locale/translations/id.json index cd9cadc4b1..0e716f1e80 100644 --- a/app/config/locale/translations/id.json +++ b/app/config/locale/translations/id.json @@ -2,7 +2,7 @@ "settings.inspire": "\"Seni menjadi bijak adalah seni mengetahui apa yang harus diabaikan.\"", "settings.locale": "id", "settings.direction": "ltr", - "emails.sender": "Tim %s", + "emails.sender": "Tim {{project}}", "emails.verification.subject": "Verifikasi Akun", "emails.verification.hello": "Hai {{user}},", "emails.verification.body": "Ikuti tautan ini untuk memverifikasi alamat email Anda.", @@ -21,7 +21,7 @@ "emails.recovery.thanks": "Terima kasih,", "emails.recovery.buttonText": "Atur ulang kata sandi", "emails.recovery.signature": "Tim {{project}}", - "emails.invitation.subject": "Undangan ke Tim %s di %s", + "emails.invitation.subject": "Undangan ke Tim {{team}} di {{project}}", "emails.invitation.hello": "Halo,", "emails.invitation.body": "Email ini dikirimkan kepada Anda karena {{owner}} ingin mengundang Anda untuk menjadi anggota tim {{team}} di {{project}}.", "emails.invitation.footer": "Jika Anda tidak tertarik, Anda dapat mengabaikan pesan ini.", diff --git a/app/config/locale/translations/is.json b/app/config/locale/translations/is.json index 4b21e9939b..e387058d17 100644 --- a/app/config/locale/translations/is.json +++ b/app/config/locale/translations/is.json @@ -2,7 +2,7 @@ "settings.inspire": "\"Listin að vera vitur er listin að vita hvað á að líta framhjá.\"", "settings.locale": "is", "settings.direction": "ltr", - "emails.sender": "%s Teymi", + "emails.sender": "{{project}} Teymi", "emails.verification.subject": "", "emails.verification.hello": ",", "emails.verification.body": "", diff --git a/app/config/locale/translations/it.json b/app/config/locale/translations/it.json index 7b419858a3..1b07f7e95c 100644 --- a/app/config/locale/translations/it.json +++ b/app/config/locale/translations/it.json @@ -2,7 +2,7 @@ "settings.inspire": "\"L'arte di essere saggi è l'arte di saper cosa trascurare.\"", "settings.locale": "it", "settings.direction": "ltr", - "emails.sender": "Team %s", + "emails.sender": "Team {{project}}", "emails.verification.subject": "Verifica account", "emails.verification.hello": "Ciao {{user}},", "emails.verification.body": "Clicca questo link per verificare il tuo indirizzo email.", @@ -21,7 +21,7 @@ "emails.recovery.thanks": "Grazie,", "emails.recovery.buttonText": "Reimposta password", "emails.recovery.signature": "Il team {{project}}", - "emails.invitation.subject": "Invito al Team %s per %s", + "emails.invitation.subject": "Invito al Team {{team}} per {{project}}", "emails.invitation.hello": "Ciao,", "emails.invitation.body": "Hai ricevuto questa email perché {{owner}} ti ha invitato a diventare un membro del team {{team}} di {{project}}.", "emails.invitation.footer": "Ignora questo messaggio se non sei interessatə.", diff --git a/app/config/locale/translations/ja.json b/app/config/locale/translations/ja.json index 6ecfed55a2..40c84e4a80 100644 --- a/app/config/locale/translations/ja.json +++ b/app/config/locale/translations/ja.json @@ -2,7 +2,7 @@ "settings.inspire": "\"賢明になる術は何を捨てるべきかを心得る術である。\"", "settings.locale": "ja", "settings.direction": "ltr", - "emails.sender": "%s チーム", + "emails.sender": "{{project}} チーム", "emails.verification.subject": "アカウント認証", "emails.verification.hello": "こんにちは{{user}}さん、", "emails.verification.body": "メールアドレスを有効化するためには下記リンクをクリックして下さい。", @@ -21,7 +21,7 @@ "emails.recovery.thanks": "ご利用いただきありがとうございます。、", "emails.recovery.buttonText": "パスワードをリセット", "emails.recovery.signature": "{{project}}チーム", - "emails.invitation.subject": "%sチームへの招待が%sから来ました。", + "emails.invitation.subject": "{{team}}チームへの招待が{{project}}から来ました。", "emails.invitation.hello": "こんにちは、", "emails.invitation.body": "{{owner}}さんが{{project}}の{{team}}チームにあなたを招待しています。", "emails.invitation.footer": "このメールに心当たりが無い場合は破棄をお願いいたします。", diff --git a/app/config/locale/translations/jv.json b/app/config/locale/translations/jv.json index 3f6b6b9fe2..962ded4fdc 100644 --- a/app/config/locale/translations/jv.json +++ b/app/config/locale/translations/jv.json @@ -2,7 +2,7 @@ "settings.inspire": "\"Kesenian sing wicaksana yaiku seni sing ngerti apa sing kudu dilalekake.\"", "settings.locale": "jv", "settings.direction": "ltr", - "emails.sender": "Tim %s", + "emails.sender": "Tim {{project}}", "emails.verification.subject": "Verifikasi Akun", "emails.verification.hello": "Hai {{user}},", "emails.verification.body": "Klik link iki kanggo verifikasi alamat email sampeyan.", @@ -21,7 +21,7 @@ "emails.recovery.thanks": "Matur nuwun,", "emails.recovery.buttonText": "Reset sandhi", "emails.recovery.signature": "Tim {{project}}", - "emails.invitation.subject": "Undangan ke Tim %s di %s", + "emails.invitation.subject": "Undangan ke Tim {{team}} di {{project}}", "emails.invitation.hello": "Halo,", "emails.invitation.body": "Email iki dikirim menyang sampeyan amarga {{owner}} pengin ngajak sampeyan dadi anggota tim {{team}} di {{project}}.", "emails.invitation.footer": "Yen sampeyan ora tertarik, sampeyan iso nglirwakake pesen iki.", diff --git a/app/config/locale/translations/km.json b/app/config/locale/translations/km.json index 9e93162a6a..e673a7916f 100644 --- a/app/config/locale/translations/km.json +++ b/app/config/locale/translations/km.json @@ -2,7 +2,7 @@ "settings.inspire": "\"សិល្បៈនៃប្រាជ្ញាគឺជាសិល្បៈនៃការស្គាល់ពីអ្វីដែលត្រូវមើលរំលង។\"", "settings.locale": "km", "settings.direction": "ltr", - "emails.sender": "ក្រុម %s", + "emails.sender": "ក្រុម {{project}}", "emails.verification.subject": "", "emails.verification.hello": "", "emails.verification.body": "", diff --git a/app/config/locale/translations/kn.json b/app/config/locale/translations/kn.json index 40b51c0944..ede9d020b8 100644 --- a/app/config/locale/translations/kn.json +++ b/app/config/locale/translations/kn.json @@ -1,8 +1,8 @@ { "settings.inspire": "\"ಬುದ್ಧಿವಂತಿಕೆಯ ಕಲೆ ಏನು ಕಡೆಗಣಿಸಬೇಕೆಂದು ತಿಳಿಯುವ ಕಲೆ.\"", - "settings.locale": "ka", + "settings.locale": "kn", "settings.direction": "ltr", - "emails.sender": "%s ತಂಡ", + "emails.sender": "{{project}} ತಂಡ", "emails.verification.subject": "ಖಾತೆ ಪರಿಶೀಲನೆ", "emails.verification.hello": "ನಮಸ್ಕಾರ {{user}},", "emails.verification.body": "ನಿಮ್ಮ ಇಮೇಲ್ ವಿಳಾಸ ಪರಿಶೀಲನೆಗೆ ಈ ಲಿಂಕನ್ನು ಅನುಸರಿಸಿ", @@ -21,7 +21,7 @@ "emails.recovery.thanks": "ಧನ್ಯವಾದಗಳು,", "emails.recovery.buttonText": "ಗುಪ್ತಪದವನ್ನು ಮರುಸೆಟ್ ಮಾಡಿ", "emails.recovery.signature": "{{project}} ತಂಡ", - "emails.invitation.subject": "%s ತಂಡಕ್ಕೆ %s ರಲ್ಲಿ ಆಹ್ವಾನ", + "emails.invitation.subject": "{{team}} ತಂಡಕ್ಕೆ {{project}} ರಲ್ಲಿ ಆಹ್ವಾನ", "emails.invitation.hello": "ನಮಸ್ಕಾರ,", "emails.invitation.body": "ಈ ಇಮೇಲ್ ನಿಮಗೆ ಬಂದಿದೆ ಏಕೆಂದರೆ {{owner}} ನಿಮ್ಮನ್ನು {{team}} ತಂಡದ {{project}}ರಲ್ಲಿ ಸದಸ್ಯ ಆಗಲಿಕ್ಕೆ ಆಹ್ವಾನಿಸಿದ್ದಾರೆ", "emails.invitation.footer": "ನಿಮಗೆ ಆಸಕ್ತಿಯಿಲ್ಲದಿದ್ದರೆ, ಈ ಸಂದೇಶವನ್ನು ನಿರ್ಲಕ್ಷಿಸಿ", diff --git a/app/config/locale/translations/ko.json b/app/config/locale/translations/ko.json index 3bae815d75..192af7ab93 100644 --- a/app/config/locale/translations/ko.json +++ b/app/config/locale/translations/ko.json @@ -2,7 +2,7 @@ "settings.inspire": "\"지혜롭게 되는 묘책은 그동안 간과했던 것을 알아내는 것에 있다\"", "settings.locale": "ko", "settings.direction": "ltr", - "emails.sender": "%s 팀", + "emails.sender": "{{project}} 팀", "emails.verification.subject": "계정 인증", "emails.verification.hello": "안녕하세요 {{user}}님、", "emails.verification.body": "이메일 인증을 위해 링크를 클릭하여주세요.", @@ -21,7 +21,7 @@ "emails.recovery.thanks": "감사합니다、", "emails.recovery.buttonText": "비밀번호 재설정", "emails.recovery.signature": "{{project}} 팀", - "emails.invitation.subject": "초대장 %s 팀 - %s", + "emails.invitation.subject": "초대장 {{team}} 팀 - {{project}}", "emails.invitation.hello": "안녕하세요、", "emails.invitation.body": "{{owner}}님이 귀하를 {{project}}의 {{team}} 팀으로 초대합니다.", "emails.invitation.footer": "팀에 합류할 의사가 없으시면 이 메세지를 무시하여주세요.", diff --git a/app/config/locale/translations/la.json b/app/config/locale/translations/la.json index bf58232b9a..242e563c8c 100644 --- a/app/config/locale/translations/la.json +++ b/app/config/locale/translations/la.json @@ -2,7 +2,7 @@ "settings.inspire": "\"Ars sapiendi est ars sciendi quid negligat.\"", "settings.locale": "la", "settings.direction": "ltr*", - "emails.sender": "%s team", + "emails.sender": "{{project}} team", "emails.verification.subject": "Ratio comprobatio", "emails.verification.hello": "Salve ibi {{user}},", "emails.verification.body": "Sequere hanc nexum ut quin inscriptionem tuum.", @@ -21,7 +21,7 @@ "emails.recovery.thanks": "Gratias,", "emails.recovery.buttonText": "Reset password", "emails.recovery.signature": "{{project}} team", - "emails.invitation.subject": "Invitatio pro %s in quadrigis %s", + "emails.invitation.subject": "Invitatio pro {{team}} in quadrigis {{project}}", "emails.invitation.hello": "Salve ibi,", "emails.invitation.body": "Haec inscriptio ad te missa est quia dominus incepto {{owner}} te invitare vult ut membrum {{team}} quadrigis fias ad {{project}}", "emails.invitation.footer": "Si non quaero, potes hunc nuntium ignorare", @@ -245,7 +245,7 @@ "emails.otpSession.securityPhrase": "Sententia securitatis huius epistulae est {{phrase}}. Epistulae confidere potes si haec sententia cum ea quae ostensa est in signo ingressus convenit.", "emails.otpSession.thanks": "Gratias,", "emails.otpSession.signature": "{{project}} team -> {{project}} grex", - "emails.certificate.subject": "Defectio testimonii pro %s", + "emails.certificate.subject": "Defectio testimonii pro {{domain}}", "emails.certificate.hello": "Salve,", "emails.certificate.body": "Certificatum pro dominio tuo '{{domain}}' generari non potuit. Hoc conatus num. {{attempt}} est, et defectus causatus est ab: {{error}}", "emails.certificate.footer": "Praeclarum tuum testificationem valet ad XXX dies a primo defectu. Magnopere suademus ut hoc casum investiges, alioquin dominium tuum sine valida SSL communicatione erit.", diff --git a/app/config/locale/translations/lb.json b/app/config/locale/translations/lb.json index 77245036ac..075c29ef11 100644 --- a/app/config/locale/translations/lb.json +++ b/app/config/locale/translations/lb.json @@ -2,7 +2,7 @@ "settings.inspire": "\"The art of being wise is the art of knowing what to overlook.\"", "settings.locale": "lb", "settings.direction": "ltr", - "emails.sender": "%s Team", + "emails.sender": "{{project}} Team", "emails.verification.subject": "Kont Verifikatioun", "emails.verification.hello": "Hey {{user}},", "emails.verification.body": "Follegt dëse Link fir Är E -Mail Adress z'iwwerpréiwen.", @@ -21,7 +21,7 @@ "emails.recovery.thanks": "Merci,", "emails.recovery.buttonText": "Passwuert zrécksetzen", "emails.recovery.signature": "{{project}} équipe", - "emails.invitation.subject": "Invitatioun un %s équipe bei %s", + "emails.invitation.subject": "Invitatioun un {{team}} équipe bei {{project}}", "emails.invitation.hello": "Hallo,", "emails.invitation.body": "Dës E -Mail gouf un Iech geschéckt well {{owner}} Iech invitéiere wëllt fir Member vum {{team}} Team bei {{project}} ze ginn.", "emails.invitation.footer": "Wann Dir net interesséiert sidd, kënnt Dir dëse Message ignoréieren.", diff --git a/app/config/locale/translations/lt.json b/app/config/locale/translations/lt.json index e0a3a84340..3e32658947 100644 --- a/app/config/locale/translations/lt.json +++ b/app/config/locale/translations/lt.json @@ -2,7 +2,7 @@ "settings.inspire": "\"Menas būti išmintingu — tai menas žinoti, ko galima nepamatyti.\"", "settings.locale": "lt", "settings.direction": "ltr", - "emails.sender": "%s komanda", + "emails.sender": "{{project}} komanda", "emails.verification.subject": "Paskyros Patvirtinimas", "emails.verification.hello": "Labas {{user}},", "emails.verification.body": "Spauskite šią nuorodą, kad patvirtintumėte savo el. paštą.", @@ -21,7 +21,7 @@ "emails.recovery.thanks": "Ačiū,", "emails.recovery.buttonText": "Atstatyti slaptažodį", "emails.recovery.signature": "{{project}} komanda", - "emails.invitation.subject": "Pakvietimas į %s komandą %s projekte", + "emails.invitation.subject": "Pakvietimas į {{team}} komandą {{project}} projekte", "emails.invitation.hello": "Labas,", "emails.invitation.body": "Šis el. laiškas buvo atsiųstas jums, nes {{owner}} norėjo jus pakviesti tapti projekto {{project}} dalimi {{team}} komandoje.", "emails.invitation.footer": "Jei jūsų tai nedomina, galite ignoruoti šį pranešimą.", diff --git a/app/config/locale/translations/lv.json b/app/config/locale/translations/lv.json index d91977ebad..9083fd3fc4 100644 --- a/app/config/locale/translations/lv.json +++ b/app/config/locale/translations/lv.json @@ -2,7 +2,7 @@ "settings.inspire": "\"Māksla būt gudram ir māksla zināt, ko aizmirst.\"", "settings.locale": "lv", "settings.direction": "ltr", - "emails.sender": "%s komanda", + "emails.sender": "{{project}} komanda", "emails.verification.subject": "Konta verifikācija", "emails.verification.hello": "Sveicināti, {{user}},", "emails.verification.body": "Sekojiet saitei, lai apstiprinātu savu e-pasta adresi.", @@ -21,7 +21,7 @@ "emails.recovery.thanks": "Paldies,", "emails.recovery.buttonText": "Atiestatīt paroli", "emails.recovery.signature": "{{project}} komanda", - "emails.invitation.subject": "Ielūgums piebiedroties %s komandai %s projektā.", + "emails.invitation.subject": "Ielūgums piebiedroties {{team}} komandai {{project}} projektā.", "emails.invitation.hello": "Labdien,", "emails.invitation.body": "Šis e-pasts tika nosūtīts Jums, jo {{owner}} vēlējās Jūs ielūgt kļūt par {{team}} komandas biedru {{project}} projektā.", "emails.invitation.footer": "Ja Jūs neesat ieinteresēts, lūdzu, ignorējiet šo ziņu.", diff --git a/app/config/locale/translations/ml.json b/app/config/locale/translations/ml.json index ffc9f12a7e..064df28413 100644 --- a/app/config/locale/translations/ml.json +++ b/app/config/locale/translations/ml.json @@ -2,7 +2,7 @@ "settings.inspire": "\"എന്താണ് അവഗണിക്കേണ്ടതെന്ന് അറിയാനുള്ള കലയാണ് ബുദ്ധിമാനായിരിക്കുക എന്നത്.\"", "settings.locale": "ml", "settings.direction": "ltr", - "emails.sender": "%s ടീം", + "emails.sender": "{{project}} ടീം", "emails.verification.subject": "അക്കൗണ്ട് സ്ഥിരീകരണം", "emails.verification.hello": "നമസ്കാരം {{user}},", "emails.verification.body": "നിങ്ങളുടെ ഇമെയിൽ വിലാസം സ്ഥിരീകരിക്കുന്നതിനായി ഈ ലിങ്ക് പിന്തുടരുക.", @@ -21,7 +21,7 @@ "emails.recovery.thanks": "നന്ദി,", "emails.recovery.buttonText": "പാസ്‌വേഡ് റീസെറ്റ് ചെയ്യുക", "emails.recovery.signature": "{{project}} ടീം", - "emails.invitation.subject": "%s -ലെ %s ടീമിലേക്കുള്ള ക്ഷണം", + "emails.invitation.subject": "{{project}} -ലെ {{team}} ടീമിലേക്കുള്ള ക്ഷണം", "emails.invitation.hello": "നമസ്കാരം,", "emails.invitation.body": "നിങ്ങളെ {{project}} -ലെ {{team}} ടീമിലെ അംഗമാകുവാന്‍ ക്ഷണിക്കാൻ {{owner}} ആഗ്രഹിക്കുന്നതിനാലാണ് ഈ മെയിൽ നിങ്ങൾക്ക് അയക്കുന്നത്.", "emails.invitation.footer": "നിങ്ങൾക്ക് താൽപ്പര്യമില്ലെങ്കിൽ, ഈ സന്ദേശം അവഗണിക്കാവുന്നതാണ്.", @@ -245,7 +245,7 @@ "emails.otpSession.securityPhrase": "ഈ ഇമെയിലിന്റെ സുരക്ഷാ വാചകം {{phrase}} ആണ്. സൈൻ ഇൻ ചെയ്യുമ്പോൾ കാണിച്ച വാചകവുമായി ഈ വാചകം പൊരുത്തപ്പെടുന്നുണ്ടെങ്കിൽ ഈ ഇമെയിലിന് വിശ്വസിക്കാം.", "emails.otpSession.thanks": "നന്ദി,", "emails.otpSession.signature": "പ്രോജക്ട് ടീം", - "emails.certificate.subject": "%s ന് സർട്ടിഫിക്കറ്റ് പരാജയപ്പെട്ടു", + "emails.certificate.subject": "{{domain}} ന് സർട്ടിഫിക്കറ്റ് പരാജയപ്പെട്ടു", "emails.certificate.hello": "ഹലോ,", "emails.certificate.body": "നിങ്ങളുടെ ഡൊമൈൻ '{{domain}}'നു വേണ്ടിയുള്ള സർട്ടിഫിക്കറ്റ് ഉണ്ടാക്കാനായില്ല. ഇത് ശ്രമം നമ്പർ {{attempt}} ആണ്, പരാജയപ്പെട്ടത് ഇതു മൂലമാണ്: {{error}}", "emails.certificate.footer": "നിങ്ങളുടെ മുൻപത്തെ സർട്ടിഫിക്കറ്റ് ആദ്യ പരാജയത്തിനു ശേഷം 30 ദിവസം വരെ സാധുവായിരിക്കും. ഈ കേസ് അന്വേഷിച്ചു നോക്കുന്നത് ഞങ്ങൾ ശക്തമായി ശുപാർശ ചെയ്യുന്നു, അല്ലെങ്കിൽ നിങ്ങളുടെ ഡൊമെയ്‌ൻ സാധുവായ SSL കമ്മ്യൂണിക്കേഷനില്ലാത്ത ഒരു അവസ്ഥയിലാകും.", diff --git a/app/config/locale/translations/mr.json b/app/config/locale/translations/mr.json index d417ac305f..533d0ec92c 100644 --- a/app/config/locale/translations/mr.json +++ b/app/config/locale/translations/mr.json @@ -2,7 +2,7 @@ "settings.inspire": "\"हुशार असण्याची कला म्हणजे कोणत्या गोष्टीकडे दुर्लक्ष करावे हे जाणून घेण्याची कला.\"", "settings.locale": "mr", "settings.direction": "ltr", - "emails.sender": "%s टीम", + "emails.sender": "{{project}} टीम", "emails.verification.subject": "खाते सत्यापन", "emails.verification.hello": "नमस्कार {{user}},", "emails.verification.body": "आपला ईमेल पत्ता सत्यापित करण्यासाठी या दुव्याचे अनुसरण करा.", @@ -21,7 +21,7 @@ "emails.recovery.thanks": "धन्यवाद,", "emails.recovery.buttonText": "पासवर्ड रीसेट करा", "emails.recovery.signature": "{{project}} संघ", - "emails.invitation.subject": "%s संघ %s येथे सामील होण्यासाठी आमंत्रण", + "emails.invitation.subject": "{{team}} संघ {{project}} येथे सामील होण्यासाठी आमंत्रण", "emails.invitation.hello": "नमस्कार,", "emails.invitation.body": "हा मेल तुम्हाला पाठवला होता कारण {{owner}} तुम्हाला {{project}} येथे {{team}} टीमचे सदस्य होण्यासाठी आमंत्रित करू इच्छित होते.", "emails.invitation.footer": "आपल्याला स्वारस्य नसल्यास, आपण या संदेशाकडे दुर्लक्ष करू शकता.", diff --git a/app/config/locale/translations/ms.json b/app/config/locale/translations/ms.json index 99d086cd81..c19fa48f52 100644 --- a/app/config/locale/translations/ms.json +++ b/app/config/locale/translations/ms.json @@ -2,7 +2,7 @@ "settings.inspire": "\"Seni menjadi pandai adalah seni mengetahui apa yang dilihatnya.\"", "settings.locale": "ms", "settings.direction": "ltr", - "emails.sender": "%s Team", + "emails.sender": "{{project}} Team", "emails.verification.subject": "Pengesahan Akaun", "emails.verification.hello": "Hey {{user}},", "emails.verification.body": "Tekan pautan ini untuk mengesahkan alamat email anda.", @@ -21,7 +21,7 @@ "emails.recovery.thanks": "Terima kasih,", "emails.recovery.buttonText": "Tetapkan semula kata laluan", "emails.recovery.signature": "{{project}} team", - "emails.invitation.subject": "Jemputan ke pasukan %s di %s", + "emails.invitation.subject": "Jemputan ke pasukan {{team}} di {{project}}", "emails.invitation.hello": "Hello,", "emails.invitation.body": "Anda menerima mel ini kerana {{owner}} ingin menjemput anda untuk menjadi ahli pasukan {{team}} di {{project}}.", "emails.invitation.footer": "Sekiranya anda tidak berminat, sila abaikan mesej ini.", diff --git a/app/config/locale/translations/nb.json b/app/config/locale/translations/nb.json index 36e28072d4..3236f267b8 100644 --- a/app/config/locale/translations/nb.json +++ b/app/config/locale/translations/nb.json @@ -2,7 +2,7 @@ "settings.inspire": "\"Kunsten å være klok er kunsten å vite hva man skal overse.\"", "settings.locale": "nb", "settings.direction": "ltr", - "emails.sender": "%s Team", + "emails.sender": "{{project}} Team", "emails.verification.subject": "Kontobekreftelse", "emails.verification.hello": "Hei {{user}},", "emails.verification.body": "Følg denne lenken for å bekrefte din e-postadresse.", @@ -21,7 +21,7 @@ "emails.recovery.thanks": "Takk,", "emails.recovery.buttonText": "Tilbakestill passord", "emails.recovery.signature": "{{project}} team", - "emails.invitation.subject": "Invitasjon til %s Team ved %s", + "emails.invitation.subject": "Invitasjon til {{team}} Team ved {{project}}", "emails.invitation.hello": "Hei,", "emails.invitation.body": "Denne meldingen ble sendt til deg fordi {{owner}} ønsket å invitere deg til å bli medlem av {{team}} team ved {{project}}.", "emails.invitation.footer": "Dersom du ikke er interessert, kan du se bort fra denne meldingen.", diff --git a/app/config/locale/translations/ne.json b/app/config/locale/translations/ne.json index 545810d871..b8dd495814 100644 --- a/app/config/locale/translations/ne.json +++ b/app/config/locale/translations/ne.json @@ -2,7 +2,7 @@ "settings.inspire": "\"के लाई बेवास्ता गर्ने भन्ने जान्नुनै बुद्धिमान हुनुको कला हो ।\"", "settings.locale": "ne", "settings.direction": "ltr", - "emails.sender": "%s समूह", + "emails.sender": "{{project}} समूह", "emails.verification.subject": "खाता प्रमाणिकरण", "emails.verification.hello": "नमस्ते {{user}},", "emails.verification.body": "इमेल ठेगाना प्रमाणित गर्नको लागी यो लिंकमा जानुहोस।", @@ -21,7 +21,7 @@ "emails.recovery.thanks": "धन्यवाद,", "emails.recovery.buttonText": "रिसेट पासवर्ड", "emails.recovery.signature": "{{project}} समूह", - "emails.invitation.subject": "%s समूहको लागि %s मा निमन्त्रणा", + "emails.invitation.subject": "{{team}} समूहको लागि {{project}} मा निमन्त्रणा", "emails.invitation.hello": "नमस्ते,", "emails.invitation.body": "{{owner}}ले तपाइँलाई {{project}}मा {{team}}को सदस्य बन्न आमन्त्रित गर्न चाहनु भएको छ। त्येसैले तपाइँलाई यो सन्देश पठाइएको हो।", "emails.invitation.footer": "यदि तपाइँ इच्छुक हुनुहुन्न भने, तपाइँले यो सन्देशलाई बेवास्ता गर्न सक्नुहुन्छ।", diff --git a/app/config/locale/translations/nl.json b/app/config/locale/translations/nl.json index 9949a2b4b8..9b051b6dc6 100644 --- a/app/config/locale/translations/nl.json +++ b/app/config/locale/translations/nl.json @@ -2,7 +2,7 @@ "settings.inspire": "\"De kunst om wijs te zijn is de kunst om te weten wat over het hoofd gezien moet worden.\"", "settings.locale": "nl", "settings.direction": "ltr", - "emails.sender": "%s Team", + "emails.sender": "{{project}} Team", "emails.verification.subject": "Account Verificatie", "emails.verification.hello": "Hoi {{user}},", "emails.verification.body": "Volg deze link om uw e-mail te verifieren", @@ -21,7 +21,7 @@ "emails.recovery.thanks": "Bedankt,", "emails.recovery.buttonText": "Wachtwoord opnieuw instellen", "emails.recovery.signature": "{{project}} team", - "emails.invitation.subject": "Uitnodiging van %s Team uit %s", + "emails.invitation.subject": "Uitnodiging van {{team}} Team uit {{project}}", "emails.invitation.hello": "Hallo,", "emails.invitation.body": "U ontvangt deze mail want u was uitgenodig door {{owner}} om lid van het {{team}} team te worden in {{project}} ", "emails.invitation.footer": "Als u niet geintereseerd bent, kan u deze mail negeren.", diff --git a/app/config/locale/translations/nn.json b/app/config/locale/translations/nn.json index cb5084011e..9fc77a7faa 100644 --- a/app/config/locale/translations/nn.json +++ b/app/config/locale/translations/nn.json @@ -2,7 +2,7 @@ "settings.inspire": "\"Kunsten å væra klok er kunsten å vita kva man skal oversjå.\"", "settings.locale": "nn", "settings.direction": "ltr", - "emails.sender": "%s Team", + "emails.sender": "{{project}} Team", "emails.verification.subject": "Kontostadfesting", "emails.verification.hello": "Hallo {{user}},", "emails.verification.body": "Følg denne lenkja for å bekrefta din e-postadresse.", @@ -21,7 +21,7 @@ "emails.recovery.thanks": "Takk,", "emails.recovery.buttonText": "Nullstill passord", "emails.recovery.signature": "{{project}} team", - "emails.invitation.subject": "Innbyding til %s Team ved %s", + "emails.invitation.subject": "Innbyding til {{team}} Team ved {{project}}", "emails.invitation.hello": "Hallo,", "emails.invitation.body": "Denne meldinga ble sendt til deg fordi {{owner}} ynskja å invitera deg til å bli medlem av {{team}} team i {{project}}.", "emails.invitation.footer": "Om du ikkje er interessert, kan du ignorera denne meldinga.", @@ -245,7 +245,7 @@ "emails.otpSession.securityPhrase": "Tryggingsfrasen for denne e-posten er {{phrase}}. Du kan stole på denne e-posten om frasen stemmer med frasen vist under pålogging.", "emails.otpSession.thanks": "Takk,", "emails.otpSession.signature": "{{project}}-laget", - "emails.certificate.subject": "Sertifikatfeil for %s", + "emails.certificate.subject": "Sertifikatfeil for {{domain}}", "emails.certificate.hello": "Hei,", "emails.certificate.body": "Sertifikatet for domenet ditt '{{domain}}' kunne ikkje opprettast. Dette er forsøk nr. {{attempt}}, og feilen blei forårsaka av: {{error}}", "emails.certificate.footer": "Førre sertifikatet ditt vil vere gyldig i 30 dagar sidan den første feilen. Vi rår sterkt til at du undersøkjer denne saka, elles vil domenet ditt ende opp utan gyldig SSL-kommunikasjon.", diff --git a/app/config/locale/translations/or.json b/app/config/locale/translations/or.json index 6393067089..73f47881c0 100644 --- a/app/config/locale/translations/or.json +++ b/app/config/locale/translations/or.json @@ -2,7 +2,7 @@ "settings.inspire": "\"ବୁଦ୍ଧିମାନ ହେବାର କଳା ହେଉଛି କ’ଣ ଅଣଦେଖା କରାଯିବ ଜାଣିବାର କଳା |\"", "settings.locale": "or", "settings.direction": "ltr", - "emails.sender": "%s ଦଳ", + "emails.sender": "{{project}} ଦଳ", "emails.verification.subject": "ଖାତା ଯାଞ୍ଚ", "emails.verification.hello": "ନମସ୍କାର {{user}},", "emails.verification.body": "ଆପଣଙ୍କର ଇମେଲ୍ ଠିକଣା ଯାଞ୍ଚ କରିବାକୁ ଏହି ଲିଙ୍କ୍ ଅନୁସରଣ କରନ୍ତୁ |", @@ -21,9 +21,9 @@ "emails.recovery.thanks": "ଧନ୍ୟବାଦ,", "emails.recovery.buttonText": "ପାସୱାର୍ଡ ପୁନଃସେଟ୍ କରନ୍ତୁ", "emails.recovery.signature": "{{project}} ଦଳ", - "emails.invitation.subject": "%s ରେ %s ଦଳକୁ ନିମନ୍ତ୍ରଣ |", + "emails.invitation.subject": "{{team}} ରେ {{project}} ଦଳକୁ ନିମନ୍ତ୍ରଣ |", "emails.invitation.hello": "ନମସ୍କାର,", - "emails.invitation.body": "ଏହି ମେଲ୍ ଆପଣଙ୍କୁ ପଠାଯାଇଥିଲା କାରଣ {{owner}} ଆପଣଙ୍କୁ {{project} ରେ {{team}} ଦଳର ସଦସ୍ୟ ହେବାକୁ ଆମନ୍ତ୍ରଣ କରିବାକୁ ଚାହୁଁଥିଲେ |", + "emails.invitation.body": "ଏହି ମେଲ୍ ଆପଣଙ୍କୁ ପଠାଯାଇଥିଲା କାରଣ {{owner}} ଆପଣଙ୍କୁ {{project}} ରେ {{team}} ଦଳର ସଦସ୍ୟ ହେବାକୁ ଆମନ୍ତ୍ରଣ କରିବାକୁ ଚାହୁଁଥିଲେ |", "emails.invitation.footer": "ଯଦି ଆପଣ ଆଗ୍ରହୀ ନୁହଁନ୍ତି, ଆପଣ ଏହି ସନ୍ଦେଶକୁ ଅଣଦେଖା କରିପାରିବେ |", "emails.invitation.thanks": "ଧନ୍ୟବାଦ,", "emails.invitation.buttonText": "{{team}} ପାଇଁ ଆମନ୍ତ୍ରଣ ଗ୍ରହଣ କରନ୍ତୁ", diff --git a/app/config/locale/translations/pa.json b/app/config/locale/translations/pa.json index 2c3d90604c..48ff17c174 100644 --- a/app/config/locale/translations/pa.json +++ b/app/config/locale/translations/pa.json @@ -2,7 +2,7 @@ "settings.inspire": "\"ਬੁੱਧੀਮਾਨ ਬਣਨ ਦੀ ਕਲਾ ਇਹ ਜਾਣਨ ਦੀ ਕਲਾ ਹੈ ਕਿ ਕਿਸ ਨੂੰ ਨਜ਼ਰਅੰਦਾਜ਼ ਕਰਨਾ ਹੈ.\"", "settings.locale": "pa", "settings.direction": "ltr", - "emails.sender": "%s ਟੀਮ", + "emails.sender": "{{project}} ਟੀਮ", "emails.verification.subject": "", "emails.verification.hello": ",", "emails.verification.body": "", diff --git a/app/config/locale/translations/pl.json b/app/config/locale/translations/pl.json index e10e47f50d..4ca95614a1 100644 --- a/app/config/locale/translations/pl.json +++ b/app/config/locale/translations/pl.json @@ -2,7 +2,7 @@ "settings.inspire": "\"Sztuka bycia mądrym to sztuka wiedzieć, co przeoczyć.\"", "settings.locale": "pl", "settings.direction": "ltr", - "emails.sender": "Zespół %s", + "emails.sender": "Zespół {{project}}", "emails.verification.subject": "Weryfikacja konta", "emails.verification.hello": "Cześć {{user}},", "emails.verification.body": "Przejdź do tego linku, aby zweryfikować swój adres e-mail.", @@ -21,7 +21,7 @@ "emails.recovery.thanks": "Dziękujemy,", "emails.recovery.buttonText": "Zresetuj hasło", "emails.recovery.signature": "Zespół {{project}}", - "emails.invitation.subject": "Zaproszenie do zespołu %s w %s", + "emails.invitation.subject": "Zaproszenie do zespołu {{team}} w {{project}}", "emails.invitation.hello": "Cześć,", "emails.invitation.body": "Otrzymujesz tę wiadomość, ponieważ {{owner}} zaprasza Cię do grona członków zespołu {{team}} w projekcie {{project}}.", "emails.invitation.footer": "Jeśli nie jesteś zainteresowany, zignoruj tę wiadomość.", diff --git a/app/config/locale/translations/pt-br.json b/app/config/locale/translations/pt-br.json index 75ad38f887..617db1f857 100644 --- a/app/config/locale/translations/pt-br.json +++ b/app/config/locale/translations/pt-br.json @@ -2,7 +2,7 @@ "settings.inspire": "\"A arte de ser sábio é a arte de saber o que deixar passar.\"", "settings.locale": "pt-br", "settings.direction": "ltr", - "emails.sender": "Time %s", + "emails.sender": "Time {{project}}", "emails.verification.subject": "Verificação da Conta", "emails.verification.hello": "Olá {{user}},", "emails.verification.body": "Clique neste link para verificar o seu endereço de e-mail.", @@ -21,7 +21,7 @@ "emails.recovery.thanks": "Muito obrigado,", "emails.recovery.buttonText": "Redefinir senha", "emails.recovery.signature": "Time {{project}}", - "emails.invitation.subject": "Convite para o Time %s em %s", + "emails.invitation.subject": "Convite para o Time {{team}} em {{project}}", "emails.invitation.hello": "Olá,", "emails.invitation.body": "Este e-mail foi enviado porque {{owner}} deseja convidar você a se tornar membro do Time {{team}} em {{project}}.", "emails.invitation.footer": "Caso não tenha interesse, ignore essa mensagem.", diff --git a/app/config/locale/translations/pt-pt.json b/app/config/locale/translations/pt-pt.json index f0c84ab9e6..66a58ed7ce 100644 --- a/app/config/locale/translations/pt-pt.json +++ b/app/config/locale/translations/pt-pt.json @@ -2,7 +2,7 @@ "settings.inspire": "\"A arte de ser sábio é a arte de saber o que ultrapassar.\"", "settings.locale": "pt-pt", "settings.direction": "ltr", - "emails.sender": "Equipa %s", + "emails.sender": "Equipa {{project}}", "emails.verification.subject": "Verificação de contas", "emails.verification.hello": "Hey {{user}},", "emails.verification.body": "Siga esta ligação para verificar o seu endereço de correio electrónico.", @@ -21,7 +21,7 @@ "emails.recovery.thanks": "Obrigado,", "emails.recovery.buttonText": "Repor palavra-passe", "emails.recovery.signature": "Equipa {{project}}", - "emails.invitation.subject": "Convite à equipa de %s às %s", + "emails.invitation.subject": "Convite à equipa de {{team}} às {{project}}", "emails.invitation.hello": "Olá,", "emails.invitation.body": "Este correio foi-lhe enviado porque {{owner}} queria convidá-lo a tornar-se membro da equipa {{team}} da {{project}}.", "emails.invitation.footer": "Se não estiver interessado, pode ignorar esta mensagem.", diff --git a/app/config/locale/translations/ro.json b/app/config/locale/translations/ro.json index 5def77fa61..6af6be8e38 100644 --- a/app/config/locale/translations/ro.json +++ b/app/config/locale/translations/ro.json @@ -2,7 +2,7 @@ "settings.inspire": "\"Arta de a fi înţelept este arta de a intui ce trebuie trecut cu vederea.\"", "settings.locale": "ro", "settings.direction": "ltr", - "emails.sender": "%s Echipa", + "emails.sender": "{{project}} Echipa", "emails.verification.subject": "Verificare cont", "emails.verification.hello": "Bună ziua, {{user}},", "emails.verification.body": "Click pe acest link pentru a valida adresa de email.", @@ -21,7 +21,7 @@ "emails.recovery.thanks": "Mulțumim,", "emails.recovery.buttonText": "Resetează parola", "emails.recovery.signature": "Echipa {{project}}", - "emails.invitation.subject": "Invitatie catre %s Echipa la %s", + "emails.invitation.subject": "Invitatie catre {{team}} Echipa la {{project}}", "emails.invitation.hello": "Bună ziua,", "emails.invitation.body": "Acest email a fost trimis pentru că {{owner}} a vrut ca tu să devii membru al echipei {{team}} la {{project}}.", "emails.invitation.footer": "Dacă nu esti interesat, poți ignora acest email.", diff --git a/app/config/locale/translations/ru.json b/app/config/locale/translations/ru.json index 322404abd6..61ff4f94b3 100644 --- a/app/config/locale/translations/ru.json +++ b/app/config/locale/translations/ru.json @@ -2,7 +2,7 @@ "settings.inspire": "\"Искусство быть мудрым — это искусство знать, чем можно пренебречь.\"", "settings.locale": "ru", "settings.direction": "ltr", - "emails.sender": "Команда %s", + "emails.sender": "Команда {{project}}", "emails.verification.subject": "Верификация аккаунта", "emails.verification.hello": "Здравствуйте, {{user}},", "emails.verification.body": "Перейдите по ссылке, чтобы подтвердить свой адрес электронной почты.", @@ -21,7 +21,7 @@ "emails.recovery.thanks": "Спасибо,", "emails.recovery.buttonText": "Сбросить пароль", "emails.recovery.signature": "команда {{project}}", - "emails.invitation.subject": "Приглашение в команду %s по проекту %s", + "emails.invitation.subject": "Приглашение в команду {{team}} по проекту {{project}}", "emails.invitation.hello": "Здравствуйте,", "emails.invitation.body": "Это письмо отправлено вам, потому что {{owner}} приглашает стать членом команды {{team}} в проекте {{project}}.", "emails.invitation.footer": "Если вы не заинтересованы, проигнорируйте это сообщение.", diff --git a/app/config/locale/translations/sa.json b/app/config/locale/translations/sa.json index 36025af90c..6bd7c903d3 100644 --- a/app/config/locale/translations/sa.json +++ b/app/config/locale/translations/sa.json @@ -2,7 +2,7 @@ "settings.inspire": "\"किं हेयमित्यस्य ज्ञानमेव ज्ञानिलक्षणम्‌।\"", "settings.locale": "sa", "settings.direction": "ltr", - "emails.sender": "%s गणः", + "emails.sender": "{{project}} गणः", "emails.verification.subject": "पञ्जिकानिर्णायनम्‌", "emails.verification.hello": "अयि {{user}},", "emails.verification.body": "ई-पत्रनिर्णायनार्थमिदं संयोगसूत्रमनुसरतु।", @@ -21,7 +21,7 @@ "emails.recovery.thanks": "धन्यवादः,", "emails.recovery.buttonText": "गुप्तशब्दं पुनः स्थापित करें", "emails.recovery.signature": "{{project}} गणः", - "emails.invitation.subject": "गणस्य आमन्त्रणम्‌ %s इति %s", + "emails.invitation.subject": "गणस्य आमन्त्रणम्‌ {{team}} इति {{project}}", "emails.invitation.hello": "अयि भो,", "emails.invitation.body": "{{owner}} {{team}} गणे {{project}} मध्ये भवद्योगदानमच्छितीति हेतोः पत्रमदिं भवत्सकाशं प्रेषतिम्।", "emails.invitation.footer": "यदि भवदनिच्छा तर्हि वात्र्तामिमामुपेक्षताम्‌।", diff --git a/app/config/locale/translations/sd.json b/app/config/locale/translations/sd.json index c3371903c4..d862a7d29c 100644 --- a/app/config/locale/translations/sd.json +++ b/app/config/locale/translations/sd.json @@ -2,7 +2,7 @@ "settings.inspire": "\"سمجھدار ھجڻ جو فن آھي اھو .اڻڻاڻڻ جو فن جيڪو نظر انداز ڪجي.\"", "settings.locale": "sd", "settings.direction": "ltr", - "emails.sender": "%s ٽيم", + "emails.sender": "{{project}} ٽيم", "emails.verification.subject": " اڪائونٽ جي تصديق", "emails.verification.hello": "سلام {{user}},", "emails.verification.body": "پنھنجي اي ميل ايڊريس جي تصديق ڪرڻ لاءِ ھن لنڪ تي عمل ڪريو.", @@ -21,7 +21,7 @@ "emails.recovery.thanks": "مهرباني,", "emails.recovery.buttonText": "پاسورڊ ري سيٽ ڪريو", "emails.recovery.signature": "{{project}} ٽيم", - "emails.invitation.subject": "%s ٽيم %s تيجي دعوت", + "emails.invitation.subject": "{{team}} ٽيم {{project}} تيجي دعوت", "emails.invitation.hello": "هيلو,", "emails.invitation.body": "ھي اي ميل توھان ڏانھن موڪليو ويو آھي {اڪاڻ ته {{owner}} توھان کي دعوت ڏيڻ چاھي ٿو ته توھان {{team}} ٽيم جو ميمبر بڻجي {{project}} تي.", "emails.invitation.footer": "جيڪڏھن توھان دلچسپي نٿا رکو ، توھان نظر انداز ڪري سگھوٿا ھن پيغام کي.", @@ -245,7 +245,7 @@ "emails.otpSession.securityPhrase": "هن ای میل لاءِ سیکيورٽي جملو {{phrase}} آھي. توهان هن ای میل تي اعتماد ڪري سگهو ٿا جيڪڏهن هن جملو لاڳو ٿيندڙ جملي سان ميل کاندي.", "emails.otpSession.thanks": "مهرباني,", "emails.otpSession.signature": "پروجيڪٽ جي ٽيم", - "emails.certificate.subject": "%s لاءِ سند جو ناکامی", + "emails.certificate.subject": "{{domain}} لاءِ سند جو ناکامی", "emails.certificate.hello": "هيلو,", "emails.certificate.body": "توهان جي ڊومين '{{domain}}' لاءِ سرٽيفڪيٽ ٺاهڻ جو نه ٿي سگهيو. هي ڪوشش نمبر {{attempt}} آهي، ۽ ناڪامي جو سبب ٿيو: {{error}}", "emails.certificate.footer": "توهان جو اڳيون سرٽيفڪيٽ اولهو فئيلر جي ݙينهن کان ٣٠ ݙينهن لاءِ ماني ويندو. اسان ان جي چھان بني جي بھرپور خواهش ڪنداسين، نہ ته توهان جو ݙومين بغير ڪوري SSL ڪميونڪيشن آڻي ويندي.", diff --git a/app/config/locale/translations/si.json b/app/config/locale/translations/si.json index 03415c3c2d..7461376428 100644 --- a/app/config/locale/translations/si.json +++ b/app/config/locale/translations/si.json @@ -2,7 +2,7 @@ "settings.inspire": "\"ප්‍රඥාවන්ත වීමේ කලාව යනු නොසලකා හැරිය යුතු දේ දැන ගැනීමේ කලාවයි.\"", "settings.locale": "si", "settings.direction": "ltr", - "emails.sender": "%s කණ්ඩායම", + "emails.sender": "{{project}} කණ්ඩායම", "emails.verification.subject": "ගිණුම් සත්‍යාපනය", "emails.verification.hello": "හේයි {{user}},", "emails.verification.body": "ඔබගේ විද්‍යුත් තැපැල් ලිපිනය සත්‍යාපනය කිරීමට මෙම සම්බන්ධකය අනුගමනය කරන්න.", @@ -21,7 +21,7 @@ "emails.recovery.thanks": "ස්තුතියි,", "emails.recovery.buttonText": "මුරපදය යළි පිහිටුවන්න", "emails.recovery.signature": "{{project}} කණ්ඩායම", - "emails.invitation.subject": "%s කණ්ඩායමට ආරාධනා %s හි", + "emails.invitation.subject": "{{team}} කණ්ඩායමට ආරාධනා {{project}} හි", "emails.invitation.hello": "ආයුබෝවන්,", "emails.invitation.body": "මෙම තැපැල් ඔබට එව්වේ, {{owner}} හට {{project}} හි {{team}} කණ්ඩායමේ සාමාජිකයෙකු වීමට ඔබට ආරාධනා කිරීමට අවශ්‍ය වූ බැවිනි.", "emails.invitation.footer": "ඔබ උනන්දුවක් නොදක්වන්නේ නම්, ඔබට මෙම පණිවිඩය නොසලකා හැරිය හැක.", diff --git a/app/config/locale/translations/sk.json b/app/config/locale/translations/sk.json index 9fe7a39619..ee14066aef 100644 --- a/app/config/locale/translations/sk.json +++ b/app/config/locale/translations/sk.json @@ -2,7 +2,7 @@ "settings.inspire": "\"Umenie múdrosti je umenie vedieť, čo prehliadnuť.\"", "settings.locale": "sk", "settings.direction": "ltr", - "emails.sender": "%s Tím", + "emails.sender": "{{project}} Tím", "emails.verification.subject": "Overenie účtu", "emails.verification.hello": "Ahoj {{user}},", "emails.verification.body": "Použi tento link pre overenie svojej emailovej adresy.", @@ -21,7 +21,7 @@ "emails.recovery.thanks": "Ďakujeme,", "emails.recovery.buttonText": "Obnoviť heslo", "emails.recovery.signature": "{{project}} tím", - "emails.invitation.subject": "Pozvánka do %s Tímu v %s", + "emails.invitation.subject": "Pozvánka do {{team}} Tímu v {{project}}", "emails.invitation.hello": "Ahoj,", "emails.invitation.body": "Tento email ti bol zaslaný, pretože {{owner}} ťa pozval, aby si sa stal členom {{team}} tímu v projekte {{project}}.", "emails.invitation.footer": "Ak nemáš záujem, môžeš túto správu ignorovať.", diff --git a/app/config/locale/translations/sl.json b/app/config/locale/translations/sl.json index 23efd4c675..9d441ba6c9 100644 --- a/app/config/locale/translations/sl.json +++ b/app/config/locale/translations/sl.json @@ -2,7 +2,7 @@ "settings.inspire": "\"Srčika modrosti je umetnost védenja, kaj spregledati.\"", "settings.locale": "sl", "settings.direction": "ltr", - "emails.sender": "%s Ekipa", + "emails.sender": "{{project}} Ekipa", "emails.verification.subject": "", "emails.verification.hello": ",", "emails.verification.body": "", diff --git a/app/config/locale/translations/sn.json b/app/config/locale/translations/sn.json index 29cb79142c..7c088f8b38 100644 --- a/app/config/locale/translations/sn.json +++ b/app/config/locale/translations/sn.json @@ -2,7 +2,7 @@ "settings.inspire": "\"Unyanzvi hwekuchenjera kuziva zvekufuratira.\"", "settings.locale": "sn", "settings.direction": "ltr", - "emails.sender": "Chikwata che%s", + "emails.sender": "Chikwata che{{project}}", "emails.verification.subject": "Kuratidzi kuti ndiwe muridzi weakaundi", "emails.verification.hello": "Hesi {{user}},", "emails.verification.body": "Tevedza chinongedzo ichi kuti uratidze kuti kero iyi ndeyako.", @@ -21,7 +21,7 @@ "emails.recovery.thanks": "Ndatenda,", "emails.recovery.buttonText": "Gadzirisa password", "emails.recovery.signature": "Chikwata che{{project}}", - "emails.invitation.subject": "Kukokwa kuchikwata che%s ku%s", + "emails.invitation.subject": "Kukokwa kuchikwata che{{team}} ku{{project}}", "emails.invitation.hello": "Mhoro,", "emails.invitation.body": "Tsamba iyi yatumirwa kwauri nekuti {{owner}} anga achida kuti uve nhengo yechikwata che{{team}} pachirongwa che{{project}}.", "emails.invitation.footer": "Kana usiri kufarira kuve nhengo yechikwata ichi, unogona kufuratira meseji iyi.", diff --git a/app/config/locale/translations/sq.json b/app/config/locale/translations/sq.json index 39e6aa0d7c..1e8eede0f5 100644 --- a/app/config/locale/translations/sq.json +++ b/app/config/locale/translations/sq.json @@ -2,7 +2,7 @@ "settings.inspire": "\"The art of being wise is the art of knowing what to overlook.\"", "settings.locale": "sq", "settings.direction": "ltr", - "emails.sender": "Grup %s", + "emails.sender": "Grup {{project}}", "emails.verification.subject": "", "emails.verification.hello": ",", "emails.verification.body": "", diff --git a/app/config/locale/translations/sv.json b/app/config/locale/translations/sv.json index 6c6ebf6d16..4751e2ad65 100644 --- a/app/config/locale/translations/sv.json +++ b/app/config/locale/translations/sv.json @@ -2,7 +2,7 @@ "settings.inspire": "\"Vishet är konsten att förstå vad man ska förbise.\"", "settings.locale": "sv", "settings.direction": "ltr", - "emails.sender": "%s-teamet", + "emails.sender": "{{project}}-teamet", "emails.verification.subject": "Verifiera konto", "emails.verification.hello": "Hej {{user}},", "emails.verification.body": "Klicka på denna länk för att verifiera din email", @@ -21,7 +21,7 @@ "emails.recovery.thanks": "Tack,", "emails.recovery.buttonText": "Återställ lösenord", "emails.recovery.signature": "{{project}} teamet", - "emails.invitation.subject": "Inbjudan till %s teamet på %s", + "emails.invitation.subject": "Inbjudan till {{team}} teamet på {{project}}", "emails.invitation.hello": "Hej,", "emails.invitation.body": "Detta mail skickades till dig eftersom {{owner}} ville bjuda in dig att bli medlem i teamet {{team}} på {{project}}.", "emails.invitation.footer": "Om du inte är intresserad kan du ignorera detta mail.", diff --git a/app/config/locale/translations/ta.json b/app/config/locale/translations/ta.json index 32e7a5d79d..54ecc2436d 100644 --- a/app/config/locale/translations/ta.json +++ b/app/config/locale/translations/ta.json @@ -2,7 +2,7 @@ "settings.inspire": "\"புத்திசாலித்தனம் என்னும் கலை என்பது எதனை புறக்கணிக்க வேண்டும் என அறியும் கலையாகும்.\"", "settings.locale": "ta", "settings.direction": "ltr", - "emails.sender": "%s குழு", + "emails.sender": "{{project}} குழு", "emails.verification.subject": "கணக்கு சரிபார்ப்பு", "emails.verification.hello": "ஏய் {{user}},", "emails.verification.body": "உங்கள் மின்னஞ்சல் முகவரியைச் சரிபார்க்க இந்த இணைப்பைப் பின்தொடரவும்.", @@ -21,7 +21,7 @@ "emails.recovery.thanks": "நன்றி,", "emails.recovery.buttonText": "கடவுச்சொல்லை மீட்டமைக்கவும்", "emails.recovery.signature": "{{project}} குழு", - "emails.invitation.subject": "அழைப்பிதழ் %s குழு %s ", + "emails.invitation.subject": "அழைப்பிதழ் {{team}} குழு {{project}} ", "emails.invitation.hello": "வணக்கம்,", "emails.invitation.body": "{{project}} இல் {{team}} குழுவில் உறுப்பினராக உங்களை {{owner}} அழைக்க விரும்புவதால், இந்த அஞ்சல் உங்களுக்கு அனுப்பப்பட்டது.", "emails.invitation.footer": "உங்களுக்கு ஆர்வம் இல்லை என்றால், இந்த செய்தியை நீங்கள் புறக்கணிக்கலாம்.", diff --git a/app/config/locale/translations/te.json b/app/config/locale/translations/te.json index e9d7574675..74713ef47e 100644 --- a/app/config/locale/translations/te.json +++ b/app/config/locale/translations/te.json @@ -2,7 +2,7 @@ "settings.inspire": "\"ఏది విస్మరించాలో తెలుసుకోవడమే తెలివైన వ్యక్తి యొక్క కళ.\"", "settings.locale": "te", "settings.direction": "ltr", - "emails.sender": "%s జట్టు", + "emails.sender": "{{project}} జట్టు", "emails.verification.subject": "ఖాతా ధృవీకరణ", "emails.verification.hello": "నమస్కారము {{user}},", "emails.verification.body": "ఈ లింక్ ద్వారా ఇమెయిల్ ని ధృవీకరించండి", @@ -21,7 +21,7 @@ "emails.recovery.thanks": "ధన్యవాదాల,", "emails.recovery.buttonText": "పాస్‌వర్డ్‌ను రీసెట్ చేయండి", "emails.recovery.signature": "{{project}} జట్", - "emails.invitation.subject": "%s వద్ద %s బృందానికి ఆహ్వానం", + "emails.invitation.subject": "{{team}} వద్ద {{project}} బృందానికి ఆహ్వానం", "emails.invitation.hello": "నమస్కారమ,", "emails.invitation.body": "{{owner}} మిమ్మల్ని {{project}} లో {{team}} బృందంలో సభ్యునిగా ఉండమని ఆహ్వానించాలనుకుంటున్నందున ఈ మెయిల్ మీకు పంపబడింది.", "emails.invitation.footer": "మీకు ఆసక్తి లేకుంటే, మీరు ఈ సందేశాన్ని విస్మరించవచ్చు.", diff --git a/app/config/locale/translations/th.json b/app/config/locale/translations/th.json index 91e7dff7f6..2d27a9eb4d 100644 --- a/app/config/locale/translations/th.json +++ b/app/config/locale/translations/th.json @@ -2,7 +2,7 @@ "settings.inspire": "\"ศิลปะของการมีปัญญา คือการตระหนักได้ว่าควรจะมองข้ามเรื่องอะไร\"", "settings.locale": "th", "settings.direction": "ltr", - "emails.sender": "ทีม %s", + "emails.sender": "ทีม {{project}}", "emails.verification.subject": "การยืนยันบัญชีผู้ใช้", "emails.verification.hello": "เรียนคุณ {{user}}", "emails.verification.body": "กดเข้าไปที่ลิงก์นี้เพื่อยืนยันอีเมลของท่าน", @@ -21,7 +21,7 @@ "emails.recovery.thanks": "ขอบคุณ", "emails.recovery.buttonText": "รีเซ็ตรหัสผ่าน", "emails.recovery.signature": "ทีม {{project}}", - "emails.invitation.subject": "เรียนเชิญเข้าร่วม ทีม %s จากโปรเจกต์ %s", + "emails.invitation.subject": "เรียนเชิญเข้าร่วม ทีม {{team}} จากโปรเจกต์ {{project}}", "emails.invitation.hello": "สวัสดี", "emails.invitation.body": "ท่านได้รับอีเมลฉบับนี้เนื่องจาก {{owner}} ต้องการที่จะเชิญชวนคุณเข้าร่วมเป็นส่วนหนึ่งของ ทีม {{team}} จากโปรเจกต์ {{project}}", "emails.invitation.footer": "หากท่านไม่ได้สนใจที่จะเข้าร่วม ท่านสามารถเพิกเฉยข้อความนี้ได้", diff --git a/app/config/locale/translations/tl.json b/app/config/locale/translations/tl.json index af018bf567..51190a6d32 100644 --- a/app/config/locale/translations/tl.json +++ b/app/config/locale/translations/tl.json @@ -2,7 +2,7 @@ "settings.inspire": "\"Ang sining ng pagiging matalino ay ang sining ng pag-alam kung ano ang dapat kaligtaan.\"", "settings.locale": "tl", "settings.direction": "ltr", - "emails.sender": "Pangkat ng %s", + "emails.sender": "Pangkat ng {{project}}", "emails.verification.subject": "Pagpapatunay ng account", "emails.verification.hello": "Kamusta {{user}},", "emails.verification.body": "Sundin ang link na ito upang ma-verify ang iyong email address.", @@ -21,7 +21,7 @@ "emails.recovery.thanks": "Salamat,", "emails.recovery.buttonText": "I-reset ang password", "emails.recovery.signature": "Pangkat ng {{project}}", - "emails.invitation.subject": "Imbitasyon para sa Pangkat %s sa %s", + "emails.invitation.subject": "Imbitasyon para sa Pangkat {{team}} sa {{project}}", "emails.invitation.hello": "Kamusta,", "emails.invitation.body": "Ipinadala sa iyo ang mail na ito dahil gusto kang imbitahan ni {{owner}} na maging miyembro ng Pangkat {{team}} sa ilalim ng proyektong {{project}}.", "emails.invitation.footer": "Kung ikaw ay hindi interesado, maaari mong balewalain ang mensaheng ito.", diff --git a/app/config/locale/translations/tr.json b/app/config/locale/translations/tr.json index 5fd2447d2b..f6cd6d8687 100644 --- a/app/config/locale/translations/tr.json +++ b/app/config/locale/translations/tr.json @@ -2,7 +2,7 @@ "settings.inspire": "\"Bilge olma sanatı, neyi ihmal edeceğini bilme sanatıdır.\"", "settings.locale": "tr", "settings.direction": "ltr", - "emails.sender": "%s Takımı", + "emails.sender": "{{project}} Takımı", "emails.verification.subject": "Hesabını Doğrula", "emails.verification.hello": "Merhaba {{user}},", "emails.verification.body": "Eposta adresini doğrulamak için bu bağlantıyı kullanın.", @@ -21,7 +21,7 @@ "emails.recovery.thanks": "Teşekkürler,", "emails.recovery.buttonText": "Şifreyi sıfırla", "emails.recovery.signature": "{{project}} takımı", - "emails.invitation.subject": "%s üzerinde %s Takımına Davet", + "emails.invitation.subject": "{{team}} üzerinde {{project}} Takımına Davet", "emails.invitation.hello": "Merhaba,", "emails.invitation.body": "Bu epostayı aldınız, çünkü {{owner}} sizi {{project}} üzerinde {{team}} takımının üyesi olmaya davet etti.", "emails.invitation.footer": "Eğer ilgilenmiyorsanız devam etmeyin.", diff --git a/app/config/locale/translations/uk.json b/app/config/locale/translations/uk.json index b7b2c2905d..057c1dc5f4 100644 --- a/app/config/locale/translations/uk.json +++ b/app/config/locale/translations/uk.json @@ -2,7 +2,7 @@ "settings.inspire": "\"Мистецтво бути мудрим - це мистецтво знати, чим можна знехтувати\"", "settings.locale": "uk", "settings.direction": "ltr", - "emails.sender": "Команда %s", + "emails.sender": "Команда {{project}}", "emails.verification.subject": "Верифікація акаунта", "emails.verification.hello": "Вітаємо, {{user}},", "emails.verification.body": "Перейдіть за цим посиланням, щоб підтвердити свою електронну адресу.", @@ -21,7 +21,7 @@ "emails.recovery.thanks": "Дякуємо,", "emails.recovery.buttonText": "Скинути пароль", "emails.recovery.signature": "команда {{project}}", - "emails.invitation.subject": "Запрошення до %s Команди у %s", + "emails.invitation.subject": "Запрошення до {{team}} Команди у {{project}}", "emails.invitation.hello": "Вітаємо,", "emails.invitation.body": "Цей лист був надісланий вам тому що {{owner}} запрошує вас стати членом команди {{team}} у проекті {{project}}.", "emails.invitation.footer": "Якщо ви не зацікавлені, проігноруйте це повідомлення.", diff --git a/app/config/locale/translations/ur.json b/app/config/locale/translations/ur.json index f8f0284bcf..0c2283d1e4 100644 --- a/app/config/locale/translations/ur.json +++ b/app/config/locale/translations/ur.json @@ -2,7 +2,7 @@ "settings.inspire": "\"عقلمند ہونے کا فن یہ جاننے کا فن ہے کہ کیا نظرانداز کیا جائے۔\"", "settings.locale": "ur", "settings.direction": "rtl", - "emails.sender": "%s ٹیم", + "emails.sender": "{{project}} ٹیم", "emails.verification.subject": "اکاؤنٹ کی تصدیق", "emails.verification.hello": "خوش آمدید {{user}}،", "emails.verification.body": "براہ کرم اپنے ای میل کی تصدیق کے لیے درج ذیل لنک پر عمل کریں۔", @@ -21,7 +21,7 @@ "emails.recovery.thanks": "شکریہ،", "emails.recovery.buttonText": "پاس ورڈ ری سیٹ کریں", "emails.recovery.signature": "ٹیم۔ {{project}}", - "emails.invitation.subject": "%s پر %s ٹیم کو دعوت", + "emails.invitation.subject": "{{team}} پر {{project}} ٹیم کو دعوت", "emails.invitation.hello": "خوش آمدید،", "emails.invitation.body": "یہ پیغام آپ کو اس لیے بھیجا گیا تھا کہ {{owner}} نے آپ کو {{project}} میں {{team}} ٹیم کا رکن بننے کی دعوت بھیجی", "emails.invitation.footer": "اگر آپ دلچسپی نہیں رکھتے تو آپ اس پیغام کو نظر انداز کر سکتے ہیں۔", diff --git a/app/config/locale/translations/vi.json b/app/config/locale/translations/vi.json index 5ed045ce19..4a6172d479 100644 --- a/app/config/locale/translations/vi.json +++ b/app/config/locale/translations/vi.json @@ -2,7 +2,7 @@ "settings.inspire": "\"Nghệ thuật khôn ngoan là nghệ thuật biết những gì cần bỏ qua.\"", "settings.locale": "vi", "settings.direction": "ltr", - "emails.sender": "Nhóm %s", + "emails.sender": "Nhóm {{project}}", "emails.verification.subject": "Xác minh tài khoản", "emails.verification.hello": "Chào {{user}}", "emails.verification.body": "Nhấn vào đường dẫn sau để xác minh địa chỉ email của bạn.", @@ -21,7 +21,7 @@ "emails.recovery.thanks": "Cảm ơn", "emails.recovery.buttonText": "Đặt lại mật khẩu", "emails.recovery.signature": "Nhóm {{project}}", - "emails.invitation.subject": "Lời mời tham gia nhóm %s tại %s", + "emails.invitation.subject": "Lời mời tham gia nhóm {{team}} tại {{project}}", "emails.invitation.hello": "Xin chào", "emails.invitation.body": "Email này được gửi cho bạn vì {{owner}} muốn mời bạn trở thành một thành viên của nhóm {{team}} tại {{project}}.", "emails.invitation.footer": "Nếu bạn không quan tâm, bạn có thể bỏ qua email này.", diff --git a/app/config/locale/translations/zh-cn.json b/app/config/locale/translations/zh-cn.json index b9319badfc..5bda45728d 100644 --- a/app/config/locale/translations/zh-cn.json +++ b/app/config/locale/translations/zh-cn.json @@ -2,7 +2,7 @@ "settings.inspire": "\"懂得取舍,方显睿智。\"", "settings.locale": "zh", "settings.direction": "ltr", - "emails.sender": "%s 小组", + "emails.sender": "{{project}} 小组", "emails.verification.subject": "帐户验证", "emails.verification.hello": "你好 {{user}}、", "emails.verification.body": "点此链接验证您的电子邮件地址。", @@ -21,7 +21,7 @@ "emails.recovery.thanks": "谢谢、", "emails.recovery.buttonText": "重置密码", "emails.recovery.signature": "{{project}} 团队", - "emails.invitation.subject": "邀请 %s 团队在 %s", + "emails.invitation.subject": "邀请 {{team}} 团队在 {{project}}", "emails.invitation.hello": "你好、", "emails.invitation.body": "这封邮件发送给您是因为 {{owner}} 想邀请您成为 {{team}} 团队在 {{project}}.", "emails.invitation.footer": "如果您不感兴趣,可以忽略此消息。", diff --git a/app/config/locale/translations/zh-tw.json b/app/config/locale/translations/zh-tw.json index 0c2ba309d9..3c7df3e668 100644 --- a/app/config/locale/translations/zh-tw.json +++ b/app/config/locale/translations/zh-tw.json @@ -2,7 +2,7 @@ "settings.inspire": "\"懂得取捨,方顯睿智。\"", "settings.locale": "zh-tw", "settings.direction": "ltr", - "emails.sender": "%s 小組", + "emails.sender": "{{project}} 小組", "emails.verification.subject": "帳戶驗證", "emails.verification.hello": "嗨 {{user}}、", "emails.verification.body": "按照此連結驗證您的電子郵件地址。", @@ -21,7 +21,7 @@ "emails.recovery.thanks": "謝謝、", "emails.recovery.buttonText": "重設密碼", "emails.recovery.signature": "{{project}} 團隊", - "emails.invitation.subject": "邀請 %s 團隊在 %s", + "emails.invitation.subject": "邀請 {{team}} 團隊在 {{project}}", "emails.invitation.hello": "您好、", "emails.invitation.body": "發送這封郵件給您是因為 {{owner}} 想邀請您成為 {{team}} 團隊在 {{project}}。", "emails.invitation.footer": "如果您不感興趣,可以忽略此消息。", diff --git a/app/config/platforms.php b/app/config/platforms.php index 796847c6e4..7623bb896e 100644 --- a/app/config/platforms.php +++ b/app/config/platforms.php @@ -11,7 +11,7 @@ return [ [ 'key' => 'web', 'name' => 'Web', - 'version' => '19.0.0', + 'version' => '20.0.0', 'url' => 'https://github.com/appwrite/sdk-for-web', 'package' => 'https://www.npmjs.com/package/appwrite', 'enabled' => true, @@ -60,7 +60,7 @@ return [ [ 'key' => 'flutter', 'name' => 'Flutter', - 'version' => '18.0.0', + 'version' => '19.0.0', 'url' => 'https://github.com/appwrite/sdk-for-flutter', 'package' => 'https://pub.dev/packages/appwrite', 'enabled' => true, @@ -79,7 +79,7 @@ return [ [ 'key' => 'apple', 'name' => 'Apple', - 'version' => '11.0.0', + 'version' => '12.0.0', 'url' => 'https://github.com/appwrite/sdk-for-apple', 'package' => 'https://github.com/appwrite/sdk-for-apple', 'enabled' => true, @@ -116,7 +116,7 @@ return [ [ 'key' => 'android', 'name' => 'Android', - 'version' => '9.0.0', + 'version' => '10.0.0', 'url' => 'https://github.com/appwrite/sdk-for-android', 'package' => 'https://search.maven.org/artifact/io.appwrite/sdk-for-android', 'enabled' => true, @@ -139,7 +139,7 @@ return [ [ 'key' => 'react-native', 'name' => 'React Native', - 'version' => '0.12.0', + 'version' => '0.13.0', 'url' => 'https://github.com/appwrite/sdk-for-react-native', 'package' => 'https://npmjs.com/package/react-native-appwrite', 'enabled' => true, @@ -226,7 +226,7 @@ return [ [ 'key' => 'cli', 'name' => 'Command Line', - 'version' => '9.0.0', + 'version' => '9.1.0', 'url' => 'https://github.com/appwrite/sdk-for-cli', 'package' => 'https://www.npmjs.com/package/appwrite-cli', 'enabled' => true, @@ -245,6 +245,7 @@ return [ 'exclude' => [ 'services' => [ ['name' => 'assistant'], + ['name' => 'avatars'], ], ], ], @@ -261,7 +262,7 @@ return [ [ 'key' => 'nodejs', 'name' => 'Node.js', - 'version' => '18.0.0', + 'version' => '19.0.0', 'url' => 'https://github.com/appwrite/sdk-for-node', 'package' => 'https://www.npmjs.com/package/node-appwrite', 'enabled' => true, @@ -277,29 +278,10 @@ return [ 'gitBranch' => 'dev', 'changelog' => \realpath(__DIR__ . '/../../docs/sdks/nodejs/CHANGELOG.md'), ], - [ - 'key' => 'deno', - 'name' => 'Deno', - 'version' => '16.0.0', - 'url' => 'https://github.com/appwrite/sdk-for-deno', - 'package' => 'https://deno.land/x/appwrite', - 'enabled' => true, - 'beta' => false, - 'dev' => false, - 'hidden' => false, - 'family' => APP_PLATFORM_SERVER, - 'prism' => 'typescript', - 'source' => \realpath(__DIR__ . '/../sdks/server-deno'), - 'gitUrl' => 'git@github.com:appwrite/sdk-for-deno.git', - 'gitRepoName' => 'sdk-for-deno', - 'gitUserName' => 'appwrite', - 'gitBranch' => 'dev', - 'changelog' => \realpath(__DIR__ . '/../../docs/sdks/deno/CHANGELOG.md'), - ], [ 'key' => 'php', 'name' => 'PHP', - 'version' => '16.0.0', + 'version' => '17.0.0', 'url' => 'https://github.com/appwrite/sdk-for-php', 'package' => 'https://packagist.org/packages/appwrite/appwrite', 'enabled' => true, @@ -318,7 +300,7 @@ return [ [ 'key' => 'python', 'name' => 'Python', - 'version' => '12.0.0', + 'version' => '13.0.0', 'url' => 'https://github.com/appwrite/sdk-for-python', 'package' => 'https://pypi.org/project/appwrite/', 'enabled' => true, @@ -337,7 +319,7 @@ return [ [ 'key' => 'ruby', 'name' => 'Ruby', - 'version' => '17.0.0', + 'version' => '18.0.0', 'url' => 'https://github.com/appwrite/sdk-for-ruby', 'package' => 'https://rubygems.org/gems/appwrite', 'enabled' => true, @@ -356,7 +338,7 @@ return [ [ 'key' => 'go', 'name' => 'Go', - 'version' => '0.10.0', + 'version' => '0.11.0', 'url' => 'https://github.com/appwrite/sdk-for-go', 'package' => 'https://github.com/appwrite/sdk-for-go', 'enabled' => true, @@ -375,7 +357,7 @@ return [ [ 'key' => 'dotnet', 'name' => '.NET', - 'version' => '0.16.0', + 'version' => '0.17.0', 'url' => 'https://github.com/appwrite/sdk-for-dotnet', 'package' => 'https://www.nuget.org/packages/Appwrite', 'enabled' => true, @@ -394,7 +376,7 @@ return [ [ 'key' => 'dart', 'name' => 'Dart', - 'version' => '17.0.0', + 'version' => '18.0.0', 'url' => 'https://github.com/appwrite/sdk-for-dart', 'package' => 'https://pub.dev/packages/dart_appwrite', 'enabled' => true, @@ -413,7 +395,7 @@ return [ [ 'key' => 'kotlin', 'name' => 'Kotlin', - 'version' => '10.0.0', + 'version' => '11.0.0', 'url' => 'https://github.com/appwrite/sdk-for-kotlin', 'package' => 'https://search.maven.org/artifact/io.appwrite/sdk-for-kotlin', 'enabled' => true, @@ -436,7 +418,7 @@ return [ [ 'key' => 'swift', 'name' => 'Swift', - 'version' => '11.0.0', + 'version' => '12.0.0', 'url' => 'https://github.com/appwrite/sdk-for-swift', 'package' => 'https://github.com/appwrite/sdk-for-swift', 'enabled' => true, diff --git a/app/config/services.php b/app/config/services.php index f02f169b88..5f8651e59f 100644 --- a/app/config/services.php +++ b/app/config/services.php @@ -214,7 +214,7 @@ return [ 'name' => 'Proxy', 'subtitle' => 'The Proxy Service allows you to configure actions for your domains beyond DNS configuration.', 'description' => '/docs/services/proxy.md', - 'controller' => 'api/proxy.php', + 'controller' => '', // Uses modules 'sdk' => true, 'docs' => true, 'docsUrl' => 'https://appwrite.io/docs/proxy', diff --git a/app/config/specs/open-api3-1.7.x-client.json b/app/config/specs/open-api3-1.7.x-client.json index 0bf589cb5a..c7de6a31af 100644 --- a/app/config/specs/open-api3-1.7.x-client.json +++ b/app/config/specs/open-api3-1.7.x-client.json @@ -2622,7 +2622,7 @@ "tags": [ "account" ], - "description": "Sends the user an email with a secret key for creating a session. If the provided user ID has not be registered, a new user will be created. Use the returned user ID and secret and submit a request to the [POST \/v1\/account\/sessions\/token](https:\/\/appwrite.io\/docs\/references\/cloud\/client-web\/account#createSession) endpoint to complete the login process. The secret sent to the user's email is valid for 15 minutes.\n\nA user is limited to 10 active sessions at a time by default. [Learn more about session limits](https:\/\/appwrite.io\/docs\/authentication-security#limits).", + "description": "Sends the user an email with a secret key for creating a session. If the email address has never been used, a **new account is created** using the provided `userId`. Otherwise, if the email address is already attached to an account, the **user ID is ignored**. Then, the user will receive an email with the one-time password. Use the returned user ID and secret and submit a request to the [POST \/v1\/account\/sessions\/token](https:\/\/appwrite.io\/docs\/references\/cloud\/client-web\/account#createSession) endpoint to complete the login process. The secret sent to the user's email is valid for 15 minutes.\n\nA user is limited to 10 active sessions at a time by default. [Learn more about session limits](https:\/\/appwrite.io\/docs\/authentication-security#limits).\n", "responses": { "201": { "description": "Token", @@ -2673,7 +2673,7 @@ "properties": { "userId": { "type": "string", - "description": "User ID. Choose a custom ID or generate a random ID with `ID.unique()`. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars.", + "description": "User ID. Choose a custom ID or generate a random ID with `ID.unique()`. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars. If the email address has never been used, a new account is created using the provided userId. Otherwise, if the email address is already attached to an account, the user ID is ignored.", "x-example": "" }, "email": { @@ -2755,7 +2755,7 @@ "properties": { "userId": { "type": "string", - "description": "Unique Id. Choose a custom ID or generate a random ID with `ID.unique()`. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars.", + "description": "Unique Id. Choose a custom ID or generate a random ID with `ID.unique()`. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars. If the email address has never been used, a new account is created using the provided userId. Otherwise, if the email address is already attached to an account, the user ID is ignored.", "x-example": "" }, "email": { @@ -2977,7 +2977,7 @@ "properties": { "userId": { "type": "string", - "description": "Unique Id. Choose a custom ID or generate a random ID with `ID.unique()`. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars.", + "description": "Unique Id. Choose a custom ID or generate a random ID with `ID.unique()`. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars. If the phone number has never been used, a new account is created using the provided userId. Otherwise, if the phone number is already attached to an account, the user ID is ignored.", "x-example": "" }, "phone": { @@ -3440,7 +3440,7 @@ "parameters": [ { "name": "code", - "description": "Credit Card Code. Possible values: amex, argencard, cabal, cencosud, diners, discover, elo, hipercard, jcb, mastercard, naranja, targeta-shopping, union-china-pay, visa, mir, maestro, rupay.", + "description": "Credit Card Code. Possible values: amex, argencard, cabal, cencosud, diners, discover, elo, hipercard, jcb, mastercard, naranja, targeta-shopping, unionpay, visa, mir, maestro, rupay.", "required": true, "schema": { "type": "string", @@ -3458,7 +3458,7 @@ "mastercard", "naranja", "targeta-shopping", - "union-china-pay", + "unionpay", "visa", "mir", "maestro", @@ -3478,7 +3478,7 @@ "Mastercard", "Naranja", "Tarjeta Shopping", - "Union China Pay", + "Union Pay", "Visa", "MIR", "Maestro", @@ -9847,6 +9847,11 @@ "description": "Function ID.", "x-example": "5e5ea6g16897e" }, + "deploymentId": { + "type": "string", + "description": "Function's deployment ID used to create the execution.", + "x-example": "5e5ea5c16897e" + }, "trigger": { "type": "string", "description": "The trigger that caused the function to execute. Possible values can be: `http`, `schedule`, or `event`.", @@ -9931,6 +9936,7 @@ "$updatedAt", "$permissions", "functionId", + "deploymentId", "trigger", "status", "requestMethod", @@ -9951,6 +9957,7 @@ "any" ], "functionId": "5e5ea6g16897e", + "deploymentId": "5e5ea5c16897e", "trigger": "http", "status": "processing", "requestMethod": "GET", diff --git a/app/config/specs/open-api3-1.7.x-console.json b/app/config/specs/open-api3-1.7.x-console.json index 5c6880a396..2554b7282c 100644 --- a/app/config/specs/open-api3-1.7.x-console.json +++ b/app/config/specs/open-api3-1.7.x-console.json @@ -2631,7 +2631,7 @@ "tags": [ "account" ], - "description": "Sends the user an email with a secret key for creating a session. If the provided user ID has not be registered, a new user will be created. Use the returned user ID and secret and submit a request to the [POST \/v1\/account\/sessions\/token](https:\/\/appwrite.io\/docs\/references\/cloud\/client-web\/account#createSession) endpoint to complete the login process. The secret sent to the user's email is valid for 15 minutes.\n\nA user is limited to 10 active sessions at a time by default. [Learn more about session limits](https:\/\/appwrite.io\/docs\/authentication-security#limits).", + "description": "Sends the user an email with a secret key for creating a session. If the email address has never been used, a **new account is created** using the provided `userId`. Otherwise, if the email address is already attached to an account, the **user ID is ignored**. Then, the user will receive an email with the one-time password. Use the returned user ID and secret and submit a request to the [POST \/v1\/account\/sessions\/token](https:\/\/appwrite.io\/docs\/references\/cloud\/client-web\/account#createSession) endpoint to complete the login process. The secret sent to the user's email is valid for 15 minutes.\n\nA user is limited to 10 active sessions at a time by default. [Learn more about session limits](https:\/\/appwrite.io\/docs\/authentication-security#limits).\n", "responses": { "201": { "description": "Token", @@ -2682,7 +2682,7 @@ "properties": { "userId": { "type": "string", - "description": "User ID. Choose a custom ID or generate a random ID with `ID.unique()`. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars.", + "description": "User ID. Choose a custom ID or generate a random ID with `ID.unique()`. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars. If the email address has never been used, a new account is created using the provided userId. Otherwise, if the email address is already attached to an account, the user ID is ignored.", "x-example": "" }, "email": { @@ -2764,7 +2764,7 @@ "properties": { "userId": { "type": "string", - "description": "Unique Id. Choose a custom ID or generate a random ID with `ID.unique()`. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars.", + "description": "Unique Id. Choose a custom ID or generate a random ID with `ID.unique()`. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars. If the email address has never been used, a new account is created using the provided userId. Otherwise, if the email address is already attached to an account, the user ID is ignored.", "x-example": "" }, "email": { @@ -2986,7 +2986,7 @@ "properties": { "userId": { "type": "string", - "description": "Unique Id. Choose a custom ID or generate a random ID with `ID.unique()`. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars.", + "description": "Unique Id. Choose a custom ID or generate a random ID with `ID.unique()`. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars. If the phone number has never been used, a new account is created using the provided userId. Otherwise, if the phone number is already attached to an account, the user ID is ignored.", "x-example": "" }, "phone": { @@ -3445,7 +3445,7 @@ "parameters": [ { "name": "code", - "description": "Credit Card Code. Possible values: amex, argencard, cabal, cencosud, diners, discover, elo, hipercard, jcb, mastercard, naranja, targeta-shopping, union-china-pay, visa, mir, maestro, rupay.", + "description": "Credit Card Code. Possible values: amex, argencard, cabal, cencosud, diners, discover, elo, hipercard, jcb, mastercard, naranja, targeta-shopping, unionpay, visa, mir, maestro, rupay.", "required": true, "schema": { "type": "string", @@ -3463,7 +3463,7 @@ "mastercard", "naranja", "targeta-shopping", - "union-china-pay", + "unionpay", "visa", "mir", "maestro", @@ -3483,7 +3483,7 @@ "Mastercard", "Naranja", "Tarjeta Shopping", - "Union China Pay", + "Union Pay", "Visa", "MIR", "Maestro", @@ -41133,6 +41133,11 @@ "description": "Function ID.", "x-example": "5e5ea6g16897e" }, + "deploymentId": { + "type": "string", + "description": "Function's deployment ID used to create the execution.", + "x-example": "5e5ea5c16897e" + }, "trigger": { "type": "string", "description": "The trigger that caused the function to execute. Possible values can be: `http`, `schedule`, or `event`.", @@ -41217,6 +41222,7 @@ "$updatedAt", "$permissions", "functionId", + "deploymentId", "trigger", "status", "requestMethod", @@ -41237,6 +41243,7 @@ "any" ], "functionId": "5e5ea6g16897e", + "deploymentId": "5e5ea5c16897e", "trigger": "http", "status": "processing", "requestMethod": "GET", diff --git a/app/config/specs/open-api3-1.7.x-server.json b/app/config/specs/open-api3-1.7.x-server.json index 35e3f14595..65eb2b29d0 100644 --- a/app/config/specs/open-api3-1.7.x-server.json +++ b/app/config/specs/open-api3-1.7.x-server.json @@ -2303,7 +2303,7 @@ "tags": [ "account" ], - "description": "Sends the user an email with a secret key for creating a session. If the provided user ID has not be registered, a new user will be created. Use the returned user ID and secret and submit a request to the [POST \/v1\/account\/sessions\/token](https:\/\/appwrite.io\/docs\/references\/cloud\/client-web\/account#createSession) endpoint to complete the login process. The secret sent to the user's email is valid for 15 minutes.\n\nA user is limited to 10 active sessions at a time by default. [Learn more about session limits](https:\/\/appwrite.io\/docs\/authentication-security#limits).", + "description": "Sends the user an email with a secret key for creating a session. If the email address has never been used, a **new account is created** using the provided `userId`. Otherwise, if the email address is already attached to an account, the **user ID is ignored**. Then, the user will receive an email with the one-time password. Use the returned user ID and secret and submit a request to the [POST \/v1\/account\/sessions\/token](https:\/\/appwrite.io\/docs\/references\/cloud\/client-web\/account#createSession) endpoint to complete the login process. The secret sent to the user's email is valid for 15 minutes.\n\nA user is limited to 10 active sessions at a time by default. [Learn more about session limits](https:\/\/appwrite.io\/docs\/authentication-security#limits).\n", "responses": { "201": { "description": "Token", @@ -2354,7 +2354,7 @@ "properties": { "userId": { "type": "string", - "description": "User ID. Choose a custom ID or generate a random ID with `ID.unique()`. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars.", + "description": "User ID. Choose a custom ID or generate a random ID with `ID.unique()`. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars. If the email address has never been used, a new account is created using the provided userId. Otherwise, if the email address is already attached to an account, the user ID is ignored.", "x-example": "" }, "email": { @@ -2436,7 +2436,7 @@ "properties": { "userId": { "type": "string", - "description": "Unique Id. Choose a custom ID or generate a random ID with `ID.unique()`. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars.", + "description": "Unique Id. Choose a custom ID or generate a random ID with `ID.unique()`. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars. If the email address has never been used, a new account is created using the provided userId. Otherwise, if the email address is already attached to an account, the user ID is ignored.", "x-example": "" }, "email": { @@ -2658,7 +2658,7 @@ "properties": { "userId": { "type": "string", - "description": "Unique Id. Choose a custom ID or generate a random ID with `ID.unique()`. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars.", + "description": "Unique Id. Choose a custom ID or generate a random ID with `ID.unique()`. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars. If the phone number has never been used, a new account is created using the provided userId. Otherwise, if the phone number is already attached to an account, the user ID is ignored.", "x-example": "" }, "phone": { @@ -3129,7 +3129,7 @@ "parameters": [ { "name": "code", - "description": "Credit Card Code. Possible values: amex, argencard, cabal, cencosud, diners, discover, elo, hipercard, jcb, mastercard, naranja, targeta-shopping, union-china-pay, visa, mir, maestro, rupay.", + "description": "Credit Card Code. Possible values: amex, argencard, cabal, cencosud, diners, discover, elo, hipercard, jcb, mastercard, naranja, targeta-shopping, unionpay, visa, mir, maestro, rupay.", "required": true, "schema": { "type": "string", @@ -3147,7 +3147,7 @@ "mastercard", "naranja", "targeta-shopping", - "union-china-pay", + "unionpay", "visa", "mir", "maestro", @@ -3167,7 +3167,7 @@ "Mastercard", "Naranja", "Tarjeta Shopping", - "Union China Pay", + "Union Pay", "Visa", "MIR", "Maestro", @@ -30230,6 +30230,11 @@ "description": "Function ID.", "x-example": "5e5ea6g16897e" }, + "deploymentId": { + "type": "string", + "description": "Function's deployment ID used to create the execution.", + "x-example": "5e5ea5c16897e" + }, "trigger": { "type": "string", "description": "The trigger that caused the function to execute. Possible values can be: `http`, `schedule`, or `event`.", @@ -30314,6 +30319,7 @@ "$updatedAt", "$permissions", "functionId", + "deploymentId", "trigger", "status", "requestMethod", @@ -30334,6 +30340,7 @@ "any" ], "functionId": "5e5ea6g16897e", + "deploymentId": "5e5ea5c16897e", "trigger": "http", "status": "processing", "requestMethod": "GET", diff --git a/app/config/specs/open-api3-1.8.x-client.json b/app/config/specs/open-api3-1.8.x-client.json index 7d0107fa02..d226fcc4e1 100644 --- a/app/config/specs/open-api3-1.8.x-client.json +++ b/app/config/specs/open-api3-1.8.x-client.json @@ -383,7 +383,7 @@ "weight": 30, "cookies": false, "type": "", - "demo": "account\/create-j-w-t.md", + "demo": "account\/create-jwt.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/account\/create-jwt.md", "rate-limit": 100, "rate-time": 3600, @@ -498,7 +498,7 @@ "weight": 45, "cookies": false, "type": "", - "demo": "account\/update-m-f-a.md", + "demo": "account\/update-mfa.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/account\/update-mfa.md", "rate-limit": 0, "rate-time": 3600, @@ -630,7 +630,7 @@ } ], "description": "Add an authenticator app to be used as an MFA factor. Verify the authenticator using the [verify authenticator](\/docs\/references\/cloud\/client-web\/account#updateMfaAuthenticator) method.", - "demo": "account\/create-m-f-a-authenticator.md" + "demo": "account\/create-mfa-authenticator.md" } ], "auth": { @@ -754,7 +754,7 @@ } ], "description": "Verify an authenticator app after adding it using the [add authenticator](\/docs\/references\/cloud\/client-web\/account#createMfaAuthenticator) method.", - "demo": "account\/update-m-f-a-authenticator.md" + "demo": "account\/update-mfa-authenticator.md" } ], "auth": { @@ -884,7 +884,7 @@ } ], "description": "Delete an authenticator for a user by ID.", - "demo": "account\/delete-m-f-a-authenticator.md" + "demo": "account\/delete-mfa-authenticator.md" } ], "auth": { @@ -1006,7 +1006,7 @@ } ], "description": "Begin the process of MFA verification after sign-in. Finish the flow with [updateMfaChallenge](\/docs\/references\/cloud\/client-web\/account#updateMfaChallenge) method.", - "demo": "account\/create-m-f-a-challenge.md" + "demo": "account\/create-mfa-challenge.md" } ], "auth": { @@ -1138,7 +1138,7 @@ } ], "description": "Complete the MFA challenge by providing the one-time password. Finish the process of MFA verification by providing the one-time password. To begin the flow, use [createMfaChallenge](\/docs\/references\/cloud\/client-web\/account#createMfaChallenge) method.", - "demo": "account\/update-m-f-a-challenge.md" + "demo": "account\/update-mfa-challenge.md" } ], "auth": { @@ -1260,7 +1260,7 @@ } ], "description": "List the factors available on the account to be used as a MFA challange.", - "demo": "account\/list-m-f-a-factors.md" + "demo": "account\/list-mfa-factors.md" } ], "auth": { @@ -1357,7 +1357,7 @@ } ], "description": "Get recovery codes that can be used as backup for MFA flow. Before getting codes, they must be generated using [createMfaRecoveryCodes](\/docs\/references\/cloud\/client-web\/account#createMfaRecoveryCodes) method. An OTP challenge is required to read recovery codes.", - "demo": "account\/get-m-f-a-recovery-codes.md" + "demo": "account\/get-mfa-recovery-codes.md" } ], "auth": { @@ -1452,7 +1452,7 @@ } ], "description": "Generate recovery codes as backup for MFA flow. It's recommended to generate and show then immediately after user successfully adds their authehticator. Recovery codes can be used as a MFA verification type in [createMfaChallenge](\/docs\/references\/cloud\/client-web\/account#createMfaChallenge) method.", - "demo": "account\/create-m-f-a-recovery-codes.md" + "demo": "account\/create-mfa-recovery-codes.md" } ], "auth": { @@ -1547,7 +1547,7 @@ } ], "description": "Regenerate recovery codes that can be used as backup for MFA flow. Before regenerating codes, they must be first generated using [createMfaRecoveryCodes](\/docs\/references\/cloud\/client-web\/account#createMfaRecoveryCodes) method. An OTP challenge is required to regenreate recovery codes.", - "demo": "account\/update-m-f-a-recovery-codes.md" + "demo": "account\/update-mfa-recovery-codes.md" } ], "auth": { @@ -1891,7 +1891,7 @@ "prefs": { "type": "object", "description": "Prefs key-value JSON object.", - "x-example": "{}" + "x-example": "{\"language\":\"en\",\"timezone\":\"UTC\",\"darkTheme\":true}" } }, "required": [ @@ -2305,7 +2305,7 @@ "weight": 27, "cookies": false, "type": "", - "demo": "account\/update-magic-u-r-l-session.md", + "demo": "account\/update-magic-url-session.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/account\/create-session.md", "rate-limit": 10, "rate-time": 3600, @@ -2316,6 +2316,10 @@ "client" ], "packaging": false, + "deprecated": { + "since": "1.6.0", + "replaceWith": "account.createSession" + }, "auth": { "Project": [] } @@ -2372,7 +2376,7 @@ "weight": 20, "cookies": false, "type": "webAuth", - "demo": "account\/create-o-auth2session.md", + "demo": "account\/create-o-auth-2-session.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/account\/create-session-oauth2.md", "rate-limit": 50, "rate-time": 3600, @@ -2525,6 +2529,10 @@ "client" ], "packaging": false, + "deprecated": { + "since": "1.6.0", + "replaceWith": "account.createSession" + }, "auth": { "Project": [] } @@ -3184,7 +3192,7 @@ "weight": 25, "cookies": false, "type": "", - "demo": "account\/create-magic-u-r-l-token.md", + "demo": "account\/create-magic-url-token.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/account\/create-token-magic-url.md", "rate-limit": 60, "rate-time": 3600, @@ -3264,7 +3272,7 @@ "weight": 24, "cookies": false, "type": "webAuth", - "demo": "account\/create-o-auth2token.md", + "demo": "account\/create-o-auth-2-token.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/account\/create-token-oauth2.md", "rate-limit": 50, "rate-time": 3600, @@ -3900,7 +3908,7 @@ "parameters": [ { "name": "code", - "description": "Credit Card Code. Possible values: amex, argencard, cabal, cencosud, diners, discover, elo, hipercard, jcb, mastercard, naranja, targeta-shopping, union-china-pay, visa, mir, maestro, rupay.", + "description": "Credit Card Code. Possible values: amex, argencard, cabal, cencosud, diners, discover, elo, hipercard, jcb, mastercard, naranja, targeta-shopping, unionpay, visa, mir, maestro, rupay.", "required": true, "schema": { "type": "string", @@ -3918,7 +3926,7 @@ "mastercard", "naranja", "targeta-shopping", - "union-china-pay", + "unionpay", "visa", "mir", "maestro", @@ -3938,7 +3946,7 @@ "Mastercard", "Naranja", "Tarjeta Shopping", - "Union China Pay", + "Union Pay", "Visa", "MIR", "Maestro", @@ -4726,7 +4734,7 @@ "weight": 65, "cookies": false, "type": "location", - "demo": "avatars\/get-q-r.md", + "demo": "avatars\/get-qr.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/avatars\/get-qr.md", "rate-limit": 0, "rate-time": 3600, @@ -4822,7 +4830,7 @@ "x-appwrite": { "method": "listDocuments", "group": "documents", - "weight": 340, + "weight": 335, "cookies": false, "type": "", "demo": "databases\/list-documents.md", @@ -4911,7 +4919,7 @@ "x-appwrite": { "method": "createDocument", "group": "documents", - "weight": 332, + "weight": 327, "cookies": false, "type": "", "demo": "databases\/create-document.md", @@ -5012,7 +5020,7 @@ "data": { "type": "object", "description": "Document data as JSON object.", - "x-example": "{}" + "x-example": "{\"username\":\"walter.obrien\",\"email\":\"walter.obrien@example.com\",\"fullName\":\"Walter O'Brien\",\"age\":30,\"isAdmin\":false}" }, "permissions": { "type": "array", @@ -5061,7 +5069,7 @@ "x-appwrite": { "method": "getDocument", "group": "documents", - "weight": 333, + "weight": 328, "cookies": false, "type": "", "demo": "databases\/get-document.md", @@ -5138,7 +5146,7 @@ ] }, "put": { - "summary": "Create or update a document", + "summary": "Upsert a document", "operationId": "databasesUpsertDocument", "tags": [ "databases" @@ -5160,7 +5168,7 @@ "x-appwrite": { "method": "upsertDocument", "group": "documents", - "weight": 336, + "weight": 331, "cookies": false, "type": "", "demo": "databases\/upsert-document.md", @@ -5308,7 +5316,7 @@ "x-appwrite": { "method": "updateDocument", "group": "documents", - "weight": 334, + "weight": 329, "cookies": false, "type": "", "demo": "databases\/update-document.md", @@ -5411,7 +5419,7 @@ "x-appwrite": { "method": "deleteDocument", "group": "documents", - "weight": 338, + "weight": 333, "cookies": false, "type": "", "demo": "databases\/delete-document.md", @@ -5499,7 +5507,7 @@ "x-appwrite": { "method": "decrementDocumentAttribute", "group": "documents", - "weight": 343, + "weight": 338, "cookies": false, "type": "", "demo": "databases\/decrement-document-attribute.md", @@ -5618,7 +5626,7 @@ "x-appwrite": { "method": "incrementDocumentAttribute", "group": "documents", - "weight": 342, + "weight": 337, "cookies": false, "type": "", "demo": "databases\/increment-document-attribute.md", @@ -5737,7 +5745,7 @@ "x-appwrite": { "method": "listExecutions", "group": "executions", - "weight": 448, + "weight": 456, "cookies": false, "type": "", "demo": "functions\/list-executions.md", @@ -5812,7 +5820,7 @@ "x-appwrite": { "method": "createExecution", "group": "executions", - "weight": 446, + "weight": 454, "cookies": false, "type": "", "demo": "functions\/create-execution.md", @@ -5873,7 +5881,7 @@ }, "method": { "type": "string", - "description": "HTTP method of execution. Default value is GET.", + "description": "HTTP method of execution. Default value is POST.", "x-example": "GET", "enum": [ "GET", @@ -5881,7 +5889,8 @@ "PUT", "PATCH", "DELETE", - "OPTIONS" + "OPTIONS", + "HEAD" ], "x-enum-name": "ExecutionMethod", "x-enum-keys": [] @@ -5927,7 +5936,7 @@ "x-appwrite": { "method": "getExecution", "group": "executions", - "weight": 447, + "weight": 455, "cookies": false, "type": "", "demo": "functions\/get-execution.md", @@ -6001,7 +6010,7 @@ "x-appwrite": { "method": "query", "group": "graphql", - "weight": 255, + "weight": 250, "cookies": false, "type": "graphql", "demo": "graphql\/query.md", @@ -6053,7 +6062,7 @@ "x-appwrite": { "method": "mutation", "group": "graphql", - "weight": 254, + "weight": 249, "cookies": false, "type": "graphql", "demo": "graphql\/mutation.md", @@ -6316,7 +6325,7 @@ "weight": 73, "cookies": false, "type": "", - "demo": "locale\/list-countries-e-u.md", + "demo": "locale\/list-countries-eu.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/locale\/list-countries-eu.md", "rate-limit": 0, "rate-time": 3600, @@ -6521,7 +6530,7 @@ "x-appwrite": { "method": "createSubscriber", "group": "subscribers", - "weight": 301, + "weight": 296, "cookies": false, "type": "", "demo": "messaging\/create-subscriber.md", @@ -6604,7 +6613,7 @@ "x-appwrite": { "method": "deleteSubscriber", "group": "subscribers", - "weight": 305, + "weight": 300, "cookies": false, "type": "", "demo": "messaging\/delete-subscriber.md", @@ -6679,7 +6688,7 @@ "x-appwrite": { "method": "listFiles", "group": "files", - "weight": 161, + "weight": 160, "cookies": false, "type": "", "demo": "storage\/list-files.md", @@ -6765,7 +6774,7 @@ "x-appwrite": { "method": "createFile", "group": "files", - "weight": 160, + "weight": 159, "cookies": false, "type": "upload", "demo": "storage\/create-file.md", @@ -6863,7 +6872,7 @@ "x-appwrite": { "method": "getFile", "group": "files", - "weight": 162, + "weight": 161, "cookies": false, "type": "", "demo": "storage\/get-file.md", @@ -6935,7 +6944,7 @@ "x-appwrite": { "method": "updateFile", "group": "files", - "weight": 167, + "weight": 166, "cookies": false, "type": "", "demo": "storage\/update-file.md", @@ -7024,7 +7033,7 @@ "x-appwrite": { "method": "deleteFile", "group": "files", - "weight": 168, + "weight": 167, "cookies": false, "type": "", "demo": "storage\/delete-file.md", @@ -7091,7 +7100,7 @@ "x-appwrite": { "method": "getFileDownload", "group": "files", - "weight": 164, + "weight": 163, "cookies": false, "type": "location", "demo": "storage\/get-file-download.md", @@ -7169,7 +7178,7 @@ "x-appwrite": { "method": "getFilePreview", "group": "files", - "weight": 163, + "weight": 162, "cookies": false, "type": "location", "demo": "storage\/get-file-preview.md", @@ -7397,7 +7406,7 @@ "x-appwrite": { "method": "getFileView", "group": "files", - "weight": 165, + "weight": 164, "cookies": false, "type": "location", "demo": "storage\/get-file-view.md", @@ -7482,15 +7491,18 @@ "x-appwrite": { "method": "listRows", "group": "rows", - "weight": 420, + "weight": 427, "cookies": false, "type": "", - "demo": "tables-d-b\/list-rows.md", + "demo": "tablesdb\/list-rows.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/list-rows.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "rows.read", + "scope": [ + "rows.read", + "documents.read" + ], "platforms": [ "client", "server", @@ -7567,15 +7579,18 @@ "x-appwrite": { "method": "createRow", "group": "rows", - "weight": 412, + "weight": 419, "cookies": false, "type": "", - "demo": "tables-d-b\/create-row.md", + "demo": "tablesdb\/create-row.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/create-row.md", "rate-limit": 120, "rate-time": 60, "rate-key": "ip:{ip},method:{method},url:{url},userId:{userId}", - "scope": "rows.write", + "scope": [ + "rows.write", + "documents.write" + ], "platforms": [ "client", "server", @@ -7610,7 +7625,7 @@ } ], "description": "Create a new Row. Before using this route, you should create a new table resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/tablesdb#tablesDBCreateTable) API or directly from your database console.", - "demo": "tables-d-b\/create-row.md" + "demo": "tablesdb\/create-row.md" } ], "auth": { @@ -7660,7 +7675,7 @@ "data": { "type": "object", "description": "Row data as JSON object.", - "x-example": "{}" + "x-example": "{\"username\":\"walter.obrien\",\"email\":\"walter.obrien@example.com\",\"fullName\":\"Walter O'Brien\",\"age\":30,\"isAdmin\":false}" }, "permissions": { "type": "array", @@ -7672,7 +7687,7 @@ }, "rows": { "type": "array", - "description": "Array of documents data as JSON objects.", + "description": "Array of rows data as JSON objects.", "x-example": null, "items": { "type": "object" @@ -7709,15 +7724,18 @@ "x-appwrite": { "method": "getRow", "group": "rows", - "weight": 413, + "weight": 420, "cookies": false, "type": "", - "demo": "tables-d-b\/get-row.md", + "demo": "tablesdb\/get-row.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/get-row.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "rows.read", + "scope": [ + "rows.read", + "documents.read" + ], "platforms": [ "client", "server", @@ -7782,7 +7800,7 @@ ] }, "put": { - "summary": "Create or update a row", + "summary": "Upsert a row", "operationId": "tablesDBUpsertRow", "tags": [ "tablesDB" @@ -7804,15 +7822,18 @@ "x-appwrite": { "method": "upsertRow", "group": "rows", - "weight": 416, + "weight": 423, "cookies": false, "type": "", - "demo": "tables-d-b\/upsert-row.md", + "demo": "tablesdb\/upsert-row.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/upsert-row.md", "rate-limit": 120, "rate-time": 60, "rate-key": "ip:{ip},method:{method},url:{url},userId:{userId}", - "scope": "rows.write", + "scope": [ + "rows.write", + "documents.write" + ], "platforms": [ "client", "server", @@ -7846,7 +7867,7 @@ } ], "description": "Create or update a Row. Before using this route, you should create a new table resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/tablesdb#tablesDBCreateTable) API or directly from your database console.", - "demo": "tables-d-b\/upsert-row.md" + "demo": "tablesdb\/upsert-row.md" } ], "auth": { @@ -7940,15 +7961,18 @@ "x-appwrite": { "method": "updateRow", "group": "rows", - "weight": 414, + "weight": 421, "cookies": false, "type": "", - "demo": "tables-d-b\/update-row.md", + "demo": "tablesdb\/update-row.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/update-row.md", "rate-limit": 120, "rate-time": 60, "rate-key": "ip:{ip},method:{method},url:{url},userId:{userId}", - "scope": "rows.write", + "scope": [ + "rows.write", + "documents.write" + ], "platforms": [ "client", "server", @@ -8039,15 +8063,18 @@ "x-appwrite": { "method": "deleteRow", "group": "rows", - "weight": 418, + "weight": 425, "cookies": false, "type": "", - "demo": "tables-d-b\/delete-row.md", + "demo": "tablesdb\/delete-row.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/delete-row.md", "rate-limit": 60, "rate-time": 60, "rate-key": "ip:{ip},method:{method},url:{url},userId:{userId}", - "scope": "rows.write", + "scope": [ + "rows.write", + "documents.write" + ], "platforms": [ "client", "server", @@ -8123,15 +8150,18 @@ "x-appwrite": { "method": "decrementRowColumn", "group": "rows", - "weight": 423, + "weight": 430, "cookies": false, "type": "", - "demo": "tables-d-b\/decrement-row-column.md", + "demo": "tablesdb\/decrement-row-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/decrement-row-column.md", "rate-limit": 120, "rate-time": 60, "rate-key": "ip:{ip},method:{method},url:{url},userId:{userId}", - "scope": "rows.write", + "scope": [ + "rows.write", + "documents.write" + ], "platforms": [ "client", "server", @@ -8238,15 +8268,18 @@ "x-appwrite": { "method": "incrementRowColumn", "group": "rows", - "weight": 422, + "weight": 429, "cookies": false, "type": "", - "demo": "tables-d-b\/increment-row-column.md", + "demo": "tablesdb\/increment-row-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/increment-row-column.md", "rate-limit": 120, "rate-time": 60, "rate-key": "ip:{ip},method:{method},url:{url},userId:{userId}", - "scope": "rows.write", + "scope": [ + "rows.write", + "documents.write" + ], "platforms": [ "client", "server", @@ -8353,7 +8386,7 @@ "x-appwrite": { "method": "list", "group": "teams", - "weight": 172, + "weight": 171, "cookies": false, "type": "", "demo": "teams\/list.md", @@ -8429,7 +8462,7 @@ "x-appwrite": { "method": "create", "group": "teams", - "weight": 171, + "weight": 170, "cookies": false, "type": "", "demo": "teams\/create.md", @@ -8514,7 +8547,7 @@ "x-appwrite": { "method": "get", "group": "teams", - "weight": 173, + "weight": 172, "cookies": false, "type": "", "demo": "teams\/get.md", @@ -8576,7 +8609,7 @@ "x-appwrite": { "method": "updateName", "group": "teams", - "weight": 175, + "weight": 174, "cookies": false, "type": "", "demo": "teams\/update-name.md", @@ -8650,7 +8683,7 @@ "x-appwrite": { "method": "delete", "group": "teams", - "weight": 177, + "weight": 176, "cookies": false, "type": "", "demo": "teams\/delete.md", @@ -8714,7 +8747,7 @@ "x-appwrite": { "method": "listMemberships", "group": "memberships", - "weight": 179, + "weight": 178, "cookies": false, "type": "", "demo": "teams\/list-memberships.md", @@ -8800,7 +8833,7 @@ "x-appwrite": { "method": "createMembership", "group": "memberships", - "weight": 178, + "weight": 177, "cookies": false, "type": "", "demo": "teams\/create-membership.md", @@ -8911,7 +8944,7 @@ "x-appwrite": { "method": "getMembership", "group": "memberships", - "weight": 180, + "weight": 179, "cookies": false, "type": "", "demo": "teams\/get-membership.md", @@ -8983,7 +9016,7 @@ "x-appwrite": { "method": "updateMembership", "group": "memberships", - "weight": 181, + "weight": 180, "cookies": false, "type": "", "demo": "teams\/update-membership.md", @@ -9070,7 +9103,7 @@ "x-appwrite": { "method": "deleteMembership", "group": "memberships", - "weight": 183, + "weight": 182, "cookies": false, "type": "", "demo": "teams\/delete-membership.md", @@ -9144,7 +9177,7 @@ "x-appwrite": { "method": "updateMembershipStatus", "group": "memberships", - "weight": 182, + "weight": 181, "cookies": false, "type": "", "demo": "teams\/update-membership-status.md", @@ -9242,7 +9275,7 @@ "x-appwrite": { "method": "getPrefs", "group": "teams", - "weight": 174, + "weight": 173, "cookies": false, "type": "", "demo": "teams\/get-prefs.md", @@ -9303,7 +9336,7 @@ "x-appwrite": { "method": "updatePrefs", "group": "teams", - "weight": 176, + "weight": 175, "cookies": false, "type": "", "demo": "teams\/update-prefs.md", @@ -9915,17 +9948,20 @@ "type": "integer", "description": "Row automatically incrementing ID.", "x-example": 1, - "format": "int32" + "format": "int32", + "readOnly": true }, "$tableId": { "type": "string", "description": "Table ID.", - "x-example": "5e5ea5c15117e" + "x-example": "5e5ea5c15117e", + "readOnly": true }, "$databaseId": { "type": "string", "description": "Database ID.", - "x-example": "5e5ea5c15117e" + "x-example": "5e5ea5c15117e", + "readOnly": true }, "$createdAt": { "type": "string", diff --git a/app/config/specs/open-api3-1.8.x-console.json b/app/config/specs/open-api3-1.8.x-console.json index 2c6aee60a3..02d97fffc7 100644 --- a/app/config/specs/open-api3-1.8.x-console.json +++ b/app/config/specs/open-api3-1.8.x-console.json @@ -418,7 +418,7 @@ "weight": 30, "cookies": false, "type": "", - "demo": "account\/create-j-w-t.md", + "demo": "account\/create-jwt.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/account\/create-jwt.md", "rate-limit": 100, "rate-time": 3600, @@ -532,7 +532,7 @@ "weight": 45, "cookies": false, "type": "", - "demo": "account\/update-m-f-a.md", + "demo": "account\/update-mfa.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/account\/update-mfa.md", "rate-limit": 0, "rate-time": 3600, @@ -663,7 +663,7 @@ } ], "description": "Add an authenticator app to be used as an MFA factor. Verify the authenticator using the [verify authenticator](\/docs\/references\/cloud\/client-web\/account#updateMfaAuthenticator) method.", - "demo": "account\/create-m-f-a-authenticator.md" + "demo": "account\/create-mfa-authenticator.md" } ], "auth": { @@ -786,7 +786,7 @@ } ], "description": "Verify an authenticator app after adding it using the [add authenticator](\/docs\/references\/cloud\/client-web\/account#createMfaAuthenticator) method.", - "demo": "account\/update-m-f-a-authenticator.md" + "demo": "account\/update-mfa-authenticator.md" } ], "auth": { @@ -915,7 +915,7 @@ } ], "description": "Delete an authenticator for a user by ID.", - "demo": "account\/delete-m-f-a-authenticator.md" + "demo": "account\/delete-mfa-authenticator.md" } ], "auth": { @@ -1036,7 +1036,7 @@ } ], "description": "Begin the process of MFA verification after sign-in. Finish the flow with [updateMfaChallenge](\/docs\/references\/cloud\/client-web\/account#updateMfaChallenge) method.", - "demo": "account\/create-m-f-a-challenge.md" + "demo": "account\/create-mfa-challenge.md" } ], "auth": { @@ -1168,7 +1168,7 @@ } ], "description": "Complete the MFA challenge by providing the one-time password. Finish the process of MFA verification by providing the one-time password. To begin the flow, use [createMfaChallenge](\/docs\/references\/cloud\/client-web\/account#createMfaChallenge) method.", - "demo": "account\/update-m-f-a-challenge.md" + "demo": "account\/update-mfa-challenge.md" } ], "auth": { @@ -1289,7 +1289,7 @@ } ], "description": "List the factors available on the account to be used as a MFA challange.", - "demo": "account\/list-m-f-a-factors.md" + "demo": "account\/list-mfa-factors.md" } ], "auth": { @@ -1385,7 +1385,7 @@ } ], "description": "Get recovery codes that can be used as backup for MFA flow. Before getting codes, they must be generated using [createMfaRecoveryCodes](\/docs\/references\/cloud\/client-web\/account#createMfaRecoveryCodes) method. An OTP challenge is required to read recovery codes.", - "demo": "account\/get-m-f-a-recovery-codes.md" + "demo": "account\/get-mfa-recovery-codes.md" } ], "auth": { @@ -1479,7 +1479,7 @@ } ], "description": "Generate recovery codes as backup for MFA flow. It's recommended to generate and show then immediately after user successfully adds their authehticator. Recovery codes can be used as a MFA verification type in [createMfaChallenge](\/docs\/references\/cloud\/client-web\/account#createMfaChallenge) method.", - "demo": "account\/create-m-f-a-recovery-codes.md" + "demo": "account\/create-mfa-recovery-codes.md" } ], "auth": { @@ -1573,7 +1573,7 @@ } ], "description": "Regenerate recovery codes that can be used as backup for MFA flow. Before regenerating codes, they must be first generated using [createMfaRecoveryCodes](\/docs\/references\/cloud\/client-web\/account#createMfaRecoveryCodes) method. An OTP challenge is required to regenreate recovery codes.", - "demo": "account\/update-m-f-a-recovery-codes.md" + "demo": "account\/update-mfa-recovery-codes.md" } ], "auth": { @@ -1911,7 +1911,7 @@ "prefs": { "type": "object", "description": "Prefs key-value JSON object.", - "x-example": "{}" + "x-example": "{\"language\":\"en\",\"timezone\":\"UTC\",\"darkTheme\":true}" } }, "required": [ @@ -2321,7 +2321,7 @@ "weight": 27, "cookies": false, "type": "", - "demo": "account\/update-magic-u-r-l-session.md", + "demo": "account\/update-magic-url-session.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/account\/create-session.md", "rate-limit": 10, "rate-time": 3600, @@ -2332,6 +2332,10 @@ "client" ], "packaging": false, + "deprecated": { + "since": "1.6.0", + "replaceWith": "account.createSession" + }, "auth": { "Project": [] } @@ -2388,7 +2392,7 @@ "weight": 20, "cookies": false, "type": "webAuth", - "demo": "account\/create-o-auth2session.md", + "demo": "account\/create-o-auth-2-session.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/account\/create-session-oauth2.md", "rate-limit": 50, "rate-time": 3600, @@ -2541,6 +2545,10 @@ "client" ], "packaging": false, + "deprecated": { + "since": "1.6.0", + "replaceWith": "account.createSession" + }, "auth": { "Project": [] } @@ -3193,7 +3201,7 @@ "weight": 25, "cookies": false, "type": "", - "demo": "account\/create-magic-u-r-l-token.md", + "demo": "account\/create-magic-url-token.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/account\/create-token-magic-url.md", "rate-limit": 60, "rate-time": 3600, @@ -3273,7 +3281,7 @@ "weight": 24, "cookies": false, "type": "webAuth", - "demo": "account\/create-o-auth2token.md", + "demo": "account\/create-o-auth-2-token.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/account\/create-token-oauth2.md", "rate-limit": 50, "rate-time": 3600, @@ -3905,7 +3913,7 @@ "parameters": [ { "name": "code", - "description": "Credit Card Code. Possible values: amex, argencard, cabal, cencosud, diners, discover, elo, hipercard, jcb, mastercard, naranja, targeta-shopping, union-china-pay, visa, mir, maestro, rupay.", + "description": "Credit Card Code. Possible values: amex, argencard, cabal, cencosud, diners, discover, elo, hipercard, jcb, mastercard, naranja, targeta-shopping, unionpay, visa, mir, maestro, rupay.", "required": true, "schema": { "type": "string", @@ -3923,7 +3931,7 @@ "mastercard", "naranja", "targeta-shopping", - "union-china-pay", + "unionpay", "visa", "mir", "maestro", @@ -3943,7 +3951,7 @@ "Mastercard", "Naranja", "Tarjeta Shopping", - "Union China Pay", + "Union Pay", "Visa", "MIR", "Maestro", @@ -4731,7 +4739,7 @@ "weight": 65, "cookies": false, "type": "location", - "demo": "avatars\/get-q-r.md", + "demo": "avatars\/get-qr.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/avatars\/get-qr.md", "rate-limit": 0, "rate-time": 3600, @@ -4820,7 +4828,7 @@ "x-appwrite": { "method": "chat", "group": "console", - "weight": 257, + "weight": 252, "cookies": false, "type": "", "demo": "assistant\/chat.md", @@ -4880,7 +4888,7 @@ "x-appwrite": { "method": "getResource", "group": null, - "weight": 488, + "weight": 496, "cookies": false, "type": "", "demo": "console\/get-resource.md", @@ -4955,7 +4963,7 @@ "x-appwrite": { "method": "variables", "group": "console", - "weight": 256, + "weight": 251, "cookies": false, "type": "", "demo": "console\/variables.md", @@ -5003,7 +5011,7 @@ "x-appwrite": { "method": "list", "group": "databases", - "weight": 321, + "weight": 316, "cookies": false, "type": "", "demo": "databases\/list.md", @@ -5107,7 +5115,7 @@ "x-appwrite": { "method": "create", "group": "databases", - "weight": 317, + "weight": 312, "cookies": false, "type": "", "demo": "databases\/create.md", @@ -5122,7 +5130,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tablesDB.createDatabase" + "replaceWith": "tablesDB.create" }, "methods": [ { @@ -5151,7 +5159,7 @@ "demo": "databases\/create.md", "deprecated": { "since": "1.8.0", - "replaceWith": "tablesDB.createDatabase" + "replaceWith": "tablesDB.create" } } ], @@ -5221,7 +5229,7 @@ "x-appwrite": { "method": "listUsage", "group": null, - "weight": 324, + "weight": 319, "cookies": false, "type": "", "demo": "databases\/list-usage.md", @@ -5323,7 +5331,7 @@ "x-appwrite": { "method": "get", "group": "databases", - "weight": 318, + "weight": 313, "cookies": false, "type": "", "demo": "databases\/get.md", @@ -5414,7 +5422,7 @@ "x-appwrite": { "method": "update", "group": "databases", - "weight": 319, + "weight": 314, "cookies": false, "type": "", "demo": "databases\/update.md", @@ -5525,7 +5533,7 @@ "x-appwrite": { "method": "delete", "group": "databases", - "weight": 320, + "weight": 315, "cookies": false, "type": "", "demo": "databases\/delete.md", @@ -5617,7 +5625,7 @@ "x-appwrite": { "method": "listCollections", "group": "collections", - "weight": 329, + "weight": 324, "cookies": false, "type": "", "demo": "databases\/list-collections.md", @@ -5704,7 +5712,7 @@ "x-appwrite": { "method": "createCollection", "group": "collections", - "weight": 325, + "weight": 320, "cookies": false, "type": "", "demo": "databases\/create-collection.md", @@ -5812,7 +5820,7 @@ "x-appwrite": { "method": "getCollection", "group": "collections", - "weight": 326, + "weight": 321, "cookies": false, "type": "", "demo": "databases\/get-collection.md", @@ -5885,7 +5893,7 @@ "x-appwrite": { "method": "updateCollection", "group": "collections", - "weight": 327, + "weight": 322, "cookies": false, "type": "", "demo": "databases\/update-collection.md", @@ -5988,7 +5996,7 @@ "x-appwrite": { "method": "deleteCollection", "group": "collections", - "weight": 328, + "weight": 323, "cookies": false, "type": "", "demo": "databases\/delete-collection.md", @@ -6063,7 +6071,7 @@ "x-appwrite": { "method": "listAttributes", "group": "attributes", - "weight": 346, + "weight": 341, "cookies": false, "type": "", "demo": "databases\/list-attributes.md", @@ -6151,7 +6159,7 @@ "x-appwrite": { "method": "createBooleanAttribute", "group": "attributes", - "weight": 347, + "weight": 342, "cookies": false, "type": "", "demo": "databases\/create-boolean-attribute.md", @@ -6261,7 +6269,7 @@ "x-appwrite": { "method": "updateBooleanAttribute", "group": "attributes", - "weight": 348, + "weight": 343, "cookies": false, "type": "", "demo": "databases\/update-boolean-attribute.md", @@ -6376,7 +6384,7 @@ "x-appwrite": { "method": "createDatetimeAttribute", "group": "attributes", - "weight": 349, + "weight": 344, "cookies": false, "type": "", "demo": "databases\/create-datetime-attribute.md", @@ -6486,7 +6494,7 @@ "x-appwrite": { "method": "updateDatetimeAttribute", "group": "attributes", - "weight": 350, + "weight": 345, "cookies": false, "type": "", "demo": "databases\/update-datetime-attribute.md", @@ -6601,7 +6609,7 @@ "x-appwrite": { "method": "createEmailAttribute", "group": "attributes", - "weight": 351, + "weight": 346, "cookies": false, "type": "", "demo": "databases\/create-email-attribute.md", @@ -6711,7 +6719,7 @@ "x-appwrite": { "method": "updateEmailAttribute", "group": "attributes", - "weight": 352, + "weight": 347, "cookies": false, "type": "", "demo": "databases\/update-email-attribute.md", @@ -6826,7 +6834,7 @@ "x-appwrite": { "method": "createEnumAttribute", "group": "attributes", - "weight": 353, + "weight": 348, "cookies": false, "type": "", "demo": "databases\/create-enum-attribute.md", @@ -6945,7 +6953,7 @@ "x-appwrite": { "method": "updateEnumAttribute", "group": "attributes", - "weight": 354, + "weight": 349, "cookies": false, "type": "", "demo": "databases\/update-enum-attribute.md", @@ -7069,7 +7077,7 @@ "x-appwrite": { "method": "createFloatAttribute", "group": "attributes", - "weight": 355, + "weight": 350, "cookies": false, "type": "", "demo": "databases\/create-float-attribute.md", @@ -7189,7 +7197,7 @@ "x-appwrite": { "method": "updateFloatAttribute", "group": "attributes", - "weight": 356, + "weight": 351, "cookies": false, "type": "", "demo": "databases\/update-float-attribute.md", @@ -7314,7 +7322,7 @@ "x-appwrite": { "method": "createIntegerAttribute", "group": "attributes", - "weight": 357, + "weight": 352, "cookies": false, "type": "", "demo": "databases\/create-integer-attribute.md", @@ -7434,7 +7442,7 @@ "x-appwrite": { "method": "updateIntegerAttribute", "group": "attributes", - "weight": 358, + "weight": 353, "cookies": false, "type": "", "demo": "databases\/update-integer-attribute.md", @@ -7559,7 +7567,7 @@ "x-appwrite": { "method": "createIpAttribute", "group": "attributes", - "weight": 359, + "weight": 354, "cookies": false, "type": "", "demo": "databases\/create-ip-attribute.md", @@ -7669,7 +7677,7 @@ "x-appwrite": { "method": "updateIpAttribute", "group": "attributes", - "weight": 360, + "weight": 355, "cookies": false, "type": "", "demo": "databases\/update-ip-attribute.md", @@ -7760,6 +7768,708 @@ } } }, + "\/databases\/{databaseId}\/collections\/{collectionId}\/attributes\/line": { + "post": { + "summary": "Create line attribute", + "operationId": "databasesCreateLineAttribute", + "tags": [ + "databases" + ], + "description": "Create a geometric line attribute.", + "responses": { + "202": { + "description": "AttributeLine", + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/attributeLine" + } + } + } + } + }, + "deprecated": true, + "x-appwrite": { + "method": "createLineAttribute", + "group": "attributes", + "weight": 356, + "cookies": false, + "type": "", + "demo": "databases\/create-line-attribute.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-line-attribute.md", + "rate-limit": 0, + "rate-time": 3600, + "rate-key": "url:{url},ip:{ip}", + "scope": "collections.write", + "platforms": [ + "server" + ], + "packaging": false, + "deprecated": { + "since": "1.8.0", + "replaceWith": "tablesDB.createLineColumn" + }, + "auth": { + "Project": [] + } + }, + "security": [ + { + "Project": [], + "Key": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + }, + { + "name": "collectionId", + "description": "Collection ID. You can create a new collection using the Database service [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateCollection).", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + } + ], + "requestBody": { + "content": { + "application\/json": { + "schema": { + "type": "object", + "properties": { + "key": { + "type": "string", + "description": "Attribute Key.", + "x-example": null + }, + "required": { + "type": "boolean", + "description": "Is attribute required?", + "x-example": false + }, + "default": { + "type": "array", + "description": "Default value for attribute when not provided, two-dimensional array of coordinate pairs, [[longitude, latitude], [longitude, latitude], \u2026], listing the vertices of the line in order. Cannot be set when attribute is required.", + "x-example": "[[1, 2], [3, 4], [5, 6]]", + "items": { + "oneOf": [ + { + "type": "array" + } + ] + }, + "x-nullable": true + } + }, + "required": [ + "key", + "required" + ] + } + } + } + } + } + }, + "\/databases\/{databaseId}\/collections\/{collectionId}\/attributes\/line\/{key}": { + "patch": { + "summary": "Update line attribute", + "operationId": "databasesUpdateLineAttribute", + "tags": [ + "databases" + ], + "description": "Update a line attribute. Changing the `default` value will not update already existing documents.", + "responses": { + "200": { + "description": "AttributeLine", + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/attributeLine" + } + } + } + } + }, + "deprecated": true, + "x-appwrite": { + "method": "updateLineAttribute", + "group": "attributes", + "weight": 357, + "cookies": false, + "type": "", + "demo": "databases\/update-line-attribute.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-line-attribute.md", + "rate-limit": 0, + "rate-time": 3600, + "rate-key": "url:{url},ip:{ip}", + "scope": "collections.write", + "platforms": [ + "server" + ], + "packaging": false, + "deprecated": { + "since": "1.8.0", + "replaceWith": "tablesDB.updateLineColumn" + }, + "auth": { + "Project": [] + } + }, + "security": [ + { + "Project": [], + "Key": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + }, + { + "name": "collectionId", + "description": "Collection ID. You can create a new collection using the Database service [server integration](https:\/\/appwrite.io\/docs\/server\/databases#createCollection).", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + }, + { + "name": "key", + "description": "Attribute Key.", + "required": true, + "schema": { + "type": "string" + }, + "in": "path" + } + ], + "requestBody": { + "content": { + "application\/json": { + "schema": { + "type": "object", + "properties": { + "required": { + "type": "boolean", + "description": "Is attribute required?", + "x-example": false + }, + "default": { + "type": "array", + "description": "Default value for attribute when not provided, two-dimensional array of coordinate pairs, [[longitude, latitude], [longitude, latitude], \u2026], listing the vertices of the line in order. Cannot be set when attribute is required.", + "x-example": "[[1, 2], [3, 4], [5, 6]]", + "items": { + "oneOf": [ + { + "type": "array" + } + ] + }, + "x-nullable": true + }, + "newKey": { + "type": "string", + "description": "New attribute key.", + "x-example": null + } + }, + "required": [ + "required" + ] + } + } + } + } + } + }, + "\/databases\/{databaseId}\/collections\/{collectionId}\/attributes\/point": { + "post": { + "summary": "Create point attribute", + "operationId": "databasesCreatePointAttribute", + "tags": [ + "databases" + ], + "description": "Create a geometric point attribute.", + "responses": { + "202": { + "description": "AttributePoint", + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/attributePoint" + } + } + } + } + }, + "deprecated": true, + "x-appwrite": { + "method": "createPointAttribute", + "group": "attributes", + "weight": 358, + "cookies": false, + "type": "", + "demo": "databases\/create-point-attribute.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-point-attribute.md", + "rate-limit": 0, + "rate-time": 3600, + "rate-key": "url:{url},ip:{ip}", + "scope": "collections.write", + "platforms": [ + "server" + ], + "packaging": false, + "deprecated": { + "since": "1.8.0", + "replaceWith": "tablesDB.createPointColumn" + }, + "auth": { + "Project": [] + } + }, + "security": [ + { + "Project": [], + "Key": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + }, + { + "name": "collectionId", + "description": "Collection ID. You can create a new collection using the Database service [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateCollection).", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + } + ], + "requestBody": { + "content": { + "application\/json": { + "schema": { + "type": "object", + "properties": { + "key": { + "type": "string", + "description": "Attribute Key.", + "x-example": null + }, + "required": { + "type": "boolean", + "description": "Is attribute required?", + "x-example": false + }, + "default": { + "type": "array", + "description": "Default value for attribute when not provided, array of two numbers [longitude, latitude], representing a single coordinate. Cannot be set when attribute is required.", + "x-example": "[1, 2]", + "items": { + "oneOf": [ + { + "type": "array" + } + ] + }, + "x-nullable": true + } + }, + "required": [ + "key", + "required" + ] + } + } + } + } + } + }, + "\/databases\/{databaseId}\/collections\/{collectionId}\/attributes\/point\/{key}": { + "patch": { + "summary": "Update point attribute", + "operationId": "databasesUpdatePointAttribute", + "tags": [ + "databases" + ], + "description": "Update a point attribute. Changing the `default` value will not update already existing documents.", + "responses": { + "200": { + "description": "AttributePoint", + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/attributePoint" + } + } + } + } + }, + "deprecated": true, + "x-appwrite": { + "method": "updatePointAttribute", + "group": "attributes", + "weight": 359, + "cookies": false, + "type": "", + "demo": "databases\/update-point-attribute.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-point-attribute.md", + "rate-limit": 0, + "rate-time": 3600, + "rate-key": "url:{url},ip:{ip}", + "scope": "collections.write", + "platforms": [ + "server" + ], + "packaging": false, + "deprecated": { + "since": "1.8.0", + "replaceWith": "tablesDB.updatePointColumn" + }, + "auth": { + "Project": [] + } + }, + "security": [ + { + "Project": [], + "Key": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + }, + { + "name": "collectionId", + "description": "Collection ID. You can create a new collection using the Database service [server integration](https:\/\/appwrite.io\/docs\/server\/databases#createCollection).", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + }, + { + "name": "key", + "description": "Attribute Key.", + "required": true, + "schema": { + "type": "string" + }, + "in": "path" + } + ], + "requestBody": { + "content": { + "application\/json": { + "schema": { + "type": "object", + "properties": { + "required": { + "type": "boolean", + "description": "Is attribute required?", + "x-example": false + }, + "default": { + "type": "array", + "description": "Default value for attribute when not provided, array of two numbers [longitude, latitude], representing a single coordinate. Cannot be set when attribute is required.", + "x-example": "[1, 2]", + "items": { + "oneOf": [ + { + "type": "array" + } + ] + }, + "x-nullable": true + }, + "newKey": { + "type": "string", + "description": "New attribute key.", + "x-example": null + } + }, + "required": [ + "required" + ] + } + } + } + } + } + }, + "\/databases\/{databaseId}\/collections\/{collectionId}\/attributes\/polygon": { + "post": { + "summary": "Create polygon attribute", + "operationId": "databasesCreatePolygonAttribute", + "tags": [ + "databases" + ], + "description": "Create a geometric polygon attribute.", + "responses": { + "202": { + "description": "AttributePolygon", + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/attributePolygon" + } + } + } + } + }, + "deprecated": true, + "x-appwrite": { + "method": "createPolygonAttribute", + "group": "attributes", + "weight": 360, + "cookies": false, + "type": "", + "demo": "databases\/create-polygon-attribute.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-polygon-attribute.md", + "rate-limit": 0, + "rate-time": 3600, + "rate-key": "url:{url},ip:{ip}", + "scope": "collections.write", + "platforms": [ + "server" + ], + "packaging": false, + "deprecated": { + "since": "1.8.0", + "replaceWith": "tablesDB.createPolygonColumn" + }, + "auth": { + "Project": [] + } + }, + "security": [ + { + "Project": [], + "Key": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + }, + { + "name": "collectionId", + "description": "Collection ID. You can create a new collection using the Database service [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateCollection).", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + } + ], + "requestBody": { + "content": { + "application\/json": { + "schema": { + "type": "object", + "properties": { + "key": { + "type": "string", + "description": "Attribute Key.", + "x-example": null + }, + "required": { + "type": "boolean", + "description": "Is attribute required?", + "x-example": false + }, + "default": { + "type": "array", + "description": "Default value for attribute when not provided, three-dimensional array where the outer array holds one or more linear rings, [[[longitude, latitude], \u2026], \u2026], the first ring is the exterior boundary, any additional rings are interior holes, and each ring must start and end with the same coordinate pair. Cannot be set when attribute is required.", + "x-example": "[[[1, 2], [3, 4], [5, 6], [1, 2]]]", + "items": { + "oneOf": [ + { + "type": "array" + } + ] + }, + "x-nullable": true + } + }, + "required": [ + "key", + "required" + ] + } + } + } + } + } + }, + "\/databases\/{databaseId}\/collections\/{collectionId}\/attributes\/polygon\/{key}": { + "patch": { + "summary": "Update polygon attribute", + "operationId": "databasesUpdatePolygonAttribute", + "tags": [ + "databases" + ], + "description": "Update a polygon attribute. Changing the `default` value will not update already existing documents.", + "responses": { + "200": { + "description": "AttributePolygon", + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/attributePolygon" + } + } + } + } + }, + "deprecated": true, + "x-appwrite": { + "method": "updatePolygonAttribute", + "group": "attributes", + "weight": 361, + "cookies": false, + "type": "", + "demo": "databases\/update-polygon-attribute.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-polygon-attribute.md", + "rate-limit": 0, + "rate-time": 3600, + "rate-key": "url:{url},ip:{ip}", + "scope": "collections.write", + "platforms": [ + "server" + ], + "packaging": false, + "deprecated": { + "since": "1.8.0", + "replaceWith": "tablesDB.updatePolygonColumn" + }, + "auth": { + "Project": [] + } + }, + "security": [ + { + "Project": [], + "Key": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + }, + { + "name": "collectionId", + "description": "Collection ID. You can create a new collection using the Database service [server integration](https:\/\/appwrite.io\/docs\/server\/databases#createCollection).", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + }, + { + "name": "key", + "description": "Attribute Key.", + "required": true, + "schema": { + "type": "string" + }, + "in": "path" + } + ], + "requestBody": { + "content": { + "application\/json": { + "schema": { + "type": "object", + "properties": { + "required": { + "type": "boolean", + "description": "Is attribute required?", + "x-example": false + }, + "default": { + "type": "array", + "description": "Default value for attribute when not provided, three-dimensional array where the outer array holds one or more linear rings, [[[longitude, latitude], \u2026], \u2026], the first ring is the exterior boundary, any additional rings are interior holes, and each ring must start and end with the same coordinate pair. Cannot be set when attribute is required.", + "x-example": "[[[1, 2], [3, 4], [5, 6], [1, 2]]]", + "items": { + "oneOf": [ + { + "type": "array" + } + ] + }, + "x-nullable": true + }, + "newKey": { + "type": "string", + "description": "New attribute key.", + "x-example": null + } + }, + "required": [ + "required" + ] + } + } + } + } + } + }, "\/databases\/{databaseId}\/collections\/{collectionId}\/attributes\/relationship": { "post": { "summary": "Create relationship attribute", @@ -7784,7 +8494,7 @@ "x-appwrite": { "method": "createRelationshipAttribute", "group": "attributes", - "weight": 361, + "weight": 362, "cookies": false, "type": "", "demo": "databases\/create-relationship-attribute.md", @@ -7919,7 +8629,7 @@ "x-appwrite": { "method": "createStringAttribute", "group": "attributes", - "weight": 363, + "weight": 364, "cookies": false, "type": "", "demo": "databases\/create-string-attribute.md", @@ -8040,7 +8750,7 @@ "x-appwrite": { "method": "updateStringAttribute", "group": "attributes", - "weight": 364, + "weight": 365, "cookies": false, "type": "", "demo": "databases\/update-string-attribute.md", @@ -8160,7 +8870,7 @@ "x-appwrite": { "method": "createUrlAttribute", "group": "attributes", - "weight": 365, + "weight": 366, "cookies": false, "type": "", "demo": "databases\/create-url-attribute.md", @@ -8270,7 +8980,7 @@ "x-appwrite": { "method": "updateUrlAttribute", "group": "attributes", - "weight": 366, + "weight": 367, "cookies": false, "type": "", "demo": "databases\/update-url-attribute.md", @@ -8416,7 +9126,7 @@ "x-appwrite": { "method": "getAttribute", "group": "attributes", - "weight": 344, + "weight": 339, "cookies": false, "type": "", "demo": "databases\/get-attribute.md", @@ -8491,7 +9201,7 @@ "x-appwrite": { "method": "deleteAttribute", "group": "attributes", - "weight": 345, + "weight": 340, "cookies": false, "type": "", "demo": "databases\/delete-attribute.md", @@ -8575,7 +9285,7 @@ "x-appwrite": { "method": "updateRelationshipAttribute", "group": "attributes", - "weight": 362, + "weight": 363, "cookies": false, "type": "", "demo": "databases\/update-relationship-attribute.md", @@ -8687,7 +9397,7 @@ "x-appwrite": { "method": "listDocuments", "group": "documents", - "weight": 340, + "weight": 335, "cookies": false, "type": "", "demo": "databases\/list-documents.md", @@ -8776,7 +9486,7 @@ "x-appwrite": { "method": "createDocument", "group": "documents", - "weight": 332, + "weight": 327, "cookies": false, "type": "", "demo": "databases\/create-document.md", @@ -8907,7 +9617,7 @@ "data": { "type": "object", "description": "Document data as JSON object.", - "x-example": "{}" + "x-example": "{\"username\":\"walter.obrien\",\"email\":\"walter.obrien@example.com\",\"fullName\":\"Walter O'Brien\",\"age\":30,\"isAdmin\":false}" }, "permissions": { "type": "array", @@ -8932,7 +9642,7 @@ } }, "put": { - "summary": "Create or update documents", + "summary": "Upsert documents", "operationId": "databasesUpsertDocuments", "tags": [ "databases" @@ -8954,7 +9664,7 @@ "x-appwrite": { "method": "upsertDocuments", "group": "documents", - "weight": 337, + "weight": 332, "cookies": false, "type": "", "demo": "databases\/upsert-documents.md", @@ -9082,7 +9792,7 @@ "x-appwrite": { "method": "updateDocuments", "group": "documents", - "weight": 335, + "weight": 330, "cookies": false, "type": "", "demo": "databases\/update-documents.md", @@ -9180,7 +9890,7 @@ "x-appwrite": { "method": "deleteDocuments", "group": "documents", - "weight": 339, + "weight": 334, "cookies": false, "type": "", "demo": "databases\/delete-documents.md", @@ -9275,7 +9985,7 @@ "x-appwrite": { "method": "getDocument", "group": "documents", - "weight": 333, + "weight": 328, "cookies": false, "type": "", "demo": "databases\/get-document.md", @@ -9352,7 +10062,7 @@ ] }, "put": { - "summary": "Create or update a document", + "summary": "Upsert a document", "operationId": "databasesUpsertDocument", "tags": [ "databases" @@ -9374,7 +10084,7 @@ "x-appwrite": { "method": "upsertDocument", "group": "documents", - "weight": 336, + "weight": 331, "cookies": false, "type": "", "demo": "databases\/upsert-document.md", @@ -9522,7 +10232,7 @@ "x-appwrite": { "method": "updateDocument", "group": "documents", - "weight": 334, + "weight": 329, "cookies": false, "type": "", "demo": "databases\/update-document.md", @@ -9625,7 +10335,7 @@ "x-appwrite": { "method": "deleteDocument", "group": "documents", - "weight": 338, + "weight": 333, "cookies": false, "type": "", "demo": "databases\/delete-document.md", @@ -9713,7 +10423,7 @@ "x-appwrite": { "method": "listDocumentLogs", "group": "logs", - "weight": 341, + "weight": 336, "cookies": false, "type": "", "demo": "databases\/list-document-logs.md", @@ -9810,7 +10520,7 @@ "x-appwrite": { "method": "decrementDocumentAttribute", "group": "documents", - "weight": 343, + "weight": 338, "cookies": false, "type": "", "demo": "databases\/decrement-document-attribute.md", @@ -9929,7 +10639,7 @@ "x-appwrite": { "method": "incrementDocumentAttribute", "group": "documents", - "weight": 342, + "weight": 337, "cookies": false, "type": "", "demo": "databases\/increment-document-attribute.md", @@ -10048,7 +10758,7 @@ "x-appwrite": { "method": "listIndexes", "group": "indexes", - "weight": 370, + "weight": 371, "cookies": false, "type": "", "demo": "databases\/list-indexes.md", @@ -10134,7 +10844,7 @@ "x-appwrite": { "method": "createIndex", "group": "indexes", - "weight": 367, + "weight": 368, "cookies": false, "type": "", "demo": "databases\/create-index.md", @@ -10201,7 +10911,8 @@ "enum": [ "key", "fulltext", - "unique" + "unique", + "spatial" ], "x-enum-name": "IndexType", "x-enum-keys": [] @@ -10266,7 +10977,7 @@ "x-appwrite": { "method": "getIndex", "group": "indexes", - "weight": 368, + "weight": 369, "cookies": false, "type": "", "demo": "databases\/get-index.md", @@ -10341,7 +11052,7 @@ "x-appwrite": { "method": "deleteIndex", "group": "indexes", - "weight": 369, + "weight": 370, "cookies": false, "type": "", "demo": "databases\/delete-index.md", @@ -10425,7 +11136,7 @@ "x-appwrite": { "method": "listCollectionLogs", "group": "collections", - "weight": 330, + "weight": 325, "cookies": false, "type": "", "demo": "databases\/list-collection-logs.md", @@ -10512,7 +11223,7 @@ "x-appwrite": { "method": "getCollectionUsage", "group": null, - "weight": 331, + "weight": 326, "cookies": false, "type": "", "demo": "databases\/get-collection-usage.md", @@ -10608,7 +11319,7 @@ "x-appwrite": { "method": "listLogs", "group": "logs", - "weight": 322, + "weight": 317, "cookies": false, "type": "", "demo": "databases\/list-logs.md", @@ -10714,7 +11425,7 @@ "x-appwrite": { "method": "getUsage", "group": null, - "weight": 323, + "weight": 318, "cookies": false, "type": "", "demo": "databases\/get-usage.md", @@ -10829,7 +11540,7 @@ "x-appwrite": { "method": "list", "group": "functions", - "weight": 432, + "weight": 440, "cookies": false, "type": "", "demo": "functions\/list.md", @@ -10902,7 +11613,7 @@ "x-appwrite": { "method": "create", "group": "functions", - "weight": 429, + "weight": 437, "cookies": false, "type": "", "demo": "functions\/create.md", @@ -11135,7 +11846,7 @@ "x-appwrite": { "method": "listRuntimes", "group": "runtimes", - "weight": 434, + "weight": 442, "cookies": false, "type": "", "demo": "functions\/list-runtimes.md", @@ -11184,7 +11895,7 @@ "x-appwrite": { "method": "listSpecifications", "group": "runtimes", - "weight": 435, + "weight": 443, "cookies": false, "type": "", "demo": "functions\/list-specifications.md", @@ -11234,7 +11945,7 @@ "x-appwrite": { "method": "listTemplates", "group": "templates", - "weight": 458, + "weight": 466, "cookies": false, "type": "", "demo": "functions\/list-templates.md", @@ -11334,7 +12045,7 @@ "x-appwrite": { "method": "getTemplate", "group": "templates", - "weight": 457, + "weight": 465, "cookies": false, "type": "", "demo": "functions\/get-template.md", @@ -11394,7 +12105,7 @@ "x-appwrite": { "method": "listUsage", "group": null, - "weight": 451, + "weight": 459, "cookies": false, "type": "", "demo": "functions\/list-usage.md", @@ -11466,7 +12177,7 @@ "x-appwrite": { "method": "get", "group": "functions", - "weight": 430, + "weight": 438, "cookies": false, "type": "", "demo": "functions\/get.md", @@ -11525,7 +12236,7 @@ "x-appwrite": { "method": "update", "group": "functions", - "weight": 431, + "weight": 439, "cookies": false, "type": "", "demo": "functions\/update.md", @@ -11755,7 +12466,7 @@ "x-appwrite": { "method": "delete", "group": "functions", - "weight": 433, + "weight": 441, "cookies": false, "type": "", "demo": "functions\/delete.md", @@ -11816,7 +12527,7 @@ "x-appwrite": { "method": "updateFunctionDeployment", "group": "functions", - "weight": 438, + "weight": 446, "cookies": false, "type": "", "demo": "functions\/update-function-deployment.md", @@ -11896,7 +12607,7 @@ "x-appwrite": { "method": "listDeployments", "group": "deployments", - "weight": 439, + "weight": 447, "cookies": false, "type": "", "demo": "functions\/list-deployments.md", @@ -11979,7 +12690,7 @@ "x-appwrite": { "method": "createDeployment", "group": "deployments", - "weight": 436, + "weight": 444, "cookies": false, "type": "upload", "demo": "functions\/create-deployment.md", @@ -12075,7 +12786,7 @@ "x-appwrite": { "method": "createDuplicateDeployment", "group": "deployments", - "weight": 444, + "weight": 452, "cookies": false, "type": "", "demo": "functions\/create-duplicate-deployment.md", @@ -12160,7 +12871,7 @@ "x-appwrite": { "method": "createTemplateDeployment", "group": "deployments", - "weight": 441, + "weight": 449, "cookies": false, "type": "", "demo": "functions\/create-template-deployment.md", @@ -12263,7 +12974,7 @@ "x-appwrite": { "method": "createVcsDeployment", "group": "deployments", - "weight": 442, + "weight": 450, "cookies": false, "type": "", "demo": "functions\/create-vcs-deployment.md", @@ -12360,7 +13071,7 @@ "x-appwrite": { "method": "getDeployment", "group": "deployments", - "weight": 437, + "weight": 445, "cookies": false, "type": "", "demo": "functions\/get-deployment.md", @@ -12422,7 +13133,7 @@ "x-appwrite": { "method": "deleteDeployment", "group": "deployments", - "weight": 440, + "weight": 448, "cookies": false, "type": "", "demo": "functions\/delete-deployment.md", @@ -12486,7 +13197,7 @@ "x-appwrite": { "method": "getDeploymentDownload", "group": "deployments", - "weight": 443, + "weight": 451, "cookies": false, "type": "location", "demo": "functions\/get-deployment-download.md", @@ -12576,7 +13287,7 @@ "x-appwrite": { "method": "updateDeploymentStatus", "group": "deployments", - "weight": 445, + "weight": 453, "cookies": false, "type": "", "demo": "functions\/update-deployment-status.md", @@ -12647,7 +13358,7 @@ "x-appwrite": { "method": "listExecutions", "group": "executions", - "weight": 448, + "weight": 456, "cookies": false, "type": "", "demo": "functions\/list-executions.md", @@ -12722,7 +13433,7 @@ "x-appwrite": { "method": "createExecution", "group": "executions", - "weight": 446, + "weight": 454, "cookies": false, "type": "", "demo": "functions\/create-execution.md", @@ -12783,7 +13494,7 @@ }, "method": { "type": "string", - "description": "HTTP method of execution. Default value is GET.", + "description": "HTTP method of execution. Default value is POST.", "x-example": "GET", "enum": [ "GET", @@ -12791,7 +13502,8 @@ "PUT", "PATCH", "DELETE", - "OPTIONS" + "OPTIONS", + "HEAD" ], "x-enum-name": "ExecutionMethod", "x-enum-keys": [] @@ -12837,7 +13549,7 @@ "x-appwrite": { "method": "getExecution", "group": "executions", - "weight": 447, + "weight": 455, "cookies": false, "type": "", "demo": "functions\/get-execution.md", @@ -12902,7 +13614,7 @@ "x-appwrite": { "method": "deleteExecution", "group": "executions", - "weight": 449, + "weight": 457, "cookies": false, "type": "", "demo": "functions\/delete-execution.md", @@ -12973,7 +13685,7 @@ "x-appwrite": { "method": "getUsage", "group": null, - "weight": 450, + "weight": 458, "cookies": false, "type": "", "demo": "functions\/get-usage.md", @@ -13055,7 +13767,7 @@ "x-appwrite": { "method": "listVariables", "group": "variables", - "weight": 454, + "weight": 462, "cookies": false, "type": "", "demo": "functions\/list-variables.md", @@ -13114,7 +13826,7 @@ "x-appwrite": { "method": "createVariable", "group": "variables", - "weight": 452, + "weight": 460, "cookies": false, "type": "", "demo": "functions\/create-variable.md", @@ -13205,7 +13917,7 @@ "x-appwrite": { "method": "getVariable", "group": "variables", - "weight": 453, + "weight": 461, "cookies": false, "type": "", "demo": "functions\/get-variable.md", @@ -13274,7 +13986,7 @@ "x-appwrite": { "method": "updateVariable", "group": "variables", - "weight": 455, + "weight": 463, "cookies": false, "type": "", "demo": "functions\/update-variable.md", @@ -13365,7 +14077,7 @@ "x-appwrite": { "method": "deleteVariable", "group": "variables", - "weight": 456, + "weight": 464, "cookies": false, "type": "", "demo": "functions\/delete-variable.md", @@ -13436,7 +14148,7 @@ "x-appwrite": { "method": "query", "group": "graphql", - "weight": 255, + "weight": 250, "cookies": false, "type": "graphql", "demo": "graphql\/query.md", @@ -13488,7 +14200,7 @@ "x-appwrite": { "method": "mutation", "group": "graphql", - "weight": 254, + "weight": 249, "cookies": false, "type": "graphql", "demo": "graphql\/mutation.md", @@ -13750,7 +14462,7 @@ "weight": 80, "cookies": false, "type": "", - "demo": "health\/get-d-b.md", + "demo": "health\/get-db.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/health\/get-db.md", "rate-limit": 0, "rate-time": 3600, @@ -14480,7 +15192,7 @@ }, "\/health\/queue\/stats-resources": { "get": { - "summary": "Get stats resources queue", + "summary": "Get stats resources queue", "operationId": "healthGetQueueStatsResources", "tags": [ "health" @@ -15046,7 +15758,7 @@ "weight": 73, "cookies": false, "type": "", - "demo": "locale\/list-countries-e-u.md", + "demo": "locale\/list-countries-eu.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/locale\/list-countries-eu.md", "rate-limit": 0, "rate-time": 3600, @@ -15251,7 +15963,7 @@ "x-appwrite": { "method": "listMessages", "group": "messages", - "weight": 309, + "weight": 304, "cookies": false, "type": "", "demo": "messaging\/list-messages.md", @@ -15327,7 +16039,7 @@ "x-appwrite": { "method": "createEmail", "group": "messages", - "weight": 306, + "weight": 301, "cookies": false, "type": "", "demo": "messaging\/create-email.md", @@ -15471,7 +16183,7 @@ "x-appwrite": { "method": "updateEmail", "group": "messages", - "weight": 313, + "weight": 308, "cookies": false, "type": "", "demo": "messaging\/update-email.md", @@ -15617,7 +16329,7 @@ "x-appwrite": { "method": "createPush", "group": "messages", - "weight": 308, + "weight": 303, "cookies": false, "type": "", "demo": "messaging\/create-push.md", @@ -15791,7 +16503,7 @@ "x-appwrite": { "method": "updatePush", "group": "messages", - "weight": 315, + "weight": 310, "cookies": false, "type": "", "demo": "messaging\/update-push.md", @@ -15969,7 +16681,7 @@ "x-appwrite": { "method": "createSms", "group": "messages", - "weight": 307, + "weight": 302, "cookies": false, "type": "", "demo": "messaging\/create-sms.md", @@ -16048,7 +16760,7 @@ } ], "description": "Create a new SMS message.", - "demo": "messaging\/create-s-m-s.md" + "demo": "messaging\/create-sms.md" } ], "auth": { @@ -16146,7 +16858,7 @@ "x-appwrite": { "method": "updateSms", "group": "messages", - "weight": 314, + "weight": 309, "cookies": false, "type": "", "demo": "messaging\/update-sms.md", @@ -16223,7 +16935,7 @@ } ], "description": "Update an SMS message by its unique ID. This endpoint only works on messages that are in draft status. Messages that are already processing, sent, or failed cannot be updated.\n", - "demo": "messaging\/update-s-m-s.md" + "demo": "messaging\/update-sms.md" } ], "auth": { @@ -16324,7 +17036,7 @@ "x-appwrite": { "method": "getMessage", "group": "messages", - "weight": 312, + "weight": 307, "cookies": false, "type": "", "demo": "messaging\/get-message.md", @@ -16377,7 +17089,7 @@ "x-appwrite": { "method": "delete", "group": "messages", - "weight": 316, + "weight": 311, "cookies": false, "type": "", "demo": "messaging\/delete.md", @@ -16439,7 +17151,7 @@ "x-appwrite": { "method": "listMessageLogs", "group": "logs", - "weight": 310, + "weight": 305, "cookies": false, "type": "", "demo": "messaging\/list-message-logs.md", @@ -16514,7 +17226,7 @@ "x-appwrite": { "method": "listTargets", "group": "messages", - "weight": 311, + "weight": 306, "cookies": false, "type": "", "demo": "messaging\/list-targets.md", @@ -16589,7 +17301,7 @@ "x-appwrite": { "method": "listProviders", "group": "providers", - "weight": 281, + "weight": 276, "cookies": false, "type": "", "demo": "messaging\/list-providers.md", @@ -16665,7 +17377,7 @@ "x-appwrite": { "method": "createApnsProvider", "group": "providers", - "weight": 280, + "weight": 275, "cookies": false, "type": "", "demo": "messaging\/create-apns-provider.md", @@ -16746,7 +17458,7 @@ } ], "description": "Create a new Apple Push Notification service provider.", - "demo": "messaging\/create-a-p-n-s-provider.md" + "demo": "messaging\/create-apns-provider.md" } ], "auth": { @@ -16840,7 +17552,7 @@ "x-appwrite": { "method": "updateApnsProvider", "group": "providers", - "weight": 293, + "weight": 288, "cookies": false, "type": "", "demo": "messaging\/update-apns-provider.md", @@ -16919,7 +17631,7 @@ } ], "description": "Update a Apple Push Notification service provider by its unique ID.", - "demo": "messaging\/update-a-p-n-s-provider.md" + "demo": "messaging\/update-apns-provider.md" } ], "auth": { @@ -17016,7 +17728,7 @@ "x-appwrite": { "method": "createFcmProvider", "group": "providers", - "weight": 279, + "weight": 274, "cookies": false, "type": "", "demo": "messaging\/create-fcm-provider.md", @@ -17089,7 +17801,7 @@ } ], "description": "Create a new Firebase Cloud Messaging provider.", - "demo": "messaging\/create-f-c-m-provider.md" + "demo": "messaging\/create-fcm-provider.md" } ], "auth": { @@ -17163,7 +17875,7 @@ "x-appwrite": { "method": "updateFcmProvider", "group": "providers", - "weight": 292, + "weight": 287, "cookies": false, "type": "", "demo": "messaging\/update-fcm-provider.md", @@ -17234,7 +17946,7 @@ } ], "description": "Update a Firebase Cloud Messaging provider by its unique ID.", - "demo": "messaging\/update-f-c-m-provider.md" + "demo": "messaging\/update-fcm-provider.md" } ], "auth": { @@ -17311,7 +18023,7 @@ "x-appwrite": { "method": "createMailgunProvider", "group": "providers", - "weight": 271, + "weight": 266, "cookies": false, "type": "", "demo": "messaging\/create-mailgun-provider.md", @@ -17426,7 +18138,7 @@ "x-appwrite": { "method": "updateMailgunProvider", "group": "providers", - "weight": 284, + "weight": 279, "cookies": false, "type": "", "demo": "messaging\/update-mailgun-provider.md", @@ -17544,10 +18256,10 @@ "x-appwrite": { "method": "createMsg91Provider", "group": "providers", - "weight": 274, + "weight": 269, "cookies": false, "type": "", - "demo": "messaging\/create-msg91provider.md", + "demo": "messaging\/create-msg-91-provider.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/messaging\/create-msg91-provider.md", "rate-limit": 0, "rate-time": 3600, @@ -17639,10 +18351,10 @@ "x-appwrite": { "method": "updateMsg91Provider", "group": "providers", - "weight": 287, + "weight": 282, "cookies": false, "type": "", - "demo": "messaging\/update-msg91provider.md", + "demo": "messaging\/update-msg-91-provider.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/messaging\/update-msg91-provider.md", "rate-limit": 0, "rate-time": 3600, @@ -17737,7 +18449,7 @@ "x-appwrite": { "method": "createSendgridProvider", "group": "providers", - "weight": 272, + "weight": 267, "cookies": false, "type": "", "demo": "messaging\/create-sendgrid-provider.md", @@ -17842,7 +18554,7 @@ "x-appwrite": { "method": "updateSendgridProvider", "group": "providers", - "weight": 285, + "weight": 280, "cookies": false, "type": "", "demo": "messaging\/update-sendgrid-provider.md", @@ -17950,7 +18662,7 @@ "x-appwrite": { "method": "createSmtpProvider", "group": "providers", - "weight": 273, + "weight": 268, "cookies": false, "type": "", "demo": "messaging\/create-smtp-provider.md", @@ -18045,7 +18757,7 @@ } ], "description": "Create a new SMTP provider.", - "demo": "messaging\/create-s-m-t-p-provider.md" + "demo": "messaging\/create-smtp-provider.md" } ], "auth": { @@ -18177,7 +18889,7 @@ "x-appwrite": { "method": "updateSmtpProvider", "group": "providers", - "weight": 286, + "weight": 281, "cookies": false, "type": "", "demo": "messaging\/update-smtp-provider.md", @@ -18268,7 +18980,7 @@ } ], "description": "Update a SMTP provider by its unique ID.", - "demo": "messaging\/update-s-m-t-p-provider.md" + "demo": "messaging\/update-smtp-provider.md" } ], "auth": { @@ -18402,7 +19114,7 @@ "x-appwrite": { "method": "createTelesignProvider", "group": "providers", - "weight": 275, + "weight": 270, "cookies": false, "type": "", "demo": "messaging\/create-telesign-provider.md", @@ -18497,7 +19209,7 @@ "x-appwrite": { "method": "updateTelesignProvider", "group": "providers", - "weight": 288, + "weight": 283, "cookies": false, "type": "", "demo": "messaging\/update-telesign-provider.md", @@ -18595,7 +19307,7 @@ "x-appwrite": { "method": "createTextmagicProvider", "group": "providers", - "weight": 276, + "weight": 271, "cookies": false, "type": "", "demo": "messaging\/create-textmagic-provider.md", @@ -18690,7 +19402,7 @@ "x-appwrite": { "method": "updateTextmagicProvider", "group": "providers", - "weight": 289, + "weight": 284, "cookies": false, "type": "", "demo": "messaging\/update-textmagic-provider.md", @@ -18788,7 +19500,7 @@ "x-appwrite": { "method": "createTwilioProvider", "group": "providers", - "weight": 277, + "weight": 272, "cookies": false, "type": "", "demo": "messaging\/create-twilio-provider.md", @@ -18883,7 +19595,7 @@ "x-appwrite": { "method": "updateTwilioProvider", "group": "providers", - "weight": 290, + "weight": 285, "cookies": false, "type": "", "demo": "messaging\/update-twilio-provider.md", @@ -18981,7 +19693,7 @@ "x-appwrite": { "method": "createVonageProvider", "group": "providers", - "weight": 278, + "weight": 273, "cookies": false, "type": "", "demo": "messaging\/create-vonage-provider.md", @@ -19076,7 +19788,7 @@ "x-appwrite": { "method": "updateVonageProvider", "group": "providers", - "weight": 291, + "weight": 286, "cookies": false, "type": "", "demo": "messaging\/update-vonage-provider.md", @@ -19174,7 +19886,7 @@ "x-appwrite": { "method": "getProvider", "group": "providers", - "weight": 283, + "weight": 278, "cookies": false, "type": "", "demo": "messaging\/get-provider.md", @@ -19227,7 +19939,7 @@ "x-appwrite": { "method": "deleteProvider", "group": "providers", - "weight": 294, + "weight": 289, "cookies": false, "type": "", "demo": "messaging\/delete-provider.md", @@ -19289,7 +20001,7 @@ "x-appwrite": { "method": "listProviderLogs", "group": "providers", - "weight": 282, + "weight": 277, "cookies": false, "type": "", "demo": "messaging\/list-provider-logs.md", @@ -19364,7 +20076,7 @@ "x-appwrite": { "method": "listSubscriberLogs", "group": "subscribers", - "weight": 303, + "weight": 298, "cookies": false, "type": "", "demo": "messaging\/list-subscriber-logs.md", @@ -19439,7 +20151,7 @@ "x-appwrite": { "method": "listTopics", "group": "topics", - "weight": 296, + "weight": 291, "cookies": false, "type": "", "demo": "messaging\/list-topics.md", @@ -19513,7 +20225,7 @@ "x-appwrite": { "method": "createTopic", "group": "topics", - "weight": 295, + "weight": 290, "cookies": false, "type": "", "demo": "messaging\/create-topic.md", @@ -19596,7 +20308,7 @@ "x-appwrite": { "method": "getTopic", "group": "topics", - "weight": 298, + "weight": 293, "cookies": false, "type": "", "demo": "messaging\/get-topic.md", @@ -19656,7 +20368,7 @@ "x-appwrite": { "method": "updateTopic", "group": "topics", - "weight": 299, + "weight": 294, "cookies": false, "type": "", "demo": "messaging\/update-topic.md", @@ -19733,7 +20445,7 @@ "x-appwrite": { "method": "deleteTopic", "group": "topics", - "weight": 300, + "weight": 295, "cookies": false, "type": "", "demo": "messaging\/delete-topic.md", @@ -19795,7 +20507,7 @@ "x-appwrite": { "method": "listTopicLogs", "group": "topics", - "weight": 297, + "weight": 292, "cookies": false, "type": "", "demo": "messaging\/list-topic-logs.md", @@ -19870,7 +20582,7 @@ "x-appwrite": { "method": "listSubscribers", "group": "subscribers", - "weight": 302, + "weight": 297, "cookies": false, "type": "", "demo": "messaging\/list-subscribers.md", @@ -19954,7 +20666,7 @@ "x-appwrite": { "method": "createSubscriber", "group": "subscribers", - "weight": 301, + "weight": 296, "cookies": false, "type": "", "demo": "messaging\/create-subscriber.md", @@ -20044,7 +20756,7 @@ "x-appwrite": { "method": "getSubscriber", "group": "subscribers", - "weight": 304, + "weight": 299, "cookies": false, "type": "", "demo": "messaging\/get-subscriber.md", @@ -20107,7 +20819,7 @@ "x-appwrite": { "method": "deleteSubscriber", "group": "subscribers", - "weight": 305, + "weight": 300, "cookies": false, "type": "", "demo": "messaging\/delete-subscriber.md", @@ -20182,7 +20894,7 @@ "x-appwrite": { "method": "list", "group": null, - "weight": 263, + "weight": 258, "cookies": false, "type": "", "demo": "migrations\/list.md", @@ -20256,7 +20968,7 @@ "x-appwrite": { "method": "createAppwriteMigration", "group": null, - "weight": 258, + "weight": 253, "cookies": false, "type": "", "demo": "migrations\/create-appwrite-migration.md", @@ -20344,7 +21056,7 @@ "x-appwrite": { "method": "getAppwriteReport", "group": null, - "weight": 265, + "weight": 260, "cookies": false, "type": "", "demo": "migrations\/get-appwrite-report.md", @@ -20437,7 +21149,7 @@ "x-appwrite": { "method": "createCsvMigration", "group": null, - "weight": 262, + "weight": 257, "cookies": false, "type": "", "demo": "migrations\/create-csv-migration.md", @@ -20521,7 +21233,7 @@ "x-appwrite": { "method": "createFirebaseMigration", "group": null, - "weight": 259, + "weight": 254, "cookies": false, "type": "", "demo": "migrations\/create-firebase-migration.md", @@ -20597,7 +21309,7 @@ "x-appwrite": { "method": "getFirebaseReport", "group": null, - "weight": 266, + "weight": 261, "cookies": false, "type": "", "demo": "migrations\/get-firebase-report.md", @@ -20669,7 +21381,7 @@ "x-appwrite": { "method": "createNHostMigration", "group": null, - "weight": 261, + "weight": 256, "cookies": false, "type": "", "demo": "migrations\/create-n-host-migration.md", @@ -20780,7 +21492,7 @@ "x-appwrite": { "method": "getNHostReport", "group": null, - "weight": 268, + "weight": 263, "cookies": false, "type": "", "demo": "migrations\/get-n-host-report.md", @@ -20913,7 +21625,7 @@ "x-appwrite": { "method": "createSupabaseMigration", "group": null, - "weight": 260, + "weight": 255, "cookies": false, "type": "", "demo": "migrations\/create-supabase-migration.md", @@ -21018,7 +21730,7 @@ "x-appwrite": { "method": "getSupabaseReport", "group": null, - "weight": 267, + "weight": 262, "cookies": false, "type": "", "demo": "migrations\/get-supabase-report.md", @@ -21142,7 +21854,7 @@ "x-appwrite": { "method": "get", "group": null, - "weight": 264, + "weight": 259, "cookies": false, "type": "", "demo": "migrations\/get.md", @@ -21200,7 +21912,7 @@ "x-appwrite": { "method": "retry", "group": null, - "weight": 269, + "weight": 264, "cookies": false, "type": "", "demo": "migrations\/retry.md", @@ -21251,7 +21963,7 @@ "x-appwrite": { "method": "delete", "group": null, - "weight": 270, + "weight": 265, "cookies": false, "type": "", "demo": "migrations\/delete.md", @@ -21311,7 +22023,7 @@ "x-appwrite": { "method": "getUsage", "group": null, - "weight": 149, + "weight": 148, "cookies": false, "type": "", "demo": "project\/get-usage.md", @@ -21399,7 +22111,7 @@ "x-appwrite": { "method": "listVariables", "group": null, - "weight": 151, + "weight": 150, "cookies": false, "type": "", "demo": "project\/list-variables.md", @@ -21445,7 +22157,7 @@ "x-appwrite": { "method": "createVariable", "group": null, - "weight": 150, + "weight": 149, "cookies": false, "type": "", "demo": "project\/create-variable.md", @@ -21523,7 +22235,7 @@ "x-appwrite": { "method": "getVariable", "group": null, - "weight": 152, + "weight": 151, "cookies": false, "type": "", "demo": "project\/get-variable.md", @@ -21581,7 +22293,7 @@ "x-appwrite": { "method": "updateVariable", "group": null, - "weight": 153, + "weight": 152, "cookies": false, "type": "", "demo": "project\/update-variable.md", @@ -21661,7 +22373,7 @@ "x-appwrite": { "method": "deleteVariable", "group": null, - "weight": 154, + "weight": 153, "cookies": false, "type": "", "demo": "project\/delete-variable.md", @@ -21721,11 +22433,11 @@ "x-appwrite": { "method": "list", "group": "projects", - "weight": 103, + "weight": 436, "cookies": false, "type": "", "demo": "projects\/list.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/projects\/list.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/masterGet a list of all projects. You can use the query params to filter your results. ", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -21927,7 +22639,7 @@ "x-appwrite": { "method": "get", "group": "projects", - "weight": 104, + "weight": 103, "cookies": false, "type": "", "demo": "projects\/get.md", @@ -21985,7 +22697,7 @@ "x-appwrite": { "method": "update", "group": "projects", - "weight": 105, + "weight": 104, "cookies": false, "type": "", "demo": "projects\/update.md", @@ -22100,7 +22812,7 @@ "x-appwrite": { "method": "delete", "group": "projects", - "weight": 122, + "weight": 121, "cookies": false, "type": "", "demo": "projects\/delete.md", @@ -22160,7 +22872,7 @@ "x-appwrite": { "method": "updateApiStatus", "group": "projects", - "weight": 109, + "weight": 108, "cookies": false, "type": "", "demo": "projects\/update-api-status.md", @@ -22232,7 +22944,7 @@ } ], "description": "Update the status of a specific API type. Use this endpoint to enable or disable API types such as REST, GraphQL and Realtime.", - "demo": "projects\/update-a-p-i-status.md" + "demo": "projects\/update-api-status.md" } ], "auth": { @@ -22314,7 +23026,7 @@ "x-appwrite": { "method": "updateApiStatusAll", "group": "projects", - "weight": 110, + "weight": 109, "cookies": false, "type": "", "demo": "projects\/update-api-status-all.md", @@ -22382,7 +23094,7 @@ } ], "description": "Update the status of all API types. Use this endpoint to enable or disable API types such as REST, GraphQL and Realtime all at once.", - "demo": "projects\/update-a-p-i-status-all.md" + "demo": "projects\/update-api-status-all.md" } ], "auth": { @@ -22451,7 +23163,7 @@ "x-appwrite": { "method": "updateAuthDuration", "group": "auth", - "weight": 115, + "weight": 114, "cookies": false, "type": "", "demo": "projects\/update-auth-duration.md", @@ -22530,7 +23242,7 @@ "x-appwrite": { "method": "updateAuthLimit", "group": "auth", - "weight": 114, + "weight": 113, "cookies": false, "type": "", "demo": "projects\/update-auth-limit.md", @@ -22609,7 +23321,7 @@ "x-appwrite": { "method": "updateAuthSessionsLimit", "group": "auth", - "weight": 120, + "weight": 119, "cookies": false, "type": "", "demo": "projects\/update-auth-sessions-limit.md", @@ -22688,7 +23400,7 @@ "x-appwrite": { "method": "updateMembershipsPrivacy", "group": "auth", - "weight": 113, + "weight": 112, "cookies": false, "type": "", "demo": "projects\/update-memberships-privacy.md", @@ -22779,7 +23491,7 @@ "x-appwrite": { "method": "updateMockNumbers", "group": "auth", - "weight": 121, + "weight": 120, "cookies": false, "type": "", "demo": "projects\/update-mock-numbers.md", @@ -22861,7 +23573,7 @@ "x-appwrite": { "method": "updateAuthPasswordDictionary", "group": "auth", - "weight": 118, + "weight": 117, "cookies": false, "type": "", "demo": "projects\/update-auth-password-dictionary.md", @@ -22940,7 +23652,7 @@ "x-appwrite": { "method": "updateAuthPasswordHistory", "group": "auth", - "weight": 117, + "weight": 116, "cookies": false, "type": "", "demo": "projects\/update-auth-password-history.md", @@ -23019,7 +23731,7 @@ "x-appwrite": { "method": "updatePersonalDataCheck", "group": "auth", - "weight": 119, + "weight": 118, "cookies": false, "type": "", "demo": "projects\/update-personal-data-check.md", @@ -23098,7 +23810,7 @@ "x-appwrite": { "method": "updateSessionAlerts", "group": "auth", - "weight": 112, + "weight": 111, "cookies": false, "type": "", "demo": "projects\/update-session-alerts.md", @@ -23177,7 +23889,7 @@ "x-appwrite": { "method": "updateSessionInvalidation", "group": "auth", - "weight": 148, + "weight": 147, "cookies": false, "type": "", "demo": "projects\/update-session-invalidation.md", @@ -23256,7 +23968,7 @@ "x-appwrite": { "method": "updateAuthStatus", "group": "auth", - "weight": 116, + "weight": 115, "cookies": false, "type": "", "demo": "projects\/update-auth-status.md", @@ -23356,7 +24068,7 @@ "x-appwrite": { "method": "listDevKeys", "group": "devKeys", - "weight": 427, + "weight": 434, "cookies": false, "type": "", "demo": "projects\/list-dev-keys.md", @@ -23424,7 +24136,7 @@ "x-appwrite": { "method": "createDevKey", "group": "devKeys", - "weight": 424, + "weight": 431, "cookies": false, "type": "", "demo": "projects\/create-dev-key.md", @@ -23509,7 +24221,7 @@ "x-appwrite": { "method": "getDevKey", "group": "devKeys", - "weight": 426, + "weight": 433, "cookies": false, "type": "", "demo": "projects\/get-dev-key.md", @@ -23577,7 +24289,7 @@ "x-appwrite": { "method": "updateDevKey", "group": "devKeys", - "weight": 425, + "weight": 432, "cookies": false, "type": "", "demo": "projects\/update-dev-key.md", @@ -23663,7 +24375,7 @@ "x-appwrite": { "method": "deleteDevKey", "group": "devKeys", - "weight": 428, + "weight": 435, "cookies": false, "type": "", "demo": "projects\/delete-dev-key.md", @@ -23733,10 +24445,10 @@ "x-appwrite": { "method": "createJWT", "group": "auth", - "weight": 134, + "weight": 133, "cookies": false, "type": "", - "demo": "projects\/create-j-w-t.md", + "demo": "projects\/create-jwt.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/projects\/create-jwt.md", "rate-limit": 0, "rate-time": 3600, @@ -23820,7 +24532,7 @@ "x-appwrite": { "method": "listKeys", "group": "keys", - "weight": 130, + "weight": 129, "cookies": false, "type": "", "demo": "projects\/list-keys.md", @@ -23878,7 +24590,7 @@ "x-appwrite": { "method": "createKey", "group": "keys", - "weight": 129, + "weight": 128, "cookies": false, "type": "", "demo": "projects\/create-key.md", @@ -23971,7 +24683,7 @@ "x-appwrite": { "method": "getKey", "group": "keys", - "weight": 131, + "weight": 130, "cookies": false, "type": "", "demo": "projects\/get-key.md", @@ -24039,7 +24751,7 @@ "x-appwrite": { "method": "updateKey", "group": "keys", - "weight": 132, + "weight": 131, "cookies": false, "type": "", "demo": "projects\/update-key.md", @@ -24133,7 +24845,7 @@ "x-appwrite": { "method": "deleteKey", "group": "keys", - "weight": 133, + "weight": 132, "cookies": false, "type": "", "demo": "projects\/delete-key.md", @@ -24203,10 +24915,10 @@ "x-appwrite": { "method": "updateOAuth2", "group": "auth", - "weight": 111, + "weight": 110, "cookies": false, "type": "", - "demo": "projects\/update-o-auth2.md", + "demo": "projects\/update-o-auth-2.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/projects\/update-oauth2.md", "rate-limit": 0, "rate-time": 3600, @@ -24341,7 +25053,7 @@ "x-appwrite": { "method": "listPlatforms", "group": "platforms", - "weight": 136, + "weight": 135, "cookies": false, "type": "", "demo": "projects\/list-platforms.md", @@ -24399,7 +25111,7 @@ "x-appwrite": { "method": "createPlatform", "group": "platforms", - "weight": 135, + "weight": 134, "cookies": false, "type": "", "demo": "projects\/create-platform.md", @@ -24518,7 +25230,7 @@ "x-appwrite": { "method": "getPlatform", "group": "platforms", - "weight": 137, + "weight": 136, "cookies": false, "type": "", "demo": "projects\/get-platform.md", @@ -24586,7 +25298,7 @@ "x-appwrite": { "method": "updatePlatform", "group": "platforms", - "weight": 138, + "weight": 137, "cookies": false, "type": "", "demo": "projects\/update-platform.md", @@ -24681,7 +25393,7 @@ "x-appwrite": { "method": "deletePlatform", "group": "platforms", - "weight": 139, + "weight": 138, "cookies": false, "type": "", "demo": "projects\/delete-platform.md", @@ -24751,7 +25463,7 @@ "x-appwrite": { "method": "updateServiceStatus", "group": "projects", - "weight": 107, + "weight": 106, "cookies": false, "type": "", "demo": "projects\/update-service-status.md", @@ -24853,7 +25565,7 @@ "x-appwrite": { "method": "updateServiceStatusAll", "group": "projects", - "weight": 108, + "weight": 107, "cookies": false, "type": "", "demo": "projects\/update-service-status-all.md", @@ -24932,7 +25644,7 @@ "x-appwrite": { "method": "updateSmtp", "group": "templates", - "weight": 140, + "weight": 139, "cookies": false, "type": "", "demo": "projects\/update-smtp.md", @@ -25016,7 +25728,7 @@ } ], "description": "Update the SMTP configuration for your project. Use this endpoint to configure your project's SMTP provider with your custom settings for sending transactional emails. ", - "demo": "projects\/update-s-m-t-p.md" + "demo": "projects\/update-smtp.md" } ], "auth": { @@ -25124,7 +25836,7 @@ "x-appwrite": { "method": "createSmtpTest", "group": "templates", - "weight": 141, + "weight": 140, "cookies": false, "type": "", "demo": "projects\/create-smtp-test.md", @@ -25212,7 +25924,7 @@ } ], "description": "Send a test email to verify SMTP configuration. ", - "demo": "projects\/create-s-m-t-p-test.md" + "demo": "projects\/create-smtp-test.md" } ], "auth": { @@ -25333,7 +26045,7 @@ "x-appwrite": { "method": "updateTeam", "group": "projects", - "weight": 106, + "weight": 105, "cookies": false, "type": "", "demo": "projects\/update-team.md", @@ -25412,7 +26124,7 @@ "x-appwrite": { "method": "getEmailTemplate", "group": "templates", - "weight": 143, + "weight": 142, "cookies": false, "type": "", "demo": "projects\/get-email-template.md", @@ -25636,7 +26348,7 @@ "x-appwrite": { "method": "updateEmailTemplate", "group": "templates", - "weight": 145, + "weight": 144, "cookies": false, "type": "", "demo": "projects\/update-email-template.md", @@ -25900,7 +26612,7 @@ "x-appwrite": { "method": "deleteEmailTemplate", "group": "templates", - "weight": 147, + "weight": 146, "cookies": false, "type": "", "demo": "projects\/delete-email-template.md", @@ -26126,7 +26838,7 @@ "x-appwrite": { "method": "getSmsTemplate", "group": "templates", - "weight": 142, + "weight": 141, "cookies": false, "type": "", "demo": "projects\/get-sms-template.md", @@ -26198,7 +26910,7 @@ } ], "description": "Get a custom SMS template for the specified locale and type returning it's contents.", - "demo": "projects\/get-s-m-s-template.md" + "demo": "projects\/get-sms-template.md" } ], "auth": { @@ -26409,7 +27121,7 @@ "x-appwrite": { "method": "updateSmsTemplate", "group": "templates", - "weight": 144, + "weight": 143, "cookies": false, "type": "", "demo": "projects\/update-sms-template.md", @@ -26485,7 +27197,7 @@ } ], "description": "Update a custom SMS template for the specified locale and type. Use this endpoint to modify the content of your SMS templates. ", - "demo": "projects\/update-s-m-s-template.md" + "demo": "projects\/update-sms-template.md" } ], "auth": { @@ -26715,7 +27427,7 @@ "x-appwrite": { "method": "deleteSmsTemplate", "group": "templates", - "weight": 146, + "weight": 145, "cookies": false, "type": "", "demo": "projects\/delete-sms-template.md", @@ -26787,7 +27499,7 @@ } ], "description": "Reset a custom SMS template to its default value. This endpoint removes any custom message and restores the template to its original state. ", - "demo": "projects\/delete-s-m-s-template.md" + "demo": "projects\/delete-sms-template.md" } ], "auth": { @@ -27000,7 +27712,7 @@ "x-appwrite": { "method": "listWebhooks", "group": "webhooks", - "weight": 124, + "weight": 123, "cookies": false, "type": "", "demo": "projects\/list-webhooks.md", @@ -27058,7 +27770,7 @@ "x-appwrite": { "method": "createWebhook", "group": "webhooks", - "weight": 123, + "weight": 122, "cookies": false, "type": "", "demo": "projects\/create-webhook.md", @@ -27173,7 +27885,7 @@ "x-appwrite": { "method": "getWebhook", "group": "webhooks", - "weight": 125, + "weight": 124, "cookies": false, "type": "", "demo": "projects\/get-webhook.md", @@ -27241,7 +27953,7 @@ "x-appwrite": { "method": "updateWebhook", "group": "webhooks", - "weight": 126, + "weight": 125, "cookies": false, "type": "", "demo": "projects\/update-webhook.md", @@ -27357,7 +28069,7 @@ "x-appwrite": { "method": "deleteWebhook", "group": "webhooks", - "weight": 128, + "weight": 127, "cookies": false, "type": "", "demo": "projects\/delete-webhook.md", @@ -27427,7 +28139,7 @@ "x-appwrite": { "method": "updateWebhookSignature", "group": "webhooks", - "weight": 127, + "weight": 126, "cookies": false, "type": "", "demo": "projects\/update-webhook-signature.md", @@ -27497,11 +28209,11 @@ "x-appwrite": { "method": "listRules", "group": null, - "weight": 241, + "weight": 502, "cookies": false, "type": "", "demo": "proxy\/list-rules.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/proxy\/list-rules.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/masterGet a list of all the proxy rules. You can use the query params to filter your results.", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -27571,10 +28283,10 @@ "x-appwrite": { "method": "createAPIRule", "group": null, - "weight": 489, + "weight": 497, "cookies": false, "type": "", - "demo": "proxy\/create-a-p-i-rule.md", + "demo": "proxy\/create-api-rule.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/masterCreate a new proxy rule for serving Appwrite's API on custom domain.", "rate-limit": 10, "rate-time": 60, @@ -27638,7 +28350,7 @@ "x-appwrite": { "method": "createFunctionRule", "group": null, - "weight": 491, + "weight": 499, "cookies": false, "type": "", "demo": "proxy\/create-function-rule.md", @@ -27716,7 +28428,7 @@ "x-appwrite": { "method": "createRedirectRule", "group": null, - "weight": 492, + "weight": 500, "cookies": false, "type": "", "demo": "proxy\/create-redirect-rule.md", @@ -27829,7 +28541,7 @@ "x-appwrite": { "method": "createSiteRule", "group": null, - "weight": 490, + "weight": 498, "cookies": false, "type": "", "demo": "proxy\/create-site-rule.md", @@ -27907,11 +28619,11 @@ "x-appwrite": { "method": "getRule", "group": null, - "weight": 242, + "weight": 501, "cookies": false, "type": "", "demo": "proxy\/get-rule.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/proxy\/get-rule.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/masterGet a proxy rule by its unique ID.", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -27958,11 +28670,11 @@ "x-appwrite": { "method": "deleteRule", "group": null, - "weight": 243, + "weight": 503, "cookies": false, "type": "", "demo": "proxy\/delete-rule.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/proxy\/delete-rule.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/masterDelete a proxy rule by its unique ID.", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -28018,11 +28730,11 @@ "x-appwrite": { "method": "updateRuleVerification", "group": null, - "weight": 244, + "weight": 504, "cookies": false, "type": "", "demo": "proxy\/update-rule-verification.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/proxy\/update-rule-verification.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/masterRetry getting verification process of a proxy rule. This endpoint triggers domain verification by checking DNS records (CNAME) against the configured target domain. If verification is successful, a TLS certificate will be automatically provisioned for the domain.", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -28078,7 +28790,7 @@ "x-appwrite": { "method": "list", "group": "sites", - "weight": 461, + "weight": 469, "cookies": false, "type": "", "demo": "sites\/list.md", @@ -28148,7 +28860,7 @@ "x-appwrite": { "method": "create", "group": "sites", - "weight": 459, + "weight": 467, "cookies": false, "type": "", "demo": "sites\/create.md", @@ -28397,7 +29109,7 @@ "x-appwrite": { "method": "listFrameworks", "group": "frameworks", - "weight": 464, + "weight": 472, "cookies": false, "type": "", "demo": "sites\/list-frameworks.md", @@ -28446,7 +29158,7 @@ "x-appwrite": { "method": "listSpecifications", "group": "frameworks", - "weight": 487, + "weight": 495, "cookies": false, "type": "", "demo": "sites\/list-specifications.md", @@ -28496,7 +29208,7 @@ "x-appwrite": { "method": "listTemplates", "group": "templates", - "weight": 483, + "weight": 491, "cookies": false, "type": "", "demo": "sites\/list-templates.md", @@ -28596,7 +29308,7 @@ "x-appwrite": { "method": "getTemplate", "group": "templates", - "weight": 484, + "weight": 492, "cookies": false, "type": "", "demo": "sites\/get-template.md", @@ -28656,7 +29368,7 @@ "x-appwrite": { "method": "listUsage", "group": null, - "weight": 485, + "weight": 493, "cookies": false, "type": "", "demo": "sites\/list-usage.md", @@ -28728,7 +29440,7 @@ "x-appwrite": { "method": "get", "group": "sites", - "weight": 460, + "weight": 468, "cookies": false, "type": "", "demo": "sites\/get.md", @@ -28787,7 +29499,7 @@ "x-appwrite": { "method": "update", "group": "sites", - "weight": 462, + "weight": 470, "cookies": false, "type": "", "demo": "sites\/update.md", @@ -29032,7 +29744,7 @@ "x-appwrite": { "method": "delete", "group": "sites", - "weight": 463, + "weight": 471, "cookies": false, "type": "", "demo": "sites\/delete.md", @@ -29093,7 +29805,7 @@ "x-appwrite": { "method": "updateSiteDeployment", "group": "sites", - "weight": 470, + "weight": 478, "cookies": false, "type": "", "demo": "sites\/update-site-deployment.md", @@ -29173,7 +29885,7 @@ "x-appwrite": { "method": "listDeployments", "group": "deployments", - "weight": 469, + "weight": 477, "cookies": false, "type": "", "demo": "sites\/list-deployments.md", @@ -29256,7 +29968,7 @@ "x-appwrite": { "method": "createDeployment", "group": "deployments", - "weight": 465, + "weight": 473, "cookies": false, "type": "upload", "demo": "sites\/create-deployment.md", @@ -29357,7 +30069,7 @@ "x-appwrite": { "method": "createDuplicateDeployment", "group": "deployments", - "weight": 473, + "weight": 481, "cookies": false, "type": "", "demo": "sites\/create-duplicate-deployment.md", @@ -29437,7 +30149,7 @@ "x-appwrite": { "method": "createTemplateDeployment", "group": "deployments", - "weight": 466, + "weight": 474, "cookies": false, "type": "", "demo": "sites\/create-template-deployment.md", @@ -29540,7 +30252,7 @@ "x-appwrite": { "method": "createVcsDeployment", "group": "deployments", - "weight": 467, + "weight": 475, "cookies": false, "type": "", "demo": "sites\/create-vcs-deployment.md", @@ -29638,7 +30350,7 @@ "x-appwrite": { "method": "getDeployment", "group": "deployments", - "weight": 468, + "weight": 476, "cookies": false, "type": "", "demo": "sites\/get-deployment.md", @@ -29700,7 +30412,7 @@ "x-appwrite": { "method": "deleteDeployment", "group": "deployments", - "weight": 471, + "weight": 479, "cookies": false, "type": "", "demo": "sites\/delete-deployment.md", @@ -29764,7 +30476,7 @@ "x-appwrite": { "method": "getDeploymentDownload", "group": "deployments", - "weight": 472, + "weight": 480, "cookies": false, "type": "location", "demo": "sites\/get-deployment-download.md", @@ -29854,7 +30566,7 @@ "x-appwrite": { "method": "updateDeploymentStatus", "group": "deployments", - "weight": 474, + "weight": 482, "cookies": false, "type": "", "demo": "sites\/update-deployment-status.md", @@ -29925,7 +30637,7 @@ "x-appwrite": { "method": "listLogs", "group": "logs", - "weight": 476, + "weight": 484, "cookies": false, "type": "", "demo": "sites\/list-logs.md", @@ -29996,7 +30708,7 @@ "x-appwrite": { "method": "getLog", "group": "logs", - "weight": 475, + "weight": 483, "cookies": false, "type": "", "demo": "sites\/get-log.md", @@ -30058,7 +30770,7 @@ "x-appwrite": { "method": "deleteLog", "group": "logs", - "weight": 477, + "weight": 485, "cookies": false, "type": "", "demo": "sites\/delete-log.md", @@ -30129,7 +30841,7 @@ "x-appwrite": { "method": "getUsage", "group": null, - "weight": 486, + "weight": 494, "cookies": false, "type": "", "demo": "sites\/get-usage.md", @@ -30211,7 +30923,7 @@ "x-appwrite": { "method": "listVariables", "group": "variables", - "weight": 480, + "weight": 488, "cookies": false, "type": "", "demo": "sites\/list-variables.md", @@ -30270,7 +30982,7 @@ "x-appwrite": { "method": "createVariable", "group": "variables", - "weight": 478, + "weight": 486, "cookies": false, "type": "", "demo": "sites\/create-variable.md", @@ -30361,7 +31073,7 @@ "x-appwrite": { "method": "getVariable", "group": "variables", - "weight": 479, + "weight": 487, "cookies": false, "type": "", "demo": "sites\/get-variable.md", @@ -30430,7 +31142,7 @@ "x-appwrite": { "method": "updateVariable", "group": "variables", - "weight": 481, + "weight": 489, "cookies": false, "type": "", "demo": "sites\/update-variable.md", @@ -30521,7 +31233,7 @@ "x-appwrite": { "method": "deleteVariable", "group": "variables", - "weight": 482, + "weight": 490, "cookies": false, "type": "", "demo": "sites\/delete-variable.md", @@ -30592,7 +31304,7 @@ "x-appwrite": { "method": "listBuckets", "group": "buckets", - "weight": 156, + "weight": 155, "cookies": false, "type": "", "demo": "storage\/list-buckets.md", @@ -30665,7 +31377,7 @@ "x-appwrite": { "method": "createBucket", "group": "buckets", - "weight": 155, + "weight": 154, "cookies": false, "type": "", "demo": "storage\/create-bucket.md", @@ -30792,7 +31504,7 @@ "x-appwrite": { "method": "getBucket", "group": "buckets", - "weight": 157, + "weight": 156, "cookies": false, "type": "", "demo": "storage\/get-bucket.md", @@ -30851,7 +31563,7 @@ "x-appwrite": { "method": "updateBucket", "group": "buckets", - "weight": 158, + "weight": 157, "cookies": false, "type": "", "demo": "storage\/update-bucket.md", @@ -30975,7 +31687,7 @@ "x-appwrite": { "method": "deleteBucket", "group": "buckets", - "weight": 159, + "weight": 158, "cookies": false, "type": "", "demo": "storage\/delete-bucket.md", @@ -31036,7 +31748,7 @@ "x-appwrite": { "method": "listFiles", "group": "files", - "weight": 161, + "weight": 160, "cookies": false, "type": "", "demo": "storage\/list-files.md", @@ -31122,7 +31834,7 @@ "x-appwrite": { "method": "createFile", "group": "files", - "weight": 160, + "weight": 159, "cookies": false, "type": "upload", "demo": "storage\/create-file.md", @@ -31220,7 +31932,7 @@ "x-appwrite": { "method": "getFile", "group": "files", - "weight": 162, + "weight": 161, "cookies": false, "type": "", "demo": "storage\/get-file.md", @@ -31292,7 +32004,7 @@ "x-appwrite": { "method": "updateFile", "group": "files", - "weight": 167, + "weight": 166, "cookies": false, "type": "", "demo": "storage\/update-file.md", @@ -31381,7 +32093,7 @@ "x-appwrite": { "method": "deleteFile", "group": "files", - "weight": 168, + "weight": 167, "cookies": false, "type": "", "demo": "storage\/delete-file.md", @@ -31448,7 +32160,7 @@ "x-appwrite": { "method": "getFileDownload", "group": "files", - "weight": 164, + "weight": 163, "cookies": false, "type": "location", "demo": "storage\/get-file-download.md", @@ -31526,7 +32238,7 @@ "x-appwrite": { "method": "getFilePreview", "group": "files", - "weight": 163, + "weight": 162, "cookies": false, "type": "location", "demo": "storage\/get-file-preview.md", @@ -31754,7 +32466,7 @@ "x-appwrite": { "method": "getFileView", "group": "files", - "weight": 165, + "weight": 164, "cookies": false, "type": "location", "demo": "storage\/get-file-view.md", @@ -31839,7 +32551,7 @@ "x-appwrite": { "method": "getUsage", "group": null, - "weight": 169, + "weight": 168, "cookies": false, "type": "", "demo": "storage\/get-usage.md", @@ -31911,7 +32623,7 @@ "x-appwrite": { "method": "getBucketUsage", "group": null, - "weight": 170, + "weight": 169, "cookies": false, "type": "", "demo": "storage\/get-bucket-usage.md", @@ -31993,10 +32705,10 @@ "x-appwrite": { "method": "list", "group": "tablesdb", - "weight": 375, + "weight": 376, "cookies": false, "type": "", - "demo": "tables-d-b\/list.md", + "demo": "tablesdb\/list.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/list.md", "rate-limit": 0, "rate-time": 3600, @@ -32066,10 +32778,10 @@ "x-appwrite": { "method": "create", "group": "tablesdb", - "weight": 371, + "weight": 372, "cookies": false, "type": "", - "demo": "tables-d-b\/create.md", + "demo": "tablesdb\/create.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/create.md", "rate-limit": 0, "rate-time": 3600, @@ -32145,15 +32857,18 @@ "x-appwrite": { "method": "listUsage", "group": null, - "weight": 377, + "weight": 378, "cookies": false, "type": "", - "demo": "tables-d-b\/list-usage.md", + "demo": "tablesdb\/list-usage.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/list-usage.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "tables.read", + "scope": [ + "tables.read", + "collections.read" + ], "platforms": [ "console" ], @@ -32177,7 +32892,7 @@ } ], "description": "List usage metrics and statistics for all databases in the project. You can view the total number of databases, tables, rows, and storage usage. The response includes both current totals and historical data over time. Use the optional range parameter to specify the time window for historical data: 24h (last 24 hours), 30d (last 30 days), or 90d (last 90 days). If not specified, range defaults to 30 days.", - "demo": "tables-d-b\/list-usage.md" + "demo": "tablesdb\/list-usage.md" } ], "auth": { @@ -32239,10 +32954,10 @@ "x-appwrite": { "method": "get", "group": "tablesdb", - "weight": 372, + "weight": 373, "cookies": false, "type": "", - "demo": "tables-d-b\/get.md", + "demo": "tablesdb\/get.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/get.md", "rate-limit": 0, "rate-time": 3600, @@ -32298,10 +33013,10 @@ "x-appwrite": { "method": "update", "group": "tablesdb", - "weight": 373, + "weight": 374, "cookies": false, "type": "", - "demo": "tables-d-b\/update.md", + "demo": "tablesdb\/update.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/update.md", "rate-limit": 0, "rate-time": 3600, @@ -32374,10 +33089,10 @@ "x-appwrite": { "method": "delete", "group": "tablesdb", - "weight": 374, + "weight": 375, "cookies": false, "type": "", - "demo": "tables-d-b\/delete.md", + "demo": "tablesdb\/delete.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/delete.md", "rate-limit": 0, "rate-time": 3600, @@ -32434,16 +33149,19 @@ "deprecated": false, "x-appwrite": { "method": "listTables", - "group": null, - "weight": 382, + "group": "tables", + "weight": 383, "cookies": false, "type": "", - "demo": "tables-d-b\/list-tables.md", + "demo": "tablesdb\/list-tables.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/list-tables.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "tables.read", + "scope": [ + "tables.read", + "collections.read" + ], "platforms": [ "server" ], @@ -32517,16 +33235,19 @@ "deprecated": false, "x-appwrite": { "method": "createTable", - "group": null, - "weight": 378, + "group": "tables", + "weight": 379, "cookies": false, "type": "", - "demo": "tables-d-b\/create-table.md", + "demo": "tablesdb\/create-table.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/create-table.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "tables.write", + "scope": [ + "tables.write", + "collections.write" + ], "platforms": [ "server" ], @@ -32621,16 +33342,19 @@ "deprecated": false, "x-appwrite": { "method": "getTable", - "group": null, - "weight": 379, + "group": "tables", + "weight": 380, "cookies": false, "type": "", - "demo": "tables-d-b\/get-table.md", + "demo": "tablesdb\/get-table.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/get-table.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "tables.read", + "scope": [ + "tables.read", + "collections.read" + ], "platforms": [ "server" ], @@ -32690,16 +33414,19 @@ "deprecated": false, "x-appwrite": { "method": "updateTable", - "group": null, - "weight": 380, + "group": "tables", + "weight": 381, "cookies": false, "type": "", - "demo": "tables-d-b\/update-table.md", + "demo": "tablesdb\/update-table.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/update-table.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "tables.write", + "scope": [ + "tables.write", + "collections.write" + ], "platforms": [ "server" ], @@ -32789,16 +33516,19 @@ "deprecated": false, "x-appwrite": { "method": "deleteTable", - "group": null, - "weight": 381, + "group": "tables", + "weight": 382, "cookies": false, "type": "", - "demo": "tables-d-b\/delete-table.md", + "demo": "tablesdb\/delete-table.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/delete-table.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "tables.write", + "scope": [ + "tables.write", + "collections.write" + ], "platforms": [ "server" ], @@ -32861,15 +33591,18 @@ "x-appwrite": { "method": "listColumns", "group": "columns", - "weight": 387, + "weight": 388, "cookies": false, "type": "", - "demo": "tables-d-b\/list-columns.md", + "demo": "tablesdb\/list-columns.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/list-columns.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "tables.read", + "scope": [ + "tables.read", + "collections.read" + ], "platforms": [ "server" ], @@ -32945,15 +33678,18 @@ "x-appwrite": { "method": "createBooleanColumn", "group": "columns", - "weight": 388, + "weight": 389, "cookies": false, "type": "", - "demo": "tables-d-b\/create-boolean-column.md", + "demo": "tablesdb\/create-boolean-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/create-boolean-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "tables.write", + "scope": [ + "tables.write", + "collections.write" + ], "platforms": [ "server" ], @@ -33051,15 +33787,18 @@ "x-appwrite": { "method": "updateBooleanColumn", "group": "columns", - "weight": 389, + "weight": 390, "cookies": false, "type": "", - "demo": "tables-d-b\/update-boolean-column.md", + "demo": "tablesdb\/update-boolean-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/update-boolean-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "tables.write", + "scope": [ + "tables.write", + "collections.write" + ], "platforms": [ "server" ], @@ -33162,15 +33901,18 @@ "x-appwrite": { "method": "createDatetimeColumn", "group": "columns", - "weight": 390, + "weight": 391, "cookies": false, "type": "", - "demo": "tables-d-b\/create-datetime-column.md", + "demo": "tablesdb\/create-datetime-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/create-datetime-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "tables.write", + "scope": [ + "tables.write", + "collections.write" + ], "platforms": [ "server" ], @@ -33268,15 +34010,18 @@ "x-appwrite": { "method": "updateDatetimeColumn", "group": "columns", - "weight": 391, + "weight": 392, "cookies": false, "type": "", - "demo": "tables-d-b\/update-datetime-column.md", + "demo": "tablesdb\/update-datetime-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/update-datetime-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "tables.write", + "scope": [ + "tables.write", + "collections.write" + ], "platforms": [ "server" ], @@ -33379,15 +34124,18 @@ "x-appwrite": { "method": "createEmailColumn", "group": "columns", - "weight": 392, + "weight": 393, "cookies": false, "type": "", - "demo": "tables-d-b\/create-email-column.md", + "demo": "tablesdb\/create-email-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/create-email-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "tables.write", + "scope": [ + "tables.write", + "collections.write" + ], "platforms": [ "server" ], @@ -33485,15 +34233,18 @@ "x-appwrite": { "method": "updateEmailColumn", "group": "columns", - "weight": 393, + "weight": 394, "cookies": false, "type": "", - "demo": "tables-d-b\/update-email-column.md", + "demo": "tablesdb\/update-email-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/update-email-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "tables.write", + "scope": [ + "tables.write", + "collections.write" + ], "platforms": [ "server" ], @@ -33596,15 +34347,18 @@ "x-appwrite": { "method": "createEnumColumn", "group": "columns", - "weight": 394, + "weight": 395, "cookies": false, "type": "", - "demo": "tables-d-b\/create-enum-column.md", + "demo": "tablesdb\/create-enum-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/create-enum-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "tables.write", + "scope": [ + "tables.write", + "collections.write" + ], "platforms": [ "server" ], @@ -33711,15 +34465,18 @@ "x-appwrite": { "method": "updateEnumColumn", "group": "columns", - "weight": 395, + "weight": 396, "cookies": false, "type": "", - "demo": "tables-d-b\/update-enum-column.md", + "demo": "tablesdb\/update-enum-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/update-enum-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "tables.write", + "scope": [ + "tables.write", + "collections.write" + ], "platforms": [ "server" ], @@ -33831,15 +34588,18 @@ "x-appwrite": { "method": "createFloatColumn", "group": "columns", - "weight": 396, + "weight": 397, "cookies": false, "type": "", - "demo": "tables-d-b\/create-float-column.md", + "demo": "tablesdb\/create-float-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/create-float-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "tables.write", + "scope": [ + "tables.write", + "collections.write" + ], "platforms": [ "server" ], @@ -33947,15 +34707,18 @@ "x-appwrite": { "method": "updateFloatColumn", "group": "columns", - "weight": 397, + "weight": 398, "cookies": false, "type": "", - "demo": "tables-d-b\/update-float-column.md", + "demo": "tablesdb\/update-float-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/update-float-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "tables.write", + "scope": [ + "tables.write", + "collections.write" + ], "platforms": [ "server" ], @@ -34068,15 +34831,18 @@ "x-appwrite": { "method": "createIntegerColumn", "group": "columns", - "weight": 398, + "weight": 399, "cookies": false, "type": "", - "demo": "tables-d-b\/create-integer-column.md", + "demo": "tablesdb\/create-integer-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/create-integer-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "tables.write", + "scope": [ + "tables.write", + "collections.write" + ], "platforms": [ "server" ], @@ -34184,15 +34950,18 @@ "x-appwrite": { "method": "updateIntegerColumn", "group": "columns", - "weight": 399, + "weight": 400, "cookies": false, "type": "", - "demo": "tables-d-b\/update-integer-column.md", + "demo": "tablesdb\/update-integer-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/update-integer-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "tables.write", + "scope": [ + "tables.write", + "collections.write" + ], "platforms": [ "server" ], @@ -34305,15 +35074,18 @@ "x-appwrite": { "method": "createIpColumn", "group": "columns", - "weight": 400, + "weight": 401, "cookies": false, "type": "", - "demo": "tables-d-b\/create-ip-column.md", + "demo": "tablesdb\/create-ip-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/create-ip-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "tables.write", + "scope": [ + "tables.write", + "collections.write" + ], "platforms": [ "server" ], @@ -34411,15 +35183,18 @@ "x-appwrite": { "method": "updateIpColumn", "group": "columns", - "weight": 401, + "weight": 402, "cookies": false, "type": "", - "demo": "tables-d-b\/update-ip-column.md", + "demo": "tablesdb\/update-ip-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/update-ip-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "tables.write", + "scope": [ + "tables.write", + "collections.write" + ], "platforms": [ "server" ], @@ -34498,6 +35273,702 @@ } } }, + "\/tablesdb\/{databaseId}\/tables\/{tableId}\/columns\/line": { + "post": { + "summary": "Create line column", + "operationId": "tablesDBCreateLineColumn", + "tags": [ + "tablesDB" + ], + "description": "Create a geometric line column.", + "responses": { + "202": { + "description": "ColumnLine", + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/columnLine" + } + } + } + } + }, + "deprecated": false, + "x-appwrite": { + "method": "createLineColumn", + "group": "columns", + "weight": 403, + "cookies": false, + "type": "", + "demo": "tablesdb\/create-line-column.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/create-line-column.md", + "rate-limit": 0, + "rate-time": 3600, + "rate-key": "url:{url},ip:{ip}", + "scope": [ + "tables.write", + "collections.write" + ], + "platforms": [ + "server" + ], + "packaging": false, + "auth": { + "Project": [] + } + }, + "security": [ + { + "Project": [], + "Key": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + }, + { + "name": "tableId", + "description": "Table ID. You can create a new table using the TablesDB service [server integration](https:\/\/appwrite.io\/docs\/server\/tablesdb#tablesDBCreate).", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + } + ], + "requestBody": { + "content": { + "application\/json": { + "schema": { + "type": "object", + "properties": { + "key": { + "type": "string", + "description": "Column Key.", + "x-example": null + }, + "required": { + "type": "boolean", + "description": "Is column required?", + "x-example": false + }, + "default": { + "type": "array", + "description": "Default value for column when not provided, two-dimensional array of coordinate pairs, [[longitude, latitude], [longitude, latitude], \u2026], listing the vertices of the line in order. Cannot be set when column is required.", + "x-example": "[[1, 2], [3, 4], [5, 6]]", + "items": { + "oneOf": [ + { + "type": "array" + } + ] + }, + "x-nullable": true + } + }, + "required": [ + "key", + "required" + ] + } + } + } + } + } + }, + "\/tablesdb\/{databaseId}\/tables\/{tableId}\/columns\/line\/{key}": { + "patch": { + "summary": "Update line column", + "operationId": "tablesDBUpdateLineColumn", + "tags": [ + "tablesDB" + ], + "description": "Update a line column. Changing the `default` value will not update already existing rows.", + "responses": { + "200": { + "description": "ColumnLine", + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/columnLine" + } + } + } + } + }, + "deprecated": false, + "x-appwrite": { + "method": "updateLineColumn", + "group": "columns", + "weight": 404, + "cookies": false, + "type": "", + "demo": "tablesdb\/update-line-column.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/update-line-column.md", + "rate-limit": 0, + "rate-time": 3600, + "rate-key": "url:{url},ip:{ip}", + "scope": [ + "tables.write", + "collections.write" + ], + "platforms": [ + "server" + ], + "packaging": false, + "auth": { + "Project": [] + } + }, + "security": [ + { + "Project": [], + "Key": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + }, + { + "name": "tableId", + "description": "Table ID. You can create a new table using the TablesDB service [server integration](https:\/\/appwrite.io\/docs\/server\/tablesdb#tablesDBCreate).", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + }, + { + "name": "key", + "description": "Column Key.", + "required": true, + "schema": { + "type": "string" + }, + "in": "path" + } + ], + "requestBody": { + "content": { + "application\/json": { + "schema": { + "type": "object", + "properties": { + "required": { + "type": "boolean", + "description": "Is column required?", + "x-example": false + }, + "default": { + "type": "array", + "description": "Default value for column when not provided, two-dimensional array of coordinate pairs, [[longitude, latitude], [longitude, latitude], \u2026], listing the vertices of the line in order. Cannot be set when column is required.", + "x-example": "[[1, 2], [3, 4], [5, 6]]", + "items": { + "oneOf": [ + { + "type": "array" + } + ] + }, + "x-nullable": true + }, + "newKey": { + "type": "string", + "description": "New Column Key.", + "x-example": null + } + }, + "required": [ + "required" + ] + } + } + } + } + } + }, + "\/tablesdb\/{databaseId}\/tables\/{tableId}\/columns\/point": { + "post": { + "summary": "Create point column", + "operationId": "tablesDBCreatePointColumn", + "tags": [ + "tablesDB" + ], + "description": "Create a geometric point column.", + "responses": { + "202": { + "description": "ColumnPoint", + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/columnPoint" + } + } + } + } + }, + "deprecated": false, + "x-appwrite": { + "method": "createPointColumn", + "group": "columns", + "weight": 405, + "cookies": false, + "type": "", + "demo": "tablesdb\/create-point-column.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/create-point-column.md", + "rate-limit": 0, + "rate-time": 3600, + "rate-key": "url:{url},ip:{ip}", + "scope": [ + "tables.write", + "collections.write" + ], + "platforms": [ + "server" + ], + "packaging": false, + "auth": { + "Project": [] + } + }, + "security": [ + { + "Project": [], + "Key": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + }, + { + "name": "tableId", + "description": "Table ID. You can create a new table using the TablesDB service [server integration](https:\/\/appwrite.io\/docs\/server\/tablesdb#tablesDBCreate).", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + } + ], + "requestBody": { + "content": { + "application\/json": { + "schema": { + "type": "object", + "properties": { + "key": { + "type": "string", + "description": "Column Key.", + "x-example": null + }, + "required": { + "type": "boolean", + "description": "Is column required?", + "x-example": false + }, + "default": { + "type": "array", + "description": "Default value for column when not provided, array of two numbers [longitude, latitude], representing a single coordinate. Cannot be set when column is required.", + "x-example": "[1, 2]", + "items": { + "oneOf": [ + { + "type": "array" + } + ] + }, + "x-nullable": true + } + }, + "required": [ + "key", + "required" + ] + } + } + } + } + } + }, + "\/tablesdb\/{databaseId}\/tables\/{tableId}\/columns\/point\/{key}": { + "patch": { + "summary": "Update point column", + "operationId": "tablesDBUpdatePointColumn", + "tags": [ + "tablesDB" + ], + "description": "Update a point column. Changing the `default` value will not update already existing rows.", + "responses": { + "200": { + "description": "ColumnPoint", + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/columnPoint" + } + } + } + } + }, + "deprecated": false, + "x-appwrite": { + "method": "updatePointColumn", + "group": "columns", + "weight": 406, + "cookies": false, + "type": "", + "demo": "tablesdb\/update-point-column.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/update-point-column.md", + "rate-limit": 0, + "rate-time": 3600, + "rate-key": "url:{url},ip:{ip}", + "scope": [ + "tables.write", + "collections.write" + ], + "platforms": [ + "server" + ], + "packaging": false, + "auth": { + "Project": [] + } + }, + "security": [ + { + "Project": [], + "Key": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + }, + { + "name": "tableId", + "description": "Table ID. You can create a new table using the TablesDB service [server integration](https:\/\/appwrite.io\/docs\/server\/tablesdb#tablesDBCreate).", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + }, + { + "name": "key", + "description": "Column Key.", + "required": true, + "schema": { + "type": "string" + }, + "in": "path" + } + ], + "requestBody": { + "content": { + "application\/json": { + "schema": { + "type": "object", + "properties": { + "required": { + "type": "boolean", + "description": "Is column required?", + "x-example": false + }, + "default": { + "type": "array", + "description": "Default value for column when not provided, array of two numbers [longitude, latitude], representing a single coordinate. Cannot be set when column is required.", + "x-example": "[1, 2]", + "items": { + "oneOf": [ + { + "type": "array" + } + ] + }, + "x-nullable": true + }, + "newKey": { + "type": "string", + "description": "New Column Key.", + "x-example": null + } + }, + "required": [ + "required" + ] + } + } + } + } + } + }, + "\/tablesdb\/{databaseId}\/tables\/{tableId}\/columns\/polygon": { + "post": { + "summary": "Create polygon column", + "operationId": "tablesDBCreatePolygonColumn", + "tags": [ + "tablesDB" + ], + "description": "Create a geometric polygon column.", + "responses": { + "202": { + "description": "ColumnPolygon", + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/columnPolygon" + } + } + } + } + }, + "deprecated": false, + "x-appwrite": { + "method": "createPolygonColumn", + "group": "columns", + "weight": 407, + "cookies": false, + "type": "", + "demo": "tablesdb\/create-polygon-column.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/create-polygon-column.md", + "rate-limit": 0, + "rate-time": 3600, + "rate-key": "url:{url},ip:{ip}", + "scope": [ + "tables.write", + "collections.write" + ], + "platforms": [ + "server" + ], + "packaging": false, + "auth": { + "Project": [] + } + }, + "security": [ + { + "Project": [], + "Key": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + }, + { + "name": "tableId", + "description": "Table ID. You can create a new table using the TablesDB service [server integration](https:\/\/appwrite.io\/docs\/server\/tablesdb#tablesDBCreate).", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + } + ], + "requestBody": { + "content": { + "application\/json": { + "schema": { + "type": "object", + "properties": { + "key": { + "type": "string", + "description": "Column Key.", + "x-example": null + }, + "required": { + "type": "boolean", + "description": "Is column required?", + "x-example": false + }, + "default": { + "type": "array", + "description": "Default value for column when not provided, three-dimensional array where the outer array holds one or more linear rings, [[[longitude, latitude], \u2026], \u2026], the first ring is the exterior boundary, any additional rings are interior holes, and each ring must start and end with the same coordinate pair. Cannot be set when column is required.", + "x-example": "[[[1, 2], [3, 4], [5, 6], [1, 2]]]", + "items": { + "oneOf": [ + { + "type": "array" + } + ] + }, + "x-nullable": true + } + }, + "required": [ + "key", + "required" + ] + } + } + } + } + } + }, + "\/tablesdb\/{databaseId}\/tables\/{tableId}\/columns\/polygon\/{key}": { + "patch": { + "summary": "Update polygon column", + "operationId": "tablesDBUpdatePolygonColumn", + "tags": [ + "tablesDB" + ], + "description": "Update a polygon column. Changing the `default` value will not update already existing rows.", + "responses": { + "200": { + "description": "ColumnPolygon", + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/columnPolygon" + } + } + } + } + }, + "deprecated": false, + "x-appwrite": { + "method": "updatePolygonColumn", + "group": "columns", + "weight": 408, + "cookies": false, + "type": "", + "demo": "tablesdb\/update-polygon-column.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/update-polygon-column.md", + "rate-limit": 0, + "rate-time": 3600, + "rate-key": "url:{url},ip:{ip}", + "scope": [ + "tables.write", + "collections.write" + ], + "platforms": [ + "server" + ], + "packaging": false, + "auth": { + "Project": [] + } + }, + "security": [ + { + "Project": [], + "Key": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + }, + { + "name": "tableId", + "description": "Table ID. You can create a new table using the TablesDB service [server integration](https:\/\/appwrite.io\/docs\/server\/tablesdb#tablesDBCreate).", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + }, + { + "name": "key", + "description": "Column Key.", + "required": true, + "schema": { + "type": "string" + }, + "in": "path" + } + ], + "requestBody": { + "content": { + "application\/json": { + "schema": { + "type": "object", + "properties": { + "required": { + "type": "boolean", + "description": "Is column required?", + "x-example": false + }, + "default": { + "type": "array", + "description": "Default value for column when not provided, three-dimensional array where the outer array holds one or more linear rings, [[[longitude, latitude], \u2026], \u2026], the first ring is the exterior boundary, any additional rings are interior holes, and each ring must start and end with the same coordinate pair. Cannot be set when column is required.", + "x-example": "[[[1, 2], [3, 4], [5, 6], [1, 2]]]", + "items": { + "oneOf": [ + { + "type": "array" + } + ] + }, + "x-nullable": true + }, + "newKey": { + "type": "string", + "description": "New Column Key.", + "x-example": null + } + }, + "required": [ + "required" + ] + } + } + } + } + } + }, "\/tablesdb\/{databaseId}\/tables\/{tableId}\/columns\/relationship": { "post": { "summary": "Create relationship column", @@ -34522,15 +35993,18 @@ "x-appwrite": { "method": "createRelationshipColumn", "group": "columns", - "weight": 402, + "weight": 409, "cookies": false, "type": "", - "demo": "tables-d-b\/create-relationship-column.md", + "demo": "tablesdb\/create-relationship-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/create-relationship-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "tables.write", + "scope": [ + "tables.write", + "collections.write" + ], "platforms": [ "server" ], @@ -34653,15 +36127,18 @@ "x-appwrite": { "method": "createStringColumn", "group": "columns", - "weight": 404, + "weight": 411, "cookies": false, "type": "", - "demo": "tables-d-b\/create-string-column.md", + "demo": "tablesdb\/create-string-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/create-string-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "tables.write", + "scope": [ + "tables.write", + "collections.write" + ], "platforms": [ "server" ], @@ -34770,15 +36247,18 @@ "x-appwrite": { "method": "updateStringColumn", "group": "columns", - "weight": 405, + "weight": 412, "cookies": false, "type": "", - "demo": "tables-d-b\/update-string-column.md", + "demo": "tablesdb\/update-string-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/update-string-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "tables.write", + "scope": [ + "tables.write", + "collections.write" + ], "platforms": [ "server" ], @@ -34886,15 +36366,18 @@ "x-appwrite": { "method": "createUrlColumn", "group": "columns", - "weight": 406, + "weight": 413, "cookies": false, "type": "", - "demo": "tables-d-b\/create-url-column.md", + "demo": "tablesdb\/create-url-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/create-url-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "tables.write", + "scope": [ + "tables.write", + "collections.write" + ], "platforms": [ "server" ], @@ -34992,15 +36475,18 @@ "x-appwrite": { "method": "updateUrlColumn", "group": "columns", - "weight": 407, + "weight": 414, "cookies": false, "type": "", - "demo": "tables-d-b\/update-url-column.md", + "demo": "tablesdb\/update-url-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/update-url-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "tables.write", + "scope": [ + "tables.write", + "collections.write" + ], "platforms": [ "server" ], @@ -35134,15 +36620,18 @@ "x-appwrite": { "method": "getColumn", "group": "columns", - "weight": 385, + "weight": 386, "cookies": false, "type": "", - "demo": "tables-d-b\/get-column.md", + "demo": "tablesdb\/get-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/get-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "tables.read", + "scope": [ + "tables.read", + "collections.read" + ], "platforms": [ "server" ], @@ -35205,15 +36694,18 @@ "x-appwrite": { "method": "deleteColumn", "group": "columns", - "weight": 386, + "weight": 387, "cookies": false, "type": "", - "demo": "tables-d-b\/delete-column.md", + "demo": "tablesdb\/delete-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/delete-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "tables.write", + "scope": [ + "tables.write", + "collections.write" + ], "platforms": [ "server" ], @@ -35285,15 +36777,18 @@ "x-appwrite": { "method": "updateRelationshipColumn", "group": "columns", - "weight": 403, + "weight": 410, "cookies": false, "type": "", - "demo": "tables-d-b\/update-relationship-column.md", + "demo": "tablesdb\/update-relationship-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/update-relationship-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "tables.write", + "scope": [ + "tables.write", + "collections.write" + ], "platforms": [ "server" ], @@ -35393,15 +36888,18 @@ "x-appwrite": { "method": "listIndexes", "group": "indexes", - "weight": 411, + "weight": 418, "cookies": false, "type": "", - "demo": "tables-d-b\/list-indexes.md", + "demo": "tablesdb\/list-indexes.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/list-indexes.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "tables.read", + "scope": [ + "tables.read", + "collections.read" + ], "platforms": [ "server" ], @@ -35475,15 +36973,18 @@ "x-appwrite": { "method": "createIndex", "group": "indexes", - "weight": 408, + "weight": 415, "cookies": false, "type": "", - "demo": "tables-d-b\/create-index.md", + "demo": "tablesdb\/create-index.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/create-index.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "tables.write", + "scope": [ + "tables.write", + "collections.write" + ], "platforms": [ "server" ], @@ -35538,7 +37039,8 @@ "enum": [ "key", "fulltext", - "unique" + "unique", + "spatial" ], "x-enum-name": "IndexType", "x-enum-keys": [] @@ -35603,15 +37105,18 @@ "x-appwrite": { "method": "getIndex", "group": "indexes", - "weight": 409, + "weight": 416, "cookies": false, "type": "", - "demo": "tables-d-b\/get-index.md", + "demo": "tablesdb\/get-index.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/get-index.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "tables.read", + "scope": [ + "tables.read", + "collections.read" + ], "platforms": [ "server" ], @@ -35674,15 +37179,18 @@ "x-appwrite": { "method": "deleteIndex", "group": "indexes", - "weight": 410, + "weight": 417, "cookies": false, "type": "", - "demo": "tables-d-b\/delete-index.md", + "demo": "tablesdb\/delete-index.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/delete-index.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "tables.write", + "scope": [ + "tables.write", + "collections.write" + ], "platforms": [ "server" ], @@ -35754,15 +37262,18 @@ "x-appwrite": { "method": "listTableLogs", "group": "tables", - "weight": 383, + "weight": 384, "cookies": false, "type": "", - "demo": "tables-d-b\/list-table-logs.md", + "demo": "tablesdb\/list-table-logs.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/get-table-logs.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "tables.read", + "scope": [ + "tables.read", + "collections.read" + ], "platforms": [ "console" ], @@ -35837,15 +37348,18 @@ "x-appwrite": { "method": "listRows", "group": "rows", - "weight": 420, + "weight": 427, "cookies": false, "type": "", - "demo": "tables-d-b\/list-rows.md", + "demo": "tablesdb\/list-rows.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/list-rows.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "rows.read", + "scope": [ + "rows.read", + "documents.read" + ], "platforms": [ "client", "server", @@ -35922,15 +37436,18 @@ "x-appwrite": { "method": "createRow", "group": "rows", - "weight": 412, + "weight": 419, "cookies": false, "type": "", - "demo": "tables-d-b\/create-row.md", + "demo": "tablesdb\/create-row.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/create-row.md", "rate-limit": 120, "rate-time": 60, "rate-key": "ip:{ip},method:{method},url:{url},userId:{userId}", - "scope": "rows.write", + "scope": [ + "rows.write", + "documents.write" + ], "platforms": [ "client", "server", @@ -35965,7 +37482,7 @@ } ], "description": "Create a new Row. Before using this route, you should create a new table resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/tablesdb#tablesDBCreateTable) API or directly from your database console.", - "demo": "tables-d-b\/create-row.md" + "demo": "tablesdb\/create-row.md" }, { "name": "createRows", @@ -35991,7 +37508,7 @@ } ], "description": "Create new Rows. Before using this route, you should create a new table resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/tablesdb#tablesDBCreateTable) API or directly from your database console.", - "demo": "tables-d-b\/create-rows.md" + "demo": "tablesdb\/create-rows.md" } ], "auth": { @@ -36041,7 +37558,7 @@ "data": { "type": "object", "description": "Row data as JSON object.", - "x-example": "{}" + "x-example": "{\"username\":\"walter.obrien\",\"email\":\"walter.obrien@example.com\",\"fullName\":\"Walter O'Brien\",\"age\":30,\"isAdmin\":false}" }, "permissions": { "type": "array", @@ -36053,7 +37570,7 @@ }, "rows": { "type": "array", - "description": "Array of documents data as JSON objects.", + "description": "Array of rows data as JSON objects.", "x-example": null, "items": { "type": "object" @@ -36066,7 +37583,7 @@ } }, "put": { - "summary": "Create or update rows", + "summary": "Upsert rows", "operationId": "tablesDBUpsertRows", "tags": [ "tablesDB" @@ -36088,15 +37605,18 @@ "x-appwrite": { "method": "upsertRows", "group": "rows", - "weight": 417, + "weight": 424, "cookies": false, "type": "", - "demo": "tables-d-b\/upsert-rows.md", + "demo": "tablesdb\/upsert-rows.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/upsert-rows.md", "rate-limit": 120, "rate-time": 60, "rate-key": "ip:{ip},method:{method},url:{url},userId:{userId}", - "scope": "rows.write", + "scope": [ + "rows.write", + "documents.write" + ], "platforms": [ "console", "server" @@ -36127,7 +37647,7 @@ } ], "description": "Create or update Rows. Before using this route, you should create a new table resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/tablesdb#tablesDBCreateTable) API or directly from your database console.\n", - "demo": "tables-d-b\/upsert-rows.md" + "demo": "tablesdb\/upsert-rows.md" } ], "auth": { @@ -36208,15 +37728,18 @@ "x-appwrite": { "method": "updateRows", "group": "rows", - "weight": 415, + "weight": 422, "cookies": false, "type": "", - "demo": "tables-d-b\/update-rows.md", + "demo": "tablesdb\/update-rows.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/update-rows.md", "rate-limit": 120, "rate-time": 60, "rate-key": "ip:{ip},method:{method},url:{url},userId:{userId}", - "scope": "rows.write", + "scope": [ + "rows.write", + "documents.write" + ], "platforms": [ "console", "server" @@ -36302,15 +37825,18 @@ "x-appwrite": { "method": "deleteRows", "group": "rows", - "weight": 419, + "weight": 426, "cookies": false, "type": "", - "demo": "tables-d-b\/delete-rows.md", + "demo": "tablesdb\/delete-rows.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/delete-rows.md", "rate-limit": 60, "rate-time": 60, "rate-key": "ip:{ip},method:{method},url:{url},userId:{userId}", - "scope": "rows.write", + "scope": [ + "rows.write", + "documents.write" + ], "platforms": [ "console", "server" @@ -36393,15 +37919,18 @@ "x-appwrite": { "method": "getRow", "group": "rows", - "weight": 413, + "weight": 420, "cookies": false, "type": "", - "demo": "tables-d-b\/get-row.md", + "demo": "tablesdb\/get-row.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/get-row.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "rows.read", + "scope": [ + "rows.read", + "documents.read" + ], "platforms": [ "client", "server", @@ -36466,7 +37995,7 @@ ] }, "put": { - "summary": "Create or update a row", + "summary": "Upsert a row", "operationId": "tablesDBUpsertRow", "tags": [ "tablesDB" @@ -36488,15 +38017,18 @@ "x-appwrite": { "method": "upsertRow", "group": "rows", - "weight": 416, + "weight": 423, "cookies": false, "type": "", - "demo": "tables-d-b\/upsert-row.md", + "demo": "tablesdb\/upsert-row.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/upsert-row.md", "rate-limit": 120, "rate-time": 60, "rate-key": "ip:{ip},method:{method},url:{url},userId:{userId}", - "scope": "rows.write", + "scope": [ + "rows.write", + "documents.write" + ], "platforms": [ "client", "server", @@ -36530,7 +38062,7 @@ } ], "description": "Create or update a Row. Before using this route, you should create a new table resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/tablesdb#tablesDBCreateTable) API or directly from your database console.", - "demo": "tables-d-b\/upsert-row.md" + "demo": "tablesdb\/upsert-row.md" } ], "auth": { @@ -36624,15 +38156,18 @@ "x-appwrite": { "method": "updateRow", "group": "rows", - "weight": 414, + "weight": 421, "cookies": false, "type": "", - "demo": "tables-d-b\/update-row.md", + "demo": "tablesdb\/update-row.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/update-row.md", "rate-limit": 120, "rate-time": 60, "rate-key": "ip:{ip},method:{method},url:{url},userId:{userId}", - "scope": "rows.write", + "scope": [ + "rows.write", + "documents.write" + ], "platforms": [ "client", "server", @@ -36723,15 +38258,18 @@ "x-appwrite": { "method": "deleteRow", "group": "rows", - "weight": 418, + "weight": 425, "cookies": false, "type": "", - "demo": "tables-d-b\/delete-row.md", + "demo": "tablesdb\/delete-row.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/delete-row.md", "rate-limit": 60, "rate-time": 60, "rate-key": "ip:{ip},method:{method},url:{url},userId:{userId}", - "scope": "rows.write", + "scope": [ + "rows.write", + "documents.write" + ], "platforms": [ "client", "server", @@ -36807,15 +38345,18 @@ "x-appwrite": { "method": "listRowLogs", "group": "logs", - "weight": 421, + "weight": 428, "cookies": false, "type": "", - "demo": "tables-d-b\/list-row-logs.md", + "demo": "tablesdb\/list-row-logs.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/get-row-logs.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "rows.read", + "scope": [ + "rows.read", + "documents.read" + ], "platforms": [ "console" ], @@ -36900,15 +38441,18 @@ "x-appwrite": { "method": "decrementRowColumn", "group": "rows", - "weight": 423, + "weight": 430, "cookies": false, "type": "", - "demo": "tables-d-b\/decrement-row-column.md", + "demo": "tablesdb\/decrement-row-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/decrement-row-column.md", "rate-limit": 120, "rate-time": 60, "rate-key": "ip:{ip},method:{method},url:{url},userId:{userId}", - "scope": "rows.write", + "scope": [ + "rows.write", + "documents.write" + ], "platforms": [ "client", "server", @@ -37015,15 +38559,18 @@ "x-appwrite": { "method": "incrementRowColumn", "group": "rows", - "weight": 422, + "weight": 429, "cookies": false, "type": "", - "demo": "tables-d-b\/increment-row-column.md", + "demo": "tablesdb\/increment-row-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/increment-row-column.md", "rate-limit": 120, "rate-time": 60, "rate-key": "ip:{ip},method:{method},url:{url},userId:{userId}", - "scope": "rows.write", + "scope": [ + "rows.write", + "documents.write" + ], "platforms": [ "client", "server", @@ -37130,15 +38677,18 @@ "x-appwrite": { "method": "getTableUsage", "group": null, - "weight": 384, + "weight": 385, "cookies": false, "type": "", - "demo": "tables-d-b\/get-table-usage.md", + "demo": "tablesdb\/get-table-usage.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/get-table-usage.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "tables.read", + "scope": [ + "tables.read", + "collections.read" + ], "platforms": [ "console" ], @@ -37222,15 +38772,18 @@ "x-appwrite": { "method": "getUsage", "group": null, - "weight": 376, + "weight": 377, "cookies": false, "type": "", - "demo": "tables-d-b\/get-usage.md", + "demo": "tablesdb\/get-usage.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/get-database-usage.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "tables.read", + "scope": [ + "tables.read", + "collections.read" + ], "platforms": [ "console" ], @@ -37257,7 +38810,7 @@ } ], "description": "Get usage metrics and statistics for a database. You can view the total number of tables, rows, and storage usage. The response includes both current totals and historical data over time. Use the optional range parameter to specify the time window for historical data: 24h (last 24 hours), 30d (last 30 days), or 90d (last 90 days). If not specified, range defaults to 30 days.", - "demo": "tables-d-b\/get-usage.md" + "demo": "tablesdb\/get-usage.md" } ], "auth": { @@ -37329,7 +38882,7 @@ "x-appwrite": { "method": "list", "group": "teams", - "weight": 172, + "weight": 171, "cookies": false, "type": "", "demo": "teams\/list.md", @@ -37405,7 +38958,7 @@ "x-appwrite": { "method": "create", "group": "teams", - "weight": 171, + "weight": 170, "cookies": false, "type": "", "demo": "teams\/create.md", @@ -37490,7 +39043,7 @@ "x-appwrite": { "method": "get", "group": "teams", - "weight": 173, + "weight": 172, "cookies": false, "type": "", "demo": "teams\/get.md", @@ -37552,7 +39105,7 @@ "x-appwrite": { "method": "updateName", "group": "teams", - "weight": 175, + "weight": 174, "cookies": false, "type": "", "demo": "teams\/update-name.md", @@ -37626,7 +39179,7 @@ "x-appwrite": { "method": "delete", "group": "teams", - "weight": 177, + "weight": 176, "cookies": false, "type": "", "demo": "teams\/delete.md", @@ -37690,7 +39243,7 @@ "x-appwrite": { "method": "listLogs", "group": "logs", - "weight": 184, + "weight": 183, "cookies": false, "type": "", "demo": "teams\/list-logs.md", @@ -37763,7 +39316,7 @@ "x-appwrite": { "method": "listMemberships", "group": "memberships", - "weight": 179, + "weight": 178, "cookies": false, "type": "", "demo": "teams\/list-memberships.md", @@ -37849,7 +39402,7 @@ "x-appwrite": { "method": "createMembership", "group": "memberships", - "weight": 178, + "weight": 177, "cookies": false, "type": "", "demo": "teams\/create-membership.md", @@ -37960,7 +39513,7 @@ "x-appwrite": { "method": "getMembership", "group": "memberships", - "weight": 180, + "weight": 179, "cookies": false, "type": "", "demo": "teams\/get-membership.md", @@ -38032,7 +39585,7 @@ "x-appwrite": { "method": "updateMembership", "group": "memberships", - "weight": 181, + "weight": 180, "cookies": false, "type": "", "demo": "teams\/update-membership.md", @@ -38119,7 +39672,7 @@ "x-appwrite": { "method": "deleteMembership", "group": "memberships", - "weight": 183, + "weight": 182, "cookies": false, "type": "", "demo": "teams\/delete-membership.md", @@ -38193,7 +39746,7 @@ "x-appwrite": { "method": "updateMembershipStatus", "group": "memberships", - "weight": 182, + "weight": 181, "cookies": false, "type": "", "demo": "teams\/update-membership-status.md", @@ -38290,7 +39843,7 @@ "x-appwrite": { "method": "getPrefs", "group": "teams", - "weight": 174, + "weight": 173, "cookies": false, "type": "", "demo": "teams\/get-prefs.md", @@ -38350,7 +39903,7 @@ "x-appwrite": { "method": "updatePrefs", "group": "teams", - "weight": 176, + "weight": 175, "cookies": false, "type": "", "demo": "teams\/update-prefs.md", @@ -38431,7 +39984,7 @@ "x-appwrite": { "method": "list", "group": "files", - "weight": 495, + "weight": 507, "cookies": false, "type": "", "demo": "tokens\/list.md", @@ -38511,7 +40064,7 @@ "x-appwrite": { "method": "createFileToken", "group": "files", - "weight": 493, + "weight": 505, "cookies": false, "type": "", "demo": "tokens\/create-file-token.md", @@ -38600,7 +40153,7 @@ "x-appwrite": { "method": "get", "group": "tokens", - "weight": 494, + "weight": 506, "cookies": false, "type": "", "demo": "tokens\/get.md", @@ -38660,7 +40213,7 @@ "x-appwrite": { "method": "update", "group": "tokens", - "weight": 496, + "weight": 508, "cookies": false, "type": "", "demo": "tokens\/update.md", @@ -38730,7 +40283,7 @@ "x-appwrite": { "method": "delete", "group": "tokens", - "weight": 497, + "weight": 509, "cookies": false, "type": "", "demo": "tokens\/delete.md", @@ -38792,7 +40345,7 @@ "x-appwrite": { "method": "list", "group": "users", - "weight": 194, + "weight": 193, "cookies": false, "type": "", "demo": "users\/list.md", @@ -38865,7 +40418,7 @@ "x-appwrite": { "method": "create", "group": "users", - "weight": 185, + "weight": 184, "cookies": false, "type": "", "demo": "users\/create.md", @@ -38953,10 +40506,10 @@ "x-appwrite": { "method": "createArgon2User", "group": "users", - "weight": 188, + "weight": 187, "cookies": false, "type": "", - "demo": "users\/create-argon2user.md", + "demo": "users\/create-argon-2-user.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/users\/create-argon2-user.md", "rate-limit": 0, "rate-time": 3600, @@ -39038,7 +40591,7 @@ "x-appwrite": { "method": "createBcryptUser", "group": "users", - "weight": 186, + "weight": 185, "cookies": false, "type": "", "demo": "users\/create-bcrypt-user.md", @@ -39123,7 +40676,7 @@ "x-appwrite": { "method": "listIdentities", "group": "identities", - "weight": 202, + "weight": 201, "cookies": false, "type": "", "demo": "users\/list-identities.md", @@ -39191,7 +40744,7 @@ "x-appwrite": { "method": "deleteIdentity", "group": "identities", - "weight": 225, + "weight": 224, "cookies": false, "type": "", "demo": "users\/delete-identity.md", @@ -39252,10 +40805,10 @@ "x-appwrite": { "method": "createMD5User", "group": "users", - "weight": 187, + "weight": 186, "cookies": false, "type": "", - "demo": "users\/create-m-d5user.md", + "demo": "users\/create-md-5-user.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/users\/create-md5-user.md", "rate-limit": 0, "rate-time": 3600, @@ -39337,10 +40890,10 @@ "x-appwrite": { "method": "createPHPassUser", "group": "users", - "weight": 190, + "weight": 189, "cookies": false, "type": "", - "demo": "users\/create-p-h-pass-user.md", + "demo": "users\/create-ph-pass-user.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/users\/create-phpass-user.md", "rate-limit": 0, "rate-time": 3600, @@ -39422,7 +40975,7 @@ "x-appwrite": { "method": "createScryptUser", "group": "users", - "weight": 191, + "weight": 190, "cookies": false, "type": "", "demo": "users\/create-scrypt-user.md", @@ -39537,7 +41090,7 @@ "x-appwrite": { "method": "createScryptModifiedUser", "group": "users", - "weight": 192, + "weight": 191, "cookies": false, "type": "", "demo": "users\/create-scrypt-modified-user.md", @@ -39640,10 +41193,10 @@ "x-appwrite": { "method": "createSHAUser", "group": "users", - "weight": 189, + "weight": 188, "cookies": false, "type": "", - "demo": "users\/create-s-h-a-user.md", + "demo": "users\/create-sha-user.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/users\/create-sha-user.md", "rate-limit": 0, "rate-time": 3600, @@ -39745,7 +41298,7 @@ "x-appwrite": { "method": "getUsage", "group": null, - "weight": 227, + "weight": 226, "cookies": false, "type": "", "demo": "users\/get-usage.md", @@ -39817,7 +41370,7 @@ "x-appwrite": { "method": "get", "group": "users", - "weight": 195, + "weight": 194, "cookies": false, "type": "", "demo": "users\/get.md", @@ -39869,7 +41422,7 @@ "x-appwrite": { "method": "delete", "group": "users", - "weight": 223, + "weight": 222, "cookies": false, "type": "", "demo": "users\/delete.md", @@ -39930,7 +41483,7 @@ "x-appwrite": { "method": "updateEmail", "group": "users", - "weight": 208, + "weight": 207, "cookies": false, "type": "", "demo": "users\/update-email.md", @@ -40010,10 +41563,10 @@ "x-appwrite": { "method": "createJWT", "group": "sessions", - "weight": 226, + "weight": 225, "cookies": false, "type": "", - "demo": "users\/create-j-w-t.md", + "demo": "users\/create-jwt.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/users\/create-user-jwt.md", "rate-limit": 0, "rate-time": 3600, @@ -40092,7 +41645,7 @@ "x-appwrite": { "method": "updateLabels", "group": "users", - "weight": 204, + "weight": 203, "cookies": false, "type": "", "demo": "users\/update-labels.md", @@ -40175,7 +41728,7 @@ "x-appwrite": { "method": "listLogs", "group": "logs", - "weight": 200, + "weight": 199, "cookies": false, "type": "", "demo": "users\/list-logs.md", @@ -40249,7 +41802,7 @@ "x-appwrite": { "method": "listMemberships", "group": "memberships", - "weight": 199, + "weight": 198, "cookies": false, "type": "", "demo": "users\/list-memberships.md", @@ -40334,7 +41887,7 @@ "x-appwrite": { "method": "updateMfa", "group": "users", - "weight": 213, + "weight": 212, "cookies": false, "type": "", "demo": "users\/update-mfa.md", @@ -40402,7 +41955,7 @@ } ], "description": "Enable or disable MFA on a user account.", - "demo": "users\/update-m-f-a.md" + "demo": "users\/update-mfa.md" } ], "auth": { @@ -40465,7 +42018,7 @@ "x-appwrite": { "method": "deleteMfaAuthenticator", "group": "mfa", - "weight": 218, + "weight": 217, "cookies": false, "type": "", "demo": "users\/delete-mfa-authenticator.md", @@ -40531,7 +42084,7 @@ } ], "description": "Delete an authenticator app.", - "demo": "users\/delete-m-f-a-authenticator.md" + "demo": "users\/delete-mfa-authenticator.md" } ], "auth": { @@ -40597,7 +42150,7 @@ "x-appwrite": { "method": "listMfaFactors", "group": "mfa", - "weight": 214, + "weight": 213, "cookies": false, "type": "", "demo": "users\/list-mfa-factors.md", @@ -40661,7 +42214,7 @@ } ], "description": "List the factors available on the account to be used as a MFA challange.", - "demo": "users\/list-m-f-a-factors.md" + "demo": "users\/list-mfa-factors.md" } ], "auth": { @@ -40712,7 +42265,7 @@ "x-appwrite": { "method": "getMfaRecoveryCodes", "group": "mfa", - "weight": 215, + "weight": 214, "cookies": false, "type": "", "demo": "users\/get-mfa-recovery-codes.md", @@ -40776,7 +42329,7 @@ } ], "description": "Get recovery codes that can be used as backup for MFA flow by User ID. Before getting codes, they must be generated using [createMfaRecoveryCodes](\/docs\/references\/cloud\/client-web\/account#createMfaRecoveryCodes) method.", - "demo": "users\/get-m-f-a-recovery-codes.md" + "demo": "users\/get-mfa-recovery-codes.md" } ], "auth": { @@ -40825,7 +42378,7 @@ "x-appwrite": { "method": "updateMfaRecoveryCodes", "group": "mfa", - "weight": 217, + "weight": 216, "cookies": false, "type": "", "demo": "users\/update-mfa-recovery-codes.md", @@ -40889,7 +42442,7 @@ } ], "description": "Regenerate recovery codes that can be used as backup for MFA flow by User ID. Before regenerating codes, they must be first generated using [createMfaRecoveryCodes](\/docs\/references\/cloud\/client-web\/account#createMfaRecoveryCodes) method.", - "demo": "users\/update-m-f-a-recovery-codes.md" + "demo": "users\/update-mfa-recovery-codes.md" } ], "auth": { @@ -40938,7 +42491,7 @@ "x-appwrite": { "method": "createMfaRecoveryCodes", "group": "mfa", - "weight": 216, + "weight": 215, "cookies": false, "type": "", "demo": "users\/create-mfa-recovery-codes.md", @@ -41002,7 +42555,7 @@ } ], "description": "Generate recovery codes used as backup for MFA flow for User ID. Recovery codes can be used as a MFA verification type in [createMfaChallenge](\/docs\/references\/cloud\/client-web\/account#createMfaChallenge) method by client SDK.", - "demo": "users\/create-m-f-a-recovery-codes.md" + "demo": "users\/create-mfa-recovery-codes.md" } ], "auth": { @@ -41053,7 +42606,7 @@ "x-appwrite": { "method": "updateName", "group": "users", - "weight": 206, + "weight": 205, "cookies": false, "type": "", "demo": "users\/update-name.md", @@ -41133,7 +42686,7 @@ "x-appwrite": { "method": "updatePassword", "group": "users", - "weight": 207, + "weight": 206, "cookies": false, "type": "", "demo": "users\/update-password.md", @@ -41213,7 +42766,7 @@ "x-appwrite": { "method": "updatePhone", "group": "users", - "weight": 209, + "weight": 208, "cookies": false, "type": "", "demo": "users\/update-phone.md", @@ -41293,7 +42846,7 @@ "x-appwrite": { "method": "getPrefs", "group": "users", - "weight": 196, + "weight": 195, "cookies": false, "type": "", "demo": "users\/get-prefs.md", @@ -41352,7 +42905,7 @@ "x-appwrite": { "method": "updatePrefs", "group": "users", - "weight": 211, + "weight": 210, "cookies": false, "type": "", "demo": "users\/update-prefs.md", @@ -41432,7 +42985,7 @@ "x-appwrite": { "method": "listSessions", "group": "sessions", - "weight": 198, + "weight": 197, "cookies": false, "type": "", "demo": "users\/list-sessions.md", @@ -41491,7 +43044,7 @@ "x-appwrite": { "method": "createSession", "group": "sessions", - "weight": 219, + "weight": 218, "cookies": false, "type": "", "demo": "users\/create-session.md", @@ -41543,7 +43096,7 @@ "x-appwrite": { "method": "deleteSessions", "group": "sessions", - "weight": 222, + "weight": 221, "cookies": false, "type": "", "demo": "users\/delete-sessions.md", @@ -41597,7 +43150,7 @@ "x-appwrite": { "method": "deleteSession", "group": "sessions", - "weight": 221, + "weight": 220, "cookies": false, "type": "", "demo": "users\/delete-session.md", @@ -41668,7 +43221,7 @@ "x-appwrite": { "method": "updateStatus", "group": "users", - "weight": 203, + "weight": 202, "cookies": false, "type": "", "demo": "users\/update-status.md", @@ -41748,7 +43301,7 @@ "x-appwrite": { "method": "listTargets", "group": "targets", - "weight": 201, + "weight": 200, "cookies": false, "type": "", "demo": "users\/list-targets.md", @@ -41821,7 +43374,7 @@ "x-appwrite": { "method": "createTarget", "group": "targets", - "weight": 193, + "weight": 192, "cookies": false, "type": "", "demo": "users\/create-target.md", @@ -41931,7 +43484,7 @@ "x-appwrite": { "method": "getTarget", "group": "targets", - "weight": 197, + "weight": 196, "cookies": false, "type": "", "demo": "users\/get-target.md", @@ -42001,7 +43554,7 @@ "x-appwrite": { "method": "updateTarget", "group": "targets", - "weight": 212, + "weight": 211, "cookies": false, "type": "", "demo": "users\/update-target.md", @@ -42090,7 +43643,7 @@ "x-appwrite": { "method": "deleteTarget", "group": "targets", - "weight": 224, + "weight": 223, "cookies": false, "type": "", "demo": "users\/delete-target.md", @@ -42162,7 +43715,7 @@ "x-appwrite": { "method": "createToken", "group": "sessions", - "weight": 220, + "weight": 219, "cookies": false, "type": "", "demo": "users\/create-token.md", @@ -42244,7 +43797,7 @@ "x-appwrite": { "method": "updateEmailVerification", "group": "users", - "weight": 210, + "weight": 209, "cookies": false, "type": "", "demo": "users\/update-email-verification.md", @@ -42324,7 +43877,7 @@ "x-appwrite": { "method": "updatePhoneVerification", "group": "users", - "weight": 205, + "weight": 204, "cookies": false, "type": "", "demo": "users\/update-phone-verification.md", @@ -42404,7 +43957,7 @@ "x-appwrite": { "method": "createRepositoryDetection", "group": "repositories", - "weight": 231, + "weight": 230, "cookies": false, "type": "", "demo": "vcs\/create-repository-detection.md", @@ -42500,7 +44053,7 @@ "x-appwrite": { "method": "listRepositories", "group": "repositories", - "weight": 232, + "weight": 231, "cookies": false, "type": "", "demo": "vcs\/list-repositories.md", @@ -42585,7 +44138,7 @@ "x-appwrite": { "method": "createRepository", "group": "repositories", - "weight": 233, + "weight": 232, "cookies": false, "type": "", "demo": "vcs\/create-repository.md", @@ -42670,7 +44223,7 @@ "x-appwrite": { "method": "getRepository", "group": "repositories", - "weight": 234, + "weight": 233, "cookies": false, "type": "", "demo": "vcs\/get-repository.md", @@ -42740,7 +44293,7 @@ "x-appwrite": { "method": "listRepositoryBranches", "group": "repositories", - "weight": 235, + "weight": 234, "cookies": false, "type": "", "demo": "vcs\/list-repository-branches.md", @@ -42810,7 +44363,7 @@ "x-appwrite": { "method": "getRepositoryContents", "group": "repositories", - "weight": 230, + "weight": 229, "cookies": false, "type": "", "demo": "vcs\/get-repository-contents.md", @@ -42895,7 +44448,7 @@ "x-appwrite": { "method": "updateExternalDeployments", "group": "repositories", - "weight": 240, + "weight": 239, "cookies": false, "type": "", "demo": "vcs\/update-external-deployments.md", @@ -42984,7 +44537,7 @@ "x-appwrite": { "method": "listInstallations", "group": "installations", - "weight": 237, + "weight": 236, "cookies": false, "type": "", "demo": "vcs\/list-installations.md", @@ -43058,7 +44611,7 @@ "x-appwrite": { "method": "getInstallation", "group": "installations", - "weight": 238, + "weight": 237, "cookies": false, "type": "", "demo": "vcs\/get-installation.md", @@ -43109,7 +44662,7 @@ "x-appwrite": { "method": "deleteInstallation", "group": "installations", - "weight": 239, + "weight": 238, "cookies": false, "type": "", "demo": "vcs\/delete-installation.md", @@ -44771,6 +46324,15 @@ { "$ref": "#\/components\/schemas\/attributeRelationship" }, + { + "$ref": "#\/components\/schemas\/attributePoint" + }, + { + "$ref": "#\/components\/schemas\/attributeLine" + }, + { + "$ref": "#\/components\/schemas\/attributePolygon" + }, { "$ref": "#\/components\/schemas\/attributeString" } @@ -44856,6 +46418,15 @@ { "$ref": "#\/components\/schemas\/attributeRelationship" }, + { + "$ref": "#\/components\/schemas\/attributePoint" + }, + { + "$ref": "#\/components\/schemas\/attributeLine" + }, + { + "$ref": "#\/components\/schemas\/attributePolygon" + }, { "$ref": "#\/components\/schemas\/attributeString" } @@ -45732,6 +47303,291 @@ "side": "parent|child" } }, + "attributePoint": { + "description": "AttributePoint", + "type": "object", + "properties": { + "key": { + "type": "string", + "description": "Attribute Key.", + "x-example": "fullName" + }, + "type": { + "type": "string", + "description": "Attribute type.", + "x-example": "string" + }, + "status": { + "type": "string", + "description": "Attribute status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`", + "x-example": "available" + }, + "error": { + "type": "string", + "description": "Error message. Displays error generated on failure of creating or deleting an attribute.", + "x-example": "string" + }, + "required": { + "type": "boolean", + "description": "Is attribute required?", + "x-example": true + }, + "array": { + "type": "boolean", + "description": "Is attribute an array?", + "x-example": false, + "nullable": true + }, + "$createdAt": { + "type": "string", + "description": "Attribute creation date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "$updatedAt": { + "type": "string", + "description": "Attribute update date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "default": { + "type": "array", + "description": "Default value for attribute when not provided. Cannot be set when attribute is required.", + "x-example": [ + 0, + 0 + ], + "nullable": true + } + }, + "required": [ + "key", + "type", + "status", + "error", + "required", + "$createdAt", + "$updatedAt" + ], + "example": { + "key": "fullName", + "type": "string", + "status": "available", + "error": "string", + "required": true, + "array": false, + "$createdAt": "2020-10-15T06:38:00.000+00:00", + "$updatedAt": "2020-10-15T06:38:00.000+00:00", + "default": [ + 0, + 0 + ] + } + }, + "attributeLine": { + "description": "AttributeLine", + "type": "object", + "properties": { + "key": { + "type": "string", + "description": "Attribute Key.", + "x-example": "fullName" + }, + "type": { + "type": "string", + "description": "Attribute type.", + "x-example": "string" + }, + "status": { + "type": "string", + "description": "Attribute status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`", + "x-example": "available" + }, + "error": { + "type": "string", + "description": "Error message. Displays error generated on failure of creating or deleting an attribute.", + "x-example": "string" + }, + "required": { + "type": "boolean", + "description": "Is attribute required?", + "x-example": true + }, + "array": { + "type": "boolean", + "description": "Is attribute an array?", + "x-example": false, + "nullable": true + }, + "$createdAt": { + "type": "string", + "description": "Attribute creation date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "$updatedAt": { + "type": "string", + "description": "Attribute update date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "default": { + "type": "array", + "description": "Default value for attribute when not provided. Cannot be set when attribute is required.", + "x-example": [ + [ + 0, + 0 + ], + [ + 1, + 1 + ] + ], + "nullable": true + } + }, + "required": [ + "key", + "type", + "status", + "error", + "required", + "$createdAt", + "$updatedAt" + ], + "example": { + "key": "fullName", + "type": "string", + "status": "available", + "error": "string", + "required": true, + "array": false, + "$createdAt": "2020-10-15T06:38:00.000+00:00", + "$updatedAt": "2020-10-15T06:38:00.000+00:00", + "default": [ + [ + 0, + 0 + ], + [ + 1, + 1 + ] + ] + } + }, + "attributePolygon": { + "description": "AttributePolygon", + "type": "object", + "properties": { + "key": { + "type": "string", + "description": "Attribute Key.", + "x-example": "fullName" + }, + "type": { + "type": "string", + "description": "Attribute type.", + "x-example": "string" + }, + "status": { + "type": "string", + "description": "Attribute status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`", + "x-example": "available" + }, + "error": { + "type": "string", + "description": "Error message. Displays error generated on failure of creating or deleting an attribute.", + "x-example": "string" + }, + "required": { + "type": "boolean", + "description": "Is attribute required?", + "x-example": true + }, + "array": { + "type": "boolean", + "description": "Is attribute an array?", + "x-example": false, + "nullable": true + }, + "$createdAt": { + "type": "string", + "description": "Attribute creation date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "$updatedAt": { + "type": "string", + "description": "Attribute update date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "default": { + "type": "array", + "description": "Default value for attribute when not provided. Cannot be set when attribute is required.", + "x-example": [ + [ + [ + 0, + 0 + ], + [ + 0, + 10 + ] + ], + [ + [ + 10, + 10 + ], + [ + 0, + 0 + ] + ] + ], + "nullable": true + } + }, + "required": [ + "key", + "type", + "status", + "error", + "required", + "$createdAt", + "$updatedAt" + ], + "example": { + "key": "fullName", + "type": "string", + "status": "available", + "error": "string", + "required": true, + "array": false, + "$createdAt": "2020-10-15T06:38:00.000+00:00", + "$updatedAt": "2020-10-15T06:38:00.000+00:00", + "default": [ + [ + [ + 0, + 0 + ], + [ + 0, + 10 + ] + ], + [ + [ + 10, + 10 + ], + [ + 0, + 0 + ] + ] + ] + } + }, "table": { "description": "Table", "type": "object", @@ -45813,6 +47669,15 @@ { "$ref": "#\/components\/schemas\/columnRelationship" }, + { + "$ref": "#\/components\/schemas\/columnPoint" + }, + { + "$ref": "#\/components\/schemas\/columnLine" + }, + { + "$ref": "#\/components\/schemas\/columnPolygon" + }, { "$ref": "#\/components\/schemas\/columnString" } @@ -45898,6 +47763,15 @@ { "$ref": "#\/components\/schemas\/columnRelationship" }, + { + "$ref": "#\/components\/schemas\/columnPoint" + }, + { + "$ref": "#\/components\/schemas\/columnLine" + }, + { + "$ref": "#\/components\/schemas\/columnPolygon" + }, { "$ref": "#\/components\/schemas\/columnString" } @@ -46774,6 +48648,291 @@ "side": "parent|child" } }, + "columnPoint": { + "description": "ColumnPoint", + "type": "object", + "properties": { + "key": { + "type": "string", + "description": "Column Key.", + "x-example": "fullName" + }, + "type": { + "type": "string", + "description": "Column type.", + "x-example": "string" + }, + "status": { + "type": "string", + "description": "Column status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`", + "x-example": "available" + }, + "error": { + "type": "string", + "description": "Error message. Displays error generated on failure of creating or deleting an column.", + "x-example": "string" + }, + "required": { + "type": "boolean", + "description": "Is column required?", + "x-example": true + }, + "array": { + "type": "boolean", + "description": "Is column an array?", + "x-example": false, + "nullable": true + }, + "$createdAt": { + "type": "string", + "description": "Column creation date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "$updatedAt": { + "type": "string", + "description": "Column update date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "default": { + "type": "array", + "description": "Default value for column when not provided. Cannot be set when column is required.", + "x-example": [ + 0, + 0 + ], + "nullable": true + } + }, + "required": [ + "key", + "type", + "status", + "error", + "required", + "$createdAt", + "$updatedAt" + ], + "example": { + "key": "fullName", + "type": "string", + "status": "available", + "error": "string", + "required": true, + "array": false, + "$createdAt": "2020-10-15T06:38:00.000+00:00", + "$updatedAt": "2020-10-15T06:38:00.000+00:00", + "default": [ + 0, + 0 + ] + } + }, + "columnLine": { + "description": "ColumnLine", + "type": "object", + "properties": { + "key": { + "type": "string", + "description": "Column Key.", + "x-example": "fullName" + }, + "type": { + "type": "string", + "description": "Column type.", + "x-example": "string" + }, + "status": { + "type": "string", + "description": "Column status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`", + "x-example": "available" + }, + "error": { + "type": "string", + "description": "Error message. Displays error generated on failure of creating or deleting an column.", + "x-example": "string" + }, + "required": { + "type": "boolean", + "description": "Is column required?", + "x-example": true + }, + "array": { + "type": "boolean", + "description": "Is column an array?", + "x-example": false, + "nullable": true + }, + "$createdAt": { + "type": "string", + "description": "Column creation date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "$updatedAt": { + "type": "string", + "description": "Column update date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "default": { + "type": "array", + "description": "Default value for column when not provided. Cannot be set when column is required.", + "x-example": [ + [ + 0, + 0 + ], + [ + 1, + 1 + ] + ], + "nullable": true + } + }, + "required": [ + "key", + "type", + "status", + "error", + "required", + "$createdAt", + "$updatedAt" + ], + "example": { + "key": "fullName", + "type": "string", + "status": "available", + "error": "string", + "required": true, + "array": false, + "$createdAt": "2020-10-15T06:38:00.000+00:00", + "$updatedAt": "2020-10-15T06:38:00.000+00:00", + "default": [ + [ + 0, + 0 + ], + [ + 1, + 1 + ] + ] + } + }, + "columnPolygon": { + "description": "ColumnPolygon", + "type": "object", + "properties": { + "key": { + "type": "string", + "description": "Column Key.", + "x-example": "fullName" + }, + "type": { + "type": "string", + "description": "Column type.", + "x-example": "string" + }, + "status": { + "type": "string", + "description": "Column status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`", + "x-example": "available" + }, + "error": { + "type": "string", + "description": "Error message. Displays error generated on failure of creating or deleting an column.", + "x-example": "string" + }, + "required": { + "type": "boolean", + "description": "Is column required?", + "x-example": true + }, + "array": { + "type": "boolean", + "description": "Is column an array?", + "x-example": false, + "nullable": true + }, + "$createdAt": { + "type": "string", + "description": "Column creation date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "$updatedAt": { + "type": "string", + "description": "Column update date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "default": { + "type": "array", + "description": "Default value for column when not provided. Cannot be set when column is required.", + "x-example": [ + [ + [ + 0, + 0 + ], + [ + 0, + 10 + ] + ], + [ + [ + 10, + 10 + ], + [ + 0, + 0 + ] + ] + ], + "nullable": true + } + }, + "required": [ + "key", + "type", + "status", + "error", + "required", + "$createdAt", + "$updatedAt" + ], + "example": { + "key": "fullName", + "type": "string", + "status": "available", + "error": "string", + "required": true, + "array": false, + "$createdAt": "2020-10-15T06:38:00.000+00:00", + "$updatedAt": "2020-10-15T06:38:00.000+00:00", + "default": [ + [ + [ + 0, + 0 + ], + [ + 0, + 10 + ] + ], + [ + [ + 10, + 10 + ], + [ + 0, + 0 + ] + ] + ] + } + }, "index": { "description": "Index", "type": "object", @@ -46967,17 +49126,20 @@ "type": "integer", "description": "Row automatically incrementing ID.", "x-example": 1, - "format": "int32" + "format": "int32", + "readOnly": true }, "$tableId": { "type": "string", "description": "Table ID.", - "x-example": "5e5ea5c15117e" + "x-example": "5e5ea5c15117e", + "readOnly": true }, "$databaseId": { "type": "string", "description": "Database ID.", - "x-example": "5e5ea5c15117e" + "x-example": "5e5ea5c15117e", + "readOnly": true }, "$createdAt": { "type": "string", diff --git a/app/config/specs/open-api3-1.8.x-server.json b/app/config/specs/open-api3-1.8.x-server.json index 7ff41e8be6..09d53dbdf0 100644 --- a/app/config/specs/open-api3-1.8.x-server.json +++ b/app/config/specs/open-api3-1.8.x-server.json @@ -387,7 +387,7 @@ "weight": 30, "cookies": false, "type": "", - "demo": "account\/create-j-w-t.md", + "demo": "account\/create-jwt.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/account\/create-jwt.md", "rate-limit": 100, "rate-time": 3600, @@ -503,7 +503,7 @@ "weight": 45, "cookies": false, "type": "", - "demo": "account\/update-m-f-a.md", + "demo": "account\/update-mfa.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/account\/update-mfa.md", "rate-limit": 0, "rate-time": 3600, @@ -638,7 +638,7 @@ } ], "description": "Add an authenticator app to be used as an MFA factor. Verify the authenticator using the [verify authenticator](\/docs\/references\/cloud\/client-web\/account#updateMfaAuthenticator) method.", - "demo": "account\/create-m-f-a-authenticator.md" + "demo": "account\/create-mfa-authenticator.md" } ], "auth": { @@ -765,7 +765,7 @@ } ], "description": "Verify an authenticator app after adding it using the [add authenticator](\/docs\/references\/cloud\/client-web\/account#createMfaAuthenticator) method.", - "demo": "account\/update-m-f-a-authenticator.md" + "demo": "account\/update-mfa-authenticator.md" } ], "auth": { @@ -898,7 +898,7 @@ } ], "description": "Delete an authenticator for a user by ID.", - "demo": "account\/delete-m-f-a-authenticator.md" + "demo": "account\/delete-mfa-authenticator.md" } ], "auth": { @@ -1021,7 +1021,7 @@ } ], "description": "Begin the process of MFA verification after sign-in. Finish the flow with [updateMfaChallenge](\/docs\/references\/cloud\/client-web\/account#updateMfaChallenge) method.", - "demo": "account\/create-m-f-a-challenge.md" + "demo": "account\/create-mfa-challenge.md" } ], "auth": { @@ -1155,7 +1155,7 @@ } ], "description": "Complete the MFA challenge by providing the one-time password. Finish the process of MFA verification by providing the one-time password. To begin the flow, use [createMfaChallenge](\/docs\/references\/cloud\/client-web\/account#createMfaChallenge) method.", - "demo": "account\/update-m-f-a-challenge.md" + "demo": "account\/update-mfa-challenge.md" } ], "auth": { @@ -1280,7 +1280,7 @@ } ], "description": "List the factors available on the account to be used as a MFA challange.", - "demo": "account\/list-m-f-a-factors.md" + "demo": "account\/list-mfa-factors.md" } ], "auth": { @@ -1380,7 +1380,7 @@ } ], "description": "Get recovery codes that can be used as backup for MFA flow. Before getting codes, they must be generated using [createMfaRecoveryCodes](\/docs\/references\/cloud\/client-web\/account#createMfaRecoveryCodes) method. An OTP challenge is required to read recovery codes.", - "demo": "account\/get-m-f-a-recovery-codes.md" + "demo": "account\/get-mfa-recovery-codes.md" } ], "auth": { @@ -1478,7 +1478,7 @@ } ], "description": "Generate recovery codes as backup for MFA flow. It's recommended to generate and show then immediately after user successfully adds their authehticator. Recovery codes can be used as a MFA verification type in [createMfaChallenge](\/docs\/references\/cloud\/client-web\/account#createMfaChallenge) method.", - "demo": "account\/create-m-f-a-recovery-codes.md" + "demo": "account\/create-mfa-recovery-codes.md" } ], "auth": { @@ -1576,7 +1576,7 @@ } ], "description": "Regenerate recovery codes that can be used as backup for MFA flow. Before regenerating codes, they must be first generated using [createMfaRecoveryCodes](\/docs\/references\/cloud\/client-web\/account#createMfaRecoveryCodes) method. An OTP challenge is required to regenreate recovery codes.", - "demo": "account\/update-m-f-a-recovery-codes.md" + "demo": "account\/update-mfa-recovery-codes.md" } ], "auth": { @@ -1926,7 +1926,7 @@ "prefs": { "type": "object", "description": "Prefs key-value JSON object.", - "x-example": "{}" + "x-example": "{\"language\":\"en\",\"timezone\":\"UTC\",\"darkTheme\":true}" } }, "required": [ @@ -2344,7 +2344,7 @@ "weight": 27, "cookies": false, "type": "", - "demo": "account\/update-magic-u-r-l-session.md", + "demo": "account\/update-magic-url-session.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/account\/create-session.md", "rate-limit": 10, "rate-time": 3600, @@ -2355,6 +2355,10 @@ "client" ], "packaging": false, + "deprecated": { + "since": "1.6.0", + "replaceWith": "account.createSession" + }, "auth": { "Project": [] } @@ -2429,6 +2433,10 @@ "client" ], "packaging": false, + "deprecated": { + "since": "1.6.0", + "replaceWith": "account.createSession" + }, "auth": { "Project": [] } @@ -2881,7 +2889,7 @@ "weight": 25, "cookies": false, "type": "", - "demo": "account\/create-magic-u-r-l-token.md", + "demo": "account\/create-magic-url-token.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/account\/create-token-magic-url.md", "rate-limit": 60, "rate-time": 3600, @@ -2961,7 +2969,7 @@ "weight": 24, "cookies": false, "type": "webAuth", - "demo": "account\/create-o-auth2token.md", + "demo": "account\/create-o-auth-2-token.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/account\/create-token-oauth2.md", "rate-limit": 50, "rate-time": 3600, @@ -3605,7 +3613,7 @@ "parameters": [ { "name": "code", - "description": "Credit Card Code. Possible values: amex, argencard, cabal, cencosud, diners, discover, elo, hipercard, jcb, mastercard, naranja, targeta-shopping, union-china-pay, visa, mir, maestro, rupay.", + "description": "Credit Card Code. Possible values: amex, argencard, cabal, cencosud, diners, discover, elo, hipercard, jcb, mastercard, naranja, targeta-shopping, unionpay, visa, mir, maestro, rupay.", "required": true, "schema": { "type": "string", @@ -3623,7 +3631,7 @@ "mastercard", "naranja", "targeta-shopping", - "union-china-pay", + "unionpay", "visa", "mir", "maestro", @@ -3643,7 +3651,7 @@ "Mastercard", "Naranja", "Tarjeta Shopping", - "Union China Pay", + "Union Pay", "Visa", "MIR", "Maestro", @@ -4439,7 +4447,7 @@ "weight": 65, "cookies": false, "type": "location", - "demo": "avatars\/get-q-r.md", + "demo": "avatars\/get-qr.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/avatars\/get-qr.md", "rate-limit": 0, "rate-time": 3600, @@ -4537,7 +4545,7 @@ "x-appwrite": { "method": "list", "group": "databases", - "weight": 321, + "weight": 316, "cookies": false, "type": "", "demo": "databases\/list.md", @@ -4643,7 +4651,7 @@ "x-appwrite": { "method": "create", "group": "databases", - "weight": 317, + "weight": 312, "cookies": false, "type": "", "demo": "databases\/create.md", @@ -4658,7 +4666,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tablesDB.createDatabase" + "replaceWith": "tablesDB.create" }, "methods": [ { @@ -4688,7 +4696,7 @@ "demo": "databases\/create.md", "deprecated": { "since": "1.8.0", - "replaceWith": "tablesDB.createDatabase" + "replaceWith": "tablesDB.create" } } ], @@ -4759,7 +4767,7 @@ "x-appwrite": { "method": "get", "group": "databases", - "weight": 318, + "weight": 313, "cookies": false, "type": "", "demo": "databases\/get.md", @@ -4852,7 +4860,7 @@ "x-appwrite": { "method": "update", "group": "databases", - "weight": 319, + "weight": 314, "cookies": false, "type": "", "demo": "databases\/update.md", @@ -4965,7 +4973,7 @@ "x-appwrite": { "method": "delete", "group": "databases", - "weight": 320, + "weight": 315, "cookies": false, "type": "", "demo": "databases\/delete.md", @@ -5059,7 +5067,7 @@ "x-appwrite": { "method": "listCollections", "group": "collections", - "weight": 329, + "weight": 324, "cookies": false, "type": "", "demo": "databases\/list-collections.md", @@ -5147,7 +5155,7 @@ "x-appwrite": { "method": "createCollection", "group": "collections", - "weight": 325, + "weight": 320, "cookies": false, "type": "", "demo": "databases\/create-collection.md", @@ -5256,7 +5264,7 @@ "x-appwrite": { "method": "getCollection", "group": "collections", - "weight": 326, + "weight": 321, "cookies": false, "type": "", "demo": "databases\/get-collection.md", @@ -5330,7 +5338,7 @@ "x-appwrite": { "method": "updateCollection", "group": "collections", - "weight": 327, + "weight": 322, "cookies": false, "type": "", "demo": "databases\/update-collection.md", @@ -5434,7 +5442,7 @@ "x-appwrite": { "method": "deleteCollection", "group": "collections", - "weight": 328, + "weight": 323, "cookies": false, "type": "", "demo": "databases\/delete-collection.md", @@ -5510,7 +5518,7 @@ "x-appwrite": { "method": "listAttributes", "group": "attributes", - "weight": 346, + "weight": 341, "cookies": false, "type": "", "demo": "databases\/list-attributes.md", @@ -5599,7 +5607,7 @@ "x-appwrite": { "method": "createBooleanAttribute", "group": "attributes", - "weight": 347, + "weight": 342, "cookies": false, "type": "", "demo": "databases\/create-boolean-attribute.md", @@ -5710,7 +5718,7 @@ "x-appwrite": { "method": "updateBooleanAttribute", "group": "attributes", - "weight": 348, + "weight": 343, "cookies": false, "type": "", "demo": "databases\/update-boolean-attribute.md", @@ -5826,7 +5834,7 @@ "x-appwrite": { "method": "createDatetimeAttribute", "group": "attributes", - "weight": 349, + "weight": 344, "cookies": false, "type": "", "demo": "databases\/create-datetime-attribute.md", @@ -5937,7 +5945,7 @@ "x-appwrite": { "method": "updateDatetimeAttribute", "group": "attributes", - "weight": 350, + "weight": 345, "cookies": false, "type": "", "demo": "databases\/update-datetime-attribute.md", @@ -6053,7 +6061,7 @@ "x-appwrite": { "method": "createEmailAttribute", "group": "attributes", - "weight": 351, + "weight": 346, "cookies": false, "type": "", "demo": "databases\/create-email-attribute.md", @@ -6164,7 +6172,7 @@ "x-appwrite": { "method": "updateEmailAttribute", "group": "attributes", - "weight": 352, + "weight": 347, "cookies": false, "type": "", "demo": "databases\/update-email-attribute.md", @@ -6280,7 +6288,7 @@ "x-appwrite": { "method": "createEnumAttribute", "group": "attributes", - "weight": 353, + "weight": 348, "cookies": false, "type": "", "demo": "databases\/create-enum-attribute.md", @@ -6400,7 +6408,7 @@ "x-appwrite": { "method": "updateEnumAttribute", "group": "attributes", - "weight": 354, + "weight": 349, "cookies": false, "type": "", "demo": "databases\/update-enum-attribute.md", @@ -6525,7 +6533,7 @@ "x-appwrite": { "method": "createFloatAttribute", "group": "attributes", - "weight": 355, + "weight": 350, "cookies": false, "type": "", "demo": "databases\/create-float-attribute.md", @@ -6646,7 +6654,7 @@ "x-appwrite": { "method": "updateFloatAttribute", "group": "attributes", - "weight": 356, + "weight": 351, "cookies": false, "type": "", "demo": "databases\/update-float-attribute.md", @@ -6772,7 +6780,7 @@ "x-appwrite": { "method": "createIntegerAttribute", "group": "attributes", - "weight": 357, + "weight": 352, "cookies": false, "type": "", "demo": "databases\/create-integer-attribute.md", @@ -6893,7 +6901,7 @@ "x-appwrite": { "method": "updateIntegerAttribute", "group": "attributes", - "weight": 358, + "weight": 353, "cookies": false, "type": "", "demo": "databases\/update-integer-attribute.md", @@ -7019,7 +7027,7 @@ "x-appwrite": { "method": "createIpAttribute", "group": "attributes", - "weight": 359, + "weight": 354, "cookies": false, "type": "", "demo": "databases\/create-ip-attribute.md", @@ -7130,7 +7138,7 @@ "x-appwrite": { "method": "updateIpAttribute", "group": "attributes", - "weight": 360, + "weight": 355, "cookies": false, "type": "", "demo": "databases\/update-ip-attribute.md", @@ -7222,6 +7230,714 @@ } } }, + "\/databases\/{databaseId}\/collections\/{collectionId}\/attributes\/line": { + "post": { + "summary": "Create line attribute", + "operationId": "databasesCreateLineAttribute", + "tags": [ + "databases" + ], + "description": "Create a geometric line attribute.", + "responses": { + "202": { + "description": "AttributeLine", + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/attributeLine" + } + } + } + } + }, + "deprecated": true, + "x-appwrite": { + "method": "createLineAttribute", + "group": "attributes", + "weight": 356, + "cookies": false, + "type": "", + "demo": "databases\/create-line-attribute.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-line-attribute.md", + "rate-limit": 0, + "rate-time": 3600, + "rate-key": "url:{url},ip:{ip}", + "scope": "collections.write", + "platforms": [ + "server" + ], + "packaging": false, + "deprecated": { + "since": "1.8.0", + "replaceWith": "tablesDB.createLineColumn" + }, + "auth": { + "Project": [], + "Key": [] + } + }, + "security": [ + { + "Project": [], + "Key": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + }, + { + "name": "collectionId", + "description": "Collection ID. You can create a new collection using the Database service [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateCollection).", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + } + ], + "requestBody": { + "content": { + "application\/json": { + "schema": { + "type": "object", + "properties": { + "key": { + "type": "string", + "description": "Attribute Key.", + "x-example": null + }, + "required": { + "type": "boolean", + "description": "Is attribute required?", + "x-example": false + }, + "default": { + "type": "array", + "description": "Default value for attribute when not provided, two-dimensional array of coordinate pairs, [[longitude, latitude], [longitude, latitude], \u2026], listing the vertices of the line in order. Cannot be set when attribute is required.", + "x-example": "[[1, 2], [3, 4], [5, 6]]", + "items": { + "oneOf": [ + { + "type": "array" + } + ] + }, + "x-nullable": true + } + }, + "required": [ + "key", + "required" + ] + } + } + } + } + } + }, + "\/databases\/{databaseId}\/collections\/{collectionId}\/attributes\/line\/{key}": { + "patch": { + "summary": "Update line attribute", + "operationId": "databasesUpdateLineAttribute", + "tags": [ + "databases" + ], + "description": "Update a line attribute. Changing the `default` value will not update already existing documents.", + "responses": { + "200": { + "description": "AttributeLine", + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/attributeLine" + } + } + } + } + }, + "deprecated": true, + "x-appwrite": { + "method": "updateLineAttribute", + "group": "attributes", + "weight": 357, + "cookies": false, + "type": "", + "demo": "databases\/update-line-attribute.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-line-attribute.md", + "rate-limit": 0, + "rate-time": 3600, + "rate-key": "url:{url},ip:{ip}", + "scope": "collections.write", + "platforms": [ + "server" + ], + "packaging": false, + "deprecated": { + "since": "1.8.0", + "replaceWith": "tablesDB.updateLineColumn" + }, + "auth": { + "Project": [], + "Key": [] + } + }, + "security": [ + { + "Project": [], + "Key": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + }, + { + "name": "collectionId", + "description": "Collection ID. You can create a new collection using the Database service [server integration](https:\/\/appwrite.io\/docs\/server\/databases#createCollection).", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + }, + { + "name": "key", + "description": "Attribute Key.", + "required": true, + "schema": { + "type": "string" + }, + "in": "path" + } + ], + "requestBody": { + "content": { + "application\/json": { + "schema": { + "type": "object", + "properties": { + "required": { + "type": "boolean", + "description": "Is attribute required?", + "x-example": false + }, + "default": { + "type": "array", + "description": "Default value for attribute when not provided, two-dimensional array of coordinate pairs, [[longitude, latitude], [longitude, latitude], \u2026], listing the vertices of the line in order. Cannot be set when attribute is required.", + "x-example": "[[1, 2], [3, 4], [5, 6]]", + "items": { + "oneOf": [ + { + "type": "array" + } + ] + }, + "x-nullable": true + }, + "newKey": { + "type": "string", + "description": "New attribute key.", + "x-example": null + } + }, + "required": [ + "required" + ] + } + } + } + } + } + }, + "\/databases\/{databaseId}\/collections\/{collectionId}\/attributes\/point": { + "post": { + "summary": "Create point attribute", + "operationId": "databasesCreatePointAttribute", + "tags": [ + "databases" + ], + "description": "Create a geometric point attribute.", + "responses": { + "202": { + "description": "AttributePoint", + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/attributePoint" + } + } + } + } + }, + "deprecated": true, + "x-appwrite": { + "method": "createPointAttribute", + "group": "attributes", + "weight": 358, + "cookies": false, + "type": "", + "demo": "databases\/create-point-attribute.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-point-attribute.md", + "rate-limit": 0, + "rate-time": 3600, + "rate-key": "url:{url},ip:{ip}", + "scope": "collections.write", + "platforms": [ + "server" + ], + "packaging": false, + "deprecated": { + "since": "1.8.0", + "replaceWith": "tablesDB.createPointColumn" + }, + "auth": { + "Project": [], + "Key": [] + } + }, + "security": [ + { + "Project": [], + "Key": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + }, + { + "name": "collectionId", + "description": "Collection ID. You can create a new collection using the Database service [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateCollection).", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + } + ], + "requestBody": { + "content": { + "application\/json": { + "schema": { + "type": "object", + "properties": { + "key": { + "type": "string", + "description": "Attribute Key.", + "x-example": null + }, + "required": { + "type": "boolean", + "description": "Is attribute required?", + "x-example": false + }, + "default": { + "type": "array", + "description": "Default value for attribute when not provided, array of two numbers [longitude, latitude], representing a single coordinate. Cannot be set when attribute is required.", + "x-example": "[1, 2]", + "items": { + "oneOf": [ + { + "type": "array" + } + ] + }, + "x-nullable": true + } + }, + "required": [ + "key", + "required" + ] + } + } + } + } + } + }, + "\/databases\/{databaseId}\/collections\/{collectionId}\/attributes\/point\/{key}": { + "patch": { + "summary": "Update point attribute", + "operationId": "databasesUpdatePointAttribute", + "tags": [ + "databases" + ], + "description": "Update a point attribute. Changing the `default` value will not update already existing documents.", + "responses": { + "200": { + "description": "AttributePoint", + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/attributePoint" + } + } + } + } + }, + "deprecated": true, + "x-appwrite": { + "method": "updatePointAttribute", + "group": "attributes", + "weight": 359, + "cookies": false, + "type": "", + "demo": "databases\/update-point-attribute.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-point-attribute.md", + "rate-limit": 0, + "rate-time": 3600, + "rate-key": "url:{url},ip:{ip}", + "scope": "collections.write", + "platforms": [ + "server" + ], + "packaging": false, + "deprecated": { + "since": "1.8.0", + "replaceWith": "tablesDB.updatePointColumn" + }, + "auth": { + "Project": [], + "Key": [] + } + }, + "security": [ + { + "Project": [], + "Key": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + }, + { + "name": "collectionId", + "description": "Collection ID. You can create a new collection using the Database service [server integration](https:\/\/appwrite.io\/docs\/server\/databases#createCollection).", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + }, + { + "name": "key", + "description": "Attribute Key.", + "required": true, + "schema": { + "type": "string" + }, + "in": "path" + } + ], + "requestBody": { + "content": { + "application\/json": { + "schema": { + "type": "object", + "properties": { + "required": { + "type": "boolean", + "description": "Is attribute required?", + "x-example": false + }, + "default": { + "type": "array", + "description": "Default value for attribute when not provided, array of two numbers [longitude, latitude], representing a single coordinate. Cannot be set when attribute is required.", + "x-example": "[1, 2]", + "items": { + "oneOf": [ + { + "type": "array" + } + ] + }, + "x-nullable": true + }, + "newKey": { + "type": "string", + "description": "New attribute key.", + "x-example": null + } + }, + "required": [ + "required" + ] + } + } + } + } + } + }, + "\/databases\/{databaseId}\/collections\/{collectionId}\/attributes\/polygon": { + "post": { + "summary": "Create polygon attribute", + "operationId": "databasesCreatePolygonAttribute", + "tags": [ + "databases" + ], + "description": "Create a geometric polygon attribute.", + "responses": { + "202": { + "description": "AttributePolygon", + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/attributePolygon" + } + } + } + } + }, + "deprecated": true, + "x-appwrite": { + "method": "createPolygonAttribute", + "group": "attributes", + "weight": 360, + "cookies": false, + "type": "", + "demo": "databases\/create-polygon-attribute.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-polygon-attribute.md", + "rate-limit": 0, + "rate-time": 3600, + "rate-key": "url:{url},ip:{ip}", + "scope": "collections.write", + "platforms": [ + "server" + ], + "packaging": false, + "deprecated": { + "since": "1.8.0", + "replaceWith": "tablesDB.createPolygonColumn" + }, + "auth": { + "Project": [], + "Key": [] + } + }, + "security": [ + { + "Project": [], + "Key": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + }, + { + "name": "collectionId", + "description": "Collection ID. You can create a new collection using the Database service [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateCollection).", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + } + ], + "requestBody": { + "content": { + "application\/json": { + "schema": { + "type": "object", + "properties": { + "key": { + "type": "string", + "description": "Attribute Key.", + "x-example": null + }, + "required": { + "type": "boolean", + "description": "Is attribute required?", + "x-example": false + }, + "default": { + "type": "array", + "description": "Default value for attribute when not provided, three-dimensional array where the outer array holds one or more linear rings, [[[longitude, latitude], \u2026], \u2026], the first ring is the exterior boundary, any additional rings are interior holes, and each ring must start and end with the same coordinate pair. Cannot be set when attribute is required.", + "x-example": "[[[1, 2], [3, 4], [5, 6], [1, 2]]]", + "items": { + "oneOf": [ + { + "type": "array" + } + ] + }, + "x-nullable": true + } + }, + "required": [ + "key", + "required" + ] + } + } + } + } + } + }, + "\/databases\/{databaseId}\/collections\/{collectionId}\/attributes\/polygon\/{key}": { + "patch": { + "summary": "Update polygon attribute", + "operationId": "databasesUpdatePolygonAttribute", + "tags": [ + "databases" + ], + "description": "Update a polygon attribute. Changing the `default` value will not update already existing documents.", + "responses": { + "200": { + "description": "AttributePolygon", + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/attributePolygon" + } + } + } + } + }, + "deprecated": true, + "x-appwrite": { + "method": "updatePolygonAttribute", + "group": "attributes", + "weight": 361, + "cookies": false, + "type": "", + "demo": "databases\/update-polygon-attribute.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-polygon-attribute.md", + "rate-limit": 0, + "rate-time": 3600, + "rate-key": "url:{url},ip:{ip}", + "scope": "collections.write", + "platforms": [ + "server" + ], + "packaging": false, + "deprecated": { + "since": "1.8.0", + "replaceWith": "tablesDB.updatePolygonColumn" + }, + "auth": { + "Project": [], + "Key": [] + } + }, + "security": [ + { + "Project": [], + "Key": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + }, + { + "name": "collectionId", + "description": "Collection ID. You can create a new collection using the Database service [server integration](https:\/\/appwrite.io\/docs\/server\/databases#createCollection).", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + }, + { + "name": "key", + "description": "Attribute Key.", + "required": true, + "schema": { + "type": "string" + }, + "in": "path" + } + ], + "requestBody": { + "content": { + "application\/json": { + "schema": { + "type": "object", + "properties": { + "required": { + "type": "boolean", + "description": "Is attribute required?", + "x-example": false + }, + "default": { + "type": "array", + "description": "Default value for attribute when not provided, three-dimensional array where the outer array holds one or more linear rings, [[[longitude, latitude], \u2026], \u2026], the first ring is the exterior boundary, any additional rings are interior holes, and each ring must start and end with the same coordinate pair. Cannot be set when attribute is required.", + "x-example": "[[[1, 2], [3, 4], [5, 6], [1, 2]]]", + "items": { + "oneOf": [ + { + "type": "array" + } + ] + }, + "x-nullable": true + }, + "newKey": { + "type": "string", + "description": "New attribute key.", + "x-example": null + } + }, + "required": [ + "required" + ] + } + } + } + } + } + }, "\/databases\/{databaseId}\/collections\/{collectionId}\/attributes\/relationship": { "post": { "summary": "Create relationship attribute", @@ -7246,7 +7962,7 @@ "x-appwrite": { "method": "createRelationshipAttribute", "group": "attributes", - "weight": 361, + "weight": 362, "cookies": false, "type": "", "demo": "databases\/create-relationship-attribute.md", @@ -7382,7 +8098,7 @@ "x-appwrite": { "method": "createStringAttribute", "group": "attributes", - "weight": 363, + "weight": 364, "cookies": false, "type": "", "demo": "databases\/create-string-attribute.md", @@ -7504,7 +8220,7 @@ "x-appwrite": { "method": "updateStringAttribute", "group": "attributes", - "weight": 364, + "weight": 365, "cookies": false, "type": "", "demo": "databases\/update-string-attribute.md", @@ -7625,7 +8341,7 @@ "x-appwrite": { "method": "createUrlAttribute", "group": "attributes", - "weight": 365, + "weight": 366, "cookies": false, "type": "", "demo": "databases\/create-url-attribute.md", @@ -7736,7 +8452,7 @@ "x-appwrite": { "method": "updateUrlAttribute", "group": "attributes", - "weight": 366, + "weight": 367, "cookies": false, "type": "", "demo": "databases\/update-url-attribute.md", @@ -7883,7 +8599,7 @@ "x-appwrite": { "method": "getAttribute", "group": "attributes", - "weight": 344, + "weight": 339, "cookies": false, "type": "", "demo": "databases\/get-attribute.md", @@ -7959,7 +8675,7 @@ "x-appwrite": { "method": "deleteAttribute", "group": "attributes", - "weight": 345, + "weight": 340, "cookies": false, "type": "", "demo": "databases\/delete-attribute.md", @@ -8044,7 +8760,7 @@ "x-appwrite": { "method": "updateRelationshipAttribute", "group": "attributes", - "weight": 362, + "weight": 363, "cookies": false, "type": "", "demo": "databases\/update-relationship-attribute.md", @@ -8157,7 +8873,7 @@ "x-appwrite": { "method": "listDocuments", "group": "documents", - "weight": 340, + "weight": 335, "cookies": false, "type": "", "demo": "databases\/list-documents.md", @@ -8248,7 +8964,7 @@ "x-appwrite": { "method": "createDocument", "group": "documents", - "weight": 332, + "weight": 327, "cookies": false, "type": "", "demo": "databases\/create-document.md", @@ -8383,7 +9099,7 @@ "data": { "type": "object", "description": "Document data as JSON object.", - "x-example": "{}" + "x-example": "{\"username\":\"walter.obrien\",\"email\":\"walter.obrien@example.com\",\"fullName\":\"Walter O'Brien\",\"age\":30,\"isAdmin\":false}" }, "permissions": { "type": "array", @@ -8408,7 +9124,7 @@ } }, "put": { - "summary": "Create or update documents", + "summary": "Upsert documents", "operationId": "databasesUpsertDocuments", "tags": [ "databases" @@ -8430,7 +9146,7 @@ "x-appwrite": { "method": "upsertDocuments", "group": "documents", - "weight": 337, + "weight": 332, "cookies": false, "type": "", "demo": "databases\/upsert-documents.md", @@ -8560,7 +9276,7 @@ "x-appwrite": { "method": "updateDocuments", "group": "documents", - "weight": 335, + "weight": 330, "cookies": false, "type": "", "demo": "databases\/update-documents.md", @@ -8659,7 +9375,7 @@ "x-appwrite": { "method": "deleteDocuments", "group": "documents", - "weight": 339, + "weight": 334, "cookies": false, "type": "", "demo": "databases\/delete-documents.md", @@ -8755,7 +9471,7 @@ "x-appwrite": { "method": "getDocument", "group": "documents", - "weight": 333, + "weight": 328, "cookies": false, "type": "", "demo": "databases\/get-document.md", @@ -8834,7 +9550,7 @@ ] }, "put": { - "summary": "Create or update a document", + "summary": "Upsert a document", "operationId": "databasesUpsertDocument", "tags": [ "databases" @@ -8856,7 +9572,7 @@ "x-appwrite": { "method": "upsertDocument", "group": "documents", - "weight": 336, + "weight": 331, "cookies": false, "type": "", "demo": "databases\/upsert-document.md", @@ -9007,7 +9723,7 @@ "x-appwrite": { "method": "updateDocument", "group": "documents", - "weight": 334, + "weight": 329, "cookies": false, "type": "", "demo": "databases\/update-document.md", @@ -9112,7 +9828,7 @@ "x-appwrite": { "method": "deleteDocument", "group": "documents", - "weight": 338, + "weight": 333, "cookies": false, "type": "", "demo": "databases\/delete-document.md", @@ -9202,7 +9918,7 @@ "x-appwrite": { "method": "decrementDocumentAttribute", "group": "documents", - "weight": 343, + "weight": 338, "cookies": false, "type": "", "demo": "databases\/decrement-document-attribute.md", @@ -9323,7 +10039,7 @@ "x-appwrite": { "method": "incrementDocumentAttribute", "group": "documents", - "weight": 342, + "weight": 337, "cookies": false, "type": "", "demo": "databases\/increment-document-attribute.md", @@ -9444,7 +10160,7 @@ "x-appwrite": { "method": "listIndexes", "group": "indexes", - "weight": 370, + "weight": 371, "cookies": false, "type": "", "demo": "databases\/list-indexes.md", @@ -9531,7 +10247,7 @@ "x-appwrite": { "method": "createIndex", "group": "indexes", - "weight": 367, + "weight": 368, "cookies": false, "type": "", "demo": "databases\/create-index.md", @@ -9599,7 +10315,8 @@ "enum": [ "key", "fulltext", - "unique" + "unique", + "spatial" ], "x-enum-name": "IndexType", "x-enum-keys": [] @@ -9664,7 +10381,7 @@ "x-appwrite": { "method": "getIndex", "group": "indexes", - "weight": 368, + "weight": 369, "cookies": false, "type": "", "demo": "databases\/get-index.md", @@ -9740,7 +10457,7 @@ "x-appwrite": { "method": "deleteIndex", "group": "indexes", - "weight": 369, + "weight": 370, "cookies": false, "type": "", "demo": "databases\/delete-index.md", @@ -9825,7 +10542,7 @@ "x-appwrite": { "method": "list", "group": "functions", - "weight": 432, + "weight": 440, "cookies": false, "type": "", "demo": "functions\/list.md", @@ -9899,7 +10616,7 @@ "x-appwrite": { "method": "create", "group": "functions", - "weight": 429, + "weight": 437, "cookies": false, "type": "", "demo": "functions\/create.md", @@ -10133,7 +10850,7 @@ "x-appwrite": { "method": "listRuntimes", "group": "runtimes", - "weight": 434, + "weight": 442, "cookies": false, "type": "", "demo": "functions\/list-runtimes.md", @@ -10183,7 +10900,7 @@ "x-appwrite": { "method": "listSpecifications", "group": "runtimes", - "weight": 435, + "weight": 443, "cookies": false, "type": "", "demo": "functions\/list-specifications.md", @@ -10234,7 +10951,7 @@ "x-appwrite": { "method": "get", "group": "functions", - "weight": 430, + "weight": 438, "cookies": false, "type": "", "demo": "functions\/get.md", @@ -10294,7 +11011,7 @@ "x-appwrite": { "method": "update", "group": "functions", - "weight": 431, + "weight": 439, "cookies": false, "type": "", "demo": "functions\/update.md", @@ -10525,7 +11242,7 @@ "x-appwrite": { "method": "delete", "group": "functions", - "weight": 433, + "weight": 441, "cookies": false, "type": "", "demo": "functions\/delete.md", @@ -10587,7 +11304,7 @@ "x-appwrite": { "method": "updateFunctionDeployment", "group": "functions", - "weight": 438, + "weight": 446, "cookies": false, "type": "", "demo": "functions\/update-function-deployment.md", @@ -10668,7 +11385,7 @@ "x-appwrite": { "method": "listDeployments", "group": "deployments", - "weight": 439, + "weight": 447, "cookies": false, "type": "", "demo": "functions\/list-deployments.md", @@ -10752,7 +11469,7 @@ "x-appwrite": { "method": "createDeployment", "group": "deployments", - "weight": 436, + "weight": 444, "cookies": false, "type": "upload", "demo": "functions\/create-deployment.md", @@ -10849,7 +11566,7 @@ "x-appwrite": { "method": "createDuplicateDeployment", "group": "deployments", - "weight": 444, + "weight": 452, "cookies": false, "type": "", "demo": "functions\/create-duplicate-deployment.md", @@ -10935,7 +11652,7 @@ "x-appwrite": { "method": "createTemplateDeployment", "group": "deployments", - "weight": 441, + "weight": 449, "cookies": false, "type": "", "demo": "functions\/create-template-deployment.md", @@ -11039,7 +11756,7 @@ "x-appwrite": { "method": "createVcsDeployment", "group": "deployments", - "weight": 442, + "weight": 450, "cookies": false, "type": "", "demo": "functions\/create-vcs-deployment.md", @@ -11137,7 +11854,7 @@ "x-appwrite": { "method": "getDeployment", "group": "deployments", - "weight": 437, + "weight": 445, "cookies": false, "type": "", "demo": "functions\/get-deployment.md", @@ -11200,7 +11917,7 @@ "x-appwrite": { "method": "deleteDeployment", "group": "deployments", - "weight": 440, + "weight": 448, "cookies": false, "type": "", "demo": "functions\/delete-deployment.md", @@ -11265,7 +11982,7 @@ "x-appwrite": { "method": "getDeploymentDownload", "group": "deployments", - "weight": 443, + "weight": 451, "cookies": false, "type": "location", "demo": "functions\/get-deployment-download.md", @@ -11356,7 +12073,7 @@ "x-appwrite": { "method": "updateDeploymentStatus", "group": "deployments", - "weight": 445, + "weight": 453, "cookies": false, "type": "", "demo": "functions\/update-deployment-status.md", @@ -11428,7 +12145,7 @@ "x-appwrite": { "method": "listExecutions", "group": "executions", - "weight": 448, + "weight": 456, "cookies": false, "type": "", "demo": "functions\/list-executions.md", @@ -11505,7 +12222,7 @@ "x-appwrite": { "method": "createExecution", "group": "executions", - "weight": 446, + "weight": 454, "cookies": false, "type": "", "demo": "functions\/create-execution.md", @@ -11568,7 +12285,7 @@ }, "method": { "type": "string", - "description": "HTTP method of execution. Default value is GET.", + "description": "HTTP method of execution. Default value is POST.", "x-example": "GET", "enum": [ "GET", @@ -11576,7 +12293,8 @@ "PUT", "PATCH", "DELETE", - "OPTIONS" + "OPTIONS", + "HEAD" ], "x-enum-name": "ExecutionMethod", "x-enum-keys": [] @@ -11622,7 +12340,7 @@ "x-appwrite": { "method": "getExecution", "group": "executions", - "weight": 447, + "weight": 455, "cookies": false, "type": "", "demo": "functions\/get-execution.md", @@ -11689,7 +12407,7 @@ "x-appwrite": { "method": "deleteExecution", "group": "executions", - "weight": 449, + "weight": 457, "cookies": false, "type": "", "demo": "functions\/delete-execution.md", @@ -11761,7 +12479,7 @@ "x-appwrite": { "method": "listVariables", "group": "variables", - "weight": 454, + "weight": 462, "cookies": false, "type": "", "demo": "functions\/list-variables.md", @@ -11821,7 +12539,7 @@ "x-appwrite": { "method": "createVariable", "group": "variables", - "weight": 452, + "weight": 460, "cookies": false, "type": "", "demo": "functions\/create-variable.md", @@ -11913,7 +12631,7 @@ "x-appwrite": { "method": "getVariable", "group": "variables", - "weight": 453, + "weight": 461, "cookies": false, "type": "", "demo": "functions\/get-variable.md", @@ -11983,7 +12701,7 @@ "x-appwrite": { "method": "updateVariable", "group": "variables", - "weight": 455, + "weight": 463, "cookies": false, "type": "", "demo": "functions\/update-variable.md", @@ -12075,7 +12793,7 @@ "x-appwrite": { "method": "deleteVariable", "group": "variables", - "weight": 456, + "weight": 464, "cookies": false, "type": "", "demo": "functions\/delete-variable.md", @@ -12147,7 +12865,7 @@ "x-appwrite": { "method": "query", "group": "graphql", - "weight": 255, + "weight": 250, "cookies": false, "type": "graphql", "demo": "graphql\/query.md", @@ -12201,7 +12919,7 @@ "x-appwrite": { "method": "mutation", "group": "graphql", - "weight": 254, + "weight": 249, "cookies": false, "type": "graphql", "demo": "graphql\/mutation.md", @@ -12469,7 +13187,7 @@ "weight": 80, "cookies": false, "type": "", - "demo": "health\/get-d-b.md", + "demo": "health\/get-db.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/health\/get-db.md", "rate-limit": 0, "rate-time": 3600, @@ -13211,7 +13929,7 @@ }, "\/health\/queue\/stats-resources": { "get": { - "summary": "Get stats resources queue", + "summary": "Get stats resources queue", "operationId": "healthGetQueueStatsResources", "tags": [ "health" @@ -13791,7 +14509,7 @@ "weight": 73, "cookies": false, "type": "", - "demo": "locale\/list-countries-e-u.md", + "demo": "locale\/list-countries-eu.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/locale\/list-countries-eu.md", "rate-limit": 0, "rate-time": 3600, @@ -14004,7 +14722,7 @@ "x-appwrite": { "method": "listMessages", "group": "messages", - "weight": 309, + "weight": 304, "cookies": false, "type": "", "demo": "messaging\/list-messages.md", @@ -14081,7 +14799,7 @@ "x-appwrite": { "method": "createEmail", "group": "messages", - "weight": 306, + "weight": 301, "cookies": false, "type": "", "demo": "messaging\/create-email.md", @@ -14226,7 +14944,7 @@ "x-appwrite": { "method": "updateEmail", "group": "messages", - "weight": 313, + "weight": 308, "cookies": false, "type": "", "demo": "messaging\/update-email.md", @@ -14373,7 +15091,7 @@ "x-appwrite": { "method": "createPush", "group": "messages", - "weight": 308, + "weight": 303, "cookies": false, "type": "", "demo": "messaging\/create-push.md", @@ -14548,7 +15266,7 @@ "x-appwrite": { "method": "updatePush", "group": "messages", - "weight": 315, + "weight": 310, "cookies": false, "type": "", "demo": "messaging\/update-push.md", @@ -14727,7 +15445,7 @@ "x-appwrite": { "method": "createSms", "group": "messages", - "weight": 307, + "weight": 302, "cookies": false, "type": "", "demo": "messaging\/create-sms.md", @@ -14808,7 +15526,7 @@ } ], "description": "Create a new SMS message.", - "demo": "messaging\/create-s-m-s.md" + "demo": "messaging\/create-sms.md" } ], "auth": { @@ -14907,7 +15625,7 @@ "x-appwrite": { "method": "updateSms", "group": "messages", - "weight": 314, + "weight": 309, "cookies": false, "type": "", "demo": "messaging\/update-sms.md", @@ -14986,7 +15704,7 @@ } ], "description": "Update an SMS message by its unique ID. This endpoint only works on messages that are in draft status. Messages that are already processing, sent, or failed cannot be updated.\n", - "demo": "messaging\/update-s-m-s.md" + "demo": "messaging\/update-sms.md" } ], "auth": { @@ -15088,7 +15806,7 @@ "x-appwrite": { "method": "getMessage", "group": "messages", - "weight": 312, + "weight": 307, "cookies": false, "type": "", "demo": "messaging\/get-message.md", @@ -15142,7 +15860,7 @@ "x-appwrite": { "method": "delete", "group": "messages", - "weight": 316, + "weight": 311, "cookies": false, "type": "", "demo": "messaging\/delete.md", @@ -15205,7 +15923,7 @@ "x-appwrite": { "method": "listMessageLogs", "group": "logs", - "weight": 310, + "weight": 305, "cookies": false, "type": "", "demo": "messaging\/list-message-logs.md", @@ -15281,7 +15999,7 @@ "x-appwrite": { "method": "listTargets", "group": "messages", - "weight": 311, + "weight": 306, "cookies": false, "type": "", "demo": "messaging\/list-targets.md", @@ -15357,7 +16075,7 @@ "x-appwrite": { "method": "listProviders", "group": "providers", - "weight": 281, + "weight": 276, "cookies": false, "type": "", "demo": "messaging\/list-providers.md", @@ -15434,7 +16152,7 @@ "x-appwrite": { "method": "createApnsProvider", "group": "providers", - "weight": 280, + "weight": 275, "cookies": false, "type": "", "demo": "messaging\/create-apns-provider.md", @@ -15517,7 +16235,7 @@ } ], "description": "Create a new Apple Push Notification service provider.", - "demo": "messaging\/create-a-p-n-s-provider.md" + "demo": "messaging\/create-apns-provider.md" } ], "auth": { @@ -15612,7 +16330,7 @@ "x-appwrite": { "method": "updateApnsProvider", "group": "providers", - "weight": 293, + "weight": 288, "cookies": false, "type": "", "demo": "messaging\/update-apns-provider.md", @@ -15693,7 +16411,7 @@ } ], "description": "Update a Apple Push Notification service provider by its unique ID.", - "demo": "messaging\/update-a-p-n-s-provider.md" + "demo": "messaging\/update-apns-provider.md" } ], "auth": { @@ -15791,7 +16509,7 @@ "x-appwrite": { "method": "createFcmProvider", "group": "providers", - "weight": 279, + "weight": 274, "cookies": false, "type": "", "demo": "messaging\/create-fcm-provider.md", @@ -15866,7 +16584,7 @@ } ], "description": "Create a new Firebase Cloud Messaging provider.", - "demo": "messaging\/create-f-c-m-provider.md" + "demo": "messaging\/create-fcm-provider.md" } ], "auth": { @@ -15941,7 +16659,7 @@ "x-appwrite": { "method": "updateFcmProvider", "group": "providers", - "weight": 292, + "weight": 287, "cookies": false, "type": "", "demo": "messaging\/update-fcm-provider.md", @@ -16014,7 +16732,7 @@ } ], "description": "Update a Firebase Cloud Messaging provider by its unique ID.", - "demo": "messaging\/update-f-c-m-provider.md" + "demo": "messaging\/update-fcm-provider.md" } ], "auth": { @@ -16092,7 +16810,7 @@ "x-appwrite": { "method": "createMailgunProvider", "group": "providers", - "weight": 271, + "weight": 266, "cookies": false, "type": "", "demo": "messaging\/create-mailgun-provider.md", @@ -16208,7 +16926,7 @@ "x-appwrite": { "method": "updateMailgunProvider", "group": "providers", - "weight": 284, + "weight": 279, "cookies": false, "type": "", "demo": "messaging\/update-mailgun-provider.md", @@ -16327,10 +17045,10 @@ "x-appwrite": { "method": "createMsg91Provider", "group": "providers", - "weight": 274, + "weight": 269, "cookies": false, "type": "", - "demo": "messaging\/create-msg91provider.md", + "demo": "messaging\/create-msg-91-provider.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/messaging\/create-msg91-provider.md", "rate-limit": 0, "rate-time": 3600, @@ -16423,10 +17141,10 @@ "x-appwrite": { "method": "updateMsg91Provider", "group": "providers", - "weight": 287, + "weight": 282, "cookies": false, "type": "", - "demo": "messaging\/update-msg91provider.md", + "demo": "messaging\/update-msg-91-provider.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/messaging\/update-msg91-provider.md", "rate-limit": 0, "rate-time": 3600, @@ -16522,7 +17240,7 @@ "x-appwrite": { "method": "createSendgridProvider", "group": "providers", - "weight": 272, + "weight": 267, "cookies": false, "type": "", "demo": "messaging\/create-sendgrid-provider.md", @@ -16628,7 +17346,7 @@ "x-appwrite": { "method": "updateSendgridProvider", "group": "providers", - "weight": 285, + "weight": 280, "cookies": false, "type": "", "demo": "messaging\/update-sendgrid-provider.md", @@ -16737,7 +17455,7 @@ "x-appwrite": { "method": "createSmtpProvider", "group": "providers", - "weight": 273, + "weight": 268, "cookies": false, "type": "", "demo": "messaging\/create-smtp-provider.md", @@ -16834,7 +17552,7 @@ } ], "description": "Create a new SMTP provider.", - "demo": "messaging\/create-s-m-t-p-provider.md" + "demo": "messaging\/create-smtp-provider.md" } ], "auth": { @@ -16967,7 +17685,7 @@ "x-appwrite": { "method": "updateSmtpProvider", "group": "providers", - "weight": 286, + "weight": 281, "cookies": false, "type": "", "demo": "messaging\/update-smtp-provider.md", @@ -17060,7 +17778,7 @@ } ], "description": "Update a SMTP provider by its unique ID.", - "demo": "messaging\/update-s-m-t-p-provider.md" + "demo": "messaging\/update-smtp-provider.md" } ], "auth": { @@ -17195,7 +17913,7 @@ "x-appwrite": { "method": "createTelesignProvider", "group": "providers", - "weight": 275, + "weight": 270, "cookies": false, "type": "", "demo": "messaging\/create-telesign-provider.md", @@ -17291,7 +18009,7 @@ "x-appwrite": { "method": "updateTelesignProvider", "group": "providers", - "weight": 288, + "weight": 283, "cookies": false, "type": "", "demo": "messaging\/update-telesign-provider.md", @@ -17390,7 +18108,7 @@ "x-appwrite": { "method": "createTextmagicProvider", "group": "providers", - "weight": 276, + "weight": 271, "cookies": false, "type": "", "demo": "messaging\/create-textmagic-provider.md", @@ -17486,7 +18204,7 @@ "x-appwrite": { "method": "updateTextmagicProvider", "group": "providers", - "weight": 289, + "weight": 284, "cookies": false, "type": "", "demo": "messaging\/update-textmagic-provider.md", @@ -17585,7 +18303,7 @@ "x-appwrite": { "method": "createTwilioProvider", "group": "providers", - "weight": 277, + "weight": 272, "cookies": false, "type": "", "demo": "messaging\/create-twilio-provider.md", @@ -17681,7 +18399,7 @@ "x-appwrite": { "method": "updateTwilioProvider", "group": "providers", - "weight": 290, + "weight": 285, "cookies": false, "type": "", "demo": "messaging\/update-twilio-provider.md", @@ -17780,7 +18498,7 @@ "x-appwrite": { "method": "createVonageProvider", "group": "providers", - "weight": 278, + "weight": 273, "cookies": false, "type": "", "demo": "messaging\/create-vonage-provider.md", @@ -17876,7 +18594,7 @@ "x-appwrite": { "method": "updateVonageProvider", "group": "providers", - "weight": 291, + "weight": 286, "cookies": false, "type": "", "demo": "messaging\/update-vonage-provider.md", @@ -17975,7 +18693,7 @@ "x-appwrite": { "method": "getProvider", "group": "providers", - "weight": 283, + "weight": 278, "cookies": false, "type": "", "demo": "messaging\/get-provider.md", @@ -18029,7 +18747,7 @@ "x-appwrite": { "method": "deleteProvider", "group": "providers", - "weight": 294, + "weight": 289, "cookies": false, "type": "", "demo": "messaging\/delete-provider.md", @@ -18092,7 +18810,7 @@ "x-appwrite": { "method": "listProviderLogs", "group": "providers", - "weight": 282, + "weight": 277, "cookies": false, "type": "", "demo": "messaging\/list-provider-logs.md", @@ -18168,7 +18886,7 @@ "x-appwrite": { "method": "listSubscriberLogs", "group": "subscribers", - "weight": 303, + "weight": 298, "cookies": false, "type": "", "demo": "messaging\/list-subscriber-logs.md", @@ -18244,7 +18962,7 @@ "x-appwrite": { "method": "listTopics", "group": "topics", - "weight": 296, + "weight": 291, "cookies": false, "type": "", "demo": "messaging\/list-topics.md", @@ -18319,7 +19037,7 @@ "x-appwrite": { "method": "createTopic", "group": "topics", - "weight": 295, + "weight": 290, "cookies": false, "type": "", "demo": "messaging\/create-topic.md", @@ -18403,7 +19121,7 @@ "x-appwrite": { "method": "getTopic", "group": "topics", - "weight": 298, + "weight": 293, "cookies": false, "type": "", "demo": "messaging\/get-topic.md", @@ -18464,7 +19182,7 @@ "x-appwrite": { "method": "updateTopic", "group": "topics", - "weight": 299, + "weight": 294, "cookies": false, "type": "", "demo": "messaging\/update-topic.md", @@ -18542,7 +19260,7 @@ "x-appwrite": { "method": "deleteTopic", "group": "topics", - "weight": 300, + "weight": 295, "cookies": false, "type": "", "demo": "messaging\/delete-topic.md", @@ -18605,7 +19323,7 @@ "x-appwrite": { "method": "listTopicLogs", "group": "topics", - "weight": 297, + "weight": 292, "cookies": false, "type": "", "demo": "messaging\/list-topic-logs.md", @@ -18681,7 +19399,7 @@ "x-appwrite": { "method": "listSubscribers", "group": "subscribers", - "weight": 302, + "weight": 297, "cookies": false, "type": "", "demo": "messaging\/list-subscribers.md", @@ -18766,7 +19484,7 @@ "x-appwrite": { "method": "createSubscriber", "group": "subscribers", - "weight": 301, + "weight": 296, "cookies": false, "type": "", "demo": "messaging\/create-subscriber.md", @@ -18858,7 +19576,7 @@ "x-appwrite": { "method": "getSubscriber", "group": "subscribers", - "weight": 304, + "weight": 299, "cookies": false, "type": "", "demo": "messaging\/get-subscriber.md", @@ -18922,7 +19640,7 @@ "x-appwrite": { "method": "deleteSubscriber", "group": "subscribers", - "weight": 305, + "weight": 300, "cookies": false, "type": "", "demo": "messaging\/delete-subscriber.md", @@ -18999,7 +19717,7 @@ "x-appwrite": { "method": "list", "group": "sites", - "weight": 461, + "weight": 469, "cookies": false, "type": "", "demo": "sites\/list.md", @@ -19070,7 +19788,7 @@ "x-appwrite": { "method": "create", "group": "sites", - "weight": 459, + "weight": 467, "cookies": false, "type": "", "demo": "sites\/create.md", @@ -19320,7 +20038,7 @@ "x-appwrite": { "method": "listFrameworks", "group": "frameworks", - "weight": 464, + "weight": 472, "cookies": false, "type": "", "demo": "sites\/list-frameworks.md", @@ -19370,7 +20088,7 @@ "x-appwrite": { "method": "listSpecifications", "group": "frameworks", - "weight": 487, + "weight": 495, "cookies": false, "type": "", "demo": "sites\/list-specifications.md", @@ -19421,7 +20139,7 @@ "x-appwrite": { "method": "get", "group": "sites", - "weight": 460, + "weight": 468, "cookies": false, "type": "", "demo": "sites\/get.md", @@ -19481,7 +20199,7 @@ "x-appwrite": { "method": "update", "group": "sites", - "weight": 462, + "weight": 470, "cookies": false, "type": "", "demo": "sites\/update.md", @@ -19727,7 +20445,7 @@ "x-appwrite": { "method": "delete", "group": "sites", - "weight": 463, + "weight": 471, "cookies": false, "type": "", "demo": "sites\/delete.md", @@ -19789,7 +20507,7 @@ "x-appwrite": { "method": "updateSiteDeployment", "group": "sites", - "weight": 470, + "weight": 478, "cookies": false, "type": "", "demo": "sites\/update-site-deployment.md", @@ -19870,7 +20588,7 @@ "x-appwrite": { "method": "listDeployments", "group": "deployments", - "weight": 469, + "weight": 477, "cookies": false, "type": "", "demo": "sites\/list-deployments.md", @@ -19954,7 +20672,7 @@ "x-appwrite": { "method": "createDeployment", "group": "deployments", - "weight": 465, + "weight": 473, "cookies": false, "type": "upload", "demo": "sites\/create-deployment.md", @@ -20056,7 +20774,7 @@ "x-appwrite": { "method": "createDuplicateDeployment", "group": "deployments", - "weight": 473, + "weight": 481, "cookies": false, "type": "", "demo": "sites\/create-duplicate-deployment.md", @@ -20137,7 +20855,7 @@ "x-appwrite": { "method": "createTemplateDeployment", "group": "deployments", - "weight": 466, + "weight": 474, "cookies": false, "type": "", "demo": "sites\/create-template-deployment.md", @@ -20241,7 +20959,7 @@ "x-appwrite": { "method": "createVcsDeployment", "group": "deployments", - "weight": 467, + "weight": 475, "cookies": false, "type": "", "demo": "sites\/create-vcs-deployment.md", @@ -20340,7 +21058,7 @@ "x-appwrite": { "method": "getDeployment", "group": "deployments", - "weight": 468, + "weight": 476, "cookies": false, "type": "", "demo": "sites\/get-deployment.md", @@ -20403,7 +21121,7 @@ "x-appwrite": { "method": "deleteDeployment", "group": "deployments", - "weight": 471, + "weight": 479, "cookies": false, "type": "", "demo": "sites\/delete-deployment.md", @@ -20468,7 +21186,7 @@ "x-appwrite": { "method": "getDeploymentDownload", "group": "deployments", - "weight": 472, + "weight": 480, "cookies": false, "type": "location", "demo": "sites\/get-deployment-download.md", @@ -20559,7 +21277,7 @@ "x-appwrite": { "method": "updateDeploymentStatus", "group": "deployments", - "weight": 474, + "weight": 482, "cookies": false, "type": "", "demo": "sites\/update-deployment-status.md", @@ -20631,7 +21349,7 @@ "x-appwrite": { "method": "listLogs", "group": "logs", - "weight": 476, + "weight": 484, "cookies": false, "type": "", "demo": "sites\/list-logs.md", @@ -20703,7 +21421,7 @@ "x-appwrite": { "method": "getLog", "group": "logs", - "weight": 475, + "weight": 483, "cookies": false, "type": "", "demo": "sites\/get-log.md", @@ -20766,7 +21484,7 @@ "x-appwrite": { "method": "deleteLog", "group": "logs", - "weight": 477, + "weight": 485, "cookies": false, "type": "", "demo": "sites\/delete-log.md", @@ -20838,7 +21556,7 @@ "x-appwrite": { "method": "listVariables", "group": "variables", - "weight": 480, + "weight": 488, "cookies": false, "type": "", "demo": "sites\/list-variables.md", @@ -20898,7 +21616,7 @@ "x-appwrite": { "method": "createVariable", "group": "variables", - "weight": 478, + "weight": 486, "cookies": false, "type": "", "demo": "sites\/create-variable.md", @@ -20990,7 +21708,7 @@ "x-appwrite": { "method": "getVariable", "group": "variables", - "weight": 479, + "weight": 487, "cookies": false, "type": "", "demo": "sites\/get-variable.md", @@ -21060,7 +21778,7 @@ "x-appwrite": { "method": "updateVariable", "group": "variables", - "weight": 481, + "weight": 489, "cookies": false, "type": "", "demo": "sites\/update-variable.md", @@ -21152,7 +21870,7 @@ "x-appwrite": { "method": "deleteVariable", "group": "variables", - "weight": 482, + "weight": 490, "cookies": false, "type": "", "demo": "sites\/delete-variable.md", @@ -21224,7 +21942,7 @@ "x-appwrite": { "method": "listBuckets", "group": "buckets", - "weight": 156, + "weight": 155, "cookies": false, "type": "", "demo": "storage\/list-buckets.md", @@ -21298,7 +22016,7 @@ "x-appwrite": { "method": "createBucket", "group": "buckets", - "weight": 155, + "weight": 154, "cookies": false, "type": "", "demo": "storage\/create-bucket.md", @@ -21426,7 +22144,7 @@ "x-appwrite": { "method": "getBucket", "group": "buckets", - "weight": 157, + "weight": 156, "cookies": false, "type": "", "demo": "storage\/get-bucket.md", @@ -21486,7 +22204,7 @@ "x-appwrite": { "method": "updateBucket", "group": "buckets", - "weight": 158, + "weight": 157, "cookies": false, "type": "", "demo": "storage\/update-bucket.md", @@ -21611,7 +22329,7 @@ "x-appwrite": { "method": "deleteBucket", "group": "buckets", - "weight": 159, + "weight": 158, "cookies": false, "type": "", "demo": "storage\/delete-bucket.md", @@ -21673,7 +22391,7 @@ "x-appwrite": { "method": "listFiles", "group": "files", - "weight": 161, + "weight": 160, "cookies": false, "type": "", "demo": "storage\/list-files.md", @@ -21761,7 +22479,7 @@ "x-appwrite": { "method": "createFile", "group": "files", - "weight": 160, + "weight": 159, "cookies": false, "type": "upload", "demo": "storage\/create-file.md", @@ -21861,7 +22579,7 @@ "x-appwrite": { "method": "getFile", "group": "files", - "weight": 162, + "weight": 161, "cookies": false, "type": "", "demo": "storage\/get-file.md", @@ -21935,7 +22653,7 @@ "x-appwrite": { "method": "updateFile", "group": "files", - "weight": 167, + "weight": 166, "cookies": false, "type": "", "demo": "storage\/update-file.md", @@ -22026,7 +22744,7 @@ "x-appwrite": { "method": "deleteFile", "group": "files", - "weight": 168, + "weight": 167, "cookies": false, "type": "", "demo": "storage\/delete-file.md", @@ -22095,7 +22813,7 @@ "x-appwrite": { "method": "getFileDownload", "group": "files", - "weight": 164, + "weight": 163, "cookies": false, "type": "location", "demo": "storage\/get-file-download.md", @@ -22175,7 +22893,7 @@ "x-appwrite": { "method": "getFilePreview", "group": "files", - "weight": 163, + "weight": 162, "cookies": false, "type": "location", "demo": "storage\/get-file-preview.md", @@ -22405,7 +23123,7 @@ "x-appwrite": { "method": "getFileView", "group": "files", - "weight": 165, + "weight": 164, "cookies": false, "type": "location", "demo": "storage\/get-file-view.md", @@ -22492,10 +23210,10 @@ "x-appwrite": { "method": "list", "group": "tablesdb", - "weight": 375, + "weight": 376, "cookies": false, "type": "", - "demo": "tables-d-b\/list.md", + "demo": "tablesdb\/list.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/list.md", "rate-limit": 0, "rate-time": 3600, @@ -22566,10 +23284,10 @@ "x-appwrite": { "method": "create", "group": "tablesdb", - "weight": 371, + "weight": 372, "cookies": false, "type": "", - "demo": "tables-d-b\/create.md", + "demo": "tablesdb\/create.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/create.md", "rate-limit": 0, "rate-time": 3600, @@ -22646,10 +23364,10 @@ "x-appwrite": { "method": "get", "group": "tablesdb", - "weight": 372, + "weight": 373, "cookies": false, "type": "", - "demo": "tables-d-b\/get.md", + "demo": "tablesdb\/get.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/get.md", "rate-limit": 0, "rate-time": 3600, @@ -22706,10 +23424,10 @@ "x-appwrite": { "method": "update", "group": "tablesdb", - "weight": 373, + "weight": 374, "cookies": false, "type": "", - "demo": "tables-d-b\/update.md", + "demo": "tablesdb\/update.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/update.md", "rate-limit": 0, "rate-time": 3600, @@ -22783,10 +23501,10 @@ "x-appwrite": { "method": "delete", "group": "tablesdb", - "weight": 374, + "weight": 375, "cookies": false, "type": "", - "demo": "tables-d-b\/delete.md", + "demo": "tablesdb\/delete.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/delete.md", "rate-limit": 0, "rate-time": 3600, @@ -22844,16 +23562,19 @@ "deprecated": false, "x-appwrite": { "method": "listTables", - "group": null, - "weight": 382, + "group": "tables", + "weight": 383, "cookies": false, "type": "", - "demo": "tables-d-b\/list-tables.md", + "demo": "tablesdb\/list-tables.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/list-tables.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "tables.read", + "scope": [ + "tables.read", + "collections.read" + ], "platforms": [ "server" ], @@ -22928,16 +23649,19 @@ "deprecated": false, "x-appwrite": { "method": "createTable", - "group": null, - "weight": 378, + "group": "tables", + "weight": 379, "cookies": false, "type": "", - "demo": "tables-d-b\/create-table.md", + "demo": "tablesdb\/create-table.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/create-table.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "tables.write", + "scope": [ + "tables.write", + "collections.write" + ], "platforms": [ "server" ], @@ -23033,16 +23757,19 @@ "deprecated": false, "x-appwrite": { "method": "getTable", - "group": null, - "weight": 379, + "group": "tables", + "weight": 380, "cookies": false, "type": "", - "demo": "tables-d-b\/get-table.md", + "demo": "tablesdb\/get-table.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/get-table.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "tables.read", + "scope": [ + "tables.read", + "collections.read" + ], "platforms": [ "server" ], @@ -23103,16 +23830,19 @@ "deprecated": false, "x-appwrite": { "method": "updateTable", - "group": null, - "weight": 380, + "group": "tables", + "weight": 381, "cookies": false, "type": "", - "demo": "tables-d-b\/update-table.md", + "demo": "tablesdb\/update-table.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/update-table.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "tables.write", + "scope": [ + "tables.write", + "collections.write" + ], "platforms": [ "server" ], @@ -23203,16 +23933,19 @@ "deprecated": false, "x-appwrite": { "method": "deleteTable", - "group": null, - "weight": 381, + "group": "tables", + "weight": 382, "cookies": false, "type": "", - "demo": "tables-d-b\/delete-table.md", + "demo": "tablesdb\/delete-table.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/delete-table.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "tables.write", + "scope": [ + "tables.write", + "collections.write" + ], "platforms": [ "server" ], @@ -23276,15 +24009,18 @@ "x-appwrite": { "method": "listColumns", "group": "columns", - "weight": 387, + "weight": 388, "cookies": false, "type": "", - "demo": "tables-d-b\/list-columns.md", + "demo": "tablesdb\/list-columns.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/list-columns.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "tables.read", + "scope": [ + "tables.read", + "collections.read" + ], "platforms": [ "server" ], @@ -23361,15 +24097,18 @@ "x-appwrite": { "method": "createBooleanColumn", "group": "columns", - "weight": 388, + "weight": 389, "cookies": false, "type": "", - "demo": "tables-d-b\/create-boolean-column.md", + "demo": "tablesdb\/create-boolean-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/create-boolean-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "tables.write", + "scope": [ + "tables.write", + "collections.write" + ], "platforms": [ "server" ], @@ -23468,15 +24207,18 @@ "x-appwrite": { "method": "updateBooleanColumn", "group": "columns", - "weight": 389, + "weight": 390, "cookies": false, "type": "", - "demo": "tables-d-b\/update-boolean-column.md", + "demo": "tablesdb\/update-boolean-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/update-boolean-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "tables.write", + "scope": [ + "tables.write", + "collections.write" + ], "platforms": [ "server" ], @@ -23580,15 +24322,18 @@ "x-appwrite": { "method": "createDatetimeColumn", "group": "columns", - "weight": 390, + "weight": 391, "cookies": false, "type": "", - "demo": "tables-d-b\/create-datetime-column.md", + "demo": "tablesdb\/create-datetime-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/create-datetime-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "tables.write", + "scope": [ + "tables.write", + "collections.write" + ], "platforms": [ "server" ], @@ -23687,15 +24432,18 @@ "x-appwrite": { "method": "updateDatetimeColumn", "group": "columns", - "weight": 391, + "weight": 392, "cookies": false, "type": "", - "demo": "tables-d-b\/update-datetime-column.md", + "demo": "tablesdb\/update-datetime-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/update-datetime-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "tables.write", + "scope": [ + "tables.write", + "collections.write" + ], "platforms": [ "server" ], @@ -23799,15 +24547,18 @@ "x-appwrite": { "method": "createEmailColumn", "group": "columns", - "weight": 392, + "weight": 393, "cookies": false, "type": "", - "demo": "tables-d-b\/create-email-column.md", + "demo": "tablesdb\/create-email-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/create-email-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "tables.write", + "scope": [ + "tables.write", + "collections.write" + ], "platforms": [ "server" ], @@ -23906,15 +24657,18 @@ "x-appwrite": { "method": "updateEmailColumn", "group": "columns", - "weight": 393, + "weight": 394, "cookies": false, "type": "", - "demo": "tables-d-b\/update-email-column.md", + "demo": "tablesdb\/update-email-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/update-email-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "tables.write", + "scope": [ + "tables.write", + "collections.write" + ], "platforms": [ "server" ], @@ -24018,15 +24772,18 @@ "x-appwrite": { "method": "createEnumColumn", "group": "columns", - "weight": 394, + "weight": 395, "cookies": false, "type": "", - "demo": "tables-d-b\/create-enum-column.md", + "demo": "tablesdb\/create-enum-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/create-enum-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "tables.write", + "scope": [ + "tables.write", + "collections.write" + ], "platforms": [ "server" ], @@ -24134,15 +24891,18 @@ "x-appwrite": { "method": "updateEnumColumn", "group": "columns", - "weight": 395, + "weight": 396, "cookies": false, "type": "", - "demo": "tables-d-b\/update-enum-column.md", + "demo": "tablesdb\/update-enum-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/update-enum-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "tables.write", + "scope": [ + "tables.write", + "collections.write" + ], "platforms": [ "server" ], @@ -24255,15 +25015,18 @@ "x-appwrite": { "method": "createFloatColumn", "group": "columns", - "weight": 396, + "weight": 397, "cookies": false, "type": "", - "demo": "tables-d-b\/create-float-column.md", + "demo": "tablesdb\/create-float-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/create-float-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "tables.write", + "scope": [ + "tables.write", + "collections.write" + ], "platforms": [ "server" ], @@ -24372,15 +25135,18 @@ "x-appwrite": { "method": "updateFloatColumn", "group": "columns", - "weight": 397, + "weight": 398, "cookies": false, "type": "", - "demo": "tables-d-b\/update-float-column.md", + "demo": "tablesdb\/update-float-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/update-float-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "tables.write", + "scope": [ + "tables.write", + "collections.write" + ], "platforms": [ "server" ], @@ -24494,15 +25260,18 @@ "x-appwrite": { "method": "createIntegerColumn", "group": "columns", - "weight": 398, + "weight": 399, "cookies": false, "type": "", - "demo": "tables-d-b\/create-integer-column.md", + "demo": "tablesdb\/create-integer-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/create-integer-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "tables.write", + "scope": [ + "tables.write", + "collections.write" + ], "platforms": [ "server" ], @@ -24611,15 +25380,18 @@ "x-appwrite": { "method": "updateIntegerColumn", "group": "columns", - "weight": 399, + "weight": 400, "cookies": false, "type": "", - "demo": "tables-d-b\/update-integer-column.md", + "demo": "tablesdb\/update-integer-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/update-integer-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "tables.write", + "scope": [ + "tables.write", + "collections.write" + ], "platforms": [ "server" ], @@ -24733,15 +25505,18 @@ "x-appwrite": { "method": "createIpColumn", "group": "columns", - "weight": 400, + "weight": 401, "cookies": false, "type": "", - "demo": "tables-d-b\/create-ip-column.md", + "demo": "tablesdb\/create-ip-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/create-ip-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "tables.write", + "scope": [ + "tables.write", + "collections.write" + ], "platforms": [ "server" ], @@ -24840,15 +25615,18 @@ "x-appwrite": { "method": "updateIpColumn", "group": "columns", - "weight": 401, + "weight": 402, "cookies": false, "type": "", - "demo": "tables-d-b\/update-ip-column.md", + "demo": "tablesdb\/update-ip-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/update-ip-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "tables.write", + "scope": [ + "tables.write", + "collections.write" + ], "platforms": [ "server" ], @@ -24928,6 +25706,708 @@ } } }, + "\/tablesdb\/{databaseId}\/tables\/{tableId}\/columns\/line": { + "post": { + "summary": "Create line column", + "operationId": "tablesDBCreateLineColumn", + "tags": [ + "tablesDB" + ], + "description": "Create a geometric line column.", + "responses": { + "202": { + "description": "ColumnLine", + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/columnLine" + } + } + } + } + }, + "deprecated": false, + "x-appwrite": { + "method": "createLineColumn", + "group": "columns", + "weight": 403, + "cookies": false, + "type": "", + "demo": "tablesdb\/create-line-column.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/create-line-column.md", + "rate-limit": 0, + "rate-time": 3600, + "rate-key": "url:{url},ip:{ip}", + "scope": [ + "tables.write", + "collections.write" + ], + "platforms": [ + "server" + ], + "packaging": false, + "auth": { + "Project": [], + "Key": [] + } + }, + "security": [ + { + "Project": [], + "Key": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + }, + { + "name": "tableId", + "description": "Table ID. You can create a new table using the TablesDB service [server integration](https:\/\/appwrite.io\/docs\/server\/tablesdb#tablesDBCreate).", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + } + ], + "requestBody": { + "content": { + "application\/json": { + "schema": { + "type": "object", + "properties": { + "key": { + "type": "string", + "description": "Column Key.", + "x-example": null + }, + "required": { + "type": "boolean", + "description": "Is column required?", + "x-example": false + }, + "default": { + "type": "array", + "description": "Default value for column when not provided, two-dimensional array of coordinate pairs, [[longitude, latitude], [longitude, latitude], \u2026], listing the vertices of the line in order. Cannot be set when column is required.", + "x-example": "[[1, 2], [3, 4], [5, 6]]", + "items": { + "oneOf": [ + { + "type": "array" + } + ] + }, + "x-nullable": true + } + }, + "required": [ + "key", + "required" + ] + } + } + } + } + } + }, + "\/tablesdb\/{databaseId}\/tables\/{tableId}\/columns\/line\/{key}": { + "patch": { + "summary": "Update line column", + "operationId": "tablesDBUpdateLineColumn", + "tags": [ + "tablesDB" + ], + "description": "Update a line column. Changing the `default` value will not update already existing rows.", + "responses": { + "200": { + "description": "ColumnLine", + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/columnLine" + } + } + } + } + }, + "deprecated": false, + "x-appwrite": { + "method": "updateLineColumn", + "group": "columns", + "weight": 404, + "cookies": false, + "type": "", + "demo": "tablesdb\/update-line-column.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/update-line-column.md", + "rate-limit": 0, + "rate-time": 3600, + "rate-key": "url:{url},ip:{ip}", + "scope": [ + "tables.write", + "collections.write" + ], + "platforms": [ + "server" + ], + "packaging": false, + "auth": { + "Project": [], + "Key": [] + } + }, + "security": [ + { + "Project": [], + "Key": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + }, + { + "name": "tableId", + "description": "Table ID. You can create a new table using the TablesDB service [server integration](https:\/\/appwrite.io\/docs\/server\/tablesdb#tablesDBCreate).", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + }, + { + "name": "key", + "description": "Column Key.", + "required": true, + "schema": { + "type": "string" + }, + "in": "path" + } + ], + "requestBody": { + "content": { + "application\/json": { + "schema": { + "type": "object", + "properties": { + "required": { + "type": "boolean", + "description": "Is column required?", + "x-example": false + }, + "default": { + "type": "array", + "description": "Default value for column when not provided, two-dimensional array of coordinate pairs, [[longitude, latitude], [longitude, latitude], \u2026], listing the vertices of the line in order. Cannot be set when column is required.", + "x-example": "[[1, 2], [3, 4], [5, 6]]", + "items": { + "oneOf": [ + { + "type": "array" + } + ] + }, + "x-nullable": true + }, + "newKey": { + "type": "string", + "description": "New Column Key.", + "x-example": null + } + }, + "required": [ + "required" + ] + } + } + } + } + } + }, + "\/tablesdb\/{databaseId}\/tables\/{tableId}\/columns\/point": { + "post": { + "summary": "Create point column", + "operationId": "tablesDBCreatePointColumn", + "tags": [ + "tablesDB" + ], + "description": "Create a geometric point column.", + "responses": { + "202": { + "description": "ColumnPoint", + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/columnPoint" + } + } + } + } + }, + "deprecated": false, + "x-appwrite": { + "method": "createPointColumn", + "group": "columns", + "weight": 405, + "cookies": false, + "type": "", + "demo": "tablesdb\/create-point-column.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/create-point-column.md", + "rate-limit": 0, + "rate-time": 3600, + "rate-key": "url:{url},ip:{ip}", + "scope": [ + "tables.write", + "collections.write" + ], + "platforms": [ + "server" + ], + "packaging": false, + "auth": { + "Project": [], + "Key": [] + } + }, + "security": [ + { + "Project": [], + "Key": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + }, + { + "name": "tableId", + "description": "Table ID. You can create a new table using the TablesDB service [server integration](https:\/\/appwrite.io\/docs\/server\/tablesdb#tablesDBCreate).", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + } + ], + "requestBody": { + "content": { + "application\/json": { + "schema": { + "type": "object", + "properties": { + "key": { + "type": "string", + "description": "Column Key.", + "x-example": null + }, + "required": { + "type": "boolean", + "description": "Is column required?", + "x-example": false + }, + "default": { + "type": "array", + "description": "Default value for column when not provided, array of two numbers [longitude, latitude], representing a single coordinate. Cannot be set when column is required.", + "x-example": "[1, 2]", + "items": { + "oneOf": [ + { + "type": "array" + } + ] + }, + "x-nullable": true + } + }, + "required": [ + "key", + "required" + ] + } + } + } + } + } + }, + "\/tablesdb\/{databaseId}\/tables\/{tableId}\/columns\/point\/{key}": { + "patch": { + "summary": "Update point column", + "operationId": "tablesDBUpdatePointColumn", + "tags": [ + "tablesDB" + ], + "description": "Update a point column. Changing the `default` value will not update already existing rows.", + "responses": { + "200": { + "description": "ColumnPoint", + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/columnPoint" + } + } + } + } + }, + "deprecated": false, + "x-appwrite": { + "method": "updatePointColumn", + "group": "columns", + "weight": 406, + "cookies": false, + "type": "", + "demo": "tablesdb\/update-point-column.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/update-point-column.md", + "rate-limit": 0, + "rate-time": 3600, + "rate-key": "url:{url},ip:{ip}", + "scope": [ + "tables.write", + "collections.write" + ], + "platforms": [ + "server" + ], + "packaging": false, + "auth": { + "Project": [], + "Key": [] + } + }, + "security": [ + { + "Project": [], + "Key": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + }, + { + "name": "tableId", + "description": "Table ID. You can create a new table using the TablesDB service [server integration](https:\/\/appwrite.io\/docs\/server\/tablesdb#tablesDBCreate).", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + }, + { + "name": "key", + "description": "Column Key.", + "required": true, + "schema": { + "type": "string" + }, + "in": "path" + } + ], + "requestBody": { + "content": { + "application\/json": { + "schema": { + "type": "object", + "properties": { + "required": { + "type": "boolean", + "description": "Is column required?", + "x-example": false + }, + "default": { + "type": "array", + "description": "Default value for column when not provided, array of two numbers [longitude, latitude], representing a single coordinate. Cannot be set when column is required.", + "x-example": "[1, 2]", + "items": { + "oneOf": [ + { + "type": "array" + } + ] + }, + "x-nullable": true + }, + "newKey": { + "type": "string", + "description": "New Column Key.", + "x-example": null + } + }, + "required": [ + "required" + ] + } + } + } + } + } + }, + "\/tablesdb\/{databaseId}\/tables\/{tableId}\/columns\/polygon": { + "post": { + "summary": "Create polygon column", + "operationId": "tablesDBCreatePolygonColumn", + "tags": [ + "tablesDB" + ], + "description": "Create a geometric polygon column.", + "responses": { + "202": { + "description": "ColumnPolygon", + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/columnPolygon" + } + } + } + } + }, + "deprecated": false, + "x-appwrite": { + "method": "createPolygonColumn", + "group": "columns", + "weight": 407, + "cookies": false, + "type": "", + "demo": "tablesdb\/create-polygon-column.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/create-polygon-column.md", + "rate-limit": 0, + "rate-time": 3600, + "rate-key": "url:{url},ip:{ip}", + "scope": [ + "tables.write", + "collections.write" + ], + "platforms": [ + "server" + ], + "packaging": false, + "auth": { + "Project": [], + "Key": [] + } + }, + "security": [ + { + "Project": [], + "Key": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + }, + { + "name": "tableId", + "description": "Table ID. You can create a new table using the TablesDB service [server integration](https:\/\/appwrite.io\/docs\/server\/tablesdb#tablesDBCreate).", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + } + ], + "requestBody": { + "content": { + "application\/json": { + "schema": { + "type": "object", + "properties": { + "key": { + "type": "string", + "description": "Column Key.", + "x-example": null + }, + "required": { + "type": "boolean", + "description": "Is column required?", + "x-example": false + }, + "default": { + "type": "array", + "description": "Default value for column when not provided, three-dimensional array where the outer array holds one or more linear rings, [[[longitude, latitude], \u2026], \u2026], the first ring is the exterior boundary, any additional rings are interior holes, and each ring must start and end with the same coordinate pair. Cannot be set when column is required.", + "x-example": "[[[1, 2], [3, 4], [5, 6], [1, 2]]]", + "items": { + "oneOf": [ + { + "type": "array" + } + ] + }, + "x-nullable": true + } + }, + "required": [ + "key", + "required" + ] + } + } + } + } + } + }, + "\/tablesdb\/{databaseId}\/tables\/{tableId}\/columns\/polygon\/{key}": { + "patch": { + "summary": "Update polygon column", + "operationId": "tablesDBUpdatePolygonColumn", + "tags": [ + "tablesDB" + ], + "description": "Update a polygon column. Changing the `default` value will not update already existing rows.", + "responses": { + "200": { + "description": "ColumnPolygon", + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/columnPolygon" + } + } + } + } + }, + "deprecated": false, + "x-appwrite": { + "method": "updatePolygonColumn", + "group": "columns", + "weight": 408, + "cookies": false, + "type": "", + "demo": "tablesdb\/update-polygon-column.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/update-polygon-column.md", + "rate-limit": 0, + "rate-time": 3600, + "rate-key": "url:{url},ip:{ip}", + "scope": [ + "tables.write", + "collections.write" + ], + "platforms": [ + "server" + ], + "packaging": false, + "auth": { + "Project": [], + "Key": [] + } + }, + "security": [ + { + "Project": [], + "Key": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + }, + { + "name": "tableId", + "description": "Table ID. You can create a new table using the TablesDB service [server integration](https:\/\/appwrite.io\/docs\/server\/tablesdb#tablesDBCreate).", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + }, + { + "name": "key", + "description": "Column Key.", + "required": true, + "schema": { + "type": "string" + }, + "in": "path" + } + ], + "requestBody": { + "content": { + "application\/json": { + "schema": { + "type": "object", + "properties": { + "required": { + "type": "boolean", + "description": "Is column required?", + "x-example": false + }, + "default": { + "type": "array", + "description": "Default value for column when not provided, three-dimensional array where the outer array holds one or more linear rings, [[[longitude, latitude], \u2026], \u2026], the first ring is the exterior boundary, any additional rings are interior holes, and each ring must start and end with the same coordinate pair. Cannot be set when column is required.", + "x-example": "[[[1, 2], [3, 4], [5, 6], [1, 2]]]", + "items": { + "oneOf": [ + { + "type": "array" + } + ] + }, + "x-nullable": true + }, + "newKey": { + "type": "string", + "description": "New Column Key.", + "x-example": null + } + }, + "required": [ + "required" + ] + } + } + } + } + } + }, "\/tablesdb\/{databaseId}\/tables\/{tableId}\/columns\/relationship": { "post": { "summary": "Create relationship column", @@ -24952,15 +26432,18 @@ "x-appwrite": { "method": "createRelationshipColumn", "group": "columns", - "weight": 402, + "weight": 409, "cookies": false, "type": "", - "demo": "tables-d-b\/create-relationship-column.md", + "demo": "tablesdb\/create-relationship-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/create-relationship-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "tables.write", + "scope": [ + "tables.write", + "collections.write" + ], "platforms": [ "server" ], @@ -25084,15 +26567,18 @@ "x-appwrite": { "method": "createStringColumn", "group": "columns", - "weight": 404, + "weight": 411, "cookies": false, "type": "", - "demo": "tables-d-b\/create-string-column.md", + "demo": "tablesdb\/create-string-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/create-string-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "tables.write", + "scope": [ + "tables.write", + "collections.write" + ], "platforms": [ "server" ], @@ -25202,15 +26688,18 @@ "x-appwrite": { "method": "updateStringColumn", "group": "columns", - "weight": 405, + "weight": 412, "cookies": false, "type": "", - "demo": "tables-d-b\/update-string-column.md", + "demo": "tablesdb\/update-string-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/update-string-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "tables.write", + "scope": [ + "tables.write", + "collections.write" + ], "platforms": [ "server" ], @@ -25319,15 +26808,18 @@ "x-appwrite": { "method": "createUrlColumn", "group": "columns", - "weight": 406, + "weight": 413, "cookies": false, "type": "", - "demo": "tables-d-b\/create-url-column.md", + "demo": "tablesdb\/create-url-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/create-url-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "tables.write", + "scope": [ + "tables.write", + "collections.write" + ], "platforms": [ "server" ], @@ -25426,15 +26918,18 @@ "x-appwrite": { "method": "updateUrlColumn", "group": "columns", - "weight": 407, + "weight": 414, "cookies": false, "type": "", - "demo": "tables-d-b\/update-url-column.md", + "demo": "tablesdb\/update-url-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/update-url-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "tables.write", + "scope": [ + "tables.write", + "collections.write" + ], "platforms": [ "server" ], @@ -25569,15 +27064,18 @@ "x-appwrite": { "method": "getColumn", "group": "columns", - "weight": 385, + "weight": 386, "cookies": false, "type": "", - "demo": "tables-d-b\/get-column.md", + "demo": "tablesdb\/get-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/get-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "tables.read", + "scope": [ + "tables.read", + "collections.read" + ], "platforms": [ "server" ], @@ -25641,15 +27139,18 @@ "x-appwrite": { "method": "deleteColumn", "group": "columns", - "weight": 386, + "weight": 387, "cookies": false, "type": "", - "demo": "tables-d-b\/delete-column.md", + "demo": "tablesdb\/delete-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/delete-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "tables.write", + "scope": [ + "tables.write", + "collections.write" + ], "platforms": [ "server" ], @@ -25722,15 +27223,18 @@ "x-appwrite": { "method": "updateRelationshipColumn", "group": "columns", - "weight": 403, + "weight": 410, "cookies": false, "type": "", - "demo": "tables-d-b\/update-relationship-column.md", + "demo": "tablesdb\/update-relationship-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/update-relationship-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "tables.write", + "scope": [ + "tables.write", + "collections.write" + ], "platforms": [ "server" ], @@ -25831,15 +27335,18 @@ "x-appwrite": { "method": "listIndexes", "group": "indexes", - "weight": 411, + "weight": 418, "cookies": false, "type": "", - "demo": "tables-d-b\/list-indexes.md", + "demo": "tablesdb\/list-indexes.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/list-indexes.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "tables.read", + "scope": [ + "tables.read", + "collections.read" + ], "platforms": [ "server" ], @@ -25914,15 +27421,18 @@ "x-appwrite": { "method": "createIndex", "group": "indexes", - "weight": 408, + "weight": 415, "cookies": false, "type": "", - "demo": "tables-d-b\/create-index.md", + "demo": "tablesdb\/create-index.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/create-index.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "tables.write", + "scope": [ + "tables.write", + "collections.write" + ], "platforms": [ "server" ], @@ -25978,7 +27488,8 @@ "enum": [ "key", "fulltext", - "unique" + "unique", + "spatial" ], "x-enum-name": "IndexType", "x-enum-keys": [] @@ -26043,15 +27554,18 @@ "x-appwrite": { "method": "getIndex", "group": "indexes", - "weight": 409, + "weight": 416, "cookies": false, "type": "", - "demo": "tables-d-b\/get-index.md", + "demo": "tablesdb\/get-index.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/get-index.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "tables.read", + "scope": [ + "tables.read", + "collections.read" + ], "platforms": [ "server" ], @@ -26115,15 +27629,18 @@ "x-appwrite": { "method": "deleteIndex", "group": "indexes", - "weight": 410, + "weight": 417, "cookies": false, "type": "", - "demo": "tables-d-b\/delete-index.md", + "demo": "tablesdb\/delete-index.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/delete-index.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "tables.write", + "scope": [ + "tables.write", + "collections.write" + ], "platforms": [ "server" ], @@ -26196,15 +27713,18 @@ "x-appwrite": { "method": "listRows", "group": "rows", - "weight": 420, + "weight": 427, "cookies": false, "type": "", - "demo": "tables-d-b\/list-rows.md", + "demo": "tablesdb\/list-rows.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/list-rows.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "rows.read", + "scope": [ + "rows.read", + "documents.read" + ], "platforms": [ "client", "server", @@ -26283,15 +27803,18 @@ "x-appwrite": { "method": "createRow", "group": "rows", - "weight": 412, + "weight": 419, "cookies": false, "type": "", - "demo": "tables-d-b\/create-row.md", + "demo": "tablesdb\/create-row.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/create-row.md", "rate-limit": 120, "rate-time": 60, "rate-key": "ip:{ip},method:{method},url:{url},userId:{userId}", - "scope": "rows.write", + "scope": [ + "rows.write", + "documents.write" + ], "platforms": [ "client", "server", @@ -26327,7 +27850,7 @@ } ], "description": "Create a new Row. Before using this route, you should create a new table resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/tablesdb#tablesDBCreateTable) API or directly from your database console.", - "demo": "tables-d-b\/create-row.md" + "demo": "tablesdb\/create-row.md" }, { "name": "createRows", @@ -26354,7 +27877,7 @@ } ], "description": "Create new Rows. Before using this route, you should create a new table resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/tablesdb#tablesDBCreateTable) API or directly from your database console.", - "demo": "tables-d-b\/create-rows.md" + "demo": "tablesdb\/create-rows.md" } ], "auth": { @@ -26406,7 +27929,7 @@ "data": { "type": "object", "description": "Row data as JSON object.", - "x-example": "{}" + "x-example": "{\"username\":\"walter.obrien\",\"email\":\"walter.obrien@example.com\",\"fullName\":\"Walter O'Brien\",\"age\":30,\"isAdmin\":false}" }, "permissions": { "type": "array", @@ -26418,7 +27941,7 @@ }, "rows": { "type": "array", - "description": "Array of documents data as JSON objects.", + "description": "Array of rows data as JSON objects.", "x-example": null, "items": { "type": "object" @@ -26431,7 +27954,7 @@ } }, "put": { - "summary": "Create or update rows", + "summary": "Upsert rows", "operationId": "tablesDBUpsertRows", "tags": [ "tablesDB" @@ -26453,15 +27976,18 @@ "x-appwrite": { "method": "upsertRows", "group": "rows", - "weight": 417, + "weight": 424, "cookies": false, "type": "", - "demo": "tables-d-b\/upsert-rows.md", + "demo": "tablesdb\/upsert-rows.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/upsert-rows.md", "rate-limit": 120, "rate-time": 60, "rate-key": "ip:{ip},method:{method},url:{url},userId:{userId}", - "scope": "rows.write", + "scope": [ + "rows.write", + "documents.write" + ], "platforms": [ "console", "server" @@ -26493,7 +28019,7 @@ } ], "description": "Create or update Rows. Before using this route, you should create a new table resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/tablesdb#tablesDBCreateTable) API or directly from your database console.\n", - "demo": "tables-d-b\/upsert-rows.md" + "demo": "tablesdb\/upsert-rows.md" } ], "auth": { @@ -26575,15 +28101,18 @@ "x-appwrite": { "method": "updateRows", "group": "rows", - "weight": 415, + "weight": 422, "cookies": false, "type": "", - "demo": "tables-d-b\/update-rows.md", + "demo": "tablesdb\/update-rows.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/update-rows.md", "rate-limit": 120, "rate-time": 60, "rate-key": "ip:{ip},method:{method},url:{url},userId:{userId}", - "scope": "rows.write", + "scope": [ + "rows.write", + "documents.write" + ], "platforms": [ "console", "server" @@ -26670,15 +28199,18 @@ "x-appwrite": { "method": "deleteRows", "group": "rows", - "weight": 419, + "weight": 426, "cookies": false, "type": "", - "demo": "tables-d-b\/delete-rows.md", + "demo": "tablesdb\/delete-rows.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/delete-rows.md", "rate-limit": 60, "rate-time": 60, "rate-key": "ip:{ip},method:{method},url:{url},userId:{userId}", - "scope": "rows.write", + "scope": [ + "rows.write", + "documents.write" + ], "platforms": [ "console", "server" @@ -26762,15 +28294,18 @@ "x-appwrite": { "method": "getRow", "group": "rows", - "weight": 413, + "weight": 420, "cookies": false, "type": "", - "demo": "tables-d-b\/get-row.md", + "demo": "tablesdb\/get-row.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/get-row.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "rows.read", + "scope": [ + "rows.read", + "documents.read" + ], "platforms": [ "client", "server", @@ -26837,7 +28372,7 @@ ] }, "put": { - "summary": "Create or update a row", + "summary": "Upsert a row", "operationId": "tablesDBUpsertRow", "tags": [ "tablesDB" @@ -26859,15 +28394,18 @@ "x-appwrite": { "method": "upsertRow", "group": "rows", - "weight": 416, + "weight": 423, "cookies": false, "type": "", - "demo": "tables-d-b\/upsert-row.md", + "demo": "tablesdb\/upsert-row.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/upsert-row.md", "rate-limit": 120, "rate-time": 60, "rate-key": "ip:{ip},method:{method},url:{url},userId:{userId}", - "scope": "rows.write", + "scope": [ + "rows.write", + "documents.write" + ], "platforms": [ "client", "server", @@ -26902,7 +28440,7 @@ } ], "description": "Create or update a Row. Before using this route, you should create a new table resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/tablesdb#tablesDBCreateTable) API or directly from your database console.", - "demo": "tables-d-b\/upsert-row.md" + "demo": "tablesdb\/upsert-row.md" } ], "auth": { @@ -26998,15 +28536,18 @@ "x-appwrite": { "method": "updateRow", "group": "rows", - "weight": 414, + "weight": 421, "cookies": false, "type": "", - "demo": "tables-d-b\/update-row.md", + "demo": "tablesdb\/update-row.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/update-row.md", "rate-limit": 120, "rate-time": 60, "rate-key": "ip:{ip},method:{method},url:{url},userId:{userId}", - "scope": "rows.write", + "scope": [ + "rows.write", + "documents.write" + ], "platforms": [ "client", "server", @@ -27099,15 +28640,18 @@ "x-appwrite": { "method": "deleteRow", "group": "rows", - "weight": 418, + "weight": 425, "cookies": false, "type": "", - "demo": "tables-d-b\/delete-row.md", + "demo": "tablesdb\/delete-row.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/delete-row.md", "rate-limit": 60, "rate-time": 60, "rate-key": "ip:{ip},method:{method},url:{url},userId:{userId}", - "scope": "rows.write", + "scope": [ + "rows.write", + "documents.write" + ], "platforms": [ "client", "server", @@ -27185,15 +28729,18 @@ "x-appwrite": { "method": "decrementRowColumn", "group": "rows", - "weight": 423, + "weight": 430, "cookies": false, "type": "", - "demo": "tables-d-b\/decrement-row-column.md", + "demo": "tablesdb\/decrement-row-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/decrement-row-column.md", "rate-limit": 120, "rate-time": 60, "rate-key": "ip:{ip},method:{method},url:{url},userId:{userId}", - "scope": "rows.write", + "scope": [ + "rows.write", + "documents.write" + ], "platforms": [ "client", "server", @@ -27302,15 +28849,18 @@ "x-appwrite": { "method": "incrementRowColumn", "group": "rows", - "weight": 422, + "weight": 429, "cookies": false, "type": "", - "demo": "tables-d-b\/increment-row-column.md", + "demo": "tablesdb\/increment-row-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/increment-row-column.md", "rate-limit": 120, "rate-time": 60, "rate-key": "ip:{ip},method:{method},url:{url},userId:{userId}", - "scope": "rows.write", + "scope": [ + "rows.write", + "documents.write" + ], "platforms": [ "client", "server", @@ -27419,7 +28969,7 @@ "x-appwrite": { "method": "list", "group": "teams", - "weight": 172, + "weight": 171, "cookies": false, "type": "", "demo": "teams\/list.md", @@ -27497,7 +29047,7 @@ "x-appwrite": { "method": "create", "group": "teams", - "weight": 171, + "weight": 170, "cookies": false, "type": "", "demo": "teams\/create.md", @@ -27584,7 +29134,7 @@ "x-appwrite": { "method": "get", "group": "teams", - "weight": 173, + "weight": 172, "cookies": false, "type": "", "demo": "teams\/get.md", @@ -27648,7 +29198,7 @@ "x-appwrite": { "method": "updateName", "group": "teams", - "weight": 175, + "weight": 174, "cookies": false, "type": "", "demo": "teams\/update-name.md", @@ -27724,7 +29274,7 @@ "x-appwrite": { "method": "delete", "group": "teams", - "weight": 177, + "weight": 176, "cookies": false, "type": "", "demo": "teams\/delete.md", @@ -27790,7 +29340,7 @@ "x-appwrite": { "method": "listMemberships", "group": "memberships", - "weight": 179, + "weight": 178, "cookies": false, "type": "", "demo": "teams\/list-memberships.md", @@ -27878,7 +29428,7 @@ "x-appwrite": { "method": "createMembership", "group": "memberships", - "weight": 178, + "weight": 177, "cookies": false, "type": "", "demo": "teams\/create-membership.md", @@ -27991,7 +29541,7 @@ "x-appwrite": { "method": "getMembership", "group": "memberships", - "weight": 180, + "weight": 179, "cookies": false, "type": "", "demo": "teams\/get-membership.md", @@ -28065,7 +29615,7 @@ "x-appwrite": { "method": "updateMembership", "group": "memberships", - "weight": 181, + "weight": 180, "cookies": false, "type": "", "demo": "teams\/update-membership.md", @@ -28154,7 +29704,7 @@ "x-appwrite": { "method": "deleteMembership", "group": "memberships", - "weight": 183, + "weight": 182, "cookies": false, "type": "", "demo": "teams\/delete-membership.md", @@ -28230,7 +29780,7 @@ "x-appwrite": { "method": "updateMembershipStatus", "group": "memberships", - "weight": 182, + "weight": 181, "cookies": false, "type": "", "demo": "teams\/update-membership-status.md", @@ -28329,7 +29879,7 @@ "x-appwrite": { "method": "getPrefs", "group": "teams", - "weight": 174, + "weight": 173, "cookies": false, "type": "", "demo": "teams\/get-prefs.md", @@ -28391,7 +29941,7 @@ "x-appwrite": { "method": "updatePrefs", "group": "teams", - "weight": 176, + "weight": 175, "cookies": false, "type": "", "demo": "teams\/update-prefs.md", @@ -28474,7 +30024,7 @@ "x-appwrite": { "method": "list", "group": "files", - "weight": 495, + "weight": 507, "cookies": false, "type": "", "demo": "tokens\/list.md", @@ -28555,7 +30105,7 @@ "x-appwrite": { "method": "createFileToken", "group": "files", - "weight": 493, + "weight": 505, "cookies": false, "type": "", "demo": "tokens\/create-file-token.md", @@ -28645,7 +30195,7 @@ "x-appwrite": { "method": "get", "group": "tokens", - "weight": 494, + "weight": 506, "cookies": false, "type": "", "demo": "tokens\/get.md", @@ -28706,7 +30256,7 @@ "x-appwrite": { "method": "update", "group": "tokens", - "weight": 496, + "weight": 508, "cookies": false, "type": "", "demo": "tokens\/update.md", @@ -28777,7 +30327,7 @@ "x-appwrite": { "method": "delete", "group": "tokens", - "weight": 497, + "weight": 509, "cookies": false, "type": "", "demo": "tokens\/delete.md", @@ -28840,7 +30390,7 @@ "x-appwrite": { "method": "list", "group": "users", - "weight": 194, + "weight": 193, "cookies": false, "type": "", "demo": "users\/list.md", @@ -28914,7 +30464,7 @@ "x-appwrite": { "method": "create", "group": "users", - "weight": 185, + "weight": 184, "cookies": false, "type": "", "demo": "users\/create.md", @@ -29003,10 +30553,10 @@ "x-appwrite": { "method": "createArgon2User", "group": "users", - "weight": 188, + "weight": 187, "cookies": false, "type": "", - "demo": "users\/create-argon2user.md", + "demo": "users\/create-argon-2-user.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/users\/create-argon2-user.md", "rate-limit": 0, "rate-time": 3600, @@ -29089,7 +30639,7 @@ "x-appwrite": { "method": "createBcryptUser", "group": "users", - "weight": 186, + "weight": 185, "cookies": false, "type": "", "demo": "users\/create-bcrypt-user.md", @@ -29175,7 +30725,7 @@ "x-appwrite": { "method": "listIdentities", "group": "identities", - "weight": 202, + "weight": 201, "cookies": false, "type": "", "demo": "users\/list-identities.md", @@ -29244,7 +30794,7 @@ "x-appwrite": { "method": "deleteIdentity", "group": "identities", - "weight": 225, + "weight": 224, "cookies": false, "type": "", "demo": "users\/delete-identity.md", @@ -29306,10 +30856,10 @@ "x-appwrite": { "method": "createMD5User", "group": "users", - "weight": 187, + "weight": 186, "cookies": false, "type": "", - "demo": "users\/create-m-d5user.md", + "demo": "users\/create-md-5-user.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/users\/create-md5-user.md", "rate-limit": 0, "rate-time": 3600, @@ -29392,10 +30942,10 @@ "x-appwrite": { "method": "createPHPassUser", "group": "users", - "weight": 190, + "weight": 189, "cookies": false, "type": "", - "demo": "users\/create-p-h-pass-user.md", + "demo": "users\/create-ph-pass-user.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/users\/create-phpass-user.md", "rate-limit": 0, "rate-time": 3600, @@ -29478,7 +31028,7 @@ "x-appwrite": { "method": "createScryptUser", "group": "users", - "weight": 191, + "weight": 190, "cookies": false, "type": "", "demo": "users\/create-scrypt-user.md", @@ -29594,7 +31144,7 @@ "x-appwrite": { "method": "createScryptModifiedUser", "group": "users", - "weight": 192, + "weight": 191, "cookies": false, "type": "", "demo": "users\/create-scrypt-modified-user.md", @@ -29698,10 +31248,10 @@ "x-appwrite": { "method": "createSHAUser", "group": "users", - "weight": 189, + "weight": 188, "cookies": false, "type": "", - "demo": "users\/create-s-h-a-user.md", + "demo": "users\/create-sha-user.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/users\/create-sha-user.md", "rate-limit": 0, "rate-time": 3600, @@ -29804,7 +31354,7 @@ "x-appwrite": { "method": "get", "group": "users", - "weight": 195, + "weight": 194, "cookies": false, "type": "", "demo": "users\/get.md", @@ -29857,7 +31407,7 @@ "x-appwrite": { "method": "delete", "group": "users", - "weight": 223, + "weight": 222, "cookies": false, "type": "", "demo": "users\/delete.md", @@ -29919,7 +31469,7 @@ "x-appwrite": { "method": "updateEmail", "group": "users", - "weight": 208, + "weight": 207, "cookies": false, "type": "", "demo": "users\/update-email.md", @@ -30000,10 +31550,10 @@ "x-appwrite": { "method": "createJWT", "group": "sessions", - "weight": 226, + "weight": 225, "cookies": false, "type": "", - "demo": "users\/create-j-w-t.md", + "demo": "users\/create-jwt.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/users\/create-user-jwt.md", "rate-limit": 0, "rate-time": 3600, @@ -30083,7 +31633,7 @@ "x-appwrite": { "method": "updateLabels", "group": "users", - "weight": 204, + "weight": 203, "cookies": false, "type": "", "demo": "users\/update-labels.md", @@ -30167,7 +31717,7 @@ "x-appwrite": { "method": "listLogs", "group": "logs", - "weight": 200, + "weight": 199, "cookies": false, "type": "", "demo": "users\/list-logs.md", @@ -30242,7 +31792,7 @@ "x-appwrite": { "method": "listMemberships", "group": "memberships", - "weight": 199, + "weight": 198, "cookies": false, "type": "", "demo": "users\/list-memberships.md", @@ -30328,7 +31878,7 @@ "x-appwrite": { "method": "updateMfa", "group": "users", - "weight": 213, + "weight": 212, "cookies": false, "type": "", "demo": "users\/update-mfa.md", @@ -30398,7 +31948,7 @@ } ], "description": "Enable or disable MFA on a user account.", - "demo": "users\/update-m-f-a.md" + "demo": "users\/update-mfa.md" } ], "auth": { @@ -30462,7 +32012,7 @@ "x-appwrite": { "method": "deleteMfaAuthenticator", "group": "mfa", - "weight": 218, + "weight": 217, "cookies": false, "type": "", "demo": "users\/delete-mfa-authenticator.md", @@ -30530,7 +32080,7 @@ } ], "description": "Delete an authenticator app.", - "demo": "users\/delete-m-f-a-authenticator.md" + "demo": "users\/delete-mfa-authenticator.md" } ], "auth": { @@ -30597,7 +32147,7 @@ "x-appwrite": { "method": "listMfaFactors", "group": "mfa", - "weight": 214, + "weight": 213, "cookies": false, "type": "", "demo": "users\/list-mfa-factors.md", @@ -30663,7 +32213,7 @@ } ], "description": "List the factors available on the account to be used as a MFA challange.", - "demo": "users\/list-m-f-a-factors.md" + "demo": "users\/list-mfa-factors.md" } ], "auth": { @@ -30715,7 +32265,7 @@ "x-appwrite": { "method": "getMfaRecoveryCodes", "group": "mfa", - "weight": 215, + "weight": 214, "cookies": false, "type": "", "demo": "users\/get-mfa-recovery-codes.md", @@ -30781,7 +32331,7 @@ } ], "description": "Get recovery codes that can be used as backup for MFA flow by User ID. Before getting codes, they must be generated using [createMfaRecoveryCodes](\/docs\/references\/cloud\/client-web\/account#createMfaRecoveryCodes) method.", - "demo": "users\/get-m-f-a-recovery-codes.md" + "demo": "users\/get-mfa-recovery-codes.md" } ], "auth": { @@ -30831,7 +32381,7 @@ "x-appwrite": { "method": "updateMfaRecoveryCodes", "group": "mfa", - "weight": 217, + "weight": 216, "cookies": false, "type": "", "demo": "users\/update-mfa-recovery-codes.md", @@ -30897,7 +32447,7 @@ } ], "description": "Regenerate recovery codes that can be used as backup for MFA flow by User ID. Before regenerating codes, they must be first generated using [createMfaRecoveryCodes](\/docs\/references\/cloud\/client-web\/account#createMfaRecoveryCodes) method.", - "demo": "users\/update-m-f-a-recovery-codes.md" + "demo": "users\/update-mfa-recovery-codes.md" } ], "auth": { @@ -30947,7 +32497,7 @@ "x-appwrite": { "method": "createMfaRecoveryCodes", "group": "mfa", - "weight": 216, + "weight": 215, "cookies": false, "type": "", "demo": "users\/create-mfa-recovery-codes.md", @@ -31013,7 +32563,7 @@ } ], "description": "Generate recovery codes used as backup for MFA flow for User ID. Recovery codes can be used as a MFA verification type in [createMfaChallenge](\/docs\/references\/cloud\/client-web\/account#createMfaChallenge) method by client SDK.", - "demo": "users\/create-m-f-a-recovery-codes.md" + "demo": "users\/create-mfa-recovery-codes.md" } ], "auth": { @@ -31065,7 +32615,7 @@ "x-appwrite": { "method": "updateName", "group": "users", - "weight": 206, + "weight": 205, "cookies": false, "type": "", "demo": "users\/update-name.md", @@ -31146,7 +32696,7 @@ "x-appwrite": { "method": "updatePassword", "group": "users", - "weight": 207, + "weight": 206, "cookies": false, "type": "", "demo": "users\/update-password.md", @@ -31227,7 +32777,7 @@ "x-appwrite": { "method": "updatePhone", "group": "users", - "weight": 209, + "weight": 208, "cookies": false, "type": "", "demo": "users\/update-phone.md", @@ -31308,7 +32858,7 @@ "x-appwrite": { "method": "getPrefs", "group": "users", - "weight": 196, + "weight": 195, "cookies": false, "type": "", "demo": "users\/get-prefs.md", @@ -31368,7 +32918,7 @@ "x-appwrite": { "method": "updatePrefs", "group": "users", - "weight": 211, + "weight": 210, "cookies": false, "type": "", "demo": "users\/update-prefs.md", @@ -31449,7 +32999,7 @@ "x-appwrite": { "method": "listSessions", "group": "sessions", - "weight": 198, + "weight": 197, "cookies": false, "type": "", "demo": "users\/list-sessions.md", @@ -31509,7 +33059,7 @@ "x-appwrite": { "method": "createSession", "group": "sessions", - "weight": 219, + "weight": 218, "cookies": false, "type": "", "demo": "users\/create-session.md", @@ -31562,7 +33112,7 @@ "x-appwrite": { "method": "deleteSessions", "group": "sessions", - "weight": 222, + "weight": 221, "cookies": false, "type": "", "demo": "users\/delete-sessions.md", @@ -31617,7 +33167,7 @@ "x-appwrite": { "method": "deleteSession", "group": "sessions", - "weight": 221, + "weight": 220, "cookies": false, "type": "", "demo": "users\/delete-session.md", @@ -31689,7 +33239,7 @@ "x-appwrite": { "method": "updateStatus", "group": "users", - "weight": 203, + "weight": 202, "cookies": false, "type": "", "demo": "users\/update-status.md", @@ -31770,7 +33320,7 @@ "x-appwrite": { "method": "listTargets", "group": "targets", - "weight": 201, + "weight": 200, "cookies": false, "type": "", "demo": "users\/list-targets.md", @@ -31844,7 +33394,7 @@ "x-appwrite": { "method": "createTarget", "group": "targets", - "weight": 193, + "weight": 192, "cookies": false, "type": "", "demo": "users\/create-target.md", @@ -31955,7 +33505,7 @@ "x-appwrite": { "method": "getTarget", "group": "targets", - "weight": 197, + "weight": 196, "cookies": false, "type": "", "demo": "users\/get-target.md", @@ -32026,7 +33576,7 @@ "x-appwrite": { "method": "updateTarget", "group": "targets", - "weight": 212, + "weight": 211, "cookies": false, "type": "", "demo": "users\/update-target.md", @@ -32116,7 +33666,7 @@ "x-appwrite": { "method": "deleteTarget", "group": "targets", - "weight": 224, + "weight": 223, "cookies": false, "type": "", "demo": "users\/delete-target.md", @@ -32189,7 +33739,7 @@ "x-appwrite": { "method": "createToken", "group": "sessions", - "weight": 220, + "weight": 219, "cookies": false, "type": "", "demo": "users\/create-token.md", @@ -32272,7 +33822,7 @@ "x-appwrite": { "method": "updateEmailVerification", "group": "users", - "weight": 210, + "weight": 209, "cookies": false, "type": "", "demo": "users\/update-email-verification.md", @@ -32353,7 +33903,7 @@ "x-appwrite": { "method": "updatePhoneVerification", "group": "users", - "weight": 205, + "weight": 204, "cookies": false, "type": "", "demo": "users\/update-phone-verification.md", @@ -33644,6 +35194,15 @@ { "$ref": "#\/components\/schemas\/attributeRelationship" }, + { + "$ref": "#\/components\/schemas\/attributePoint" + }, + { + "$ref": "#\/components\/schemas\/attributeLine" + }, + { + "$ref": "#\/components\/schemas\/attributePolygon" + }, { "$ref": "#\/components\/schemas\/attributeString" } @@ -33729,6 +35288,15 @@ { "$ref": "#\/components\/schemas\/attributeRelationship" }, + { + "$ref": "#\/components\/schemas\/attributePoint" + }, + { + "$ref": "#\/components\/schemas\/attributeLine" + }, + { + "$ref": "#\/components\/schemas\/attributePolygon" + }, { "$ref": "#\/components\/schemas\/attributeString" } @@ -34605,6 +36173,291 @@ "side": "parent|child" } }, + "attributePoint": { + "description": "AttributePoint", + "type": "object", + "properties": { + "key": { + "type": "string", + "description": "Attribute Key.", + "x-example": "fullName" + }, + "type": { + "type": "string", + "description": "Attribute type.", + "x-example": "string" + }, + "status": { + "type": "string", + "description": "Attribute status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`", + "x-example": "available" + }, + "error": { + "type": "string", + "description": "Error message. Displays error generated on failure of creating or deleting an attribute.", + "x-example": "string" + }, + "required": { + "type": "boolean", + "description": "Is attribute required?", + "x-example": true + }, + "array": { + "type": "boolean", + "description": "Is attribute an array?", + "x-example": false, + "nullable": true + }, + "$createdAt": { + "type": "string", + "description": "Attribute creation date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "$updatedAt": { + "type": "string", + "description": "Attribute update date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "default": { + "type": "array", + "description": "Default value for attribute when not provided. Cannot be set when attribute is required.", + "x-example": [ + 0, + 0 + ], + "nullable": true + } + }, + "required": [ + "key", + "type", + "status", + "error", + "required", + "$createdAt", + "$updatedAt" + ], + "example": { + "key": "fullName", + "type": "string", + "status": "available", + "error": "string", + "required": true, + "array": false, + "$createdAt": "2020-10-15T06:38:00.000+00:00", + "$updatedAt": "2020-10-15T06:38:00.000+00:00", + "default": [ + 0, + 0 + ] + } + }, + "attributeLine": { + "description": "AttributeLine", + "type": "object", + "properties": { + "key": { + "type": "string", + "description": "Attribute Key.", + "x-example": "fullName" + }, + "type": { + "type": "string", + "description": "Attribute type.", + "x-example": "string" + }, + "status": { + "type": "string", + "description": "Attribute status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`", + "x-example": "available" + }, + "error": { + "type": "string", + "description": "Error message. Displays error generated on failure of creating or deleting an attribute.", + "x-example": "string" + }, + "required": { + "type": "boolean", + "description": "Is attribute required?", + "x-example": true + }, + "array": { + "type": "boolean", + "description": "Is attribute an array?", + "x-example": false, + "nullable": true + }, + "$createdAt": { + "type": "string", + "description": "Attribute creation date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "$updatedAt": { + "type": "string", + "description": "Attribute update date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "default": { + "type": "array", + "description": "Default value for attribute when not provided. Cannot be set when attribute is required.", + "x-example": [ + [ + 0, + 0 + ], + [ + 1, + 1 + ] + ], + "nullable": true + } + }, + "required": [ + "key", + "type", + "status", + "error", + "required", + "$createdAt", + "$updatedAt" + ], + "example": { + "key": "fullName", + "type": "string", + "status": "available", + "error": "string", + "required": true, + "array": false, + "$createdAt": "2020-10-15T06:38:00.000+00:00", + "$updatedAt": "2020-10-15T06:38:00.000+00:00", + "default": [ + [ + 0, + 0 + ], + [ + 1, + 1 + ] + ] + } + }, + "attributePolygon": { + "description": "AttributePolygon", + "type": "object", + "properties": { + "key": { + "type": "string", + "description": "Attribute Key.", + "x-example": "fullName" + }, + "type": { + "type": "string", + "description": "Attribute type.", + "x-example": "string" + }, + "status": { + "type": "string", + "description": "Attribute status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`", + "x-example": "available" + }, + "error": { + "type": "string", + "description": "Error message. Displays error generated on failure of creating or deleting an attribute.", + "x-example": "string" + }, + "required": { + "type": "boolean", + "description": "Is attribute required?", + "x-example": true + }, + "array": { + "type": "boolean", + "description": "Is attribute an array?", + "x-example": false, + "nullable": true + }, + "$createdAt": { + "type": "string", + "description": "Attribute creation date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "$updatedAt": { + "type": "string", + "description": "Attribute update date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "default": { + "type": "array", + "description": "Default value for attribute when not provided. Cannot be set when attribute is required.", + "x-example": [ + [ + [ + 0, + 0 + ], + [ + 0, + 10 + ] + ], + [ + [ + 10, + 10 + ], + [ + 0, + 0 + ] + ] + ], + "nullable": true + } + }, + "required": [ + "key", + "type", + "status", + "error", + "required", + "$createdAt", + "$updatedAt" + ], + "example": { + "key": "fullName", + "type": "string", + "status": "available", + "error": "string", + "required": true, + "array": false, + "$createdAt": "2020-10-15T06:38:00.000+00:00", + "$updatedAt": "2020-10-15T06:38:00.000+00:00", + "default": [ + [ + [ + 0, + 0 + ], + [ + 0, + 10 + ] + ], + [ + [ + 10, + 10 + ], + [ + 0, + 0 + ] + ] + ] + } + }, "table": { "description": "Table", "type": "object", @@ -34686,6 +36539,15 @@ { "$ref": "#\/components\/schemas\/columnRelationship" }, + { + "$ref": "#\/components\/schemas\/columnPoint" + }, + { + "$ref": "#\/components\/schemas\/columnLine" + }, + { + "$ref": "#\/components\/schemas\/columnPolygon" + }, { "$ref": "#\/components\/schemas\/columnString" } @@ -34771,6 +36633,15 @@ { "$ref": "#\/components\/schemas\/columnRelationship" }, + { + "$ref": "#\/components\/schemas\/columnPoint" + }, + { + "$ref": "#\/components\/schemas\/columnLine" + }, + { + "$ref": "#\/components\/schemas\/columnPolygon" + }, { "$ref": "#\/components\/schemas\/columnString" } @@ -35647,6 +37518,291 @@ "side": "parent|child" } }, + "columnPoint": { + "description": "ColumnPoint", + "type": "object", + "properties": { + "key": { + "type": "string", + "description": "Column Key.", + "x-example": "fullName" + }, + "type": { + "type": "string", + "description": "Column type.", + "x-example": "string" + }, + "status": { + "type": "string", + "description": "Column status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`", + "x-example": "available" + }, + "error": { + "type": "string", + "description": "Error message. Displays error generated on failure of creating or deleting an column.", + "x-example": "string" + }, + "required": { + "type": "boolean", + "description": "Is column required?", + "x-example": true + }, + "array": { + "type": "boolean", + "description": "Is column an array?", + "x-example": false, + "nullable": true + }, + "$createdAt": { + "type": "string", + "description": "Column creation date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "$updatedAt": { + "type": "string", + "description": "Column update date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "default": { + "type": "array", + "description": "Default value for column when not provided. Cannot be set when column is required.", + "x-example": [ + 0, + 0 + ], + "nullable": true + } + }, + "required": [ + "key", + "type", + "status", + "error", + "required", + "$createdAt", + "$updatedAt" + ], + "example": { + "key": "fullName", + "type": "string", + "status": "available", + "error": "string", + "required": true, + "array": false, + "$createdAt": "2020-10-15T06:38:00.000+00:00", + "$updatedAt": "2020-10-15T06:38:00.000+00:00", + "default": [ + 0, + 0 + ] + } + }, + "columnLine": { + "description": "ColumnLine", + "type": "object", + "properties": { + "key": { + "type": "string", + "description": "Column Key.", + "x-example": "fullName" + }, + "type": { + "type": "string", + "description": "Column type.", + "x-example": "string" + }, + "status": { + "type": "string", + "description": "Column status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`", + "x-example": "available" + }, + "error": { + "type": "string", + "description": "Error message. Displays error generated on failure of creating or deleting an column.", + "x-example": "string" + }, + "required": { + "type": "boolean", + "description": "Is column required?", + "x-example": true + }, + "array": { + "type": "boolean", + "description": "Is column an array?", + "x-example": false, + "nullable": true + }, + "$createdAt": { + "type": "string", + "description": "Column creation date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "$updatedAt": { + "type": "string", + "description": "Column update date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "default": { + "type": "array", + "description": "Default value for column when not provided. Cannot be set when column is required.", + "x-example": [ + [ + 0, + 0 + ], + [ + 1, + 1 + ] + ], + "nullable": true + } + }, + "required": [ + "key", + "type", + "status", + "error", + "required", + "$createdAt", + "$updatedAt" + ], + "example": { + "key": "fullName", + "type": "string", + "status": "available", + "error": "string", + "required": true, + "array": false, + "$createdAt": "2020-10-15T06:38:00.000+00:00", + "$updatedAt": "2020-10-15T06:38:00.000+00:00", + "default": [ + [ + 0, + 0 + ], + [ + 1, + 1 + ] + ] + } + }, + "columnPolygon": { + "description": "ColumnPolygon", + "type": "object", + "properties": { + "key": { + "type": "string", + "description": "Column Key.", + "x-example": "fullName" + }, + "type": { + "type": "string", + "description": "Column type.", + "x-example": "string" + }, + "status": { + "type": "string", + "description": "Column status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`", + "x-example": "available" + }, + "error": { + "type": "string", + "description": "Error message. Displays error generated on failure of creating or deleting an column.", + "x-example": "string" + }, + "required": { + "type": "boolean", + "description": "Is column required?", + "x-example": true + }, + "array": { + "type": "boolean", + "description": "Is column an array?", + "x-example": false, + "nullable": true + }, + "$createdAt": { + "type": "string", + "description": "Column creation date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "$updatedAt": { + "type": "string", + "description": "Column update date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "default": { + "type": "array", + "description": "Default value for column when not provided. Cannot be set when column is required.", + "x-example": [ + [ + [ + 0, + 0 + ], + [ + 0, + 10 + ] + ], + [ + [ + 10, + 10 + ], + [ + 0, + 0 + ] + ] + ], + "nullable": true + } + }, + "required": [ + "key", + "type", + "status", + "error", + "required", + "$createdAt", + "$updatedAt" + ], + "example": { + "key": "fullName", + "type": "string", + "status": "available", + "error": "string", + "required": true, + "array": false, + "$createdAt": "2020-10-15T06:38:00.000+00:00", + "$updatedAt": "2020-10-15T06:38:00.000+00:00", + "default": [ + [ + [ + 0, + 0 + ], + [ + 0, + 10 + ] + ], + [ + [ + 10, + 10 + ], + [ + 0, + 0 + ] + ] + ] + } + }, "index": { "description": "Index", "type": "object", @@ -35840,17 +37996,20 @@ "type": "integer", "description": "Row automatically incrementing ID.", "x-example": 1, - "format": "int32" + "format": "int32", + "readOnly": true }, "$tableId": { "type": "string", "description": "Table ID.", - "x-example": "5e5ea5c15117e" + "x-example": "5e5ea5c15117e", + "readOnly": true }, "$databaseId": { "type": "string", "description": "Database ID.", - "x-example": "5e5ea5c15117e" + "x-example": "5e5ea5c15117e", + "readOnly": true }, "$createdAt": { "type": "string", diff --git a/app/config/specs/open-api3-latest-client.json b/app/config/specs/open-api3-latest-client.json index 7d0107fa02..d226fcc4e1 100644 --- a/app/config/specs/open-api3-latest-client.json +++ b/app/config/specs/open-api3-latest-client.json @@ -383,7 +383,7 @@ "weight": 30, "cookies": false, "type": "", - "demo": "account\/create-j-w-t.md", + "demo": "account\/create-jwt.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/account\/create-jwt.md", "rate-limit": 100, "rate-time": 3600, @@ -498,7 +498,7 @@ "weight": 45, "cookies": false, "type": "", - "demo": "account\/update-m-f-a.md", + "demo": "account\/update-mfa.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/account\/update-mfa.md", "rate-limit": 0, "rate-time": 3600, @@ -630,7 +630,7 @@ } ], "description": "Add an authenticator app to be used as an MFA factor. Verify the authenticator using the [verify authenticator](\/docs\/references\/cloud\/client-web\/account#updateMfaAuthenticator) method.", - "demo": "account\/create-m-f-a-authenticator.md" + "demo": "account\/create-mfa-authenticator.md" } ], "auth": { @@ -754,7 +754,7 @@ } ], "description": "Verify an authenticator app after adding it using the [add authenticator](\/docs\/references\/cloud\/client-web\/account#createMfaAuthenticator) method.", - "demo": "account\/update-m-f-a-authenticator.md" + "demo": "account\/update-mfa-authenticator.md" } ], "auth": { @@ -884,7 +884,7 @@ } ], "description": "Delete an authenticator for a user by ID.", - "demo": "account\/delete-m-f-a-authenticator.md" + "demo": "account\/delete-mfa-authenticator.md" } ], "auth": { @@ -1006,7 +1006,7 @@ } ], "description": "Begin the process of MFA verification after sign-in. Finish the flow with [updateMfaChallenge](\/docs\/references\/cloud\/client-web\/account#updateMfaChallenge) method.", - "demo": "account\/create-m-f-a-challenge.md" + "demo": "account\/create-mfa-challenge.md" } ], "auth": { @@ -1138,7 +1138,7 @@ } ], "description": "Complete the MFA challenge by providing the one-time password. Finish the process of MFA verification by providing the one-time password. To begin the flow, use [createMfaChallenge](\/docs\/references\/cloud\/client-web\/account#createMfaChallenge) method.", - "demo": "account\/update-m-f-a-challenge.md" + "demo": "account\/update-mfa-challenge.md" } ], "auth": { @@ -1260,7 +1260,7 @@ } ], "description": "List the factors available on the account to be used as a MFA challange.", - "demo": "account\/list-m-f-a-factors.md" + "demo": "account\/list-mfa-factors.md" } ], "auth": { @@ -1357,7 +1357,7 @@ } ], "description": "Get recovery codes that can be used as backup for MFA flow. Before getting codes, they must be generated using [createMfaRecoveryCodes](\/docs\/references\/cloud\/client-web\/account#createMfaRecoveryCodes) method. An OTP challenge is required to read recovery codes.", - "demo": "account\/get-m-f-a-recovery-codes.md" + "demo": "account\/get-mfa-recovery-codes.md" } ], "auth": { @@ -1452,7 +1452,7 @@ } ], "description": "Generate recovery codes as backup for MFA flow. It's recommended to generate and show then immediately after user successfully adds their authehticator. Recovery codes can be used as a MFA verification type in [createMfaChallenge](\/docs\/references\/cloud\/client-web\/account#createMfaChallenge) method.", - "demo": "account\/create-m-f-a-recovery-codes.md" + "demo": "account\/create-mfa-recovery-codes.md" } ], "auth": { @@ -1547,7 +1547,7 @@ } ], "description": "Regenerate recovery codes that can be used as backup for MFA flow. Before regenerating codes, they must be first generated using [createMfaRecoveryCodes](\/docs\/references\/cloud\/client-web\/account#createMfaRecoveryCodes) method. An OTP challenge is required to regenreate recovery codes.", - "demo": "account\/update-m-f-a-recovery-codes.md" + "demo": "account\/update-mfa-recovery-codes.md" } ], "auth": { @@ -1891,7 +1891,7 @@ "prefs": { "type": "object", "description": "Prefs key-value JSON object.", - "x-example": "{}" + "x-example": "{\"language\":\"en\",\"timezone\":\"UTC\",\"darkTheme\":true}" } }, "required": [ @@ -2305,7 +2305,7 @@ "weight": 27, "cookies": false, "type": "", - "demo": "account\/update-magic-u-r-l-session.md", + "demo": "account\/update-magic-url-session.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/account\/create-session.md", "rate-limit": 10, "rate-time": 3600, @@ -2316,6 +2316,10 @@ "client" ], "packaging": false, + "deprecated": { + "since": "1.6.0", + "replaceWith": "account.createSession" + }, "auth": { "Project": [] } @@ -2372,7 +2376,7 @@ "weight": 20, "cookies": false, "type": "webAuth", - "demo": "account\/create-o-auth2session.md", + "demo": "account\/create-o-auth-2-session.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/account\/create-session-oauth2.md", "rate-limit": 50, "rate-time": 3600, @@ -2525,6 +2529,10 @@ "client" ], "packaging": false, + "deprecated": { + "since": "1.6.0", + "replaceWith": "account.createSession" + }, "auth": { "Project": [] } @@ -3184,7 +3192,7 @@ "weight": 25, "cookies": false, "type": "", - "demo": "account\/create-magic-u-r-l-token.md", + "demo": "account\/create-magic-url-token.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/account\/create-token-magic-url.md", "rate-limit": 60, "rate-time": 3600, @@ -3264,7 +3272,7 @@ "weight": 24, "cookies": false, "type": "webAuth", - "demo": "account\/create-o-auth2token.md", + "demo": "account\/create-o-auth-2-token.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/account\/create-token-oauth2.md", "rate-limit": 50, "rate-time": 3600, @@ -3900,7 +3908,7 @@ "parameters": [ { "name": "code", - "description": "Credit Card Code. Possible values: amex, argencard, cabal, cencosud, diners, discover, elo, hipercard, jcb, mastercard, naranja, targeta-shopping, union-china-pay, visa, mir, maestro, rupay.", + "description": "Credit Card Code. Possible values: amex, argencard, cabal, cencosud, diners, discover, elo, hipercard, jcb, mastercard, naranja, targeta-shopping, unionpay, visa, mir, maestro, rupay.", "required": true, "schema": { "type": "string", @@ -3918,7 +3926,7 @@ "mastercard", "naranja", "targeta-shopping", - "union-china-pay", + "unionpay", "visa", "mir", "maestro", @@ -3938,7 +3946,7 @@ "Mastercard", "Naranja", "Tarjeta Shopping", - "Union China Pay", + "Union Pay", "Visa", "MIR", "Maestro", @@ -4726,7 +4734,7 @@ "weight": 65, "cookies": false, "type": "location", - "demo": "avatars\/get-q-r.md", + "demo": "avatars\/get-qr.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/avatars\/get-qr.md", "rate-limit": 0, "rate-time": 3600, @@ -4822,7 +4830,7 @@ "x-appwrite": { "method": "listDocuments", "group": "documents", - "weight": 340, + "weight": 335, "cookies": false, "type": "", "demo": "databases\/list-documents.md", @@ -4911,7 +4919,7 @@ "x-appwrite": { "method": "createDocument", "group": "documents", - "weight": 332, + "weight": 327, "cookies": false, "type": "", "demo": "databases\/create-document.md", @@ -5012,7 +5020,7 @@ "data": { "type": "object", "description": "Document data as JSON object.", - "x-example": "{}" + "x-example": "{\"username\":\"walter.obrien\",\"email\":\"walter.obrien@example.com\",\"fullName\":\"Walter O'Brien\",\"age\":30,\"isAdmin\":false}" }, "permissions": { "type": "array", @@ -5061,7 +5069,7 @@ "x-appwrite": { "method": "getDocument", "group": "documents", - "weight": 333, + "weight": 328, "cookies": false, "type": "", "demo": "databases\/get-document.md", @@ -5138,7 +5146,7 @@ ] }, "put": { - "summary": "Create or update a document", + "summary": "Upsert a document", "operationId": "databasesUpsertDocument", "tags": [ "databases" @@ -5160,7 +5168,7 @@ "x-appwrite": { "method": "upsertDocument", "group": "documents", - "weight": 336, + "weight": 331, "cookies": false, "type": "", "demo": "databases\/upsert-document.md", @@ -5308,7 +5316,7 @@ "x-appwrite": { "method": "updateDocument", "group": "documents", - "weight": 334, + "weight": 329, "cookies": false, "type": "", "demo": "databases\/update-document.md", @@ -5411,7 +5419,7 @@ "x-appwrite": { "method": "deleteDocument", "group": "documents", - "weight": 338, + "weight": 333, "cookies": false, "type": "", "demo": "databases\/delete-document.md", @@ -5499,7 +5507,7 @@ "x-appwrite": { "method": "decrementDocumentAttribute", "group": "documents", - "weight": 343, + "weight": 338, "cookies": false, "type": "", "demo": "databases\/decrement-document-attribute.md", @@ -5618,7 +5626,7 @@ "x-appwrite": { "method": "incrementDocumentAttribute", "group": "documents", - "weight": 342, + "weight": 337, "cookies": false, "type": "", "demo": "databases\/increment-document-attribute.md", @@ -5737,7 +5745,7 @@ "x-appwrite": { "method": "listExecutions", "group": "executions", - "weight": 448, + "weight": 456, "cookies": false, "type": "", "demo": "functions\/list-executions.md", @@ -5812,7 +5820,7 @@ "x-appwrite": { "method": "createExecution", "group": "executions", - "weight": 446, + "weight": 454, "cookies": false, "type": "", "demo": "functions\/create-execution.md", @@ -5873,7 +5881,7 @@ }, "method": { "type": "string", - "description": "HTTP method of execution. Default value is GET.", + "description": "HTTP method of execution. Default value is POST.", "x-example": "GET", "enum": [ "GET", @@ -5881,7 +5889,8 @@ "PUT", "PATCH", "DELETE", - "OPTIONS" + "OPTIONS", + "HEAD" ], "x-enum-name": "ExecutionMethod", "x-enum-keys": [] @@ -5927,7 +5936,7 @@ "x-appwrite": { "method": "getExecution", "group": "executions", - "weight": 447, + "weight": 455, "cookies": false, "type": "", "demo": "functions\/get-execution.md", @@ -6001,7 +6010,7 @@ "x-appwrite": { "method": "query", "group": "graphql", - "weight": 255, + "weight": 250, "cookies": false, "type": "graphql", "demo": "graphql\/query.md", @@ -6053,7 +6062,7 @@ "x-appwrite": { "method": "mutation", "group": "graphql", - "weight": 254, + "weight": 249, "cookies": false, "type": "graphql", "demo": "graphql\/mutation.md", @@ -6316,7 +6325,7 @@ "weight": 73, "cookies": false, "type": "", - "demo": "locale\/list-countries-e-u.md", + "demo": "locale\/list-countries-eu.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/locale\/list-countries-eu.md", "rate-limit": 0, "rate-time": 3600, @@ -6521,7 +6530,7 @@ "x-appwrite": { "method": "createSubscriber", "group": "subscribers", - "weight": 301, + "weight": 296, "cookies": false, "type": "", "demo": "messaging\/create-subscriber.md", @@ -6604,7 +6613,7 @@ "x-appwrite": { "method": "deleteSubscriber", "group": "subscribers", - "weight": 305, + "weight": 300, "cookies": false, "type": "", "demo": "messaging\/delete-subscriber.md", @@ -6679,7 +6688,7 @@ "x-appwrite": { "method": "listFiles", "group": "files", - "weight": 161, + "weight": 160, "cookies": false, "type": "", "demo": "storage\/list-files.md", @@ -6765,7 +6774,7 @@ "x-appwrite": { "method": "createFile", "group": "files", - "weight": 160, + "weight": 159, "cookies": false, "type": "upload", "demo": "storage\/create-file.md", @@ -6863,7 +6872,7 @@ "x-appwrite": { "method": "getFile", "group": "files", - "weight": 162, + "weight": 161, "cookies": false, "type": "", "demo": "storage\/get-file.md", @@ -6935,7 +6944,7 @@ "x-appwrite": { "method": "updateFile", "group": "files", - "weight": 167, + "weight": 166, "cookies": false, "type": "", "demo": "storage\/update-file.md", @@ -7024,7 +7033,7 @@ "x-appwrite": { "method": "deleteFile", "group": "files", - "weight": 168, + "weight": 167, "cookies": false, "type": "", "demo": "storage\/delete-file.md", @@ -7091,7 +7100,7 @@ "x-appwrite": { "method": "getFileDownload", "group": "files", - "weight": 164, + "weight": 163, "cookies": false, "type": "location", "demo": "storage\/get-file-download.md", @@ -7169,7 +7178,7 @@ "x-appwrite": { "method": "getFilePreview", "group": "files", - "weight": 163, + "weight": 162, "cookies": false, "type": "location", "demo": "storage\/get-file-preview.md", @@ -7397,7 +7406,7 @@ "x-appwrite": { "method": "getFileView", "group": "files", - "weight": 165, + "weight": 164, "cookies": false, "type": "location", "demo": "storage\/get-file-view.md", @@ -7482,15 +7491,18 @@ "x-appwrite": { "method": "listRows", "group": "rows", - "weight": 420, + "weight": 427, "cookies": false, "type": "", - "demo": "tables-d-b\/list-rows.md", + "demo": "tablesdb\/list-rows.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/list-rows.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "rows.read", + "scope": [ + "rows.read", + "documents.read" + ], "platforms": [ "client", "server", @@ -7567,15 +7579,18 @@ "x-appwrite": { "method": "createRow", "group": "rows", - "weight": 412, + "weight": 419, "cookies": false, "type": "", - "demo": "tables-d-b\/create-row.md", + "demo": "tablesdb\/create-row.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/create-row.md", "rate-limit": 120, "rate-time": 60, "rate-key": "ip:{ip},method:{method},url:{url},userId:{userId}", - "scope": "rows.write", + "scope": [ + "rows.write", + "documents.write" + ], "platforms": [ "client", "server", @@ -7610,7 +7625,7 @@ } ], "description": "Create a new Row. Before using this route, you should create a new table resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/tablesdb#tablesDBCreateTable) API or directly from your database console.", - "demo": "tables-d-b\/create-row.md" + "demo": "tablesdb\/create-row.md" } ], "auth": { @@ -7660,7 +7675,7 @@ "data": { "type": "object", "description": "Row data as JSON object.", - "x-example": "{}" + "x-example": "{\"username\":\"walter.obrien\",\"email\":\"walter.obrien@example.com\",\"fullName\":\"Walter O'Brien\",\"age\":30,\"isAdmin\":false}" }, "permissions": { "type": "array", @@ -7672,7 +7687,7 @@ }, "rows": { "type": "array", - "description": "Array of documents data as JSON objects.", + "description": "Array of rows data as JSON objects.", "x-example": null, "items": { "type": "object" @@ -7709,15 +7724,18 @@ "x-appwrite": { "method": "getRow", "group": "rows", - "weight": 413, + "weight": 420, "cookies": false, "type": "", - "demo": "tables-d-b\/get-row.md", + "demo": "tablesdb\/get-row.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/get-row.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "rows.read", + "scope": [ + "rows.read", + "documents.read" + ], "platforms": [ "client", "server", @@ -7782,7 +7800,7 @@ ] }, "put": { - "summary": "Create or update a row", + "summary": "Upsert a row", "operationId": "tablesDBUpsertRow", "tags": [ "tablesDB" @@ -7804,15 +7822,18 @@ "x-appwrite": { "method": "upsertRow", "group": "rows", - "weight": 416, + "weight": 423, "cookies": false, "type": "", - "demo": "tables-d-b\/upsert-row.md", + "demo": "tablesdb\/upsert-row.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/upsert-row.md", "rate-limit": 120, "rate-time": 60, "rate-key": "ip:{ip},method:{method},url:{url},userId:{userId}", - "scope": "rows.write", + "scope": [ + "rows.write", + "documents.write" + ], "platforms": [ "client", "server", @@ -7846,7 +7867,7 @@ } ], "description": "Create or update a Row. Before using this route, you should create a new table resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/tablesdb#tablesDBCreateTable) API or directly from your database console.", - "demo": "tables-d-b\/upsert-row.md" + "demo": "tablesdb\/upsert-row.md" } ], "auth": { @@ -7940,15 +7961,18 @@ "x-appwrite": { "method": "updateRow", "group": "rows", - "weight": 414, + "weight": 421, "cookies": false, "type": "", - "demo": "tables-d-b\/update-row.md", + "demo": "tablesdb\/update-row.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/update-row.md", "rate-limit": 120, "rate-time": 60, "rate-key": "ip:{ip},method:{method},url:{url},userId:{userId}", - "scope": "rows.write", + "scope": [ + "rows.write", + "documents.write" + ], "platforms": [ "client", "server", @@ -8039,15 +8063,18 @@ "x-appwrite": { "method": "deleteRow", "group": "rows", - "weight": 418, + "weight": 425, "cookies": false, "type": "", - "demo": "tables-d-b\/delete-row.md", + "demo": "tablesdb\/delete-row.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/delete-row.md", "rate-limit": 60, "rate-time": 60, "rate-key": "ip:{ip},method:{method},url:{url},userId:{userId}", - "scope": "rows.write", + "scope": [ + "rows.write", + "documents.write" + ], "platforms": [ "client", "server", @@ -8123,15 +8150,18 @@ "x-appwrite": { "method": "decrementRowColumn", "group": "rows", - "weight": 423, + "weight": 430, "cookies": false, "type": "", - "demo": "tables-d-b\/decrement-row-column.md", + "demo": "tablesdb\/decrement-row-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/decrement-row-column.md", "rate-limit": 120, "rate-time": 60, "rate-key": "ip:{ip},method:{method},url:{url},userId:{userId}", - "scope": "rows.write", + "scope": [ + "rows.write", + "documents.write" + ], "platforms": [ "client", "server", @@ -8238,15 +8268,18 @@ "x-appwrite": { "method": "incrementRowColumn", "group": "rows", - "weight": 422, + "weight": 429, "cookies": false, "type": "", - "demo": "tables-d-b\/increment-row-column.md", + "demo": "tablesdb\/increment-row-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/increment-row-column.md", "rate-limit": 120, "rate-time": 60, "rate-key": "ip:{ip},method:{method},url:{url},userId:{userId}", - "scope": "rows.write", + "scope": [ + "rows.write", + "documents.write" + ], "platforms": [ "client", "server", @@ -8353,7 +8386,7 @@ "x-appwrite": { "method": "list", "group": "teams", - "weight": 172, + "weight": 171, "cookies": false, "type": "", "demo": "teams\/list.md", @@ -8429,7 +8462,7 @@ "x-appwrite": { "method": "create", "group": "teams", - "weight": 171, + "weight": 170, "cookies": false, "type": "", "demo": "teams\/create.md", @@ -8514,7 +8547,7 @@ "x-appwrite": { "method": "get", "group": "teams", - "weight": 173, + "weight": 172, "cookies": false, "type": "", "demo": "teams\/get.md", @@ -8576,7 +8609,7 @@ "x-appwrite": { "method": "updateName", "group": "teams", - "weight": 175, + "weight": 174, "cookies": false, "type": "", "demo": "teams\/update-name.md", @@ -8650,7 +8683,7 @@ "x-appwrite": { "method": "delete", "group": "teams", - "weight": 177, + "weight": 176, "cookies": false, "type": "", "demo": "teams\/delete.md", @@ -8714,7 +8747,7 @@ "x-appwrite": { "method": "listMemberships", "group": "memberships", - "weight": 179, + "weight": 178, "cookies": false, "type": "", "demo": "teams\/list-memberships.md", @@ -8800,7 +8833,7 @@ "x-appwrite": { "method": "createMembership", "group": "memberships", - "weight": 178, + "weight": 177, "cookies": false, "type": "", "demo": "teams\/create-membership.md", @@ -8911,7 +8944,7 @@ "x-appwrite": { "method": "getMembership", "group": "memberships", - "weight": 180, + "weight": 179, "cookies": false, "type": "", "demo": "teams\/get-membership.md", @@ -8983,7 +9016,7 @@ "x-appwrite": { "method": "updateMembership", "group": "memberships", - "weight": 181, + "weight": 180, "cookies": false, "type": "", "demo": "teams\/update-membership.md", @@ -9070,7 +9103,7 @@ "x-appwrite": { "method": "deleteMembership", "group": "memberships", - "weight": 183, + "weight": 182, "cookies": false, "type": "", "demo": "teams\/delete-membership.md", @@ -9144,7 +9177,7 @@ "x-appwrite": { "method": "updateMembershipStatus", "group": "memberships", - "weight": 182, + "weight": 181, "cookies": false, "type": "", "demo": "teams\/update-membership-status.md", @@ -9242,7 +9275,7 @@ "x-appwrite": { "method": "getPrefs", "group": "teams", - "weight": 174, + "weight": 173, "cookies": false, "type": "", "demo": "teams\/get-prefs.md", @@ -9303,7 +9336,7 @@ "x-appwrite": { "method": "updatePrefs", "group": "teams", - "weight": 176, + "weight": 175, "cookies": false, "type": "", "demo": "teams\/update-prefs.md", @@ -9915,17 +9948,20 @@ "type": "integer", "description": "Row automatically incrementing ID.", "x-example": 1, - "format": "int32" + "format": "int32", + "readOnly": true }, "$tableId": { "type": "string", "description": "Table ID.", - "x-example": "5e5ea5c15117e" + "x-example": "5e5ea5c15117e", + "readOnly": true }, "$databaseId": { "type": "string", "description": "Database ID.", - "x-example": "5e5ea5c15117e" + "x-example": "5e5ea5c15117e", + "readOnly": true }, "$createdAt": { "type": "string", diff --git a/app/config/specs/open-api3-latest-console.json b/app/config/specs/open-api3-latest-console.json index 2c6aee60a3..02d97fffc7 100644 --- a/app/config/specs/open-api3-latest-console.json +++ b/app/config/specs/open-api3-latest-console.json @@ -418,7 +418,7 @@ "weight": 30, "cookies": false, "type": "", - "demo": "account\/create-j-w-t.md", + "demo": "account\/create-jwt.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/account\/create-jwt.md", "rate-limit": 100, "rate-time": 3600, @@ -532,7 +532,7 @@ "weight": 45, "cookies": false, "type": "", - "demo": "account\/update-m-f-a.md", + "demo": "account\/update-mfa.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/account\/update-mfa.md", "rate-limit": 0, "rate-time": 3600, @@ -663,7 +663,7 @@ } ], "description": "Add an authenticator app to be used as an MFA factor. Verify the authenticator using the [verify authenticator](\/docs\/references\/cloud\/client-web\/account#updateMfaAuthenticator) method.", - "demo": "account\/create-m-f-a-authenticator.md" + "demo": "account\/create-mfa-authenticator.md" } ], "auth": { @@ -786,7 +786,7 @@ } ], "description": "Verify an authenticator app after adding it using the [add authenticator](\/docs\/references\/cloud\/client-web\/account#createMfaAuthenticator) method.", - "demo": "account\/update-m-f-a-authenticator.md" + "demo": "account\/update-mfa-authenticator.md" } ], "auth": { @@ -915,7 +915,7 @@ } ], "description": "Delete an authenticator for a user by ID.", - "demo": "account\/delete-m-f-a-authenticator.md" + "demo": "account\/delete-mfa-authenticator.md" } ], "auth": { @@ -1036,7 +1036,7 @@ } ], "description": "Begin the process of MFA verification after sign-in. Finish the flow with [updateMfaChallenge](\/docs\/references\/cloud\/client-web\/account#updateMfaChallenge) method.", - "demo": "account\/create-m-f-a-challenge.md" + "demo": "account\/create-mfa-challenge.md" } ], "auth": { @@ -1168,7 +1168,7 @@ } ], "description": "Complete the MFA challenge by providing the one-time password. Finish the process of MFA verification by providing the one-time password. To begin the flow, use [createMfaChallenge](\/docs\/references\/cloud\/client-web\/account#createMfaChallenge) method.", - "demo": "account\/update-m-f-a-challenge.md" + "demo": "account\/update-mfa-challenge.md" } ], "auth": { @@ -1289,7 +1289,7 @@ } ], "description": "List the factors available on the account to be used as a MFA challange.", - "demo": "account\/list-m-f-a-factors.md" + "demo": "account\/list-mfa-factors.md" } ], "auth": { @@ -1385,7 +1385,7 @@ } ], "description": "Get recovery codes that can be used as backup for MFA flow. Before getting codes, they must be generated using [createMfaRecoveryCodes](\/docs\/references\/cloud\/client-web\/account#createMfaRecoveryCodes) method. An OTP challenge is required to read recovery codes.", - "demo": "account\/get-m-f-a-recovery-codes.md" + "demo": "account\/get-mfa-recovery-codes.md" } ], "auth": { @@ -1479,7 +1479,7 @@ } ], "description": "Generate recovery codes as backup for MFA flow. It's recommended to generate and show then immediately after user successfully adds their authehticator. Recovery codes can be used as a MFA verification type in [createMfaChallenge](\/docs\/references\/cloud\/client-web\/account#createMfaChallenge) method.", - "demo": "account\/create-m-f-a-recovery-codes.md" + "demo": "account\/create-mfa-recovery-codes.md" } ], "auth": { @@ -1573,7 +1573,7 @@ } ], "description": "Regenerate recovery codes that can be used as backup for MFA flow. Before regenerating codes, they must be first generated using [createMfaRecoveryCodes](\/docs\/references\/cloud\/client-web\/account#createMfaRecoveryCodes) method. An OTP challenge is required to regenreate recovery codes.", - "demo": "account\/update-m-f-a-recovery-codes.md" + "demo": "account\/update-mfa-recovery-codes.md" } ], "auth": { @@ -1911,7 +1911,7 @@ "prefs": { "type": "object", "description": "Prefs key-value JSON object.", - "x-example": "{}" + "x-example": "{\"language\":\"en\",\"timezone\":\"UTC\",\"darkTheme\":true}" } }, "required": [ @@ -2321,7 +2321,7 @@ "weight": 27, "cookies": false, "type": "", - "demo": "account\/update-magic-u-r-l-session.md", + "demo": "account\/update-magic-url-session.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/account\/create-session.md", "rate-limit": 10, "rate-time": 3600, @@ -2332,6 +2332,10 @@ "client" ], "packaging": false, + "deprecated": { + "since": "1.6.0", + "replaceWith": "account.createSession" + }, "auth": { "Project": [] } @@ -2388,7 +2392,7 @@ "weight": 20, "cookies": false, "type": "webAuth", - "demo": "account\/create-o-auth2session.md", + "demo": "account\/create-o-auth-2-session.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/account\/create-session-oauth2.md", "rate-limit": 50, "rate-time": 3600, @@ -2541,6 +2545,10 @@ "client" ], "packaging": false, + "deprecated": { + "since": "1.6.0", + "replaceWith": "account.createSession" + }, "auth": { "Project": [] } @@ -3193,7 +3201,7 @@ "weight": 25, "cookies": false, "type": "", - "demo": "account\/create-magic-u-r-l-token.md", + "demo": "account\/create-magic-url-token.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/account\/create-token-magic-url.md", "rate-limit": 60, "rate-time": 3600, @@ -3273,7 +3281,7 @@ "weight": 24, "cookies": false, "type": "webAuth", - "demo": "account\/create-o-auth2token.md", + "demo": "account\/create-o-auth-2-token.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/account\/create-token-oauth2.md", "rate-limit": 50, "rate-time": 3600, @@ -3905,7 +3913,7 @@ "parameters": [ { "name": "code", - "description": "Credit Card Code. Possible values: amex, argencard, cabal, cencosud, diners, discover, elo, hipercard, jcb, mastercard, naranja, targeta-shopping, union-china-pay, visa, mir, maestro, rupay.", + "description": "Credit Card Code. Possible values: amex, argencard, cabal, cencosud, diners, discover, elo, hipercard, jcb, mastercard, naranja, targeta-shopping, unionpay, visa, mir, maestro, rupay.", "required": true, "schema": { "type": "string", @@ -3923,7 +3931,7 @@ "mastercard", "naranja", "targeta-shopping", - "union-china-pay", + "unionpay", "visa", "mir", "maestro", @@ -3943,7 +3951,7 @@ "Mastercard", "Naranja", "Tarjeta Shopping", - "Union China Pay", + "Union Pay", "Visa", "MIR", "Maestro", @@ -4731,7 +4739,7 @@ "weight": 65, "cookies": false, "type": "location", - "demo": "avatars\/get-q-r.md", + "demo": "avatars\/get-qr.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/avatars\/get-qr.md", "rate-limit": 0, "rate-time": 3600, @@ -4820,7 +4828,7 @@ "x-appwrite": { "method": "chat", "group": "console", - "weight": 257, + "weight": 252, "cookies": false, "type": "", "demo": "assistant\/chat.md", @@ -4880,7 +4888,7 @@ "x-appwrite": { "method": "getResource", "group": null, - "weight": 488, + "weight": 496, "cookies": false, "type": "", "demo": "console\/get-resource.md", @@ -4955,7 +4963,7 @@ "x-appwrite": { "method": "variables", "group": "console", - "weight": 256, + "weight": 251, "cookies": false, "type": "", "demo": "console\/variables.md", @@ -5003,7 +5011,7 @@ "x-appwrite": { "method": "list", "group": "databases", - "weight": 321, + "weight": 316, "cookies": false, "type": "", "demo": "databases\/list.md", @@ -5107,7 +5115,7 @@ "x-appwrite": { "method": "create", "group": "databases", - "weight": 317, + "weight": 312, "cookies": false, "type": "", "demo": "databases\/create.md", @@ -5122,7 +5130,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tablesDB.createDatabase" + "replaceWith": "tablesDB.create" }, "methods": [ { @@ -5151,7 +5159,7 @@ "demo": "databases\/create.md", "deprecated": { "since": "1.8.0", - "replaceWith": "tablesDB.createDatabase" + "replaceWith": "tablesDB.create" } } ], @@ -5221,7 +5229,7 @@ "x-appwrite": { "method": "listUsage", "group": null, - "weight": 324, + "weight": 319, "cookies": false, "type": "", "demo": "databases\/list-usage.md", @@ -5323,7 +5331,7 @@ "x-appwrite": { "method": "get", "group": "databases", - "weight": 318, + "weight": 313, "cookies": false, "type": "", "demo": "databases\/get.md", @@ -5414,7 +5422,7 @@ "x-appwrite": { "method": "update", "group": "databases", - "weight": 319, + "weight": 314, "cookies": false, "type": "", "demo": "databases\/update.md", @@ -5525,7 +5533,7 @@ "x-appwrite": { "method": "delete", "group": "databases", - "weight": 320, + "weight": 315, "cookies": false, "type": "", "demo": "databases\/delete.md", @@ -5617,7 +5625,7 @@ "x-appwrite": { "method": "listCollections", "group": "collections", - "weight": 329, + "weight": 324, "cookies": false, "type": "", "demo": "databases\/list-collections.md", @@ -5704,7 +5712,7 @@ "x-appwrite": { "method": "createCollection", "group": "collections", - "weight": 325, + "weight": 320, "cookies": false, "type": "", "demo": "databases\/create-collection.md", @@ -5812,7 +5820,7 @@ "x-appwrite": { "method": "getCollection", "group": "collections", - "weight": 326, + "weight": 321, "cookies": false, "type": "", "demo": "databases\/get-collection.md", @@ -5885,7 +5893,7 @@ "x-appwrite": { "method": "updateCollection", "group": "collections", - "weight": 327, + "weight": 322, "cookies": false, "type": "", "demo": "databases\/update-collection.md", @@ -5988,7 +5996,7 @@ "x-appwrite": { "method": "deleteCollection", "group": "collections", - "weight": 328, + "weight": 323, "cookies": false, "type": "", "demo": "databases\/delete-collection.md", @@ -6063,7 +6071,7 @@ "x-appwrite": { "method": "listAttributes", "group": "attributes", - "weight": 346, + "weight": 341, "cookies": false, "type": "", "demo": "databases\/list-attributes.md", @@ -6151,7 +6159,7 @@ "x-appwrite": { "method": "createBooleanAttribute", "group": "attributes", - "weight": 347, + "weight": 342, "cookies": false, "type": "", "demo": "databases\/create-boolean-attribute.md", @@ -6261,7 +6269,7 @@ "x-appwrite": { "method": "updateBooleanAttribute", "group": "attributes", - "weight": 348, + "weight": 343, "cookies": false, "type": "", "demo": "databases\/update-boolean-attribute.md", @@ -6376,7 +6384,7 @@ "x-appwrite": { "method": "createDatetimeAttribute", "group": "attributes", - "weight": 349, + "weight": 344, "cookies": false, "type": "", "demo": "databases\/create-datetime-attribute.md", @@ -6486,7 +6494,7 @@ "x-appwrite": { "method": "updateDatetimeAttribute", "group": "attributes", - "weight": 350, + "weight": 345, "cookies": false, "type": "", "demo": "databases\/update-datetime-attribute.md", @@ -6601,7 +6609,7 @@ "x-appwrite": { "method": "createEmailAttribute", "group": "attributes", - "weight": 351, + "weight": 346, "cookies": false, "type": "", "demo": "databases\/create-email-attribute.md", @@ -6711,7 +6719,7 @@ "x-appwrite": { "method": "updateEmailAttribute", "group": "attributes", - "weight": 352, + "weight": 347, "cookies": false, "type": "", "demo": "databases\/update-email-attribute.md", @@ -6826,7 +6834,7 @@ "x-appwrite": { "method": "createEnumAttribute", "group": "attributes", - "weight": 353, + "weight": 348, "cookies": false, "type": "", "demo": "databases\/create-enum-attribute.md", @@ -6945,7 +6953,7 @@ "x-appwrite": { "method": "updateEnumAttribute", "group": "attributes", - "weight": 354, + "weight": 349, "cookies": false, "type": "", "demo": "databases\/update-enum-attribute.md", @@ -7069,7 +7077,7 @@ "x-appwrite": { "method": "createFloatAttribute", "group": "attributes", - "weight": 355, + "weight": 350, "cookies": false, "type": "", "demo": "databases\/create-float-attribute.md", @@ -7189,7 +7197,7 @@ "x-appwrite": { "method": "updateFloatAttribute", "group": "attributes", - "weight": 356, + "weight": 351, "cookies": false, "type": "", "demo": "databases\/update-float-attribute.md", @@ -7314,7 +7322,7 @@ "x-appwrite": { "method": "createIntegerAttribute", "group": "attributes", - "weight": 357, + "weight": 352, "cookies": false, "type": "", "demo": "databases\/create-integer-attribute.md", @@ -7434,7 +7442,7 @@ "x-appwrite": { "method": "updateIntegerAttribute", "group": "attributes", - "weight": 358, + "weight": 353, "cookies": false, "type": "", "demo": "databases\/update-integer-attribute.md", @@ -7559,7 +7567,7 @@ "x-appwrite": { "method": "createIpAttribute", "group": "attributes", - "weight": 359, + "weight": 354, "cookies": false, "type": "", "demo": "databases\/create-ip-attribute.md", @@ -7669,7 +7677,7 @@ "x-appwrite": { "method": "updateIpAttribute", "group": "attributes", - "weight": 360, + "weight": 355, "cookies": false, "type": "", "demo": "databases\/update-ip-attribute.md", @@ -7760,6 +7768,708 @@ } } }, + "\/databases\/{databaseId}\/collections\/{collectionId}\/attributes\/line": { + "post": { + "summary": "Create line attribute", + "operationId": "databasesCreateLineAttribute", + "tags": [ + "databases" + ], + "description": "Create a geometric line attribute.", + "responses": { + "202": { + "description": "AttributeLine", + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/attributeLine" + } + } + } + } + }, + "deprecated": true, + "x-appwrite": { + "method": "createLineAttribute", + "group": "attributes", + "weight": 356, + "cookies": false, + "type": "", + "demo": "databases\/create-line-attribute.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-line-attribute.md", + "rate-limit": 0, + "rate-time": 3600, + "rate-key": "url:{url},ip:{ip}", + "scope": "collections.write", + "platforms": [ + "server" + ], + "packaging": false, + "deprecated": { + "since": "1.8.0", + "replaceWith": "tablesDB.createLineColumn" + }, + "auth": { + "Project": [] + } + }, + "security": [ + { + "Project": [], + "Key": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + }, + { + "name": "collectionId", + "description": "Collection ID. You can create a new collection using the Database service [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateCollection).", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + } + ], + "requestBody": { + "content": { + "application\/json": { + "schema": { + "type": "object", + "properties": { + "key": { + "type": "string", + "description": "Attribute Key.", + "x-example": null + }, + "required": { + "type": "boolean", + "description": "Is attribute required?", + "x-example": false + }, + "default": { + "type": "array", + "description": "Default value for attribute when not provided, two-dimensional array of coordinate pairs, [[longitude, latitude], [longitude, latitude], \u2026], listing the vertices of the line in order. Cannot be set when attribute is required.", + "x-example": "[[1, 2], [3, 4], [5, 6]]", + "items": { + "oneOf": [ + { + "type": "array" + } + ] + }, + "x-nullable": true + } + }, + "required": [ + "key", + "required" + ] + } + } + } + } + } + }, + "\/databases\/{databaseId}\/collections\/{collectionId}\/attributes\/line\/{key}": { + "patch": { + "summary": "Update line attribute", + "operationId": "databasesUpdateLineAttribute", + "tags": [ + "databases" + ], + "description": "Update a line attribute. Changing the `default` value will not update already existing documents.", + "responses": { + "200": { + "description": "AttributeLine", + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/attributeLine" + } + } + } + } + }, + "deprecated": true, + "x-appwrite": { + "method": "updateLineAttribute", + "group": "attributes", + "weight": 357, + "cookies": false, + "type": "", + "demo": "databases\/update-line-attribute.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-line-attribute.md", + "rate-limit": 0, + "rate-time": 3600, + "rate-key": "url:{url},ip:{ip}", + "scope": "collections.write", + "platforms": [ + "server" + ], + "packaging": false, + "deprecated": { + "since": "1.8.0", + "replaceWith": "tablesDB.updateLineColumn" + }, + "auth": { + "Project": [] + } + }, + "security": [ + { + "Project": [], + "Key": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + }, + { + "name": "collectionId", + "description": "Collection ID. You can create a new collection using the Database service [server integration](https:\/\/appwrite.io\/docs\/server\/databases#createCollection).", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + }, + { + "name": "key", + "description": "Attribute Key.", + "required": true, + "schema": { + "type": "string" + }, + "in": "path" + } + ], + "requestBody": { + "content": { + "application\/json": { + "schema": { + "type": "object", + "properties": { + "required": { + "type": "boolean", + "description": "Is attribute required?", + "x-example": false + }, + "default": { + "type": "array", + "description": "Default value for attribute when not provided, two-dimensional array of coordinate pairs, [[longitude, latitude], [longitude, latitude], \u2026], listing the vertices of the line in order. Cannot be set when attribute is required.", + "x-example": "[[1, 2], [3, 4], [5, 6]]", + "items": { + "oneOf": [ + { + "type": "array" + } + ] + }, + "x-nullable": true + }, + "newKey": { + "type": "string", + "description": "New attribute key.", + "x-example": null + } + }, + "required": [ + "required" + ] + } + } + } + } + } + }, + "\/databases\/{databaseId}\/collections\/{collectionId}\/attributes\/point": { + "post": { + "summary": "Create point attribute", + "operationId": "databasesCreatePointAttribute", + "tags": [ + "databases" + ], + "description": "Create a geometric point attribute.", + "responses": { + "202": { + "description": "AttributePoint", + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/attributePoint" + } + } + } + } + }, + "deprecated": true, + "x-appwrite": { + "method": "createPointAttribute", + "group": "attributes", + "weight": 358, + "cookies": false, + "type": "", + "demo": "databases\/create-point-attribute.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-point-attribute.md", + "rate-limit": 0, + "rate-time": 3600, + "rate-key": "url:{url},ip:{ip}", + "scope": "collections.write", + "platforms": [ + "server" + ], + "packaging": false, + "deprecated": { + "since": "1.8.0", + "replaceWith": "tablesDB.createPointColumn" + }, + "auth": { + "Project": [] + } + }, + "security": [ + { + "Project": [], + "Key": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + }, + { + "name": "collectionId", + "description": "Collection ID. You can create a new collection using the Database service [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateCollection).", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + } + ], + "requestBody": { + "content": { + "application\/json": { + "schema": { + "type": "object", + "properties": { + "key": { + "type": "string", + "description": "Attribute Key.", + "x-example": null + }, + "required": { + "type": "boolean", + "description": "Is attribute required?", + "x-example": false + }, + "default": { + "type": "array", + "description": "Default value for attribute when not provided, array of two numbers [longitude, latitude], representing a single coordinate. Cannot be set when attribute is required.", + "x-example": "[1, 2]", + "items": { + "oneOf": [ + { + "type": "array" + } + ] + }, + "x-nullable": true + } + }, + "required": [ + "key", + "required" + ] + } + } + } + } + } + }, + "\/databases\/{databaseId}\/collections\/{collectionId}\/attributes\/point\/{key}": { + "patch": { + "summary": "Update point attribute", + "operationId": "databasesUpdatePointAttribute", + "tags": [ + "databases" + ], + "description": "Update a point attribute. Changing the `default` value will not update already existing documents.", + "responses": { + "200": { + "description": "AttributePoint", + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/attributePoint" + } + } + } + } + }, + "deprecated": true, + "x-appwrite": { + "method": "updatePointAttribute", + "group": "attributes", + "weight": 359, + "cookies": false, + "type": "", + "demo": "databases\/update-point-attribute.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-point-attribute.md", + "rate-limit": 0, + "rate-time": 3600, + "rate-key": "url:{url},ip:{ip}", + "scope": "collections.write", + "platforms": [ + "server" + ], + "packaging": false, + "deprecated": { + "since": "1.8.0", + "replaceWith": "tablesDB.updatePointColumn" + }, + "auth": { + "Project": [] + } + }, + "security": [ + { + "Project": [], + "Key": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + }, + { + "name": "collectionId", + "description": "Collection ID. You can create a new collection using the Database service [server integration](https:\/\/appwrite.io\/docs\/server\/databases#createCollection).", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + }, + { + "name": "key", + "description": "Attribute Key.", + "required": true, + "schema": { + "type": "string" + }, + "in": "path" + } + ], + "requestBody": { + "content": { + "application\/json": { + "schema": { + "type": "object", + "properties": { + "required": { + "type": "boolean", + "description": "Is attribute required?", + "x-example": false + }, + "default": { + "type": "array", + "description": "Default value for attribute when not provided, array of two numbers [longitude, latitude], representing a single coordinate. Cannot be set when attribute is required.", + "x-example": "[1, 2]", + "items": { + "oneOf": [ + { + "type": "array" + } + ] + }, + "x-nullable": true + }, + "newKey": { + "type": "string", + "description": "New attribute key.", + "x-example": null + } + }, + "required": [ + "required" + ] + } + } + } + } + } + }, + "\/databases\/{databaseId}\/collections\/{collectionId}\/attributes\/polygon": { + "post": { + "summary": "Create polygon attribute", + "operationId": "databasesCreatePolygonAttribute", + "tags": [ + "databases" + ], + "description": "Create a geometric polygon attribute.", + "responses": { + "202": { + "description": "AttributePolygon", + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/attributePolygon" + } + } + } + } + }, + "deprecated": true, + "x-appwrite": { + "method": "createPolygonAttribute", + "group": "attributes", + "weight": 360, + "cookies": false, + "type": "", + "demo": "databases\/create-polygon-attribute.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-polygon-attribute.md", + "rate-limit": 0, + "rate-time": 3600, + "rate-key": "url:{url},ip:{ip}", + "scope": "collections.write", + "platforms": [ + "server" + ], + "packaging": false, + "deprecated": { + "since": "1.8.0", + "replaceWith": "tablesDB.createPolygonColumn" + }, + "auth": { + "Project": [] + } + }, + "security": [ + { + "Project": [], + "Key": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + }, + { + "name": "collectionId", + "description": "Collection ID. You can create a new collection using the Database service [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateCollection).", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + } + ], + "requestBody": { + "content": { + "application\/json": { + "schema": { + "type": "object", + "properties": { + "key": { + "type": "string", + "description": "Attribute Key.", + "x-example": null + }, + "required": { + "type": "boolean", + "description": "Is attribute required?", + "x-example": false + }, + "default": { + "type": "array", + "description": "Default value for attribute when not provided, three-dimensional array where the outer array holds one or more linear rings, [[[longitude, latitude], \u2026], \u2026], the first ring is the exterior boundary, any additional rings are interior holes, and each ring must start and end with the same coordinate pair. Cannot be set when attribute is required.", + "x-example": "[[[1, 2], [3, 4], [5, 6], [1, 2]]]", + "items": { + "oneOf": [ + { + "type": "array" + } + ] + }, + "x-nullable": true + } + }, + "required": [ + "key", + "required" + ] + } + } + } + } + } + }, + "\/databases\/{databaseId}\/collections\/{collectionId}\/attributes\/polygon\/{key}": { + "patch": { + "summary": "Update polygon attribute", + "operationId": "databasesUpdatePolygonAttribute", + "tags": [ + "databases" + ], + "description": "Update a polygon attribute. Changing the `default` value will not update already existing documents.", + "responses": { + "200": { + "description": "AttributePolygon", + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/attributePolygon" + } + } + } + } + }, + "deprecated": true, + "x-appwrite": { + "method": "updatePolygonAttribute", + "group": "attributes", + "weight": 361, + "cookies": false, + "type": "", + "demo": "databases\/update-polygon-attribute.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-polygon-attribute.md", + "rate-limit": 0, + "rate-time": 3600, + "rate-key": "url:{url},ip:{ip}", + "scope": "collections.write", + "platforms": [ + "server" + ], + "packaging": false, + "deprecated": { + "since": "1.8.0", + "replaceWith": "tablesDB.updatePolygonColumn" + }, + "auth": { + "Project": [] + } + }, + "security": [ + { + "Project": [], + "Key": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + }, + { + "name": "collectionId", + "description": "Collection ID. You can create a new collection using the Database service [server integration](https:\/\/appwrite.io\/docs\/server\/databases#createCollection).", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + }, + { + "name": "key", + "description": "Attribute Key.", + "required": true, + "schema": { + "type": "string" + }, + "in": "path" + } + ], + "requestBody": { + "content": { + "application\/json": { + "schema": { + "type": "object", + "properties": { + "required": { + "type": "boolean", + "description": "Is attribute required?", + "x-example": false + }, + "default": { + "type": "array", + "description": "Default value for attribute when not provided, three-dimensional array where the outer array holds one or more linear rings, [[[longitude, latitude], \u2026], \u2026], the first ring is the exterior boundary, any additional rings are interior holes, and each ring must start and end with the same coordinate pair. Cannot be set when attribute is required.", + "x-example": "[[[1, 2], [3, 4], [5, 6], [1, 2]]]", + "items": { + "oneOf": [ + { + "type": "array" + } + ] + }, + "x-nullable": true + }, + "newKey": { + "type": "string", + "description": "New attribute key.", + "x-example": null + } + }, + "required": [ + "required" + ] + } + } + } + } + } + }, "\/databases\/{databaseId}\/collections\/{collectionId}\/attributes\/relationship": { "post": { "summary": "Create relationship attribute", @@ -7784,7 +8494,7 @@ "x-appwrite": { "method": "createRelationshipAttribute", "group": "attributes", - "weight": 361, + "weight": 362, "cookies": false, "type": "", "demo": "databases\/create-relationship-attribute.md", @@ -7919,7 +8629,7 @@ "x-appwrite": { "method": "createStringAttribute", "group": "attributes", - "weight": 363, + "weight": 364, "cookies": false, "type": "", "demo": "databases\/create-string-attribute.md", @@ -8040,7 +8750,7 @@ "x-appwrite": { "method": "updateStringAttribute", "group": "attributes", - "weight": 364, + "weight": 365, "cookies": false, "type": "", "demo": "databases\/update-string-attribute.md", @@ -8160,7 +8870,7 @@ "x-appwrite": { "method": "createUrlAttribute", "group": "attributes", - "weight": 365, + "weight": 366, "cookies": false, "type": "", "demo": "databases\/create-url-attribute.md", @@ -8270,7 +8980,7 @@ "x-appwrite": { "method": "updateUrlAttribute", "group": "attributes", - "weight": 366, + "weight": 367, "cookies": false, "type": "", "demo": "databases\/update-url-attribute.md", @@ -8416,7 +9126,7 @@ "x-appwrite": { "method": "getAttribute", "group": "attributes", - "weight": 344, + "weight": 339, "cookies": false, "type": "", "demo": "databases\/get-attribute.md", @@ -8491,7 +9201,7 @@ "x-appwrite": { "method": "deleteAttribute", "group": "attributes", - "weight": 345, + "weight": 340, "cookies": false, "type": "", "demo": "databases\/delete-attribute.md", @@ -8575,7 +9285,7 @@ "x-appwrite": { "method": "updateRelationshipAttribute", "group": "attributes", - "weight": 362, + "weight": 363, "cookies": false, "type": "", "demo": "databases\/update-relationship-attribute.md", @@ -8687,7 +9397,7 @@ "x-appwrite": { "method": "listDocuments", "group": "documents", - "weight": 340, + "weight": 335, "cookies": false, "type": "", "demo": "databases\/list-documents.md", @@ -8776,7 +9486,7 @@ "x-appwrite": { "method": "createDocument", "group": "documents", - "weight": 332, + "weight": 327, "cookies": false, "type": "", "demo": "databases\/create-document.md", @@ -8907,7 +9617,7 @@ "data": { "type": "object", "description": "Document data as JSON object.", - "x-example": "{}" + "x-example": "{\"username\":\"walter.obrien\",\"email\":\"walter.obrien@example.com\",\"fullName\":\"Walter O'Brien\",\"age\":30,\"isAdmin\":false}" }, "permissions": { "type": "array", @@ -8932,7 +9642,7 @@ } }, "put": { - "summary": "Create or update documents", + "summary": "Upsert documents", "operationId": "databasesUpsertDocuments", "tags": [ "databases" @@ -8954,7 +9664,7 @@ "x-appwrite": { "method": "upsertDocuments", "group": "documents", - "weight": 337, + "weight": 332, "cookies": false, "type": "", "demo": "databases\/upsert-documents.md", @@ -9082,7 +9792,7 @@ "x-appwrite": { "method": "updateDocuments", "group": "documents", - "weight": 335, + "weight": 330, "cookies": false, "type": "", "demo": "databases\/update-documents.md", @@ -9180,7 +9890,7 @@ "x-appwrite": { "method": "deleteDocuments", "group": "documents", - "weight": 339, + "weight": 334, "cookies": false, "type": "", "demo": "databases\/delete-documents.md", @@ -9275,7 +9985,7 @@ "x-appwrite": { "method": "getDocument", "group": "documents", - "weight": 333, + "weight": 328, "cookies": false, "type": "", "demo": "databases\/get-document.md", @@ -9352,7 +10062,7 @@ ] }, "put": { - "summary": "Create or update a document", + "summary": "Upsert a document", "operationId": "databasesUpsertDocument", "tags": [ "databases" @@ -9374,7 +10084,7 @@ "x-appwrite": { "method": "upsertDocument", "group": "documents", - "weight": 336, + "weight": 331, "cookies": false, "type": "", "demo": "databases\/upsert-document.md", @@ -9522,7 +10232,7 @@ "x-appwrite": { "method": "updateDocument", "group": "documents", - "weight": 334, + "weight": 329, "cookies": false, "type": "", "demo": "databases\/update-document.md", @@ -9625,7 +10335,7 @@ "x-appwrite": { "method": "deleteDocument", "group": "documents", - "weight": 338, + "weight": 333, "cookies": false, "type": "", "demo": "databases\/delete-document.md", @@ -9713,7 +10423,7 @@ "x-appwrite": { "method": "listDocumentLogs", "group": "logs", - "weight": 341, + "weight": 336, "cookies": false, "type": "", "demo": "databases\/list-document-logs.md", @@ -9810,7 +10520,7 @@ "x-appwrite": { "method": "decrementDocumentAttribute", "group": "documents", - "weight": 343, + "weight": 338, "cookies": false, "type": "", "demo": "databases\/decrement-document-attribute.md", @@ -9929,7 +10639,7 @@ "x-appwrite": { "method": "incrementDocumentAttribute", "group": "documents", - "weight": 342, + "weight": 337, "cookies": false, "type": "", "demo": "databases\/increment-document-attribute.md", @@ -10048,7 +10758,7 @@ "x-appwrite": { "method": "listIndexes", "group": "indexes", - "weight": 370, + "weight": 371, "cookies": false, "type": "", "demo": "databases\/list-indexes.md", @@ -10134,7 +10844,7 @@ "x-appwrite": { "method": "createIndex", "group": "indexes", - "weight": 367, + "weight": 368, "cookies": false, "type": "", "demo": "databases\/create-index.md", @@ -10201,7 +10911,8 @@ "enum": [ "key", "fulltext", - "unique" + "unique", + "spatial" ], "x-enum-name": "IndexType", "x-enum-keys": [] @@ -10266,7 +10977,7 @@ "x-appwrite": { "method": "getIndex", "group": "indexes", - "weight": 368, + "weight": 369, "cookies": false, "type": "", "demo": "databases\/get-index.md", @@ -10341,7 +11052,7 @@ "x-appwrite": { "method": "deleteIndex", "group": "indexes", - "weight": 369, + "weight": 370, "cookies": false, "type": "", "demo": "databases\/delete-index.md", @@ -10425,7 +11136,7 @@ "x-appwrite": { "method": "listCollectionLogs", "group": "collections", - "weight": 330, + "weight": 325, "cookies": false, "type": "", "demo": "databases\/list-collection-logs.md", @@ -10512,7 +11223,7 @@ "x-appwrite": { "method": "getCollectionUsage", "group": null, - "weight": 331, + "weight": 326, "cookies": false, "type": "", "demo": "databases\/get-collection-usage.md", @@ -10608,7 +11319,7 @@ "x-appwrite": { "method": "listLogs", "group": "logs", - "weight": 322, + "weight": 317, "cookies": false, "type": "", "demo": "databases\/list-logs.md", @@ -10714,7 +11425,7 @@ "x-appwrite": { "method": "getUsage", "group": null, - "weight": 323, + "weight": 318, "cookies": false, "type": "", "demo": "databases\/get-usage.md", @@ -10829,7 +11540,7 @@ "x-appwrite": { "method": "list", "group": "functions", - "weight": 432, + "weight": 440, "cookies": false, "type": "", "demo": "functions\/list.md", @@ -10902,7 +11613,7 @@ "x-appwrite": { "method": "create", "group": "functions", - "weight": 429, + "weight": 437, "cookies": false, "type": "", "demo": "functions\/create.md", @@ -11135,7 +11846,7 @@ "x-appwrite": { "method": "listRuntimes", "group": "runtimes", - "weight": 434, + "weight": 442, "cookies": false, "type": "", "demo": "functions\/list-runtimes.md", @@ -11184,7 +11895,7 @@ "x-appwrite": { "method": "listSpecifications", "group": "runtimes", - "weight": 435, + "weight": 443, "cookies": false, "type": "", "demo": "functions\/list-specifications.md", @@ -11234,7 +11945,7 @@ "x-appwrite": { "method": "listTemplates", "group": "templates", - "weight": 458, + "weight": 466, "cookies": false, "type": "", "demo": "functions\/list-templates.md", @@ -11334,7 +12045,7 @@ "x-appwrite": { "method": "getTemplate", "group": "templates", - "weight": 457, + "weight": 465, "cookies": false, "type": "", "demo": "functions\/get-template.md", @@ -11394,7 +12105,7 @@ "x-appwrite": { "method": "listUsage", "group": null, - "weight": 451, + "weight": 459, "cookies": false, "type": "", "demo": "functions\/list-usage.md", @@ -11466,7 +12177,7 @@ "x-appwrite": { "method": "get", "group": "functions", - "weight": 430, + "weight": 438, "cookies": false, "type": "", "demo": "functions\/get.md", @@ -11525,7 +12236,7 @@ "x-appwrite": { "method": "update", "group": "functions", - "weight": 431, + "weight": 439, "cookies": false, "type": "", "demo": "functions\/update.md", @@ -11755,7 +12466,7 @@ "x-appwrite": { "method": "delete", "group": "functions", - "weight": 433, + "weight": 441, "cookies": false, "type": "", "demo": "functions\/delete.md", @@ -11816,7 +12527,7 @@ "x-appwrite": { "method": "updateFunctionDeployment", "group": "functions", - "weight": 438, + "weight": 446, "cookies": false, "type": "", "demo": "functions\/update-function-deployment.md", @@ -11896,7 +12607,7 @@ "x-appwrite": { "method": "listDeployments", "group": "deployments", - "weight": 439, + "weight": 447, "cookies": false, "type": "", "demo": "functions\/list-deployments.md", @@ -11979,7 +12690,7 @@ "x-appwrite": { "method": "createDeployment", "group": "deployments", - "weight": 436, + "weight": 444, "cookies": false, "type": "upload", "demo": "functions\/create-deployment.md", @@ -12075,7 +12786,7 @@ "x-appwrite": { "method": "createDuplicateDeployment", "group": "deployments", - "weight": 444, + "weight": 452, "cookies": false, "type": "", "demo": "functions\/create-duplicate-deployment.md", @@ -12160,7 +12871,7 @@ "x-appwrite": { "method": "createTemplateDeployment", "group": "deployments", - "weight": 441, + "weight": 449, "cookies": false, "type": "", "demo": "functions\/create-template-deployment.md", @@ -12263,7 +12974,7 @@ "x-appwrite": { "method": "createVcsDeployment", "group": "deployments", - "weight": 442, + "weight": 450, "cookies": false, "type": "", "demo": "functions\/create-vcs-deployment.md", @@ -12360,7 +13071,7 @@ "x-appwrite": { "method": "getDeployment", "group": "deployments", - "weight": 437, + "weight": 445, "cookies": false, "type": "", "demo": "functions\/get-deployment.md", @@ -12422,7 +13133,7 @@ "x-appwrite": { "method": "deleteDeployment", "group": "deployments", - "weight": 440, + "weight": 448, "cookies": false, "type": "", "demo": "functions\/delete-deployment.md", @@ -12486,7 +13197,7 @@ "x-appwrite": { "method": "getDeploymentDownload", "group": "deployments", - "weight": 443, + "weight": 451, "cookies": false, "type": "location", "demo": "functions\/get-deployment-download.md", @@ -12576,7 +13287,7 @@ "x-appwrite": { "method": "updateDeploymentStatus", "group": "deployments", - "weight": 445, + "weight": 453, "cookies": false, "type": "", "demo": "functions\/update-deployment-status.md", @@ -12647,7 +13358,7 @@ "x-appwrite": { "method": "listExecutions", "group": "executions", - "weight": 448, + "weight": 456, "cookies": false, "type": "", "demo": "functions\/list-executions.md", @@ -12722,7 +13433,7 @@ "x-appwrite": { "method": "createExecution", "group": "executions", - "weight": 446, + "weight": 454, "cookies": false, "type": "", "demo": "functions\/create-execution.md", @@ -12783,7 +13494,7 @@ }, "method": { "type": "string", - "description": "HTTP method of execution. Default value is GET.", + "description": "HTTP method of execution. Default value is POST.", "x-example": "GET", "enum": [ "GET", @@ -12791,7 +13502,8 @@ "PUT", "PATCH", "DELETE", - "OPTIONS" + "OPTIONS", + "HEAD" ], "x-enum-name": "ExecutionMethod", "x-enum-keys": [] @@ -12837,7 +13549,7 @@ "x-appwrite": { "method": "getExecution", "group": "executions", - "weight": 447, + "weight": 455, "cookies": false, "type": "", "demo": "functions\/get-execution.md", @@ -12902,7 +13614,7 @@ "x-appwrite": { "method": "deleteExecution", "group": "executions", - "weight": 449, + "weight": 457, "cookies": false, "type": "", "demo": "functions\/delete-execution.md", @@ -12973,7 +13685,7 @@ "x-appwrite": { "method": "getUsage", "group": null, - "weight": 450, + "weight": 458, "cookies": false, "type": "", "demo": "functions\/get-usage.md", @@ -13055,7 +13767,7 @@ "x-appwrite": { "method": "listVariables", "group": "variables", - "weight": 454, + "weight": 462, "cookies": false, "type": "", "demo": "functions\/list-variables.md", @@ -13114,7 +13826,7 @@ "x-appwrite": { "method": "createVariable", "group": "variables", - "weight": 452, + "weight": 460, "cookies": false, "type": "", "demo": "functions\/create-variable.md", @@ -13205,7 +13917,7 @@ "x-appwrite": { "method": "getVariable", "group": "variables", - "weight": 453, + "weight": 461, "cookies": false, "type": "", "demo": "functions\/get-variable.md", @@ -13274,7 +13986,7 @@ "x-appwrite": { "method": "updateVariable", "group": "variables", - "weight": 455, + "weight": 463, "cookies": false, "type": "", "demo": "functions\/update-variable.md", @@ -13365,7 +14077,7 @@ "x-appwrite": { "method": "deleteVariable", "group": "variables", - "weight": 456, + "weight": 464, "cookies": false, "type": "", "demo": "functions\/delete-variable.md", @@ -13436,7 +14148,7 @@ "x-appwrite": { "method": "query", "group": "graphql", - "weight": 255, + "weight": 250, "cookies": false, "type": "graphql", "demo": "graphql\/query.md", @@ -13488,7 +14200,7 @@ "x-appwrite": { "method": "mutation", "group": "graphql", - "weight": 254, + "weight": 249, "cookies": false, "type": "graphql", "demo": "graphql\/mutation.md", @@ -13750,7 +14462,7 @@ "weight": 80, "cookies": false, "type": "", - "demo": "health\/get-d-b.md", + "demo": "health\/get-db.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/health\/get-db.md", "rate-limit": 0, "rate-time": 3600, @@ -14480,7 +15192,7 @@ }, "\/health\/queue\/stats-resources": { "get": { - "summary": "Get stats resources queue", + "summary": "Get stats resources queue", "operationId": "healthGetQueueStatsResources", "tags": [ "health" @@ -15046,7 +15758,7 @@ "weight": 73, "cookies": false, "type": "", - "demo": "locale\/list-countries-e-u.md", + "demo": "locale\/list-countries-eu.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/locale\/list-countries-eu.md", "rate-limit": 0, "rate-time": 3600, @@ -15251,7 +15963,7 @@ "x-appwrite": { "method": "listMessages", "group": "messages", - "weight": 309, + "weight": 304, "cookies": false, "type": "", "demo": "messaging\/list-messages.md", @@ -15327,7 +16039,7 @@ "x-appwrite": { "method": "createEmail", "group": "messages", - "weight": 306, + "weight": 301, "cookies": false, "type": "", "demo": "messaging\/create-email.md", @@ -15471,7 +16183,7 @@ "x-appwrite": { "method": "updateEmail", "group": "messages", - "weight": 313, + "weight": 308, "cookies": false, "type": "", "demo": "messaging\/update-email.md", @@ -15617,7 +16329,7 @@ "x-appwrite": { "method": "createPush", "group": "messages", - "weight": 308, + "weight": 303, "cookies": false, "type": "", "demo": "messaging\/create-push.md", @@ -15791,7 +16503,7 @@ "x-appwrite": { "method": "updatePush", "group": "messages", - "weight": 315, + "weight": 310, "cookies": false, "type": "", "demo": "messaging\/update-push.md", @@ -15969,7 +16681,7 @@ "x-appwrite": { "method": "createSms", "group": "messages", - "weight": 307, + "weight": 302, "cookies": false, "type": "", "demo": "messaging\/create-sms.md", @@ -16048,7 +16760,7 @@ } ], "description": "Create a new SMS message.", - "demo": "messaging\/create-s-m-s.md" + "demo": "messaging\/create-sms.md" } ], "auth": { @@ -16146,7 +16858,7 @@ "x-appwrite": { "method": "updateSms", "group": "messages", - "weight": 314, + "weight": 309, "cookies": false, "type": "", "demo": "messaging\/update-sms.md", @@ -16223,7 +16935,7 @@ } ], "description": "Update an SMS message by its unique ID. This endpoint only works on messages that are in draft status. Messages that are already processing, sent, or failed cannot be updated.\n", - "demo": "messaging\/update-s-m-s.md" + "demo": "messaging\/update-sms.md" } ], "auth": { @@ -16324,7 +17036,7 @@ "x-appwrite": { "method": "getMessage", "group": "messages", - "weight": 312, + "weight": 307, "cookies": false, "type": "", "demo": "messaging\/get-message.md", @@ -16377,7 +17089,7 @@ "x-appwrite": { "method": "delete", "group": "messages", - "weight": 316, + "weight": 311, "cookies": false, "type": "", "demo": "messaging\/delete.md", @@ -16439,7 +17151,7 @@ "x-appwrite": { "method": "listMessageLogs", "group": "logs", - "weight": 310, + "weight": 305, "cookies": false, "type": "", "demo": "messaging\/list-message-logs.md", @@ -16514,7 +17226,7 @@ "x-appwrite": { "method": "listTargets", "group": "messages", - "weight": 311, + "weight": 306, "cookies": false, "type": "", "demo": "messaging\/list-targets.md", @@ -16589,7 +17301,7 @@ "x-appwrite": { "method": "listProviders", "group": "providers", - "weight": 281, + "weight": 276, "cookies": false, "type": "", "demo": "messaging\/list-providers.md", @@ -16665,7 +17377,7 @@ "x-appwrite": { "method": "createApnsProvider", "group": "providers", - "weight": 280, + "weight": 275, "cookies": false, "type": "", "demo": "messaging\/create-apns-provider.md", @@ -16746,7 +17458,7 @@ } ], "description": "Create a new Apple Push Notification service provider.", - "demo": "messaging\/create-a-p-n-s-provider.md" + "demo": "messaging\/create-apns-provider.md" } ], "auth": { @@ -16840,7 +17552,7 @@ "x-appwrite": { "method": "updateApnsProvider", "group": "providers", - "weight": 293, + "weight": 288, "cookies": false, "type": "", "demo": "messaging\/update-apns-provider.md", @@ -16919,7 +17631,7 @@ } ], "description": "Update a Apple Push Notification service provider by its unique ID.", - "demo": "messaging\/update-a-p-n-s-provider.md" + "demo": "messaging\/update-apns-provider.md" } ], "auth": { @@ -17016,7 +17728,7 @@ "x-appwrite": { "method": "createFcmProvider", "group": "providers", - "weight": 279, + "weight": 274, "cookies": false, "type": "", "demo": "messaging\/create-fcm-provider.md", @@ -17089,7 +17801,7 @@ } ], "description": "Create a new Firebase Cloud Messaging provider.", - "demo": "messaging\/create-f-c-m-provider.md" + "demo": "messaging\/create-fcm-provider.md" } ], "auth": { @@ -17163,7 +17875,7 @@ "x-appwrite": { "method": "updateFcmProvider", "group": "providers", - "weight": 292, + "weight": 287, "cookies": false, "type": "", "demo": "messaging\/update-fcm-provider.md", @@ -17234,7 +17946,7 @@ } ], "description": "Update a Firebase Cloud Messaging provider by its unique ID.", - "demo": "messaging\/update-f-c-m-provider.md" + "demo": "messaging\/update-fcm-provider.md" } ], "auth": { @@ -17311,7 +18023,7 @@ "x-appwrite": { "method": "createMailgunProvider", "group": "providers", - "weight": 271, + "weight": 266, "cookies": false, "type": "", "demo": "messaging\/create-mailgun-provider.md", @@ -17426,7 +18138,7 @@ "x-appwrite": { "method": "updateMailgunProvider", "group": "providers", - "weight": 284, + "weight": 279, "cookies": false, "type": "", "demo": "messaging\/update-mailgun-provider.md", @@ -17544,10 +18256,10 @@ "x-appwrite": { "method": "createMsg91Provider", "group": "providers", - "weight": 274, + "weight": 269, "cookies": false, "type": "", - "demo": "messaging\/create-msg91provider.md", + "demo": "messaging\/create-msg-91-provider.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/messaging\/create-msg91-provider.md", "rate-limit": 0, "rate-time": 3600, @@ -17639,10 +18351,10 @@ "x-appwrite": { "method": "updateMsg91Provider", "group": "providers", - "weight": 287, + "weight": 282, "cookies": false, "type": "", - "demo": "messaging\/update-msg91provider.md", + "demo": "messaging\/update-msg-91-provider.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/messaging\/update-msg91-provider.md", "rate-limit": 0, "rate-time": 3600, @@ -17737,7 +18449,7 @@ "x-appwrite": { "method": "createSendgridProvider", "group": "providers", - "weight": 272, + "weight": 267, "cookies": false, "type": "", "demo": "messaging\/create-sendgrid-provider.md", @@ -17842,7 +18554,7 @@ "x-appwrite": { "method": "updateSendgridProvider", "group": "providers", - "weight": 285, + "weight": 280, "cookies": false, "type": "", "demo": "messaging\/update-sendgrid-provider.md", @@ -17950,7 +18662,7 @@ "x-appwrite": { "method": "createSmtpProvider", "group": "providers", - "weight": 273, + "weight": 268, "cookies": false, "type": "", "demo": "messaging\/create-smtp-provider.md", @@ -18045,7 +18757,7 @@ } ], "description": "Create a new SMTP provider.", - "demo": "messaging\/create-s-m-t-p-provider.md" + "demo": "messaging\/create-smtp-provider.md" } ], "auth": { @@ -18177,7 +18889,7 @@ "x-appwrite": { "method": "updateSmtpProvider", "group": "providers", - "weight": 286, + "weight": 281, "cookies": false, "type": "", "demo": "messaging\/update-smtp-provider.md", @@ -18268,7 +18980,7 @@ } ], "description": "Update a SMTP provider by its unique ID.", - "demo": "messaging\/update-s-m-t-p-provider.md" + "demo": "messaging\/update-smtp-provider.md" } ], "auth": { @@ -18402,7 +19114,7 @@ "x-appwrite": { "method": "createTelesignProvider", "group": "providers", - "weight": 275, + "weight": 270, "cookies": false, "type": "", "demo": "messaging\/create-telesign-provider.md", @@ -18497,7 +19209,7 @@ "x-appwrite": { "method": "updateTelesignProvider", "group": "providers", - "weight": 288, + "weight": 283, "cookies": false, "type": "", "demo": "messaging\/update-telesign-provider.md", @@ -18595,7 +19307,7 @@ "x-appwrite": { "method": "createTextmagicProvider", "group": "providers", - "weight": 276, + "weight": 271, "cookies": false, "type": "", "demo": "messaging\/create-textmagic-provider.md", @@ -18690,7 +19402,7 @@ "x-appwrite": { "method": "updateTextmagicProvider", "group": "providers", - "weight": 289, + "weight": 284, "cookies": false, "type": "", "demo": "messaging\/update-textmagic-provider.md", @@ -18788,7 +19500,7 @@ "x-appwrite": { "method": "createTwilioProvider", "group": "providers", - "weight": 277, + "weight": 272, "cookies": false, "type": "", "demo": "messaging\/create-twilio-provider.md", @@ -18883,7 +19595,7 @@ "x-appwrite": { "method": "updateTwilioProvider", "group": "providers", - "weight": 290, + "weight": 285, "cookies": false, "type": "", "demo": "messaging\/update-twilio-provider.md", @@ -18981,7 +19693,7 @@ "x-appwrite": { "method": "createVonageProvider", "group": "providers", - "weight": 278, + "weight": 273, "cookies": false, "type": "", "demo": "messaging\/create-vonage-provider.md", @@ -19076,7 +19788,7 @@ "x-appwrite": { "method": "updateVonageProvider", "group": "providers", - "weight": 291, + "weight": 286, "cookies": false, "type": "", "demo": "messaging\/update-vonage-provider.md", @@ -19174,7 +19886,7 @@ "x-appwrite": { "method": "getProvider", "group": "providers", - "weight": 283, + "weight": 278, "cookies": false, "type": "", "demo": "messaging\/get-provider.md", @@ -19227,7 +19939,7 @@ "x-appwrite": { "method": "deleteProvider", "group": "providers", - "weight": 294, + "weight": 289, "cookies": false, "type": "", "demo": "messaging\/delete-provider.md", @@ -19289,7 +20001,7 @@ "x-appwrite": { "method": "listProviderLogs", "group": "providers", - "weight": 282, + "weight": 277, "cookies": false, "type": "", "demo": "messaging\/list-provider-logs.md", @@ -19364,7 +20076,7 @@ "x-appwrite": { "method": "listSubscriberLogs", "group": "subscribers", - "weight": 303, + "weight": 298, "cookies": false, "type": "", "demo": "messaging\/list-subscriber-logs.md", @@ -19439,7 +20151,7 @@ "x-appwrite": { "method": "listTopics", "group": "topics", - "weight": 296, + "weight": 291, "cookies": false, "type": "", "demo": "messaging\/list-topics.md", @@ -19513,7 +20225,7 @@ "x-appwrite": { "method": "createTopic", "group": "topics", - "weight": 295, + "weight": 290, "cookies": false, "type": "", "demo": "messaging\/create-topic.md", @@ -19596,7 +20308,7 @@ "x-appwrite": { "method": "getTopic", "group": "topics", - "weight": 298, + "weight": 293, "cookies": false, "type": "", "demo": "messaging\/get-topic.md", @@ -19656,7 +20368,7 @@ "x-appwrite": { "method": "updateTopic", "group": "topics", - "weight": 299, + "weight": 294, "cookies": false, "type": "", "demo": "messaging\/update-topic.md", @@ -19733,7 +20445,7 @@ "x-appwrite": { "method": "deleteTopic", "group": "topics", - "weight": 300, + "weight": 295, "cookies": false, "type": "", "demo": "messaging\/delete-topic.md", @@ -19795,7 +20507,7 @@ "x-appwrite": { "method": "listTopicLogs", "group": "topics", - "weight": 297, + "weight": 292, "cookies": false, "type": "", "demo": "messaging\/list-topic-logs.md", @@ -19870,7 +20582,7 @@ "x-appwrite": { "method": "listSubscribers", "group": "subscribers", - "weight": 302, + "weight": 297, "cookies": false, "type": "", "demo": "messaging\/list-subscribers.md", @@ -19954,7 +20666,7 @@ "x-appwrite": { "method": "createSubscriber", "group": "subscribers", - "weight": 301, + "weight": 296, "cookies": false, "type": "", "demo": "messaging\/create-subscriber.md", @@ -20044,7 +20756,7 @@ "x-appwrite": { "method": "getSubscriber", "group": "subscribers", - "weight": 304, + "weight": 299, "cookies": false, "type": "", "demo": "messaging\/get-subscriber.md", @@ -20107,7 +20819,7 @@ "x-appwrite": { "method": "deleteSubscriber", "group": "subscribers", - "weight": 305, + "weight": 300, "cookies": false, "type": "", "demo": "messaging\/delete-subscriber.md", @@ -20182,7 +20894,7 @@ "x-appwrite": { "method": "list", "group": null, - "weight": 263, + "weight": 258, "cookies": false, "type": "", "demo": "migrations\/list.md", @@ -20256,7 +20968,7 @@ "x-appwrite": { "method": "createAppwriteMigration", "group": null, - "weight": 258, + "weight": 253, "cookies": false, "type": "", "demo": "migrations\/create-appwrite-migration.md", @@ -20344,7 +21056,7 @@ "x-appwrite": { "method": "getAppwriteReport", "group": null, - "weight": 265, + "weight": 260, "cookies": false, "type": "", "demo": "migrations\/get-appwrite-report.md", @@ -20437,7 +21149,7 @@ "x-appwrite": { "method": "createCsvMigration", "group": null, - "weight": 262, + "weight": 257, "cookies": false, "type": "", "demo": "migrations\/create-csv-migration.md", @@ -20521,7 +21233,7 @@ "x-appwrite": { "method": "createFirebaseMigration", "group": null, - "weight": 259, + "weight": 254, "cookies": false, "type": "", "demo": "migrations\/create-firebase-migration.md", @@ -20597,7 +21309,7 @@ "x-appwrite": { "method": "getFirebaseReport", "group": null, - "weight": 266, + "weight": 261, "cookies": false, "type": "", "demo": "migrations\/get-firebase-report.md", @@ -20669,7 +21381,7 @@ "x-appwrite": { "method": "createNHostMigration", "group": null, - "weight": 261, + "weight": 256, "cookies": false, "type": "", "demo": "migrations\/create-n-host-migration.md", @@ -20780,7 +21492,7 @@ "x-appwrite": { "method": "getNHostReport", "group": null, - "weight": 268, + "weight": 263, "cookies": false, "type": "", "demo": "migrations\/get-n-host-report.md", @@ -20913,7 +21625,7 @@ "x-appwrite": { "method": "createSupabaseMigration", "group": null, - "weight": 260, + "weight": 255, "cookies": false, "type": "", "demo": "migrations\/create-supabase-migration.md", @@ -21018,7 +21730,7 @@ "x-appwrite": { "method": "getSupabaseReport", "group": null, - "weight": 267, + "weight": 262, "cookies": false, "type": "", "demo": "migrations\/get-supabase-report.md", @@ -21142,7 +21854,7 @@ "x-appwrite": { "method": "get", "group": null, - "weight": 264, + "weight": 259, "cookies": false, "type": "", "demo": "migrations\/get.md", @@ -21200,7 +21912,7 @@ "x-appwrite": { "method": "retry", "group": null, - "weight": 269, + "weight": 264, "cookies": false, "type": "", "demo": "migrations\/retry.md", @@ -21251,7 +21963,7 @@ "x-appwrite": { "method": "delete", "group": null, - "weight": 270, + "weight": 265, "cookies": false, "type": "", "demo": "migrations\/delete.md", @@ -21311,7 +22023,7 @@ "x-appwrite": { "method": "getUsage", "group": null, - "weight": 149, + "weight": 148, "cookies": false, "type": "", "demo": "project\/get-usage.md", @@ -21399,7 +22111,7 @@ "x-appwrite": { "method": "listVariables", "group": null, - "weight": 151, + "weight": 150, "cookies": false, "type": "", "demo": "project\/list-variables.md", @@ -21445,7 +22157,7 @@ "x-appwrite": { "method": "createVariable", "group": null, - "weight": 150, + "weight": 149, "cookies": false, "type": "", "demo": "project\/create-variable.md", @@ -21523,7 +22235,7 @@ "x-appwrite": { "method": "getVariable", "group": null, - "weight": 152, + "weight": 151, "cookies": false, "type": "", "demo": "project\/get-variable.md", @@ -21581,7 +22293,7 @@ "x-appwrite": { "method": "updateVariable", "group": null, - "weight": 153, + "weight": 152, "cookies": false, "type": "", "demo": "project\/update-variable.md", @@ -21661,7 +22373,7 @@ "x-appwrite": { "method": "deleteVariable", "group": null, - "weight": 154, + "weight": 153, "cookies": false, "type": "", "demo": "project\/delete-variable.md", @@ -21721,11 +22433,11 @@ "x-appwrite": { "method": "list", "group": "projects", - "weight": 103, + "weight": 436, "cookies": false, "type": "", "demo": "projects\/list.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/projects\/list.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/masterGet a list of all projects. You can use the query params to filter your results. ", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -21927,7 +22639,7 @@ "x-appwrite": { "method": "get", "group": "projects", - "weight": 104, + "weight": 103, "cookies": false, "type": "", "demo": "projects\/get.md", @@ -21985,7 +22697,7 @@ "x-appwrite": { "method": "update", "group": "projects", - "weight": 105, + "weight": 104, "cookies": false, "type": "", "demo": "projects\/update.md", @@ -22100,7 +22812,7 @@ "x-appwrite": { "method": "delete", "group": "projects", - "weight": 122, + "weight": 121, "cookies": false, "type": "", "demo": "projects\/delete.md", @@ -22160,7 +22872,7 @@ "x-appwrite": { "method": "updateApiStatus", "group": "projects", - "weight": 109, + "weight": 108, "cookies": false, "type": "", "demo": "projects\/update-api-status.md", @@ -22232,7 +22944,7 @@ } ], "description": "Update the status of a specific API type. Use this endpoint to enable or disable API types such as REST, GraphQL and Realtime.", - "demo": "projects\/update-a-p-i-status.md" + "demo": "projects\/update-api-status.md" } ], "auth": { @@ -22314,7 +23026,7 @@ "x-appwrite": { "method": "updateApiStatusAll", "group": "projects", - "weight": 110, + "weight": 109, "cookies": false, "type": "", "demo": "projects\/update-api-status-all.md", @@ -22382,7 +23094,7 @@ } ], "description": "Update the status of all API types. Use this endpoint to enable or disable API types such as REST, GraphQL and Realtime all at once.", - "demo": "projects\/update-a-p-i-status-all.md" + "demo": "projects\/update-api-status-all.md" } ], "auth": { @@ -22451,7 +23163,7 @@ "x-appwrite": { "method": "updateAuthDuration", "group": "auth", - "weight": 115, + "weight": 114, "cookies": false, "type": "", "demo": "projects\/update-auth-duration.md", @@ -22530,7 +23242,7 @@ "x-appwrite": { "method": "updateAuthLimit", "group": "auth", - "weight": 114, + "weight": 113, "cookies": false, "type": "", "demo": "projects\/update-auth-limit.md", @@ -22609,7 +23321,7 @@ "x-appwrite": { "method": "updateAuthSessionsLimit", "group": "auth", - "weight": 120, + "weight": 119, "cookies": false, "type": "", "demo": "projects\/update-auth-sessions-limit.md", @@ -22688,7 +23400,7 @@ "x-appwrite": { "method": "updateMembershipsPrivacy", "group": "auth", - "weight": 113, + "weight": 112, "cookies": false, "type": "", "demo": "projects\/update-memberships-privacy.md", @@ -22779,7 +23491,7 @@ "x-appwrite": { "method": "updateMockNumbers", "group": "auth", - "weight": 121, + "weight": 120, "cookies": false, "type": "", "demo": "projects\/update-mock-numbers.md", @@ -22861,7 +23573,7 @@ "x-appwrite": { "method": "updateAuthPasswordDictionary", "group": "auth", - "weight": 118, + "weight": 117, "cookies": false, "type": "", "demo": "projects\/update-auth-password-dictionary.md", @@ -22940,7 +23652,7 @@ "x-appwrite": { "method": "updateAuthPasswordHistory", "group": "auth", - "weight": 117, + "weight": 116, "cookies": false, "type": "", "demo": "projects\/update-auth-password-history.md", @@ -23019,7 +23731,7 @@ "x-appwrite": { "method": "updatePersonalDataCheck", "group": "auth", - "weight": 119, + "weight": 118, "cookies": false, "type": "", "demo": "projects\/update-personal-data-check.md", @@ -23098,7 +23810,7 @@ "x-appwrite": { "method": "updateSessionAlerts", "group": "auth", - "weight": 112, + "weight": 111, "cookies": false, "type": "", "demo": "projects\/update-session-alerts.md", @@ -23177,7 +23889,7 @@ "x-appwrite": { "method": "updateSessionInvalidation", "group": "auth", - "weight": 148, + "weight": 147, "cookies": false, "type": "", "demo": "projects\/update-session-invalidation.md", @@ -23256,7 +23968,7 @@ "x-appwrite": { "method": "updateAuthStatus", "group": "auth", - "weight": 116, + "weight": 115, "cookies": false, "type": "", "demo": "projects\/update-auth-status.md", @@ -23356,7 +24068,7 @@ "x-appwrite": { "method": "listDevKeys", "group": "devKeys", - "weight": 427, + "weight": 434, "cookies": false, "type": "", "demo": "projects\/list-dev-keys.md", @@ -23424,7 +24136,7 @@ "x-appwrite": { "method": "createDevKey", "group": "devKeys", - "weight": 424, + "weight": 431, "cookies": false, "type": "", "demo": "projects\/create-dev-key.md", @@ -23509,7 +24221,7 @@ "x-appwrite": { "method": "getDevKey", "group": "devKeys", - "weight": 426, + "weight": 433, "cookies": false, "type": "", "demo": "projects\/get-dev-key.md", @@ -23577,7 +24289,7 @@ "x-appwrite": { "method": "updateDevKey", "group": "devKeys", - "weight": 425, + "weight": 432, "cookies": false, "type": "", "demo": "projects\/update-dev-key.md", @@ -23663,7 +24375,7 @@ "x-appwrite": { "method": "deleteDevKey", "group": "devKeys", - "weight": 428, + "weight": 435, "cookies": false, "type": "", "demo": "projects\/delete-dev-key.md", @@ -23733,10 +24445,10 @@ "x-appwrite": { "method": "createJWT", "group": "auth", - "weight": 134, + "weight": 133, "cookies": false, "type": "", - "demo": "projects\/create-j-w-t.md", + "demo": "projects\/create-jwt.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/projects\/create-jwt.md", "rate-limit": 0, "rate-time": 3600, @@ -23820,7 +24532,7 @@ "x-appwrite": { "method": "listKeys", "group": "keys", - "weight": 130, + "weight": 129, "cookies": false, "type": "", "demo": "projects\/list-keys.md", @@ -23878,7 +24590,7 @@ "x-appwrite": { "method": "createKey", "group": "keys", - "weight": 129, + "weight": 128, "cookies": false, "type": "", "demo": "projects\/create-key.md", @@ -23971,7 +24683,7 @@ "x-appwrite": { "method": "getKey", "group": "keys", - "weight": 131, + "weight": 130, "cookies": false, "type": "", "demo": "projects\/get-key.md", @@ -24039,7 +24751,7 @@ "x-appwrite": { "method": "updateKey", "group": "keys", - "weight": 132, + "weight": 131, "cookies": false, "type": "", "demo": "projects\/update-key.md", @@ -24133,7 +24845,7 @@ "x-appwrite": { "method": "deleteKey", "group": "keys", - "weight": 133, + "weight": 132, "cookies": false, "type": "", "demo": "projects\/delete-key.md", @@ -24203,10 +24915,10 @@ "x-appwrite": { "method": "updateOAuth2", "group": "auth", - "weight": 111, + "weight": 110, "cookies": false, "type": "", - "demo": "projects\/update-o-auth2.md", + "demo": "projects\/update-o-auth-2.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/projects\/update-oauth2.md", "rate-limit": 0, "rate-time": 3600, @@ -24341,7 +25053,7 @@ "x-appwrite": { "method": "listPlatforms", "group": "platforms", - "weight": 136, + "weight": 135, "cookies": false, "type": "", "demo": "projects\/list-platforms.md", @@ -24399,7 +25111,7 @@ "x-appwrite": { "method": "createPlatform", "group": "platforms", - "weight": 135, + "weight": 134, "cookies": false, "type": "", "demo": "projects\/create-platform.md", @@ -24518,7 +25230,7 @@ "x-appwrite": { "method": "getPlatform", "group": "platforms", - "weight": 137, + "weight": 136, "cookies": false, "type": "", "demo": "projects\/get-platform.md", @@ -24586,7 +25298,7 @@ "x-appwrite": { "method": "updatePlatform", "group": "platforms", - "weight": 138, + "weight": 137, "cookies": false, "type": "", "demo": "projects\/update-platform.md", @@ -24681,7 +25393,7 @@ "x-appwrite": { "method": "deletePlatform", "group": "platforms", - "weight": 139, + "weight": 138, "cookies": false, "type": "", "demo": "projects\/delete-platform.md", @@ -24751,7 +25463,7 @@ "x-appwrite": { "method": "updateServiceStatus", "group": "projects", - "weight": 107, + "weight": 106, "cookies": false, "type": "", "demo": "projects\/update-service-status.md", @@ -24853,7 +25565,7 @@ "x-appwrite": { "method": "updateServiceStatusAll", "group": "projects", - "weight": 108, + "weight": 107, "cookies": false, "type": "", "demo": "projects\/update-service-status-all.md", @@ -24932,7 +25644,7 @@ "x-appwrite": { "method": "updateSmtp", "group": "templates", - "weight": 140, + "weight": 139, "cookies": false, "type": "", "demo": "projects\/update-smtp.md", @@ -25016,7 +25728,7 @@ } ], "description": "Update the SMTP configuration for your project. Use this endpoint to configure your project's SMTP provider with your custom settings for sending transactional emails. ", - "demo": "projects\/update-s-m-t-p.md" + "demo": "projects\/update-smtp.md" } ], "auth": { @@ -25124,7 +25836,7 @@ "x-appwrite": { "method": "createSmtpTest", "group": "templates", - "weight": 141, + "weight": 140, "cookies": false, "type": "", "demo": "projects\/create-smtp-test.md", @@ -25212,7 +25924,7 @@ } ], "description": "Send a test email to verify SMTP configuration. ", - "demo": "projects\/create-s-m-t-p-test.md" + "demo": "projects\/create-smtp-test.md" } ], "auth": { @@ -25333,7 +26045,7 @@ "x-appwrite": { "method": "updateTeam", "group": "projects", - "weight": 106, + "weight": 105, "cookies": false, "type": "", "demo": "projects\/update-team.md", @@ -25412,7 +26124,7 @@ "x-appwrite": { "method": "getEmailTemplate", "group": "templates", - "weight": 143, + "weight": 142, "cookies": false, "type": "", "demo": "projects\/get-email-template.md", @@ -25636,7 +26348,7 @@ "x-appwrite": { "method": "updateEmailTemplate", "group": "templates", - "weight": 145, + "weight": 144, "cookies": false, "type": "", "demo": "projects\/update-email-template.md", @@ -25900,7 +26612,7 @@ "x-appwrite": { "method": "deleteEmailTemplate", "group": "templates", - "weight": 147, + "weight": 146, "cookies": false, "type": "", "demo": "projects\/delete-email-template.md", @@ -26126,7 +26838,7 @@ "x-appwrite": { "method": "getSmsTemplate", "group": "templates", - "weight": 142, + "weight": 141, "cookies": false, "type": "", "demo": "projects\/get-sms-template.md", @@ -26198,7 +26910,7 @@ } ], "description": "Get a custom SMS template for the specified locale and type returning it's contents.", - "demo": "projects\/get-s-m-s-template.md" + "demo": "projects\/get-sms-template.md" } ], "auth": { @@ -26409,7 +27121,7 @@ "x-appwrite": { "method": "updateSmsTemplate", "group": "templates", - "weight": 144, + "weight": 143, "cookies": false, "type": "", "demo": "projects\/update-sms-template.md", @@ -26485,7 +27197,7 @@ } ], "description": "Update a custom SMS template for the specified locale and type. Use this endpoint to modify the content of your SMS templates. ", - "demo": "projects\/update-s-m-s-template.md" + "demo": "projects\/update-sms-template.md" } ], "auth": { @@ -26715,7 +27427,7 @@ "x-appwrite": { "method": "deleteSmsTemplate", "group": "templates", - "weight": 146, + "weight": 145, "cookies": false, "type": "", "demo": "projects\/delete-sms-template.md", @@ -26787,7 +27499,7 @@ } ], "description": "Reset a custom SMS template to its default value. This endpoint removes any custom message and restores the template to its original state. ", - "demo": "projects\/delete-s-m-s-template.md" + "demo": "projects\/delete-sms-template.md" } ], "auth": { @@ -27000,7 +27712,7 @@ "x-appwrite": { "method": "listWebhooks", "group": "webhooks", - "weight": 124, + "weight": 123, "cookies": false, "type": "", "demo": "projects\/list-webhooks.md", @@ -27058,7 +27770,7 @@ "x-appwrite": { "method": "createWebhook", "group": "webhooks", - "weight": 123, + "weight": 122, "cookies": false, "type": "", "demo": "projects\/create-webhook.md", @@ -27173,7 +27885,7 @@ "x-appwrite": { "method": "getWebhook", "group": "webhooks", - "weight": 125, + "weight": 124, "cookies": false, "type": "", "demo": "projects\/get-webhook.md", @@ -27241,7 +27953,7 @@ "x-appwrite": { "method": "updateWebhook", "group": "webhooks", - "weight": 126, + "weight": 125, "cookies": false, "type": "", "demo": "projects\/update-webhook.md", @@ -27357,7 +28069,7 @@ "x-appwrite": { "method": "deleteWebhook", "group": "webhooks", - "weight": 128, + "weight": 127, "cookies": false, "type": "", "demo": "projects\/delete-webhook.md", @@ -27427,7 +28139,7 @@ "x-appwrite": { "method": "updateWebhookSignature", "group": "webhooks", - "weight": 127, + "weight": 126, "cookies": false, "type": "", "demo": "projects\/update-webhook-signature.md", @@ -27497,11 +28209,11 @@ "x-appwrite": { "method": "listRules", "group": null, - "weight": 241, + "weight": 502, "cookies": false, "type": "", "demo": "proxy\/list-rules.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/proxy\/list-rules.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/masterGet a list of all the proxy rules. You can use the query params to filter your results.", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -27571,10 +28283,10 @@ "x-appwrite": { "method": "createAPIRule", "group": null, - "weight": 489, + "weight": 497, "cookies": false, "type": "", - "demo": "proxy\/create-a-p-i-rule.md", + "demo": "proxy\/create-api-rule.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/masterCreate a new proxy rule for serving Appwrite's API on custom domain.", "rate-limit": 10, "rate-time": 60, @@ -27638,7 +28350,7 @@ "x-appwrite": { "method": "createFunctionRule", "group": null, - "weight": 491, + "weight": 499, "cookies": false, "type": "", "demo": "proxy\/create-function-rule.md", @@ -27716,7 +28428,7 @@ "x-appwrite": { "method": "createRedirectRule", "group": null, - "weight": 492, + "weight": 500, "cookies": false, "type": "", "demo": "proxy\/create-redirect-rule.md", @@ -27829,7 +28541,7 @@ "x-appwrite": { "method": "createSiteRule", "group": null, - "weight": 490, + "weight": 498, "cookies": false, "type": "", "demo": "proxy\/create-site-rule.md", @@ -27907,11 +28619,11 @@ "x-appwrite": { "method": "getRule", "group": null, - "weight": 242, + "weight": 501, "cookies": false, "type": "", "demo": "proxy\/get-rule.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/proxy\/get-rule.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/masterGet a proxy rule by its unique ID.", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -27958,11 +28670,11 @@ "x-appwrite": { "method": "deleteRule", "group": null, - "weight": 243, + "weight": 503, "cookies": false, "type": "", "demo": "proxy\/delete-rule.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/proxy\/delete-rule.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/masterDelete a proxy rule by its unique ID.", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -28018,11 +28730,11 @@ "x-appwrite": { "method": "updateRuleVerification", "group": null, - "weight": 244, + "weight": 504, "cookies": false, "type": "", "demo": "proxy\/update-rule-verification.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/proxy\/update-rule-verification.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/masterRetry getting verification process of a proxy rule. This endpoint triggers domain verification by checking DNS records (CNAME) against the configured target domain. If verification is successful, a TLS certificate will be automatically provisioned for the domain.", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -28078,7 +28790,7 @@ "x-appwrite": { "method": "list", "group": "sites", - "weight": 461, + "weight": 469, "cookies": false, "type": "", "demo": "sites\/list.md", @@ -28148,7 +28860,7 @@ "x-appwrite": { "method": "create", "group": "sites", - "weight": 459, + "weight": 467, "cookies": false, "type": "", "demo": "sites\/create.md", @@ -28397,7 +29109,7 @@ "x-appwrite": { "method": "listFrameworks", "group": "frameworks", - "weight": 464, + "weight": 472, "cookies": false, "type": "", "demo": "sites\/list-frameworks.md", @@ -28446,7 +29158,7 @@ "x-appwrite": { "method": "listSpecifications", "group": "frameworks", - "weight": 487, + "weight": 495, "cookies": false, "type": "", "demo": "sites\/list-specifications.md", @@ -28496,7 +29208,7 @@ "x-appwrite": { "method": "listTemplates", "group": "templates", - "weight": 483, + "weight": 491, "cookies": false, "type": "", "demo": "sites\/list-templates.md", @@ -28596,7 +29308,7 @@ "x-appwrite": { "method": "getTemplate", "group": "templates", - "weight": 484, + "weight": 492, "cookies": false, "type": "", "demo": "sites\/get-template.md", @@ -28656,7 +29368,7 @@ "x-appwrite": { "method": "listUsage", "group": null, - "weight": 485, + "weight": 493, "cookies": false, "type": "", "demo": "sites\/list-usage.md", @@ -28728,7 +29440,7 @@ "x-appwrite": { "method": "get", "group": "sites", - "weight": 460, + "weight": 468, "cookies": false, "type": "", "demo": "sites\/get.md", @@ -28787,7 +29499,7 @@ "x-appwrite": { "method": "update", "group": "sites", - "weight": 462, + "weight": 470, "cookies": false, "type": "", "demo": "sites\/update.md", @@ -29032,7 +29744,7 @@ "x-appwrite": { "method": "delete", "group": "sites", - "weight": 463, + "weight": 471, "cookies": false, "type": "", "demo": "sites\/delete.md", @@ -29093,7 +29805,7 @@ "x-appwrite": { "method": "updateSiteDeployment", "group": "sites", - "weight": 470, + "weight": 478, "cookies": false, "type": "", "demo": "sites\/update-site-deployment.md", @@ -29173,7 +29885,7 @@ "x-appwrite": { "method": "listDeployments", "group": "deployments", - "weight": 469, + "weight": 477, "cookies": false, "type": "", "demo": "sites\/list-deployments.md", @@ -29256,7 +29968,7 @@ "x-appwrite": { "method": "createDeployment", "group": "deployments", - "weight": 465, + "weight": 473, "cookies": false, "type": "upload", "demo": "sites\/create-deployment.md", @@ -29357,7 +30069,7 @@ "x-appwrite": { "method": "createDuplicateDeployment", "group": "deployments", - "weight": 473, + "weight": 481, "cookies": false, "type": "", "demo": "sites\/create-duplicate-deployment.md", @@ -29437,7 +30149,7 @@ "x-appwrite": { "method": "createTemplateDeployment", "group": "deployments", - "weight": 466, + "weight": 474, "cookies": false, "type": "", "demo": "sites\/create-template-deployment.md", @@ -29540,7 +30252,7 @@ "x-appwrite": { "method": "createVcsDeployment", "group": "deployments", - "weight": 467, + "weight": 475, "cookies": false, "type": "", "demo": "sites\/create-vcs-deployment.md", @@ -29638,7 +30350,7 @@ "x-appwrite": { "method": "getDeployment", "group": "deployments", - "weight": 468, + "weight": 476, "cookies": false, "type": "", "demo": "sites\/get-deployment.md", @@ -29700,7 +30412,7 @@ "x-appwrite": { "method": "deleteDeployment", "group": "deployments", - "weight": 471, + "weight": 479, "cookies": false, "type": "", "demo": "sites\/delete-deployment.md", @@ -29764,7 +30476,7 @@ "x-appwrite": { "method": "getDeploymentDownload", "group": "deployments", - "weight": 472, + "weight": 480, "cookies": false, "type": "location", "demo": "sites\/get-deployment-download.md", @@ -29854,7 +30566,7 @@ "x-appwrite": { "method": "updateDeploymentStatus", "group": "deployments", - "weight": 474, + "weight": 482, "cookies": false, "type": "", "demo": "sites\/update-deployment-status.md", @@ -29925,7 +30637,7 @@ "x-appwrite": { "method": "listLogs", "group": "logs", - "weight": 476, + "weight": 484, "cookies": false, "type": "", "demo": "sites\/list-logs.md", @@ -29996,7 +30708,7 @@ "x-appwrite": { "method": "getLog", "group": "logs", - "weight": 475, + "weight": 483, "cookies": false, "type": "", "demo": "sites\/get-log.md", @@ -30058,7 +30770,7 @@ "x-appwrite": { "method": "deleteLog", "group": "logs", - "weight": 477, + "weight": 485, "cookies": false, "type": "", "demo": "sites\/delete-log.md", @@ -30129,7 +30841,7 @@ "x-appwrite": { "method": "getUsage", "group": null, - "weight": 486, + "weight": 494, "cookies": false, "type": "", "demo": "sites\/get-usage.md", @@ -30211,7 +30923,7 @@ "x-appwrite": { "method": "listVariables", "group": "variables", - "weight": 480, + "weight": 488, "cookies": false, "type": "", "demo": "sites\/list-variables.md", @@ -30270,7 +30982,7 @@ "x-appwrite": { "method": "createVariable", "group": "variables", - "weight": 478, + "weight": 486, "cookies": false, "type": "", "demo": "sites\/create-variable.md", @@ -30361,7 +31073,7 @@ "x-appwrite": { "method": "getVariable", "group": "variables", - "weight": 479, + "weight": 487, "cookies": false, "type": "", "demo": "sites\/get-variable.md", @@ -30430,7 +31142,7 @@ "x-appwrite": { "method": "updateVariable", "group": "variables", - "weight": 481, + "weight": 489, "cookies": false, "type": "", "demo": "sites\/update-variable.md", @@ -30521,7 +31233,7 @@ "x-appwrite": { "method": "deleteVariable", "group": "variables", - "weight": 482, + "weight": 490, "cookies": false, "type": "", "demo": "sites\/delete-variable.md", @@ -30592,7 +31304,7 @@ "x-appwrite": { "method": "listBuckets", "group": "buckets", - "weight": 156, + "weight": 155, "cookies": false, "type": "", "demo": "storage\/list-buckets.md", @@ -30665,7 +31377,7 @@ "x-appwrite": { "method": "createBucket", "group": "buckets", - "weight": 155, + "weight": 154, "cookies": false, "type": "", "demo": "storage\/create-bucket.md", @@ -30792,7 +31504,7 @@ "x-appwrite": { "method": "getBucket", "group": "buckets", - "weight": 157, + "weight": 156, "cookies": false, "type": "", "demo": "storage\/get-bucket.md", @@ -30851,7 +31563,7 @@ "x-appwrite": { "method": "updateBucket", "group": "buckets", - "weight": 158, + "weight": 157, "cookies": false, "type": "", "demo": "storage\/update-bucket.md", @@ -30975,7 +31687,7 @@ "x-appwrite": { "method": "deleteBucket", "group": "buckets", - "weight": 159, + "weight": 158, "cookies": false, "type": "", "demo": "storage\/delete-bucket.md", @@ -31036,7 +31748,7 @@ "x-appwrite": { "method": "listFiles", "group": "files", - "weight": 161, + "weight": 160, "cookies": false, "type": "", "demo": "storage\/list-files.md", @@ -31122,7 +31834,7 @@ "x-appwrite": { "method": "createFile", "group": "files", - "weight": 160, + "weight": 159, "cookies": false, "type": "upload", "demo": "storage\/create-file.md", @@ -31220,7 +31932,7 @@ "x-appwrite": { "method": "getFile", "group": "files", - "weight": 162, + "weight": 161, "cookies": false, "type": "", "demo": "storage\/get-file.md", @@ -31292,7 +32004,7 @@ "x-appwrite": { "method": "updateFile", "group": "files", - "weight": 167, + "weight": 166, "cookies": false, "type": "", "demo": "storage\/update-file.md", @@ -31381,7 +32093,7 @@ "x-appwrite": { "method": "deleteFile", "group": "files", - "weight": 168, + "weight": 167, "cookies": false, "type": "", "demo": "storage\/delete-file.md", @@ -31448,7 +32160,7 @@ "x-appwrite": { "method": "getFileDownload", "group": "files", - "weight": 164, + "weight": 163, "cookies": false, "type": "location", "demo": "storage\/get-file-download.md", @@ -31526,7 +32238,7 @@ "x-appwrite": { "method": "getFilePreview", "group": "files", - "weight": 163, + "weight": 162, "cookies": false, "type": "location", "demo": "storage\/get-file-preview.md", @@ -31754,7 +32466,7 @@ "x-appwrite": { "method": "getFileView", "group": "files", - "weight": 165, + "weight": 164, "cookies": false, "type": "location", "demo": "storage\/get-file-view.md", @@ -31839,7 +32551,7 @@ "x-appwrite": { "method": "getUsage", "group": null, - "weight": 169, + "weight": 168, "cookies": false, "type": "", "demo": "storage\/get-usage.md", @@ -31911,7 +32623,7 @@ "x-appwrite": { "method": "getBucketUsage", "group": null, - "weight": 170, + "weight": 169, "cookies": false, "type": "", "demo": "storage\/get-bucket-usage.md", @@ -31993,10 +32705,10 @@ "x-appwrite": { "method": "list", "group": "tablesdb", - "weight": 375, + "weight": 376, "cookies": false, "type": "", - "demo": "tables-d-b\/list.md", + "demo": "tablesdb\/list.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/list.md", "rate-limit": 0, "rate-time": 3600, @@ -32066,10 +32778,10 @@ "x-appwrite": { "method": "create", "group": "tablesdb", - "weight": 371, + "weight": 372, "cookies": false, "type": "", - "demo": "tables-d-b\/create.md", + "demo": "tablesdb\/create.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/create.md", "rate-limit": 0, "rate-time": 3600, @@ -32145,15 +32857,18 @@ "x-appwrite": { "method": "listUsage", "group": null, - "weight": 377, + "weight": 378, "cookies": false, "type": "", - "demo": "tables-d-b\/list-usage.md", + "demo": "tablesdb\/list-usage.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/list-usage.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "tables.read", + "scope": [ + "tables.read", + "collections.read" + ], "platforms": [ "console" ], @@ -32177,7 +32892,7 @@ } ], "description": "List usage metrics and statistics for all databases in the project. You can view the total number of databases, tables, rows, and storage usage. The response includes both current totals and historical data over time. Use the optional range parameter to specify the time window for historical data: 24h (last 24 hours), 30d (last 30 days), or 90d (last 90 days). If not specified, range defaults to 30 days.", - "demo": "tables-d-b\/list-usage.md" + "demo": "tablesdb\/list-usage.md" } ], "auth": { @@ -32239,10 +32954,10 @@ "x-appwrite": { "method": "get", "group": "tablesdb", - "weight": 372, + "weight": 373, "cookies": false, "type": "", - "demo": "tables-d-b\/get.md", + "demo": "tablesdb\/get.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/get.md", "rate-limit": 0, "rate-time": 3600, @@ -32298,10 +33013,10 @@ "x-appwrite": { "method": "update", "group": "tablesdb", - "weight": 373, + "weight": 374, "cookies": false, "type": "", - "demo": "tables-d-b\/update.md", + "demo": "tablesdb\/update.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/update.md", "rate-limit": 0, "rate-time": 3600, @@ -32374,10 +33089,10 @@ "x-appwrite": { "method": "delete", "group": "tablesdb", - "weight": 374, + "weight": 375, "cookies": false, "type": "", - "demo": "tables-d-b\/delete.md", + "demo": "tablesdb\/delete.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/delete.md", "rate-limit": 0, "rate-time": 3600, @@ -32434,16 +33149,19 @@ "deprecated": false, "x-appwrite": { "method": "listTables", - "group": null, - "weight": 382, + "group": "tables", + "weight": 383, "cookies": false, "type": "", - "demo": "tables-d-b\/list-tables.md", + "demo": "tablesdb\/list-tables.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/list-tables.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "tables.read", + "scope": [ + "tables.read", + "collections.read" + ], "platforms": [ "server" ], @@ -32517,16 +33235,19 @@ "deprecated": false, "x-appwrite": { "method": "createTable", - "group": null, - "weight": 378, + "group": "tables", + "weight": 379, "cookies": false, "type": "", - "demo": "tables-d-b\/create-table.md", + "demo": "tablesdb\/create-table.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/create-table.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "tables.write", + "scope": [ + "tables.write", + "collections.write" + ], "platforms": [ "server" ], @@ -32621,16 +33342,19 @@ "deprecated": false, "x-appwrite": { "method": "getTable", - "group": null, - "weight": 379, + "group": "tables", + "weight": 380, "cookies": false, "type": "", - "demo": "tables-d-b\/get-table.md", + "demo": "tablesdb\/get-table.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/get-table.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "tables.read", + "scope": [ + "tables.read", + "collections.read" + ], "platforms": [ "server" ], @@ -32690,16 +33414,19 @@ "deprecated": false, "x-appwrite": { "method": "updateTable", - "group": null, - "weight": 380, + "group": "tables", + "weight": 381, "cookies": false, "type": "", - "demo": "tables-d-b\/update-table.md", + "demo": "tablesdb\/update-table.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/update-table.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "tables.write", + "scope": [ + "tables.write", + "collections.write" + ], "platforms": [ "server" ], @@ -32789,16 +33516,19 @@ "deprecated": false, "x-appwrite": { "method": "deleteTable", - "group": null, - "weight": 381, + "group": "tables", + "weight": 382, "cookies": false, "type": "", - "demo": "tables-d-b\/delete-table.md", + "demo": "tablesdb\/delete-table.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/delete-table.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "tables.write", + "scope": [ + "tables.write", + "collections.write" + ], "platforms": [ "server" ], @@ -32861,15 +33591,18 @@ "x-appwrite": { "method": "listColumns", "group": "columns", - "weight": 387, + "weight": 388, "cookies": false, "type": "", - "demo": "tables-d-b\/list-columns.md", + "demo": "tablesdb\/list-columns.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/list-columns.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "tables.read", + "scope": [ + "tables.read", + "collections.read" + ], "platforms": [ "server" ], @@ -32945,15 +33678,18 @@ "x-appwrite": { "method": "createBooleanColumn", "group": "columns", - "weight": 388, + "weight": 389, "cookies": false, "type": "", - "demo": "tables-d-b\/create-boolean-column.md", + "demo": "tablesdb\/create-boolean-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/create-boolean-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "tables.write", + "scope": [ + "tables.write", + "collections.write" + ], "platforms": [ "server" ], @@ -33051,15 +33787,18 @@ "x-appwrite": { "method": "updateBooleanColumn", "group": "columns", - "weight": 389, + "weight": 390, "cookies": false, "type": "", - "demo": "tables-d-b\/update-boolean-column.md", + "demo": "tablesdb\/update-boolean-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/update-boolean-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "tables.write", + "scope": [ + "tables.write", + "collections.write" + ], "platforms": [ "server" ], @@ -33162,15 +33901,18 @@ "x-appwrite": { "method": "createDatetimeColumn", "group": "columns", - "weight": 390, + "weight": 391, "cookies": false, "type": "", - "demo": "tables-d-b\/create-datetime-column.md", + "demo": "tablesdb\/create-datetime-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/create-datetime-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "tables.write", + "scope": [ + "tables.write", + "collections.write" + ], "platforms": [ "server" ], @@ -33268,15 +34010,18 @@ "x-appwrite": { "method": "updateDatetimeColumn", "group": "columns", - "weight": 391, + "weight": 392, "cookies": false, "type": "", - "demo": "tables-d-b\/update-datetime-column.md", + "demo": "tablesdb\/update-datetime-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/update-datetime-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "tables.write", + "scope": [ + "tables.write", + "collections.write" + ], "platforms": [ "server" ], @@ -33379,15 +34124,18 @@ "x-appwrite": { "method": "createEmailColumn", "group": "columns", - "weight": 392, + "weight": 393, "cookies": false, "type": "", - "demo": "tables-d-b\/create-email-column.md", + "demo": "tablesdb\/create-email-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/create-email-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "tables.write", + "scope": [ + "tables.write", + "collections.write" + ], "platforms": [ "server" ], @@ -33485,15 +34233,18 @@ "x-appwrite": { "method": "updateEmailColumn", "group": "columns", - "weight": 393, + "weight": 394, "cookies": false, "type": "", - "demo": "tables-d-b\/update-email-column.md", + "demo": "tablesdb\/update-email-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/update-email-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "tables.write", + "scope": [ + "tables.write", + "collections.write" + ], "platforms": [ "server" ], @@ -33596,15 +34347,18 @@ "x-appwrite": { "method": "createEnumColumn", "group": "columns", - "weight": 394, + "weight": 395, "cookies": false, "type": "", - "demo": "tables-d-b\/create-enum-column.md", + "demo": "tablesdb\/create-enum-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/create-enum-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "tables.write", + "scope": [ + "tables.write", + "collections.write" + ], "platforms": [ "server" ], @@ -33711,15 +34465,18 @@ "x-appwrite": { "method": "updateEnumColumn", "group": "columns", - "weight": 395, + "weight": 396, "cookies": false, "type": "", - "demo": "tables-d-b\/update-enum-column.md", + "demo": "tablesdb\/update-enum-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/update-enum-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "tables.write", + "scope": [ + "tables.write", + "collections.write" + ], "platforms": [ "server" ], @@ -33831,15 +34588,18 @@ "x-appwrite": { "method": "createFloatColumn", "group": "columns", - "weight": 396, + "weight": 397, "cookies": false, "type": "", - "demo": "tables-d-b\/create-float-column.md", + "demo": "tablesdb\/create-float-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/create-float-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "tables.write", + "scope": [ + "tables.write", + "collections.write" + ], "platforms": [ "server" ], @@ -33947,15 +34707,18 @@ "x-appwrite": { "method": "updateFloatColumn", "group": "columns", - "weight": 397, + "weight": 398, "cookies": false, "type": "", - "demo": "tables-d-b\/update-float-column.md", + "demo": "tablesdb\/update-float-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/update-float-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "tables.write", + "scope": [ + "tables.write", + "collections.write" + ], "platforms": [ "server" ], @@ -34068,15 +34831,18 @@ "x-appwrite": { "method": "createIntegerColumn", "group": "columns", - "weight": 398, + "weight": 399, "cookies": false, "type": "", - "demo": "tables-d-b\/create-integer-column.md", + "demo": "tablesdb\/create-integer-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/create-integer-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "tables.write", + "scope": [ + "tables.write", + "collections.write" + ], "platforms": [ "server" ], @@ -34184,15 +34950,18 @@ "x-appwrite": { "method": "updateIntegerColumn", "group": "columns", - "weight": 399, + "weight": 400, "cookies": false, "type": "", - "demo": "tables-d-b\/update-integer-column.md", + "demo": "tablesdb\/update-integer-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/update-integer-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "tables.write", + "scope": [ + "tables.write", + "collections.write" + ], "platforms": [ "server" ], @@ -34305,15 +35074,18 @@ "x-appwrite": { "method": "createIpColumn", "group": "columns", - "weight": 400, + "weight": 401, "cookies": false, "type": "", - "demo": "tables-d-b\/create-ip-column.md", + "demo": "tablesdb\/create-ip-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/create-ip-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "tables.write", + "scope": [ + "tables.write", + "collections.write" + ], "platforms": [ "server" ], @@ -34411,15 +35183,18 @@ "x-appwrite": { "method": "updateIpColumn", "group": "columns", - "weight": 401, + "weight": 402, "cookies": false, "type": "", - "demo": "tables-d-b\/update-ip-column.md", + "demo": "tablesdb\/update-ip-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/update-ip-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "tables.write", + "scope": [ + "tables.write", + "collections.write" + ], "platforms": [ "server" ], @@ -34498,6 +35273,702 @@ } } }, + "\/tablesdb\/{databaseId}\/tables\/{tableId}\/columns\/line": { + "post": { + "summary": "Create line column", + "operationId": "tablesDBCreateLineColumn", + "tags": [ + "tablesDB" + ], + "description": "Create a geometric line column.", + "responses": { + "202": { + "description": "ColumnLine", + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/columnLine" + } + } + } + } + }, + "deprecated": false, + "x-appwrite": { + "method": "createLineColumn", + "group": "columns", + "weight": 403, + "cookies": false, + "type": "", + "demo": "tablesdb\/create-line-column.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/create-line-column.md", + "rate-limit": 0, + "rate-time": 3600, + "rate-key": "url:{url},ip:{ip}", + "scope": [ + "tables.write", + "collections.write" + ], + "platforms": [ + "server" + ], + "packaging": false, + "auth": { + "Project": [] + } + }, + "security": [ + { + "Project": [], + "Key": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + }, + { + "name": "tableId", + "description": "Table ID. You can create a new table using the TablesDB service [server integration](https:\/\/appwrite.io\/docs\/server\/tablesdb#tablesDBCreate).", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + } + ], + "requestBody": { + "content": { + "application\/json": { + "schema": { + "type": "object", + "properties": { + "key": { + "type": "string", + "description": "Column Key.", + "x-example": null + }, + "required": { + "type": "boolean", + "description": "Is column required?", + "x-example": false + }, + "default": { + "type": "array", + "description": "Default value for column when not provided, two-dimensional array of coordinate pairs, [[longitude, latitude], [longitude, latitude], \u2026], listing the vertices of the line in order. Cannot be set when column is required.", + "x-example": "[[1, 2], [3, 4], [5, 6]]", + "items": { + "oneOf": [ + { + "type": "array" + } + ] + }, + "x-nullable": true + } + }, + "required": [ + "key", + "required" + ] + } + } + } + } + } + }, + "\/tablesdb\/{databaseId}\/tables\/{tableId}\/columns\/line\/{key}": { + "patch": { + "summary": "Update line column", + "operationId": "tablesDBUpdateLineColumn", + "tags": [ + "tablesDB" + ], + "description": "Update a line column. Changing the `default` value will not update already existing rows.", + "responses": { + "200": { + "description": "ColumnLine", + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/columnLine" + } + } + } + } + }, + "deprecated": false, + "x-appwrite": { + "method": "updateLineColumn", + "group": "columns", + "weight": 404, + "cookies": false, + "type": "", + "demo": "tablesdb\/update-line-column.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/update-line-column.md", + "rate-limit": 0, + "rate-time": 3600, + "rate-key": "url:{url},ip:{ip}", + "scope": [ + "tables.write", + "collections.write" + ], + "platforms": [ + "server" + ], + "packaging": false, + "auth": { + "Project": [] + } + }, + "security": [ + { + "Project": [], + "Key": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + }, + { + "name": "tableId", + "description": "Table ID. You can create a new table using the TablesDB service [server integration](https:\/\/appwrite.io\/docs\/server\/tablesdb#tablesDBCreate).", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + }, + { + "name": "key", + "description": "Column Key.", + "required": true, + "schema": { + "type": "string" + }, + "in": "path" + } + ], + "requestBody": { + "content": { + "application\/json": { + "schema": { + "type": "object", + "properties": { + "required": { + "type": "boolean", + "description": "Is column required?", + "x-example": false + }, + "default": { + "type": "array", + "description": "Default value for column when not provided, two-dimensional array of coordinate pairs, [[longitude, latitude], [longitude, latitude], \u2026], listing the vertices of the line in order. Cannot be set when column is required.", + "x-example": "[[1, 2], [3, 4], [5, 6]]", + "items": { + "oneOf": [ + { + "type": "array" + } + ] + }, + "x-nullable": true + }, + "newKey": { + "type": "string", + "description": "New Column Key.", + "x-example": null + } + }, + "required": [ + "required" + ] + } + } + } + } + } + }, + "\/tablesdb\/{databaseId}\/tables\/{tableId}\/columns\/point": { + "post": { + "summary": "Create point column", + "operationId": "tablesDBCreatePointColumn", + "tags": [ + "tablesDB" + ], + "description": "Create a geometric point column.", + "responses": { + "202": { + "description": "ColumnPoint", + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/columnPoint" + } + } + } + } + }, + "deprecated": false, + "x-appwrite": { + "method": "createPointColumn", + "group": "columns", + "weight": 405, + "cookies": false, + "type": "", + "demo": "tablesdb\/create-point-column.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/create-point-column.md", + "rate-limit": 0, + "rate-time": 3600, + "rate-key": "url:{url},ip:{ip}", + "scope": [ + "tables.write", + "collections.write" + ], + "platforms": [ + "server" + ], + "packaging": false, + "auth": { + "Project": [] + } + }, + "security": [ + { + "Project": [], + "Key": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + }, + { + "name": "tableId", + "description": "Table ID. You can create a new table using the TablesDB service [server integration](https:\/\/appwrite.io\/docs\/server\/tablesdb#tablesDBCreate).", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + } + ], + "requestBody": { + "content": { + "application\/json": { + "schema": { + "type": "object", + "properties": { + "key": { + "type": "string", + "description": "Column Key.", + "x-example": null + }, + "required": { + "type": "boolean", + "description": "Is column required?", + "x-example": false + }, + "default": { + "type": "array", + "description": "Default value for column when not provided, array of two numbers [longitude, latitude], representing a single coordinate. Cannot be set when column is required.", + "x-example": "[1, 2]", + "items": { + "oneOf": [ + { + "type": "array" + } + ] + }, + "x-nullable": true + } + }, + "required": [ + "key", + "required" + ] + } + } + } + } + } + }, + "\/tablesdb\/{databaseId}\/tables\/{tableId}\/columns\/point\/{key}": { + "patch": { + "summary": "Update point column", + "operationId": "tablesDBUpdatePointColumn", + "tags": [ + "tablesDB" + ], + "description": "Update a point column. Changing the `default` value will not update already existing rows.", + "responses": { + "200": { + "description": "ColumnPoint", + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/columnPoint" + } + } + } + } + }, + "deprecated": false, + "x-appwrite": { + "method": "updatePointColumn", + "group": "columns", + "weight": 406, + "cookies": false, + "type": "", + "demo": "tablesdb\/update-point-column.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/update-point-column.md", + "rate-limit": 0, + "rate-time": 3600, + "rate-key": "url:{url},ip:{ip}", + "scope": [ + "tables.write", + "collections.write" + ], + "platforms": [ + "server" + ], + "packaging": false, + "auth": { + "Project": [] + } + }, + "security": [ + { + "Project": [], + "Key": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + }, + { + "name": "tableId", + "description": "Table ID. You can create a new table using the TablesDB service [server integration](https:\/\/appwrite.io\/docs\/server\/tablesdb#tablesDBCreate).", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + }, + { + "name": "key", + "description": "Column Key.", + "required": true, + "schema": { + "type": "string" + }, + "in": "path" + } + ], + "requestBody": { + "content": { + "application\/json": { + "schema": { + "type": "object", + "properties": { + "required": { + "type": "boolean", + "description": "Is column required?", + "x-example": false + }, + "default": { + "type": "array", + "description": "Default value for column when not provided, array of two numbers [longitude, latitude], representing a single coordinate. Cannot be set when column is required.", + "x-example": "[1, 2]", + "items": { + "oneOf": [ + { + "type": "array" + } + ] + }, + "x-nullable": true + }, + "newKey": { + "type": "string", + "description": "New Column Key.", + "x-example": null + } + }, + "required": [ + "required" + ] + } + } + } + } + } + }, + "\/tablesdb\/{databaseId}\/tables\/{tableId}\/columns\/polygon": { + "post": { + "summary": "Create polygon column", + "operationId": "tablesDBCreatePolygonColumn", + "tags": [ + "tablesDB" + ], + "description": "Create a geometric polygon column.", + "responses": { + "202": { + "description": "ColumnPolygon", + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/columnPolygon" + } + } + } + } + }, + "deprecated": false, + "x-appwrite": { + "method": "createPolygonColumn", + "group": "columns", + "weight": 407, + "cookies": false, + "type": "", + "demo": "tablesdb\/create-polygon-column.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/create-polygon-column.md", + "rate-limit": 0, + "rate-time": 3600, + "rate-key": "url:{url},ip:{ip}", + "scope": [ + "tables.write", + "collections.write" + ], + "platforms": [ + "server" + ], + "packaging": false, + "auth": { + "Project": [] + } + }, + "security": [ + { + "Project": [], + "Key": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + }, + { + "name": "tableId", + "description": "Table ID. You can create a new table using the TablesDB service [server integration](https:\/\/appwrite.io\/docs\/server\/tablesdb#tablesDBCreate).", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + } + ], + "requestBody": { + "content": { + "application\/json": { + "schema": { + "type": "object", + "properties": { + "key": { + "type": "string", + "description": "Column Key.", + "x-example": null + }, + "required": { + "type": "boolean", + "description": "Is column required?", + "x-example": false + }, + "default": { + "type": "array", + "description": "Default value for column when not provided, three-dimensional array where the outer array holds one or more linear rings, [[[longitude, latitude], \u2026], \u2026], the first ring is the exterior boundary, any additional rings are interior holes, and each ring must start and end with the same coordinate pair. Cannot be set when column is required.", + "x-example": "[[[1, 2], [3, 4], [5, 6], [1, 2]]]", + "items": { + "oneOf": [ + { + "type": "array" + } + ] + }, + "x-nullable": true + } + }, + "required": [ + "key", + "required" + ] + } + } + } + } + } + }, + "\/tablesdb\/{databaseId}\/tables\/{tableId}\/columns\/polygon\/{key}": { + "patch": { + "summary": "Update polygon column", + "operationId": "tablesDBUpdatePolygonColumn", + "tags": [ + "tablesDB" + ], + "description": "Update a polygon column. Changing the `default` value will not update already existing rows.", + "responses": { + "200": { + "description": "ColumnPolygon", + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/columnPolygon" + } + } + } + } + }, + "deprecated": false, + "x-appwrite": { + "method": "updatePolygonColumn", + "group": "columns", + "weight": 408, + "cookies": false, + "type": "", + "demo": "tablesdb\/update-polygon-column.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/update-polygon-column.md", + "rate-limit": 0, + "rate-time": 3600, + "rate-key": "url:{url},ip:{ip}", + "scope": [ + "tables.write", + "collections.write" + ], + "platforms": [ + "server" + ], + "packaging": false, + "auth": { + "Project": [] + } + }, + "security": [ + { + "Project": [], + "Key": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + }, + { + "name": "tableId", + "description": "Table ID. You can create a new table using the TablesDB service [server integration](https:\/\/appwrite.io\/docs\/server\/tablesdb#tablesDBCreate).", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + }, + { + "name": "key", + "description": "Column Key.", + "required": true, + "schema": { + "type": "string" + }, + "in": "path" + } + ], + "requestBody": { + "content": { + "application\/json": { + "schema": { + "type": "object", + "properties": { + "required": { + "type": "boolean", + "description": "Is column required?", + "x-example": false + }, + "default": { + "type": "array", + "description": "Default value for column when not provided, three-dimensional array where the outer array holds one or more linear rings, [[[longitude, latitude], \u2026], \u2026], the first ring is the exterior boundary, any additional rings are interior holes, and each ring must start and end with the same coordinate pair. Cannot be set when column is required.", + "x-example": "[[[1, 2], [3, 4], [5, 6], [1, 2]]]", + "items": { + "oneOf": [ + { + "type": "array" + } + ] + }, + "x-nullable": true + }, + "newKey": { + "type": "string", + "description": "New Column Key.", + "x-example": null + } + }, + "required": [ + "required" + ] + } + } + } + } + } + }, "\/tablesdb\/{databaseId}\/tables\/{tableId}\/columns\/relationship": { "post": { "summary": "Create relationship column", @@ -34522,15 +35993,18 @@ "x-appwrite": { "method": "createRelationshipColumn", "group": "columns", - "weight": 402, + "weight": 409, "cookies": false, "type": "", - "demo": "tables-d-b\/create-relationship-column.md", + "demo": "tablesdb\/create-relationship-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/create-relationship-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "tables.write", + "scope": [ + "tables.write", + "collections.write" + ], "platforms": [ "server" ], @@ -34653,15 +36127,18 @@ "x-appwrite": { "method": "createStringColumn", "group": "columns", - "weight": 404, + "weight": 411, "cookies": false, "type": "", - "demo": "tables-d-b\/create-string-column.md", + "demo": "tablesdb\/create-string-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/create-string-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "tables.write", + "scope": [ + "tables.write", + "collections.write" + ], "platforms": [ "server" ], @@ -34770,15 +36247,18 @@ "x-appwrite": { "method": "updateStringColumn", "group": "columns", - "weight": 405, + "weight": 412, "cookies": false, "type": "", - "demo": "tables-d-b\/update-string-column.md", + "demo": "tablesdb\/update-string-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/update-string-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "tables.write", + "scope": [ + "tables.write", + "collections.write" + ], "platforms": [ "server" ], @@ -34886,15 +36366,18 @@ "x-appwrite": { "method": "createUrlColumn", "group": "columns", - "weight": 406, + "weight": 413, "cookies": false, "type": "", - "demo": "tables-d-b\/create-url-column.md", + "demo": "tablesdb\/create-url-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/create-url-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "tables.write", + "scope": [ + "tables.write", + "collections.write" + ], "platforms": [ "server" ], @@ -34992,15 +36475,18 @@ "x-appwrite": { "method": "updateUrlColumn", "group": "columns", - "weight": 407, + "weight": 414, "cookies": false, "type": "", - "demo": "tables-d-b\/update-url-column.md", + "demo": "tablesdb\/update-url-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/update-url-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "tables.write", + "scope": [ + "tables.write", + "collections.write" + ], "platforms": [ "server" ], @@ -35134,15 +36620,18 @@ "x-appwrite": { "method": "getColumn", "group": "columns", - "weight": 385, + "weight": 386, "cookies": false, "type": "", - "demo": "tables-d-b\/get-column.md", + "demo": "tablesdb\/get-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/get-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "tables.read", + "scope": [ + "tables.read", + "collections.read" + ], "platforms": [ "server" ], @@ -35205,15 +36694,18 @@ "x-appwrite": { "method": "deleteColumn", "group": "columns", - "weight": 386, + "weight": 387, "cookies": false, "type": "", - "demo": "tables-d-b\/delete-column.md", + "demo": "tablesdb\/delete-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/delete-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "tables.write", + "scope": [ + "tables.write", + "collections.write" + ], "platforms": [ "server" ], @@ -35285,15 +36777,18 @@ "x-appwrite": { "method": "updateRelationshipColumn", "group": "columns", - "weight": 403, + "weight": 410, "cookies": false, "type": "", - "demo": "tables-d-b\/update-relationship-column.md", + "demo": "tablesdb\/update-relationship-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/update-relationship-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "tables.write", + "scope": [ + "tables.write", + "collections.write" + ], "platforms": [ "server" ], @@ -35393,15 +36888,18 @@ "x-appwrite": { "method": "listIndexes", "group": "indexes", - "weight": 411, + "weight": 418, "cookies": false, "type": "", - "demo": "tables-d-b\/list-indexes.md", + "demo": "tablesdb\/list-indexes.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/list-indexes.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "tables.read", + "scope": [ + "tables.read", + "collections.read" + ], "platforms": [ "server" ], @@ -35475,15 +36973,18 @@ "x-appwrite": { "method": "createIndex", "group": "indexes", - "weight": 408, + "weight": 415, "cookies": false, "type": "", - "demo": "tables-d-b\/create-index.md", + "demo": "tablesdb\/create-index.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/create-index.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "tables.write", + "scope": [ + "tables.write", + "collections.write" + ], "platforms": [ "server" ], @@ -35538,7 +37039,8 @@ "enum": [ "key", "fulltext", - "unique" + "unique", + "spatial" ], "x-enum-name": "IndexType", "x-enum-keys": [] @@ -35603,15 +37105,18 @@ "x-appwrite": { "method": "getIndex", "group": "indexes", - "weight": 409, + "weight": 416, "cookies": false, "type": "", - "demo": "tables-d-b\/get-index.md", + "demo": "tablesdb\/get-index.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/get-index.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "tables.read", + "scope": [ + "tables.read", + "collections.read" + ], "platforms": [ "server" ], @@ -35674,15 +37179,18 @@ "x-appwrite": { "method": "deleteIndex", "group": "indexes", - "weight": 410, + "weight": 417, "cookies": false, "type": "", - "demo": "tables-d-b\/delete-index.md", + "demo": "tablesdb\/delete-index.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/delete-index.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "tables.write", + "scope": [ + "tables.write", + "collections.write" + ], "platforms": [ "server" ], @@ -35754,15 +37262,18 @@ "x-appwrite": { "method": "listTableLogs", "group": "tables", - "weight": 383, + "weight": 384, "cookies": false, "type": "", - "demo": "tables-d-b\/list-table-logs.md", + "demo": "tablesdb\/list-table-logs.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/get-table-logs.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "tables.read", + "scope": [ + "tables.read", + "collections.read" + ], "platforms": [ "console" ], @@ -35837,15 +37348,18 @@ "x-appwrite": { "method": "listRows", "group": "rows", - "weight": 420, + "weight": 427, "cookies": false, "type": "", - "demo": "tables-d-b\/list-rows.md", + "demo": "tablesdb\/list-rows.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/list-rows.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "rows.read", + "scope": [ + "rows.read", + "documents.read" + ], "platforms": [ "client", "server", @@ -35922,15 +37436,18 @@ "x-appwrite": { "method": "createRow", "group": "rows", - "weight": 412, + "weight": 419, "cookies": false, "type": "", - "demo": "tables-d-b\/create-row.md", + "demo": "tablesdb\/create-row.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/create-row.md", "rate-limit": 120, "rate-time": 60, "rate-key": "ip:{ip},method:{method},url:{url},userId:{userId}", - "scope": "rows.write", + "scope": [ + "rows.write", + "documents.write" + ], "platforms": [ "client", "server", @@ -35965,7 +37482,7 @@ } ], "description": "Create a new Row. Before using this route, you should create a new table resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/tablesdb#tablesDBCreateTable) API or directly from your database console.", - "demo": "tables-d-b\/create-row.md" + "demo": "tablesdb\/create-row.md" }, { "name": "createRows", @@ -35991,7 +37508,7 @@ } ], "description": "Create new Rows. Before using this route, you should create a new table resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/tablesdb#tablesDBCreateTable) API or directly from your database console.", - "demo": "tables-d-b\/create-rows.md" + "demo": "tablesdb\/create-rows.md" } ], "auth": { @@ -36041,7 +37558,7 @@ "data": { "type": "object", "description": "Row data as JSON object.", - "x-example": "{}" + "x-example": "{\"username\":\"walter.obrien\",\"email\":\"walter.obrien@example.com\",\"fullName\":\"Walter O'Brien\",\"age\":30,\"isAdmin\":false}" }, "permissions": { "type": "array", @@ -36053,7 +37570,7 @@ }, "rows": { "type": "array", - "description": "Array of documents data as JSON objects.", + "description": "Array of rows data as JSON objects.", "x-example": null, "items": { "type": "object" @@ -36066,7 +37583,7 @@ } }, "put": { - "summary": "Create or update rows", + "summary": "Upsert rows", "operationId": "tablesDBUpsertRows", "tags": [ "tablesDB" @@ -36088,15 +37605,18 @@ "x-appwrite": { "method": "upsertRows", "group": "rows", - "weight": 417, + "weight": 424, "cookies": false, "type": "", - "demo": "tables-d-b\/upsert-rows.md", + "demo": "tablesdb\/upsert-rows.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/upsert-rows.md", "rate-limit": 120, "rate-time": 60, "rate-key": "ip:{ip},method:{method},url:{url},userId:{userId}", - "scope": "rows.write", + "scope": [ + "rows.write", + "documents.write" + ], "platforms": [ "console", "server" @@ -36127,7 +37647,7 @@ } ], "description": "Create or update Rows. Before using this route, you should create a new table resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/tablesdb#tablesDBCreateTable) API or directly from your database console.\n", - "demo": "tables-d-b\/upsert-rows.md" + "demo": "tablesdb\/upsert-rows.md" } ], "auth": { @@ -36208,15 +37728,18 @@ "x-appwrite": { "method": "updateRows", "group": "rows", - "weight": 415, + "weight": 422, "cookies": false, "type": "", - "demo": "tables-d-b\/update-rows.md", + "demo": "tablesdb\/update-rows.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/update-rows.md", "rate-limit": 120, "rate-time": 60, "rate-key": "ip:{ip},method:{method},url:{url},userId:{userId}", - "scope": "rows.write", + "scope": [ + "rows.write", + "documents.write" + ], "platforms": [ "console", "server" @@ -36302,15 +37825,18 @@ "x-appwrite": { "method": "deleteRows", "group": "rows", - "weight": 419, + "weight": 426, "cookies": false, "type": "", - "demo": "tables-d-b\/delete-rows.md", + "demo": "tablesdb\/delete-rows.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/delete-rows.md", "rate-limit": 60, "rate-time": 60, "rate-key": "ip:{ip},method:{method},url:{url},userId:{userId}", - "scope": "rows.write", + "scope": [ + "rows.write", + "documents.write" + ], "platforms": [ "console", "server" @@ -36393,15 +37919,18 @@ "x-appwrite": { "method": "getRow", "group": "rows", - "weight": 413, + "weight": 420, "cookies": false, "type": "", - "demo": "tables-d-b\/get-row.md", + "demo": "tablesdb\/get-row.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/get-row.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "rows.read", + "scope": [ + "rows.read", + "documents.read" + ], "platforms": [ "client", "server", @@ -36466,7 +37995,7 @@ ] }, "put": { - "summary": "Create or update a row", + "summary": "Upsert a row", "operationId": "tablesDBUpsertRow", "tags": [ "tablesDB" @@ -36488,15 +38017,18 @@ "x-appwrite": { "method": "upsertRow", "group": "rows", - "weight": 416, + "weight": 423, "cookies": false, "type": "", - "demo": "tables-d-b\/upsert-row.md", + "demo": "tablesdb\/upsert-row.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/upsert-row.md", "rate-limit": 120, "rate-time": 60, "rate-key": "ip:{ip},method:{method},url:{url},userId:{userId}", - "scope": "rows.write", + "scope": [ + "rows.write", + "documents.write" + ], "platforms": [ "client", "server", @@ -36530,7 +38062,7 @@ } ], "description": "Create or update a Row. Before using this route, you should create a new table resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/tablesdb#tablesDBCreateTable) API or directly from your database console.", - "demo": "tables-d-b\/upsert-row.md" + "demo": "tablesdb\/upsert-row.md" } ], "auth": { @@ -36624,15 +38156,18 @@ "x-appwrite": { "method": "updateRow", "group": "rows", - "weight": 414, + "weight": 421, "cookies": false, "type": "", - "demo": "tables-d-b\/update-row.md", + "demo": "tablesdb\/update-row.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/update-row.md", "rate-limit": 120, "rate-time": 60, "rate-key": "ip:{ip},method:{method},url:{url},userId:{userId}", - "scope": "rows.write", + "scope": [ + "rows.write", + "documents.write" + ], "platforms": [ "client", "server", @@ -36723,15 +38258,18 @@ "x-appwrite": { "method": "deleteRow", "group": "rows", - "weight": 418, + "weight": 425, "cookies": false, "type": "", - "demo": "tables-d-b\/delete-row.md", + "demo": "tablesdb\/delete-row.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/delete-row.md", "rate-limit": 60, "rate-time": 60, "rate-key": "ip:{ip},method:{method},url:{url},userId:{userId}", - "scope": "rows.write", + "scope": [ + "rows.write", + "documents.write" + ], "platforms": [ "client", "server", @@ -36807,15 +38345,18 @@ "x-appwrite": { "method": "listRowLogs", "group": "logs", - "weight": 421, + "weight": 428, "cookies": false, "type": "", - "demo": "tables-d-b\/list-row-logs.md", + "demo": "tablesdb\/list-row-logs.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/get-row-logs.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "rows.read", + "scope": [ + "rows.read", + "documents.read" + ], "platforms": [ "console" ], @@ -36900,15 +38441,18 @@ "x-appwrite": { "method": "decrementRowColumn", "group": "rows", - "weight": 423, + "weight": 430, "cookies": false, "type": "", - "demo": "tables-d-b\/decrement-row-column.md", + "demo": "tablesdb\/decrement-row-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/decrement-row-column.md", "rate-limit": 120, "rate-time": 60, "rate-key": "ip:{ip},method:{method},url:{url},userId:{userId}", - "scope": "rows.write", + "scope": [ + "rows.write", + "documents.write" + ], "platforms": [ "client", "server", @@ -37015,15 +38559,18 @@ "x-appwrite": { "method": "incrementRowColumn", "group": "rows", - "weight": 422, + "weight": 429, "cookies": false, "type": "", - "demo": "tables-d-b\/increment-row-column.md", + "demo": "tablesdb\/increment-row-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/increment-row-column.md", "rate-limit": 120, "rate-time": 60, "rate-key": "ip:{ip},method:{method},url:{url},userId:{userId}", - "scope": "rows.write", + "scope": [ + "rows.write", + "documents.write" + ], "platforms": [ "client", "server", @@ -37130,15 +38677,18 @@ "x-appwrite": { "method": "getTableUsage", "group": null, - "weight": 384, + "weight": 385, "cookies": false, "type": "", - "demo": "tables-d-b\/get-table-usage.md", + "demo": "tablesdb\/get-table-usage.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/get-table-usage.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "tables.read", + "scope": [ + "tables.read", + "collections.read" + ], "platforms": [ "console" ], @@ -37222,15 +38772,18 @@ "x-appwrite": { "method": "getUsage", "group": null, - "weight": 376, + "weight": 377, "cookies": false, "type": "", - "demo": "tables-d-b\/get-usage.md", + "demo": "tablesdb\/get-usage.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/get-database-usage.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "tables.read", + "scope": [ + "tables.read", + "collections.read" + ], "platforms": [ "console" ], @@ -37257,7 +38810,7 @@ } ], "description": "Get usage metrics and statistics for a database. You can view the total number of tables, rows, and storage usage. The response includes both current totals and historical data over time. Use the optional range parameter to specify the time window for historical data: 24h (last 24 hours), 30d (last 30 days), or 90d (last 90 days). If not specified, range defaults to 30 days.", - "demo": "tables-d-b\/get-usage.md" + "demo": "tablesdb\/get-usage.md" } ], "auth": { @@ -37329,7 +38882,7 @@ "x-appwrite": { "method": "list", "group": "teams", - "weight": 172, + "weight": 171, "cookies": false, "type": "", "demo": "teams\/list.md", @@ -37405,7 +38958,7 @@ "x-appwrite": { "method": "create", "group": "teams", - "weight": 171, + "weight": 170, "cookies": false, "type": "", "demo": "teams\/create.md", @@ -37490,7 +39043,7 @@ "x-appwrite": { "method": "get", "group": "teams", - "weight": 173, + "weight": 172, "cookies": false, "type": "", "demo": "teams\/get.md", @@ -37552,7 +39105,7 @@ "x-appwrite": { "method": "updateName", "group": "teams", - "weight": 175, + "weight": 174, "cookies": false, "type": "", "demo": "teams\/update-name.md", @@ -37626,7 +39179,7 @@ "x-appwrite": { "method": "delete", "group": "teams", - "weight": 177, + "weight": 176, "cookies": false, "type": "", "demo": "teams\/delete.md", @@ -37690,7 +39243,7 @@ "x-appwrite": { "method": "listLogs", "group": "logs", - "weight": 184, + "weight": 183, "cookies": false, "type": "", "demo": "teams\/list-logs.md", @@ -37763,7 +39316,7 @@ "x-appwrite": { "method": "listMemberships", "group": "memberships", - "weight": 179, + "weight": 178, "cookies": false, "type": "", "demo": "teams\/list-memberships.md", @@ -37849,7 +39402,7 @@ "x-appwrite": { "method": "createMembership", "group": "memberships", - "weight": 178, + "weight": 177, "cookies": false, "type": "", "demo": "teams\/create-membership.md", @@ -37960,7 +39513,7 @@ "x-appwrite": { "method": "getMembership", "group": "memberships", - "weight": 180, + "weight": 179, "cookies": false, "type": "", "demo": "teams\/get-membership.md", @@ -38032,7 +39585,7 @@ "x-appwrite": { "method": "updateMembership", "group": "memberships", - "weight": 181, + "weight": 180, "cookies": false, "type": "", "demo": "teams\/update-membership.md", @@ -38119,7 +39672,7 @@ "x-appwrite": { "method": "deleteMembership", "group": "memberships", - "weight": 183, + "weight": 182, "cookies": false, "type": "", "demo": "teams\/delete-membership.md", @@ -38193,7 +39746,7 @@ "x-appwrite": { "method": "updateMembershipStatus", "group": "memberships", - "weight": 182, + "weight": 181, "cookies": false, "type": "", "demo": "teams\/update-membership-status.md", @@ -38290,7 +39843,7 @@ "x-appwrite": { "method": "getPrefs", "group": "teams", - "weight": 174, + "weight": 173, "cookies": false, "type": "", "demo": "teams\/get-prefs.md", @@ -38350,7 +39903,7 @@ "x-appwrite": { "method": "updatePrefs", "group": "teams", - "weight": 176, + "weight": 175, "cookies": false, "type": "", "demo": "teams\/update-prefs.md", @@ -38431,7 +39984,7 @@ "x-appwrite": { "method": "list", "group": "files", - "weight": 495, + "weight": 507, "cookies": false, "type": "", "demo": "tokens\/list.md", @@ -38511,7 +40064,7 @@ "x-appwrite": { "method": "createFileToken", "group": "files", - "weight": 493, + "weight": 505, "cookies": false, "type": "", "demo": "tokens\/create-file-token.md", @@ -38600,7 +40153,7 @@ "x-appwrite": { "method": "get", "group": "tokens", - "weight": 494, + "weight": 506, "cookies": false, "type": "", "demo": "tokens\/get.md", @@ -38660,7 +40213,7 @@ "x-appwrite": { "method": "update", "group": "tokens", - "weight": 496, + "weight": 508, "cookies": false, "type": "", "demo": "tokens\/update.md", @@ -38730,7 +40283,7 @@ "x-appwrite": { "method": "delete", "group": "tokens", - "weight": 497, + "weight": 509, "cookies": false, "type": "", "demo": "tokens\/delete.md", @@ -38792,7 +40345,7 @@ "x-appwrite": { "method": "list", "group": "users", - "weight": 194, + "weight": 193, "cookies": false, "type": "", "demo": "users\/list.md", @@ -38865,7 +40418,7 @@ "x-appwrite": { "method": "create", "group": "users", - "weight": 185, + "weight": 184, "cookies": false, "type": "", "demo": "users\/create.md", @@ -38953,10 +40506,10 @@ "x-appwrite": { "method": "createArgon2User", "group": "users", - "weight": 188, + "weight": 187, "cookies": false, "type": "", - "demo": "users\/create-argon2user.md", + "demo": "users\/create-argon-2-user.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/users\/create-argon2-user.md", "rate-limit": 0, "rate-time": 3600, @@ -39038,7 +40591,7 @@ "x-appwrite": { "method": "createBcryptUser", "group": "users", - "weight": 186, + "weight": 185, "cookies": false, "type": "", "demo": "users\/create-bcrypt-user.md", @@ -39123,7 +40676,7 @@ "x-appwrite": { "method": "listIdentities", "group": "identities", - "weight": 202, + "weight": 201, "cookies": false, "type": "", "demo": "users\/list-identities.md", @@ -39191,7 +40744,7 @@ "x-appwrite": { "method": "deleteIdentity", "group": "identities", - "weight": 225, + "weight": 224, "cookies": false, "type": "", "demo": "users\/delete-identity.md", @@ -39252,10 +40805,10 @@ "x-appwrite": { "method": "createMD5User", "group": "users", - "weight": 187, + "weight": 186, "cookies": false, "type": "", - "demo": "users\/create-m-d5user.md", + "demo": "users\/create-md-5-user.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/users\/create-md5-user.md", "rate-limit": 0, "rate-time": 3600, @@ -39337,10 +40890,10 @@ "x-appwrite": { "method": "createPHPassUser", "group": "users", - "weight": 190, + "weight": 189, "cookies": false, "type": "", - "demo": "users\/create-p-h-pass-user.md", + "demo": "users\/create-ph-pass-user.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/users\/create-phpass-user.md", "rate-limit": 0, "rate-time": 3600, @@ -39422,7 +40975,7 @@ "x-appwrite": { "method": "createScryptUser", "group": "users", - "weight": 191, + "weight": 190, "cookies": false, "type": "", "demo": "users\/create-scrypt-user.md", @@ -39537,7 +41090,7 @@ "x-appwrite": { "method": "createScryptModifiedUser", "group": "users", - "weight": 192, + "weight": 191, "cookies": false, "type": "", "demo": "users\/create-scrypt-modified-user.md", @@ -39640,10 +41193,10 @@ "x-appwrite": { "method": "createSHAUser", "group": "users", - "weight": 189, + "weight": 188, "cookies": false, "type": "", - "demo": "users\/create-s-h-a-user.md", + "demo": "users\/create-sha-user.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/users\/create-sha-user.md", "rate-limit": 0, "rate-time": 3600, @@ -39745,7 +41298,7 @@ "x-appwrite": { "method": "getUsage", "group": null, - "weight": 227, + "weight": 226, "cookies": false, "type": "", "demo": "users\/get-usage.md", @@ -39817,7 +41370,7 @@ "x-appwrite": { "method": "get", "group": "users", - "weight": 195, + "weight": 194, "cookies": false, "type": "", "demo": "users\/get.md", @@ -39869,7 +41422,7 @@ "x-appwrite": { "method": "delete", "group": "users", - "weight": 223, + "weight": 222, "cookies": false, "type": "", "demo": "users\/delete.md", @@ -39930,7 +41483,7 @@ "x-appwrite": { "method": "updateEmail", "group": "users", - "weight": 208, + "weight": 207, "cookies": false, "type": "", "demo": "users\/update-email.md", @@ -40010,10 +41563,10 @@ "x-appwrite": { "method": "createJWT", "group": "sessions", - "weight": 226, + "weight": 225, "cookies": false, "type": "", - "demo": "users\/create-j-w-t.md", + "demo": "users\/create-jwt.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/users\/create-user-jwt.md", "rate-limit": 0, "rate-time": 3600, @@ -40092,7 +41645,7 @@ "x-appwrite": { "method": "updateLabels", "group": "users", - "weight": 204, + "weight": 203, "cookies": false, "type": "", "demo": "users\/update-labels.md", @@ -40175,7 +41728,7 @@ "x-appwrite": { "method": "listLogs", "group": "logs", - "weight": 200, + "weight": 199, "cookies": false, "type": "", "demo": "users\/list-logs.md", @@ -40249,7 +41802,7 @@ "x-appwrite": { "method": "listMemberships", "group": "memberships", - "weight": 199, + "weight": 198, "cookies": false, "type": "", "demo": "users\/list-memberships.md", @@ -40334,7 +41887,7 @@ "x-appwrite": { "method": "updateMfa", "group": "users", - "weight": 213, + "weight": 212, "cookies": false, "type": "", "demo": "users\/update-mfa.md", @@ -40402,7 +41955,7 @@ } ], "description": "Enable or disable MFA on a user account.", - "demo": "users\/update-m-f-a.md" + "demo": "users\/update-mfa.md" } ], "auth": { @@ -40465,7 +42018,7 @@ "x-appwrite": { "method": "deleteMfaAuthenticator", "group": "mfa", - "weight": 218, + "weight": 217, "cookies": false, "type": "", "demo": "users\/delete-mfa-authenticator.md", @@ -40531,7 +42084,7 @@ } ], "description": "Delete an authenticator app.", - "demo": "users\/delete-m-f-a-authenticator.md" + "demo": "users\/delete-mfa-authenticator.md" } ], "auth": { @@ -40597,7 +42150,7 @@ "x-appwrite": { "method": "listMfaFactors", "group": "mfa", - "weight": 214, + "weight": 213, "cookies": false, "type": "", "demo": "users\/list-mfa-factors.md", @@ -40661,7 +42214,7 @@ } ], "description": "List the factors available on the account to be used as a MFA challange.", - "demo": "users\/list-m-f-a-factors.md" + "demo": "users\/list-mfa-factors.md" } ], "auth": { @@ -40712,7 +42265,7 @@ "x-appwrite": { "method": "getMfaRecoveryCodes", "group": "mfa", - "weight": 215, + "weight": 214, "cookies": false, "type": "", "demo": "users\/get-mfa-recovery-codes.md", @@ -40776,7 +42329,7 @@ } ], "description": "Get recovery codes that can be used as backup for MFA flow by User ID. Before getting codes, they must be generated using [createMfaRecoveryCodes](\/docs\/references\/cloud\/client-web\/account#createMfaRecoveryCodes) method.", - "demo": "users\/get-m-f-a-recovery-codes.md" + "demo": "users\/get-mfa-recovery-codes.md" } ], "auth": { @@ -40825,7 +42378,7 @@ "x-appwrite": { "method": "updateMfaRecoveryCodes", "group": "mfa", - "weight": 217, + "weight": 216, "cookies": false, "type": "", "demo": "users\/update-mfa-recovery-codes.md", @@ -40889,7 +42442,7 @@ } ], "description": "Regenerate recovery codes that can be used as backup for MFA flow by User ID. Before regenerating codes, they must be first generated using [createMfaRecoveryCodes](\/docs\/references\/cloud\/client-web\/account#createMfaRecoveryCodes) method.", - "demo": "users\/update-m-f-a-recovery-codes.md" + "demo": "users\/update-mfa-recovery-codes.md" } ], "auth": { @@ -40938,7 +42491,7 @@ "x-appwrite": { "method": "createMfaRecoveryCodes", "group": "mfa", - "weight": 216, + "weight": 215, "cookies": false, "type": "", "demo": "users\/create-mfa-recovery-codes.md", @@ -41002,7 +42555,7 @@ } ], "description": "Generate recovery codes used as backup for MFA flow for User ID. Recovery codes can be used as a MFA verification type in [createMfaChallenge](\/docs\/references\/cloud\/client-web\/account#createMfaChallenge) method by client SDK.", - "demo": "users\/create-m-f-a-recovery-codes.md" + "demo": "users\/create-mfa-recovery-codes.md" } ], "auth": { @@ -41053,7 +42606,7 @@ "x-appwrite": { "method": "updateName", "group": "users", - "weight": 206, + "weight": 205, "cookies": false, "type": "", "demo": "users\/update-name.md", @@ -41133,7 +42686,7 @@ "x-appwrite": { "method": "updatePassword", "group": "users", - "weight": 207, + "weight": 206, "cookies": false, "type": "", "demo": "users\/update-password.md", @@ -41213,7 +42766,7 @@ "x-appwrite": { "method": "updatePhone", "group": "users", - "weight": 209, + "weight": 208, "cookies": false, "type": "", "demo": "users\/update-phone.md", @@ -41293,7 +42846,7 @@ "x-appwrite": { "method": "getPrefs", "group": "users", - "weight": 196, + "weight": 195, "cookies": false, "type": "", "demo": "users\/get-prefs.md", @@ -41352,7 +42905,7 @@ "x-appwrite": { "method": "updatePrefs", "group": "users", - "weight": 211, + "weight": 210, "cookies": false, "type": "", "demo": "users\/update-prefs.md", @@ -41432,7 +42985,7 @@ "x-appwrite": { "method": "listSessions", "group": "sessions", - "weight": 198, + "weight": 197, "cookies": false, "type": "", "demo": "users\/list-sessions.md", @@ -41491,7 +43044,7 @@ "x-appwrite": { "method": "createSession", "group": "sessions", - "weight": 219, + "weight": 218, "cookies": false, "type": "", "demo": "users\/create-session.md", @@ -41543,7 +43096,7 @@ "x-appwrite": { "method": "deleteSessions", "group": "sessions", - "weight": 222, + "weight": 221, "cookies": false, "type": "", "demo": "users\/delete-sessions.md", @@ -41597,7 +43150,7 @@ "x-appwrite": { "method": "deleteSession", "group": "sessions", - "weight": 221, + "weight": 220, "cookies": false, "type": "", "demo": "users\/delete-session.md", @@ -41668,7 +43221,7 @@ "x-appwrite": { "method": "updateStatus", "group": "users", - "weight": 203, + "weight": 202, "cookies": false, "type": "", "demo": "users\/update-status.md", @@ -41748,7 +43301,7 @@ "x-appwrite": { "method": "listTargets", "group": "targets", - "weight": 201, + "weight": 200, "cookies": false, "type": "", "demo": "users\/list-targets.md", @@ -41821,7 +43374,7 @@ "x-appwrite": { "method": "createTarget", "group": "targets", - "weight": 193, + "weight": 192, "cookies": false, "type": "", "demo": "users\/create-target.md", @@ -41931,7 +43484,7 @@ "x-appwrite": { "method": "getTarget", "group": "targets", - "weight": 197, + "weight": 196, "cookies": false, "type": "", "demo": "users\/get-target.md", @@ -42001,7 +43554,7 @@ "x-appwrite": { "method": "updateTarget", "group": "targets", - "weight": 212, + "weight": 211, "cookies": false, "type": "", "demo": "users\/update-target.md", @@ -42090,7 +43643,7 @@ "x-appwrite": { "method": "deleteTarget", "group": "targets", - "weight": 224, + "weight": 223, "cookies": false, "type": "", "demo": "users\/delete-target.md", @@ -42162,7 +43715,7 @@ "x-appwrite": { "method": "createToken", "group": "sessions", - "weight": 220, + "weight": 219, "cookies": false, "type": "", "demo": "users\/create-token.md", @@ -42244,7 +43797,7 @@ "x-appwrite": { "method": "updateEmailVerification", "group": "users", - "weight": 210, + "weight": 209, "cookies": false, "type": "", "demo": "users\/update-email-verification.md", @@ -42324,7 +43877,7 @@ "x-appwrite": { "method": "updatePhoneVerification", "group": "users", - "weight": 205, + "weight": 204, "cookies": false, "type": "", "demo": "users\/update-phone-verification.md", @@ -42404,7 +43957,7 @@ "x-appwrite": { "method": "createRepositoryDetection", "group": "repositories", - "weight": 231, + "weight": 230, "cookies": false, "type": "", "demo": "vcs\/create-repository-detection.md", @@ -42500,7 +44053,7 @@ "x-appwrite": { "method": "listRepositories", "group": "repositories", - "weight": 232, + "weight": 231, "cookies": false, "type": "", "demo": "vcs\/list-repositories.md", @@ -42585,7 +44138,7 @@ "x-appwrite": { "method": "createRepository", "group": "repositories", - "weight": 233, + "weight": 232, "cookies": false, "type": "", "demo": "vcs\/create-repository.md", @@ -42670,7 +44223,7 @@ "x-appwrite": { "method": "getRepository", "group": "repositories", - "weight": 234, + "weight": 233, "cookies": false, "type": "", "demo": "vcs\/get-repository.md", @@ -42740,7 +44293,7 @@ "x-appwrite": { "method": "listRepositoryBranches", "group": "repositories", - "weight": 235, + "weight": 234, "cookies": false, "type": "", "demo": "vcs\/list-repository-branches.md", @@ -42810,7 +44363,7 @@ "x-appwrite": { "method": "getRepositoryContents", "group": "repositories", - "weight": 230, + "weight": 229, "cookies": false, "type": "", "demo": "vcs\/get-repository-contents.md", @@ -42895,7 +44448,7 @@ "x-appwrite": { "method": "updateExternalDeployments", "group": "repositories", - "weight": 240, + "weight": 239, "cookies": false, "type": "", "demo": "vcs\/update-external-deployments.md", @@ -42984,7 +44537,7 @@ "x-appwrite": { "method": "listInstallations", "group": "installations", - "weight": 237, + "weight": 236, "cookies": false, "type": "", "demo": "vcs\/list-installations.md", @@ -43058,7 +44611,7 @@ "x-appwrite": { "method": "getInstallation", "group": "installations", - "weight": 238, + "weight": 237, "cookies": false, "type": "", "demo": "vcs\/get-installation.md", @@ -43109,7 +44662,7 @@ "x-appwrite": { "method": "deleteInstallation", "group": "installations", - "weight": 239, + "weight": 238, "cookies": false, "type": "", "demo": "vcs\/delete-installation.md", @@ -44771,6 +46324,15 @@ { "$ref": "#\/components\/schemas\/attributeRelationship" }, + { + "$ref": "#\/components\/schemas\/attributePoint" + }, + { + "$ref": "#\/components\/schemas\/attributeLine" + }, + { + "$ref": "#\/components\/schemas\/attributePolygon" + }, { "$ref": "#\/components\/schemas\/attributeString" } @@ -44856,6 +46418,15 @@ { "$ref": "#\/components\/schemas\/attributeRelationship" }, + { + "$ref": "#\/components\/schemas\/attributePoint" + }, + { + "$ref": "#\/components\/schemas\/attributeLine" + }, + { + "$ref": "#\/components\/schemas\/attributePolygon" + }, { "$ref": "#\/components\/schemas\/attributeString" } @@ -45732,6 +47303,291 @@ "side": "parent|child" } }, + "attributePoint": { + "description": "AttributePoint", + "type": "object", + "properties": { + "key": { + "type": "string", + "description": "Attribute Key.", + "x-example": "fullName" + }, + "type": { + "type": "string", + "description": "Attribute type.", + "x-example": "string" + }, + "status": { + "type": "string", + "description": "Attribute status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`", + "x-example": "available" + }, + "error": { + "type": "string", + "description": "Error message. Displays error generated on failure of creating or deleting an attribute.", + "x-example": "string" + }, + "required": { + "type": "boolean", + "description": "Is attribute required?", + "x-example": true + }, + "array": { + "type": "boolean", + "description": "Is attribute an array?", + "x-example": false, + "nullable": true + }, + "$createdAt": { + "type": "string", + "description": "Attribute creation date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "$updatedAt": { + "type": "string", + "description": "Attribute update date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "default": { + "type": "array", + "description": "Default value for attribute when not provided. Cannot be set when attribute is required.", + "x-example": [ + 0, + 0 + ], + "nullable": true + } + }, + "required": [ + "key", + "type", + "status", + "error", + "required", + "$createdAt", + "$updatedAt" + ], + "example": { + "key": "fullName", + "type": "string", + "status": "available", + "error": "string", + "required": true, + "array": false, + "$createdAt": "2020-10-15T06:38:00.000+00:00", + "$updatedAt": "2020-10-15T06:38:00.000+00:00", + "default": [ + 0, + 0 + ] + } + }, + "attributeLine": { + "description": "AttributeLine", + "type": "object", + "properties": { + "key": { + "type": "string", + "description": "Attribute Key.", + "x-example": "fullName" + }, + "type": { + "type": "string", + "description": "Attribute type.", + "x-example": "string" + }, + "status": { + "type": "string", + "description": "Attribute status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`", + "x-example": "available" + }, + "error": { + "type": "string", + "description": "Error message. Displays error generated on failure of creating or deleting an attribute.", + "x-example": "string" + }, + "required": { + "type": "boolean", + "description": "Is attribute required?", + "x-example": true + }, + "array": { + "type": "boolean", + "description": "Is attribute an array?", + "x-example": false, + "nullable": true + }, + "$createdAt": { + "type": "string", + "description": "Attribute creation date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "$updatedAt": { + "type": "string", + "description": "Attribute update date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "default": { + "type": "array", + "description": "Default value for attribute when not provided. Cannot be set when attribute is required.", + "x-example": [ + [ + 0, + 0 + ], + [ + 1, + 1 + ] + ], + "nullable": true + } + }, + "required": [ + "key", + "type", + "status", + "error", + "required", + "$createdAt", + "$updatedAt" + ], + "example": { + "key": "fullName", + "type": "string", + "status": "available", + "error": "string", + "required": true, + "array": false, + "$createdAt": "2020-10-15T06:38:00.000+00:00", + "$updatedAt": "2020-10-15T06:38:00.000+00:00", + "default": [ + [ + 0, + 0 + ], + [ + 1, + 1 + ] + ] + } + }, + "attributePolygon": { + "description": "AttributePolygon", + "type": "object", + "properties": { + "key": { + "type": "string", + "description": "Attribute Key.", + "x-example": "fullName" + }, + "type": { + "type": "string", + "description": "Attribute type.", + "x-example": "string" + }, + "status": { + "type": "string", + "description": "Attribute status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`", + "x-example": "available" + }, + "error": { + "type": "string", + "description": "Error message. Displays error generated on failure of creating or deleting an attribute.", + "x-example": "string" + }, + "required": { + "type": "boolean", + "description": "Is attribute required?", + "x-example": true + }, + "array": { + "type": "boolean", + "description": "Is attribute an array?", + "x-example": false, + "nullable": true + }, + "$createdAt": { + "type": "string", + "description": "Attribute creation date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "$updatedAt": { + "type": "string", + "description": "Attribute update date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "default": { + "type": "array", + "description": "Default value for attribute when not provided. Cannot be set when attribute is required.", + "x-example": [ + [ + [ + 0, + 0 + ], + [ + 0, + 10 + ] + ], + [ + [ + 10, + 10 + ], + [ + 0, + 0 + ] + ] + ], + "nullable": true + } + }, + "required": [ + "key", + "type", + "status", + "error", + "required", + "$createdAt", + "$updatedAt" + ], + "example": { + "key": "fullName", + "type": "string", + "status": "available", + "error": "string", + "required": true, + "array": false, + "$createdAt": "2020-10-15T06:38:00.000+00:00", + "$updatedAt": "2020-10-15T06:38:00.000+00:00", + "default": [ + [ + [ + 0, + 0 + ], + [ + 0, + 10 + ] + ], + [ + [ + 10, + 10 + ], + [ + 0, + 0 + ] + ] + ] + } + }, "table": { "description": "Table", "type": "object", @@ -45813,6 +47669,15 @@ { "$ref": "#\/components\/schemas\/columnRelationship" }, + { + "$ref": "#\/components\/schemas\/columnPoint" + }, + { + "$ref": "#\/components\/schemas\/columnLine" + }, + { + "$ref": "#\/components\/schemas\/columnPolygon" + }, { "$ref": "#\/components\/schemas\/columnString" } @@ -45898,6 +47763,15 @@ { "$ref": "#\/components\/schemas\/columnRelationship" }, + { + "$ref": "#\/components\/schemas\/columnPoint" + }, + { + "$ref": "#\/components\/schemas\/columnLine" + }, + { + "$ref": "#\/components\/schemas\/columnPolygon" + }, { "$ref": "#\/components\/schemas\/columnString" } @@ -46774,6 +48648,291 @@ "side": "parent|child" } }, + "columnPoint": { + "description": "ColumnPoint", + "type": "object", + "properties": { + "key": { + "type": "string", + "description": "Column Key.", + "x-example": "fullName" + }, + "type": { + "type": "string", + "description": "Column type.", + "x-example": "string" + }, + "status": { + "type": "string", + "description": "Column status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`", + "x-example": "available" + }, + "error": { + "type": "string", + "description": "Error message. Displays error generated on failure of creating or deleting an column.", + "x-example": "string" + }, + "required": { + "type": "boolean", + "description": "Is column required?", + "x-example": true + }, + "array": { + "type": "boolean", + "description": "Is column an array?", + "x-example": false, + "nullable": true + }, + "$createdAt": { + "type": "string", + "description": "Column creation date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "$updatedAt": { + "type": "string", + "description": "Column update date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "default": { + "type": "array", + "description": "Default value for column when not provided. Cannot be set when column is required.", + "x-example": [ + 0, + 0 + ], + "nullable": true + } + }, + "required": [ + "key", + "type", + "status", + "error", + "required", + "$createdAt", + "$updatedAt" + ], + "example": { + "key": "fullName", + "type": "string", + "status": "available", + "error": "string", + "required": true, + "array": false, + "$createdAt": "2020-10-15T06:38:00.000+00:00", + "$updatedAt": "2020-10-15T06:38:00.000+00:00", + "default": [ + 0, + 0 + ] + } + }, + "columnLine": { + "description": "ColumnLine", + "type": "object", + "properties": { + "key": { + "type": "string", + "description": "Column Key.", + "x-example": "fullName" + }, + "type": { + "type": "string", + "description": "Column type.", + "x-example": "string" + }, + "status": { + "type": "string", + "description": "Column status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`", + "x-example": "available" + }, + "error": { + "type": "string", + "description": "Error message. Displays error generated on failure of creating or deleting an column.", + "x-example": "string" + }, + "required": { + "type": "boolean", + "description": "Is column required?", + "x-example": true + }, + "array": { + "type": "boolean", + "description": "Is column an array?", + "x-example": false, + "nullable": true + }, + "$createdAt": { + "type": "string", + "description": "Column creation date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "$updatedAt": { + "type": "string", + "description": "Column update date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "default": { + "type": "array", + "description": "Default value for column when not provided. Cannot be set when column is required.", + "x-example": [ + [ + 0, + 0 + ], + [ + 1, + 1 + ] + ], + "nullable": true + } + }, + "required": [ + "key", + "type", + "status", + "error", + "required", + "$createdAt", + "$updatedAt" + ], + "example": { + "key": "fullName", + "type": "string", + "status": "available", + "error": "string", + "required": true, + "array": false, + "$createdAt": "2020-10-15T06:38:00.000+00:00", + "$updatedAt": "2020-10-15T06:38:00.000+00:00", + "default": [ + [ + 0, + 0 + ], + [ + 1, + 1 + ] + ] + } + }, + "columnPolygon": { + "description": "ColumnPolygon", + "type": "object", + "properties": { + "key": { + "type": "string", + "description": "Column Key.", + "x-example": "fullName" + }, + "type": { + "type": "string", + "description": "Column type.", + "x-example": "string" + }, + "status": { + "type": "string", + "description": "Column status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`", + "x-example": "available" + }, + "error": { + "type": "string", + "description": "Error message. Displays error generated on failure of creating or deleting an column.", + "x-example": "string" + }, + "required": { + "type": "boolean", + "description": "Is column required?", + "x-example": true + }, + "array": { + "type": "boolean", + "description": "Is column an array?", + "x-example": false, + "nullable": true + }, + "$createdAt": { + "type": "string", + "description": "Column creation date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "$updatedAt": { + "type": "string", + "description": "Column update date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "default": { + "type": "array", + "description": "Default value for column when not provided. Cannot be set when column is required.", + "x-example": [ + [ + [ + 0, + 0 + ], + [ + 0, + 10 + ] + ], + [ + [ + 10, + 10 + ], + [ + 0, + 0 + ] + ] + ], + "nullable": true + } + }, + "required": [ + "key", + "type", + "status", + "error", + "required", + "$createdAt", + "$updatedAt" + ], + "example": { + "key": "fullName", + "type": "string", + "status": "available", + "error": "string", + "required": true, + "array": false, + "$createdAt": "2020-10-15T06:38:00.000+00:00", + "$updatedAt": "2020-10-15T06:38:00.000+00:00", + "default": [ + [ + [ + 0, + 0 + ], + [ + 0, + 10 + ] + ], + [ + [ + 10, + 10 + ], + [ + 0, + 0 + ] + ] + ] + } + }, "index": { "description": "Index", "type": "object", @@ -46967,17 +49126,20 @@ "type": "integer", "description": "Row automatically incrementing ID.", "x-example": 1, - "format": "int32" + "format": "int32", + "readOnly": true }, "$tableId": { "type": "string", "description": "Table ID.", - "x-example": "5e5ea5c15117e" + "x-example": "5e5ea5c15117e", + "readOnly": true }, "$databaseId": { "type": "string", "description": "Database ID.", - "x-example": "5e5ea5c15117e" + "x-example": "5e5ea5c15117e", + "readOnly": true }, "$createdAt": { "type": "string", diff --git a/app/config/specs/open-api3-latest-server.json b/app/config/specs/open-api3-latest-server.json index 7ff41e8be6..09d53dbdf0 100644 --- a/app/config/specs/open-api3-latest-server.json +++ b/app/config/specs/open-api3-latest-server.json @@ -387,7 +387,7 @@ "weight": 30, "cookies": false, "type": "", - "demo": "account\/create-j-w-t.md", + "demo": "account\/create-jwt.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/account\/create-jwt.md", "rate-limit": 100, "rate-time": 3600, @@ -503,7 +503,7 @@ "weight": 45, "cookies": false, "type": "", - "demo": "account\/update-m-f-a.md", + "demo": "account\/update-mfa.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/account\/update-mfa.md", "rate-limit": 0, "rate-time": 3600, @@ -638,7 +638,7 @@ } ], "description": "Add an authenticator app to be used as an MFA factor. Verify the authenticator using the [verify authenticator](\/docs\/references\/cloud\/client-web\/account#updateMfaAuthenticator) method.", - "demo": "account\/create-m-f-a-authenticator.md" + "demo": "account\/create-mfa-authenticator.md" } ], "auth": { @@ -765,7 +765,7 @@ } ], "description": "Verify an authenticator app after adding it using the [add authenticator](\/docs\/references\/cloud\/client-web\/account#createMfaAuthenticator) method.", - "demo": "account\/update-m-f-a-authenticator.md" + "demo": "account\/update-mfa-authenticator.md" } ], "auth": { @@ -898,7 +898,7 @@ } ], "description": "Delete an authenticator for a user by ID.", - "demo": "account\/delete-m-f-a-authenticator.md" + "demo": "account\/delete-mfa-authenticator.md" } ], "auth": { @@ -1021,7 +1021,7 @@ } ], "description": "Begin the process of MFA verification after sign-in. Finish the flow with [updateMfaChallenge](\/docs\/references\/cloud\/client-web\/account#updateMfaChallenge) method.", - "demo": "account\/create-m-f-a-challenge.md" + "demo": "account\/create-mfa-challenge.md" } ], "auth": { @@ -1155,7 +1155,7 @@ } ], "description": "Complete the MFA challenge by providing the one-time password. Finish the process of MFA verification by providing the one-time password. To begin the flow, use [createMfaChallenge](\/docs\/references\/cloud\/client-web\/account#createMfaChallenge) method.", - "demo": "account\/update-m-f-a-challenge.md" + "demo": "account\/update-mfa-challenge.md" } ], "auth": { @@ -1280,7 +1280,7 @@ } ], "description": "List the factors available on the account to be used as a MFA challange.", - "demo": "account\/list-m-f-a-factors.md" + "demo": "account\/list-mfa-factors.md" } ], "auth": { @@ -1380,7 +1380,7 @@ } ], "description": "Get recovery codes that can be used as backup for MFA flow. Before getting codes, they must be generated using [createMfaRecoveryCodes](\/docs\/references\/cloud\/client-web\/account#createMfaRecoveryCodes) method. An OTP challenge is required to read recovery codes.", - "demo": "account\/get-m-f-a-recovery-codes.md" + "demo": "account\/get-mfa-recovery-codes.md" } ], "auth": { @@ -1478,7 +1478,7 @@ } ], "description": "Generate recovery codes as backup for MFA flow. It's recommended to generate and show then immediately after user successfully adds their authehticator. Recovery codes can be used as a MFA verification type in [createMfaChallenge](\/docs\/references\/cloud\/client-web\/account#createMfaChallenge) method.", - "demo": "account\/create-m-f-a-recovery-codes.md" + "demo": "account\/create-mfa-recovery-codes.md" } ], "auth": { @@ -1576,7 +1576,7 @@ } ], "description": "Regenerate recovery codes that can be used as backup for MFA flow. Before regenerating codes, they must be first generated using [createMfaRecoveryCodes](\/docs\/references\/cloud\/client-web\/account#createMfaRecoveryCodes) method. An OTP challenge is required to regenreate recovery codes.", - "demo": "account\/update-m-f-a-recovery-codes.md" + "demo": "account\/update-mfa-recovery-codes.md" } ], "auth": { @@ -1926,7 +1926,7 @@ "prefs": { "type": "object", "description": "Prefs key-value JSON object.", - "x-example": "{}" + "x-example": "{\"language\":\"en\",\"timezone\":\"UTC\",\"darkTheme\":true}" } }, "required": [ @@ -2344,7 +2344,7 @@ "weight": 27, "cookies": false, "type": "", - "demo": "account\/update-magic-u-r-l-session.md", + "demo": "account\/update-magic-url-session.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/account\/create-session.md", "rate-limit": 10, "rate-time": 3600, @@ -2355,6 +2355,10 @@ "client" ], "packaging": false, + "deprecated": { + "since": "1.6.0", + "replaceWith": "account.createSession" + }, "auth": { "Project": [] } @@ -2429,6 +2433,10 @@ "client" ], "packaging": false, + "deprecated": { + "since": "1.6.0", + "replaceWith": "account.createSession" + }, "auth": { "Project": [] } @@ -2881,7 +2889,7 @@ "weight": 25, "cookies": false, "type": "", - "demo": "account\/create-magic-u-r-l-token.md", + "demo": "account\/create-magic-url-token.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/account\/create-token-magic-url.md", "rate-limit": 60, "rate-time": 3600, @@ -2961,7 +2969,7 @@ "weight": 24, "cookies": false, "type": "webAuth", - "demo": "account\/create-o-auth2token.md", + "demo": "account\/create-o-auth-2-token.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/account\/create-token-oauth2.md", "rate-limit": 50, "rate-time": 3600, @@ -3605,7 +3613,7 @@ "parameters": [ { "name": "code", - "description": "Credit Card Code. Possible values: amex, argencard, cabal, cencosud, diners, discover, elo, hipercard, jcb, mastercard, naranja, targeta-shopping, union-china-pay, visa, mir, maestro, rupay.", + "description": "Credit Card Code. Possible values: amex, argencard, cabal, cencosud, diners, discover, elo, hipercard, jcb, mastercard, naranja, targeta-shopping, unionpay, visa, mir, maestro, rupay.", "required": true, "schema": { "type": "string", @@ -3623,7 +3631,7 @@ "mastercard", "naranja", "targeta-shopping", - "union-china-pay", + "unionpay", "visa", "mir", "maestro", @@ -3643,7 +3651,7 @@ "Mastercard", "Naranja", "Tarjeta Shopping", - "Union China Pay", + "Union Pay", "Visa", "MIR", "Maestro", @@ -4439,7 +4447,7 @@ "weight": 65, "cookies": false, "type": "location", - "demo": "avatars\/get-q-r.md", + "demo": "avatars\/get-qr.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/avatars\/get-qr.md", "rate-limit": 0, "rate-time": 3600, @@ -4537,7 +4545,7 @@ "x-appwrite": { "method": "list", "group": "databases", - "weight": 321, + "weight": 316, "cookies": false, "type": "", "demo": "databases\/list.md", @@ -4643,7 +4651,7 @@ "x-appwrite": { "method": "create", "group": "databases", - "weight": 317, + "weight": 312, "cookies": false, "type": "", "demo": "databases\/create.md", @@ -4658,7 +4666,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tablesDB.createDatabase" + "replaceWith": "tablesDB.create" }, "methods": [ { @@ -4688,7 +4696,7 @@ "demo": "databases\/create.md", "deprecated": { "since": "1.8.0", - "replaceWith": "tablesDB.createDatabase" + "replaceWith": "tablesDB.create" } } ], @@ -4759,7 +4767,7 @@ "x-appwrite": { "method": "get", "group": "databases", - "weight": 318, + "weight": 313, "cookies": false, "type": "", "demo": "databases\/get.md", @@ -4852,7 +4860,7 @@ "x-appwrite": { "method": "update", "group": "databases", - "weight": 319, + "weight": 314, "cookies": false, "type": "", "demo": "databases\/update.md", @@ -4965,7 +4973,7 @@ "x-appwrite": { "method": "delete", "group": "databases", - "weight": 320, + "weight": 315, "cookies": false, "type": "", "demo": "databases\/delete.md", @@ -5059,7 +5067,7 @@ "x-appwrite": { "method": "listCollections", "group": "collections", - "weight": 329, + "weight": 324, "cookies": false, "type": "", "demo": "databases\/list-collections.md", @@ -5147,7 +5155,7 @@ "x-appwrite": { "method": "createCollection", "group": "collections", - "weight": 325, + "weight": 320, "cookies": false, "type": "", "demo": "databases\/create-collection.md", @@ -5256,7 +5264,7 @@ "x-appwrite": { "method": "getCollection", "group": "collections", - "weight": 326, + "weight": 321, "cookies": false, "type": "", "demo": "databases\/get-collection.md", @@ -5330,7 +5338,7 @@ "x-appwrite": { "method": "updateCollection", "group": "collections", - "weight": 327, + "weight": 322, "cookies": false, "type": "", "demo": "databases\/update-collection.md", @@ -5434,7 +5442,7 @@ "x-appwrite": { "method": "deleteCollection", "group": "collections", - "weight": 328, + "weight": 323, "cookies": false, "type": "", "demo": "databases\/delete-collection.md", @@ -5510,7 +5518,7 @@ "x-appwrite": { "method": "listAttributes", "group": "attributes", - "weight": 346, + "weight": 341, "cookies": false, "type": "", "demo": "databases\/list-attributes.md", @@ -5599,7 +5607,7 @@ "x-appwrite": { "method": "createBooleanAttribute", "group": "attributes", - "weight": 347, + "weight": 342, "cookies": false, "type": "", "demo": "databases\/create-boolean-attribute.md", @@ -5710,7 +5718,7 @@ "x-appwrite": { "method": "updateBooleanAttribute", "group": "attributes", - "weight": 348, + "weight": 343, "cookies": false, "type": "", "demo": "databases\/update-boolean-attribute.md", @@ -5826,7 +5834,7 @@ "x-appwrite": { "method": "createDatetimeAttribute", "group": "attributes", - "weight": 349, + "weight": 344, "cookies": false, "type": "", "demo": "databases\/create-datetime-attribute.md", @@ -5937,7 +5945,7 @@ "x-appwrite": { "method": "updateDatetimeAttribute", "group": "attributes", - "weight": 350, + "weight": 345, "cookies": false, "type": "", "demo": "databases\/update-datetime-attribute.md", @@ -6053,7 +6061,7 @@ "x-appwrite": { "method": "createEmailAttribute", "group": "attributes", - "weight": 351, + "weight": 346, "cookies": false, "type": "", "demo": "databases\/create-email-attribute.md", @@ -6164,7 +6172,7 @@ "x-appwrite": { "method": "updateEmailAttribute", "group": "attributes", - "weight": 352, + "weight": 347, "cookies": false, "type": "", "demo": "databases\/update-email-attribute.md", @@ -6280,7 +6288,7 @@ "x-appwrite": { "method": "createEnumAttribute", "group": "attributes", - "weight": 353, + "weight": 348, "cookies": false, "type": "", "demo": "databases\/create-enum-attribute.md", @@ -6400,7 +6408,7 @@ "x-appwrite": { "method": "updateEnumAttribute", "group": "attributes", - "weight": 354, + "weight": 349, "cookies": false, "type": "", "demo": "databases\/update-enum-attribute.md", @@ -6525,7 +6533,7 @@ "x-appwrite": { "method": "createFloatAttribute", "group": "attributes", - "weight": 355, + "weight": 350, "cookies": false, "type": "", "demo": "databases\/create-float-attribute.md", @@ -6646,7 +6654,7 @@ "x-appwrite": { "method": "updateFloatAttribute", "group": "attributes", - "weight": 356, + "weight": 351, "cookies": false, "type": "", "demo": "databases\/update-float-attribute.md", @@ -6772,7 +6780,7 @@ "x-appwrite": { "method": "createIntegerAttribute", "group": "attributes", - "weight": 357, + "weight": 352, "cookies": false, "type": "", "demo": "databases\/create-integer-attribute.md", @@ -6893,7 +6901,7 @@ "x-appwrite": { "method": "updateIntegerAttribute", "group": "attributes", - "weight": 358, + "weight": 353, "cookies": false, "type": "", "demo": "databases\/update-integer-attribute.md", @@ -7019,7 +7027,7 @@ "x-appwrite": { "method": "createIpAttribute", "group": "attributes", - "weight": 359, + "weight": 354, "cookies": false, "type": "", "demo": "databases\/create-ip-attribute.md", @@ -7130,7 +7138,7 @@ "x-appwrite": { "method": "updateIpAttribute", "group": "attributes", - "weight": 360, + "weight": 355, "cookies": false, "type": "", "demo": "databases\/update-ip-attribute.md", @@ -7222,6 +7230,714 @@ } } }, + "\/databases\/{databaseId}\/collections\/{collectionId}\/attributes\/line": { + "post": { + "summary": "Create line attribute", + "operationId": "databasesCreateLineAttribute", + "tags": [ + "databases" + ], + "description": "Create a geometric line attribute.", + "responses": { + "202": { + "description": "AttributeLine", + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/attributeLine" + } + } + } + } + }, + "deprecated": true, + "x-appwrite": { + "method": "createLineAttribute", + "group": "attributes", + "weight": 356, + "cookies": false, + "type": "", + "demo": "databases\/create-line-attribute.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-line-attribute.md", + "rate-limit": 0, + "rate-time": 3600, + "rate-key": "url:{url},ip:{ip}", + "scope": "collections.write", + "platforms": [ + "server" + ], + "packaging": false, + "deprecated": { + "since": "1.8.0", + "replaceWith": "tablesDB.createLineColumn" + }, + "auth": { + "Project": [], + "Key": [] + } + }, + "security": [ + { + "Project": [], + "Key": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + }, + { + "name": "collectionId", + "description": "Collection ID. You can create a new collection using the Database service [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateCollection).", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + } + ], + "requestBody": { + "content": { + "application\/json": { + "schema": { + "type": "object", + "properties": { + "key": { + "type": "string", + "description": "Attribute Key.", + "x-example": null + }, + "required": { + "type": "boolean", + "description": "Is attribute required?", + "x-example": false + }, + "default": { + "type": "array", + "description": "Default value for attribute when not provided, two-dimensional array of coordinate pairs, [[longitude, latitude], [longitude, latitude], \u2026], listing the vertices of the line in order. Cannot be set when attribute is required.", + "x-example": "[[1, 2], [3, 4], [5, 6]]", + "items": { + "oneOf": [ + { + "type": "array" + } + ] + }, + "x-nullable": true + } + }, + "required": [ + "key", + "required" + ] + } + } + } + } + } + }, + "\/databases\/{databaseId}\/collections\/{collectionId}\/attributes\/line\/{key}": { + "patch": { + "summary": "Update line attribute", + "operationId": "databasesUpdateLineAttribute", + "tags": [ + "databases" + ], + "description": "Update a line attribute. Changing the `default` value will not update already existing documents.", + "responses": { + "200": { + "description": "AttributeLine", + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/attributeLine" + } + } + } + } + }, + "deprecated": true, + "x-appwrite": { + "method": "updateLineAttribute", + "group": "attributes", + "weight": 357, + "cookies": false, + "type": "", + "demo": "databases\/update-line-attribute.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-line-attribute.md", + "rate-limit": 0, + "rate-time": 3600, + "rate-key": "url:{url},ip:{ip}", + "scope": "collections.write", + "platforms": [ + "server" + ], + "packaging": false, + "deprecated": { + "since": "1.8.0", + "replaceWith": "tablesDB.updateLineColumn" + }, + "auth": { + "Project": [], + "Key": [] + } + }, + "security": [ + { + "Project": [], + "Key": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + }, + { + "name": "collectionId", + "description": "Collection ID. You can create a new collection using the Database service [server integration](https:\/\/appwrite.io\/docs\/server\/databases#createCollection).", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + }, + { + "name": "key", + "description": "Attribute Key.", + "required": true, + "schema": { + "type": "string" + }, + "in": "path" + } + ], + "requestBody": { + "content": { + "application\/json": { + "schema": { + "type": "object", + "properties": { + "required": { + "type": "boolean", + "description": "Is attribute required?", + "x-example": false + }, + "default": { + "type": "array", + "description": "Default value for attribute when not provided, two-dimensional array of coordinate pairs, [[longitude, latitude], [longitude, latitude], \u2026], listing the vertices of the line in order. Cannot be set when attribute is required.", + "x-example": "[[1, 2], [3, 4], [5, 6]]", + "items": { + "oneOf": [ + { + "type": "array" + } + ] + }, + "x-nullable": true + }, + "newKey": { + "type": "string", + "description": "New attribute key.", + "x-example": null + } + }, + "required": [ + "required" + ] + } + } + } + } + } + }, + "\/databases\/{databaseId}\/collections\/{collectionId}\/attributes\/point": { + "post": { + "summary": "Create point attribute", + "operationId": "databasesCreatePointAttribute", + "tags": [ + "databases" + ], + "description": "Create a geometric point attribute.", + "responses": { + "202": { + "description": "AttributePoint", + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/attributePoint" + } + } + } + } + }, + "deprecated": true, + "x-appwrite": { + "method": "createPointAttribute", + "group": "attributes", + "weight": 358, + "cookies": false, + "type": "", + "demo": "databases\/create-point-attribute.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-point-attribute.md", + "rate-limit": 0, + "rate-time": 3600, + "rate-key": "url:{url},ip:{ip}", + "scope": "collections.write", + "platforms": [ + "server" + ], + "packaging": false, + "deprecated": { + "since": "1.8.0", + "replaceWith": "tablesDB.createPointColumn" + }, + "auth": { + "Project": [], + "Key": [] + } + }, + "security": [ + { + "Project": [], + "Key": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + }, + { + "name": "collectionId", + "description": "Collection ID. You can create a new collection using the Database service [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateCollection).", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + } + ], + "requestBody": { + "content": { + "application\/json": { + "schema": { + "type": "object", + "properties": { + "key": { + "type": "string", + "description": "Attribute Key.", + "x-example": null + }, + "required": { + "type": "boolean", + "description": "Is attribute required?", + "x-example": false + }, + "default": { + "type": "array", + "description": "Default value for attribute when not provided, array of two numbers [longitude, latitude], representing a single coordinate. Cannot be set when attribute is required.", + "x-example": "[1, 2]", + "items": { + "oneOf": [ + { + "type": "array" + } + ] + }, + "x-nullable": true + } + }, + "required": [ + "key", + "required" + ] + } + } + } + } + } + }, + "\/databases\/{databaseId}\/collections\/{collectionId}\/attributes\/point\/{key}": { + "patch": { + "summary": "Update point attribute", + "operationId": "databasesUpdatePointAttribute", + "tags": [ + "databases" + ], + "description": "Update a point attribute. Changing the `default` value will not update already existing documents.", + "responses": { + "200": { + "description": "AttributePoint", + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/attributePoint" + } + } + } + } + }, + "deprecated": true, + "x-appwrite": { + "method": "updatePointAttribute", + "group": "attributes", + "weight": 359, + "cookies": false, + "type": "", + "demo": "databases\/update-point-attribute.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-point-attribute.md", + "rate-limit": 0, + "rate-time": 3600, + "rate-key": "url:{url},ip:{ip}", + "scope": "collections.write", + "platforms": [ + "server" + ], + "packaging": false, + "deprecated": { + "since": "1.8.0", + "replaceWith": "tablesDB.updatePointColumn" + }, + "auth": { + "Project": [], + "Key": [] + } + }, + "security": [ + { + "Project": [], + "Key": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + }, + { + "name": "collectionId", + "description": "Collection ID. You can create a new collection using the Database service [server integration](https:\/\/appwrite.io\/docs\/server\/databases#createCollection).", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + }, + { + "name": "key", + "description": "Attribute Key.", + "required": true, + "schema": { + "type": "string" + }, + "in": "path" + } + ], + "requestBody": { + "content": { + "application\/json": { + "schema": { + "type": "object", + "properties": { + "required": { + "type": "boolean", + "description": "Is attribute required?", + "x-example": false + }, + "default": { + "type": "array", + "description": "Default value for attribute when not provided, array of two numbers [longitude, latitude], representing a single coordinate. Cannot be set when attribute is required.", + "x-example": "[1, 2]", + "items": { + "oneOf": [ + { + "type": "array" + } + ] + }, + "x-nullable": true + }, + "newKey": { + "type": "string", + "description": "New attribute key.", + "x-example": null + } + }, + "required": [ + "required" + ] + } + } + } + } + } + }, + "\/databases\/{databaseId}\/collections\/{collectionId}\/attributes\/polygon": { + "post": { + "summary": "Create polygon attribute", + "operationId": "databasesCreatePolygonAttribute", + "tags": [ + "databases" + ], + "description": "Create a geometric polygon attribute.", + "responses": { + "202": { + "description": "AttributePolygon", + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/attributePolygon" + } + } + } + } + }, + "deprecated": true, + "x-appwrite": { + "method": "createPolygonAttribute", + "group": "attributes", + "weight": 360, + "cookies": false, + "type": "", + "demo": "databases\/create-polygon-attribute.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-polygon-attribute.md", + "rate-limit": 0, + "rate-time": 3600, + "rate-key": "url:{url},ip:{ip}", + "scope": "collections.write", + "platforms": [ + "server" + ], + "packaging": false, + "deprecated": { + "since": "1.8.0", + "replaceWith": "tablesDB.createPolygonColumn" + }, + "auth": { + "Project": [], + "Key": [] + } + }, + "security": [ + { + "Project": [], + "Key": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + }, + { + "name": "collectionId", + "description": "Collection ID. You can create a new collection using the Database service [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateCollection).", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + } + ], + "requestBody": { + "content": { + "application\/json": { + "schema": { + "type": "object", + "properties": { + "key": { + "type": "string", + "description": "Attribute Key.", + "x-example": null + }, + "required": { + "type": "boolean", + "description": "Is attribute required?", + "x-example": false + }, + "default": { + "type": "array", + "description": "Default value for attribute when not provided, three-dimensional array where the outer array holds one or more linear rings, [[[longitude, latitude], \u2026], \u2026], the first ring is the exterior boundary, any additional rings are interior holes, and each ring must start and end with the same coordinate pair. Cannot be set when attribute is required.", + "x-example": "[[[1, 2], [3, 4], [5, 6], [1, 2]]]", + "items": { + "oneOf": [ + { + "type": "array" + } + ] + }, + "x-nullable": true + } + }, + "required": [ + "key", + "required" + ] + } + } + } + } + } + }, + "\/databases\/{databaseId}\/collections\/{collectionId}\/attributes\/polygon\/{key}": { + "patch": { + "summary": "Update polygon attribute", + "operationId": "databasesUpdatePolygonAttribute", + "tags": [ + "databases" + ], + "description": "Update a polygon attribute. Changing the `default` value will not update already existing documents.", + "responses": { + "200": { + "description": "AttributePolygon", + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/attributePolygon" + } + } + } + } + }, + "deprecated": true, + "x-appwrite": { + "method": "updatePolygonAttribute", + "group": "attributes", + "weight": 361, + "cookies": false, + "type": "", + "demo": "databases\/update-polygon-attribute.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-polygon-attribute.md", + "rate-limit": 0, + "rate-time": 3600, + "rate-key": "url:{url},ip:{ip}", + "scope": "collections.write", + "platforms": [ + "server" + ], + "packaging": false, + "deprecated": { + "since": "1.8.0", + "replaceWith": "tablesDB.updatePolygonColumn" + }, + "auth": { + "Project": [], + "Key": [] + } + }, + "security": [ + { + "Project": [], + "Key": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + }, + { + "name": "collectionId", + "description": "Collection ID. You can create a new collection using the Database service [server integration](https:\/\/appwrite.io\/docs\/server\/databases#createCollection).", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + }, + { + "name": "key", + "description": "Attribute Key.", + "required": true, + "schema": { + "type": "string" + }, + "in": "path" + } + ], + "requestBody": { + "content": { + "application\/json": { + "schema": { + "type": "object", + "properties": { + "required": { + "type": "boolean", + "description": "Is attribute required?", + "x-example": false + }, + "default": { + "type": "array", + "description": "Default value for attribute when not provided, three-dimensional array where the outer array holds one or more linear rings, [[[longitude, latitude], \u2026], \u2026], the first ring is the exterior boundary, any additional rings are interior holes, and each ring must start and end with the same coordinate pair. Cannot be set when attribute is required.", + "x-example": "[[[1, 2], [3, 4], [5, 6], [1, 2]]]", + "items": { + "oneOf": [ + { + "type": "array" + } + ] + }, + "x-nullable": true + }, + "newKey": { + "type": "string", + "description": "New attribute key.", + "x-example": null + } + }, + "required": [ + "required" + ] + } + } + } + } + } + }, "\/databases\/{databaseId}\/collections\/{collectionId}\/attributes\/relationship": { "post": { "summary": "Create relationship attribute", @@ -7246,7 +7962,7 @@ "x-appwrite": { "method": "createRelationshipAttribute", "group": "attributes", - "weight": 361, + "weight": 362, "cookies": false, "type": "", "demo": "databases\/create-relationship-attribute.md", @@ -7382,7 +8098,7 @@ "x-appwrite": { "method": "createStringAttribute", "group": "attributes", - "weight": 363, + "weight": 364, "cookies": false, "type": "", "demo": "databases\/create-string-attribute.md", @@ -7504,7 +8220,7 @@ "x-appwrite": { "method": "updateStringAttribute", "group": "attributes", - "weight": 364, + "weight": 365, "cookies": false, "type": "", "demo": "databases\/update-string-attribute.md", @@ -7625,7 +8341,7 @@ "x-appwrite": { "method": "createUrlAttribute", "group": "attributes", - "weight": 365, + "weight": 366, "cookies": false, "type": "", "demo": "databases\/create-url-attribute.md", @@ -7736,7 +8452,7 @@ "x-appwrite": { "method": "updateUrlAttribute", "group": "attributes", - "weight": 366, + "weight": 367, "cookies": false, "type": "", "demo": "databases\/update-url-attribute.md", @@ -7883,7 +8599,7 @@ "x-appwrite": { "method": "getAttribute", "group": "attributes", - "weight": 344, + "weight": 339, "cookies": false, "type": "", "demo": "databases\/get-attribute.md", @@ -7959,7 +8675,7 @@ "x-appwrite": { "method": "deleteAttribute", "group": "attributes", - "weight": 345, + "weight": 340, "cookies": false, "type": "", "demo": "databases\/delete-attribute.md", @@ -8044,7 +8760,7 @@ "x-appwrite": { "method": "updateRelationshipAttribute", "group": "attributes", - "weight": 362, + "weight": 363, "cookies": false, "type": "", "demo": "databases\/update-relationship-attribute.md", @@ -8157,7 +8873,7 @@ "x-appwrite": { "method": "listDocuments", "group": "documents", - "weight": 340, + "weight": 335, "cookies": false, "type": "", "demo": "databases\/list-documents.md", @@ -8248,7 +8964,7 @@ "x-appwrite": { "method": "createDocument", "group": "documents", - "weight": 332, + "weight": 327, "cookies": false, "type": "", "demo": "databases\/create-document.md", @@ -8383,7 +9099,7 @@ "data": { "type": "object", "description": "Document data as JSON object.", - "x-example": "{}" + "x-example": "{\"username\":\"walter.obrien\",\"email\":\"walter.obrien@example.com\",\"fullName\":\"Walter O'Brien\",\"age\":30,\"isAdmin\":false}" }, "permissions": { "type": "array", @@ -8408,7 +9124,7 @@ } }, "put": { - "summary": "Create or update documents", + "summary": "Upsert documents", "operationId": "databasesUpsertDocuments", "tags": [ "databases" @@ -8430,7 +9146,7 @@ "x-appwrite": { "method": "upsertDocuments", "group": "documents", - "weight": 337, + "weight": 332, "cookies": false, "type": "", "demo": "databases\/upsert-documents.md", @@ -8560,7 +9276,7 @@ "x-appwrite": { "method": "updateDocuments", "group": "documents", - "weight": 335, + "weight": 330, "cookies": false, "type": "", "demo": "databases\/update-documents.md", @@ -8659,7 +9375,7 @@ "x-appwrite": { "method": "deleteDocuments", "group": "documents", - "weight": 339, + "weight": 334, "cookies": false, "type": "", "demo": "databases\/delete-documents.md", @@ -8755,7 +9471,7 @@ "x-appwrite": { "method": "getDocument", "group": "documents", - "weight": 333, + "weight": 328, "cookies": false, "type": "", "demo": "databases\/get-document.md", @@ -8834,7 +9550,7 @@ ] }, "put": { - "summary": "Create or update a document", + "summary": "Upsert a document", "operationId": "databasesUpsertDocument", "tags": [ "databases" @@ -8856,7 +9572,7 @@ "x-appwrite": { "method": "upsertDocument", "group": "documents", - "weight": 336, + "weight": 331, "cookies": false, "type": "", "demo": "databases\/upsert-document.md", @@ -9007,7 +9723,7 @@ "x-appwrite": { "method": "updateDocument", "group": "documents", - "weight": 334, + "weight": 329, "cookies": false, "type": "", "demo": "databases\/update-document.md", @@ -9112,7 +9828,7 @@ "x-appwrite": { "method": "deleteDocument", "group": "documents", - "weight": 338, + "weight": 333, "cookies": false, "type": "", "demo": "databases\/delete-document.md", @@ -9202,7 +9918,7 @@ "x-appwrite": { "method": "decrementDocumentAttribute", "group": "documents", - "weight": 343, + "weight": 338, "cookies": false, "type": "", "demo": "databases\/decrement-document-attribute.md", @@ -9323,7 +10039,7 @@ "x-appwrite": { "method": "incrementDocumentAttribute", "group": "documents", - "weight": 342, + "weight": 337, "cookies": false, "type": "", "demo": "databases\/increment-document-attribute.md", @@ -9444,7 +10160,7 @@ "x-appwrite": { "method": "listIndexes", "group": "indexes", - "weight": 370, + "weight": 371, "cookies": false, "type": "", "demo": "databases\/list-indexes.md", @@ -9531,7 +10247,7 @@ "x-appwrite": { "method": "createIndex", "group": "indexes", - "weight": 367, + "weight": 368, "cookies": false, "type": "", "demo": "databases\/create-index.md", @@ -9599,7 +10315,8 @@ "enum": [ "key", "fulltext", - "unique" + "unique", + "spatial" ], "x-enum-name": "IndexType", "x-enum-keys": [] @@ -9664,7 +10381,7 @@ "x-appwrite": { "method": "getIndex", "group": "indexes", - "weight": 368, + "weight": 369, "cookies": false, "type": "", "demo": "databases\/get-index.md", @@ -9740,7 +10457,7 @@ "x-appwrite": { "method": "deleteIndex", "group": "indexes", - "weight": 369, + "weight": 370, "cookies": false, "type": "", "demo": "databases\/delete-index.md", @@ -9825,7 +10542,7 @@ "x-appwrite": { "method": "list", "group": "functions", - "weight": 432, + "weight": 440, "cookies": false, "type": "", "demo": "functions\/list.md", @@ -9899,7 +10616,7 @@ "x-appwrite": { "method": "create", "group": "functions", - "weight": 429, + "weight": 437, "cookies": false, "type": "", "demo": "functions\/create.md", @@ -10133,7 +10850,7 @@ "x-appwrite": { "method": "listRuntimes", "group": "runtimes", - "weight": 434, + "weight": 442, "cookies": false, "type": "", "demo": "functions\/list-runtimes.md", @@ -10183,7 +10900,7 @@ "x-appwrite": { "method": "listSpecifications", "group": "runtimes", - "weight": 435, + "weight": 443, "cookies": false, "type": "", "demo": "functions\/list-specifications.md", @@ -10234,7 +10951,7 @@ "x-appwrite": { "method": "get", "group": "functions", - "weight": 430, + "weight": 438, "cookies": false, "type": "", "demo": "functions\/get.md", @@ -10294,7 +11011,7 @@ "x-appwrite": { "method": "update", "group": "functions", - "weight": 431, + "weight": 439, "cookies": false, "type": "", "demo": "functions\/update.md", @@ -10525,7 +11242,7 @@ "x-appwrite": { "method": "delete", "group": "functions", - "weight": 433, + "weight": 441, "cookies": false, "type": "", "demo": "functions\/delete.md", @@ -10587,7 +11304,7 @@ "x-appwrite": { "method": "updateFunctionDeployment", "group": "functions", - "weight": 438, + "weight": 446, "cookies": false, "type": "", "demo": "functions\/update-function-deployment.md", @@ -10668,7 +11385,7 @@ "x-appwrite": { "method": "listDeployments", "group": "deployments", - "weight": 439, + "weight": 447, "cookies": false, "type": "", "demo": "functions\/list-deployments.md", @@ -10752,7 +11469,7 @@ "x-appwrite": { "method": "createDeployment", "group": "deployments", - "weight": 436, + "weight": 444, "cookies": false, "type": "upload", "demo": "functions\/create-deployment.md", @@ -10849,7 +11566,7 @@ "x-appwrite": { "method": "createDuplicateDeployment", "group": "deployments", - "weight": 444, + "weight": 452, "cookies": false, "type": "", "demo": "functions\/create-duplicate-deployment.md", @@ -10935,7 +11652,7 @@ "x-appwrite": { "method": "createTemplateDeployment", "group": "deployments", - "weight": 441, + "weight": 449, "cookies": false, "type": "", "demo": "functions\/create-template-deployment.md", @@ -11039,7 +11756,7 @@ "x-appwrite": { "method": "createVcsDeployment", "group": "deployments", - "weight": 442, + "weight": 450, "cookies": false, "type": "", "demo": "functions\/create-vcs-deployment.md", @@ -11137,7 +11854,7 @@ "x-appwrite": { "method": "getDeployment", "group": "deployments", - "weight": 437, + "weight": 445, "cookies": false, "type": "", "demo": "functions\/get-deployment.md", @@ -11200,7 +11917,7 @@ "x-appwrite": { "method": "deleteDeployment", "group": "deployments", - "weight": 440, + "weight": 448, "cookies": false, "type": "", "demo": "functions\/delete-deployment.md", @@ -11265,7 +11982,7 @@ "x-appwrite": { "method": "getDeploymentDownload", "group": "deployments", - "weight": 443, + "weight": 451, "cookies": false, "type": "location", "demo": "functions\/get-deployment-download.md", @@ -11356,7 +12073,7 @@ "x-appwrite": { "method": "updateDeploymentStatus", "group": "deployments", - "weight": 445, + "weight": 453, "cookies": false, "type": "", "demo": "functions\/update-deployment-status.md", @@ -11428,7 +12145,7 @@ "x-appwrite": { "method": "listExecutions", "group": "executions", - "weight": 448, + "weight": 456, "cookies": false, "type": "", "demo": "functions\/list-executions.md", @@ -11505,7 +12222,7 @@ "x-appwrite": { "method": "createExecution", "group": "executions", - "weight": 446, + "weight": 454, "cookies": false, "type": "", "demo": "functions\/create-execution.md", @@ -11568,7 +12285,7 @@ }, "method": { "type": "string", - "description": "HTTP method of execution. Default value is GET.", + "description": "HTTP method of execution. Default value is POST.", "x-example": "GET", "enum": [ "GET", @@ -11576,7 +12293,8 @@ "PUT", "PATCH", "DELETE", - "OPTIONS" + "OPTIONS", + "HEAD" ], "x-enum-name": "ExecutionMethod", "x-enum-keys": [] @@ -11622,7 +12340,7 @@ "x-appwrite": { "method": "getExecution", "group": "executions", - "weight": 447, + "weight": 455, "cookies": false, "type": "", "demo": "functions\/get-execution.md", @@ -11689,7 +12407,7 @@ "x-appwrite": { "method": "deleteExecution", "group": "executions", - "weight": 449, + "weight": 457, "cookies": false, "type": "", "demo": "functions\/delete-execution.md", @@ -11761,7 +12479,7 @@ "x-appwrite": { "method": "listVariables", "group": "variables", - "weight": 454, + "weight": 462, "cookies": false, "type": "", "demo": "functions\/list-variables.md", @@ -11821,7 +12539,7 @@ "x-appwrite": { "method": "createVariable", "group": "variables", - "weight": 452, + "weight": 460, "cookies": false, "type": "", "demo": "functions\/create-variable.md", @@ -11913,7 +12631,7 @@ "x-appwrite": { "method": "getVariable", "group": "variables", - "weight": 453, + "weight": 461, "cookies": false, "type": "", "demo": "functions\/get-variable.md", @@ -11983,7 +12701,7 @@ "x-appwrite": { "method": "updateVariable", "group": "variables", - "weight": 455, + "weight": 463, "cookies": false, "type": "", "demo": "functions\/update-variable.md", @@ -12075,7 +12793,7 @@ "x-appwrite": { "method": "deleteVariable", "group": "variables", - "weight": 456, + "weight": 464, "cookies": false, "type": "", "demo": "functions\/delete-variable.md", @@ -12147,7 +12865,7 @@ "x-appwrite": { "method": "query", "group": "graphql", - "weight": 255, + "weight": 250, "cookies": false, "type": "graphql", "demo": "graphql\/query.md", @@ -12201,7 +12919,7 @@ "x-appwrite": { "method": "mutation", "group": "graphql", - "weight": 254, + "weight": 249, "cookies": false, "type": "graphql", "demo": "graphql\/mutation.md", @@ -12469,7 +13187,7 @@ "weight": 80, "cookies": false, "type": "", - "demo": "health\/get-d-b.md", + "demo": "health\/get-db.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/health\/get-db.md", "rate-limit": 0, "rate-time": 3600, @@ -13211,7 +13929,7 @@ }, "\/health\/queue\/stats-resources": { "get": { - "summary": "Get stats resources queue", + "summary": "Get stats resources queue", "operationId": "healthGetQueueStatsResources", "tags": [ "health" @@ -13791,7 +14509,7 @@ "weight": 73, "cookies": false, "type": "", - "demo": "locale\/list-countries-e-u.md", + "demo": "locale\/list-countries-eu.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/locale\/list-countries-eu.md", "rate-limit": 0, "rate-time": 3600, @@ -14004,7 +14722,7 @@ "x-appwrite": { "method": "listMessages", "group": "messages", - "weight": 309, + "weight": 304, "cookies": false, "type": "", "demo": "messaging\/list-messages.md", @@ -14081,7 +14799,7 @@ "x-appwrite": { "method": "createEmail", "group": "messages", - "weight": 306, + "weight": 301, "cookies": false, "type": "", "demo": "messaging\/create-email.md", @@ -14226,7 +14944,7 @@ "x-appwrite": { "method": "updateEmail", "group": "messages", - "weight": 313, + "weight": 308, "cookies": false, "type": "", "demo": "messaging\/update-email.md", @@ -14373,7 +15091,7 @@ "x-appwrite": { "method": "createPush", "group": "messages", - "weight": 308, + "weight": 303, "cookies": false, "type": "", "demo": "messaging\/create-push.md", @@ -14548,7 +15266,7 @@ "x-appwrite": { "method": "updatePush", "group": "messages", - "weight": 315, + "weight": 310, "cookies": false, "type": "", "demo": "messaging\/update-push.md", @@ -14727,7 +15445,7 @@ "x-appwrite": { "method": "createSms", "group": "messages", - "weight": 307, + "weight": 302, "cookies": false, "type": "", "demo": "messaging\/create-sms.md", @@ -14808,7 +15526,7 @@ } ], "description": "Create a new SMS message.", - "demo": "messaging\/create-s-m-s.md" + "demo": "messaging\/create-sms.md" } ], "auth": { @@ -14907,7 +15625,7 @@ "x-appwrite": { "method": "updateSms", "group": "messages", - "weight": 314, + "weight": 309, "cookies": false, "type": "", "demo": "messaging\/update-sms.md", @@ -14986,7 +15704,7 @@ } ], "description": "Update an SMS message by its unique ID. This endpoint only works on messages that are in draft status. Messages that are already processing, sent, or failed cannot be updated.\n", - "demo": "messaging\/update-s-m-s.md" + "demo": "messaging\/update-sms.md" } ], "auth": { @@ -15088,7 +15806,7 @@ "x-appwrite": { "method": "getMessage", "group": "messages", - "weight": 312, + "weight": 307, "cookies": false, "type": "", "demo": "messaging\/get-message.md", @@ -15142,7 +15860,7 @@ "x-appwrite": { "method": "delete", "group": "messages", - "weight": 316, + "weight": 311, "cookies": false, "type": "", "demo": "messaging\/delete.md", @@ -15205,7 +15923,7 @@ "x-appwrite": { "method": "listMessageLogs", "group": "logs", - "weight": 310, + "weight": 305, "cookies": false, "type": "", "demo": "messaging\/list-message-logs.md", @@ -15281,7 +15999,7 @@ "x-appwrite": { "method": "listTargets", "group": "messages", - "weight": 311, + "weight": 306, "cookies": false, "type": "", "demo": "messaging\/list-targets.md", @@ -15357,7 +16075,7 @@ "x-appwrite": { "method": "listProviders", "group": "providers", - "weight": 281, + "weight": 276, "cookies": false, "type": "", "demo": "messaging\/list-providers.md", @@ -15434,7 +16152,7 @@ "x-appwrite": { "method": "createApnsProvider", "group": "providers", - "weight": 280, + "weight": 275, "cookies": false, "type": "", "demo": "messaging\/create-apns-provider.md", @@ -15517,7 +16235,7 @@ } ], "description": "Create a new Apple Push Notification service provider.", - "demo": "messaging\/create-a-p-n-s-provider.md" + "demo": "messaging\/create-apns-provider.md" } ], "auth": { @@ -15612,7 +16330,7 @@ "x-appwrite": { "method": "updateApnsProvider", "group": "providers", - "weight": 293, + "weight": 288, "cookies": false, "type": "", "demo": "messaging\/update-apns-provider.md", @@ -15693,7 +16411,7 @@ } ], "description": "Update a Apple Push Notification service provider by its unique ID.", - "demo": "messaging\/update-a-p-n-s-provider.md" + "demo": "messaging\/update-apns-provider.md" } ], "auth": { @@ -15791,7 +16509,7 @@ "x-appwrite": { "method": "createFcmProvider", "group": "providers", - "weight": 279, + "weight": 274, "cookies": false, "type": "", "demo": "messaging\/create-fcm-provider.md", @@ -15866,7 +16584,7 @@ } ], "description": "Create a new Firebase Cloud Messaging provider.", - "demo": "messaging\/create-f-c-m-provider.md" + "demo": "messaging\/create-fcm-provider.md" } ], "auth": { @@ -15941,7 +16659,7 @@ "x-appwrite": { "method": "updateFcmProvider", "group": "providers", - "weight": 292, + "weight": 287, "cookies": false, "type": "", "demo": "messaging\/update-fcm-provider.md", @@ -16014,7 +16732,7 @@ } ], "description": "Update a Firebase Cloud Messaging provider by its unique ID.", - "demo": "messaging\/update-f-c-m-provider.md" + "demo": "messaging\/update-fcm-provider.md" } ], "auth": { @@ -16092,7 +16810,7 @@ "x-appwrite": { "method": "createMailgunProvider", "group": "providers", - "weight": 271, + "weight": 266, "cookies": false, "type": "", "demo": "messaging\/create-mailgun-provider.md", @@ -16208,7 +16926,7 @@ "x-appwrite": { "method": "updateMailgunProvider", "group": "providers", - "weight": 284, + "weight": 279, "cookies": false, "type": "", "demo": "messaging\/update-mailgun-provider.md", @@ -16327,10 +17045,10 @@ "x-appwrite": { "method": "createMsg91Provider", "group": "providers", - "weight": 274, + "weight": 269, "cookies": false, "type": "", - "demo": "messaging\/create-msg91provider.md", + "demo": "messaging\/create-msg-91-provider.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/messaging\/create-msg91-provider.md", "rate-limit": 0, "rate-time": 3600, @@ -16423,10 +17141,10 @@ "x-appwrite": { "method": "updateMsg91Provider", "group": "providers", - "weight": 287, + "weight": 282, "cookies": false, "type": "", - "demo": "messaging\/update-msg91provider.md", + "demo": "messaging\/update-msg-91-provider.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/messaging\/update-msg91-provider.md", "rate-limit": 0, "rate-time": 3600, @@ -16522,7 +17240,7 @@ "x-appwrite": { "method": "createSendgridProvider", "group": "providers", - "weight": 272, + "weight": 267, "cookies": false, "type": "", "demo": "messaging\/create-sendgrid-provider.md", @@ -16628,7 +17346,7 @@ "x-appwrite": { "method": "updateSendgridProvider", "group": "providers", - "weight": 285, + "weight": 280, "cookies": false, "type": "", "demo": "messaging\/update-sendgrid-provider.md", @@ -16737,7 +17455,7 @@ "x-appwrite": { "method": "createSmtpProvider", "group": "providers", - "weight": 273, + "weight": 268, "cookies": false, "type": "", "demo": "messaging\/create-smtp-provider.md", @@ -16834,7 +17552,7 @@ } ], "description": "Create a new SMTP provider.", - "demo": "messaging\/create-s-m-t-p-provider.md" + "demo": "messaging\/create-smtp-provider.md" } ], "auth": { @@ -16967,7 +17685,7 @@ "x-appwrite": { "method": "updateSmtpProvider", "group": "providers", - "weight": 286, + "weight": 281, "cookies": false, "type": "", "demo": "messaging\/update-smtp-provider.md", @@ -17060,7 +17778,7 @@ } ], "description": "Update a SMTP provider by its unique ID.", - "demo": "messaging\/update-s-m-t-p-provider.md" + "demo": "messaging\/update-smtp-provider.md" } ], "auth": { @@ -17195,7 +17913,7 @@ "x-appwrite": { "method": "createTelesignProvider", "group": "providers", - "weight": 275, + "weight": 270, "cookies": false, "type": "", "demo": "messaging\/create-telesign-provider.md", @@ -17291,7 +18009,7 @@ "x-appwrite": { "method": "updateTelesignProvider", "group": "providers", - "weight": 288, + "weight": 283, "cookies": false, "type": "", "demo": "messaging\/update-telesign-provider.md", @@ -17390,7 +18108,7 @@ "x-appwrite": { "method": "createTextmagicProvider", "group": "providers", - "weight": 276, + "weight": 271, "cookies": false, "type": "", "demo": "messaging\/create-textmagic-provider.md", @@ -17486,7 +18204,7 @@ "x-appwrite": { "method": "updateTextmagicProvider", "group": "providers", - "weight": 289, + "weight": 284, "cookies": false, "type": "", "demo": "messaging\/update-textmagic-provider.md", @@ -17585,7 +18303,7 @@ "x-appwrite": { "method": "createTwilioProvider", "group": "providers", - "weight": 277, + "weight": 272, "cookies": false, "type": "", "demo": "messaging\/create-twilio-provider.md", @@ -17681,7 +18399,7 @@ "x-appwrite": { "method": "updateTwilioProvider", "group": "providers", - "weight": 290, + "weight": 285, "cookies": false, "type": "", "demo": "messaging\/update-twilio-provider.md", @@ -17780,7 +18498,7 @@ "x-appwrite": { "method": "createVonageProvider", "group": "providers", - "weight": 278, + "weight": 273, "cookies": false, "type": "", "demo": "messaging\/create-vonage-provider.md", @@ -17876,7 +18594,7 @@ "x-appwrite": { "method": "updateVonageProvider", "group": "providers", - "weight": 291, + "weight": 286, "cookies": false, "type": "", "demo": "messaging\/update-vonage-provider.md", @@ -17975,7 +18693,7 @@ "x-appwrite": { "method": "getProvider", "group": "providers", - "weight": 283, + "weight": 278, "cookies": false, "type": "", "demo": "messaging\/get-provider.md", @@ -18029,7 +18747,7 @@ "x-appwrite": { "method": "deleteProvider", "group": "providers", - "weight": 294, + "weight": 289, "cookies": false, "type": "", "demo": "messaging\/delete-provider.md", @@ -18092,7 +18810,7 @@ "x-appwrite": { "method": "listProviderLogs", "group": "providers", - "weight": 282, + "weight": 277, "cookies": false, "type": "", "demo": "messaging\/list-provider-logs.md", @@ -18168,7 +18886,7 @@ "x-appwrite": { "method": "listSubscriberLogs", "group": "subscribers", - "weight": 303, + "weight": 298, "cookies": false, "type": "", "demo": "messaging\/list-subscriber-logs.md", @@ -18244,7 +18962,7 @@ "x-appwrite": { "method": "listTopics", "group": "topics", - "weight": 296, + "weight": 291, "cookies": false, "type": "", "demo": "messaging\/list-topics.md", @@ -18319,7 +19037,7 @@ "x-appwrite": { "method": "createTopic", "group": "topics", - "weight": 295, + "weight": 290, "cookies": false, "type": "", "demo": "messaging\/create-topic.md", @@ -18403,7 +19121,7 @@ "x-appwrite": { "method": "getTopic", "group": "topics", - "weight": 298, + "weight": 293, "cookies": false, "type": "", "demo": "messaging\/get-topic.md", @@ -18464,7 +19182,7 @@ "x-appwrite": { "method": "updateTopic", "group": "topics", - "weight": 299, + "weight": 294, "cookies": false, "type": "", "demo": "messaging\/update-topic.md", @@ -18542,7 +19260,7 @@ "x-appwrite": { "method": "deleteTopic", "group": "topics", - "weight": 300, + "weight": 295, "cookies": false, "type": "", "demo": "messaging\/delete-topic.md", @@ -18605,7 +19323,7 @@ "x-appwrite": { "method": "listTopicLogs", "group": "topics", - "weight": 297, + "weight": 292, "cookies": false, "type": "", "demo": "messaging\/list-topic-logs.md", @@ -18681,7 +19399,7 @@ "x-appwrite": { "method": "listSubscribers", "group": "subscribers", - "weight": 302, + "weight": 297, "cookies": false, "type": "", "demo": "messaging\/list-subscribers.md", @@ -18766,7 +19484,7 @@ "x-appwrite": { "method": "createSubscriber", "group": "subscribers", - "weight": 301, + "weight": 296, "cookies": false, "type": "", "demo": "messaging\/create-subscriber.md", @@ -18858,7 +19576,7 @@ "x-appwrite": { "method": "getSubscriber", "group": "subscribers", - "weight": 304, + "weight": 299, "cookies": false, "type": "", "demo": "messaging\/get-subscriber.md", @@ -18922,7 +19640,7 @@ "x-appwrite": { "method": "deleteSubscriber", "group": "subscribers", - "weight": 305, + "weight": 300, "cookies": false, "type": "", "demo": "messaging\/delete-subscriber.md", @@ -18999,7 +19717,7 @@ "x-appwrite": { "method": "list", "group": "sites", - "weight": 461, + "weight": 469, "cookies": false, "type": "", "demo": "sites\/list.md", @@ -19070,7 +19788,7 @@ "x-appwrite": { "method": "create", "group": "sites", - "weight": 459, + "weight": 467, "cookies": false, "type": "", "demo": "sites\/create.md", @@ -19320,7 +20038,7 @@ "x-appwrite": { "method": "listFrameworks", "group": "frameworks", - "weight": 464, + "weight": 472, "cookies": false, "type": "", "demo": "sites\/list-frameworks.md", @@ -19370,7 +20088,7 @@ "x-appwrite": { "method": "listSpecifications", "group": "frameworks", - "weight": 487, + "weight": 495, "cookies": false, "type": "", "demo": "sites\/list-specifications.md", @@ -19421,7 +20139,7 @@ "x-appwrite": { "method": "get", "group": "sites", - "weight": 460, + "weight": 468, "cookies": false, "type": "", "demo": "sites\/get.md", @@ -19481,7 +20199,7 @@ "x-appwrite": { "method": "update", "group": "sites", - "weight": 462, + "weight": 470, "cookies": false, "type": "", "demo": "sites\/update.md", @@ -19727,7 +20445,7 @@ "x-appwrite": { "method": "delete", "group": "sites", - "weight": 463, + "weight": 471, "cookies": false, "type": "", "demo": "sites\/delete.md", @@ -19789,7 +20507,7 @@ "x-appwrite": { "method": "updateSiteDeployment", "group": "sites", - "weight": 470, + "weight": 478, "cookies": false, "type": "", "demo": "sites\/update-site-deployment.md", @@ -19870,7 +20588,7 @@ "x-appwrite": { "method": "listDeployments", "group": "deployments", - "weight": 469, + "weight": 477, "cookies": false, "type": "", "demo": "sites\/list-deployments.md", @@ -19954,7 +20672,7 @@ "x-appwrite": { "method": "createDeployment", "group": "deployments", - "weight": 465, + "weight": 473, "cookies": false, "type": "upload", "demo": "sites\/create-deployment.md", @@ -20056,7 +20774,7 @@ "x-appwrite": { "method": "createDuplicateDeployment", "group": "deployments", - "weight": 473, + "weight": 481, "cookies": false, "type": "", "demo": "sites\/create-duplicate-deployment.md", @@ -20137,7 +20855,7 @@ "x-appwrite": { "method": "createTemplateDeployment", "group": "deployments", - "weight": 466, + "weight": 474, "cookies": false, "type": "", "demo": "sites\/create-template-deployment.md", @@ -20241,7 +20959,7 @@ "x-appwrite": { "method": "createVcsDeployment", "group": "deployments", - "weight": 467, + "weight": 475, "cookies": false, "type": "", "demo": "sites\/create-vcs-deployment.md", @@ -20340,7 +21058,7 @@ "x-appwrite": { "method": "getDeployment", "group": "deployments", - "weight": 468, + "weight": 476, "cookies": false, "type": "", "demo": "sites\/get-deployment.md", @@ -20403,7 +21121,7 @@ "x-appwrite": { "method": "deleteDeployment", "group": "deployments", - "weight": 471, + "weight": 479, "cookies": false, "type": "", "demo": "sites\/delete-deployment.md", @@ -20468,7 +21186,7 @@ "x-appwrite": { "method": "getDeploymentDownload", "group": "deployments", - "weight": 472, + "weight": 480, "cookies": false, "type": "location", "demo": "sites\/get-deployment-download.md", @@ -20559,7 +21277,7 @@ "x-appwrite": { "method": "updateDeploymentStatus", "group": "deployments", - "weight": 474, + "weight": 482, "cookies": false, "type": "", "demo": "sites\/update-deployment-status.md", @@ -20631,7 +21349,7 @@ "x-appwrite": { "method": "listLogs", "group": "logs", - "weight": 476, + "weight": 484, "cookies": false, "type": "", "demo": "sites\/list-logs.md", @@ -20703,7 +21421,7 @@ "x-appwrite": { "method": "getLog", "group": "logs", - "weight": 475, + "weight": 483, "cookies": false, "type": "", "demo": "sites\/get-log.md", @@ -20766,7 +21484,7 @@ "x-appwrite": { "method": "deleteLog", "group": "logs", - "weight": 477, + "weight": 485, "cookies": false, "type": "", "demo": "sites\/delete-log.md", @@ -20838,7 +21556,7 @@ "x-appwrite": { "method": "listVariables", "group": "variables", - "weight": 480, + "weight": 488, "cookies": false, "type": "", "demo": "sites\/list-variables.md", @@ -20898,7 +21616,7 @@ "x-appwrite": { "method": "createVariable", "group": "variables", - "weight": 478, + "weight": 486, "cookies": false, "type": "", "demo": "sites\/create-variable.md", @@ -20990,7 +21708,7 @@ "x-appwrite": { "method": "getVariable", "group": "variables", - "weight": 479, + "weight": 487, "cookies": false, "type": "", "demo": "sites\/get-variable.md", @@ -21060,7 +21778,7 @@ "x-appwrite": { "method": "updateVariable", "group": "variables", - "weight": 481, + "weight": 489, "cookies": false, "type": "", "demo": "sites\/update-variable.md", @@ -21152,7 +21870,7 @@ "x-appwrite": { "method": "deleteVariable", "group": "variables", - "weight": 482, + "weight": 490, "cookies": false, "type": "", "demo": "sites\/delete-variable.md", @@ -21224,7 +21942,7 @@ "x-appwrite": { "method": "listBuckets", "group": "buckets", - "weight": 156, + "weight": 155, "cookies": false, "type": "", "demo": "storage\/list-buckets.md", @@ -21298,7 +22016,7 @@ "x-appwrite": { "method": "createBucket", "group": "buckets", - "weight": 155, + "weight": 154, "cookies": false, "type": "", "demo": "storage\/create-bucket.md", @@ -21426,7 +22144,7 @@ "x-appwrite": { "method": "getBucket", "group": "buckets", - "weight": 157, + "weight": 156, "cookies": false, "type": "", "demo": "storage\/get-bucket.md", @@ -21486,7 +22204,7 @@ "x-appwrite": { "method": "updateBucket", "group": "buckets", - "weight": 158, + "weight": 157, "cookies": false, "type": "", "demo": "storage\/update-bucket.md", @@ -21611,7 +22329,7 @@ "x-appwrite": { "method": "deleteBucket", "group": "buckets", - "weight": 159, + "weight": 158, "cookies": false, "type": "", "demo": "storage\/delete-bucket.md", @@ -21673,7 +22391,7 @@ "x-appwrite": { "method": "listFiles", "group": "files", - "weight": 161, + "weight": 160, "cookies": false, "type": "", "demo": "storage\/list-files.md", @@ -21761,7 +22479,7 @@ "x-appwrite": { "method": "createFile", "group": "files", - "weight": 160, + "weight": 159, "cookies": false, "type": "upload", "demo": "storage\/create-file.md", @@ -21861,7 +22579,7 @@ "x-appwrite": { "method": "getFile", "group": "files", - "weight": 162, + "weight": 161, "cookies": false, "type": "", "demo": "storage\/get-file.md", @@ -21935,7 +22653,7 @@ "x-appwrite": { "method": "updateFile", "group": "files", - "weight": 167, + "weight": 166, "cookies": false, "type": "", "demo": "storage\/update-file.md", @@ -22026,7 +22744,7 @@ "x-appwrite": { "method": "deleteFile", "group": "files", - "weight": 168, + "weight": 167, "cookies": false, "type": "", "demo": "storage\/delete-file.md", @@ -22095,7 +22813,7 @@ "x-appwrite": { "method": "getFileDownload", "group": "files", - "weight": 164, + "weight": 163, "cookies": false, "type": "location", "demo": "storage\/get-file-download.md", @@ -22175,7 +22893,7 @@ "x-appwrite": { "method": "getFilePreview", "group": "files", - "weight": 163, + "weight": 162, "cookies": false, "type": "location", "demo": "storage\/get-file-preview.md", @@ -22405,7 +23123,7 @@ "x-appwrite": { "method": "getFileView", "group": "files", - "weight": 165, + "weight": 164, "cookies": false, "type": "location", "demo": "storage\/get-file-view.md", @@ -22492,10 +23210,10 @@ "x-appwrite": { "method": "list", "group": "tablesdb", - "weight": 375, + "weight": 376, "cookies": false, "type": "", - "demo": "tables-d-b\/list.md", + "demo": "tablesdb\/list.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/list.md", "rate-limit": 0, "rate-time": 3600, @@ -22566,10 +23284,10 @@ "x-appwrite": { "method": "create", "group": "tablesdb", - "weight": 371, + "weight": 372, "cookies": false, "type": "", - "demo": "tables-d-b\/create.md", + "demo": "tablesdb\/create.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/create.md", "rate-limit": 0, "rate-time": 3600, @@ -22646,10 +23364,10 @@ "x-appwrite": { "method": "get", "group": "tablesdb", - "weight": 372, + "weight": 373, "cookies": false, "type": "", - "demo": "tables-d-b\/get.md", + "demo": "tablesdb\/get.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/get.md", "rate-limit": 0, "rate-time": 3600, @@ -22706,10 +23424,10 @@ "x-appwrite": { "method": "update", "group": "tablesdb", - "weight": 373, + "weight": 374, "cookies": false, "type": "", - "demo": "tables-d-b\/update.md", + "demo": "tablesdb\/update.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/update.md", "rate-limit": 0, "rate-time": 3600, @@ -22783,10 +23501,10 @@ "x-appwrite": { "method": "delete", "group": "tablesdb", - "weight": 374, + "weight": 375, "cookies": false, "type": "", - "demo": "tables-d-b\/delete.md", + "demo": "tablesdb\/delete.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/delete.md", "rate-limit": 0, "rate-time": 3600, @@ -22844,16 +23562,19 @@ "deprecated": false, "x-appwrite": { "method": "listTables", - "group": null, - "weight": 382, + "group": "tables", + "weight": 383, "cookies": false, "type": "", - "demo": "tables-d-b\/list-tables.md", + "demo": "tablesdb\/list-tables.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/list-tables.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "tables.read", + "scope": [ + "tables.read", + "collections.read" + ], "platforms": [ "server" ], @@ -22928,16 +23649,19 @@ "deprecated": false, "x-appwrite": { "method": "createTable", - "group": null, - "weight": 378, + "group": "tables", + "weight": 379, "cookies": false, "type": "", - "demo": "tables-d-b\/create-table.md", + "demo": "tablesdb\/create-table.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/create-table.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "tables.write", + "scope": [ + "tables.write", + "collections.write" + ], "platforms": [ "server" ], @@ -23033,16 +23757,19 @@ "deprecated": false, "x-appwrite": { "method": "getTable", - "group": null, - "weight": 379, + "group": "tables", + "weight": 380, "cookies": false, "type": "", - "demo": "tables-d-b\/get-table.md", + "demo": "tablesdb\/get-table.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/get-table.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "tables.read", + "scope": [ + "tables.read", + "collections.read" + ], "platforms": [ "server" ], @@ -23103,16 +23830,19 @@ "deprecated": false, "x-appwrite": { "method": "updateTable", - "group": null, - "weight": 380, + "group": "tables", + "weight": 381, "cookies": false, "type": "", - "demo": "tables-d-b\/update-table.md", + "demo": "tablesdb\/update-table.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/update-table.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "tables.write", + "scope": [ + "tables.write", + "collections.write" + ], "platforms": [ "server" ], @@ -23203,16 +23933,19 @@ "deprecated": false, "x-appwrite": { "method": "deleteTable", - "group": null, - "weight": 381, + "group": "tables", + "weight": 382, "cookies": false, "type": "", - "demo": "tables-d-b\/delete-table.md", + "demo": "tablesdb\/delete-table.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/delete-table.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "tables.write", + "scope": [ + "tables.write", + "collections.write" + ], "platforms": [ "server" ], @@ -23276,15 +24009,18 @@ "x-appwrite": { "method": "listColumns", "group": "columns", - "weight": 387, + "weight": 388, "cookies": false, "type": "", - "demo": "tables-d-b\/list-columns.md", + "demo": "tablesdb\/list-columns.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/list-columns.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "tables.read", + "scope": [ + "tables.read", + "collections.read" + ], "platforms": [ "server" ], @@ -23361,15 +24097,18 @@ "x-appwrite": { "method": "createBooleanColumn", "group": "columns", - "weight": 388, + "weight": 389, "cookies": false, "type": "", - "demo": "tables-d-b\/create-boolean-column.md", + "demo": "tablesdb\/create-boolean-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/create-boolean-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "tables.write", + "scope": [ + "tables.write", + "collections.write" + ], "platforms": [ "server" ], @@ -23468,15 +24207,18 @@ "x-appwrite": { "method": "updateBooleanColumn", "group": "columns", - "weight": 389, + "weight": 390, "cookies": false, "type": "", - "demo": "tables-d-b\/update-boolean-column.md", + "demo": "tablesdb\/update-boolean-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/update-boolean-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "tables.write", + "scope": [ + "tables.write", + "collections.write" + ], "platforms": [ "server" ], @@ -23580,15 +24322,18 @@ "x-appwrite": { "method": "createDatetimeColumn", "group": "columns", - "weight": 390, + "weight": 391, "cookies": false, "type": "", - "demo": "tables-d-b\/create-datetime-column.md", + "demo": "tablesdb\/create-datetime-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/create-datetime-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "tables.write", + "scope": [ + "tables.write", + "collections.write" + ], "platforms": [ "server" ], @@ -23687,15 +24432,18 @@ "x-appwrite": { "method": "updateDatetimeColumn", "group": "columns", - "weight": 391, + "weight": 392, "cookies": false, "type": "", - "demo": "tables-d-b\/update-datetime-column.md", + "demo": "tablesdb\/update-datetime-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/update-datetime-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "tables.write", + "scope": [ + "tables.write", + "collections.write" + ], "platforms": [ "server" ], @@ -23799,15 +24547,18 @@ "x-appwrite": { "method": "createEmailColumn", "group": "columns", - "weight": 392, + "weight": 393, "cookies": false, "type": "", - "demo": "tables-d-b\/create-email-column.md", + "demo": "tablesdb\/create-email-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/create-email-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "tables.write", + "scope": [ + "tables.write", + "collections.write" + ], "platforms": [ "server" ], @@ -23906,15 +24657,18 @@ "x-appwrite": { "method": "updateEmailColumn", "group": "columns", - "weight": 393, + "weight": 394, "cookies": false, "type": "", - "demo": "tables-d-b\/update-email-column.md", + "demo": "tablesdb\/update-email-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/update-email-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "tables.write", + "scope": [ + "tables.write", + "collections.write" + ], "platforms": [ "server" ], @@ -24018,15 +24772,18 @@ "x-appwrite": { "method": "createEnumColumn", "group": "columns", - "weight": 394, + "weight": 395, "cookies": false, "type": "", - "demo": "tables-d-b\/create-enum-column.md", + "demo": "tablesdb\/create-enum-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/create-enum-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "tables.write", + "scope": [ + "tables.write", + "collections.write" + ], "platforms": [ "server" ], @@ -24134,15 +24891,18 @@ "x-appwrite": { "method": "updateEnumColumn", "group": "columns", - "weight": 395, + "weight": 396, "cookies": false, "type": "", - "demo": "tables-d-b\/update-enum-column.md", + "demo": "tablesdb\/update-enum-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/update-enum-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "tables.write", + "scope": [ + "tables.write", + "collections.write" + ], "platforms": [ "server" ], @@ -24255,15 +25015,18 @@ "x-appwrite": { "method": "createFloatColumn", "group": "columns", - "weight": 396, + "weight": 397, "cookies": false, "type": "", - "demo": "tables-d-b\/create-float-column.md", + "demo": "tablesdb\/create-float-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/create-float-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "tables.write", + "scope": [ + "tables.write", + "collections.write" + ], "platforms": [ "server" ], @@ -24372,15 +25135,18 @@ "x-appwrite": { "method": "updateFloatColumn", "group": "columns", - "weight": 397, + "weight": 398, "cookies": false, "type": "", - "demo": "tables-d-b\/update-float-column.md", + "demo": "tablesdb\/update-float-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/update-float-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "tables.write", + "scope": [ + "tables.write", + "collections.write" + ], "platforms": [ "server" ], @@ -24494,15 +25260,18 @@ "x-appwrite": { "method": "createIntegerColumn", "group": "columns", - "weight": 398, + "weight": 399, "cookies": false, "type": "", - "demo": "tables-d-b\/create-integer-column.md", + "demo": "tablesdb\/create-integer-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/create-integer-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "tables.write", + "scope": [ + "tables.write", + "collections.write" + ], "platforms": [ "server" ], @@ -24611,15 +25380,18 @@ "x-appwrite": { "method": "updateIntegerColumn", "group": "columns", - "weight": 399, + "weight": 400, "cookies": false, "type": "", - "demo": "tables-d-b\/update-integer-column.md", + "demo": "tablesdb\/update-integer-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/update-integer-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "tables.write", + "scope": [ + "tables.write", + "collections.write" + ], "platforms": [ "server" ], @@ -24733,15 +25505,18 @@ "x-appwrite": { "method": "createIpColumn", "group": "columns", - "weight": 400, + "weight": 401, "cookies": false, "type": "", - "demo": "tables-d-b\/create-ip-column.md", + "demo": "tablesdb\/create-ip-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/create-ip-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "tables.write", + "scope": [ + "tables.write", + "collections.write" + ], "platforms": [ "server" ], @@ -24840,15 +25615,18 @@ "x-appwrite": { "method": "updateIpColumn", "group": "columns", - "weight": 401, + "weight": 402, "cookies": false, "type": "", - "demo": "tables-d-b\/update-ip-column.md", + "demo": "tablesdb\/update-ip-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/update-ip-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "tables.write", + "scope": [ + "tables.write", + "collections.write" + ], "platforms": [ "server" ], @@ -24928,6 +25706,708 @@ } } }, + "\/tablesdb\/{databaseId}\/tables\/{tableId}\/columns\/line": { + "post": { + "summary": "Create line column", + "operationId": "tablesDBCreateLineColumn", + "tags": [ + "tablesDB" + ], + "description": "Create a geometric line column.", + "responses": { + "202": { + "description": "ColumnLine", + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/columnLine" + } + } + } + } + }, + "deprecated": false, + "x-appwrite": { + "method": "createLineColumn", + "group": "columns", + "weight": 403, + "cookies": false, + "type": "", + "demo": "tablesdb\/create-line-column.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/create-line-column.md", + "rate-limit": 0, + "rate-time": 3600, + "rate-key": "url:{url},ip:{ip}", + "scope": [ + "tables.write", + "collections.write" + ], + "platforms": [ + "server" + ], + "packaging": false, + "auth": { + "Project": [], + "Key": [] + } + }, + "security": [ + { + "Project": [], + "Key": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + }, + { + "name": "tableId", + "description": "Table ID. You can create a new table using the TablesDB service [server integration](https:\/\/appwrite.io\/docs\/server\/tablesdb#tablesDBCreate).", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + } + ], + "requestBody": { + "content": { + "application\/json": { + "schema": { + "type": "object", + "properties": { + "key": { + "type": "string", + "description": "Column Key.", + "x-example": null + }, + "required": { + "type": "boolean", + "description": "Is column required?", + "x-example": false + }, + "default": { + "type": "array", + "description": "Default value for column when not provided, two-dimensional array of coordinate pairs, [[longitude, latitude], [longitude, latitude], \u2026], listing the vertices of the line in order. Cannot be set when column is required.", + "x-example": "[[1, 2], [3, 4], [5, 6]]", + "items": { + "oneOf": [ + { + "type": "array" + } + ] + }, + "x-nullable": true + } + }, + "required": [ + "key", + "required" + ] + } + } + } + } + } + }, + "\/tablesdb\/{databaseId}\/tables\/{tableId}\/columns\/line\/{key}": { + "patch": { + "summary": "Update line column", + "operationId": "tablesDBUpdateLineColumn", + "tags": [ + "tablesDB" + ], + "description": "Update a line column. Changing the `default` value will not update already existing rows.", + "responses": { + "200": { + "description": "ColumnLine", + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/columnLine" + } + } + } + } + }, + "deprecated": false, + "x-appwrite": { + "method": "updateLineColumn", + "group": "columns", + "weight": 404, + "cookies": false, + "type": "", + "demo": "tablesdb\/update-line-column.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/update-line-column.md", + "rate-limit": 0, + "rate-time": 3600, + "rate-key": "url:{url},ip:{ip}", + "scope": [ + "tables.write", + "collections.write" + ], + "platforms": [ + "server" + ], + "packaging": false, + "auth": { + "Project": [], + "Key": [] + } + }, + "security": [ + { + "Project": [], + "Key": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + }, + { + "name": "tableId", + "description": "Table ID. You can create a new table using the TablesDB service [server integration](https:\/\/appwrite.io\/docs\/server\/tablesdb#tablesDBCreate).", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + }, + { + "name": "key", + "description": "Column Key.", + "required": true, + "schema": { + "type": "string" + }, + "in": "path" + } + ], + "requestBody": { + "content": { + "application\/json": { + "schema": { + "type": "object", + "properties": { + "required": { + "type": "boolean", + "description": "Is column required?", + "x-example": false + }, + "default": { + "type": "array", + "description": "Default value for column when not provided, two-dimensional array of coordinate pairs, [[longitude, latitude], [longitude, latitude], \u2026], listing the vertices of the line in order. Cannot be set when column is required.", + "x-example": "[[1, 2], [3, 4], [5, 6]]", + "items": { + "oneOf": [ + { + "type": "array" + } + ] + }, + "x-nullable": true + }, + "newKey": { + "type": "string", + "description": "New Column Key.", + "x-example": null + } + }, + "required": [ + "required" + ] + } + } + } + } + } + }, + "\/tablesdb\/{databaseId}\/tables\/{tableId}\/columns\/point": { + "post": { + "summary": "Create point column", + "operationId": "tablesDBCreatePointColumn", + "tags": [ + "tablesDB" + ], + "description": "Create a geometric point column.", + "responses": { + "202": { + "description": "ColumnPoint", + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/columnPoint" + } + } + } + } + }, + "deprecated": false, + "x-appwrite": { + "method": "createPointColumn", + "group": "columns", + "weight": 405, + "cookies": false, + "type": "", + "demo": "tablesdb\/create-point-column.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/create-point-column.md", + "rate-limit": 0, + "rate-time": 3600, + "rate-key": "url:{url},ip:{ip}", + "scope": [ + "tables.write", + "collections.write" + ], + "platforms": [ + "server" + ], + "packaging": false, + "auth": { + "Project": [], + "Key": [] + } + }, + "security": [ + { + "Project": [], + "Key": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + }, + { + "name": "tableId", + "description": "Table ID. You can create a new table using the TablesDB service [server integration](https:\/\/appwrite.io\/docs\/server\/tablesdb#tablesDBCreate).", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + } + ], + "requestBody": { + "content": { + "application\/json": { + "schema": { + "type": "object", + "properties": { + "key": { + "type": "string", + "description": "Column Key.", + "x-example": null + }, + "required": { + "type": "boolean", + "description": "Is column required?", + "x-example": false + }, + "default": { + "type": "array", + "description": "Default value for column when not provided, array of two numbers [longitude, latitude], representing a single coordinate. Cannot be set when column is required.", + "x-example": "[1, 2]", + "items": { + "oneOf": [ + { + "type": "array" + } + ] + }, + "x-nullable": true + } + }, + "required": [ + "key", + "required" + ] + } + } + } + } + } + }, + "\/tablesdb\/{databaseId}\/tables\/{tableId}\/columns\/point\/{key}": { + "patch": { + "summary": "Update point column", + "operationId": "tablesDBUpdatePointColumn", + "tags": [ + "tablesDB" + ], + "description": "Update a point column. Changing the `default` value will not update already existing rows.", + "responses": { + "200": { + "description": "ColumnPoint", + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/columnPoint" + } + } + } + } + }, + "deprecated": false, + "x-appwrite": { + "method": "updatePointColumn", + "group": "columns", + "weight": 406, + "cookies": false, + "type": "", + "demo": "tablesdb\/update-point-column.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/update-point-column.md", + "rate-limit": 0, + "rate-time": 3600, + "rate-key": "url:{url},ip:{ip}", + "scope": [ + "tables.write", + "collections.write" + ], + "platforms": [ + "server" + ], + "packaging": false, + "auth": { + "Project": [], + "Key": [] + } + }, + "security": [ + { + "Project": [], + "Key": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + }, + { + "name": "tableId", + "description": "Table ID. You can create a new table using the TablesDB service [server integration](https:\/\/appwrite.io\/docs\/server\/tablesdb#tablesDBCreate).", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + }, + { + "name": "key", + "description": "Column Key.", + "required": true, + "schema": { + "type": "string" + }, + "in": "path" + } + ], + "requestBody": { + "content": { + "application\/json": { + "schema": { + "type": "object", + "properties": { + "required": { + "type": "boolean", + "description": "Is column required?", + "x-example": false + }, + "default": { + "type": "array", + "description": "Default value for column when not provided, array of two numbers [longitude, latitude], representing a single coordinate. Cannot be set when column is required.", + "x-example": "[1, 2]", + "items": { + "oneOf": [ + { + "type": "array" + } + ] + }, + "x-nullable": true + }, + "newKey": { + "type": "string", + "description": "New Column Key.", + "x-example": null + } + }, + "required": [ + "required" + ] + } + } + } + } + } + }, + "\/tablesdb\/{databaseId}\/tables\/{tableId}\/columns\/polygon": { + "post": { + "summary": "Create polygon column", + "operationId": "tablesDBCreatePolygonColumn", + "tags": [ + "tablesDB" + ], + "description": "Create a geometric polygon column.", + "responses": { + "202": { + "description": "ColumnPolygon", + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/columnPolygon" + } + } + } + } + }, + "deprecated": false, + "x-appwrite": { + "method": "createPolygonColumn", + "group": "columns", + "weight": 407, + "cookies": false, + "type": "", + "demo": "tablesdb\/create-polygon-column.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/create-polygon-column.md", + "rate-limit": 0, + "rate-time": 3600, + "rate-key": "url:{url},ip:{ip}", + "scope": [ + "tables.write", + "collections.write" + ], + "platforms": [ + "server" + ], + "packaging": false, + "auth": { + "Project": [], + "Key": [] + } + }, + "security": [ + { + "Project": [], + "Key": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + }, + { + "name": "tableId", + "description": "Table ID. You can create a new table using the TablesDB service [server integration](https:\/\/appwrite.io\/docs\/server\/tablesdb#tablesDBCreate).", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + } + ], + "requestBody": { + "content": { + "application\/json": { + "schema": { + "type": "object", + "properties": { + "key": { + "type": "string", + "description": "Column Key.", + "x-example": null + }, + "required": { + "type": "boolean", + "description": "Is column required?", + "x-example": false + }, + "default": { + "type": "array", + "description": "Default value for column when not provided, three-dimensional array where the outer array holds one or more linear rings, [[[longitude, latitude], \u2026], \u2026], the first ring is the exterior boundary, any additional rings are interior holes, and each ring must start and end with the same coordinate pair. Cannot be set when column is required.", + "x-example": "[[[1, 2], [3, 4], [5, 6], [1, 2]]]", + "items": { + "oneOf": [ + { + "type": "array" + } + ] + }, + "x-nullable": true + } + }, + "required": [ + "key", + "required" + ] + } + } + } + } + } + }, + "\/tablesdb\/{databaseId}\/tables\/{tableId}\/columns\/polygon\/{key}": { + "patch": { + "summary": "Update polygon column", + "operationId": "tablesDBUpdatePolygonColumn", + "tags": [ + "tablesDB" + ], + "description": "Update a polygon column. Changing the `default` value will not update already existing rows.", + "responses": { + "200": { + "description": "ColumnPolygon", + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/columnPolygon" + } + } + } + } + }, + "deprecated": false, + "x-appwrite": { + "method": "updatePolygonColumn", + "group": "columns", + "weight": 408, + "cookies": false, + "type": "", + "demo": "tablesdb\/update-polygon-column.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/update-polygon-column.md", + "rate-limit": 0, + "rate-time": 3600, + "rate-key": "url:{url},ip:{ip}", + "scope": [ + "tables.write", + "collections.write" + ], + "platforms": [ + "server" + ], + "packaging": false, + "auth": { + "Project": [], + "Key": [] + } + }, + "security": [ + { + "Project": [], + "Key": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + }, + { + "name": "tableId", + "description": "Table ID. You can create a new table using the TablesDB service [server integration](https:\/\/appwrite.io\/docs\/server\/tablesdb#tablesDBCreate).", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + }, + { + "name": "key", + "description": "Column Key.", + "required": true, + "schema": { + "type": "string" + }, + "in": "path" + } + ], + "requestBody": { + "content": { + "application\/json": { + "schema": { + "type": "object", + "properties": { + "required": { + "type": "boolean", + "description": "Is column required?", + "x-example": false + }, + "default": { + "type": "array", + "description": "Default value for column when not provided, three-dimensional array where the outer array holds one or more linear rings, [[[longitude, latitude], \u2026], \u2026], the first ring is the exterior boundary, any additional rings are interior holes, and each ring must start and end with the same coordinate pair. Cannot be set when column is required.", + "x-example": "[[[1, 2], [3, 4], [5, 6], [1, 2]]]", + "items": { + "oneOf": [ + { + "type": "array" + } + ] + }, + "x-nullable": true + }, + "newKey": { + "type": "string", + "description": "New Column Key.", + "x-example": null + } + }, + "required": [ + "required" + ] + } + } + } + } + } + }, "\/tablesdb\/{databaseId}\/tables\/{tableId}\/columns\/relationship": { "post": { "summary": "Create relationship column", @@ -24952,15 +26432,18 @@ "x-appwrite": { "method": "createRelationshipColumn", "group": "columns", - "weight": 402, + "weight": 409, "cookies": false, "type": "", - "demo": "tables-d-b\/create-relationship-column.md", + "demo": "tablesdb\/create-relationship-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/create-relationship-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "tables.write", + "scope": [ + "tables.write", + "collections.write" + ], "platforms": [ "server" ], @@ -25084,15 +26567,18 @@ "x-appwrite": { "method": "createStringColumn", "group": "columns", - "weight": 404, + "weight": 411, "cookies": false, "type": "", - "demo": "tables-d-b\/create-string-column.md", + "demo": "tablesdb\/create-string-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/create-string-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "tables.write", + "scope": [ + "tables.write", + "collections.write" + ], "platforms": [ "server" ], @@ -25202,15 +26688,18 @@ "x-appwrite": { "method": "updateStringColumn", "group": "columns", - "weight": 405, + "weight": 412, "cookies": false, "type": "", - "demo": "tables-d-b\/update-string-column.md", + "demo": "tablesdb\/update-string-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/update-string-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "tables.write", + "scope": [ + "tables.write", + "collections.write" + ], "platforms": [ "server" ], @@ -25319,15 +26808,18 @@ "x-appwrite": { "method": "createUrlColumn", "group": "columns", - "weight": 406, + "weight": 413, "cookies": false, "type": "", - "demo": "tables-d-b\/create-url-column.md", + "demo": "tablesdb\/create-url-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/create-url-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "tables.write", + "scope": [ + "tables.write", + "collections.write" + ], "platforms": [ "server" ], @@ -25426,15 +26918,18 @@ "x-appwrite": { "method": "updateUrlColumn", "group": "columns", - "weight": 407, + "weight": 414, "cookies": false, "type": "", - "demo": "tables-d-b\/update-url-column.md", + "demo": "tablesdb\/update-url-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/update-url-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "tables.write", + "scope": [ + "tables.write", + "collections.write" + ], "platforms": [ "server" ], @@ -25569,15 +27064,18 @@ "x-appwrite": { "method": "getColumn", "group": "columns", - "weight": 385, + "weight": 386, "cookies": false, "type": "", - "demo": "tables-d-b\/get-column.md", + "demo": "tablesdb\/get-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/get-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "tables.read", + "scope": [ + "tables.read", + "collections.read" + ], "platforms": [ "server" ], @@ -25641,15 +27139,18 @@ "x-appwrite": { "method": "deleteColumn", "group": "columns", - "weight": 386, + "weight": 387, "cookies": false, "type": "", - "demo": "tables-d-b\/delete-column.md", + "demo": "tablesdb\/delete-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/delete-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "tables.write", + "scope": [ + "tables.write", + "collections.write" + ], "platforms": [ "server" ], @@ -25722,15 +27223,18 @@ "x-appwrite": { "method": "updateRelationshipColumn", "group": "columns", - "weight": 403, + "weight": 410, "cookies": false, "type": "", - "demo": "tables-d-b\/update-relationship-column.md", + "demo": "tablesdb\/update-relationship-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/update-relationship-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "tables.write", + "scope": [ + "tables.write", + "collections.write" + ], "platforms": [ "server" ], @@ -25831,15 +27335,18 @@ "x-appwrite": { "method": "listIndexes", "group": "indexes", - "weight": 411, + "weight": 418, "cookies": false, "type": "", - "demo": "tables-d-b\/list-indexes.md", + "demo": "tablesdb\/list-indexes.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/list-indexes.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "tables.read", + "scope": [ + "tables.read", + "collections.read" + ], "platforms": [ "server" ], @@ -25914,15 +27421,18 @@ "x-appwrite": { "method": "createIndex", "group": "indexes", - "weight": 408, + "weight": 415, "cookies": false, "type": "", - "demo": "tables-d-b\/create-index.md", + "demo": "tablesdb\/create-index.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/create-index.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "tables.write", + "scope": [ + "tables.write", + "collections.write" + ], "platforms": [ "server" ], @@ -25978,7 +27488,8 @@ "enum": [ "key", "fulltext", - "unique" + "unique", + "spatial" ], "x-enum-name": "IndexType", "x-enum-keys": [] @@ -26043,15 +27554,18 @@ "x-appwrite": { "method": "getIndex", "group": "indexes", - "weight": 409, + "weight": 416, "cookies": false, "type": "", - "demo": "tables-d-b\/get-index.md", + "demo": "tablesdb\/get-index.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/get-index.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "tables.read", + "scope": [ + "tables.read", + "collections.read" + ], "platforms": [ "server" ], @@ -26115,15 +27629,18 @@ "x-appwrite": { "method": "deleteIndex", "group": "indexes", - "weight": 410, + "weight": 417, "cookies": false, "type": "", - "demo": "tables-d-b\/delete-index.md", + "demo": "tablesdb\/delete-index.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/delete-index.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "tables.write", + "scope": [ + "tables.write", + "collections.write" + ], "platforms": [ "server" ], @@ -26196,15 +27713,18 @@ "x-appwrite": { "method": "listRows", "group": "rows", - "weight": 420, + "weight": 427, "cookies": false, "type": "", - "demo": "tables-d-b\/list-rows.md", + "demo": "tablesdb\/list-rows.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/list-rows.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "rows.read", + "scope": [ + "rows.read", + "documents.read" + ], "platforms": [ "client", "server", @@ -26283,15 +27803,18 @@ "x-appwrite": { "method": "createRow", "group": "rows", - "weight": 412, + "weight": 419, "cookies": false, "type": "", - "demo": "tables-d-b\/create-row.md", + "demo": "tablesdb\/create-row.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/create-row.md", "rate-limit": 120, "rate-time": 60, "rate-key": "ip:{ip},method:{method},url:{url},userId:{userId}", - "scope": "rows.write", + "scope": [ + "rows.write", + "documents.write" + ], "platforms": [ "client", "server", @@ -26327,7 +27850,7 @@ } ], "description": "Create a new Row. Before using this route, you should create a new table resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/tablesdb#tablesDBCreateTable) API or directly from your database console.", - "demo": "tables-d-b\/create-row.md" + "demo": "tablesdb\/create-row.md" }, { "name": "createRows", @@ -26354,7 +27877,7 @@ } ], "description": "Create new Rows. Before using this route, you should create a new table resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/tablesdb#tablesDBCreateTable) API or directly from your database console.", - "demo": "tables-d-b\/create-rows.md" + "demo": "tablesdb\/create-rows.md" } ], "auth": { @@ -26406,7 +27929,7 @@ "data": { "type": "object", "description": "Row data as JSON object.", - "x-example": "{}" + "x-example": "{\"username\":\"walter.obrien\",\"email\":\"walter.obrien@example.com\",\"fullName\":\"Walter O'Brien\",\"age\":30,\"isAdmin\":false}" }, "permissions": { "type": "array", @@ -26418,7 +27941,7 @@ }, "rows": { "type": "array", - "description": "Array of documents data as JSON objects.", + "description": "Array of rows data as JSON objects.", "x-example": null, "items": { "type": "object" @@ -26431,7 +27954,7 @@ } }, "put": { - "summary": "Create or update rows", + "summary": "Upsert rows", "operationId": "tablesDBUpsertRows", "tags": [ "tablesDB" @@ -26453,15 +27976,18 @@ "x-appwrite": { "method": "upsertRows", "group": "rows", - "weight": 417, + "weight": 424, "cookies": false, "type": "", - "demo": "tables-d-b\/upsert-rows.md", + "demo": "tablesdb\/upsert-rows.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/upsert-rows.md", "rate-limit": 120, "rate-time": 60, "rate-key": "ip:{ip},method:{method},url:{url},userId:{userId}", - "scope": "rows.write", + "scope": [ + "rows.write", + "documents.write" + ], "platforms": [ "console", "server" @@ -26493,7 +28019,7 @@ } ], "description": "Create or update Rows. Before using this route, you should create a new table resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/tablesdb#tablesDBCreateTable) API or directly from your database console.\n", - "demo": "tables-d-b\/upsert-rows.md" + "demo": "tablesdb\/upsert-rows.md" } ], "auth": { @@ -26575,15 +28101,18 @@ "x-appwrite": { "method": "updateRows", "group": "rows", - "weight": 415, + "weight": 422, "cookies": false, "type": "", - "demo": "tables-d-b\/update-rows.md", + "demo": "tablesdb\/update-rows.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/update-rows.md", "rate-limit": 120, "rate-time": 60, "rate-key": "ip:{ip},method:{method},url:{url},userId:{userId}", - "scope": "rows.write", + "scope": [ + "rows.write", + "documents.write" + ], "platforms": [ "console", "server" @@ -26670,15 +28199,18 @@ "x-appwrite": { "method": "deleteRows", "group": "rows", - "weight": 419, + "weight": 426, "cookies": false, "type": "", - "demo": "tables-d-b\/delete-rows.md", + "demo": "tablesdb\/delete-rows.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/delete-rows.md", "rate-limit": 60, "rate-time": 60, "rate-key": "ip:{ip},method:{method},url:{url},userId:{userId}", - "scope": "rows.write", + "scope": [ + "rows.write", + "documents.write" + ], "platforms": [ "console", "server" @@ -26762,15 +28294,18 @@ "x-appwrite": { "method": "getRow", "group": "rows", - "weight": 413, + "weight": 420, "cookies": false, "type": "", - "demo": "tables-d-b\/get-row.md", + "demo": "tablesdb\/get-row.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/get-row.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "rows.read", + "scope": [ + "rows.read", + "documents.read" + ], "platforms": [ "client", "server", @@ -26837,7 +28372,7 @@ ] }, "put": { - "summary": "Create or update a row", + "summary": "Upsert a row", "operationId": "tablesDBUpsertRow", "tags": [ "tablesDB" @@ -26859,15 +28394,18 @@ "x-appwrite": { "method": "upsertRow", "group": "rows", - "weight": 416, + "weight": 423, "cookies": false, "type": "", - "demo": "tables-d-b\/upsert-row.md", + "demo": "tablesdb\/upsert-row.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/upsert-row.md", "rate-limit": 120, "rate-time": 60, "rate-key": "ip:{ip},method:{method},url:{url},userId:{userId}", - "scope": "rows.write", + "scope": [ + "rows.write", + "documents.write" + ], "platforms": [ "client", "server", @@ -26902,7 +28440,7 @@ } ], "description": "Create or update a Row. Before using this route, you should create a new table resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/tablesdb#tablesDBCreateTable) API or directly from your database console.", - "demo": "tables-d-b\/upsert-row.md" + "demo": "tablesdb\/upsert-row.md" } ], "auth": { @@ -26998,15 +28536,18 @@ "x-appwrite": { "method": "updateRow", "group": "rows", - "weight": 414, + "weight": 421, "cookies": false, "type": "", - "demo": "tables-d-b\/update-row.md", + "demo": "tablesdb\/update-row.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/update-row.md", "rate-limit": 120, "rate-time": 60, "rate-key": "ip:{ip},method:{method},url:{url},userId:{userId}", - "scope": "rows.write", + "scope": [ + "rows.write", + "documents.write" + ], "platforms": [ "client", "server", @@ -27099,15 +28640,18 @@ "x-appwrite": { "method": "deleteRow", "group": "rows", - "weight": 418, + "weight": 425, "cookies": false, "type": "", - "demo": "tables-d-b\/delete-row.md", + "demo": "tablesdb\/delete-row.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/delete-row.md", "rate-limit": 60, "rate-time": 60, "rate-key": "ip:{ip},method:{method},url:{url},userId:{userId}", - "scope": "rows.write", + "scope": [ + "rows.write", + "documents.write" + ], "platforms": [ "client", "server", @@ -27185,15 +28729,18 @@ "x-appwrite": { "method": "decrementRowColumn", "group": "rows", - "weight": 423, + "weight": 430, "cookies": false, "type": "", - "demo": "tables-d-b\/decrement-row-column.md", + "demo": "tablesdb\/decrement-row-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/decrement-row-column.md", "rate-limit": 120, "rate-time": 60, "rate-key": "ip:{ip},method:{method},url:{url},userId:{userId}", - "scope": "rows.write", + "scope": [ + "rows.write", + "documents.write" + ], "platforms": [ "client", "server", @@ -27302,15 +28849,18 @@ "x-appwrite": { "method": "incrementRowColumn", "group": "rows", - "weight": 422, + "weight": 429, "cookies": false, "type": "", - "demo": "tables-d-b\/increment-row-column.md", + "demo": "tablesdb\/increment-row-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/increment-row-column.md", "rate-limit": 120, "rate-time": 60, "rate-key": "ip:{ip},method:{method},url:{url},userId:{userId}", - "scope": "rows.write", + "scope": [ + "rows.write", + "documents.write" + ], "platforms": [ "client", "server", @@ -27419,7 +28969,7 @@ "x-appwrite": { "method": "list", "group": "teams", - "weight": 172, + "weight": 171, "cookies": false, "type": "", "demo": "teams\/list.md", @@ -27497,7 +29047,7 @@ "x-appwrite": { "method": "create", "group": "teams", - "weight": 171, + "weight": 170, "cookies": false, "type": "", "demo": "teams\/create.md", @@ -27584,7 +29134,7 @@ "x-appwrite": { "method": "get", "group": "teams", - "weight": 173, + "weight": 172, "cookies": false, "type": "", "demo": "teams\/get.md", @@ -27648,7 +29198,7 @@ "x-appwrite": { "method": "updateName", "group": "teams", - "weight": 175, + "weight": 174, "cookies": false, "type": "", "demo": "teams\/update-name.md", @@ -27724,7 +29274,7 @@ "x-appwrite": { "method": "delete", "group": "teams", - "weight": 177, + "weight": 176, "cookies": false, "type": "", "demo": "teams\/delete.md", @@ -27790,7 +29340,7 @@ "x-appwrite": { "method": "listMemberships", "group": "memberships", - "weight": 179, + "weight": 178, "cookies": false, "type": "", "demo": "teams\/list-memberships.md", @@ -27878,7 +29428,7 @@ "x-appwrite": { "method": "createMembership", "group": "memberships", - "weight": 178, + "weight": 177, "cookies": false, "type": "", "demo": "teams\/create-membership.md", @@ -27991,7 +29541,7 @@ "x-appwrite": { "method": "getMembership", "group": "memberships", - "weight": 180, + "weight": 179, "cookies": false, "type": "", "demo": "teams\/get-membership.md", @@ -28065,7 +29615,7 @@ "x-appwrite": { "method": "updateMembership", "group": "memberships", - "weight": 181, + "weight": 180, "cookies": false, "type": "", "demo": "teams\/update-membership.md", @@ -28154,7 +29704,7 @@ "x-appwrite": { "method": "deleteMembership", "group": "memberships", - "weight": 183, + "weight": 182, "cookies": false, "type": "", "demo": "teams\/delete-membership.md", @@ -28230,7 +29780,7 @@ "x-appwrite": { "method": "updateMembershipStatus", "group": "memberships", - "weight": 182, + "weight": 181, "cookies": false, "type": "", "demo": "teams\/update-membership-status.md", @@ -28329,7 +29879,7 @@ "x-appwrite": { "method": "getPrefs", "group": "teams", - "weight": 174, + "weight": 173, "cookies": false, "type": "", "demo": "teams\/get-prefs.md", @@ -28391,7 +29941,7 @@ "x-appwrite": { "method": "updatePrefs", "group": "teams", - "weight": 176, + "weight": 175, "cookies": false, "type": "", "demo": "teams\/update-prefs.md", @@ -28474,7 +30024,7 @@ "x-appwrite": { "method": "list", "group": "files", - "weight": 495, + "weight": 507, "cookies": false, "type": "", "demo": "tokens\/list.md", @@ -28555,7 +30105,7 @@ "x-appwrite": { "method": "createFileToken", "group": "files", - "weight": 493, + "weight": 505, "cookies": false, "type": "", "demo": "tokens\/create-file-token.md", @@ -28645,7 +30195,7 @@ "x-appwrite": { "method": "get", "group": "tokens", - "weight": 494, + "weight": 506, "cookies": false, "type": "", "demo": "tokens\/get.md", @@ -28706,7 +30256,7 @@ "x-appwrite": { "method": "update", "group": "tokens", - "weight": 496, + "weight": 508, "cookies": false, "type": "", "demo": "tokens\/update.md", @@ -28777,7 +30327,7 @@ "x-appwrite": { "method": "delete", "group": "tokens", - "weight": 497, + "weight": 509, "cookies": false, "type": "", "demo": "tokens\/delete.md", @@ -28840,7 +30390,7 @@ "x-appwrite": { "method": "list", "group": "users", - "weight": 194, + "weight": 193, "cookies": false, "type": "", "demo": "users\/list.md", @@ -28914,7 +30464,7 @@ "x-appwrite": { "method": "create", "group": "users", - "weight": 185, + "weight": 184, "cookies": false, "type": "", "demo": "users\/create.md", @@ -29003,10 +30553,10 @@ "x-appwrite": { "method": "createArgon2User", "group": "users", - "weight": 188, + "weight": 187, "cookies": false, "type": "", - "demo": "users\/create-argon2user.md", + "demo": "users\/create-argon-2-user.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/users\/create-argon2-user.md", "rate-limit": 0, "rate-time": 3600, @@ -29089,7 +30639,7 @@ "x-appwrite": { "method": "createBcryptUser", "group": "users", - "weight": 186, + "weight": 185, "cookies": false, "type": "", "demo": "users\/create-bcrypt-user.md", @@ -29175,7 +30725,7 @@ "x-appwrite": { "method": "listIdentities", "group": "identities", - "weight": 202, + "weight": 201, "cookies": false, "type": "", "demo": "users\/list-identities.md", @@ -29244,7 +30794,7 @@ "x-appwrite": { "method": "deleteIdentity", "group": "identities", - "weight": 225, + "weight": 224, "cookies": false, "type": "", "demo": "users\/delete-identity.md", @@ -29306,10 +30856,10 @@ "x-appwrite": { "method": "createMD5User", "group": "users", - "weight": 187, + "weight": 186, "cookies": false, "type": "", - "demo": "users\/create-m-d5user.md", + "demo": "users\/create-md-5-user.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/users\/create-md5-user.md", "rate-limit": 0, "rate-time": 3600, @@ -29392,10 +30942,10 @@ "x-appwrite": { "method": "createPHPassUser", "group": "users", - "weight": 190, + "weight": 189, "cookies": false, "type": "", - "demo": "users\/create-p-h-pass-user.md", + "demo": "users\/create-ph-pass-user.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/users\/create-phpass-user.md", "rate-limit": 0, "rate-time": 3600, @@ -29478,7 +31028,7 @@ "x-appwrite": { "method": "createScryptUser", "group": "users", - "weight": 191, + "weight": 190, "cookies": false, "type": "", "demo": "users\/create-scrypt-user.md", @@ -29594,7 +31144,7 @@ "x-appwrite": { "method": "createScryptModifiedUser", "group": "users", - "weight": 192, + "weight": 191, "cookies": false, "type": "", "demo": "users\/create-scrypt-modified-user.md", @@ -29698,10 +31248,10 @@ "x-appwrite": { "method": "createSHAUser", "group": "users", - "weight": 189, + "weight": 188, "cookies": false, "type": "", - "demo": "users\/create-s-h-a-user.md", + "demo": "users\/create-sha-user.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/users\/create-sha-user.md", "rate-limit": 0, "rate-time": 3600, @@ -29804,7 +31354,7 @@ "x-appwrite": { "method": "get", "group": "users", - "weight": 195, + "weight": 194, "cookies": false, "type": "", "demo": "users\/get.md", @@ -29857,7 +31407,7 @@ "x-appwrite": { "method": "delete", "group": "users", - "weight": 223, + "weight": 222, "cookies": false, "type": "", "demo": "users\/delete.md", @@ -29919,7 +31469,7 @@ "x-appwrite": { "method": "updateEmail", "group": "users", - "weight": 208, + "weight": 207, "cookies": false, "type": "", "demo": "users\/update-email.md", @@ -30000,10 +31550,10 @@ "x-appwrite": { "method": "createJWT", "group": "sessions", - "weight": 226, + "weight": 225, "cookies": false, "type": "", - "demo": "users\/create-j-w-t.md", + "demo": "users\/create-jwt.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/users\/create-user-jwt.md", "rate-limit": 0, "rate-time": 3600, @@ -30083,7 +31633,7 @@ "x-appwrite": { "method": "updateLabels", "group": "users", - "weight": 204, + "weight": 203, "cookies": false, "type": "", "demo": "users\/update-labels.md", @@ -30167,7 +31717,7 @@ "x-appwrite": { "method": "listLogs", "group": "logs", - "weight": 200, + "weight": 199, "cookies": false, "type": "", "demo": "users\/list-logs.md", @@ -30242,7 +31792,7 @@ "x-appwrite": { "method": "listMemberships", "group": "memberships", - "weight": 199, + "weight": 198, "cookies": false, "type": "", "demo": "users\/list-memberships.md", @@ -30328,7 +31878,7 @@ "x-appwrite": { "method": "updateMfa", "group": "users", - "weight": 213, + "weight": 212, "cookies": false, "type": "", "demo": "users\/update-mfa.md", @@ -30398,7 +31948,7 @@ } ], "description": "Enable or disable MFA on a user account.", - "demo": "users\/update-m-f-a.md" + "demo": "users\/update-mfa.md" } ], "auth": { @@ -30462,7 +32012,7 @@ "x-appwrite": { "method": "deleteMfaAuthenticator", "group": "mfa", - "weight": 218, + "weight": 217, "cookies": false, "type": "", "demo": "users\/delete-mfa-authenticator.md", @@ -30530,7 +32080,7 @@ } ], "description": "Delete an authenticator app.", - "demo": "users\/delete-m-f-a-authenticator.md" + "demo": "users\/delete-mfa-authenticator.md" } ], "auth": { @@ -30597,7 +32147,7 @@ "x-appwrite": { "method": "listMfaFactors", "group": "mfa", - "weight": 214, + "weight": 213, "cookies": false, "type": "", "demo": "users\/list-mfa-factors.md", @@ -30663,7 +32213,7 @@ } ], "description": "List the factors available on the account to be used as a MFA challange.", - "demo": "users\/list-m-f-a-factors.md" + "demo": "users\/list-mfa-factors.md" } ], "auth": { @@ -30715,7 +32265,7 @@ "x-appwrite": { "method": "getMfaRecoveryCodes", "group": "mfa", - "weight": 215, + "weight": 214, "cookies": false, "type": "", "demo": "users\/get-mfa-recovery-codes.md", @@ -30781,7 +32331,7 @@ } ], "description": "Get recovery codes that can be used as backup for MFA flow by User ID. Before getting codes, they must be generated using [createMfaRecoveryCodes](\/docs\/references\/cloud\/client-web\/account#createMfaRecoveryCodes) method.", - "demo": "users\/get-m-f-a-recovery-codes.md" + "demo": "users\/get-mfa-recovery-codes.md" } ], "auth": { @@ -30831,7 +32381,7 @@ "x-appwrite": { "method": "updateMfaRecoveryCodes", "group": "mfa", - "weight": 217, + "weight": 216, "cookies": false, "type": "", "demo": "users\/update-mfa-recovery-codes.md", @@ -30897,7 +32447,7 @@ } ], "description": "Regenerate recovery codes that can be used as backup for MFA flow by User ID. Before regenerating codes, they must be first generated using [createMfaRecoveryCodes](\/docs\/references\/cloud\/client-web\/account#createMfaRecoveryCodes) method.", - "demo": "users\/update-m-f-a-recovery-codes.md" + "demo": "users\/update-mfa-recovery-codes.md" } ], "auth": { @@ -30947,7 +32497,7 @@ "x-appwrite": { "method": "createMfaRecoveryCodes", "group": "mfa", - "weight": 216, + "weight": 215, "cookies": false, "type": "", "demo": "users\/create-mfa-recovery-codes.md", @@ -31013,7 +32563,7 @@ } ], "description": "Generate recovery codes used as backup for MFA flow for User ID. Recovery codes can be used as a MFA verification type in [createMfaChallenge](\/docs\/references\/cloud\/client-web\/account#createMfaChallenge) method by client SDK.", - "demo": "users\/create-m-f-a-recovery-codes.md" + "demo": "users\/create-mfa-recovery-codes.md" } ], "auth": { @@ -31065,7 +32615,7 @@ "x-appwrite": { "method": "updateName", "group": "users", - "weight": 206, + "weight": 205, "cookies": false, "type": "", "demo": "users\/update-name.md", @@ -31146,7 +32696,7 @@ "x-appwrite": { "method": "updatePassword", "group": "users", - "weight": 207, + "weight": 206, "cookies": false, "type": "", "demo": "users\/update-password.md", @@ -31227,7 +32777,7 @@ "x-appwrite": { "method": "updatePhone", "group": "users", - "weight": 209, + "weight": 208, "cookies": false, "type": "", "demo": "users\/update-phone.md", @@ -31308,7 +32858,7 @@ "x-appwrite": { "method": "getPrefs", "group": "users", - "weight": 196, + "weight": 195, "cookies": false, "type": "", "demo": "users\/get-prefs.md", @@ -31368,7 +32918,7 @@ "x-appwrite": { "method": "updatePrefs", "group": "users", - "weight": 211, + "weight": 210, "cookies": false, "type": "", "demo": "users\/update-prefs.md", @@ -31449,7 +32999,7 @@ "x-appwrite": { "method": "listSessions", "group": "sessions", - "weight": 198, + "weight": 197, "cookies": false, "type": "", "demo": "users\/list-sessions.md", @@ -31509,7 +33059,7 @@ "x-appwrite": { "method": "createSession", "group": "sessions", - "weight": 219, + "weight": 218, "cookies": false, "type": "", "demo": "users\/create-session.md", @@ -31562,7 +33112,7 @@ "x-appwrite": { "method": "deleteSessions", "group": "sessions", - "weight": 222, + "weight": 221, "cookies": false, "type": "", "demo": "users\/delete-sessions.md", @@ -31617,7 +33167,7 @@ "x-appwrite": { "method": "deleteSession", "group": "sessions", - "weight": 221, + "weight": 220, "cookies": false, "type": "", "demo": "users\/delete-session.md", @@ -31689,7 +33239,7 @@ "x-appwrite": { "method": "updateStatus", "group": "users", - "weight": 203, + "weight": 202, "cookies": false, "type": "", "demo": "users\/update-status.md", @@ -31770,7 +33320,7 @@ "x-appwrite": { "method": "listTargets", "group": "targets", - "weight": 201, + "weight": 200, "cookies": false, "type": "", "demo": "users\/list-targets.md", @@ -31844,7 +33394,7 @@ "x-appwrite": { "method": "createTarget", "group": "targets", - "weight": 193, + "weight": 192, "cookies": false, "type": "", "demo": "users\/create-target.md", @@ -31955,7 +33505,7 @@ "x-appwrite": { "method": "getTarget", "group": "targets", - "weight": 197, + "weight": 196, "cookies": false, "type": "", "demo": "users\/get-target.md", @@ -32026,7 +33576,7 @@ "x-appwrite": { "method": "updateTarget", "group": "targets", - "weight": 212, + "weight": 211, "cookies": false, "type": "", "demo": "users\/update-target.md", @@ -32116,7 +33666,7 @@ "x-appwrite": { "method": "deleteTarget", "group": "targets", - "weight": 224, + "weight": 223, "cookies": false, "type": "", "demo": "users\/delete-target.md", @@ -32189,7 +33739,7 @@ "x-appwrite": { "method": "createToken", "group": "sessions", - "weight": 220, + "weight": 219, "cookies": false, "type": "", "demo": "users\/create-token.md", @@ -32272,7 +33822,7 @@ "x-appwrite": { "method": "updateEmailVerification", "group": "users", - "weight": 210, + "weight": 209, "cookies": false, "type": "", "demo": "users\/update-email-verification.md", @@ -32353,7 +33903,7 @@ "x-appwrite": { "method": "updatePhoneVerification", "group": "users", - "weight": 205, + "weight": 204, "cookies": false, "type": "", "demo": "users\/update-phone-verification.md", @@ -33644,6 +35194,15 @@ { "$ref": "#\/components\/schemas\/attributeRelationship" }, + { + "$ref": "#\/components\/schemas\/attributePoint" + }, + { + "$ref": "#\/components\/schemas\/attributeLine" + }, + { + "$ref": "#\/components\/schemas\/attributePolygon" + }, { "$ref": "#\/components\/schemas\/attributeString" } @@ -33729,6 +35288,15 @@ { "$ref": "#\/components\/schemas\/attributeRelationship" }, + { + "$ref": "#\/components\/schemas\/attributePoint" + }, + { + "$ref": "#\/components\/schemas\/attributeLine" + }, + { + "$ref": "#\/components\/schemas\/attributePolygon" + }, { "$ref": "#\/components\/schemas\/attributeString" } @@ -34605,6 +36173,291 @@ "side": "parent|child" } }, + "attributePoint": { + "description": "AttributePoint", + "type": "object", + "properties": { + "key": { + "type": "string", + "description": "Attribute Key.", + "x-example": "fullName" + }, + "type": { + "type": "string", + "description": "Attribute type.", + "x-example": "string" + }, + "status": { + "type": "string", + "description": "Attribute status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`", + "x-example": "available" + }, + "error": { + "type": "string", + "description": "Error message. Displays error generated on failure of creating or deleting an attribute.", + "x-example": "string" + }, + "required": { + "type": "boolean", + "description": "Is attribute required?", + "x-example": true + }, + "array": { + "type": "boolean", + "description": "Is attribute an array?", + "x-example": false, + "nullable": true + }, + "$createdAt": { + "type": "string", + "description": "Attribute creation date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "$updatedAt": { + "type": "string", + "description": "Attribute update date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "default": { + "type": "array", + "description": "Default value for attribute when not provided. Cannot be set when attribute is required.", + "x-example": [ + 0, + 0 + ], + "nullable": true + } + }, + "required": [ + "key", + "type", + "status", + "error", + "required", + "$createdAt", + "$updatedAt" + ], + "example": { + "key": "fullName", + "type": "string", + "status": "available", + "error": "string", + "required": true, + "array": false, + "$createdAt": "2020-10-15T06:38:00.000+00:00", + "$updatedAt": "2020-10-15T06:38:00.000+00:00", + "default": [ + 0, + 0 + ] + } + }, + "attributeLine": { + "description": "AttributeLine", + "type": "object", + "properties": { + "key": { + "type": "string", + "description": "Attribute Key.", + "x-example": "fullName" + }, + "type": { + "type": "string", + "description": "Attribute type.", + "x-example": "string" + }, + "status": { + "type": "string", + "description": "Attribute status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`", + "x-example": "available" + }, + "error": { + "type": "string", + "description": "Error message. Displays error generated on failure of creating or deleting an attribute.", + "x-example": "string" + }, + "required": { + "type": "boolean", + "description": "Is attribute required?", + "x-example": true + }, + "array": { + "type": "boolean", + "description": "Is attribute an array?", + "x-example": false, + "nullable": true + }, + "$createdAt": { + "type": "string", + "description": "Attribute creation date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "$updatedAt": { + "type": "string", + "description": "Attribute update date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "default": { + "type": "array", + "description": "Default value for attribute when not provided. Cannot be set when attribute is required.", + "x-example": [ + [ + 0, + 0 + ], + [ + 1, + 1 + ] + ], + "nullable": true + } + }, + "required": [ + "key", + "type", + "status", + "error", + "required", + "$createdAt", + "$updatedAt" + ], + "example": { + "key": "fullName", + "type": "string", + "status": "available", + "error": "string", + "required": true, + "array": false, + "$createdAt": "2020-10-15T06:38:00.000+00:00", + "$updatedAt": "2020-10-15T06:38:00.000+00:00", + "default": [ + [ + 0, + 0 + ], + [ + 1, + 1 + ] + ] + } + }, + "attributePolygon": { + "description": "AttributePolygon", + "type": "object", + "properties": { + "key": { + "type": "string", + "description": "Attribute Key.", + "x-example": "fullName" + }, + "type": { + "type": "string", + "description": "Attribute type.", + "x-example": "string" + }, + "status": { + "type": "string", + "description": "Attribute status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`", + "x-example": "available" + }, + "error": { + "type": "string", + "description": "Error message. Displays error generated on failure of creating or deleting an attribute.", + "x-example": "string" + }, + "required": { + "type": "boolean", + "description": "Is attribute required?", + "x-example": true + }, + "array": { + "type": "boolean", + "description": "Is attribute an array?", + "x-example": false, + "nullable": true + }, + "$createdAt": { + "type": "string", + "description": "Attribute creation date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "$updatedAt": { + "type": "string", + "description": "Attribute update date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "default": { + "type": "array", + "description": "Default value for attribute when not provided. Cannot be set when attribute is required.", + "x-example": [ + [ + [ + 0, + 0 + ], + [ + 0, + 10 + ] + ], + [ + [ + 10, + 10 + ], + [ + 0, + 0 + ] + ] + ], + "nullable": true + } + }, + "required": [ + "key", + "type", + "status", + "error", + "required", + "$createdAt", + "$updatedAt" + ], + "example": { + "key": "fullName", + "type": "string", + "status": "available", + "error": "string", + "required": true, + "array": false, + "$createdAt": "2020-10-15T06:38:00.000+00:00", + "$updatedAt": "2020-10-15T06:38:00.000+00:00", + "default": [ + [ + [ + 0, + 0 + ], + [ + 0, + 10 + ] + ], + [ + [ + 10, + 10 + ], + [ + 0, + 0 + ] + ] + ] + } + }, "table": { "description": "Table", "type": "object", @@ -34686,6 +36539,15 @@ { "$ref": "#\/components\/schemas\/columnRelationship" }, + { + "$ref": "#\/components\/schemas\/columnPoint" + }, + { + "$ref": "#\/components\/schemas\/columnLine" + }, + { + "$ref": "#\/components\/schemas\/columnPolygon" + }, { "$ref": "#\/components\/schemas\/columnString" } @@ -34771,6 +36633,15 @@ { "$ref": "#\/components\/schemas\/columnRelationship" }, + { + "$ref": "#\/components\/schemas\/columnPoint" + }, + { + "$ref": "#\/components\/schemas\/columnLine" + }, + { + "$ref": "#\/components\/schemas\/columnPolygon" + }, { "$ref": "#\/components\/schemas\/columnString" } @@ -35647,6 +37518,291 @@ "side": "parent|child" } }, + "columnPoint": { + "description": "ColumnPoint", + "type": "object", + "properties": { + "key": { + "type": "string", + "description": "Column Key.", + "x-example": "fullName" + }, + "type": { + "type": "string", + "description": "Column type.", + "x-example": "string" + }, + "status": { + "type": "string", + "description": "Column status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`", + "x-example": "available" + }, + "error": { + "type": "string", + "description": "Error message. Displays error generated on failure of creating or deleting an column.", + "x-example": "string" + }, + "required": { + "type": "boolean", + "description": "Is column required?", + "x-example": true + }, + "array": { + "type": "boolean", + "description": "Is column an array?", + "x-example": false, + "nullable": true + }, + "$createdAt": { + "type": "string", + "description": "Column creation date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "$updatedAt": { + "type": "string", + "description": "Column update date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "default": { + "type": "array", + "description": "Default value for column when not provided. Cannot be set when column is required.", + "x-example": [ + 0, + 0 + ], + "nullable": true + } + }, + "required": [ + "key", + "type", + "status", + "error", + "required", + "$createdAt", + "$updatedAt" + ], + "example": { + "key": "fullName", + "type": "string", + "status": "available", + "error": "string", + "required": true, + "array": false, + "$createdAt": "2020-10-15T06:38:00.000+00:00", + "$updatedAt": "2020-10-15T06:38:00.000+00:00", + "default": [ + 0, + 0 + ] + } + }, + "columnLine": { + "description": "ColumnLine", + "type": "object", + "properties": { + "key": { + "type": "string", + "description": "Column Key.", + "x-example": "fullName" + }, + "type": { + "type": "string", + "description": "Column type.", + "x-example": "string" + }, + "status": { + "type": "string", + "description": "Column status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`", + "x-example": "available" + }, + "error": { + "type": "string", + "description": "Error message. Displays error generated on failure of creating or deleting an column.", + "x-example": "string" + }, + "required": { + "type": "boolean", + "description": "Is column required?", + "x-example": true + }, + "array": { + "type": "boolean", + "description": "Is column an array?", + "x-example": false, + "nullable": true + }, + "$createdAt": { + "type": "string", + "description": "Column creation date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "$updatedAt": { + "type": "string", + "description": "Column update date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "default": { + "type": "array", + "description": "Default value for column when not provided. Cannot be set when column is required.", + "x-example": [ + [ + 0, + 0 + ], + [ + 1, + 1 + ] + ], + "nullable": true + } + }, + "required": [ + "key", + "type", + "status", + "error", + "required", + "$createdAt", + "$updatedAt" + ], + "example": { + "key": "fullName", + "type": "string", + "status": "available", + "error": "string", + "required": true, + "array": false, + "$createdAt": "2020-10-15T06:38:00.000+00:00", + "$updatedAt": "2020-10-15T06:38:00.000+00:00", + "default": [ + [ + 0, + 0 + ], + [ + 1, + 1 + ] + ] + } + }, + "columnPolygon": { + "description": "ColumnPolygon", + "type": "object", + "properties": { + "key": { + "type": "string", + "description": "Column Key.", + "x-example": "fullName" + }, + "type": { + "type": "string", + "description": "Column type.", + "x-example": "string" + }, + "status": { + "type": "string", + "description": "Column status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`", + "x-example": "available" + }, + "error": { + "type": "string", + "description": "Error message. Displays error generated on failure of creating or deleting an column.", + "x-example": "string" + }, + "required": { + "type": "boolean", + "description": "Is column required?", + "x-example": true + }, + "array": { + "type": "boolean", + "description": "Is column an array?", + "x-example": false, + "nullable": true + }, + "$createdAt": { + "type": "string", + "description": "Column creation date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "$updatedAt": { + "type": "string", + "description": "Column update date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "default": { + "type": "array", + "description": "Default value for column when not provided. Cannot be set when column is required.", + "x-example": [ + [ + [ + 0, + 0 + ], + [ + 0, + 10 + ] + ], + [ + [ + 10, + 10 + ], + [ + 0, + 0 + ] + ] + ], + "nullable": true + } + }, + "required": [ + "key", + "type", + "status", + "error", + "required", + "$createdAt", + "$updatedAt" + ], + "example": { + "key": "fullName", + "type": "string", + "status": "available", + "error": "string", + "required": true, + "array": false, + "$createdAt": "2020-10-15T06:38:00.000+00:00", + "$updatedAt": "2020-10-15T06:38:00.000+00:00", + "default": [ + [ + [ + 0, + 0 + ], + [ + 0, + 10 + ] + ], + [ + [ + 10, + 10 + ], + [ + 0, + 0 + ] + ] + ] + } + }, "index": { "description": "Index", "type": "object", @@ -35840,17 +37996,20 @@ "type": "integer", "description": "Row automatically incrementing ID.", "x-example": 1, - "format": "int32" + "format": "int32", + "readOnly": true }, "$tableId": { "type": "string", "description": "Table ID.", - "x-example": "5e5ea5c15117e" + "x-example": "5e5ea5c15117e", + "readOnly": true }, "$databaseId": { "type": "string", "description": "Database ID.", - "x-example": "5e5ea5c15117e" + "x-example": "5e5ea5c15117e", + "readOnly": true }, "$createdAt": { "type": "string", diff --git a/app/config/specs/swagger2-1.7.x-client.json b/app/config/specs/swagger2-1.7.x-client.json index 386e5875f2..ff6b6d8984 100644 --- a/app/config/specs/swagger2-1.7.x-client.json +++ b/app/config/specs/swagger2-1.7.x-client.json @@ -2751,7 +2751,7 @@ "tags": [ "account" ], - "description": "Sends the user an email with a secret key for creating a session. If the provided user ID has not be registered, a new user will be created. Use the returned user ID and secret and submit a request to the [POST \/v1\/account\/sessions\/token](https:\/\/appwrite.io\/docs\/references\/cloud\/client-web\/account#createSession) endpoint to complete the login process. The secret sent to the user's email is valid for 15 minutes.\n\nA user is limited to 10 active sessions at a time by default. [Learn more about session limits](https:\/\/appwrite.io\/docs\/authentication-security#limits).", + "description": "Sends the user an email with a secret key for creating a session. If the email address has never been used, a **new account is created** using the provided `userId`. Otherwise, if the email address is already attached to an account, the **user ID is ignored**. Then, the user will receive an email with the one-time password. Use the returned user ID and secret and submit a request to the [POST \/v1\/account\/sessions\/token](https:\/\/appwrite.io\/docs\/references\/cloud\/client-web\/account#createSession) endpoint to complete the login process. The secret sent to the user's email is valid for 15 minutes.\n\nA user is limited to 10 active sessions at a time by default. [Learn more about session limits](https:\/\/appwrite.io\/docs\/authentication-security#limits).\n", "responses": { "201": { "description": "Token", @@ -2799,7 +2799,7 @@ "properties": { "userId": { "type": "string", - "description": "User ID. Choose a custom ID or generate a random ID with `ID.unique()`. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars.", + "description": "User ID. Choose a custom ID or generate a random ID with `ID.unique()`. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars. If the email address has never been used, a new account is created using the provided userId. Otherwise, if the email address is already attached to an account, the user ID is ignored.", "default": null, "x-example": "" }, @@ -2886,7 +2886,7 @@ "properties": { "userId": { "type": "string", - "description": "Unique Id. Choose a custom ID or generate a random ID with `ID.unique()`. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars.", + "description": "Unique Id. Choose a custom ID or generate a random ID with `ID.unique()`. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars. If the email address has never been used, a new account is created using the provided userId. Otherwise, if the email address is already attached to an account, the user ID is ignored.", "default": null, "x-example": "" }, @@ -3111,7 +3111,7 @@ "properties": { "userId": { "type": "string", - "description": "Unique Id. Choose a custom ID or generate a random ID with `ID.unique()`. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars.", + "description": "Unique Id. Choose a custom ID or generate a random ID with `ID.unique()`. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars. If the phone number has never been used, a new account is created using the provided userId. Otherwise, if the phone number is already attached to an account, the user ID is ignored.", "default": null, "x-example": "" }, @@ -3592,7 +3592,7 @@ "parameters": [ { "name": "code", - "description": "Credit Card Code. Possible values: amex, argencard, cabal, cencosud, diners, discover, elo, hipercard, jcb, mastercard, naranja, targeta-shopping, union-china-pay, visa, mir, maestro, rupay.", + "description": "Credit Card Code. Possible values: amex, argencard, cabal, cencosud, diners, discover, elo, hipercard, jcb, mastercard, naranja, targeta-shopping, unionpay, visa, mir, maestro, rupay.", "required": true, "type": "string", "x-example": "amex", @@ -3609,7 +3609,7 @@ "mastercard", "naranja", "targeta-shopping", - "union-china-pay", + "unionpay", "visa", "mir", "maestro", @@ -3629,7 +3629,7 @@ "Mastercard", "Naranja", "Tarjeta Shopping", - "Union China Pay", + "Union Pay", "Visa", "MIR", "Maestro", @@ -9885,6 +9885,11 @@ "description": "Function ID.", "x-example": "5e5ea6g16897e" }, + "deploymentId": { + "type": "string", + "description": "Function's deployment ID used to create the execution.", + "x-example": "5e5ea5c16897e" + }, "trigger": { "type": "string", "description": "The trigger that caused the function to execute. Possible values can be: `http`, `schedule`, or `event`.", @@ -9971,6 +9976,7 @@ "$updatedAt", "$permissions", "functionId", + "deploymentId", "trigger", "status", "requestMethod", @@ -9991,6 +9997,7 @@ "any" ], "functionId": "5e5ea6g16897e", + "deploymentId": "5e5ea5c16897e", "trigger": "http", "status": "processing", "requestMethod": "GET", diff --git a/app/config/specs/swagger2-1.7.x-console.json b/app/config/specs/swagger2-1.7.x-console.json index 44bd326a43..26862c78bc 100644 --- a/app/config/specs/swagger2-1.7.x-console.json +++ b/app/config/specs/swagger2-1.7.x-console.json @@ -2770,7 +2770,7 @@ "tags": [ "account" ], - "description": "Sends the user an email with a secret key for creating a session. If the provided user ID has not be registered, a new user will be created. Use the returned user ID and secret and submit a request to the [POST \/v1\/account\/sessions\/token](https:\/\/appwrite.io\/docs\/references\/cloud\/client-web\/account#createSession) endpoint to complete the login process. The secret sent to the user's email is valid for 15 minutes.\n\nA user is limited to 10 active sessions at a time by default. [Learn more about session limits](https:\/\/appwrite.io\/docs\/authentication-security#limits).", + "description": "Sends the user an email with a secret key for creating a session. If the email address has never been used, a **new account is created** using the provided `userId`. Otherwise, if the email address is already attached to an account, the **user ID is ignored**. Then, the user will receive an email with the one-time password. Use the returned user ID and secret and submit a request to the [POST \/v1\/account\/sessions\/token](https:\/\/appwrite.io\/docs\/references\/cloud\/client-web\/account#createSession) endpoint to complete the login process. The secret sent to the user's email is valid for 15 minutes.\n\nA user is limited to 10 active sessions at a time by default. [Learn more about session limits](https:\/\/appwrite.io\/docs\/authentication-security#limits).\n", "responses": { "201": { "description": "Token", @@ -2818,7 +2818,7 @@ "properties": { "userId": { "type": "string", - "description": "User ID. Choose a custom ID or generate a random ID with `ID.unique()`. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars.", + "description": "User ID. Choose a custom ID or generate a random ID with `ID.unique()`. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars. If the email address has never been used, a new account is created using the provided userId. Otherwise, if the email address is already attached to an account, the user ID is ignored.", "default": null, "x-example": "" }, @@ -2905,7 +2905,7 @@ "properties": { "userId": { "type": "string", - "description": "Unique Id. Choose a custom ID or generate a random ID with `ID.unique()`. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars.", + "description": "Unique Id. Choose a custom ID or generate a random ID with `ID.unique()`. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars. If the email address has never been used, a new account is created using the provided userId. Otherwise, if the email address is already attached to an account, the user ID is ignored.", "default": null, "x-example": "" }, @@ -3130,7 +3130,7 @@ "properties": { "userId": { "type": "string", - "description": "Unique Id. Choose a custom ID or generate a random ID with `ID.unique()`. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars.", + "description": "Unique Id. Choose a custom ID or generate a random ID with `ID.unique()`. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars. If the phone number has never been used, a new account is created using the provided userId. Otherwise, if the phone number is already attached to an account, the user ID is ignored.", "default": null, "x-example": "" }, @@ -3607,7 +3607,7 @@ "parameters": [ { "name": "code", - "description": "Credit Card Code. Possible values: amex, argencard, cabal, cencosud, diners, discover, elo, hipercard, jcb, mastercard, naranja, targeta-shopping, union-china-pay, visa, mir, maestro, rupay.", + "description": "Credit Card Code. Possible values: amex, argencard, cabal, cencosud, diners, discover, elo, hipercard, jcb, mastercard, naranja, targeta-shopping, unionpay, visa, mir, maestro, rupay.", "required": true, "type": "string", "x-example": "amex", @@ -3624,7 +3624,7 @@ "mastercard", "naranja", "targeta-shopping", - "union-china-pay", + "unionpay", "visa", "mir", "maestro", @@ -3644,7 +3644,7 @@ "Mastercard", "Naranja", "Tarjeta Shopping", - "Union China Pay", + "Union Pay", "Visa", "MIR", "Maestro", @@ -41300,6 +41300,11 @@ "description": "Function ID.", "x-example": "5e5ea6g16897e" }, + "deploymentId": { + "type": "string", + "description": "Function's deployment ID used to create the execution.", + "x-example": "5e5ea5c16897e" + }, "trigger": { "type": "string", "description": "The trigger that caused the function to execute. Possible values can be: `http`, `schedule`, or `event`.", @@ -41386,6 +41391,7 @@ "$updatedAt", "$permissions", "functionId", + "deploymentId", "trigger", "status", "requestMethod", @@ -41406,6 +41412,7 @@ "any" ], "functionId": "5e5ea6g16897e", + "deploymentId": "5e5ea5c16897e", "trigger": "http", "status": "processing", "requestMethod": "GET", diff --git a/app/config/specs/swagger2-1.7.x-server.json b/app/config/specs/swagger2-1.7.x-server.json index 2a04908c06..2a0035dec7 100644 --- a/app/config/specs/swagger2-1.7.x-server.json +++ b/app/config/specs/swagger2-1.7.x-server.json @@ -2438,7 +2438,7 @@ "tags": [ "account" ], - "description": "Sends the user an email with a secret key for creating a session. If the provided user ID has not be registered, a new user will be created. Use the returned user ID and secret and submit a request to the [POST \/v1\/account\/sessions\/token](https:\/\/appwrite.io\/docs\/references\/cloud\/client-web\/account#createSession) endpoint to complete the login process. The secret sent to the user's email is valid for 15 minutes.\n\nA user is limited to 10 active sessions at a time by default. [Learn more about session limits](https:\/\/appwrite.io\/docs\/authentication-security#limits).", + "description": "Sends the user an email with a secret key for creating a session. If the email address has never been used, a **new account is created** using the provided `userId`. Otherwise, if the email address is already attached to an account, the **user ID is ignored**. Then, the user will receive an email with the one-time password. Use the returned user ID and secret and submit a request to the [POST \/v1\/account\/sessions\/token](https:\/\/appwrite.io\/docs\/references\/cloud\/client-web\/account#createSession) endpoint to complete the login process. The secret sent to the user's email is valid for 15 minutes.\n\nA user is limited to 10 active sessions at a time by default. [Learn more about session limits](https:\/\/appwrite.io\/docs\/authentication-security#limits).\n", "responses": { "201": { "description": "Token", @@ -2486,7 +2486,7 @@ "properties": { "userId": { "type": "string", - "description": "User ID. Choose a custom ID or generate a random ID with `ID.unique()`. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars.", + "description": "User ID. Choose a custom ID or generate a random ID with `ID.unique()`. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars. If the email address has never been used, a new account is created using the provided userId. Otherwise, if the email address is already attached to an account, the user ID is ignored.", "default": null, "x-example": "" }, @@ -2573,7 +2573,7 @@ "properties": { "userId": { "type": "string", - "description": "Unique Id. Choose a custom ID or generate a random ID with `ID.unique()`. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars.", + "description": "Unique Id. Choose a custom ID or generate a random ID with `ID.unique()`. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars. If the email address has never been used, a new account is created using the provided userId. Otherwise, if the email address is already attached to an account, the user ID is ignored.", "default": null, "x-example": "" }, @@ -2798,7 +2798,7 @@ "properties": { "userId": { "type": "string", - "description": "Unique Id. Choose a custom ID or generate a random ID with `ID.unique()`. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars.", + "description": "Unique Id. Choose a custom ID or generate a random ID with `ID.unique()`. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars. If the phone number has never been used, a new account is created using the provided userId. Otherwise, if the phone number is already attached to an account, the user ID is ignored.", "default": null, "x-example": "" }, @@ -3287,7 +3287,7 @@ "parameters": [ { "name": "code", - "description": "Credit Card Code. Possible values: amex, argencard, cabal, cencosud, diners, discover, elo, hipercard, jcb, mastercard, naranja, targeta-shopping, union-china-pay, visa, mir, maestro, rupay.", + "description": "Credit Card Code. Possible values: amex, argencard, cabal, cencosud, diners, discover, elo, hipercard, jcb, mastercard, naranja, targeta-shopping, unionpay, visa, mir, maestro, rupay.", "required": true, "type": "string", "x-example": "amex", @@ -3304,7 +3304,7 @@ "mastercard", "naranja", "targeta-shopping", - "union-china-pay", + "unionpay", "visa", "mir", "maestro", @@ -3324,7 +3324,7 @@ "Mastercard", "Naranja", "Tarjeta Shopping", - "Union China Pay", + "Union Pay", "Visa", "MIR", "Maestro", @@ -30460,6 +30460,11 @@ "description": "Function ID.", "x-example": "5e5ea6g16897e" }, + "deploymentId": { + "type": "string", + "description": "Function's deployment ID used to create the execution.", + "x-example": "5e5ea5c16897e" + }, "trigger": { "type": "string", "description": "The trigger that caused the function to execute. Possible values can be: `http`, `schedule`, or `event`.", @@ -30546,6 +30551,7 @@ "$updatedAt", "$permissions", "functionId", + "deploymentId", "trigger", "status", "requestMethod", @@ -30566,6 +30572,7 @@ "any" ], "functionId": "5e5ea6g16897e", + "deploymentId": "5e5ea5c16897e", "trigger": "http", "status": "processing", "requestMethod": "GET", diff --git a/app/config/specs/swagger2-1.8.x-client.json b/app/config/specs/swagger2-1.8.x-client.json index 29cfd281c1..55911e9556 100644 --- a/app/config/specs/swagger2-1.8.x-client.json +++ b/app/config/specs/swagger2-1.8.x-client.json @@ -442,7 +442,7 @@ "weight": 30, "cookies": false, "type": "", - "demo": "account\/create-j-w-t.md", + "demo": "account\/create-jwt.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/account\/create-jwt.md", "rate-limit": 100, "rate-time": 3600, @@ -558,7 +558,7 @@ "weight": 45, "cookies": false, "type": "", - "demo": "account\/update-m-f-a.md", + "demo": "account\/update-mfa.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/account\/update-mfa.md", "rate-limit": 0, "rate-time": 3600, @@ -693,7 +693,7 @@ } ], "description": "Add an authenticator app to be used as an MFA factor. Verify the authenticator using the [verify authenticator](\/docs\/references\/cloud\/client-web\/account#updateMfaAuthenticator) method.", - "demo": "account\/create-m-f-a-authenticator.md" + "demo": "account\/create-mfa-authenticator.md" } ], "auth": { @@ -817,7 +817,7 @@ } ], "description": "Verify an authenticator app after adding it using the [add authenticator](\/docs\/references\/cloud\/client-web\/account#createMfaAuthenticator) method.", - "demo": "account\/update-m-f-a-authenticator.md" + "demo": "account\/update-mfa-authenticator.md" } ], "auth": { @@ -948,7 +948,7 @@ } ], "description": "Delete an authenticator for a user by ID.", - "demo": "account\/delete-m-f-a-authenticator.md" + "demo": "account\/delete-mfa-authenticator.md" } ], "auth": { @@ -1070,7 +1070,7 @@ } ], "description": "Begin the process of MFA verification after sign-in. Finish the flow with [updateMfaChallenge](\/docs\/references\/cloud\/client-web\/account#updateMfaChallenge) method.", - "demo": "account\/create-m-f-a-challenge.md" + "demo": "account\/create-mfa-challenge.md" } ], "auth": { @@ -1205,7 +1205,7 @@ } ], "description": "Complete the MFA challenge by providing the one-time password. Finish the process of MFA verification by providing the one-time password. To begin the flow, use [createMfaChallenge](\/docs\/references\/cloud\/client-web\/account#createMfaChallenge) method.", - "demo": "account\/update-m-f-a-challenge.md" + "demo": "account\/update-mfa-challenge.md" } ], "auth": { @@ -1329,7 +1329,7 @@ } ], "description": "List the factors available on the account to be used as a MFA challange.", - "demo": "account\/list-m-f-a-factors.md" + "demo": "account\/list-mfa-factors.md" } ], "auth": { @@ -1426,7 +1426,7 @@ } ], "description": "Get recovery codes that can be used as backup for MFA flow. Before getting codes, they must be generated using [createMfaRecoveryCodes](\/docs\/references\/cloud\/client-web\/account#createMfaRecoveryCodes) method. An OTP challenge is required to read recovery codes.", - "demo": "account\/get-m-f-a-recovery-codes.md" + "demo": "account\/get-mfa-recovery-codes.md" } ], "auth": { @@ -1523,7 +1523,7 @@ } ], "description": "Generate recovery codes as backup for MFA flow. It's recommended to generate and show then immediately after user successfully adds their authehticator. Recovery codes can be used as a MFA verification type in [createMfaChallenge](\/docs\/references\/cloud\/client-web\/account#createMfaChallenge) method.", - "demo": "account\/create-m-f-a-recovery-codes.md" + "demo": "account\/create-mfa-recovery-codes.md" } ], "auth": { @@ -1620,7 +1620,7 @@ } ], "description": "Regenerate recovery codes that can be used as backup for MFA flow. Before regenerating codes, they must be first generated using [createMfaRecoveryCodes](\/docs\/references\/cloud\/client-web\/account#createMfaRecoveryCodes) method. An OTP challenge is required to regenreate recovery codes.", - "demo": "account\/update-m-f-a-recovery-codes.md" + "demo": "account\/update-mfa-recovery-codes.md" } ], "auth": { @@ -1979,7 +1979,7 @@ "type": "object", "description": "Prefs key-value JSON object.", "default": {}, - "x-example": "{}" + "x-example": "{\"language\":\"en\",\"timezone\":\"UTC\",\"darkTheme\":true}" } }, "required": [ @@ -2413,7 +2413,7 @@ "weight": 27, "cookies": false, "type": "", - "demo": "account\/update-magic-u-r-l-session.md", + "demo": "account\/update-magic-url-session.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/account\/create-session.md", "rate-limit": 10, "rate-time": 3600, @@ -2424,6 +2424,10 @@ "client" ], "packaging": false, + "deprecated": { + "since": "1.6.0", + "replaceWith": "account.createSession" + }, "auth": { "Project": [] } @@ -2486,7 +2490,7 @@ "weight": 20, "cookies": false, "type": "webAuth", - "demo": "account\/create-o-auth2session.md", + "demo": "account\/create-o-auth-2-session.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/account\/create-session-oauth2.md", "rate-limit": 50, "rate-time": 3600, @@ -2634,6 +2638,10 @@ "client" ], "packaging": false, + "deprecated": { + "since": "1.6.0", + "replaceWith": "account.createSession" + }, "auth": { "Project": [] } @@ -3314,7 +3322,7 @@ "weight": 25, "cookies": false, "type": "", - "demo": "account\/create-magic-u-r-l-token.md", + "demo": "account\/create-magic-url-token.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/account\/create-token-magic-url.md", "rate-limit": 60, "rate-time": 3600, @@ -3402,7 +3410,7 @@ "weight": 24, "cookies": false, "type": "webAuth", - "demo": "account\/create-o-auth2token.md", + "demo": "account\/create-o-auth-2-token.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/account\/create-token-oauth2.md", "rate-limit": 50, "rate-time": 3600, @@ -4052,7 +4060,7 @@ "parameters": [ { "name": "code", - "description": "Credit Card Code. Possible values: amex, argencard, cabal, cencosud, diners, discover, elo, hipercard, jcb, mastercard, naranja, targeta-shopping, union-china-pay, visa, mir, maestro, rupay.", + "description": "Credit Card Code. Possible values: amex, argencard, cabal, cencosud, diners, discover, elo, hipercard, jcb, mastercard, naranja, targeta-shopping, unionpay, visa, mir, maestro, rupay.", "required": true, "type": "string", "x-example": "amex", @@ -4069,7 +4077,7 @@ "mastercard", "naranja", "targeta-shopping", - "union-china-pay", + "unionpay", "visa", "mir", "maestro", @@ -4089,7 +4097,7 @@ "Mastercard", "Naranja", "Tarjeta Shopping", - "Union China Pay", + "Union Pay", "Visa", "MIR", "Maestro", @@ -4877,7 +4885,7 @@ "weight": 65, "cookies": false, "type": "location", - "demo": "avatars\/get-q-r.md", + "demo": "avatars\/get-qr.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/avatars\/get-qr.md", "rate-limit": 0, "rate-time": 3600, @@ -4964,7 +4972,7 @@ "x-appwrite": { "method": "listDocuments", "group": "documents", - "weight": 340, + "weight": 335, "cookies": false, "type": "", "demo": "databases\/list-documents.md", @@ -5049,7 +5057,7 @@ "x-appwrite": { "method": "createDocument", "group": "documents", - "weight": 332, + "weight": 327, "cookies": false, "type": "", "demo": "databases\/create-document.md", @@ -5146,7 +5154,7 @@ "type": "object", "description": "Document data as JSON object.", "default": [], - "x-example": "{}" + "x-example": "{\"username\":\"walter.obrien\",\"email\":\"walter.obrien@example.com\",\"fullName\":\"Walter O'Brien\",\"age\":30,\"isAdmin\":false}" }, "permissions": { "type": "array", @@ -5196,7 +5204,7 @@ "x-appwrite": { "method": "getDocument", "group": "documents", - "weight": 333, + "weight": 328, "cookies": false, "type": "", "demo": "databases\/get-document.md", @@ -5265,7 +5273,7 @@ ] }, "put": { - "summary": "Create or update a document", + "summary": "Upsert a document", "operationId": "databasesUpsertDocument", "consumes": [ "application\/json" @@ -5289,7 +5297,7 @@ "x-appwrite": { "method": "upsertDocument", "group": "documents", - "weight": 336, + "weight": 331, "cookies": false, "type": "", "demo": "databases\/upsert-document.md", @@ -5432,7 +5440,7 @@ "x-appwrite": { "method": "updateDocument", "group": "documents", - "weight": 334, + "weight": 329, "cookies": false, "type": "", "demo": "databases\/update-document.md", @@ -5532,7 +5540,7 @@ "x-appwrite": { "method": "deleteDocument", "group": "documents", - "weight": 338, + "weight": 333, "cookies": false, "type": "", "demo": "databases\/delete-document.md", @@ -5615,7 +5623,7 @@ "x-appwrite": { "method": "decrementDocumentAttribute", "group": "documents", - "weight": 343, + "weight": 338, "cookies": false, "type": "", "demo": "databases\/decrement-document-attribute.md", @@ -5727,7 +5735,7 @@ "x-appwrite": { "method": "incrementDocumentAttribute", "group": "documents", - "weight": 342, + "weight": 337, "cookies": false, "type": "", "demo": "databases\/increment-document-attribute.md", @@ -5837,7 +5845,7 @@ "x-appwrite": { "method": "listExecutions", "group": "executions", - "weight": 448, + "weight": 456, "cookies": false, "type": "", "demo": "functions\/list-executions.md", @@ -5910,7 +5918,7 @@ "x-appwrite": { "method": "createExecution", "group": "executions", - "weight": 446, + "weight": 454, "cookies": false, "type": "", "demo": "functions\/create-execution.md", @@ -5970,7 +5978,7 @@ }, "method": { "type": "string", - "description": "HTTP method of execution. Default value is GET.", + "description": "HTTP method of execution. Default value is POST.", "default": "POST", "x-example": "GET", "enum": [ @@ -5979,7 +5987,8 @@ "PUT", "PATCH", "DELETE", - "OPTIONS" + "OPTIONS", + "HEAD" ], "x-enum-name": "ExecutionMethod", "x-enum-keys": [] @@ -6026,7 +6035,7 @@ "x-appwrite": { "method": "getExecution", "group": "executions", - "weight": 447, + "weight": 455, "cookies": false, "type": "", "demo": "functions\/get-execution.md", @@ -6097,7 +6106,7 @@ "x-appwrite": { "method": "query", "group": "graphql", - "weight": 255, + "weight": 250, "cookies": false, "type": "graphql", "demo": "graphql\/query.md", @@ -6170,7 +6179,7 @@ "x-appwrite": { "method": "mutation", "group": "graphql", - "weight": 254, + "weight": 249, "cookies": false, "type": "graphql", "demo": "graphql\/mutation.md", @@ -6448,7 +6457,7 @@ "weight": 73, "cookies": false, "type": "", - "demo": "locale\/list-countries-e-u.md", + "demo": "locale\/list-countries-eu.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/locale\/list-countries-eu.md", "rate-limit": 0, "rate-time": 3600, @@ -6651,7 +6660,7 @@ "x-appwrite": { "method": "createSubscriber", "group": "subscribers", - "weight": 301, + "weight": 296, "cookies": false, "type": "", "demo": "messaging\/create-subscriber.md", @@ -6735,7 +6744,7 @@ "x-appwrite": { "method": "deleteSubscriber", "group": "subscribers", - "weight": 305, + "weight": 300, "cookies": false, "type": "", "demo": "messaging\/delete-subscriber.md", @@ -6805,7 +6814,7 @@ "x-appwrite": { "method": "listFiles", "group": "files", - "weight": 161, + "weight": 160, "cookies": false, "type": "", "demo": "storage\/list-files.md", @@ -6887,7 +6896,7 @@ "x-appwrite": { "method": "createFile", "group": "files", - "weight": 160, + "weight": 159, "cookies": false, "type": "upload", "demo": "storage\/create-file.md", @@ -6976,7 +6985,7 @@ "x-appwrite": { "method": "getFile", "group": "files", - "weight": 162, + "weight": 161, "cookies": false, "type": "", "demo": "storage\/get-file.md", @@ -7045,7 +7054,7 @@ "x-appwrite": { "method": "updateFile", "group": "files", - "weight": 167, + "weight": 166, "cookies": false, "type": "", "demo": "storage\/update-file.md", @@ -7133,7 +7142,7 @@ "x-appwrite": { "method": "deleteFile", "group": "files", - "weight": 168, + "weight": 167, "cookies": false, "type": "", "demo": "storage\/delete-file.md", @@ -7202,7 +7211,7 @@ "x-appwrite": { "method": "getFileDownload", "group": "files", - "weight": 164, + "weight": 163, "cookies": false, "type": "location", "demo": "storage\/get-file-download.md", @@ -7280,7 +7289,7 @@ "x-appwrite": { "method": "getFilePreview", "group": "files", - "weight": 163, + "weight": 162, "cookies": false, "type": "location", "demo": "storage\/get-file-preview.md", @@ -7486,7 +7495,7 @@ "x-appwrite": { "method": "getFileView", "group": "files", - "weight": 165, + "weight": 164, "cookies": false, "type": "location", "demo": "storage\/get-file-view.md", @@ -7564,15 +7573,18 @@ "x-appwrite": { "method": "listRows", "group": "rows", - "weight": 420, + "weight": 427, "cookies": false, "type": "", - "demo": "tables-d-b\/list-rows.md", + "demo": "tablesdb\/list-rows.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/list-rows.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "rows.read", + "scope": [ + "rows.read", + "documents.read" + ], "platforms": [ "client", "server" @@ -7645,15 +7657,18 @@ "x-appwrite": { "method": "createRow", "group": "rows", - "weight": 412, + "weight": 419, "cookies": false, "type": "", - "demo": "tables-d-b\/create-row.md", + "demo": "tablesdb\/create-row.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/create-row.md", "rate-limit": 120, "rate-time": 60, "rate-key": "ip:{ip},method:{method},url:{url},userId:{userId}", - "scope": "rows.write", + "scope": [ + "rows.write", + "documents.write" + ], "platforms": [ "client", "server" @@ -7687,7 +7702,7 @@ } ], "description": "Create a new Row. Before using this route, you should create a new table resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/tablesdb#tablesDBCreateTable) API or directly from your database console.", - "demo": "tables-d-b\/create-row.md" + "demo": "tablesdb\/create-row.md" } ], "auth": { @@ -7734,7 +7749,7 @@ "type": "object", "description": "Row data as JSON object.", "default": [], - "x-example": "{}" + "x-example": "{\"username\":\"walter.obrien\",\"email\":\"walter.obrien@example.com\",\"fullName\":\"Walter O'Brien\",\"age\":30,\"isAdmin\":false}" }, "permissions": { "type": "array", @@ -7747,7 +7762,7 @@ }, "rows": { "type": "array", - "description": "Array of documents data as JSON objects.", + "description": "Array of rows data as JSON objects.", "default": [], "x-example": null, "items": { @@ -7784,15 +7799,18 @@ "x-appwrite": { "method": "getRow", "group": "rows", - "weight": 413, + "weight": 420, "cookies": false, "type": "", - "demo": "tables-d-b\/get-row.md", + "demo": "tablesdb\/get-row.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/get-row.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "rows.read", + "scope": [ + "rows.read", + "documents.read" + ], "platforms": [ "client", "server" @@ -7849,7 +7867,7 @@ ] }, "put": { - "summary": "Create or update a row", + "summary": "Upsert a row", "operationId": "tablesDBUpsertRow", "consumes": [ "application\/json" @@ -7873,15 +7891,18 @@ "x-appwrite": { "method": "upsertRow", "group": "rows", - "weight": 416, + "weight": 423, "cookies": false, "type": "", - "demo": "tables-d-b\/upsert-row.md", + "demo": "tablesdb\/upsert-row.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/upsert-row.md", "rate-limit": 120, "rate-time": 60, "rate-key": "ip:{ip},method:{method},url:{url},userId:{userId}", - "scope": "rows.write", + "scope": [ + "rows.write", + "documents.write" + ], "platforms": [ "client", "server" @@ -7914,7 +7935,7 @@ } ], "description": "Create or update a Row. Before using this route, you should create a new table resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/tablesdb#tablesDBCreateTable) API or directly from your database console.", - "demo": "tables-d-b\/upsert-row.md" + "demo": "tablesdb\/upsert-row.md" } ], "auth": { @@ -8004,15 +8025,18 @@ "x-appwrite": { "method": "updateRow", "group": "rows", - "weight": 414, + "weight": 421, "cookies": false, "type": "", - "demo": "tables-d-b\/update-row.md", + "demo": "tablesdb\/update-row.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/update-row.md", "rate-limit": 120, "rate-time": 60, "rate-key": "ip:{ip},method:{method},url:{url},userId:{userId}", - "scope": "rows.write", + "scope": [ + "rows.write", + "documents.write" + ], "platforms": [ "client", "server" @@ -8100,15 +8124,18 @@ "x-appwrite": { "method": "deleteRow", "group": "rows", - "weight": 418, + "weight": 425, "cookies": false, "type": "", - "demo": "tables-d-b\/delete-row.md", + "demo": "tablesdb\/delete-row.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/delete-row.md", "rate-limit": 60, "rate-time": 60, "rate-key": "ip:{ip},method:{method},url:{url},userId:{userId}", - "scope": "rows.write", + "scope": [ + "rows.write", + "documents.write" + ], "platforms": [ "client", "server" @@ -8179,15 +8206,18 @@ "x-appwrite": { "method": "decrementRowColumn", "group": "rows", - "weight": 423, + "weight": 430, "cookies": false, "type": "", - "demo": "tables-d-b\/decrement-row-column.md", + "demo": "tablesdb\/decrement-row-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/decrement-row-column.md", "rate-limit": 120, "rate-time": 60, "rate-key": "ip:{ip},method:{method},url:{url},userId:{userId}", - "scope": "rows.write", + "scope": [ + "rows.write", + "documents.write" + ], "platforms": [ "client", "server", @@ -8287,15 +8317,18 @@ "x-appwrite": { "method": "incrementRowColumn", "group": "rows", - "weight": 422, + "weight": 429, "cookies": false, "type": "", - "demo": "tables-d-b\/increment-row-column.md", + "demo": "tablesdb\/increment-row-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/increment-row-column.md", "rate-limit": 120, "rate-time": 60, "rate-key": "ip:{ip},method:{method},url:{url},userId:{userId}", - "scope": "rows.write", + "scope": [ + "rows.write", + "documents.write" + ], "platforms": [ "client", "server", @@ -8393,7 +8426,7 @@ "x-appwrite": { "method": "list", "group": "teams", - "weight": 172, + "weight": 171, "cookies": false, "type": "", "demo": "teams\/list.md", @@ -8467,7 +8500,7 @@ "x-appwrite": { "method": "create", "group": "teams", - "weight": 171, + "weight": 170, "cookies": false, "type": "", "demo": "teams\/create.md", @@ -8556,7 +8589,7 @@ "x-appwrite": { "method": "get", "group": "teams", - "weight": 173, + "weight": 172, "cookies": false, "type": "", "demo": "teams\/get.md", @@ -8617,7 +8650,7 @@ "x-appwrite": { "method": "updateName", "group": "teams", - "weight": 175, + "weight": 174, "cookies": false, "type": "", "demo": "teams\/update-name.md", @@ -8691,7 +8724,7 @@ "x-appwrite": { "method": "delete", "group": "teams", - "weight": 177, + "weight": 176, "cookies": false, "type": "", "demo": "teams\/delete.md", @@ -8752,7 +8785,7 @@ "x-appwrite": { "method": "listMemberships", "group": "memberships", - "weight": 179, + "weight": 178, "cookies": false, "type": "", "demo": "teams\/list-memberships.md", @@ -8834,7 +8867,7 @@ "x-appwrite": { "method": "createMembership", "group": "memberships", - "weight": 178, + "weight": 177, "cookies": false, "type": "", "demo": "teams\/create-membership.md", @@ -8946,7 +8979,7 @@ "x-appwrite": { "method": "getMembership", "group": "memberships", - "weight": 180, + "weight": 179, "cookies": false, "type": "", "demo": "teams\/get-membership.md", @@ -9015,7 +9048,7 @@ "x-appwrite": { "method": "updateMembership", "group": "memberships", - "weight": 181, + "weight": 180, "cookies": false, "type": "", "demo": "teams\/update-membership.md", @@ -9100,7 +9133,7 @@ "x-appwrite": { "method": "deleteMembership", "group": "memberships", - "weight": 183, + "weight": 182, "cookies": false, "type": "", "demo": "teams\/delete-membership.md", @@ -9171,7 +9204,7 @@ "x-appwrite": { "method": "updateMembershipStatus", "group": "memberships", - "weight": 182, + "weight": 181, "cookies": false, "type": "", "demo": "teams\/update-membership-status.md", @@ -9265,7 +9298,7 @@ "x-appwrite": { "method": "getPrefs", "group": "teams", - "weight": 174, + "weight": 173, "cookies": false, "type": "", "demo": "teams\/get-prefs.md", @@ -9326,7 +9359,7 @@ "x-appwrite": { "method": "updatePrefs", "group": "teams", - "weight": 176, + "weight": 175, "cookies": false, "type": "", "demo": "teams\/update-prefs.md", @@ -9911,17 +9944,20 @@ "type": "integer", "description": "Row automatically incrementing ID.", "x-example": 1, - "format": "int32" + "format": "int32", + "readOnly": true }, "$tableId": { "type": "string", "description": "Table ID.", - "x-example": "5e5ea5c15117e" + "x-example": "5e5ea5c15117e", + "readOnly": true }, "$databaseId": { "type": "string", "description": "Database ID.", - "x-example": "5e5ea5c15117e" + "x-example": "5e5ea5c15117e", + "readOnly": true }, "$createdAt": { "type": "string", diff --git a/app/config/specs/swagger2-1.8.x-console.json b/app/config/specs/swagger2-1.8.x-console.json index cf4c425874..6d5721c73b 100644 --- a/app/config/specs/swagger2-1.8.x-console.json +++ b/app/config/specs/swagger2-1.8.x-console.json @@ -487,7 +487,7 @@ "weight": 30, "cookies": false, "type": "", - "demo": "account\/create-j-w-t.md", + "demo": "account\/create-jwt.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/account\/create-jwt.md", "rate-limit": 100, "rate-time": 3600, @@ -602,7 +602,7 @@ "weight": 45, "cookies": false, "type": "", - "demo": "account\/update-m-f-a.md", + "demo": "account\/update-mfa.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/account\/update-mfa.md", "rate-limit": 0, "rate-time": 3600, @@ -736,7 +736,7 @@ } ], "description": "Add an authenticator app to be used as an MFA factor. Verify the authenticator using the [verify authenticator](\/docs\/references\/cloud\/client-web\/account#updateMfaAuthenticator) method.", - "demo": "account\/create-m-f-a-authenticator.md" + "demo": "account\/create-mfa-authenticator.md" } ], "auth": { @@ -859,7 +859,7 @@ } ], "description": "Verify an authenticator app after adding it using the [add authenticator](\/docs\/references\/cloud\/client-web\/account#createMfaAuthenticator) method.", - "demo": "account\/update-m-f-a-authenticator.md" + "demo": "account\/update-mfa-authenticator.md" } ], "auth": { @@ -989,7 +989,7 @@ } ], "description": "Delete an authenticator for a user by ID.", - "demo": "account\/delete-m-f-a-authenticator.md" + "demo": "account\/delete-mfa-authenticator.md" } ], "auth": { @@ -1110,7 +1110,7 @@ } ], "description": "Begin the process of MFA verification after sign-in. Finish the flow with [updateMfaChallenge](\/docs\/references\/cloud\/client-web\/account#updateMfaChallenge) method.", - "demo": "account\/create-m-f-a-challenge.md" + "demo": "account\/create-mfa-challenge.md" } ], "auth": { @@ -1245,7 +1245,7 @@ } ], "description": "Complete the MFA challenge by providing the one-time password. Finish the process of MFA verification by providing the one-time password. To begin the flow, use [createMfaChallenge](\/docs\/references\/cloud\/client-web\/account#createMfaChallenge) method.", - "demo": "account\/update-m-f-a-challenge.md" + "demo": "account\/update-mfa-challenge.md" } ], "auth": { @@ -1368,7 +1368,7 @@ } ], "description": "List the factors available on the account to be used as a MFA challange.", - "demo": "account\/list-m-f-a-factors.md" + "demo": "account\/list-mfa-factors.md" } ], "auth": { @@ -1464,7 +1464,7 @@ } ], "description": "Get recovery codes that can be used as backup for MFA flow. Before getting codes, they must be generated using [createMfaRecoveryCodes](\/docs\/references\/cloud\/client-web\/account#createMfaRecoveryCodes) method. An OTP challenge is required to read recovery codes.", - "demo": "account\/get-m-f-a-recovery-codes.md" + "demo": "account\/get-mfa-recovery-codes.md" } ], "auth": { @@ -1560,7 +1560,7 @@ } ], "description": "Generate recovery codes as backup for MFA flow. It's recommended to generate and show then immediately after user successfully adds their authehticator. Recovery codes can be used as a MFA verification type in [createMfaChallenge](\/docs\/references\/cloud\/client-web\/account#createMfaChallenge) method.", - "demo": "account\/create-m-f-a-recovery-codes.md" + "demo": "account\/create-mfa-recovery-codes.md" } ], "auth": { @@ -1656,7 +1656,7 @@ } ], "description": "Regenerate recovery codes that can be used as backup for MFA flow. Before regenerating codes, they must be first generated using [createMfaRecoveryCodes](\/docs\/references\/cloud\/client-web\/account#createMfaRecoveryCodes) method. An OTP challenge is required to regenreate recovery codes.", - "demo": "account\/update-m-f-a-recovery-codes.md" + "demo": "account\/update-mfa-recovery-codes.md" } ], "auth": { @@ -2009,7 +2009,7 @@ "type": "object", "description": "Prefs key-value JSON object.", "default": {}, - "x-example": "{}" + "x-example": "{\"language\":\"en\",\"timezone\":\"UTC\",\"darkTheme\":true}" } }, "required": [ @@ -2439,7 +2439,7 @@ "weight": 27, "cookies": false, "type": "", - "demo": "account\/update-magic-u-r-l-session.md", + "demo": "account\/update-magic-url-session.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/account\/create-session.md", "rate-limit": 10, "rate-time": 3600, @@ -2450,6 +2450,10 @@ "client" ], "packaging": false, + "deprecated": { + "since": "1.6.0", + "replaceWith": "account.createSession" + }, "auth": { "Project": [] } @@ -2512,7 +2516,7 @@ "weight": 20, "cookies": false, "type": "webAuth", - "demo": "account\/create-o-auth2session.md", + "demo": "account\/create-o-auth-2-session.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/account\/create-session-oauth2.md", "rate-limit": 50, "rate-time": 3600, @@ -2660,6 +2664,10 @@ "client" ], "packaging": false, + "deprecated": { + "since": "1.6.0", + "replaceWith": "account.createSession" + }, "auth": { "Project": [] } @@ -3333,7 +3341,7 @@ "weight": 25, "cookies": false, "type": "", - "demo": "account\/create-magic-u-r-l-token.md", + "demo": "account\/create-magic-url-token.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/account\/create-token-magic-url.md", "rate-limit": 60, "rate-time": 3600, @@ -3421,7 +3429,7 @@ "weight": 24, "cookies": false, "type": "webAuth", - "demo": "account\/create-o-auth2token.md", + "demo": "account\/create-o-auth-2-token.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/account\/create-token-oauth2.md", "rate-limit": 50, "rate-time": 3600, @@ -4067,7 +4075,7 @@ "parameters": [ { "name": "code", - "description": "Credit Card Code. Possible values: amex, argencard, cabal, cencosud, diners, discover, elo, hipercard, jcb, mastercard, naranja, targeta-shopping, union-china-pay, visa, mir, maestro, rupay.", + "description": "Credit Card Code. Possible values: amex, argencard, cabal, cencosud, diners, discover, elo, hipercard, jcb, mastercard, naranja, targeta-shopping, unionpay, visa, mir, maestro, rupay.", "required": true, "type": "string", "x-example": "amex", @@ -4084,7 +4092,7 @@ "mastercard", "naranja", "targeta-shopping", - "union-china-pay", + "unionpay", "visa", "mir", "maestro", @@ -4104,7 +4112,7 @@ "Mastercard", "Naranja", "Tarjeta Shopping", - "Union China Pay", + "Union Pay", "Visa", "MIR", "Maestro", @@ -4892,7 +4900,7 @@ "weight": 65, "cookies": false, "type": "location", - "demo": "avatars\/get-q-r.md", + "demo": "avatars\/get-qr.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/avatars\/get-qr.md", "rate-limit": 0, "rate-time": 3600, @@ -4981,7 +4989,7 @@ "x-appwrite": { "method": "chat", "group": "console", - "weight": 257, + "weight": 252, "cookies": false, "type": "", "demo": "assistant\/chat.md", @@ -5044,7 +5052,7 @@ "x-appwrite": { "method": "getResource", "group": null, - "weight": 488, + "weight": 496, "cookies": false, "type": "", "demo": "console\/get-resource.md", @@ -5115,7 +5123,7 @@ "x-appwrite": { "method": "variables", "group": "console", - "weight": 256, + "weight": 251, "cookies": false, "type": "", "demo": "console\/variables.md", @@ -5163,7 +5171,7 @@ "x-appwrite": { "method": "list", "group": "databases", - "weight": 321, + "weight": 316, "cookies": false, "type": "", "demo": "databases\/list.md", @@ -5266,7 +5274,7 @@ "x-appwrite": { "method": "create", "group": "databases", - "weight": 317, + "weight": 312, "cookies": false, "type": "", "demo": "databases\/create.md", @@ -5281,7 +5289,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tablesDB.createDatabase" + "replaceWith": "tablesDB.create" }, "methods": [ { @@ -5310,7 +5318,7 @@ "demo": "databases\/create.md", "deprecated": { "since": "1.8.0", - "replaceWith": "tablesDB.createDatabase" + "replaceWith": "tablesDB.create" } } ], @@ -5383,7 +5391,7 @@ "x-appwrite": { "method": "listUsage", "group": null, - "weight": 324, + "weight": 319, "cookies": false, "type": "", "demo": "databases\/list-usage.md", @@ -5483,7 +5491,7 @@ "x-appwrite": { "method": "get", "group": "databases", - "weight": 318, + "weight": 313, "cookies": false, "type": "", "demo": "databases\/get.md", @@ -5574,7 +5582,7 @@ "x-appwrite": { "method": "update", "group": "databases", - "weight": 319, + "weight": 314, "cookies": false, "type": "", "demo": "databases\/update.md", @@ -5687,7 +5695,7 @@ "x-appwrite": { "method": "delete", "group": "databases", - "weight": 320, + "weight": 315, "cookies": false, "type": "", "demo": "databases\/delete.md", @@ -5777,7 +5785,7 @@ "x-appwrite": { "method": "listCollections", "group": "collections", - "weight": 329, + "weight": 324, "cookies": false, "type": "", "demo": "databases\/list-collections.md", @@ -5861,7 +5869,7 @@ "x-appwrite": { "method": "createCollection", "group": "collections", - "weight": 325, + "weight": 320, "cookies": false, "type": "", "demo": "databases\/create-collection.md", @@ -5970,7 +5978,7 @@ "x-appwrite": { "method": "getCollection", "group": "collections", - "weight": 326, + "weight": 321, "cookies": false, "type": "", "demo": "databases\/get-collection.md", @@ -6041,7 +6049,7 @@ "x-appwrite": { "method": "updateCollection", "group": "collections", - "weight": 327, + "weight": 322, "cookies": false, "type": "", "demo": "databases\/update-collection.md", @@ -6146,7 +6154,7 @@ "x-appwrite": { "method": "deleteCollection", "group": "collections", - "weight": 328, + "weight": 323, "cookies": false, "type": "", "demo": "databases\/delete-collection.md", @@ -6217,7 +6225,7 @@ "x-appwrite": { "method": "listAttributes", "group": "attributes", - "weight": 346, + "weight": 341, "cookies": false, "type": "", "demo": "databases\/list-attributes.md", @@ -6302,7 +6310,7 @@ "x-appwrite": { "method": "createBooleanAttribute", "group": "attributes", - "weight": 347, + "weight": 342, "cookies": false, "type": "", "demo": "databases\/create-boolean-attribute.md", @@ -6412,7 +6420,7 @@ "x-appwrite": { "method": "updateBooleanAttribute", "group": "attributes", - "weight": 348, + "weight": 343, "cookies": false, "type": "", "demo": "databases\/update-boolean-attribute.md", @@ -6524,7 +6532,7 @@ "x-appwrite": { "method": "createDatetimeAttribute", "group": "attributes", - "weight": 349, + "weight": 344, "cookies": false, "type": "", "demo": "databases\/create-datetime-attribute.md", @@ -6634,7 +6642,7 @@ "x-appwrite": { "method": "updateDatetimeAttribute", "group": "attributes", - "weight": 350, + "weight": 345, "cookies": false, "type": "", "demo": "databases\/update-datetime-attribute.md", @@ -6746,7 +6754,7 @@ "x-appwrite": { "method": "createEmailAttribute", "group": "attributes", - "weight": 351, + "weight": 346, "cookies": false, "type": "", "demo": "databases\/create-email-attribute.md", @@ -6856,7 +6864,7 @@ "x-appwrite": { "method": "updateEmailAttribute", "group": "attributes", - "weight": 352, + "weight": 347, "cookies": false, "type": "", "demo": "databases\/update-email-attribute.md", @@ -6968,7 +6976,7 @@ "x-appwrite": { "method": "createEnumAttribute", "group": "attributes", - "weight": 353, + "weight": 348, "cookies": false, "type": "", "demo": "databases\/create-enum-attribute.md", @@ -7088,7 +7096,7 @@ "x-appwrite": { "method": "updateEnumAttribute", "group": "attributes", - "weight": 354, + "weight": 349, "cookies": false, "type": "", "demo": "databases\/update-enum-attribute.md", @@ -7210,7 +7218,7 @@ "x-appwrite": { "method": "createFloatAttribute", "group": "attributes", - "weight": 355, + "weight": 350, "cookies": false, "type": "", "demo": "databases\/create-float-attribute.md", @@ -7332,7 +7340,7 @@ "x-appwrite": { "method": "updateFloatAttribute", "group": "attributes", - "weight": 356, + "weight": 351, "cookies": false, "type": "", "demo": "databases\/update-float-attribute.md", @@ -7456,7 +7464,7 @@ "x-appwrite": { "method": "createIntegerAttribute", "group": "attributes", - "weight": 357, + "weight": 352, "cookies": false, "type": "", "demo": "databases\/create-integer-attribute.md", @@ -7578,7 +7586,7 @@ "x-appwrite": { "method": "updateIntegerAttribute", "group": "attributes", - "weight": 358, + "weight": 353, "cookies": false, "type": "", "demo": "databases\/update-integer-attribute.md", @@ -7702,7 +7710,7 @@ "x-appwrite": { "method": "createIpAttribute", "group": "attributes", - "weight": 359, + "weight": 354, "cookies": false, "type": "", "demo": "databases\/create-ip-attribute.md", @@ -7812,7 +7820,7 @@ "x-appwrite": { "method": "updateIpAttribute", "group": "attributes", - "weight": 360, + "weight": 355, "cookies": false, "type": "", "demo": "databases\/update-ip-attribute.md", @@ -7898,6 +7906,654 @@ ] } }, + "\/databases\/{databaseId}\/collections\/{collectionId}\/attributes\/line": { + "post": { + "summary": "Create line attribute", + "operationId": "databasesCreateLineAttribute", + "consumes": [ + "application\/json" + ], + "produces": [ + "application\/json" + ], + "tags": [ + "databases" + ], + "description": "Create a geometric line attribute.", + "responses": { + "202": { + "description": "AttributeLine", + "schema": { + "$ref": "#\/definitions\/attributeLine" + } + } + }, + "deprecated": true, + "x-appwrite": { + "method": "createLineAttribute", + "group": "attributes", + "weight": 356, + "cookies": false, + "type": "", + "demo": "databases\/create-line-attribute.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-line-attribute.md", + "rate-limit": 0, + "rate-time": 3600, + "rate-key": "url:{url},ip:{ip}", + "scope": "collections.write", + "platforms": [ + "server" + ], + "packaging": false, + "deprecated": { + "since": "1.8.0", + "replaceWith": "tablesDB.createLineColumn" + }, + "auth": { + "Project": [] + } + }, + "security": [ + { + "Project": [], + "Key": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + }, + { + "name": "collectionId", + "description": "Collection ID. You can create a new collection using the Database service [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateCollection).", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + }, + { + "name": "payload", + "in": "body", + "schema": { + "type": "object", + "properties": { + "key": { + "type": "string", + "description": "Attribute Key.", + "default": null, + "x-example": null + }, + "required": { + "type": "boolean", + "description": "Is attribute required?", + "default": null, + "x-example": false + }, + "default": { + "type": "array", + "description": "Default value for attribute when not provided, two-dimensional array of coordinate pairs, [[longitude, latitude], [longitude, latitude], \u2026], listing the vertices of the line in order. Cannot be set when attribute is required.", + "default": null, + "x-example": "[[1, 2], [3, 4], [5, 6]]", + "x-nullable": true + } + }, + "required": [ + "key", + "required" + ] + } + } + ] + } + }, + "\/databases\/{databaseId}\/collections\/{collectionId}\/attributes\/line\/{key}": { + "patch": { + "summary": "Update line attribute", + "operationId": "databasesUpdateLineAttribute", + "consumes": [ + "application\/json" + ], + "produces": [ + "application\/json" + ], + "tags": [ + "databases" + ], + "description": "Update a line attribute. Changing the `default` value will not update already existing documents.", + "responses": { + "200": { + "description": "AttributeLine", + "schema": { + "$ref": "#\/definitions\/attributeLine" + } + } + }, + "deprecated": true, + "x-appwrite": { + "method": "updateLineAttribute", + "group": "attributes", + "weight": 357, + "cookies": false, + "type": "", + "demo": "databases\/update-line-attribute.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-line-attribute.md", + "rate-limit": 0, + "rate-time": 3600, + "rate-key": "url:{url},ip:{ip}", + "scope": "collections.write", + "platforms": [ + "server" + ], + "packaging": false, + "deprecated": { + "since": "1.8.0", + "replaceWith": "tablesDB.updateLineColumn" + }, + "auth": { + "Project": [] + } + }, + "security": [ + { + "Project": [], + "Key": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + }, + { + "name": "collectionId", + "description": "Collection ID. You can create a new collection using the Database service [server integration](https:\/\/appwrite.io\/docs\/server\/databases#createCollection).", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + }, + { + "name": "key", + "description": "Attribute Key.", + "required": true, + "type": "string", + "in": "path" + }, + { + "name": "payload", + "in": "body", + "schema": { + "type": "object", + "properties": { + "required": { + "type": "boolean", + "description": "Is attribute required?", + "default": null, + "x-example": false + }, + "default": { + "type": "array", + "description": "Default value for attribute when not provided, two-dimensional array of coordinate pairs, [[longitude, latitude], [longitude, latitude], \u2026], listing the vertices of the line in order. Cannot be set when attribute is required.", + "default": null, + "x-example": "[[1, 2], [3, 4], [5, 6]]", + "x-nullable": true + }, + "newKey": { + "type": "string", + "description": "New attribute key.", + "default": null, + "x-example": null + } + }, + "required": [ + "required" + ] + } + } + ] + } + }, + "\/databases\/{databaseId}\/collections\/{collectionId}\/attributes\/point": { + "post": { + "summary": "Create point attribute", + "operationId": "databasesCreatePointAttribute", + "consumes": [ + "application\/json" + ], + "produces": [ + "application\/json" + ], + "tags": [ + "databases" + ], + "description": "Create a geometric point attribute.", + "responses": { + "202": { + "description": "AttributePoint", + "schema": { + "$ref": "#\/definitions\/attributePoint" + } + } + }, + "deprecated": true, + "x-appwrite": { + "method": "createPointAttribute", + "group": "attributes", + "weight": 358, + "cookies": false, + "type": "", + "demo": "databases\/create-point-attribute.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-point-attribute.md", + "rate-limit": 0, + "rate-time": 3600, + "rate-key": "url:{url},ip:{ip}", + "scope": "collections.write", + "platforms": [ + "server" + ], + "packaging": false, + "deprecated": { + "since": "1.8.0", + "replaceWith": "tablesDB.createPointColumn" + }, + "auth": { + "Project": [] + } + }, + "security": [ + { + "Project": [], + "Key": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + }, + { + "name": "collectionId", + "description": "Collection ID. You can create a new collection using the Database service [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateCollection).", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + }, + { + "name": "payload", + "in": "body", + "schema": { + "type": "object", + "properties": { + "key": { + "type": "string", + "description": "Attribute Key.", + "default": null, + "x-example": null + }, + "required": { + "type": "boolean", + "description": "Is attribute required?", + "default": null, + "x-example": false + }, + "default": { + "type": "array", + "description": "Default value for attribute when not provided, array of two numbers [longitude, latitude], representing a single coordinate. Cannot be set when attribute is required.", + "default": null, + "x-example": "[1, 2]", + "x-nullable": true + } + }, + "required": [ + "key", + "required" + ] + } + } + ] + } + }, + "\/databases\/{databaseId}\/collections\/{collectionId}\/attributes\/point\/{key}": { + "patch": { + "summary": "Update point attribute", + "operationId": "databasesUpdatePointAttribute", + "consumes": [ + "application\/json" + ], + "produces": [ + "application\/json" + ], + "tags": [ + "databases" + ], + "description": "Update a point attribute. Changing the `default` value will not update already existing documents.", + "responses": { + "200": { + "description": "AttributePoint", + "schema": { + "$ref": "#\/definitions\/attributePoint" + } + } + }, + "deprecated": true, + "x-appwrite": { + "method": "updatePointAttribute", + "group": "attributes", + "weight": 359, + "cookies": false, + "type": "", + "demo": "databases\/update-point-attribute.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-point-attribute.md", + "rate-limit": 0, + "rate-time": 3600, + "rate-key": "url:{url},ip:{ip}", + "scope": "collections.write", + "platforms": [ + "server" + ], + "packaging": false, + "deprecated": { + "since": "1.8.0", + "replaceWith": "tablesDB.updatePointColumn" + }, + "auth": { + "Project": [] + } + }, + "security": [ + { + "Project": [], + "Key": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + }, + { + "name": "collectionId", + "description": "Collection ID. You can create a new collection using the Database service [server integration](https:\/\/appwrite.io\/docs\/server\/databases#createCollection).", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + }, + { + "name": "key", + "description": "Attribute Key.", + "required": true, + "type": "string", + "in": "path" + }, + { + "name": "payload", + "in": "body", + "schema": { + "type": "object", + "properties": { + "required": { + "type": "boolean", + "description": "Is attribute required?", + "default": null, + "x-example": false + }, + "default": { + "type": "array", + "description": "Default value for attribute when not provided, array of two numbers [longitude, latitude], representing a single coordinate. Cannot be set when attribute is required.", + "default": null, + "x-example": "[1, 2]", + "x-nullable": true + }, + "newKey": { + "type": "string", + "description": "New attribute key.", + "default": null, + "x-example": null + } + }, + "required": [ + "required" + ] + } + } + ] + } + }, + "\/databases\/{databaseId}\/collections\/{collectionId}\/attributes\/polygon": { + "post": { + "summary": "Create polygon attribute", + "operationId": "databasesCreatePolygonAttribute", + "consumes": [ + "application\/json" + ], + "produces": [ + "application\/json" + ], + "tags": [ + "databases" + ], + "description": "Create a geometric polygon attribute.", + "responses": { + "202": { + "description": "AttributePolygon", + "schema": { + "$ref": "#\/definitions\/attributePolygon" + } + } + }, + "deprecated": true, + "x-appwrite": { + "method": "createPolygonAttribute", + "group": "attributes", + "weight": 360, + "cookies": false, + "type": "", + "demo": "databases\/create-polygon-attribute.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-polygon-attribute.md", + "rate-limit": 0, + "rate-time": 3600, + "rate-key": "url:{url},ip:{ip}", + "scope": "collections.write", + "platforms": [ + "server" + ], + "packaging": false, + "deprecated": { + "since": "1.8.0", + "replaceWith": "tablesDB.createPolygonColumn" + }, + "auth": { + "Project": [] + } + }, + "security": [ + { + "Project": [], + "Key": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + }, + { + "name": "collectionId", + "description": "Collection ID. You can create a new collection using the Database service [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateCollection).", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + }, + { + "name": "payload", + "in": "body", + "schema": { + "type": "object", + "properties": { + "key": { + "type": "string", + "description": "Attribute Key.", + "default": null, + "x-example": null + }, + "required": { + "type": "boolean", + "description": "Is attribute required?", + "default": null, + "x-example": false + }, + "default": { + "type": "array", + "description": "Default value for attribute when not provided, three-dimensional array where the outer array holds one or more linear rings, [[[longitude, latitude], \u2026], \u2026], the first ring is the exterior boundary, any additional rings are interior holes, and each ring must start and end with the same coordinate pair. Cannot be set when attribute is required.", + "default": null, + "x-example": "[[[1, 2], [3, 4], [5, 6], [1, 2]]]", + "x-nullable": true + } + }, + "required": [ + "key", + "required" + ] + } + } + ] + } + }, + "\/databases\/{databaseId}\/collections\/{collectionId}\/attributes\/polygon\/{key}": { + "patch": { + "summary": "Update polygon attribute", + "operationId": "databasesUpdatePolygonAttribute", + "consumes": [ + "application\/json" + ], + "produces": [ + "application\/json" + ], + "tags": [ + "databases" + ], + "description": "Update a polygon attribute. Changing the `default` value will not update already existing documents.", + "responses": { + "200": { + "description": "AttributePolygon", + "schema": { + "$ref": "#\/definitions\/attributePolygon" + } + } + }, + "deprecated": true, + "x-appwrite": { + "method": "updatePolygonAttribute", + "group": "attributes", + "weight": 361, + "cookies": false, + "type": "", + "demo": "databases\/update-polygon-attribute.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-polygon-attribute.md", + "rate-limit": 0, + "rate-time": 3600, + "rate-key": "url:{url},ip:{ip}", + "scope": "collections.write", + "platforms": [ + "server" + ], + "packaging": false, + "deprecated": { + "since": "1.8.0", + "replaceWith": "tablesDB.updatePolygonColumn" + }, + "auth": { + "Project": [] + } + }, + "security": [ + { + "Project": [], + "Key": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + }, + { + "name": "collectionId", + "description": "Collection ID. You can create a new collection using the Database service [server integration](https:\/\/appwrite.io\/docs\/server\/databases#createCollection).", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + }, + { + "name": "key", + "description": "Attribute Key.", + "required": true, + "type": "string", + "in": "path" + }, + { + "name": "payload", + "in": "body", + "schema": { + "type": "object", + "properties": { + "required": { + "type": "boolean", + "description": "Is attribute required?", + "default": null, + "x-example": false + }, + "default": { + "type": "array", + "description": "Default value for attribute when not provided, three-dimensional array where the outer array holds one or more linear rings, [[[longitude, latitude], \u2026], \u2026], the first ring is the exterior boundary, any additional rings are interior holes, and each ring must start and end with the same coordinate pair. Cannot be set when attribute is required.", + "default": null, + "x-example": "[[[1, 2], [3, 4], [5, 6], [1, 2]]]", + "x-nullable": true + }, + "newKey": { + "type": "string", + "description": "New attribute key.", + "default": null, + "x-example": null + } + }, + "required": [ + "required" + ] + } + } + ] + } + }, "\/databases\/{databaseId}\/collections\/{collectionId}\/attributes\/relationship": { "post": { "summary": "Create relationship attribute", @@ -7924,7 +8580,7 @@ "x-appwrite": { "method": "createRelationshipAttribute", "group": "attributes", - "weight": 361, + "weight": 362, "cookies": false, "type": "", "demo": "databases\/create-relationship-attribute.md", @@ -8061,7 +8717,7 @@ "x-appwrite": { "method": "createStringAttribute", "group": "attributes", - "weight": 363, + "weight": 364, "cookies": false, "type": "", "demo": "databases\/create-string-attribute.md", @@ -8184,7 +8840,7 @@ "x-appwrite": { "method": "updateStringAttribute", "group": "attributes", - "weight": 364, + "weight": 365, "cookies": false, "type": "", "demo": "databases\/update-string-attribute.md", @@ -8302,7 +8958,7 @@ "x-appwrite": { "method": "createUrlAttribute", "group": "attributes", - "weight": 365, + "weight": 366, "cookies": false, "type": "", "demo": "databases\/create-url-attribute.md", @@ -8412,7 +9068,7 @@ "x-appwrite": { "method": "updateUrlAttribute", "group": "attributes", - "weight": 366, + "weight": 367, "cookies": false, "type": "", "demo": "databases\/update-url-attribute.md", @@ -8553,7 +9209,7 @@ "x-appwrite": { "method": "getAttribute", "group": "attributes", - "weight": 344, + "weight": 339, "cookies": false, "type": "", "demo": "databases\/get-attribute.md", @@ -8626,7 +9282,7 @@ "x-appwrite": { "method": "deleteAttribute", "group": "attributes", - "weight": 345, + "weight": 340, "cookies": false, "type": "", "demo": "databases\/delete-attribute.md", @@ -8706,7 +9362,7 @@ "x-appwrite": { "method": "updateRelationshipAttribute", "group": "attributes", - "weight": 362, + "weight": 363, "cookies": false, "type": "", "demo": "databases\/update-relationship-attribute.md", @@ -8812,7 +9468,7 @@ "x-appwrite": { "method": "listDocuments", "group": "documents", - "weight": 340, + "weight": 335, "cookies": false, "type": "", "demo": "databases\/list-documents.md", @@ -8897,7 +9553,7 @@ "x-appwrite": { "method": "createDocument", "group": "documents", - "weight": 332, + "weight": 327, "cookies": false, "type": "", "demo": "databases\/create-document.md", @@ -9024,7 +9680,7 @@ "type": "object", "description": "Document data as JSON object.", "default": [], - "x-example": "{}" + "x-example": "{\"username\":\"walter.obrien\",\"email\":\"walter.obrien@example.com\",\"fullName\":\"Walter O'Brien\",\"age\":30,\"isAdmin\":false}" }, "permissions": { "type": "array", @@ -9050,7 +9706,7 @@ ] }, "put": { - "summary": "Create or update documents", + "summary": "Upsert documents", "operationId": "databasesUpsertDocuments", "consumes": [ "application\/json" @@ -9074,7 +9730,7 @@ "x-appwrite": { "method": "upsertDocuments", "group": "documents", - "weight": 337, + "weight": 332, "cookies": false, "type": "", "demo": "databases\/upsert-documents.md", @@ -9199,7 +9855,7 @@ "x-appwrite": { "method": "updateDocuments", "group": "documents", - "weight": 335, + "weight": 330, "cookies": false, "type": "", "demo": "databases\/update-documents.md", @@ -9295,7 +9951,7 @@ "x-appwrite": { "method": "deleteDocuments", "group": "documents", - "weight": 339, + "weight": 334, "cookies": false, "type": "", "demo": "databases\/delete-documents.md", @@ -9385,7 +10041,7 @@ "x-appwrite": { "method": "getDocument", "group": "documents", - "weight": 333, + "weight": 328, "cookies": false, "type": "", "demo": "databases\/get-document.md", @@ -9454,7 +10110,7 @@ ] }, "put": { - "summary": "Create or update a document", + "summary": "Upsert a document", "operationId": "databasesUpsertDocument", "consumes": [ "application\/json" @@ -9478,7 +10134,7 @@ "x-appwrite": { "method": "upsertDocument", "group": "documents", - "weight": 336, + "weight": 331, "cookies": false, "type": "", "demo": "databases\/upsert-document.md", @@ -9621,7 +10277,7 @@ "x-appwrite": { "method": "updateDocument", "group": "documents", - "weight": 334, + "weight": 329, "cookies": false, "type": "", "demo": "databases\/update-document.md", @@ -9721,7 +10377,7 @@ "x-appwrite": { "method": "deleteDocument", "group": "documents", - "weight": 338, + "weight": 333, "cookies": false, "type": "", "demo": "databases\/delete-document.md", @@ -9802,7 +10458,7 @@ "x-appwrite": { "method": "listDocumentLogs", "group": "logs", - "weight": 341, + "weight": 336, "cookies": false, "type": "", "demo": "databases\/list-document-logs.md", @@ -9894,7 +10550,7 @@ "x-appwrite": { "method": "decrementDocumentAttribute", "group": "documents", - "weight": 343, + "weight": 338, "cookies": false, "type": "", "demo": "databases\/decrement-document-attribute.md", @@ -10006,7 +10662,7 @@ "x-appwrite": { "method": "incrementDocumentAttribute", "group": "documents", - "weight": 342, + "weight": 337, "cookies": false, "type": "", "demo": "databases\/increment-document-attribute.md", @@ -10116,7 +10772,7 @@ "x-appwrite": { "method": "listIndexes", "group": "indexes", - "weight": 370, + "weight": 371, "cookies": false, "type": "", "demo": "databases\/list-indexes.md", @@ -10199,7 +10855,7 @@ "x-appwrite": { "method": "createIndex", "group": "indexes", - "weight": 367, + "weight": 368, "cookies": false, "type": "", "demo": "databases\/create-index.md", @@ -10263,7 +10919,8 @@ "enum": [ "key", "fulltext", - "unique" + "unique", + "spatial" ], "x-enum-name": "IndexType", "x-enum-keys": [] @@ -10330,7 +10987,7 @@ "x-appwrite": { "method": "getIndex", "group": "indexes", - "weight": 368, + "weight": 369, "cookies": false, "type": "", "demo": "databases\/get-index.md", @@ -10403,7 +11060,7 @@ "x-appwrite": { "method": "deleteIndex", "group": "indexes", - "weight": 369, + "weight": 370, "cookies": false, "type": "", "demo": "databases\/delete-index.md", @@ -10481,7 +11138,7 @@ "x-appwrite": { "method": "listCollectionLogs", "group": "collections", - "weight": 330, + "weight": 325, "cookies": false, "type": "", "demo": "databases\/list-collection-logs.md", @@ -10563,7 +11220,7 @@ "x-appwrite": { "method": "getCollectionUsage", "group": null, - "weight": 331, + "weight": 326, "cookies": false, "type": "", "demo": "databases\/get-collection-usage.md", @@ -10653,7 +11310,7 @@ "x-appwrite": { "method": "listLogs", "group": "logs", - "weight": 322, + "weight": 317, "cookies": false, "type": "", "demo": "databases\/list-logs.md", @@ -10756,7 +11413,7 @@ "x-appwrite": { "method": "getUsage", "group": null, - "weight": 323, + "weight": 318, "cookies": false, "type": "", "demo": "databases\/get-usage.md", @@ -10867,7 +11524,7 @@ "x-appwrite": { "method": "list", "group": "functions", - "weight": 432, + "weight": 440, "cookies": false, "type": "", "demo": "functions\/list.md", @@ -10939,7 +11596,7 @@ "x-appwrite": { "method": "create", "group": "functions", - "weight": 429, + "weight": 437, "cookies": false, "type": "", "demo": "functions\/create.md", @@ -11190,7 +11847,7 @@ "x-appwrite": { "method": "listRuntimes", "group": "runtimes", - "weight": 434, + "weight": 442, "cookies": false, "type": "", "demo": "functions\/list-runtimes.md", @@ -11239,7 +11896,7 @@ "x-appwrite": { "method": "listSpecifications", "group": "runtimes", - "weight": 435, + "weight": 443, "cookies": false, "type": "", "demo": "functions\/list-specifications.md", @@ -11289,7 +11946,7 @@ "x-appwrite": { "method": "listTemplates", "group": "templates", - "weight": 458, + "weight": 466, "cookies": false, "type": "", "demo": "functions\/list-templates.md", @@ -11383,7 +12040,7 @@ "x-appwrite": { "method": "getTemplate", "group": "templates", - "weight": 457, + "weight": 465, "cookies": false, "type": "", "demo": "functions\/get-template.md", @@ -11441,7 +12098,7 @@ "x-appwrite": { "method": "listUsage", "group": null, - "weight": 451, + "weight": 459, "cookies": false, "type": "", "demo": "functions\/list-usage.md", @@ -11511,7 +12168,7 @@ "x-appwrite": { "method": "get", "group": "functions", - "weight": 430, + "weight": 438, "cookies": false, "type": "", "demo": "functions\/get.md", @@ -11570,7 +12227,7 @@ "x-appwrite": { "method": "update", "group": "functions", - "weight": 431, + "weight": 439, "cookies": false, "type": "", "demo": "functions\/update.md", @@ -11817,7 +12474,7 @@ "x-appwrite": { "method": "delete", "group": "functions", - "weight": 433, + "weight": 441, "cookies": false, "type": "", "demo": "functions\/delete.md", @@ -11878,7 +12535,7 @@ "x-appwrite": { "method": "updateFunctionDeployment", "group": "functions", - "weight": 438, + "weight": 446, "cookies": false, "type": "", "demo": "functions\/update-function-deployment.md", @@ -11955,7 +12612,7 @@ "x-appwrite": { "method": "listDeployments", "group": "deployments", - "weight": 439, + "weight": 447, "cookies": false, "type": "", "demo": "functions\/list-deployments.md", @@ -12035,7 +12692,7 @@ "x-appwrite": { "method": "createDeployment", "group": "deployments", - "weight": 436, + "weight": 444, "cookies": false, "type": "upload", "demo": "functions\/create-deployment.md", @@ -12127,7 +12784,7 @@ "x-appwrite": { "method": "createDuplicateDeployment", "group": "deployments", - "weight": 444, + "weight": 452, "cookies": false, "type": "", "demo": "functions\/create-duplicate-deployment.md", @@ -12212,7 +12869,7 @@ "x-appwrite": { "method": "createTemplateDeployment", "group": "deployments", - "weight": 441, + "weight": 449, "cookies": false, "type": "", "demo": "functions\/create-template-deployment.md", @@ -12318,7 +12975,7 @@ "x-appwrite": { "method": "createVcsDeployment", "group": "deployments", - "weight": 442, + "weight": 450, "cookies": false, "type": "", "demo": "functions\/create-vcs-deployment.md", @@ -12414,7 +13071,7 @@ "x-appwrite": { "method": "getDeployment", "group": "deployments", - "weight": 437, + "weight": 445, "cookies": false, "type": "", "demo": "functions\/get-deployment.md", @@ -12476,7 +13133,7 @@ "x-appwrite": { "method": "deleteDeployment", "group": "deployments", - "weight": 440, + "weight": 448, "cookies": false, "type": "", "demo": "functions\/delete-deployment.md", @@ -12543,7 +13200,7 @@ "x-appwrite": { "method": "getDeploymentDownload", "group": "deployments", - "weight": 443, + "weight": 451, "cookies": false, "type": "location", "demo": "functions\/get-deployment-download.md", @@ -12628,7 +13285,7 @@ "x-appwrite": { "method": "updateDeploymentStatus", "group": "deployments", - "weight": 445, + "weight": 453, "cookies": false, "type": "", "demo": "functions\/update-deployment-status.md", @@ -12695,7 +13352,7 @@ "x-appwrite": { "method": "listExecutions", "group": "executions", - "weight": 448, + "weight": 456, "cookies": false, "type": "", "demo": "functions\/list-executions.md", @@ -12768,7 +13425,7 @@ "x-appwrite": { "method": "createExecution", "group": "executions", - "weight": 446, + "weight": 454, "cookies": false, "type": "", "demo": "functions\/create-execution.md", @@ -12828,7 +13485,7 @@ }, "method": { "type": "string", - "description": "HTTP method of execution. Default value is GET.", + "description": "HTTP method of execution. Default value is POST.", "default": "POST", "x-example": "GET", "enum": [ @@ -12837,7 +13494,8 @@ "PUT", "PATCH", "DELETE", - "OPTIONS" + "OPTIONS", + "HEAD" ], "x-enum-name": "ExecutionMethod", "x-enum-keys": [] @@ -12884,7 +13542,7 @@ "x-appwrite": { "method": "getExecution", "group": "executions", - "weight": 447, + "weight": 455, "cookies": false, "type": "", "demo": "functions\/get-execution.md", @@ -12948,7 +13606,7 @@ "x-appwrite": { "method": "deleteExecution", "group": "executions", - "weight": 449, + "weight": 457, "cookies": false, "type": "", "demo": "functions\/delete-execution.md", @@ -13015,7 +13673,7 @@ "x-appwrite": { "method": "getUsage", "group": null, - "weight": 450, + "weight": 458, "cookies": false, "type": "", "demo": "functions\/get-usage.md", @@ -13093,7 +13751,7 @@ "x-appwrite": { "method": "listVariables", "group": "variables", - "weight": 454, + "weight": 462, "cookies": false, "type": "", "demo": "functions\/list-variables.md", @@ -13152,7 +13810,7 @@ "x-appwrite": { "method": "createVariable", "group": "variables", - "weight": 452, + "weight": 460, "cookies": false, "type": "", "demo": "functions\/create-variable.md", @@ -13242,7 +13900,7 @@ "x-appwrite": { "method": "getVariable", "group": "variables", - "weight": 453, + "weight": 461, "cookies": false, "type": "", "demo": "functions\/get-variable.md", @@ -13309,7 +13967,7 @@ "x-appwrite": { "method": "updateVariable", "group": "variables", - "weight": 455, + "weight": 463, "cookies": false, "type": "", "demo": "functions\/update-variable.md", @@ -13401,7 +14059,7 @@ "x-appwrite": { "method": "deleteVariable", "group": "variables", - "weight": 456, + "weight": 464, "cookies": false, "type": "", "demo": "functions\/delete-variable.md", @@ -13470,7 +14128,7 @@ "x-appwrite": { "method": "query", "group": "graphql", - "weight": 255, + "weight": 250, "cookies": false, "type": "graphql", "demo": "graphql\/query.md", @@ -13543,7 +14201,7 @@ "x-appwrite": { "method": "mutation", "group": "graphql", - "weight": 254, + "weight": 249, "cookies": false, "type": "graphql", "demo": "graphql\/mutation.md", @@ -13822,7 +14480,7 @@ "weight": 80, "cookies": false, "type": "", - "demo": "health\/get-d-b.md", + "demo": "health\/get-db.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/health\/get-db.md", "rate-limit": 0, "rate-time": 3600, @@ -14528,7 +15186,7 @@ }, "\/health\/queue\/stats-resources": { "get": { - "summary": "Get stats resources queue", + "summary": "Get stats resources queue", "operationId": "healthGetQueueStatsResources", "consumes": [], "produces": [ @@ -15084,7 +15742,7 @@ "weight": 73, "cookies": false, "type": "", - "demo": "locale\/list-countries-e-u.md", + "demo": "locale\/list-countries-eu.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/locale\/list-countries-eu.md", "rate-limit": 0, "rate-time": 3600, @@ -15285,7 +15943,7 @@ "x-appwrite": { "method": "listMessages", "group": "messages", - "weight": 309, + "weight": 304, "cookies": false, "type": "", "demo": "messaging\/list-messages.md", @@ -15360,7 +16018,7 @@ "x-appwrite": { "method": "createEmail", "group": "messages", - "weight": 306, + "weight": 301, "cookies": false, "type": "", "demo": "messaging\/create-email.md", @@ -15518,7 +16176,7 @@ "x-appwrite": { "method": "updateEmail", "group": "messages", - "weight": 313, + "weight": 308, "cookies": false, "type": "", "demo": "messaging\/update-email.md", @@ -15673,7 +16331,7 @@ "x-appwrite": { "method": "createPush", "group": "messages", - "weight": 308, + "weight": 303, "cookies": false, "type": "", "demo": "messaging\/create-push.md", @@ -15868,7 +16526,7 @@ "x-appwrite": { "method": "updatePush", "group": "messages", - "weight": 315, + "weight": 310, "cookies": false, "type": "", "demo": "messaging\/update-push.md", @@ -16062,7 +16720,7 @@ "x-appwrite": { "method": "createSms", "group": "messages", - "weight": 307, + "weight": 302, "cookies": false, "type": "", "demo": "messaging\/create-sms.md", @@ -16141,7 +16799,7 @@ } ], "description": "Create a new SMS message.", - "demo": "messaging\/create-s-m-s.md" + "demo": "messaging\/create-sms.md" } ], "auth": { @@ -16248,7 +16906,7 @@ "x-appwrite": { "method": "updateSms", "group": "messages", - "weight": 314, + "weight": 309, "cookies": false, "type": "", "demo": "messaging\/update-sms.md", @@ -16325,7 +16983,7 @@ } ], "description": "Update an SMS message by its unique ID. This endpoint only works on messages that are in draft status. Messages that are already processing, sent, or failed cannot be updated.\n", - "demo": "messaging\/update-s-m-s.md" + "demo": "messaging\/update-sms.md" } ], "auth": { @@ -16428,7 +17086,7 @@ "x-appwrite": { "method": "getMessage", "group": "messages", - "weight": 312, + "weight": 307, "cookies": false, "type": "", "demo": "messaging\/get-message.md", @@ -16483,7 +17141,7 @@ "x-appwrite": { "method": "delete", "group": "messages", - "weight": 316, + "weight": 311, "cookies": false, "type": "", "demo": "messaging\/delete.md", @@ -16543,7 +17201,7 @@ "x-appwrite": { "method": "listMessageLogs", "group": "logs", - "weight": 310, + "weight": 305, "cookies": false, "type": "", "demo": "messaging\/list-message-logs.md", @@ -16615,7 +17273,7 @@ "x-appwrite": { "method": "listTargets", "group": "messages", - "weight": 311, + "weight": 306, "cookies": false, "type": "", "demo": "messaging\/list-targets.md", @@ -16687,7 +17345,7 @@ "x-appwrite": { "method": "listProviders", "group": "providers", - "weight": 281, + "weight": 276, "cookies": false, "type": "", "demo": "messaging\/list-providers.md", @@ -16762,7 +17420,7 @@ "x-appwrite": { "method": "createApnsProvider", "group": "providers", - "weight": 280, + "weight": 275, "cookies": false, "type": "", "demo": "messaging\/create-apns-provider.md", @@ -16843,7 +17501,7 @@ } ], "description": "Create a new Apple Push Notification service provider.", - "demo": "messaging\/create-a-p-n-s-provider.md" + "demo": "messaging\/create-apns-provider.md" } ], "auth": { @@ -16947,7 +17605,7 @@ "x-appwrite": { "method": "updateApnsProvider", "group": "providers", - "weight": 293, + "weight": 288, "cookies": false, "type": "", "demo": "messaging\/update-apns-provider.md", @@ -17026,7 +17684,7 @@ } ], "description": "Update a Apple Push Notification service provider by its unique ID.", - "demo": "messaging\/update-a-p-n-s-provider.md" + "demo": "messaging\/update-apns-provider.md" } ], "auth": { @@ -17128,7 +17786,7 @@ "x-appwrite": { "method": "createFcmProvider", "group": "providers", - "weight": 279, + "weight": 274, "cookies": false, "type": "", "demo": "messaging\/create-fcm-provider.md", @@ -17201,7 +17859,7 @@ } ], "description": "Create a new Firebase Cloud Messaging provider.", - "demo": "messaging\/create-f-c-m-provider.md" + "demo": "messaging\/create-fcm-provider.md" } ], "auth": { @@ -17281,7 +17939,7 @@ "x-appwrite": { "method": "updateFcmProvider", "group": "providers", - "weight": 292, + "weight": 287, "cookies": false, "type": "", "demo": "messaging\/update-fcm-provider.md", @@ -17352,7 +18010,7 @@ } ], "description": "Update a Firebase Cloud Messaging provider by its unique ID.", - "demo": "messaging\/update-f-c-m-provider.md" + "demo": "messaging\/update-fcm-provider.md" } ], "auth": { @@ -17430,7 +18088,7 @@ "x-appwrite": { "method": "createMailgunProvider", "group": "providers", - "weight": 271, + "weight": 266, "cookies": false, "type": "", "demo": "messaging\/create-mailgun-provider.md", @@ -17557,7 +18215,7 @@ "x-appwrite": { "method": "updateMailgunProvider", "group": "providers", - "weight": 284, + "weight": 279, "cookies": false, "type": "", "demo": "messaging\/update-mailgun-provider.md", @@ -17682,10 +18340,10 @@ "x-appwrite": { "method": "createMsg91Provider", "group": "providers", - "weight": 274, + "weight": 269, "cookies": false, "type": "", - "demo": "messaging\/create-msg91provider.md", + "demo": "messaging\/create-msg-91-provider.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/messaging\/create-msg91-provider.md", "rate-limit": 0, "rate-time": 3600, @@ -17785,10 +18443,10 @@ "x-appwrite": { "method": "updateMsg91Provider", "group": "providers", - "weight": 287, + "weight": 282, "cookies": false, "type": "", - "demo": "messaging\/update-msg91provider.md", + "demo": "messaging\/update-msg-91-provider.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/messaging\/update-msg91-provider.md", "rate-limit": 0, "rate-time": 3600, @@ -17886,7 +18544,7 @@ "x-appwrite": { "method": "createSendgridProvider", "group": "providers", - "weight": 272, + "weight": 267, "cookies": false, "type": "", "demo": "messaging\/create-sendgrid-provider.md", @@ -18001,7 +18659,7 @@ "x-appwrite": { "method": "updateSendgridProvider", "group": "providers", - "weight": 285, + "weight": 280, "cookies": false, "type": "", "demo": "messaging\/update-sendgrid-provider.md", @@ -18114,7 +18772,7 @@ "x-appwrite": { "method": "createSmtpProvider", "group": "providers", - "weight": 273, + "weight": 268, "cookies": false, "type": "", "demo": "messaging\/create-smtp-provider.md", @@ -18209,7 +18867,7 @@ } ], "description": "Create a new SMTP provider.", - "demo": "messaging\/create-s-m-t-p-provider.md" + "demo": "messaging\/create-smtp-provider.md" } ], "auth": { @@ -18357,7 +19015,7 @@ "x-appwrite": { "method": "updateSmtpProvider", "group": "providers", - "weight": 286, + "weight": 281, "cookies": false, "type": "", "demo": "messaging\/update-smtp-provider.md", @@ -18448,7 +19106,7 @@ } ], "description": "Update a SMTP provider by its unique ID.", - "demo": "messaging\/update-s-m-t-p-provider.md" + "demo": "messaging\/update-smtp-provider.md" } ], "auth": { @@ -18593,7 +19251,7 @@ "x-appwrite": { "method": "createTelesignProvider", "group": "providers", - "weight": 275, + "weight": 270, "cookies": false, "type": "", "demo": "messaging\/create-telesign-provider.md", @@ -18696,7 +19354,7 @@ "x-appwrite": { "method": "updateTelesignProvider", "group": "providers", - "weight": 288, + "weight": 283, "cookies": false, "type": "", "demo": "messaging\/update-telesign-provider.md", @@ -18797,7 +19455,7 @@ "x-appwrite": { "method": "createTextmagicProvider", "group": "providers", - "weight": 276, + "weight": 271, "cookies": false, "type": "", "demo": "messaging\/create-textmagic-provider.md", @@ -18900,7 +19558,7 @@ "x-appwrite": { "method": "updateTextmagicProvider", "group": "providers", - "weight": 289, + "weight": 284, "cookies": false, "type": "", "demo": "messaging\/update-textmagic-provider.md", @@ -19001,7 +19659,7 @@ "x-appwrite": { "method": "createTwilioProvider", "group": "providers", - "weight": 277, + "weight": 272, "cookies": false, "type": "", "demo": "messaging\/create-twilio-provider.md", @@ -19104,7 +19762,7 @@ "x-appwrite": { "method": "updateTwilioProvider", "group": "providers", - "weight": 290, + "weight": 285, "cookies": false, "type": "", "demo": "messaging\/update-twilio-provider.md", @@ -19205,7 +19863,7 @@ "x-appwrite": { "method": "createVonageProvider", "group": "providers", - "weight": 278, + "weight": 273, "cookies": false, "type": "", "demo": "messaging\/create-vonage-provider.md", @@ -19308,7 +19966,7 @@ "x-appwrite": { "method": "updateVonageProvider", "group": "providers", - "weight": 291, + "weight": 286, "cookies": false, "type": "", "demo": "messaging\/update-vonage-provider.md", @@ -19407,7 +20065,7 @@ "x-appwrite": { "method": "getProvider", "group": "providers", - "weight": 283, + "weight": 278, "cookies": false, "type": "", "demo": "messaging\/get-provider.md", @@ -19462,7 +20120,7 @@ "x-appwrite": { "method": "deleteProvider", "group": "providers", - "weight": 294, + "weight": 289, "cookies": false, "type": "", "demo": "messaging\/delete-provider.md", @@ -19522,7 +20180,7 @@ "x-appwrite": { "method": "listProviderLogs", "group": "providers", - "weight": 282, + "weight": 277, "cookies": false, "type": "", "demo": "messaging\/list-provider-logs.md", @@ -19594,7 +20252,7 @@ "x-appwrite": { "method": "listSubscriberLogs", "group": "subscribers", - "weight": 303, + "weight": 298, "cookies": false, "type": "", "demo": "messaging\/list-subscriber-logs.md", @@ -19666,7 +20324,7 @@ "x-appwrite": { "method": "listTopics", "group": "topics", - "weight": 296, + "weight": 291, "cookies": false, "type": "", "demo": "messaging\/list-topics.md", @@ -19739,7 +20397,7 @@ "x-appwrite": { "method": "createTopic", "group": "topics", - "weight": 295, + "weight": 290, "cookies": false, "type": "", "demo": "messaging\/create-topic.md", @@ -19827,7 +20485,7 @@ "x-appwrite": { "method": "getTopic", "group": "topics", - "weight": 298, + "weight": 293, "cookies": false, "type": "", "demo": "messaging\/get-topic.md", @@ -19887,7 +20545,7 @@ "x-appwrite": { "method": "updateTopic", "group": "topics", - "weight": 299, + "weight": 294, "cookies": false, "type": "", "demo": "messaging\/update-topic.md", @@ -19966,7 +20624,7 @@ "x-appwrite": { "method": "deleteTopic", "group": "topics", - "weight": 300, + "weight": 295, "cookies": false, "type": "", "demo": "messaging\/delete-topic.md", @@ -20026,7 +20684,7 @@ "x-appwrite": { "method": "listTopicLogs", "group": "topics", - "weight": 297, + "weight": 292, "cookies": false, "type": "", "demo": "messaging\/list-topic-logs.md", @@ -20098,7 +20756,7 @@ "x-appwrite": { "method": "listSubscribers", "group": "subscribers", - "weight": 302, + "weight": 297, "cookies": false, "type": "", "demo": "messaging\/list-subscribers.md", @@ -20179,7 +20837,7 @@ "x-appwrite": { "method": "createSubscriber", "group": "subscribers", - "weight": 301, + "weight": 296, "cookies": false, "type": "", "demo": "messaging\/create-subscriber.md", @@ -20266,7 +20924,7 @@ "x-appwrite": { "method": "getSubscriber", "group": "subscribers", - "weight": 304, + "weight": 299, "cookies": false, "type": "", "demo": "messaging\/get-subscriber.md", @@ -20329,7 +20987,7 @@ "x-appwrite": { "method": "deleteSubscriber", "group": "subscribers", - "weight": 305, + "weight": 300, "cookies": false, "type": "", "demo": "messaging\/delete-subscriber.md", @@ -20399,7 +21057,7 @@ "x-appwrite": { "method": "list", "group": null, - "weight": 263, + "weight": 258, "cookies": false, "type": "", "demo": "migrations\/list.md", @@ -20472,7 +21130,7 @@ "x-appwrite": { "method": "createAppwriteMigration", "group": null, - "weight": 258, + "weight": 253, "cookies": false, "type": "", "demo": "migrations\/create-appwrite-migration.md", @@ -20564,7 +21222,7 @@ "x-appwrite": { "method": "getAppwriteReport", "group": null, - "weight": 265, + "weight": 260, "cookies": false, "type": "", "demo": "migrations\/get-appwrite-report.md", @@ -20652,7 +21310,7 @@ "x-appwrite": { "method": "createCsvMigration", "group": null, - "weight": 262, + "weight": 257, "cookies": false, "type": "", "demo": "migrations\/create-csv-migration.md", @@ -20742,7 +21400,7 @@ "x-appwrite": { "method": "createFirebaseMigration", "group": null, - "weight": 259, + "weight": 254, "cookies": false, "type": "", "demo": "migrations\/create-firebase-migration.md", @@ -20820,7 +21478,7 @@ "x-appwrite": { "method": "getFirebaseReport", "group": null, - "weight": 266, + "weight": 261, "cookies": false, "type": "", "demo": "migrations\/get-firebase-report.md", @@ -20891,7 +21549,7 @@ "x-appwrite": { "method": "createNHostMigration", "group": null, - "weight": 261, + "weight": 256, "cookies": false, "type": "", "demo": "migrations\/create-n-host-migration.md", @@ -21010,7 +21668,7 @@ "x-appwrite": { "method": "getNHostReport", "group": null, - "weight": 268, + "weight": 263, "cookies": false, "type": "", "demo": "migrations\/get-n-host-report.md", @@ -21130,7 +21788,7 @@ "x-appwrite": { "method": "createSupabaseMigration", "group": null, - "weight": 260, + "weight": 255, "cookies": false, "type": "", "demo": "migrations\/create-supabase-migration.md", @@ -21242,7 +21900,7 @@ "x-appwrite": { "method": "getSupabaseReport", "group": null, - "weight": 267, + "weight": 262, "cookies": false, "type": "", "demo": "migrations\/get-supabase-report.md", @@ -21353,7 +22011,7 @@ "x-appwrite": { "method": "get", "group": null, - "weight": 264, + "weight": 259, "cookies": false, "type": "", "demo": "migrations\/get.md", @@ -21411,7 +22069,7 @@ "x-appwrite": { "method": "retry", "group": null, - "weight": 269, + "weight": 264, "cookies": false, "type": "", "demo": "migrations\/retry.md", @@ -21464,7 +22122,7 @@ "x-appwrite": { "method": "delete", "group": null, - "weight": 270, + "weight": 265, "cookies": false, "type": "", "demo": "migrations\/delete.md", @@ -21522,7 +22180,7 @@ "x-appwrite": { "method": "getUsage", "group": null, - "weight": 149, + "weight": 148, "cookies": false, "type": "", "demo": "project\/get-usage.md", @@ -21604,7 +22262,7 @@ "x-appwrite": { "method": "listVariables", "group": null, - "weight": 151, + "weight": 150, "cookies": false, "type": "", "demo": "project\/list-variables.md", @@ -21652,7 +22310,7 @@ "x-appwrite": { "method": "createVariable", "group": null, - "weight": 150, + "weight": 149, "cookies": false, "type": "", "demo": "project\/create-variable.md", @@ -21733,7 +22391,7 @@ "x-appwrite": { "method": "getVariable", "group": null, - "weight": 152, + "weight": 151, "cookies": false, "type": "", "demo": "project\/get-variable.md", @@ -21791,7 +22449,7 @@ "x-appwrite": { "method": "updateVariable", "group": null, - "weight": 153, + "weight": 152, "cookies": false, "type": "", "demo": "project\/update-variable.md", @@ -21874,7 +22532,7 @@ "x-appwrite": { "method": "deleteVariable", "group": null, - "weight": 154, + "weight": 153, "cookies": false, "type": "", "demo": "project\/delete-variable.md", @@ -21932,11 +22590,11 @@ "x-appwrite": { "method": "list", "group": "projects", - "weight": 103, + "weight": 436, "cookies": false, "type": "", "demo": "projects\/list.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/projects\/list.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/masterGet a list of all projects. You can use the query params to filter your results. ", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -22150,7 +22808,7 @@ "x-appwrite": { "method": "get", "group": "projects", - "weight": 104, + "weight": 103, "cookies": false, "type": "", "demo": "projects\/get.md", @@ -22208,7 +22866,7 @@ "x-appwrite": { "method": "update", "group": "projects", - "weight": 105, + "weight": 104, "cookies": false, "type": "", "demo": "projects\/update.md", @@ -22333,7 +22991,7 @@ "x-appwrite": { "method": "delete", "group": "projects", - "weight": 122, + "weight": 121, "cookies": false, "type": "", "demo": "projects\/delete.md", @@ -22393,7 +23051,7 @@ "x-appwrite": { "method": "updateApiStatus", "group": "projects", - "weight": 109, + "weight": 108, "cookies": false, "type": "", "demo": "projects\/update-api-status.md", @@ -22465,7 +23123,7 @@ } ], "description": "Update the status of a specific API type. Use this endpoint to enable or disable API types such as REST, GraphQL and Realtime.", - "demo": "projects\/update-a-p-i-status.md" + "demo": "projects\/update-api-status.md" } ], "auth": { @@ -22547,7 +23205,7 @@ "x-appwrite": { "method": "updateApiStatusAll", "group": "projects", - "weight": 110, + "weight": 109, "cookies": false, "type": "", "demo": "projects\/update-api-status-all.md", @@ -22615,7 +23273,7 @@ } ], "description": "Update the status of all API types. Use this endpoint to enable or disable API types such as REST, GraphQL and Realtime all at once.", - "demo": "projects\/update-a-p-i-status-all.md" + "demo": "projects\/update-api-status-all.md" } ], "auth": { @@ -22683,7 +23341,7 @@ "x-appwrite": { "method": "updateAuthDuration", "group": "auth", - "weight": 115, + "weight": 114, "cookies": false, "type": "", "demo": "projects\/update-auth-duration.md", @@ -22761,7 +23419,7 @@ "x-appwrite": { "method": "updateAuthLimit", "group": "auth", - "weight": 114, + "weight": 113, "cookies": false, "type": "", "demo": "projects\/update-auth-limit.md", @@ -22839,7 +23497,7 @@ "x-appwrite": { "method": "updateAuthSessionsLimit", "group": "auth", - "weight": 120, + "weight": 119, "cookies": false, "type": "", "demo": "projects\/update-auth-sessions-limit.md", @@ -22917,7 +23575,7 @@ "x-appwrite": { "method": "updateMembershipsPrivacy", "group": "auth", - "weight": 113, + "weight": 112, "cookies": false, "type": "", "demo": "projects\/update-memberships-privacy.md", @@ -23009,7 +23667,7 @@ "x-appwrite": { "method": "updateMockNumbers", "group": "auth", - "weight": 121, + "weight": 120, "cookies": false, "type": "", "demo": "projects\/update-mock-numbers.md", @@ -23090,7 +23748,7 @@ "x-appwrite": { "method": "updateAuthPasswordDictionary", "group": "auth", - "weight": 118, + "weight": 117, "cookies": false, "type": "", "demo": "projects\/update-auth-password-dictionary.md", @@ -23168,7 +23826,7 @@ "x-appwrite": { "method": "updateAuthPasswordHistory", "group": "auth", - "weight": 117, + "weight": 116, "cookies": false, "type": "", "demo": "projects\/update-auth-password-history.md", @@ -23246,7 +23904,7 @@ "x-appwrite": { "method": "updatePersonalDataCheck", "group": "auth", - "weight": 119, + "weight": 118, "cookies": false, "type": "", "demo": "projects\/update-personal-data-check.md", @@ -23324,7 +23982,7 @@ "x-appwrite": { "method": "updateSessionAlerts", "group": "auth", - "weight": 112, + "weight": 111, "cookies": false, "type": "", "demo": "projects\/update-session-alerts.md", @@ -23402,7 +24060,7 @@ "x-appwrite": { "method": "updateSessionInvalidation", "group": "auth", - "weight": 148, + "weight": 147, "cookies": false, "type": "", "demo": "projects\/update-session-invalidation.md", @@ -23480,7 +24138,7 @@ "x-appwrite": { "method": "updateAuthStatus", "group": "auth", - "weight": 116, + "weight": 115, "cookies": false, "type": "", "demo": "projects\/update-auth-status.md", @@ -23575,7 +24233,7 @@ "x-appwrite": { "method": "listDevKeys", "group": "devKeys", - "weight": 427, + "weight": 434, "cookies": false, "type": "", "demo": "projects\/list-dev-keys.md", @@ -23645,7 +24303,7 @@ "x-appwrite": { "method": "createDevKey", "group": "devKeys", - "weight": 424, + "weight": 431, "cookies": false, "type": "", "demo": "projects\/create-dev-key.md", @@ -23728,7 +24386,7 @@ "x-appwrite": { "method": "getDevKey", "group": "devKeys", - "weight": 426, + "weight": 433, "cookies": false, "type": "", "demo": "projects\/get-dev-key.md", @@ -23794,7 +24452,7 @@ "x-appwrite": { "method": "updateDevKey", "group": "devKeys", - "weight": 425, + "weight": 432, "cookies": false, "type": "", "demo": "projects\/update-dev-key.md", @@ -23880,7 +24538,7 @@ "x-appwrite": { "method": "deleteDevKey", "group": "devKeys", - "weight": 428, + "weight": 435, "cookies": false, "type": "", "demo": "projects\/delete-dev-key.md", @@ -23948,10 +24606,10 @@ "x-appwrite": { "method": "createJWT", "group": "auth", - "weight": 134, + "weight": 133, "cookies": false, "type": "", - "demo": "projects\/create-j-w-t.md", + "demo": "projects\/create-jwt.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/projects\/create-jwt.md", "rate-limit": 0, "rate-time": 3600, @@ -24033,7 +24691,7 @@ "x-appwrite": { "method": "listKeys", "group": "keys", - "weight": 130, + "weight": 129, "cookies": false, "type": "", "demo": "projects\/list-keys.md", @@ -24091,7 +24749,7 @@ "x-appwrite": { "method": "createKey", "group": "keys", - "weight": 129, + "weight": 128, "cookies": false, "type": "", "demo": "projects\/create-key.md", @@ -24183,7 +24841,7 @@ "x-appwrite": { "method": "getKey", "group": "keys", - "weight": 131, + "weight": 130, "cookies": false, "type": "", "demo": "projects\/get-key.md", @@ -24249,7 +24907,7 @@ "x-appwrite": { "method": "updateKey", "group": "keys", - "weight": 132, + "weight": 131, "cookies": false, "type": "", "demo": "projects\/update-key.md", @@ -24344,7 +25002,7 @@ "x-appwrite": { "method": "deleteKey", "group": "keys", - "weight": 133, + "weight": 132, "cookies": false, "type": "", "demo": "projects\/delete-key.md", @@ -24412,10 +25070,10 @@ "x-appwrite": { "method": "updateOAuth2", "group": "auth", - "weight": 111, + "weight": 110, "cookies": false, "type": "", - "demo": "projects\/update-o-auth2.md", + "demo": "projects\/update-o-auth-2.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/projects\/update-oauth2.md", "rate-limit": 0, "rate-time": 3600, @@ -24550,7 +25208,7 @@ "x-appwrite": { "method": "listPlatforms", "group": "platforms", - "weight": 136, + "weight": 135, "cookies": false, "type": "", "demo": "projects\/list-platforms.md", @@ -24608,7 +25266,7 @@ "x-appwrite": { "method": "createPlatform", "group": "platforms", - "weight": 135, + "weight": 134, "cookies": false, "type": "", "demo": "projects\/create-platform.md", @@ -24728,7 +25386,7 @@ "x-appwrite": { "method": "getPlatform", "group": "platforms", - "weight": 137, + "weight": 136, "cookies": false, "type": "", "demo": "projects\/get-platform.md", @@ -24794,7 +25452,7 @@ "x-appwrite": { "method": "updatePlatform", "group": "platforms", - "weight": 138, + "weight": 137, "cookies": false, "type": "", "demo": "projects\/update-platform.md", @@ -24891,7 +25549,7 @@ "x-appwrite": { "method": "deletePlatform", "group": "platforms", - "weight": 139, + "weight": 138, "cookies": false, "type": "", "demo": "projects\/delete-platform.md", @@ -24959,7 +25617,7 @@ "x-appwrite": { "method": "updateServiceStatus", "group": "projects", - "weight": 107, + "weight": 106, "cookies": false, "type": "", "demo": "projects\/update-service-status.md", @@ -25061,7 +25719,7 @@ "x-appwrite": { "method": "updateServiceStatusAll", "group": "projects", - "weight": 108, + "weight": 107, "cookies": false, "type": "", "demo": "projects\/update-service-status-all.md", @@ -25139,7 +25797,7 @@ "x-appwrite": { "method": "updateSmtp", "group": "templates", - "weight": 140, + "weight": 139, "cookies": false, "type": "", "demo": "projects\/update-smtp.md", @@ -25223,7 +25881,7 @@ } ], "description": "Update the SMTP configuration for your project. Use this endpoint to configure your project's SMTP provider with your custom settings for sending transactional emails. ", - "demo": "projects\/update-s-m-t-p.md" + "demo": "projects\/update-smtp.md" } ], "auth": { @@ -25342,7 +26000,7 @@ "x-appwrite": { "method": "createSmtpTest", "group": "templates", - "weight": 141, + "weight": 140, "cookies": false, "type": "", "demo": "projects\/create-smtp-test.md", @@ -25430,7 +26088,7 @@ } ], "description": "Send a test email to verify SMTP configuration. ", - "demo": "projects\/create-s-m-t-p-test.md" + "demo": "projects\/create-smtp-test.md" } ], "auth": { @@ -25558,7 +26216,7 @@ "x-appwrite": { "method": "updateTeam", "group": "projects", - "weight": 106, + "weight": 105, "cookies": false, "type": "", "demo": "projects\/update-team.md", @@ -25634,7 +26292,7 @@ "x-appwrite": { "method": "getEmailTemplate", "group": "templates", - "weight": 143, + "weight": 142, "cookies": false, "type": "", "demo": "projects\/get-email-template.md", @@ -25854,7 +26512,7 @@ "x-appwrite": { "method": "updateEmailTemplate", "group": "templates", - "weight": 145, + "weight": 144, "cookies": false, "type": "", "demo": "projects\/update-email-template.md", @@ -26117,7 +26775,7 @@ "x-appwrite": { "method": "deleteEmailTemplate", "group": "templates", - "weight": 147, + "weight": 146, "cookies": false, "type": "", "demo": "projects\/delete-email-template.md", @@ -26337,7 +26995,7 @@ "x-appwrite": { "method": "getSmsTemplate", "group": "templates", - "weight": 142, + "weight": 141, "cookies": false, "type": "", "demo": "projects\/get-sms-template.md", @@ -26409,7 +27067,7 @@ } ], "description": "Get a custom SMS template for the specified locale and type returning it's contents.", - "demo": "projects\/get-s-m-s-template.md" + "demo": "projects\/get-sms-template.md" } ], "auth": { @@ -26616,7 +27274,7 @@ "x-appwrite": { "method": "updateSmsTemplate", "group": "templates", - "weight": 144, + "weight": 143, "cookies": false, "type": "", "demo": "projects\/update-sms-template.md", @@ -26692,7 +27350,7 @@ } ], "description": "Update a custom SMS template for the specified locale and type. Use this endpoint to modify the content of your SMS templates. ", - "demo": "projects\/update-s-m-s-template.md" + "demo": "projects\/update-sms-template.md" } ], "auth": { @@ -26917,7 +27575,7 @@ "x-appwrite": { "method": "deleteSmsTemplate", "group": "templates", - "weight": 146, + "weight": 145, "cookies": false, "type": "", "demo": "projects\/delete-sms-template.md", @@ -26989,7 +27647,7 @@ } ], "description": "Reset a custom SMS template to its default value. This endpoint removes any custom message and restores the template to its original state. ", - "demo": "projects\/delete-s-m-s-template.md" + "demo": "projects\/delete-sms-template.md" } ], "auth": { @@ -27196,7 +27854,7 @@ "x-appwrite": { "method": "listWebhooks", "group": "webhooks", - "weight": 124, + "weight": 123, "cookies": false, "type": "", "demo": "projects\/list-webhooks.md", @@ -27254,7 +27912,7 @@ "x-appwrite": { "method": "createWebhook", "group": "webhooks", - "weight": 123, + "weight": 122, "cookies": false, "type": "", "demo": "projects\/create-webhook.md", @@ -27372,7 +28030,7 @@ "x-appwrite": { "method": "getWebhook", "group": "webhooks", - "weight": 125, + "weight": 124, "cookies": false, "type": "", "demo": "projects\/get-webhook.md", @@ -27438,7 +28096,7 @@ "x-appwrite": { "method": "updateWebhook", "group": "webhooks", - "weight": 126, + "weight": 125, "cookies": false, "type": "", "demo": "projects\/update-webhook.md", @@ -27559,7 +28217,7 @@ "x-appwrite": { "method": "deleteWebhook", "group": "webhooks", - "weight": 128, + "weight": 127, "cookies": false, "type": "", "demo": "projects\/delete-webhook.md", @@ -27627,7 +28285,7 @@ "x-appwrite": { "method": "updateWebhookSignature", "group": "webhooks", - "weight": 127, + "weight": 126, "cookies": false, "type": "", "demo": "projects\/update-webhook-signature.md", @@ -27693,11 +28351,11 @@ "x-appwrite": { "method": "listRules", "group": null, - "weight": 241, + "weight": 502, "cookies": false, "type": "", "demo": "proxy\/list-rules.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/proxy\/list-rules.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/masterGet a list of all the proxy rules. You can use the query params to filter your results.", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -27766,10 +28424,10 @@ "x-appwrite": { "method": "createAPIRule", "group": null, - "weight": 489, + "weight": 497, "cookies": false, "type": "", - "demo": "proxy\/create-a-p-i-rule.md", + "demo": "proxy\/create-api-rule.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/masterCreate a new proxy rule for serving Appwrite's API on custom domain.", "rate-limit": 10, "rate-time": 60, @@ -27836,7 +28494,7 @@ "x-appwrite": { "method": "createFunctionRule", "group": null, - "weight": 491, + "weight": 499, "cookies": false, "type": "", "demo": "proxy\/create-function-rule.md", @@ -27919,7 +28577,7 @@ "x-appwrite": { "method": "createRedirectRule", "group": null, - "weight": 492, + "weight": 500, "cookies": false, "type": "", "demo": "proxy\/create-redirect-rule.md", @@ -28039,7 +28697,7 @@ "x-appwrite": { "method": "createSiteRule", "group": null, - "weight": 490, + "weight": 498, "cookies": false, "type": "", "demo": "proxy\/create-site-rule.md", @@ -28120,11 +28778,11 @@ "x-appwrite": { "method": "getRule", "group": null, - "weight": 242, + "weight": 501, "cookies": false, "type": "", "demo": "proxy\/get-rule.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/proxy\/get-rule.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/masterGet a proxy rule by its unique ID.", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -28173,11 +28831,11 @@ "x-appwrite": { "method": "deleteRule", "group": null, - "weight": 243, + "weight": 503, "cookies": false, "type": "", "demo": "proxy\/delete-rule.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/proxy\/delete-rule.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/masterDelete a proxy rule by its unique ID.", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -28233,11 +28891,11 @@ "x-appwrite": { "method": "updateRuleVerification", "group": null, - "weight": 244, + "weight": 504, "cookies": false, "type": "", "demo": "proxy\/update-rule-verification.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/proxy\/update-rule-verification.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/masterRetry getting verification process of a proxy rule. This endpoint triggers domain verification by checking DNS records (CNAME) against the configured target domain. If verification is successful, a TLS certificate will be automatically provisioned for the domain.", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -28291,7 +28949,7 @@ "x-appwrite": { "method": "list", "group": "sites", - "weight": 461, + "weight": 469, "cookies": false, "type": "", "demo": "sites\/list.md", @@ -28363,7 +29021,7 @@ "x-appwrite": { "method": "create", "group": "sites", - "weight": 459, + "weight": 467, "cookies": false, "type": "", "demo": "sites\/create.md", @@ -28630,7 +29288,7 @@ "x-appwrite": { "method": "listFrameworks", "group": "frameworks", - "weight": 464, + "weight": 472, "cookies": false, "type": "", "demo": "sites\/list-frameworks.md", @@ -28679,7 +29337,7 @@ "x-appwrite": { "method": "listSpecifications", "group": "frameworks", - "weight": 487, + "weight": 495, "cookies": false, "type": "", "demo": "sites\/list-specifications.md", @@ -28729,7 +29387,7 @@ "x-appwrite": { "method": "listTemplates", "group": "templates", - "weight": 483, + "weight": 491, "cookies": false, "type": "", "demo": "sites\/list-templates.md", @@ -28823,7 +29481,7 @@ "x-appwrite": { "method": "getTemplate", "group": "templates", - "weight": 484, + "weight": 492, "cookies": false, "type": "", "demo": "sites\/get-template.md", @@ -28881,7 +29539,7 @@ "x-appwrite": { "method": "listUsage", "group": null, - "weight": 485, + "weight": 493, "cookies": false, "type": "", "demo": "sites\/list-usage.md", @@ -28951,7 +29609,7 @@ "x-appwrite": { "method": "get", "group": "sites", - "weight": 460, + "weight": 468, "cookies": false, "type": "", "demo": "sites\/get.md", @@ -29010,7 +29668,7 @@ "x-appwrite": { "method": "update", "group": "sites", - "weight": 462, + "weight": 470, "cookies": false, "type": "", "demo": "sites\/update.md", @@ -29272,7 +29930,7 @@ "x-appwrite": { "method": "delete", "group": "sites", - "weight": 463, + "weight": 471, "cookies": false, "type": "", "demo": "sites\/delete.md", @@ -29333,7 +29991,7 @@ "x-appwrite": { "method": "updateSiteDeployment", "group": "sites", - "weight": 470, + "weight": 478, "cookies": false, "type": "", "demo": "sites\/update-site-deployment.md", @@ -29410,7 +30068,7 @@ "x-appwrite": { "method": "listDeployments", "group": "deployments", - "weight": 469, + "weight": 477, "cookies": false, "type": "", "demo": "sites\/list-deployments.md", @@ -29490,7 +30148,7 @@ "x-appwrite": { "method": "createDeployment", "group": "deployments", - "weight": 465, + "weight": 473, "cookies": false, "type": "upload", "demo": "sites\/create-deployment.md", @@ -29590,7 +30248,7 @@ "x-appwrite": { "method": "createDuplicateDeployment", "group": "deployments", - "weight": 473, + "weight": 481, "cookies": false, "type": "", "demo": "sites\/create-duplicate-deployment.md", @@ -29669,7 +30327,7 @@ "x-appwrite": { "method": "createTemplateDeployment", "group": "deployments", - "weight": 466, + "weight": 474, "cookies": false, "type": "", "demo": "sites\/create-template-deployment.md", @@ -29775,7 +30433,7 @@ "x-appwrite": { "method": "createVcsDeployment", "group": "deployments", - "weight": 467, + "weight": 475, "cookies": false, "type": "", "demo": "sites\/create-vcs-deployment.md", @@ -29872,7 +30530,7 @@ "x-appwrite": { "method": "getDeployment", "group": "deployments", - "weight": 468, + "weight": 476, "cookies": false, "type": "", "demo": "sites\/get-deployment.md", @@ -29934,7 +30592,7 @@ "x-appwrite": { "method": "deleteDeployment", "group": "deployments", - "weight": 471, + "weight": 479, "cookies": false, "type": "", "demo": "sites\/delete-deployment.md", @@ -30001,7 +30659,7 @@ "x-appwrite": { "method": "getDeploymentDownload", "group": "deployments", - "weight": 472, + "weight": 480, "cookies": false, "type": "location", "demo": "sites\/get-deployment-download.md", @@ -30086,7 +30744,7 @@ "x-appwrite": { "method": "updateDeploymentStatus", "group": "deployments", - "weight": 474, + "weight": 482, "cookies": false, "type": "", "demo": "sites\/update-deployment-status.md", @@ -30153,7 +30811,7 @@ "x-appwrite": { "method": "listLogs", "group": "logs", - "weight": 476, + "weight": 484, "cookies": false, "type": "", "demo": "sites\/list-logs.md", @@ -30224,7 +30882,7 @@ "x-appwrite": { "method": "getLog", "group": "logs", - "weight": 475, + "weight": 483, "cookies": false, "type": "", "demo": "sites\/get-log.md", @@ -30288,7 +30946,7 @@ "x-appwrite": { "method": "deleteLog", "group": "logs", - "weight": 477, + "weight": 485, "cookies": false, "type": "", "demo": "sites\/delete-log.md", @@ -30355,7 +31013,7 @@ "x-appwrite": { "method": "getUsage", "group": null, - "weight": 486, + "weight": 494, "cookies": false, "type": "", "demo": "sites\/get-usage.md", @@ -30433,7 +31091,7 @@ "x-appwrite": { "method": "listVariables", "group": "variables", - "weight": 480, + "weight": 488, "cookies": false, "type": "", "demo": "sites\/list-variables.md", @@ -30492,7 +31150,7 @@ "x-appwrite": { "method": "createVariable", "group": "variables", - "weight": 478, + "weight": 486, "cookies": false, "type": "", "demo": "sites\/create-variable.md", @@ -30582,7 +31240,7 @@ "x-appwrite": { "method": "getVariable", "group": "variables", - "weight": 479, + "weight": 487, "cookies": false, "type": "", "demo": "sites\/get-variable.md", @@ -30649,7 +31307,7 @@ "x-appwrite": { "method": "updateVariable", "group": "variables", - "weight": 481, + "weight": 489, "cookies": false, "type": "", "demo": "sites\/update-variable.md", @@ -30741,7 +31399,7 @@ "x-appwrite": { "method": "deleteVariable", "group": "variables", - "weight": 482, + "weight": 490, "cookies": false, "type": "", "demo": "sites\/delete-variable.md", @@ -30808,7 +31466,7 @@ "x-appwrite": { "method": "listBuckets", "group": "buckets", - "weight": 156, + "weight": 155, "cookies": false, "type": "", "demo": "storage\/list-buckets.md", @@ -30880,7 +31538,7 @@ "x-appwrite": { "method": "createBucket", "group": "buckets", - "weight": 155, + "weight": 154, "cookies": false, "type": "", "demo": "storage\/create-bucket.md", @@ -31017,7 +31675,7 @@ "x-appwrite": { "method": "getBucket", "group": "buckets", - "weight": 157, + "weight": 156, "cookies": false, "type": "", "demo": "storage\/get-bucket.md", @@ -31076,7 +31734,7 @@ "x-appwrite": { "method": "updateBucket", "group": "buckets", - "weight": 158, + "weight": 157, "cookies": false, "type": "", "demo": "storage\/update-bucket.md", @@ -31209,7 +31867,7 @@ "x-appwrite": { "method": "deleteBucket", "group": "buckets", - "weight": 159, + "weight": 158, "cookies": false, "type": "", "demo": "storage\/delete-bucket.md", @@ -31268,7 +31926,7 @@ "x-appwrite": { "method": "listFiles", "group": "files", - "weight": 161, + "weight": 160, "cookies": false, "type": "", "demo": "storage\/list-files.md", @@ -31350,7 +32008,7 @@ "x-appwrite": { "method": "createFile", "group": "files", - "weight": 160, + "weight": 159, "cookies": false, "type": "upload", "demo": "storage\/create-file.md", @@ -31439,7 +32097,7 @@ "x-appwrite": { "method": "getFile", "group": "files", - "weight": 162, + "weight": 161, "cookies": false, "type": "", "demo": "storage\/get-file.md", @@ -31508,7 +32166,7 @@ "x-appwrite": { "method": "updateFile", "group": "files", - "weight": 167, + "weight": 166, "cookies": false, "type": "", "demo": "storage\/update-file.md", @@ -31596,7 +32254,7 @@ "x-appwrite": { "method": "deleteFile", "group": "files", - "weight": 168, + "weight": 167, "cookies": false, "type": "", "demo": "storage\/delete-file.md", @@ -31665,7 +32323,7 @@ "x-appwrite": { "method": "getFileDownload", "group": "files", - "weight": 164, + "weight": 163, "cookies": false, "type": "location", "demo": "storage\/get-file-download.md", @@ -31743,7 +32401,7 @@ "x-appwrite": { "method": "getFilePreview", "group": "files", - "weight": 163, + "weight": 162, "cookies": false, "type": "location", "demo": "storage\/get-file-preview.md", @@ -31949,7 +32607,7 @@ "x-appwrite": { "method": "getFileView", "group": "files", - "weight": 165, + "weight": 164, "cookies": false, "type": "location", "demo": "storage\/get-file-view.md", @@ -32027,7 +32685,7 @@ "x-appwrite": { "method": "getUsage", "group": null, - "weight": 169, + "weight": 168, "cookies": false, "type": "", "demo": "storage\/get-usage.md", @@ -32097,7 +32755,7 @@ "x-appwrite": { "method": "getBucketUsage", "group": null, - "weight": 170, + "weight": 169, "cookies": false, "type": "", "demo": "storage\/get-bucket-usage.md", @@ -32175,10 +32833,10 @@ "x-appwrite": { "method": "list", "group": "tablesdb", - "weight": 375, + "weight": 376, "cookies": false, "type": "", - "demo": "tables-d-b\/list.md", + "demo": "tablesdb\/list.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/list.md", "rate-limit": 0, "rate-time": 3600, @@ -32247,10 +32905,10 @@ "x-appwrite": { "method": "create", "group": "tablesdb", - "weight": 371, + "weight": 372, "cookies": false, "type": "", - "demo": "tables-d-b\/create.md", + "demo": "tablesdb\/create.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/create.md", "rate-limit": 0, "rate-time": 3600, @@ -32329,15 +32987,18 @@ "x-appwrite": { "method": "listUsage", "group": null, - "weight": 377, + "weight": 378, "cookies": false, "type": "", - "demo": "tables-d-b\/list-usage.md", + "demo": "tablesdb\/list-usage.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/list-usage.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "tables.read", + "scope": [ + "tables.read", + "collections.read" + ], "platforms": [ "console" ], @@ -32361,7 +33022,7 @@ } ], "description": "List usage metrics and statistics for all databases in the project. You can view the total number of databases, tables, rows, and storage usage. The response includes both current totals and historical data over time. Use the optional range parameter to specify the time window for historical data: 24h (last 24 hours), 30d (last 30 days), or 90d (last 90 days). If not specified, range defaults to 30 days.", - "demo": "tables-d-b\/list-usage.md" + "demo": "tablesdb\/list-usage.md" } ], "auth": { @@ -32421,10 +33082,10 @@ "x-appwrite": { "method": "get", "group": "tablesdb", - "weight": 372, + "weight": 373, "cookies": false, "type": "", - "demo": "tables-d-b\/get.md", + "demo": "tablesdb\/get.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/get.md", "rate-limit": 0, "rate-time": 3600, @@ -32480,10 +33141,10 @@ "x-appwrite": { "method": "update", "group": "tablesdb", - "weight": 373, + "weight": 374, "cookies": false, "type": "", - "demo": "tables-d-b\/update.md", + "demo": "tablesdb\/update.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/update.md", "rate-limit": 0, "rate-time": 3600, @@ -32558,10 +33219,10 @@ "x-appwrite": { "method": "delete", "group": "tablesdb", - "weight": 374, + "weight": 375, "cookies": false, "type": "", - "demo": "tables-d-b\/delete.md", + "demo": "tablesdb\/delete.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/delete.md", "rate-limit": 0, "rate-time": 3600, @@ -32616,16 +33277,19 @@ "deprecated": false, "x-appwrite": { "method": "listTables", - "group": null, - "weight": 382, + "group": "tables", + "weight": 383, "cookies": false, "type": "", - "demo": "tables-d-b\/list-tables.md", + "demo": "tablesdb\/list-tables.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/list-tables.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "tables.read", + "scope": [ + "tables.read", + "collections.read" + ], "platforms": [ "server" ], @@ -32696,16 +33360,19 @@ "deprecated": false, "x-appwrite": { "method": "createTable", - "group": null, - "weight": 378, + "group": "tables", + "weight": 379, "cookies": false, "type": "", - "demo": "tables-d-b\/create-table.md", + "demo": "tablesdb\/create-table.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/create-table.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "tables.write", + "scope": [ + "tables.write", + "collections.write" + ], "platforms": [ "server" ], @@ -32801,16 +33468,19 @@ "deprecated": false, "x-appwrite": { "method": "getTable", - "group": null, - "weight": 379, + "group": "tables", + "weight": 380, "cookies": false, "type": "", - "demo": "tables-d-b\/get-table.md", + "demo": "tablesdb\/get-table.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/get-table.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "tables.read", + "scope": [ + "tables.read", + "collections.read" + ], "platforms": [ "server" ], @@ -32868,16 +33538,19 @@ "deprecated": false, "x-appwrite": { "method": "updateTable", - "group": null, - "weight": 380, + "group": "tables", + "weight": 381, "cookies": false, "type": "", - "demo": "tables-d-b\/update-table.md", + "demo": "tablesdb\/update-table.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/update-table.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "tables.write", + "scope": [ + "tables.write", + "collections.write" + ], "platforms": [ "server" ], @@ -32969,16 +33642,19 @@ "deprecated": false, "x-appwrite": { "method": "deleteTable", - "group": null, - "weight": 381, + "group": "tables", + "weight": 382, "cookies": false, "type": "", - "demo": "tables-d-b\/delete-table.md", + "demo": "tablesdb\/delete-table.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/delete-table.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "tables.write", + "scope": [ + "tables.write", + "collections.write" + ], "platforms": [ "server" ], @@ -33037,15 +33713,18 @@ "x-appwrite": { "method": "listColumns", "group": "columns", - "weight": 387, + "weight": 388, "cookies": false, "type": "", - "demo": "tables-d-b\/list-columns.md", + "demo": "tablesdb\/list-columns.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/list-columns.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "tables.read", + "scope": [ + "tables.read", + "collections.read" + ], "platforms": [ "server" ], @@ -33118,15 +33797,18 @@ "x-appwrite": { "method": "createBooleanColumn", "group": "columns", - "weight": 388, + "weight": 389, "cookies": false, "type": "", - "demo": "tables-d-b\/create-boolean-column.md", + "demo": "tablesdb\/create-boolean-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/create-boolean-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "tables.write", + "scope": [ + "tables.write", + "collections.write" + ], "platforms": [ "server" ], @@ -33224,15 +33906,18 @@ "x-appwrite": { "method": "updateBooleanColumn", "group": "columns", - "weight": 389, + "weight": 390, "cookies": false, "type": "", - "demo": "tables-d-b\/update-boolean-column.md", + "demo": "tablesdb\/update-boolean-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/update-boolean-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "tables.write", + "scope": [ + "tables.write", + "collections.write" + ], "platforms": [ "server" ], @@ -33332,15 +34017,18 @@ "x-appwrite": { "method": "createDatetimeColumn", "group": "columns", - "weight": 390, + "weight": 391, "cookies": false, "type": "", - "demo": "tables-d-b\/create-datetime-column.md", + "demo": "tablesdb\/create-datetime-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/create-datetime-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "tables.write", + "scope": [ + "tables.write", + "collections.write" + ], "platforms": [ "server" ], @@ -33438,15 +34126,18 @@ "x-appwrite": { "method": "updateDatetimeColumn", "group": "columns", - "weight": 391, + "weight": 392, "cookies": false, "type": "", - "demo": "tables-d-b\/update-datetime-column.md", + "demo": "tablesdb\/update-datetime-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/update-datetime-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "tables.write", + "scope": [ + "tables.write", + "collections.write" + ], "platforms": [ "server" ], @@ -33546,15 +34237,18 @@ "x-appwrite": { "method": "createEmailColumn", "group": "columns", - "weight": 392, + "weight": 393, "cookies": false, "type": "", - "demo": "tables-d-b\/create-email-column.md", + "demo": "tablesdb\/create-email-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/create-email-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "tables.write", + "scope": [ + "tables.write", + "collections.write" + ], "platforms": [ "server" ], @@ -33652,15 +34346,18 @@ "x-appwrite": { "method": "updateEmailColumn", "group": "columns", - "weight": 393, + "weight": 394, "cookies": false, "type": "", - "demo": "tables-d-b\/update-email-column.md", + "demo": "tablesdb\/update-email-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/update-email-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "tables.write", + "scope": [ + "tables.write", + "collections.write" + ], "platforms": [ "server" ], @@ -33760,15 +34457,18 @@ "x-appwrite": { "method": "createEnumColumn", "group": "columns", - "weight": 394, + "weight": 395, "cookies": false, "type": "", - "demo": "tables-d-b\/create-enum-column.md", + "demo": "tablesdb\/create-enum-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/create-enum-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "tables.write", + "scope": [ + "tables.write", + "collections.write" + ], "platforms": [ "server" ], @@ -33876,15 +34576,18 @@ "x-appwrite": { "method": "updateEnumColumn", "group": "columns", - "weight": 395, + "weight": 396, "cookies": false, "type": "", - "demo": "tables-d-b\/update-enum-column.md", + "demo": "tablesdb\/update-enum-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/update-enum-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "tables.write", + "scope": [ + "tables.write", + "collections.write" + ], "platforms": [ "server" ], @@ -33994,15 +34697,18 @@ "x-appwrite": { "method": "createFloatColumn", "group": "columns", - "weight": 396, + "weight": 397, "cookies": false, "type": "", - "demo": "tables-d-b\/create-float-column.md", + "demo": "tablesdb\/create-float-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/create-float-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "tables.write", + "scope": [ + "tables.write", + "collections.write" + ], "platforms": [ "server" ], @@ -34112,15 +34818,18 @@ "x-appwrite": { "method": "updateFloatColumn", "group": "columns", - "weight": 397, + "weight": 398, "cookies": false, "type": "", - "demo": "tables-d-b\/update-float-column.md", + "demo": "tablesdb\/update-float-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/update-float-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "tables.write", + "scope": [ + "tables.write", + "collections.write" + ], "platforms": [ "server" ], @@ -34232,15 +34941,18 @@ "x-appwrite": { "method": "createIntegerColumn", "group": "columns", - "weight": 398, + "weight": 399, "cookies": false, "type": "", - "demo": "tables-d-b\/create-integer-column.md", + "demo": "tablesdb\/create-integer-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/create-integer-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "tables.write", + "scope": [ + "tables.write", + "collections.write" + ], "platforms": [ "server" ], @@ -34350,15 +35062,18 @@ "x-appwrite": { "method": "updateIntegerColumn", "group": "columns", - "weight": 399, + "weight": 400, "cookies": false, "type": "", - "demo": "tables-d-b\/update-integer-column.md", + "demo": "tablesdb\/update-integer-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/update-integer-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "tables.write", + "scope": [ + "tables.write", + "collections.write" + ], "platforms": [ "server" ], @@ -34470,15 +35185,18 @@ "x-appwrite": { "method": "createIpColumn", "group": "columns", - "weight": 400, + "weight": 401, "cookies": false, "type": "", - "demo": "tables-d-b\/create-ip-column.md", + "demo": "tablesdb\/create-ip-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/create-ip-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "tables.write", + "scope": [ + "tables.write", + "collections.write" + ], "platforms": [ "server" ], @@ -34576,15 +35294,18 @@ "x-appwrite": { "method": "updateIpColumn", "group": "columns", - "weight": 401, + "weight": 402, "cookies": false, "type": "", - "demo": "tables-d-b\/update-ip-column.md", + "demo": "tablesdb\/update-ip-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/update-ip-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "tables.write", + "scope": [ + "tables.write", + "collections.write" + ], "platforms": [ "server" ], @@ -34658,6 +35379,648 @@ ] } }, + "\/tablesdb\/{databaseId}\/tables\/{tableId}\/columns\/line": { + "post": { + "summary": "Create line column", + "operationId": "tablesDBCreateLineColumn", + "consumes": [ + "application\/json" + ], + "produces": [ + "application\/json" + ], + "tags": [ + "tablesDB" + ], + "description": "Create a geometric line column.", + "responses": { + "202": { + "description": "ColumnLine", + "schema": { + "$ref": "#\/definitions\/columnLine" + } + } + }, + "deprecated": false, + "x-appwrite": { + "method": "createLineColumn", + "group": "columns", + "weight": 403, + "cookies": false, + "type": "", + "demo": "tablesdb\/create-line-column.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/create-line-column.md", + "rate-limit": 0, + "rate-time": 3600, + "rate-key": "url:{url},ip:{ip}", + "scope": [ + "tables.write", + "collections.write" + ], + "platforms": [ + "server" + ], + "packaging": false, + "auth": { + "Project": [] + } + }, + "security": [ + { + "Project": [], + "Key": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + }, + { + "name": "tableId", + "description": "Table ID. You can create a new table using the TablesDB service [server integration](https:\/\/appwrite.io\/docs\/server\/tablesdb#tablesDBCreate).", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + }, + { + "name": "payload", + "in": "body", + "schema": { + "type": "object", + "properties": { + "key": { + "type": "string", + "description": "Column Key.", + "default": null, + "x-example": null + }, + "required": { + "type": "boolean", + "description": "Is column required?", + "default": null, + "x-example": false + }, + "default": { + "type": "array", + "description": "Default value for column when not provided, two-dimensional array of coordinate pairs, [[longitude, latitude], [longitude, latitude], \u2026], listing the vertices of the line in order. Cannot be set when column is required.", + "default": null, + "x-example": "[[1, 2], [3, 4], [5, 6]]", + "x-nullable": true + } + }, + "required": [ + "key", + "required" + ] + } + } + ] + } + }, + "\/tablesdb\/{databaseId}\/tables\/{tableId}\/columns\/line\/{key}": { + "patch": { + "summary": "Update line column", + "operationId": "tablesDBUpdateLineColumn", + "consumes": [ + "application\/json" + ], + "produces": [ + "application\/json" + ], + "tags": [ + "tablesDB" + ], + "description": "Update a line column. Changing the `default` value will not update already existing rows.", + "responses": { + "200": { + "description": "ColumnLine", + "schema": { + "$ref": "#\/definitions\/columnLine" + } + } + }, + "deprecated": false, + "x-appwrite": { + "method": "updateLineColumn", + "group": "columns", + "weight": 404, + "cookies": false, + "type": "", + "demo": "tablesdb\/update-line-column.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/update-line-column.md", + "rate-limit": 0, + "rate-time": 3600, + "rate-key": "url:{url},ip:{ip}", + "scope": [ + "tables.write", + "collections.write" + ], + "platforms": [ + "server" + ], + "packaging": false, + "auth": { + "Project": [] + } + }, + "security": [ + { + "Project": [], + "Key": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + }, + { + "name": "tableId", + "description": "Table ID. You can create a new table using the TablesDB service [server integration](https:\/\/appwrite.io\/docs\/server\/tablesdb#tablesDBCreate).", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + }, + { + "name": "key", + "description": "Column Key.", + "required": true, + "type": "string", + "in": "path" + }, + { + "name": "payload", + "in": "body", + "schema": { + "type": "object", + "properties": { + "required": { + "type": "boolean", + "description": "Is column required?", + "default": null, + "x-example": false + }, + "default": { + "type": "array", + "description": "Default value for column when not provided, two-dimensional array of coordinate pairs, [[longitude, latitude], [longitude, latitude], \u2026], listing the vertices of the line in order. Cannot be set when column is required.", + "default": null, + "x-example": "[[1, 2], [3, 4], [5, 6]]", + "x-nullable": true + }, + "newKey": { + "type": "string", + "description": "New Column Key.", + "default": null, + "x-example": null + } + }, + "required": [ + "required" + ] + } + } + ] + } + }, + "\/tablesdb\/{databaseId}\/tables\/{tableId}\/columns\/point": { + "post": { + "summary": "Create point column", + "operationId": "tablesDBCreatePointColumn", + "consumes": [ + "application\/json" + ], + "produces": [ + "application\/json" + ], + "tags": [ + "tablesDB" + ], + "description": "Create a geometric point column.", + "responses": { + "202": { + "description": "ColumnPoint", + "schema": { + "$ref": "#\/definitions\/columnPoint" + } + } + }, + "deprecated": false, + "x-appwrite": { + "method": "createPointColumn", + "group": "columns", + "weight": 405, + "cookies": false, + "type": "", + "demo": "tablesdb\/create-point-column.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/create-point-column.md", + "rate-limit": 0, + "rate-time": 3600, + "rate-key": "url:{url},ip:{ip}", + "scope": [ + "tables.write", + "collections.write" + ], + "platforms": [ + "server" + ], + "packaging": false, + "auth": { + "Project": [] + } + }, + "security": [ + { + "Project": [], + "Key": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + }, + { + "name": "tableId", + "description": "Table ID. You can create a new table using the TablesDB service [server integration](https:\/\/appwrite.io\/docs\/server\/tablesdb#tablesDBCreate).", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + }, + { + "name": "payload", + "in": "body", + "schema": { + "type": "object", + "properties": { + "key": { + "type": "string", + "description": "Column Key.", + "default": null, + "x-example": null + }, + "required": { + "type": "boolean", + "description": "Is column required?", + "default": null, + "x-example": false + }, + "default": { + "type": "array", + "description": "Default value for column when not provided, array of two numbers [longitude, latitude], representing a single coordinate. Cannot be set when column is required.", + "default": null, + "x-example": "[1, 2]", + "x-nullable": true + } + }, + "required": [ + "key", + "required" + ] + } + } + ] + } + }, + "\/tablesdb\/{databaseId}\/tables\/{tableId}\/columns\/point\/{key}": { + "patch": { + "summary": "Update point column", + "operationId": "tablesDBUpdatePointColumn", + "consumes": [ + "application\/json" + ], + "produces": [ + "application\/json" + ], + "tags": [ + "tablesDB" + ], + "description": "Update a point column. Changing the `default` value will not update already existing rows.", + "responses": { + "200": { + "description": "ColumnPoint", + "schema": { + "$ref": "#\/definitions\/columnPoint" + } + } + }, + "deprecated": false, + "x-appwrite": { + "method": "updatePointColumn", + "group": "columns", + "weight": 406, + "cookies": false, + "type": "", + "demo": "tablesdb\/update-point-column.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/update-point-column.md", + "rate-limit": 0, + "rate-time": 3600, + "rate-key": "url:{url},ip:{ip}", + "scope": [ + "tables.write", + "collections.write" + ], + "platforms": [ + "server" + ], + "packaging": false, + "auth": { + "Project": [] + } + }, + "security": [ + { + "Project": [], + "Key": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + }, + { + "name": "tableId", + "description": "Table ID. You can create a new table using the TablesDB service [server integration](https:\/\/appwrite.io\/docs\/server\/tablesdb#tablesDBCreate).", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + }, + { + "name": "key", + "description": "Column Key.", + "required": true, + "type": "string", + "in": "path" + }, + { + "name": "payload", + "in": "body", + "schema": { + "type": "object", + "properties": { + "required": { + "type": "boolean", + "description": "Is column required?", + "default": null, + "x-example": false + }, + "default": { + "type": "array", + "description": "Default value for column when not provided, array of two numbers [longitude, latitude], representing a single coordinate. Cannot be set when column is required.", + "default": null, + "x-example": "[1, 2]", + "x-nullable": true + }, + "newKey": { + "type": "string", + "description": "New Column Key.", + "default": null, + "x-example": null + } + }, + "required": [ + "required" + ] + } + } + ] + } + }, + "\/tablesdb\/{databaseId}\/tables\/{tableId}\/columns\/polygon": { + "post": { + "summary": "Create polygon column", + "operationId": "tablesDBCreatePolygonColumn", + "consumes": [ + "application\/json" + ], + "produces": [ + "application\/json" + ], + "tags": [ + "tablesDB" + ], + "description": "Create a geometric polygon column.", + "responses": { + "202": { + "description": "ColumnPolygon", + "schema": { + "$ref": "#\/definitions\/columnPolygon" + } + } + }, + "deprecated": false, + "x-appwrite": { + "method": "createPolygonColumn", + "group": "columns", + "weight": 407, + "cookies": false, + "type": "", + "demo": "tablesdb\/create-polygon-column.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/create-polygon-column.md", + "rate-limit": 0, + "rate-time": 3600, + "rate-key": "url:{url},ip:{ip}", + "scope": [ + "tables.write", + "collections.write" + ], + "platforms": [ + "server" + ], + "packaging": false, + "auth": { + "Project": [] + } + }, + "security": [ + { + "Project": [], + "Key": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + }, + { + "name": "tableId", + "description": "Table ID. You can create a new table using the TablesDB service [server integration](https:\/\/appwrite.io\/docs\/server\/tablesdb#tablesDBCreate).", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + }, + { + "name": "payload", + "in": "body", + "schema": { + "type": "object", + "properties": { + "key": { + "type": "string", + "description": "Column Key.", + "default": null, + "x-example": null + }, + "required": { + "type": "boolean", + "description": "Is column required?", + "default": null, + "x-example": false + }, + "default": { + "type": "array", + "description": "Default value for column when not provided, three-dimensional array where the outer array holds one or more linear rings, [[[longitude, latitude], \u2026], \u2026], the first ring is the exterior boundary, any additional rings are interior holes, and each ring must start and end with the same coordinate pair. Cannot be set when column is required.", + "default": null, + "x-example": "[[[1, 2], [3, 4], [5, 6], [1, 2]]]", + "x-nullable": true + } + }, + "required": [ + "key", + "required" + ] + } + } + ] + } + }, + "\/tablesdb\/{databaseId}\/tables\/{tableId}\/columns\/polygon\/{key}": { + "patch": { + "summary": "Update polygon column", + "operationId": "tablesDBUpdatePolygonColumn", + "consumes": [ + "application\/json" + ], + "produces": [ + "application\/json" + ], + "tags": [ + "tablesDB" + ], + "description": "Update a polygon column. Changing the `default` value will not update already existing rows.", + "responses": { + "200": { + "description": "ColumnPolygon", + "schema": { + "$ref": "#\/definitions\/columnPolygon" + } + } + }, + "deprecated": false, + "x-appwrite": { + "method": "updatePolygonColumn", + "group": "columns", + "weight": 408, + "cookies": false, + "type": "", + "demo": "tablesdb\/update-polygon-column.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/update-polygon-column.md", + "rate-limit": 0, + "rate-time": 3600, + "rate-key": "url:{url},ip:{ip}", + "scope": [ + "tables.write", + "collections.write" + ], + "platforms": [ + "server" + ], + "packaging": false, + "auth": { + "Project": [] + } + }, + "security": [ + { + "Project": [], + "Key": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + }, + { + "name": "tableId", + "description": "Table ID. You can create a new table using the TablesDB service [server integration](https:\/\/appwrite.io\/docs\/server\/tablesdb#tablesDBCreate).", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + }, + { + "name": "key", + "description": "Column Key.", + "required": true, + "type": "string", + "in": "path" + }, + { + "name": "payload", + "in": "body", + "schema": { + "type": "object", + "properties": { + "required": { + "type": "boolean", + "description": "Is column required?", + "default": null, + "x-example": false + }, + "default": { + "type": "array", + "description": "Default value for column when not provided, three-dimensional array where the outer array holds one or more linear rings, [[[longitude, latitude], \u2026], \u2026], the first ring is the exterior boundary, any additional rings are interior holes, and each ring must start and end with the same coordinate pair. Cannot be set when column is required.", + "default": null, + "x-example": "[[[1, 2], [3, 4], [5, 6], [1, 2]]]", + "x-nullable": true + }, + "newKey": { + "type": "string", + "description": "New Column Key.", + "default": null, + "x-example": null + } + }, + "required": [ + "required" + ] + } + } + ] + } + }, "\/tablesdb\/{databaseId}\/tables\/{tableId}\/columns\/relationship": { "post": { "summary": "Create relationship column", @@ -34684,15 +36047,18 @@ "x-appwrite": { "method": "createRelationshipColumn", "group": "columns", - "weight": 402, + "weight": 409, "cookies": false, "type": "", - "demo": "tables-d-b\/create-relationship-column.md", + "demo": "tablesdb\/create-relationship-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/create-relationship-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "tables.write", + "scope": [ + "tables.write", + "collections.write" + ], "platforms": [ "server" ], @@ -34817,15 +36183,18 @@ "x-appwrite": { "method": "createStringColumn", "group": "columns", - "weight": 404, + "weight": 411, "cookies": false, "type": "", - "demo": "tables-d-b\/create-string-column.md", + "demo": "tablesdb\/create-string-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/create-string-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "tables.write", + "scope": [ + "tables.write", + "collections.write" + ], "platforms": [ "server" ], @@ -34936,15 +36305,18 @@ "x-appwrite": { "method": "updateStringColumn", "group": "columns", - "weight": 405, + "weight": 412, "cookies": false, "type": "", - "demo": "tables-d-b\/update-string-column.md", + "demo": "tablesdb\/update-string-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/update-string-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "tables.write", + "scope": [ + "tables.write", + "collections.write" + ], "platforms": [ "server" ], @@ -35050,15 +36422,18 @@ "x-appwrite": { "method": "createUrlColumn", "group": "columns", - "weight": 406, + "weight": 413, "cookies": false, "type": "", - "demo": "tables-d-b\/create-url-column.md", + "demo": "tablesdb\/create-url-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/create-url-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "tables.write", + "scope": [ + "tables.write", + "collections.write" + ], "platforms": [ "server" ], @@ -35156,15 +36531,18 @@ "x-appwrite": { "method": "updateUrlColumn", "group": "columns", - "weight": 407, + "weight": 414, "cookies": false, "type": "", - "demo": "tables-d-b\/update-url-column.md", + "demo": "tablesdb\/update-url-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/update-url-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "tables.write", + "scope": [ + "tables.write", + "collections.write" + ], "platforms": [ "server" ], @@ -35293,15 +36671,18 @@ "x-appwrite": { "method": "getColumn", "group": "columns", - "weight": 385, + "weight": 386, "cookies": false, "type": "", - "demo": "tables-d-b\/get-column.md", + "demo": "tablesdb\/get-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/get-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "tables.read", + "scope": [ + "tables.read", + "collections.read" + ], "platforms": [ "server" ], @@ -35362,15 +36743,18 @@ "x-appwrite": { "method": "deleteColumn", "group": "columns", - "weight": 386, + "weight": 387, "cookies": false, "type": "", - "demo": "tables-d-b\/delete-column.md", + "demo": "tablesdb\/delete-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/delete-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "tables.write", + "scope": [ + "tables.write", + "collections.write" + ], "platforms": [ "server" ], @@ -35438,15 +36822,18 @@ "x-appwrite": { "method": "updateRelationshipColumn", "group": "columns", - "weight": 403, + "weight": 410, "cookies": false, "type": "", - "demo": "tables-d-b\/update-relationship-column.md", + "demo": "tablesdb\/update-relationship-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/update-relationship-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "tables.write", + "scope": [ + "tables.write", + "collections.write" + ], "platforms": [ "server" ], @@ -35540,15 +36927,18 @@ "x-appwrite": { "method": "listIndexes", "group": "indexes", - "weight": 411, + "weight": 418, "cookies": false, "type": "", - "demo": "tables-d-b\/list-indexes.md", + "demo": "tablesdb\/list-indexes.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/list-indexes.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "tables.read", + "scope": [ + "tables.read", + "collections.read" + ], "platforms": [ "server" ], @@ -35619,15 +37009,18 @@ "x-appwrite": { "method": "createIndex", "group": "indexes", - "weight": 408, + "weight": 415, "cookies": false, "type": "", - "demo": "tables-d-b\/create-index.md", + "demo": "tablesdb\/create-index.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/create-index.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "tables.write", + "scope": [ + "tables.write", + "collections.write" + ], "platforms": [ "server" ], @@ -35679,7 +37072,8 @@ "enum": [ "key", "fulltext", - "unique" + "unique", + "spatial" ], "x-enum-name": "IndexType", "x-enum-keys": [] @@ -35746,15 +37140,18 @@ "x-appwrite": { "method": "getIndex", "group": "indexes", - "weight": 409, + "weight": 416, "cookies": false, "type": "", - "demo": "tables-d-b\/get-index.md", + "demo": "tablesdb\/get-index.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/get-index.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "tables.read", + "scope": [ + "tables.read", + "collections.read" + ], "platforms": [ "server" ], @@ -35815,15 +37212,18 @@ "x-appwrite": { "method": "deleteIndex", "group": "indexes", - "weight": 410, + "weight": 417, "cookies": false, "type": "", - "demo": "tables-d-b\/delete-index.md", + "demo": "tablesdb\/delete-index.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/delete-index.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "tables.write", + "scope": [ + "tables.write", + "collections.write" + ], "platforms": [ "server" ], @@ -35889,15 +37289,18 @@ "x-appwrite": { "method": "listTableLogs", "group": "tables", - "weight": 383, + "weight": 384, "cookies": false, "type": "", - "demo": "tables-d-b\/list-table-logs.md", + "demo": "tablesdb\/list-table-logs.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/get-table-logs.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "tables.read", + "scope": [ + "tables.read", + "collections.read" + ], "platforms": [ "console" ], @@ -35967,15 +37370,18 @@ "x-appwrite": { "method": "listRows", "group": "rows", - "weight": 420, + "weight": 427, "cookies": false, "type": "", - "demo": "tables-d-b\/list-rows.md", + "demo": "tablesdb\/list-rows.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/list-rows.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "rows.read", + "scope": [ + "rows.read", + "documents.read" + ], "platforms": [ "client", "server" @@ -36048,15 +37454,18 @@ "x-appwrite": { "method": "createRow", "group": "rows", - "weight": 412, + "weight": 419, "cookies": false, "type": "", - "demo": "tables-d-b\/create-row.md", + "demo": "tablesdb\/create-row.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/create-row.md", "rate-limit": 120, "rate-time": 60, "rate-key": "ip:{ip},method:{method},url:{url},userId:{userId}", - "scope": "rows.write", + "scope": [ + "rows.write", + "documents.write" + ], "platforms": [ "client", "server" @@ -36090,7 +37499,7 @@ } ], "description": "Create a new Row. Before using this route, you should create a new table resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/tablesdb#tablesDBCreateTable) API or directly from your database console.", - "demo": "tables-d-b\/create-row.md" + "demo": "tablesdb\/create-row.md" }, { "name": "createRows", @@ -36116,7 +37525,7 @@ } ], "description": "Create new Rows. Before using this route, you should create a new table resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/tablesdb#tablesDBCreateTable) API or directly from your database console.", - "demo": "tables-d-b\/create-rows.md" + "demo": "tablesdb\/create-rows.md" } ], "auth": { @@ -36163,7 +37572,7 @@ "type": "object", "description": "Row data as JSON object.", "default": [], - "x-example": "{}" + "x-example": "{\"username\":\"walter.obrien\",\"email\":\"walter.obrien@example.com\",\"fullName\":\"Walter O'Brien\",\"age\":30,\"isAdmin\":false}" }, "permissions": { "type": "array", @@ -36176,7 +37585,7 @@ }, "rows": { "type": "array", - "description": "Array of documents data as JSON objects.", + "description": "Array of rows data as JSON objects.", "default": [], "x-example": null, "items": { @@ -36189,7 +37598,7 @@ ] }, "put": { - "summary": "Create or update rows", + "summary": "Upsert rows", "operationId": "tablesDBUpsertRows", "consumes": [ "application\/json" @@ -36213,15 +37622,18 @@ "x-appwrite": { "method": "upsertRows", "group": "rows", - "weight": 417, + "weight": 424, "cookies": false, "type": "", - "demo": "tables-d-b\/upsert-rows.md", + "demo": "tablesdb\/upsert-rows.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/upsert-rows.md", "rate-limit": 120, "rate-time": 60, "rate-key": "ip:{ip},method:{method},url:{url},userId:{userId}", - "scope": "rows.write", + "scope": [ + "rows.write", + "documents.write" + ], "platforms": [ "console", "server" @@ -36252,7 +37664,7 @@ } ], "description": "Create or update Rows. Before using this route, you should create a new table resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/tablesdb#tablesDBCreateTable) API or directly from your database console.\n", - "demo": "tables-d-b\/upsert-rows.md" + "demo": "tablesdb\/upsert-rows.md" } ], "auth": { @@ -36330,15 +37742,18 @@ "x-appwrite": { "method": "updateRows", "group": "rows", - "weight": 415, + "weight": 422, "cookies": false, "type": "", - "demo": "tables-d-b\/update-rows.md", + "demo": "tablesdb\/update-rows.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/update-rows.md", "rate-limit": 120, "rate-time": 60, "rate-key": "ip:{ip},method:{method},url:{url},userId:{userId}", - "scope": "rows.write", + "scope": [ + "rows.write", + "documents.write" + ], "platforms": [ "console", "server" @@ -36422,15 +37837,18 @@ "x-appwrite": { "method": "deleteRows", "group": "rows", - "weight": 419, + "weight": 426, "cookies": false, "type": "", - "demo": "tables-d-b\/delete-rows.md", + "demo": "tablesdb\/delete-rows.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/delete-rows.md", "rate-limit": 60, "rate-time": 60, "rate-key": "ip:{ip},method:{method},url:{url},userId:{userId}", - "scope": "rows.write", + "scope": [ + "rows.write", + "documents.write" + ], "platforms": [ "console", "server" @@ -36508,15 +37926,18 @@ "x-appwrite": { "method": "getRow", "group": "rows", - "weight": 413, + "weight": 420, "cookies": false, "type": "", - "demo": "tables-d-b\/get-row.md", + "demo": "tablesdb\/get-row.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/get-row.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "rows.read", + "scope": [ + "rows.read", + "documents.read" + ], "platforms": [ "client", "server" @@ -36573,7 +37994,7 @@ ] }, "put": { - "summary": "Create or update a row", + "summary": "Upsert a row", "operationId": "tablesDBUpsertRow", "consumes": [ "application\/json" @@ -36597,15 +38018,18 @@ "x-appwrite": { "method": "upsertRow", "group": "rows", - "weight": 416, + "weight": 423, "cookies": false, "type": "", - "demo": "tables-d-b\/upsert-row.md", + "demo": "tablesdb\/upsert-row.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/upsert-row.md", "rate-limit": 120, "rate-time": 60, "rate-key": "ip:{ip},method:{method},url:{url},userId:{userId}", - "scope": "rows.write", + "scope": [ + "rows.write", + "documents.write" + ], "platforms": [ "client", "server" @@ -36638,7 +38062,7 @@ } ], "description": "Create or update a Row. Before using this route, you should create a new table resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/tablesdb#tablesDBCreateTable) API or directly from your database console.", - "demo": "tables-d-b\/upsert-row.md" + "demo": "tablesdb\/upsert-row.md" } ], "auth": { @@ -36728,15 +38152,18 @@ "x-appwrite": { "method": "updateRow", "group": "rows", - "weight": 414, + "weight": 421, "cookies": false, "type": "", - "demo": "tables-d-b\/update-row.md", + "demo": "tablesdb\/update-row.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/update-row.md", "rate-limit": 120, "rate-time": 60, "rate-key": "ip:{ip},method:{method},url:{url},userId:{userId}", - "scope": "rows.write", + "scope": [ + "rows.write", + "documents.write" + ], "platforms": [ "client", "server" @@ -36824,15 +38251,18 @@ "x-appwrite": { "method": "deleteRow", "group": "rows", - "weight": 418, + "weight": 425, "cookies": false, "type": "", - "demo": "tables-d-b\/delete-row.md", + "demo": "tablesdb\/delete-row.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/delete-row.md", "rate-limit": 60, "rate-time": 60, "rate-key": "ip:{ip},method:{method},url:{url},userId:{userId}", - "scope": "rows.write", + "scope": [ + "rows.write", + "documents.write" + ], "platforms": [ "client", "server" @@ -36901,15 +38331,18 @@ "x-appwrite": { "method": "listRowLogs", "group": "logs", - "weight": 421, + "weight": 428, "cookies": false, "type": "", - "demo": "tables-d-b\/list-row-logs.md", + "demo": "tablesdb\/list-row-logs.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/get-row-logs.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "rows.read", + "scope": [ + "rows.read", + "documents.read" + ], "platforms": [ "console" ], @@ -36989,15 +38422,18 @@ "x-appwrite": { "method": "decrementRowColumn", "group": "rows", - "weight": 423, + "weight": 430, "cookies": false, "type": "", - "demo": "tables-d-b\/decrement-row-column.md", + "demo": "tablesdb\/decrement-row-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/decrement-row-column.md", "rate-limit": 120, "rate-time": 60, "rate-key": "ip:{ip},method:{method},url:{url},userId:{userId}", - "scope": "rows.write", + "scope": [ + "rows.write", + "documents.write" + ], "platforms": [ "client", "server", @@ -37097,15 +38533,18 @@ "x-appwrite": { "method": "incrementRowColumn", "group": "rows", - "weight": 422, + "weight": 429, "cookies": false, "type": "", - "demo": "tables-d-b\/increment-row-column.md", + "demo": "tablesdb\/increment-row-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/increment-row-column.md", "rate-limit": 120, "rate-time": 60, "rate-key": "ip:{ip},method:{method},url:{url},userId:{userId}", - "scope": "rows.write", + "scope": [ + "rows.write", + "documents.write" + ], "platforms": [ "client", "server", @@ -37203,15 +38642,18 @@ "x-appwrite": { "method": "getTableUsage", "group": null, - "weight": 384, + "weight": 385, "cookies": false, "type": "", - "demo": "tables-d-b\/get-table-usage.md", + "demo": "tablesdb\/get-table-usage.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/get-table-usage.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "tables.read", + "scope": [ + "tables.read", + "collections.read" + ], "platforms": [ "console" ], @@ -37289,15 +38731,18 @@ "x-appwrite": { "method": "getUsage", "group": null, - "weight": 376, + "weight": 377, "cookies": false, "type": "", - "demo": "tables-d-b\/get-usage.md", + "demo": "tablesdb\/get-usage.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/get-database-usage.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "tables.read", + "scope": [ + "tables.read", + "collections.read" + ], "platforms": [ "console" ], @@ -37324,7 +38769,7 @@ } ], "description": "Get usage metrics and statistics for a database. You can view the total number of tables, rows, and storage usage. The response includes both current totals and historical data over time. Use the optional range parameter to specify the time window for historical data: 24h (last 24 hours), 30d (last 30 days), or 90d (last 90 days). If not specified, range defaults to 30 days.", - "demo": "tables-d-b\/get-usage.md" + "demo": "tablesdb\/get-usage.md" } ], "auth": { @@ -37392,7 +38837,7 @@ "x-appwrite": { "method": "list", "group": "teams", - "weight": 172, + "weight": 171, "cookies": false, "type": "", "demo": "teams\/list.md", @@ -37466,7 +38911,7 @@ "x-appwrite": { "method": "create", "group": "teams", - "weight": 171, + "weight": 170, "cookies": false, "type": "", "demo": "teams\/create.md", @@ -37555,7 +39000,7 @@ "x-appwrite": { "method": "get", "group": "teams", - "weight": 173, + "weight": 172, "cookies": false, "type": "", "demo": "teams\/get.md", @@ -37616,7 +39061,7 @@ "x-appwrite": { "method": "updateName", "group": "teams", - "weight": 175, + "weight": 174, "cookies": false, "type": "", "demo": "teams\/update-name.md", @@ -37690,7 +39135,7 @@ "x-appwrite": { "method": "delete", "group": "teams", - "weight": 177, + "weight": 176, "cookies": false, "type": "", "demo": "teams\/delete.md", @@ -37751,7 +39196,7 @@ "x-appwrite": { "method": "listLogs", "group": "logs", - "weight": 184, + "weight": 183, "cookies": false, "type": "", "demo": "teams\/list-logs.md", @@ -37821,7 +39266,7 @@ "x-appwrite": { "method": "listMemberships", "group": "memberships", - "weight": 179, + "weight": 178, "cookies": false, "type": "", "demo": "teams\/list-memberships.md", @@ -37903,7 +39348,7 @@ "x-appwrite": { "method": "createMembership", "group": "memberships", - "weight": 178, + "weight": 177, "cookies": false, "type": "", "demo": "teams\/create-membership.md", @@ -38015,7 +39460,7 @@ "x-appwrite": { "method": "getMembership", "group": "memberships", - "weight": 180, + "weight": 179, "cookies": false, "type": "", "demo": "teams\/get-membership.md", @@ -38084,7 +39529,7 @@ "x-appwrite": { "method": "updateMembership", "group": "memberships", - "weight": 181, + "weight": 180, "cookies": false, "type": "", "demo": "teams\/update-membership.md", @@ -38169,7 +39614,7 @@ "x-appwrite": { "method": "deleteMembership", "group": "memberships", - "weight": 183, + "weight": 182, "cookies": false, "type": "", "demo": "teams\/delete-membership.md", @@ -38240,7 +39685,7 @@ "x-appwrite": { "method": "updateMembershipStatus", "group": "memberships", - "weight": 182, + "weight": 181, "cookies": false, "type": "", "demo": "teams\/update-membership-status.md", @@ -38333,7 +39778,7 @@ "x-appwrite": { "method": "getPrefs", "group": "teams", - "weight": 174, + "weight": 173, "cookies": false, "type": "", "demo": "teams\/get-prefs.md", @@ -38393,7 +39838,7 @@ "x-appwrite": { "method": "updatePrefs", "group": "teams", - "weight": 176, + "weight": 175, "cookies": false, "type": "", "demo": "teams\/update-prefs.md", @@ -38471,7 +39916,7 @@ "x-appwrite": { "method": "list", "group": "files", - "weight": 495, + "weight": 507, "cookies": false, "type": "", "demo": "tokens\/list.md", @@ -38551,7 +39996,7 @@ "x-appwrite": { "method": "createFileToken", "group": "files", - "weight": 493, + "weight": 505, "cookies": false, "type": "", "demo": "tokens\/create-file-token.md", @@ -38635,7 +40080,7 @@ "x-appwrite": { "method": "get", "group": "tokens", - "weight": 494, + "weight": 506, "cookies": false, "type": "", "demo": "tokens\/get.md", @@ -38695,7 +40140,7 @@ "x-appwrite": { "method": "update", "group": "tokens", - "weight": 496, + "weight": 508, "cookies": false, "type": "", "demo": "tokens\/update.md", @@ -38766,7 +40211,7 @@ "x-appwrite": { "method": "delete", "group": "tokens", - "weight": 497, + "weight": 509, "cookies": false, "type": "", "demo": "tokens\/delete.md", @@ -38826,7 +40271,7 @@ "x-appwrite": { "method": "list", "group": "users", - "weight": 194, + "weight": 193, "cookies": false, "type": "", "demo": "users\/list.md", @@ -38898,7 +40343,7 @@ "x-appwrite": { "method": "create", "group": "users", - "weight": 185, + "weight": 184, "cookies": false, "type": "", "demo": "users\/create.md", @@ -38993,10 +40438,10 @@ "x-appwrite": { "method": "createArgon2User", "group": "users", - "weight": 188, + "weight": 187, "cookies": false, "type": "", - "demo": "users\/create-argon2user.md", + "demo": "users\/create-argon-2-user.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/users\/create-argon2-user.md", "rate-limit": 0, "rate-time": 3600, @@ -39084,7 +40529,7 @@ "x-appwrite": { "method": "createBcryptUser", "group": "users", - "weight": 186, + "weight": 185, "cookies": false, "type": "", "demo": "users\/create-bcrypt-user.md", @@ -39173,7 +40618,7 @@ "x-appwrite": { "method": "listIdentities", "group": "identities", - "weight": 202, + "weight": 201, "cookies": false, "type": "", "demo": "users\/list-identities.md", @@ -39242,7 +40687,7 @@ "x-appwrite": { "method": "deleteIdentity", "group": "identities", - "weight": 225, + "weight": 224, "cookies": false, "type": "", "demo": "users\/delete-identity.md", @@ -39303,10 +40748,10 @@ "x-appwrite": { "method": "createMD5User", "group": "users", - "weight": 187, + "weight": 186, "cookies": false, "type": "", - "demo": "users\/create-m-d5user.md", + "demo": "users\/create-md-5-user.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/users\/create-md5-user.md", "rate-limit": 0, "rate-time": 3600, @@ -39394,10 +40839,10 @@ "x-appwrite": { "method": "createPHPassUser", "group": "users", - "weight": 190, + "weight": 189, "cookies": false, "type": "", - "demo": "users\/create-p-h-pass-user.md", + "demo": "users\/create-ph-pass-user.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/users\/create-phpass-user.md", "rate-limit": 0, "rate-time": 3600, @@ -39485,7 +40930,7 @@ "x-appwrite": { "method": "createScryptUser", "group": "users", - "weight": 191, + "weight": 190, "cookies": false, "type": "", "demo": "users\/create-scrypt-user.md", @@ -39611,7 +41056,7 @@ "x-appwrite": { "method": "createScryptModifiedUser", "group": "users", - "weight": 192, + "weight": 191, "cookies": false, "type": "", "demo": "users\/create-scrypt-modified-user.md", @@ -39723,10 +41168,10 @@ "x-appwrite": { "method": "createSHAUser", "group": "users", - "weight": 189, + "weight": 188, "cookies": false, "type": "", - "demo": "users\/create-s-h-a-user.md", + "demo": "users\/create-sha-user.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/users\/create-sha-user.md", "rate-limit": 0, "rate-time": 3600, @@ -39833,7 +41278,7 @@ "x-appwrite": { "method": "getUsage", "group": null, - "weight": 227, + "weight": 226, "cookies": false, "type": "", "demo": "users\/get-usage.md", @@ -39903,7 +41348,7 @@ "x-appwrite": { "method": "get", "group": "users", - "weight": 195, + "weight": 194, "cookies": false, "type": "", "demo": "users\/get.md", @@ -39957,7 +41402,7 @@ "x-appwrite": { "method": "delete", "group": "users", - "weight": 223, + "weight": 222, "cookies": false, "type": "", "demo": "users\/delete.md", @@ -40018,7 +41463,7 @@ "x-appwrite": { "method": "updateEmail", "group": "users", - "weight": 208, + "weight": 207, "cookies": false, "type": "", "demo": "users\/update-email.md", @@ -40097,10 +41542,10 @@ "x-appwrite": { "method": "createJWT", "group": "sessions", - "weight": 226, + "weight": 225, "cookies": false, "type": "", - "demo": "users\/create-j-w-t.md", + "demo": "users\/create-jwt.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/users\/create-user-jwt.md", "rate-limit": 0, "rate-time": 3600, @@ -40179,7 +41624,7 @@ "x-appwrite": { "method": "updateLabels", "group": "users", - "weight": 204, + "weight": 203, "cookies": false, "type": "", "demo": "users\/update-labels.md", @@ -40259,7 +41704,7 @@ "x-appwrite": { "method": "listLogs", "group": "logs", - "weight": 200, + "weight": 199, "cookies": false, "type": "", "demo": "users\/list-logs.md", @@ -40330,7 +41775,7 @@ "x-appwrite": { "method": "listMemberships", "group": "memberships", - "weight": 199, + "weight": 198, "cookies": false, "type": "", "demo": "users\/list-memberships.md", @@ -40412,7 +41857,7 @@ "x-appwrite": { "method": "updateMfa", "group": "users", - "weight": 213, + "weight": 212, "cookies": false, "type": "", "demo": "users\/update-mfa.md", @@ -40480,7 +41925,7 @@ } ], "description": "Enable or disable MFA on a user account.", - "demo": "users\/update-m-f-a.md" + "demo": "users\/update-mfa.md" } ], "auth": { @@ -40544,7 +41989,7 @@ "x-appwrite": { "method": "deleteMfaAuthenticator", "group": "mfa", - "weight": 218, + "weight": 217, "cookies": false, "type": "", "demo": "users\/delete-mfa-authenticator.md", @@ -40610,7 +42055,7 @@ } ], "description": "Delete an authenticator app.", - "demo": "users\/delete-m-f-a-authenticator.md" + "demo": "users\/delete-mfa-authenticator.md" } ], "auth": { @@ -40672,7 +42117,7 @@ "x-appwrite": { "method": "listMfaFactors", "group": "mfa", - "weight": 214, + "weight": 213, "cookies": false, "type": "", "demo": "users\/list-mfa-factors.md", @@ -40736,7 +42181,7 @@ } ], "description": "List the factors available on the account to be used as a MFA challange.", - "demo": "users\/list-m-f-a-factors.md" + "demo": "users\/list-mfa-factors.md" } ], "auth": { @@ -40785,7 +42230,7 @@ "x-appwrite": { "method": "getMfaRecoveryCodes", "group": "mfa", - "weight": 215, + "weight": 214, "cookies": false, "type": "", "demo": "users\/get-mfa-recovery-codes.md", @@ -40849,7 +42294,7 @@ } ], "description": "Get recovery codes that can be used as backup for MFA flow by User ID. Before getting codes, they must be generated using [createMfaRecoveryCodes](\/docs\/references\/cloud\/client-web\/account#createMfaRecoveryCodes) method.", - "demo": "users\/get-m-f-a-recovery-codes.md" + "demo": "users\/get-mfa-recovery-codes.md" } ], "auth": { @@ -40898,7 +42343,7 @@ "x-appwrite": { "method": "updateMfaRecoveryCodes", "group": "mfa", - "weight": 217, + "weight": 216, "cookies": false, "type": "", "demo": "users\/update-mfa-recovery-codes.md", @@ -40962,7 +42407,7 @@ } ], "description": "Regenerate recovery codes that can be used as backup for MFA flow by User ID. Before regenerating codes, they must be first generated using [createMfaRecoveryCodes](\/docs\/references\/cloud\/client-web\/account#createMfaRecoveryCodes) method.", - "demo": "users\/update-m-f-a-recovery-codes.md" + "demo": "users\/update-mfa-recovery-codes.md" } ], "auth": { @@ -41011,7 +42456,7 @@ "x-appwrite": { "method": "createMfaRecoveryCodes", "group": "mfa", - "weight": 216, + "weight": 215, "cookies": false, "type": "", "demo": "users\/create-mfa-recovery-codes.md", @@ -41075,7 +42520,7 @@ } ], "description": "Generate recovery codes used as backup for MFA flow for User ID. Recovery codes can be used as a MFA verification type in [createMfaChallenge](\/docs\/references\/cloud\/client-web\/account#createMfaChallenge) method by client SDK.", - "demo": "users\/create-m-f-a-recovery-codes.md" + "demo": "users\/create-mfa-recovery-codes.md" } ], "auth": { @@ -41126,7 +42571,7 @@ "x-appwrite": { "method": "updateName", "group": "users", - "weight": 206, + "weight": 205, "cookies": false, "type": "", "demo": "users\/update-name.md", @@ -41205,7 +42650,7 @@ "x-appwrite": { "method": "updatePassword", "group": "users", - "weight": 207, + "weight": 206, "cookies": false, "type": "", "demo": "users\/update-password.md", @@ -41284,7 +42729,7 @@ "x-appwrite": { "method": "updatePhone", "group": "users", - "weight": 209, + "weight": 208, "cookies": false, "type": "", "demo": "users\/update-phone.md", @@ -41361,7 +42806,7 @@ "x-appwrite": { "method": "getPrefs", "group": "users", - "weight": 196, + "weight": 195, "cookies": false, "type": "", "demo": "users\/get-prefs.md", @@ -41420,7 +42865,7 @@ "x-appwrite": { "method": "updatePrefs", "group": "users", - "weight": 211, + "weight": 210, "cookies": false, "type": "", "demo": "users\/update-prefs.md", @@ -41497,7 +42942,7 @@ "x-appwrite": { "method": "listSessions", "group": "sessions", - "weight": 198, + "weight": 197, "cookies": false, "type": "", "demo": "users\/list-sessions.md", @@ -41556,7 +43001,7 @@ "x-appwrite": { "method": "createSession", "group": "sessions", - "weight": 219, + "weight": 218, "cookies": false, "type": "", "demo": "users\/create-session.md", @@ -41610,7 +43055,7 @@ "x-appwrite": { "method": "deleteSessions", "group": "sessions", - "weight": 222, + "weight": 221, "cookies": false, "type": "", "demo": "users\/delete-sessions.md", @@ -41666,7 +43111,7 @@ "x-appwrite": { "method": "deleteSession", "group": "sessions", - "weight": 221, + "weight": 220, "cookies": false, "type": "", "demo": "users\/delete-session.md", @@ -41735,7 +43180,7 @@ "x-appwrite": { "method": "updateStatus", "group": "users", - "weight": 203, + "weight": 202, "cookies": false, "type": "", "demo": "users\/update-status.md", @@ -41812,7 +43257,7 @@ "x-appwrite": { "method": "listTargets", "group": "targets", - "weight": 201, + "weight": 200, "cookies": false, "type": "", "demo": "users\/list-targets.md", @@ -41884,7 +43329,7 @@ "x-appwrite": { "method": "createTarget", "group": "targets", - "weight": 193, + "weight": 192, "cookies": false, "type": "", "demo": "users\/create-target.md", @@ -41995,7 +43440,7 @@ "x-appwrite": { "method": "getTarget", "group": "targets", - "weight": 197, + "weight": 196, "cookies": false, "type": "", "demo": "users\/get-target.md", @@ -42063,7 +43508,7 @@ "x-appwrite": { "method": "updateTarget", "group": "targets", - "weight": 212, + "weight": 211, "cookies": false, "type": "", "demo": "users\/update-target.md", @@ -42153,7 +43598,7 @@ "x-appwrite": { "method": "deleteTarget", "group": "targets", - "weight": 224, + "weight": 223, "cookies": false, "type": "", "demo": "users\/delete-target.md", @@ -42223,7 +43668,7 @@ "x-appwrite": { "method": "createToken", "group": "sessions", - "weight": 220, + "weight": 219, "cookies": false, "type": "", "demo": "users\/create-token.md", @@ -42305,7 +43750,7 @@ "x-appwrite": { "method": "updateEmailVerification", "group": "users", - "weight": 210, + "weight": 209, "cookies": false, "type": "", "demo": "users\/update-email-verification.md", @@ -42384,7 +43829,7 @@ "x-appwrite": { "method": "updatePhoneVerification", "group": "users", - "weight": 205, + "weight": 204, "cookies": false, "type": "", "demo": "users\/update-phone-verification.md", @@ -42463,7 +43908,7 @@ "x-appwrite": { "method": "createRepositoryDetection", "group": "repositories", - "weight": 231, + "weight": 230, "cookies": false, "type": "", "demo": "vcs\/create-repository-detection.md", @@ -42558,7 +44003,7 @@ "x-appwrite": { "method": "listRepositories", "group": "repositories", - "weight": 232, + "weight": 231, "cookies": false, "type": "", "demo": "vcs\/list-repositories.md", @@ -42639,7 +44084,7 @@ "x-appwrite": { "method": "createRepository", "group": "repositories", - "weight": 233, + "weight": 232, "cookies": false, "type": "", "demo": "vcs\/create-repository.md", @@ -42722,7 +44167,7 @@ "x-appwrite": { "method": "getRepository", "group": "repositories", - "weight": 234, + "weight": 233, "cookies": false, "type": "", "demo": "vcs\/get-repository.md", @@ -42788,7 +44233,7 @@ "x-appwrite": { "method": "listRepositoryBranches", "group": "repositories", - "weight": 235, + "weight": 234, "cookies": false, "type": "", "demo": "vcs\/list-repository-branches.md", @@ -42854,7 +44299,7 @@ "x-appwrite": { "method": "getRepositoryContents", "group": "repositories", - "weight": 230, + "weight": 229, "cookies": false, "type": "", "demo": "vcs\/get-repository-contents.md", @@ -42937,7 +44382,7 @@ "x-appwrite": { "method": "updateExternalDeployments", "group": "repositories", - "weight": 240, + "weight": 239, "cookies": false, "type": "", "demo": "vcs\/update-external-deployments.md", @@ -43021,7 +44466,7 @@ "x-appwrite": { "method": "listInstallations", "group": "installations", - "weight": 237, + "weight": 236, "cookies": false, "type": "", "demo": "vcs\/list-installations.md", @@ -43092,7 +44537,7 @@ "x-appwrite": { "method": "getInstallation", "group": "installations", - "weight": 238, + "weight": 237, "cookies": false, "type": "", "demo": "vcs\/get-installation.md", @@ -43145,7 +44590,7 @@ "x-appwrite": { "method": "deleteInstallation", "group": "installations", - "weight": 239, + "weight": 238, "cookies": false, "type": "", "demo": "vcs\/delete-installation.md", @@ -44815,6 +46260,15 @@ { "$ref": "#\/definitions\/attributeRelationship" }, + { + "$ref": "#\/definitions\/attributePoint" + }, + { + "$ref": "#\/definitions\/attributeLine" + }, + { + "$ref": "#\/definitions\/attributePolygon" + }, { "$ref": "#\/definitions\/attributeString" } @@ -44901,6 +46355,15 @@ { "$ref": "#\/definitions\/attributeRelationship" }, + { + "$ref": "#\/definitions\/attributePoint" + }, + { + "$ref": "#\/definitions\/attributeLine" + }, + { + "$ref": "#\/definitions\/attributePolygon" + }, { "$ref": "#\/definitions\/attributeString" } @@ -45777,6 +47240,291 @@ "side": "parent|child" } }, + "attributePoint": { + "description": "AttributePoint", + "type": "object", + "properties": { + "key": { + "type": "string", + "description": "Attribute Key.", + "x-example": "fullName" + }, + "type": { + "type": "string", + "description": "Attribute type.", + "x-example": "string" + }, + "status": { + "type": "string", + "description": "Attribute status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`", + "x-example": "available" + }, + "error": { + "type": "string", + "description": "Error message. Displays error generated on failure of creating or deleting an attribute.", + "x-example": "string" + }, + "required": { + "type": "boolean", + "description": "Is attribute required?", + "x-example": true + }, + "array": { + "type": "boolean", + "description": "Is attribute an array?", + "x-example": false, + "x-nullable": true + }, + "$createdAt": { + "type": "string", + "description": "Attribute creation date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "$updatedAt": { + "type": "string", + "description": "Attribute update date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "default": { + "type": "array", + "description": "Default value for attribute when not provided. Cannot be set when attribute is required.", + "x-example": [ + 0, + 0 + ], + "x-nullable": true + } + }, + "required": [ + "key", + "type", + "status", + "error", + "required", + "$createdAt", + "$updatedAt" + ], + "example": { + "key": "fullName", + "type": "string", + "status": "available", + "error": "string", + "required": true, + "array": false, + "$createdAt": "2020-10-15T06:38:00.000+00:00", + "$updatedAt": "2020-10-15T06:38:00.000+00:00", + "default": [ + 0, + 0 + ] + } + }, + "attributeLine": { + "description": "AttributeLine", + "type": "object", + "properties": { + "key": { + "type": "string", + "description": "Attribute Key.", + "x-example": "fullName" + }, + "type": { + "type": "string", + "description": "Attribute type.", + "x-example": "string" + }, + "status": { + "type": "string", + "description": "Attribute status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`", + "x-example": "available" + }, + "error": { + "type": "string", + "description": "Error message. Displays error generated on failure of creating or deleting an attribute.", + "x-example": "string" + }, + "required": { + "type": "boolean", + "description": "Is attribute required?", + "x-example": true + }, + "array": { + "type": "boolean", + "description": "Is attribute an array?", + "x-example": false, + "x-nullable": true + }, + "$createdAt": { + "type": "string", + "description": "Attribute creation date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "$updatedAt": { + "type": "string", + "description": "Attribute update date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "default": { + "type": "array", + "description": "Default value for attribute when not provided. Cannot be set when attribute is required.", + "x-example": [ + [ + 0, + 0 + ], + [ + 1, + 1 + ] + ], + "x-nullable": true + } + }, + "required": [ + "key", + "type", + "status", + "error", + "required", + "$createdAt", + "$updatedAt" + ], + "example": { + "key": "fullName", + "type": "string", + "status": "available", + "error": "string", + "required": true, + "array": false, + "$createdAt": "2020-10-15T06:38:00.000+00:00", + "$updatedAt": "2020-10-15T06:38:00.000+00:00", + "default": [ + [ + 0, + 0 + ], + [ + 1, + 1 + ] + ] + } + }, + "attributePolygon": { + "description": "AttributePolygon", + "type": "object", + "properties": { + "key": { + "type": "string", + "description": "Attribute Key.", + "x-example": "fullName" + }, + "type": { + "type": "string", + "description": "Attribute type.", + "x-example": "string" + }, + "status": { + "type": "string", + "description": "Attribute status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`", + "x-example": "available" + }, + "error": { + "type": "string", + "description": "Error message. Displays error generated on failure of creating or deleting an attribute.", + "x-example": "string" + }, + "required": { + "type": "boolean", + "description": "Is attribute required?", + "x-example": true + }, + "array": { + "type": "boolean", + "description": "Is attribute an array?", + "x-example": false, + "x-nullable": true + }, + "$createdAt": { + "type": "string", + "description": "Attribute creation date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "$updatedAt": { + "type": "string", + "description": "Attribute update date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "default": { + "type": "array", + "description": "Default value for attribute when not provided. Cannot be set when attribute is required.", + "x-example": [ + [ + [ + 0, + 0 + ], + [ + 0, + 10 + ] + ], + [ + [ + 10, + 10 + ], + [ + 0, + 0 + ] + ] + ], + "x-nullable": true + } + }, + "required": [ + "key", + "type", + "status", + "error", + "required", + "$createdAt", + "$updatedAt" + ], + "example": { + "key": "fullName", + "type": "string", + "status": "available", + "error": "string", + "required": true, + "array": false, + "$createdAt": "2020-10-15T06:38:00.000+00:00", + "$updatedAt": "2020-10-15T06:38:00.000+00:00", + "default": [ + [ + [ + 0, + 0 + ], + [ + 0, + 10 + ] + ], + [ + [ + 10, + 10 + ], + [ + 0, + 0 + ] + ] + ] + } + }, "table": { "description": "Table", "type": "object", @@ -45858,6 +47606,15 @@ { "$ref": "#\/definitions\/columnRelationship" }, + { + "$ref": "#\/definitions\/columnPoint" + }, + { + "$ref": "#\/definitions\/columnLine" + }, + { + "$ref": "#\/definitions\/columnPolygon" + }, { "$ref": "#\/definitions\/columnString" } @@ -45944,6 +47701,15 @@ { "$ref": "#\/definitions\/columnRelationship" }, + { + "$ref": "#\/definitions\/columnPoint" + }, + { + "$ref": "#\/definitions\/columnLine" + }, + { + "$ref": "#\/definitions\/columnPolygon" + }, { "$ref": "#\/definitions\/columnString" } @@ -46820,6 +48586,291 @@ "side": "parent|child" } }, + "columnPoint": { + "description": "ColumnPoint", + "type": "object", + "properties": { + "key": { + "type": "string", + "description": "Column Key.", + "x-example": "fullName" + }, + "type": { + "type": "string", + "description": "Column type.", + "x-example": "string" + }, + "status": { + "type": "string", + "description": "Column status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`", + "x-example": "available" + }, + "error": { + "type": "string", + "description": "Error message. Displays error generated on failure of creating or deleting an column.", + "x-example": "string" + }, + "required": { + "type": "boolean", + "description": "Is column required?", + "x-example": true + }, + "array": { + "type": "boolean", + "description": "Is column an array?", + "x-example": false, + "x-nullable": true + }, + "$createdAt": { + "type": "string", + "description": "Column creation date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "$updatedAt": { + "type": "string", + "description": "Column update date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "default": { + "type": "array", + "description": "Default value for column when not provided. Cannot be set when column is required.", + "x-example": [ + 0, + 0 + ], + "x-nullable": true + } + }, + "required": [ + "key", + "type", + "status", + "error", + "required", + "$createdAt", + "$updatedAt" + ], + "example": { + "key": "fullName", + "type": "string", + "status": "available", + "error": "string", + "required": true, + "array": false, + "$createdAt": "2020-10-15T06:38:00.000+00:00", + "$updatedAt": "2020-10-15T06:38:00.000+00:00", + "default": [ + 0, + 0 + ] + } + }, + "columnLine": { + "description": "ColumnLine", + "type": "object", + "properties": { + "key": { + "type": "string", + "description": "Column Key.", + "x-example": "fullName" + }, + "type": { + "type": "string", + "description": "Column type.", + "x-example": "string" + }, + "status": { + "type": "string", + "description": "Column status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`", + "x-example": "available" + }, + "error": { + "type": "string", + "description": "Error message. Displays error generated on failure of creating or deleting an column.", + "x-example": "string" + }, + "required": { + "type": "boolean", + "description": "Is column required?", + "x-example": true + }, + "array": { + "type": "boolean", + "description": "Is column an array?", + "x-example": false, + "x-nullable": true + }, + "$createdAt": { + "type": "string", + "description": "Column creation date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "$updatedAt": { + "type": "string", + "description": "Column update date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "default": { + "type": "array", + "description": "Default value for column when not provided. Cannot be set when column is required.", + "x-example": [ + [ + 0, + 0 + ], + [ + 1, + 1 + ] + ], + "x-nullable": true + } + }, + "required": [ + "key", + "type", + "status", + "error", + "required", + "$createdAt", + "$updatedAt" + ], + "example": { + "key": "fullName", + "type": "string", + "status": "available", + "error": "string", + "required": true, + "array": false, + "$createdAt": "2020-10-15T06:38:00.000+00:00", + "$updatedAt": "2020-10-15T06:38:00.000+00:00", + "default": [ + [ + 0, + 0 + ], + [ + 1, + 1 + ] + ] + } + }, + "columnPolygon": { + "description": "ColumnPolygon", + "type": "object", + "properties": { + "key": { + "type": "string", + "description": "Column Key.", + "x-example": "fullName" + }, + "type": { + "type": "string", + "description": "Column type.", + "x-example": "string" + }, + "status": { + "type": "string", + "description": "Column status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`", + "x-example": "available" + }, + "error": { + "type": "string", + "description": "Error message. Displays error generated on failure of creating or deleting an column.", + "x-example": "string" + }, + "required": { + "type": "boolean", + "description": "Is column required?", + "x-example": true + }, + "array": { + "type": "boolean", + "description": "Is column an array?", + "x-example": false, + "x-nullable": true + }, + "$createdAt": { + "type": "string", + "description": "Column creation date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "$updatedAt": { + "type": "string", + "description": "Column update date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "default": { + "type": "array", + "description": "Default value for column when not provided. Cannot be set when column is required.", + "x-example": [ + [ + [ + 0, + 0 + ], + [ + 0, + 10 + ] + ], + [ + [ + 10, + 10 + ], + [ + 0, + 0 + ] + ] + ], + "x-nullable": true + } + }, + "required": [ + "key", + "type", + "status", + "error", + "required", + "$createdAt", + "$updatedAt" + ], + "example": { + "key": "fullName", + "type": "string", + "status": "available", + "error": "string", + "required": true, + "array": false, + "$createdAt": "2020-10-15T06:38:00.000+00:00", + "$updatedAt": "2020-10-15T06:38:00.000+00:00", + "default": [ + [ + [ + 0, + 0 + ], + [ + 0, + 10 + ] + ], + [ + [ + 10, + 10 + ], + [ + 0, + 0 + ] + ] + ] + } + }, "index": { "description": "Index", "type": "object", @@ -47013,17 +49064,20 @@ "type": "integer", "description": "Row automatically incrementing ID.", "x-example": 1, - "format": "int32" + "format": "int32", + "readOnly": true }, "$tableId": { "type": "string", "description": "Table ID.", - "x-example": "5e5ea5c15117e" + "x-example": "5e5ea5c15117e", + "readOnly": true }, "$databaseId": { "type": "string", "description": "Database ID.", - "x-example": "5e5ea5c15117e" + "x-example": "5e5ea5c15117e", + "readOnly": true }, "$createdAt": { "type": "string", diff --git a/app/config/specs/swagger2-1.8.x-server.json b/app/config/specs/swagger2-1.8.x-server.json index 2c56aa09f3..98077f1050 100644 --- a/app/config/specs/swagger2-1.8.x-server.json +++ b/app/config/specs/swagger2-1.8.x-server.json @@ -455,7 +455,7 @@ "weight": 30, "cookies": false, "type": "", - "demo": "account\/create-j-w-t.md", + "demo": "account\/create-jwt.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/account\/create-jwt.md", "rate-limit": 100, "rate-time": 3600, @@ -572,7 +572,7 @@ "weight": 45, "cookies": false, "type": "", - "demo": "account\/update-m-f-a.md", + "demo": "account\/update-mfa.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/account\/update-mfa.md", "rate-limit": 0, "rate-time": 3600, @@ -710,7 +710,7 @@ } ], "description": "Add an authenticator app to be used as an MFA factor. Verify the authenticator using the [verify authenticator](\/docs\/references\/cloud\/client-web\/account#updateMfaAuthenticator) method.", - "demo": "account\/create-m-f-a-authenticator.md" + "demo": "account\/create-mfa-authenticator.md" } ], "auth": { @@ -837,7 +837,7 @@ } ], "description": "Verify an authenticator app after adding it using the [add authenticator](\/docs\/references\/cloud\/client-web\/account#createMfaAuthenticator) method.", - "demo": "account\/update-m-f-a-authenticator.md" + "demo": "account\/update-mfa-authenticator.md" } ], "auth": { @@ -971,7 +971,7 @@ } ], "description": "Delete an authenticator for a user by ID.", - "demo": "account\/delete-m-f-a-authenticator.md" + "demo": "account\/delete-mfa-authenticator.md" } ], "auth": { @@ -1094,7 +1094,7 @@ } ], "description": "Begin the process of MFA verification after sign-in. Finish the flow with [updateMfaChallenge](\/docs\/references\/cloud\/client-web\/account#updateMfaChallenge) method.", - "demo": "account\/create-m-f-a-challenge.md" + "demo": "account\/create-mfa-challenge.md" } ], "auth": { @@ -1231,7 +1231,7 @@ } ], "description": "Complete the MFA challenge by providing the one-time password. Finish the process of MFA verification by providing the one-time password. To begin the flow, use [createMfaChallenge](\/docs\/references\/cloud\/client-web\/account#createMfaChallenge) method.", - "demo": "account\/update-m-f-a-challenge.md" + "demo": "account\/update-mfa-challenge.md" } ], "auth": { @@ -1358,7 +1358,7 @@ } ], "description": "List the factors available on the account to be used as a MFA challange.", - "demo": "account\/list-m-f-a-factors.md" + "demo": "account\/list-mfa-factors.md" } ], "auth": { @@ -1458,7 +1458,7 @@ } ], "description": "Get recovery codes that can be used as backup for MFA flow. Before getting codes, they must be generated using [createMfaRecoveryCodes](\/docs\/references\/cloud\/client-web\/account#createMfaRecoveryCodes) method. An OTP challenge is required to read recovery codes.", - "demo": "account\/get-m-f-a-recovery-codes.md" + "demo": "account\/get-mfa-recovery-codes.md" } ], "auth": { @@ -1558,7 +1558,7 @@ } ], "description": "Generate recovery codes as backup for MFA flow. It's recommended to generate and show then immediately after user successfully adds their authehticator. Recovery codes can be used as a MFA verification type in [createMfaChallenge](\/docs\/references\/cloud\/client-web\/account#createMfaChallenge) method.", - "demo": "account\/create-m-f-a-recovery-codes.md" + "demo": "account\/create-mfa-recovery-codes.md" } ], "auth": { @@ -1658,7 +1658,7 @@ } ], "description": "Regenerate recovery codes that can be used as backup for MFA flow. Before regenerating codes, they must be first generated using [createMfaRecoveryCodes](\/docs\/references\/cloud\/client-web\/account#createMfaRecoveryCodes) method. An OTP challenge is required to regenreate recovery codes.", - "demo": "account\/update-m-f-a-recovery-codes.md" + "demo": "account\/update-mfa-recovery-codes.md" } ], "auth": { @@ -2023,7 +2023,7 @@ "type": "object", "description": "Prefs key-value JSON object.", "default": {}, - "x-example": "{}" + "x-example": "{\"language\":\"en\",\"timezone\":\"UTC\",\"darkTheme\":true}" } }, "required": [ @@ -2461,7 +2461,7 @@ "weight": 27, "cookies": false, "type": "", - "demo": "account\/update-magic-u-r-l-session.md", + "demo": "account\/update-magic-url-session.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/account\/create-session.md", "rate-limit": 10, "rate-time": 3600, @@ -2472,6 +2472,10 @@ "client" ], "packaging": false, + "deprecated": { + "since": "1.6.0", + "replaceWith": "account.createSession" + }, "auth": { "Project": [] } @@ -2550,6 +2554,10 @@ "client" ], "packaging": false, + "deprecated": { + "since": "1.6.0", + "replaceWith": "account.createSession" + }, "auth": { "Project": [] } @@ -3017,7 +3025,7 @@ "weight": 25, "cookies": false, "type": "", - "demo": "account\/create-magic-u-r-l-token.md", + "demo": "account\/create-magic-url-token.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/account\/create-token-magic-url.md", "rate-limit": 60, "rate-time": 3600, @@ -3105,7 +3113,7 @@ "weight": 24, "cookies": false, "type": "webAuth", - "demo": "account\/create-o-auth2token.md", + "demo": "account\/create-o-auth-2-token.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/account\/create-token-oauth2.md", "rate-limit": 50, "rate-time": 3600, @@ -3763,7 +3771,7 @@ "parameters": [ { "name": "code", - "description": "Credit Card Code. Possible values: amex, argencard, cabal, cencosud, diners, discover, elo, hipercard, jcb, mastercard, naranja, targeta-shopping, union-china-pay, visa, mir, maestro, rupay.", + "description": "Credit Card Code. Possible values: amex, argencard, cabal, cencosud, diners, discover, elo, hipercard, jcb, mastercard, naranja, targeta-shopping, unionpay, visa, mir, maestro, rupay.", "required": true, "type": "string", "x-example": "amex", @@ -3780,7 +3788,7 @@ "mastercard", "naranja", "targeta-shopping", - "union-china-pay", + "unionpay", "visa", "mir", "maestro", @@ -3800,7 +3808,7 @@ "Mastercard", "Naranja", "Tarjeta Shopping", - "Union China Pay", + "Union Pay", "Visa", "MIR", "Maestro", @@ -4596,7 +4604,7 @@ "weight": 65, "cookies": false, "type": "location", - "demo": "avatars\/get-q-r.md", + "demo": "avatars\/get-qr.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/avatars\/get-qr.md", "rate-limit": 0, "rate-time": 3600, @@ -4685,7 +4693,7 @@ "x-appwrite": { "method": "list", "group": "databases", - "weight": 321, + "weight": 316, "cookies": false, "type": "", "demo": "databases\/list.md", @@ -4790,7 +4798,7 @@ "x-appwrite": { "method": "create", "group": "databases", - "weight": 317, + "weight": 312, "cookies": false, "type": "", "demo": "databases\/create.md", @@ -4805,7 +4813,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tablesDB.createDatabase" + "replaceWith": "tablesDB.create" }, "methods": [ { @@ -4835,7 +4843,7 @@ "demo": "databases\/create.md", "deprecated": { "since": "1.8.0", - "replaceWith": "tablesDB.createDatabase" + "replaceWith": "tablesDB.create" } } ], @@ -4909,7 +4917,7 @@ "x-appwrite": { "method": "get", "group": "databases", - "weight": 318, + "weight": 313, "cookies": false, "type": "", "demo": "databases\/get.md", @@ -5002,7 +5010,7 @@ "x-appwrite": { "method": "update", "group": "databases", - "weight": 319, + "weight": 314, "cookies": false, "type": "", "demo": "databases\/update.md", @@ -5117,7 +5125,7 @@ "x-appwrite": { "method": "delete", "group": "databases", - "weight": 320, + "weight": 315, "cookies": false, "type": "", "demo": "databases\/delete.md", @@ -5209,7 +5217,7 @@ "x-appwrite": { "method": "listCollections", "group": "collections", - "weight": 329, + "weight": 324, "cookies": false, "type": "", "demo": "databases\/list-collections.md", @@ -5294,7 +5302,7 @@ "x-appwrite": { "method": "createCollection", "group": "collections", - "weight": 325, + "weight": 320, "cookies": false, "type": "", "demo": "databases\/create-collection.md", @@ -5404,7 +5412,7 @@ "x-appwrite": { "method": "getCollection", "group": "collections", - "weight": 326, + "weight": 321, "cookies": false, "type": "", "demo": "databases\/get-collection.md", @@ -5476,7 +5484,7 @@ "x-appwrite": { "method": "updateCollection", "group": "collections", - "weight": 327, + "weight": 322, "cookies": false, "type": "", "demo": "databases\/update-collection.md", @@ -5582,7 +5590,7 @@ "x-appwrite": { "method": "deleteCollection", "group": "collections", - "weight": 328, + "weight": 323, "cookies": false, "type": "", "demo": "databases\/delete-collection.md", @@ -5654,7 +5662,7 @@ "x-appwrite": { "method": "listAttributes", "group": "attributes", - "weight": 346, + "weight": 341, "cookies": false, "type": "", "demo": "databases\/list-attributes.md", @@ -5740,7 +5748,7 @@ "x-appwrite": { "method": "createBooleanAttribute", "group": "attributes", - "weight": 347, + "weight": 342, "cookies": false, "type": "", "demo": "databases\/create-boolean-attribute.md", @@ -5851,7 +5859,7 @@ "x-appwrite": { "method": "updateBooleanAttribute", "group": "attributes", - "weight": 348, + "weight": 343, "cookies": false, "type": "", "demo": "databases\/update-boolean-attribute.md", @@ -5964,7 +5972,7 @@ "x-appwrite": { "method": "createDatetimeAttribute", "group": "attributes", - "weight": 349, + "weight": 344, "cookies": false, "type": "", "demo": "databases\/create-datetime-attribute.md", @@ -6075,7 +6083,7 @@ "x-appwrite": { "method": "updateDatetimeAttribute", "group": "attributes", - "weight": 350, + "weight": 345, "cookies": false, "type": "", "demo": "databases\/update-datetime-attribute.md", @@ -6188,7 +6196,7 @@ "x-appwrite": { "method": "createEmailAttribute", "group": "attributes", - "weight": 351, + "weight": 346, "cookies": false, "type": "", "demo": "databases\/create-email-attribute.md", @@ -6299,7 +6307,7 @@ "x-appwrite": { "method": "updateEmailAttribute", "group": "attributes", - "weight": 352, + "weight": 347, "cookies": false, "type": "", "demo": "databases\/update-email-attribute.md", @@ -6412,7 +6420,7 @@ "x-appwrite": { "method": "createEnumAttribute", "group": "attributes", - "weight": 353, + "weight": 348, "cookies": false, "type": "", "demo": "databases\/create-enum-attribute.md", @@ -6533,7 +6541,7 @@ "x-appwrite": { "method": "updateEnumAttribute", "group": "attributes", - "weight": 354, + "weight": 349, "cookies": false, "type": "", "demo": "databases\/update-enum-attribute.md", @@ -6656,7 +6664,7 @@ "x-appwrite": { "method": "createFloatAttribute", "group": "attributes", - "weight": 355, + "weight": 350, "cookies": false, "type": "", "demo": "databases\/create-float-attribute.md", @@ -6779,7 +6787,7 @@ "x-appwrite": { "method": "updateFloatAttribute", "group": "attributes", - "weight": 356, + "weight": 351, "cookies": false, "type": "", "demo": "databases\/update-float-attribute.md", @@ -6904,7 +6912,7 @@ "x-appwrite": { "method": "createIntegerAttribute", "group": "attributes", - "weight": 357, + "weight": 352, "cookies": false, "type": "", "demo": "databases\/create-integer-attribute.md", @@ -7027,7 +7035,7 @@ "x-appwrite": { "method": "updateIntegerAttribute", "group": "attributes", - "weight": 358, + "weight": 353, "cookies": false, "type": "", "demo": "databases\/update-integer-attribute.md", @@ -7152,7 +7160,7 @@ "x-appwrite": { "method": "createIpAttribute", "group": "attributes", - "weight": 359, + "weight": 354, "cookies": false, "type": "", "demo": "databases\/create-ip-attribute.md", @@ -7263,7 +7271,7 @@ "x-appwrite": { "method": "updateIpAttribute", "group": "attributes", - "weight": 360, + "weight": 355, "cookies": false, "type": "", "demo": "databases\/update-ip-attribute.md", @@ -7350,6 +7358,660 @@ ] } }, + "\/databases\/{databaseId}\/collections\/{collectionId}\/attributes\/line": { + "post": { + "summary": "Create line attribute", + "operationId": "databasesCreateLineAttribute", + "consumes": [ + "application\/json" + ], + "produces": [ + "application\/json" + ], + "tags": [ + "databases" + ], + "description": "Create a geometric line attribute.", + "responses": { + "202": { + "description": "AttributeLine", + "schema": { + "$ref": "#\/definitions\/attributeLine" + } + } + }, + "deprecated": true, + "x-appwrite": { + "method": "createLineAttribute", + "group": "attributes", + "weight": 356, + "cookies": false, + "type": "", + "demo": "databases\/create-line-attribute.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-line-attribute.md", + "rate-limit": 0, + "rate-time": 3600, + "rate-key": "url:{url},ip:{ip}", + "scope": "collections.write", + "platforms": [ + "server" + ], + "packaging": false, + "deprecated": { + "since": "1.8.0", + "replaceWith": "tablesDB.createLineColumn" + }, + "auth": { + "Project": [], + "Key": [] + } + }, + "security": [ + { + "Project": [], + "Key": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + }, + { + "name": "collectionId", + "description": "Collection ID. You can create a new collection using the Database service [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateCollection).", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + }, + { + "name": "payload", + "in": "body", + "schema": { + "type": "object", + "properties": { + "key": { + "type": "string", + "description": "Attribute Key.", + "default": null, + "x-example": null + }, + "required": { + "type": "boolean", + "description": "Is attribute required?", + "default": null, + "x-example": false + }, + "default": { + "type": "array", + "description": "Default value for attribute when not provided, two-dimensional array of coordinate pairs, [[longitude, latitude], [longitude, latitude], \u2026], listing the vertices of the line in order. Cannot be set when attribute is required.", + "default": null, + "x-example": "[[1, 2], [3, 4], [5, 6]]", + "x-nullable": true + } + }, + "required": [ + "key", + "required" + ] + } + } + ] + } + }, + "\/databases\/{databaseId}\/collections\/{collectionId}\/attributes\/line\/{key}": { + "patch": { + "summary": "Update line attribute", + "operationId": "databasesUpdateLineAttribute", + "consumes": [ + "application\/json" + ], + "produces": [ + "application\/json" + ], + "tags": [ + "databases" + ], + "description": "Update a line attribute. Changing the `default` value will not update already existing documents.", + "responses": { + "200": { + "description": "AttributeLine", + "schema": { + "$ref": "#\/definitions\/attributeLine" + } + } + }, + "deprecated": true, + "x-appwrite": { + "method": "updateLineAttribute", + "group": "attributes", + "weight": 357, + "cookies": false, + "type": "", + "demo": "databases\/update-line-attribute.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-line-attribute.md", + "rate-limit": 0, + "rate-time": 3600, + "rate-key": "url:{url},ip:{ip}", + "scope": "collections.write", + "platforms": [ + "server" + ], + "packaging": false, + "deprecated": { + "since": "1.8.0", + "replaceWith": "tablesDB.updateLineColumn" + }, + "auth": { + "Project": [], + "Key": [] + } + }, + "security": [ + { + "Project": [], + "Key": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + }, + { + "name": "collectionId", + "description": "Collection ID. You can create a new collection using the Database service [server integration](https:\/\/appwrite.io\/docs\/server\/databases#createCollection).", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + }, + { + "name": "key", + "description": "Attribute Key.", + "required": true, + "type": "string", + "in": "path" + }, + { + "name": "payload", + "in": "body", + "schema": { + "type": "object", + "properties": { + "required": { + "type": "boolean", + "description": "Is attribute required?", + "default": null, + "x-example": false + }, + "default": { + "type": "array", + "description": "Default value for attribute when not provided, two-dimensional array of coordinate pairs, [[longitude, latitude], [longitude, latitude], \u2026], listing the vertices of the line in order. Cannot be set when attribute is required.", + "default": null, + "x-example": "[[1, 2], [3, 4], [5, 6]]", + "x-nullable": true + }, + "newKey": { + "type": "string", + "description": "New attribute key.", + "default": null, + "x-example": null + } + }, + "required": [ + "required" + ] + } + } + ] + } + }, + "\/databases\/{databaseId}\/collections\/{collectionId}\/attributes\/point": { + "post": { + "summary": "Create point attribute", + "operationId": "databasesCreatePointAttribute", + "consumes": [ + "application\/json" + ], + "produces": [ + "application\/json" + ], + "tags": [ + "databases" + ], + "description": "Create a geometric point attribute.", + "responses": { + "202": { + "description": "AttributePoint", + "schema": { + "$ref": "#\/definitions\/attributePoint" + } + } + }, + "deprecated": true, + "x-appwrite": { + "method": "createPointAttribute", + "group": "attributes", + "weight": 358, + "cookies": false, + "type": "", + "demo": "databases\/create-point-attribute.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-point-attribute.md", + "rate-limit": 0, + "rate-time": 3600, + "rate-key": "url:{url},ip:{ip}", + "scope": "collections.write", + "platforms": [ + "server" + ], + "packaging": false, + "deprecated": { + "since": "1.8.0", + "replaceWith": "tablesDB.createPointColumn" + }, + "auth": { + "Project": [], + "Key": [] + } + }, + "security": [ + { + "Project": [], + "Key": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + }, + { + "name": "collectionId", + "description": "Collection ID. You can create a new collection using the Database service [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateCollection).", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + }, + { + "name": "payload", + "in": "body", + "schema": { + "type": "object", + "properties": { + "key": { + "type": "string", + "description": "Attribute Key.", + "default": null, + "x-example": null + }, + "required": { + "type": "boolean", + "description": "Is attribute required?", + "default": null, + "x-example": false + }, + "default": { + "type": "array", + "description": "Default value for attribute when not provided, array of two numbers [longitude, latitude], representing a single coordinate. Cannot be set when attribute is required.", + "default": null, + "x-example": "[1, 2]", + "x-nullable": true + } + }, + "required": [ + "key", + "required" + ] + } + } + ] + } + }, + "\/databases\/{databaseId}\/collections\/{collectionId}\/attributes\/point\/{key}": { + "patch": { + "summary": "Update point attribute", + "operationId": "databasesUpdatePointAttribute", + "consumes": [ + "application\/json" + ], + "produces": [ + "application\/json" + ], + "tags": [ + "databases" + ], + "description": "Update a point attribute. Changing the `default` value will not update already existing documents.", + "responses": { + "200": { + "description": "AttributePoint", + "schema": { + "$ref": "#\/definitions\/attributePoint" + } + } + }, + "deprecated": true, + "x-appwrite": { + "method": "updatePointAttribute", + "group": "attributes", + "weight": 359, + "cookies": false, + "type": "", + "demo": "databases\/update-point-attribute.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-point-attribute.md", + "rate-limit": 0, + "rate-time": 3600, + "rate-key": "url:{url},ip:{ip}", + "scope": "collections.write", + "platforms": [ + "server" + ], + "packaging": false, + "deprecated": { + "since": "1.8.0", + "replaceWith": "tablesDB.updatePointColumn" + }, + "auth": { + "Project": [], + "Key": [] + } + }, + "security": [ + { + "Project": [], + "Key": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + }, + { + "name": "collectionId", + "description": "Collection ID. You can create a new collection using the Database service [server integration](https:\/\/appwrite.io\/docs\/server\/databases#createCollection).", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + }, + { + "name": "key", + "description": "Attribute Key.", + "required": true, + "type": "string", + "in": "path" + }, + { + "name": "payload", + "in": "body", + "schema": { + "type": "object", + "properties": { + "required": { + "type": "boolean", + "description": "Is attribute required?", + "default": null, + "x-example": false + }, + "default": { + "type": "array", + "description": "Default value for attribute when not provided, array of two numbers [longitude, latitude], representing a single coordinate. Cannot be set when attribute is required.", + "default": null, + "x-example": "[1, 2]", + "x-nullable": true + }, + "newKey": { + "type": "string", + "description": "New attribute key.", + "default": null, + "x-example": null + } + }, + "required": [ + "required" + ] + } + } + ] + } + }, + "\/databases\/{databaseId}\/collections\/{collectionId}\/attributes\/polygon": { + "post": { + "summary": "Create polygon attribute", + "operationId": "databasesCreatePolygonAttribute", + "consumes": [ + "application\/json" + ], + "produces": [ + "application\/json" + ], + "tags": [ + "databases" + ], + "description": "Create a geometric polygon attribute.", + "responses": { + "202": { + "description": "AttributePolygon", + "schema": { + "$ref": "#\/definitions\/attributePolygon" + } + } + }, + "deprecated": true, + "x-appwrite": { + "method": "createPolygonAttribute", + "group": "attributes", + "weight": 360, + "cookies": false, + "type": "", + "demo": "databases\/create-polygon-attribute.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-polygon-attribute.md", + "rate-limit": 0, + "rate-time": 3600, + "rate-key": "url:{url},ip:{ip}", + "scope": "collections.write", + "platforms": [ + "server" + ], + "packaging": false, + "deprecated": { + "since": "1.8.0", + "replaceWith": "tablesDB.createPolygonColumn" + }, + "auth": { + "Project": [], + "Key": [] + } + }, + "security": [ + { + "Project": [], + "Key": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + }, + { + "name": "collectionId", + "description": "Collection ID. You can create a new collection using the Database service [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateCollection).", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + }, + { + "name": "payload", + "in": "body", + "schema": { + "type": "object", + "properties": { + "key": { + "type": "string", + "description": "Attribute Key.", + "default": null, + "x-example": null + }, + "required": { + "type": "boolean", + "description": "Is attribute required?", + "default": null, + "x-example": false + }, + "default": { + "type": "array", + "description": "Default value for attribute when not provided, three-dimensional array where the outer array holds one or more linear rings, [[[longitude, latitude], \u2026], \u2026], the first ring is the exterior boundary, any additional rings are interior holes, and each ring must start and end with the same coordinate pair. Cannot be set when attribute is required.", + "default": null, + "x-example": "[[[1, 2], [3, 4], [5, 6], [1, 2]]]", + "x-nullable": true + } + }, + "required": [ + "key", + "required" + ] + } + } + ] + } + }, + "\/databases\/{databaseId}\/collections\/{collectionId}\/attributes\/polygon\/{key}": { + "patch": { + "summary": "Update polygon attribute", + "operationId": "databasesUpdatePolygonAttribute", + "consumes": [ + "application\/json" + ], + "produces": [ + "application\/json" + ], + "tags": [ + "databases" + ], + "description": "Update a polygon attribute. Changing the `default` value will not update already existing documents.", + "responses": { + "200": { + "description": "AttributePolygon", + "schema": { + "$ref": "#\/definitions\/attributePolygon" + } + } + }, + "deprecated": true, + "x-appwrite": { + "method": "updatePolygonAttribute", + "group": "attributes", + "weight": 361, + "cookies": false, + "type": "", + "demo": "databases\/update-polygon-attribute.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-polygon-attribute.md", + "rate-limit": 0, + "rate-time": 3600, + "rate-key": "url:{url},ip:{ip}", + "scope": "collections.write", + "platforms": [ + "server" + ], + "packaging": false, + "deprecated": { + "since": "1.8.0", + "replaceWith": "tablesDB.updatePolygonColumn" + }, + "auth": { + "Project": [], + "Key": [] + } + }, + "security": [ + { + "Project": [], + "Key": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + }, + { + "name": "collectionId", + "description": "Collection ID. You can create a new collection using the Database service [server integration](https:\/\/appwrite.io\/docs\/server\/databases#createCollection).", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + }, + { + "name": "key", + "description": "Attribute Key.", + "required": true, + "type": "string", + "in": "path" + }, + { + "name": "payload", + "in": "body", + "schema": { + "type": "object", + "properties": { + "required": { + "type": "boolean", + "description": "Is attribute required?", + "default": null, + "x-example": false + }, + "default": { + "type": "array", + "description": "Default value for attribute when not provided, three-dimensional array where the outer array holds one or more linear rings, [[[longitude, latitude], \u2026], \u2026], the first ring is the exterior boundary, any additional rings are interior holes, and each ring must start and end with the same coordinate pair. Cannot be set when attribute is required.", + "default": null, + "x-example": "[[[1, 2], [3, 4], [5, 6], [1, 2]]]", + "x-nullable": true + }, + "newKey": { + "type": "string", + "description": "New attribute key.", + "default": null, + "x-example": null + } + }, + "required": [ + "required" + ] + } + } + ] + } + }, "\/databases\/{databaseId}\/collections\/{collectionId}\/attributes\/relationship": { "post": { "summary": "Create relationship attribute", @@ -7376,7 +8038,7 @@ "x-appwrite": { "method": "createRelationshipAttribute", "group": "attributes", - "weight": 361, + "weight": 362, "cookies": false, "type": "", "demo": "databases\/create-relationship-attribute.md", @@ -7514,7 +8176,7 @@ "x-appwrite": { "method": "createStringAttribute", "group": "attributes", - "weight": 363, + "weight": 364, "cookies": false, "type": "", "demo": "databases\/create-string-attribute.md", @@ -7638,7 +8300,7 @@ "x-appwrite": { "method": "updateStringAttribute", "group": "attributes", - "weight": 364, + "weight": 365, "cookies": false, "type": "", "demo": "databases\/update-string-attribute.md", @@ -7757,7 +8419,7 @@ "x-appwrite": { "method": "createUrlAttribute", "group": "attributes", - "weight": 365, + "weight": 366, "cookies": false, "type": "", "demo": "databases\/create-url-attribute.md", @@ -7868,7 +8530,7 @@ "x-appwrite": { "method": "updateUrlAttribute", "group": "attributes", - "weight": 366, + "weight": 367, "cookies": false, "type": "", "demo": "databases\/update-url-attribute.md", @@ -8010,7 +8672,7 @@ "x-appwrite": { "method": "getAttribute", "group": "attributes", - "weight": 344, + "weight": 339, "cookies": false, "type": "", "demo": "databases\/get-attribute.md", @@ -8084,7 +8746,7 @@ "x-appwrite": { "method": "deleteAttribute", "group": "attributes", - "weight": 345, + "weight": 340, "cookies": false, "type": "", "demo": "databases\/delete-attribute.md", @@ -8165,7 +8827,7 @@ "x-appwrite": { "method": "updateRelationshipAttribute", "group": "attributes", - "weight": 362, + "weight": 363, "cookies": false, "type": "", "demo": "databases\/update-relationship-attribute.md", @@ -8272,7 +8934,7 @@ "x-appwrite": { "method": "listDocuments", "group": "documents", - "weight": 340, + "weight": 335, "cookies": false, "type": "", "demo": "databases\/list-documents.md", @@ -8359,7 +9021,7 @@ "x-appwrite": { "method": "createDocument", "group": "documents", - "weight": 332, + "weight": 327, "cookies": false, "type": "", "demo": "databases\/create-document.md", @@ -8490,7 +9152,7 @@ "type": "object", "description": "Document data as JSON object.", "default": [], - "x-example": "{}" + "x-example": "{\"username\":\"walter.obrien\",\"email\":\"walter.obrien@example.com\",\"fullName\":\"Walter O'Brien\",\"age\":30,\"isAdmin\":false}" }, "permissions": { "type": "array", @@ -8516,7 +9178,7 @@ ] }, "put": { - "summary": "Create or update documents", + "summary": "Upsert documents", "operationId": "databasesUpsertDocuments", "consumes": [ "application\/json" @@ -8540,7 +9202,7 @@ "x-appwrite": { "method": "upsertDocuments", "group": "documents", - "weight": 337, + "weight": 332, "cookies": false, "type": "", "demo": "databases\/upsert-documents.md", @@ -8667,7 +9329,7 @@ "x-appwrite": { "method": "updateDocuments", "group": "documents", - "weight": 335, + "weight": 330, "cookies": false, "type": "", "demo": "databases\/update-documents.md", @@ -8764,7 +9426,7 @@ "x-appwrite": { "method": "deleteDocuments", "group": "documents", - "weight": 339, + "weight": 334, "cookies": false, "type": "", "demo": "databases\/delete-documents.md", @@ -8855,7 +9517,7 @@ "x-appwrite": { "method": "getDocument", "group": "documents", - "weight": 333, + "weight": 328, "cookies": false, "type": "", "demo": "databases\/get-document.md", @@ -8926,7 +9588,7 @@ ] }, "put": { - "summary": "Create or update a document", + "summary": "Upsert a document", "operationId": "databasesUpsertDocument", "consumes": [ "application\/json" @@ -8950,7 +9612,7 @@ "x-appwrite": { "method": "upsertDocument", "group": "documents", - "weight": 336, + "weight": 331, "cookies": false, "type": "", "demo": "databases\/upsert-document.md", @@ -9096,7 +9758,7 @@ "x-appwrite": { "method": "updateDocument", "group": "documents", - "weight": 334, + "weight": 329, "cookies": false, "type": "", "demo": "databases\/update-document.md", @@ -9198,7 +9860,7 @@ "x-appwrite": { "method": "deleteDocument", "group": "documents", - "weight": 338, + "weight": 333, "cookies": false, "type": "", "demo": "databases\/delete-document.md", @@ -9283,7 +9945,7 @@ "x-appwrite": { "method": "decrementDocumentAttribute", "group": "documents", - "weight": 343, + "weight": 338, "cookies": false, "type": "", "demo": "databases\/decrement-document-attribute.md", @@ -9397,7 +10059,7 @@ "x-appwrite": { "method": "incrementDocumentAttribute", "group": "documents", - "weight": 342, + "weight": 337, "cookies": false, "type": "", "demo": "databases\/increment-document-attribute.md", @@ -9509,7 +10171,7 @@ "x-appwrite": { "method": "listIndexes", "group": "indexes", - "weight": 370, + "weight": 371, "cookies": false, "type": "", "demo": "databases\/list-indexes.md", @@ -9593,7 +10255,7 @@ "x-appwrite": { "method": "createIndex", "group": "indexes", - "weight": 367, + "weight": 368, "cookies": false, "type": "", "demo": "databases\/create-index.md", @@ -9658,7 +10320,8 @@ "enum": [ "key", "fulltext", - "unique" + "unique", + "spatial" ], "x-enum-name": "IndexType", "x-enum-keys": [] @@ -9725,7 +10388,7 @@ "x-appwrite": { "method": "getIndex", "group": "indexes", - "weight": 368, + "weight": 369, "cookies": false, "type": "", "demo": "databases\/get-index.md", @@ -9799,7 +10462,7 @@ "x-appwrite": { "method": "deleteIndex", "group": "indexes", - "weight": 369, + "weight": 370, "cookies": false, "type": "", "demo": "databases\/delete-index.md", @@ -9878,7 +10541,7 @@ "x-appwrite": { "method": "list", "group": "functions", - "weight": 432, + "weight": 440, "cookies": false, "type": "", "demo": "functions\/list.md", @@ -9951,7 +10614,7 @@ "x-appwrite": { "method": "create", "group": "functions", - "weight": 429, + "weight": 437, "cookies": false, "type": "", "demo": "functions\/create.md", @@ -10203,7 +10866,7 @@ "x-appwrite": { "method": "listRuntimes", "group": "runtimes", - "weight": 434, + "weight": 442, "cookies": false, "type": "", "demo": "functions\/list-runtimes.md", @@ -10253,7 +10916,7 @@ "x-appwrite": { "method": "listSpecifications", "group": "runtimes", - "weight": 435, + "weight": 443, "cookies": false, "type": "", "demo": "functions\/list-specifications.md", @@ -10304,7 +10967,7 @@ "x-appwrite": { "method": "get", "group": "functions", - "weight": 430, + "weight": 438, "cookies": false, "type": "", "demo": "functions\/get.md", @@ -10364,7 +11027,7 @@ "x-appwrite": { "method": "update", "group": "functions", - "weight": 431, + "weight": 439, "cookies": false, "type": "", "demo": "functions\/update.md", @@ -10612,7 +11275,7 @@ "x-appwrite": { "method": "delete", "group": "functions", - "weight": 433, + "weight": 441, "cookies": false, "type": "", "demo": "functions\/delete.md", @@ -10674,7 +11337,7 @@ "x-appwrite": { "method": "updateFunctionDeployment", "group": "functions", - "weight": 438, + "weight": 446, "cookies": false, "type": "", "demo": "functions\/update-function-deployment.md", @@ -10752,7 +11415,7 @@ "x-appwrite": { "method": "listDeployments", "group": "deployments", - "weight": 439, + "weight": 447, "cookies": false, "type": "", "demo": "functions\/list-deployments.md", @@ -10833,7 +11496,7 @@ "x-appwrite": { "method": "createDeployment", "group": "deployments", - "weight": 436, + "weight": 444, "cookies": false, "type": "upload", "demo": "functions\/create-deployment.md", @@ -10926,7 +11589,7 @@ "x-appwrite": { "method": "createDuplicateDeployment", "group": "deployments", - "weight": 444, + "weight": 452, "cookies": false, "type": "", "demo": "functions\/create-duplicate-deployment.md", @@ -11012,7 +11675,7 @@ "x-appwrite": { "method": "createTemplateDeployment", "group": "deployments", - "weight": 441, + "weight": 449, "cookies": false, "type": "", "demo": "functions\/create-template-deployment.md", @@ -11119,7 +11782,7 @@ "x-appwrite": { "method": "createVcsDeployment", "group": "deployments", - "weight": 442, + "weight": 450, "cookies": false, "type": "", "demo": "functions\/create-vcs-deployment.md", @@ -11216,7 +11879,7 @@ "x-appwrite": { "method": "getDeployment", "group": "deployments", - "weight": 437, + "weight": 445, "cookies": false, "type": "", "demo": "functions\/get-deployment.md", @@ -11279,7 +11942,7 @@ "x-appwrite": { "method": "deleteDeployment", "group": "deployments", - "weight": 440, + "weight": 448, "cookies": false, "type": "", "demo": "functions\/delete-deployment.md", @@ -11347,7 +12010,7 @@ "x-appwrite": { "method": "getDeploymentDownload", "group": "deployments", - "weight": 443, + "weight": 451, "cookies": false, "type": "location", "demo": "functions\/get-deployment-download.md", @@ -11433,7 +12096,7 @@ "x-appwrite": { "method": "updateDeploymentStatus", "group": "deployments", - "weight": 445, + "weight": 453, "cookies": false, "type": "", "demo": "functions\/update-deployment-status.md", @@ -11501,7 +12164,7 @@ "x-appwrite": { "method": "listExecutions", "group": "executions", - "weight": 448, + "weight": 456, "cookies": false, "type": "", "demo": "functions\/list-executions.md", @@ -11576,7 +12239,7 @@ "x-appwrite": { "method": "createExecution", "group": "executions", - "weight": 446, + "weight": 454, "cookies": false, "type": "", "demo": "functions\/create-execution.md", @@ -11638,7 +12301,7 @@ }, "method": { "type": "string", - "description": "HTTP method of execution. Default value is GET.", + "description": "HTTP method of execution. Default value is POST.", "default": "POST", "x-example": "GET", "enum": [ @@ -11647,7 +12310,8 @@ "PUT", "PATCH", "DELETE", - "OPTIONS" + "OPTIONS", + "HEAD" ], "x-enum-name": "ExecutionMethod", "x-enum-keys": [] @@ -11694,7 +12358,7 @@ "x-appwrite": { "method": "getExecution", "group": "executions", - "weight": 447, + "weight": 455, "cookies": false, "type": "", "demo": "functions\/get-execution.md", @@ -11760,7 +12424,7 @@ "x-appwrite": { "method": "deleteExecution", "group": "executions", - "weight": 449, + "weight": 457, "cookies": false, "type": "", "demo": "functions\/delete-execution.md", @@ -11828,7 +12492,7 @@ "x-appwrite": { "method": "listVariables", "group": "variables", - "weight": 454, + "weight": 462, "cookies": false, "type": "", "demo": "functions\/list-variables.md", @@ -11888,7 +12552,7 @@ "x-appwrite": { "method": "createVariable", "group": "variables", - "weight": 452, + "weight": 460, "cookies": false, "type": "", "demo": "functions\/create-variable.md", @@ -11979,7 +12643,7 @@ "x-appwrite": { "method": "getVariable", "group": "variables", - "weight": 453, + "weight": 461, "cookies": false, "type": "", "demo": "functions\/get-variable.md", @@ -12047,7 +12711,7 @@ "x-appwrite": { "method": "updateVariable", "group": "variables", - "weight": 455, + "weight": 463, "cookies": false, "type": "", "demo": "functions\/update-variable.md", @@ -12140,7 +12804,7 @@ "x-appwrite": { "method": "deleteVariable", "group": "variables", - "weight": 456, + "weight": 464, "cookies": false, "type": "", "demo": "functions\/delete-variable.md", @@ -12210,7 +12874,7 @@ "x-appwrite": { "method": "query", "group": "graphql", - "weight": 255, + "weight": 250, "cookies": false, "type": "graphql", "demo": "graphql\/query.md", @@ -12285,7 +12949,7 @@ "x-appwrite": { "method": "mutation", "group": "graphql", - "weight": 254, + "weight": 249, "cookies": false, "type": "graphql", "demo": "graphql\/mutation.md", @@ -12570,7 +13234,7 @@ "weight": 80, "cookies": false, "type": "", - "demo": "health\/get-d-b.md", + "demo": "health\/get-db.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/health\/get-db.md", "rate-limit": 0, "rate-time": 3600, @@ -13288,7 +13952,7 @@ }, "\/health\/queue\/stats-resources": { "get": { - "summary": "Get stats resources queue", + "summary": "Get stats resources queue", "operationId": "healthGetQueueStatsResources", "consumes": [], "produces": [ @@ -13858,7 +14522,7 @@ "weight": 73, "cookies": false, "type": "", - "demo": "locale\/list-countries-e-u.md", + "demo": "locale\/list-countries-eu.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/locale\/list-countries-eu.md", "rate-limit": 0, "rate-time": 3600, @@ -14067,7 +14731,7 @@ "x-appwrite": { "method": "listMessages", "group": "messages", - "weight": 309, + "weight": 304, "cookies": false, "type": "", "demo": "messaging\/list-messages.md", @@ -14143,7 +14807,7 @@ "x-appwrite": { "method": "createEmail", "group": "messages", - "weight": 306, + "weight": 301, "cookies": false, "type": "", "demo": "messaging\/create-email.md", @@ -14302,7 +14966,7 @@ "x-appwrite": { "method": "updateEmail", "group": "messages", - "weight": 313, + "weight": 308, "cookies": false, "type": "", "demo": "messaging\/update-email.md", @@ -14458,7 +15122,7 @@ "x-appwrite": { "method": "createPush", "group": "messages", - "weight": 308, + "weight": 303, "cookies": false, "type": "", "demo": "messaging\/create-push.md", @@ -14654,7 +15318,7 @@ "x-appwrite": { "method": "updatePush", "group": "messages", - "weight": 315, + "weight": 310, "cookies": false, "type": "", "demo": "messaging\/update-push.md", @@ -14849,7 +15513,7 @@ "x-appwrite": { "method": "createSms", "group": "messages", - "weight": 307, + "weight": 302, "cookies": false, "type": "", "demo": "messaging\/create-sms.md", @@ -14930,7 +15594,7 @@ } ], "description": "Create a new SMS message.", - "demo": "messaging\/create-s-m-s.md" + "demo": "messaging\/create-sms.md" } ], "auth": { @@ -15038,7 +15702,7 @@ "x-appwrite": { "method": "updateSms", "group": "messages", - "weight": 314, + "weight": 309, "cookies": false, "type": "", "demo": "messaging\/update-sms.md", @@ -15117,7 +15781,7 @@ } ], "description": "Update an SMS message by its unique ID. This endpoint only works on messages that are in draft status. Messages that are already processing, sent, or failed cannot be updated.\n", - "demo": "messaging\/update-s-m-s.md" + "demo": "messaging\/update-sms.md" } ], "auth": { @@ -15221,7 +15885,7 @@ "x-appwrite": { "method": "getMessage", "group": "messages", - "weight": 312, + "weight": 307, "cookies": false, "type": "", "demo": "messaging\/get-message.md", @@ -15277,7 +15941,7 @@ "x-appwrite": { "method": "delete", "group": "messages", - "weight": 316, + "weight": 311, "cookies": false, "type": "", "demo": "messaging\/delete.md", @@ -15338,7 +16002,7 @@ "x-appwrite": { "method": "listMessageLogs", "group": "logs", - "weight": 310, + "weight": 305, "cookies": false, "type": "", "demo": "messaging\/list-message-logs.md", @@ -15411,7 +16075,7 @@ "x-appwrite": { "method": "listTargets", "group": "messages", - "weight": 311, + "weight": 306, "cookies": false, "type": "", "demo": "messaging\/list-targets.md", @@ -15484,7 +16148,7 @@ "x-appwrite": { "method": "listProviders", "group": "providers", - "weight": 281, + "weight": 276, "cookies": false, "type": "", "demo": "messaging\/list-providers.md", @@ -15560,7 +16224,7 @@ "x-appwrite": { "method": "createApnsProvider", "group": "providers", - "weight": 280, + "weight": 275, "cookies": false, "type": "", "demo": "messaging\/create-apns-provider.md", @@ -15643,7 +16307,7 @@ } ], "description": "Create a new Apple Push Notification service provider.", - "demo": "messaging\/create-a-p-n-s-provider.md" + "demo": "messaging\/create-apns-provider.md" } ], "auth": { @@ -15748,7 +16412,7 @@ "x-appwrite": { "method": "updateApnsProvider", "group": "providers", - "weight": 293, + "weight": 288, "cookies": false, "type": "", "demo": "messaging\/update-apns-provider.md", @@ -15829,7 +16493,7 @@ } ], "description": "Update a Apple Push Notification service provider by its unique ID.", - "demo": "messaging\/update-a-p-n-s-provider.md" + "demo": "messaging\/update-apns-provider.md" } ], "auth": { @@ -15932,7 +16596,7 @@ "x-appwrite": { "method": "createFcmProvider", "group": "providers", - "weight": 279, + "weight": 274, "cookies": false, "type": "", "demo": "messaging\/create-fcm-provider.md", @@ -16007,7 +16671,7 @@ } ], "description": "Create a new Firebase Cloud Messaging provider.", - "demo": "messaging\/create-f-c-m-provider.md" + "demo": "messaging\/create-fcm-provider.md" } ], "auth": { @@ -16088,7 +16752,7 @@ "x-appwrite": { "method": "updateFcmProvider", "group": "providers", - "weight": 292, + "weight": 287, "cookies": false, "type": "", "demo": "messaging\/update-fcm-provider.md", @@ -16161,7 +16825,7 @@ } ], "description": "Update a Firebase Cloud Messaging provider by its unique ID.", - "demo": "messaging\/update-f-c-m-provider.md" + "demo": "messaging\/update-fcm-provider.md" } ], "auth": { @@ -16240,7 +16904,7 @@ "x-appwrite": { "method": "createMailgunProvider", "group": "providers", - "weight": 271, + "weight": 266, "cookies": false, "type": "", "demo": "messaging\/create-mailgun-provider.md", @@ -16368,7 +17032,7 @@ "x-appwrite": { "method": "updateMailgunProvider", "group": "providers", - "weight": 284, + "weight": 279, "cookies": false, "type": "", "demo": "messaging\/update-mailgun-provider.md", @@ -16494,10 +17158,10 @@ "x-appwrite": { "method": "createMsg91Provider", "group": "providers", - "weight": 274, + "weight": 269, "cookies": false, "type": "", - "demo": "messaging\/create-msg91provider.md", + "demo": "messaging\/create-msg-91-provider.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/messaging\/create-msg91-provider.md", "rate-limit": 0, "rate-time": 3600, @@ -16598,10 +17262,10 @@ "x-appwrite": { "method": "updateMsg91Provider", "group": "providers", - "weight": 287, + "weight": 282, "cookies": false, "type": "", - "demo": "messaging\/update-msg91provider.md", + "demo": "messaging\/update-msg-91-provider.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/messaging\/update-msg91-provider.md", "rate-limit": 0, "rate-time": 3600, @@ -16700,7 +17364,7 @@ "x-appwrite": { "method": "createSendgridProvider", "group": "providers", - "weight": 272, + "weight": 267, "cookies": false, "type": "", "demo": "messaging\/create-sendgrid-provider.md", @@ -16816,7 +17480,7 @@ "x-appwrite": { "method": "updateSendgridProvider", "group": "providers", - "weight": 285, + "weight": 280, "cookies": false, "type": "", "demo": "messaging\/update-sendgrid-provider.md", @@ -16930,7 +17594,7 @@ "x-appwrite": { "method": "createSmtpProvider", "group": "providers", - "weight": 273, + "weight": 268, "cookies": false, "type": "", "demo": "messaging\/create-smtp-provider.md", @@ -17027,7 +17691,7 @@ } ], "description": "Create a new SMTP provider.", - "demo": "messaging\/create-s-m-t-p-provider.md" + "demo": "messaging\/create-smtp-provider.md" } ], "auth": { @@ -17176,7 +17840,7 @@ "x-appwrite": { "method": "updateSmtpProvider", "group": "providers", - "weight": 286, + "weight": 281, "cookies": false, "type": "", "demo": "messaging\/update-smtp-provider.md", @@ -17269,7 +17933,7 @@ } ], "description": "Update a SMTP provider by its unique ID.", - "demo": "messaging\/update-s-m-t-p-provider.md" + "demo": "messaging\/update-smtp-provider.md" } ], "auth": { @@ -17415,7 +18079,7 @@ "x-appwrite": { "method": "createTelesignProvider", "group": "providers", - "weight": 275, + "weight": 270, "cookies": false, "type": "", "demo": "messaging\/create-telesign-provider.md", @@ -17519,7 +18183,7 @@ "x-appwrite": { "method": "updateTelesignProvider", "group": "providers", - "weight": 288, + "weight": 283, "cookies": false, "type": "", "demo": "messaging\/update-telesign-provider.md", @@ -17621,7 +18285,7 @@ "x-appwrite": { "method": "createTextmagicProvider", "group": "providers", - "weight": 276, + "weight": 271, "cookies": false, "type": "", "demo": "messaging\/create-textmagic-provider.md", @@ -17725,7 +18389,7 @@ "x-appwrite": { "method": "updateTextmagicProvider", "group": "providers", - "weight": 289, + "weight": 284, "cookies": false, "type": "", "demo": "messaging\/update-textmagic-provider.md", @@ -17827,7 +18491,7 @@ "x-appwrite": { "method": "createTwilioProvider", "group": "providers", - "weight": 277, + "weight": 272, "cookies": false, "type": "", "demo": "messaging\/create-twilio-provider.md", @@ -17931,7 +18595,7 @@ "x-appwrite": { "method": "updateTwilioProvider", "group": "providers", - "weight": 290, + "weight": 285, "cookies": false, "type": "", "demo": "messaging\/update-twilio-provider.md", @@ -18033,7 +18697,7 @@ "x-appwrite": { "method": "createVonageProvider", "group": "providers", - "weight": 278, + "weight": 273, "cookies": false, "type": "", "demo": "messaging\/create-vonage-provider.md", @@ -18137,7 +18801,7 @@ "x-appwrite": { "method": "updateVonageProvider", "group": "providers", - "weight": 291, + "weight": 286, "cookies": false, "type": "", "demo": "messaging\/update-vonage-provider.md", @@ -18237,7 +18901,7 @@ "x-appwrite": { "method": "getProvider", "group": "providers", - "weight": 283, + "weight": 278, "cookies": false, "type": "", "demo": "messaging\/get-provider.md", @@ -18293,7 +18957,7 @@ "x-appwrite": { "method": "deleteProvider", "group": "providers", - "weight": 294, + "weight": 289, "cookies": false, "type": "", "demo": "messaging\/delete-provider.md", @@ -18354,7 +19018,7 @@ "x-appwrite": { "method": "listProviderLogs", "group": "providers", - "weight": 282, + "weight": 277, "cookies": false, "type": "", "demo": "messaging\/list-provider-logs.md", @@ -18427,7 +19091,7 @@ "x-appwrite": { "method": "listSubscriberLogs", "group": "subscribers", - "weight": 303, + "weight": 298, "cookies": false, "type": "", "demo": "messaging\/list-subscriber-logs.md", @@ -18500,7 +19164,7 @@ "x-appwrite": { "method": "listTopics", "group": "topics", - "weight": 296, + "weight": 291, "cookies": false, "type": "", "demo": "messaging\/list-topics.md", @@ -18574,7 +19238,7 @@ "x-appwrite": { "method": "createTopic", "group": "topics", - "weight": 295, + "weight": 290, "cookies": false, "type": "", "demo": "messaging\/create-topic.md", @@ -18663,7 +19327,7 @@ "x-appwrite": { "method": "getTopic", "group": "topics", - "weight": 298, + "weight": 293, "cookies": false, "type": "", "demo": "messaging\/get-topic.md", @@ -18724,7 +19388,7 @@ "x-appwrite": { "method": "updateTopic", "group": "topics", - "weight": 299, + "weight": 294, "cookies": false, "type": "", "demo": "messaging\/update-topic.md", @@ -18804,7 +19468,7 @@ "x-appwrite": { "method": "deleteTopic", "group": "topics", - "weight": 300, + "weight": 295, "cookies": false, "type": "", "demo": "messaging\/delete-topic.md", @@ -18865,7 +19529,7 @@ "x-appwrite": { "method": "listTopicLogs", "group": "topics", - "weight": 297, + "weight": 292, "cookies": false, "type": "", "demo": "messaging\/list-topic-logs.md", @@ -18938,7 +19602,7 @@ "x-appwrite": { "method": "listSubscribers", "group": "subscribers", - "weight": 302, + "weight": 297, "cookies": false, "type": "", "demo": "messaging\/list-subscribers.md", @@ -19020,7 +19684,7 @@ "x-appwrite": { "method": "createSubscriber", "group": "subscribers", - "weight": 301, + "weight": 296, "cookies": false, "type": "", "demo": "messaging\/create-subscriber.md", @@ -19109,7 +19773,7 @@ "x-appwrite": { "method": "getSubscriber", "group": "subscribers", - "weight": 304, + "weight": 299, "cookies": false, "type": "", "demo": "messaging\/get-subscriber.md", @@ -19173,7 +19837,7 @@ "x-appwrite": { "method": "deleteSubscriber", "group": "subscribers", - "weight": 305, + "weight": 300, "cookies": false, "type": "", "demo": "messaging\/delete-subscriber.md", @@ -19245,7 +19909,7 @@ "x-appwrite": { "method": "list", "group": "sites", - "weight": 461, + "weight": 469, "cookies": false, "type": "", "demo": "sites\/list.md", @@ -19318,7 +19982,7 @@ "x-appwrite": { "method": "create", "group": "sites", - "weight": 459, + "weight": 467, "cookies": false, "type": "", "demo": "sites\/create.md", @@ -19586,7 +20250,7 @@ "x-appwrite": { "method": "listFrameworks", "group": "frameworks", - "weight": 464, + "weight": 472, "cookies": false, "type": "", "demo": "sites\/list-frameworks.md", @@ -19636,7 +20300,7 @@ "x-appwrite": { "method": "listSpecifications", "group": "frameworks", - "weight": 487, + "weight": 495, "cookies": false, "type": "", "demo": "sites\/list-specifications.md", @@ -19687,7 +20351,7 @@ "x-appwrite": { "method": "get", "group": "sites", - "weight": 460, + "weight": 468, "cookies": false, "type": "", "demo": "sites\/get.md", @@ -19747,7 +20411,7 @@ "x-appwrite": { "method": "update", "group": "sites", - "weight": 462, + "weight": 470, "cookies": false, "type": "", "demo": "sites\/update.md", @@ -20010,7 +20674,7 @@ "x-appwrite": { "method": "delete", "group": "sites", - "weight": 463, + "weight": 471, "cookies": false, "type": "", "demo": "sites\/delete.md", @@ -20072,7 +20736,7 @@ "x-appwrite": { "method": "updateSiteDeployment", "group": "sites", - "weight": 470, + "weight": 478, "cookies": false, "type": "", "demo": "sites\/update-site-deployment.md", @@ -20150,7 +20814,7 @@ "x-appwrite": { "method": "listDeployments", "group": "deployments", - "weight": 469, + "weight": 477, "cookies": false, "type": "", "demo": "sites\/list-deployments.md", @@ -20231,7 +20895,7 @@ "x-appwrite": { "method": "createDeployment", "group": "deployments", - "weight": 465, + "weight": 473, "cookies": false, "type": "upload", "demo": "sites\/create-deployment.md", @@ -20332,7 +20996,7 @@ "x-appwrite": { "method": "createDuplicateDeployment", "group": "deployments", - "weight": 473, + "weight": 481, "cookies": false, "type": "", "demo": "sites\/create-duplicate-deployment.md", @@ -20412,7 +21076,7 @@ "x-appwrite": { "method": "createTemplateDeployment", "group": "deployments", - "weight": 466, + "weight": 474, "cookies": false, "type": "", "demo": "sites\/create-template-deployment.md", @@ -20519,7 +21183,7 @@ "x-appwrite": { "method": "createVcsDeployment", "group": "deployments", - "weight": 467, + "weight": 475, "cookies": false, "type": "", "demo": "sites\/create-vcs-deployment.md", @@ -20617,7 +21281,7 @@ "x-appwrite": { "method": "getDeployment", "group": "deployments", - "weight": 468, + "weight": 476, "cookies": false, "type": "", "demo": "sites\/get-deployment.md", @@ -20680,7 +21344,7 @@ "x-appwrite": { "method": "deleteDeployment", "group": "deployments", - "weight": 471, + "weight": 479, "cookies": false, "type": "", "demo": "sites\/delete-deployment.md", @@ -20748,7 +21412,7 @@ "x-appwrite": { "method": "getDeploymentDownload", "group": "deployments", - "weight": 472, + "weight": 480, "cookies": false, "type": "location", "demo": "sites\/get-deployment-download.md", @@ -20834,7 +21498,7 @@ "x-appwrite": { "method": "updateDeploymentStatus", "group": "deployments", - "weight": 474, + "weight": 482, "cookies": false, "type": "", "demo": "sites\/update-deployment-status.md", @@ -20902,7 +21566,7 @@ "x-appwrite": { "method": "listLogs", "group": "logs", - "weight": 476, + "weight": 484, "cookies": false, "type": "", "demo": "sites\/list-logs.md", @@ -20974,7 +21638,7 @@ "x-appwrite": { "method": "getLog", "group": "logs", - "weight": 475, + "weight": 483, "cookies": false, "type": "", "demo": "sites\/get-log.md", @@ -21039,7 +21703,7 @@ "x-appwrite": { "method": "deleteLog", "group": "logs", - "weight": 477, + "weight": 485, "cookies": false, "type": "", "demo": "sites\/delete-log.md", @@ -21107,7 +21771,7 @@ "x-appwrite": { "method": "listVariables", "group": "variables", - "weight": 480, + "weight": 488, "cookies": false, "type": "", "demo": "sites\/list-variables.md", @@ -21167,7 +21831,7 @@ "x-appwrite": { "method": "createVariable", "group": "variables", - "weight": 478, + "weight": 486, "cookies": false, "type": "", "demo": "sites\/create-variable.md", @@ -21258,7 +21922,7 @@ "x-appwrite": { "method": "getVariable", "group": "variables", - "weight": 479, + "weight": 487, "cookies": false, "type": "", "demo": "sites\/get-variable.md", @@ -21326,7 +21990,7 @@ "x-appwrite": { "method": "updateVariable", "group": "variables", - "weight": 481, + "weight": 489, "cookies": false, "type": "", "demo": "sites\/update-variable.md", @@ -21419,7 +22083,7 @@ "x-appwrite": { "method": "deleteVariable", "group": "variables", - "weight": 482, + "weight": 490, "cookies": false, "type": "", "demo": "sites\/delete-variable.md", @@ -21487,7 +22151,7 @@ "x-appwrite": { "method": "listBuckets", "group": "buckets", - "weight": 156, + "weight": 155, "cookies": false, "type": "", "demo": "storage\/list-buckets.md", @@ -21560,7 +22224,7 @@ "x-appwrite": { "method": "createBucket", "group": "buckets", - "weight": 155, + "weight": 154, "cookies": false, "type": "", "demo": "storage\/create-bucket.md", @@ -21698,7 +22362,7 @@ "x-appwrite": { "method": "getBucket", "group": "buckets", - "weight": 157, + "weight": 156, "cookies": false, "type": "", "demo": "storage\/get-bucket.md", @@ -21758,7 +22422,7 @@ "x-appwrite": { "method": "updateBucket", "group": "buckets", - "weight": 158, + "weight": 157, "cookies": false, "type": "", "demo": "storage\/update-bucket.md", @@ -21892,7 +22556,7 @@ "x-appwrite": { "method": "deleteBucket", "group": "buckets", - "weight": 159, + "weight": 158, "cookies": false, "type": "", "demo": "storage\/delete-bucket.md", @@ -21952,7 +22616,7 @@ "x-appwrite": { "method": "listFiles", "group": "files", - "weight": 161, + "weight": 160, "cookies": false, "type": "", "demo": "storage\/list-files.md", @@ -22036,7 +22700,7 @@ "x-appwrite": { "method": "createFile", "group": "files", - "weight": 160, + "weight": 159, "cookies": false, "type": "upload", "demo": "storage\/create-file.md", @@ -22127,7 +22791,7 @@ "x-appwrite": { "method": "getFile", "group": "files", - "weight": 162, + "weight": 161, "cookies": false, "type": "", "demo": "storage\/get-file.md", @@ -22198,7 +22862,7 @@ "x-appwrite": { "method": "updateFile", "group": "files", - "weight": 167, + "weight": 166, "cookies": false, "type": "", "demo": "storage\/update-file.md", @@ -22288,7 +22952,7 @@ "x-appwrite": { "method": "deleteFile", "group": "files", - "weight": 168, + "weight": 167, "cookies": false, "type": "", "demo": "storage\/delete-file.md", @@ -22359,7 +23023,7 @@ "x-appwrite": { "method": "getFileDownload", "group": "files", - "weight": 164, + "weight": 163, "cookies": false, "type": "location", "demo": "storage\/get-file-download.md", @@ -22439,7 +23103,7 @@ "x-appwrite": { "method": "getFilePreview", "group": "files", - "weight": 163, + "weight": 162, "cookies": false, "type": "location", "demo": "storage\/get-file-preview.md", @@ -22647,7 +23311,7 @@ "x-appwrite": { "method": "getFileView", "group": "files", - "weight": 165, + "weight": 164, "cookies": false, "type": "location", "demo": "storage\/get-file-view.md", @@ -22727,10 +23391,10 @@ "x-appwrite": { "method": "list", "group": "tablesdb", - "weight": 375, + "weight": 376, "cookies": false, "type": "", - "demo": "tables-d-b\/list.md", + "demo": "tablesdb\/list.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/list.md", "rate-limit": 0, "rate-time": 3600, @@ -22800,10 +23464,10 @@ "x-appwrite": { "method": "create", "group": "tablesdb", - "weight": 371, + "weight": 372, "cookies": false, "type": "", - "demo": "tables-d-b\/create.md", + "demo": "tablesdb\/create.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/create.md", "rate-limit": 0, "rate-time": 3600, @@ -22883,10 +23547,10 @@ "x-appwrite": { "method": "get", "group": "tablesdb", - "weight": 372, + "weight": 373, "cookies": false, "type": "", - "demo": "tables-d-b\/get.md", + "demo": "tablesdb\/get.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/get.md", "rate-limit": 0, "rate-time": 3600, @@ -22943,10 +23607,10 @@ "x-appwrite": { "method": "update", "group": "tablesdb", - "weight": 373, + "weight": 374, "cookies": false, "type": "", - "demo": "tables-d-b\/update.md", + "demo": "tablesdb\/update.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/update.md", "rate-limit": 0, "rate-time": 3600, @@ -23022,10 +23686,10 @@ "x-appwrite": { "method": "delete", "group": "tablesdb", - "weight": 374, + "weight": 375, "cookies": false, "type": "", - "demo": "tables-d-b\/delete.md", + "demo": "tablesdb\/delete.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/delete.md", "rate-limit": 0, "rate-time": 3600, @@ -23081,16 +23745,19 @@ "deprecated": false, "x-appwrite": { "method": "listTables", - "group": null, - "weight": 382, + "group": "tables", + "weight": 383, "cookies": false, "type": "", - "demo": "tables-d-b\/list-tables.md", + "demo": "tablesdb\/list-tables.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/list-tables.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "tables.read", + "scope": [ + "tables.read", + "collections.read" + ], "platforms": [ "server" ], @@ -23162,16 +23829,19 @@ "deprecated": false, "x-appwrite": { "method": "createTable", - "group": null, - "weight": 378, + "group": "tables", + "weight": 379, "cookies": false, "type": "", - "demo": "tables-d-b\/create-table.md", + "demo": "tablesdb\/create-table.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/create-table.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "tables.write", + "scope": [ + "tables.write", + "collections.write" + ], "platforms": [ "server" ], @@ -23268,16 +23938,19 @@ "deprecated": false, "x-appwrite": { "method": "getTable", - "group": null, - "weight": 379, + "group": "tables", + "weight": 380, "cookies": false, "type": "", - "demo": "tables-d-b\/get-table.md", + "demo": "tablesdb\/get-table.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/get-table.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "tables.read", + "scope": [ + "tables.read", + "collections.read" + ], "platforms": [ "server" ], @@ -23336,16 +24009,19 @@ "deprecated": false, "x-appwrite": { "method": "updateTable", - "group": null, - "weight": 380, + "group": "tables", + "weight": 381, "cookies": false, "type": "", - "demo": "tables-d-b\/update-table.md", + "demo": "tablesdb\/update-table.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/update-table.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "tables.write", + "scope": [ + "tables.write", + "collections.write" + ], "platforms": [ "server" ], @@ -23438,16 +24114,19 @@ "deprecated": false, "x-appwrite": { "method": "deleteTable", - "group": null, - "weight": 381, + "group": "tables", + "weight": 382, "cookies": false, "type": "", - "demo": "tables-d-b\/delete-table.md", + "demo": "tablesdb\/delete-table.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/delete-table.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "tables.write", + "scope": [ + "tables.write", + "collections.write" + ], "platforms": [ "server" ], @@ -23507,15 +24186,18 @@ "x-appwrite": { "method": "listColumns", "group": "columns", - "weight": 387, + "weight": 388, "cookies": false, "type": "", - "demo": "tables-d-b\/list-columns.md", + "demo": "tablesdb\/list-columns.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/list-columns.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "tables.read", + "scope": [ + "tables.read", + "collections.read" + ], "platforms": [ "server" ], @@ -23589,15 +24271,18 @@ "x-appwrite": { "method": "createBooleanColumn", "group": "columns", - "weight": 388, + "weight": 389, "cookies": false, "type": "", - "demo": "tables-d-b\/create-boolean-column.md", + "demo": "tablesdb\/create-boolean-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/create-boolean-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "tables.write", + "scope": [ + "tables.write", + "collections.write" + ], "platforms": [ "server" ], @@ -23696,15 +24381,18 @@ "x-appwrite": { "method": "updateBooleanColumn", "group": "columns", - "weight": 389, + "weight": 390, "cookies": false, "type": "", - "demo": "tables-d-b\/update-boolean-column.md", + "demo": "tablesdb\/update-boolean-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/update-boolean-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "tables.write", + "scope": [ + "tables.write", + "collections.write" + ], "platforms": [ "server" ], @@ -23805,15 +24493,18 @@ "x-appwrite": { "method": "createDatetimeColumn", "group": "columns", - "weight": 390, + "weight": 391, "cookies": false, "type": "", - "demo": "tables-d-b\/create-datetime-column.md", + "demo": "tablesdb\/create-datetime-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/create-datetime-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "tables.write", + "scope": [ + "tables.write", + "collections.write" + ], "platforms": [ "server" ], @@ -23912,15 +24603,18 @@ "x-appwrite": { "method": "updateDatetimeColumn", "group": "columns", - "weight": 391, + "weight": 392, "cookies": false, "type": "", - "demo": "tables-d-b\/update-datetime-column.md", + "demo": "tablesdb\/update-datetime-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/update-datetime-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "tables.write", + "scope": [ + "tables.write", + "collections.write" + ], "platforms": [ "server" ], @@ -24021,15 +24715,18 @@ "x-appwrite": { "method": "createEmailColumn", "group": "columns", - "weight": 392, + "weight": 393, "cookies": false, "type": "", - "demo": "tables-d-b\/create-email-column.md", + "demo": "tablesdb\/create-email-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/create-email-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "tables.write", + "scope": [ + "tables.write", + "collections.write" + ], "platforms": [ "server" ], @@ -24128,15 +24825,18 @@ "x-appwrite": { "method": "updateEmailColumn", "group": "columns", - "weight": 393, + "weight": 394, "cookies": false, "type": "", - "demo": "tables-d-b\/update-email-column.md", + "demo": "tablesdb\/update-email-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/update-email-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "tables.write", + "scope": [ + "tables.write", + "collections.write" + ], "platforms": [ "server" ], @@ -24237,15 +24937,18 @@ "x-appwrite": { "method": "createEnumColumn", "group": "columns", - "weight": 394, + "weight": 395, "cookies": false, "type": "", - "demo": "tables-d-b\/create-enum-column.md", + "demo": "tablesdb\/create-enum-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/create-enum-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "tables.write", + "scope": [ + "tables.write", + "collections.write" + ], "platforms": [ "server" ], @@ -24354,15 +25057,18 @@ "x-appwrite": { "method": "updateEnumColumn", "group": "columns", - "weight": 395, + "weight": 396, "cookies": false, "type": "", - "demo": "tables-d-b\/update-enum-column.md", + "demo": "tablesdb\/update-enum-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/update-enum-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "tables.write", + "scope": [ + "tables.write", + "collections.write" + ], "platforms": [ "server" ], @@ -24473,15 +25179,18 @@ "x-appwrite": { "method": "createFloatColumn", "group": "columns", - "weight": 396, + "weight": 397, "cookies": false, "type": "", - "demo": "tables-d-b\/create-float-column.md", + "demo": "tablesdb\/create-float-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/create-float-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "tables.write", + "scope": [ + "tables.write", + "collections.write" + ], "platforms": [ "server" ], @@ -24592,15 +25301,18 @@ "x-appwrite": { "method": "updateFloatColumn", "group": "columns", - "weight": 397, + "weight": 398, "cookies": false, "type": "", - "demo": "tables-d-b\/update-float-column.md", + "demo": "tablesdb\/update-float-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/update-float-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "tables.write", + "scope": [ + "tables.write", + "collections.write" + ], "platforms": [ "server" ], @@ -24713,15 +25425,18 @@ "x-appwrite": { "method": "createIntegerColumn", "group": "columns", - "weight": 398, + "weight": 399, "cookies": false, "type": "", - "demo": "tables-d-b\/create-integer-column.md", + "demo": "tablesdb\/create-integer-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/create-integer-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "tables.write", + "scope": [ + "tables.write", + "collections.write" + ], "platforms": [ "server" ], @@ -24832,15 +25547,18 @@ "x-appwrite": { "method": "updateIntegerColumn", "group": "columns", - "weight": 399, + "weight": 400, "cookies": false, "type": "", - "demo": "tables-d-b\/update-integer-column.md", + "demo": "tablesdb\/update-integer-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/update-integer-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "tables.write", + "scope": [ + "tables.write", + "collections.write" + ], "platforms": [ "server" ], @@ -24953,15 +25671,18 @@ "x-appwrite": { "method": "createIpColumn", "group": "columns", - "weight": 400, + "weight": 401, "cookies": false, "type": "", - "demo": "tables-d-b\/create-ip-column.md", + "demo": "tablesdb\/create-ip-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/create-ip-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "tables.write", + "scope": [ + "tables.write", + "collections.write" + ], "platforms": [ "server" ], @@ -25060,15 +25781,18 @@ "x-appwrite": { "method": "updateIpColumn", "group": "columns", - "weight": 401, + "weight": 402, "cookies": false, "type": "", - "demo": "tables-d-b\/update-ip-column.md", + "demo": "tablesdb\/update-ip-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/update-ip-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "tables.write", + "scope": [ + "tables.write", + "collections.write" + ], "platforms": [ "server" ], @@ -25143,6 +25867,654 @@ ] } }, + "\/tablesdb\/{databaseId}\/tables\/{tableId}\/columns\/line": { + "post": { + "summary": "Create line column", + "operationId": "tablesDBCreateLineColumn", + "consumes": [ + "application\/json" + ], + "produces": [ + "application\/json" + ], + "tags": [ + "tablesDB" + ], + "description": "Create a geometric line column.", + "responses": { + "202": { + "description": "ColumnLine", + "schema": { + "$ref": "#\/definitions\/columnLine" + } + } + }, + "deprecated": false, + "x-appwrite": { + "method": "createLineColumn", + "group": "columns", + "weight": 403, + "cookies": false, + "type": "", + "demo": "tablesdb\/create-line-column.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/create-line-column.md", + "rate-limit": 0, + "rate-time": 3600, + "rate-key": "url:{url},ip:{ip}", + "scope": [ + "tables.write", + "collections.write" + ], + "platforms": [ + "server" + ], + "packaging": false, + "auth": { + "Project": [], + "Key": [] + } + }, + "security": [ + { + "Project": [], + "Key": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + }, + { + "name": "tableId", + "description": "Table ID. You can create a new table using the TablesDB service [server integration](https:\/\/appwrite.io\/docs\/server\/tablesdb#tablesDBCreate).", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + }, + { + "name": "payload", + "in": "body", + "schema": { + "type": "object", + "properties": { + "key": { + "type": "string", + "description": "Column Key.", + "default": null, + "x-example": null + }, + "required": { + "type": "boolean", + "description": "Is column required?", + "default": null, + "x-example": false + }, + "default": { + "type": "array", + "description": "Default value for column when not provided, two-dimensional array of coordinate pairs, [[longitude, latitude], [longitude, latitude], \u2026], listing the vertices of the line in order. Cannot be set when column is required.", + "default": null, + "x-example": "[[1, 2], [3, 4], [5, 6]]", + "x-nullable": true + } + }, + "required": [ + "key", + "required" + ] + } + } + ] + } + }, + "\/tablesdb\/{databaseId}\/tables\/{tableId}\/columns\/line\/{key}": { + "patch": { + "summary": "Update line column", + "operationId": "tablesDBUpdateLineColumn", + "consumes": [ + "application\/json" + ], + "produces": [ + "application\/json" + ], + "tags": [ + "tablesDB" + ], + "description": "Update a line column. Changing the `default` value will not update already existing rows.", + "responses": { + "200": { + "description": "ColumnLine", + "schema": { + "$ref": "#\/definitions\/columnLine" + } + } + }, + "deprecated": false, + "x-appwrite": { + "method": "updateLineColumn", + "group": "columns", + "weight": 404, + "cookies": false, + "type": "", + "demo": "tablesdb\/update-line-column.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/update-line-column.md", + "rate-limit": 0, + "rate-time": 3600, + "rate-key": "url:{url},ip:{ip}", + "scope": [ + "tables.write", + "collections.write" + ], + "platforms": [ + "server" + ], + "packaging": false, + "auth": { + "Project": [], + "Key": [] + } + }, + "security": [ + { + "Project": [], + "Key": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + }, + { + "name": "tableId", + "description": "Table ID. You can create a new table using the TablesDB service [server integration](https:\/\/appwrite.io\/docs\/server\/tablesdb#tablesDBCreate).", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + }, + { + "name": "key", + "description": "Column Key.", + "required": true, + "type": "string", + "in": "path" + }, + { + "name": "payload", + "in": "body", + "schema": { + "type": "object", + "properties": { + "required": { + "type": "boolean", + "description": "Is column required?", + "default": null, + "x-example": false + }, + "default": { + "type": "array", + "description": "Default value for column when not provided, two-dimensional array of coordinate pairs, [[longitude, latitude], [longitude, latitude], \u2026], listing the vertices of the line in order. Cannot be set when column is required.", + "default": null, + "x-example": "[[1, 2], [3, 4], [5, 6]]", + "x-nullable": true + }, + "newKey": { + "type": "string", + "description": "New Column Key.", + "default": null, + "x-example": null + } + }, + "required": [ + "required" + ] + } + } + ] + } + }, + "\/tablesdb\/{databaseId}\/tables\/{tableId}\/columns\/point": { + "post": { + "summary": "Create point column", + "operationId": "tablesDBCreatePointColumn", + "consumes": [ + "application\/json" + ], + "produces": [ + "application\/json" + ], + "tags": [ + "tablesDB" + ], + "description": "Create a geometric point column.", + "responses": { + "202": { + "description": "ColumnPoint", + "schema": { + "$ref": "#\/definitions\/columnPoint" + } + } + }, + "deprecated": false, + "x-appwrite": { + "method": "createPointColumn", + "group": "columns", + "weight": 405, + "cookies": false, + "type": "", + "demo": "tablesdb\/create-point-column.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/create-point-column.md", + "rate-limit": 0, + "rate-time": 3600, + "rate-key": "url:{url},ip:{ip}", + "scope": [ + "tables.write", + "collections.write" + ], + "platforms": [ + "server" + ], + "packaging": false, + "auth": { + "Project": [], + "Key": [] + } + }, + "security": [ + { + "Project": [], + "Key": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + }, + { + "name": "tableId", + "description": "Table ID. You can create a new table using the TablesDB service [server integration](https:\/\/appwrite.io\/docs\/server\/tablesdb#tablesDBCreate).", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + }, + { + "name": "payload", + "in": "body", + "schema": { + "type": "object", + "properties": { + "key": { + "type": "string", + "description": "Column Key.", + "default": null, + "x-example": null + }, + "required": { + "type": "boolean", + "description": "Is column required?", + "default": null, + "x-example": false + }, + "default": { + "type": "array", + "description": "Default value for column when not provided, array of two numbers [longitude, latitude], representing a single coordinate. Cannot be set when column is required.", + "default": null, + "x-example": "[1, 2]", + "x-nullable": true + } + }, + "required": [ + "key", + "required" + ] + } + } + ] + } + }, + "\/tablesdb\/{databaseId}\/tables\/{tableId}\/columns\/point\/{key}": { + "patch": { + "summary": "Update point column", + "operationId": "tablesDBUpdatePointColumn", + "consumes": [ + "application\/json" + ], + "produces": [ + "application\/json" + ], + "tags": [ + "tablesDB" + ], + "description": "Update a point column. Changing the `default` value will not update already existing rows.", + "responses": { + "200": { + "description": "ColumnPoint", + "schema": { + "$ref": "#\/definitions\/columnPoint" + } + } + }, + "deprecated": false, + "x-appwrite": { + "method": "updatePointColumn", + "group": "columns", + "weight": 406, + "cookies": false, + "type": "", + "demo": "tablesdb\/update-point-column.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/update-point-column.md", + "rate-limit": 0, + "rate-time": 3600, + "rate-key": "url:{url},ip:{ip}", + "scope": [ + "tables.write", + "collections.write" + ], + "platforms": [ + "server" + ], + "packaging": false, + "auth": { + "Project": [], + "Key": [] + } + }, + "security": [ + { + "Project": [], + "Key": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + }, + { + "name": "tableId", + "description": "Table ID. You can create a new table using the TablesDB service [server integration](https:\/\/appwrite.io\/docs\/server\/tablesdb#tablesDBCreate).", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + }, + { + "name": "key", + "description": "Column Key.", + "required": true, + "type": "string", + "in": "path" + }, + { + "name": "payload", + "in": "body", + "schema": { + "type": "object", + "properties": { + "required": { + "type": "boolean", + "description": "Is column required?", + "default": null, + "x-example": false + }, + "default": { + "type": "array", + "description": "Default value for column when not provided, array of two numbers [longitude, latitude], representing a single coordinate. Cannot be set when column is required.", + "default": null, + "x-example": "[1, 2]", + "x-nullable": true + }, + "newKey": { + "type": "string", + "description": "New Column Key.", + "default": null, + "x-example": null + } + }, + "required": [ + "required" + ] + } + } + ] + } + }, + "\/tablesdb\/{databaseId}\/tables\/{tableId}\/columns\/polygon": { + "post": { + "summary": "Create polygon column", + "operationId": "tablesDBCreatePolygonColumn", + "consumes": [ + "application\/json" + ], + "produces": [ + "application\/json" + ], + "tags": [ + "tablesDB" + ], + "description": "Create a geometric polygon column.", + "responses": { + "202": { + "description": "ColumnPolygon", + "schema": { + "$ref": "#\/definitions\/columnPolygon" + } + } + }, + "deprecated": false, + "x-appwrite": { + "method": "createPolygonColumn", + "group": "columns", + "weight": 407, + "cookies": false, + "type": "", + "demo": "tablesdb\/create-polygon-column.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/create-polygon-column.md", + "rate-limit": 0, + "rate-time": 3600, + "rate-key": "url:{url},ip:{ip}", + "scope": [ + "tables.write", + "collections.write" + ], + "platforms": [ + "server" + ], + "packaging": false, + "auth": { + "Project": [], + "Key": [] + } + }, + "security": [ + { + "Project": [], + "Key": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + }, + { + "name": "tableId", + "description": "Table ID. You can create a new table using the TablesDB service [server integration](https:\/\/appwrite.io\/docs\/server\/tablesdb#tablesDBCreate).", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + }, + { + "name": "payload", + "in": "body", + "schema": { + "type": "object", + "properties": { + "key": { + "type": "string", + "description": "Column Key.", + "default": null, + "x-example": null + }, + "required": { + "type": "boolean", + "description": "Is column required?", + "default": null, + "x-example": false + }, + "default": { + "type": "array", + "description": "Default value for column when not provided, three-dimensional array where the outer array holds one or more linear rings, [[[longitude, latitude], \u2026], \u2026], the first ring is the exterior boundary, any additional rings are interior holes, and each ring must start and end with the same coordinate pair. Cannot be set when column is required.", + "default": null, + "x-example": "[[[1, 2], [3, 4], [5, 6], [1, 2]]]", + "x-nullable": true + } + }, + "required": [ + "key", + "required" + ] + } + } + ] + } + }, + "\/tablesdb\/{databaseId}\/tables\/{tableId}\/columns\/polygon\/{key}": { + "patch": { + "summary": "Update polygon column", + "operationId": "tablesDBUpdatePolygonColumn", + "consumes": [ + "application\/json" + ], + "produces": [ + "application\/json" + ], + "tags": [ + "tablesDB" + ], + "description": "Update a polygon column. Changing the `default` value will not update already existing rows.", + "responses": { + "200": { + "description": "ColumnPolygon", + "schema": { + "$ref": "#\/definitions\/columnPolygon" + } + } + }, + "deprecated": false, + "x-appwrite": { + "method": "updatePolygonColumn", + "group": "columns", + "weight": 408, + "cookies": false, + "type": "", + "demo": "tablesdb\/update-polygon-column.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/update-polygon-column.md", + "rate-limit": 0, + "rate-time": 3600, + "rate-key": "url:{url},ip:{ip}", + "scope": [ + "tables.write", + "collections.write" + ], + "platforms": [ + "server" + ], + "packaging": false, + "auth": { + "Project": [], + "Key": [] + } + }, + "security": [ + { + "Project": [], + "Key": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + }, + { + "name": "tableId", + "description": "Table ID. You can create a new table using the TablesDB service [server integration](https:\/\/appwrite.io\/docs\/server\/tablesdb#tablesDBCreate).", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + }, + { + "name": "key", + "description": "Column Key.", + "required": true, + "type": "string", + "in": "path" + }, + { + "name": "payload", + "in": "body", + "schema": { + "type": "object", + "properties": { + "required": { + "type": "boolean", + "description": "Is column required?", + "default": null, + "x-example": false + }, + "default": { + "type": "array", + "description": "Default value for column when not provided, three-dimensional array where the outer array holds one or more linear rings, [[[longitude, latitude], \u2026], \u2026], the first ring is the exterior boundary, any additional rings are interior holes, and each ring must start and end with the same coordinate pair. Cannot be set when column is required.", + "default": null, + "x-example": "[[[1, 2], [3, 4], [5, 6], [1, 2]]]", + "x-nullable": true + }, + "newKey": { + "type": "string", + "description": "New Column Key.", + "default": null, + "x-example": null + } + }, + "required": [ + "required" + ] + } + } + ] + } + }, "\/tablesdb\/{databaseId}\/tables\/{tableId}\/columns\/relationship": { "post": { "summary": "Create relationship column", @@ -25169,15 +26541,18 @@ "x-appwrite": { "method": "createRelationshipColumn", "group": "columns", - "weight": 402, + "weight": 409, "cookies": false, "type": "", - "demo": "tables-d-b\/create-relationship-column.md", + "demo": "tablesdb\/create-relationship-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/create-relationship-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "tables.write", + "scope": [ + "tables.write", + "collections.write" + ], "platforms": [ "server" ], @@ -25303,15 +26678,18 @@ "x-appwrite": { "method": "createStringColumn", "group": "columns", - "weight": 404, + "weight": 411, "cookies": false, "type": "", - "demo": "tables-d-b\/create-string-column.md", + "demo": "tablesdb\/create-string-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/create-string-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "tables.write", + "scope": [ + "tables.write", + "collections.write" + ], "platforms": [ "server" ], @@ -25423,15 +26801,18 @@ "x-appwrite": { "method": "updateStringColumn", "group": "columns", - "weight": 405, + "weight": 412, "cookies": false, "type": "", - "demo": "tables-d-b\/update-string-column.md", + "demo": "tablesdb\/update-string-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/update-string-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "tables.write", + "scope": [ + "tables.write", + "collections.write" + ], "platforms": [ "server" ], @@ -25538,15 +26919,18 @@ "x-appwrite": { "method": "createUrlColumn", "group": "columns", - "weight": 406, + "weight": 413, "cookies": false, "type": "", - "demo": "tables-d-b\/create-url-column.md", + "demo": "tablesdb\/create-url-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/create-url-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "tables.write", + "scope": [ + "tables.write", + "collections.write" + ], "platforms": [ "server" ], @@ -25645,15 +27029,18 @@ "x-appwrite": { "method": "updateUrlColumn", "group": "columns", - "weight": 407, + "weight": 414, "cookies": false, "type": "", - "demo": "tables-d-b\/update-url-column.md", + "demo": "tablesdb\/update-url-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/update-url-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "tables.write", + "scope": [ + "tables.write", + "collections.write" + ], "platforms": [ "server" ], @@ -25783,15 +27170,18 @@ "x-appwrite": { "method": "getColumn", "group": "columns", - "weight": 385, + "weight": 386, "cookies": false, "type": "", - "demo": "tables-d-b\/get-column.md", + "demo": "tablesdb\/get-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/get-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "tables.read", + "scope": [ + "tables.read", + "collections.read" + ], "platforms": [ "server" ], @@ -25853,15 +27243,18 @@ "x-appwrite": { "method": "deleteColumn", "group": "columns", - "weight": 386, + "weight": 387, "cookies": false, "type": "", - "demo": "tables-d-b\/delete-column.md", + "demo": "tablesdb\/delete-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/delete-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "tables.write", + "scope": [ + "tables.write", + "collections.write" + ], "platforms": [ "server" ], @@ -25930,15 +27323,18 @@ "x-appwrite": { "method": "updateRelationshipColumn", "group": "columns", - "weight": 403, + "weight": 410, "cookies": false, "type": "", - "demo": "tables-d-b\/update-relationship-column.md", + "demo": "tablesdb\/update-relationship-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/update-relationship-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "tables.write", + "scope": [ + "tables.write", + "collections.write" + ], "platforms": [ "server" ], @@ -26033,15 +27429,18 @@ "x-appwrite": { "method": "listIndexes", "group": "indexes", - "weight": 411, + "weight": 418, "cookies": false, "type": "", - "demo": "tables-d-b\/list-indexes.md", + "demo": "tablesdb\/list-indexes.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/list-indexes.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "tables.read", + "scope": [ + "tables.read", + "collections.read" + ], "platforms": [ "server" ], @@ -26113,15 +27512,18 @@ "x-appwrite": { "method": "createIndex", "group": "indexes", - "weight": 408, + "weight": 415, "cookies": false, "type": "", - "demo": "tables-d-b\/create-index.md", + "demo": "tablesdb\/create-index.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/create-index.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "tables.write", + "scope": [ + "tables.write", + "collections.write" + ], "platforms": [ "server" ], @@ -26174,7 +27576,8 @@ "enum": [ "key", "fulltext", - "unique" + "unique", + "spatial" ], "x-enum-name": "IndexType", "x-enum-keys": [] @@ -26241,15 +27644,18 @@ "x-appwrite": { "method": "getIndex", "group": "indexes", - "weight": 409, + "weight": 416, "cookies": false, "type": "", - "demo": "tables-d-b\/get-index.md", + "demo": "tablesdb\/get-index.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/get-index.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "tables.read", + "scope": [ + "tables.read", + "collections.read" + ], "platforms": [ "server" ], @@ -26311,15 +27717,18 @@ "x-appwrite": { "method": "deleteIndex", "group": "indexes", - "weight": 410, + "weight": 417, "cookies": false, "type": "", - "demo": "tables-d-b\/delete-index.md", + "demo": "tablesdb\/delete-index.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/delete-index.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "tables.write", + "scope": [ + "tables.write", + "collections.write" + ], "platforms": [ "server" ], @@ -26386,15 +27795,18 @@ "x-appwrite": { "method": "listRows", "group": "rows", - "weight": 420, + "weight": 427, "cookies": false, "type": "", - "demo": "tables-d-b\/list-rows.md", + "demo": "tablesdb\/list-rows.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/list-rows.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "rows.read", + "scope": [ + "rows.read", + "documents.read" + ], "platforms": [ "client", "server" @@ -26469,15 +27881,18 @@ "x-appwrite": { "method": "createRow", "group": "rows", - "weight": 412, + "weight": 419, "cookies": false, "type": "", - "demo": "tables-d-b\/create-row.md", + "demo": "tablesdb\/create-row.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/create-row.md", "rate-limit": 120, "rate-time": 60, "rate-key": "ip:{ip},method:{method},url:{url},userId:{userId}", - "scope": "rows.write", + "scope": [ + "rows.write", + "documents.write" + ], "platforms": [ "client", "server" @@ -26512,7 +27927,7 @@ } ], "description": "Create a new Row. Before using this route, you should create a new table resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/tablesdb#tablesDBCreateTable) API or directly from your database console.", - "demo": "tables-d-b\/create-row.md" + "demo": "tablesdb\/create-row.md" }, { "name": "createRows", @@ -26539,7 +27954,7 @@ } ], "description": "Create new Rows. Before using this route, you should create a new table resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/tablesdb#tablesDBCreateTable) API or directly from your database console.", - "demo": "tables-d-b\/create-rows.md" + "demo": "tablesdb\/create-rows.md" } ], "auth": { @@ -26588,7 +28003,7 @@ "type": "object", "description": "Row data as JSON object.", "default": [], - "x-example": "{}" + "x-example": "{\"username\":\"walter.obrien\",\"email\":\"walter.obrien@example.com\",\"fullName\":\"Walter O'Brien\",\"age\":30,\"isAdmin\":false}" }, "permissions": { "type": "array", @@ -26601,7 +28016,7 @@ }, "rows": { "type": "array", - "description": "Array of documents data as JSON objects.", + "description": "Array of rows data as JSON objects.", "default": [], "x-example": null, "items": { @@ -26614,7 +28029,7 @@ ] }, "put": { - "summary": "Create or update rows", + "summary": "Upsert rows", "operationId": "tablesDBUpsertRows", "consumes": [ "application\/json" @@ -26638,15 +28053,18 @@ "x-appwrite": { "method": "upsertRows", "group": "rows", - "weight": 417, + "weight": 424, "cookies": false, "type": "", - "demo": "tables-d-b\/upsert-rows.md", + "demo": "tablesdb\/upsert-rows.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/upsert-rows.md", "rate-limit": 120, "rate-time": 60, "rate-key": "ip:{ip},method:{method},url:{url},userId:{userId}", - "scope": "rows.write", + "scope": [ + "rows.write", + "documents.write" + ], "platforms": [ "console", "server" @@ -26678,7 +28096,7 @@ } ], "description": "Create or update Rows. Before using this route, you should create a new table resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/tablesdb#tablesDBCreateTable) API or directly from your database console.\n", - "demo": "tables-d-b\/upsert-rows.md" + "demo": "tablesdb\/upsert-rows.md" } ], "auth": { @@ -26757,15 +28175,18 @@ "x-appwrite": { "method": "updateRows", "group": "rows", - "weight": 415, + "weight": 422, "cookies": false, "type": "", - "demo": "tables-d-b\/update-rows.md", + "demo": "tablesdb\/update-rows.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/update-rows.md", "rate-limit": 120, "rate-time": 60, "rate-key": "ip:{ip},method:{method},url:{url},userId:{userId}", - "scope": "rows.write", + "scope": [ + "rows.write", + "documents.write" + ], "platforms": [ "console", "server" @@ -26850,15 +28271,18 @@ "x-appwrite": { "method": "deleteRows", "group": "rows", - "weight": 419, + "weight": 426, "cookies": false, "type": "", - "demo": "tables-d-b\/delete-rows.md", + "demo": "tablesdb\/delete-rows.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/delete-rows.md", "rate-limit": 60, "rate-time": 60, "rate-key": "ip:{ip},method:{method},url:{url},userId:{userId}", - "scope": "rows.write", + "scope": [ + "rows.write", + "documents.write" + ], "platforms": [ "console", "server" @@ -26937,15 +28361,18 @@ "x-appwrite": { "method": "getRow", "group": "rows", - "weight": 413, + "weight": 420, "cookies": false, "type": "", - "demo": "tables-d-b\/get-row.md", + "demo": "tablesdb\/get-row.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/get-row.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "rows.read", + "scope": [ + "rows.read", + "documents.read" + ], "platforms": [ "client", "server" @@ -27004,7 +28431,7 @@ ] }, "put": { - "summary": "Create or update a row", + "summary": "Upsert a row", "operationId": "tablesDBUpsertRow", "consumes": [ "application\/json" @@ -27028,15 +28455,18 @@ "x-appwrite": { "method": "upsertRow", "group": "rows", - "weight": 416, + "weight": 423, "cookies": false, "type": "", - "demo": "tables-d-b\/upsert-row.md", + "demo": "tablesdb\/upsert-row.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/upsert-row.md", "rate-limit": 120, "rate-time": 60, "rate-key": "ip:{ip},method:{method},url:{url},userId:{userId}", - "scope": "rows.write", + "scope": [ + "rows.write", + "documents.write" + ], "platforms": [ "client", "server" @@ -27070,7 +28500,7 @@ } ], "description": "Create or update a Row. Before using this route, you should create a new table resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/tablesdb#tablesDBCreateTable) API or directly from your database console.", - "demo": "tables-d-b\/upsert-row.md" + "demo": "tablesdb\/upsert-row.md" } ], "auth": { @@ -27162,15 +28592,18 @@ "x-appwrite": { "method": "updateRow", "group": "rows", - "weight": 414, + "weight": 421, "cookies": false, "type": "", - "demo": "tables-d-b\/update-row.md", + "demo": "tablesdb\/update-row.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/update-row.md", "rate-limit": 120, "rate-time": 60, "rate-key": "ip:{ip},method:{method},url:{url},userId:{userId}", - "scope": "rows.write", + "scope": [ + "rows.write", + "documents.write" + ], "platforms": [ "client", "server" @@ -27260,15 +28693,18 @@ "x-appwrite": { "method": "deleteRow", "group": "rows", - "weight": 418, + "weight": 425, "cookies": false, "type": "", - "demo": "tables-d-b\/delete-row.md", + "demo": "tablesdb\/delete-row.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/delete-row.md", "rate-limit": 60, "rate-time": 60, "rate-key": "ip:{ip},method:{method},url:{url},userId:{userId}", - "scope": "rows.write", + "scope": [ + "rows.write", + "documents.write" + ], "platforms": [ "client", "server" @@ -27341,15 +28777,18 @@ "x-appwrite": { "method": "decrementRowColumn", "group": "rows", - "weight": 423, + "weight": 430, "cookies": false, "type": "", - "demo": "tables-d-b\/decrement-row-column.md", + "demo": "tablesdb\/decrement-row-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/decrement-row-column.md", "rate-limit": 120, "rate-time": 60, "rate-key": "ip:{ip},method:{method},url:{url},userId:{userId}", - "scope": "rows.write", + "scope": [ + "rows.write", + "documents.write" + ], "platforms": [ "client", "server", @@ -27451,15 +28890,18 @@ "x-appwrite": { "method": "incrementRowColumn", "group": "rows", - "weight": 422, + "weight": 429, "cookies": false, "type": "", - "demo": "tables-d-b\/increment-row-column.md", + "demo": "tablesdb\/increment-row-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/increment-row-column.md", "rate-limit": 120, "rate-time": 60, "rate-key": "ip:{ip},method:{method},url:{url},userId:{userId}", - "scope": "rows.write", + "scope": [ + "rows.write", + "documents.write" + ], "platforms": [ "client", "server", @@ -27559,7 +29001,7 @@ "x-appwrite": { "method": "list", "group": "teams", - "weight": 172, + "weight": 171, "cookies": false, "type": "", "demo": "teams\/list.md", @@ -27635,7 +29077,7 @@ "x-appwrite": { "method": "create", "group": "teams", - "weight": 171, + "weight": 170, "cookies": false, "type": "", "demo": "teams\/create.md", @@ -27726,7 +29168,7 @@ "x-appwrite": { "method": "get", "group": "teams", - "weight": 173, + "weight": 172, "cookies": false, "type": "", "demo": "teams\/get.md", @@ -27789,7 +29231,7 @@ "x-appwrite": { "method": "updateName", "group": "teams", - "weight": 175, + "weight": 174, "cookies": false, "type": "", "demo": "teams\/update-name.md", @@ -27865,7 +29307,7 @@ "x-appwrite": { "method": "delete", "group": "teams", - "weight": 177, + "weight": 176, "cookies": false, "type": "", "demo": "teams\/delete.md", @@ -27928,7 +29370,7 @@ "x-appwrite": { "method": "listMemberships", "group": "memberships", - "weight": 179, + "weight": 178, "cookies": false, "type": "", "demo": "teams\/list-memberships.md", @@ -28012,7 +29454,7 @@ "x-appwrite": { "method": "createMembership", "group": "memberships", - "weight": 178, + "weight": 177, "cookies": false, "type": "", "demo": "teams\/create-membership.md", @@ -28126,7 +29568,7 @@ "x-appwrite": { "method": "getMembership", "group": "memberships", - "weight": 180, + "weight": 179, "cookies": false, "type": "", "demo": "teams\/get-membership.md", @@ -28197,7 +29639,7 @@ "x-appwrite": { "method": "updateMembership", "group": "memberships", - "weight": 181, + "weight": 180, "cookies": false, "type": "", "demo": "teams\/update-membership.md", @@ -28284,7 +29726,7 @@ "x-appwrite": { "method": "deleteMembership", "group": "memberships", - "weight": 183, + "weight": 182, "cookies": false, "type": "", "demo": "teams\/delete-membership.md", @@ -28357,7 +29799,7 @@ "x-appwrite": { "method": "updateMembershipStatus", "group": "memberships", - "weight": 182, + "weight": 181, "cookies": false, "type": "", "demo": "teams\/update-membership-status.md", @@ -28452,7 +29894,7 @@ "x-appwrite": { "method": "getPrefs", "group": "teams", - "weight": 174, + "weight": 173, "cookies": false, "type": "", "demo": "teams\/get-prefs.md", @@ -28514,7 +29956,7 @@ "x-appwrite": { "method": "updatePrefs", "group": "teams", - "weight": 176, + "weight": 175, "cookies": false, "type": "", "demo": "teams\/update-prefs.md", @@ -28594,7 +30036,7 @@ "x-appwrite": { "method": "list", "group": "files", - "weight": 495, + "weight": 507, "cookies": false, "type": "", "demo": "tokens\/list.md", @@ -28675,7 +30117,7 @@ "x-appwrite": { "method": "createFileToken", "group": "files", - "weight": 493, + "weight": 505, "cookies": false, "type": "", "demo": "tokens\/create-file-token.md", @@ -28760,7 +30202,7 @@ "x-appwrite": { "method": "get", "group": "tokens", - "weight": 494, + "weight": 506, "cookies": false, "type": "", "demo": "tokens\/get.md", @@ -28821,7 +30263,7 @@ "x-appwrite": { "method": "update", "group": "tokens", - "weight": 496, + "weight": 508, "cookies": false, "type": "", "demo": "tokens\/update.md", @@ -28893,7 +30335,7 @@ "x-appwrite": { "method": "delete", "group": "tokens", - "weight": 497, + "weight": 509, "cookies": false, "type": "", "demo": "tokens\/delete.md", @@ -28954,7 +30396,7 @@ "x-appwrite": { "method": "list", "group": "users", - "weight": 194, + "weight": 193, "cookies": false, "type": "", "demo": "users\/list.md", @@ -29027,7 +30469,7 @@ "x-appwrite": { "method": "create", "group": "users", - "weight": 185, + "weight": 184, "cookies": false, "type": "", "demo": "users\/create.md", @@ -29123,10 +30565,10 @@ "x-appwrite": { "method": "createArgon2User", "group": "users", - "weight": 188, + "weight": 187, "cookies": false, "type": "", - "demo": "users\/create-argon2user.md", + "demo": "users\/create-argon-2-user.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/users\/create-argon2-user.md", "rate-limit": 0, "rate-time": 3600, @@ -29215,7 +30657,7 @@ "x-appwrite": { "method": "createBcryptUser", "group": "users", - "weight": 186, + "weight": 185, "cookies": false, "type": "", "demo": "users\/create-bcrypt-user.md", @@ -29305,7 +30747,7 @@ "x-appwrite": { "method": "listIdentities", "group": "identities", - "weight": 202, + "weight": 201, "cookies": false, "type": "", "demo": "users\/list-identities.md", @@ -29375,7 +30817,7 @@ "x-appwrite": { "method": "deleteIdentity", "group": "identities", - "weight": 225, + "weight": 224, "cookies": false, "type": "", "demo": "users\/delete-identity.md", @@ -29437,10 +30879,10 @@ "x-appwrite": { "method": "createMD5User", "group": "users", - "weight": 187, + "weight": 186, "cookies": false, "type": "", - "demo": "users\/create-m-d5user.md", + "demo": "users\/create-md-5-user.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/users\/create-md5-user.md", "rate-limit": 0, "rate-time": 3600, @@ -29529,10 +30971,10 @@ "x-appwrite": { "method": "createPHPassUser", "group": "users", - "weight": 190, + "weight": 189, "cookies": false, "type": "", - "demo": "users\/create-p-h-pass-user.md", + "demo": "users\/create-ph-pass-user.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/users\/create-phpass-user.md", "rate-limit": 0, "rate-time": 3600, @@ -29621,7 +31063,7 @@ "x-appwrite": { "method": "createScryptUser", "group": "users", - "weight": 191, + "weight": 190, "cookies": false, "type": "", "demo": "users\/create-scrypt-user.md", @@ -29748,7 +31190,7 @@ "x-appwrite": { "method": "createScryptModifiedUser", "group": "users", - "weight": 192, + "weight": 191, "cookies": false, "type": "", "demo": "users\/create-scrypt-modified-user.md", @@ -29861,10 +31303,10 @@ "x-appwrite": { "method": "createSHAUser", "group": "users", - "weight": 189, + "weight": 188, "cookies": false, "type": "", - "demo": "users\/create-s-h-a-user.md", + "demo": "users\/create-sha-user.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/users\/create-sha-user.md", "rate-limit": 0, "rate-time": 3600, @@ -29972,7 +31414,7 @@ "x-appwrite": { "method": "get", "group": "users", - "weight": 195, + "weight": 194, "cookies": false, "type": "", "demo": "users\/get.md", @@ -30027,7 +31469,7 @@ "x-appwrite": { "method": "delete", "group": "users", - "weight": 223, + "weight": 222, "cookies": false, "type": "", "demo": "users\/delete.md", @@ -30089,7 +31531,7 @@ "x-appwrite": { "method": "updateEmail", "group": "users", - "weight": 208, + "weight": 207, "cookies": false, "type": "", "demo": "users\/update-email.md", @@ -30169,10 +31611,10 @@ "x-appwrite": { "method": "createJWT", "group": "sessions", - "weight": 226, + "weight": 225, "cookies": false, "type": "", - "demo": "users\/create-j-w-t.md", + "demo": "users\/create-jwt.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/users\/create-user-jwt.md", "rate-limit": 0, "rate-time": 3600, @@ -30252,7 +31694,7 @@ "x-appwrite": { "method": "updateLabels", "group": "users", - "weight": 204, + "weight": 203, "cookies": false, "type": "", "demo": "users\/update-labels.md", @@ -30333,7 +31775,7 @@ "x-appwrite": { "method": "listLogs", "group": "logs", - "weight": 200, + "weight": 199, "cookies": false, "type": "", "demo": "users\/list-logs.md", @@ -30405,7 +31847,7 @@ "x-appwrite": { "method": "listMemberships", "group": "memberships", - "weight": 199, + "weight": 198, "cookies": false, "type": "", "demo": "users\/list-memberships.md", @@ -30488,7 +31930,7 @@ "x-appwrite": { "method": "updateMfa", "group": "users", - "weight": 213, + "weight": 212, "cookies": false, "type": "", "demo": "users\/update-mfa.md", @@ -30558,7 +32000,7 @@ } ], "description": "Enable or disable MFA on a user account.", - "demo": "users\/update-m-f-a.md" + "demo": "users\/update-mfa.md" } ], "auth": { @@ -30623,7 +32065,7 @@ "x-appwrite": { "method": "deleteMfaAuthenticator", "group": "mfa", - "weight": 218, + "weight": 217, "cookies": false, "type": "", "demo": "users\/delete-mfa-authenticator.md", @@ -30691,7 +32133,7 @@ } ], "description": "Delete an authenticator app.", - "demo": "users\/delete-m-f-a-authenticator.md" + "demo": "users\/delete-mfa-authenticator.md" } ], "auth": { @@ -30754,7 +32196,7 @@ "x-appwrite": { "method": "listMfaFactors", "group": "mfa", - "weight": 214, + "weight": 213, "cookies": false, "type": "", "demo": "users\/list-mfa-factors.md", @@ -30820,7 +32262,7 @@ } ], "description": "List the factors available on the account to be used as a MFA challange.", - "demo": "users\/list-m-f-a-factors.md" + "demo": "users\/list-mfa-factors.md" } ], "auth": { @@ -30870,7 +32312,7 @@ "x-appwrite": { "method": "getMfaRecoveryCodes", "group": "mfa", - "weight": 215, + "weight": 214, "cookies": false, "type": "", "demo": "users\/get-mfa-recovery-codes.md", @@ -30936,7 +32378,7 @@ } ], "description": "Get recovery codes that can be used as backup for MFA flow by User ID. Before getting codes, they must be generated using [createMfaRecoveryCodes](\/docs\/references\/cloud\/client-web\/account#createMfaRecoveryCodes) method.", - "demo": "users\/get-m-f-a-recovery-codes.md" + "demo": "users\/get-mfa-recovery-codes.md" } ], "auth": { @@ -30986,7 +32428,7 @@ "x-appwrite": { "method": "updateMfaRecoveryCodes", "group": "mfa", - "weight": 217, + "weight": 216, "cookies": false, "type": "", "demo": "users\/update-mfa-recovery-codes.md", @@ -31052,7 +32494,7 @@ } ], "description": "Regenerate recovery codes that can be used as backup for MFA flow by User ID. Before regenerating codes, they must be first generated using [createMfaRecoveryCodes](\/docs\/references\/cloud\/client-web\/account#createMfaRecoveryCodes) method.", - "demo": "users\/update-m-f-a-recovery-codes.md" + "demo": "users\/update-mfa-recovery-codes.md" } ], "auth": { @@ -31102,7 +32544,7 @@ "x-appwrite": { "method": "createMfaRecoveryCodes", "group": "mfa", - "weight": 216, + "weight": 215, "cookies": false, "type": "", "demo": "users\/create-mfa-recovery-codes.md", @@ -31168,7 +32610,7 @@ } ], "description": "Generate recovery codes used as backup for MFA flow for User ID. Recovery codes can be used as a MFA verification type in [createMfaChallenge](\/docs\/references\/cloud\/client-web\/account#createMfaChallenge) method by client SDK.", - "demo": "users\/create-m-f-a-recovery-codes.md" + "demo": "users\/create-mfa-recovery-codes.md" } ], "auth": { @@ -31220,7 +32662,7 @@ "x-appwrite": { "method": "updateName", "group": "users", - "weight": 206, + "weight": 205, "cookies": false, "type": "", "demo": "users\/update-name.md", @@ -31300,7 +32742,7 @@ "x-appwrite": { "method": "updatePassword", "group": "users", - "weight": 207, + "weight": 206, "cookies": false, "type": "", "demo": "users\/update-password.md", @@ -31380,7 +32822,7 @@ "x-appwrite": { "method": "updatePhone", "group": "users", - "weight": 209, + "weight": 208, "cookies": false, "type": "", "demo": "users\/update-phone.md", @@ -31458,7 +32900,7 @@ "x-appwrite": { "method": "getPrefs", "group": "users", - "weight": 196, + "weight": 195, "cookies": false, "type": "", "demo": "users\/get-prefs.md", @@ -31518,7 +32960,7 @@ "x-appwrite": { "method": "updatePrefs", "group": "users", - "weight": 211, + "weight": 210, "cookies": false, "type": "", "demo": "users\/update-prefs.md", @@ -31596,7 +33038,7 @@ "x-appwrite": { "method": "listSessions", "group": "sessions", - "weight": 198, + "weight": 197, "cookies": false, "type": "", "demo": "users\/list-sessions.md", @@ -31656,7 +33098,7 @@ "x-appwrite": { "method": "createSession", "group": "sessions", - "weight": 219, + "weight": 218, "cookies": false, "type": "", "demo": "users\/create-session.md", @@ -31711,7 +33153,7 @@ "x-appwrite": { "method": "deleteSessions", "group": "sessions", - "weight": 222, + "weight": 221, "cookies": false, "type": "", "demo": "users\/delete-sessions.md", @@ -31768,7 +33210,7 @@ "x-appwrite": { "method": "deleteSession", "group": "sessions", - "weight": 221, + "weight": 220, "cookies": false, "type": "", "demo": "users\/delete-session.md", @@ -31838,7 +33280,7 @@ "x-appwrite": { "method": "updateStatus", "group": "users", - "weight": 203, + "weight": 202, "cookies": false, "type": "", "demo": "users\/update-status.md", @@ -31916,7 +33358,7 @@ "x-appwrite": { "method": "listTargets", "group": "targets", - "weight": 201, + "weight": 200, "cookies": false, "type": "", "demo": "users\/list-targets.md", @@ -31989,7 +33431,7 @@ "x-appwrite": { "method": "createTarget", "group": "targets", - "weight": 193, + "weight": 192, "cookies": false, "type": "", "demo": "users\/create-target.md", @@ -32101,7 +33543,7 @@ "x-appwrite": { "method": "getTarget", "group": "targets", - "weight": 197, + "weight": 196, "cookies": false, "type": "", "demo": "users\/get-target.md", @@ -32170,7 +33612,7 @@ "x-appwrite": { "method": "updateTarget", "group": "targets", - "weight": 212, + "weight": 211, "cookies": false, "type": "", "demo": "users\/update-target.md", @@ -32261,7 +33703,7 @@ "x-appwrite": { "method": "deleteTarget", "group": "targets", - "weight": 224, + "weight": 223, "cookies": false, "type": "", "demo": "users\/delete-target.md", @@ -32332,7 +33774,7 @@ "x-appwrite": { "method": "createToken", "group": "sessions", - "weight": 220, + "weight": 219, "cookies": false, "type": "", "demo": "users\/create-token.md", @@ -32415,7 +33857,7 @@ "x-appwrite": { "method": "updateEmailVerification", "group": "users", - "weight": 210, + "weight": 209, "cookies": false, "type": "", "demo": "users\/update-email-verification.md", @@ -32495,7 +33937,7 @@ "x-appwrite": { "method": "updatePhoneVerification", "group": "users", - "weight": 205, + "weight": 204, "cookies": false, "type": "", "demo": "users\/update-phone-verification.md", @@ -33779,6 +35221,15 @@ { "$ref": "#\/definitions\/attributeRelationship" }, + { + "$ref": "#\/definitions\/attributePoint" + }, + { + "$ref": "#\/definitions\/attributeLine" + }, + { + "$ref": "#\/definitions\/attributePolygon" + }, { "$ref": "#\/definitions\/attributeString" } @@ -33865,6 +35316,15 @@ { "$ref": "#\/definitions\/attributeRelationship" }, + { + "$ref": "#\/definitions\/attributePoint" + }, + { + "$ref": "#\/definitions\/attributeLine" + }, + { + "$ref": "#\/definitions\/attributePolygon" + }, { "$ref": "#\/definitions\/attributeString" } @@ -34741,6 +36201,291 @@ "side": "parent|child" } }, + "attributePoint": { + "description": "AttributePoint", + "type": "object", + "properties": { + "key": { + "type": "string", + "description": "Attribute Key.", + "x-example": "fullName" + }, + "type": { + "type": "string", + "description": "Attribute type.", + "x-example": "string" + }, + "status": { + "type": "string", + "description": "Attribute status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`", + "x-example": "available" + }, + "error": { + "type": "string", + "description": "Error message. Displays error generated on failure of creating or deleting an attribute.", + "x-example": "string" + }, + "required": { + "type": "boolean", + "description": "Is attribute required?", + "x-example": true + }, + "array": { + "type": "boolean", + "description": "Is attribute an array?", + "x-example": false, + "x-nullable": true + }, + "$createdAt": { + "type": "string", + "description": "Attribute creation date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "$updatedAt": { + "type": "string", + "description": "Attribute update date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "default": { + "type": "array", + "description": "Default value for attribute when not provided. Cannot be set when attribute is required.", + "x-example": [ + 0, + 0 + ], + "x-nullable": true + } + }, + "required": [ + "key", + "type", + "status", + "error", + "required", + "$createdAt", + "$updatedAt" + ], + "example": { + "key": "fullName", + "type": "string", + "status": "available", + "error": "string", + "required": true, + "array": false, + "$createdAt": "2020-10-15T06:38:00.000+00:00", + "$updatedAt": "2020-10-15T06:38:00.000+00:00", + "default": [ + 0, + 0 + ] + } + }, + "attributeLine": { + "description": "AttributeLine", + "type": "object", + "properties": { + "key": { + "type": "string", + "description": "Attribute Key.", + "x-example": "fullName" + }, + "type": { + "type": "string", + "description": "Attribute type.", + "x-example": "string" + }, + "status": { + "type": "string", + "description": "Attribute status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`", + "x-example": "available" + }, + "error": { + "type": "string", + "description": "Error message. Displays error generated on failure of creating or deleting an attribute.", + "x-example": "string" + }, + "required": { + "type": "boolean", + "description": "Is attribute required?", + "x-example": true + }, + "array": { + "type": "boolean", + "description": "Is attribute an array?", + "x-example": false, + "x-nullable": true + }, + "$createdAt": { + "type": "string", + "description": "Attribute creation date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "$updatedAt": { + "type": "string", + "description": "Attribute update date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "default": { + "type": "array", + "description": "Default value for attribute when not provided. Cannot be set when attribute is required.", + "x-example": [ + [ + 0, + 0 + ], + [ + 1, + 1 + ] + ], + "x-nullable": true + } + }, + "required": [ + "key", + "type", + "status", + "error", + "required", + "$createdAt", + "$updatedAt" + ], + "example": { + "key": "fullName", + "type": "string", + "status": "available", + "error": "string", + "required": true, + "array": false, + "$createdAt": "2020-10-15T06:38:00.000+00:00", + "$updatedAt": "2020-10-15T06:38:00.000+00:00", + "default": [ + [ + 0, + 0 + ], + [ + 1, + 1 + ] + ] + } + }, + "attributePolygon": { + "description": "AttributePolygon", + "type": "object", + "properties": { + "key": { + "type": "string", + "description": "Attribute Key.", + "x-example": "fullName" + }, + "type": { + "type": "string", + "description": "Attribute type.", + "x-example": "string" + }, + "status": { + "type": "string", + "description": "Attribute status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`", + "x-example": "available" + }, + "error": { + "type": "string", + "description": "Error message. Displays error generated on failure of creating or deleting an attribute.", + "x-example": "string" + }, + "required": { + "type": "boolean", + "description": "Is attribute required?", + "x-example": true + }, + "array": { + "type": "boolean", + "description": "Is attribute an array?", + "x-example": false, + "x-nullable": true + }, + "$createdAt": { + "type": "string", + "description": "Attribute creation date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "$updatedAt": { + "type": "string", + "description": "Attribute update date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "default": { + "type": "array", + "description": "Default value for attribute when not provided. Cannot be set when attribute is required.", + "x-example": [ + [ + [ + 0, + 0 + ], + [ + 0, + 10 + ] + ], + [ + [ + 10, + 10 + ], + [ + 0, + 0 + ] + ] + ], + "x-nullable": true + } + }, + "required": [ + "key", + "type", + "status", + "error", + "required", + "$createdAt", + "$updatedAt" + ], + "example": { + "key": "fullName", + "type": "string", + "status": "available", + "error": "string", + "required": true, + "array": false, + "$createdAt": "2020-10-15T06:38:00.000+00:00", + "$updatedAt": "2020-10-15T06:38:00.000+00:00", + "default": [ + [ + [ + 0, + 0 + ], + [ + 0, + 10 + ] + ], + [ + [ + 10, + 10 + ], + [ + 0, + 0 + ] + ] + ] + } + }, "table": { "description": "Table", "type": "object", @@ -34822,6 +36567,15 @@ { "$ref": "#\/definitions\/columnRelationship" }, + { + "$ref": "#\/definitions\/columnPoint" + }, + { + "$ref": "#\/definitions\/columnLine" + }, + { + "$ref": "#\/definitions\/columnPolygon" + }, { "$ref": "#\/definitions\/columnString" } @@ -34908,6 +36662,15 @@ { "$ref": "#\/definitions\/columnRelationship" }, + { + "$ref": "#\/definitions\/columnPoint" + }, + { + "$ref": "#\/definitions\/columnLine" + }, + { + "$ref": "#\/definitions\/columnPolygon" + }, { "$ref": "#\/definitions\/columnString" } @@ -35784,6 +37547,291 @@ "side": "parent|child" } }, + "columnPoint": { + "description": "ColumnPoint", + "type": "object", + "properties": { + "key": { + "type": "string", + "description": "Column Key.", + "x-example": "fullName" + }, + "type": { + "type": "string", + "description": "Column type.", + "x-example": "string" + }, + "status": { + "type": "string", + "description": "Column status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`", + "x-example": "available" + }, + "error": { + "type": "string", + "description": "Error message. Displays error generated on failure of creating or deleting an column.", + "x-example": "string" + }, + "required": { + "type": "boolean", + "description": "Is column required?", + "x-example": true + }, + "array": { + "type": "boolean", + "description": "Is column an array?", + "x-example": false, + "x-nullable": true + }, + "$createdAt": { + "type": "string", + "description": "Column creation date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "$updatedAt": { + "type": "string", + "description": "Column update date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "default": { + "type": "array", + "description": "Default value for column when not provided. Cannot be set when column is required.", + "x-example": [ + 0, + 0 + ], + "x-nullable": true + } + }, + "required": [ + "key", + "type", + "status", + "error", + "required", + "$createdAt", + "$updatedAt" + ], + "example": { + "key": "fullName", + "type": "string", + "status": "available", + "error": "string", + "required": true, + "array": false, + "$createdAt": "2020-10-15T06:38:00.000+00:00", + "$updatedAt": "2020-10-15T06:38:00.000+00:00", + "default": [ + 0, + 0 + ] + } + }, + "columnLine": { + "description": "ColumnLine", + "type": "object", + "properties": { + "key": { + "type": "string", + "description": "Column Key.", + "x-example": "fullName" + }, + "type": { + "type": "string", + "description": "Column type.", + "x-example": "string" + }, + "status": { + "type": "string", + "description": "Column status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`", + "x-example": "available" + }, + "error": { + "type": "string", + "description": "Error message. Displays error generated on failure of creating or deleting an column.", + "x-example": "string" + }, + "required": { + "type": "boolean", + "description": "Is column required?", + "x-example": true + }, + "array": { + "type": "boolean", + "description": "Is column an array?", + "x-example": false, + "x-nullable": true + }, + "$createdAt": { + "type": "string", + "description": "Column creation date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "$updatedAt": { + "type": "string", + "description": "Column update date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "default": { + "type": "array", + "description": "Default value for column when not provided. Cannot be set when column is required.", + "x-example": [ + [ + 0, + 0 + ], + [ + 1, + 1 + ] + ], + "x-nullable": true + } + }, + "required": [ + "key", + "type", + "status", + "error", + "required", + "$createdAt", + "$updatedAt" + ], + "example": { + "key": "fullName", + "type": "string", + "status": "available", + "error": "string", + "required": true, + "array": false, + "$createdAt": "2020-10-15T06:38:00.000+00:00", + "$updatedAt": "2020-10-15T06:38:00.000+00:00", + "default": [ + [ + 0, + 0 + ], + [ + 1, + 1 + ] + ] + } + }, + "columnPolygon": { + "description": "ColumnPolygon", + "type": "object", + "properties": { + "key": { + "type": "string", + "description": "Column Key.", + "x-example": "fullName" + }, + "type": { + "type": "string", + "description": "Column type.", + "x-example": "string" + }, + "status": { + "type": "string", + "description": "Column status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`", + "x-example": "available" + }, + "error": { + "type": "string", + "description": "Error message. Displays error generated on failure of creating or deleting an column.", + "x-example": "string" + }, + "required": { + "type": "boolean", + "description": "Is column required?", + "x-example": true + }, + "array": { + "type": "boolean", + "description": "Is column an array?", + "x-example": false, + "x-nullable": true + }, + "$createdAt": { + "type": "string", + "description": "Column creation date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "$updatedAt": { + "type": "string", + "description": "Column update date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "default": { + "type": "array", + "description": "Default value for column when not provided. Cannot be set when column is required.", + "x-example": [ + [ + [ + 0, + 0 + ], + [ + 0, + 10 + ] + ], + [ + [ + 10, + 10 + ], + [ + 0, + 0 + ] + ] + ], + "x-nullable": true + } + }, + "required": [ + "key", + "type", + "status", + "error", + "required", + "$createdAt", + "$updatedAt" + ], + "example": { + "key": "fullName", + "type": "string", + "status": "available", + "error": "string", + "required": true, + "array": false, + "$createdAt": "2020-10-15T06:38:00.000+00:00", + "$updatedAt": "2020-10-15T06:38:00.000+00:00", + "default": [ + [ + [ + 0, + 0 + ], + [ + 0, + 10 + ] + ], + [ + [ + 10, + 10 + ], + [ + 0, + 0 + ] + ] + ] + } + }, "index": { "description": "Index", "type": "object", @@ -35977,17 +38025,20 @@ "type": "integer", "description": "Row automatically incrementing ID.", "x-example": 1, - "format": "int32" + "format": "int32", + "readOnly": true }, "$tableId": { "type": "string", "description": "Table ID.", - "x-example": "5e5ea5c15117e" + "x-example": "5e5ea5c15117e", + "readOnly": true }, "$databaseId": { "type": "string", "description": "Database ID.", - "x-example": "5e5ea5c15117e" + "x-example": "5e5ea5c15117e", + "readOnly": true }, "$createdAt": { "type": "string", diff --git a/app/config/specs/swagger2-latest-client.json b/app/config/specs/swagger2-latest-client.json index 29cfd281c1..55911e9556 100644 --- a/app/config/specs/swagger2-latest-client.json +++ b/app/config/specs/swagger2-latest-client.json @@ -442,7 +442,7 @@ "weight": 30, "cookies": false, "type": "", - "demo": "account\/create-j-w-t.md", + "demo": "account\/create-jwt.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/account\/create-jwt.md", "rate-limit": 100, "rate-time": 3600, @@ -558,7 +558,7 @@ "weight": 45, "cookies": false, "type": "", - "demo": "account\/update-m-f-a.md", + "demo": "account\/update-mfa.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/account\/update-mfa.md", "rate-limit": 0, "rate-time": 3600, @@ -693,7 +693,7 @@ } ], "description": "Add an authenticator app to be used as an MFA factor. Verify the authenticator using the [verify authenticator](\/docs\/references\/cloud\/client-web\/account#updateMfaAuthenticator) method.", - "demo": "account\/create-m-f-a-authenticator.md" + "demo": "account\/create-mfa-authenticator.md" } ], "auth": { @@ -817,7 +817,7 @@ } ], "description": "Verify an authenticator app after adding it using the [add authenticator](\/docs\/references\/cloud\/client-web\/account#createMfaAuthenticator) method.", - "demo": "account\/update-m-f-a-authenticator.md" + "demo": "account\/update-mfa-authenticator.md" } ], "auth": { @@ -948,7 +948,7 @@ } ], "description": "Delete an authenticator for a user by ID.", - "demo": "account\/delete-m-f-a-authenticator.md" + "demo": "account\/delete-mfa-authenticator.md" } ], "auth": { @@ -1070,7 +1070,7 @@ } ], "description": "Begin the process of MFA verification after sign-in. Finish the flow with [updateMfaChallenge](\/docs\/references\/cloud\/client-web\/account#updateMfaChallenge) method.", - "demo": "account\/create-m-f-a-challenge.md" + "demo": "account\/create-mfa-challenge.md" } ], "auth": { @@ -1205,7 +1205,7 @@ } ], "description": "Complete the MFA challenge by providing the one-time password. Finish the process of MFA verification by providing the one-time password. To begin the flow, use [createMfaChallenge](\/docs\/references\/cloud\/client-web\/account#createMfaChallenge) method.", - "demo": "account\/update-m-f-a-challenge.md" + "demo": "account\/update-mfa-challenge.md" } ], "auth": { @@ -1329,7 +1329,7 @@ } ], "description": "List the factors available on the account to be used as a MFA challange.", - "demo": "account\/list-m-f-a-factors.md" + "demo": "account\/list-mfa-factors.md" } ], "auth": { @@ -1426,7 +1426,7 @@ } ], "description": "Get recovery codes that can be used as backup for MFA flow. Before getting codes, they must be generated using [createMfaRecoveryCodes](\/docs\/references\/cloud\/client-web\/account#createMfaRecoveryCodes) method. An OTP challenge is required to read recovery codes.", - "demo": "account\/get-m-f-a-recovery-codes.md" + "demo": "account\/get-mfa-recovery-codes.md" } ], "auth": { @@ -1523,7 +1523,7 @@ } ], "description": "Generate recovery codes as backup for MFA flow. It's recommended to generate and show then immediately after user successfully adds their authehticator. Recovery codes can be used as a MFA verification type in [createMfaChallenge](\/docs\/references\/cloud\/client-web\/account#createMfaChallenge) method.", - "demo": "account\/create-m-f-a-recovery-codes.md" + "demo": "account\/create-mfa-recovery-codes.md" } ], "auth": { @@ -1620,7 +1620,7 @@ } ], "description": "Regenerate recovery codes that can be used as backup for MFA flow. Before regenerating codes, they must be first generated using [createMfaRecoveryCodes](\/docs\/references\/cloud\/client-web\/account#createMfaRecoveryCodes) method. An OTP challenge is required to regenreate recovery codes.", - "demo": "account\/update-m-f-a-recovery-codes.md" + "demo": "account\/update-mfa-recovery-codes.md" } ], "auth": { @@ -1979,7 +1979,7 @@ "type": "object", "description": "Prefs key-value JSON object.", "default": {}, - "x-example": "{}" + "x-example": "{\"language\":\"en\",\"timezone\":\"UTC\",\"darkTheme\":true}" } }, "required": [ @@ -2413,7 +2413,7 @@ "weight": 27, "cookies": false, "type": "", - "demo": "account\/update-magic-u-r-l-session.md", + "demo": "account\/update-magic-url-session.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/account\/create-session.md", "rate-limit": 10, "rate-time": 3600, @@ -2424,6 +2424,10 @@ "client" ], "packaging": false, + "deprecated": { + "since": "1.6.0", + "replaceWith": "account.createSession" + }, "auth": { "Project": [] } @@ -2486,7 +2490,7 @@ "weight": 20, "cookies": false, "type": "webAuth", - "demo": "account\/create-o-auth2session.md", + "demo": "account\/create-o-auth-2-session.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/account\/create-session-oauth2.md", "rate-limit": 50, "rate-time": 3600, @@ -2634,6 +2638,10 @@ "client" ], "packaging": false, + "deprecated": { + "since": "1.6.0", + "replaceWith": "account.createSession" + }, "auth": { "Project": [] } @@ -3314,7 +3322,7 @@ "weight": 25, "cookies": false, "type": "", - "demo": "account\/create-magic-u-r-l-token.md", + "demo": "account\/create-magic-url-token.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/account\/create-token-magic-url.md", "rate-limit": 60, "rate-time": 3600, @@ -3402,7 +3410,7 @@ "weight": 24, "cookies": false, "type": "webAuth", - "demo": "account\/create-o-auth2token.md", + "demo": "account\/create-o-auth-2-token.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/account\/create-token-oauth2.md", "rate-limit": 50, "rate-time": 3600, @@ -4052,7 +4060,7 @@ "parameters": [ { "name": "code", - "description": "Credit Card Code. Possible values: amex, argencard, cabal, cencosud, diners, discover, elo, hipercard, jcb, mastercard, naranja, targeta-shopping, union-china-pay, visa, mir, maestro, rupay.", + "description": "Credit Card Code. Possible values: amex, argencard, cabal, cencosud, diners, discover, elo, hipercard, jcb, mastercard, naranja, targeta-shopping, unionpay, visa, mir, maestro, rupay.", "required": true, "type": "string", "x-example": "amex", @@ -4069,7 +4077,7 @@ "mastercard", "naranja", "targeta-shopping", - "union-china-pay", + "unionpay", "visa", "mir", "maestro", @@ -4089,7 +4097,7 @@ "Mastercard", "Naranja", "Tarjeta Shopping", - "Union China Pay", + "Union Pay", "Visa", "MIR", "Maestro", @@ -4877,7 +4885,7 @@ "weight": 65, "cookies": false, "type": "location", - "demo": "avatars\/get-q-r.md", + "demo": "avatars\/get-qr.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/avatars\/get-qr.md", "rate-limit": 0, "rate-time": 3600, @@ -4964,7 +4972,7 @@ "x-appwrite": { "method": "listDocuments", "group": "documents", - "weight": 340, + "weight": 335, "cookies": false, "type": "", "demo": "databases\/list-documents.md", @@ -5049,7 +5057,7 @@ "x-appwrite": { "method": "createDocument", "group": "documents", - "weight": 332, + "weight": 327, "cookies": false, "type": "", "demo": "databases\/create-document.md", @@ -5146,7 +5154,7 @@ "type": "object", "description": "Document data as JSON object.", "default": [], - "x-example": "{}" + "x-example": "{\"username\":\"walter.obrien\",\"email\":\"walter.obrien@example.com\",\"fullName\":\"Walter O'Brien\",\"age\":30,\"isAdmin\":false}" }, "permissions": { "type": "array", @@ -5196,7 +5204,7 @@ "x-appwrite": { "method": "getDocument", "group": "documents", - "weight": 333, + "weight": 328, "cookies": false, "type": "", "demo": "databases\/get-document.md", @@ -5265,7 +5273,7 @@ ] }, "put": { - "summary": "Create or update a document", + "summary": "Upsert a document", "operationId": "databasesUpsertDocument", "consumes": [ "application\/json" @@ -5289,7 +5297,7 @@ "x-appwrite": { "method": "upsertDocument", "group": "documents", - "weight": 336, + "weight": 331, "cookies": false, "type": "", "demo": "databases\/upsert-document.md", @@ -5432,7 +5440,7 @@ "x-appwrite": { "method": "updateDocument", "group": "documents", - "weight": 334, + "weight": 329, "cookies": false, "type": "", "demo": "databases\/update-document.md", @@ -5532,7 +5540,7 @@ "x-appwrite": { "method": "deleteDocument", "group": "documents", - "weight": 338, + "weight": 333, "cookies": false, "type": "", "demo": "databases\/delete-document.md", @@ -5615,7 +5623,7 @@ "x-appwrite": { "method": "decrementDocumentAttribute", "group": "documents", - "weight": 343, + "weight": 338, "cookies": false, "type": "", "demo": "databases\/decrement-document-attribute.md", @@ -5727,7 +5735,7 @@ "x-appwrite": { "method": "incrementDocumentAttribute", "group": "documents", - "weight": 342, + "weight": 337, "cookies": false, "type": "", "demo": "databases\/increment-document-attribute.md", @@ -5837,7 +5845,7 @@ "x-appwrite": { "method": "listExecutions", "group": "executions", - "weight": 448, + "weight": 456, "cookies": false, "type": "", "demo": "functions\/list-executions.md", @@ -5910,7 +5918,7 @@ "x-appwrite": { "method": "createExecution", "group": "executions", - "weight": 446, + "weight": 454, "cookies": false, "type": "", "demo": "functions\/create-execution.md", @@ -5970,7 +5978,7 @@ }, "method": { "type": "string", - "description": "HTTP method of execution. Default value is GET.", + "description": "HTTP method of execution. Default value is POST.", "default": "POST", "x-example": "GET", "enum": [ @@ -5979,7 +5987,8 @@ "PUT", "PATCH", "DELETE", - "OPTIONS" + "OPTIONS", + "HEAD" ], "x-enum-name": "ExecutionMethod", "x-enum-keys": [] @@ -6026,7 +6035,7 @@ "x-appwrite": { "method": "getExecution", "group": "executions", - "weight": 447, + "weight": 455, "cookies": false, "type": "", "demo": "functions\/get-execution.md", @@ -6097,7 +6106,7 @@ "x-appwrite": { "method": "query", "group": "graphql", - "weight": 255, + "weight": 250, "cookies": false, "type": "graphql", "demo": "graphql\/query.md", @@ -6170,7 +6179,7 @@ "x-appwrite": { "method": "mutation", "group": "graphql", - "weight": 254, + "weight": 249, "cookies": false, "type": "graphql", "demo": "graphql\/mutation.md", @@ -6448,7 +6457,7 @@ "weight": 73, "cookies": false, "type": "", - "demo": "locale\/list-countries-e-u.md", + "demo": "locale\/list-countries-eu.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/locale\/list-countries-eu.md", "rate-limit": 0, "rate-time": 3600, @@ -6651,7 +6660,7 @@ "x-appwrite": { "method": "createSubscriber", "group": "subscribers", - "weight": 301, + "weight": 296, "cookies": false, "type": "", "demo": "messaging\/create-subscriber.md", @@ -6735,7 +6744,7 @@ "x-appwrite": { "method": "deleteSubscriber", "group": "subscribers", - "weight": 305, + "weight": 300, "cookies": false, "type": "", "demo": "messaging\/delete-subscriber.md", @@ -6805,7 +6814,7 @@ "x-appwrite": { "method": "listFiles", "group": "files", - "weight": 161, + "weight": 160, "cookies": false, "type": "", "demo": "storage\/list-files.md", @@ -6887,7 +6896,7 @@ "x-appwrite": { "method": "createFile", "group": "files", - "weight": 160, + "weight": 159, "cookies": false, "type": "upload", "demo": "storage\/create-file.md", @@ -6976,7 +6985,7 @@ "x-appwrite": { "method": "getFile", "group": "files", - "weight": 162, + "weight": 161, "cookies": false, "type": "", "demo": "storage\/get-file.md", @@ -7045,7 +7054,7 @@ "x-appwrite": { "method": "updateFile", "group": "files", - "weight": 167, + "weight": 166, "cookies": false, "type": "", "demo": "storage\/update-file.md", @@ -7133,7 +7142,7 @@ "x-appwrite": { "method": "deleteFile", "group": "files", - "weight": 168, + "weight": 167, "cookies": false, "type": "", "demo": "storage\/delete-file.md", @@ -7202,7 +7211,7 @@ "x-appwrite": { "method": "getFileDownload", "group": "files", - "weight": 164, + "weight": 163, "cookies": false, "type": "location", "demo": "storage\/get-file-download.md", @@ -7280,7 +7289,7 @@ "x-appwrite": { "method": "getFilePreview", "group": "files", - "weight": 163, + "weight": 162, "cookies": false, "type": "location", "demo": "storage\/get-file-preview.md", @@ -7486,7 +7495,7 @@ "x-appwrite": { "method": "getFileView", "group": "files", - "weight": 165, + "weight": 164, "cookies": false, "type": "location", "demo": "storage\/get-file-view.md", @@ -7564,15 +7573,18 @@ "x-appwrite": { "method": "listRows", "group": "rows", - "weight": 420, + "weight": 427, "cookies": false, "type": "", - "demo": "tables-d-b\/list-rows.md", + "demo": "tablesdb\/list-rows.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/list-rows.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "rows.read", + "scope": [ + "rows.read", + "documents.read" + ], "platforms": [ "client", "server" @@ -7645,15 +7657,18 @@ "x-appwrite": { "method": "createRow", "group": "rows", - "weight": 412, + "weight": 419, "cookies": false, "type": "", - "demo": "tables-d-b\/create-row.md", + "demo": "tablesdb\/create-row.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/create-row.md", "rate-limit": 120, "rate-time": 60, "rate-key": "ip:{ip},method:{method},url:{url},userId:{userId}", - "scope": "rows.write", + "scope": [ + "rows.write", + "documents.write" + ], "platforms": [ "client", "server" @@ -7687,7 +7702,7 @@ } ], "description": "Create a new Row. Before using this route, you should create a new table resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/tablesdb#tablesDBCreateTable) API or directly from your database console.", - "demo": "tables-d-b\/create-row.md" + "demo": "tablesdb\/create-row.md" } ], "auth": { @@ -7734,7 +7749,7 @@ "type": "object", "description": "Row data as JSON object.", "default": [], - "x-example": "{}" + "x-example": "{\"username\":\"walter.obrien\",\"email\":\"walter.obrien@example.com\",\"fullName\":\"Walter O'Brien\",\"age\":30,\"isAdmin\":false}" }, "permissions": { "type": "array", @@ -7747,7 +7762,7 @@ }, "rows": { "type": "array", - "description": "Array of documents data as JSON objects.", + "description": "Array of rows data as JSON objects.", "default": [], "x-example": null, "items": { @@ -7784,15 +7799,18 @@ "x-appwrite": { "method": "getRow", "group": "rows", - "weight": 413, + "weight": 420, "cookies": false, "type": "", - "demo": "tables-d-b\/get-row.md", + "demo": "tablesdb\/get-row.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/get-row.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "rows.read", + "scope": [ + "rows.read", + "documents.read" + ], "platforms": [ "client", "server" @@ -7849,7 +7867,7 @@ ] }, "put": { - "summary": "Create or update a row", + "summary": "Upsert a row", "operationId": "tablesDBUpsertRow", "consumes": [ "application\/json" @@ -7873,15 +7891,18 @@ "x-appwrite": { "method": "upsertRow", "group": "rows", - "weight": 416, + "weight": 423, "cookies": false, "type": "", - "demo": "tables-d-b\/upsert-row.md", + "demo": "tablesdb\/upsert-row.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/upsert-row.md", "rate-limit": 120, "rate-time": 60, "rate-key": "ip:{ip},method:{method},url:{url},userId:{userId}", - "scope": "rows.write", + "scope": [ + "rows.write", + "documents.write" + ], "platforms": [ "client", "server" @@ -7914,7 +7935,7 @@ } ], "description": "Create or update a Row. Before using this route, you should create a new table resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/tablesdb#tablesDBCreateTable) API or directly from your database console.", - "demo": "tables-d-b\/upsert-row.md" + "demo": "tablesdb\/upsert-row.md" } ], "auth": { @@ -8004,15 +8025,18 @@ "x-appwrite": { "method": "updateRow", "group": "rows", - "weight": 414, + "weight": 421, "cookies": false, "type": "", - "demo": "tables-d-b\/update-row.md", + "demo": "tablesdb\/update-row.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/update-row.md", "rate-limit": 120, "rate-time": 60, "rate-key": "ip:{ip},method:{method},url:{url},userId:{userId}", - "scope": "rows.write", + "scope": [ + "rows.write", + "documents.write" + ], "platforms": [ "client", "server" @@ -8100,15 +8124,18 @@ "x-appwrite": { "method": "deleteRow", "group": "rows", - "weight": 418, + "weight": 425, "cookies": false, "type": "", - "demo": "tables-d-b\/delete-row.md", + "demo": "tablesdb\/delete-row.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/delete-row.md", "rate-limit": 60, "rate-time": 60, "rate-key": "ip:{ip},method:{method},url:{url},userId:{userId}", - "scope": "rows.write", + "scope": [ + "rows.write", + "documents.write" + ], "platforms": [ "client", "server" @@ -8179,15 +8206,18 @@ "x-appwrite": { "method": "decrementRowColumn", "group": "rows", - "weight": 423, + "weight": 430, "cookies": false, "type": "", - "demo": "tables-d-b\/decrement-row-column.md", + "demo": "tablesdb\/decrement-row-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/decrement-row-column.md", "rate-limit": 120, "rate-time": 60, "rate-key": "ip:{ip},method:{method},url:{url},userId:{userId}", - "scope": "rows.write", + "scope": [ + "rows.write", + "documents.write" + ], "platforms": [ "client", "server", @@ -8287,15 +8317,18 @@ "x-appwrite": { "method": "incrementRowColumn", "group": "rows", - "weight": 422, + "weight": 429, "cookies": false, "type": "", - "demo": "tables-d-b\/increment-row-column.md", + "demo": "tablesdb\/increment-row-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/increment-row-column.md", "rate-limit": 120, "rate-time": 60, "rate-key": "ip:{ip},method:{method},url:{url},userId:{userId}", - "scope": "rows.write", + "scope": [ + "rows.write", + "documents.write" + ], "platforms": [ "client", "server", @@ -8393,7 +8426,7 @@ "x-appwrite": { "method": "list", "group": "teams", - "weight": 172, + "weight": 171, "cookies": false, "type": "", "demo": "teams\/list.md", @@ -8467,7 +8500,7 @@ "x-appwrite": { "method": "create", "group": "teams", - "weight": 171, + "weight": 170, "cookies": false, "type": "", "demo": "teams\/create.md", @@ -8556,7 +8589,7 @@ "x-appwrite": { "method": "get", "group": "teams", - "weight": 173, + "weight": 172, "cookies": false, "type": "", "demo": "teams\/get.md", @@ -8617,7 +8650,7 @@ "x-appwrite": { "method": "updateName", "group": "teams", - "weight": 175, + "weight": 174, "cookies": false, "type": "", "demo": "teams\/update-name.md", @@ -8691,7 +8724,7 @@ "x-appwrite": { "method": "delete", "group": "teams", - "weight": 177, + "weight": 176, "cookies": false, "type": "", "demo": "teams\/delete.md", @@ -8752,7 +8785,7 @@ "x-appwrite": { "method": "listMemberships", "group": "memberships", - "weight": 179, + "weight": 178, "cookies": false, "type": "", "demo": "teams\/list-memberships.md", @@ -8834,7 +8867,7 @@ "x-appwrite": { "method": "createMembership", "group": "memberships", - "weight": 178, + "weight": 177, "cookies": false, "type": "", "demo": "teams\/create-membership.md", @@ -8946,7 +8979,7 @@ "x-appwrite": { "method": "getMembership", "group": "memberships", - "weight": 180, + "weight": 179, "cookies": false, "type": "", "demo": "teams\/get-membership.md", @@ -9015,7 +9048,7 @@ "x-appwrite": { "method": "updateMembership", "group": "memberships", - "weight": 181, + "weight": 180, "cookies": false, "type": "", "demo": "teams\/update-membership.md", @@ -9100,7 +9133,7 @@ "x-appwrite": { "method": "deleteMembership", "group": "memberships", - "weight": 183, + "weight": 182, "cookies": false, "type": "", "demo": "teams\/delete-membership.md", @@ -9171,7 +9204,7 @@ "x-appwrite": { "method": "updateMembershipStatus", "group": "memberships", - "weight": 182, + "weight": 181, "cookies": false, "type": "", "demo": "teams\/update-membership-status.md", @@ -9265,7 +9298,7 @@ "x-appwrite": { "method": "getPrefs", "group": "teams", - "weight": 174, + "weight": 173, "cookies": false, "type": "", "demo": "teams\/get-prefs.md", @@ -9326,7 +9359,7 @@ "x-appwrite": { "method": "updatePrefs", "group": "teams", - "weight": 176, + "weight": 175, "cookies": false, "type": "", "demo": "teams\/update-prefs.md", @@ -9911,17 +9944,20 @@ "type": "integer", "description": "Row automatically incrementing ID.", "x-example": 1, - "format": "int32" + "format": "int32", + "readOnly": true }, "$tableId": { "type": "string", "description": "Table ID.", - "x-example": "5e5ea5c15117e" + "x-example": "5e5ea5c15117e", + "readOnly": true }, "$databaseId": { "type": "string", "description": "Database ID.", - "x-example": "5e5ea5c15117e" + "x-example": "5e5ea5c15117e", + "readOnly": true }, "$createdAt": { "type": "string", diff --git a/app/config/specs/swagger2-latest-console.json b/app/config/specs/swagger2-latest-console.json index cf4c425874..6d5721c73b 100644 --- a/app/config/specs/swagger2-latest-console.json +++ b/app/config/specs/swagger2-latest-console.json @@ -487,7 +487,7 @@ "weight": 30, "cookies": false, "type": "", - "demo": "account\/create-j-w-t.md", + "demo": "account\/create-jwt.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/account\/create-jwt.md", "rate-limit": 100, "rate-time": 3600, @@ -602,7 +602,7 @@ "weight": 45, "cookies": false, "type": "", - "demo": "account\/update-m-f-a.md", + "demo": "account\/update-mfa.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/account\/update-mfa.md", "rate-limit": 0, "rate-time": 3600, @@ -736,7 +736,7 @@ } ], "description": "Add an authenticator app to be used as an MFA factor. Verify the authenticator using the [verify authenticator](\/docs\/references\/cloud\/client-web\/account#updateMfaAuthenticator) method.", - "demo": "account\/create-m-f-a-authenticator.md" + "demo": "account\/create-mfa-authenticator.md" } ], "auth": { @@ -859,7 +859,7 @@ } ], "description": "Verify an authenticator app after adding it using the [add authenticator](\/docs\/references\/cloud\/client-web\/account#createMfaAuthenticator) method.", - "demo": "account\/update-m-f-a-authenticator.md" + "demo": "account\/update-mfa-authenticator.md" } ], "auth": { @@ -989,7 +989,7 @@ } ], "description": "Delete an authenticator for a user by ID.", - "demo": "account\/delete-m-f-a-authenticator.md" + "demo": "account\/delete-mfa-authenticator.md" } ], "auth": { @@ -1110,7 +1110,7 @@ } ], "description": "Begin the process of MFA verification after sign-in. Finish the flow with [updateMfaChallenge](\/docs\/references\/cloud\/client-web\/account#updateMfaChallenge) method.", - "demo": "account\/create-m-f-a-challenge.md" + "demo": "account\/create-mfa-challenge.md" } ], "auth": { @@ -1245,7 +1245,7 @@ } ], "description": "Complete the MFA challenge by providing the one-time password. Finish the process of MFA verification by providing the one-time password. To begin the flow, use [createMfaChallenge](\/docs\/references\/cloud\/client-web\/account#createMfaChallenge) method.", - "demo": "account\/update-m-f-a-challenge.md" + "demo": "account\/update-mfa-challenge.md" } ], "auth": { @@ -1368,7 +1368,7 @@ } ], "description": "List the factors available on the account to be used as a MFA challange.", - "demo": "account\/list-m-f-a-factors.md" + "demo": "account\/list-mfa-factors.md" } ], "auth": { @@ -1464,7 +1464,7 @@ } ], "description": "Get recovery codes that can be used as backup for MFA flow. Before getting codes, they must be generated using [createMfaRecoveryCodes](\/docs\/references\/cloud\/client-web\/account#createMfaRecoveryCodes) method. An OTP challenge is required to read recovery codes.", - "demo": "account\/get-m-f-a-recovery-codes.md" + "demo": "account\/get-mfa-recovery-codes.md" } ], "auth": { @@ -1560,7 +1560,7 @@ } ], "description": "Generate recovery codes as backup for MFA flow. It's recommended to generate and show then immediately after user successfully adds their authehticator. Recovery codes can be used as a MFA verification type in [createMfaChallenge](\/docs\/references\/cloud\/client-web\/account#createMfaChallenge) method.", - "demo": "account\/create-m-f-a-recovery-codes.md" + "demo": "account\/create-mfa-recovery-codes.md" } ], "auth": { @@ -1656,7 +1656,7 @@ } ], "description": "Regenerate recovery codes that can be used as backup for MFA flow. Before regenerating codes, they must be first generated using [createMfaRecoveryCodes](\/docs\/references\/cloud\/client-web\/account#createMfaRecoveryCodes) method. An OTP challenge is required to regenreate recovery codes.", - "demo": "account\/update-m-f-a-recovery-codes.md" + "demo": "account\/update-mfa-recovery-codes.md" } ], "auth": { @@ -2009,7 +2009,7 @@ "type": "object", "description": "Prefs key-value JSON object.", "default": {}, - "x-example": "{}" + "x-example": "{\"language\":\"en\",\"timezone\":\"UTC\",\"darkTheme\":true}" } }, "required": [ @@ -2439,7 +2439,7 @@ "weight": 27, "cookies": false, "type": "", - "demo": "account\/update-magic-u-r-l-session.md", + "demo": "account\/update-magic-url-session.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/account\/create-session.md", "rate-limit": 10, "rate-time": 3600, @@ -2450,6 +2450,10 @@ "client" ], "packaging": false, + "deprecated": { + "since": "1.6.0", + "replaceWith": "account.createSession" + }, "auth": { "Project": [] } @@ -2512,7 +2516,7 @@ "weight": 20, "cookies": false, "type": "webAuth", - "demo": "account\/create-o-auth2session.md", + "demo": "account\/create-o-auth-2-session.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/account\/create-session-oauth2.md", "rate-limit": 50, "rate-time": 3600, @@ -2660,6 +2664,10 @@ "client" ], "packaging": false, + "deprecated": { + "since": "1.6.0", + "replaceWith": "account.createSession" + }, "auth": { "Project": [] } @@ -3333,7 +3341,7 @@ "weight": 25, "cookies": false, "type": "", - "demo": "account\/create-magic-u-r-l-token.md", + "demo": "account\/create-magic-url-token.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/account\/create-token-magic-url.md", "rate-limit": 60, "rate-time": 3600, @@ -3421,7 +3429,7 @@ "weight": 24, "cookies": false, "type": "webAuth", - "demo": "account\/create-o-auth2token.md", + "demo": "account\/create-o-auth-2-token.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/account\/create-token-oauth2.md", "rate-limit": 50, "rate-time": 3600, @@ -4067,7 +4075,7 @@ "parameters": [ { "name": "code", - "description": "Credit Card Code. Possible values: amex, argencard, cabal, cencosud, diners, discover, elo, hipercard, jcb, mastercard, naranja, targeta-shopping, union-china-pay, visa, mir, maestro, rupay.", + "description": "Credit Card Code. Possible values: amex, argencard, cabal, cencosud, diners, discover, elo, hipercard, jcb, mastercard, naranja, targeta-shopping, unionpay, visa, mir, maestro, rupay.", "required": true, "type": "string", "x-example": "amex", @@ -4084,7 +4092,7 @@ "mastercard", "naranja", "targeta-shopping", - "union-china-pay", + "unionpay", "visa", "mir", "maestro", @@ -4104,7 +4112,7 @@ "Mastercard", "Naranja", "Tarjeta Shopping", - "Union China Pay", + "Union Pay", "Visa", "MIR", "Maestro", @@ -4892,7 +4900,7 @@ "weight": 65, "cookies": false, "type": "location", - "demo": "avatars\/get-q-r.md", + "demo": "avatars\/get-qr.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/avatars\/get-qr.md", "rate-limit": 0, "rate-time": 3600, @@ -4981,7 +4989,7 @@ "x-appwrite": { "method": "chat", "group": "console", - "weight": 257, + "weight": 252, "cookies": false, "type": "", "demo": "assistant\/chat.md", @@ -5044,7 +5052,7 @@ "x-appwrite": { "method": "getResource", "group": null, - "weight": 488, + "weight": 496, "cookies": false, "type": "", "demo": "console\/get-resource.md", @@ -5115,7 +5123,7 @@ "x-appwrite": { "method": "variables", "group": "console", - "weight": 256, + "weight": 251, "cookies": false, "type": "", "demo": "console\/variables.md", @@ -5163,7 +5171,7 @@ "x-appwrite": { "method": "list", "group": "databases", - "weight": 321, + "weight": 316, "cookies": false, "type": "", "demo": "databases\/list.md", @@ -5266,7 +5274,7 @@ "x-appwrite": { "method": "create", "group": "databases", - "weight": 317, + "weight": 312, "cookies": false, "type": "", "demo": "databases\/create.md", @@ -5281,7 +5289,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tablesDB.createDatabase" + "replaceWith": "tablesDB.create" }, "methods": [ { @@ -5310,7 +5318,7 @@ "demo": "databases\/create.md", "deprecated": { "since": "1.8.0", - "replaceWith": "tablesDB.createDatabase" + "replaceWith": "tablesDB.create" } } ], @@ -5383,7 +5391,7 @@ "x-appwrite": { "method": "listUsage", "group": null, - "weight": 324, + "weight": 319, "cookies": false, "type": "", "demo": "databases\/list-usage.md", @@ -5483,7 +5491,7 @@ "x-appwrite": { "method": "get", "group": "databases", - "weight": 318, + "weight": 313, "cookies": false, "type": "", "demo": "databases\/get.md", @@ -5574,7 +5582,7 @@ "x-appwrite": { "method": "update", "group": "databases", - "weight": 319, + "weight": 314, "cookies": false, "type": "", "demo": "databases\/update.md", @@ -5687,7 +5695,7 @@ "x-appwrite": { "method": "delete", "group": "databases", - "weight": 320, + "weight": 315, "cookies": false, "type": "", "demo": "databases\/delete.md", @@ -5777,7 +5785,7 @@ "x-appwrite": { "method": "listCollections", "group": "collections", - "weight": 329, + "weight": 324, "cookies": false, "type": "", "demo": "databases\/list-collections.md", @@ -5861,7 +5869,7 @@ "x-appwrite": { "method": "createCollection", "group": "collections", - "weight": 325, + "weight": 320, "cookies": false, "type": "", "demo": "databases\/create-collection.md", @@ -5970,7 +5978,7 @@ "x-appwrite": { "method": "getCollection", "group": "collections", - "weight": 326, + "weight": 321, "cookies": false, "type": "", "demo": "databases\/get-collection.md", @@ -6041,7 +6049,7 @@ "x-appwrite": { "method": "updateCollection", "group": "collections", - "weight": 327, + "weight": 322, "cookies": false, "type": "", "demo": "databases\/update-collection.md", @@ -6146,7 +6154,7 @@ "x-appwrite": { "method": "deleteCollection", "group": "collections", - "weight": 328, + "weight": 323, "cookies": false, "type": "", "demo": "databases\/delete-collection.md", @@ -6217,7 +6225,7 @@ "x-appwrite": { "method": "listAttributes", "group": "attributes", - "weight": 346, + "weight": 341, "cookies": false, "type": "", "demo": "databases\/list-attributes.md", @@ -6302,7 +6310,7 @@ "x-appwrite": { "method": "createBooleanAttribute", "group": "attributes", - "weight": 347, + "weight": 342, "cookies": false, "type": "", "demo": "databases\/create-boolean-attribute.md", @@ -6412,7 +6420,7 @@ "x-appwrite": { "method": "updateBooleanAttribute", "group": "attributes", - "weight": 348, + "weight": 343, "cookies": false, "type": "", "demo": "databases\/update-boolean-attribute.md", @@ -6524,7 +6532,7 @@ "x-appwrite": { "method": "createDatetimeAttribute", "group": "attributes", - "weight": 349, + "weight": 344, "cookies": false, "type": "", "demo": "databases\/create-datetime-attribute.md", @@ -6634,7 +6642,7 @@ "x-appwrite": { "method": "updateDatetimeAttribute", "group": "attributes", - "weight": 350, + "weight": 345, "cookies": false, "type": "", "demo": "databases\/update-datetime-attribute.md", @@ -6746,7 +6754,7 @@ "x-appwrite": { "method": "createEmailAttribute", "group": "attributes", - "weight": 351, + "weight": 346, "cookies": false, "type": "", "demo": "databases\/create-email-attribute.md", @@ -6856,7 +6864,7 @@ "x-appwrite": { "method": "updateEmailAttribute", "group": "attributes", - "weight": 352, + "weight": 347, "cookies": false, "type": "", "demo": "databases\/update-email-attribute.md", @@ -6968,7 +6976,7 @@ "x-appwrite": { "method": "createEnumAttribute", "group": "attributes", - "weight": 353, + "weight": 348, "cookies": false, "type": "", "demo": "databases\/create-enum-attribute.md", @@ -7088,7 +7096,7 @@ "x-appwrite": { "method": "updateEnumAttribute", "group": "attributes", - "weight": 354, + "weight": 349, "cookies": false, "type": "", "demo": "databases\/update-enum-attribute.md", @@ -7210,7 +7218,7 @@ "x-appwrite": { "method": "createFloatAttribute", "group": "attributes", - "weight": 355, + "weight": 350, "cookies": false, "type": "", "demo": "databases\/create-float-attribute.md", @@ -7332,7 +7340,7 @@ "x-appwrite": { "method": "updateFloatAttribute", "group": "attributes", - "weight": 356, + "weight": 351, "cookies": false, "type": "", "demo": "databases\/update-float-attribute.md", @@ -7456,7 +7464,7 @@ "x-appwrite": { "method": "createIntegerAttribute", "group": "attributes", - "weight": 357, + "weight": 352, "cookies": false, "type": "", "demo": "databases\/create-integer-attribute.md", @@ -7578,7 +7586,7 @@ "x-appwrite": { "method": "updateIntegerAttribute", "group": "attributes", - "weight": 358, + "weight": 353, "cookies": false, "type": "", "demo": "databases\/update-integer-attribute.md", @@ -7702,7 +7710,7 @@ "x-appwrite": { "method": "createIpAttribute", "group": "attributes", - "weight": 359, + "weight": 354, "cookies": false, "type": "", "demo": "databases\/create-ip-attribute.md", @@ -7812,7 +7820,7 @@ "x-appwrite": { "method": "updateIpAttribute", "group": "attributes", - "weight": 360, + "weight": 355, "cookies": false, "type": "", "demo": "databases\/update-ip-attribute.md", @@ -7898,6 +7906,654 @@ ] } }, + "\/databases\/{databaseId}\/collections\/{collectionId}\/attributes\/line": { + "post": { + "summary": "Create line attribute", + "operationId": "databasesCreateLineAttribute", + "consumes": [ + "application\/json" + ], + "produces": [ + "application\/json" + ], + "tags": [ + "databases" + ], + "description": "Create a geometric line attribute.", + "responses": { + "202": { + "description": "AttributeLine", + "schema": { + "$ref": "#\/definitions\/attributeLine" + } + } + }, + "deprecated": true, + "x-appwrite": { + "method": "createLineAttribute", + "group": "attributes", + "weight": 356, + "cookies": false, + "type": "", + "demo": "databases\/create-line-attribute.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-line-attribute.md", + "rate-limit": 0, + "rate-time": 3600, + "rate-key": "url:{url},ip:{ip}", + "scope": "collections.write", + "platforms": [ + "server" + ], + "packaging": false, + "deprecated": { + "since": "1.8.0", + "replaceWith": "tablesDB.createLineColumn" + }, + "auth": { + "Project": [] + } + }, + "security": [ + { + "Project": [], + "Key": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + }, + { + "name": "collectionId", + "description": "Collection ID. You can create a new collection using the Database service [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateCollection).", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + }, + { + "name": "payload", + "in": "body", + "schema": { + "type": "object", + "properties": { + "key": { + "type": "string", + "description": "Attribute Key.", + "default": null, + "x-example": null + }, + "required": { + "type": "boolean", + "description": "Is attribute required?", + "default": null, + "x-example": false + }, + "default": { + "type": "array", + "description": "Default value for attribute when not provided, two-dimensional array of coordinate pairs, [[longitude, latitude], [longitude, latitude], \u2026], listing the vertices of the line in order. Cannot be set when attribute is required.", + "default": null, + "x-example": "[[1, 2], [3, 4], [5, 6]]", + "x-nullable": true + } + }, + "required": [ + "key", + "required" + ] + } + } + ] + } + }, + "\/databases\/{databaseId}\/collections\/{collectionId}\/attributes\/line\/{key}": { + "patch": { + "summary": "Update line attribute", + "operationId": "databasesUpdateLineAttribute", + "consumes": [ + "application\/json" + ], + "produces": [ + "application\/json" + ], + "tags": [ + "databases" + ], + "description": "Update a line attribute. Changing the `default` value will not update already existing documents.", + "responses": { + "200": { + "description": "AttributeLine", + "schema": { + "$ref": "#\/definitions\/attributeLine" + } + } + }, + "deprecated": true, + "x-appwrite": { + "method": "updateLineAttribute", + "group": "attributes", + "weight": 357, + "cookies": false, + "type": "", + "demo": "databases\/update-line-attribute.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-line-attribute.md", + "rate-limit": 0, + "rate-time": 3600, + "rate-key": "url:{url},ip:{ip}", + "scope": "collections.write", + "platforms": [ + "server" + ], + "packaging": false, + "deprecated": { + "since": "1.8.0", + "replaceWith": "tablesDB.updateLineColumn" + }, + "auth": { + "Project": [] + } + }, + "security": [ + { + "Project": [], + "Key": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + }, + { + "name": "collectionId", + "description": "Collection ID. You can create a new collection using the Database service [server integration](https:\/\/appwrite.io\/docs\/server\/databases#createCollection).", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + }, + { + "name": "key", + "description": "Attribute Key.", + "required": true, + "type": "string", + "in": "path" + }, + { + "name": "payload", + "in": "body", + "schema": { + "type": "object", + "properties": { + "required": { + "type": "boolean", + "description": "Is attribute required?", + "default": null, + "x-example": false + }, + "default": { + "type": "array", + "description": "Default value for attribute when not provided, two-dimensional array of coordinate pairs, [[longitude, latitude], [longitude, latitude], \u2026], listing the vertices of the line in order. Cannot be set when attribute is required.", + "default": null, + "x-example": "[[1, 2], [3, 4], [5, 6]]", + "x-nullable": true + }, + "newKey": { + "type": "string", + "description": "New attribute key.", + "default": null, + "x-example": null + } + }, + "required": [ + "required" + ] + } + } + ] + } + }, + "\/databases\/{databaseId}\/collections\/{collectionId}\/attributes\/point": { + "post": { + "summary": "Create point attribute", + "operationId": "databasesCreatePointAttribute", + "consumes": [ + "application\/json" + ], + "produces": [ + "application\/json" + ], + "tags": [ + "databases" + ], + "description": "Create a geometric point attribute.", + "responses": { + "202": { + "description": "AttributePoint", + "schema": { + "$ref": "#\/definitions\/attributePoint" + } + } + }, + "deprecated": true, + "x-appwrite": { + "method": "createPointAttribute", + "group": "attributes", + "weight": 358, + "cookies": false, + "type": "", + "demo": "databases\/create-point-attribute.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-point-attribute.md", + "rate-limit": 0, + "rate-time": 3600, + "rate-key": "url:{url},ip:{ip}", + "scope": "collections.write", + "platforms": [ + "server" + ], + "packaging": false, + "deprecated": { + "since": "1.8.0", + "replaceWith": "tablesDB.createPointColumn" + }, + "auth": { + "Project": [] + } + }, + "security": [ + { + "Project": [], + "Key": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + }, + { + "name": "collectionId", + "description": "Collection ID. You can create a new collection using the Database service [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateCollection).", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + }, + { + "name": "payload", + "in": "body", + "schema": { + "type": "object", + "properties": { + "key": { + "type": "string", + "description": "Attribute Key.", + "default": null, + "x-example": null + }, + "required": { + "type": "boolean", + "description": "Is attribute required?", + "default": null, + "x-example": false + }, + "default": { + "type": "array", + "description": "Default value for attribute when not provided, array of two numbers [longitude, latitude], representing a single coordinate. Cannot be set when attribute is required.", + "default": null, + "x-example": "[1, 2]", + "x-nullable": true + } + }, + "required": [ + "key", + "required" + ] + } + } + ] + } + }, + "\/databases\/{databaseId}\/collections\/{collectionId}\/attributes\/point\/{key}": { + "patch": { + "summary": "Update point attribute", + "operationId": "databasesUpdatePointAttribute", + "consumes": [ + "application\/json" + ], + "produces": [ + "application\/json" + ], + "tags": [ + "databases" + ], + "description": "Update a point attribute. Changing the `default` value will not update already existing documents.", + "responses": { + "200": { + "description": "AttributePoint", + "schema": { + "$ref": "#\/definitions\/attributePoint" + } + } + }, + "deprecated": true, + "x-appwrite": { + "method": "updatePointAttribute", + "group": "attributes", + "weight": 359, + "cookies": false, + "type": "", + "demo": "databases\/update-point-attribute.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-point-attribute.md", + "rate-limit": 0, + "rate-time": 3600, + "rate-key": "url:{url},ip:{ip}", + "scope": "collections.write", + "platforms": [ + "server" + ], + "packaging": false, + "deprecated": { + "since": "1.8.0", + "replaceWith": "tablesDB.updatePointColumn" + }, + "auth": { + "Project": [] + } + }, + "security": [ + { + "Project": [], + "Key": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + }, + { + "name": "collectionId", + "description": "Collection ID. You can create a new collection using the Database service [server integration](https:\/\/appwrite.io\/docs\/server\/databases#createCollection).", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + }, + { + "name": "key", + "description": "Attribute Key.", + "required": true, + "type": "string", + "in": "path" + }, + { + "name": "payload", + "in": "body", + "schema": { + "type": "object", + "properties": { + "required": { + "type": "boolean", + "description": "Is attribute required?", + "default": null, + "x-example": false + }, + "default": { + "type": "array", + "description": "Default value for attribute when not provided, array of two numbers [longitude, latitude], representing a single coordinate. Cannot be set when attribute is required.", + "default": null, + "x-example": "[1, 2]", + "x-nullable": true + }, + "newKey": { + "type": "string", + "description": "New attribute key.", + "default": null, + "x-example": null + } + }, + "required": [ + "required" + ] + } + } + ] + } + }, + "\/databases\/{databaseId}\/collections\/{collectionId}\/attributes\/polygon": { + "post": { + "summary": "Create polygon attribute", + "operationId": "databasesCreatePolygonAttribute", + "consumes": [ + "application\/json" + ], + "produces": [ + "application\/json" + ], + "tags": [ + "databases" + ], + "description": "Create a geometric polygon attribute.", + "responses": { + "202": { + "description": "AttributePolygon", + "schema": { + "$ref": "#\/definitions\/attributePolygon" + } + } + }, + "deprecated": true, + "x-appwrite": { + "method": "createPolygonAttribute", + "group": "attributes", + "weight": 360, + "cookies": false, + "type": "", + "demo": "databases\/create-polygon-attribute.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-polygon-attribute.md", + "rate-limit": 0, + "rate-time": 3600, + "rate-key": "url:{url},ip:{ip}", + "scope": "collections.write", + "platforms": [ + "server" + ], + "packaging": false, + "deprecated": { + "since": "1.8.0", + "replaceWith": "tablesDB.createPolygonColumn" + }, + "auth": { + "Project": [] + } + }, + "security": [ + { + "Project": [], + "Key": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + }, + { + "name": "collectionId", + "description": "Collection ID. You can create a new collection using the Database service [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateCollection).", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + }, + { + "name": "payload", + "in": "body", + "schema": { + "type": "object", + "properties": { + "key": { + "type": "string", + "description": "Attribute Key.", + "default": null, + "x-example": null + }, + "required": { + "type": "boolean", + "description": "Is attribute required?", + "default": null, + "x-example": false + }, + "default": { + "type": "array", + "description": "Default value for attribute when not provided, three-dimensional array where the outer array holds one or more linear rings, [[[longitude, latitude], \u2026], \u2026], the first ring is the exterior boundary, any additional rings are interior holes, and each ring must start and end with the same coordinate pair. Cannot be set when attribute is required.", + "default": null, + "x-example": "[[[1, 2], [3, 4], [5, 6], [1, 2]]]", + "x-nullable": true + } + }, + "required": [ + "key", + "required" + ] + } + } + ] + } + }, + "\/databases\/{databaseId}\/collections\/{collectionId}\/attributes\/polygon\/{key}": { + "patch": { + "summary": "Update polygon attribute", + "operationId": "databasesUpdatePolygonAttribute", + "consumes": [ + "application\/json" + ], + "produces": [ + "application\/json" + ], + "tags": [ + "databases" + ], + "description": "Update a polygon attribute. Changing the `default` value will not update already existing documents.", + "responses": { + "200": { + "description": "AttributePolygon", + "schema": { + "$ref": "#\/definitions\/attributePolygon" + } + } + }, + "deprecated": true, + "x-appwrite": { + "method": "updatePolygonAttribute", + "group": "attributes", + "weight": 361, + "cookies": false, + "type": "", + "demo": "databases\/update-polygon-attribute.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-polygon-attribute.md", + "rate-limit": 0, + "rate-time": 3600, + "rate-key": "url:{url},ip:{ip}", + "scope": "collections.write", + "platforms": [ + "server" + ], + "packaging": false, + "deprecated": { + "since": "1.8.0", + "replaceWith": "tablesDB.updatePolygonColumn" + }, + "auth": { + "Project": [] + } + }, + "security": [ + { + "Project": [], + "Key": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + }, + { + "name": "collectionId", + "description": "Collection ID. You can create a new collection using the Database service [server integration](https:\/\/appwrite.io\/docs\/server\/databases#createCollection).", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + }, + { + "name": "key", + "description": "Attribute Key.", + "required": true, + "type": "string", + "in": "path" + }, + { + "name": "payload", + "in": "body", + "schema": { + "type": "object", + "properties": { + "required": { + "type": "boolean", + "description": "Is attribute required?", + "default": null, + "x-example": false + }, + "default": { + "type": "array", + "description": "Default value for attribute when not provided, three-dimensional array where the outer array holds one or more linear rings, [[[longitude, latitude], \u2026], \u2026], the first ring is the exterior boundary, any additional rings are interior holes, and each ring must start and end with the same coordinate pair. Cannot be set when attribute is required.", + "default": null, + "x-example": "[[[1, 2], [3, 4], [5, 6], [1, 2]]]", + "x-nullable": true + }, + "newKey": { + "type": "string", + "description": "New attribute key.", + "default": null, + "x-example": null + } + }, + "required": [ + "required" + ] + } + } + ] + } + }, "\/databases\/{databaseId}\/collections\/{collectionId}\/attributes\/relationship": { "post": { "summary": "Create relationship attribute", @@ -7924,7 +8580,7 @@ "x-appwrite": { "method": "createRelationshipAttribute", "group": "attributes", - "weight": 361, + "weight": 362, "cookies": false, "type": "", "demo": "databases\/create-relationship-attribute.md", @@ -8061,7 +8717,7 @@ "x-appwrite": { "method": "createStringAttribute", "group": "attributes", - "weight": 363, + "weight": 364, "cookies": false, "type": "", "demo": "databases\/create-string-attribute.md", @@ -8184,7 +8840,7 @@ "x-appwrite": { "method": "updateStringAttribute", "group": "attributes", - "weight": 364, + "weight": 365, "cookies": false, "type": "", "demo": "databases\/update-string-attribute.md", @@ -8302,7 +8958,7 @@ "x-appwrite": { "method": "createUrlAttribute", "group": "attributes", - "weight": 365, + "weight": 366, "cookies": false, "type": "", "demo": "databases\/create-url-attribute.md", @@ -8412,7 +9068,7 @@ "x-appwrite": { "method": "updateUrlAttribute", "group": "attributes", - "weight": 366, + "weight": 367, "cookies": false, "type": "", "demo": "databases\/update-url-attribute.md", @@ -8553,7 +9209,7 @@ "x-appwrite": { "method": "getAttribute", "group": "attributes", - "weight": 344, + "weight": 339, "cookies": false, "type": "", "demo": "databases\/get-attribute.md", @@ -8626,7 +9282,7 @@ "x-appwrite": { "method": "deleteAttribute", "group": "attributes", - "weight": 345, + "weight": 340, "cookies": false, "type": "", "demo": "databases\/delete-attribute.md", @@ -8706,7 +9362,7 @@ "x-appwrite": { "method": "updateRelationshipAttribute", "group": "attributes", - "weight": 362, + "weight": 363, "cookies": false, "type": "", "demo": "databases\/update-relationship-attribute.md", @@ -8812,7 +9468,7 @@ "x-appwrite": { "method": "listDocuments", "group": "documents", - "weight": 340, + "weight": 335, "cookies": false, "type": "", "demo": "databases\/list-documents.md", @@ -8897,7 +9553,7 @@ "x-appwrite": { "method": "createDocument", "group": "documents", - "weight": 332, + "weight": 327, "cookies": false, "type": "", "demo": "databases\/create-document.md", @@ -9024,7 +9680,7 @@ "type": "object", "description": "Document data as JSON object.", "default": [], - "x-example": "{}" + "x-example": "{\"username\":\"walter.obrien\",\"email\":\"walter.obrien@example.com\",\"fullName\":\"Walter O'Brien\",\"age\":30,\"isAdmin\":false}" }, "permissions": { "type": "array", @@ -9050,7 +9706,7 @@ ] }, "put": { - "summary": "Create or update documents", + "summary": "Upsert documents", "operationId": "databasesUpsertDocuments", "consumes": [ "application\/json" @@ -9074,7 +9730,7 @@ "x-appwrite": { "method": "upsertDocuments", "group": "documents", - "weight": 337, + "weight": 332, "cookies": false, "type": "", "demo": "databases\/upsert-documents.md", @@ -9199,7 +9855,7 @@ "x-appwrite": { "method": "updateDocuments", "group": "documents", - "weight": 335, + "weight": 330, "cookies": false, "type": "", "demo": "databases\/update-documents.md", @@ -9295,7 +9951,7 @@ "x-appwrite": { "method": "deleteDocuments", "group": "documents", - "weight": 339, + "weight": 334, "cookies": false, "type": "", "demo": "databases\/delete-documents.md", @@ -9385,7 +10041,7 @@ "x-appwrite": { "method": "getDocument", "group": "documents", - "weight": 333, + "weight": 328, "cookies": false, "type": "", "demo": "databases\/get-document.md", @@ -9454,7 +10110,7 @@ ] }, "put": { - "summary": "Create or update a document", + "summary": "Upsert a document", "operationId": "databasesUpsertDocument", "consumes": [ "application\/json" @@ -9478,7 +10134,7 @@ "x-appwrite": { "method": "upsertDocument", "group": "documents", - "weight": 336, + "weight": 331, "cookies": false, "type": "", "demo": "databases\/upsert-document.md", @@ -9621,7 +10277,7 @@ "x-appwrite": { "method": "updateDocument", "group": "documents", - "weight": 334, + "weight": 329, "cookies": false, "type": "", "demo": "databases\/update-document.md", @@ -9721,7 +10377,7 @@ "x-appwrite": { "method": "deleteDocument", "group": "documents", - "weight": 338, + "weight": 333, "cookies": false, "type": "", "demo": "databases\/delete-document.md", @@ -9802,7 +10458,7 @@ "x-appwrite": { "method": "listDocumentLogs", "group": "logs", - "weight": 341, + "weight": 336, "cookies": false, "type": "", "demo": "databases\/list-document-logs.md", @@ -9894,7 +10550,7 @@ "x-appwrite": { "method": "decrementDocumentAttribute", "group": "documents", - "weight": 343, + "weight": 338, "cookies": false, "type": "", "demo": "databases\/decrement-document-attribute.md", @@ -10006,7 +10662,7 @@ "x-appwrite": { "method": "incrementDocumentAttribute", "group": "documents", - "weight": 342, + "weight": 337, "cookies": false, "type": "", "demo": "databases\/increment-document-attribute.md", @@ -10116,7 +10772,7 @@ "x-appwrite": { "method": "listIndexes", "group": "indexes", - "weight": 370, + "weight": 371, "cookies": false, "type": "", "demo": "databases\/list-indexes.md", @@ -10199,7 +10855,7 @@ "x-appwrite": { "method": "createIndex", "group": "indexes", - "weight": 367, + "weight": 368, "cookies": false, "type": "", "demo": "databases\/create-index.md", @@ -10263,7 +10919,8 @@ "enum": [ "key", "fulltext", - "unique" + "unique", + "spatial" ], "x-enum-name": "IndexType", "x-enum-keys": [] @@ -10330,7 +10987,7 @@ "x-appwrite": { "method": "getIndex", "group": "indexes", - "weight": 368, + "weight": 369, "cookies": false, "type": "", "demo": "databases\/get-index.md", @@ -10403,7 +11060,7 @@ "x-appwrite": { "method": "deleteIndex", "group": "indexes", - "weight": 369, + "weight": 370, "cookies": false, "type": "", "demo": "databases\/delete-index.md", @@ -10481,7 +11138,7 @@ "x-appwrite": { "method": "listCollectionLogs", "group": "collections", - "weight": 330, + "weight": 325, "cookies": false, "type": "", "demo": "databases\/list-collection-logs.md", @@ -10563,7 +11220,7 @@ "x-appwrite": { "method": "getCollectionUsage", "group": null, - "weight": 331, + "weight": 326, "cookies": false, "type": "", "demo": "databases\/get-collection-usage.md", @@ -10653,7 +11310,7 @@ "x-appwrite": { "method": "listLogs", "group": "logs", - "weight": 322, + "weight": 317, "cookies": false, "type": "", "demo": "databases\/list-logs.md", @@ -10756,7 +11413,7 @@ "x-appwrite": { "method": "getUsage", "group": null, - "weight": 323, + "weight": 318, "cookies": false, "type": "", "demo": "databases\/get-usage.md", @@ -10867,7 +11524,7 @@ "x-appwrite": { "method": "list", "group": "functions", - "weight": 432, + "weight": 440, "cookies": false, "type": "", "demo": "functions\/list.md", @@ -10939,7 +11596,7 @@ "x-appwrite": { "method": "create", "group": "functions", - "weight": 429, + "weight": 437, "cookies": false, "type": "", "demo": "functions\/create.md", @@ -11190,7 +11847,7 @@ "x-appwrite": { "method": "listRuntimes", "group": "runtimes", - "weight": 434, + "weight": 442, "cookies": false, "type": "", "demo": "functions\/list-runtimes.md", @@ -11239,7 +11896,7 @@ "x-appwrite": { "method": "listSpecifications", "group": "runtimes", - "weight": 435, + "weight": 443, "cookies": false, "type": "", "demo": "functions\/list-specifications.md", @@ -11289,7 +11946,7 @@ "x-appwrite": { "method": "listTemplates", "group": "templates", - "weight": 458, + "weight": 466, "cookies": false, "type": "", "demo": "functions\/list-templates.md", @@ -11383,7 +12040,7 @@ "x-appwrite": { "method": "getTemplate", "group": "templates", - "weight": 457, + "weight": 465, "cookies": false, "type": "", "demo": "functions\/get-template.md", @@ -11441,7 +12098,7 @@ "x-appwrite": { "method": "listUsage", "group": null, - "weight": 451, + "weight": 459, "cookies": false, "type": "", "demo": "functions\/list-usage.md", @@ -11511,7 +12168,7 @@ "x-appwrite": { "method": "get", "group": "functions", - "weight": 430, + "weight": 438, "cookies": false, "type": "", "demo": "functions\/get.md", @@ -11570,7 +12227,7 @@ "x-appwrite": { "method": "update", "group": "functions", - "weight": 431, + "weight": 439, "cookies": false, "type": "", "demo": "functions\/update.md", @@ -11817,7 +12474,7 @@ "x-appwrite": { "method": "delete", "group": "functions", - "weight": 433, + "weight": 441, "cookies": false, "type": "", "demo": "functions\/delete.md", @@ -11878,7 +12535,7 @@ "x-appwrite": { "method": "updateFunctionDeployment", "group": "functions", - "weight": 438, + "weight": 446, "cookies": false, "type": "", "demo": "functions\/update-function-deployment.md", @@ -11955,7 +12612,7 @@ "x-appwrite": { "method": "listDeployments", "group": "deployments", - "weight": 439, + "weight": 447, "cookies": false, "type": "", "demo": "functions\/list-deployments.md", @@ -12035,7 +12692,7 @@ "x-appwrite": { "method": "createDeployment", "group": "deployments", - "weight": 436, + "weight": 444, "cookies": false, "type": "upload", "demo": "functions\/create-deployment.md", @@ -12127,7 +12784,7 @@ "x-appwrite": { "method": "createDuplicateDeployment", "group": "deployments", - "weight": 444, + "weight": 452, "cookies": false, "type": "", "demo": "functions\/create-duplicate-deployment.md", @@ -12212,7 +12869,7 @@ "x-appwrite": { "method": "createTemplateDeployment", "group": "deployments", - "weight": 441, + "weight": 449, "cookies": false, "type": "", "demo": "functions\/create-template-deployment.md", @@ -12318,7 +12975,7 @@ "x-appwrite": { "method": "createVcsDeployment", "group": "deployments", - "weight": 442, + "weight": 450, "cookies": false, "type": "", "demo": "functions\/create-vcs-deployment.md", @@ -12414,7 +13071,7 @@ "x-appwrite": { "method": "getDeployment", "group": "deployments", - "weight": 437, + "weight": 445, "cookies": false, "type": "", "demo": "functions\/get-deployment.md", @@ -12476,7 +13133,7 @@ "x-appwrite": { "method": "deleteDeployment", "group": "deployments", - "weight": 440, + "weight": 448, "cookies": false, "type": "", "demo": "functions\/delete-deployment.md", @@ -12543,7 +13200,7 @@ "x-appwrite": { "method": "getDeploymentDownload", "group": "deployments", - "weight": 443, + "weight": 451, "cookies": false, "type": "location", "demo": "functions\/get-deployment-download.md", @@ -12628,7 +13285,7 @@ "x-appwrite": { "method": "updateDeploymentStatus", "group": "deployments", - "weight": 445, + "weight": 453, "cookies": false, "type": "", "demo": "functions\/update-deployment-status.md", @@ -12695,7 +13352,7 @@ "x-appwrite": { "method": "listExecutions", "group": "executions", - "weight": 448, + "weight": 456, "cookies": false, "type": "", "demo": "functions\/list-executions.md", @@ -12768,7 +13425,7 @@ "x-appwrite": { "method": "createExecution", "group": "executions", - "weight": 446, + "weight": 454, "cookies": false, "type": "", "demo": "functions\/create-execution.md", @@ -12828,7 +13485,7 @@ }, "method": { "type": "string", - "description": "HTTP method of execution. Default value is GET.", + "description": "HTTP method of execution. Default value is POST.", "default": "POST", "x-example": "GET", "enum": [ @@ -12837,7 +13494,8 @@ "PUT", "PATCH", "DELETE", - "OPTIONS" + "OPTIONS", + "HEAD" ], "x-enum-name": "ExecutionMethod", "x-enum-keys": [] @@ -12884,7 +13542,7 @@ "x-appwrite": { "method": "getExecution", "group": "executions", - "weight": 447, + "weight": 455, "cookies": false, "type": "", "demo": "functions\/get-execution.md", @@ -12948,7 +13606,7 @@ "x-appwrite": { "method": "deleteExecution", "group": "executions", - "weight": 449, + "weight": 457, "cookies": false, "type": "", "demo": "functions\/delete-execution.md", @@ -13015,7 +13673,7 @@ "x-appwrite": { "method": "getUsage", "group": null, - "weight": 450, + "weight": 458, "cookies": false, "type": "", "demo": "functions\/get-usage.md", @@ -13093,7 +13751,7 @@ "x-appwrite": { "method": "listVariables", "group": "variables", - "weight": 454, + "weight": 462, "cookies": false, "type": "", "demo": "functions\/list-variables.md", @@ -13152,7 +13810,7 @@ "x-appwrite": { "method": "createVariable", "group": "variables", - "weight": 452, + "weight": 460, "cookies": false, "type": "", "demo": "functions\/create-variable.md", @@ -13242,7 +13900,7 @@ "x-appwrite": { "method": "getVariable", "group": "variables", - "weight": 453, + "weight": 461, "cookies": false, "type": "", "demo": "functions\/get-variable.md", @@ -13309,7 +13967,7 @@ "x-appwrite": { "method": "updateVariable", "group": "variables", - "weight": 455, + "weight": 463, "cookies": false, "type": "", "demo": "functions\/update-variable.md", @@ -13401,7 +14059,7 @@ "x-appwrite": { "method": "deleteVariable", "group": "variables", - "weight": 456, + "weight": 464, "cookies": false, "type": "", "demo": "functions\/delete-variable.md", @@ -13470,7 +14128,7 @@ "x-appwrite": { "method": "query", "group": "graphql", - "weight": 255, + "weight": 250, "cookies": false, "type": "graphql", "demo": "graphql\/query.md", @@ -13543,7 +14201,7 @@ "x-appwrite": { "method": "mutation", "group": "graphql", - "weight": 254, + "weight": 249, "cookies": false, "type": "graphql", "demo": "graphql\/mutation.md", @@ -13822,7 +14480,7 @@ "weight": 80, "cookies": false, "type": "", - "demo": "health\/get-d-b.md", + "demo": "health\/get-db.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/health\/get-db.md", "rate-limit": 0, "rate-time": 3600, @@ -14528,7 +15186,7 @@ }, "\/health\/queue\/stats-resources": { "get": { - "summary": "Get stats resources queue", + "summary": "Get stats resources queue", "operationId": "healthGetQueueStatsResources", "consumes": [], "produces": [ @@ -15084,7 +15742,7 @@ "weight": 73, "cookies": false, "type": "", - "demo": "locale\/list-countries-e-u.md", + "demo": "locale\/list-countries-eu.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/locale\/list-countries-eu.md", "rate-limit": 0, "rate-time": 3600, @@ -15285,7 +15943,7 @@ "x-appwrite": { "method": "listMessages", "group": "messages", - "weight": 309, + "weight": 304, "cookies": false, "type": "", "demo": "messaging\/list-messages.md", @@ -15360,7 +16018,7 @@ "x-appwrite": { "method": "createEmail", "group": "messages", - "weight": 306, + "weight": 301, "cookies": false, "type": "", "demo": "messaging\/create-email.md", @@ -15518,7 +16176,7 @@ "x-appwrite": { "method": "updateEmail", "group": "messages", - "weight": 313, + "weight": 308, "cookies": false, "type": "", "demo": "messaging\/update-email.md", @@ -15673,7 +16331,7 @@ "x-appwrite": { "method": "createPush", "group": "messages", - "weight": 308, + "weight": 303, "cookies": false, "type": "", "demo": "messaging\/create-push.md", @@ -15868,7 +16526,7 @@ "x-appwrite": { "method": "updatePush", "group": "messages", - "weight": 315, + "weight": 310, "cookies": false, "type": "", "demo": "messaging\/update-push.md", @@ -16062,7 +16720,7 @@ "x-appwrite": { "method": "createSms", "group": "messages", - "weight": 307, + "weight": 302, "cookies": false, "type": "", "demo": "messaging\/create-sms.md", @@ -16141,7 +16799,7 @@ } ], "description": "Create a new SMS message.", - "demo": "messaging\/create-s-m-s.md" + "demo": "messaging\/create-sms.md" } ], "auth": { @@ -16248,7 +16906,7 @@ "x-appwrite": { "method": "updateSms", "group": "messages", - "weight": 314, + "weight": 309, "cookies": false, "type": "", "demo": "messaging\/update-sms.md", @@ -16325,7 +16983,7 @@ } ], "description": "Update an SMS message by its unique ID. This endpoint only works on messages that are in draft status. Messages that are already processing, sent, or failed cannot be updated.\n", - "demo": "messaging\/update-s-m-s.md" + "demo": "messaging\/update-sms.md" } ], "auth": { @@ -16428,7 +17086,7 @@ "x-appwrite": { "method": "getMessage", "group": "messages", - "weight": 312, + "weight": 307, "cookies": false, "type": "", "demo": "messaging\/get-message.md", @@ -16483,7 +17141,7 @@ "x-appwrite": { "method": "delete", "group": "messages", - "weight": 316, + "weight": 311, "cookies": false, "type": "", "demo": "messaging\/delete.md", @@ -16543,7 +17201,7 @@ "x-appwrite": { "method": "listMessageLogs", "group": "logs", - "weight": 310, + "weight": 305, "cookies": false, "type": "", "demo": "messaging\/list-message-logs.md", @@ -16615,7 +17273,7 @@ "x-appwrite": { "method": "listTargets", "group": "messages", - "weight": 311, + "weight": 306, "cookies": false, "type": "", "demo": "messaging\/list-targets.md", @@ -16687,7 +17345,7 @@ "x-appwrite": { "method": "listProviders", "group": "providers", - "weight": 281, + "weight": 276, "cookies": false, "type": "", "demo": "messaging\/list-providers.md", @@ -16762,7 +17420,7 @@ "x-appwrite": { "method": "createApnsProvider", "group": "providers", - "weight": 280, + "weight": 275, "cookies": false, "type": "", "demo": "messaging\/create-apns-provider.md", @@ -16843,7 +17501,7 @@ } ], "description": "Create a new Apple Push Notification service provider.", - "demo": "messaging\/create-a-p-n-s-provider.md" + "demo": "messaging\/create-apns-provider.md" } ], "auth": { @@ -16947,7 +17605,7 @@ "x-appwrite": { "method": "updateApnsProvider", "group": "providers", - "weight": 293, + "weight": 288, "cookies": false, "type": "", "demo": "messaging\/update-apns-provider.md", @@ -17026,7 +17684,7 @@ } ], "description": "Update a Apple Push Notification service provider by its unique ID.", - "demo": "messaging\/update-a-p-n-s-provider.md" + "demo": "messaging\/update-apns-provider.md" } ], "auth": { @@ -17128,7 +17786,7 @@ "x-appwrite": { "method": "createFcmProvider", "group": "providers", - "weight": 279, + "weight": 274, "cookies": false, "type": "", "demo": "messaging\/create-fcm-provider.md", @@ -17201,7 +17859,7 @@ } ], "description": "Create a new Firebase Cloud Messaging provider.", - "demo": "messaging\/create-f-c-m-provider.md" + "demo": "messaging\/create-fcm-provider.md" } ], "auth": { @@ -17281,7 +17939,7 @@ "x-appwrite": { "method": "updateFcmProvider", "group": "providers", - "weight": 292, + "weight": 287, "cookies": false, "type": "", "demo": "messaging\/update-fcm-provider.md", @@ -17352,7 +18010,7 @@ } ], "description": "Update a Firebase Cloud Messaging provider by its unique ID.", - "demo": "messaging\/update-f-c-m-provider.md" + "demo": "messaging\/update-fcm-provider.md" } ], "auth": { @@ -17430,7 +18088,7 @@ "x-appwrite": { "method": "createMailgunProvider", "group": "providers", - "weight": 271, + "weight": 266, "cookies": false, "type": "", "demo": "messaging\/create-mailgun-provider.md", @@ -17557,7 +18215,7 @@ "x-appwrite": { "method": "updateMailgunProvider", "group": "providers", - "weight": 284, + "weight": 279, "cookies": false, "type": "", "demo": "messaging\/update-mailgun-provider.md", @@ -17682,10 +18340,10 @@ "x-appwrite": { "method": "createMsg91Provider", "group": "providers", - "weight": 274, + "weight": 269, "cookies": false, "type": "", - "demo": "messaging\/create-msg91provider.md", + "demo": "messaging\/create-msg-91-provider.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/messaging\/create-msg91-provider.md", "rate-limit": 0, "rate-time": 3600, @@ -17785,10 +18443,10 @@ "x-appwrite": { "method": "updateMsg91Provider", "group": "providers", - "weight": 287, + "weight": 282, "cookies": false, "type": "", - "demo": "messaging\/update-msg91provider.md", + "demo": "messaging\/update-msg-91-provider.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/messaging\/update-msg91-provider.md", "rate-limit": 0, "rate-time": 3600, @@ -17886,7 +18544,7 @@ "x-appwrite": { "method": "createSendgridProvider", "group": "providers", - "weight": 272, + "weight": 267, "cookies": false, "type": "", "demo": "messaging\/create-sendgrid-provider.md", @@ -18001,7 +18659,7 @@ "x-appwrite": { "method": "updateSendgridProvider", "group": "providers", - "weight": 285, + "weight": 280, "cookies": false, "type": "", "demo": "messaging\/update-sendgrid-provider.md", @@ -18114,7 +18772,7 @@ "x-appwrite": { "method": "createSmtpProvider", "group": "providers", - "weight": 273, + "weight": 268, "cookies": false, "type": "", "demo": "messaging\/create-smtp-provider.md", @@ -18209,7 +18867,7 @@ } ], "description": "Create a new SMTP provider.", - "demo": "messaging\/create-s-m-t-p-provider.md" + "demo": "messaging\/create-smtp-provider.md" } ], "auth": { @@ -18357,7 +19015,7 @@ "x-appwrite": { "method": "updateSmtpProvider", "group": "providers", - "weight": 286, + "weight": 281, "cookies": false, "type": "", "demo": "messaging\/update-smtp-provider.md", @@ -18448,7 +19106,7 @@ } ], "description": "Update a SMTP provider by its unique ID.", - "demo": "messaging\/update-s-m-t-p-provider.md" + "demo": "messaging\/update-smtp-provider.md" } ], "auth": { @@ -18593,7 +19251,7 @@ "x-appwrite": { "method": "createTelesignProvider", "group": "providers", - "weight": 275, + "weight": 270, "cookies": false, "type": "", "demo": "messaging\/create-telesign-provider.md", @@ -18696,7 +19354,7 @@ "x-appwrite": { "method": "updateTelesignProvider", "group": "providers", - "weight": 288, + "weight": 283, "cookies": false, "type": "", "demo": "messaging\/update-telesign-provider.md", @@ -18797,7 +19455,7 @@ "x-appwrite": { "method": "createTextmagicProvider", "group": "providers", - "weight": 276, + "weight": 271, "cookies": false, "type": "", "demo": "messaging\/create-textmagic-provider.md", @@ -18900,7 +19558,7 @@ "x-appwrite": { "method": "updateTextmagicProvider", "group": "providers", - "weight": 289, + "weight": 284, "cookies": false, "type": "", "demo": "messaging\/update-textmagic-provider.md", @@ -19001,7 +19659,7 @@ "x-appwrite": { "method": "createTwilioProvider", "group": "providers", - "weight": 277, + "weight": 272, "cookies": false, "type": "", "demo": "messaging\/create-twilio-provider.md", @@ -19104,7 +19762,7 @@ "x-appwrite": { "method": "updateTwilioProvider", "group": "providers", - "weight": 290, + "weight": 285, "cookies": false, "type": "", "demo": "messaging\/update-twilio-provider.md", @@ -19205,7 +19863,7 @@ "x-appwrite": { "method": "createVonageProvider", "group": "providers", - "weight": 278, + "weight": 273, "cookies": false, "type": "", "demo": "messaging\/create-vonage-provider.md", @@ -19308,7 +19966,7 @@ "x-appwrite": { "method": "updateVonageProvider", "group": "providers", - "weight": 291, + "weight": 286, "cookies": false, "type": "", "demo": "messaging\/update-vonage-provider.md", @@ -19407,7 +20065,7 @@ "x-appwrite": { "method": "getProvider", "group": "providers", - "weight": 283, + "weight": 278, "cookies": false, "type": "", "demo": "messaging\/get-provider.md", @@ -19462,7 +20120,7 @@ "x-appwrite": { "method": "deleteProvider", "group": "providers", - "weight": 294, + "weight": 289, "cookies": false, "type": "", "demo": "messaging\/delete-provider.md", @@ -19522,7 +20180,7 @@ "x-appwrite": { "method": "listProviderLogs", "group": "providers", - "weight": 282, + "weight": 277, "cookies": false, "type": "", "demo": "messaging\/list-provider-logs.md", @@ -19594,7 +20252,7 @@ "x-appwrite": { "method": "listSubscriberLogs", "group": "subscribers", - "weight": 303, + "weight": 298, "cookies": false, "type": "", "demo": "messaging\/list-subscriber-logs.md", @@ -19666,7 +20324,7 @@ "x-appwrite": { "method": "listTopics", "group": "topics", - "weight": 296, + "weight": 291, "cookies": false, "type": "", "demo": "messaging\/list-topics.md", @@ -19739,7 +20397,7 @@ "x-appwrite": { "method": "createTopic", "group": "topics", - "weight": 295, + "weight": 290, "cookies": false, "type": "", "demo": "messaging\/create-topic.md", @@ -19827,7 +20485,7 @@ "x-appwrite": { "method": "getTopic", "group": "topics", - "weight": 298, + "weight": 293, "cookies": false, "type": "", "demo": "messaging\/get-topic.md", @@ -19887,7 +20545,7 @@ "x-appwrite": { "method": "updateTopic", "group": "topics", - "weight": 299, + "weight": 294, "cookies": false, "type": "", "demo": "messaging\/update-topic.md", @@ -19966,7 +20624,7 @@ "x-appwrite": { "method": "deleteTopic", "group": "topics", - "weight": 300, + "weight": 295, "cookies": false, "type": "", "demo": "messaging\/delete-topic.md", @@ -20026,7 +20684,7 @@ "x-appwrite": { "method": "listTopicLogs", "group": "topics", - "weight": 297, + "weight": 292, "cookies": false, "type": "", "demo": "messaging\/list-topic-logs.md", @@ -20098,7 +20756,7 @@ "x-appwrite": { "method": "listSubscribers", "group": "subscribers", - "weight": 302, + "weight": 297, "cookies": false, "type": "", "demo": "messaging\/list-subscribers.md", @@ -20179,7 +20837,7 @@ "x-appwrite": { "method": "createSubscriber", "group": "subscribers", - "weight": 301, + "weight": 296, "cookies": false, "type": "", "demo": "messaging\/create-subscriber.md", @@ -20266,7 +20924,7 @@ "x-appwrite": { "method": "getSubscriber", "group": "subscribers", - "weight": 304, + "weight": 299, "cookies": false, "type": "", "demo": "messaging\/get-subscriber.md", @@ -20329,7 +20987,7 @@ "x-appwrite": { "method": "deleteSubscriber", "group": "subscribers", - "weight": 305, + "weight": 300, "cookies": false, "type": "", "demo": "messaging\/delete-subscriber.md", @@ -20399,7 +21057,7 @@ "x-appwrite": { "method": "list", "group": null, - "weight": 263, + "weight": 258, "cookies": false, "type": "", "demo": "migrations\/list.md", @@ -20472,7 +21130,7 @@ "x-appwrite": { "method": "createAppwriteMigration", "group": null, - "weight": 258, + "weight": 253, "cookies": false, "type": "", "demo": "migrations\/create-appwrite-migration.md", @@ -20564,7 +21222,7 @@ "x-appwrite": { "method": "getAppwriteReport", "group": null, - "weight": 265, + "weight": 260, "cookies": false, "type": "", "demo": "migrations\/get-appwrite-report.md", @@ -20652,7 +21310,7 @@ "x-appwrite": { "method": "createCsvMigration", "group": null, - "weight": 262, + "weight": 257, "cookies": false, "type": "", "demo": "migrations\/create-csv-migration.md", @@ -20742,7 +21400,7 @@ "x-appwrite": { "method": "createFirebaseMigration", "group": null, - "weight": 259, + "weight": 254, "cookies": false, "type": "", "demo": "migrations\/create-firebase-migration.md", @@ -20820,7 +21478,7 @@ "x-appwrite": { "method": "getFirebaseReport", "group": null, - "weight": 266, + "weight": 261, "cookies": false, "type": "", "demo": "migrations\/get-firebase-report.md", @@ -20891,7 +21549,7 @@ "x-appwrite": { "method": "createNHostMigration", "group": null, - "weight": 261, + "weight": 256, "cookies": false, "type": "", "demo": "migrations\/create-n-host-migration.md", @@ -21010,7 +21668,7 @@ "x-appwrite": { "method": "getNHostReport", "group": null, - "weight": 268, + "weight": 263, "cookies": false, "type": "", "demo": "migrations\/get-n-host-report.md", @@ -21130,7 +21788,7 @@ "x-appwrite": { "method": "createSupabaseMigration", "group": null, - "weight": 260, + "weight": 255, "cookies": false, "type": "", "demo": "migrations\/create-supabase-migration.md", @@ -21242,7 +21900,7 @@ "x-appwrite": { "method": "getSupabaseReport", "group": null, - "weight": 267, + "weight": 262, "cookies": false, "type": "", "demo": "migrations\/get-supabase-report.md", @@ -21353,7 +22011,7 @@ "x-appwrite": { "method": "get", "group": null, - "weight": 264, + "weight": 259, "cookies": false, "type": "", "demo": "migrations\/get.md", @@ -21411,7 +22069,7 @@ "x-appwrite": { "method": "retry", "group": null, - "weight": 269, + "weight": 264, "cookies": false, "type": "", "demo": "migrations\/retry.md", @@ -21464,7 +22122,7 @@ "x-appwrite": { "method": "delete", "group": null, - "weight": 270, + "weight": 265, "cookies": false, "type": "", "demo": "migrations\/delete.md", @@ -21522,7 +22180,7 @@ "x-appwrite": { "method": "getUsage", "group": null, - "weight": 149, + "weight": 148, "cookies": false, "type": "", "demo": "project\/get-usage.md", @@ -21604,7 +22262,7 @@ "x-appwrite": { "method": "listVariables", "group": null, - "weight": 151, + "weight": 150, "cookies": false, "type": "", "demo": "project\/list-variables.md", @@ -21652,7 +22310,7 @@ "x-appwrite": { "method": "createVariable", "group": null, - "weight": 150, + "weight": 149, "cookies": false, "type": "", "demo": "project\/create-variable.md", @@ -21733,7 +22391,7 @@ "x-appwrite": { "method": "getVariable", "group": null, - "weight": 152, + "weight": 151, "cookies": false, "type": "", "demo": "project\/get-variable.md", @@ -21791,7 +22449,7 @@ "x-appwrite": { "method": "updateVariable", "group": null, - "weight": 153, + "weight": 152, "cookies": false, "type": "", "demo": "project\/update-variable.md", @@ -21874,7 +22532,7 @@ "x-appwrite": { "method": "deleteVariable", "group": null, - "weight": 154, + "weight": 153, "cookies": false, "type": "", "demo": "project\/delete-variable.md", @@ -21932,11 +22590,11 @@ "x-appwrite": { "method": "list", "group": "projects", - "weight": 103, + "weight": 436, "cookies": false, "type": "", "demo": "projects\/list.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/projects\/list.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/masterGet a list of all projects. You can use the query params to filter your results. ", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -22150,7 +22808,7 @@ "x-appwrite": { "method": "get", "group": "projects", - "weight": 104, + "weight": 103, "cookies": false, "type": "", "demo": "projects\/get.md", @@ -22208,7 +22866,7 @@ "x-appwrite": { "method": "update", "group": "projects", - "weight": 105, + "weight": 104, "cookies": false, "type": "", "demo": "projects\/update.md", @@ -22333,7 +22991,7 @@ "x-appwrite": { "method": "delete", "group": "projects", - "weight": 122, + "weight": 121, "cookies": false, "type": "", "demo": "projects\/delete.md", @@ -22393,7 +23051,7 @@ "x-appwrite": { "method": "updateApiStatus", "group": "projects", - "weight": 109, + "weight": 108, "cookies": false, "type": "", "demo": "projects\/update-api-status.md", @@ -22465,7 +23123,7 @@ } ], "description": "Update the status of a specific API type. Use this endpoint to enable or disable API types such as REST, GraphQL and Realtime.", - "demo": "projects\/update-a-p-i-status.md" + "demo": "projects\/update-api-status.md" } ], "auth": { @@ -22547,7 +23205,7 @@ "x-appwrite": { "method": "updateApiStatusAll", "group": "projects", - "weight": 110, + "weight": 109, "cookies": false, "type": "", "demo": "projects\/update-api-status-all.md", @@ -22615,7 +23273,7 @@ } ], "description": "Update the status of all API types. Use this endpoint to enable or disable API types such as REST, GraphQL and Realtime all at once.", - "demo": "projects\/update-a-p-i-status-all.md" + "demo": "projects\/update-api-status-all.md" } ], "auth": { @@ -22683,7 +23341,7 @@ "x-appwrite": { "method": "updateAuthDuration", "group": "auth", - "weight": 115, + "weight": 114, "cookies": false, "type": "", "demo": "projects\/update-auth-duration.md", @@ -22761,7 +23419,7 @@ "x-appwrite": { "method": "updateAuthLimit", "group": "auth", - "weight": 114, + "weight": 113, "cookies": false, "type": "", "demo": "projects\/update-auth-limit.md", @@ -22839,7 +23497,7 @@ "x-appwrite": { "method": "updateAuthSessionsLimit", "group": "auth", - "weight": 120, + "weight": 119, "cookies": false, "type": "", "demo": "projects\/update-auth-sessions-limit.md", @@ -22917,7 +23575,7 @@ "x-appwrite": { "method": "updateMembershipsPrivacy", "group": "auth", - "weight": 113, + "weight": 112, "cookies": false, "type": "", "demo": "projects\/update-memberships-privacy.md", @@ -23009,7 +23667,7 @@ "x-appwrite": { "method": "updateMockNumbers", "group": "auth", - "weight": 121, + "weight": 120, "cookies": false, "type": "", "demo": "projects\/update-mock-numbers.md", @@ -23090,7 +23748,7 @@ "x-appwrite": { "method": "updateAuthPasswordDictionary", "group": "auth", - "weight": 118, + "weight": 117, "cookies": false, "type": "", "demo": "projects\/update-auth-password-dictionary.md", @@ -23168,7 +23826,7 @@ "x-appwrite": { "method": "updateAuthPasswordHistory", "group": "auth", - "weight": 117, + "weight": 116, "cookies": false, "type": "", "demo": "projects\/update-auth-password-history.md", @@ -23246,7 +23904,7 @@ "x-appwrite": { "method": "updatePersonalDataCheck", "group": "auth", - "weight": 119, + "weight": 118, "cookies": false, "type": "", "demo": "projects\/update-personal-data-check.md", @@ -23324,7 +23982,7 @@ "x-appwrite": { "method": "updateSessionAlerts", "group": "auth", - "weight": 112, + "weight": 111, "cookies": false, "type": "", "demo": "projects\/update-session-alerts.md", @@ -23402,7 +24060,7 @@ "x-appwrite": { "method": "updateSessionInvalidation", "group": "auth", - "weight": 148, + "weight": 147, "cookies": false, "type": "", "demo": "projects\/update-session-invalidation.md", @@ -23480,7 +24138,7 @@ "x-appwrite": { "method": "updateAuthStatus", "group": "auth", - "weight": 116, + "weight": 115, "cookies": false, "type": "", "demo": "projects\/update-auth-status.md", @@ -23575,7 +24233,7 @@ "x-appwrite": { "method": "listDevKeys", "group": "devKeys", - "weight": 427, + "weight": 434, "cookies": false, "type": "", "demo": "projects\/list-dev-keys.md", @@ -23645,7 +24303,7 @@ "x-appwrite": { "method": "createDevKey", "group": "devKeys", - "weight": 424, + "weight": 431, "cookies": false, "type": "", "demo": "projects\/create-dev-key.md", @@ -23728,7 +24386,7 @@ "x-appwrite": { "method": "getDevKey", "group": "devKeys", - "weight": 426, + "weight": 433, "cookies": false, "type": "", "demo": "projects\/get-dev-key.md", @@ -23794,7 +24452,7 @@ "x-appwrite": { "method": "updateDevKey", "group": "devKeys", - "weight": 425, + "weight": 432, "cookies": false, "type": "", "demo": "projects\/update-dev-key.md", @@ -23880,7 +24538,7 @@ "x-appwrite": { "method": "deleteDevKey", "group": "devKeys", - "weight": 428, + "weight": 435, "cookies": false, "type": "", "demo": "projects\/delete-dev-key.md", @@ -23948,10 +24606,10 @@ "x-appwrite": { "method": "createJWT", "group": "auth", - "weight": 134, + "weight": 133, "cookies": false, "type": "", - "demo": "projects\/create-j-w-t.md", + "demo": "projects\/create-jwt.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/projects\/create-jwt.md", "rate-limit": 0, "rate-time": 3600, @@ -24033,7 +24691,7 @@ "x-appwrite": { "method": "listKeys", "group": "keys", - "weight": 130, + "weight": 129, "cookies": false, "type": "", "demo": "projects\/list-keys.md", @@ -24091,7 +24749,7 @@ "x-appwrite": { "method": "createKey", "group": "keys", - "weight": 129, + "weight": 128, "cookies": false, "type": "", "demo": "projects\/create-key.md", @@ -24183,7 +24841,7 @@ "x-appwrite": { "method": "getKey", "group": "keys", - "weight": 131, + "weight": 130, "cookies": false, "type": "", "demo": "projects\/get-key.md", @@ -24249,7 +24907,7 @@ "x-appwrite": { "method": "updateKey", "group": "keys", - "weight": 132, + "weight": 131, "cookies": false, "type": "", "demo": "projects\/update-key.md", @@ -24344,7 +25002,7 @@ "x-appwrite": { "method": "deleteKey", "group": "keys", - "weight": 133, + "weight": 132, "cookies": false, "type": "", "demo": "projects\/delete-key.md", @@ -24412,10 +25070,10 @@ "x-appwrite": { "method": "updateOAuth2", "group": "auth", - "weight": 111, + "weight": 110, "cookies": false, "type": "", - "demo": "projects\/update-o-auth2.md", + "demo": "projects\/update-o-auth-2.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/projects\/update-oauth2.md", "rate-limit": 0, "rate-time": 3600, @@ -24550,7 +25208,7 @@ "x-appwrite": { "method": "listPlatforms", "group": "platforms", - "weight": 136, + "weight": 135, "cookies": false, "type": "", "demo": "projects\/list-platforms.md", @@ -24608,7 +25266,7 @@ "x-appwrite": { "method": "createPlatform", "group": "platforms", - "weight": 135, + "weight": 134, "cookies": false, "type": "", "demo": "projects\/create-platform.md", @@ -24728,7 +25386,7 @@ "x-appwrite": { "method": "getPlatform", "group": "platforms", - "weight": 137, + "weight": 136, "cookies": false, "type": "", "demo": "projects\/get-platform.md", @@ -24794,7 +25452,7 @@ "x-appwrite": { "method": "updatePlatform", "group": "platforms", - "weight": 138, + "weight": 137, "cookies": false, "type": "", "demo": "projects\/update-platform.md", @@ -24891,7 +25549,7 @@ "x-appwrite": { "method": "deletePlatform", "group": "platforms", - "weight": 139, + "weight": 138, "cookies": false, "type": "", "demo": "projects\/delete-platform.md", @@ -24959,7 +25617,7 @@ "x-appwrite": { "method": "updateServiceStatus", "group": "projects", - "weight": 107, + "weight": 106, "cookies": false, "type": "", "demo": "projects\/update-service-status.md", @@ -25061,7 +25719,7 @@ "x-appwrite": { "method": "updateServiceStatusAll", "group": "projects", - "weight": 108, + "weight": 107, "cookies": false, "type": "", "demo": "projects\/update-service-status-all.md", @@ -25139,7 +25797,7 @@ "x-appwrite": { "method": "updateSmtp", "group": "templates", - "weight": 140, + "weight": 139, "cookies": false, "type": "", "demo": "projects\/update-smtp.md", @@ -25223,7 +25881,7 @@ } ], "description": "Update the SMTP configuration for your project. Use this endpoint to configure your project's SMTP provider with your custom settings for sending transactional emails. ", - "demo": "projects\/update-s-m-t-p.md" + "demo": "projects\/update-smtp.md" } ], "auth": { @@ -25342,7 +26000,7 @@ "x-appwrite": { "method": "createSmtpTest", "group": "templates", - "weight": 141, + "weight": 140, "cookies": false, "type": "", "demo": "projects\/create-smtp-test.md", @@ -25430,7 +26088,7 @@ } ], "description": "Send a test email to verify SMTP configuration. ", - "demo": "projects\/create-s-m-t-p-test.md" + "demo": "projects\/create-smtp-test.md" } ], "auth": { @@ -25558,7 +26216,7 @@ "x-appwrite": { "method": "updateTeam", "group": "projects", - "weight": 106, + "weight": 105, "cookies": false, "type": "", "demo": "projects\/update-team.md", @@ -25634,7 +26292,7 @@ "x-appwrite": { "method": "getEmailTemplate", "group": "templates", - "weight": 143, + "weight": 142, "cookies": false, "type": "", "demo": "projects\/get-email-template.md", @@ -25854,7 +26512,7 @@ "x-appwrite": { "method": "updateEmailTemplate", "group": "templates", - "weight": 145, + "weight": 144, "cookies": false, "type": "", "demo": "projects\/update-email-template.md", @@ -26117,7 +26775,7 @@ "x-appwrite": { "method": "deleteEmailTemplate", "group": "templates", - "weight": 147, + "weight": 146, "cookies": false, "type": "", "demo": "projects\/delete-email-template.md", @@ -26337,7 +26995,7 @@ "x-appwrite": { "method": "getSmsTemplate", "group": "templates", - "weight": 142, + "weight": 141, "cookies": false, "type": "", "demo": "projects\/get-sms-template.md", @@ -26409,7 +27067,7 @@ } ], "description": "Get a custom SMS template for the specified locale and type returning it's contents.", - "demo": "projects\/get-s-m-s-template.md" + "demo": "projects\/get-sms-template.md" } ], "auth": { @@ -26616,7 +27274,7 @@ "x-appwrite": { "method": "updateSmsTemplate", "group": "templates", - "weight": 144, + "weight": 143, "cookies": false, "type": "", "demo": "projects\/update-sms-template.md", @@ -26692,7 +27350,7 @@ } ], "description": "Update a custom SMS template for the specified locale and type. Use this endpoint to modify the content of your SMS templates. ", - "demo": "projects\/update-s-m-s-template.md" + "demo": "projects\/update-sms-template.md" } ], "auth": { @@ -26917,7 +27575,7 @@ "x-appwrite": { "method": "deleteSmsTemplate", "group": "templates", - "weight": 146, + "weight": 145, "cookies": false, "type": "", "demo": "projects\/delete-sms-template.md", @@ -26989,7 +27647,7 @@ } ], "description": "Reset a custom SMS template to its default value. This endpoint removes any custom message and restores the template to its original state. ", - "demo": "projects\/delete-s-m-s-template.md" + "demo": "projects\/delete-sms-template.md" } ], "auth": { @@ -27196,7 +27854,7 @@ "x-appwrite": { "method": "listWebhooks", "group": "webhooks", - "weight": 124, + "weight": 123, "cookies": false, "type": "", "demo": "projects\/list-webhooks.md", @@ -27254,7 +27912,7 @@ "x-appwrite": { "method": "createWebhook", "group": "webhooks", - "weight": 123, + "weight": 122, "cookies": false, "type": "", "demo": "projects\/create-webhook.md", @@ -27372,7 +28030,7 @@ "x-appwrite": { "method": "getWebhook", "group": "webhooks", - "weight": 125, + "weight": 124, "cookies": false, "type": "", "demo": "projects\/get-webhook.md", @@ -27438,7 +28096,7 @@ "x-appwrite": { "method": "updateWebhook", "group": "webhooks", - "weight": 126, + "weight": 125, "cookies": false, "type": "", "demo": "projects\/update-webhook.md", @@ -27559,7 +28217,7 @@ "x-appwrite": { "method": "deleteWebhook", "group": "webhooks", - "weight": 128, + "weight": 127, "cookies": false, "type": "", "demo": "projects\/delete-webhook.md", @@ -27627,7 +28285,7 @@ "x-appwrite": { "method": "updateWebhookSignature", "group": "webhooks", - "weight": 127, + "weight": 126, "cookies": false, "type": "", "demo": "projects\/update-webhook-signature.md", @@ -27693,11 +28351,11 @@ "x-appwrite": { "method": "listRules", "group": null, - "weight": 241, + "weight": 502, "cookies": false, "type": "", "demo": "proxy\/list-rules.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/proxy\/list-rules.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/masterGet a list of all the proxy rules. You can use the query params to filter your results.", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -27766,10 +28424,10 @@ "x-appwrite": { "method": "createAPIRule", "group": null, - "weight": 489, + "weight": 497, "cookies": false, "type": "", - "demo": "proxy\/create-a-p-i-rule.md", + "demo": "proxy\/create-api-rule.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/masterCreate a new proxy rule for serving Appwrite's API on custom domain.", "rate-limit": 10, "rate-time": 60, @@ -27836,7 +28494,7 @@ "x-appwrite": { "method": "createFunctionRule", "group": null, - "weight": 491, + "weight": 499, "cookies": false, "type": "", "demo": "proxy\/create-function-rule.md", @@ -27919,7 +28577,7 @@ "x-appwrite": { "method": "createRedirectRule", "group": null, - "weight": 492, + "weight": 500, "cookies": false, "type": "", "demo": "proxy\/create-redirect-rule.md", @@ -28039,7 +28697,7 @@ "x-appwrite": { "method": "createSiteRule", "group": null, - "weight": 490, + "weight": 498, "cookies": false, "type": "", "demo": "proxy\/create-site-rule.md", @@ -28120,11 +28778,11 @@ "x-appwrite": { "method": "getRule", "group": null, - "weight": 242, + "weight": 501, "cookies": false, "type": "", "demo": "proxy\/get-rule.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/proxy\/get-rule.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/masterGet a proxy rule by its unique ID.", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -28173,11 +28831,11 @@ "x-appwrite": { "method": "deleteRule", "group": null, - "weight": 243, + "weight": 503, "cookies": false, "type": "", "demo": "proxy\/delete-rule.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/proxy\/delete-rule.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/masterDelete a proxy rule by its unique ID.", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -28233,11 +28891,11 @@ "x-appwrite": { "method": "updateRuleVerification", "group": null, - "weight": 244, + "weight": 504, "cookies": false, "type": "", "demo": "proxy\/update-rule-verification.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/proxy\/update-rule-verification.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/masterRetry getting verification process of a proxy rule. This endpoint triggers domain verification by checking DNS records (CNAME) against the configured target domain. If verification is successful, a TLS certificate will be automatically provisioned for the domain.", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", @@ -28291,7 +28949,7 @@ "x-appwrite": { "method": "list", "group": "sites", - "weight": 461, + "weight": 469, "cookies": false, "type": "", "demo": "sites\/list.md", @@ -28363,7 +29021,7 @@ "x-appwrite": { "method": "create", "group": "sites", - "weight": 459, + "weight": 467, "cookies": false, "type": "", "demo": "sites\/create.md", @@ -28630,7 +29288,7 @@ "x-appwrite": { "method": "listFrameworks", "group": "frameworks", - "weight": 464, + "weight": 472, "cookies": false, "type": "", "demo": "sites\/list-frameworks.md", @@ -28679,7 +29337,7 @@ "x-appwrite": { "method": "listSpecifications", "group": "frameworks", - "weight": 487, + "weight": 495, "cookies": false, "type": "", "demo": "sites\/list-specifications.md", @@ -28729,7 +29387,7 @@ "x-appwrite": { "method": "listTemplates", "group": "templates", - "weight": 483, + "weight": 491, "cookies": false, "type": "", "demo": "sites\/list-templates.md", @@ -28823,7 +29481,7 @@ "x-appwrite": { "method": "getTemplate", "group": "templates", - "weight": 484, + "weight": 492, "cookies": false, "type": "", "demo": "sites\/get-template.md", @@ -28881,7 +29539,7 @@ "x-appwrite": { "method": "listUsage", "group": null, - "weight": 485, + "weight": 493, "cookies": false, "type": "", "demo": "sites\/list-usage.md", @@ -28951,7 +29609,7 @@ "x-appwrite": { "method": "get", "group": "sites", - "weight": 460, + "weight": 468, "cookies": false, "type": "", "demo": "sites\/get.md", @@ -29010,7 +29668,7 @@ "x-appwrite": { "method": "update", "group": "sites", - "weight": 462, + "weight": 470, "cookies": false, "type": "", "demo": "sites\/update.md", @@ -29272,7 +29930,7 @@ "x-appwrite": { "method": "delete", "group": "sites", - "weight": 463, + "weight": 471, "cookies": false, "type": "", "demo": "sites\/delete.md", @@ -29333,7 +29991,7 @@ "x-appwrite": { "method": "updateSiteDeployment", "group": "sites", - "weight": 470, + "weight": 478, "cookies": false, "type": "", "demo": "sites\/update-site-deployment.md", @@ -29410,7 +30068,7 @@ "x-appwrite": { "method": "listDeployments", "group": "deployments", - "weight": 469, + "weight": 477, "cookies": false, "type": "", "demo": "sites\/list-deployments.md", @@ -29490,7 +30148,7 @@ "x-appwrite": { "method": "createDeployment", "group": "deployments", - "weight": 465, + "weight": 473, "cookies": false, "type": "upload", "demo": "sites\/create-deployment.md", @@ -29590,7 +30248,7 @@ "x-appwrite": { "method": "createDuplicateDeployment", "group": "deployments", - "weight": 473, + "weight": 481, "cookies": false, "type": "", "demo": "sites\/create-duplicate-deployment.md", @@ -29669,7 +30327,7 @@ "x-appwrite": { "method": "createTemplateDeployment", "group": "deployments", - "weight": 466, + "weight": 474, "cookies": false, "type": "", "demo": "sites\/create-template-deployment.md", @@ -29775,7 +30433,7 @@ "x-appwrite": { "method": "createVcsDeployment", "group": "deployments", - "weight": 467, + "weight": 475, "cookies": false, "type": "", "demo": "sites\/create-vcs-deployment.md", @@ -29872,7 +30530,7 @@ "x-appwrite": { "method": "getDeployment", "group": "deployments", - "weight": 468, + "weight": 476, "cookies": false, "type": "", "demo": "sites\/get-deployment.md", @@ -29934,7 +30592,7 @@ "x-appwrite": { "method": "deleteDeployment", "group": "deployments", - "weight": 471, + "weight": 479, "cookies": false, "type": "", "demo": "sites\/delete-deployment.md", @@ -30001,7 +30659,7 @@ "x-appwrite": { "method": "getDeploymentDownload", "group": "deployments", - "weight": 472, + "weight": 480, "cookies": false, "type": "location", "demo": "sites\/get-deployment-download.md", @@ -30086,7 +30744,7 @@ "x-appwrite": { "method": "updateDeploymentStatus", "group": "deployments", - "weight": 474, + "weight": 482, "cookies": false, "type": "", "demo": "sites\/update-deployment-status.md", @@ -30153,7 +30811,7 @@ "x-appwrite": { "method": "listLogs", "group": "logs", - "weight": 476, + "weight": 484, "cookies": false, "type": "", "demo": "sites\/list-logs.md", @@ -30224,7 +30882,7 @@ "x-appwrite": { "method": "getLog", "group": "logs", - "weight": 475, + "weight": 483, "cookies": false, "type": "", "demo": "sites\/get-log.md", @@ -30288,7 +30946,7 @@ "x-appwrite": { "method": "deleteLog", "group": "logs", - "weight": 477, + "weight": 485, "cookies": false, "type": "", "demo": "sites\/delete-log.md", @@ -30355,7 +31013,7 @@ "x-appwrite": { "method": "getUsage", "group": null, - "weight": 486, + "weight": 494, "cookies": false, "type": "", "demo": "sites\/get-usage.md", @@ -30433,7 +31091,7 @@ "x-appwrite": { "method": "listVariables", "group": "variables", - "weight": 480, + "weight": 488, "cookies": false, "type": "", "demo": "sites\/list-variables.md", @@ -30492,7 +31150,7 @@ "x-appwrite": { "method": "createVariable", "group": "variables", - "weight": 478, + "weight": 486, "cookies": false, "type": "", "demo": "sites\/create-variable.md", @@ -30582,7 +31240,7 @@ "x-appwrite": { "method": "getVariable", "group": "variables", - "weight": 479, + "weight": 487, "cookies": false, "type": "", "demo": "sites\/get-variable.md", @@ -30649,7 +31307,7 @@ "x-appwrite": { "method": "updateVariable", "group": "variables", - "weight": 481, + "weight": 489, "cookies": false, "type": "", "demo": "sites\/update-variable.md", @@ -30741,7 +31399,7 @@ "x-appwrite": { "method": "deleteVariable", "group": "variables", - "weight": 482, + "weight": 490, "cookies": false, "type": "", "demo": "sites\/delete-variable.md", @@ -30808,7 +31466,7 @@ "x-appwrite": { "method": "listBuckets", "group": "buckets", - "weight": 156, + "weight": 155, "cookies": false, "type": "", "demo": "storage\/list-buckets.md", @@ -30880,7 +31538,7 @@ "x-appwrite": { "method": "createBucket", "group": "buckets", - "weight": 155, + "weight": 154, "cookies": false, "type": "", "demo": "storage\/create-bucket.md", @@ -31017,7 +31675,7 @@ "x-appwrite": { "method": "getBucket", "group": "buckets", - "weight": 157, + "weight": 156, "cookies": false, "type": "", "demo": "storage\/get-bucket.md", @@ -31076,7 +31734,7 @@ "x-appwrite": { "method": "updateBucket", "group": "buckets", - "weight": 158, + "weight": 157, "cookies": false, "type": "", "demo": "storage\/update-bucket.md", @@ -31209,7 +31867,7 @@ "x-appwrite": { "method": "deleteBucket", "group": "buckets", - "weight": 159, + "weight": 158, "cookies": false, "type": "", "demo": "storage\/delete-bucket.md", @@ -31268,7 +31926,7 @@ "x-appwrite": { "method": "listFiles", "group": "files", - "weight": 161, + "weight": 160, "cookies": false, "type": "", "demo": "storage\/list-files.md", @@ -31350,7 +32008,7 @@ "x-appwrite": { "method": "createFile", "group": "files", - "weight": 160, + "weight": 159, "cookies": false, "type": "upload", "demo": "storage\/create-file.md", @@ -31439,7 +32097,7 @@ "x-appwrite": { "method": "getFile", "group": "files", - "weight": 162, + "weight": 161, "cookies": false, "type": "", "demo": "storage\/get-file.md", @@ -31508,7 +32166,7 @@ "x-appwrite": { "method": "updateFile", "group": "files", - "weight": 167, + "weight": 166, "cookies": false, "type": "", "demo": "storage\/update-file.md", @@ -31596,7 +32254,7 @@ "x-appwrite": { "method": "deleteFile", "group": "files", - "weight": 168, + "weight": 167, "cookies": false, "type": "", "demo": "storage\/delete-file.md", @@ -31665,7 +32323,7 @@ "x-appwrite": { "method": "getFileDownload", "group": "files", - "weight": 164, + "weight": 163, "cookies": false, "type": "location", "demo": "storage\/get-file-download.md", @@ -31743,7 +32401,7 @@ "x-appwrite": { "method": "getFilePreview", "group": "files", - "weight": 163, + "weight": 162, "cookies": false, "type": "location", "demo": "storage\/get-file-preview.md", @@ -31949,7 +32607,7 @@ "x-appwrite": { "method": "getFileView", "group": "files", - "weight": 165, + "weight": 164, "cookies": false, "type": "location", "demo": "storage\/get-file-view.md", @@ -32027,7 +32685,7 @@ "x-appwrite": { "method": "getUsage", "group": null, - "weight": 169, + "weight": 168, "cookies": false, "type": "", "demo": "storage\/get-usage.md", @@ -32097,7 +32755,7 @@ "x-appwrite": { "method": "getBucketUsage", "group": null, - "weight": 170, + "weight": 169, "cookies": false, "type": "", "demo": "storage\/get-bucket-usage.md", @@ -32175,10 +32833,10 @@ "x-appwrite": { "method": "list", "group": "tablesdb", - "weight": 375, + "weight": 376, "cookies": false, "type": "", - "demo": "tables-d-b\/list.md", + "demo": "tablesdb\/list.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/list.md", "rate-limit": 0, "rate-time": 3600, @@ -32247,10 +32905,10 @@ "x-appwrite": { "method": "create", "group": "tablesdb", - "weight": 371, + "weight": 372, "cookies": false, "type": "", - "demo": "tables-d-b\/create.md", + "demo": "tablesdb\/create.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/create.md", "rate-limit": 0, "rate-time": 3600, @@ -32329,15 +32987,18 @@ "x-appwrite": { "method": "listUsage", "group": null, - "weight": 377, + "weight": 378, "cookies": false, "type": "", - "demo": "tables-d-b\/list-usage.md", + "demo": "tablesdb\/list-usage.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/list-usage.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "tables.read", + "scope": [ + "tables.read", + "collections.read" + ], "platforms": [ "console" ], @@ -32361,7 +33022,7 @@ } ], "description": "List usage metrics and statistics for all databases in the project. You can view the total number of databases, tables, rows, and storage usage. The response includes both current totals and historical data over time. Use the optional range parameter to specify the time window for historical data: 24h (last 24 hours), 30d (last 30 days), or 90d (last 90 days). If not specified, range defaults to 30 days.", - "demo": "tables-d-b\/list-usage.md" + "demo": "tablesdb\/list-usage.md" } ], "auth": { @@ -32421,10 +33082,10 @@ "x-appwrite": { "method": "get", "group": "tablesdb", - "weight": 372, + "weight": 373, "cookies": false, "type": "", - "demo": "tables-d-b\/get.md", + "demo": "tablesdb\/get.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/get.md", "rate-limit": 0, "rate-time": 3600, @@ -32480,10 +33141,10 @@ "x-appwrite": { "method": "update", "group": "tablesdb", - "weight": 373, + "weight": 374, "cookies": false, "type": "", - "demo": "tables-d-b\/update.md", + "demo": "tablesdb\/update.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/update.md", "rate-limit": 0, "rate-time": 3600, @@ -32558,10 +33219,10 @@ "x-appwrite": { "method": "delete", "group": "tablesdb", - "weight": 374, + "weight": 375, "cookies": false, "type": "", - "demo": "tables-d-b\/delete.md", + "demo": "tablesdb\/delete.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/delete.md", "rate-limit": 0, "rate-time": 3600, @@ -32616,16 +33277,19 @@ "deprecated": false, "x-appwrite": { "method": "listTables", - "group": null, - "weight": 382, + "group": "tables", + "weight": 383, "cookies": false, "type": "", - "demo": "tables-d-b\/list-tables.md", + "demo": "tablesdb\/list-tables.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/list-tables.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "tables.read", + "scope": [ + "tables.read", + "collections.read" + ], "platforms": [ "server" ], @@ -32696,16 +33360,19 @@ "deprecated": false, "x-appwrite": { "method": "createTable", - "group": null, - "weight": 378, + "group": "tables", + "weight": 379, "cookies": false, "type": "", - "demo": "tables-d-b\/create-table.md", + "demo": "tablesdb\/create-table.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/create-table.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "tables.write", + "scope": [ + "tables.write", + "collections.write" + ], "platforms": [ "server" ], @@ -32801,16 +33468,19 @@ "deprecated": false, "x-appwrite": { "method": "getTable", - "group": null, - "weight": 379, + "group": "tables", + "weight": 380, "cookies": false, "type": "", - "demo": "tables-d-b\/get-table.md", + "demo": "tablesdb\/get-table.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/get-table.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "tables.read", + "scope": [ + "tables.read", + "collections.read" + ], "platforms": [ "server" ], @@ -32868,16 +33538,19 @@ "deprecated": false, "x-appwrite": { "method": "updateTable", - "group": null, - "weight": 380, + "group": "tables", + "weight": 381, "cookies": false, "type": "", - "demo": "tables-d-b\/update-table.md", + "demo": "tablesdb\/update-table.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/update-table.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "tables.write", + "scope": [ + "tables.write", + "collections.write" + ], "platforms": [ "server" ], @@ -32969,16 +33642,19 @@ "deprecated": false, "x-appwrite": { "method": "deleteTable", - "group": null, - "weight": 381, + "group": "tables", + "weight": 382, "cookies": false, "type": "", - "demo": "tables-d-b\/delete-table.md", + "demo": "tablesdb\/delete-table.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/delete-table.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "tables.write", + "scope": [ + "tables.write", + "collections.write" + ], "platforms": [ "server" ], @@ -33037,15 +33713,18 @@ "x-appwrite": { "method": "listColumns", "group": "columns", - "weight": 387, + "weight": 388, "cookies": false, "type": "", - "demo": "tables-d-b\/list-columns.md", + "demo": "tablesdb\/list-columns.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/list-columns.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "tables.read", + "scope": [ + "tables.read", + "collections.read" + ], "platforms": [ "server" ], @@ -33118,15 +33797,18 @@ "x-appwrite": { "method": "createBooleanColumn", "group": "columns", - "weight": 388, + "weight": 389, "cookies": false, "type": "", - "demo": "tables-d-b\/create-boolean-column.md", + "demo": "tablesdb\/create-boolean-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/create-boolean-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "tables.write", + "scope": [ + "tables.write", + "collections.write" + ], "platforms": [ "server" ], @@ -33224,15 +33906,18 @@ "x-appwrite": { "method": "updateBooleanColumn", "group": "columns", - "weight": 389, + "weight": 390, "cookies": false, "type": "", - "demo": "tables-d-b\/update-boolean-column.md", + "demo": "tablesdb\/update-boolean-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/update-boolean-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "tables.write", + "scope": [ + "tables.write", + "collections.write" + ], "platforms": [ "server" ], @@ -33332,15 +34017,18 @@ "x-appwrite": { "method": "createDatetimeColumn", "group": "columns", - "weight": 390, + "weight": 391, "cookies": false, "type": "", - "demo": "tables-d-b\/create-datetime-column.md", + "demo": "tablesdb\/create-datetime-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/create-datetime-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "tables.write", + "scope": [ + "tables.write", + "collections.write" + ], "platforms": [ "server" ], @@ -33438,15 +34126,18 @@ "x-appwrite": { "method": "updateDatetimeColumn", "group": "columns", - "weight": 391, + "weight": 392, "cookies": false, "type": "", - "demo": "tables-d-b\/update-datetime-column.md", + "demo": "tablesdb\/update-datetime-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/update-datetime-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "tables.write", + "scope": [ + "tables.write", + "collections.write" + ], "platforms": [ "server" ], @@ -33546,15 +34237,18 @@ "x-appwrite": { "method": "createEmailColumn", "group": "columns", - "weight": 392, + "weight": 393, "cookies": false, "type": "", - "demo": "tables-d-b\/create-email-column.md", + "demo": "tablesdb\/create-email-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/create-email-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "tables.write", + "scope": [ + "tables.write", + "collections.write" + ], "platforms": [ "server" ], @@ -33652,15 +34346,18 @@ "x-appwrite": { "method": "updateEmailColumn", "group": "columns", - "weight": 393, + "weight": 394, "cookies": false, "type": "", - "demo": "tables-d-b\/update-email-column.md", + "demo": "tablesdb\/update-email-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/update-email-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "tables.write", + "scope": [ + "tables.write", + "collections.write" + ], "platforms": [ "server" ], @@ -33760,15 +34457,18 @@ "x-appwrite": { "method": "createEnumColumn", "group": "columns", - "weight": 394, + "weight": 395, "cookies": false, "type": "", - "demo": "tables-d-b\/create-enum-column.md", + "demo": "tablesdb\/create-enum-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/create-enum-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "tables.write", + "scope": [ + "tables.write", + "collections.write" + ], "platforms": [ "server" ], @@ -33876,15 +34576,18 @@ "x-appwrite": { "method": "updateEnumColumn", "group": "columns", - "weight": 395, + "weight": 396, "cookies": false, "type": "", - "demo": "tables-d-b\/update-enum-column.md", + "demo": "tablesdb\/update-enum-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/update-enum-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "tables.write", + "scope": [ + "tables.write", + "collections.write" + ], "platforms": [ "server" ], @@ -33994,15 +34697,18 @@ "x-appwrite": { "method": "createFloatColumn", "group": "columns", - "weight": 396, + "weight": 397, "cookies": false, "type": "", - "demo": "tables-d-b\/create-float-column.md", + "demo": "tablesdb\/create-float-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/create-float-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "tables.write", + "scope": [ + "tables.write", + "collections.write" + ], "platforms": [ "server" ], @@ -34112,15 +34818,18 @@ "x-appwrite": { "method": "updateFloatColumn", "group": "columns", - "weight": 397, + "weight": 398, "cookies": false, "type": "", - "demo": "tables-d-b\/update-float-column.md", + "demo": "tablesdb\/update-float-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/update-float-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "tables.write", + "scope": [ + "tables.write", + "collections.write" + ], "platforms": [ "server" ], @@ -34232,15 +34941,18 @@ "x-appwrite": { "method": "createIntegerColumn", "group": "columns", - "weight": 398, + "weight": 399, "cookies": false, "type": "", - "demo": "tables-d-b\/create-integer-column.md", + "demo": "tablesdb\/create-integer-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/create-integer-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "tables.write", + "scope": [ + "tables.write", + "collections.write" + ], "platforms": [ "server" ], @@ -34350,15 +35062,18 @@ "x-appwrite": { "method": "updateIntegerColumn", "group": "columns", - "weight": 399, + "weight": 400, "cookies": false, "type": "", - "demo": "tables-d-b\/update-integer-column.md", + "demo": "tablesdb\/update-integer-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/update-integer-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "tables.write", + "scope": [ + "tables.write", + "collections.write" + ], "platforms": [ "server" ], @@ -34470,15 +35185,18 @@ "x-appwrite": { "method": "createIpColumn", "group": "columns", - "weight": 400, + "weight": 401, "cookies": false, "type": "", - "demo": "tables-d-b\/create-ip-column.md", + "demo": "tablesdb\/create-ip-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/create-ip-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "tables.write", + "scope": [ + "tables.write", + "collections.write" + ], "platforms": [ "server" ], @@ -34576,15 +35294,18 @@ "x-appwrite": { "method": "updateIpColumn", "group": "columns", - "weight": 401, + "weight": 402, "cookies": false, "type": "", - "demo": "tables-d-b\/update-ip-column.md", + "demo": "tablesdb\/update-ip-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/update-ip-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "tables.write", + "scope": [ + "tables.write", + "collections.write" + ], "platforms": [ "server" ], @@ -34658,6 +35379,648 @@ ] } }, + "\/tablesdb\/{databaseId}\/tables\/{tableId}\/columns\/line": { + "post": { + "summary": "Create line column", + "operationId": "tablesDBCreateLineColumn", + "consumes": [ + "application\/json" + ], + "produces": [ + "application\/json" + ], + "tags": [ + "tablesDB" + ], + "description": "Create a geometric line column.", + "responses": { + "202": { + "description": "ColumnLine", + "schema": { + "$ref": "#\/definitions\/columnLine" + } + } + }, + "deprecated": false, + "x-appwrite": { + "method": "createLineColumn", + "group": "columns", + "weight": 403, + "cookies": false, + "type": "", + "demo": "tablesdb\/create-line-column.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/create-line-column.md", + "rate-limit": 0, + "rate-time": 3600, + "rate-key": "url:{url},ip:{ip}", + "scope": [ + "tables.write", + "collections.write" + ], + "platforms": [ + "server" + ], + "packaging": false, + "auth": { + "Project": [] + } + }, + "security": [ + { + "Project": [], + "Key": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + }, + { + "name": "tableId", + "description": "Table ID. You can create a new table using the TablesDB service [server integration](https:\/\/appwrite.io\/docs\/server\/tablesdb#tablesDBCreate).", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + }, + { + "name": "payload", + "in": "body", + "schema": { + "type": "object", + "properties": { + "key": { + "type": "string", + "description": "Column Key.", + "default": null, + "x-example": null + }, + "required": { + "type": "boolean", + "description": "Is column required?", + "default": null, + "x-example": false + }, + "default": { + "type": "array", + "description": "Default value for column when not provided, two-dimensional array of coordinate pairs, [[longitude, latitude], [longitude, latitude], \u2026], listing the vertices of the line in order. Cannot be set when column is required.", + "default": null, + "x-example": "[[1, 2], [3, 4], [5, 6]]", + "x-nullable": true + } + }, + "required": [ + "key", + "required" + ] + } + } + ] + } + }, + "\/tablesdb\/{databaseId}\/tables\/{tableId}\/columns\/line\/{key}": { + "patch": { + "summary": "Update line column", + "operationId": "tablesDBUpdateLineColumn", + "consumes": [ + "application\/json" + ], + "produces": [ + "application\/json" + ], + "tags": [ + "tablesDB" + ], + "description": "Update a line column. Changing the `default` value will not update already existing rows.", + "responses": { + "200": { + "description": "ColumnLine", + "schema": { + "$ref": "#\/definitions\/columnLine" + } + } + }, + "deprecated": false, + "x-appwrite": { + "method": "updateLineColumn", + "group": "columns", + "weight": 404, + "cookies": false, + "type": "", + "demo": "tablesdb\/update-line-column.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/update-line-column.md", + "rate-limit": 0, + "rate-time": 3600, + "rate-key": "url:{url},ip:{ip}", + "scope": [ + "tables.write", + "collections.write" + ], + "platforms": [ + "server" + ], + "packaging": false, + "auth": { + "Project": [] + } + }, + "security": [ + { + "Project": [], + "Key": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + }, + { + "name": "tableId", + "description": "Table ID. You can create a new table using the TablesDB service [server integration](https:\/\/appwrite.io\/docs\/server\/tablesdb#tablesDBCreate).", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + }, + { + "name": "key", + "description": "Column Key.", + "required": true, + "type": "string", + "in": "path" + }, + { + "name": "payload", + "in": "body", + "schema": { + "type": "object", + "properties": { + "required": { + "type": "boolean", + "description": "Is column required?", + "default": null, + "x-example": false + }, + "default": { + "type": "array", + "description": "Default value for column when not provided, two-dimensional array of coordinate pairs, [[longitude, latitude], [longitude, latitude], \u2026], listing the vertices of the line in order. Cannot be set when column is required.", + "default": null, + "x-example": "[[1, 2], [3, 4], [5, 6]]", + "x-nullable": true + }, + "newKey": { + "type": "string", + "description": "New Column Key.", + "default": null, + "x-example": null + } + }, + "required": [ + "required" + ] + } + } + ] + } + }, + "\/tablesdb\/{databaseId}\/tables\/{tableId}\/columns\/point": { + "post": { + "summary": "Create point column", + "operationId": "tablesDBCreatePointColumn", + "consumes": [ + "application\/json" + ], + "produces": [ + "application\/json" + ], + "tags": [ + "tablesDB" + ], + "description": "Create a geometric point column.", + "responses": { + "202": { + "description": "ColumnPoint", + "schema": { + "$ref": "#\/definitions\/columnPoint" + } + } + }, + "deprecated": false, + "x-appwrite": { + "method": "createPointColumn", + "group": "columns", + "weight": 405, + "cookies": false, + "type": "", + "demo": "tablesdb\/create-point-column.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/create-point-column.md", + "rate-limit": 0, + "rate-time": 3600, + "rate-key": "url:{url},ip:{ip}", + "scope": [ + "tables.write", + "collections.write" + ], + "platforms": [ + "server" + ], + "packaging": false, + "auth": { + "Project": [] + } + }, + "security": [ + { + "Project": [], + "Key": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + }, + { + "name": "tableId", + "description": "Table ID. You can create a new table using the TablesDB service [server integration](https:\/\/appwrite.io\/docs\/server\/tablesdb#tablesDBCreate).", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + }, + { + "name": "payload", + "in": "body", + "schema": { + "type": "object", + "properties": { + "key": { + "type": "string", + "description": "Column Key.", + "default": null, + "x-example": null + }, + "required": { + "type": "boolean", + "description": "Is column required?", + "default": null, + "x-example": false + }, + "default": { + "type": "array", + "description": "Default value for column when not provided, array of two numbers [longitude, latitude], representing a single coordinate. Cannot be set when column is required.", + "default": null, + "x-example": "[1, 2]", + "x-nullable": true + } + }, + "required": [ + "key", + "required" + ] + } + } + ] + } + }, + "\/tablesdb\/{databaseId}\/tables\/{tableId}\/columns\/point\/{key}": { + "patch": { + "summary": "Update point column", + "operationId": "tablesDBUpdatePointColumn", + "consumes": [ + "application\/json" + ], + "produces": [ + "application\/json" + ], + "tags": [ + "tablesDB" + ], + "description": "Update a point column. Changing the `default` value will not update already existing rows.", + "responses": { + "200": { + "description": "ColumnPoint", + "schema": { + "$ref": "#\/definitions\/columnPoint" + } + } + }, + "deprecated": false, + "x-appwrite": { + "method": "updatePointColumn", + "group": "columns", + "weight": 406, + "cookies": false, + "type": "", + "demo": "tablesdb\/update-point-column.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/update-point-column.md", + "rate-limit": 0, + "rate-time": 3600, + "rate-key": "url:{url},ip:{ip}", + "scope": [ + "tables.write", + "collections.write" + ], + "platforms": [ + "server" + ], + "packaging": false, + "auth": { + "Project": [] + } + }, + "security": [ + { + "Project": [], + "Key": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + }, + { + "name": "tableId", + "description": "Table ID. You can create a new table using the TablesDB service [server integration](https:\/\/appwrite.io\/docs\/server\/tablesdb#tablesDBCreate).", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + }, + { + "name": "key", + "description": "Column Key.", + "required": true, + "type": "string", + "in": "path" + }, + { + "name": "payload", + "in": "body", + "schema": { + "type": "object", + "properties": { + "required": { + "type": "boolean", + "description": "Is column required?", + "default": null, + "x-example": false + }, + "default": { + "type": "array", + "description": "Default value for column when not provided, array of two numbers [longitude, latitude], representing a single coordinate. Cannot be set when column is required.", + "default": null, + "x-example": "[1, 2]", + "x-nullable": true + }, + "newKey": { + "type": "string", + "description": "New Column Key.", + "default": null, + "x-example": null + } + }, + "required": [ + "required" + ] + } + } + ] + } + }, + "\/tablesdb\/{databaseId}\/tables\/{tableId}\/columns\/polygon": { + "post": { + "summary": "Create polygon column", + "operationId": "tablesDBCreatePolygonColumn", + "consumes": [ + "application\/json" + ], + "produces": [ + "application\/json" + ], + "tags": [ + "tablesDB" + ], + "description": "Create a geometric polygon column.", + "responses": { + "202": { + "description": "ColumnPolygon", + "schema": { + "$ref": "#\/definitions\/columnPolygon" + } + } + }, + "deprecated": false, + "x-appwrite": { + "method": "createPolygonColumn", + "group": "columns", + "weight": 407, + "cookies": false, + "type": "", + "demo": "tablesdb\/create-polygon-column.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/create-polygon-column.md", + "rate-limit": 0, + "rate-time": 3600, + "rate-key": "url:{url},ip:{ip}", + "scope": [ + "tables.write", + "collections.write" + ], + "platforms": [ + "server" + ], + "packaging": false, + "auth": { + "Project": [] + } + }, + "security": [ + { + "Project": [], + "Key": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + }, + { + "name": "tableId", + "description": "Table ID. You can create a new table using the TablesDB service [server integration](https:\/\/appwrite.io\/docs\/server\/tablesdb#tablesDBCreate).", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + }, + { + "name": "payload", + "in": "body", + "schema": { + "type": "object", + "properties": { + "key": { + "type": "string", + "description": "Column Key.", + "default": null, + "x-example": null + }, + "required": { + "type": "boolean", + "description": "Is column required?", + "default": null, + "x-example": false + }, + "default": { + "type": "array", + "description": "Default value for column when not provided, three-dimensional array where the outer array holds one or more linear rings, [[[longitude, latitude], \u2026], \u2026], the first ring is the exterior boundary, any additional rings are interior holes, and each ring must start and end with the same coordinate pair. Cannot be set when column is required.", + "default": null, + "x-example": "[[[1, 2], [3, 4], [5, 6], [1, 2]]]", + "x-nullable": true + } + }, + "required": [ + "key", + "required" + ] + } + } + ] + } + }, + "\/tablesdb\/{databaseId}\/tables\/{tableId}\/columns\/polygon\/{key}": { + "patch": { + "summary": "Update polygon column", + "operationId": "tablesDBUpdatePolygonColumn", + "consumes": [ + "application\/json" + ], + "produces": [ + "application\/json" + ], + "tags": [ + "tablesDB" + ], + "description": "Update a polygon column. Changing the `default` value will not update already existing rows.", + "responses": { + "200": { + "description": "ColumnPolygon", + "schema": { + "$ref": "#\/definitions\/columnPolygon" + } + } + }, + "deprecated": false, + "x-appwrite": { + "method": "updatePolygonColumn", + "group": "columns", + "weight": 408, + "cookies": false, + "type": "", + "demo": "tablesdb\/update-polygon-column.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/update-polygon-column.md", + "rate-limit": 0, + "rate-time": 3600, + "rate-key": "url:{url},ip:{ip}", + "scope": [ + "tables.write", + "collections.write" + ], + "platforms": [ + "server" + ], + "packaging": false, + "auth": { + "Project": [] + } + }, + "security": [ + { + "Project": [], + "Key": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + }, + { + "name": "tableId", + "description": "Table ID. You can create a new table using the TablesDB service [server integration](https:\/\/appwrite.io\/docs\/server\/tablesdb#tablesDBCreate).", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + }, + { + "name": "key", + "description": "Column Key.", + "required": true, + "type": "string", + "in": "path" + }, + { + "name": "payload", + "in": "body", + "schema": { + "type": "object", + "properties": { + "required": { + "type": "boolean", + "description": "Is column required?", + "default": null, + "x-example": false + }, + "default": { + "type": "array", + "description": "Default value for column when not provided, three-dimensional array where the outer array holds one or more linear rings, [[[longitude, latitude], \u2026], \u2026], the first ring is the exterior boundary, any additional rings are interior holes, and each ring must start and end with the same coordinate pair. Cannot be set when column is required.", + "default": null, + "x-example": "[[[1, 2], [3, 4], [5, 6], [1, 2]]]", + "x-nullable": true + }, + "newKey": { + "type": "string", + "description": "New Column Key.", + "default": null, + "x-example": null + } + }, + "required": [ + "required" + ] + } + } + ] + } + }, "\/tablesdb\/{databaseId}\/tables\/{tableId}\/columns\/relationship": { "post": { "summary": "Create relationship column", @@ -34684,15 +36047,18 @@ "x-appwrite": { "method": "createRelationshipColumn", "group": "columns", - "weight": 402, + "weight": 409, "cookies": false, "type": "", - "demo": "tables-d-b\/create-relationship-column.md", + "demo": "tablesdb\/create-relationship-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/create-relationship-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "tables.write", + "scope": [ + "tables.write", + "collections.write" + ], "platforms": [ "server" ], @@ -34817,15 +36183,18 @@ "x-appwrite": { "method": "createStringColumn", "group": "columns", - "weight": 404, + "weight": 411, "cookies": false, "type": "", - "demo": "tables-d-b\/create-string-column.md", + "demo": "tablesdb\/create-string-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/create-string-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "tables.write", + "scope": [ + "tables.write", + "collections.write" + ], "platforms": [ "server" ], @@ -34936,15 +36305,18 @@ "x-appwrite": { "method": "updateStringColumn", "group": "columns", - "weight": 405, + "weight": 412, "cookies": false, "type": "", - "demo": "tables-d-b\/update-string-column.md", + "demo": "tablesdb\/update-string-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/update-string-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "tables.write", + "scope": [ + "tables.write", + "collections.write" + ], "platforms": [ "server" ], @@ -35050,15 +36422,18 @@ "x-appwrite": { "method": "createUrlColumn", "group": "columns", - "weight": 406, + "weight": 413, "cookies": false, "type": "", - "demo": "tables-d-b\/create-url-column.md", + "demo": "tablesdb\/create-url-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/create-url-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "tables.write", + "scope": [ + "tables.write", + "collections.write" + ], "platforms": [ "server" ], @@ -35156,15 +36531,18 @@ "x-appwrite": { "method": "updateUrlColumn", "group": "columns", - "weight": 407, + "weight": 414, "cookies": false, "type": "", - "demo": "tables-d-b\/update-url-column.md", + "demo": "tablesdb\/update-url-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/update-url-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "tables.write", + "scope": [ + "tables.write", + "collections.write" + ], "platforms": [ "server" ], @@ -35293,15 +36671,18 @@ "x-appwrite": { "method": "getColumn", "group": "columns", - "weight": 385, + "weight": 386, "cookies": false, "type": "", - "demo": "tables-d-b\/get-column.md", + "demo": "tablesdb\/get-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/get-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "tables.read", + "scope": [ + "tables.read", + "collections.read" + ], "platforms": [ "server" ], @@ -35362,15 +36743,18 @@ "x-appwrite": { "method": "deleteColumn", "group": "columns", - "weight": 386, + "weight": 387, "cookies": false, "type": "", - "demo": "tables-d-b\/delete-column.md", + "demo": "tablesdb\/delete-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/delete-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "tables.write", + "scope": [ + "tables.write", + "collections.write" + ], "platforms": [ "server" ], @@ -35438,15 +36822,18 @@ "x-appwrite": { "method": "updateRelationshipColumn", "group": "columns", - "weight": 403, + "weight": 410, "cookies": false, "type": "", - "demo": "tables-d-b\/update-relationship-column.md", + "demo": "tablesdb\/update-relationship-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/update-relationship-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "tables.write", + "scope": [ + "tables.write", + "collections.write" + ], "platforms": [ "server" ], @@ -35540,15 +36927,18 @@ "x-appwrite": { "method": "listIndexes", "group": "indexes", - "weight": 411, + "weight": 418, "cookies": false, "type": "", - "demo": "tables-d-b\/list-indexes.md", + "demo": "tablesdb\/list-indexes.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/list-indexes.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "tables.read", + "scope": [ + "tables.read", + "collections.read" + ], "platforms": [ "server" ], @@ -35619,15 +37009,18 @@ "x-appwrite": { "method": "createIndex", "group": "indexes", - "weight": 408, + "weight": 415, "cookies": false, "type": "", - "demo": "tables-d-b\/create-index.md", + "demo": "tablesdb\/create-index.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/create-index.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "tables.write", + "scope": [ + "tables.write", + "collections.write" + ], "platforms": [ "server" ], @@ -35679,7 +37072,8 @@ "enum": [ "key", "fulltext", - "unique" + "unique", + "spatial" ], "x-enum-name": "IndexType", "x-enum-keys": [] @@ -35746,15 +37140,18 @@ "x-appwrite": { "method": "getIndex", "group": "indexes", - "weight": 409, + "weight": 416, "cookies": false, "type": "", - "demo": "tables-d-b\/get-index.md", + "demo": "tablesdb\/get-index.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/get-index.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "tables.read", + "scope": [ + "tables.read", + "collections.read" + ], "platforms": [ "server" ], @@ -35815,15 +37212,18 @@ "x-appwrite": { "method": "deleteIndex", "group": "indexes", - "weight": 410, + "weight": 417, "cookies": false, "type": "", - "demo": "tables-d-b\/delete-index.md", + "demo": "tablesdb\/delete-index.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/delete-index.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "tables.write", + "scope": [ + "tables.write", + "collections.write" + ], "platforms": [ "server" ], @@ -35889,15 +37289,18 @@ "x-appwrite": { "method": "listTableLogs", "group": "tables", - "weight": 383, + "weight": 384, "cookies": false, "type": "", - "demo": "tables-d-b\/list-table-logs.md", + "demo": "tablesdb\/list-table-logs.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/get-table-logs.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "tables.read", + "scope": [ + "tables.read", + "collections.read" + ], "platforms": [ "console" ], @@ -35967,15 +37370,18 @@ "x-appwrite": { "method": "listRows", "group": "rows", - "weight": 420, + "weight": 427, "cookies": false, "type": "", - "demo": "tables-d-b\/list-rows.md", + "demo": "tablesdb\/list-rows.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/list-rows.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "rows.read", + "scope": [ + "rows.read", + "documents.read" + ], "platforms": [ "client", "server" @@ -36048,15 +37454,18 @@ "x-appwrite": { "method": "createRow", "group": "rows", - "weight": 412, + "weight": 419, "cookies": false, "type": "", - "demo": "tables-d-b\/create-row.md", + "demo": "tablesdb\/create-row.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/create-row.md", "rate-limit": 120, "rate-time": 60, "rate-key": "ip:{ip},method:{method},url:{url},userId:{userId}", - "scope": "rows.write", + "scope": [ + "rows.write", + "documents.write" + ], "platforms": [ "client", "server" @@ -36090,7 +37499,7 @@ } ], "description": "Create a new Row. Before using this route, you should create a new table resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/tablesdb#tablesDBCreateTable) API or directly from your database console.", - "demo": "tables-d-b\/create-row.md" + "demo": "tablesdb\/create-row.md" }, { "name": "createRows", @@ -36116,7 +37525,7 @@ } ], "description": "Create new Rows. Before using this route, you should create a new table resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/tablesdb#tablesDBCreateTable) API or directly from your database console.", - "demo": "tables-d-b\/create-rows.md" + "demo": "tablesdb\/create-rows.md" } ], "auth": { @@ -36163,7 +37572,7 @@ "type": "object", "description": "Row data as JSON object.", "default": [], - "x-example": "{}" + "x-example": "{\"username\":\"walter.obrien\",\"email\":\"walter.obrien@example.com\",\"fullName\":\"Walter O'Brien\",\"age\":30,\"isAdmin\":false}" }, "permissions": { "type": "array", @@ -36176,7 +37585,7 @@ }, "rows": { "type": "array", - "description": "Array of documents data as JSON objects.", + "description": "Array of rows data as JSON objects.", "default": [], "x-example": null, "items": { @@ -36189,7 +37598,7 @@ ] }, "put": { - "summary": "Create or update rows", + "summary": "Upsert rows", "operationId": "tablesDBUpsertRows", "consumes": [ "application\/json" @@ -36213,15 +37622,18 @@ "x-appwrite": { "method": "upsertRows", "group": "rows", - "weight": 417, + "weight": 424, "cookies": false, "type": "", - "demo": "tables-d-b\/upsert-rows.md", + "demo": "tablesdb\/upsert-rows.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/upsert-rows.md", "rate-limit": 120, "rate-time": 60, "rate-key": "ip:{ip},method:{method},url:{url},userId:{userId}", - "scope": "rows.write", + "scope": [ + "rows.write", + "documents.write" + ], "platforms": [ "console", "server" @@ -36252,7 +37664,7 @@ } ], "description": "Create or update Rows. Before using this route, you should create a new table resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/tablesdb#tablesDBCreateTable) API or directly from your database console.\n", - "demo": "tables-d-b\/upsert-rows.md" + "demo": "tablesdb\/upsert-rows.md" } ], "auth": { @@ -36330,15 +37742,18 @@ "x-appwrite": { "method": "updateRows", "group": "rows", - "weight": 415, + "weight": 422, "cookies": false, "type": "", - "demo": "tables-d-b\/update-rows.md", + "demo": "tablesdb\/update-rows.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/update-rows.md", "rate-limit": 120, "rate-time": 60, "rate-key": "ip:{ip},method:{method},url:{url},userId:{userId}", - "scope": "rows.write", + "scope": [ + "rows.write", + "documents.write" + ], "platforms": [ "console", "server" @@ -36422,15 +37837,18 @@ "x-appwrite": { "method": "deleteRows", "group": "rows", - "weight": 419, + "weight": 426, "cookies": false, "type": "", - "demo": "tables-d-b\/delete-rows.md", + "demo": "tablesdb\/delete-rows.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/delete-rows.md", "rate-limit": 60, "rate-time": 60, "rate-key": "ip:{ip},method:{method},url:{url},userId:{userId}", - "scope": "rows.write", + "scope": [ + "rows.write", + "documents.write" + ], "platforms": [ "console", "server" @@ -36508,15 +37926,18 @@ "x-appwrite": { "method": "getRow", "group": "rows", - "weight": 413, + "weight": 420, "cookies": false, "type": "", - "demo": "tables-d-b\/get-row.md", + "demo": "tablesdb\/get-row.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/get-row.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "rows.read", + "scope": [ + "rows.read", + "documents.read" + ], "platforms": [ "client", "server" @@ -36573,7 +37994,7 @@ ] }, "put": { - "summary": "Create or update a row", + "summary": "Upsert a row", "operationId": "tablesDBUpsertRow", "consumes": [ "application\/json" @@ -36597,15 +38018,18 @@ "x-appwrite": { "method": "upsertRow", "group": "rows", - "weight": 416, + "weight": 423, "cookies": false, "type": "", - "demo": "tables-d-b\/upsert-row.md", + "demo": "tablesdb\/upsert-row.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/upsert-row.md", "rate-limit": 120, "rate-time": 60, "rate-key": "ip:{ip},method:{method},url:{url},userId:{userId}", - "scope": "rows.write", + "scope": [ + "rows.write", + "documents.write" + ], "platforms": [ "client", "server" @@ -36638,7 +38062,7 @@ } ], "description": "Create or update a Row. Before using this route, you should create a new table resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/tablesdb#tablesDBCreateTable) API or directly from your database console.", - "demo": "tables-d-b\/upsert-row.md" + "demo": "tablesdb\/upsert-row.md" } ], "auth": { @@ -36728,15 +38152,18 @@ "x-appwrite": { "method": "updateRow", "group": "rows", - "weight": 414, + "weight": 421, "cookies": false, "type": "", - "demo": "tables-d-b\/update-row.md", + "demo": "tablesdb\/update-row.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/update-row.md", "rate-limit": 120, "rate-time": 60, "rate-key": "ip:{ip},method:{method},url:{url},userId:{userId}", - "scope": "rows.write", + "scope": [ + "rows.write", + "documents.write" + ], "platforms": [ "client", "server" @@ -36824,15 +38251,18 @@ "x-appwrite": { "method": "deleteRow", "group": "rows", - "weight": 418, + "weight": 425, "cookies": false, "type": "", - "demo": "tables-d-b\/delete-row.md", + "demo": "tablesdb\/delete-row.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/delete-row.md", "rate-limit": 60, "rate-time": 60, "rate-key": "ip:{ip},method:{method},url:{url},userId:{userId}", - "scope": "rows.write", + "scope": [ + "rows.write", + "documents.write" + ], "platforms": [ "client", "server" @@ -36901,15 +38331,18 @@ "x-appwrite": { "method": "listRowLogs", "group": "logs", - "weight": 421, + "weight": 428, "cookies": false, "type": "", - "demo": "tables-d-b\/list-row-logs.md", + "demo": "tablesdb\/list-row-logs.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/get-row-logs.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "rows.read", + "scope": [ + "rows.read", + "documents.read" + ], "platforms": [ "console" ], @@ -36989,15 +38422,18 @@ "x-appwrite": { "method": "decrementRowColumn", "group": "rows", - "weight": 423, + "weight": 430, "cookies": false, "type": "", - "demo": "tables-d-b\/decrement-row-column.md", + "demo": "tablesdb\/decrement-row-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/decrement-row-column.md", "rate-limit": 120, "rate-time": 60, "rate-key": "ip:{ip},method:{method},url:{url},userId:{userId}", - "scope": "rows.write", + "scope": [ + "rows.write", + "documents.write" + ], "platforms": [ "client", "server", @@ -37097,15 +38533,18 @@ "x-appwrite": { "method": "incrementRowColumn", "group": "rows", - "weight": 422, + "weight": 429, "cookies": false, "type": "", - "demo": "tables-d-b\/increment-row-column.md", + "demo": "tablesdb\/increment-row-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/increment-row-column.md", "rate-limit": 120, "rate-time": 60, "rate-key": "ip:{ip},method:{method},url:{url},userId:{userId}", - "scope": "rows.write", + "scope": [ + "rows.write", + "documents.write" + ], "platforms": [ "client", "server", @@ -37203,15 +38642,18 @@ "x-appwrite": { "method": "getTableUsage", "group": null, - "weight": 384, + "weight": 385, "cookies": false, "type": "", - "demo": "tables-d-b\/get-table-usage.md", + "demo": "tablesdb\/get-table-usage.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/get-table-usage.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "tables.read", + "scope": [ + "tables.read", + "collections.read" + ], "platforms": [ "console" ], @@ -37289,15 +38731,18 @@ "x-appwrite": { "method": "getUsage", "group": null, - "weight": 376, + "weight": 377, "cookies": false, "type": "", - "demo": "tables-d-b\/get-usage.md", + "demo": "tablesdb\/get-usage.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/get-database-usage.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "tables.read", + "scope": [ + "tables.read", + "collections.read" + ], "platforms": [ "console" ], @@ -37324,7 +38769,7 @@ } ], "description": "Get usage metrics and statistics for a database. You can view the total number of tables, rows, and storage usage. The response includes both current totals and historical data over time. Use the optional range parameter to specify the time window for historical data: 24h (last 24 hours), 30d (last 30 days), or 90d (last 90 days). If not specified, range defaults to 30 days.", - "demo": "tables-d-b\/get-usage.md" + "demo": "tablesdb\/get-usage.md" } ], "auth": { @@ -37392,7 +38837,7 @@ "x-appwrite": { "method": "list", "group": "teams", - "weight": 172, + "weight": 171, "cookies": false, "type": "", "demo": "teams\/list.md", @@ -37466,7 +38911,7 @@ "x-appwrite": { "method": "create", "group": "teams", - "weight": 171, + "weight": 170, "cookies": false, "type": "", "demo": "teams\/create.md", @@ -37555,7 +39000,7 @@ "x-appwrite": { "method": "get", "group": "teams", - "weight": 173, + "weight": 172, "cookies": false, "type": "", "demo": "teams\/get.md", @@ -37616,7 +39061,7 @@ "x-appwrite": { "method": "updateName", "group": "teams", - "weight": 175, + "weight": 174, "cookies": false, "type": "", "demo": "teams\/update-name.md", @@ -37690,7 +39135,7 @@ "x-appwrite": { "method": "delete", "group": "teams", - "weight": 177, + "weight": 176, "cookies": false, "type": "", "demo": "teams\/delete.md", @@ -37751,7 +39196,7 @@ "x-appwrite": { "method": "listLogs", "group": "logs", - "weight": 184, + "weight": 183, "cookies": false, "type": "", "demo": "teams\/list-logs.md", @@ -37821,7 +39266,7 @@ "x-appwrite": { "method": "listMemberships", "group": "memberships", - "weight": 179, + "weight": 178, "cookies": false, "type": "", "demo": "teams\/list-memberships.md", @@ -37903,7 +39348,7 @@ "x-appwrite": { "method": "createMembership", "group": "memberships", - "weight": 178, + "weight": 177, "cookies": false, "type": "", "demo": "teams\/create-membership.md", @@ -38015,7 +39460,7 @@ "x-appwrite": { "method": "getMembership", "group": "memberships", - "weight": 180, + "weight": 179, "cookies": false, "type": "", "demo": "teams\/get-membership.md", @@ -38084,7 +39529,7 @@ "x-appwrite": { "method": "updateMembership", "group": "memberships", - "weight": 181, + "weight": 180, "cookies": false, "type": "", "demo": "teams\/update-membership.md", @@ -38169,7 +39614,7 @@ "x-appwrite": { "method": "deleteMembership", "group": "memberships", - "weight": 183, + "weight": 182, "cookies": false, "type": "", "demo": "teams\/delete-membership.md", @@ -38240,7 +39685,7 @@ "x-appwrite": { "method": "updateMembershipStatus", "group": "memberships", - "weight": 182, + "weight": 181, "cookies": false, "type": "", "demo": "teams\/update-membership-status.md", @@ -38333,7 +39778,7 @@ "x-appwrite": { "method": "getPrefs", "group": "teams", - "weight": 174, + "weight": 173, "cookies": false, "type": "", "demo": "teams\/get-prefs.md", @@ -38393,7 +39838,7 @@ "x-appwrite": { "method": "updatePrefs", "group": "teams", - "weight": 176, + "weight": 175, "cookies": false, "type": "", "demo": "teams\/update-prefs.md", @@ -38471,7 +39916,7 @@ "x-appwrite": { "method": "list", "group": "files", - "weight": 495, + "weight": 507, "cookies": false, "type": "", "demo": "tokens\/list.md", @@ -38551,7 +39996,7 @@ "x-appwrite": { "method": "createFileToken", "group": "files", - "weight": 493, + "weight": 505, "cookies": false, "type": "", "demo": "tokens\/create-file-token.md", @@ -38635,7 +40080,7 @@ "x-appwrite": { "method": "get", "group": "tokens", - "weight": 494, + "weight": 506, "cookies": false, "type": "", "demo": "tokens\/get.md", @@ -38695,7 +40140,7 @@ "x-appwrite": { "method": "update", "group": "tokens", - "weight": 496, + "weight": 508, "cookies": false, "type": "", "demo": "tokens\/update.md", @@ -38766,7 +40211,7 @@ "x-appwrite": { "method": "delete", "group": "tokens", - "weight": 497, + "weight": 509, "cookies": false, "type": "", "demo": "tokens\/delete.md", @@ -38826,7 +40271,7 @@ "x-appwrite": { "method": "list", "group": "users", - "weight": 194, + "weight": 193, "cookies": false, "type": "", "demo": "users\/list.md", @@ -38898,7 +40343,7 @@ "x-appwrite": { "method": "create", "group": "users", - "weight": 185, + "weight": 184, "cookies": false, "type": "", "demo": "users\/create.md", @@ -38993,10 +40438,10 @@ "x-appwrite": { "method": "createArgon2User", "group": "users", - "weight": 188, + "weight": 187, "cookies": false, "type": "", - "demo": "users\/create-argon2user.md", + "demo": "users\/create-argon-2-user.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/users\/create-argon2-user.md", "rate-limit": 0, "rate-time": 3600, @@ -39084,7 +40529,7 @@ "x-appwrite": { "method": "createBcryptUser", "group": "users", - "weight": 186, + "weight": 185, "cookies": false, "type": "", "demo": "users\/create-bcrypt-user.md", @@ -39173,7 +40618,7 @@ "x-appwrite": { "method": "listIdentities", "group": "identities", - "weight": 202, + "weight": 201, "cookies": false, "type": "", "demo": "users\/list-identities.md", @@ -39242,7 +40687,7 @@ "x-appwrite": { "method": "deleteIdentity", "group": "identities", - "weight": 225, + "weight": 224, "cookies": false, "type": "", "demo": "users\/delete-identity.md", @@ -39303,10 +40748,10 @@ "x-appwrite": { "method": "createMD5User", "group": "users", - "weight": 187, + "weight": 186, "cookies": false, "type": "", - "demo": "users\/create-m-d5user.md", + "demo": "users\/create-md-5-user.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/users\/create-md5-user.md", "rate-limit": 0, "rate-time": 3600, @@ -39394,10 +40839,10 @@ "x-appwrite": { "method": "createPHPassUser", "group": "users", - "weight": 190, + "weight": 189, "cookies": false, "type": "", - "demo": "users\/create-p-h-pass-user.md", + "demo": "users\/create-ph-pass-user.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/users\/create-phpass-user.md", "rate-limit": 0, "rate-time": 3600, @@ -39485,7 +40930,7 @@ "x-appwrite": { "method": "createScryptUser", "group": "users", - "weight": 191, + "weight": 190, "cookies": false, "type": "", "demo": "users\/create-scrypt-user.md", @@ -39611,7 +41056,7 @@ "x-appwrite": { "method": "createScryptModifiedUser", "group": "users", - "weight": 192, + "weight": 191, "cookies": false, "type": "", "demo": "users\/create-scrypt-modified-user.md", @@ -39723,10 +41168,10 @@ "x-appwrite": { "method": "createSHAUser", "group": "users", - "weight": 189, + "weight": 188, "cookies": false, "type": "", - "demo": "users\/create-s-h-a-user.md", + "demo": "users\/create-sha-user.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/users\/create-sha-user.md", "rate-limit": 0, "rate-time": 3600, @@ -39833,7 +41278,7 @@ "x-appwrite": { "method": "getUsage", "group": null, - "weight": 227, + "weight": 226, "cookies": false, "type": "", "demo": "users\/get-usage.md", @@ -39903,7 +41348,7 @@ "x-appwrite": { "method": "get", "group": "users", - "weight": 195, + "weight": 194, "cookies": false, "type": "", "demo": "users\/get.md", @@ -39957,7 +41402,7 @@ "x-appwrite": { "method": "delete", "group": "users", - "weight": 223, + "weight": 222, "cookies": false, "type": "", "demo": "users\/delete.md", @@ -40018,7 +41463,7 @@ "x-appwrite": { "method": "updateEmail", "group": "users", - "weight": 208, + "weight": 207, "cookies": false, "type": "", "demo": "users\/update-email.md", @@ -40097,10 +41542,10 @@ "x-appwrite": { "method": "createJWT", "group": "sessions", - "weight": 226, + "weight": 225, "cookies": false, "type": "", - "demo": "users\/create-j-w-t.md", + "demo": "users\/create-jwt.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/users\/create-user-jwt.md", "rate-limit": 0, "rate-time": 3600, @@ -40179,7 +41624,7 @@ "x-appwrite": { "method": "updateLabels", "group": "users", - "weight": 204, + "weight": 203, "cookies": false, "type": "", "demo": "users\/update-labels.md", @@ -40259,7 +41704,7 @@ "x-appwrite": { "method": "listLogs", "group": "logs", - "weight": 200, + "weight": 199, "cookies": false, "type": "", "demo": "users\/list-logs.md", @@ -40330,7 +41775,7 @@ "x-appwrite": { "method": "listMemberships", "group": "memberships", - "weight": 199, + "weight": 198, "cookies": false, "type": "", "demo": "users\/list-memberships.md", @@ -40412,7 +41857,7 @@ "x-appwrite": { "method": "updateMfa", "group": "users", - "weight": 213, + "weight": 212, "cookies": false, "type": "", "demo": "users\/update-mfa.md", @@ -40480,7 +41925,7 @@ } ], "description": "Enable or disable MFA on a user account.", - "demo": "users\/update-m-f-a.md" + "demo": "users\/update-mfa.md" } ], "auth": { @@ -40544,7 +41989,7 @@ "x-appwrite": { "method": "deleteMfaAuthenticator", "group": "mfa", - "weight": 218, + "weight": 217, "cookies": false, "type": "", "demo": "users\/delete-mfa-authenticator.md", @@ -40610,7 +42055,7 @@ } ], "description": "Delete an authenticator app.", - "demo": "users\/delete-m-f-a-authenticator.md" + "demo": "users\/delete-mfa-authenticator.md" } ], "auth": { @@ -40672,7 +42117,7 @@ "x-appwrite": { "method": "listMfaFactors", "group": "mfa", - "weight": 214, + "weight": 213, "cookies": false, "type": "", "demo": "users\/list-mfa-factors.md", @@ -40736,7 +42181,7 @@ } ], "description": "List the factors available on the account to be used as a MFA challange.", - "demo": "users\/list-m-f-a-factors.md" + "demo": "users\/list-mfa-factors.md" } ], "auth": { @@ -40785,7 +42230,7 @@ "x-appwrite": { "method": "getMfaRecoveryCodes", "group": "mfa", - "weight": 215, + "weight": 214, "cookies": false, "type": "", "demo": "users\/get-mfa-recovery-codes.md", @@ -40849,7 +42294,7 @@ } ], "description": "Get recovery codes that can be used as backup for MFA flow by User ID. Before getting codes, they must be generated using [createMfaRecoveryCodes](\/docs\/references\/cloud\/client-web\/account#createMfaRecoveryCodes) method.", - "demo": "users\/get-m-f-a-recovery-codes.md" + "demo": "users\/get-mfa-recovery-codes.md" } ], "auth": { @@ -40898,7 +42343,7 @@ "x-appwrite": { "method": "updateMfaRecoveryCodes", "group": "mfa", - "weight": 217, + "weight": 216, "cookies": false, "type": "", "demo": "users\/update-mfa-recovery-codes.md", @@ -40962,7 +42407,7 @@ } ], "description": "Regenerate recovery codes that can be used as backup for MFA flow by User ID. Before regenerating codes, they must be first generated using [createMfaRecoveryCodes](\/docs\/references\/cloud\/client-web\/account#createMfaRecoveryCodes) method.", - "demo": "users\/update-m-f-a-recovery-codes.md" + "demo": "users\/update-mfa-recovery-codes.md" } ], "auth": { @@ -41011,7 +42456,7 @@ "x-appwrite": { "method": "createMfaRecoveryCodes", "group": "mfa", - "weight": 216, + "weight": 215, "cookies": false, "type": "", "demo": "users\/create-mfa-recovery-codes.md", @@ -41075,7 +42520,7 @@ } ], "description": "Generate recovery codes used as backup for MFA flow for User ID. Recovery codes can be used as a MFA verification type in [createMfaChallenge](\/docs\/references\/cloud\/client-web\/account#createMfaChallenge) method by client SDK.", - "demo": "users\/create-m-f-a-recovery-codes.md" + "demo": "users\/create-mfa-recovery-codes.md" } ], "auth": { @@ -41126,7 +42571,7 @@ "x-appwrite": { "method": "updateName", "group": "users", - "weight": 206, + "weight": 205, "cookies": false, "type": "", "demo": "users\/update-name.md", @@ -41205,7 +42650,7 @@ "x-appwrite": { "method": "updatePassword", "group": "users", - "weight": 207, + "weight": 206, "cookies": false, "type": "", "demo": "users\/update-password.md", @@ -41284,7 +42729,7 @@ "x-appwrite": { "method": "updatePhone", "group": "users", - "weight": 209, + "weight": 208, "cookies": false, "type": "", "demo": "users\/update-phone.md", @@ -41361,7 +42806,7 @@ "x-appwrite": { "method": "getPrefs", "group": "users", - "weight": 196, + "weight": 195, "cookies": false, "type": "", "demo": "users\/get-prefs.md", @@ -41420,7 +42865,7 @@ "x-appwrite": { "method": "updatePrefs", "group": "users", - "weight": 211, + "weight": 210, "cookies": false, "type": "", "demo": "users\/update-prefs.md", @@ -41497,7 +42942,7 @@ "x-appwrite": { "method": "listSessions", "group": "sessions", - "weight": 198, + "weight": 197, "cookies": false, "type": "", "demo": "users\/list-sessions.md", @@ -41556,7 +43001,7 @@ "x-appwrite": { "method": "createSession", "group": "sessions", - "weight": 219, + "weight": 218, "cookies": false, "type": "", "demo": "users\/create-session.md", @@ -41610,7 +43055,7 @@ "x-appwrite": { "method": "deleteSessions", "group": "sessions", - "weight": 222, + "weight": 221, "cookies": false, "type": "", "demo": "users\/delete-sessions.md", @@ -41666,7 +43111,7 @@ "x-appwrite": { "method": "deleteSession", "group": "sessions", - "weight": 221, + "weight": 220, "cookies": false, "type": "", "demo": "users\/delete-session.md", @@ -41735,7 +43180,7 @@ "x-appwrite": { "method": "updateStatus", "group": "users", - "weight": 203, + "weight": 202, "cookies": false, "type": "", "demo": "users\/update-status.md", @@ -41812,7 +43257,7 @@ "x-appwrite": { "method": "listTargets", "group": "targets", - "weight": 201, + "weight": 200, "cookies": false, "type": "", "demo": "users\/list-targets.md", @@ -41884,7 +43329,7 @@ "x-appwrite": { "method": "createTarget", "group": "targets", - "weight": 193, + "weight": 192, "cookies": false, "type": "", "demo": "users\/create-target.md", @@ -41995,7 +43440,7 @@ "x-appwrite": { "method": "getTarget", "group": "targets", - "weight": 197, + "weight": 196, "cookies": false, "type": "", "demo": "users\/get-target.md", @@ -42063,7 +43508,7 @@ "x-appwrite": { "method": "updateTarget", "group": "targets", - "weight": 212, + "weight": 211, "cookies": false, "type": "", "demo": "users\/update-target.md", @@ -42153,7 +43598,7 @@ "x-appwrite": { "method": "deleteTarget", "group": "targets", - "weight": 224, + "weight": 223, "cookies": false, "type": "", "demo": "users\/delete-target.md", @@ -42223,7 +43668,7 @@ "x-appwrite": { "method": "createToken", "group": "sessions", - "weight": 220, + "weight": 219, "cookies": false, "type": "", "demo": "users\/create-token.md", @@ -42305,7 +43750,7 @@ "x-appwrite": { "method": "updateEmailVerification", "group": "users", - "weight": 210, + "weight": 209, "cookies": false, "type": "", "demo": "users\/update-email-verification.md", @@ -42384,7 +43829,7 @@ "x-appwrite": { "method": "updatePhoneVerification", "group": "users", - "weight": 205, + "weight": 204, "cookies": false, "type": "", "demo": "users\/update-phone-verification.md", @@ -42463,7 +43908,7 @@ "x-appwrite": { "method": "createRepositoryDetection", "group": "repositories", - "weight": 231, + "weight": 230, "cookies": false, "type": "", "demo": "vcs\/create-repository-detection.md", @@ -42558,7 +44003,7 @@ "x-appwrite": { "method": "listRepositories", "group": "repositories", - "weight": 232, + "weight": 231, "cookies": false, "type": "", "demo": "vcs\/list-repositories.md", @@ -42639,7 +44084,7 @@ "x-appwrite": { "method": "createRepository", "group": "repositories", - "weight": 233, + "weight": 232, "cookies": false, "type": "", "demo": "vcs\/create-repository.md", @@ -42722,7 +44167,7 @@ "x-appwrite": { "method": "getRepository", "group": "repositories", - "weight": 234, + "weight": 233, "cookies": false, "type": "", "demo": "vcs\/get-repository.md", @@ -42788,7 +44233,7 @@ "x-appwrite": { "method": "listRepositoryBranches", "group": "repositories", - "weight": 235, + "weight": 234, "cookies": false, "type": "", "demo": "vcs\/list-repository-branches.md", @@ -42854,7 +44299,7 @@ "x-appwrite": { "method": "getRepositoryContents", "group": "repositories", - "weight": 230, + "weight": 229, "cookies": false, "type": "", "demo": "vcs\/get-repository-contents.md", @@ -42937,7 +44382,7 @@ "x-appwrite": { "method": "updateExternalDeployments", "group": "repositories", - "weight": 240, + "weight": 239, "cookies": false, "type": "", "demo": "vcs\/update-external-deployments.md", @@ -43021,7 +44466,7 @@ "x-appwrite": { "method": "listInstallations", "group": "installations", - "weight": 237, + "weight": 236, "cookies": false, "type": "", "demo": "vcs\/list-installations.md", @@ -43092,7 +44537,7 @@ "x-appwrite": { "method": "getInstallation", "group": "installations", - "weight": 238, + "weight": 237, "cookies": false, "type": "", "demo": "vcs\/get-installation.md", @@ -43145,7 +44590,7 @@ "x-appwrite": { "method": "deleteInstallation", "group": "installations", - "weight": 239, + "weight": 238, "cookies": false, "type": "", "demo": "vcs\/delete-installation.md", @@ -44815,6 +46260,15 @@ { "$ref": "#\/definitions\/attributeRelationship" }, + { + "$ref": "#\/definitions\/attributePoint" + }, + { + "$ref": "#\/definitions\/attributeLine" + }, + { + "$ref": "#\/definitions\/attributePolygon" + }, { "$ref": "#\/definitions\/attributeString" } @@ -44901,6 +46355,15 @@ { "$ref": "#\/definitions\/attributeRelationship" }, + { + "$ref": "#\/definitions\/attributePoint" + }, + { + "$ref": "#\/definitions\/attributeLine" + }, + { + "$ref": "#\/definitions\/attributePolygon" + }, { "$ref": "#\/definitions\/attributeString" } @@ -45777,6 +47240,291 @@ "side": "parent|child" } }, + "attributePoint": { + "description": "AttributePoint", + "type": "object", + "properties": { + "key": { + "type": "string", + "description": "Attribute Key.", + "x-example": "fullName" + }, + "type": { + "type": "string", + "description": "Attribute type.", + "x-example": "string" + }, + "status": { + "type": "string", + "description": "Attribute status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`", + "x-example": "available" + }, + "error": { + "type": "string", + "description": "Error message. Displays error generated on failure of creating or deleting an attribute.", + "x-example": "string" + }, + "required": { + "type": "boolean", + "description": "Is attribute required?", + "x-example": true + }, + "array": { + "type": "boolean", + "description": "Is attribute an array?", + "x-example": false, + "x-nullable": true + }, + "$createdAt": { + "type": "string", + "description": "Attribute creation date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "$updatedAt": { + "type": "string", + "description": "Attribute update date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "default": { + "type": "array", + "description": "Default value for attribute when not provided. Cannot be set when attribute is required.", + "x-example": [ + 0, + 0 + ], + "x-nullable": true + } + }, + "required": [ + "key", + "type", + "status", + "error", + "required", + "$createdAt", + "$updatedAt" + ], + "example": { + "key": "fullName", + "type": "string", + "status": "available", + "error": "string", + "required": true, + "array": false, + "$createdAt": "2020-10-15T06:38:00.000+00:00", + "$updatedAt": "2020-10-15T06:38:00.000+00:00", + "default": [ + 0, + 0 + ] + } + }, + "attributeLine": { + "description": "AttributeLine", + "type": "object", + "properties": { + "key": { + "type": "string", + "description": "Attribute Key.", + "x-example": "fullName" + }, + "type": { + "type": "string", + "description": "Attribute type.", + "x-example": "string" + }, + "status": { + "type": "string", + "description": "Attribute status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`", + "x-example": "available" + }, + "error": { + "type": "string", + "description": "Error message. Displays error generated on failure of creating or deleting an attribute.", + "x-example": "string" + }, + "required": { + "type": "boolean", + "description": "Is attribute required?", + "x-example": true + }, + "array": { + "type": "boolean", + "description": "Is attribute an array?", + "x-example": false, + "x-nullable": true + }, + "$createdAt": { + "type": "string", + "description": "Attribute creation date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "$updatedAt": { + "type": "string", + "description": "Attribute update date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "default": { + "type": "array", + "description": "Default value for attribute when not provided. Cannot be set when attribute is required.", + "x-example": [ + [ + 0, + 0 + ], + [ + 1, + 1 + ] + ], + "x-nullable": true + } + }, + "required": [ + "key", + "type", + "status", + "error", + "required", + "$createdAt", + "$updatedAt" + ], + "example": { + "key": "fullName", + "type": "string", + "status": "available", + "error": "string", + "required": true, + "array": false, + "$createdAt": "2020-10-15T06:38:00.000+00:00", + "$updatedAt": "2020-10-15T06:38:00.000+00:00", + "default": [ + [ + 0, + 0 + ], + [ + 1, + 1 + ] + ] + } + }, + "attributePolygon": { + "description": "AttributePolygon", + "type": "object", + "properties": { + "key": { + "type": "string", + "description": "Attribute Key.", + "x-example": "fullName" + }, + "type": { + "type": "string", + "description": "Attribute type.", + "x-example": "string" + }, + "status": { + "type": "string", + "description": "Attribute status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`", + "x-example": "available" + }, + "error": { + "type": "string", + "description": "Error message. Displays error generated on failure of creating or deleting an attribute.", + "x-example": "string" + }, + "required": { + "type": "boolean", + "description": "Is attribute required?", + "x-example": true + }, + "array": { + "type": "boolean", + "description": "Is attribute an array?", + "x-example": false, + "x-nullable": true + }, + "$createdAt": { + "type": "string", + "description": "Attribute creation date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "$updatedAt": { + "type": "string", + "description": "Attribute update date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "default": { + "type": "array", + "description": "Default value for attribute when not provided. Cannot be set when attribute is required.", + "x-example": [ + [ + [ + 0, + 0 + ], + [ + 0, + 10 + ] + ], + [ + [ + 10, + 10 + ], + [ + 0, + 0 + ] + ] + ], + "x-nullable": true + } + }, + "required": [ + "key", + "type", + "status", + "error", + "required", + "$createdAt", + "$updatedAt" + ], + "example": { + "key": "fullName", + "type": "string", + "status": "available", + "error": "string", + "required": true, + "array": false, + "$createdAt": "2020-10-15T06:38:00.000+00:00", + "$updatedAt": "2020-10-15T06:38:00.000+00:00", + "default": [ + [ + [ + 0, + 0 + ], + [ + 0, + 10 + ] + ], + [ + [ + 10, + 10 + ], + [ + 0, + 0 + ] + ] + ] + } + }, "table": { "description": "Table", "type": "object", @@ -45858,6 +47606,15 @@ { "$ref": "#\/definitions\/columnRelationship" }, + { + "$ref": "#\/definitions\/columnPoint" + }, + { + "$ref": "#\/definitions\/columnLine" + }, + { + "$ref": "#\/definitions\/columnPolygon" + }, { "$ref": "#\/definitions\/columnString" } @@ -45944,6 +47701,15 @@ { "$ref": "#\/definitions\/columnRelationship" }, + { + "$ref": "#\/definitions\/columnPoint" + }, + { + "$ref": "#\/definitions\/columnLine" + }, + { + "$ref": "#\/definitions\/columnPolygon" + }, { "$ref": "#\/definitions\/columnString" } @@ -46820,6 +48586,291 @@ "side": "parent|child" } }, + "columnPoint": { + "description": "ColumnPoint", + "type": "object", + "properties": { + "key": { + "type": "string", + "description": "Column Key.", + "x-example": "fullName" + }, + "type": { + "type": "string", + "description": "Column type.", + "x-example": "string" + }, + "status": { + "type": "string", + "description": "Column status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`", + "x-example": "available" + }, + "error": { + "type": "string", + "description": "Error message. Displays error generated on failure of creating or deleting an column.", + "x-example": "string" + }, + "required": { + "type": "boolean", + "description": "Is column required?", + "x-example": true + }, + "array": { + "type": "boolean", + "description": "Is column an array?", + "x-example": false, + "x-nullable": true + }, + "$createdAt": { + "type": "string", + "description": "Column creation date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "$updatedAt": { + "type": "string", + "description": "Column update date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "default": { + "type": "array", + "description": "Default value for column when not provided. Cannot be set when column is required.", + "x-example": [ + 0, + 0 + ], + "x-nullable": true + } + }, + "required": [ + "key", + "type", + "status", + "error", + "required", + "$createdAt", + "$updatedAt" + ], + "example": { + "key": "fullName", + "type": "string", + "status": "available", + "error": "string", + "required": true, + "array": false, + "$createdAt": "2020-10-15T06:38:00.000+00:00", + "$updatedAt": "2020-10-15T06:38:00.000+00:00", + "default": [ + 0, + 0 + ] + } + }, + "columnLine": { + "description": "ColumnLine", + "type": "object", + "properties": { + "key": { + "type": "string", + "description": "Column Key.", + "x-example": "fullName" + }, + "type": { + "type": "string", + "description": "Column type.", + "x-example": "string" + }, + "status": { + "type": "string", + "description": "Column status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`", + "x-example": "available" + }, + "error": { + "type": "string", + "description": "Error message. Displays error generated on failure of creating or deleting an column.", + "x-example": "string" + }, + "required": { + "type": "boolean", + "description": "Is column required?", + "x-example": true + }, + "array": { + "type": "boolean", + "description": "Is column an array?", + "x-example": false, + "x-nullable": true + }, + "$createdAt": { + "type": "string", + "description": "Column creation date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "$updatedAt": { + "type": "string", + "description": "Column update date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "default": { + "type": "array", + "description": "Default value for column when not provided. Cannot be set when column is required.", + "x-example": [ + [ + 0, + 0 + ], + [ + 1, + 1 + ] + ], + "x-nullable": true + } + }, + "required": [ + "key", + "type", + "status", + "error", + "required", + "$createdAt", + "$updatedAt" + ], + "example": { + "key": "fullName", + "type": "string", + "status": "available", + "error": "string", + "required": true, + "array": false, + "$createdAt": "2020-10-15T06:38:00.000+00:00", + "$updatedAt": "2020-10-15T06:38:00.000+00:00", + "default": [ + [ + 0, + 0 + ], + [ + 1, + 1 + ] + ] + } + }, + "columnPolygon": { + "description": "ColumnPolygon", + "type": "object", + "properties": { + "key": { + "type": "string", + "description": "Column Key.", + "x-example": "fullName" + }, + "type": { + "type": "string", + "description": "Column type.", + "x-example": "string" + }, + "status": { + "type": "string", + "description": "Column status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`", + "x-example": "available" + }, + "error": { + "type": "string", + "description": "Error message. Displays error generated on failure of creating or deleting an column.", + "x-example": "string" + }, + "required": { + "type": "boolean", + "description": "Is column required?", + "x-example": true + }, + "array": { + "type": "boolean", + "description": "Is column an array?", + "x-example": false, + "x-nullable": true + }, + "$createdAt": { + "type": "string", + "description": "Column creation date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "$updatedAt": { + "type": "string", + "description": "Column update date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "default": { + "type": "array", + "description": "Default value for column when not provided. Cannot be set when column is required.", + "x-example": [ + [ + [ + 0, + 0 + ], + [ + 0, + 10 + ] + ], + [ + [ + 10, + 10 + ], + [ + 0, + 0 + ] + ] + ], + "x-nullable": true + } + }, + "required": [ + "key", + "type", + "status", + "error", + "required", + "$createdAt", + "$updatedAt" + ], + "example": { + "key": "fullName", + "type": "string", + "status": "available", + "error": "string", + "required": true, + "array": false, + "$createdAt": "2020-10-15T06:38:00.000+00:00", + "$updatedAt": "2020-10-15T06:38:00.000+00:00", + "default": [ + [ + [ + 0, + 0 + ], + [ + 0, + 10 + ] + ], + [ + [ + 10, + 10 + ], + [ + 0, + 0 + ] + ] + ] + } + }, "index": { "description": "Index", "type": "object", @@ -47013,17 +49064,20 @@ "type": "integer", "description": "Row automatically incrementing ID.", "x-example": 1, - "format": "int32" + "format": "int32", + "readOnly": true }, "$tableId": { "type": "string", "description": "Table ID.", - "x-example": "5e5ea5c15117e" + "x-example": "5e5ea5c15117e", + "readOnly": true }, "$databaseId": { "type": "string", "description": "Database ID.", - "x-example": "5e5ea5c15117e" + "x-example": "5e5ea5c15117e", + "readOnly": true }, "$createdAt": { "type": "string", diff --git a/app/config/specs/swagger2-latest-server.json b/app/config/specs/swagger2-latest-server.json index 2c56aa09f3..98077f1050 100644 --- a/app/config/specs/swagger2-latest-server.json +++ b/app/config/specs/swagger2-latest-server.json @@ -455,7 +455,7 @@ "weight": 30, "cookies": false, "type": "", - "demo": "account\/create-j-w-t.md", + "demo": "account\/create-jwt.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/account\/create-jwt.md", "rate-limit": 100, "rate-time": 3600, @@ -572,7 +572,7 @@ "weight": 45, "cookies": false, "type": "", - "demo": "account\/update-m-f-a.md", + "demo": "account\/update-mfa.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/account\/update-mfa.md", "rate-limit": 0, "rate-time": 3600, @@ -710,7 +710,7 @@ } ], "description": "Add an authenticator app to be used as an MFA factor. Verify the authenticator using the [verify authenticator](\/docs\/references\/cloud\/client-web\/account#updateMfaAuthenticator) method.", - "demo": "account\/create-m-f-a-authenticator.md" + "demo": "account\/create-mfa-authenticator.md" } ], "auth": { @@ -837,7 +837,7 @@ } ], "description": "Verify an authenticator app after adding it using the [add authenticator](\/docs\/references\/cloud\/client-web\/account#createMfaAuthenticator) method.", - "demo": "account\/update-m-f-a-authenticator.md" + "demo": "account\/update-mfa-authenticator.md" } ], "auth": { @@ -971,7 +971,7 @@ } ], "description": "Delete an authenticator for a user by ID.", - "demo": "account\/delete-m-f-a-authenticator.md" + "demo": "account\/delete-mfa-authenticator.md" } ], "auth": { @@ -1094,7 +1094,7 @@ } ], "description": "Begin the process of MFA verification after sign-in. Finish the flow with [updateMfaChallenge](\/docs\/references\/cloud\/client-web\/account#updateMfaChallenge) method.", - "demo": "account\/create-m-f-a-challenge.md" + "demo": "account\/create-mfa-challenge.md" } ], "auth": { @@ -1231,7 +1231,7 @@ } ], "description": "Complete the MFA challenge by providing the one-time password. Finish the process of MFA verification by providing the one-time password. To begin the flow, use [createMfaChallenge](\/docs\/references\/cloud\/client-web\/account#createMfaChallenge) method.", - "demo": "account\/update-m-f-a-challenge.md" + "demo": "account\/update-mfa-challenge.md" } ], "auth": { @@ -1358,7 +1358,7 @@ } ], "description": "List the factors available on the account to be used as a MFA challange.", - "demo": "account\/list-m-f-a-factors.md" + "demo": "account\/list-mfa-factors.md" } ], "auth": { @@ -1458,7 +1458,7 @@ } ], "description": "Get recovery codes that can be used as backup for MFA flow. Before getting codes, they must be generated using [createMfaRecoveryCodes](\/docs\/references\/cloud\/client-web\/account#createMfaRecoveryCodes) method. An OTP challenge is required to read recovery codes.", - "demo": "account\/get-m-f-a-recovery-codes.md" + "demo": "account\/get-mfa-recovery-codes.md" } ], "auth": { @@ -1558,7 +1558,7 @@ } ], "description": "Generate recovery codes as backup for MFA flow. It's recommended to generate and show then immediately after user successfully adds their authehticator. Recovery codes can be used as a MFA verification type in [createMfaChallenge](\/docs\/references\/cloud\/client-web\/account#createMfaChallenge) method.", - "demo": "account\/create-m-f-a-recovery-codes.md" + "demo": "account\/create-mfa-recovery-codes.md" } ], "auth": { @@ -1658,7 +1658,7 @@ } ], "description": "Regenerate recovery codes that can be used as backup for MFA flow. Before regenerating codes, they must be first generated using [createMfaRecoveryCodes](\/docs\/references\/cloud\/client-web\/account#createMfaRecoveryCodes) method. An OTP challenge is required to regenreate recovery codes.", - "demo": "account\/update-m-f-a-recovery-codes.md" + "demo": "account\/update-mfa-recovery-codes.md" } ], "auth": { @@ -2023,7 +2023,7 @@ "type": "object", "description": "Prefs key-value JSON object.", "default": {}, - "x-example": "{}" + "x-example": "{\"language\":\"en\",\"timezone\":\"UTC\",\"darkTheme\":true}" } }, "required": [ @@ -2461,7 +2461,7 @@ "weight": 27, "cookies": false, "type": "", - "demo": "account\/update-magic-u-r-l-session.md", + "demo": "account\/update-magic-url-session.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/account\/create-session.md", "rate-limit": 10, "rate-time": 3600, @@ -2472,6 +2472,10 @@ "client" ], "packaging": false, + "deprecated": { + "since": "1.6.0", + "replaceWith": "account.createSession" + }, "auth": { "Project": [] } @@ -2550,6 +2554,10 @@ "client" ], "packaging": false, + "deprecated": { + "since": "1.6.0", + "replaceWith": "account.createSession" + }, "auth": { "Project": [] } @@ -3017,7 +3025,7 @@ "weight": 25, "cookies": false, "type": "", - "demo": "account\/create-magic-u-r-l-token.md", + "demo": "account\/create-magic-url-token.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/account\/create-token-magic-url.md", "rate-limit": 60, "rate-time": 3600, @@ -3105,7 +3113,7 @@ "weight": 24, "cookies": false, "type": "webAuth", - "demo": "account\/create-o-auth2token.md", + "demo": "account\/create-o-auth-2-token.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/account\/create-token-oauth2.md", "rate-limit": 50, "rate-time": 3600, @@ -3763,7 +3771,7 @@ "parameters": [ { "name": "code", - "description": "Credit Card Code. Possible values: amex, argencard, cabal, cencosud, diners, discover, elo, hipercard, jcb, mastercard, naranja, targeta-shopping, union-china-pay, visa, mir, maestro, rupay.", + "description": "Credit Card Code. Possible values: amex, argencard, cabal, cencosud, diners, discover, elo, hipercard, jcb, mastercard, naranja, targeta-shopping, unionpay, visa, mir, maestro, rupay.", "required": true, "type": "string", "x-example": "amex", @@ -3780,7 +3788,7 @@ "mastercard", "naranja", "targeta-shopping", - "union-china-pay", + "unionpay", "visa", "mir", "maestro", @@ -3800,7 +3808,7 @@ "Mastercard", "Naranja", "Tarjeta Shopping", - "Union China Pay", + "Union Pay", "Visa", "MIR", "Maestro", @@ -4596,7 +4604,7 @@ "weight": 65, "cookies": false, "type": "location", - "demo": "avatars\/get-q-r.md", + "demo": "avatars\/get-qr.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/avatars\/get-qr.md", "rate-limit": 0, "rate-time": 3600, @@ -4685,7 +4693,7 @@ "x-appwrite": { "method": "list", "group": "databases", - "weight": 321, + "weight": 316, "cookies": false, "type": "", "demo": "databases\/list.md", @@ -4790,7 +4798,7 @@ "x-appwrite": { "method": "create", "group": "databases", - "weight": 317, + "weight": 312, "cookies": false, "type": "", "demo": "databases\/create.md", @@ -4805,7 +4813,7 @@ "packaging": false, "deprecated": { "since": "1.8.0", - "replaceWith": "tablesDB.createDatabase" + "replaceWith": "tablesDB.create" }, "methods": [ { @@ -4835,7 +4843,7 @@ "demo": "databases\/create.md", "deprecated": { "since": "1.8.0", - "replaceWith": "tablesDB.createDatabase" + "replaceWith": "tablesDB.create" } } ], @@ -4909,7 +4917,7 @@ "x-appwrite": { "method": "get", "group": "databases", - "weight": 318, + "weight": 313, "cookies": false, "type": "", "demo": "databases\/get.md", @@ -5002,7 +5010,7 @@ "x-appwrite": { "method": "update", "group": "databases", - "weight": 319, + "weight": 314, "cookies": false, "type": "", "demo": "databases\/update.md", @@ -5117,7 +5125,7 @@ "x-appwrite": { "method": "delete", "group": "databases", - "weight": 320, + "weight": 315, "cookies": false, "type": "", "demo": "databases\/delete.md", @@ -5209,7 +5217,7 @@ "x-appwrite": { "method": "listCollections", "group": "collections", - "weight": 329, + "weight": 324, "cookies": false, "type": "", "demo": "databases\/list-collections.md", @@ -5294,7 +5302,7 @@ "x-appwrite": { "method": "createCollection", "group": "collections", - "weight": 325, + "weight": 320, "cookies": false, "type": "", "demo": "databases\/create-collection.md", @@ -5404,7 +5412,7 @@ "x-appwrite": { "method": "getCollection", "group": "collections", - "weight": 326, + "weight": 321, "cookies": false, "type": "", "demo": "databases\/get-collection.md", @@ -5476,7 +5484,7 @@ "x-appwrite": { "method": "updateCollection", "group": "collections", - "weight": 327, + "weight": 322, "cookies": false, "type": "", "demo": "databases\/update-collection.md", @@ -5582,7 +5590,7 @@ "x-appwrite": { "method": "deleteCollection", "group": "collections", - "weight": 328, + "weight": 323, "cookies": false, "type": "", "demo": "databases\/delete-collection.md", @@ -5654,7 +5662,7 @@ "x-appwrite": { "method": "listAttributes", "group": "attributes", - "weight": 346, + "weight": 341, "cookies": false, "type": "", "demo": "databases\/list-attributes.md", @@ -5740,7 +5748,7 @@ "x-appwrite": { "method": "createBooleanAttribute", "group": "attributes", - "weight": 347, + "weight": 342, "cookies": false, "type": "", "demo": "databases\/create-boolean-attribute.md", @@ -5851,7 +5859,7 @@ "x-appwrite": { "method": "updateBooleanAttribute", "group": "attributes", - "weight": 348, + "weight": 343, "cookies": false, "type": "", "demo": "databases\/update-boolean-attribute.md", @@ -5964,7 +5972,7 @@ "x-appwrite": { "method": "createDatetimeAttribute", "group": "attributes", - "weight": 349, + "weight": 344, "cookies": false, "type": "", "demo": "databases\/create-datetime-attribute.md", @@ -6075,7 +6083,7 @@ "x-appwrite": { "method": "updateDatetimeAttribute", "group": "attributes", - "weight": 350, + "weight": 345, "cookies": false, "type": "", "demo": "databases\/update-datetime-attribute.md", @@ -6188,7 +6196,7 @@ "x-appwrite": { "method": "createEmailAttribute", "group": "attributes", - "weight": 351, + "weight": 346, "cookies": false, "type": "", "demo": "databases\/create-email-attribute.md", @@ -6299,7 +6307,7 @@ "x-appwrite": { "method": "updateEmailAttribute", "group": "attributes", - "weight": 352, + "weight": 347, "cookies": false, "type": "", "demo": "databases\/update-email-attribute.md", @@ -6412,7 +6420,7 @@ "x-appwrite": { "method": "createEnumAttribute", "group": "attributes", - "weight": 353, + "weight": 348, "cookies": false, "type": "", "demo": "databases\/create-enum-attribute.md", @@ -6533,7 +6541,7 @@ "x-appwrite": { "method": "updateEnumAttribute", "group": "attributes", - "weight": 354, + "weight": 349, "cookies": false, "type": "", "demo": "databases\/update-enum-attribute.md", @@ -6656,7 +6664,7 @@ "x-appwrite": { "method": "createFloatAttribute", "group": "attributes", - "weight": 355, + "weight": 350, "cookies": false, "type": "", "demo": "databases\/create-float-attribute.md", @@ -6779,7 +6787,7 @@ "x-appwrite": { "method": "updateFloatAttribute", "group": "attributes", - "weight": 356, + "weight": 351, "cookies": false, "type": "", "demo": "databases\/update-float-attribute.md", @@ -6904,7 +6912,7 @@ "x-appwrite": { "method": "createIntegerAttribute", "group": "attributes", - "weight": 357, + "weight": 352, "cookies": false, "type": "", "demo": "databases\/create-integer-attribute.md", @@ -7027,7 +7035,7 @@ "x-appwrite": { "method": "updateIntegerAttribute", "group": "attributes", - "weight": 358, + "weight": 353, "cookies": false, "type": "", "demo": "databases\/update-integer-attribute.md", @@ -7152,7 +7160,7 @@ "x-appwrite": { "method": "createIpAttribute", "group": "attributes", - "weight": 359, + "weight": 354, "cookies": false, "type": "", "demo": "databases\/create-ip-attribute.md", @@ -7263,7 +7271,7 @@ "x-appwrite": { "method": "updateIpAttribute", "group": "attributes", - "weight": 360, + "weight": 355, "cookies": false, "type": "", "demo": "databases\/update-ip-attribute.md", @@ -7350,6 +7358,660 @@ ] } }, + "\/databases\/{databaseId}\/collections\/{collectionId}\/attributes\/line": { + "post": { + "summary": "Create line attribute", + "operationId": "databasesCreateLineAttribute", + "consumes": [ + "application\/json" + ], + "produces": [ + "application\/json" + ], + "tags": [ + "databases" + ], + "description": "Create a geometric line attribute.", + "responses": { + "202": { + "description": "AttributeLine", + "schema": { + "$ref": "#\/definitions\/attributeLine" + } + } + }, + "deprecated": true, + "x-appwrite": { + "method": "createLineAttribute", + "group": "attributes", + "weight": 356, + "cookies": false, + "type": "", + "demo": "databases\/create-line-attribute.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-line-attribute.md", + "rate-limit": 0, + "rate-time": 3600, + "rate-key": "url:{url},ip:{ip}", + "scope": "collections.write", + "platforms": [ + "server" + ], + "packaging": false, + "deprecated": { + "since": "1.8.0", + "replaceWith": "tablesDB.createLineColumn" + }, + "auth": { + "Project": [], + "Key": [] + } + }, + "security": [ + { + "Project": [], + "Key": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + }, + { + "name": "collectionId", + "description": "Collection ID. You can create a new collection using the Database service [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateCollection).", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + }, + { + "name": "payload", + "in": "body", + "schema": { + "type": "object", + "properties": { + "key": { + "type": "string", + "description": "Attribute Key.", + "default": null, + "x-example": null + }, + "required": { + "type": "boolean", + "description": "Is attribute required?", + "default": null, + "x-example": false + }, + "default": { + "type": "array", + "description": "Default value for attribute when not provided, two-dimensional array of coordinate pairs, [[longitude, latitude], [longitude, latitude], \u2026], listing the vertices of the line in order. Cannot be set when attribute is required.", + "default": null, + "x-example": "[[1, 2], [3, 4], [5, 6]]", + "x-nullable": true + } + }, + "required": [ + "key", + "required" + ] + } + } + ] + } + }, + "\/databases\/{databaseId}\/collections\/{collectionId}\/attributes\/line\/{key}": { + "patch": { + "summary": "Update line attribute", + "operationId": "databasesUpdateLineAttribute", + "consumes": [ + "application\/json" + ], + "produces": [ + "application\/json" + ], + "tags": [ + "databases" + ], + "description": "Update a line attribute. Changing the `default` value will not update already existing documents.", + "responses": { + "200": { + "description": "AttributeLine", + "schema": { + "$ref": "#\/definitions\/attributeLine" + } + } + }, + "deprecated": true, + "x-appwrite": { + "method": "updateLineAttribute", + "group": "attributes", + "weight": 357, + "cookies": false, + "type": "", + "demo": "databases\/update-line-attribute.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-line-attribute.md", + "rate-limit": 0, + "rate-time": 3600, + "rate-key": "url:{url},ip:{ip}", + "scope": "collections.write", + "platforms": [ + "server" + ], + "packaging": false, + "deprecated": { + "since": "1.8.0", + "replaceWith": "tablesDB.updateLineColumn" + }, + "auth": { + "Project": [], + "Key": [] + } + }, + "security": [ + { + "Project": [], + "Key": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + }, + { + "name": "collectionId", + "description": "Collection ID. You can create a new collection using the Database service [server integration](https:\/\/appwrite.io\/docs\/server\/databases#createCollection).", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + }, + { + "name": "key", + "description": "Attribute Key.", + "required": true, + "type": "string", + "in": "path" + }, + { + "name": "payload", + "in": "body", + "schema": { + "type": "object", + "properties": { + "required": { + "type": "boolean", + "description": "Is attribute required?", + "default": null, + "x-example": false + }, + "default": { + "type": "array", + "description": "Default value for attribute when not provided, two-dimensional array of coordinate pairs, [[longitude, latitude], [longitude, latitude], \u2026], listing the vertices of the line in order. Cannot be set when attribute is required.", + "default": null, + "x-example": "[[1, 2], [3, 4], [5, 6]]", + "x-nullable": true + }, + "newKey": { + "type": "string", + "description": "New attribute key.", + "default": null, + "x-example": null + } + }, + "required": [ + "required" + ] + } + } + ] + } + }, + "\/databases\/{databaseId}\/collections\/{collectionId}\/attributes\/point": { + "post": { + "summary": "Create point attribute", + "operationId": "databasesCreatePointAttribute", + "consumes": [ + "application\/json" + ], + "produces": [ + "application\/json" + ], + "tags": [ + "databases" + ], + "description": "Create a geometric point attribute.", + "responses": { + "202": { + "description": "AttributePoint", + "schema": { + "$ref": "#\/definitions\/attributePoint" + } + } + }, + "deprecated": true, + "x-appwrite": { + "method": "createPointAttribute", + "group": "attributes", + "weight": 358, + "cookies": false, + "type": "", + "demo": "databases\/create-point-attribute.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-point-attribute.md", + "rate-limit": 0, + "rate-time": 3600, + "rate-key": "url:{url},ip:{ip}", + "scope": "collections.write", + "platforms": [ + "server" + ], + "packaging": false, + "deprecated": { + "since": "1.8.0", + "replaceWith": "tablesDB.createPointColumn" + }, + "auth": { + "Project": [], + "Key": [] + } + }, + "security": [ + { + "Project": [], + "Key": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + }, + { + "name": "collectionId", + "description": "Collection ID. You can create a new collection using the Database service [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateCollection).", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + }, + { + "name": "payload", + "in": "body", + "schema": { + "type": "object", + "properties": { + "key": { + "type": "string", + "description": "Attribute Key.", + "default": null, + "x-example": null + }, + "required": { + "type": "boolean", + "description": "Is attribute required?", + "default": null, + "x-example": false + }, + "default": { + "type": "array", + "description": "Default value for attribute when not provided, array of two numbers [longitude, latitude], representing a single coordinate. Cannot be set when attribute is required.", + "default": null, + "x-example": "[1, 2]", + "x-nullable": true + } + }, + "required": [ + "key", + "required" + ] + } + } + ] + } + }, + "\/databases\/{databaseId}\/collections\/{collectionId}\/attributes\/point\/{key}": { + "patch": { + "summary": "Update point attribute", + "operationId": "databasesUpdatePointAttribute", + "consumes": [ + "application\/json" + ], + "produces": [ + "application\/json" + ], + "tags": [ + "databases" + ], + "description": "Update a point attribute. Changing the `default` value will not update already existing documents.", + "responses": { + "200": { + "description": "AttributePoint", + "schema": { + "$ref": "#\/definitions\/attributePoint" + } + } + }, + "deprecated": true, + "x-appwrite": { + "method": "updatePointAttribute", + "group": "attributes", + "weight": 359, + "cookies": false, + "type": "", + "demo": "databases\/update-point-attribute.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-point-attribute.md", + "rate-limit": 0, + "rate-time": 3600, + "rate-key": "url:{url},ip:{ip}", + "scope": "collections.write", + "platforms": [ + "server" + ], + "packaging": false, + "deprecated": { + "since": "1.8.0", + "replaceWith": "tablesDB.updatePointColumn" + }, + "auth": { + "Project": [], + "Key": [] + } + }, + "security": [ + { + "Project": [], + "Key": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + }, + { + "name": "collectionId", + "description": "Collection ID. You can create a new collection using the Database service [server integration](https:\/\/appwrite.io\/docs\/server\/databases#createCollection).", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + }, + { + "name": "key", + "description": "Attribute Key.", + "required": true, + "type": "string", + "in": "path" + }, + { + "name": "payload", + "in": "body", + "schema": { + "type": "object", + "properties": { + "required": { + "type": "boolean", + "description": "Is attribute required?", + "default": null, + "x-example": false + }, + "default": { + "type": "array", + "description": "Default value for attribute when not provided, array of two numbers [longitude, latitude], representing a single coordinate. Cannot be set when attribute is required.", + "default": null, + "x-example": "[1, 2]", + "x-nullable": true + }, + "newKey": { + "type": "string", + "description": "New attribute key.", + "default": null, + "x-example": null + } + }, + "required": [ + "required" + ] + } + } + ] + } + }, + "\/databases\/{databaseId}\/collections\/{collectionId}\/attributes\/polygon": { + "post": { + "summary": "Create polygon attribute", + "operationId": "databasesCreatePolygonAttribute", + "consumes": [ + "application\/json" + ], + "produces": [ + "application\/json" + ], + "tags": [ + "databases" + ], + "description": "Create a geometric polygon attribute.", + "responses": { + "202": { + "description": "AttributePolygon", + "schema": { + "$ref": "#\/definitions\/attributePolygon" + } + } + }, + "deprecated": true, + "x-appwrite": { + "method": "createPolygonAttribute", + "group": "attributes", + "weight": 360, + "cookies": false, + "type": "", + "demo": "databases\/create-polygon-attribute.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-polygon-attribute.md", + "rate-limit": 0, + "rate-time": 3600, + "rate-key": "url:{url},ip:{ip}", + "scope": "collections.write", + "platforms": [ + "server" + ], + "packaging": false, + "deprecated": { + "since": "1.8.0", + "replaceWith": "tablesDB.createPolygonColumn" + }, + "auth": { + "Project": [], + "Key": [] + } + }, + "security": [ + { + "Project": [], + "Key": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + }, + { + "name": "collectionId", + "description": "Collection ID. You can create a new collection using the Database service [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateCollection).", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + }, + { + "name": "payload", + "in": "body", + "schema": { + "type": "object", + "properties": { + "key": { + "type": "string", + "description": "Attribute Key.", + "default": null, + "x-example": null + }, + "required": { + "type": "boolean", + "description": "Is attribute required?", + "default": null, + "x-example": false + }, + "default": { + "type": "array", + "description": "Default value for attribute when not provided, three-dimensional array where the outer array holds one or more linear rings, [[[longitude, latitude], \u2026], \u2026], the first ring is the exterior boundary, any additional rings are interior holes, and each ring must start and end with the same coordinate pair. Cannot be set when attribute is required.", + "default": null, + "x-example": "[[[1, 2], [3, 4], [5, 6], [1, 2]]]", + "x-nullable": true + } + }, + "required": [ + "key", + "required" + ] + } + } + ] + } + }, + "\/databases\/{databaseId}\/collections\/{collectionId}\/attributes\/polygon\/{key}": { + "patch": { + "summary": "Update polygon attribute", + "operationId": "databasesUpdatePolygonAttribute", + "consumes": [ + "application\/json" + ], + "produces": [ + "application\/json" + ], + "tags": [ + "databases" + ], + "description": "Update a polygon attribute. Changing the `default` value will not update already existing documents.", + "responses": { + "200": { + "description": "AttributePolygon", + "schema": { + "$ref": "#\/definitions\/attributePolygon" + } + } + }, + "deprecated": true, + "x-appwrite": { + "method": "updatePolygonAttribute", + "group": "attributes", + "weight": 361, + "cookies": false, + "type": "", + "demo": "databases\/update-polygon-attribute.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-polygon-attribute.md", + "rate-limit": 0, + "rate-time": 3600, + "rate-key": "url:{url},ip:{ip}", + "scope": "collections.write", + "platforms": [ + "server" + ], + "packaging": false, + "deprecated": { + "since": "1.8.0", + "replaceWith": "tablesDB.updatePolygonColumn" + }, + "auth": { + "Project": [], + "Key": [] + } + }, + "security": [ + { + "Project": [], + "Key": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + }, + { + "name": "collectionId", + "description": "Collection ID. You can create a new collection using the Database service [server integration](https:\/\/appwrite.io\/docs\/server\/databases#createCollection).", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + }, + { + "name": "key", + "description": "Attribute Key.", + "required": true, + "type": "string", + "in": "path" + }, + { + "name": "payload", + "in": "body", + "schema": { + "type": "object", + "properties": { + "required": { + "type": "boolean", + "description": "Is attribute required?", + "default": null, + "x-example": false + }, + "default": { + "type": "array", + "description": "Default value for attribute when not provided, three-dimensional array where the outer array holds one or more linear rings, [[[longitude, latitude], \u2026], \u2026], the first ring is the exterior boundary, any additional rings are interior holes, and each ring must start and end with the same coordinate pair. Cannot be set when attribute is required.", + "default": null, + "x-example": "[[[1, 2], [3, 4], [5, 6], [1, 2]]]", + "x-nullable": true + }, + "newKey": { + "type": "string", + "description": "New attribute key.", + "default": null, + "x-example": null + } + }, + "required": [ + "required" + ] + } + } + ] + } + }, "\/databases\/{databaseId}\/collections\/{collectionId}\/attributes\/relationship": { "post": { "summary": "Create relationship attribute", @@ -7376,7 +8038,7 @@ "x-appwrite": { "method": "createRelationshipAttribute", "group": "attributes", - "weight": 361, + "weight": 362, "cookies": false, "type": "", "demo": "databases\/create-relationship-attribute.md", @@ -7514,7 +8176,7 @@ "x-appwrite": { "method": "createStringAttribute", "group": "attributes", - "weight": 363, + "weight": 364, "cookies": false, "type": "", "demo": "databases\/create-string-attribute.md", @@ -7638,7 +8300,7 @@ "x-appwrite": { "method": "updateStringAttribute", "group": "attributes", - "weight": 364, + "weight": 365, "cookies": false, "type": "", "demo": "databases\/update-string-attribute.md", @@ -7757,7 +8419,7 @@ "x-appwrite": { "method": "createUrlAttribute", "group": "attributes", - "weight": 365, + "weight": 366, "cookies": false, "type": "", "demo": "databases\/create-url-attribute.md", @@ -7868,7 +8530,7 @@ "x-appwrite": { "method": "updateUrlAttribute", "group": "attributes", - "weight": 366, + "weight": 367, "cookies": false, "type": "", "demo": "databases\/update-url-attribute.md", @@ -8010,7 +8672,7 @@ "x-appwrite": { "method": "getAttribute", "group": "attributes", - "weight": 344, + "weight": 339, "cookies": false, "type": "", "demo": "databases\/get-attribute.md", @@ -8084,7 +8746,7 @@ "x-appwrite": { "method": "deleteAttribute", "group": "attributes", - "weight": 345, + "weight": 340, "cookies": false, "type": "", "demo": "databases\/delete-attribute.md", @@ -8165,7 +8827,7 @@ "x-appwrite": { "method": "updateRelationshipAttribute", "group": "attributes", - "weight": 362, + "weight": 363, "cookies": false, "type": "", "demo": "databases\/update-relationship-attribute.md", @@ -8272,7 +8934,7 @@ "x-appwrite": { "method": "listDocuments", "group": "documents", - "weight": 340, + "weight": 335, "cookies": false, "type": "", "demo": "databases\/list-documents.md", @@ -8359,7 +9021,7 @@ "x-appwrite": { "method": "createDocument", "group": "documents", - "weight": 332, + "weight": 327, "cookies": false, "type": "", "demo": "databases\/create-document.md", @@ -8490,7 +9152,7 @@ "type": "object", "description": "Document data as JSON object.", "default": [], - "x-example": "{}" + "x-example": "{\"username\":\"walter.obrien\",\"email\":\"walter.obrien@example.com\",\"fullName\":\"Walter O'Brien\",\"age\":30,\"isAdmin\":false}" }, "permissions": { "type": "array", @@ -8516,7 +9178,7 @@ ] }, "put": { - "summary": "Create or update documents", + "summary": "Upsert documents", "operationId": "databasesUpsertDocuments", "consumes": [ "application\/json" @@ -8540,7 +9202,7 @@ "x-appwrite": { "method": "upsertDocuments", "group": "documents", - "weight": 337, + "weight": 332, "cookies": false, "type": "", "demo": "databases\/upsert-documents.md", @@ -8667,7 +9329,7 @@ "x-appwrite": { "method": "updateDocuments", "group": "documents", - "weight": 335, + "weight": 330, "cookies": false, "type": "", "demo": "databases\/update-documents.md", @@ -8764,7 +9426,7 @@ "x-appwrite": { "method": "deleteDocuments", "group": "documents", - "weight": 339, + "weight": 334, "cookies": false, "type": "", "demo": "databases\/delete-documents.md", @@ -8855,7 +9517,7 @@ "x-appwrite": { "method": "getDocument", "group": "documents", - "weight": 333, + "weight": 328, "cookies": false, "type": "", "demo": "databases\/get-document.md", @@ -8926,7 +9588,7 @@ ] }, "put": { - "summary": "Create or update a document", + "summary": "Upsert a document", "operationId": "databasesUpsertDocument", "consumes": [ "application\/json" @@ -8950,7 +9612,7 @@ "x-appwrite": { "method": "upsertDocument", "group": "documents", - "weight": 336, + "weight": 331, "cookies": false, "type": "", "demo": "databases\/upsert-document.md", @@ -9096,7 +9758,7 @@ "x-appwrite": { "method": "updateDocument", "group": "documents", - "weight": 334, + "weight": 329, "cookies": false, "type": "", "demo": "databases\/update-document.md", @@ -9198,7 +9860,7 @@ "x-appwrite": { "method": "deleteDocument", "group": "documents", - "weight": 338, + "weight": 333, "cookies": false, "type": "", "demo": "databases\/delete-document.md", @@ -9283,7 +9945,7 @@ "x-appwrite": { "method": "decrementDocumentAttribute", "group": "documents", - "weight": 343, + "weight": 338, "cookies": false, "type": "", "demo": "databases\/decrement-document-attribute.md", @@ -9397,7 +10059,7 @@ "x-appwrite": { "method": "incrementDocumentAttribute", "group": "documents", - "weight": 342, + "weight": 337, "cookies": false, "type": "", "demo": "databases\/increment-document-attribute.md", @@ -9509,7 +10171,7 @@ "x-appwrite": { "method": "listIndexes", "group": "indexes", - "weight": 370, + "weight": 371, "cookies": false, "type": "", "demo": "databases\/list-indexes.md", @@ -9593,7 +10255,7 @@ "x-appwrite": { "method": "createIndex", "group": "indexes", - "weight": 367, + "weight": 368, "cookies": false, "type": "", "demo": "databases\/create-index.md", @@ -9658,7 +10320,8 @@ "enum": [ "key", "fulltext", - "unique" + "unique", + "spatial" ], "x-enum-name": "IndexType", "x-enum-keys": [] @@ -9725,7 +10388,7 @@ "x-appwrite": { "method": "getIndex", "group": "indexes", - "weight": 368, + "weight": 369, "cookies": false, "type": "", "demo": "databases\/get-index.md", @@ -9799,7 +10462,7 @@ "x-appwrite": { "method": "deleteIndex", "group": "indexes", - "weight": 369, + "weight": 370, "cookies": false, "type": "", "demo": "databases\/delete-index.md", @@ -9878,7 +10541,7 @@ "x-appwrite": { "method": "list", "group": "functions", - "weight": 432, + "weight": 440, "cookies": false, "type": "", "demo": "functions\/list.md", @@ -9951,7 +10614,7 @@ "x-appwrite": { "method": "create", "group": "functions", - "weight": 429, + "weight": 437, "cookies": false, "type": "", "demo": "functions\/create.md", @@ -10203,7 +10866,7 @@ "x-appwrite": { "method": "listRuntimes", "group": "runtimes", - "weight": 434, + "weight": 442, "cookies": false, "type": "", "demo": "functions\/list-runtimes.md", @@ -10253,7 +10916,7 @@ "x-appwrite": { "method": "listSpecifications", "group": "runtimes", - "weight": 435, + "weight": 443, "cookies": false, "type": "", "demo": "functions\/list-specifications.md", @@ -10304,7 +10967,7 @@ "x-appwrite": { "method": "get", "group": "functions", - "weight": 430, + "weight": 438, "cookies": false, "type": "", "demo": "functions\/get.md", @@ -10364,7 +11027,7 @@ "x-appwrite": { "method": "update", "group": "functions", - "weight": 431, + "weight": 439, "cookies": false, "type": "", "demo": "functions\/update.md", @@ -10612,7 +11275,7 @@ "x-appwrite": { "method": "delete", "group": "functions", - "weight": 433, + "weight": 441, "cookies": false, "type": "", "demo": "functions\/delete.md", @@ -10674,7 +11337,7 @@ "x-appwrite": { "method": "updateFunctionDeployment", "group": "functions", - "weight": 438, + "weight": 446, "cookies": false, "type": "", "demo": "functions\/update-function-deployment.md", @@ -10752,7 +11415,7 @@ "x-appwrite": { "method": "listDeployments", "group": "deployments", - "weight": 439, + "weight": 447, "cookies": false, "type": "", "demo": "functions\/list-deployments.md", @@ -10833,7 +11496,7 @@ "x-appwrite": { "method": "createDeployment", "group": "deployments", - "weight": 436, + "weight": 444, "cookies": false, "type": "upload", "demo": "functions\/create-deployment.md", @@ -10926,7 +11589,7 @@ "x-appwrite": { "method": "createDuplicateDeployment", "group": "deployments", - "weight": 444, + "weight": 452, "cookies": false, "type": "", "demo": "functions\/create-duplicate-deployment.md", @@ -11012,7 +11675,7 @@ "x-appwrite": { "method": "createTemplateDeployment", "group": "deployments", - "weight": 441, + "weight": 449, "cookies": false, "type": "", "demo": "functions\/create-template-deployment.md", @@ -11119,7 +11782,7 @@ "x-appwrite": { "method": "createVcsDeployment", "group": "deployments", - "weight": 442, + "weight": 450, "cookies": false, "type": "", "demo": "functions\/create-vcs-deployment.md", @@ -11216,7 +11879,7 @@ "x-appwrite": { "method": "getDeployment", "group": "deployments", - "weight": 437, + "weight": 445, "cookies": false, "type": "", "demo": "functions\/get-deployment.md", @@ -11279,7 +11942,7 @@ "x-appwrite": { "method": "deleteDeployment", "group": "deployments", - "weight": 440, + "weight": 448, "cookies": false, "type": "", "demo": "functions\/delete-deployment.md", @@ -11347,7 +12010,7 @@ "x-appwrite": { "method": "getDeploymentDownload", "group": "deployments", - "weight": 443, + "weight": 451, "cookies": false, "type": "location", "demo": "functions\/get-deployment-download.md", @@ -11433,7 +12096,7 @@ "x-appwrite": { "method": "updateDeploymentStatus", "group": "deployments", - "weight": 445, + "weight": 453, "cookies": false, "type": "", "demo": "functions\/update-deployment-status.md", @@ -11501,7 +12164,7 @@ "x-appwrite": { "method": "listExecutions", "group": "executions", - "weight": 448, + "weight": 456, "cookies": false, "type": "", "demo": "functions\/list-executions.md", @@ -11576,7 +12239,7 @@ "x-appwrite": { "method": "createExecution", "group": "executions", - "weight": 446, + "weight": 454, "cookies": false, "type": "", "demo": "functions\/create-execution.md", @@ -11638,7 +12301,7 @@ }, "method": { "type": "string", - "description": "HTTP method of execution. Default value is GET.", + "description": "HTTP method of execution. Default value is POST.", "default": "POST", "x-example": "GET", "enum": [ @@ -11647,7 +12310,8 @@ "PUT", "PATCH", "DELETE", - "OPTIONS" + "OPTIONS", + "HEAD" ], "x-enum-name": "ExecutionMethod", "x-enum-keys": [] @@ -11694,7 +12358,7 @@ "x-appwrite": { "method": "getExecution", "group": "executions", - "weight": 447, + "weight": 455, "cookies": false, "type": "", "demo": "functions\/get-execution.md", @@ -11760,7 +12424,7 @@ "x-appwrite": { "method": "deleteExecution", "group": "executions", - "weight": 449, + "weight": 457, "cookies": false, "type": "", "demo": "functions\/delete-execution.md", @@ -11828,7 +12492,7 @@ "x-appwrite": { "method": "listVariables", "group": "variables", - "weight": 454, + "weight": 462, "cookies": false, "type": "", "demo": "functions\/list-variables.md", @@ -11888,7 +12552,7 @@ "x-appwrite": { "method": "createVariable", "group": "variables", - "weight": 452, + "weight": 460, "cookies": false, "type": "", "demo": "functions\/create-variable.md", @@ -11979,7 +12643,7 @@ "x-appwrite": { "method": "getVariable", "group": "variables", - "weight": 453, + "weight": 461, "cookies": false, "type": "", "demo": "functions\/get-variable.md", @@ -12047,7 +12711,7 @@ "x-appwrite": { "method": "updateVariable", "group": "variables", - "weight": 455, + "weight": 463, "cookies": false, "type": "", "demo": "functions\/update-variable.md", @@ -12140,7 +12804,7 @@ "x-appwrite": { "method": "deleteVariable", "group": "variables", - "weight": 456, + "weight": 464, "cookies": false, "type": "", "demo": "functions\/delete-variable.md", @@ -12210,7 +12874,7 @@ "x-appwrite": { "method": "query", "group": "graphql", - "weight": 255, + "weight": 250, "cookies": false, "type": "graphql", "demo": "graphql\/query.md", @@ -12285,7 +12949,7 @@ "x-appwrite": { "method": "mutation", "group": "graphql", - "weight": 254, + "weight": 249, "cookies": false, "type": "graphql", "demo": "graphql\/mutation.md", @@ -12570,7 +13234,7 @@ "weight": 80, "cookies": false, "type": "", - "demo": "health\/get-d-b.md", + "demo": "health\/get-db.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/health\/get-db.md", "rate-limit": 0, "rate-time": 3600, @@ -13288,7 +13952,7 @@ }, "\/health\/queue\/stats-resources": { "get": { - "summary": "Get stats resources queue", + "summary": "Get stats resources queue", "operationId": "healthGetQueueStatsResources", "consumes": [], "produces": [ @@ -13858,7 +14522,7 @@ "weight": 73, "cookies": false, "type": "", - "demo": "locale\/list-countries-e-u.md", + "demo": "locale\/list-countries-eu.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/locale\/list-countries-eu.md", "rate-limit": 0, "rate-time": 3600, @@ -14067,7 +14731,7 @@ "x-appwrite": { "method": "listMessages", "group": "messages", - "weight": 309, + "weight": 304, "cookies": false, "type": "", "demo": "messaging\/list-messages.md", @@ -14143,7 +14807,7 @@ "x-appwrite": { "method": "createEmail", "group": "messages", - "weight": 306, + "weight": 301, "cookies": false, "type": "", "demo": "messaging\/create-email.md", @@ -14302,7 +14966,7 @@ "x-appwrite": { "method": "updateEmail", "group": "messages", - "weight": 313, + "weight": 308, "cookies": false, "type": "", "demo": "messaging\/update-email.md", @@ -14458,7 +15122,7 @@ "x-appwrite": { "method": "createPush", "group": "messages", - "weight": 308, + "weight": 303, "cookies": false, "type": "", "demo": "messaging\/create-push.md", @@ -14654,7 +15318,7 @@ "x-appwrite": { "method": "updatePush", "group": "messages", - "weight": 315, + "weight": 310, "cookies": false, "type": "", "demo": "messaging\/update-push.md", @@ -14849,7 +15513,7 @@ "x-appwrite": { "method": "createSms", "group": "messages", - "weight": 307, + "weight": 302, "cookies": false, "type": "", "demo": "messaging\/create-sms.md", @@ -14930,7 +15594,7 @@ } ], "description": "Create a new SMS message.", - "demo": "messaging\/create-s-m-s.md" + "demo": "messaging\/create-sms.md" } ], "auth": { @@ -15038,7 +15702,7 @@ "x-appwrite": { "method": "updateSms", "group": "messages", - "weight": 314, + "weight": 309, "cookies": false, "type": "", "demo": "messaging\/update-sms.md", @@ -15117,7 +15781,7 @@ } ], "description": "Update an SMS message by its unique ID. This endpoint only works on messages that are in draft status. Messages that are already processing, sent, or failed cannot be updated.\n", - "demo": "messaging\/update-s-m-s.md" + "demo": "messaging\/update-sms.md" } ], "auth": { @@ -15221,7 +15885,7 @@ "x-appwrite": { "method": "getMessage", "group": "messages", - "weight": 312, + "weight": 307, "cookies": false, "type": "", "demo": "messaging\/get-message.md", @@ -15277,7 +15941,7 @@ "x-appwrite": { "method": "delete", "group": "messages", - "weight": 316, + "weight": 311, "cookies": false, "type": "", "demo": "messaging\/delete.md", @@ -15338,7 +16002,7 @@ "x-appwrite": { "method": "listMessageLogs", "group": "logs", - "weight": 310, + "weight": 305, "cookies": false, "type": "", "demo": "messaging\/list-message-logs.md", @@ -15411,7 +16075,7 @@ "x-appwrite": { "method": "listTargets", "group": "messages", - "weight": 311, + "weight": 306, "cookies": false, "type": "", "demo": "messaging\/list-targets.md", @@ -15484,7 +16148,7 @@ "x-appwrite": { "method": "listProviders", "group": "providers", - "weight": 281, + "weight": 276, "cookies": false, "type": "", "demo": "messaging\/list-providers.md", @@ -15560,7 +16224,7 @@ "x-appwrite": { "method": "createApnsProvider", "group": "providers", - "weight": 280, + "weight": 275, "cookies": false, "type": "", "demo": "messaging\/create-apns-provider.md", @@ -15643,7 +16307,7 @@ } ], "description": "Create a new Apple Push Notification service provider.", - "demo": "messaging\/create-a-p-n-s-provider.md" + "demo": "messaging\/create-apns-provider.md" } ], "auth": { @@ -15748,7 +16412,7 @@ "x-appwrite": { "method": "updateApnsProvider", "group": "providers", - "weight": 293, + "weight": 288, "cookies": false, "type": "", "demo": "messaging\/update-apns-provider.md", @@ -15829,7 +16493,7 @@ } ], "description": "Update a Apple Push Notification service provider by its unique ID.", - "demo": "messaging\/update-a-p-n-s-provider.md" + "demo": "messaging\/update-apns-provider.md" } ], "auth": { @@ -15932,7 +16596,7 @@ "x-appwrite": { "method": "createFcmProvider", "group": "providers", - "weight": 279, + "weight": 274, "cookies": false, "type": "", "demo": "messaging\/create-fcm-provider.md", @@ -16007,7 +16671,7 @@ } ], "description": "Create a new Firebase Cloud Messaging provider.", - "demo": "messaging\/create-f-c-m-provider.md" + "demo": "messaging\/create-fcm-provider.md" } ], "auth": { @@ -16088,7 +16752,7 @@ "x-appwrite": { "method": "updateFcmProvider", "group": "providers", - "weight": 292, + "weight": 287, "cookies": false, "type": "", "demo": "messaging\/update-fcm-provider.md", @@ -16161,7 +16825,7 @@ } ], "description": "Update a Firebase Cloud Messaging provider by its unique ID.", - "demo": "messaging\/update-f-c-m-provider.md" + "demo": "messaging\/update-fcm-provider.md" } ], "auth": { @@ -16240,7 +16904,7 @@ "x-appwrite": { "method": "createMailgunProvider", "group": "providers", - "weight": 271, + "weight": 266, "cookies": false, "type": "", "demo": "messaging\/create-mailgun-provider.md", @@ -16368,7 +17032,7 @@ "x-appwrite": { "method": "updateMailgunProvider", "group": "providers", - "weight": 284, + "weight": 279, "cookies": false, "type": "", "demo": "messaging\/update-mailgun-provider.md", @@ -16494,10 +17158,10 @@ "x-appwrite": { "method": "createMsg91Provider", "group": "providers", - "weight": 274, + "weight": 269, "cookies": false, "type": "", - "demo": "messaging\/create-msg91provider.md", + "demo": "messaging\/create-msg-91-provider.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/messaging\/create-msg91-provider.md", "rate-limit": 0, "rate-time": 3600, @@ -16598,10 +17262,10 @@ "x-appwrite": { "method": "updateMsg91Provider", "group": "providers", - "weight": 287, + "weight": 282, "cookies": false, "type": "", - "demo": "messaging\/update-msg91provider.md", + "demo": "messaging\/update-msg-91-provider.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/messaging\/update-msg91-provider.md", "rate-limit": 0, "rate-time": 3600, @@ -16700,7 +17364,7 @@ "x-appwrite": { "method": "createSendgridProvider", "group": "providers", - "weight": 272, + "weight": 267, "cookies": false, "type": "", "demo": "messaging\/create-sendgrid-provider.md", @@ -16816,7 +17480,7 @@ "x-appwrite": { "method": "updateSendgridProvider", "group": "providers", - "weight": 285, + "weight": 280, "cookies": false, "type": "", "demo": "messaging\/update-sendgrid-provider.md", @@ -16930,7 +17594,7 @@ "x-appwrite": { "method": "createSmtpProvider", "group": "providers", - "weight": 273, + "weight": 268, "cookies": false, "type": "", "demo": "messaging\/create-smtp-provider.md", @@ -17027,7 +17691,7 @@ } ], "description": "Create a new SMTP provider.", - "demo": "messaging\/create-s-m-t-p-provider.md" + "demo": "messaging\/create-smtp-provider.md" } ], "auth": { @@ -17176,7 +17840,7 @@ "x-appwrite": { "method": "updateSmtpProvider", "group": "providers", - "weight": 286, + "weight": 281, "cookies": false, "type": "", "demo": "messaging\/update-smtp-provider.md", @@ -17269,7 +17933,7 @@ } ], "description": "Update a SMTP provider by its unique ID.", - "demo": "messaging\/update-s-m-t-p-provider.md" + "demo": "messaging\/update-smtp-provider.md" } ], "auth": { @@ -17415,7 +18079,7 @@ "x-appwrite": { "method": "createTelesignProvider", "group": "providers", - "weight": 275, + "weight": 270, "cookies": false, "type": "", "demo": "messaging\/create-telesign-provider.md", @@ -17519,7 +18183,7 @@ "x-appwrite": { "method": "updateTelesignProvider", "group": "providers", - "weight": 288, + "weight": 283, "cookies": false, "type": "", "demo": "messaging\/update-telesign-provider.md", @@ -17621,7 +18285,7 @@ "x-appwrite": { "method": "createTextmagicProvider", "group": "providers", - "weight": 276, + "weight": 271, "cookies": false, "type": "", "demo": "messaging\/create-textmagic-provider.md", @@ -17725,7 +18389,7 @@ "x-appwrite": { "method": "updateTextmagicProvider", "group": "providers", - "weight": 289, + "weight": 284, "cookies": false, "type": "", "demo": "messaging\/update-textmagic-provider.md", @@ -17827,7 +18491,7 @@ "x-appwrite": { "method": "createTwilioProvider", "group": "providers", - "weight": 277, + "weight": 272, "cookies": false, "type": "", "demo": "messaging\/create-twilio-provider.md", @@ -17931,7 +18595,7 @@ "x-appwrite": { "method": "updateTwilioProvider", "group": "providers", - "weight": 290, + "weight": 285, "cookies": false, "type": "", "demo": "messaging\/update-twilio-provider.md", @@ -18033,7 +18697,7 @@ "x-appwrite": { "method": "createVonageProvider", "group": "providers", - "weight": 278, + "weight": 273, "cookies": false, "type": "", "demo": "messaging\/create-vonage-provider.md", @@ -18137,7 +18801,7 @@ "x-appwrite": { "method": "updateVonageProvider", "group": "providers", - "weight": 291, + "weight": 286, "cookies": false, "type": "", "demo": "messaging\/update-vonage-provider.md", @@ -18237,7 +18901,7 @@ "x-appwrite": { "method": "getProvider", "group": "providers", - "weight": 283, + "weight": 278, "cookies": false, "type": "", "demo": "messaging\/get-provider.md", @@ -18293,7 +18957,7 @@ "x-appwrite": { "method": "deleteProvider", "group": "providers", - "weight": 294, + "weight": 289, "cookies": false, "type": "", "demo": "messaging\/delete-provider.md", @@ -18354,7 +19018,7 @@ "x-appwrite": { "method": "listProviderLogs", "group": "providers", - "weight": 282, + "weight": 277, "cookies": false, "type": "", "demo": "messaging\/list-provider-logs.md", @@ -18427,7 +19091,7 @@ "x-appwrite": { "method": "listSubscriberLogs", "group": "subscribers", - "weight": 303, + "weight": 298, "cookies": false, "type": "", "demo": "messaging\/list-subscriber-logs.md", @@ -18500,7 +19164,7 @@ "x-appwrite": { "method": "listTopics", "group": "topics", - "weight": 296, + "weight": 291, "cookies": false, "type": "", "demo": "messaging\/list-topics.md", @@ -18574,7 +19238,7 @@ "x-appwrite": { "method": "createTopic", "group": "topics", - "weight": 295, + "weight": 290, "cookies": false, "type": "", "demo": "messaging\/create-topic.md", @@ -18663,7 +19327,7 @@ "x-appwrite": { "method": "getTopic", "group": "topics", - "weight": 298, + "weight": 293, "cookies": false, "type": "", "demo": "messaging\/get-topic.md", @@ -18724,7 +19388,7 @@ "x-appwrite": { "method": "updateTopic", "group": "topics", - "weight": 299, + "weight": 294, "cookies": false, "type": "", "demo": "messaging\/update-topic.md", @@ -18804,7 +19468,7 @@ "x-appwrite": { "method": "deleteTopic", "group": "topics", - "weight": 300, + "weight": 295, "cookies": false, "type": "", "demo": "messaging\/delete-topic.md", @@ -18865,7 +19529,7 @@ "x-appwrite": { "method": "listTopicLogs", "group": "topics", - "weight": 297, + "weight": 292, "cookies": false, "type": "", "demo": "messaging\/list-topic-logs.md", @@ -18938,7 +19602,7 @@ "x-appwrite": { "method": "listSubscribers", "group": "subscribers", - "weight": 302, + "weight": 297, "cookies": false, "type": "", "demo": "messaging\/list-subscribers.md", @@ -19020,7 +19684,7 @@ "x-appwrite": { "method": "createSubscriber", "group": "subscribers", - "weight": 301, + "weight": 296, "cookies": false, "type": "", "demo": "messaging\/create-subscriber.md", @@ -19109,7 +19773,7 @@ "x-appwrite": { "method": "getSubscriber", "group": "subscribers", - "weight": 304, + "weight": 299, "cookies": false, "type": "", "demo": "messaging\/get-subscriber.md", @@ -19173,7 +19837,7 @@ "x-appwrite": { "method": "deleteSubscriber", "group": "subscribers", - "weight": 305, + "weight": 300, "cookies": false, "type": "", "demo": "messaging\/delete-subscriber.md", @@ -19245,7 +19909,7 @@ "x-appwrite": { "method": "list", "group": "sites", - "weight": 461, + "weight": 469, "cookies": false, "type": "", "demo": "sites\/list.md", @@ -19318,7 +19982,7 @@ "x-appwrite": { "method": "create", "group": "sites", - "weight": 459, + "weight": 467, "cookies": false, "type": "", "demo": "sites\/create.md", @@ -19586,7 +20250,7 @@ "x-appwrite": { "method": "listFrameworks", "group": "frameworks", - "weight": 464, + "weight": 472, "cookies": false, "type": "", "demo": "sites\/list-frameworks.md", @@ -19636,7 +20300,7 @@ "x-appwrite": { "method": "listSpecifications", "group": "frameworks", - "weight": 487, + "weight": 495, "cookies": false, "type": "", "demo": "sites\/list-specifications.md", @@ -19687,7 +20351,7 @@ "x-appwrite": { "method": "get", "group": "sites", - "weight": 460, + "weight": 468, "cookies": false, "type": "", "demo": "sites\/get.md", @@ -19747,7 +20411,7 @@ "x-appwrite": { "method": "update", "group": "sites", - "weight": 462, + "weight": 470, "cookies": false, "type": "", "demo": "sites\/update.md", @@ -20010,7 +20674,7 @@ "x-appwrite": { "method": "delete", "group": "sites", - "weight": 463, + "weight": 471, "cookies": false, "type": "", "demo": "sites\/delete.md", @@ -20072,7 +20736,7 @@ "x-appwrite": { "method": "updateSiteDeployment", "group": "sites", - "weight": 470, + "weight": 478, "cookies": false, "type": "", "demo": "sites\/update-site-deployment.md", @@ -20150,7 +20814,7 @@ "x-appwrite": { "method": "listDeployments", "group": "deployments", - "weight": 469, + "weight": 477, "cookies": false, "type": "", "demo": "sites\/list-deployments.md", @@ -20231,7 +20895,7 @@ "x-appwrite": { "method": "createDeployment", "group": "deployments", - "weight": 465, + "weight": 473, "cookies": false, "type": "upload", "demo": "sites\/create-deployment.md", @@ -20332,7 +20996,7 @@ "x-appwrite": { "method": "createDuplicateDeployment", "group": "deployments", - "weight": 473, + "weight": 481, "cookies": false, "type": "", "demo": "sites\/create-duplicate-deployment.md", @@ -20412,7 +21076,7 @@ "x-appwrite": { "method": "createTemplateDeployment", "group": "deployments", - "weight": 466, + "weight": 474, "cookies": false, "type": "", "demo": "sites\/create-template-deployment.md", @@ -20519,7 +21183,7 @@ "x-appwrite": { "method": "createVcsDeployment", "group": "deployments", - "weight": 467, + "weight": 475, "cookies": false, "type": "", "demo": "sites\/create-vcs-deployment.md", @@ -20617,7 +21281,7 @@ "x-appwrite": { "method": "getDeployment", "group": "deployments", - "weight": 468, + "weight": 476, "cookies": false, "type": "", "demo": "sites\/get-deployment.md", @@ -20680,7 +21344,7 @@ "x-appwrite": { "method": "deleteDeployment", "group": "deployments", - "weight": 471, + "weight": 479, "cookies": false, "type": "", "demo": "sites\/delete-deployment.md", @@ -20748,7 +21412,7 @@ "x-appwrite": { "method": "getDeploymentDownload", "group": "deployments", - "weight": 472, + "weight": 480, "cookies": false, "type": "location", "demo": "sites\/get-deployment-download.md", @@ -20834,7 +21498,7 @@ "x-appwrite": { "method": "updateDeploymentStatus", "group": "deployments", - "weight": 474, + "weight": 482, "cookies": false, "type": "", "demo": "sites\/update-deployment-status.md", @@ -20902,7 +21566,7 @@ "x-appwrite": { "method": "listLogs", "group": "logs", - "weight": 476, + "weight": 484, "cookies": false, "type": "", "demo": "sites\/list-logs.md", @@ -20974,7 +21638,7 @@ "x-appwrite": { "method": "getLog", "group": "logs", - "weight": 475, + "weight": 483, "cookies": false, "type": "", "demo": "sites\/get-log.md", @@ -21039,7 +21703,7 @@ "x-appwrite": { "method": "deleteLog", "group": "logs", - "weight": 477, + "weight": 485, "cookies": false, "type": "", "demo": "sites\/delete-log.md", @@ -21107,7 +21771,7 @@ "x-appwrite": { "method": "listVariables", "group": "variables", - "weight": 480, + "weight": 488, "cookies": false, "type": "", "demo": "sites\/list-variables.md", @@ -21167,7 +21831,7 @@ "x-appwrite": { "method": "createVariable", "group": "variables", - "weight": 478, + "weight": 486, "cookies": false, "type": "", "demo": "sites\/create-variable.md", @@ -21258,7 +21922,7 @@ "x-appwrite": { "method": "getVariable", "group": "variables", - "weight": 479, + "weight": 487, "cookies": false, "type": "", "demo": "sites\/get-variable.md", @@ -21326,7 +21990,7 @@ "x-appwrite": { "method": "updateVariable", "group": "variables", - "weight": 481, + "weight": 489, "cookies": false, "type": "", "demo": "sites\/update-variable.md", @@ -21419,7 +22083,7 @@ "x-appwrite": { "method": "deleteVariable", "group": "variables", - "weight": 482, + "weight": 490, "cookies": false, "type": "", "demo": "sites\/delete-variable.md", @@ -21487,7 +22151,7 @@ "x-appwrite": { "method": "listBuckets", "group": "buckets", - "weight": 156, + "weight": 155, "cookies": false, "type": "", "demo": "storage\/list-buckets.md", @@ -21560,7 +22224,7 @@ "x-appwrite": { "method": "createBucket", "group": "buckets", - "weight": 155, + "weight": 154, "cookies": false, "type": "", "demo": "storage\/create-bucket.md", @@ -21698,7 +22362,7 @@ "x-appwrite": { "method": "getBucket", "group": "buckets", - "weight": 157, + "weight": 156, "cookies": false, "type": "", "demo": "storage\/get-bucket.md", @@ -21758,7 +22422,7 @@ "x-appwrite": { "method": "updateBucket", "group": "buckets", - "weight": 158, + "weight": 157, "cookies": false, "type": "", "demo": "storage\/update-bucket.md", @@ -21892,7 +22556,7 @@ "x-appwrite": { "method": "deleteBucket", "group": "buckets", - "weight": 159, + "weight": 158, "cookies": false, "type": "", "demo": "storage\/delete-bucket.md", @@ -21952,7 +22616,7 @@ "x-appwrite": { "method": "listFiles", "group": "files", - "weight": 161, + "weight": 160, "cookies": false, "type": "", "demo": "storage\/list-files.md", @@ -22036,7 +22700,7 @@ "x-appwrite": { "method": "createFile", "group": "files", - "weight": 160, + "weight": 159, "cookies": false, "type": "upload", "demo": "storage\/create-file.md", @@ -22127,7 +22791,7 @@ "x-appwrite": { "method": "getFile", "group": "files", - "weight": 162, + "weight": 161, "cookies": false, "type": "", "demo": "storage\/get-file.md", @@ -22198,7 +22862,7 @@ "x-appwrite": { "method": "updateFile", "group": "files", - "weight": 167, + "weight": 166, "cookies": false, "type": "", "demo": "storage\/update-file.md", @@ -22288,7 +22952,7 @@ "x-appwrite": { "method": "deleteFile", "group": "files", - "weight": 168, + "weight": 167, "cookies": false, "type": "", "demo": "storage\/delete-file.md", @@ -22359,7 +23023,7 @@ "x-appwrite": { "method": "getFileDownload", "group": "files", - "weight": 164, + "weight": 163, "cookies": false, "type": "location", "demo": "storage\/get-file-download.md", @@ -22439,7 +23103,7 @@ "x-appwrite": { "method": "getFilePreview", "group": "files", - "weight": 163, + "weight": 162, "cookies": false, "type": "location", "demo": "storage\/get-file-preview.md", @@ -22647,7 +23311,7 @@ "x-appwrite": { "method": "getFileView", "group": "files", - "weight": 165, + "weight": 164, "cookies": false, "type": "location", "demo": "storage\/get-file-view.md", @@ -22727,10 +23391,10 @@ "x-appwrite": { "method": "list", "group": "tablesdb", - "weight": 375, + "weight": 376, "cookies": false, "type": "", - "demo": "tables-d-b\/list.md", + "demo": "tablesdb\/list.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/list.md", "rate-limit": 0, "rate-time": 3600, @@ -22800,10 +23464,10 @@ "x-appwrite": { "method": "create", "group": "tablesdb", - "weight": 371, + "weight": 372, "cookies": false, "type": "", - "demo": "tables-d-b\/create.md", + "demo": "tablesdb\/create.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/create.md", "rate-limit": 0, "rate-time": 3600, @@ -22883,10 +23547,10 @@ "x-appwrite": { "method": "get", "group": "tablesdb", - "weight": 372, + "weight": 373, "cookies": false, "type": "", - "demo": "tables-d-b\/get.md", + "demo": "tablesdb\/get.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/get.md", "rate-limit": 0, "rate-time": 3600, @@ -22943,10 +23607,10 @@ "x-appwrite": { "method": "update", "group": "tablesdb", - "weight": 373, + "weight": 374, "cookies": false, "type": "", - "demo": "tables-d-b\/update.md", + "demo": "tablesdb\/update.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/update.md", "rate-limit": 0, "rate-time": 3600, @@ -23022,10 +23686,10 @@ "x-appwrite": { "method": "delete", "group": "tablesdb", - "weight": 374, + "weight": 375, "cookies": false, "type": "", - "demo": "tables-d-b\/delete.md", + "demo": "tablesdb\/delete.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/delete.md", "rate-limit": 0, "rate-time": 3600, @@ -23081,16 +23745,19 @@ "deprecated": false, "x-appwrite": { "method": "listTables", - "group": null, - "weight": 382, + "group": "tables", + "weight": 383, "cookies": false, "type": "", - "demo": "tables-d-b\/list-tables.md", + "demo": "tablesdb\/list-tables.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/list-tables.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "tables.read", + "scope": [ + "tables.read", + "collections.read" + ], "platforms": [ "server" ], @@ -23162,16 +23829,19 @@ "deprecated": false, "x-appwrite": { "method": "createTable", - "group": null, - "weight": 378, + "group": "tables", + "weight": 379, "cookies": false, "type": "", - "demo": "tables-d-b\/create-table.md", + "demo": "tablesdb\/create-table.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/create-table.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "tables.write", + "scope": [ + "tables.write", + "collections.write" + ], "platforms": [ "server" ], @@ -23268,16 +23938,19 @@ "deprecated": false, "x-appwrite": { "method": "getTable", - "group": null, - "weight": 379, + "group": "tables", + "weight": 380, "cookies": false, "type": "", - "demo": "tables-d-b\/get-table.md", + "demo": "tablesdb\/get-table.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/get-table.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "tables.read", + "scope": [ + "tables.read", + "collections.read" + ], "platforms": [ "server" ], @@ -23336,16 +24009,19 @@ "deprecated": false, "x-appwrite": { "method": "updateTable", - "group": null, - "weight": 380, + "group": "tables", + "weight": 381, "cookies": false, "type": "", - "demo": "tables-d-b\/update-table.md", + "demo": "tablesdb\/update-table.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/update-table.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "tables.write", + "scope": [ + "tables.write", + "collections.write" + ], "platforms": [ "server" ], @@ -23438,16 +24114,19 @@ "deprecated": false, "x-appwrite": { "method": "deleteTable", - "group": null, - "weight": 381, + "group": "tables", + "weight": 382, "cookies": false, "type": "", - "demo": "tables-d-b\/delete-table.md", + "demo": "tablesdb\/delete-table.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/delete-table.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "tables.write", + "scope": [ + "tables.write", + "collections.write" + ], "platforms": [ "server" ], @@ -23507,15 +24186,18 @@ "x-appwrite": { "method": "listColumns", "group": "columns", - "weight": 387, + "weight": 388, "cookies": false, "type": "", - "demo": "tables-d-b\/list-columns.md", + "demo": "tablesdb\/list-columns.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/list-columns.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "tables.read", + "scope": [ + "tables.read", + "collections.read" + ], "platforms": [ "server" ], @@ -23589,15 +24271,18 @@ "x-appwrite": { "method": "createBooleanColumn", "group": "columns", - "weight": 388, + "weight": 389, "cookies": false, "type": "", - "demo": "tables-d-b\/create-boolean-column.md", + "demo": "tablesdb\/create-boolean-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/create-boolean-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "tables.write", + "scope": [ + "tables.write", + "collections.write" + ], "platforms": [ "server" ], @@ -23696,15 +24381,18 @@ "x-appwrite": { "method": "updateBooleanColumn", "group": "columns", - "weight": 389, + "weight": 390, "cookies": false, "type": "", - "demo": "tables-d-b\/update-boolean-column.md", + "demo": "tablesdb\/update-boolean-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/update-boolean-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "tables.write", + "scope": [ + "tables.write", + "collections.write" + ], "platforms": [ "server" ], @@ -23805,15 +24493,18 @@ "x-appwrite": { "method": "createDatetimeColumn", "group": "columns", - "weight": 390, + "weight": 391, "cookies": false, "type": "", - "demo": "tables-d-b\/create-datetime-column.md", + "demo": "tablesdb\/create-datetime-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/create-datetime-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "tables.write", + "scope": [ + "tables.write", + "collections.write" + ], "platforms": [ "server" ], @@ -23912,15 +24603,18 @@ "x-appwrite": { "method": "updateDatetimeColumn", "group": "columns", - "weight": 391, + "weight": 392, "cookies": false, "type": "", - "demo": "tables-d-b\/update-datetime-column.md", + "demo": "tablesdb\/update-datetime-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/update-datetime-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "tables.write", + "scope": [ + "tables.write", + "collections.write" + ], "platforms": [ "server" ], @@ -24021,15 +24715,18 @@ "x-appwrite": { "method": "createEmailColumn", "group": "columns", - "weight": 392, + "weight": 393, "cookies": false, "type": "", - "demo": "tables-d-b\/create-email-column.md", + "demo": "tablesdb\/create-email-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/create-email-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "tables.write", + "scope": [ + "tables.write", + "collections.write" + ], "platforms": [ "server" ], @@ -24128,15 +24825,18 @@ "x-appwrite": { "method": "updateEmailColumn", "group": "columns", - "weight": 393, + "weight": 394, "cookies": false, "type": "", - "demo": "tables-d-b\/update-email-column.md", + "demo": "tablesdb\/update-email-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/update-email-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "tables.write", + "scope": [ + "tables.write", + "collections.write" + ], "platforms": [ "server" ], @@ -24237,15 +24937,18 @@ "x-appwrite": { "method": "createEnumColumn", "group": "columns", - "weight": 394, + "weight": 395, "cookies": false, "type": "", - "demo": "tables-d-b\/create-enum-column.md", + "demo": "tablesdb\/create-enum-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/create-enum-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "tables.write", + "scope": [ + "tables.write", + "collections.write" + ], "platforms": [ "server" ], @@ -24354,15 +25057,18 @@ "x-appwrite": { "method": "updateEnumColumn", "group": "columns", - "weight": 395, + "weight": 396, "cookies": false, "type": "", - "demo": "tables-d-b\/update-enum-column.md", + "demo": "tablesdb\/update-enum-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/update-enum-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "tables.write", + "scope": [ + "tables.write", + "collections.write" + ], "platforms": [ "server" ], @@ -24473,15 +25179,18 @@ "x-appwrite": { "method": "createFloatColumn", "group": "columns", - "weight": 396, + "weight": 397, "cookies": false, "type": "", - "demo": "tables-d-b\/create-float-column.md", + "demo": "tablesdb\/create-float-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/create-float-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "tables.write", + "scope": [ + "tables.write", + "collections.write" + ], "platforms": [ "server" ], @@ -24592,15 +25301,18 @@ "x-appwrite": { "method": "updateFloatColumn", "group": "columns", - "weight": 397, + "weight": 398, "cookies": false, "type": "", - "demo": "tables-d-b\/update-float-column.md", + "demo": "tablesdb\/update-float-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/update-float-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "tables.write", + "scope": [ + "tables.write", + "collections.write" + ], "platforms": [ "server" ], @@ -24713,15 +25425,18 @@ "x-appwrite": { "method": "createIntegerColumn", "group": "columns", - "weight": 398, + "weight": 399, "cookies": false, "type": "", - "demo": "tables-d-b\/create-integer-column.md", + "demo": "tablesdb\/create-integer-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/create-integer-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "tables.write", + "scope": [ + "tables.write", + "collections.write" + ], "platforms": [ "server" ], @@ -24832,15 +25547,18 @@ "x-appwrite": { "method": "updateIntegerColumn", "group": "columns", - "weight": 399, + "weight": 400, "cookies": false, "type": "", - "demo": "tables-d-b\/update-integer-column.md", + "demo": "tablesdb\/update-integer-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/update-integer-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "tables.write", + "scope": [ + "tables.write", + "collections.write" + ], "platforms": [ "server" ], @@ -24953,15 +25671,18 @@ "x-appwrite": { "method": "createIpColumn", "group": "columns", - "weight": 400, + "weight": 401, "cookies": false, "type": "", - "demo": "tables-d-b\/create-ip-column.md", + "demo": "tablesdb\/create-ip-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/create-ip-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "tables.write", + "scope": [ + "tables.write", + "collections.write" + ], "platforms": [ "server" ], @@ -25060,15 +25781,18 @@ "x-appwrite": { "method": "updateIpColumn", "group": "columns", - "weight": 401, + "weight": 402, "cookies": false, "type": "", - "demo": "tables-d-b\/update-ip-column.md", + "demo": "tablesdb\/update-ip-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/update-ip-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "tables.write", + "scope": [ + "tables.write", + "collections.write" + ], "platforms": [ "server" ], @@ -25143,6 +25867,654 @@ ] } }, + "\/tablesdb\/{databaseId}\/tables\/{tableId}\/columns\/line": { + "post": { + "summary": "Create line column", + "operationId": "tablesDBCreateLineColumn", + "consumes": [ + "application\/json" + ], + "produces": [ + "application\/json" + ], + "tags": [ + "tablesDB" + ], + "description": "Create a geometric line column.", + "responses": { + "202": { + "description": "ColumnLine", + "schema": { + "$ref": "#\/definitions\/columnLine" + } + } + }, + "deprecated": false, + "x-appwrite": { + "method": "createLineColumn", + "group": "columns", + "weight": 403, + "cookies": false, + "type": "", + "demo": "tablesdb\/create-line-column.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/create-line-column.md", + "rate-limit": 0, + "rate-time": 3600, + "rate-key": "url:{url},ip:{ip}", + "scope": [ + "tables.write", + "collections.write" + ], + "platforms": [ + "server" + ], + "packaging": false, + "auth": { + "Project": [], + "Key": [] + } + }, + "security": [ + { + "Project": [], + "Key": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + }, + { + "name": "tableId", + "description": "Table ID. You can create a new table using the TablesDB service [server integration](https:\/\/appwrite.io\/docs\/server\/tablesdb#tablesDBCreate).", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + }, + { + "name": "payload", + "in": "body", + "schema": { + "type": "object", + "properties": { + "key": { + "type": "string", + "description": "Column Key.", + "default": null, + "x-example": null + }, + "required": { + "type": "boolean", + "description": "Is column required?", + "default": null, + "x-example": false + }, + "default": { + "type": "array", + "description": "Default value for column when not provided, two-dimensional array of coordinate pairs, [[longitude, latitude], [longitude, latitude], \u2026], listing the vertices of the line in order. Cannot be set when column is required.", + "default": null, + "x-example": "[[1, 2], [3, 4], [5, 6]]", + "x-nullable": true + } + }, + "required": [ + "key", + "required" + ] + } + } + ] + } + }, + "\/tablesdb\/{databaseId}\/tables\/{tableId}\/columns\/line\/{key}": { + "patch": { + "summary": "Update line column", + "operationId": "tablesDBUpdateLineColumn", + "consumes": [ + "application\/json" + ], + "produces": [ + "application\/json" + ], + "tags": [ + "tablesDB" + ], + "description": "Update a line column. Changing the `default` value will not update already existing rows.", + "responses": { + "200": { + "description": "ColumnLine", + "schema": { + "$ref": "#\/definitions\/columnLine" + } + } + }, + "deprecated": false, + "x-appwrite": { + "method": "updateLineColumn", + "group": "columns", + "weight": 404, + "cookies": false, + "type": "", + "demo": "tablesdb\/update-line-column.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/update-line-column.md", + "rate-limit": 0, + "rate-time": 3600, + "rate-key": "url:{url},ip:{ip}", + "scope": [ + "tables.write", + "collections.write" + ], + "platforms": [ + "server" + ], + "packaging": false, + "auth": { + "Project": [], + "Key": [] + } + }, + "security": [ + { + "Project": [], + "Key": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + }, + { + "name": "tableId", + "description": "Table ID. You can create a new table using the TablesDB service [server integration](https:\/\/appwrite.io\/docs\/server\/tablesdb#tablesDBCreate).", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + }, + { + "name": "key", + "description": "Column Key.", + "required": true, + "type": "string", + "in": "path" + }, + { + "name": "payload", + "in": "body", + "schema": { + "type": "object", + "properties": { + "required": { + "type": "boolean", + "description": "Is column required?", + "default": null, + "x-example": false + }, + "default": { + "type": "array", + "description": "Default value for column when not provided, two-dimensional array of coordinate pairs, [[longitude, latitude], [longitude, latitude], \u2026], listing the vertices of the line in order. Cannot be set when column is required.", + "default": null, + "x-example": "[[1, 2], [3, 4], [5, 6]]", + "x-nullable": true + }, + "newKey": { + "type": "string", + "description": "New Column Key.", + "default": null, + "x-example": null + } + }, + "required": [ + "required" + ] + } + } + ] + } + }, + "\/tablesdb\/{databaseId}\/tables\/{tableId}\/columns\/point": { + "post": { + "summary": "Create point column", + "operationId": "tablesDBCreatePointColumn", + "consumes": [ + "application\/json" + ], + "produces": [ + "application\/json" + ], + "tags": [ + "tablesDB" + ], + "description": "Create a geometric point column.", + "responses": { + "202": { + "description": "ColumnPoint", + "schema": { + "$ref": "#\/definitions\/columnPoint" + } + } + }, + "deprecated": false, + "x-appwrite": { + "method": "createPointColumn", + "group": "columns", + "weight": 405, + "cookies": false, + "type": "", + "demo": "tablesdb\/create-point-column.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/create-point-column.md", + "rate-limit": 0, + "rate-time": 3600, + "rate-key": "url:{url},ip:{ip}", + "scope": [ + "tables.write", + "collections.write" + ], + "platforms": [ + "server" + ], + "packaging": false, + "auth": { + "Project": [], + "Key": [] + } + }, + "security": [ + { + "Project": [], + "Key": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + }, + { + "name": "tableId", + "description": "Table ID. You can create a new table using the TablesDB service [server integration](https:\/\/appwrite.io\/docs\/server\/tablesdb#tablesDBCreate).", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + }, + { + "name": "payload", + "in": "body", + "schema": { + "type": "object", + "properties": { + "key": { + "type": "string", + "description": "Column Key.", + "default": null, + "x-example": null + }, + "required": { + "type": "boolean", + "description": "Is column required?", + "default": null, + "x-example": false + }, + "default": { + "type": "array", + "description": "Default value for column when not provided, array of two numbers [longitude, latitude], representing a single coordinate. Cannot be set when column is required.", + "default": null, + "x-example": "[1, 2]", + "x-nullable": true + } + }, + "required": [ + "key", + "required" + ] + } + } + ] + } + }, + "\/tablesdb\/{databaseId}\/tables\/{tableId}\/columns\/point\/{key}": { + "patch": { + "summary": "Update point column", + "operationId": "tablesDBUpdatePointColumn", + "consumes": [ + "application\/json" + ], + "produces": [ + "application\/json" + ], + "tags": [ + "tablesDB" + ], + "description": "Update a point column. Changing the `default` value will not update already existing rows.", + "responses": { + "200": { + "description": "ColumnPoint", + "schema": { + "$ref": "#\/definitions\/columnPoint" + } + } + }, + "deprecated": false, + "x-appwrite": { + "method": "updatePointColumn", + "group": "columns", + "weight": 406, + "cookies": false, + "type": "", + "demo": "tablesdb\/update-point-column.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/update-point-column.md", + "rate-limit": 0, + "rate-time": 3600, + "rate-key": "url:{url},ip:{ip}", + "scope": [ + "tables.write", + "collections.write" + ], + "platforms": [ + "server" + ], + "packaging": false, + "auth": { + "Project": [], + "Key": [] + } + }, + "security": [ + { + "Project": [], + "Key": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + }, + { + "name": "tableId", + "description": "Table ID. You can create a new table using the TablesDB service [server integration](https:\/\/appwrite.io\/docs\/server\/tablesdb#tablesDBCreate).", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + }, + { + "name": "key", + "description": "Column Key.", + "required": true, + "type": "string", + "in": "path" + }, + { + "name": "payload", + "in": "body", + "schema": { + "type": "object", + "properties": { + "required": { + "type": "boolean", + "description": "Is column required?", + "default": null, + "x-example": false + }, + "default": { + "type": "array", + "description": "Default value for column when not provided, array of two numbers [longitude, latitude], representing a single coordinate. Cannot be set when column is required.", + "default": null, + "x-example": "[1, 2]", + "x-nullable": true + }, + "newKey": { + "type": "string", + "description": "New Column Key.", + "default": null, + "x-example": null + } + }, + "required": [ + "required" + ] + } + } + ] + } + }, + "\/tablesdb\/{databaseId}\/tables\/{tableId}\/columns\/polygon": { + "post": { + "summary": "Create polygon column", + "operationId": "tablesDBCreatePolygonColumn", + "consumes": [ + "application\/json" + ], + "produces": [ + "application\/json" + ], + "tags": [ + "tablesDB" + ], + "description": "Create a geometric polygon column.", + "responses": { + "202": { + "description": "ColumnPolygon", + "schema": { + "$ref": "#\/definitions\/columnPolygon" + } + } + }, + "deprecated": false, + "x-appwrite": { + "method": "createPolygonColumn", + "group": "columns", + "weight": 407, + "cookies": false, + "type": "", + "demo": "tablesdb\/create-polygon-column.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/create-polygon-column.md", + "rate-limit": 0, + "rate-time": 3600, + "rate-key": "url:{url},ip:{ip}", + "scope": [ + "tables.write", + "collections.write" + ], + "platforms": [ + "server" + ], + "packaging": false, + "auth": { + "Project": [], + "Key": [] + } + }, + "security": [ + { + "Project": [], + "Key": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + }, + { + "name": "tableId", + "description": "Table ID. You can create a new table using the TablesDB service [server integration](https:\/\/appwrite.io\/docs\/server\/tablesdb#tablesDBCreate).", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + }, + { + "name": "payload", + "in": "body", + "schema": { + "type": "object", + "properties": { + "key": { + "type": "string", + "description": "Column Key.", + "default": null, + "x-example": null + }, + "required": { + "type": "boolean", + "description": "Is column required?", + "default": null, + "x-example": false + }, + "default": { + "type": "array", + "description": "Default value for column when not provided, three-dimensional array where the outer array holds one or more linear rings, [[[longitude, latitude], \u2026], \u2026], the first ring is the exterior boundary, any additional rings are interior holes, and each ring must start and end with the same coordinate pair. Cannot be set when column is required.", + "default": null, + "x-example": "[[[1, 2], [3, 4], [5, 6], [1, 2]]]", + "x-nullable": true + } + }, + "required": [ + "key", + "required" + ] + } + } + ] + } + }, + "\/tablesdb\/{databaseId}\/tables\/{tableId}\/columns\/polygon\/{key}": { + "patch": { + "summary": "Update polygon column", + "operationId": "tablesDBUpdatePolygonColumn", + "consumes": [ + "application\/json" + ], + "produces": [ + "application\/json" + ], + "tags": [ + "tablesDB" + ], + "description": "Update a polygon column. Changing the `default` value will not update already existing rows.", + "responses": { + "200": { + "description": "ColumnPolygon", + "schema": { + "$ref": "#\/definitions\/columnPolygon" + } + } + }, + "deprecated": false, + "x-appwrite": { + "method": "updatePolygonColumn", + "group": "columns", + "weight": 408, + "cookies": false, + "type": "", + "demo": "tablesdb\/update-polygon-column.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/update-polygon-column.md", + "rate-limit": 0, + "rate-time": 3600, + "rate-key": "url:{url},ip:{ip}", + "scope": [ + "tables.write", + "collections.write" + ], + "platforms": [ + "server" + ], + "packaging": false, + "auth": { + "Project": [], + "Key": [] + } + }, + "security": [ + { + "Project": [], + "Key": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + }, + { + "name": "tableId", + "description": "Table ID. You can create a new table using the TablesDB service [server integration](https:\/\/appwrite.io\/docs\/server\/tablesdb#tablesDBCreate).", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + }, + { + "name": "key", + "description": "Column Key.", + "required": true, + "type": "string", + "in": "path" + }, + { + "name": "payload", + "in": "body", + "schema": { + "type": "object", + "properties": { + "required": { + "type": "boolean", + "description": "Is column required?", + "default": null, + "x-example": false + }, + "default": { + "type": "array", + "description": "Default value for column when not provided, three-dimensional array where the outer array holds one or more linear rings, [[[longitude, latitude], \u2026], \u2026], the first ring is the exterior boundary, any additional rings are interior holes, and each ring must start and end with the same coordinate pair. Cannot be set when column is required.", + "default": null, + "x-example": "[[[1, 2], [3, 4], [5, 6], [1, 2]]]", + "x-nullable": true + }, + "newKey": { + "type": "string", + "description": "New Column Key.", + "default": null, + "x-example": null + } + }, + "required": [ + "required" + ] + } + } + ] + } + }, "\/tablesdb\/{databaseId}\/tables\/{tableId}\/columns\/relationship": { "post": { "summary": "Create relationship column", @@ -25169,15 +26541,18 @@ "x-appwrite": { "method": "createRelationshipColumn", "group": "columns", - "weight": 402, + "weight": 409, "cookies": false, "type": "", - "demo": "tables-d-b\/create-relationship-column.md", + "demo": "tablesdb\/create-relationship-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/create-relationship-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "tables.write", + "scope": [ + "tables.write", + "collections.write" + ], "platforms": [ "server" ], @@ -25303,15 +26678,18 @@ "x-appwrite": { "method": "createStringColumn", "group": "columns", - "weight": 404, + "weight": 411, "cookies": false, "type": "", - "demo": "tables-d-b\/create-string-column.md", + "demo": "tablesdb\/create-string-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/create-string-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "tables.write", + "scope": [ + "tables.write", + "collections.write" + ], "platforms": [ "server" ], @@ -25423,15 +26801,18 @@ "x-appwrite": { "method": "updateStringColumn", "group": "columns", - "weight": 405, + "weight": 412, "cookies": false, "type": "", - "demo": "tables-d-b\/update-string-column.md", + "demo": "tablesdb\/update-string-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/update-string-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "tables.write", + "scope": [ + "tables.write", + "collections.write" + ], "platforms": [ "server" ], @@ -25538,15 +26919,18 @@ "x-appwrite": { "method": "createUrlColumn", "group": "columns", - "weight": 406, + "weight": 413, "cookies": false, "type": "", - "demo": "tables-d-b\/create-url-column.md", + "demo": "tablesdb\/create-url-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/create-url-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "tables.write", + "scope": [ + "tables.write", + "collections.write" + ], "platforms": [ "server" ], @@ -25645,15 +27029,18 @@ "x-appwrite": { "method": "updateUrlColumn", "group": "columns", - "weight": 407, + "weight": 414, "cookies": false, "type": "", - "demo": "tables-d-b\/update-url-column.md", + "demo": "tablesdb\/update-url-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/update-url-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "tables.write", + "scope": [ + "tables.write", + "collections.write" + ], "platforms": [ "server" ], @@ -25783,15 +27170,18 @@ "x-appwrite": { "method": "getColumn", "group": "columns", - "weight": 385, + "weight": 386, "cookies": false, "type": "", - "demo": "tables-d-b\/get-column.md", + "demo": "tablesdb\/get-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/get-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "tables.read", + "scope": [ + "tables.read", + "collections.read" + ], "platforms": [ "server" ], @@ -25853,15 +27243,18 @@ "x-appwrite": { "method": "deleteColumn", "group": "columns", - "weight": 386, + "weight": 387, "cookies": false, "type": "", - "demo": "tables-d-b\/delete-column.md", + "demo": "tablesdb\/delete-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/delete-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "tables.write", + "scope": [ + "tables.write", + "collections.write" + ], "platforms": [ "server" ], @@ -25930,15 +27323,18 @@ "x-appwrite": { "method": "updateRelationshipColumn", "group": "columns", - "weight": 403, + "weight": 410, "cookies": false, "type": "", - "demo": "tables-d-b\/update-relationship-column.md", + "demo": "tablesdb\/update-relationship-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/update-relationship-column.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "tables.write", + "scope": [ + "tables.write", + "collections.write" + ], "platforms": [ "server" ], @@ -26033,15 +27429,18 @@ "x-appwrite": { "method": "listIndexes", "group": "indexes", - "weight": 411, + "weight": 418, "cookies": false, "type": "", - "demo": "tables-d-b\/list-indexes.md", + "demo": "tablesdb\/list-indexes.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/list-indexes.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "tables.read", + "scope": [ + "tables.read", + "collections.read" + ], "platforms": [ "server" ], @@ -26113,15 +27512,18 @@ "x-appwrite": { "method": "createIndex", "group": "indexes", - "weight": 408, + "weight": 415, "cookies": false, "type": "", - "demo": "tables-d-b\/create-index.md", + "demo": "tablesdb\/create-index.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/create-index.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "tables.write", + "scope": [ + "tables.write", + "collections.write" + ], "platforms": [ "server" ], @@ -26174,7 +27576,8 @@ "enum": [ "key", "fulltext", - "unique" + "unique", + "spatial" ], "x-enum-name": "IndexType", "x-enum-keys": [] @@ -26241,15 +27644,18 @@ "x-appwrite": { "method": "getIndex", "group": "indexes", - "weight": 409, + "weight": 416, "cookies": false, "type": "", - "demo": "tables-d-b\/get-index.md", + "demo": "tablesdb\/get-index.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/get-index.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "tables.read", + "scope": [ + "tables.read", + "collections.read" + ], "platforms": [ "server" ], @@ -26311,15 +27717,18 @@ "x-appwrite": { "method": "deleteIndex", "group": "indexes", - "weight": 410, + "weight": 417, "cookies": false, "type": "", - "demo": "tables-d-b\/delete-index.md", + "demo": "tablesdb\/delete-index.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/delete-index.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "tables.write", + "scope": [ + "tables.write", + "collections.write" + ], "platforms": [ "server" ], @@ -26386,15 +27795,18 @@ "x-appwrite": { "method": "listRows", "group": "rows", - "weight": 420, + "weight": 427, "cookies": false, "type": "", - "demo": "tables-d-b\/list-rows.md", + "demo": "tablesdb\/list-rows.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/list-rows.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "rows.read", + "scope": [ + "rows.read", + "documents.read" + ], "platforms": [ "client", "server" @@ -26469,15 +27881,18 @@ "x-appwrite": { "method": "createRow", "group": "rows", - "weight": 412, + "weight": 419, "cookies": false, "type": "", - "demo": "tables-d-b\/create-row.md", + "demo": "tablesdb\/create-row.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/create-row.md", "rate-limit": 120, "rate-time": 60, "rate-key": "ip:{ip},method:{method},url:{url},userId:{userId}", - "scope": "rows.write", + "scope": [ + "rows.write", + "documents.write" + ], "platforms": [ "client", "server" @@ -26512,7 +27927,7 @@ } ], "description": "Create a new Row. Before using this route, you should create a new table resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/tablesdb#tablesDBCreateTable) API or directly from your database console.", - "demo": "tables-d-b\/create-row.md" + "demo": "tablesdb\/create-row.md" }, { "name": "createRows", @@ -26539,7 +27954,7 @@ } ], "description": "Create new Rows. Before using this route, you should create a new table resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/tablesdb#tablesDBCreateTable) API or directly from your database console.", - "demo": "tables-d-b\/create-rows.md" + "demo": "tablesdb\/create-rows.md" } ], "auth": { @@ -26588,7 +28003,7 @@ "type": "object", "description": "Row data as JSON object.", "default": [], - "x-example": "{}" + "x-example": "{\"username\":\"walter.obrien\",\"email\":\"walter.obrien@example.com\",\"fullName\":\"Walter O'Brien\",\"age\":30,\"isAdmin\":false}" }, "permissions": { "type": "array", @@ -26601,7 +28016,7 @@ }, "rows": { "type": "array", - "description": "Array of documents data as JSON objects.", + "description": "Array of rows data as JSON objects.", "default": [], "x-example": null, "items": { @@ -26614,7 +28029,7 @@ ] }, "put": { - "summary": "Create or update rows", + "summary": "Upsert rows", "operationId": "tablesDBUpsertRows", "consumes": [ "application\/json" @@ -26638,15 +28053,18 @@ "x-appwrite": { "method": "upsertRows", "group": "rows", - "weight": 417, + "weight": 424, "cookies": false, "type": "", - "demo": "tables-d-b\/upsert-rows.md", + "demo": "tablesdb\/upsert-rows.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/upsert-rows.md", "rate-limit": 120, "rate-time": 60, "rate-key": "ip:{ip},method:{method},url:{url},userId:{userId}", - "scope": "rows.write", + "scope": [ + "rows.write", + "documents.write" + ], "platforms": [ "console", "server" @@ -26678,7 +28096,7 @@ } ], "description": "Create or update Rows. Before using this route, you should create a new table resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/tablesdb#tablesDBCreateTable) API or directly from your database console.\n", - "demo": "tables-d-b\/upsert-rows.md" + "demo": "tablesdb\/upsert-rows.md" } ], "auth": { @@ -26757,15 +28175,18 @@ "x-appwrite": { "method": "updateRows", "group": "rows", - "weight": 415, + "weight": 422, "cookies": false, "type": "", - "demo": "tables-d-b\/update-rows.md", + "demo": "tablesdb\/update-rows.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/update-rows.md", "rate-limit": 120, "rate-time": 60, "rate-key": "ip:{ip},method:{method},url:{url},userId:{userId}", - "scope": "rows.write", + "scope": [ + "rows.write", + "documents.write" + ], "platforms": [ "console", "server" @@ -26850,15 +28271,18 @@ "x-appwrite": { "method": "deleteRows", "group": "rows", - "weight": 419, + "weight": 426, "cookies": false, "type": "", - "demo": "tables-d-b\/delete-rows.md", + "demo": "tablesdb\/delete-rows.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/delete-rows.md", "rate-limit": 60, "rate-time": 60, "rate-key": "ip:{ip},method:{method},url:{url},userId:{userId}", - "scope": "rows.write", + "scope": [ + "rows.write", + "documents.write" + ], "platforms": [ "console", "server" @@ -26937,15 +28361,18 @@ "x-appwrite": { "method": "getRow", "group": "rows", - "weight": 413, + "weight": 420, "cookies": false, "type": "", - "demo": "tables-d-b\/get-row.md", + "demo": "tablesdb\/get-row.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/get-row.md", "rate-limit": 0, "rate-time": 3600, "rate-key": "url:{url},ip:{ip}", - "scope": "rows.read", + "scope": [ + "rows.read", + "documents.read" + ], "platforms": [ "client", "server" @@ -27004,7 +28431,7 @@ ] }, "put": { - "summary": "Create or update a row", + "summary": "Upsert a row", "operationId": "tablesDBUpsertRow", "consumes": [ "application\/json" @@ -27028,15 +28455,18 @@ "x-appwrite": { "method": "upsertRow", "group": "rows", - "weight": 416, + "weight": 423, "cookies": false, "type": "", - "demo": "tables-d-b\/upsert-row.md", + "demo": "tablesdb\/upsert-row.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/upsert-row.md", "rate-limit": 120, "rate-time": 60, "rate-key": "ip:{ip},method:{method},url:{url},userId:{userId}", - "scope": "rows.write", + "scope": [ + "rows.write", + "documents.write" + ], "platforms": [ "client", "server" @@ -27070,7 +28500,7 @@ } ], "description": "Create or update a Row. Before using this route, you should create a new table resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/tablesdb#tablesDBCreateTable) API or directly from your database console.", - "demo": "tables-d-b\/upsert-row.md" + "demo": "tablesdb\/upsert-row.md" } ], "auth": { @@ -27162,15 +28592,18 @@ "x-appwrite": { "method": "updateRow", "group": "rows", - "weight": 414, + "weight": 421, "cookies": false, "type": "", - "demo": "tables-d-b\/update-row.md", + "demo": "tablesdb\/update-row.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/update-row.md", "rate-limit": 120, "rate-time": 60, "rate-key": "ip:{ip},method:{method},url:{url},userId:{userId}", - "scope": "rows.write", + "scope": [ + "rows.write", + "documents.write" + ], "platforms": [ "client", "server" @@ -27260,15 +28693,18 @@ "x-appwrite": { "method": "deleteRow", "group": "rows", - "weight": 418, + "weight": 425, "cookies": false, "type": "", - "demo": "tables-d-b\/delete-row.md", + "demo": "tablesdb\/delete-row.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/delete-row.md", "rate-limit": 60, "rate-time": 60, "rate-key": "ip:{ip},method:{method},url:{url},userId:{userId}", - "scope": "rows.write", + "scope": [ + "rows.write", + "documents.write" + ], "platforms": [ "client", "server" @@ -27341,15 +28777,18 @@ "x-appwrite": { "method": "decrementRowColumn", "group": "rows", - "weight": 423, + "weight": 430, "cookies": false, "type": "", - "demo": "tables-d-b\/decrement-row-column.md", + "demo": "tablesdb\/decrement-row-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/decrement-row-column.md", "rate-limit": 120, "rate-time": 60, "rate-key": "ip:{ip},method:{method},url:{url},userId:{userId}", - "scope": "rows.write", + "scope": [ + "rows.write", + "documents.write" + ], "platforms": [ "client", "server", @@ -27451,15 +28890,18 @@ "x-appwrite": { "method": "incrementRowColumn", "group": "rows", - "weight": 422, + "weight": 429, "cookies": false, "type": "", - "demo": "tables-d-b\/increment-row-column.md", + "demo": "tablesdb\/increment-row-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/tablesdb\/increment-row-column.md", "rate-limit": 120, "rate-time": 60, "rate-key": "ip:{ip},method:{method},url:{url},userId:{userId}", - "scope": "rows.write", + "scope": [ + "rows.write", + "documents.write" + ], "platforms": [ "client", "server", @@ -27559,7 +29001,7 @@ "x-appwrite": { "method": "list", "group": "teams", - "weight": 172, + "weight": 171, "cookies": false, "type": "", "demo": "teams\/list.md", @@ -27635,7 +29077,7 @@ "x-appwrite": { "method": "create", "group": "teams", - "weight": 171, + "weight": 170, "cookies": false, "type": "", "demo": "teams\/create.md", @@ -27726,7 +29168,7 @@ "x-appwrite": { "method": "get", "group": "teams", - "weight": 173, + "weight": 172, "cookies": false, "type": "", "demo": "teams\/get.md", @@ -27789,7 +29231,7 @@ "x-appwrite": { "method": "updateName", "group": "teams", - "weight": 175, + "weight": 174, "cookies": false, "type": "", "demo": "teams\/update-name.md", @@ -27865,7 +29307,7 @@ "x-appwrite": { "method": "delete", "group": "teams", - "weight": 177, + "weight": 176, "cookies": false, "type": "", "demo": "teams\/delete.md", @@ -27928,7 +29370,7 @@ "x-appwrite": { "method": "listMemberships", "group": "memberships", - "weight": 179, + "weight": 178, "cookies": false, "type": "", "demo": "teams\/list-memberships.md", @@ -28012,7 +29454,7 @@ "x-appwrite": { "method": "createMembership", "group": "memberships", - "weight": 178, + "weight": 177, "cookies": false, "type": "", "demo": "teams\/create-membership.md", @@ -28126,7 +29568,7 @@ "x-appwrite": { "method": "getMembership", "group": "memberships", - "weight": 180, + "weight": 179, "cookies": false, "type": "", "demo": "teams\/get-membership.md", @@ -28197,7 +29639,7 @@ "x-appwrite": { "method": "updateMembership", "group": "memberships", - "weight": 181, + "weight": 180, "cookies": false, "type": "", "demo": "teams\/update-membership.md", @@ -28284,7 +29726,7 @@ "x-appwrite": { "method": "deleteMembership", "group": "memberships", - "weight": 183, + "weight": 182, "cookies": false, "type": "", "demo": "teams\/delete-membership.md", @@ -28357,7 +29799,7 @@ "x-appwrite": { "method": "updateMembershipStatus", "group": "memberships", - "weight": 182, + "weight": 181, "cookies": false, "type": "", "demo": "teams\/update-membership-status.md", @@ -28452,7 +29894,7 @@ "x-appwrite": { "method": "getPrefs", "group": "teams", - "weight": 174, + "weight": 173, "cookies": false, "type": "", "demo": "teams\/get-prefs.md", @@ -28514,7 +29956,7 @@ "x-appwrite": { "method": "updatePrefs", "group": "teams", - "weight": 176, + "weight": 175, "cookies": false, "type": "", "demo": "teams\/update-prefs.md", @@ -28594,7 +30036,7 @@ "x-appwrite": { "method": "list", "group": "files", - "weight": 495, + "weight": 507, "cookies": false, "type": "", "demo": "tokens\/list.md", @@ -28675,7 +30117,7 @@ "x-appwrite": { "method": "createFileToken", "group": "files", - "weight": 493, + "weight": 505, "cookies": false, "type": "", "demo": "tokens\/create-file-token.md", @@ -28760,7 +30202,7 @@ "x-appwrite": { "method": "get", "group": "tokens", - "weight": 494, + "weight": 506, "cookies": false, "type": "", "demo": "tokens\/get.md", @@ -28821,7 +30263,7 @@ "x-appwrite": { "method": "update", "group": "tokens", - "weight": 496, + "weight": 508, "cookies": false, "type": "", "demo": "tokens\/update.md", @@ -28893,7 +30335,7 @@ "x-appwrite": { "method": "delete", "group": "tokens", - "weight": 497, + "weight": 509, "cookies": false, "type": "", "demo": "tokens\/delete.md", @@ -28954,7 +30396,7 @@ "x-appwrite": { "method": "list", "group": "users", - "weight": 194, + "weight": 193, "cookies": false, "type": "", "demo": "users\/list.md", @@ -29027,7 +30469,7 @@ "x-appwrite": { "method": "create", "group": "users", - "weight": 185, + "weight": 184, "cookies": false, "type": "", "demo": "users\/create.md", @@ -29123,10 +30565,10 @@ "x-appwrite": { "method": "createArgon2User", "group": "users", - "weight": 188, + "weight": 187, "cookies": false, "type": "", - "demo": "users\/create-argon2user.md", + "demo": "users\/create-argon-2-user.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/users\/create-argon2-user.md", "rate-limit": 0, "rate-time": 3600, @@ -29215,7 +30657,7 @@ "x-appwrite": { "method": "createBcryptUser", "group": "users", - "weight": 186, + "weight": 185, "cookies": false, "type": "", "demo": "users\/create-bcrypt-user.md", @@ -29305,7 +30747,7 @@ "x-appwrite": { "method": "listIdentities", "group": "identities", - "weight": 202, + "weight": 201, "cookies": false, "type": "", "demo": "users\/list-identities.md", @@ -29375,7 +30817,7 @@ "x-appwrite": { "method": "deleteIdentity", "group": "identities", - "weight": 225, + "weight": 224, "cookies": false, "type": "", "demo": "users\/delete-identity.md", @@ -29437,10 +30879,10 @@ "x-appwrite": { "method": "createMD5User", "group": "users", - "weight": 187, + "weight": 186, "cookies": false, "type": "", - "demo": "users\/create-m-d5user.md", + "demo": "users\/create-md-5-user.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/users\/create-md5-user.md", "rate-limit": 0, "rate-time": 3600, @@ -29529,10 +30971,10 @@ "x-appwrite": { "method": "createPHPassUser", "group": "users", - "weight": 190, + "weight": 189, "cookies": false, "type": "", - "demo": "users\/create-p-h-pass-user.md", + "demo": "users\/create-ph-pass-user.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/users\/create-phpass-user.md", "rate-limit": 0, "rate-time": 3600, @@ -29621,7 +31063,7 @@ "x-appwrite": { "method": "createScryptUser", "group": "users", - "weight": 191, + "weight": 190, "cookies": false, "type": "", "demo": "users\/create-scrypt-user.md", @@ -29748,7 +31190,7 @@ "x-appwrite": { "method": "createScryptModifiedUser", "group": "users", - "weight": 192, + "weight": 191, "cookies": false, "type": "", "demo": "users\/create-scrypt-modified-user.md", @@ -29861,10 +31303,10 @@ "x-appwrite": { "method": "createSHAUser", "group": "users", - "weight": 189, + "weight": 188, "cookies": false, "type": "", - "demo": "users\/create-s-h-a-user.md", + "demo": "users\/create-sha-user.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/users\/create-sha-user.md", "rate-limit": 0, "rate-time": 3600, @@ -29972,7 +31414,7 @@ "x-appwrite": { "method": "get", "group": "users", - "weight": 195, + "weight": 194, "cookies": false, "type": "", "demo": "users\/get.md", @@ -30027,7 +31469,7 @@ "x-appwrite": { "method": "delete", "group": "users", - "weight": 223, + "weight": 222, "cookies": false, "type": "", "demo": "users\/delete.md", @@ -30089,7 +31531,7 @@ "x-appwrite": { "method": "updateEmail", "group": "users", - "weight": 208, + "weight": 207, "cookies": false, "type": "", "demo": "users\/update-email.md", @@ -30169,10 +31611,10 @@ "x-appwrite": { "method": "createJWT", "group": "sessions", - "weight": 226, + "weight": 225, "cookies": false, "type": "", - "demo": "users\/create-j-w-t.md", + "demo": "users\/create-jwt.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/users\/create-user-jwt.md", "rate-limit": 0, "rate-time": 3600, @@ -30252,7 +31694,7 @@ "x-appwrite": { "method": "updateLabels", "group": "users", - "weight": 204, + "weight": 203, "cookies": false, "type": "", "demo": "users\/update-labels.md", @@ -30333,7 +31775,7 @@ "x-appwrite": { "method": "listLogs", "group": "logs", - "weight": 200, + "weight": 199, "cookies": false, "type": "", "demo": "users\/list-logs.md", @@ -30405,7 +31847,7 @@ "x-appwrite": { "method": "listMemberships", "group": "memberships", - "weight": 199, + "weight": 198, "cookies": false, "type": "", "demo": "users\/list-memberships.md", @@ -30488,7 +31930,7 @@ "x-appwrite": { "method": "updateMfa", "group": "users", - "weight": 213, + "weight": 212, "cookies": false, "type": "", "demo": "users\/update-mfa.md", @@ -30558,7 +32000,7 @@ } ], "description": "Enable or disable MFA on a user account.", - "demo": "users\/update-m-f-a.md" + "demo": "users\/update-mfa.md" } ], "auth": { @@ -30623,7 +32065,7 @@ "x-appwrite": { "method": "deleteMfaAuthenticator", "group": "mfa", - "weight": 218, + "weight": 217, "cookies": false, "type": "", "demo": "users\/delete-mfa-authenticator.md", @@ -30691,7 +32133,7 @@ } ], "description": "Delete an authenticator app.", - "demo": "users\/delete-m-f-a-authenticator.md" + "demo": "users\/delete-mfa-authenticator.md" } ], "auth": { @@ -30754,7 +32196,7 @@ "x-appwrite": { "method": "listMfaFactors", "group": "mfa", - "weight": 214, + "weight": 213, "cookies": false, "type": "", "demo": "users\/list-mfa-factors.md", @@ -30820,7 +32262,7 @@ } ], "description": "List the factors available on the account to be used as a MFA challange.", - "demo": "users\/list-m-f-a-factors.md" + "demo": "users\/list-mfa-factors.md" } ], "auth": { @@ -30870,7 +32312,7 @@ "x-appwrite": { "method": "getMfaRecoveryCodes", "group": "mfa", - "weight": 215, + "weight": 214, "cookies": false, "type": "", "demo": "users\/get-mfa-recovery-codes.md", @@ -30936,7 +32378,7 @@ } ], "description": "Get recovery codes that can be used as backup for MFA flow by User ID. Before getting codes, they must be generated using [createMfaRecoveryCodes](\/docs\/references\/cloud\/client-web\/account#createMfaRecoveryCodes) method.", - "demo": "users\/get-m-f-a-recovery-codes.md" + "demo": "users\/get-mfa-recovery-codes.md" } ], "auth": { @@ -30986,7 +32428,7 @@ "x-appwrite": { "method": "updateMfaRecoveryCodes", "group": "mfa", - "weight": 217, + "weight": 216, "cookies": false, "type": "", "demo": "users\/update-mfa-recovery-codes.md", @@ -31052,7 +32494,7 @@ } ], "description": "Regenerate recovery codes that can be used as backup for MFA flow by User ID. Before regenerating codes, they must be first generated using [createMfaRecoveryCodes](\/docs\/references\/cloud\/client-web\/account#createMfaRecoveryCodes) method.", - "demo": "users\/update-m-f-a-recovery-codes.md" + "demo": "users\/update-mfa-recovery-codes.md" } ], "auth": { @@ -31102,7 +32544,7 @@ "x-appwrite": { "method": "createMfaRecoveryCodes", "group": "mfa", - "weight": 216, + "weight": 215, "cookies": false, "type": "", "demo": "users\/create-mfa-recovery-codes.md", @@ -31168,7 +32610,7 @@ } ], "description": "Generate recovery codes used as backup for MFA flow for User ID. Recovery codes can be used as a MFA verification type in [createMfaChallenge](\/docs\/references\/cloud\/client-web\/account#createMfaChallenge) method by client SDK.", - "demo": "users\/create-m-f-a-recovery-codes.md" + "demo": "users\/create-mfa-recovery-codes.md" } ], "auth": { @@ -31220,7 +32662,7 @@ "x-appwrite": { "method": "updateName", "group": "users", - "weight": 206, + "weight": 205, "cookies": false, "type": "", "demo": "users\/update-name.md", @@ -31300,7 +32742,7 @@ "x-appwrite": { "method": "updatePassword", "group": "users", - "weight": 207, + "weight": 206, "cookies": false, "type": "", "demo": "users\/update-password.md", @@ -31380,7 +32822,7 @@ "x-appwrite": { "method": "updatePhone", "group": "users", - "weight": 209, + "weight": 208, "cookies": false, "type": "", "demo": "users\/update-phone.md", @@ -31458,7 +32900,7 @@ "x-appwrite": { "method": "getPrefs", "group": "users", - "weight": 196, + "weight": 195, "cookies": false, "type": "", "demo": "users\/get-prefs.md", @@ -31518,7 +32960,7 @@ "x-appwrite": { "method": "updatePrefs", "group": "users", - "weight": 211, + "weight": 210, "cookies": false, "type": "", "demo": "users\/update-prefs.md", @@ -31596,7 +33038,7 @@ "x-appwrite": { "method": "listSessions", "group": "sessions", - "weight": 198, + "weight": 197, "cookies": false, "type": "", "demo": "users\/list-sessions.md", @@ -31656,7 +33098,7 @@ "x-appwrite": { "method": "createSession", "group": "sessions", - "weight": 219, + "weight": 218, "cookies": false, "type": "", "demo": "users\/create-session.md", @@ -31711,7 +33153,7 @@ "x-appwrite": { "method": "deleteSessions", "group": "sessions", - "weight": 222, + "weight": 221, "cookies": false, "type": "", "demo": "users\/delete-sessions.md", @@ -31768,7 +33210,7 @@ "x-appwrite": { "method": "deleteSession", "group": "sessions", - "weight": 221, + "weight": 220, "cookies": false, "type": "", "demo": "users\/delete-session.md", @@ -31838,7 +33280,7 @@ "x-appwrite": { "method": "updateStatus", "group": "users", - "weight": 203, + "weight": 202, "cookies": false, "type": "", "demo": "users\/update-status.md", @@ -31916,7 +33358,7 @@ "x-appwrite": { "method": "listTargets", "group": "targets", - "weight": 201, + "weight": 200, "cookies": false, "type": "", "demo": "users\/list-targets.md", @@ -31989,7 +33431,7 @@ "x-appwrite": { "method": "createTarget", "group": "targets", - "weight": 193, + "weight": 192, "cookies": false, "type": "", "demo": "users\/create-target.md", @@ -32101,7 +33543,7 @@ "x-appwrite": { "method": "getTarget", "group": "targets", - "weight": 197, + "weight": 196, "cookies": false, "type": "", "demo": "users\/get-target.md", @@ -32170,7 +33612,7 @@ "x-appwrite": { "method": "updateTarget", "group": "targets", - "weight": 212, + "weight": 211, "cookies": false, "type": "", "demo": "users\/update-target.md", @@ -32261,7 +33703,7 @@ "x-appwrite": { "method": "deleteTarget", "group": "targets", - "weight": 224, + "weight": 223, "cookies": false, "type": "", "demo": "users\/delete-target.md", @@ -32332,7 +33774,7 @@ "x-appwrite": { "method": "createToken", "group": "sessions", - "weight": 220, + "weight": 219, "cookies": false, "type": "", "demo": "users\/create-token.md", @@ -32415,7 +33857,7 @@ "x-appwrite": { "method": "updateEmailVerification", "group": "users", - "weight": 210, + "weight": 209, "cookies": false, "type": "", "demo": "users\/update-email-verification.md", @@ -32495,7 +33937,7 @@ "x-appwrite": { "method": "updatePhoneVerification", "group": "users", - "weight": 205, + "weight": 204, "cookies": false, "type": "", "demo": "users\/update-phone-verification.md", @@ -33779,6 +35221,15 @@ { "$ref": "#\/definitions\/attributeRelationship" }, + { + "$ref": "#\/definitions\/attributePoint" + }, + { + "$ref": "#\/definitions\/attributeLine" + }, + { + "$ref": "#\/definitions\/attributePolygon" + }, { "$ref": "#\/definitions\/attributeString" } @@ -33865,6 +35316,15 @@ { "$ref": "#\/definitions\/attributeRelationship" }, + { + "$ref": "#\/definitions\/attributePoint" + }, + { + "$ref": "#\/definitions\/attributeLine" + }, + { + "$ref": "#\/definitions\/attributePolygon" + }, { "$ref": "#\/definitions\/attributeString" } @@ -34741,6 +36201,291 @@ "side": "parent|child" } }, + "attributePoint": { + "description": "AttributePoint", + "type": "object", + "properties": { + "key": { + "type": "string", + "description": "Attribute Key.", + "x-example": "fullName" + }, + "type": { + "type": "string", + "description": "Attribute type.", + "x-example": "string" + }, + "status": { + "type": "string", + "description": "Attribute status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`", + "x-example": "available" + }, + "error": { + "type": "string", + "description": "Error message. Displays error generated on failure of creating or deleting an attribute.", + "x-example": "string" + }, + "required": { + "type": "boolean", + "description": "Is attribute required?", + "x-example": true + }, + "array": { + "type": "boolean", + "description": "Is attribute an array?", + "x-example": false, + "x-nullable": true + }, + "$createdAt": { + "type": "string", + "description": "Attribute creation date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "$updatedAt": { + "type": "string", + "description": "Attribute update date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "default": { + "type": "array", + "description": "Default value for attribute when not provided. Cannot be set when attribute is required.", + "x-example": [ + 0, + 0 + ], + "x-nullable": true + } + }, + "required": [ + "key", + "type", + "status", + "error", + "required", + "$createdAt", + "$updatedAt" + ], + "example": { + "key": "fullName", + "type": "string", + "status": "available", + "error": "string", + "required": true, + "array": false, + "$createdAt": "2020-10-15T06:38:00.000+00:00", + "$updatedAt": "2020-10-15T06:38:00.000+00:00", + "default": [ + 0, + 0 + ] + } + }, + "attributeLine": { + "description": "AttributeLine", + "type": "object", + "properties": { + "key": { + "type": "string", + "description": "Attribute Key.", + "x-example": "fullName" + }, + "type": { + "type": "string", + "description": "Attribute type.", + "x-example": "string" + }, + "status": { + "type": "string", + "description": "Attribute status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`", + "x-example": "available" + }, + "error": { + "type": "string", + "description": "Error message. Displays error generated on failure of creating or deleting an attribute.", + "x-example": "string" + }, + "required": { + "type": "boolean", + "description": "Is attribute required?", + "x-example": true + }, + "array": { + "type": "boolean", + "description": "Is attribute an array?", + "x-example": false, + "x-nullable": true + }, + "$createdAt": { + "type": "string", + "description": "Attribute creation date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "$updatedAt": { + "type": "string", + "description": "Attribute update date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "default": { + "type": "array", + "description": "Default value for attribute when not provided. Cannot be set when attribute is required.", + "x-example": [ + [ + 0, + 0 + ], + [ + 1, + 1 + ] + ], + "x-nullable": true + } + }, + "required": [ + "key", + "type", + "status", + "error", + "required", + "$createdAt", + "$updatedAt" + ], + "example": { + "key": "fullName", + "type": "string", + "status": "available", + "error": "string", + "required": true, + "array": false, + "$createdAt": "2020-10-15T06:38:00.000+00:00", + "$updatedAt": "2020-10-15T06:38:00.000+00:00", + "default": [ + [ + 0, + 0 + ], + [ + 1, + 1 + ] + ] + } + }, + "attributePolygon": { + "description": "AttributePolygon", + "type": "object", + "properties": { + "key": { + "type": "string", + "description": "Attribute Key.", + "x-example": "fullName" + }, + "type": { + "type": "string", + "description": "Attribute type.", + "x-example": "string" + }, + "status": { + "type": "string", + "description": "Attribute status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`", + "x-example": "available" + }, + "error": { + "type": "string", + "description": "Error message. Displays error generated on failure of creating or deleting an attribute.", + "x-example": "string" + }, + "required": { + "type": "boolean", + "description": "Is attribute required?", + "x-example": true + }, + "array": { + "type": "boolean", + "description": "Is attribute an array?", + "x-example": false, + "x-nullable": true + }, + "$createdAt": { + "type": "string", + "description": "Attribute creation date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "$updatedAt": { + "type": "string", + "description": "Attribute update date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "default": { + "type": "array", + "description": "Default value for attribute when not provided. Cannot be set when attribute is required.", + "x-example": [ + [ + [ + 0, + 0 + ], + [ + 0, + 10 + ] + ], + [ + [ + 10, + 10 + ], + [ + 0, + 0 + ] + ] + ], + "x-nullable": true + } + }, + "required": [ + "key", + "type", + "status", + "error", + "required", + "$createdAt", + "$updatedAt" + ], + "example": { + "key": "fullName", + "type": "string", + "status": "available", + "error": "string", + "required": true, + "array": false, + "$createdAt": "2020-10-15T06:38:00.000+00:00", + "$updatedAt": "2020-10-15T06:38:00.000+00:00", + "default": [ + [ + [ + 0, + 0 + ], + [ + 0, + 10 + ] + ], + [ + [ + 10, + 10 + ], + [ + 0, + 0 + ] + ] + ] + } + }, "table": { "description": "Table", "type": "object", @@ -34822,6 +36567,15 @@ { "$ref": "#\/definitions\/columnRelationship" }, + { + "$ref": "#\/definitions\/columnPoint" + }, + { + "$ref": "#\/definitions\/columnLine" + }, + { + "$ref": "#\/definitions\/columnPolygon" + }, { "$ref": "#\/definitions\/columnString" } @@ -34908,6 +36662,15 @@ { "$ref": "#\/definitions\/columnRelationship" }, + { + "$ref": "#\/definitions\/columnPoint" + }, + { + "$ref": "#\/definitions\/columnLine" + }, + { + "$ref": "#\/definitions\/columnPolygon" + }, { "$ref": "#\/definitions\/columnString" } @@ -35784,6 +37547,291 @@ "side": "parent|child" } }, + "columnPoint": { + "description": "ColumnPoint", + "type": "object", + "properties": { + "key": { + "type": "string", + "description": "Column Key.", + "x-example": "fullName" + }, + "type": { + "type": "string", + "description": "Column type.", + "x-example": "string" + }, + "status": { + "type": "string", + "description": "Column status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`", + "x-example": "available" + }, + "error": { + "type": "string", + "description": "Error message. Displays error generated on failure of creating or deleting an column.", + "x-example": "string" + }, + "required": { + "type": "boolean", + "description": "Is column required?", + "x-example": true + }, + "array": { + "type": "boolean", + "description": "Is column an array?", + "x-example": false, + "x-nullable": true + }, + "$createdAt": { + "type": "string", + "description": "Column creation date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "$updatedAt": { + "type": "string", + "description": "Column update date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "default": { + "type": "array", + "description": "Default value for column when not provided. Cannot be set when column is required.", + "x-example": [ + 0, + 0 + ], + "x-nullable": true + } + }, + "required": [ + "key", + "type", + "status", + "error", + "required", + "$createdAt", + "$updatedAt" + ], + "example": { + "key": "fullName", + "type": "string", + "status": "available", + "error": "string", + "required": true, + "array": false, + "$createdAt": "2020-10-15T06:38:00.000+00:00", + "$updatedAt": "2020-10-15T06:38:00.000+00:00", + "default": [ + 0, + 0 + ] + } + }, + "columnLine": { + "description": "ColumnLine", + "type": "object", + "properties": { + "key": { + "type": "string", + "description": "Column Key.", + "x-example": "fullName" + }, + "type": { + "type": "string", + "description": "Column type.", + "x-example": "string" + }, + "status": { + "type": "string", + "description": "Column status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`", + "x-example": "available" + }, + "error": { + "type": "string", + "description": "Error message. Displays error generated on failure of creating or deleting an column.", + "x-example": "string" + }, + "required": { + "type": "boolean", + "description": "Is column required?", + "x-example": true + }, + "array": { + "type": "boolean", + "description": "Is column an array?", + "x-example": false, + "x-nullable": true + }, + "$createdAt": { + "type": "string", + "description": "Column creation date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "$updatedAt": { + "type": "string", + "description": "Column update date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "default": { + "type": "array", + "description": "Default value for column when not provided. Cannot be set when column is required.", + "x-example": [ + [ + 0, + 0 + ], + [ + 1, + 1 + ] + ], + "x-nullable": true + } + }, + "required": [ + "key", + "type", + "status", + "error", + "required", + "$createdAt", + "$updatedAt" + ], + "example": { + "key": "fullName", + "type": "string", + "status": "available", + "error": "string", + "required": true, + "array": false, + "$createdAt": "2020-10-15T06:38:00.000+00:00", + "$updatedAt": "2020-10-15T06:38:00.000+00:00", + "default": [ + [ + 0, + 0 + ], + [ + 1, + 1 + ] + ] + } + }, + "columnPolygon": { + "description": "ColumnPolygon", + "type": "object", + "properties": { + "key": { + "type": "string", + "description": "Column Key.", + "x-example": "fullName" + }, + "type": { + "type": "string", + "description": "Column type.", + "x-example": "string" + }, + "status": { + "type": "string", + "description": "Column status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`", + "x-example": "available" + }, + "error": { + "type": "string", + "description": "Error message. Displays error generated on failure of creating or deleting an column.", + "x-example": "string" + }, + "required": { + "type": "boolean", + "description": "Is column required?", + "x-example": true + }, + "array": { + "type": "boolean", + "description": "Is column an array?", + "x-example": false, + "x-nullable": true + }, + "$createdAt": { + "type": "string", + "description": "Column creation date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "$updatedAt": { + "type": "string", + "description": "Column update date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "default": { + "type": "array", + "description": "Default value for column when not provided. Cannot be set when column is required.", + "x-example": [ + [ + [ + 0, + 0 + ], + [ + 0, + 10 + ] + ], + [ + [ + 10, + 10 + ], + [ + 0, + 0 + ] + ] + ], + "x-nullable": true + } + }, + "required": [ + "key", + "type", + "status", + "error", + "required", + "$createdAt", + "$updatedAt" + ], + "example": { + "key": "fullName", + "type": "string", + "status": "available", + "error": "string", + "required": true, + "array": false, + "$createdAt": "2020-10-15T06:38:00.000+00:00", + "$updatedAt": "2020-10-15T06:38:00.000+00:00", + "default": [ + [ + [ + 0, + 0 + ], + [ + 0, + 10 + ] + ], + [ + [ + 10, + 10 + ], + [ + 0, + 0 + ] + ] + ] + } + }, "index": { "description": "Index", "type": "object", @@ -35977,17 +38025,20 @@ "type": "integer", "description": "Row automatically incrementing ID.", "x-example": 1, - "format": "int32" + "format": "int32", + "readOnly": true }, "$tableId": { "type": "string", "description": "Table ID.", - "x-example": "5e5ea5c15117e" + "x-example": "5e5ea5c15117e", + "readOnly": true }, "$databaseId": { "type": "string", "description": "Database ID.", - "x-example": "5e5ea5c15117e" + "x-example": "5e5ea5c15117e", + "readOnly": true }, "$createdAt": { "type": "string", diff --git a/app/controllers/api/account.php b/app/controllers/api/account.php index f46455dad6..e5618764c0 100644 --- a/app/controllers/api/account.php +++ b/app/controllers/api/account.php @@ -1540,22 +1540,22 @@ App::get('/v1/account/sessions/oauth2/:provider/redirect') */ $isVerified = $oauth2->isEmailVerified($accessToken); - $userWithEmail = $dbForProject->findOne('users', [ - Query::equal('email', [$email]), + $identity = $dbForProject->findOne('identities', [ + Query::equal('provider', [$provider]), + Query::equal('providerUid', [$oauth2ID]), ]); - if (!$userWithEmail->isEmpty()) { - $user->setAttributes($userWithEmail->getArrayCopy()); + + if (!$identity->isEmpty()) { + $user = $dbForProject->getDocument('users', $identity->getAttribute('userId')); } // If user is not found, check if there is an identity with the same provider user ID if ($user === false || $user->isEmpty()) { - $identity = $dbForProject->findOne('identities', [ - Query::equal('provider', [$provider]), - Query::equal('providerUid', [$oauth2ID]), + $userWithEmail = $dbForProject->findOne('users', [ + Query::equal('email', [$email]), ]); - - if (!$identity->isEmpty()) { - $user = $dbForProject->getDocument('users', $identity->getAttribute('userId')); + if (!$userWithEmail->isEmpty()) { + $user->setAttributes($userWithEmail->getArrayCopy()); } } @@ -2424,7 +2424,10 @@ App::put('/v1/account/sessions/magic-url') ) ], contentType: ContentType::JSON, - deprecated: true, + deprecated: new Deprecated( + since: '1.6.0', + replaceWith: 'account.createSession' + ), )) ->label('abuse-limit', 10) ->label('abuse-key', 'ip:{ip},userId:{param-userId}') @@ -2462,7 +2465,10 @@ App::put('/v1/account/sessions/phone') ) ], contentType: ContentType::JSON, - deprecated: true, + deprecated: new Deprecated( + since: '1.6.0', + replaceWith: 'account.createSession' + ), )) ->label('abuse-limit', 10) ->label('abuse-key', 'ip:{ip},userId:{param-userId}') @@ -3167,7 +3173,7 @@ App::patch('/v1/account/prefs') ], contentType: ContentType::JSON )) - ->param('prefs', [], new Assoc(), 'Prefs key-value JSON object.') + ->param('prefs', [], new Assoc(), 'Prefs key-value JSON object.', example: '{"language":"en","timezone":"UTC","darkTheme":true}') ->inject('requestTimestamp') ->inject('response') ->inject('user') diff --git a/app/controllers/api/avatars.php b/app/controllers/api/avatars.php index 785324739b..90364d997e 100644 --- a/app/controllers/api/avatars.php +++ b/app/controllers/api/avatars.php @@ -474,7 +474,7 @@ App::get('/v1/avatars/favicon') $sanitizer->minify(true); $cleanSvg = $sanitizer->sanitize($data); if ($cleanSvg === false) { - throw new \Exception('SVG sanitization failed'); + throw new Exception(Exception::AVATAR_SVG_SANITIZATION_FAILED); } $response ->addHeader('Cache-Control', 'private, max-age=2592000') // 30 days diff --git a/app/controllers/api/health.php b/app/controllers/api/health.php index fb084fddb3..988f061ed5 100644 --- a/app/controllers/api/health.php +++ b/app/controllers/api/health.php @@ -1,7 +1,19 @@ param('threshold', 5000, new Integer(true), 'Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 5000.', true) - ->inject('publisher') + ->inject('queueForWebhooks') ->inject('response') - ->action(function (int|string $threshold, Publisher $publisher, Response $response) { + ->action(function (int|string $threshold, Webhook $queueForWebhooks, Response $response) { $threshold = \intval($threshold); - $size = $publisher->getQueueSize(new Queue(Event::WEBHOOK_QUEUE_NAME)); + $size = $queueForWebhooks->getSize(); if ($size >= $threshold) { throw new Exception(Exception::HEALTH_QUEUE_SIZE_EXCEEDED, "Queue size threshold hit. Current size is {$size} and threshold is {$threshold}."); @@ -367,12 +377,12 @@ App::get('/v1/health/queue/logs') contentType: ContentType::JSON )) ->param('threshold', 5000, new Integer(true), 'Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 5000.', true) - ->inject('publisher') + ->inject('queueForAudits') ->inject('response') - ->action(function (int|string $threshold, Publisher $publisher, Response $response) { + ->action(function (int|string $threshold, Audit $queueForAudits, Response $response) { $threshold = \intval($threshold); - $size = $publisher->getQueueSize(new Queue(Event::AUDITS_QUEUE_NAME)); + $size = $queueForAudits->getSize(); if ($size >= $threshold) { throw new Exception(Exception::HEALTH_QUEUE_SIZE_EXCEEDED, "Queue size threshold hit. Current size is {$size} and threshold is {$threshold}."); @@ -457,12 +467,12 @@ App::get('/v1/health/queue/certificates') contentType: ContentType::JSON )) ->param('threshold', 5000, new Integer(true), 'Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 5000.', true) - ->inject('publisher') + ->inject('queueForCertificates') ->inject('response') - ->action(function (int|string $threshold, Publisher $publisher, Response $response) { + ->action(function (int|string $threshold, Certificate $queueForCertificates, Response $response) { $threshold = \intval($threshold); - $size = $publisher->getQueueSize(new Queue(Event::CERTIFICATES_QUEUE_NAME)); + $size = $queueForCertificates->getSize(); if ($size >= $threshold) { throw new Exception(Exception::HEALTH_QUEUE_SIZE_EXCEEDED, "Queue size threshold hit. Current size is {$size} and threshold is {$threshold}."); @@ -490,12 +500,12 @@ App::get('/v1/health/queue/builds') contentType: ContentType::JSON )) ->param('threshold', 5000, new Integer(true), 'Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 5000.', true) - ->inject('publisher') + ->inject('queueForBuilds') ->inject('response') - ->action(function (int|string $threshold, Publisher $publisher, Response $response) { + ->action(function (int|string $threshold, Build $queueForBuilds, Response $response) { $threshold = \intval($threshold); - $size = $publisher->getQueueSize(new Queue(Event::BUILDS_QUEUE_NAME)); + $size = $queueForBuilds->getSize(); if ($size >= $threshold) { throw new Exception(Exception::HEALTH_QUEUE_SIZE_EXCEEDED, "Queue size threshold hit. Current size is {$size} and threshold is {$threshold}."); @@ -524,11 +534,11 @@ App::get('/v1/health/queue/databases') )) ->param('name', 'database_db_main', new Text(256), 'Queue name for which to check the queue size', true) ->param('threshold', 5000, new Integer(true), 'Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 5000.', true) - ->inject('publisherDatabases') + ->inject('queueForDatabase') ->inject('response') - ->action(function (string $name, int|string $threshold, Publisher $publisherDatabases, Response $response) { + ->action(function (string $name, int|string $threshold, Database $queueForDatabase, Response $response) { $threshold = \intval($threshold); - $size = $publisherDatabases->getQueueSize(new Queue($name)); + $size = $queueForDatabase->getSize(); if ($size >= $threshold) { throw new Exception(Exception::HEALTH_QUEUE_SIZE_EXCEEDED, "Queue size threshold hit. Current size is {$size} and threshold is {$threshold}."); @@ -556,12 +566,12 @@ App::get('/v1/health/queue/deletes') contentType: ContentType::JSON )) ->param('threshold', 5000, new Integer(true), 'Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 5000.', true) - ->inject('publisherDeletes') + ->inject('queueForDeletes') ->inject('response') - ->action(function (int|string $threshold, Publisher $publisherDeletes, Response $response) { + ->action(function (int|string $threshold, Delete $queueForDeletes, Response $response) { $threshold = \intval($threshold); - $size = $publisherDeletes->getQueueSize(new Queue(Event::DELETE_QUEUE_NAME)); + $size = $queueForDeletes->getSize(); if ($size >= $threshold) { throw new Exception(Exception::HEALTH_QUEUE_SIZE_EXCEEDED, "Queue size threshold hit. Current size is {$size} and threshold is {$threshold}."); @@ -589,12 +599,12 @@ App::get('/v1/health/queue/mails') contentType: ContentType::JSON )) ->param('threshold', 5000, new Integer(true), 'Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 5000.', true) - ->inject('publisherMails') + ->inject('queueForMails') ->inject('response') - ->action(function (int|string $threshold, Publisher $publisherMails, Response $response) { + ->action(function (int|string $threshold, Mail $queueForMails, Response $response) { $threshold = \intval($threshold); - $size = $publisherMails->getQueueSize(new Queue(Event::MAILS_QUEUE_NAME)); + $size = $queueForMails->getSize(); if ($size >= $threshold) { throw new Exception(Exception::HEALTH_QUEUE_SIZE_EXCEEDED, "Queue size threshold hit. Current size is {$size} and threshold is {$threshold}."); @@ -622,12 +632,12 @@ App::get('/v1/health/queue/messaging') contentType: ContentType::JSON )) ->param('threshold', 5000, new Integer(true), 'Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 5000.', true) - ->inject('publisherMessaging') + ->inject('queueForMessaging') ->inject('response') - ->action(function (int|string $threshold, Publisher $publisherMessaging, Response $response) { + ->action(function (int|string $threshold, Messaging $queueForMessaging, Response $response) { $threshold = \intval($threshold); - $size = $publisherMessaging->getQueueSize(new Queue(Event::MESSAGING_QUEUE_NAME)); + $size = $queueForMessaging->getSize(); if ($size >= $threshold) { throw new Exception(Exception::HEALTH_QUEUE_SIZE_EXCEEDED, "Queue size threshold hit. Current size is {$size} and threshold is {$threshold}."); @@ -655,12 +665,12 @@ App::get('/v1/health/queue/migrations') contentType: ContentType::JSON )) ->param('threshold', 5000, new Integer(true), 'Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 5000.', true) - ->inject('publisherMigrations') + ->inject('queueForMigrations') ->inject('response') - ->action(function (int|string $threshold, Publisher $publisherMigrations, Response $response) { + ->action(function (int|string $threshold, Migration $queueForMigrations, Response $response) { $threshold = \intval($threshold); - $size = $publisherMigrations->getQueueSize(new Queue(Event::MIGRATIONS_QUEUE_NAME)); + $size = $queueForMigrations->getSize(); if ($size >= $threshold) { throw new Exception(Exception::HEALTH_QUEUE_SIZE_EXCEEDED, "Queue size threshold hit. Current size is {$size} and threshold is {$threshold}."); @@ -688,12 +698,12 @@ App::get('/v1/health/queue/functions') contentType: ContentType::JSON )) ->param('threshold', 5000, new Integer(true), 'Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 5000.', true) - ->inject('publisherFunctions') + ->inject('queueForFunctions') ->inject('response') - ->action(function (int|string $threshold, Publisher $publisherFunctions, Response $response) { + ->action(function (int|string $threshold, Func $queueForFunctions, Response $response) { $threshold = \intval($threshold); - $size = $publisherFunctions->getQueueSize(new Queue(Event::FUNCTIONS_QUEUE_NAME)); + $size = $queueForFunctions->getSize(); if ($size >= $threshold) { throw new Exception(Exception::HEALTH_QUEUE_SIZE_EXCEEDED, "Queue size threshold hit. Current size is {$size} and threshold is {$threshold}."); @@ -703,7 +713,7 @@ App::get('/v1/health/queue/functions') }); App::get('/v1/health/queue/stats-resources') - ->desc('Get stats resources queue') + ->desc('Get stats resources queue') ->groups(['api', 'health']) ->label('scope', 'health.read') ->label('sdk', new Method( @@ -721,12 +731,12 @@ App::get('/v1/health/queue/stats-resources') contentType: ContentType::JSON )) ->param('threshold', 5000, new Integer(true), 'Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 5000.', true) - ->inject('publisher') + ->inject('queueForStatsResources') ->inject('response') - ->action(function (int|string $threshold, Publisher $publisher, Response $response) { + ->action(function (int|string $threshold, StatsResources $queueForStatsResources, Response $response) { $threshold = \intval($threshold); - $size = $publisher->getQueueSize(new Queue(Event::STATS_RESOURCES_QUEUE_NAME)); + $size = $queueForStatsResources->getSize(); if ($size >= $threshold) { throw new Exception(Exception::HEALTH_QUEUE_SIZE_EXCEEDED, "Queue size threshold hit. Current size is {$size} and threshold is {$threshold}."); @@ -754,12 +764,12 @@ App::get('/v1/health/queue/stats-usage') contentType: ContentType::JSON )) ->param('threshold', 5000, new Integer(true), 'Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 5000.', true) - ->inject('publisher') + ->inject('queueForStatsUsage') ->inject('response') - ->action(function (int|string $threshold, Publisher $publisher, Response $response) { + ->action(function (int|string $threshold, StatsUsage $queueForStatsUsage, Response $response) { $threshold = \intval($threshold); - $size = $publisher->getQueueSize(new Queue(Event::STATS_USAGE_QUEUE_NAME)); + $size = $queueForStatsUsage->getSize(); if ($size >= $threshold) { throw new Exception(Exception::HEALTH_QUEUE_SIZE_EXCEEDED, "Queue size threshold hit. Current size is {$size} and threshold is {$threshold}."); @@ -950,11 +960,53 @@ App::get('/v1/health/queue/failed/:name') ]), 'The name of the queue') ->param('threshold', 5000, new Integer(true), 'Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 5000.', true) ->inject('response') - ->inject('publisher') - ->action(function (string $name, int|string $threshold, Response $response, Publisher $publisher) { + ->inject('queueForDatabase') + ->inject('queueForDeletes') + ->inject('queueForAudits') + ->inject('queueForMails') + ->inject('queueForFunctions') + ->inject('queueForStatsResources') + ->inject('queueForStatsUsage') + ->inject('queueForWebhooks') + ->inject('queueForCertificates') + ->inject('queueForBuilds') + ->inject('queueForMessaging') + ->inject('queueForMigrations') + ->action(function ( + string $name, + int|string $threshold, + Response $response, + Database $queueForDatabase, + Delete $queueForDeletes, + Audit $queueForAudits, + Mail $queueForMails, + Func $queueForFunctions, + StatsResources $queueForStatsResources, + StatsUsage $queueForStatsUsage, + Webhook $queueForWebhooks, + Certificate $queueForCertificates, + Build $queueForBuilds, + Messaging $queueForMessaging, + Migration $queueForMigrations + ) { $threshold = \intval($threshold); - $failed = $publisher->getQueueSize(new Queue($name), failedJobs: true); + /** @var Event $queue */ + $queue = match ($name) { + Event::DATABASE_QUEUE_NAME => $queueForDatabase, + Event::DELETE_QUEUE_NAME => $queueForDeletes, + Event::AUDITS_QUEUE_NAME => $queueForAudits, + Event::MAILS_QUEUE_NAME => $queueForMails, + Event::FUNCTIONS_QUEUE_NAME => $queueForFunctions, + Event::STATS_RESOURCES_QUEUE_NAME => $queueForStatsResources, + Event::STATS_USAGE_QUEUE_NAME => $queueForStatsUsage, + Event::WEBHOOK_QUEUE_NAME => $queueForWebhooks, + Event::CERTIFICATES_QUEUE_NAME => $queueForCertificates, + Event::BUILDS_QUEUE_NAME => $queueForBuilds, + Event::MESSAGING_QUEUE_NAME => $queueForMessaging, + Event::MIGRATIONS_QUEUE_NAME => $queueForMigrations, + }; + $failed = $queue->getSize(failed: true); if ($failed >= $threshold) { throw new Exception(Exception::HEALTH_QUEUE_SIZE_EXCEEDED, "Queue failed jobs threshold hit. Current size is {$failed} and threshold is {$threshold}."); diff --git a/app/controllers/api/messaging.php b/app/controllers/api/messaging.php index abc1f9bc52..d22c5cb2c2 100644 --- a/app/controllers/api/messaging.php +++ b/app/controllers/api/messaging.php @@ -3011,7 +3011,7 @@ App::post('/v1/messaging/messages/email') ->inject('project') ->inject('queueForMessaging') ->inject('response') - ->action(function (string $messageId, string $subject, string $content, array $topics, array $users, array $targets, array $cc, array $bcc, array $attachments, bool $draft, bool $html, ?string $scheduledAt, Event $queueForEvents, Database $dbForProject, Database $dbForPlatform, Document $project, Messaging $queueForMessaging, Response $response) { + ->action(function (string $messageId, string $subject, string $content, ?array $topics, ?array $users, ?array $targets, ?array $cc, ?array $bcc, ?array $attachments, bool $draft, bool $html, ?string $scheduledAt, Event $queueForEvents, Database $dbForProject, Database $dbForPlatform, Document $project, Messaging $queueForMessaging, Response $response) { $messageId = $messageId == 'unique()' ? ID::unique() : $messageId; @@ -3184,7 +3184,7 @@ App::post('/v1/messaging/messages/sms') ->inject('project') ->inject('queueForMessaging') ->inject('response') - ->action(function (string $messageId, string $content, array $topics, array $users, array $targets, bool $draft, ?string $scheduledAt, Event $queueForEvents, Database $dbForProject, Database $dbForPlatform, Document $project, Messaging $queueForMessaging, Response $response) { + ->action(function (string $messageId, string $content, ?array $topics, ?array $users, ?array $targets, bool $draft, ?string $scheduledAt, Event $queueForEvents, Database $dbForProject, Database $dbForPlatform, Document $project, Messaging $queueForMessaging, Response $response) { $messageId = $messageId == 'unique()' ? ID::unique() : $messageId; @@ -3319,7 +3319,7 @@ App::post('/v1/messaging/messages/push') ->inject('project') ->inject('queueForMessaging') ->inject('response') - ->action(function (string $messageId, string $title, string $body, array $topics, array $users, array $targets, ?array $data, string $action, string $image, string $icon, string $sound, string $color, string $tag, int $badge, bool $draft, ?string $scheduledAt, bool $contentAvailable, bool $critical, string $priority, Event $queueForEvents, Database $dbForProject, Database $dbForPlatform, Document $project, Messaging $queueForMessaging, Response $response) { + ->action(function (string $messageId, string $title, string $body, ?array $topics, ?array $users, ?array $targets, ?array $data, string $action, string $image, string $icon, string $sound, string $color, string $tag, int $badge, bool $draft, ?string $scheduledAt, bool $contentAvailable, bool $critical, string $priority, Event $queueForEvents, Database $dbForProject, Database $dbForPlatform, Document $project, Messaging $queueForMessaging, Response $response) { $messageId = $messageId == 'unique()' ? ID::unique() : $messageId; diff --git a/app/controllers/api/projects.php b/app/controllers/api/projects.php index 4f34156115..ea3a00dcb6 100644 --- a/app/controllers/api/projects.php +++ b/app/controllers/api/projects.php @@ -30,14 +30,11 @@ use Utopia\Database\Database; use Utopia\Database\DateTime; use Utopia\Database\Document; use Utopia\Database\Exception\Duplicate; -use Utopia\Database\Exception\Order as OrderException; -use Utopia\Database\Exception\Query as QueryException; use Utopia\Database\Helpers\ID; use Utopia\Database\Helpers\Permission; use Utopia\Database\Helpers\Role; use Utopia\Database\Query; use Utopia\Database\Validator\Datetime as DatetimeValidator; -use Utopia\Database\Validator\Query\Cursor; use Utopia\Database\Validator\UID; use Utopia\Domains\Validator\PublicDomain; use Utopia\DSN\DSN; @@ -304,77 +301,6 @@ App::post('/v1/projects') ->dynamic($project, Response::MODEL_PROJECT); }); -App::get('/v1/projects') - ->desc('List projects') - ->groups(['api', 'projects']) - ->label('scope', 'projects.read') - ->label('sdk', new Method( - namespace: 'projects', - group: 'projects', - name: 'list', - description: '/docs/references/projects/list.md', - auth: [AuthType::ADMIN], - responses: [ - new SDKResponse( - code: Response::STATUS_CODE_OK, - model: Response::MODEL_PROJECT_LIST, - ) - ] - )) - ->param('queries', [], new Projects(), 'Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Maximum of ' . APP_LIMIT_ARRAY_PARAMS_SIZE . ' queries are allowed, each ' . APP_LIMIT_ARRAY_ELEMENT_SIZE . ' characters long. You may filter on the following attributes: ' . implode(', ', Projects::ALLOWED_ATTRIBUTES), true) - ->param('search', '', new Text(256), 'Search term to filter your list results. Max length: 256 chars.', true) - ->inject('response') - ->inject('dbForPlatform') - ->action(function (array $queries, string $search, Response $response, Database $dbForPlatform) { - - try { - $queries = Query::parseQueries($queries); - } catch (QueryException $e) { - throw new Exception(Exception::GENERAL_QUERY_INVALID, $e->getMessage()); - } - - if (!empty($search)) { - $queries[] = Query::search('search', $search); - } - - /** - * Get cursor document if there was a cursor query, we use array_filter and reset for reference $cursor to $queries - */ - $cursor = \array_filter($queries, function ($query) { - return \in_array($query->getMethod(), [Query::TYPE_CURSOR_AFTER, Query::TYPE_CURSOR_BEFORE]); - }); - $cursor = reset($cursor); - if ($cursor) { - /** @var Query $cursor */ - - $validator = new Cursor(); - if (!$validator->isValid($cursor)) { - throw new Exception(Exception::GENERAL_QUERY_INVALID, $validator->getDescription()); - } - - $projectId = $cursor->getValue(); - $cursorDocument = $dbForPlatform->getDocument('projects', $projectId); - - if ($cursorDocument->isEmpty()) { - throw new Exception(Exception::GENERAL_CURSOR_NOT_FOUND, "Project '{$projectId}' for the 'cursor' value not found."); - } - - $cursor->setValue($cursorDocument); - } - - $filterQueries = Query::groupByType($queries)['filters']; - try { - $projects = $dbForPlatform->find('projects', $queries); - $total = $dbForPlatform->count('projects', $filterQueries, APP_LIMIT_COUNT); - } catch (OrderException $e) { - throw new Exception(Exception::DATABASE_QUERY_ORDER_NULL, "The order attribute '{$e->getAttribute()}' had a null value. Cursor pagination requires all documents order attribute values are non-null."); - } - $response->dynamic(new Document([ - 'projects' => $projects, - 'total' => $total, - ]), Response::MODEL_PROJECT_LIST); - }); - App::get('/v1/projects/:projectId') ->desc('Get project') ->groups(['api', 'projects']) diff --git a/app/controllers/api/proxy.php b/app/controllers/api/proxy.php deleted file mode 100644 index 4a64448335..0000000000 --- a/app/controllers/api/proxy.php +++ /dev/null @@ -1,318 +0,0 @@ -groups(['api', 'proxy']) - ->desc('List rules') - ->label('scope', 'rules.read') - ->label('sdk', new Method( - namespace: 'proxy', - group: null, - name: 'listRules', - description: '/docs/references/proxy/list-rules.md', - auth: [AuthType::ADMIN], - responses: [ - new SDKResponse( - code: Response::STATUS_CODE_OK, - model: Response::MODEL_PROXY_RULE_LIST, - ) - ] - )) - ->param('queries', [], new Rules(), 'Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/databases#querying-documents). Maximum of ' . APP_LIMIT_ARRAY_PARAMS_SIZE . ' queries are allowed, each ' . APP_LIMIT_ARRAY_ELEMENT_SIZE . ' characters long. You may filter on the following attributes: ' . implode(', ', Rules::ALLOWED_ATTRIBUTES), true) - ->param('search', '', new Text(256), 'Search term to filter your list results. Max length: 256 chars.', true) - ->inject('response') - ->inject('project') - ->inject('dbForPlatform') - ->action(function (array $queries, string $search, Response $response, Document $project, Database $dbForPlatform) { - try { - $queries = Query::parseQueries($queries); - } catch (QueryException $e) { - throw new Exception(Exception::GENERAL_QUERY_INVALID, $e->getMessage()); - } - - if (!empty($search)) { - $queries[] = Query::search('search', $search); - } - - $queries[] = Query::equal('projectInternalId', [$project->getSequence()]); - - /** - * Get cursor document if there was a cursor query, we use array_filter and reset for reference $cursor to $queries - */ - $cursor = \array_filter($queries, function ($query) { - return \in_array($query->getMethod(), [Query::TYPE_CURSOR_AFTER, Query::TYPE_CURSOR_BEFORE]); - }); - $cursor = reset($cursor); - if ($cursor) { - /** @var Query $cursor */ - - $validator = new Cursor(); - if (!$validator->isValid($cursor)) { - throw new Exception(Exception::GENERAL_QUERY_INVALID, $validator->getDescription()); - } - - $ruleId = $cursor->getValue(); - $cursorDocument = $dbForPlatform->getDocument('rules', $ruleId); - - if ($cursorDocument->isEmpty()) { - throw new Exception(Exception::GENERAL_CURSOR_NOT_FOUND, "Rule '{$ruleId}' for the 'cursor' value not found."); - } - - $cursor->setValue($cursorDocument); - } - - $filterQueries = Query::groupByType($queries)['filters']; - - $rules = $dbForPlatform->find('rules', $queries); - foreach ($rules as $rule) { - $certificate = $dbForPlatform->getDocument('certificates', $rule->getAttribute('certificateId', '')); - $rule->setAttribute('logs', $certificate->getAttribute('logs', '')); - $rule->setAttribute('renewAt', $certificate->getAttribute('renewDate', '')); - } - - $response->dynamic(new Document([ - 'rules' => $rules, - 'total' => $dbForPlatform->count('rules', $filterQueries, APP_LIMIT_COUNT), - ]), Response::MODEL_PROXY_RULE_LIST); - }); - -App::get('/v1/proxy/rules/:ruleId') - ->groups(['api', 'proxy']) - ->desc('Get rule') - ->label('scope', 'rules.read') - ->label('sdk', new Method( - namespace: 'proxy', - group: null, - name: 'getRule', - description: '/docs/references/proxy/get-rule.md', - auth: [AuthType::ADMIN], - responses: [ - new SDKResponse( - code: Response::STATUS_CODE_OK, - model: Response::MODEL_PROXY_RULE, - ) - ] - )) - ->param('ruleId', '', new UID(), 'Rule ID.') - ->inject('response') - ->inject('project') - ->inject('dbForPlatform') - ->action(function (string $ruleId, Response $response, Document $project, Database $dbForPlatform) { - $rule = $dbForPlatform->getDocument('rules', $ruleId); - - if ($rule->isEmpty() || $rule->getAttribute('projectInternalId') !== $project->getSequence()) { - throw new Exception(Exception::RULE_NOT_FOUND); - } - - $certificate = $dbForPlatform->getDocument('certificates', $rule->getAttribute('certificateId', '')); - $rule->setAttribute('logs', $certificate->getAttribute('logs', '')); - $rule->setAttribute('renewAt', $certificate->getAttribute('renewDate', '')); - - $response->dynamic($rule, Response::MODEL_PROXY_RULE); - }); - -App::delete('/v1/proxy/rules/:ruleId') - ->groups(['api', 'proxy']) - ->desc('Delete rule') - ->label('scope', 'rules.write') - ->label('event', 'rules.[ruleId].delete') - ->label('audits.event', 'rules.delete') - ->label('audits.resource', 'rule/{request.ruleId}') - ->label('sdk', new Method( - namespace: 'proxy', - group: null, - name: 'deleteRule', - description: '/docs/references/proxy/delete-rule.md', - auth: [AuthType::ADMIN], - responses: [ - new SDKResponse( - code: Response::STATUS_CODE_NOCONTENT, - model: Response::MODEL_NONE, - ) - ], - contentType: ContentType::NONE - )) - ->param('ruleId', '', new UID(), 'Rule ID.') - ->inject('response') - ->inject('project') - ->inject('dbForPlatform') - ->inject('queueForDeletes') - ->inject('queueForEvents') - ->action(function (string $ruleId, Response $response, Document $project, Database $dbForPlatform, Delete $queueForDeletes, Event $queueForEvents) { - $rule = $dbForPlatform->getDocument('rules', $ruleId); - - if ($rule->isEmpty() || $rule->getAttribute('projectInternalId') !== $project->getSequence()) { - throw new Exception(Exception::RULE_NOT_FOUND); - } - - $dbForPlatform->deleteDocument('rules', $rule->getId()); - - $queueForDeletes - ->setType(DELETE_TYPE_DOCUMENT) - ->setDocument($rule); - - $queueForEvents->setParam('ruleId', $rule->getId()); - - $response->noContent(); - }); - -App::patch('/v1/proxy/rules/:ruleId/verification') - ->desc('Update rule verification status') - ->groups(['api', 'proxy']) - ->label('scope', 'rules.write') - ->label('event', 'rules.[ruleId].update') - ->label('audits.event', 'rule.update') - ->label('audits.resource', 'rule/{response.$id}') - ->label('sdk', new Method( - namespace: 'proxy', - group: null, - name: 'updateRuleVerification', - description: '/docs/references/proxy/update-rule-verification.md', - auth: [AuthType::ADMIN], - responses: [ - new SDKResponse( - code: Response::STATUS_CODE_OK, - model: Response::MODEL_PROXY_RULE, - ) - ] - )) - ->param('ruleId', '', new UID(), 'Rule ID.') - ->inject('response') - ->inject('queueForCertificates') - ->inject('queueForEvents') - ->inject('project') - ->inject('dbForPlatform') - ->inject('log') - ->action(function (string $ruleId, Response $response, Certificate $queueForCertificates, Event $queueForEvents, Document $project, Database $dbForPlatform, Log $log) { - $rule = $dbForPlatform->getDocument('rules', $ruleId); - - if ($rule->isEmpty() || $rule->getAttribute('projectInternalId') !== $project->getSequence()) { - throw new Exception(Exception::RULE_NOT_FOUND); - } - - $targetCNAME = null; - switch ($rule->getAttribute('type', '')) { - case 'api': - // For example: fra.cloud.appwrite.io - $targetCNAME = new Domain(System::getEnv('_APP_DOMAIN_TARGET_CNAME', '')); - break; - case 'redirect': - // For example: appwrite.network - $targetCNAME = new Domain(System::getEnv('_APP_DOMAIN_SITES', '')); - break; - case 'deployment': - switch ($rule->getAttribute('deploymentResourceType', '')) { - case 'function': - // For example: fra.appwrite.run - $targetCNAME = new Domain(System::getEnv('_APP_DOMAIN_FUNCTIONS', '')); - break; - case 'site': - // For example: appwrite.network - $targetCNAME = new Domain(System::getEnv('_APP_DOMAIN_SITES', '')); - break; - default: - break; - } - // no break - default: - break; - } - - $validators = []; - - if (!is_null($targetCNAME)) { - if ($targetCNAME->isKnown() && !$targetCNAME->isTest()) { - $validators[] = new DNS($targetCNAME->get(), DNS::RECORD_CNAME); - } - } - - if ((new IP(IP::V4))->isValid(System::getEnv('_APP_DOMAIN_TARGET_A', ''))) { - $validators[] = new DNS(System::getEnv('_APP_DOMAIN_TARGET_A', ''), DNS::RECORD_A); - } - if ((new IP(IP::V6))->isValid(System::getEnv('_APP_DOMAIN_TARGET_AAAA', ''))) { - $validators[] = new DNS(System::getEnv('_APP_DOMAIN_TARGET_AAAA', ''), DNS::RECORD_AAAA); - } - - if (empty($validators)) { - throw new Exception(Exception::GENERAL_SERVER_ERROR, 'At least one of domain targets environment variable must be configured.'); - } - - if ($rule->getAttribute('verification') === true) { - return $response->dynamic($rule, Response::MODEL_PROXY_RULE); - } - - $validator = new AnyOf($validators, AnyOf::TYPE_STRING); - $domain = new Domain($rule->getAttribute('domain', '')); - - $validationStart = \microtime(true); - if (!$validator->isValid($domain->get())) { - $log->addExtra('dnsTiming', \strval(\microtime(true) - $validationStart)); - $log->addTag('dnsDomain', $domain->get()); - - $errors = []; - foreach ($validators as $validator) { - if (!empty($validator->getLogs())) { - $errors[] = $validator->getLogs(); - } - } - - $error = \implode("\n", $errors); - $log->addExtra('dnsResponse', \is_array($error) ? \json_encode($error) : \strval($error)); - - throw new Exception(Exception::RULE_VERIFICATION_FAILED); - } - - // Ensure CAA won't block certificate issuance - if (!empty(System::getEnv('_APP_DOMAIN_TARGET_CAA', ''))) { - $validationStart = \microtime(true); - $validator = new DNS(System::getEnv('_APP_DOMAIN_TARGET_CAA', ''), DNS::RECORD_CAA); - if (!$validator->isValid($domain->get())) { - $log->addExtra('dnsTimingCaa', \strval(\microtime(true) - $validationStart)); - $log->addTag('dnsDomain', $domain->get()); - $error = $validator->getDescription(); - $log->addExtra('dnsResponse', \is_array($error) ? \json_encode($error) : \strval($error)); - throw new Exception(Exception::RULE_VERIFICATION_FAILED, 'Domain verification failed because CAA records do not allow Appwrite\'s certificate issuer.'); - } - } - - $dbForPlatform->updateDocument('rules', $rule->getId(), $rule->setAttribute('status', 'verifying')); - - // Issue a TLS certificate when domain is verified - $queueForCertificates - ->setDomain(new Document([ - 'domain' => $rule->getAttribute('domain'), - 'domainType' => $rule->getAttribute('deploymentResourceType', $rule->getAttribute('type')), - ])) - ->trigger(); - - $queueForEvents->setParam('ruleId', $rule->getId()); - - $certificate = $dbForPlatform->getDocument('certificates', $rule->getAttribute('certificateId', '')); - $rule->setAttribute('logs', $certificate->getAttribute('logs', '')); - - $response->dynamic($rule, Response::MODEL_PROXY_RULE); - }); diff --git a/app/controllers/api/teams.php b/app/controllers/api/teams.php index fe411d53ab..7398e451b5 100644 --- a/app/controllers/api/teams.php +++ b/app/controllers/api/teams.php @@ -36,6 +36,7 @@ use Utopia\Database\Exception\Authorization as AuthorizationException; use Utopia\Database\Exception\Duplicate; use Utopia\Database\Exception\Order as OrderException; use Utopia\Database\Exception\Query as QueryException; +use Utopia\Database\Exception\Structure as StructureException; use Utopia\Database\Helpers\ID; use Utopia\Database\Helpers\Permission; use Utopia\Database\Helpers\Role; @@ -282,7 +283,13 @@ App::get('/v1/teams/:teamId/prefs') $prefs = $team->getAttribute('prefs', []); - $response->dynamic(new Document($prefs), Response::MODEL_PREFERENCES); + try { + $prefs = new Document($prefs); + } catch (StructureException $e) { + throw new Exception(Exception::DOCUMENT_INVALID_STRUCTURE, $e->getMessage()); + } + + $response->dynamic($prefs, Response::MODEL_PREFERENCES); }); App::put('/v1/teams/:teamId') @@ -357,6 +364,11 @@ App::put('/v1/teams/:teamId/prefs') ->inject('dbForProject') ->inject('queueForEvents') ->action(function (string $teamId, array $prefs, Response $response, Database $dbForProject, Event $queueForEvents) { + try { + $prefs = new Document($prefs); + } catch (StructureException $e) { + throw new Exception(Exception::DOCUMENT_INVALID_STRUCTURE, $e->getMessage()); + } $team = $dbForProject->getDocument('teams', $teamId); @@ -364,11 +376,13 @@ App::put('/v1/teams/:teamId/prefs') throw new Exception(Exception::TEAM_NOT_FOUND); } - $team = $dbForProject->updateDocument('teams', $team->getId(), $team->setAttribute('prefs', $prefs)); + $team = $dbForProject->updateDocument('teams', $team->getId(), new Document([ + 'prefs' => $prefs->getArrayCopy() + ])); $queueForEvents->setParam('teamId', $team->getId()); - $response->dynamic(new Document($prefs), Response::MODEL_PREFERENCES); + $response->dynamic($prefs, Response::MODEL_PREFERENCES); }); App::delete('/v1/teams/:teamId') @@ -658,7 +672,7 @@ App::post('/v1/teams/:teamId/memberships') $body = $locale->getText("emails.invitation.body"); $preview = $locale->getText("emails.invitation.preview"); - $subject = \sprintf($locale->getText("emails.invitation.subject"), $team->getAttribute('name'), $projectName); + $subject = $locale->getText("emails.invitation.subject"); $customTemplate = $project->getAttribute('templates', [])['email.invitation-' . $locale->default] ?? []; $message = Template::fromFile(__DIR__ . '/../../config/locale/templates/email-inner-base.tpl'); diff --git a/app/controllers/api/vcs.php b/app/controllers/api/vcs.php index 9271e87448..5bda9961f3 100644 --- a/app/controllers/api/vcs.php +++ b/app/controllers/api/vcs.php @@ -15,6 +15,7 @@ use Appwrite\Utopia\Request; use Appwrite\Utopia\Response; use Appwrite\Vcs\Comment; use Utopia\App; +use Utopia\CLI\Console; use Utopia\Config\Config; use Utopia\Database\Database; use Utopia\Database\DateTime; @@ -135,11 +136,39 @@ $createGitDeployments = function (GitHub $github, string $providerInstallationId if (!$latestComment->isEmpty()) { $latestCommentId = $latestComment->getAttribute('providerCommentId', ''); - $comment = new Comment(); - $comment->parseComment($github->getComment($owner, $repositoryName, $latestCommentId)); - $comment->addBuild($project, $resource, $resourceType, $commentStatus, $deploymentId, $action, ''); + $retries = 0; + $lockAcquired = false; - $latestCommentId = \strval($github->updateComment($owner, $repositoryName, $latestCommentId, $comment->generateComment())); + while ($retries < 9) { + $retries++; + + try { + $dbForPlatform->createDocument('vcsCommentLocks', new Document([ + '$id' => $latestCommentId + ])); + $lockAcquired = true; + break; + } catch (\Throwable $err) { + if ($retries >= 9) { + Console::warning("Error creating vcs comment lock for " . $latestCommentId . ": " . $err->getMessage()); + } + + \sleep(1); + } + } + + if ($lockAcquired) { + // Wrap in try/finally to ensure lock file gets deleted + try { + $comment = new Comment(); + $comment->parseComment($github->getComment($owner, $repositoryName, $latestCommentId)); + $comment->addBuild($project, $resource, $resourceType, $commentStatus, $deploymentId, $action, ''); + + $latestCommentId = \strval($github->updateComment($owner, $repositoryName, $latestCommentId, $comment->generateComment())); + } finally { + $dbForPlatform->deleteDocument('vcsCommentLocks', $latestCommentId); + } + } } else { $comment = new Comment(); $comment->addBuild($project, $resource, $resourceType, $commentStatus, $deploymentId, $action, ''); @@ -177,11 +206,40 @@ $createGitDeployments = function (GitHub $github, string $providerInstallationId foreach ($latestComments as $comment) { $latestCommentId = $comment->getAttribute('providerCommentId', ''); - $comment = new Comment(); - $comment->parseComment($github->getComment($owner, $repositoryName, $latestCommentId)); - $comment->addBuild($project, $resource, $resourceType, $commentStatus, $deploymentId, $action, ''); - $latestCommentId = \strval($github->updateComment($owner, $repositoryName, $latestCommentId, $comment->generateComment())); + $retries = 0; + $lockAcquired = false; + + while ($retries < 9) { + $retries++; + + try { + $dbForPlatform->createDocument('vcsCommentLocks', new Document([ + '$id' => $latestCommentId + ])); + $lockAcquired = true; + break; + } catch (\Throwable $err) { + if ($retries >= 9) { + Console::warning("Error creating vcs comment lock for " . $latestCommentId . ": " . $err->getMessage()); + } + + \sleep(1); + } + } + + if ($lockAcquired) { + // Wrap in try/finally to ensure lock file gets deleted + try { + $comment = new Comment(); + $comment->parseComment($github->getComment($owner, $repositoryName, $latestCommentId)); + $comment->addBuild($project, $resource, $resourceType, $commentStatus, $deploymentId, $action, ''); + + $latestCommentId = \strval($github->updateComment($owner, $repositoryName, $latestCommentId, $comment->generateComment())); + } finally { + $dbForPlatform->deleteDocument('vcsCommentLocks', $latestCommentId); + } + } } } @@ -271,6 +329,7 @@ $createGitDeployments = function (GitHub $github, string $providerInstallationId $sitesDomain = System::getEnv('_APP_DOMAIN_SITES', ''); $domain = ID::unique() . "." . $sitesDomain; $ruleId = md5($domain); + $previewRuleId = $ruleId; Authorization::skip( fn () => $dbForPlatform->createDocument('rules', new Document([ '$id' => $ruleId, @@ -362,6 +421,48 @@ $createGitDeployments = function (GitHub $github, string $providerInstallationId } } + if ($resource->getCollection() === 'sites' && !empty($latestCommentId) && !empty($previewRuleId)) { + $retries = 0; + $lockAcquired = false; + + while ($retries < 9) { + $retries++; + + try { + $dbForPlatform->createDocument('vcsCommentLocks', new Document([ + '$id' => $latestCommentId + ])); + $lockAcquired = true; + break; + } catch (\Throwable $err) { + if ($retries >= 9) { + Console::warning("Error creating vcs comment lock for " . $latestCommentId . ": " . $err->getMessage()); + } + + \sleep(1); + } + } + + if ($lockAcquired) { + // Wrap in try/finally to ensure lock file gets deleted + try { + $rule = Authorization::skip(fn () => $dbForPlatform->getDocument('rules', $previewRuleId)); + + $protocol = System::getEnv('_APP_OPTIONS_FORCE_HTTPS') === 'disabled' ? 'http' : 'https'; + $previewUrl = !empty($rule) ? ("{$protocol}://" . $rule->getAttribute('domain', '')) : ''; + + if (!empty($previewUrl)) { + $comment = new Comment(); + $comment->parseComment($github->getComment($owner, $repositoryName, $latestCommentId)); + $comment->addBuild($project, $resource, $resourceType, $commentStatus, $deploymentId, $action, $previewUrl); + $github->updateComment($owner, $repositoryName, $latestCommentId, $comment->generateComment()); + } + } finally { + $dbForPlatform->deleteDocument('vcsCommentLocks', $latestCommentId); + } + } + } + if (!empty($providerCommitHash) && $resource->getAttribute('providerSilentMode', false) === false) { $resourceName = $resource->getAttribute('name'); $projectName = $project->getAttribute('name'); diff --git a/app/controllers/general.php b/app/controllers/general.php index a4f89d14c7..8abca96742 100644 --- a/app/controllers/general.php +++ b/app/controllers/general.php @@ -28,7 +28,6 @@ use Appwrite\Utopia\Response\Filters\V16 as ResponseV16; use Appwrite\Utopia\Response\Filters\V17 as ResponseV17; use Appwrite\Utopia\Response\Filters\V18 as ResponseV18; use Appwrite\Utopia\Response\Filters\V19 as ResponseV19; -use Appwrite\Utopia\Response\Filters\V20 as ResponseV20; use Appwrite\Utopia\View; use Executor\Executor; use MaxMind\Db\Reader; @@ -357,11 +356,16 @@ function router(App $utopia, Database $dbForPlatform, callable $getProjectDB, Sw } } + $executionId = ID::unique(); + $headers = \array_merge([], $requestHeaders); + $headers['x-appwrite-execution-id'] = $executionId ?? ''; $headers['x-appwrite-user-id'] = ''; $headers['x-appwrite-country-code'] = ''; $headers['x-appwrite-continent-code'] = ''; $headers['x-appwrite-continent-eu'] = 'false'; + $ip = $request->getIP(); + $headers['x-appwrite-client-ip'] = $ip; $jwtExpiry = $resource->getAttribute('timeout', 900) + 60; // 1min extra to account for possible cold-starts $jwtObj = new JWT(System::getEnv('_APP_OPENSSL_KEY_V1'), 'HS256', $jwtExpiry, 0); @@ -373,7 +377,6 @@ function router(App $utopia, Database $dbForPlatform, callable $getProjectDB, Sw $headers['x-appwrite-trigger'] = 'http'; $headers['x-appwrite-user-jwt'] = ''; - $ip = $headers['x-real-ip'] ?? ''; if (!empty($ip)) { $record = $geodb->get($ip); @@ -393,8 +396,6 @@ function router(App $utopia, Database $dbForPlatform, callable $getProjectDB, Sw } } - $executionId = ID::unique(); - $execution = new Document([ '$id' => $executionId, '$permissions' => [], @@ -561,15 +562,18 @@ function router(App $utopia, Database $dbForPlatform, callable $getProjectDB, Sw cpus: $spec['cpus'] ?? APP_COMPUTE_CPUS_DEFAULT, memory: $spec['memory'] ?? APP_COMPUTE_MEMORY_DEFAULT, logging: $resource->getAttribute('logging', true), - requestTimeout: 30 + requestTimeout: 30, + responseFormat: Executor::RESPONSE_FORMAT_ARRAY_HEADERS ); + $headerOverrides = []; + // Branded 404 override $isResponseBranded = false; if ($executionResponse['statusCode'] === 404 && $deployment->getAttribute('adapter', '') === 'static') { $layout = new View(__DIR__ . '/../views/general/404.phtml'); $executionResponse['body'] = $layout->render(); - $executionResponse['headers']['content-length'] = \strlen($executionResponse['body']); + $headerOverrides['content-length'] = \strlen($executionResponse['body']); $isResponseBranded = true; } @@ -579,15 +583,16 @@ function router(App $utopia, Database $dbForPlatform, callable $getProjectDB, Sw $transformation = new Transformation(); $transformation->addAdapter(new Preview()); $transformation->setInput($executionResponse['body']); - $transformation->setTraits($executionResponse['headers']); + + $simpleHeaders = []; + foreach ($executionResponse['headers'] as $key => $value) { + $simpleHeaders[$key] = \is_array($value) ? \implode(', ', $value) : $value; + } + + $transformation->setTraits($simpleHeaders); if ($isPreview && $transformation->transform()) { $executionResponse['body'] = $transformation->getOutput(); - - foreach ($executionResponse['headers'] as $key => $value) { - if (\strtolower($key) === 'content-length') { - $executionResponse['headers'][$key] = \strlen($executionResponse['body']); - } - } + $headerOverrides['content-length'] = \strlen($executionResponse['body']); } } } @@ -601,19 +606,33 @@ function router(App $utopia, Database $dbForPlatform, callable $getProjectDB, Sw ->setParam('code', $executionResponse['statusCode']); $executionResponse['body'] = $layout->render(); - foreach ($executionResponse['headers'] as $key => $value) { - if (\strtolower($key) === 'content-length') { - $executionResponse['headers'][$key] = \strlen($executionResponse['body']); - } elseif (\strtolower($key) === 'content-type') { - $executionResponse['headers'][$key] = 'text/html'; + + $headerOverrides['content-length'] = \strlen($executionResponse['body']); + $headerOverrides['content-type'] = 'text/html'; + } + + if ($deployment->getAttribute('resourceType') === 'functions') { + $headerOverrides['x-appwrite-execution-id'] = $execution->getId(); + } elseif ($deployment->getAttribute('resourceType') === 'sites') { + $headerOverrides['x-appwrite-log-id'] = $execution->getId(); + } + + foreach ($headerOverrides as $key => $value) { + if (\array_key_exists($key, $executionResponse['headers'])) { + if (\is_array($executionResponse['headers'][$key])) { + $executionResponse['headers'][$key][] = $value; + } else { + $executionResponse['headers'][$key] = [$executionResponse['headers'][$key], $value]; } + } else { + $executionResponse['headers'][$key] = $value; } } $headersFiltered = []; foreach ($executionResponse['headers'] as $key => $value) { if (\in_array(\strtolower($key), FUNCTION_ALLOWLIST_HEADERS_RESPONSE)) { - $headersFiltered[] = ['name' => $key, 'value' => $value]; + $headersFiltered[] = ['name' => $key, 'value' => \is_array($value) ? \implode(', ', $value) : $value]; } } @@ -680,7 +699,7 @@ function router(App $utopia, Database $dbForPlatform, callable $getProjectDB, Sw $headers = []; foreach (($executionResponse['headers'] ?? []) as $key => $value) { - $headers[] = ['name' => $key, 'value' => $value]; + $headers[] = ['name' => $key, 'value' => \is_array($value) ? \implode(', ', $value) : $value]; } $execution->setAttribute('responseBody', $executionResponse['body'] ?? ''); @@ -689,16 +708,26 @@ function router(App $utopia, Database $dbForPlatform, callable $getProjectDB, Sw $body = $execution['responseBody'] ?? ''; $contentType = 'text/plain'; - foreach ($execution['responseHeaders'] as $header) { - if (\strtolower($header['name']) === 'content-type') { - $contentType = $header['value']; - } - - if (\strtolower($header['name']) === 'transfer-encoding') { + foreach ($executionResponse['headers'] as $name => $values) { + if (\strtolower($name) === 'content-type') { + $contentType = \is_array($values) ? $values[0] : $values; continue; } - $response->addHeader(\strtolower($header['name']), $header['value']); + if (\strtolower($name) === 'transfer-encoding') { + continue; + } + + if (\is_array($values)) { + $count = 0; + foreach ($values as $value) { + $override = $count === 0; + $response->addHeader($name, $value, override: $override); + $count++; + } + } else { + $response->addHeader($name, $values); + } } $response @@ -875,7 +904,7 @@ App::init() } if (version_compare($requestFormat, '1.8.0', '<')) { $dbForProject = $getProjectDB($project); - $request->addFilter(new RequestV20($dbForProject, $request->getParams())); + $request->addFilter(new RequestV20($dbForProject, $route->getPathValues($request))); } } @@ -1015,9 +1044,6 @@ App::init() if (version_compare($responseFormat, '1.7.0', '<')) { $response->addFilter(new ResponseV19()); } - if (version_compare($responseFormat, '1.8.0', '<')) { - $response->addFilter(new ResponseV20()); - } if (version_compare($responseFormat, APP_VERSION_STABLE, '>')) { $warnings[] = "The current SDK is built for Appwrite " . $responseFormat . ". However, the current Appwrite server version is " . APP_VERSION_STABLE . ". Please downgrade your SDK to match the Appwrite version: https://appwrite.io/docs/sdks"; } @@ -1056,26 +1082,6 @@ App::init() $response->addHeader('Access-Control-Allow-Origin', '*'); } - /** - * Deprecation Warning - */ - /** @var \Appwrite\SDK\Method $sdk */ - $sdk = $route->getLabel('sdk', false); - $deprecationWarning = 'This route is deprecated. See the updated documentation for improved compatibility and migration details.'; - $sdkItems = is_array($sdk) ? $sdk : (!empty($sdk) ? [$sdk] : []); - if (!empty($sdkItems) && count($sdkItems) > 0) { - $allDeprecated = true; - foreach ($sdkItems as $sdkItem) { - if (!$sdkItem->isDeprecated()) { - $allDeprecated = false; - break; - } - } - if ($allDeprecated) { - $warnings[] = $deprecationWarning; - } - } - if (!empty($warnings)) { $response->addHeader('X-Appwrite-Warning', implode(';', $warnings)); } diff --git a/app/controllers/shared/api.php b/app/controllers/shared/api.php index 9cc0e1ce2e..a551ba3a5a 100644 --- a/app/controllers/shared/api.php +++ b/app/controllers/shared/api.php @@ -29,7 +29,6 @@ use Utopia\Database\DateTime; use Utopia\Database\Document; use Utopia\Database\Helpers\Role; use Utopia\Database\Validator\Authorization; -use Utopia\Queue\Broker\Pool as BrokerPool; use Utopia\Queue\Publisher; use Utopia\System\System; use Utopia\Telemetry\Adapter as Telemetry; @@ -379,9 +378,9 @@ App::init() } // Do now allow access if scope is not allowed - $scope = $route->getLabel('scope', 'none'); - if (!\in_array($scope, $scopes)) { - throw new Exception(Exception::GENERAL_UNAUTHORIZED_SCOPE, $user->getAttribute('email', 'User') . ' (role: ' . \strtolower($roles[$role]['label']) . ') missing scope (' . $scope . ')'); + $allowed = (array)$route->getLabel('scope', 'none'); + if (empty(\array_intersect($allowed, $scopes))) { + throw new Exception(Exception::GENERAL_UNAUTHORIZED_SCOPE, $user->getAttribute('email', 'User') . ' (role: ' . \strtolower($roles[$role]['label']) . ') missing scopes (' . \json_encode($allowed) . ')'); } // Do not allow access to blocked accounts @@ -416,6 +415,7 @@ App::init() ->inject('user') ->inject('publisher') ->inject('publisherFunctions') + ->inject('publisherWebhooks') ->inject('queueForEvents') ->inject('queueForMessaging') ->inject('queueForAudits') @@ -431,7 +431,7 @@ App::init() ->inject('plan') ->inject('devKey') ->inject('telemetry') - ->action(function (App $utopia, Request $request, Response $response, Document $project, Document $user, Publisher $publisher, BrokerPool $publisherFunctions, Event $queueForEvents, Messaging $queueForMessaging, Audit $queueForAudits, Delete $queueForDeletes, EventDatabase $queueForDatabase, Build $queueForBuilds, StatsUsage $queueForStatsUsage, Database $dbForProject, callable $timelimit, Document $resourceToken, string $mode, ?Key $apiKey, array $plan, Document $devKey, Telemetry $telemetry) use ($usageDatabaseListener, $eventDatabaseListener) { + ->action(function (App $utopia, Request $request, Response $response, Document $project, Document $user, Publisher $publisher, Publisher $publisherFunctions, Publisher $publisherWebhooks, Event $queueForEvents, Messaging $queueForMessaging, Audit $queueForAudits, Delete $queueForDeletes, EventDatabase $queueForDatabase, Build $queueForBuilds, StatsUsage $queueForStatsUsage, Database $dbForProject, callable $timelimit, Document $resourceToken, string $mode, ?Key $apiKey, array $plan, Document $devKey, Telemetry $telemetry) use ($usageDatabaseListener, $eventDatabaseListener) { $route = $utopia->getRoute(); @@ -546,7 +546,7 @@ App::init() // from overwriting the events that are supposed to be triggered in the shutdown hook. $queueForEventsClone = new Event($publisher); $queueForFunctions = new Func($publisherFunctions); - $queueForWebhooks = new Webhook($publisher); + $queueForWebhooks = new Webhook($publisherWebhooks); $queueForRealtime = new Realtime(); $dbForProject @@ -812,12 +812,6 @@ App::shutdown() } if (!empty($queueForDatabase->getType())) { - Console::info("Triggering database event: \n" . \json_encode([ - 'projectId' => $project->getId(), - 'databaseId' => $queueForDatabase->getDatabase()?->getId(), - 'tableId' => $queueForDatabase->getTable()?->getId() ?? $queueForDatabase->getCollection()?->getId(), - 'rowId' => $queueForDatabase->getRow()?->getId() ?? $queueForDatabase->getDocument()?->getId(), - ])); $queueForDatabase->trigger(); } diff --git a/app/init/constants.php b/app/init/constants.php index c2d529191b..28cf8a4052 100644 --- a/app/init/constants.php +++ b/app/init/constants.php @@ -46,6 +46,9 @@ const APP_DATABASE_ATTRIBUTE_DATETIME = 'datetime'; const APP_DATABASE_ATTRIBUTE_URL = 'url'; const APP_DATABASE_ATTRIBUTE_INT_RANGE = 'intRange'; const APP_DATABASE_ATTRIBUTE_FLOAT_RANGE = 'floatRange'; +const APP_DATABASE_ATTRIBUTE_POINT = 'point'; +const APP_DATABASE_ATTRIBUTE_LINE = 'line'; +const APP_DATABASE_ATTRIBUTE_POLYGON = 'polygon'; const APP_DATABASE_ATTRIBUTE_STRING_MAX_LENGTH = 1_073_741_824; // 2^32 bits / 4 bits per char const APP_DATABASE_TIMEOUT_MILLISECONDS_API = 15 * 1000; // 15 seconds const APP_DATABASE_TIMEOUT_MILLISECONDS_WORKER = 300 * 1000; // 5 minutes @@ -146,7 +149,7 @@ const MAX_OUTPUT_CHUNK_SIZE = 10 * 1024 * 1024; // 10MB const APP_FUNCTION_LOG_LENGTH_LIMIT = 1000000; const APP_FUNCTION_ERROR_LENGTH_LIMIT = 1000000; // Function headers -const FUNCTION_ALLOWLIST_HEADERS_REQUEST = ['content-type', 'agent', 'content-length', 'host']; +const FUNCTION_ALLOWLIST_HEADERS_REQUEST = ['content-type', 'agent', 'content-length', 'host', 'x-appwrite-client-ip']; const FUNCTION_ALLOWLIST_HEADERS_RESPONSE = ['content-type', 'content-length']; // Message types const MESSAGE_TYPE_EMAIL = 'email'; diff --git a/app/init/resources.php b/app/init/resources.php index 2821b141c9..26940c56ae 100644 --- a/app/init/resources.php +++ b/app/init/resources.php @@ -15,6 +15,7 @@ use Appwrite\Event\Mail; use Appwrite\Event\Messaging; use Appwrite\Event\Migration; use Appwrite\Event\Realtime; +use Appwrite\Event\StatsResources; use Appwrite\Event\StatsUsage; use Appwrite\Event\Webhook; use Appwrite\Extend\Exception; @@ -84,25 +85,28 @@ App::setResource('localeCodes', function () { App::setResource('publisher', function (Group $pools) { return new BrokerPool(publisher: $pools->get('publisher')); }, ['pools']); -App::setResource('publisherDatabases', function (BrokerPool $publisher) { +App::setResource('publisherDatabases', function (Publisher $publisher) { return $publisher; }, ['publisher']); -App::setResource('publisherFunctions', function (BrokerPool $publisher) { +App::setResource('publisherFunctions', function (Publisher $publisher) { return $publisher; }, ['publisher']); -App::setResource('publisherMigrations', function (BrokerPool $publisher) { +App::setResource('publisherMigrations', function (Publisher $publisher) { return $publisher; }, ['publisher']); -App::setResource('publisherStatsUsage', function (BrokerPool $publisher) { +App::setResource('publisherStatsUsage', function (Publisher $publisher) { return $publisher; }, ['publisher']); -App::setResource('publisherMails', function (BrokerPool $publisher) { +App::setResource('publisherMails', function (Publisher $publisher) { return $publisher; }, ['publisher']); -App::setResource('publisherDeletes', function (BrokerPool $publisher) { +App::setResource('publisherDeletes', function (Publisher $publisher) { return $publisher; }, ['publisher']); -App::setResource('publisherMessaging', function (BrokerPool $publisher) { +App::setResource('publisherMessaging', function (Publisher $publisher) { + return $publisher; +}, ['publisher']); +App::setResource('publisherWebhooks', function (Publisher $publisher) { return $publisher; }, ['publisher']); App::setResource('queueForMessaging', function (Publisher $publisher) { @@ -144,6 +148,9 @@ App::setResource('queueForCertificates', function (Publisher $publisher) { App::setResource('queueForMigrations', function (Publisher $publisher) { return new Migration($publisher); }, ['publisher']); +App::setResource('queueForStatsResources', function (Publisher $publisher) { + return new StatsResources($publisher); +}, ['publisher']); App::setResource('platforms', function (Request $request, Document $console, Document $project) { $console->setAttribute('platforms', [ // Always allow current host '$collection' => ID::custom('platforms'), diff --git a/app/views/install/compose.phtml b/app/views/install/compose.phtml index 08c853c487..1e47364d03 100644 --- a/app/views/install/compose.phtml +++ b/app/views/install/compose.phtml @@ -182,7 +182,7 @@ $dbService = $this->getParam('database'); appwrite-console: <<: *x-logging container_name: appwrite-console - image: /console:6.2.0 + image: /console:7.0.2 restart: unless-stopped networks: - appwrite diff --git a/composer.json b/composer.json index 7c5374f165..e3558172ae 100644 --- a/composer.json +++ b/composer.json @@ -70,7 +70,7 @@ "utopia-php/platform": "0.7.*", "utopia-php/pools": "0.8.*", "utopia-php/preloader": "0.2.*", - "utopia-php/queue": "0.11.0", + "utopia-php/queue": "0.11.*", "utopia-php/registry": "0.5.*", "utopia-php/storage": "0.18.*", "utopia-php/swoole": "0.8.*", diff --git a/docker-compose.yml b/docker-compose.yml index 12a20ade7d..b9c0adcdcf 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -224,7 +224,7 @@ services: appwrite-console: <<: *x-logging container_name: appwrite-console - image: appwrite/console:7.0.0-qa.8 + image: appwrite/console:7.0.2 restart: unless-stopped networks: - appwrite @@ -996,7 +996,7 @@ services: hostname: exc1 <<: *x-logging stop_signal: SIGINT - image: openruntimes/executor:0.8.1 + image: openruntimes/executor:0.11.0 restart: unless-stopped networks: - appwrite diff --git a/docs/examples/1.8.x/client-android/java/account/update-prefs.md b/docs/examples/1.8.x/client-android/java/account/update-prefs.md index f1a16c7de0..4bd6940c61 100644 --- a/docs/examples/1.8.x/client-android/java/account/update-prefs.md +++ b/docs/examples/1.8.x/client-android/java/account/update-prefs.md @@ -9,7 +9,11 @@ Client client = new Client(context) Account account = new Account(client); account.updatePrefs( - mapOf( "a" to "b" ), // prefs + mapOf( + "language" to "en", + "timezone" to "UTC", + "darkTheme" to true + ), // prefs new CoroutineCallback<>((result, error) -> { if (error != null) { error.printStackTrace(); diff --git a/docs/examples/1.8.x/client-android/java/databases/create-document.md b/docs/examples/1.8.x/client-android/java/databases/create-document.md index 4804d751e3..bd0b57ac4c 100644 --- a/docs/examples/1.8.x/client-android/java/databases/create-document.md +++ b/docs/examples/1.8.x/client-android/java/databases/create-document.md @@ -12,7 +12,13 @@ databases.createDocument( "", // databaseId "", // collectionId "", // documentId - mapOf( "a" to "b" ), // data + mapOf( + "username" to "walter.obrien", + "email" to "walter.obrien@example.com", + "fullName" to "Walter O'Brien", + "age" to 30, + "isAdmin" to false + ), // data listOf("read("any")"), // permissions (optional) new CoroutineCallback<>((result, error) -> { if (error != null) { diff --git a/docs/examples/1.8.x/client-android/java/tablesdb/create-row.md b/docs/examples/1.8.x/client-android/java/tablesdb/create-row.md index 12d1680b0f..8273573ddd 100644 --- a/docs/examples/1.8.x/client-android/java/tablesdb/create-row.md +++ b/docs/examples/1.8.x/client-android/java/tablesdb/create-row.md @@ -12,7 +12,13 @@ tablesDB.createRow( "", // databaseId "", // tableId "", // rowId - mapOf( "a" to "b" ), // data + mapOf( + "username" to "walter.obrien", + "email" to "walter.obrien@example.com", + "fullName" to "Walter O'Brien", + "age" to 30, + "isAdmin" to false + ), // data listOf("read("any")"), // permissions (optional) new CoroutineCallback<>((result, error) -> { if (error != null) { diff --git a/docs/examples/1.8.x/client-android/kotlin/account/update-prefs.md b/docs/examples/1.8.x/client-android/kotlin/account/update-prefs.md index fdfed577ac..ded80e9462 100644 --- a/docs/examples/1.8.x/client-android/kotlin/account/update-prefs.md +++ b/docs/examples/1.8.x/client-android/kotlin/account/update-prefs.md @@ -9,5 +9,9 @@ val client = Client(context) val account = Account(client) val result = account.updatePrefs( - prefs = mapOf( "a" to "b" ), + prefs = mapOf( + "language" to "en", + "timezone" to "UTC", + "darkTheme" to true + ), ) \ No newline at end of file diff --git a/docs/examples/1.8.x/client-android/kotlin/databases/create-document.md b/docs/examples/1.8.x/client-android/kotlin/databases/create-document.md index 849a636afb..7f0aaf81f4 100644 --- a/docs/examples/1.8.x/client-android/kotlin/databases/create-document.md +++ b/docs/examples/1.8.x/client-android/kotlin/databases/create-document.md @@ -12,6 +12,12 @@ val result = databases.createDocument( databaseId = "", collectionId = "", documentId = "", - data = mapOf( "a" to "b" ), + data = mapOf( + "username" to "walter.obrien", + "email" to "walter.obrien@example.com", + "fullName" to "Walter O'Brien", + "age" to 30, + "isAdmin" to false + ), permissions = listOf("read("any")"), // (optional) ) \ No newline at end of file diff --git a/docs/examples/1.8.x/client-android/kotlin/tablesdb/create-row.md b/docs/examples/1.8.x/client-android/kotlin/tablesdb/create-row.md index 1a9cbdb488..eb44cc48d6 100644 --- a/docs/examples/1.8.x/client-android/kotlin/tablesdb/create-row.md +++ b/docs/examples/1.8.x/client-android/kotlin/tablesdb/create-row.md @@ -12,6 +12,12 @@ val result = tablesDB.createRow( databaseId = "", tableId = "", rowId = "", - data = mapOf( "a" to "b" ), + data = mapOf( + "username" to "walter.obrien", + "email" to "walter.obrien@example.com", + "fullName" to "Walter O'Brien", + "age" to 30, + "isAdmin" to false + ), permissions = listOf("read("any")"), // (optional) ) \ No newline at end of file diff --git a/docs/examples/1.8.x/client-apple/examples/account/update-prefs.md b/docs/examples/1.8.x/client-apple/examples/account/update-prefs.md index fea527337b..c81f481f61 100644 --- a/docs/examples/1.8.x/client-apple/examples/account/update-prefs.md +++ b/docs/examples/1.8.x/client-apple/examples/account/update-prefs.md @@ -7,6 +7,10 @@ let client = Client() let account = Account(client) let user = try await account.updatePrefs( - prefs: [:] + prefs: [ + "language": "en", + "timezone": "UTC", + "darkTheme": true + ] ) diff --git a/docs/examples/1.8.x/client-apple/examples/databases/create-document.md b/docs/examples/1.8.x/client-apple/examples/databases/create-document.md index 51adb64bb3..c044eee17a 100644 --- a/docs/examples/1.8.x/client-apple/examples/databases/create-document.md +++ b/docs/examples/1.8.x/client-apple/examples/databases/create-document.md @@ -10,7 +10,13 @@ let document = try await databases.createDocument( databaseId: "", collectionId: "", documentId: "", - data: [:], + data: [ + "username": "walter.obrien", + "email": "walter.obrien@example.com", + "fullName": "Walter O'Brien", + "age": 30, + "isAdmin": false + ], permissions: ["read("any")"] // optional ) diff --git a/docs/examples/1.8.x/client-apple/examples/tablesdb/create-row.md b/docs/examples/1.8.x/client-apple/examples/tablesdb/create-row.md index 0972892585..2ee601340f 100644 --- a/docs/examples/1.8.x/client-apple/examples/tablesdb/create-row.md +++ b/docs/examples/1.8.x/client-apple/examples/tablesdb/create-row.md @@ -10,7 +10,13 @@ let row = try await tablesDB.createRow( databaseId: "", tableId: "", rowId: "", - data: [:], + data: [ + "username": "walter.obrien", + "email": "walter.obrien@example.com", + "fullName": "Walter O'Brien", + "age": 30, + "isAdmin": false + ], permissions: ["read("any")"] // optional ) diff --git a/docs/examples/1.8.x/client-flutter/examples/account/update-prefs.md b/docs/examples/1.8.x/client-flutter/examples/account/update-prefs.md index 81fa362f89..a084c13e89 100644 --- a/docs/examples/1.8.x/client-flutter/examples/account/update-prefs.md +++ b/docs/examples/1.8.x/client-flutter/examples/account/update-prefs.md @@ -7,5 +7,9 @@ Client client = Client() Account account = Account(client); User result = await account.updatePrefs( - prefs: {}, + prefs: { + "language": "en", + "timezone": "UTC", + "darkTheme": true + }, ); diff --git a/docs/examples/1.8.x/client-flutter/examples/databases/create-document.md b/docs/examples/1.8.x/client-flutter/examples/databases/create-document.md index 27efc34580..3becbcf1fc 100644 --- a/docs/examples/1.8.x/client-flutter/examples/databases/create-document.md +++ b/docs/examples/1.8.x/client-flutter/examples/databases/create-document.md @@ -10,6 +10,12 @@ Document result = await databases.createDocument( databaseId: '', collectionId: '', documentId: '', - data: {}, + data: { + "username": "walter.obrien", + "email": "walter.obrien@example.com", + "fullName": "Walter O'Brien", + "age": 30, + "isAdmin": false + }, permissions: ["read("any")"], // optional ); diff --git a/docs/examples/1.8.x/client-flutter/examples/tablesdb/create-row.md b/docs/examples/1.8.x/client-flutter/examples/tablesdb/create-row.md index f546133b87..038bb2bac6 100644 --- a/docs/examples/1.8.x/client-flutter/examples/tablesdb/create-row.md +++ b/docs/examples/1.8.x/client-flutter/examples/tablesdb/create-row.md @@ -10,6 +10,12 @@ Row result = await tablesDB.createRow( databaseId: '', tableId: '', rowId: '', - data: {}, + data: { + "username": "walter.obrien", + "email": "walter.obrien@example.com", + "fullName": "Walter O'Brien", + "age": 30, + "isAdmin": false + }, permissions: ["read("any")"], // optional ); diff --git a/docs/examples/1.8.x/client-graphql/examples/account/update-prefs.md b/docs/examples/1.8.x/client-graphql/examples/account/update-prefs.md index 57280247e4..8138cf0227 100644 --- a/docs/examples/1.8.x/client-graphql/examples/account/update-prefs.md +++ b/docs/examples/1.8.x/client-graphql/examples/account/update-prefs.md @@ -1,6 +1,6 @@ mutation { accountUpdatePrefs( - prefs: "{}" + prefs: "{\"language\":\"en\",\"timezone\":\"UTC\",\"darkTheme\":true}" ) { _id _createdAt diff --git a/docs/examples/1.8.x/client-graphql/examples/databases/create-document.md b/docs/examples/1.8.x/client-graphql/examples/databases/create-document.md index 4f525d6b1f..39e4bba1cb 100644 --- a/docs/examples/1.8.x/client-graphql/examples/databases/create-document.md +++ b/docs/examples/1.8.x/client-graphql/examples/databases/create-document.md @@ -3,7 +3,7 @@ mutation { databaseId: "", collectionId: "", documentId: "", - data: "{}", + data: "{\"username\":\"walter.obrien\",\"email\":\"walter.obrien@example.com\",\"fullName\":\"Walter O'Brien\",\"age\":30,\"isAdmin\":false}", permissions: ["read("any")"] ) { _id diff --git a/docs/examples/1.8.x/client-graphql/examples/tablesdb/create-row.md b/docs/examples/1.8.x/client-graphql/examples/tablesdb/create-row.md index 621e46a64e..c7d2ec7d03 100644 --- a/docs/examples/1.8.x/client-graphql/examples/tablesdb/create-row.md +++ b/docs/examples/1.8.x/client-graphql/examples/tablesdb/create-row.md @@ -3,7 +3,7 @@ mutation { databaseId: "", tableId: "", rowId: "", - data: "{}", + data: "{\"username\":\"walter.obrien\",\"email\":\"walter.obrien@example.com\",\"fullName\":\"Walter O'Brien\",\"age\":30,\"isAdmin\":false}", permissions: ["read("any")"] ) { _id diff --git a/docs/examples/1.8.x/client-react-native/examples/account/update-prefs.md b/docs/examples/1.8.x/client-react-native/examples/account/update-prefs.md index 43fa9fc776..b4a8e0ab2e 100644 --- a/docs/examples/1.8.x/client-react-native/examples/account/update-prefs.md +++ b/docs/examples/1.8.x/client-react-native/examples/account/update-prefs.md @@ -7,7 +7,11 @@ const client = new Client() const account = new Account(client); const result = await account.updatePrefs({ - prefs: {} + prefs: { + "language": "en", + "timezone": "UTC", + "darkTheme": true + } }); console.log(result); diff --git a/docs/examples/1.8.x/client-react-native/examples/databases/create-document.md b/docs/examples/1.8.x/client-react-native/examples/databases/create-document.md index d0d25bd87d..e7cffc13d4 100644 --- a/docs/examples/1.8.x/client-react-native/examples/databases/create-document.md +++ b/docs/examples/1.8.x/client-react-native/examples/databases/create-document.md @@ -10,7 +10,13 @@ const result = await databases.createDocument({ databaseId: '', collectionId: '', documentId: '', - data: {}, + data: { + "username": "walter.obrien", + "email": "walter.obrien@example.com", + "fullName": "Walter O'Brien", + "age": 30, + "isAdmin": false + }, permissions: ["read("any")"] // optional }); diff --git a/docs/examples/1.8.x/client-react-native/examples/databases/decrement-document-attribute.md b/docs/examples/1.8.x/client-react-native/examples/databases/decrement-document-attribute.md index 8eb4387cfa..ddf43c9758 100644 --- a/docs/examples/1.8.x/client-react-native/examples/databases/decrement-document-attribute.md +++ b/docs/examples/1.8.x/client-react-native/examples/databases/decrement-document-attribute.md @@ -11,8 +11,8 @@ const result = await databases.decrementDocumentAttribute({ collectionId: '', documentId: '', attribute: '', - value: null, // optional - min: null // optional + value: 0, // optional + min: 0 // optional }); console.log(result); diff --git a/docs/examples/1.8.x/client-react-native/examples/databases/increment-document-attribute.md b/docs/examples/1.8.x/client-react-native/examples/databases/increment-document-attribute.md index 8cb3d816cb..c129c38a25 100644 --- a/docs/examples/1.8.x/client-react-native/examples/databases/increment-document-attribute.md +++ b/docs/examples/1.8.x/client-react-native/examples/databases/increment-document-attribute.md @@ -11,8 +11,8 @@ const result = await databases.incrementDocumentAttribute({ collectionId: '', documentId: '', attribute: '', - value: null, // optional - max: null // optional + value: 0, // optional + max: 0 // optional }); console.log(result); diff --git a/docs/examples/1.8.x/client-react-native/examples/storage/create-file.md b/docs/examples/1.8.x/client-react-native/examples/storage/create-file.md index 4a44d3ca5e..965c8d42cf 100644 --- a/docs/examples/1.8.x/client-react-native/examples/storage/create-file.md +++ b/docs/examples/1.8.x/client-react-native/examples/storage/create-file.md @@ -9,7 +9,7 @@ const storage = new Storage(client); const result = await storage.createFile({ bucketId: '', fileId: '', - file: await pickSingle(), + file: InputFile.fromPath('/path/to/file', 'filename'), permissions: ["read("any")"] // optional }); diff --git a/docs/examples/1.8.x/client-react-native/examples/tablesdb/create-row.md b/docs/examples/1.8.x/client-react-native/examples/tablesdb/create-row.md index 43018476f3..a02a8376d5 100644 --- a/docs/examples/1.8.x/client-react-native/examples/tablesdb/create-row.md +++ b/docs/examples/1.8.x/client-react-native/examples/tablesdb/create-row.md @@ -10,7 +10,13 @@ const result = await tablesDB.createRow({ databaseId: '', tableId: '', rowId: '', - data: {}, + data: { + "username": "walter.obrien", + "email": "walter.obrien@example.com", + "fullName": "Walter O'Brien", + "age": 30, + "isAdmin": false + }, permissions: ["read("any")"] // optional }); diff --git a/docs/examples/1.8.x/client-react-native/examples/tablesdb/decrement-row-column.md b/docs/examples/1.8.x/client-react-native/examples/tablesdb/decrement-row-column.md index 6b47c18cf9..e00eeb84bf 100644 --- a/docs/examples/1.8.x/client-react-native/examples/tablesdb/decrement-row-column.md +++ b/docs/examples/1.8.x/client-react-native/examples/tablesdb/decrement-row-column.md @@ -11,8 +11,8 @@ const result = await tablesDB.decrementRowColumn({ tableId: '', rowId: '', column: '', - value: null, // optional - min: null // optional + value: 0, // optional + min: 0 // optional }); console.log(result); diff --git a/docs/examples/1.8.x/client-react-native/examples/tablesdb/increment-row-column.md b/docs/examples/1.8.x/client-react-native/examples/tablesdb/increment-row-column.md index 62b7dd0c21..d4b2cf98ad 100644 --- a/docs/examples/1.8.x/client-react-native/examples/tablesdb/increment-row-column.md +++ b/docs/examples/1.8.x/client-react-native/examples/tablesdb/increment-row-column.md @@ -11,8 +11,8 @@ const result = await tablesDB.incrementRowColumn({ tableId: '', rowId: '', column: '', - value: null, // optional - max: null // optional + value: 0, // optional + max: 0 // optional }); console.log(result); diff --git a/docs/examples/1.8.x/client-rest/examples/account/create.md b/docs/examples/1.8.x/client-rest/examples/account/create.md index 15bb386f41..fa06bfcc1a 100644 --- a/docs/examples/1.8.x/client-rest/examples/account/create.md +++ b/docs/examples/1.8.x/client-rest/examples/account/create.md @@ -7,6 +7,6 @@ X-Appwrite-Project: { "userId": "", "email": "email@example.com", - "password": , + "password": "", "name": "" } diff --git a/docs/examples/1.8.x/client-rest/examples/account/update-password.md b/docs/examples/1.8.x/client-rest/examples/account/update-password.md index e05a1c2b7f..c26f18a4f3 100644 --- a/docs/examples/1.8.x/client-rest/examples/account/update-password.md +++ b/docs/examples/1.8.x/client-rest/examples/account/update-password.md @@ -7,6 +7,6 @@ X-Appwrite-Session: X-Appwrite-JWT: { - "password": , + "password": "", "oldPassword": "password" } diff --git a/docs/examples/1.8.x/client-rest/examples/account/update-prefs.md b/docs/examples/1.8.x/client-rest/examples/account/update-prefs.md index 24f2d3bcb6..0d7e4eab0c 100644 --- a/docs/examples/1.8.x/client-rest/examples/account/update-prefs.md +++ b/docs/examples/1.8.x/client-rest/examples/account/update-prefs.md @@ -7,5 +7,9 @@ X-Appwrite-Session: X-Appwrite-JWT: { - "prefs": {} + "prefs": { + "language": "en", + "timezone": "UTC", + "darkTheme": true + } } diff --git a/docs/examples/1.8.x/client-rest/examples/account/update-recovery.md b/docs/examples/1.8.x/client-rest/examples/account/update-recovery.md index 7d40ee79fe..68919c29fb 100644 --- a/docs/examples/1.8.x/client-rest/examples/account/update-recovery.md +++ b/docs/examples/1.8.x/client-rest/examples/account/update-recovery.md @@ -9,5 +9,5 @@ X-Appwrite-JWT: { "userId": "", "secret": "", - "password": + "password": "" } diff --git a/docs/examples/1.8.x/client-rest/examples/databases/create-document.md b/docs/examples/1.8.x/client-rest/examples/databases/create-document.md index e9b165e2ac..12f2159402 100644 --- a/docs/examples/1.8.x/client-rest/examples/databases/create-document.md +++ b/docs/examples/1.8.x/client-rest/examples/databases/create-document.md @@ -8,6 +8,12 @@ X-Appwrite-JWT: { "documentId": "", - "data": {}, + "data": { + "username": "walter.obrien", + "email": "walter.obrien@example.com", + "fullName": "Walter O'Brien", + "age": 30, + "isAdmin": false + }, "permissions": ["read(\"any\")"] } diff --git a/docs/examples/1.8.x/client-rest/examples/storage/create-file.md b/docs/examples/1.8.x/client-rest/examples/storage/create-file.md index 0f83797b70..150801a22f 100644 --- a/docs/examples/1.8.x/client-rest/examples/storage/create-file.md +++ b/docs/examples/1.8.x/client-rest/examples/storage/create-file.md @@ -15,8 +15,7 @@ Content-Disposition: form-data; name="fileId" --cec8e8123c05ba25 Content-Disposition: form-data; name="file" -cf 94 84 24 8d c4 91 10 0f dc 54 26 6c 8e 4b bc -e8 ee 55 94 29 e7 94 89 19 26 28 01 26 29 3f 16... +cf 94 84 24 8d c4 91 10 0f dc 54 26 6c 8e 4b bc e8 ee 55 94 29 e7 94 89 19 26 28 01 26 29 3f 16... --cec8e8123c05ba25 Content-Disposition: form-data; name="permissions[]" diff --git a/docs/examples/1.8.x/client-rest/examples/tablesdb/create-row.md b/docs/examples/1.8.x/client-rest/examples/tablesdb/create-row.md index 1f7943f10c..34d8ab5152 100644 --- a/docs/examples/1.8.x/client-rest/examples/tablesdb/create-row.md +++ b/docs/examples/1.8.x/client-rest/examples/tablesdb/create-row.md @@ -8,6 +8,12 @@ X-Appwrite-JWT: { "rowId": "", - "data": {}, + "data": { + "username": "walter.obrien", + "email": "walter.obrien@example.com", + "fullName": "Walter O'Brien", + "age": 30, + "isAdmin": false + }, "permissions": ["read(\"any\")"] } diff --git a/docs/examples/1.8.x/client-web/examples/account/update-prefs.md b/docs/examples/1.8.x/client-web/examples/account/update-prefs.md index 98ea84181a..8ca2678a7a 100644 --- a/docs/examples/1.8.x/client-web/examples/account/update-prefs.md +++ b/docs/examples/1.8.x/client-web/examples/account/update-prefs.md @@ -7,7 +7,11 @@ const client = new Client() const account = new Account(client); const result = await account.updatePrefs({ - prefs: {} + prefs: { + "language": "en", + "timezone": "UTC", + "darkTheme": true + } }); console.log(result); diff --git a/docs/examples/1.8.x/client-web/examples/databases/create-document.md b/docs/examples/1.8.x/client-web/examples/databases/create-document.md index 5c561ab799..08606c9b4f 100644 --- a/docs/examples/1.8.x/client-web/examples/databases/create-document.md +++ b/docs/examples/1.8.x/client-web/examples/databases/create-document.md @@ -10,7 +10,13 @@ const result = await databases.createDocument({ databaseId: '', collectionId: '', documentId: '', - data: {}, + data: { + "username": "walter.obrien", + "email": "walter.obrien@example.com", + "fullName": "Walter O'Brien", + "age": 30, + "isAdmin": false + }, permissions: ["read("any")"] // optional }); diff --git a/docs/examples/1.8.x/client-web/examples/tablesdb/create-row.md b/docs/examples/1.8.x/client-web/examples/tablesdb/create-row.md index aafe71f4a5..1dd1fe4241 100644 --- a/docs/examples/1.8.x/client-web/examples/tablesdb/create-row.md +++ b/docs/examples/1.8.x/client-web/examples/tablesdb/create-row.md @@ -10,7 +10,13 @@ const result = await tablesDB.createRow({ databaseId: '', tableId: '', rowId: '', - data: {}, + data: { + "username": "walter.obrien", + "email": "walter.obrien@example.com", + "fullName": "Walter O'Brien", + "age": 30, + "isAdmin": false + }, permissions: ["read("any")"] // optional }); diff --git a/docs/examples/1.8.x/console-cli/examples/databases/create-line-attribute.md b/docs/examples/1.8.x/console-cli/examples/databases/create-line-attribute.md new file mode 100644 index 0000000000..f0d81ede67 --- /dev/null +++ b/docs/examples/1.8.x/console-cli/examples/databases/create-line-attribute.md @@ -0,0 +1,5 @@ +appwrite databases create-line-attribute \ + --database-id \ + --collection-id \ + --key '' \ + --required false diff --git a/docs/examples/1.8.x/console-cli/examples/databases/create-point-attribute.md b/docs/examples/1.8.x/console-cli/examples/databases/create-point-attribute.md new file mode 100644 index 0000000000..926c7318e0 --- /dev/null +++ b/docs/examples/1.8.x/console-cli/examples/databases/create-point-attribute.md @@ -0,0 +1,5 @@ +appwrite databases create-point-attribute \ + --database-id \ + --collection-id \ + --key '' \ + --required false diff --git a/docs/examples/1.8.x/console-cli/examples/databases/create-polygon-attribute.md b/docs/examples/1.8.x/console-cli/examples/databases/create-polygon-attribute.md new file mode 100644 index 0000000000..f0a00c744f --- /dev/null +++ b/docs/examples/1.8.x/console-cli/examples/databases/create-polygon-attribute.md @@ -0,0 +1,5 @@ +appwrite databases create-polygon-attribute \ + --database-id \ + --collection-id \ + --key '' \ + --required false diff --git a/docs/examples/1.8.x/console-cli/examples/databases/update-line-attribute.md b/docs/examples/1.8.x/console-cli/examples/databases/update-line-attribute.md new file mode 100644 index 0000000000..37059ecef1 --- /dev/null +++ b/docs/examples/1.8.x/console-cli/examples/databases/update-line-attribute.md @@ -0,0 +1,5 @@ +appwrite databases update-line-attribute \ + --database-id \ + --collection-id \ + --key '' \ + --required false diff --git a/docs/examples/1.8.x/console-cli/examples/databases/update-point-attribute.md b/docs/examples/1.8.x/console-cli/examples/databases/update-point-attribute.md new file mode 100644 index 0000000000..bcc983a432 --- /dev/null +++ b/docs/examples/1.8.x/console-cli/examples/databases/update-point-attribute.md @@ -0,0 +1,5 @@ +appwrite databases update-point-attribute \ + --database-id \ + --collection-id \ + --key '' \ + --required false diff --git a/docs/examples/1.8.x/console-cli/examples/databases/update-polygon-attribute.md b/docs/examples/1.8.x/console-cli/examples/databases/update-polygon-attribute.md new file mode 100644 index 0000000000..6e1e1001da --- /dev/null +++ b/docs/examples/1.8.x/console-cli/examples/databases/update-polygon-attribute.md @@ -0,0 +1,5 @@ +appwrite databases update-polygon-attribute \ + --database-id \ + --collection-id \ + --key '' \ + --required false diff --git a/docs/examples/1.8.x/console-cli/examples/tablesdb/create-line-column.md b/docs/examples/1.8.x/console-cli/examples/tablesdb/create-line-column.md new file mode 100644 index 0000000000..cd6db93ea9 --- /dev/null +++ b/docs/examples/1.8.x/console-cli/examples/tablesdb/create-line-column.md @@ -0,0 +1,5 @@ +appwrite tables-db create-line-column \ + --database-id \ + --table-id \ + --key '' \ + --required false diff --git a/docs/examples/1.8.x/console-cli/examples/tablesdb/create-point-column.md b/docs/examples/1.8.x/console-cli/examples/tablesdb/create-point-column.md new file mode 100644 index 0000000000..0e7d2320d1 --- /dev/null +++ b/docs/examples/1.8.x/console-cli/examples/tablesdb/create-point-column.md @@ -0,0 +1,5 @@ +appwrite tables-db create-point-column \ + --database-id \ + --table-id \ + --key '' \ + --required false diff --git a/docs/examples/1.8.x/console-cli/examples/tablesdb/create-polygon-column.md b/docs/examples/1.8.x/console-cli/examples/tablesdb/create-polygon-column.md new file mode 100644 index 0000000000..060323b152 --- /dev/null +++ b/docs/examples/1.8.x/console-cli/examples/tablesdb/create-polygon-column.md @@ -0,0 +1,5 @@ +appwrite tables-db create-polygon-column \ + --database-id \ + --table-id \ + --key '' \ + --required false diff --git a/docs/examples/1.8.x/console-cli/examples/tablesdb/update-line-column.md b/docs/examples/1.8.x/console-cli/examples/tablesdb/update-line-column.md new file mode 100644 index 0000000000..203ebd64db --- /dev/null +++ b/docs/examples/1.8.x/console-cli/examples/tablesdb/update-line-column.md @@ -0,0 +1,5 @@ +appwrite tables-db update-line-column \ + --database-id \ + --table-id \ + --key '' \ + --required false diff --git a/docs/examples/1.8.x/console-cli/examples/tablesdb/update-point-column.md b/docs/examples/1.8.x/console-cli/examples/tablesdb/update-point-column.md new file mode 100644 index 0000000000..676a37ef49 --- /dev/null +++ b/docs/examples/1.8.x/console-cli/examples/tablesdb/update-point-column.md @@ -0,0 +1,5 @@ +appwrite tables-db update-point-column \ + --database-id \ + --table-id \ + --key '' \ + --required false diff --git a/docs/examples/1.8.x/console-cli/examples/tablesdb/update-polygon-column.md b/docs/examples/1.8.x/console-cli/examples/tablesdb/update-polygon-column.md new file mode 100644 index 0000000000..24e1f01f91 --- /dev/null +++ b/docs/examples/1.8.x/console-cli/examples/tablesdb/update-polygon-column.md @@ -0,0 +1,5 @@ +appwrite tables-db update-polygon-column \ + --database-id \ + --table-id \ + --key '' \ + --required false diff --git a/docs/examples/1.8.x/console-web/examples/account/update-prefs.md b/docs/examples/1.8.x/console-web/examples/account/update-prefs.md index 6f80801e52..cebe1da948 100644 --- a/docs/examples/1.8.x/console-web/examples/account/update-prefs.md +++ b/docs/examples/1.8.x/console-web/examples/account/update-prefs.md @@ -7,7 +7,11 @@ const client = new Client() const account = new Account(client); const result = await account.updatePrefs({ - prefs: {} + prefs: { + "language": "en", + "timezone": "UTC", + "darkTheme": true + } }); console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/databases/create-document.md b/docs/examples/1.8.x/console-web/examples/databases/create-document.md index b4c5200d74..40fbd4ad85 100644 --- a/docs/examples/1.8.x/console-web/examples/databases/create-document.md +++ b/docs/examples/1.8.x/console-web/examples/databases/create-document.md @@ -10,7 +10,13 @@ const result = await databases.createDocument({ databaseId: '', collectionId: '', documentId: '', - data: {}, + data: { + "username": "walter.obrien", + "email": "walter.obrien@example.com", + "fullName": "Walter O'Brien", + "age": 30, + "isAdmin": false + }, permissions: ["read("any")"] // optional }); diff --git a/docs/examples/1.8.x/console-web/examples/databases/create-line-attribute.md b/docs/examples/1.8.x/console-web/examples/databases/create-line-attribute.md new file mode 100644 index 0000000000..113ccc8028 --- /dev/null +++ b/docs/examples/1.8.x/console-web/examples/databases/create-line-attribute.md @@ -0,0 +1,17 @@ +import { Client, Databases } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const databases = new Databases(client); + +const result = await databases.createLineAttribute({ + databaseId: '', + collectionId: '', + key: '', + required: false, + default: [[1, 2], [3, 4], [5, 6]] // optional +}); + +console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/databases/create-point-attribute.md b/docs/examples/1.8.x/console-web/examples/databases/create-point-attribute.md new file mode 100644 index 0000000000..8e24fb9c0f --- /dev/null +++ b/docs/examples/1.8.x/console-web/examples/databases/create-point-attribute.md @@ -0,0 +1,17 @@ +import { Client, Databases } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const databases = new Databases(client); + +const result = await databases.createPointAttribute({ + databaseId: '', + collectionId: '', + key: '', + required: false, + default: [1, 2] // optional +}); + +console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/databases/create-polygon-attribute.md b/docs/examples/1.8.x/console-web/examples/databases/create-polygon-attribute.md new file mode 100644 index 0000000000..82c2e519f0 --- /dev/null +++ b/docs/examples/1.8.x/console-web/examples/databases/create-polygon-attribute.md @@ -0,0 +1,17 @@ +import { Client, Databases } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const databases = new Databases(client); + +const result = await databases.createPolygonAttribute({ + databaseId: '', + collectionId: '', + key: '', + required: false, + default: [[[1, 2], [3, 4], [5, 6], [1, 2]]] // optional +}); + +console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/databases/update-line-attribute.md b/docs/examples/1.8.x/console-web/examples/databases/update-line-attribute.md new file mode 100644 index 0000000000..85190fc085 --- /dev/null +++ b/docs/examples/1.8.x/console-web/examples/databases/update-line-attribute.md @@ -0,0 +1,18 @@ +import { Client, Databases } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const databases = new Databases(client); + +const result = await databases.updateLineAttribute({ + databaseId: '', + collectionId: '', + key: '', + required: false, + default: [[1, 2], [3, 4], [5, 6]], // optional + newKey: '' // optional +}); + +console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/databases/update-point-attribute.md b/docs/examples/1.8.x/console-web/examples/databases/update-point-attribute.md new file mode 100644 index 0000000000..ec4a2c02c1 --- /dev/null +++ b/docs/examples/1.8.x/console-web/examples/databases/update-point-attribute.md @@ -0,0 +1,18 @@ +import { Client, Databases } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const databases = new Databases(client); + +const result = await databases.updatePointAttribute({ + databaseId: '', + collectionId: '', + key: '', + required: false, + default: [1, 2], // optional + newKey: '' // optional +}); + +console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/databases/update-polygon-attribute.md b/docs/examples/1.8.x/console-web/examples/databases/update-polygon-attribute.md new file mode 100644 index 0000000000..4fa9eb197b --- /dev/null +++ b/docs/examples/1.8.x/console-web/examples/databases/update-polygon-attribute.md @@ -0,0 +1,18 @@ +import { Client, Databases } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const databases = new Databases(client); + +const result = await databases.updatePolygonAttribute({ + databaseId: '', + collectionId: '', + key: '', + required: false, + default: [[[1, 2], [3, 4], [5, 6], [1, 2]]], // optional + newKey: '' // optional +}); + +console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/tablesdb/create-line-column.md b/docs/examples/1.8.x/console-web/examples/tablesdb/create-line-column.md new file mode 100644 index 0000000000..05b4ec76d0 --- /dev/null +++ b/docs/examples/1.8.x/console-web/examples/tablesdb/create-line-column.md @@ -0,0 +1,17 @@ +import { Client, TablesDB } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const tablesDB = new TablesDB(client); + +const result = await tablesDB.createLineColumn({ + databaseId: '', + tableId: '', + key: '', + required: false, + default: [[1, 2], [3, 4], [5, 6]] // optional +}); + +console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/tablesdb/create-point-column.md b/docs/examples/1.8.x/console-web/examples/tablesdb/create-point-column.md new file mode 100644 index 0000000000..a2c94fb247 --- /dev/null +++ b/docs/examples/1.8.x/console-web/examples/tablesdb/create-point-column.md @@ -0,0 +1,17 @@ +import { Client, TablesDB } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const tablesDB = new TablesDB(client); + +const result = await tablesDB.createPointColumn({ + databaseId: '', + tableId: '', + key: '', + required: false, + default: [1, 2] // optional +}); + +console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/tablesdb/create-polygon-column.md b/docs/examples/1.8.x/console-web/examples/tablesdb/create-polygon-column.md new file mode 100644 index 0000000000..5de3ece01a --- /dev/null +++ b/docs/examples/1.8.x/console-web/examples/tablesdb/create-polygon-column.md @@ -0,0 +1,17 @@ +import { Client, TablesDB } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const tablesDB = new TablesDB(client); + +const result = await tablesDB.createPolygonColumn({ + databaseId: '', + tableId: '', + key: '', + required: false, + default: [[[1, 2], [3, 4], [5, 6], [1, 2]]] // optional +}); + +console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/tablesdb/create-row.md b/docs/examples/1.8.x/console-web/examples/tablesdb/create-row.md index 135d3e7070..6123b5fc31 100644 --- a/docs/examples/1.8.x/console-web/examples/tablesdb/create-row.md +++ b/docs/examples/1.8.x/console-web/examples/tablesdb/create-row.md @@ -10,7 +10,13 @@ const result = await tablesDB.createRow({ databaseId: '', tableId: '', rowId: '', - data: {}, + data: { + "username": "walter.obrien", + "email": "walter.obrien@example.com", + "fullName": "Walter O'Brien", + "age": 30, + "isAdmin": false + }, permissions: ["read("any")"] // optional }); diff --git a/docs/examples/1.8.x/console-web/examples/tablesdb/update-line-column.md b/docs/examples/1.8.x/console-web/examples/tablesdb/update-line-column.md new file mode 100644 index 0000000000..38b5aedb37 --- /dev/null +++ b/docs/examples/1.8.x/console-web/examples/tablesdb/update-line-column.md @@ -0,0 +1,18 @@ +import { Client, TablesDB } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const tablesDB = new TablesDB(client); + +const result = await tablesDB.updateLineColumn({ + databaseId: '', + tableId: '', + key: '', + required: false, + default: [[1, 2], [3, 4], [5, 6]], // optional + newKey: '' // optional +}); + +console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/tablesdb/update-point-column.md b/docs/examples/1.8.x/console-web/examples/tablesdb/update-point-column.md new file mode 100644 index 0000000000..f361d4c5bc --- /dev/null +++ b/docs/examples/1.8.x/console-web/examples/tablesdb/update-point-column.md @@ -0,0 +1,18 @@ +import { Client, TablesDB } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const tablesDB = new TablesDB(client); + +const result = await tablesDB.updatePointColumn({ + databaseId: '', + tableId: '', + key: '', + required: false, + default: [1, 2], // optional + newKey: '' // optional +}); + +console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/tablesdb/update-polygon-column.md b/docs/examples/1.8.x/console-web/examples/tablesdb/update-polygon-column.md new file mode 100644 index 0000000000..64b60d7630 --- /dev/null +++ b/docs/examples/1.8.x/console-web/examples/tablesdb/update-polygon-column.md @@ -0,0 +1,18 @@ +import { Client, TablesDB } from "@appwrite.io/console"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject(''); // Your project ID + +const tablesDB = new TablesDB(client); + +const result = await tablesDB.updatePolygonColumn({ + databaseId: '', + tableId: '', + key: '', + required: false, + default: [[[1, 2], [3, 4], [5, 6], [1, 2]]], // optional + newKey: '' // optional +}); + +console.log(result); diff --git a/docs/examples/1.8.x/server-dart/examples/account/update-prefs.md b/docs/examples/1.8.x/server-dart/examples/account/update-prefs.md index f4533cbea6..4334383546 100644 --- a/docs/examples/1.8.x/server-dart/examples/account/update-prefs.md +++ b/docs/examples/1.8.x/server-dart/examples/account/update-prefs.md @@ -8,5 +8,9 @@ Client client = Client() Account account = Account(client); User result = await account.updatePrefs( - prefs: {}, + prefs: { + "language": "en", + "timezone": "UTC", + "darkTheme": true + }, ); diff --git a/docs/examples/1.8.x/server-dart/examples/databases/create-document.md b/docs/examples/1.8.x/server-dart/examples/databases/create-document.md index 1d58fc586c..e3bae98162 100644 --- a/docs/examples/1.8.x/server-dart/examples/databases/create-document.md +++ b/docs/examples/1.8.x/server-dart/examples/databases/create-document.md @@ -11,6 +11,12 @@ Document result = await databases.createDocument( databaseId: '', collectionId: '', documentId: '', - data: {}, + data: { + "username": "walter.obrien", + "email": "walter.obrien@example.com", + "fullName": "Walter O'Brien", + "age": 30, + "isAdmin": false + }, permissions: ["read("any")"], // (optional) ); diff --git a/docs/examples/1.8.x/server-dart/examples/databases/create-line-attribute.md b/docs/examples/1.8.x/server-dart/examples/databases/create-line-attribute.md new file mode 100644 index 0000000000..74e8e406b8 --- /dev/null +++ b/docs/examples/1.8.x/server-dart/examples/databases/create-line-attribute.md @@ -0,0 +1,16 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +Databases databases = Databases(client); + +AttributeLine result = await databases.createLineAttribute( + databaseId: '', + collectionId: '', + key: '', + xrequired: false, + xdefault: [[1, 2], [3, 4], [5, 6]], // (optional) +); diff --git a/docs/examples/1.8.x/server-dart/examples/databases/create-point-attribute.md b/docs/examples/1.8.x/server-dart/examples/databases/create-point-attribute.md new file mode 100644 index 0000000000..7a630825a1 --- /dev/null +++ b/docs/examples/1.8.x/server-dart/examples/databases/create-point-attribute.md @@ -0,0 +1,16 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +Databases databases = Databases(client); + +AttributePoint result = await databases.createPointAttribute( + databaseId: '', + collectionId: '', + key: '', + xrequired: false, + xdefault: [1, 2], // (optional) +); diff --git a/docs/examples/1.8.x/server-dart/examples/databases/create-polygon-attribute.md b/docs/examples/1.8.x/server-dart/examples/databases/create-polygon-attribute.md new file mode 100644 index 0000000000..b0fa8d6a38 --- /dev/null +++ b/docs/examples/1.8.x/server-dart/examples/databases/create-polygon-attribute.md @@ -0,0 +1,16 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +Databases databases = Databases(client); + +AttributePolygon result = await databases.createPolygonAttribute( + databaseId: '', + collectionId: '', + key: '', + xrequired: false, + xdefault: [[[1, 2], [3, 4], [5, 6], [1, 2]]], // (optional) +); diff --git a/docs/examples/1.8.x/server-dart/examples/databases/update-line-attribute.md b/docs/examples/1.8.x/server-dart/examples/databases/update-line-attribute.md new file mode 100644 index 0000000000..8787e84433 --- /dev/null +++ b/docs/examples/1.8.x/server-dart/examples/databases/update-line-attribute.md @@ -0,0 +1,17 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +Databases databases = Databases(client); + +AttributeLine result = await databases.updateLineAttribute( + databaseId: '', + collectionId: '', + key: '', + xrequired: false, + xdefault: [[1, 2], [3, 4], [5, 6]], // (optional) + newKey: '', // (optional) +); diff --git a/docs/examples/1.8.x/server-dart/examples/databases/update-point-attribute.md b/docs/examples/1.8.x/server-dart/examples/databases/update-point-attribute.md new file mode 100644 index 0000000000..d1a64941d5 --- /dev/null +++ b/docs/examples/1.8.x/server-dart/examples/databases/update-point-attribute.md @@ -0,0 +1,17 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +Databases databases = Databases(client); + +AttributePoint result = await databases.updatePointAttribute( + databaseId: '', + collectionId: '', + key: '', + xrequired: false, + xdefault: [1, 2], // (optional) + newKey: '', // (optional) +); diff --git a/docs/examples/1.8.x/server-dart/examples/databases/update-polygon-attribute.md b/docs/examples/1.8.x/server-dart/examples/databases/update-polygon-attribute.md new file mode 100644 index 0000000000..3596475911 --- /dev/null +++ b/docs/examples/1.8.x/server-dart/examples/databases/update-polygon-attribute.md @@ -0,0 +1,17 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +Databases databases = Databases(client); + +AttributePolygon result = await databases.updatePolygonAttribute( + databaseId: '', + collectionId: '', + key: '', + xrequired: false, + xdefault: [[[1, 2], [3, 4], [5, 6], [1, 2]]], // (optional) + newKey: '', // (optional) +); diff --git a/docs/examples/1.8.x/server-dart/examples/tablesdb/create-line-column.md b/docs/examples/1.8.x/server-dart/examples/tablesdb/create-line-column.md new file mode 100644 index 0000000000..e9b578f466 --- /dev/null +++ b/docs/examples/1.8.x/server-dart/examples/tablesdb/create-line-column.md @@ -0,0 +1,16 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +TablesDB tablesDB = TablesDB(client); + +ColumnLine result = await tablesDB.createLineColumn( + databaseId: '', + tableId: '', + key: '', + xrequired: false, + xdefault: [[1, 2], [3, 4], [5, 6]], // (optional) +); diff --git a/docs/examples/1.8.x/server-dart/examples/tablesdb/create-point-column.md b/docs/examples/1.8.x/server-dart/examples/tablesdb/create-point-column.md new file mode 100644 index 0000000000..6e055170dc --- /dev/null +++ b/docs/examples/1.8.x/server-dart/examples/tablesdb/create-point-column.md @@ -0,0 +1,16 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +TablesDB tablesDB = TablesDB(client); + +ColumnPoint result = await tablesDB.createPointColumn( + databaseId: '', + tableId: '', + key: '', + xrequired: false, + xdefault: [1, 2], // (optional) +); diff --git a/docs/examples/1.8.x/server-dart/examples/tablesdb/create-polygon-column.md b/docs/examples/1.8.x/server-dart/examples/tablesdb/create-polygon-column.md new file mode 100644 index 0000000000..5e851f86f1 --- /dev/null +++ b/docs/examples/1.8.x/server-dart/examples/tablesdb/create-polygon-column.md @@ -0,0 +1,16 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +TablesDB tablesDB = TablesDB(client); + +ColumnPolygon result = await tablesDB.createPolygonColumn( + databaseId: '', + tableId: '', + key: '', + xrequired: false, + xdefault: [[[1, 2], [3, 4], [5, 6], [1, 2]]], // (optional) +); diff --git a/docs/examples/1.8.x/server-dart/examples/tablesdb/create-row.md b/docs/examples/1.8.x/server-dart/examples/tablesdb/create-row.md index 15e4f8ea8d..c2f5dd8293 100644 --- a/docs/examples/1.8.x/server-dart/examples/tablesdb/create-row.md +++ b/docs/examples/1.8.x/server-dart/examples/tablesdb/create-row.md @@ -11,6 +11,12 @@ Row result = await tablesDB.createRow( databaseId: '', tableId: '', rowId: '', - data: {}, + data: { + "username": "walter.obrien", + "email": "walter.obrien@example.com", + "fullName": "Walter O'Brien", + "age": 30, + "isAdmin": false + }, permissions: ["read("any")"], // (optional) ); diff --git a/docs/examples/1.8.x/server-dart/examples/tablesdb/update-line-column.md b/docs/examples/1.8.x/server-dart/examples/tablesdb/update-line-column.md new file mode 100644 index 0000000000..53d7999d6f --- /dev/null +++ b/docs/examples/1.8.x/server-dart/examples/tablesdb/update-line-column.md @@ -0,0 +1,17 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +TablesDB tablesDB = TablesDB(client); + +ColumnLine result = await tablesDB.updateLineColumn( + databaseId: '', + tableId: '', + key: '', + xrequired: false, + xdefault: [[1, 2], [3, 4], [5, 6]], // (optional) + newKey: '', // (optional) +); diff --git a/docs/examples/1.8.x/server-dart/examples/tablesdb/update-point-column.md b/docs/examples/1.8.x/server-dart/examples/tablesdb/update-point-column.md new file mode 100644 index 0000000000..5658393b07 --- /dev/null +++ b/docs/examples/1.8.x/server-dart/examples/tablesdb/update-point-column.md @@ -0,0 +1,17 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +TablesDB tablesDB = TablesDB(client); + +ColumnPoint result = await tablesDB.updatePointColumn( + databaseId: '', + tableId: '', + key: '', + xrequired: false, + xdefault: [1, 2], // (optional) + newKey: '', // (optional) +); diff --git a/docs/examples/1.8.x/server-dart/examples/tablesdb/update-polygon-column.md b/docs/examples/1.8.x/server-dart/examples/tablesdb/update-polygon-column.md new file mode 100644 index 0000000000..b98e8615a4 --- /dev/null +++ b/docs/examples/1.8.x/server-dart/examples/tablesdb/update-polygon-column.md @@ -0,0 +1,17 @@ +import 'package:dart_appwrite/dart_appwrite.dart'; + +Client client = Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +TablesDB tablesDB = TablesDB(client); + +ColumnPolygon result = await tablesDB.updatePolygonColumn( + databaseId: '', + tableId: '', + key: '', + xrequired: false, + xdefault: [[[1, 2], [3, 4], [5, 6], [1, 2]]], // (optional) + newKey: '', // (optional) +); diff --git a/docs/examples/1.8.x/server-deno/examples/account/update-prefs.md b/docs/examples/1.8.x/server-deno/examples/account/update-prefs.md index f7bb254503..96bc4ac6be 100644 --- a/docs/examples/1.8.x/server-deno/examples/account/update-prefs.md +++ b/docs/examples/1.8.x/server-deno/examples/account/update-prefs.md @@ -8,5 +8,9 @@ const client = new Client() const account = new Account(client); const response = await account.updatePrefs({ - prefs: {} + prefs: { + "language": "en", + "timezone": "UTC", + "darkTheme": true + } }); diff --git a/docs/examples/1.8.x/server-deno/examples/databases/create-document.md b/docs/examples/1.8.x/server-deno/examples/databases/create-document.md index 784b7dd530..35be696eb2 100644 --- a/docs/examples/1.8.x/server-deno/examples/databases/create-document.md +++ b/docs/examples/1.8.x/server-deno/examples/databases/create-document.md @@ -11,6 +11,12 @@ const response = await databases.createDocument({ databaseId: '', collectionId: '', documentId: '', - data: {}, + data: { + "username": "walter.obrien", + "email": "walter.obrien@example.com", + "fullName": "Walter O'Brien", + "age": 30, + "isAdmin": false + }, permissions: ["read("any")"] // optional }); diff --git a/docs/examples/1.8.x/server-deno/examples/databases/create-line-attribute.md b/docs/examples/1.8.x/server-deno/examples/databases/create-line-attribute.md new file mode 100644 index 0000000000..2f6b1f9bd2 --- /dev/null +++ b/docs/examples/1.8.x/server-deno/examples/databases/create-line-attribute.md @@ -0,0 +1,16 @@ +import { Client, Databases } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const databases = new Databases(client); + +const response = await databases.createLineAttribute({ + databaseId: '', + collectionId: '', + key: '', + required: false, + default: [[1,2], [3, 4]] // optional +}); diff --git a/docs/examples/1.8.x/server-deno/examples/databases/create-point-attribute.md b/docs/examples/1.8.x/server-deno/examples/databases/create-point-attribute.md new file mode 100644 index 0000000000..173c759928 --- /dev/null +++ b/docs/examples/1.8.x/server-deno/examples/databases/create-point-attribute.md @@ -0,0 +1,16 @@ +import { Client, Databases } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const databases = new Databases(client); + +const response = await databases.createPointAttribute({ + databaseId: '', + collectionId: '', + key: '', + required: false, + default: [[1,2], [3, 4]] // optional +}); diff --git a/docs/examples/1.8.x/server-deno/examples/databases/create-polygon-attribute.md b/docs/examples/1.8.x/server-deno/examples/databases/create-polygon-attribute.md new file mode 100644 index 0000000000..13bec65296 --- /dev/null +++ b/docs/examples/1.8.x/server-deno/examples/databases/create-polygon-attribute.md @@ -0,0 +1,16 @@ +import { Client, Databases } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const databases = new Databases(client); + +const response = await databases.createPolygonAttribute({ + databaseId: '', + collectionId: '', + key: '', + required: false, + default: [[1,2], [3, 4]] // optional +}); diff --git a/docs/examples/1.8.x/server-deno/examples/databases/update-line-attribute.md b/docs/examples/1.8.x/server-deno/examples/databases/update-line-attribute.md new file mode 100644 index 0000000000..a9cdf41f04 --- /dev/null +++ b/docs/examples/1.8.x/server-deno/examples/databases/update-line-attribute.md @@ -0,0 +1,17 @@ +import { Client, Databases } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const databases = new Databases(client); + +const response = await databases.updateLineAttribute({ + databaseId: '', + collectionId: '', + key: '', + required: false, + default: [[1,2], [3, 4]], // optional + newKey: '' // optional +}); diff --git a/docs/examples/1.8.x/server-deno/examples/databases/update-point-attribute.md b/docs/examples/1.8.x/server-deno/examples/databases/update-point-attribute.md new file mode 100644 index 0000000000..552db1e60e --- /dev/null +++ b/docs/examples/1.8.x/server-deno/examples/databases/update-point-attribute.md @@ -0,0 +1,17 @@ +import { Client, Databases } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const databases = new Databases(client); + +const response = await databases.updatePointAttribute({ + databaseId: '', + collectionId: '', + key: '', + required: false, + default: [[1,2], [3, 4]], // optional + newKey: '' // optional +}); diff --git a/docs/examples/1.8.x/server-deno/examples/databases/update-polygon-attribute.md b/docs/examples/1.8.x/server-deno/examples/databases/update-polygon-attribute.md new file mode 100644 index 0000000000..fc655f0737 --- /dev/null +++ b/docs/examples/1.8.x/server-deno/examples/databases/update-polygon-attribute.md @@ -0,0 +1,17 @@ +import { Client, Databases } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const databases = new Databases(client); + +const response = await databases.updatePolygonAttribute({ + databaseId: '', + collectionId: '', + key: '', + required: false, + default: [[1,2], [3, 4]], // optional + newKey: '' // optional +}); diff --git a/docs/examples/1.8.x/server-deno/examples/tablesdb/create-line-column.md b/docs/examples/1.8.x/server-deno/examples/tablesdb/create-line-column.md new file mode 100644 index 0000000000..66d02cb64d --- /dev/null +++ b/docs/examples/1.8.x/server-deno/examples/tablesdb/create-line-column.md @@ -0,0 +1,16 @@ +import { Client, TablesDB } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const tablesDB = new TablesDB(client); + +const response = await tablesDB.createLineColumn({ + databaseId: '', + tableId: '', + key: '', + required: false, + default: [[1,2], [3, 4]] // optional +}); diff --git a/docs/examples/1.8.x/server-deno/examples/tablesdb/create-point-column.md b/docs/examples/1.8.x/server-deno/examples/tablesdb/create-point-column.md new file mode 100644 index 0000000000..db8034e507 --- /dev/null +++ b/docs/examples/1.8.x/server-deno/examples/tablesdb/create-point-column.md @@ -0,0 +1,16 @@ +import { Client, TablesDB } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const tablesDB = new TablesDB(client); + +const response = await tablesDB.createPointColumn({ + databaseId: '', + tableId: '', + key: '', + required: false, + default: [[1,2], [3, 4]] // optional +}); diff --git a/docs/examples/1.8.x/server-deno/examples/tablesdb/create-polygon-column.md b/docs/examples/1.8.x/server-deno/examples/tablesdb/create-polygon-column.md new file mode 100644 index 0000000000..00dbbda632 --- /dev/null +++ b/docs/examples/1.8.x/server-deno/examples/tablesdb/create-polygon-column.md @@ -0,0 +1,16 @@ +import { Client, TablesDB } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const tablesDB = new TablesDB(client); + +const response = await tablesDB.createPolygonColumn({ + databaseId: '', + tableId: '', + key: '', + required: false, + default: [[1,2], [3, 4]] // optional +}); diff --git a/docs/examples/1.8.x/server-deno/examples/tablesdb/create-row.md b/docs/examples/1.8.x/server-deno/examples/tablesdb/create-row.md index dadb5ecfb0..fdb59a6b70 100644 --- a/docs/examples/1.8.x/server-deno/examples/tablesdb/create-row.md +++ b/docs/examples/1.8.x/server-deno/examples/tablesdb/create-row.md @@ -11,6 +11,12 @@ const response = await tablesDB.createRow({ databaseId: '', tableId: '', rowId: '', - data: {}, + data: { + "username": "walter.obrien", + "email": "walter.obrien@example.com", + "fullName": "Walter O'Brien", + "age": 30, + "isAdmin": false + }, permissions: ["read("any")"] // optional }); diff --git a/docs/examples/1.8.x/server-deno/examples/tablesdb/update-line-column.md b/docs/examples/1.8.x/server-deno/examples/tablesdb/update-line-column.md new file mode 100644 index 0000000000..71ddd6bdcf --- /dev/null +++ b/docs/examples/1.8.x/server-deno/examples/tablesdb/update-line-column.md @@ -0,0 +1,17 @@ +import { Client, TablesDB } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const tablesDB = new TablesDB(client); + +const response = await tablesDB.updateLineColumn({ + databaseId: '', + tableId: '', + key: '', + required: false, + default: [[1,2], [3, 4]], // optional + newKey: '' // optional +}); diff --git a/docs/examples/1.8.x/server-deno/examples/tablesdb/update-point-column.md b/docs/examples/1.8.x/server-deno/examples/tablesdb/update-point-column.md new file mode 100644 index 0000000000..0075c71eba --- /dev/null +++ b/docs/examples/1.8.x/server-deno/examples/tablesdb/update-point-column.md @@ -0,0 +1,17 @@ +import { Client, TablesDB } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const tablesDB = new TablesDB(client); + +const response = await tablesDB.updatePointColumn({ + databaseId: '', + tableId: '', + key: '', + required: false, + default: [[1,2], [3, 4]], // optional + newKey: '' // optional +}); diff --git a/docs/examples/1.8.x/server-deno/examples/tablesdb/update-polygon-column.md b/docs/examples/1.8.x/server-deno/examples/tablesdb/update-polygon-column.md new file mode 100644 index 0000000000..c057ba4225 --- /dev/null +++ b/docs/examples/1.8.x/server-deno/examples/tablesdb/update-polygon-column.md @@ -0,0 +1,17 @@ +import { Client, TablesDB } from "https://deno.land/x/appwrite/mod.ts"; + +const client = new Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const tablesDB = new TablesDB(client); + +const response = await tablesDB.updatePolygonColumn({ + databaseId: '', + tableId: '', + key: '', + required: false, + default: [[1,2], [3, 4]], // optional + newKey: '' // optional +}); diff --git a/docs/examples/1.8.x/server-dotnet/examples/account/update-prefs.md b/docs/examples/1.8.x/server-dotnet/examples/account/update-prefs.md index 0b348a9c74..80f42aaaf8 100644 --- a/docs/examples/1.8.x/server-dotnet/examples/account/update-prefs.md +++ b/docs/examples/1.8.x/server-dotnet/examples/account/update-prefs.md @@ -10,5 +10,9 @@ Client client = new Client() Account account = new Account(client); User result = await account.UpdatePrefs( - prefs: [object] + prefs: new { + language = "en", + timezone = "UTC", + darkTheme = true + } ); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/databases/create-document.md b/docs/examples/1.8.x/server-dotnet/examples/databases/create-document.md index 52254e0c25..4a7444db7a 100644 --- a/docs/examples/1.8.x/server-dotnet/examples/databases/create-document.md +++ b/docs/examples/1.8.x/server-dotnet/examples/databases/create-document.md @@ -13,6 +13,12 @@ Document result = await databases.CreateDocument( databaseId: "", collectionId: "", documentId: "", - data: [object], + data: new { + username = "walter.obrien", + email = "walter.obrien@example.com", + fullName = "Walter O'Brien", + age = 30, + isAdmin = false + }, permissions: ["read("any")"] // optional ); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/databases/create-line-attribute.md b/docs/examples/1.8.x/server-dotnet/examples/databases/create-line-attribute.md new file mode 100644 index 0000000000..d0de49457d --- /dev/null +++ b/docs/examples/1.8.x/server-dotnet/examples/databases/create-line-attribute.md @@ -0,0 +1,18 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key + +Databases databases = new Databases(client); + +AttributeLine result = await databases.CreateLineAttribute( + databaseId: "", + collectionId: "", + key: "", + required: false, + default: [[1, 2], [3, 4], [5, 6]] // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/databases/create-point-attribute.md b/docs/examples/1.8.x/server-dotnet/examples/databases/create-point-attribute.md new file mode 100644 index 0000000000..4843174c1a --- /dev/null +++ b/docs/examples/1.8.x/server-dotnet/examples/databases/create-point-attribute.md @@ -0,0 +1,18 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key + +Databases databases = new Databases(client); + +AttributePoint result = await databases.CreatePointAttribute( + databaseId: "", + collectionId: "", + key: "", + required: false, + default: [1, 2] // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/databases/create-polygon-attribute.md b/docs/examples/1.8.x/server-dotnet/examples/databases/create-polygon-attribute.md new file mode 100644 index 0000000000..15c8b98696 --- /dev/null +++ b/docs/examples/1.8.x/server-dotnet/examples/databases/create-polygon-attribute.md @@ -0,0 +1,18 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key + +Databases databases = new Databases(client); + +AttributePolygon result = await databases.CreatePolygonAttribute( + databaseId: "", + collectionId: "", + key: "", + required: false, + default: [[[1, 2], [3, 4], [5, 6], [1, 2]]] // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/databases/update-line-attribute.md b/docs/examples/1.8.x/server-dotnet/examples/databases/update-line-attribute.md new file mode 100644 index 0000000000..0cc21572bc --- /dev/null +++ b/docs/examples/1.8.x/server-dotnet/examples/databases/update-line-attribute.md @@ -0,0 +1,19 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key + +Databases databases = new Databases(client); + +AttributeLine result = await databases.UpdateLineAttribute( + databaseId: "", + collectionId: "", + key: "", + required: false, + default: [[1, 2], [3, 4], [5, 6]], // optional + newKey: "" // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/databases/update-point-attribute.md b/docs/examples/1.8.x/server-dotnet/examples/databases/update-point-attribute.md new file mode 100644 index 0000000000..3969b16074 --- /dev/null +++ b/docs/examples/1.8.x/server-dotnet/examples/databases/update-point-attribute.md @@ -0,0 +1,19 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key + +Databases databases = new Databases(client); + +AttributePoint result = await databases.UpdatePointAttribute( + databaseId: "", + collectionId: "", + key: "", + required: false, + default: [1, 2], // optional + newKey: "" // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/databases/update-polygon-attribute.md b/docs/examples/1.8.x/server-dotnet/examples/databases/update-polygon-attribute.md new file mode 100644 index 0000000000..1344574585 --- /dev/null +++ b/docs/examples/1.8.x/server-dotnet/examples/databases/update-polygon-attribute.md @@ -0,0 +1,19 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key + +Databases databases = new Databases(client); + +AttributePolygon result = await databases.UpdatePolygonAttribute( + databaseId: "", + collectionId: "", + key: "", + required: false, + default: [[[1, 2], [3, 4], [5, 6], [1, 2]]], // optional + newKey: "" // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/tablesdb/create-line-column.md b/docs/examples/1.8.x/server-dotnet/examples/tablesdb/create-line-column.md new file mode 100644 index 0000000000..31dc069815 --- /dev/null +++ b/docs/examples/1.8.x/server-dotnet/examples/tablesdb/create-line-column.md @@ -0,0 +1,18 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key + +TablesDB tablesDB = new TablesDB(client); + +ColumnLine result = await tablesDB.CreateLineColumn( + databaseId: "", + tableId: "", + key: "", + required: false, + default: [[1, 2], [3, 4], [5, 6]] // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/tablesdb/create-point-column.md b/docs/examples/1.8.x/server-dotnet/examples/tablesdb/create-point-column.md new file mode 100644 index 0000000000..a1461bcc8f --- /dev/null +++ b/docs/examples/1.8.x/server-dotnet/examples/tablesdb/create-point-column.md @@ -0,0 +1,18 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key + +TablesDB tablesDB = new TablesDB(client); + +ColumnPoint result = await tablesDB.CreatePointColumn( + databaseId: "", + tableId: "", + key: "", + required: false, + default: [1, 2] // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/tablesdb/create-polygon-column.md b/docs/examples/1.8.x/server-dotnet/examples/tablesdb/create-polygon-column.md new file mode 100644 index 0000000000..e1e92b2d97 --- /dev/null +++ b/docs/examples/1.8.x/server-dotnet/examples/tablesdb/create-polygon-column.md @@ -0,0 +1,18 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key + +TablesDB tablesDB = new TablesDB(client); + +ColumnPolygon result = await tablesDB.CreatePolygonColumn( + databaseId: "", + tableId: "", + key: "", + required: false, + default: [[[1, 2], [3, 4], [5, 6], [1, 2]]] // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/tablesdb/create-row.md b/docs/examples/1.8.x/server-dotnet/examples/tablesdb/create-row.md index ec6255a11a..01a21b0dcd 100644 --- a/docs/examples/1.8.x/server-dotnet/examples/tablesdb/create-row.md +++ b/docs/examples/1.8.x/server-dotnet/examples/tablesdb/create-row.md @@ -13,6 +13,12 @@ Row result = await tablesDB.CreateRow( databaseId: "", tableId: "", rowId: "", - data: [object], + data: new { + username = "walter.obrien", + email = "walter.obrien@example.com", + fullName = "Walter O'Brien", + age = 30, + isAdmin = false + }, permissions: ["read("any")"] // optional ); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/tablesdb/update-line-column.md b/docs/examples/1.8.x/server-dotnet/examples/tablesdb/update-line-column.md new file mode 100644 index 0000000000..7a7620a98d --- /dev/null +++ b/docs/examples/1.8.x/server-dotnet/examples/tablesdb/update-line-column.md @@ -0,0 +1,19 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key + +TablesDB tablesDB = new TablesDB(client); + +ColumnLine result = await tablesDB.UpdateLineColumn( + databaseId: "", + tableId: "", + key: "", + required: false, + default: [[1, 2], [3, 4], [5, 6]], // optional + newKey: "" // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/tablesdb/update-point-column.md b/docs/examples/1.8.x/server-dotnet/examples/tablesdb/update-point-column.md new file mode 100644 index 0000000000..663f1838a0 --- /dev/null +++ b/docs/examples/1.8.x/server-dotnet/examples/tablesdb/update-point-column.md @@ -0,0 +1,19 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key + +TablesDB tablesDB = new TablesDB(client); + +ColumnPoint result = await tablesDB.UpdatePointColumn( + databaseId: "", + tableId: "", + key: "", + required: false, + default: [1, 2], // optional + newKey: "" // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/tablesdb/update-polygon-column.md b/docs/examples/1.8.x/server-dotnet/examples/tablesdb/update-polygon-column.md new file mode 100644 index 0000000000..ac8300ad39 --- /dev/null +++ b/docs/examples/1.8.x/server-dotnet/examples/tablesdb/update-polygon-column.md @@ -0,0 +1,19 @@ +using Appwrite; +using Appwrite.Models; +using Appwrite.Services; + +Client client = new Client() + .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .SetProject("") // Your project ID + .SetKey(""); // Your secret API key + +TablesDB tablesDB = new TablesDB(client); + +ColumnPolygon result = await tablesDB.UpdatePolygonColumn( + databaseId: "", + tableId: "", + key: "", + required: false, + default: [[[1, 2], [3, 4], [5, 6], [1, 2]]], // optional + newKey: "" // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-go/examples/account/update-prefs.md b/docs/examples/1.8.x/server-go/examples/account/update-prefs.md index 94c223ff31..2091395fb5 100644 --- a/docs/examples/1.8.x/server-go/examples/account/update-prefs.md +++ b/docs/examples/1.8.x/server-go/examples/account/update-prefs.md @@ -15,5 +15,9 @@ client := client.New( service := account.New(client) response, error := service.UpdatePrefs( - map[string]interface{}{}, + map[string]interface{}{ + "language": "en", + "timezone": "UTC", + "darkTheme": true + }, ) diff --git a/docs/examples/1.8.x/server-go/examples/databases/create-document.md b/docs/examples/1.8.x/server-go/examples/databases/create-document.md index 78f0eac32c..ea6305a06e 100644 --- a/docs/examples/1.8.x/server-go/examples/databases/create-document.md +++ b/docs/examples/1.8.x/server-go/examples/databases/create-document.md @@ -18,6 +18,12 @@ response, error := service.CreateDocument( "", "", "", - map[string]interface{}{}, + map[string]interface{}{ + "username": "walter.obrien", + "email": "walter.obrien@example.com", + "fullName": "Walter O'Brien", + "age": 30, + "isAdmin": false + }, databases.WithCreateDocumentPermissions(interface{}{"read("any")"}), ) diff --git a/docs/examples/1.8.x/server-go/examples/databases/create-line-attribute.md b/docs/examples/1.8.x/server-go/examples/databases/create-line-attribute.md new file mode 100644 index 0000000000..4993176457 --- /dev/null +++ b/docs/examples/1.8.x/server-go/examples/databases/create-line-attribute.md @@ -0,0 +1,23 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/databases" +) + +client := client.New( + client.WithEndpoint("https://.cloud.appwrite.io/v1") + client.WithProject("") + client.WithKey("") +) + +service := databases.New(client) + +response, error := service.CreateLineAttribute( + "", + "", + "", + false, + databases.WithCreateLineAttributeDefault(interface{}{[1, 2], [3, 4], [5, 6]}), +) diff --git a/docs/examples/1.8.x/server-go/examples/databases/create-point-attribute.md b/docs/examples/1.8.x/server-go/examples/databases/create-point-attribute.md new file mode 100644 index 0000000000..75d5e7908d --- /dev/null +++ b/docs/examples/1.8.x/server-go/examples/databases/create-point-attribute.md @@ -0,0 +1,23 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/databases" +) + +client := client.New( + client.WithEndpoint("https://.cloud.appwrite.io/v1") + client.WithProject("") + client.WithKey("") +) + +service := databases.New(client) + +response, error := service.CreatePointAttribute( + "", + "", + "", + false, + databases.WithCreatePointAttributeDefault(interface{}{1, 2}), +) diff --git a/docs/examples/1.8.x/server-go/examples/databases/create-polygon-attribute.md b/docs/examples/1.8.x/server-go/examples/databases/create-polygon-attribute.md new file mode 100644 index 0000000000..0f89b4237d --- /dev/null +++ b/docs/examples/1.8.x/server-go/examples/databases/create-polygon-attribute.md @@ -0,0 +1,23 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/databases" +) + +client := client.New( + client.WithEndpoint("https://.cloud.appwrite.io/v1") + client.WithProject("") + client.WithKey("") +) + +service := databases.New(client) + +response, error := service.CreatePolygonAttribute( + "", + "", + "", + false, + databases.WithCreatePolygonAttributeDefault(interface{}{[[1, 2], [3, 4], [5, 6], [1, 2]]}), +) diff --git a/docs/examples/1.8.x/server-go/examples/databases/update-line-attribute.md b/docs/examples/1.8.x/server-go/examples/databases/update-line-attribute.md new file mode 100644 index 0000000000..209044158f --- /dev/null +++ b/docs/examples/1.8.x/server-go/examples/databases/update-line-attribute.md @@ -0,0 +1,24 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/databases" +) + +client := client.New( + client.WithEndpoint("https://.cloud.appwrite.io/v1") + client.WithProject("") + client.WithKey("") +) + +service := databases.New(client) + +response, error := service.UpdateLineAttribute( + "", + "", + "", + false, + databases.WithUpdateLineAttributeDefault(interface{}{[1, 2], [3, 4], [5, 6]}), + databases.WithUpdateLineAttributeNewKey(""), +) diff --git a/docs/examples/1.8.x/server-go/examples/databases/update-point-attribute.md b/docs/examples/1.8.x/server-go/examples/databases/update-point-attribute.md new file mode 100644 index 0000000000..735b4d8c64 --- /dev/null +++ b/docs/examples/1.8.x/server-go/examples/databases/update-point-attribute.md @@ -0,0 +1,24 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/databases" +) + +client := client.New( + client.WithEndpoint("https://.cloud.appwrite.io/v1") + client.WithProject("") + client.WithKey("") +) + +service := databases.New(client) + +response, error := service.UpdatePointAttribute( + "", + "", + "", + false, + databases.WithUpdatePointAttributeDefault(interface{}{1, 2}), + databases.WithUpdatePointAttributeNewKey(""), +) diff --git a/docs/examples/1.8.x/server-go/examples/databases/update-polygon-attribute.md b/docs/examples/1.8.x/server-go/examples/databases/update-polygon-attribute.md new file mode 100644 index 0000000000..6499f3640f --- /dev/null +++ b/docs/examples/1.8.x/server-go/examples/databases/update-polygon-attribute.md @@ -0,0 +1,24 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/databases" +) + +client := client.New( + client.WithEndpoint("https://.cloud.appwrite.io/v1") + client.WithProject("") + client.WithKey("") +) + +service := databases.New(client) + +response, error := service.UpdatePolygonAttribute( + "", + "", + "", + false, + databases.WithUpdatePolygonAttributeDefault(interface{}{[[1, 2], [3, 4], [5, 6], [1, 2]]}), + databases.WithUpdatePolygonAttributeNewKey(""), +) diff --git a/docs/examples/1.8.x/server-go/examples/tablesdb/create-line-column.md b/docs/examples/1.8.x/server-go/examples/tablesdb/create-line-column.md new file mode 100644 index 0000000000..77b23f872c --- /dev/null +++ b/docs/examples/1.8.x/server-go/examples/tablesdb/create-line-column.md @@ -0,0 +1,23 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/tablesdb" +) + +client := client.New( + client.WithEndpoint("https://.cloud.appwrite.io/v1") + client.WithProject("") + client.WithKey("") +) + +service := tablesdb.New(client) + +response, error := service.CreateLineColumn( + "", + "", + "", + false, + tablesdb.WithCreateLineColumnDefault(interface{}{[1, 2], [3, 4], [5, 6]}), +) diff --git a/docs/examples/1.8.x/server-go/examples/tablesdb/create-point-column.md b/docs/examples/1.8.x/server-go/examples/tablesdb/create-point-column.md new file mode 100644 index 0000000000..7faaf786f8 --- /dev/null +++ b/docs/examples/1.8.x/server-go/examples/tablesdb/create-point-column.md @@ -0,0 +1,23 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/tablesdb" +) + +client := client.New( + client.WithEndpoint("https://.cloud.appwrite.io/v1") + client.WithProject("") + client.WithKey("") +) + +service := tablesdb.New(client) + +response, error := service.CreatePointColumn( + "", + "", + "", + false, + tablesdb.WithCreatePointColumnDefault(interface{}{1, 2}), +) diff --git a/docs/examples/1.8.x/server-go/examples/tablesdb/create-polygon-column.md b/docs/examples/1.8.x/server-go/examples/tablesdb/create-polygon-column.md new file mode 100644 index 0000000000..10946ef0fd --- /dev/null +++ b/docs/examples/1.8.x/server-go/examples/tablesdb/create-polygon-column.md @@ -0,0 +1,23 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/tablesdb" +) + +client := client.New( + client.WithEndpoint("https://.cloud.appwrite.io/v1") + client.WithProject("") + client.WithKey("") +) + +service := tablesdb.New(client) + +response, error := service.CreatePolygonColumn( + "", + "", + "", + false, + tablesdb.WithCreatePolygonColumnDefault(interface{}{[[1, 2], [3, 4], [5, 6], [1, 2]]}), +) diff --git a/docs/examples/1.8.x/server-go/examples/tablesdb/create-row.md b/docs/examples/1.8.x/server-go/examples/tablesdb/create-row.md index 2441fa3dd8..596f11cf75 100644 --- a/docs/examples/1.8.x/server-go/examples/tablesdb/create-row.md +++ b/docs/examples/1.8.x/server-go/examples/tablesdb/create-row.md @@ -18,6 +18,12 @@ response, error := service.CreateRow( "", "", "", - map[string]interface{}{}, + map[string]interface{}{ + "username": "walter.obrien", + "email": "walter.obrien@example.com", + "fullName": "Walter O'Brien", + "age": 30, + "isAdmin": false + }, tablesdb.WithCreateRowPermissions(interface{}{"read("any")"}), ) diff --git a/docs/examples/1.8.x/server-go/examples/tablesdb/update-line-column.md b/docs/examples/1.8.x/server-go/examples/tablesdb/update-line-column.md new file mode 100644 index 0000000000..397e0b735a --- /dev/null +++ b/docs/examples/1.8.x/server-go/examples/tablesdb/update-line-column.md @@ -0,0 +1,24 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/tablesdb" +) + +client := client.New( + client.WithEndpoint("https://.cloud.appwrite.io/v1") + client.WithProject("") + client.WithKey("") +) + +service := tablesdb.New(client) + +response, error := service.UpdateLineColumn( + "", + "", + "", + false, + tablesdb.WithUpdateLineColumnDefault(interface{}{[1, 2], [3, 4], [5, 6]}), + tablesdb.WithUpdateLineColumnNewKey(""), +) diff --git a/docs/examples/1.8.x/server-go/examples/tablesdb/update-point-column.md b/docs/examples/1.8.x/server-go/examples/tablesdb/update-point-column.md new file mode 100644 index 0000000000..970536a6af --- /dev/null +++ b/docs/examples/1.8.x/server-go/examples/tablesdb/update-point-column.md @@ -0,0 +1,24 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/tablesdb" +) + +client := client.New( + client.WithEndpoint("https://.cloud.appwrite.io/v1") + client.WithProject("") + client.WithKey("") +) + +service := tablesdb.New(client) + +response, error := service.UpdatePointColumn( + "", + "", + "", + false, + tablesdb.WithUpdatePointColumnDefault(interface{}{1, 2}), + tablesdb.WithUpdatePointColumnNewKey(""), +) diff --git a/docs/examples/1.8.x/server-go/examples/tablesdb/update-polygon-column.md b/docs/examples/1.8.x/server-go/examples/tablesdb/update-polygon-column.md new file mode 100644 index 0000000000..8e627d178d --- /dev/null +++ b/docs/examples/1.8.x/server-go/examples/tablesdb/update-polygon-column.md @@ -0,0 +1,24 @@ +package main + +import ( + "fmt" + "github.com/appwrite/sdk-for-go/client" + "github.com/appwrite/sdk-for-go/tablesdb" +) + +client := client.New( + client.WithEndpoint("https://.cloud.appwrite.io/v1") + client.WithProject("") + client.WithKey("") +) + +service := tablesdb.New(client) + +response, error := service.UpdatePolygonColumn( + "", + "", + "", + false, + tablesdb.WithUpdatePolygonColumnDefault(interface{}{[[1, 2], [3, 4], [5, 6], [1, 2]]}), + tablesdb.WithUpdatePolygonColumnNewKey(""), +) diff --git a/docs/examples/1.8.x/server-graphql/examples/account/update-prefs.md b/docs/examples/1.8.x/server-graphql/examples/account/update-prefs.md index 57280247e4..8138cf0227 100644 --- a/docs/examples/1.8.x/server-graphql/examples/account/update-prefs.md +++ b/docs/examples/1.8.x/server-graphql/examples/account/update-prefs.md @@ -1,6 +1,6 @@ mutation { accountUpdatePrefs( - prefs: "{}" + prefs: "{\"language\":\"en\",\"timezone\":\"UTC\",\"darkTheme\":true}" ) { _id _createdAt diff --git a/docs/examples/1.8.x/server-graphql/examples/databases/create-document.md b/docs/examples/1.8.x/server-graphql/examples/databases/create-document.md index 4f525d6b1f..39e4bba1cb 100644 --- a/docs/examples/1.8.x/server-graphql/examples/databases/create-document.md +++ b/docs/examples/1.8.x/server-graphql/examples/databases/create-document.md @@ -3,7 +3,7 @@ mutation { databaseId: "", collectionId: "", documentId: "", - data: "{}", + data: "{\"username\":\"walter.obrien\",\"email\":\"walter.obrien@example.com\",\"fullName\":\"Walter O'Brien\",\"age\":30,\"isAdmin\":false}", permissions: ["read("any")"] ) { _id diff --git a/docs/examples/1.8.x/server-graphql/examples/databases/create-line-attribute.md b/docs/examples/1.8.x/server-graphql/examples/databases/create-line-attribute.md new file mode 100644 index 0000000000..3ecff7a87d --- /dev/null +++ b/docs/examples/1.8.x/server-graphql/examples/databases/create-line-attribute.md @@ -0,0 +1,19 @@ +mutation { + databasesCreateLineAttribute( + databaseId: "", + collectionId: "", + key: "", + required: false, + default: [[1, 2], [3, 4], [5, 6]] + ) { + key + type + status + error + required + array + _createdAt + _updatedAt + default + } +} diff --git a/docs/examples/1.8.x/server-graphql/examples/databases/create-point-attribute.md b/docs/examples/1.8.x/server-graphql/examples/databases/create-point-attribute.md new file mode 100644 index 0000000000..f3ba5285d4 --- /dev/null +++ b/docs/examples/1.8.x/server-graphql/examples/databases/create-point-attribute.md @@ -0,0 +1,19 @@ +mutation { + databasesCreatePointAttribute( + databaseId: "", + collectionId: "", + key: "", + required: false, + default: [1, 2] + ) { + key + type + status + error + required + array + _createdAt + _updatedAt + default + } +} diff --git a/docs/examples/1.8.x/server-graphql/examples/databases/create-polygon-attribute.md b/docs/examples/1.8.x/server-graphql/examples/databases/create-polygon-attribute.md new file mode 100644 index 0000000000..19caa389a5 --- /dev/null +++ b/docs/examples/1.8.x/server-graphql/examples/databases/create-polygon-attribute.md @@ -0,0 +1,19 @@ +mutation { + databasesCreatePolygonAttribute( + databaseId: "", + collectionId: "", + key: "", + required: false, + default: [[[1, 2], [3, 4], [5, 6], [1, 2]]] + ) { + key + type + status + error + required + array + _createdAt + _updatedAt + default + } +} diff --git a/docs/examples/1.8.x/server-graphql/examples/databases/update-line-attribute.md b/docs/examples/1.8.x/server-graphql/examples/databases/update-line-attribute.md new file mode 100644 index 0000000000..2f96ecf958 --- /dev/null +++ b/docs/examples/1.8.x/server-graphql/examples/databases/update-line-attribute.md @@ -0,0 +1,20 @@ +mutation { + databasesUpdateLineAttribute( + databaseId: "", + collectionId: "", + key: "", + required: false, + default: [[1, 2], [3, 4], [5, 6]], + newKey: "" + ) { + key + type + status + error + required + array + _createdAt + _updatedAt + default + } +} diff --git a/docs/examples/1.8.x/server-graphql/examples/databases/update-point-attribute.md b/docs/examples/1.8.x/server-graphql/examples/databases/update-point-attribute.md new file mode 100644 index 0000000000..b031c3a6ea --- /dev/null +++ b/docs/examples/1.8.x/server-graphql/examples/databases/update-point-attribute.md @@ -0,0 +1,20 @@ +mutation { + databasesUpdatePointAttribute( + databaseId: "", + collectionId: "", + key: "", + required: false, + default: [1, 2], + newKey: "" + ) { + key + type + status + error + required + array + _createdAt + _updatedAt + default + } +} diff --git a/docs/examples/1.8.x/server-graphql/examples/databases/update-polygon-attribute.md b/docs/examples/1.8.x/server-graphql/examples/databases/update-polygon-attribute.md new file mode 100644 index 0000000000..59498299c6 --- /dev/null +++ b/docs/examples/1.8.x/server-graphql/examples/databases/update-polygon-attribute.md @@ -0,0 +1,20 @@ +mutation { + databasesUpdatePolygonAttribute( + databaseId: "", + collectionId: "", + key: "", + required: false, + default: [[[1, 2], [3, 4], [5, 6], [1, 2]]], + newKey: "" + ) { + key + type + status + error + required + array + _createdAt + _updatedAt + default + } +} diff --git a/docs/examples/1.8.x/server-graphql/examples/tablesdb/create-line-column.md b/docs/examples/1.8.x/server-graphql/examples/tablesdb/create-line-column.md new file mode 100644 index 0000000000..67fed4416c --- /dev/null +++ b/docs/examples/1.8.x/server-graphql/examples/tablesdb/create-line-column.md @@ -0,0 +1,19 @@ +mutation { + tablesDBCreateLineColumn( + databaseId: "", + tableId: "", + key: "", + required: false, + default: [[1, 2], [3, 4], [5, 6]] + ) { + key + type + status + error + required + array + _createdAt + _updatedAt + default + } +} diff --git a/docs/examples/1.8.x/server-graphql/examples/tablesdb/create-point-column.md b/docs/examples/1.8.x/server-graphql/examples/tablesdb/create-point-column.md new file mode 100644 index 0000000000..20f31dc9c1 --- /dev/null +++ b/docs/examples/1.8.x/server-graphql/examples/tablesdb/create-point-column.md @@ -0,0 +1,19 @@ +mutation { + tablesDBCreatePointColumn( + databaseId: "", + tableId: "", + key: "", + required: false, + default: [1, 2] + ) { + key + type + status + error + required + array + _createdAt + _updatedAt + default + } +} diff --git a/docs/examples/1.8.x/server-graphql/examples/tablesdb/create-polygon-column.md b/docs/examples/1.8.x/server-graphql/examples/tablesdb/create-polygon-column.md new file mode 100644 index 0000000000..7f349c03b9 --- /dev/null +++ b/docs/examples/1.8.x/server-graphql/examples/tablesdb/create-polygon-column.md @@ -0,0 +1,19 @@ +mutation { + tablesDBCreatePolygonColumn( + databaseId: "", + tableId: "", + key: "", + required: false, + default: [[[1, 2], [3, 4], [5, 6], [1, 2]]] + ) { + key + type + status + error + required + array + _createdAt + _updatedAt + default + } +} diff --git a/docs/examples/1.8.x/server-graphql/examples/tablesdb/create-row.md b/docs/examples/1.8.x/server-graphql/examples/tablesdb/create-row.md index 621e46a64e..c7d2ec7d03 100644 --- a/docs/examples/1.8.x/server-graphql/examples/tablesdb/create-row.md +++ b/docs/examples/1.8.x/server-graphql/examples/tablesdb/create-row.md @@ -3,7 +3,7 @@ mutation { databaseId: "", tableId: "", rowId: "", - data: "{}", + data: "{\"username\":\"walter.obrien\",\"email\":\"walter.obrien@example.com\",\"fullName\":\"Walter O'Brien\",\"age\":30,\"isAdmin\":false}", permissions: ["read("any")"] ) { _id diff --git a/docs/examples/1.8.x/server-graphql/examples/tablesdb/update-line-column.md b/docs/examples/1.8.x/server-graphql/examples/tablesdb/update-line-column.md new file mode 100644 index 0000000000..ebb7bb1749 --- /dev/null +++ b/docs/examples/1.8.x/server-graphql/examples/tablesdb/update-line-column.md @@ -0,0 +1,20 @@ +mutation { + tablesDBUpdateLineColumn( + databaseId: "", + tableId: "", + key: "", + required: false, + default: [[1, 2], [3, 4], [5, 6]], + newKey: "" + ) { + key + type + status + error + required + array + _createdAt + _updatedAt + default + } +} diff --git a/docs/examples/1.8.x/server-graphql/examples/tablesdb/update-point-column.md b/docs/examples/1.8.x/server-graphql/examples/tablesdb/update-point-column.md new file mode 100644 index 0000000000..81d75c3b19 --- /dev/null +++ b/docs/examples/1.8.x/server-graphql/examples/tablesdb/update-point-column.md @@ -0,0 +1,20 @@ +mutation { + tablesDBUpdatePointColumn( + databaseId: "", + tableId: "", + key: "", + required: false, + default: [1, 2], + newKey: "" + ) { + key + type + status + error + required + array + _createdAt + _updatedAt + default + } +} diff --git a/docs/examples/1.8.x/server-graphql/examples/tablesdb/update-polygon-column.md b/docs/examples/1.8.x/server-graphql/examples/tablesdb/update-polygon-column.md new file mode 100644 index 0000000000..3b291a452c --- /dev/null +++ b/docs/examples/1.8.x/server-graphql/examples/tablesdb/update-polygon-column.md @@ -0,0 +1,20 @@ +mutation { + tablesDBUpdatePolygonColumn( + databaseId: "", + tableId: "", + key: "", + required: false, + default: [[[1, 2], [3, 4], [5, 6], [1, 2]]], + newKey: "" + ) { + key + type + status + error + required + array + _createdAt + _updatedAt + default + } +} diff --git a/docs/examples/1.8.x/server-kotlin/java/account/update-prefs.md b/docs/examples/1.8.x/server-kotlin/java/account/update-prefs.md index 0e900d0a66..0b6893916b 100644 --- a/docs/examples/1.8.x/server-kotlin/java/account/update-prefs.md +++ b/docs/examples/1.8.x/server-kotlin/java/account/update-prefs.md @@ -10,7 +10,11 @@ Client client = new Client() Account account = new Account(client); account.updatePrefs( - mapOf( "a" to "b" ), // prefs + mapOf( + "language" to "en", + "timezone" to "UTC", + "darkTheme" to true + ), // prefs new CoroutineCallback<>((result, error) -> { if (error != null) { error.printStackTrace(); diff --git a/docs/examples/1.8.x/server-kotlin/java/databases/create-document.md b/docs/examples/1.8.x/server-kotlin/java/databases/create-document.md index 5231be33d6..d5e777d157 100644 --- a/docs/examples/1.8.x/server-kotlin/java/databases/create-document.md +++ b/docs/examples/1.8.x/server-kotlin/java/databases/create-document.md @@ -13,7 +13,13 @@ databases.createDocument( "", // databaseId "", // collectionId "", // documentId - mapOf( "a" to "b" ), // data + mapOf( + "username" to "walter.obrien", + "email" to "walter.obrien@example.com", + "fullName" to "Walter O'Brien", + "age" to 30, + "isAdmin" to false + ), // data listOf("read("any")"), // permissions (optional) new CoroutineCallback<>((result, error) -> { if (error != null) { diff --git a/docs/examples/1.8.x/server-kotlin/java/databases/create-line-attribute.md b/docs/examples/1.8.x/server-kotlin/java/databases/create-line-attribute.md new file mode 100644 index 0000000000..ad988b8773 --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/java/databases/create-line-attribute.md @@ -0,0 +1,27 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Databases; + +Client client = new Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey(""); // Your secret API key + +Databases databases = new Databases(client); + +databases.createLineAttribute( + "", // databaseId + "", // collectionId + "", // key + false, // required + listOf([1, 2], [3, 4], [5, 6]), // default (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.8.x/server-kotlin/java/databases/create-point-attribute.md b/docs/examples/1.8.x/server-kotlin/java/databases/create-point-attribute.md new file mode 100644 index 0000000000..89d7cc7177 --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/java/databases/create-point-attribute.md @@ -0,0 +1,27 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Databases; + +Client client = new Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey(""); // Your secret API key + +Databases databases = new Databases(client); + +databases.createPointAttribute( + "", // databaseId + "", // collectionId + "", // key + false, // required + listOf(1, 2), // default (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.8.x/server-kotlin/java/databases/create-polygon-attribute.md b/docs/examples/1.8.x/server-kotlin/java/databases/create-polygon-attribute.md new file mode 100644 index 0000000000..556fb38481 --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/java/databases/create-polygon-attribute.md @@ -0,0 +1,27 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Databases; + +Client client = new Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey(""); // Your secret API key + +Databases databases = new Databases(client); + +databases.createPolygonAttribute( + "", // databaseId + "", // collectionId + "", // key + false, // required + listOf([[1, 2], [3, 4], [5, 6], [1, 2]]), // default (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.8.x/server-kotlin/java/databases/update-line-attribute.md b/docs/examples/1.8.x/server-kotlin/java/databases/update-line-attribute.md new file mode 100644 index 0000000000..6a4265bbda --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/java/databases/update-line-attribute.md @@ -0,0 +1,28 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Databases; + +Client client = new Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey(""); // Your secret API key + +Databases databases = new Databases(client); + +databases.updateLineAttribute( + "", // databaseId + "", // collectionId + "", // key + false, // required + listOf([1, 2], [3, 4], [5, 6]), // default (optional) + "", // newKey (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.8.x/server-kotlin/java/databases/update-point-attribute.md b/docs/examples/1.8.x/server-kotlin/java/databases/update-point-attribute.md new file mode 100644 index 0000000000..38d48c27e8 --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/java/databases/update-point-attribute.md @@ -0,0 +1,28 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Databases; + +Client client = new Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey(""); // Your secret API key + +Databases databases = new Databases(client); + +databases.updatePointAttribute( + "", // databaseId + "", // collectionId + "", // key + false, // required + listOf(1, 2), // default (optional) + "", // newKey (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.8.x/server-kotlin/java/databases/update-polygon-attribute.md b/docs/examples/1.8.x/server-kotlin/java/databases/update-polygon-attribute.md new file mode 100644 index 0000000000..6e6fd08575 --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/java/databases/update-polygon-attribute.md @@ -0,0 +1,28 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.Databases; + +Client client = new Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey(""); // Your secret API key + +Databases databases = new Databases(client); + +databases.updatePolygonAttribute( + "", // databaseId + "", // collectionId + "", // key + false, // required + listOf([[1, 2], [3, 4], [5, 6], [1, 2]]), // default (optional) + "", // newKey (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.8.x/server-kotlin/java/tablesdb/create-line-column.md b/docs/examples/1.8.x/server-kotlin/java/tablesdb/create-line-column.md new file mode 100644 index 0000000000..afe029ebe8 --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/java/tablesdb/create-line-column.md @@ -0,0 +1,27 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.TablesDB; + +Client client = new Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey(""); // Your secret API key + +TablesDB tablesDB = new TablesDB(client); + +tablesDB.createLineColumn( + "", // databaseId + "", // tableId + "", // key + false, // required + listOf([1, 2], [3, 4], [5, 6]), // default (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.8.x/server-kotlin/java/tablesdb/create-point-column.md b/docs/examples/1.8.x/server-kotlin/java/tablesdb/create-point-column.md new file mode 100644 index 0000000000..2c9941b09c --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/java/tablesdb/create-point-column.md @@ -0,0 +1,27 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.TablesDB; + +Client client = new Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey(""); // Your secret API key + +TablesDB tablesDB = new TablesDB(client); + +tablesDB.createPointColumn( + "", // databaseId + "", // tableId + "", // key + false, // required + listOf(1, 2), // default (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.8.x/server-kotlin/java/tablesdb/create-polygon-column.md b/docs/examples/1.8.x/server-kotlin/java/tablesdb/create-polygon-column.md new file mode 100644 index 0000000000..58ca798381 --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/java/tablesdb/create-polygon-column.md @@ -0,0 +1,27 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.TablesDB; + +Client client = new Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey(""); // Your secret API key + +TablesDB tablesDB = new TablesDB(client); + +tablesDB.createPolygonColumn( + "", // databaseId + "", // tableId + "", // key + false, // required + listOf([[1, 2], [3, 4], [5, 6], [1, 2]]), // default (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.8.x/server-kotlin/java/tablesdb/create-row.md b/docs/examples/1.8.x/server-kotlin/java/tablesdb/create-row.md index 4145022015..6c7d84702d 100644 --- a/docs/examples/1.8.x/server-kotlin/java/tablesdb/create-row.md +++ b/docs/examples/1.8.x/server-kotlin/java/tablesdb/create-row.md @@ -13,7 +13,13 @@ tablesDB.createRow( "", // databaseId "", // tableId "", // rowId - mapOf( "a" to "b" ), // data + mapOf( + "username" to "walter.obrien", + "email" to "walter.obrien@example.com", + "fullName" to "Walter O'Brien", + "age" to 30, + "isAdmin" to false + ), // data listOf("read("any")"), // permissions (optional) new CoroutineCallback<>((result, error) -> { if (error != null) { diff --git a/docs/examples/1.8.x/server-kotlin/java/tablesdb/update-line-column.md b/docs/examples/1.8.x/server-kotlin/java/tablesdb/update-line-column.md new file mode 100644 index 0000000000..4c65a907f7 --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/java/tablesdb/update-line-column.md @@ -0,0 +1,28 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.TablesDB; + +Client client = new Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey(""); // Your secret API key + +TablesDB tablesDB = new TablesDB(client); + +tablesDB.updateLineColumn( + "", // databaseId + "", // tableId + "", // key + false, // required + listOf([1, 2], [3, 4], [5, 6]), // default (optional) + "", // newKey (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.8.x/server-kotlin/java/tablesdb/update-point-column.md b/docs/examples/1.8.x/server-kotlin/java/tablesdb/update-point-column.md new file mode 100644 index 0000000000..56ac86a6f0 --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/java/tablesdb/update-point-column.md @@ -0,0 +1,28 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.TablesDB; + +Client client = new Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey(""); // Your secret API key + +TablesDB tablesDB = new TablesDB(client); + +tablesDB.updatePointColumn( + "", // databaseId + "", // tableId + "", // key + false, // required + listOf(1, 2), // default (optional) + "", // newKey (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.8.x/server-kotlin/java/tablesdb/update-polygon-column.md b/docs/examples/1.8.x/server-kotlin/java/tablesdb/update-polygon-column.md new file mode 100644 index 0000000000..189d473175 --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/java/tablesdb/update-polygon-column.md @@ -0,0 +1,28 @@ +import io.appwrite.Client; +import io.appwrite.coroutines.CoroutineCallback; +import io.appwrite.services.TablesDB; + +Client client = new Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey(""); // Your secret API key + +TablesDB tablesDB = new TablesDB(client); + +tablesDB.updatePolygonColumn( + "", // databaseId + "", // tableId + "", // key + false, // required + listOf([[1, 2], [3, 4], [5, 6], [1, 2]]), // default (optional) + "", // newKey (optional) + new CoroutineCallback<>((result, error) -> { + if (error != null) { + error.printStackTrace(); + return; + } + + System.out.println(result); + }) +); + diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/account/update-prefs.md b/docs/examples/1.8.x/server-kotlin/kotlin/account/update-prefs.md index dafee7c0e5..63e66ca44a 100644 --- a/docs/examples/1.8.x/server-kotlin/kotlin/account/update-prefs.md +++ b/docs/examples/1.8.x/server-kotlin/kotlin/account/update-prefs.md @@ -10,5 +10,9 @@ val client = Client() val account = Account(client) val response = account.updatePrefs( - prefs = mapOf( "a" to "b" ) + prefs = mapOf( + "language" to "en", + "timezone" to "UTC", + "darkTheme" to true + ) ) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/databases/create-document.md b/docs/examples/1.8.x/server-kotlin/kotlin/databases/create-document.md index 695fdbdfaa..1c1d628729 100644 --- a/docs/examples/1.8.x/server-kotlin/kotlin/databases/create-document.md +++ b/docs/examples/1.8.x/server-kotlin/kotlin/databases/create-document.md @@ -13,6 +13,12 @@ val response = databases.createDocument( databaseId = "", collectionId = "", documentId = "", - data = mapOf( "a" to "b" ), + data = mapOf( + "username" to "walter.obrien", + "email" to "walter.obrien@example.com", + "fullName" to "Walter O'Brien", + "age" to 30, + "isAdmin" to false + ), permissions = listOf("read("any")") // optional ) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/databases/create-line-attribute.md b/docs/examples/1.8.x/server-kotlin/kotlin/databases/create-line-attribute.md new file mode 100644 index 0000000000..af9a4d2425 --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/kotlin/databases/create-line-attribute.md @@ -0,0 +1,18 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Databases + +val client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +val databases = Databases(client) + +val response = databases.createLineAttribute( + databaseId = "", + collectionId = "", + key = "", + required = false, + default = listOf([1, 2], [3, 4], [5, 6]) // optional +) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/databases/create-point-attribute.md b/docs/examples/1.8.x/server-kotlin/kotlin/databases/create-point-attribute.md new file mode 100644 index 0000000000..04f095ee4e --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/kotlin/databases/create-point-attribute.md @@ -0,0 +1,18 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Databases + +val client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +val databases = Databases(client) + +val response = databases.createPointAttribute( + databaseId = "", + collectionId = "", + key = "", + required = false, + default = listOf(1, 2) // optional +) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/databases/create-polygon-attribute.md b/docs/examples/1.8.x/server-kotlin/kotlin/databases/create-polygon-attribute.md new file mode 100644 index 0000000000..ffeb3c4398 --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/kotlin/databases/create-polygon-attribute.md @@ -0,0 +1,18 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Databases + +val client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +val databases = Databases(client) + +val response = databases.createPolygonAttribute( + databaseId = "", + collectionId = "", + key = "", + required = false, + default = listOf([[1, 2], [3, 4], [5, 6], [1, 2]]) // optional +) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/databases/update-line-attribute.md b/docs/examples/1.8.x/server-kotlin/kotlin/databases/update-line-attribute.md new file mode 100644 index 0000000000..0d6b40a2d8 --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/kotlin/databases/update-line-attribute.md @@ -0,0 +1,19 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Databases + +val client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +val databases = Databases(client) + +val response = databases.updateLineAttribute( + databaseId = "", + collectionId = "", + key = "", + required = false, + default = listOf([1, 2], [3, 4], [5, 6]), // optional + newKey = "" // optional +) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/databases/update-point-attribute.md b/docs/examples/1.8.x/server-kotlin/kotlin/databases/update-point-attribute.md new file mode 100644 index 0000000000..68d5311c98 --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/kotlin/databases/update-point-attribute.md @@ -0,0 +1,19 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Databases + +val client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +val databases = Databases(client) + +val response = databases.updatePointAttribute( + databaseId = "", + collectionId = "", + key = "", + required = false, + default = listOf(1, 2), // optional + newKey = "" // optional +) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/databases/update-polygon-attribute.md b/docs/examples/1.8.x/server-kotlin/kotlin/databases/update-polygon-attribute.md new file mode 100644 index 0000000000..66bbdea11c --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/kotlin/databases/update-polygon-attribute.md @@ -0,0 +1,19 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.Databases + +val client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +val databases = Databases(client) + +val response = databases.updatePolygonAttribute( + databaseId = "", + collectionId = "", + key = "", + required = false, + default = listOf([[1, 2], [3, 4], [5, 6], [1, 2]]), // optional + newKey = "" // optional +) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/tablesdb/create-line-column.md b/docs/examples/1.8.x/server-kotlin/kotlin/tablesdb/create-line-column.md new file mode 100644 index 0000000000..3dd9ebd083 --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/kotlin/tablesdb/create-line-column.md @@ -0,0 +1,18 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.TablesDB + +val client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +val tablesDB = TablesDB(client) + +val response = tablesDB.createLineColumn( + databaseId = "", + tableId = "", + key = "", + required = false, + default = listOf([1, 2], [3, 4], [5, 6]) // optional +) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/tablesdb/create-point-column.md b/docs/examples/1.8.x/server-kotlin/kotlin/tablesdb/create-point-column.md new file mode 100644 index 0000000000..7fd6ad7504 --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/kotlin/tablesdb/create-point-column.md @@ -0,0 +1,18 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.TablesDB + +val client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +val tablesDB = TablesDB(client) + +val response = tablesDB.createPointColumn( + databaseId = "", + tableId = "", + key = "", + required = false, + default = listOf(1, 2) // optional +) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/tablesdb/create-polygon-column.md b/docs/examples/1.8.x/server-kotlin/kotlin/tablesdb/create-polygon-column.md new file mode 100644 index 0000000000..218b4cba33 --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/kotlin/tablesdb/create-polygon-column.md @@ -0,0 +1,18 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.TablesDB + +val client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +val tablesDB = TablesDB(client) + +val response = tablesDB.createPolygonColumn( + databaseId = "", + tableId = "", + key = "", + required = false, + default = listOf([[1, 2], [3, 4], [5, 6], [1, 2]]) // optional +) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/tablesdb/create-row.md b/docs/examples/1.8.x/server-kotlin/kotlin/tablesdb/create-row.md index 6a5b188166..774800d8f4 100644 --- a/docs/examples/1.8.x/server-kotlin/kotlin/tablesdb/create-row.md +++ b/docs/examples/1.8.x/server-kotlin/kotlin/tablesdb/create-row.md @@ -13,6 +13,12 @@ val response = tablesDB.createRow( databaseId = "", tableId = "", rowId = "", - data = mapOf( "a" to "b" ), + data = mapOf( + "username" to "walter.obrien", + "email" to "walter.obrien@example.com", + "fullName" to "Walter O'Brien", + "age" to 30, + "isAdmin" to false + ), permissions = listOf("read("any")") // optional ) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/tablesdb/update-line-column.md b/docs/examples/1.8.x/server-kotlin/kotlin/tablesdb/update-line-column.md new file mode 100644 index 0000000000..571d25206c --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/kotlin/tablesdb/update-line-column.md @@ -0,0 +1,19 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.TablesDB + +val client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +val tablesDB = TablesDB(client) + +val response = tablesDB.updateLineColumn( + databaseId = "", + tableId = "", + key = "", + required = false, + default = listOf([1, 2], [3, 4], [5, 6]), // optional + newKey = "" // optional +) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/tablesdb/update-point-column.md b/docs/examples/1.8.x/server-kotlin/kotlin/tablesdb/update-point-column.md new file mode 100644 index 0000000000..2230e59f8e --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/kotlin/tablesdb/update-point-column.md @@ -0,0 +1,19 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.TablesDB + +val client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +val tablesDB = TablesDB(client) + +val response = tablesDB.updatePointColumn( + databaseId = "", + tableId = "", + key = "", + required = false, + default = listOf(1, 2), // optional + newKey = "" // optional +) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/tablesdb/update-polygon-column.md b/docs/examples/1.8.x/server-kotlin/kotlin/tablesdb/update-polygon-column.md new file mode 100644 index 0000000000..db3a46bc6c --- /dev/null +++ b/docs/examples/1.8.x/server-kotlin/kotlin/tablesdb/update-polygon-column.md @@ -0,0 +1,19 @@ +import io.appwrite.Client +import io.appwrite.coroutines.CoroutineCallback +import io.appwrite.services.TablesDB + +val client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +val tablesDB = TablesDB(client) + +val response = tablesDB.updatePolygonColumn( + databaseId = "", + tableId = "", + key = "", + required = false, + default = listOf([[1, 2], [3, 4], [5, 6], [1, 2]]), // optional + newKey = "" // optional +) diff --git a/docs/examples/1.8.x/server-nodejs/examples/account/update-prefs.md b/docs/examples/1.8.x/server-nodejs/examples/account/update-prefs.md index 113f8678df..ba41cf807e 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/account/update-prefs.md +++ b/docs/examples/1.8.x/server-nodejs/examples/account/update-prefs.md @@ -8,5 +8,9 @@ const client = new sdk.Client() const account = new sdk.Account(client); const result = await account.updatePrefs({ - prefs: {} + prefs: { + "language": "en", + "timezone": "UTC", + "darkTheme": true + } }); diff --git a/docs/examples/1.8.x/server-nodejs/examples/databases/create-document.md b/docs/examples/1.8.x/server-nodejs/examples/databases/create-document.md index 39442d1cb7..175e06301e 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/databases/create-document.md +++ b/docs/examples/1.8.x/server-nodejs/examples/databases/create-document.md @@ -11,6 +11,12 @@ const result = await databases.createDocument({ databaseId: '', collectionId: '', documentId: '', - data: {}, + data: { + "username": "walter.obrien", + "email": "walter.obrien@example.com", + "fullName": "Walter O'Brien", + "age": 30, + "isAdmin": false + }, permissions: ["read("any")"] // optional }); diff --git a/docs/examples/1.8.x/server-nodejs/examples/databases/create-line-attribute.md b/docs/examples/1.8.x/server-nodejs/examples/databases/create-line-attribute.md new file mode 100644 index 0000000000..160bb5b9dc --- /dev/null +++ b/docs/examples/1.8.x/server-nodejs/examples/databases/create-line-attribute.md @@ -0,0 +1,16 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const databases = new sdk.Databases(client); + +const result = await databases.createLineAttribute({ + databaseId: '', + collectionId: '', + key: '', + required: false, + default: [[1, 2], [3, 4], [5, 6]] // optional +}); diff --git a/docs/examples/1.8.x/server-nodejs/examples/databases/create-point-attribute.md b/docs/examples/1.8.x/server-nodejs/examples/databases/create-point-attribute.md new file mode 100644 index 0000000000..e65f5bd58d --- /dev/null +++ b/docs/examples/1.8.x/server-nodejs/examples/databases/create-point-attribute.md @@ -0,0 +1,16 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const databases = new sdk.Databases(client); + +const result = await databases.createPointAttribute({ + databaseId: '', + collectionId: '', + key: '', + required: false, + default: [1, 2] // optional +}); diff --git a/docs/examples/1.8.x/server-nodejs/examples/databases/create-polygon-attribute.md b/docs/examples/1.8.x/server-nodejs/examples/databases/create-polygon-attribute.md new file mode 100644 index 0000000000..3d51887414 --- /dev/null +++ b/docs/examples/1.8.x/server-nodejs/examples/databases/create-polygon-attribute.md @@ -0,0 +1,16 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const databases = new sdk.Databases(client); + +const result = await databases.createPolygonAttribute({ + databaseId: '', + collectionId: '', + key: '', + required: false, + default: [[[1, 2], [3, 4], [5, 6], [1, 2]]] // optional +}); diff --git a/docs/examples/1.8.x/server-nodejs/examples/databases/update-line-attribute.md b/docs/examples/1.8.x/server-nodejs/examples/databases/update-line-attribute.md new file mode 100644 index 0000000000..3c4d785def --- /dev/null +++ b/docs/examples/1.8.x/server-nodejs/examples/databases/update-line-attribute.md @@ -0,0 +1,17 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const databases = new sdk.Databases(client); + +const result = await databases.updateLineAttribute({ + databaseId: '', + collectionId: '', + key: '', + required: false, + default: [[1, 2], [3, 4], [5, 6]], // optional + newKey: '' // optional +}); diff --git a/docs/examples/1.8.x/server-nodejs/examples/databases/update-point-attribute.md b/docs/examples/1.8.x/server-nodejs/examples/databases/update-point-attribute.md new file mode 100644 index 0000000000..0da3b338a4 --- /dev/null +++ b/docs/examples/1.8.x/server-nodejs/examples/databases/update-point-attribute.md @@ -0,0 +1,17 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const databases = new sdk.Databases(client); + +const result = await databases.updatePointAttribute({ + databaseId: '', + collectionId: '', + key: '', + required: false, + default: [1, 2], // optional + newKey: '' // optional +}); diff --git a/docs/examples/1.8.x/server-nodejs/examples/databases/update-polygon-attribute.md b/docs/examples/1.8.x/server-nodejs/examples/databases/update-polygon-attribute.md new file mode 100644 index 0000000000..c7767cb902 --- /dev/null +++ b/docs/examples/1.8.x/server-nodejs/examples/databases/update-polygon-attribute.md @@ -0,0 +1,17 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const databases = new sdk.Databases(client); + +const result = await databases.updatePolygonAttribute({ + databaseId: '', + collectionId: '', + key: '', + required: false, + default: [[[1, 2], [3, 4], [5, 6], [1, 2]]], // optional + newKey: '' // optional +}); diff --git a/docs/examples/1.8.x/server-nodejs/examples/tablesdb/create-line-column.md b/docs/examples/1.8.x/server-nodejs/examples/tablesdb/create-line-column.md new file mode 100644 index 0000000000..84b941c38d --- /dev/null +++ b/docs/examples/1.8.x/server-nodejs/examples/tablesdb/create-line-column.md @@ -0,0 +1,16 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const tablesDB = new sdk.TablesDB(client); + +const result = await tablesDB.createLineColumn({ + databaseId: '', + tableId: '', + key: '', + required: false, + default: [[1, 2], [3, 4], [5, 6]] // optional +}); diff --git a/docs/examples/1.8.x/server-nodejs/examples/tablesdb/create-point-column.md b/docs/examples/1.8.x/server-nodejs/examples/tablesdb/create-point-column.md new file mode 100644 index 0000000000..c59e420ee3 --- /dev/null +++ b/docs/examples/1.8.x/server-nodejs/examples/tablesdb/create-point-column.md @@ -0,0 +1,16 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const tablesDB = new sdk.TablesDB(client); + +const result = await tablesDB.createPointColumn({ + databaseId: '', + tableId: '', + key: '', + required: false, + default: [1, 2] // optional +}); diff --git a/docs/examples/1.8.x/server-nodejs/examples/tablesdb/create-polygon-column.md b/docs/examples/1.8.x/server-nodejs/examples/tablesdb/create-polygon-column.md new file mode 100644 index 0000000000..36f2f4ca5c --- /dev/null +++ b/docs/examples/1.8.x/server-nodejs/examples/tablesdb/create-polygon-column.md @@ -0,0 +1,16 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const tablesDB = new sdk.TablesDB(client); + +const result = await tablesDB.createPolygonColumn({ + databaseId: '', + tableId: '', + key: '', + required: false, + default: [[[1, 2], [3, 4], [5, 6], [1, 2]]] // optional +}); diff --git a/docs/examples/1.8.x/server-nodejs/examples/tablesdb/create-row.md b/docs/examples/1.8.x/server-nodejs/examples/tablesdb/create-row.md index aa9242301e..29ddab6652 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/tablesdb/create-row.md +++ b/docs/examples/1.8.x/server-nodejs/examples/tablesdb/create-row.md @@ -11,6 +11,12 @@ const result = await tablesDB.createRow({ databaseId: '', tableId: '', rowId: '', - data: {}, + data: { + "username": "walter.obrien", + "email": "walter.obrien@example.com", + "fullName": "Walter O'Brien", + "age": 30, + "isAdmin": false + }, permissions: ["read("any")"] // optional }); diff --git a/docs/examples/1.8.x/server-nodejs/examples/tablesdb/update-line-column.md b/docs/examples/1.8.x/server-nodejs/examples/tablesdb/update-line-column.md new file mode 100644 index 0000000000..4ec0abe5f9 --- /dev/null +++ b/docs/examples/1.8.x/server-nodejs/examples/tablesdb/update-line-column.md @@ -0,0 +1,17 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const tablesDB = new sdk.TablesDB(client); + +const result = await tablesDB.updateLineColumn({ + databaseId: '', + tableId: '', + key: '', + required: false, + default: [[1, 2], [3, 4], [5, 6]], // optional + newKey: '' // optional +}); diff --git a/docs/examples/1.8.x/server-nodejs/examples/tablesdb/update-point-column.md b/docs/examples/1.8.x/server-nodejs/examples/tablesdb/update-point-column.md new file mode 100644 index 0000000000..cddb1989af --- /dev/null +++ b/docs/examples/1.8.x/server-nodejs/examples/tablesdb/update-point-column.md @@ -0,0 +1,17 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const tablesDB = new sdk.TablesDB(client); + +const result = await tablesDB.updatePointColumn({ + databaseId: '', + tableId: '', + key: '', + required: false, + default: [1, 2], // optional + newKey: '' // optional +}); diff --git a/docs/examples/1.8.x/server-nodejs/examples/tablesdb/update-polygon-column.md b/docs/examples/1.8.x/server-nodejs/examples/tablesdb/update-polygon-column.md new file mode 100644 index 0000000000..963db8bae7 --- /dev/null +++ b/docs/examples/1.8.x/server-nodejs/examples/tablesdb/update-polygon-column.md @@ -0,0 +1,17 @@ +const sdk = require('node-appwrite'); + +const client = new sdk.Client() + .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + .setProject('') // Your project ID + .setKey(''); // Your secret API key + +const tablesDB = new sdk.TablesDB(client); + +const result = await tablesDB.updatePolygonColumn({ + databaseId: '', + tableId: '', + key: '', + required: false, + default: [[[1, 2], [3, 4], [5, 6], [1, 2]]], // optional + newKey: '' // optional +}); diff --git a/docs/examples/1.8.x/server-php/examples/account/update-prefs.md b/docs/examples/1.8.x/server-php/examples/account/update-prefs.md index 698da0fd8a..f6a1003099 100644 --- a/docs/examples/1.8.x/server-php/examples/account/update-prefs.md +++ b/docs/examples/1.8.x/server-php/examples/account/update-prefs.md @@ -11,5 +11,9 @@ $client = (new Client()) $account = new Account($client); $result = $account->updatePrefs( - prefs: [] + prefs: [ + 'language' => 'en', + 'timezone' => 'UTC', + 'darkTheme' => true + ] ); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/databases/create-document.md b/docs/examples/1.8.x/server-php/examples/databases/create-document.md index bf1ee3f62a..9f2e8f3643 100644 --- a/docs/examples/1.8.x/server-php/examples/databases/create-document.md +++ b/docs/examples/1.8.x/server-php/examples/databases/create-document.md @@ -14,6 +14,12 @@ $result = $databases->createDocument( databaseId: '', collectionId: '', documentId: '', - data: [], + data: [ + 'username' => 'walter.obrien', + 'email' => 'walter.obrien@example.com', + 'fullName' => 'Walter O'Brien', + 'age' => 30, + 'isAdmin' => false + ], permissions: ["read("any")"] // optional ); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/databases/create-line-attribute.md b/docs/examples/1.8.x/server-php/examples/databases/create-line-attribute.md new file mode 100644 index 0000000000..56d007c67c --- /dev/null +++ b/docs/examples/1.8.x/server-php/examples/databases/create-line-attribute.md @@ -0,0 +1,19 @@ +setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('') // Your project ID + ->setKey(''); // Your secret API key + +$databases = new Databases($client); + +$result = $databases->createLineAttribute( + databaseId: '', + collectionId: '', + key: '', + required: false, + default: [[1, 2], [3, 4], [5, 6]] // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/databases/create-point-attribute.md b/docs/examples/1.8.x/server-php/examples/databases/create-point-attribute.md new file mode 100644 index 0000000000..dee0801178 --- /dev/null +++ b/docs/examples/1.8.x/server-php/examples/databases/create-point-attribute.md @@ -0,0 +1,19 @@ +setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('') // Your project ID + ->setKey(''); // Your secret API key + +$databases = new Databases($client); + +$result = $databases->createPointAttribute( + databaseId: '', + collectionId: '', + key: '', + required: false, + default: [1, 2] // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/databases/create-polygon-attribute.md b/docs/examples/1.8.x/server-php/examples/databases/create-polygon-attribute.md new file mode 100644 index 0000000000..d745589329 --- /dev/null +++ b/docs/examples/1.8.x/server-php/examples/databases/create-polygon-attribute.md @@ -0,0 +1,19 @@ +setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('') // Your project ID + ->setKey(''); // Your secret API key + +$databases = new Databases($client); + +$result = $databases->createPolygonAttribute( + databaseId: '', + collectionId: '', + key: '', + required: false, + default: [[[1, 2], [3, 4], [5, 6], [1, 2]]] // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/databases/update-line-attribute.md b/docs/examples/1.8.x/server-php/examples/databases/update-line-attribute.md new file mode 100644 index 0000000000..86b8f646e8 --- /dev/null +++ b/docs/examples/1.8.x/server-php/examples/databases/update-line-attribute.md @@ -0,0 +1,20 @@ +setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('') // Your project ID + ->setKey(''); // Your secret API key + +$databases = new Databases($client); + +$result = $databases->updateLineAttribute( + databaseId: '', + collectionId: '', + key: '', + required: false, + default: [[1, 2], [3, 4], [5, 6]], // optional + newKey: '' // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/databases/update-point-attribute.md b/docs/examples/1.8.x/server-php/examples/databases/update-point-attribute.md new file mode 100644 index 0000000000..cdff22656c --- /dev/null +++ b/docs/examples/1.8.x/server-php/examples/databases/update-point-attribute.md @@ -0,0 +1,20 @@ +setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('') // Your project ID + ->setKey(''); // Your secret API key + +$databases = new Databases($client); + +$result = $databases->updatePointAttribute( + databaseId: '', + collectionId: '', + key: '', + required: false, + default: [1, 2], // optional + newKey: '' // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/databases/update-polygon-attribute.md b/docs/examples/1.8.x/server-php/examples/databases/update-polygon-attribute.md new file mode 100644 index 0000000000..c2736bd4bf --- /dev/null +++ b/docs/examples/1.8.x/server-php/examples/databases/update-polygon-attribute.md @@ -0,0 +1,20 @@ +setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('') // Your project ID + ->setKey(''); // Your secret API key + +$databases = new Databases($client); + +$result = $databases->updatePolygonAttribute( + databaseId: '', + collectionId: '', + key: '', + required: false, + default: [[[1, 2], [3, 4], [5, 6], [1, 2]]], // optional + newKey: '' // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/tablesdb/create-line-column.md b/docs/examples/1.8.x/server-php/examples/tablesdb/create-line-column.md new file mode 100644 index 0000000000..69f2e66717 --- /dev/null +++ b/docs/examples/1.8.x/server-php/examples/tablesdb/create-line-column.md @@ -0,0 +1,19 @@ +setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('') // Your project ID + ->setKey(''); // Your secret API key + +$tablesDB = new TablesDB($client); + +$result = $tablesDB->createLineColumn( + databaseId: '', + tableId: '', + key: '', + required: false, + default: [[1, 2], [3, 4], [5, 6]] // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/tablesdb/create-point-column.md b/docs/examples/1.8.x/server-php/examples/tablesdb/create-point-column.md new file mode 100644 index 0000000000..006c9e0089 --- /dev/null +++ b/docs/examples/1.8.x/server-php/examples/tablesdb/create-point-column.md @@ -0,0 +1,19 @@ +setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('') // Your project ID + ->setKey(''); // Your secret API key + +$tablesDB = new TablesDB($client); + +$result = $tablesDB->createPointColumn( + databaseId: '', + tableId: '', + key: '', + required: false, + default: [1, 2] // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/tablesdb/create-polygon-column.md b/docs/examples/1.8.x/server-php/examples/tablesdb/create-polygon-column.md new file mode 100644 index 0000000000..20fb27161e --- /dev/null +++ b/docs/examples/1.8.x/server-php/examples/tablesdb/create-polygon-column.md @@ -0,0 +1,19 @@ +setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('') // Your project ID + ->setKey(''); // Your secret API key + +$tablesDB = new TablesDB($client); + +$result = $tablesDB->createPolygonColumn( + databaseId: '', + tableId: '', + key: '', + required: false, + default: [[[1, 2], [3, 4], [5, 6], [1, 2]]] // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/tablesdb/create-row.md b/docs/examples/1.8.x/server-php/examples/tablesdb/create-row.md index 0002b79852..fa5137b99e 100644 --- a/docs/examples/1.8.x/server-php/examples/tablesdb/create-row.md +++ b/docs/examples/1.8.x/server-php/examples/tablesdb/create-row.md @@ -14,6 +14,12 @@ $result = $tablesDB->createRow( databaseId: '', tableId: '', rowId: '', - data: [], + data: [ + 'username' => 'walter.obrien', + 'email' => 'walter.obrien@example.com', + 'fullName' => 'Walter O'Brien', + 'age' => 30, + 'isAdmin' => false + ], permissions: ["read("any")"] // optional ); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/tablesdb/update-line-column.md b/docs/examples/1.8.x/server-php/examples/tablesdb/update-line-column.md new file mode 100644 index 0000000000..56a557cbe6 --- /dev/null +++ b/docs/examples/1.8.x/server-php/examples/tablesdb/update-line-column.md @@ -0,0 +1,20 @@ +setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('') // Your project ID + ->setKey(''); // Your secret API key + +$tablesDB = new TablesDB($client); + +$result = $tablesDB->updateLineColumn( + databaseId: '', + tableId: '', + key: '', + required: false, + default: [[1, 2], [3, 4], [5, 6]], // optional + newKey: '' // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/tablesdb/update-point-column.md b/docs/examples/1.8.x/server-php/examples/tablesdb/update-point-column.md new file mode 100644 index 0000000000..abe8b737ca --- /dev/null +++ b/docs/examples/1.8.x/server-php/examples/tablesdb/update-point-column.md @@ -0,0 +1,20 @@ +setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('') // Your project ID + ->setKey(''); // Your secret API key + +$tablesDB = new TablesDB($client); + +$result = $tablesDB->updatePointColumn( + databaseId: '', + tableId: '', + key: '', + required: false, + default: [1, 2], // optional + newKey: '' // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/tablesdb/update-polygon-column.md b/docs/examples/1.8.x/server-php/examples/tablesdb/update-polygon-column.md new file mode 100644 index 0000000000..2ff401151f --- /dev/null +++ b/docs/examples/1.8.x/server-php/examples/tablesdb/update-polygon-column.md @@ -0,0 +1,20 @@ +setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint + ->setProject('') // Your project ID + ->setKey(''); // Your secret API key + +$tablesDB = new TablesDB($client); + +$result = $tablesDB->updatePolygonColumn( + databaseId: '', + tableId: '', + key: '', + required: false, + default: [[[1, 2], [3, 4], [5, 6], [1, 2]]], // optional + newKey: '' // optional +); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-python/examples/account/update-prefs.md b/docs/examples/1.8.x/server-python/examples/account/update-prefs.md index e2ac7a28c1..8981af837a 100644 --- a/docs/examples/1.8.x/server-python/examples/account/update-prefs.md +++ b/docs/examples/1.8.x/server-python/examples/account/update-prefs.md @@ -9,5 +9,9 @@ client.set_session('') # The user session to authenticate with account = Account(client) result = account.update_prefs( - prefs = {} + prefs = { + "language": "en", + "timezone": "UTC", + "darkTheme": True + } ) diff --git a/docs/examples/1.8.x/server-python/examples/databases/create-document.md b/docs/examples/1.8.x/server-python/examples/databases/create-document.md index 1eaf0246f3..3d7dee1a4f 100644 --- a/docs/examples/1.8.x/server-python/examples/databases/create-document.md +++ b/docs/examples/1.8.x/server-python/examples/databases/create-document.md @@ -12,6 +12,12 @@ result = databases.create_document( database_id = '', collection_id = '', document_id = '', - data = {}, + data = { + "username": "walter.obrien", + "email": "walter.obrien@example.com", + "fullName": "Walter O'Brien", + "age": 30, + "isAdmin": False + }, permissions = ["read("any")"] # optional ) diff --git a/docs/examples/1.8.x/server-python/examples/databases/create-line-attribute.md b/docs/examples/1.8.x/server-python/examples/databases/create-line-attribute.md new file mode 100644 index 0000000000..c61be8fb51 --- /dev/null +++ b/docs/examples/1.8.x/server-python/examples/databases/create-line-attribute.md @@ -0,0 +1,17 @@ +from appwrite.client import Client +from appwrite.services.databases import Databases + +client = Client() +client.set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('') # Your project ID +client.set_key('') # Your secret API key + +databases = Databases(client) + +result = databases.create_line_attribute( + database_id = '', + collection_id = '', + key = '', + required = False, + default = [[1, 2], [3, 4], [5, 6]] # optional +) diff --git a/docs/examples/1.8.x/server-python/examples/databases/create-point-attribute.md b/docs/examples/1.8.x/server-python/examples/databases/create-point-attribute.md new file mode 100644 index 0000000000..7acdb94399 --- /dev/null +++ b/docs/examples/1.8.x/server-python/examples/databases/create-point-attribute.md @@ -0,0 +1,17 @@ +from appwrite.client import Client +from appwrite.services.databases import Databases + +client = Client() +client.set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('') # Your project ID +client.set_key('') # Your secret API key + +databases = Databases(client) + +result = databases.create_point_attribute( + database_id = '', + collection_id = '', + key = '', + required = False, + default = [1, 2] # optional +) diff --git a/docs/examples/1.8.x/server-python/examples/databases/create-polygon-attribute.md b/docs/examples/1.8.x/server-python/examples/databases/create-polygon-attribute.md new file mode 100644 index 0000000000..c727b719f4 --- /dev/null +++ b/docs/examples/1.8.x/server-python/examples/databases/create-polygon-attribute.md @@ -0,0 +1,17 @@ +from appwrite.client import Client +from appwrite.services.databases import Databases + +client = Client() +client.set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('') # Your project ID +client.set_key('') # Your secret API key + +databases = Databases(client) + +result = databases.create_polygon_attribute( + database_id = '', + collection_id = '', + key = '', + required = False, + default = [[[1, 2], [3, 4], [5, 6], [1, 2]]] # optional +) diff --git a/docs/examples/1.8.x/server-python/examples/databases/update-line-attribute.md b/docs/examples/1.8.x/server-python/examples/databases/update-line-attribute.md new file mode 100644 index 0000000000..b1804f648b --- /dev/null +++ b/docs/examples/1.8.x/server-python/examples/databases/update-line-attribute.md @@ -0,0 +1,18 @@ +from appwrite.client import Client +from appwrite.services.databases import Databases + +client = Client() +client.set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('') # Your project ID +client.set_key('') # Your secret API key + +databases = Databases(client) + +result = databases.update_line_attribute( + database_id = '', + collection_id = '', + key = '', + required = False, + default = [[1, 2], [3, 4], [5, 6]], # optional + new_key = '' # optional +) diff --git a/docs/examples/1.8.x/server-python/examples/databases/update-point-attribute.md b/docs/examples/1.8.x/server-python/examples/databases/update-point-attribute.md new file mode 100644 index 0000000000..58def4b687 --- /dev/null +++ b/docs/examples/1.8.x/server-python/examples/databases/update-point-attribute.md @@ -0,0 +1,18 @@ +from appwrite.client import Client +from appwrite.services.databases import Databases + +client = Client() +client.set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('') # Your project ID +client.set_key('') # Your secret API key + +databases = Databases(client) + +result = databases.update_point_attribute( + database_id = '', + collection_id = '', + key = '', + required = False, + default = [1, 2], # optional + new_key = '' # optional +) diff --git a/docs/examples/1.8.x/server-python/examples/databases/update-polygon-attribute.md b/docs/examples/1.8.x/server-python/examples/databases/update-polygon-attribute.md new file mode 100644 index 0000000000..c3625fe3e0 --- /dev/null +++ b/docs/examples/1.8.x/server-python/examples/databases/update-polygon-attribute.md @@ -0,0 +1,18 @@ +from appwrite.client import Client +from appwrite.services.databases import Databases + +client = Client() +client.set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('') # Your project ID +client.set_key('') # Your secret API key + +databases = Databases(client) + +result = databases.update_polygon_attribute( + database_id = '', + collection_id = '', + key = '', + required = False, + default = [[[1, 2], [3, 4], [5, 6], [1, 2]]], # optional + new_key = '' # optional +) diff --git a/docs/examples/1.8.x/server-python/examples/tablesdb/create-line-column.md b/docs/examples/1.8.x/server-python/examples/tablesdb/create-line-column.md new file mode 100644 index 0000000000..11591236cf --- /dev/null +++ b/docs/examples/1.8.x/server-python/examples/tablesdb/create-line-column.md @@ -0,0 +1,17 @@ +from appwrite.client import Client +from appwrite.services.tables_db import TablesDB + +client = Client() +client.set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('') # Your project ID +client.set_key('') # Your secret API key + +tables_db = TablesDB(client) + +result = tables_db.create_line_column( + database_id = '', + table_id = '', + key = '', + required = False, + default = [[1, 2], [3, 4], [5, 6]] # optional +) diff --git a/docs/examples/1.8.x/server-python/examples/tablesdb/create-point-column.md b/docs/examples/1.8.x/server-python/examples/tablesdb/create-point-column.md new file mode 100644 index 0000000000..8f51e95ca2 --- /dev/null +++ b/docs/examples/1.8.x/server-python/examples/tablesdb/create-point-column.md @@ -0,0 +1,17 @@ +from appwrite.client import Client +from appwrite.services.tables_db import TablesDB + +client = Client() +client.set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('') # Your project ID +client.set_key('') # Your secret API key + +tables_db = TablesDB(client) + +result = tables_db.create_point_column( + database_id = '', + table_id = '', + key = '', + required = False, + default = [1, 2] # optional +) diff --git a/docs/examples/1.8.x/server-python/examples/tablesdb/create-polygon-column.md b/docs/examples/1.8.x/server-python/examples/tablesdb/create-polygon-column.md new file mode 100644 index 0000000000..cf4540e029 --- /dev/null +++ b/docs/examples/1.8.x/server-python/examples/tablesdb/create-polygon-column.md @@ -0,0 +1,17 @@ +from appwrite.client import Client +from appwrite.services.tables_db import TablesDB + +client = Client() +client.set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('') # Your project ID +client.set_key('') # Your secret API key + +tables_db = TablesDB(client) + +result = tables_db.create_polygon_column( + database_id = '', + table_id = '', + key = '', + required = False, + default = [[[1, 2], [3, 4], [5, 6], [1, 2]]] # optional +) diff --git a/docs/examples/1.8.x/server-python/examples/tablesdb/create-row.md b/docs/examples/1.8.x/server-python/examples/tablesdb/create-row.md index 69fee14914..d4c1cdad14 100644 --- a/docs/examples/1.8.x/server-python/examples/tablesdb/create-row.md +++ b/docs/examples/1.8.x/server-python/examples/tablesdb/create-row.md @@ -12,6 +12,12 @@ result = tables_db.create_row( database_id = '', table_id = '', row_id = '', - data = {}, + data = { + "username": "walter.obrien", + "email": "walter.obrien@example.com", + "fullName": "Walter O'Brien", + "age": 30, + "isAdmin": False + }, permissions = ["read("any")"] # optional ) diff --git a/docs/examples/1.8.x/server-python/examples/tablesdb/update-line-column.md b/docs/examples/1.8.x/server-python/examples/tablesdb/update-line-column.md new file mode 100644 index 0000000000..2f02b61e24 --- /dev/null +++ b/docs/examples/1.8.x/server-python/examples/tablesdb/update-line-column.md @@ -0,0 +1,18 @@ +from appwrite.client import Client +from appwrite.services.tables_db import TablesDB + +client = Client() +client.set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('') # Your project ID +client.set_key('') # Your secret API key + +tables_db = TablesDB(client) + +result = tables_db.update_line_column( + database_id = '', + table_id = '', + key = '', + required = False, + default = [[1, 2], [3, 4], [5, 6]], # optional + new_key = '' # optional +) diff --git a/docs/examples/1.8.x/server-python/examples/tablesdb/update-point-column.md b/docs/examples/1.8.x/server-python/examples/tablesdb/update-point-column.md new file mode 100644 index 0000000000..63fb30837f --- /dev/null +++ b/docs/examples/1.8.x/server-python/examples/tablesdb/update-point-column.md @@ -0,0 +1,18 @@ +from appwrite.client import Client +from appwrite.services.tables_db import TablesDB + +client = Client() +client.set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('') # Your project ID +client.set_key('') # Your secret API key + +tables_db = TablesDB(client) + +result = tables_db.update_point_column( + database_id = '', + table_id = '', + key = '', + required = False, + default = [1, 2], # optional + new_key = '' # optional +) diff --git a/docs/examples/1.8.x/server-python/examples/tablesdb/update-polygon-column.md b/docs/examples/1.8.x/server-python/examples/tablesdb/update-polygon-column.md new file mode 100644 index 0000000000..07118b1c1e --- /dev/null +++ b/docs/examples/1.8.x/server-python/examples/tablesdb/update-polygon-column.md @@ -0,0 +1,18 @@ +from appwrite.client import Client +from appwrite.services.tables_db import TablesDB + +client = Client() +client.set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint +client.set_project('') # Your project ID +client.set_key('') # Your secret API key + +tables_db = TablesDB(client) + +result = tables_db.update_polygon_column( + database_id = '', + table_id = '', + key = '', + required = False, + default = [[[1, 2], [3, 4], [5, 6], [1, 2]]], # optional + new_key = '' # optional +) diff --git a/docs/examples/1.8.x/server-rest/examples/account/create.md b/docs/examples/1.8.x/server-rest/examples/account/create.md index 15bb386f41..fa06bfcc1a 100644 --- a/docs/examples/1.8.x/server-rest/examples/account/create.md +++ b/docs/examples/1.8.x/server-rest/examples/account/create.md @@ -7,6 +7,6 @@ X-Appwrite-Project: { "userId": "", "email": "email@example.com", - "password": , + "password": "", "name": "" } diff --git a/docs/examples/1.8.x/server-rest/examples/account/update-password.md b/docs/examples/1.8.x/server-rest/examples/account/update-password.md index e05a1c2b7f..c26f18a4f3 100644 --- a/docs/examples/1.8.x/server-rest/examples/account/update-password.md +++ b/docs/examples/1.8.x/server-rest/examples/account/update-password.md @@ -7,6 +7,6 @@ X-Appwrite-Session: X-Appwrite-JWT: { - "password": , + "password": "", "oldPassword": "password" } diff --git a/docs/examples/1.8.x/server-rest/examples/account/update-prefs.md b/docs/examples/1.8.x/server-rest/examples/account/update-prefs.md index 24f2d3bcb6..0d7e4eab0c 100644 --- a/docs/examples/1.8.x/server-rest/examples/account/update-prefs.md +++ b/docs/examples/1.8.x/server-rest/examples/account/update-prefs.md @@ -7,5 +7,9 @@ X-Appwrite-Session: X-Appwrite-JWT: { - "prefs": {} + "prefs": { + "language": "en", + "timezone": "UTC", + "darkTheme": true + } } diff --git a/docs/examples/1.8.x/server-rest/examples/account/update-recovery.md b/docs/examples/1.8.x/server-rest/examples/account/update-recovery.md index 7d40ee79fe..68919c29fb 100644 --- a/docs/examples/1.8.x/server-rest/examples/account/update-recovery.md +++ b/docs/examples/1.8.x/server-rest/examples/account/update-recovery.md @@ -9,5 +9,5 @@ X-Appwrite-JWT: { "userId": "", "secret": "", - "password": + "password": "" } diff --git a/docs/examples/1.8.x/server-rest/examples/databases/create-boolean-attribute.md b/docs/examples/1.8.x/server-rest/examples/databases/create-boolean-attribute.md index fb11c03cbd..b394a1779e 100644 --- a/docs/examples/1.8.x/server-rest/examples/databases/create-boolean-attribute.md +++ b/docs/examples/1.8.x/server-rest/examples/databases/create-boolean-attribute.md @@ -6,7 +6,7 @@ X-Appwrite-Project: X-Appwrite-Key: { - "key": , + "key": "", "required": false, "default": false, "array": false diff --git a/docs/examples/1.8.x/server-rest/examples/databases/create-datetime-attribute.md b/docs/examples/1.8.x/server-rest/examples/databases/create-datetime-attribute.md index 3d0e718634..18e2a718d0 100644 --- a/docs/examples/1.8.x/server-rest/examples/databases/create-datetime-attribute.md +++ b/docs/examples/1.8.x/server-rest/examples/databases/create-datetime-attribute.md @@ -6,8 +6,8 @@ X-Appwrite-Project: X-Appwrite-Key: { - "key": , + "key": "", "required": false, - "default": , + "default": "", "array": false } diff --git a/docs/examples/1.8.x/server-rest/examples/databases/create-document.md b/docs/examples/1.8.x/server-rest/examples/databases/create-document.md index e4ba6ec1ff..57c38f0ba7 100644 --- a/docs/examples/1.8.x/server-rest/examples/databases/create-document.md +++ b/docs/examples/1.8.x/server-rest/examples/databases/create-document.md @@ -9,6 +9,12 @@ X-Appwrite-JWT: { "documentId": "", - "data": {}, + "data": { + "username": "walter.obrien", + "email": "walter.obrien@example.com", + "fullName": "Walter O'Brien", + "age": 30, + "isAdmin": false + }, "permissions": ["read(\"any\")"] } diff --git a/docs/examples/1.8.x/server-rest/examples/databases/create-email-attribute.md b/docs/examples/1.8.x/server-rest/examples/databases/create-email-attribute.md index 02b7095d64..1fdf1510cf 100644 --- a/docs/examples/1.8.x/server-rest/examples/databases/create-email-attribute.md +++ b/docs/examples/1.8.x/server-rest/examples/databases/create-email-attribute.md @@ -6,7 +6,7 @@ X-Appwrite-Project: X-Appwrite-Key: { - "key": , + "key": "", "required": false, "default": "email@example.com", "array": false diff --git a/docs/examples/1.8.x/server-rest/examples/databases/create-enum-attribute.md b/docs/examples/1.8.x/server-rest/examples/databases/create-enum-attribute.md index a921e10c5f..8cfd0d1dde 100644 --- a/docs/examples/1.8.x/server-rest/examples/databases/create-enum-attribute.md +++ b/docs/examples/1.8.x/server-rest/examples/databases/create-enum-attribute.md @@ -6,7 +6,7 @@ X-Appwrite-Project: X-Appwrite-Key: { - "key": , + "key": "", "elements": [], "required": false, "default": "", diff --git a/docs/examples/1.8.x/server-rest/examples/databases/create-float-attribute.md b/docs/examples/1.8.x/server-rest/examples/databases/create-float-attribute.md index ea9dde56ce..238c079c09 100644 --- a/docs/examples/1.8.x/server-rest/examples/databases/create-float-attribute.md +++ b/docs/examples/1.8.x/server-rest/examples/databases/create-float-attribute.md @@ -6,7 +6,7 @@ X-Appwrite-Project: X-Appwrite-Key: { - "key": , + "key": "", "required": false, "min": 0, "max": 0, diff --git a/docs/examples/1.8.x/server-rest/examples/databases/create-index.md b/docs/examples/1.8.x/server-rest/examples/databases/create-index.md index c78bdc37f9..cf9f1a8dae 100644 --- a/docs/examples/1.8.x/server-rest/examples/databases/create-index.md +++ b/docs/examples/1.8.x/server-rest/examples/databases/create-index.md @@ -6,7 +6,7 @@ X-Appwrite-Project: X-Appwrite-Key: { - "key": , + "key": "", "type": "key", "attributes": [], "orders": [], diff --git a/docs/examples/1.8.x/server-rest/examples/databases/create-integer-attribute.md b/docs/examples/1.8.x/server-rest/examples/databases/create-integer-attribute.md index cce3a3f265..485af8eb4c 100644 --- a/docs/examples/1.8.x/server-rest/examples/databases/create-integer-attribute.md +++ b/docs/examples/1.8.x/server-rest/examples/databases/create-integer-attribute.md @@ -6,7 +6,7 @@ X-Appwrite-Project: X-Appwrite-Key: { - "key": , + "key": "", "required": false, "min": 0, "max": 0, diff --git a/docs/examples/1.8.x/server-rest/examples/databases/create-ip-attribute.md b/docs/examples/1.8.x/server-rest/examples/databases/create-ip-attribute.md index 80afccb4c1..f9368e0f79 100644 --- a/docs/examples/1.8.x/server-rest/examples/databases/create-ip-attribute.md +++ b/docs/examples/1.8.x/server-rest/examples/databases/create-ip-attribute.md @@ -6,8 +6,8 @@ X-Appwrite-Project: X-Appwrite-Key: { - "key": , + "key": "", "required": false, - "default": , + "default": "", "array": false } diff --git a/docs/examples/1.8.x/server-rest/examples/databases/create-line-attribute.md b/docs/examples/1.8.x/server-rest/examples/databases/create-line-attribute.md new file mode 100644 index 0000000000..54d2de02de --- /dev/null +++ b/docs/examples/1.8.x/server-rest/examples/databases/create-line-attribute.md @@ -0,0 +1,12 @@ +POST /v1/databases/{databaseId}/collections/{collectionId}/attributes/line HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Project: +X-Appwrite-Key: + +{ + "key": "", + "required": false, + "default": [[1, 2], [3, 4], [5, 6]] +} diff --git a/docs/examples/1.8.x/server-rest/examples/databases/create-point-attribute.md b/docs/examples/1.8.x/server-rest/examples/databases/create-point-attribute.md new file mode 100644 index 0000000000..ade94fc085 --- /dev/null +++ b/docs/examples/1.8.x/server-rest/examples/databases/create-point-attribute.md @@ -0,0 +1,12 @@ +POST /v1/databases/{databaseId}/collections/{collectionId}/attributes/point HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Project: +X-Appwrite-Key: + +{ + "key": "", + "required": false, + "default": [1, 2] +} diff --git a/docs/examples/1.8.x/server-rest/examples/databases/create-polygon-attribute.md b/docs/examples/1.8.x/server-rest/examples/databases/create-polygon-attribute.md new file mode 100644 index 0000000000..9b2f43b6ff --- /dev/null +++ b/docs/examples/1.8.x/server-rest/examples/databases/create-polygon-attribute.md @@ -0,0 +1,12 @@ +POST /v1/databases/{databaseId}/collections/{collectionId}/attributes/polygon HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Project: +X-Appwrite-Key: + +{ + "key": "", + "required": false, + "default": [[[1, 2], [3, 4], [5, 6], [1, 2]]] +} diff --git a/docs/examples/1.8.x/server-rest/examples/databases/create-relationship-attribute.md b/docs/examples/1.8.x/server-rest/examples/databases/create-relationship-attribute.md index d9e6c6441c..34b5afb865 100644 --- a/docs/examples/1.8.x/server-rest/examples/databases/create-relationship-attribute.md +++ b/docs/examples/1.8.x/server-rest/examples/databases/create-relationship-attribute.md @@ -9,7 +9,7 @@ X-Appwrite-Key: "relatedCollectionId": "", "type": "oneToOne", "twoWay": false, - "key": , - "twoWayKey": , + "key": "", + "twoWayKey": "", "onDelete": "cascade" } diff --git a/docs/examples/1.8.x/server-rest/examples/databases/create-string-attribute.md b/docs/examples/1.8.x/server-rest/examples/databases/create-string-attribute.md index 5591ca8d8a..880fd04417 100644 --- a/docs/examples/1.8.x/server-rest/examples/databases/create-string-attribute.md +++ b/docs/examples/1.8.x/server-rest/examples/databases/create-string-attribute.md @@ -6,7 +6,7 @@ X-Appwrite-Project: X-Appwrite-Key: { - "key": , + "key": "", "size": 1, "required": false, "default": "", diff --git a/docs/examples/1.8.x/server-rest/examples/databases/create-url-attribute.md b/docs/examples/1.8.x/server-rest/examples/databases/create-url-attribute.md index 4ee9595717..d1f8629a4b 100644 --- a/docs/examples/1.8.x/server-rest/examples/databases/create-url-attribute.md +++ b/docs/examples/1.8.x/server-rest/examples/databases/create-url-attribute.md @@ -6,7 +6,7 @@ X-Appwrite-Project: X-Appwrite-Key: { - "key": , + "key": "", "required": false, "default": "https://example.com", "array": false diff --git a/docs/examples/1.8.x/server-rest/examples/databases/update-boolean-attribute.md b/docs/examples/1.8.x/server-rest/examples/databases/update-boolean-attribute.md index 75f3d66b50..aeac097a06 100644 --- a/docs/examples/1.8.x/server-rest/examples/databases/update-boolean-attribute.md +++ b/docs/examples/1.8.x/server-rest/examples/databases/update-boolean-attribute.md @@ -8,5 +8,5 @@ X-Appwrite-Key: { "required": false, "default": false, - "newKey": + "newKey": "" } diff --git a/docs/examples/1.8.x/server-rest/examples/databases/update-datetime-attribute.md b/docs/examples/1.8.x/server-rest/examples/databases/update-datetime-attribute.md index 59a477aca7..26f3c4e9f2 100644 --- a/docs/examples/1.8.x/server-rest/examples/databases/update-datetime-attribute.md +++ b/docs/examples/1.8.x/server-rest/examples/databases/update-datetime-attribute.md @@ -7,6 +7,6 @@ X-Appwrite-Key: { "required": false, - "default": , - "newKey": + "default": "", + "newKey": "" } diff --git a/docs/examples/1.8.x/server-rest/examples/databases/update-email-attribute.md b/docs/examples/1.8.x/server-rest/examples/databases/update-email-attribute.md index 08257e8906..3852754227 100644 --- a/docs/examples/1.8.x/server-rest/examples/databases/update-email-attribute.md +++ b/docs/examples/1.8.x/server-rest/examples/databases/update-email-attribute.md @@ -8,5 +8,5 @@ X-Appwrite-Key: { "required": false, "default": "email@example.com", - "newKey": + "newKey": "" } diff --git a/docs/examples/1.8.x/server-rest/examples/databases/update-enum-attribute.md b/docs/examples/1.8.x/server-rest/examples/databases/update-enum-attribute.md index 8e69a703ea..003c0a2a21 100644 --- a/docs/examples/1.8.x/server-rest/examples/databases/update-enum-attribute.md +++ b/docs/examples/1.8.x/server-rest/examples/databases/update-enum-attribute.md @@ -9,5 +9,5 @@ X-Appwrite-Key: "elements": [], "required": false, "default": "", - "newKey": + "newKey": "" } diff --git a/docs/examples/1.8.x/server-rest/examples/databases/update-float-attribute.md b/docs/examples/1.8.x/server-rest/examples/databases/update-float-attribute.md index 214567660d..8ceffcaa2d 100644 --- a/docs/examples/1.8.x/server-rest/examples/databases/update-float-attribute.md +++ b/docs/examples/1.8.x/server-rest/examples/databases/update-float-attribute.md @@ -10,5 +10,5 @@ X-Appwrite-Key: "min": 0, "max": 0, "default": 0, - "newKey": + "newKey": "" } diff --git a/docs/examples/1.8.x/server-rest/examples/databases/update-integer-attribute.md b/docs/examples/1.8.x/server-rest/examples/databases/update-integer-attribute.md index 1f566c1369..0386cbd470 100644 --- a/docs/examples/1.8.x/server-rest/examples/databases/update-integer-attribute.md +++ b/docs/examples/1.8.x/server-rest/examples/databases/update-integer-attribute.md @@ -10,5 +10,5 @@ X-Appwrite-Key: "min": 0, "max": 0, "default": 0, - "newKey": + "newKey": "" } diff --git a/docs/examples/1.8.x/server-rest/examples/databases/update-ip-attribute.md b/docs/examples/1.8.x/server-rest/examples/databases/update-ip-attribute.md index 31bc18c587..7909f960c0 100644 --- a/docs/examples/1.8.x/server-rest/examples/databases/update-ip-attribute.md +++ b/docs/examples/1.8.x/server-rest/examples/databases/update-ip-attribute.md @@ -7,6 +7,6 @@ X-Appwrite-Key: { "required": false, - "default": , - "newKey": + "default": "", + "newKey": "" } diff --git a/docs/examples/1.8.x/server-rest/examples/databases/update-line-attribute.md b/docs/examples/1.8.x/server-rest/examples/databases/update-line-attribute.md new file mode 100644 index 0000000000..47bcbea4ab --- /dev/null +++ b/docs/examples/1.8.x/server-rest/examples/databases/update-line-attribute.md @@ -0,0 +1,12 @@ +PATCH /v1/databases/{databaseId}/collections/{collectionId}/attributes/line/{key} HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Project: +X-Appwrite-Key: + +{ + "required": false, + "default": [[1, 2], [3, 4], [5, 6]], + "newKey": "" +} diff --git a/docs/examples/1.8.x/server-rest/examples/databases/update-point-attribute.md b/docs/examples/1.8.x/server-rest/examples/databases/update-point-attribute.md new file mode 100644 index 0000000000..c0851c7d51 --- /dev/null +++ b/docs/examples/1.8.x/server-rest/examples/databases/update-point-attribute.md @@ -0,0 +1,12 @@ +PATCH /v1/databases/{databaseId}/collections/{collectionId}/attributes/point/{key} HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Project: +X-Appwrite-Key: + +{ + "required": false, + "default": [1, 2], + "newKey": "" +} diff --git a/docs/examples/1.8.x/server-rest/examples/databases/update-polygon-attribute.md b/docs/examples/1.8.x/server-rest/examples/databases/update-polygon-attribute.md new file mode 100644 index 0000000000..4cfae215b9 --- /dev/null +++ b/docs/examples/1.8.x/server-rest/examples/databases/update-polygon-attribute.md @@ -0,0 +1,12 @@ +PATCH /v1/databases/{databaseId}/collections/{collectionId}/attributes/polygon/{key} HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Project: +X-Appwrite-Key: + +{ + "required": false, + "default": [[[1, 2], [3, 4], [5, 6], [1, 2]]], + "newKey": "" +} diff --git a/docs/examples/1.8.x/server-rest/examples/databases/update-relationship-attribute.md b/docs/examples/1.8.x/server-rest/examples/databases/update-relationship-attribute.md index 3cb7d4f679..2461ff3053 100644 --- a/docs/examples/1.8.x/server-rest/examples/databases/update-relationship-attribute.md +++ b/docs/examples/1.8.x/server-rest/examples/databases/update-relationship-attribute.md @@ -7,5 +7,5 @@ X-Appwrite-Key: { "onDelete": "cascade", - "newKey": + "newKey": "" } diff --git a/docs/examples/1.8.x/server-rest/examples/databases/update-string-attribute.md b/docs/examples/1.8.x/server-rest/examples/databases/update-string-attribute.md index 2026b854a9..e7debaa46f 100644 --- a/docs/examples/1.8.x/server-rest/examples/databases/update-string-attribute.md +++ b/docs/examples/1.8.x/server-rest/examples/databases/update-string-attribute.md @@ -9,5 +9,5 @@ X-Appwrite-Key: "required": false, "default": "", "size": 1, - "newKey": + "newKey": "" } diff --git a/docs/examples/1.8.x/server-rest/examples/databases/update-url-attribute.md b/docs/examples/1.8.x/server-rest/examples/databases/update-url-attribute.md index 4f90c7ade3..4318ab4564 100644 --- a/docs/examples/1.8.x/server-rest/examples/databases/update-url-attribute.md +++ b/docs/examples/1.8.x/server-rest/examples/databases/update-url-attribute.md @@ -8,5 +8,5 @@ X-Appwrite-Key: { "required": false, "default": "https://example.com", - "newKey": + "newKey": "" } diff --git a/docs/examples/1.8.x/server-rest/examples/functions/create-deployment.md b/docs/examples/1.8.x/server-rest/examples/functions/create-deployment.md index f68e54dedc..9366ab01d9 100644 --- a/docs/examples/1.8.x/server-rest/examples/functions/create-deployment.md +++ b/docs/examples/1.8.x/server-rest/examples/functions/create-deployment.md @@ -19,8 +19,7 @@ Content-Disposition: form-data; name="commands" --cec8e8123c05ba25 Content-Disposition: form-data; name="code" -cf 94 84 24 8d c4 91 10 0f dc 54 26 6c 8e 4b bc -e8 ee 55 94 29 e7 94 89 19 26 28 01 26 29 3f 16... +cf 94 84 24 8d c4 91 10 0f dc 54 26 6c 8e 4b bc e8 ee 55 94 29 e7 94 89 19 26 28 01 26 29 3f 16... --cec8e8123c05ba25 Content-Disposition: form-data; name="activate" diff --git a/docs/examples/1.8.x/server-rest/examples/functions/create.md b/docs/examples/1.8.x/server-rest/examples/functions/create.md index 1f034e60a4..2bccb0db4a 100644 --- a/docs/examples/1.8.x/server-rest/examples/functions/create.md +++ b/docs/examples/1.8.x/server-rest/examples/functions/create.md @@ -11,7 +11,7 @@ X-Appwrite-Key: "runtime": "node-14.5", "execute": ["any"], "events": [], - "schedule": , + "schedule": "", "timeout": 1, "enabled": false, "logging": false, @@ -23,5 +23,5 @@ X-Appwrite-Key: "providerBranch": "", "providerSilentMode": false, "providerRootDirectory": "", - "specification": + "specification": "" } diff --git a/docs/examples/1.8.x/server-rest/examples/functions/update.md b/docs/examples/1.8.x/server-rest/examples/functions/update.md index 40329e5580..cbaa3d62f8 100644 --- a/docs/examples/1.8.x/server-rest/examples/functions/update.md +++ b/docs/examples/1.8.x/server-rest/examples/functions/update.md @@ -10,7 +10,7 @@ X-Appwrite-Key: "runtime": "node-14.5", "execute": ["any"], "events": [], - "schedule": , + "schedule": "", "timeout": 1, "enabled": false, "logging": false, @@ -22,5 +22,5 @@ X-Appwrite-Key: "providerBranch": "", "providerSilentMode": false, "providerRootDirectory": "", - "specification": + "specification": "" } diff --git a/docs/examples/1.8.x/server-rest/examples/messaging/create-email.md b/docs/examples/1.8.x/server-rest/examples/messaging/create-email.md index b6c1392bb2..01888007f4 100644 --- a/docs/examples/1.8.x/server-rest/examples/messaging/create-email.md +++ b/docs/examples/1.8.x/server-rest/examples/messaging/create-email.md @@ -17,5 +17,5 @@ X-Appwrite-Key: "attachments": [], "draft": false, "html": false, - "scheduledAt": + "scheduledAt": "" } diff --git a/docs/examples/1.8.x/server-rest/examples/messaging/create-push.md b/docs/examples/1.8.x/server-rest/examples/messaging/create-push.md index 08ba0357fe..a70702c014 100644 --- a/docs/examples/1.8.x/server-rest/examples/messaging/create-push.md +++ b/docs/examples/1.8.x/server-rest/examples/messaging/create-push.md @@ -21,7 +21,7 @@ X-Appwrite-Key: "tag": "", "badge": 0, "draft": false, - "scheduledAt": , + "scheduledAt": "", "contentAvailable": false, "critical": false, "priority": "normal" diff --git a/docs/examples/1.8.x/server-rest/examples/messaging/create-sms.md b/docs/examples/1.8.x/server-rest/examples/messaging/create-sms.md index 82926e2a82..51c4350c1c 100644 --- a/docs/examples/1.8.x/server-rest/examples/messaging/create-sms.md +++ b/docs/examples/1.8.x/server-rest/examples/messaging/create-sms.md @@ -12,5 +12,5 @@ X-Appwrite-Key: "users": [], "targets": [], "draft": false, - "scheduledAt": + "scheduledAt": "" } diff --git a/docs/examples/1.8.x/server-rest/examples/messaging/update-email.md b/docs/examples/1.8.x/server-rest/examples/messaging/update-email.md index 97f3911ed1..0e1cd9b984 100644 --- a/docs/examples/1.8.x/server-rest/examples/messaging/update-email.md +++ b/docs/examples/1.8.x/server-rest/examples/messaging/update-email.md @@ -15,6 +15,6 @@ X-Appwrite-Key: "html": false, "cc": [], "bcc": [], - "scheduledAt": , + "scheduledAt": "", "attachments": [] } diff --git a/docs/examples/1.8.x/server-rest/examples/messaging/update-push.md b/docs/examples/1.8.x/server-rest/examples/messaging/update-push.md index 438ef373e5..b3b953bc31 100644 --- a/docs/examples/1.8.x/server-rest/examples/messaging/update-push.md +++ b/docs/examples/1.8.x/server-rest/examples/messaging/update-push.md @@ -20,7 +20,7 @@ X-Appwrite-Key: "tag": "", "badge": 0, "draft": false, - "scheduledAt": , + "scheduledAt": "", "contentAvailable": false, "critical": false, "priority": "normal" diff --git a/docs/examples/1.8.x/server-rest/examples/messaging/update-sms.md b/docs/examples/1.8.x/server-rest/examples/messaging/update-sms.md index a917e270f7..be246dfa41 100644 --- a/docs/examples/1.8.x/server-rest/examples/messaging/update-sms.md +++ b/docs/examples/1.8.x/server-rest/examples/messaging/update-sms.md @@ -11,5 +11,5 @@ X-Appwrite-Key: "targets": [], "content": "", "draft": false, - "scheduledAt": + "scheduledAt": "" } diff --git a/docs/examples/1.8.x/server-rest/examples/sites/create-deployment.md b/docs/examples/1.8.x/server-rest/examples/sites/create-deployment.md index 669ac50a75..226642f091 100644 --- a/docs/examples/1.8.x/server-rest/examples/sites/create-deployment.md +++ b/docs/examples/1.8.x/server-rest/examples/sites/create-deployment.md @@ -24,8 +24,7 @@ Content-Disposition: form-data; name="outputDirectory" --cec8e8123c05ba25 Content-Disposition: form-data; name="code" -cf 94 84 24 8d c4 91 10 0f dc 54 26 6c 8e 4b bc -e8 ee 55 94 29 e7 94 89 19 26 28 01 26 29 3f 16... +cf 94 84 24 8d c4 91 10 0f dc 54 26 6c 8e 4b bc e8 ee 55 94 29 e7 94 89 19 26 28 01 26 29 3f 16... --cec8e8123c05ba25 Content-Disposition: form-data; name="activate" diff --git a/docs/examples/1.8.x/server-rest/examples/sites/create.md b/docs/examples/1.8.x/server-rest/examples/sites/create.md index 52b4d87219..23ac46eb67 100644 --- a/docs/examples/1.8.x/server-rest/examples/sites/create.md +++ b/docs/examples/1.8.x/server-rest/examples/sites/create.md @@ -23,5 +23,5 @@ X-Appwrite-Key: "providerBranch": "", "providerSilentMode": false, "providerRootDirectory": "", - "specification": + "specification": "" } diff --git a/docs/examples/1.8.x/server-rest/examples/sites/update.md b/docs/examples/1.8.x/server-rest/examples/sites/update.md index 370984721f..08ebe17fb8 100644 --- a/docs/examples/1.8.x/server-rest/examples/sites/update.md +++ b/docs/examples/1.8.x/server-rest/examples/sites/update.md @@ -22,5 +22,5 @@ X-Appwrite-Key: "providerBranch": "", "providerSilentMode": false, "providerRootDirectory": "", - "specification": + "specification": "" } diff --git a/docs/examples/1.8.x/server-rest/examples/storage/create-file.md b/docs/examples/1.8.x/server-rest/examples/storage/create-file.md index 086fd6dc72..055ed38ec0 100644 --- a/docs/examples/1.8.x/server-rest/examples/storage/create-file.md +++ b/docs/examples/1.8.x/server-rest/examples/storage/create-file.md @@ -16,8 +16,7 @@ Content-Disposition: form-data; name="fileId" --cec8e8123c05ba25 Content-Disposition: form-data; name="file" -cf 94 84 24 8d c4 91 10 0f dc 54 26 6c 8e 4b bc -e8 ee 55 94 29 e7 94 89 19 26 28 01 26 29 3f 16... +cf 94 84 24 8d c4 91 10 0f dc 54 26 6c 8e 4b bc e8 ee 55 94 29 e7 94 89 19 26 28 01 26 29 3f 16... --cec8e8123c05ba25 Content-Disposition: form-data; name="permissions[]" diff --git a/docs/examples/1.8.x/server-rest/examples/tablesdb/create-boolean-column.md b/docs/examples/1.8.x/server-rest/examples/tablesdb/create-boolean-column.md index 8450b65435..7e7fdbeb92 100644 --- a/docs/examples/1.8.x/server-rest/examples/tablesdb/create-boolean-column.md +++ b/docs/examples/1.8.x/server-rest/examples/tablesdb/create-boolean-column.md @@ -6,7 +6,7 @@ X-Appwrite-Project: X-Appwrite-Key: { - "key": , + "key": "", "required": false, "default": false, "array": false diff --git a/docs/examples/1.8.x/server-rest/examples/tablesdb/create-datetime-column.md b/docs/examples/1.8.x/server-rest/examples/tablesdb/create-datetime-column.md index 73d80272f9..c6fa72a1b1 100644 --- a/docs/examples/1.8.x/server-rest/examples/tablesdb/create-datetime-column.md +++ b/docs/examples/1.8.x/server-rest/examples/tablesdb/create-datetime-column.md @@ -6,8 +6,8 @@ X-Appwrite-Project: X-Appwrite-Key: { - "key": , + "key": "", "required": false, - "default": , + "default": "", "array": false } diff --git a/docs/examples/1.8.x/server-rest/examples/tablesdb/create-email-column.md b/docs/examples/1.8.x/server-rest/examples/tablesdb/create-email-column.md index 0d1d81c482..e65b46d1b7 100644 --- a/docs/examples/1.8.x/server-rest/examples/tablesdb/create-email-column.md +++ b/docs/examples/1.8.x/server-rest/examples/tablesdb/create-email-column.md @@ -6,7 +6,7 @@ X-Appwrite-Project: X-Appwrite-Key: { - "key": , + "key": "", "required": false, "default": "email@example.com", "array": false diff --git a/docs/examples/1.8.x/server-rest/examples/tablesdb/create-enum-column.md b/docs/examples/1.8.x/server-rest/examples/tablesdb/create-enum-column.md index 6b39abb92d..edcdd402f4 100644 --- a/docs/examples/1.8.x/server-rest/examples/tablesdb/create-enum-column.md +++ b/docs/examples/1.8.x/server-rest/examples/tablesdb/create-enum-column.md @@ -6,7 +6,7 @@ X-Appwrite-Project: X-Appwrite-Key: { - "key": , + "key": "", "elements": [], "required": false, "default": "", diff --git a/docs/examples/1.8.x/server-rest/examples/tablesdb/create-float-column.md b/docs/examples/1.8.x/server-rest/examples/tablesdb/create-float-column.md index e890c595d0..14c0e61370 100644 --- a/docs/examples/1.8.x/server-rest/examples/tablesdb/create-float-column.md +++ b/docs/examples/1.8.x/server-rest/examples/tablesdb/create-float-column.md @@ -6,7 +6,7 @@ X-Appwrite-Project: X-Appwrite-Key: { - "key": , + "key": "", "required": false, "min": 0, "max": 0, diff --git a/docs/examples/1.8.x/server-rest/examples/tablesdb/create-index.md b/docs/examples/1.8.x/server-rest/examples/tablesdb/create-index.md index baa06e815f..63e8daa511 100644 --- a/docs/examples/1.8.x/server-rest/examples/tablesdb/create-index.md +++ b/docs/examples/1.8.x/server-rest/examples/tablesdb/create-index.md @@ -6,7 +6,7 @@ X-Appwrite-Project: X-Appwrite-Key: { - "key": , + "key": "", "type": "key", "columns": [], "orders": [], diff --git a/docs/examples/1.8.x/server-rest/examples/tablesdb/create-integer-column.md b/docs/examples/1.8.x/server-rest/examples/tablesdb/create-integer-column.md index f34cf14965..2c0bef6b86 100644 --- a/docs/examples/1.8.x/server-rest/examples/tablesdb/create-integer-column.md +++ b/docs/examples/1.8.x/server-rest/examples/tablesdb/create-integer-column.md @@ -6,7 +6,7 @@ X-Appwrite-Project: X-Appwrite-Key: { - "key": , + "key": "", "required": false, "min": 0, "max": 0, diff --git a/docs/examples/1.8.x/server-rest/examples/tablesdb/create-ip-column.md b/docs/examples/1.8.x/server-rest/examples/tablesdb/create-ip-column.md index 10a849d073..d7b8c1f5ae 100644 --- a/docs/examples/1.8.x/server-rest/examples/tablesdb/create-ip-column.md +++ b/docs/examples/1.8.x/server-rest/examples/tablesdb/create-ip-column.md @@ -6,8 +6,8 @@ X-Appwrite-Project: X-Appwrite-Key: { - "key": , + "key": "", "required": false, - "default": , + "default": "", "array": false } diff --git a/docs/examples/1.8.x/server-rest/examples/tablesdb/create-line-column.md b/docs/examples/1.8.x/server-rest/examples/tablesdb/create-line-column.md new file mode 100644 index 0000000000..7d70d59900 --- /dev/null +++ b/docs/examples/1.8.x/server-rest/examples/tablesdb/create-line-column.md @@ -0,0 +1,12 @@ +POST /v1/tablesdb/{databaseId}/tables/{tableId}/columns/line HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Project: +X-Appwrite-Key: + +{ + "key": "", + "required": false, + "default": [[1, 2], [3, 4], [5, 6]] +} diff --git a/docs/examples/1.8.x/server-rest/examples/tablesdb/create-point-column.md b/docs/examples/1.8.x/server-rest/examples/tablesdb/create-point-column.md new file mode 100644 index 0000000000..5a99e7ba5e --- /dev/null +++ b/docs/examples/1.8.x/server-rest/examples/tablesdb/create-point-column.md @@ -0,0 +1,12 @@ +POST /v1/tablesdb/{databaseId}/tables/{tableId}/columns/point HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Project: +X-Appwrite-Key: + +{ + "key": "", + "required": false, + "default": [1, 2] +} diff --git a/docs/examples/1.8.x/server-rest/examples/tablesdb/create-polygon-column.md b/docs/examples/1.8.x/server-rest/examples/tablesdb/create-polygon-column.md new file mode 100644 index 0000000000..64495e9424 --- /dev/null +++ b/docs/examples/1.8.x/server-rest/examples/tablesdb/create-polygon-column.md @@ -0,0 +1,12 @@ +POST /v1/tablesdb/{databaseId}/tables/{tableId}/columns/polygon HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Project: +X-Appwrite-Key: + +{ + "key": "", + "required": false, + "default": [[[1, 2], [3, 4], [5, 6], [1, 2]]] +} diff --git a/docs/examples/1.8.x/server-rest/examples/tablesdb/create-relationship-column.md b/docs/examples/1.8.x/server-rest/examples/tablesdb/create-relationship-column.md index 8dffdd30a2..3032dc051d 100644 --- a/docs/examples/1.8.x/server-rest/examples/tablesdb/create-relationship-column.md +++ b/docs/examples/1.8.x/server-rest/examples/tablesdb/create-relationship-column.md @@ -9,7 +9,7 @@ X-Appwrite-Key: "relatedTableId": "", "type": "oneToOne", "twoWay": false, - "key": , - "twoWayKey": , + "key": "", + "twoWayKey": "", "onDelete": "cascade" } diff --git a/docs/examples/1.8.x/server-rest/examples/tablesdb/create-row.md b/docs/examples/1.8.x/server-rest/examples/tablesdb/create-row.md index d15cee6065..3c42d0f172 100644 --- a/docs/examples/1.8.x/server-rest/examples/tablesdb/create-row.md +++ b/docs/examples/1.8.x/server-rest/examples/tablesdb/create-row.md @@ -9,6 +9,12 @@ X-Appwrite-JWT: { "rowId": "", - "data": {}, + "data": { + "username": "walter.obrien", + "email": "walter.obrien@example.com", + "fullName": "Walter O'Brien", + "age": 30, + "isAdmin": false + }, "permissions": ["read(\"any\")"] } diff --git a/docs/examples/1.8.x/server-rest/examples/tablesdb/create-string-column.md b/docs/examples/1.8.x/server-rest/examples/tablesdb/create-string-column.md index 6e3f7e21cd..919ad6a2e0 100644 --- a/docs/examples/1.8.x/server-rest/examples/tablesdb/create-string-column.md +++ b/docs/examples/1.8.x/server-rest/examples/tablesdb/create-string-column.md @@ -6,7 +6,7 @@ X-Appwrite-Project: X-Appwrite-Key: { - "key": , + "key": "", "size": 1, "required": false, "default": "", diff --git a/docs/examples/1.8.x/server-rest/examples/tablesdb/create-url-column.md b/docs/examples/1.8.x/server-rest/examples/tablesdb/create-url-column.md index 55e9774e51..f5627e22cb 100644 --- a/docs/examples/1.8.x/server-rest/examples/tablesdb/create-url-column.md +++ b/docs/examples/1.8.x/server-rest/examples/tablesdb/create-url-column.md @@ -6,7 +6,7 @@ X-Appwrite-Project: X-Appwrite-Key: { - "key": , + "key": "", "required": false, "default": "https://example.com", "array": false diff --git a/docs/examples/1.8.x/server-rest/examples/tablesdb/update-boolean-column.md b/docs/examples/1.8.x/server-rest/examples/tablesdb/update-boolean-column.md index 7e1f55b6bb..a06d826ac1 100644 --- a/docs/examples/1.8.x/server-rest/examples/tablesdb/update-boolean-column.md +++ b/docs/examples/1.8.x/server-rest/examples/tablesdb/update-boolean-column.md @@ -8,5 +8,5 @@ X-Appwrite-Key: { "required": false, "default": false, - "newKey": + "newKey": "" } diff --git a/docs/examples/1.8.x/server-rest/examples/tablesdb/update-datetime-column.md b/docs/examples/1.8.x/server-rest/examples/tablesdb/update-datetime-column.md index 0063dc1b15..0feea207c1 100644 --- a/docs/examples/1.8.x/server-rest/examples/tablesdb/update-datetime-column.md +++ b/docs/examples/1.8.x/server-rest/examples/tablesdb/update-datetime-column.md @@ -7,6 +7,6 @@ X-Appwrite-Key: { "required": false, - "default": , - "newKey": + "default": "", + "newKey": "" } diff --git a/docs/examples/1.8.x/server-rest/examples/tablesdb/update-email-column.md b/docs/examples/1.8.x/server-rest/examples/tablesdb/update-email-column.md index 8e7c1ad01f..9955db12bc 100644 --- a/docs/examples/1.8.x/server-rest/examples/tablesdb/update-email-column.md +++ b/docs/examples/1.8.x/server-rest/examples/tablesdb/update-email-column.md @@ -8,5 +8,5 @@ X-Appwrite-Key: { "required": false, "default": "email@example.com", - "newKey": + "newKey": "" } diff --git a/docs/examples/1.8.x/server-rest/examples/tablesdb/update-enum-column.md b/docs/examples/1.8.x/server-rest/examples/tablesdb/update-enum-column.md index 343026a9ef..346d320024 100644 --- a/docs/examples/1.8.x/server-rest/examples/tablesdb/update-enum-column.md +++ b/docs/examples/1.8.x/server-rest/examples/tablesdb/update-enum-column.md @@ -9,5 +9,5 @@ X-Appwrite-Key: "elements": [], "required": false, "default": "", - "newKey": + "newKey": "" } diff --git a/docs/examples/1.8.x/server-rest/examples/tablesdb/update-float-column.md b/docs/examples/1.8.x/server-rest/examples/tablesdb/update-float-column.md index 0756262cfd..9dc14f3d0f 100644 --- a/docs/examples/1.8.x/server-rest/examples/tablesdb/update-float-column.md +++ b/docs/examples/1.8.x/server-rest/examples/tablesdb/update-float-column.md @@ -10,5 +10,5 @@ X-Appwrite-Key: "min": 0, "max": 0, "default": 0, - "newKey": + "newKey": "" } diff --git a/docs/examples/1.8.x/server-rest/examples/tablesdb/update-integer-column.md b/docs/examples/1.8.x/server-rest/examples/tablesdb/update-integer-column.md index 252627eb02..763c74fda6 100644 --- a/docs/examples/1.8.x/server-rest/examples/tablesdb/update-integer-column.md +++ b/docs/examples/1.8.x/server-rest/examples/tablesdb/update-integer-column.md @@ -10,5 +10,5 @@ X-Appwrite-Key: "min": 0, "max": 0, "default": 0, - "newKey": + "newKey": "" } diff --git a/docs/examples/1.8.x/server-rest/examples/tablesdb/update-ip-column.md b/docs/examples/1.8.x/server-rest/examples/tablesdb/update-ip-column.md index e43959f511..3336cfd7f5 100644 --- a/docs/examples/1.8.x/server-rest/examples/tablesdb/update-ip-column.md +++ b/docs/examples/1.8.x/server-rest/examples/tablesdb/update-ip-column.md @@ -7,6 +7,6 @@ X-Appwrite-Key: { "required": false, - "default": , - "newKey": + "default": "", + "newKey": "" } diff --git a/docs/examples/1.8.x/server-rest/examples/tablesdb/update-line-column.md b/docs/examples/1.8.x/server-rest/examples/tablesdb/update-line-column.md new file mode 100644 index 0000000000..97370a5f1f --- /dev/null +++ b/docs/examples/1.8.x/server-rest/examples/tablesdb/update-line-column.md @@ -0,0 +1,12 @@ +PATCH /v1/tablesdb/{databaseId}/tables/{tableId}/columns/line/{key} HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Project: +X-Appwrite-Key: + +{ + "required": false, + "default": [[1, 2], [3, 4], [5, 6]], + "newKey": "" +} diff --git a/docs/examples/1.8.x/server-rest/examples/tablesdb/update-point-column.md b/docs/examples/1.8.x/server-rest/examples/tablesdb/update-point-column.md new file mode 100644 index 0000000000..7687f7eb67 --- /dev/null +++ b/docs/examples/1.8.x/server-rest/examples/tablesdb/update-point-column.md @@ -0,0 +1,12 @@ +PATCH /v1/tablesdb/{databaseId}/tables/{tableId}/columns/point/{key} HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Project: +X-Appwrite-Key: + +{ + "required": false, + "default": [1, 2], + "newKey": "" +} diff --git a/docs/examples/1.8.x/server-rest/examples/tablesdb/update-polygon-column.md b/docs/examples/1.8.x/server-rest/examples/tablesdb/update-polygon-column.md new file mode 100644 index 0000000000..ace2b57e0d --- /dev/null +++ b/docs/examples/1.8.x/server-rest/examples/tablesdb/update-polygon-column.md @@ -0,0 +1,12 @@ +PATCH /v1/tablesdb/{databaseId}/tables/{tableId}/columns/polygon/{key} HTTP/1.1 +Host: cloud.appwrite.io +Content-Type: application/json +X-Appwrite-Response-Format: 1.8.0 +X-Appwrite-Project: +X-Appwrite-Key: + +{ + "required": false, + "default": [[[1, 2], [3, 4], [5, 6], [1, 2]]], + "newKey": "" +} diff --git a/docs/examples/1.8.x/server-rest/examples/tablesdb/update-relationship-column.md b/docs/examples/1.8.x/server-rest/examples/tablesdb/update-relationship-column.md index fde5191383..04af7914cb 100644 --- a/docs/examples/1.8.x/server-rest/examples/tablesdb/update-relationship-column.md +++ b/docs/examples/1.8.x/server-rest/examples/tablesdb/update-relationship-column.md @@ -7,5 +7,5 @@ X-Appwrite-Key: { "onDelete": "cascade", - "newKey": + "newKey": "" } diff --git a/docs/examples/1.8.x/server-rest/examples/tablesdb/update-string-column.md b/docs/examples/1.8.x/server-rest/examples/tablesdb/update-string-column.md index a21b5e7fd1..a9345aabed 100644 --- a/docs/examples/1.8.x/server-rest/examples/tablesdb/update-string-column.md +++ b/docs/examples/1.8.x/server-rest/examples/tablesdb/update-string-column.md @@ -9,5 +9,5 @@ X-Appwrite-Key: "required": false, "default": "", "size": 1, - "newKey": + "newKey": "" } diff --git a/docs/examples/1.8.x/server-rest/examples/tablesdb/update-url-column.md b/docs/examples/1.8.x/server-rest/examples/tablesdb/update-url-column.md index c5d7001454..7a7149fafa 100644 --- a/docs/examples/1.8.x/server-rest/examples/tablesdb/update-url-column.md +++ b/docs/examples/1.8.x/server-rest/examples/tablesdb/update-url-column.md @@ -8,5 +8,5 @@ X-Appwrite-Key: { "required": false, "default": "https://example.com", - "newKey": + "newKey": "" } diff --git a/docs/examples/1.8.x/server-rest/examples/tokens/create-file-token.md b/docs/examples/1.8.x/server-rest/examples/tokens/create-file-token.md index 3d884e2c5d..712e843fbf 100644 --- a/docs/examples/1.8.x/server-rest/examples/tokens/create-file-token.md +++ b/docs/examples/1.8.x/server-rest/examples/tokens/create-file-token.md @@ -6,5 +6,5 @@ X-Appwrite-Project: X-Appwrite-Key: { - "expire": + "expire": "" } diff --git a/docs/examples/1.8.x/server-rest/examples/tokens/update.md b/docs/examples/1.8.x/server-rest/examples/tokens/update.md index ab58a4842a..a98ed5ef0b 100644 --- a/docs/examples/1.8.x/server-rest/examples/tokens/update.md +++ b/docs/examples/1.8.x/server-rest/examples/tokens/update.md @@ -6,5 +6,5 @@ X-Appwrite-Project: X-Appwrite-Key: { - "expire": + "expire": "" } diff --git a/docs/examples/1.8.x/server-rest/examples/users/create.md b/docs/examples/1.8.x/server-rest/examples/users/create.md index b638e6511e..d27b436580 100644 --- a/docs/examples/1.8.x/server-rest/examples/users/create.md +++ b/docs/examples/1.8.x/server-rest/examples/users/create.md @@ -9,6 +9,6 @@ X-Appwrite-Key: "userId": "", "email": "email@example.com", "phone": "+12065550100", - "password": , + "password": "", "name": "" } diff --git a/docs/examples/1.8.x/server-rest/examples/users/update-password.md b/docs/examples/1.8.x/server-rest/examples/users/update-password.md index 40220f80d5..6f689670e5 100644 --- a/docs/examples/1.8.x/server-rest/examples/users/update-password.md +++ b/docs/examples/1.8.x/server-rest/examples/users/update-password.md @@ -6,5 +6,5 @@ X-Appwrite-Project: X-Appwrite-Key: { - "password": + "password": "" } diff --git a/docs/examples/1.8.x/server-ruby/examples/account/update-prefs.md b/docs/examples/1.8.x/server-ruby/examples/account/update-prefs.md index ecfe4f4988..7e4311d9c6 100644 --- a/docs/examples/1.8.x/server-ruby/examples/account/update-prefs.md +++ b/docs/examples/1.8.x/server-ruby/examples/account/update-prefs.md @@ -10,5 +10,9 @@ client = Client.new account = Account.new(client) result = account.update_prefs( - prefs: {} + prefs: { + "language" => "en", + "timezone" => "UTC", + "darkTheme" => true + } ) diff --git a/docs/examples/1.8.x/server-ruby/examples/databases/create-document.md b/docs/examples/1.8.x/server-ruby/examples/databases/create-document.md index e6831084a1..22ce5745fd 100644 --- a/docs/examples/1.8.x/server-ruby/examples/databases/create-document.md +++ b/docs/examples/1.8.x/server-ruby/examples/databases/create-document.md @@ -13,6 +13,12 @@ result = databases.create_document( database_id: '', collection_id: '', document_id: '', - data: {}, + data: { + "username" => "walter.obrien", + "email" => "walter.obrien@example.com", + "fullName" => "Walter O'Brien", + "age" => 30, + "isAdmin" => false + }, permissions: ["read("any")"] # optional ) diff --git a/docs/examples/1.8.x/server-ruby/examples/databases/create-line-attribute.md b/docs/examples/1.8.x/server-ruby/examples/databases/create-line-attribute.md new file mode 100644 index 0000000000..33bdab7cf8 --- /dev/null +++ b/docs/examples/1.8.x/server-ruby/examples/databases/create-line-attribute.md @@ -0,0 +1,18 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('') # Your project ID + .set_key('') # Your secret API key + +databases = Databases.new(client) + +result = databases.create_line_attribute( + database_id: '', + collection_id: '', + key: '', + required: false, + default: [[1, 2], [3, 4], [5, 6]] # optional +) diff --git a/docs/examples/1.8.x/server-ruby/examples/databases/create-point-attribute.md b/docs/examples/1.8.x/server-ruby/examples/databases/create-point-attribute.md new file mode 100644 index 0000000000..f50a99ffea --- /dev/null +++ b/docs/examples/1.8.x/server-ruby/examples/databases/create-point-attribute.md @@ -0,0 +1,18 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('') # Your project ID + .set_key('') # Your secret API key + +databases = Databases.new(client) + +result = databases.create_point_attribute( + database_id: '', + collection_id: '', + key: '', + required: false, + default: [1, 2] # optional +) diff --git a/docs/examples/1.8.x/server-ruby/examples/databases/create-polygon-attribute.md b/docs/examples/1.8.x/server-ruby/examples/databases/create-polygon-attribute.md new file mode 100644 index 0000000000..d7930a5ffe --- /dev/null +++ b/docs/examples/1.8.x/server-ruby/examples/databases/create-polygon-attribute.md @@ -0,0 +1,18 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('') # Your project ID + .set_key('') # Your secret API key + +databases = Databases.new(client) + +result = databases.create_polygon_attribute( + database_id: '', + collection_id: '', + key: '', + required: false, + default: [[[1, 2], [3, 4], [5, 6], [1, 2]]] # optional +) diff --git a/docs/examples/1.8.x/server-ruby/examples/databases/update-line-attribute.md b/docs/examples/1.8.x/server-ruby/examples/databases/update-line-attribute.md new file mode 100644 index 0000000000..c6e6e46f95 --- /dev/null +++ b/docs/examples/1.8.x/server-ruby/examples/databases/update-line-attribute.md @@ -0,0 +1,19 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('') # Your project ID + .set_key('') # Your secret API key + +databases = Databases.new(client) + +result = databases.update_line_attribute( + database_id: '', + collection_id: '', + key: '', + required: false, + default: [[1, 2], [3, 4], [5, 6]], # optional + new_key: '' # optional +) diff --git a/docs/examples/1.8.x/server-ruby/examples/databases/update-point-attribute.md b/docs/examples/1.8.x/server-ruby/examples/databases/update-point-attribute.md new file mode 100644 index 0000000000..ce0b42b739 --- /dev/null +++ b/docs/examples/1.8.x/server-ruby/examples/databases/update-point-attribute.md @@ -0,0 +1,19 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('') # Your project ID + .set_key('') # Your secret API key + +databases = Databases.new(client) + +result = databases.update_point_attribute( + database_id: '', + collection_id: '', + key: '', + required: false, + default: [1, 2], # optional + new_key: '' # optional +) diff --git a/docs/examples/1.8.x/server-ruby/examples/databases/update-polygon-attribute.md b/docs/examples/1.8.x/server-ruby/examples/databases/update-polygon-attribute.md new file mode 100644 index 0000000000..c159822998 --- /dev/null +++ b/docs/examples/1.8.x/server-ruby/examples/databases/update-polygon-attribute.md @@ -0,0 +1,19 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('') # Your project ID + .set_key('') # Your secret API key + +databases = Databases.new(client) + +result = databases.update_polygon_attribute( + database_id: '', + collection_id: '', + key: '', + required: false, + default: [[[1, 2], [3, 4], [5, 6], [1, 2]]], # optional + new_key: '' # optional +) diff --git a/docs/examples/1.8.x/server-ruby/examples/tablesdb/create-line-column.md b/docs/examples/1.8.x/server-ruby/examples/tablesdb/create-line-column.md new file mode 100644 index 0000000000..ec2352e65a --- /dev/null +++ b/docs/examples/1.8.x/server-ruby/examples/tablesdb/create-line-column.md @@ -0,0 +1,18 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('') # Your project ID + .set_key('') # Your secret API key + +tables_db = TablesDB.new(client) + +result = tables_db.create_line_column( + database_id: '', + table_id: '', + key: '', + required: false, + default: [[1, 2], [3, 4], [5, 6]] # optional +) diff --git a/docs/examples/1.8.x/server-ruby/examples/tablesdb/create-point-column.md b/docs/examples/1.8.x/server-ruby/examples/tablesdb/create-point-column.md new file mode 100644 index 0000000000..bfe77a54d0 --- /dev/null +++ b/docs/examples/1.8.x/server-ruby/examples/tablesdb/create-point-column.md @@ -0,0 +1,18 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('') # Your project ID + .set_key('') # Your secret API key + +tables_db = TablesDB.new(client) + +result = tables_db.create_point_column( + database_id: '', + table_id: '', + key: '', + required: false, + default: [1, 2] # optional +) diff --git a/docs/examples/1.8.x/server-ruby/examples/tablesdb/create-polygon-column.md b/docs/examples/1.8.x/server-ruby/examples/tablesdb/create-polygon-column.md new file mode 100644 index 0000000000..40ac70e78c --- /dev/null +++ b/docs/examples/1.8.x/server-ruby/examples/tablesdb/create-polygon-column.md @@ -0,0 +1,18 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('') # Your project ID + .set_key('') # Your secret API key + +tables_db = TablesDB.new(client) + +result = tables_db.create_polygon_column( + database_id: '', + table_id: '', + key: '', + required: false, + default: [[[1, 2], [3, 4], [5, 6], [1, 2]]] # optional +) diff --git a/docs/examples/1.8.x/server-ruby/examples/tablesdb/create-row.md b/docs/examples/1.8.x/server-ruby/examples/tablesdb/create-row.md index 5b66bc4cf4..5e19136676 100644 --- a/docs/examples/1.8.x/server-ruby/examples/tablesdb/create-row.md +++ b/docs/examples/1.8.x/server-ruby/examples/tablesdb/create-row.md @@ -13,6 +13,12 @@ result = tables_db.create_row( database_id: '', table_id: '', row_id: '', - data: {}, + data: { + "username" => "walter.obrien", + "email" => "walter.obrien@example.com", + "fullName" => "Walter O'Brien", + "age" => 30, + "isAdmin" => false + }, permissions: ["read("any")"] # optional ) diff --git a/docs/examples/1.8.x/server-ruby/examples/tablesdb/update-line-column.md b/docs/examples/1.8.x/server-ruby/examples/tablesdb/update-line-column.md new file mode 100644 index 0000000000..5c1e24d16e --- /dev/null +++ b/docs/examples/1.8.x/server-ruby/examples/tablesdb/update-line-column.md @@ -0,0 +1,19 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('') # Your project ID + .set_key('') # Your secret API key + +tables_db = TablesDB.new(client) + +result = tables_db.update_line_column( + database_id: '', + table_id: '', + key: '', + required: false, + default: [[1, 2], [3, 4], [5, 6]], # optional + new_key: '' # optional +) diff --git a/docs/examples/1.8.x/server-ruby/examples/tablesdb/update-point-column.md b/docs/examples/1.8.x/server-ruby/examples/tablesdb/update-point-column.md new file mode 100644 index 0000000000..f2130bda64 --- /dev/null +++ b/docs/examples/1.8.x/server-ruby/examples/tablesdb/update-point-column.md @@ -0,0 +1,19 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('') # Your project ID + .set_key('') # Your secret API key + +tables_db = TablesDB.new(client) + +result = tables_db.update_point_column( + database_id: '', + table_id: '', + key: '', + required: false, + default: [1, 2], # optional + new_key: '' # optional +) diff --git a/docs/examples/1.8.x/server-ruby/examples/tablesdb/update-polygon-column.md b/docs/examples/1.8.x/server-ruby/examples/tablesdb/update-polygon-column.md new file mode 100644 index 0000000000..6b878e3e18 --- /dev/null +++ b/docs/examples/1.8.x/server-ruby/examples/tablesdb/update-polygon-column.md @@ -0,0 +1,19 @@ +require 'appwrite' + +include Appwrite + +client = Client.new + .set_endpoint('https://.cloud.appwrite.io/v1') # Your API Endpoint + .set_project('') # Your project ID + .set_key('') # Your secret API key + +tables_db = TablesDB.new(client) + +result = tables_db.update_polygon_column( + database_id: '', + table_id: '', + key: '', + required: false, + default: [[[1, 2], [3, 4], [5, 6], [1, 2]]], # optional + new_key: '' # optional +) diff --git a/docs/examples/1.8.x/server-swift/examples/account/update-prefs.md b/docs/examples/1.8.x/server-swift/examples/account/update-prefs.md index 53bf623469..cc7b5e6860 100644 --- a/docs/examples/1.8.x/server-swift/examples/account/update-prefs.md +++ b/docs/examples/1.8.x/server-swift/examples/account/update-prefs.md @@ -8,6 +8,10 @@ let client = Client() let account = Account(client) let user = try await account.updatePrefs( - prefs: [:] + prefs: [ + "language": "en", + "timezone": "UTC", + "darkTheme": true + ] ) diff --git a/docs/examples/1.8.x/server-swift/examples/databases/create-document.md b/docs/examples/1.8.x/server-swift/examples/databases/create-document.md index daeaf144e1..cc25fd8df8 100644 --- a/docs/examples/1.8.x/server-swift/examples/databases/create-document.md +++ b/docs/examples/1.8.x/server-swift/examples/databases/create-document.md @@ -11,7 +11,13 @@ let document = try await databases.createDocument( databaseId: "", collectionId: "", documentId: "", - data: [:], + data: [ + "username": "walter.obrien", + "email": "walter.obrien@example.com", + "fullName": "Walter O'Brien", + "age": 30, + "isAdmin": false + ], permissions: ["read("any")"] // optional ) diff --git a/docs/examples/1.8.x/server-swift/examples/databases/create-line-attribute.md b/docs/examples/1.8.x/server-swift/examples/databases/create-line-attribute.md new file mode 100644 index 0000000000..610da4dd71 --- /dev/null +++ b/docs/examples/1.8.x/server-swift/examples/databases/create-line-attribute.md @@ -0,0 +1,17 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +let databases = Databases(client) + +let attributeLine = try await databases.createLineAttribute( + databaseId: "", + collectionId: "", + key: "", + required: false, + default: [[1, 2], [3, 4], [5, 6]] // optional +) + diff --git a/docs/examples/1.8.x/server-swift/examples/databases/create-point-attribute.md b/docs/examples/1.8.x/server-swift/examples/databases/create-point-attribute.md new file mode 100644 index 0000000000..e3392e871f --- /dev/null +++ b/docs/examples/1.8.x/server-swift/examples/databases/create-point-attribute.md @@ -0,0 +1,17 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +let databases = Databases(client) + +let attributePoint = try await databases.createPointAttribute( + databaseId: "", + collectionId: "", + key: "", + required: false, + default: [1, 2] // optional +) + diff --git a/docs/examples/1.8.x/server-swift/examples/databases/create-polygon-attribute.md b/docs/examples/1.8.x/server-swift/examples/databases/create-polygon-attribute.md new file mode 100644 index 0000000000..c68543e87b --- /dev/null +++ b/docs/examples/1.8.x/server-swift/examples/databases/create-polygon-attribute.md @@ -0,0 +1,17 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +let databases = Databases(client) + +let attributePolygon = try await databases.createPolygonAttribute( + databaseId: "", + collectionId: "", + key: "", + required: false, + default: [[[1, 2], [3, 4], [5, 6], [1, 2]]] // optional +) + diff --git a/docs/examples/1.8.x/server-swift/examples/databases/update-line-attribute.md b/docs/examples/1.8.x/server-swift/examples/databases/update-line-attribute.md new file mode 100644 index 0000000000..a9c65367aa --- /dev/null +++ b/docs/examples/1.8.x/server-swift/examples/databases/update-line-attribute.md @@ -0,0 +1,18 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +let databases = Databases(client) + +let attributeLine = try await databases.updateLineAttribute( + databaseId: "", + collectionId: "", + key: "", + required: false, + default: [[1, 2], [3, 4], [5, 6]], // optional + newKey: "" // optional +) + diff --git a/docs/examples/1.8.x/server-swift/examples/databases/update-point-attribute.md b/docs/examples/1.8.x/server-swift/examples/databases/update-point-attribute.md new file mode 100644 index 0000000000..6fd00c5da6 --- /dev/null +++ b/docs/examples/1.8.x/server-swift/examples/databases/update-point-attribute.md @@ -0,0 +1,18 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +let databases = Databases(client) + +let attributePoint = try await databases.updatePointAttribute( + databaseId: "", + collectionId: "", + key: "", + required: false, + default: [1, 2], // optional + newKey: "" // optional +) + diff --git a/docs/examples/1.8.x/server-swift/examples/databases/update-polygon-attribute.md b/docs/examples/1.8.x/server-swift/examples/databases/update-polygon-attribute.md new file mode 100644 index 0000000000..08bbaec88e --- /dev/null +++ b/docs/examples/1.8.x/server-swift/examples/databases/update-polygon-attribute.md @@ -0,0 +1,18 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +let databases = Databases(client) + +let attributePolygon = try await databases.updatePolygonAttribute( + databaseId: "", + collectionId: "", + key: "", + required: false, + default: [[[1, 2], [3, 4], [5, 6], [1, 2]]], // optional + newKey: "" // optional +) + diff --git a/docs/examples/1.8.x/server-swift/examples/tablesdb/create-line-column.md b/docs/examples/1.8.x/server-swift/examples/tablesdb/create-line-column.md new file mode 100644 index 0000000000..2737d91cb8 --- /dev/null +++ b/docs/examples/1.8.x/server-swift/examples/tablesdb/create-line-column.md @@ -0,0 +1,17 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +let tablesDB = TablesDB(client) + +let columnLine = try await tablesDB.createLineColumn( + databaseId: "", + tableId: "", + key: "", + required: false, + default: [[1, 2], [3, 4], [5, 6]] // optional +) + diff --git a/docs/examples/1.8.x/server-swift/examples/tablesdb/create-point-column.md b/docs/examples/1.8.x/server-swift/examples/tablesdb/create-point-column.md new file mode 100644 index 0000000000..2652ea0427 --- /dev/null +++ b/docs/examples/1.8.x/server-swift/examples/tablesdb/create-point-column.md @@ -0,0 +1,17 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +let tablesDB = TablesDB(client) + +let columnPoint = try await tablesDB.createPointColumn( + databaseId: "", + tableId: "", + key: "", + required: false, + default: [1, 2] // optional +) + diff --git a/docs/examples/1.8.x/server-swift/examples/tablesdb/create-polygon-column.md b/docs/examples/1.8.x/server-swift/examples/tablesdb/create-polygon-column.md new file mode 100644 index 0000000000..860a1eeab2 --- /dev/null +++ b/docs/examples/1.8.x/server-swift/examples/tablesdb/create-polygon-column.md @@ -0,0 +1,17 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +let tablesDB = TablesDB(client) + +let columnPolygon = try await tablesDB.createPolygonColumn( + databaseId: "", + tableId: "", + key: "", + required: false, + default: [[[1, 2], [3, 4], [5, 6], [1, 2]]] // optional +) + diff --git a/docs/examples/1.8.x/server-swift/examples/tablesdb/create-row.md b/docs/examples/1.8.x/server-swift/examples/tablesdb/create-row.md index 31e0ea9bc1..0c59a65755 100644 --- a/docs/examples/1.8.x/server-swift/examples/tablesdb/create-row.md +++ b/docs/examples/1.8.x/server-swift/examples/tablesdb/create-row.md @@ -11,7 +11,13 @@ let row = try await tablesDB.createRow( databaseId: "", tableId: "", rowId: "", - data: [:], + data: [ + "username": "walter.obrien", + "email": "walter.obrien@example.com", + "fullName": "Walter O'Brien", + "age": 30, + "isAdmin": false + ], permissions: ["read("any")"] // optional ) diff --git a/docs/examples/1.8.x/server-swift/examples/tablesdb/update-line-column.md b/docs/examples/1.8.x/server-swift/examples/tablesdb/update-line-column.md new file mode 100644 index 0000000000..d63e024849 --- /dev/null +++ b/docs/examples/1.8.x/server-swift/examples/tablesdb/update-line-column.md @@ -0,0 +1,18 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +let tablesDB = TablesDB(client) + +let columnLine = try await tablesDB.updateLineColumn( + databaseId: "", + tableId: "", + key: "", + required: false, + default: [[1, 2], [3, 4], [5, 6]], // optional + newKey: "" // optional +) + diff --git a/docs/examples/1.8.x/server-swift/examples/tablesdb/update-point-column.md b/docs/examples/1.8.x/server-swift/examples/tablesdb/update-point-column.md new file mode 100644 index 0000000000..3427b17bdf --- /dev/null +++ b/docs/examples/1.8.x/server-swift/examples/tablesdb/update-point-column.md @@ -0,0 +1,18 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +let tablesDB = TablesDB(client) + +let columnPoint = try await tablesDB.updatePointColumn( + databaseId: "", + tableId: "", + key: "", + required: false, + default: [1, 2], // optional + newKey: "" // optional +) + diff --git a/docs/examples/1.8.x/server-swift/examples/tablesdb/update-polygon-column.md b/docs/examples/1.8.x/server-swift/examples/tablesdb/update-polygon-column.md new file mode 100644 index 0000000000..140665a1be --- /dev/null +++ b/docs/examples/1.8.x/server-swift/examples/tablesdb/update-polygon-column.md @@ -0,0 +1,18 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint + .setProject("") // Your project ID + .setKey("") // Your secret API key + +let tablesDB = TablesDB(client) + +let columnPolygon = try await tablesDB.updatePolygonColumn( + databaseId: "", + tableId: "", + key: "", + required: false, + default: [[[1, 2], [3, 4], [5, 6], [1, 2]]], // optional + newKey: "" // optional +) + diff --git a/docs/references/databases/create-line-attribute.md b/docs/references/databases/create-line-attribute.md new file mode 100644 index 0000000000..96f1509936 --- /dev/null +++ b/docs/references/databases/create-line-attribute.md @@ -0,0 +1 @@ +Create a geometric line attribute. \ No newline at end of file diff --git a/docs/references/databases/create-point-attribute.md b/docs/references/databases/create-point-attribute.md new file mode 100644 index 0000000000..dd92ffc98e --- /dev/null +++ b/docs/references/databases/create-point-attribute.md @@ -0,0 +1 @@ +Create a geometric point attribute. \ No newline at end of file diff --git a/docs/references/databases/create-polygon-attribute.md b/docs/references/databases/create-polygon-attribute.md new file mode 100644 index 0000000000..7cb3985ff7 --- /dev/null +++ b/docs/references/databases/create-polygon-attribute.md @@ -0,0 +1 @@ +Create a geometric polygon attribute. \ No newline at end of file diff --git a/docs/references/databases/update-line-attribute.md b/docs/references/databases/update-line-attribute.md new file mode 100644 index 0000000000..b55d31c5f6 --- /dev/null +++ b/docs/references/databases/update-line-attribute.md @@ -0,0 +1 @@ +Update a line attribute. Changing the `default` value will not update already existing documents. \ No newline at end of file diff --git a/docs/references/databases/update-point-attribute.md b/docs/references/databases/update-point-attribute.md new file mode 100644 index 0000000000..f40d18c6e5 --- /dev/null +++ b/docs/references/databases/update-point-attribute.md @@ -0,0 +1 @@ +Update a point attribute. Changing the `default` value will not update already existing documents. \ No newline at end of file diff --git a/docs/references/databases/update-polygon-attribute.md b/docs/references/databases/update-polygon-attribute.md new file mode 100644 index 0000000000..0d9718e41e --- /dev/null +++ b/docs/references/databases/update-polygon-attribute.md @@ -0,0 +1 @@ +Update a polygon attribute. Changing the `default` value will not update already existing documents. \ No newline at end of file diff --git a/docs/references/projects/list.md b/docs/references/projects/list.md deleted file mode 100644 index 576a4b79ae..0000000000 --- a/docs/references/projects/list.md +++ /dev/null @@ -1 +0,0 @@ -Get a list of all projects. You can use the query params to filter your results. \ No newline at end of file diff --git a/docs/references/proxy/delete-rule.md b/docs/references/proxy/delete-rule.md deleted file mode 100644 index 7a4823f86d..0000000000 --- a/docs/references/proxy/delete-rule.md +++ /dev/null @@ -1 +0,0 @@ -Delete a proxy rule by its unique ID. \ No newline at end of file diff --git a/docs/references/proxy/get-rule.md b/docs/references/proxy/get-rule.md deleted file mode 100644 index cfd040141e..0000000000 --- a/docs/references/proxy/get-rule.md +++ /dev/null @@ -1 +0,0 @@ -Get a proxy rule by its unique ID. \ No newline at end of file diff --git a/docs/references/proxy/list-rules.md b/docs/references/proxy/list-rules.md deleted file mode 100644 index 042d780f02..0000000000 --- a/docs/references/proxy/list-rules.md +++ /dev/null @@ -1 +0,0 @@ -Get a list of all the proxy rules. You can use the query params to filter your results. \ No newline at end of file diff --git a/docs/references/proxy/update-rule-verification.md b/docs/references/proxy/update-rule-verification.md deleted file mode 100644 index c06994bc59..0000000000 --- a/docs/references/proxy/update-rule-verification.md +++ /dev/null @@ -1 +0,0 @@ -Retry getting verification process of a proxy rule. This endpoint triggers domain verification by checking DNS records (CNAME) against the configured target domain. If verification is successful, a TLS certificate will be automatically provisioned for the domain. \ No newline at end of file diff --git a/docs/references/tablesdb/create-line-column.md b/docs/references/tablesdb/create-line-column.md new file mode 100644 index 0000000000..bee229c132 --- /dev/null +++ b/docs/references/tablesdb/create-line-column.md @@ -0,0 +1 @@ +Create a geometric line column. \ No newline at end of file diff --git a/docs/references/tablesdb/create-point-column.md b/docs/references/tablesdb/create-point-column.md new file mode 100644 index 0000000000..36bb5b6c37 --- /dev/null +++ b/docs/references/tablesdb/create-point-column.md @@ -0,0 +1 @@ +Create a geometric point column. \ No newline at end of file diff --git a/docs/references/tablesdb/create-polygon-column.md b/docs/references/tablesdb/create-polygon-column.md new file mode 100644 index 0000000000..c334003cc6 --- /dev/null +++ b/docs/references/tablesdb/create-polygon-column.md @@ -0,0 +1 @@ +Create a geometric polygon column. \ No newline at end of file diff --git a/docs/references/tablesdb/update-line-column.md b/docs/references/tablesdb/update-line-column.md new file mode 100644 index 0000000000..2558d4ab3c --- /dev/null +++ b/docs/references/tablesdb/update-line-column.md @@ -0,0 +1 @@ +Update a line column. Changing the `default` value will not update already existing rows. \ No newline at end of file diff --git a/docs/references/tablesdb/update-point-column.md b/docs/references/tablesdb/update-point-column.md new file mode 100644 index 0000000000..9acf547538 --- /dev/null +++ b/docs/references/tablesdb/update-point-column.md @@ -0,0 +1 @@ +Update a point column. Changing the `default` value will not update already existing rows. \ No newline at end of file diff --git a/docs/references/tablesdb/update-polygon-column.md b/docs/references/tablesdb/update-polygon-column.md new file mode 100644 index 0000000000..40dbf8a095 --- /dev/null +++ b/docs/references/tablesdb/update-polygon-column.md @@ -0,0 +1 @@ +Update a polygon column. Changing the `default` value will not update already existing rows. \ No newline at end of file diff --git a/docs/sdks/dart/CHANGELOG.md b/docs/sdks/dart/CHANGELOG.md index 9a0b94a85d..7033bbdd1d 100644 --- a/docs/sdks/dart/CHANGELOG.md +++ b/docs/sdks/dart/CHANGELOG.md @@ -1,5 +1,13 @@ # Change Log +## 18.0.0 + +* Rename `CreditCard` enum value `unionChinaPay` to `unionPay` +* Add time between query support +* Add spatial attribute support +* Add spatial index support +* Add spatial query support + ## 17.0.0 * Support for Appwrite 1.8 diff --git a/docs/sdks/flutter/CHANGELOG.md b/docs/sdks/flutter/CHANGELOG.md index 9794709ed7..7ff4a445b3 100644 --- a/docs/sdks/flutter/CHANGELOG.md +++ b/docs/sdks/flutter/CHANGELOG.md @@ -1,5 +1,11 @@ # Change Log +## 19.0.0 + +* Rename `CreditCard` enum value `unionChinaPay` to `unionPay` +* Add time between query support +* Add spatial query support + ## 18.0.0 * Support for Appwrite 1.8 diff --git a/src/Appwrite/Event/Certificate.php b/src/Appwrite/Event/Certificate.php index 827472ae37..00875c7a4a 100644 --- a/src/Appwrite/Event/Certificate.php +++ b/src/Appwrite/Event/Certificate.php @@ -9,6 +9,7 @@ class Certificate extends Event { protected bool $skipRenewCheck = false; protected ?Document $domain = null; + protected ?string $validationDomain = null; public function __construct(protected Publisher $publisher) { @@ -55,6 +56,30 @@ class Certificate extends Event return $this; } + + /** + * Set override for main domain used for validation + * + * @param string|null $validationDomain + * @return self + */ + public function setValidationDomain(?string $validationDomain): self + { + $this->validationDomain = $validationDomain; + + return $this; + } + + /** + * Get validation domain + * + * @return string|null + */ + public function getValidationDomain(): ?string + { + return $this->validationDomain; + } + /** * Return if the certificate needs be validated. * @@ -65,6 +90,7 @@ class Certificate extends Event return $this->skipRenewCheck; } + /** * Prepare the payload for the event * @@ -75,7 +101,8 @@ class Certificate extends Event return [ 'project' => $this->project, 'domain' => $this->domain, - 'skipRenewCheck' => $this->skipRenewCheck + 'skipRenewCheck' => $this->skipRenewCheck, + 'validationDomain' => $this->validationDomain ]; } } diff --git a/src/Appwrite/Event/Event.php b/src/Appwrite/Event/Event.php index 2557bf3f26..e9f3ccc2a2 100644 --- a/src/Appwrite/Event/Event.php +++ b/src/Appwrite/Event/Event.php @@ -638,4 +638,16 @@ class Event return $events; } + + /** + * Returns the size of the queue. + * + * @param bool $failed Whether to include failed events in the count. + * @return int The size of the queue. + */ + public function getSize(bool $failed = false): int + { + $queue = new Queue($this->getQueue()); + return $this->publisher->getQueueSize($queue, $failed); + } } diff --git a/src/Appwrite/Extend/Exception.php b/src/Appwrite/Extend/Exception.php index 8eded2dbe0..52282ad7af 100644 --- a/src/Appwrite/Extend/Exception.php +++ b/src/Appwrite/Extend/Exception.php @@ -134,6 +134,7 @@ class Exception extends \Exception public const AVATAR_IMAGE_NOT_FOUND = 'avatar_image_not_found'; public const AVATAR_REMOTE_URL_FAILED = 'avatar_remote_url_failed'; public const AVATAR_ICON_NOT_FOUND = 'avatar_icon_not_found'; + public const AVATAR_SVG_SANITIZATION_FAILED = 'avatar_svg_sanitization_failed'; /** Storage */ public const STORAGE_FILE_ALREADY_EXISTS = 'storage_file_already_exists'; @@ -234,6 +235,8 @@ class Exception extends \Exception public const ATTRIBUTE_TYPE_INVALID = 'attribute_type_invalid'; public const ATTRIBUTE_INVALID_RESIZE = 'attribute_invalid_resize'; + public const ATTRIBUTE_TYPE_NOT_SUPPORTED = 'ATTRIBUTE_TYPE_NOT_SUPPORTED'; + /** Columns */ public const COLUMN_NOT_FOUND = 'column_not_found'; public const COLUMN_UNKNOWN = 'column_unknown'; @@ -246,6 +249,8 @@ class Exception extends \Exception public const COLUMN_TYPE_INVALID = 'column_type_invalid'; public const COLUMN_INVALID_RESIZE = 'column_invalid_resize'; + public const COLUMN_TYPE_NOT_SUPPORTED = 'COLUMN_TYPE_NOT_SUPPORTED'; + /** Relationship */ public const RELATIONSHIP_VALUE_INVALID = 'relationship_value_invalid'; diff --git a/src/Appwrite/GraphQL/Types/Mapper.php b/src/Appwrite/GraphQL/Types/Mapper.php index 1bfb2231c7..f0394b2395 100644 --- a/src/Appwrite/GraphQL/Types/Mapper.php +++ b/src/Appwrite/GraphQL/Types/Mapper.php @@ -58,6 +58,7 @@ class Mapper 'json' => Types::json(), 'none' => Types::json(), 'any' => Types::json(), + 'array' => Types::json() ]; foreach ($defaults as $type => $default) { @@ -456,6 +457,9 @@ class Mapper 'boolean' => static::model("{$prefix}Boolean"), 'datetime' => static::model("{$prefix}Datetime"), 'relationship' => static::model("{$prefix}Relationship"), + 'point' => static::model("{$prefix}Point"), + 'linestring' => static::model("{$prefix}Line"), + 'polygon' => static::model("{$prefix}Polygon"), default => throw new Exception('Unknown ' . strtolower($prefix) . ' implementation'), }; } diff --git a/src/Appwrite/Platform/Action.php b/src/Appwrite/Platform/Action.php index 056a33b320..5699a67ff2 100644 --- a/src/Appwrite/Platform/Action.php +++ b/src/Appwrite/Platform/Action.php @@ -2,6 +2,8 @@ namespace Appwrite\Platform; +use Appwrite\Utopia\Request; +use Appwrite\Utopia\Response; use Swoole\Coroutine as Co; use Utopia\CLI\Console; use Utopia\Database\Database; @@ -157,4 +159,45 @@ class Action extends UtopiaAction Console::info("[" . DateTime::now() . "] " . $method . ' ' . $type . ' ' . $project->getSequence() . ' ' . $project->getId() . ' ' . $collectionId . ' ' . $log); } } + + + /** + * Helper to apply (request) select queries to response model. + * + * This prevents default values of rules to be presnet for not-selected attributes + * + * @param Request $request + * @param Document $document + * @return void + */ + public function applySelectQueries(Request $request, Response $response, string $model): void + { + $queries = $request->getParam('queries', []); + + $queries = Query::parseQueries($queries); + $selectQueries = Query::groupByType($queries)['selections'] ?? []; + + // No select queries means no filtering out + if (empty($selectQueries)) { + return; + } + + $attributes = []; + foreach ($selectQueries as $query) { + foreach ($query->getValues() as $attribute) { + $attributes[] = $attribute; + } + } + + $responseModel = $response->getModel($model); + foreach ($responseModel->getRules() as $ruleName => $rule) { + if (\str_starts_with($ruleName, '$')) { + continue; + } + + if (!\in_array($ruleName, $attributes)) { + $responseModel->removeRule($ruleName); + } + } + } } diff --git a/src/Appwrite/Platform/Modules/Compute/Base.php b/src/Appwrite/Platform/Modules/Compute/Base.php index e58f2b8664..92805fbaf8 100644 --- a/src/Appwrite/Platform/Modules/Compute/Base.php +++ b/src/Appwrite/Platform/Modules/Compute/Base.php @@ -4,6 +4,7 @@ namespace Appwrite\Platform\Modules\Compute; use Appwrite\Event\Build; use Appwrite\Extend\Exception; +use Appwrite\Platform\Action; use Utopia\Database\Database; use Utopia\Database\Document; use Utopia\Database\Exception\Duplicate; @@ -11,7 +12,6 @@ use Utopia\Database\Helpers\ID; use Utopia\Database\Helpers\Permission; use Utopia\Database\Helpers\Role; use Utopia\Database\Validator\Authorization; -use Utopia\Platform\Action; use Utopia\Swoole\Request; use Utopia\System\System; use Utopia\VCS\Adapter\Git\GitHub; diff --git a/src/Appwrite/Platform/Modules/Console/Http/Resources/Get.php b/src/Appwrite/Platform/Modules/Console/Http/Resources/Get.php index 114a24ef22..b67a42adb1 100644 --- a/src/Appwrite/Platform/Modules/Console/Http/Resources/Get.php +++ b/src/Appwrite/Platform/Modules/Console/Http/Resources/Get.php @@ -11,9 +11,11 @@ use Appwrite\Utopia\Response; use Utopia\Database\Database; use Utopia\Database\Query; use Utopia\Database\Validator\Authorization; +use Utopia\Domains\Domain as Domain; use Utopia\Platform\Action; use Utopia\Platform\Scope\HTTP; -use Utopia\Validator\Domain; +use Utopia\System\System; +use Utopia\Validator\Domain as DomainValidator; use Utopia\Validator\Text; use Utopia\Validator\WhiteList; @@ -67,10 +69,59 @@ class Get extends Action Database $dbForPlatform ) { if ($type === 'rules') { - $validator = new Domain($value); + $sitesDomain = System::getEnv('_APP_DOMAIN_SITES', ''); + $functionsDomain = System::getEnv('_APP_DOMAIN_FUNCTIONS', ''); + + $restrictions = []; + if (!empty($sitesDomain)) { + // Ensure site domains are exactly 1 subdomain, and dont start with reserved prefix + $domainLevel = \count(\explode('.', $sitesDomain)); + $restrictions[] = DomainValidator::createRestriction($sitesDomain, $domainLevel + 1, ['commit-', 'branch-']); + } + if (!empty($functionsDomain)) { + // Ensure function domains are exactly 1 subdomain + $domainLevel = \count(\explode('.', $functionsDomain)); + $restrictions[] = DomainValidator::createRestriction($functionsDomain, $domainLevel + 1); + } + $validator = new DomainValidator($restrictions); if (!$validator->isValid($value)) { - throw new Exception(Exception::GENERAL_ARGUMENT_INVALID, $validator->getDescription()); + throw new Exception(Exception::GENERAL_ARGUMENT_INVALID, 'This domain name is not allowed. Please use a different domain.'); + } + + $deniedDomains = [ + 'localhost', + APP_HOSTNAME_INTERNAL + ]; + + $mainDomain = System::getEnv('_APP_DOMAIN', ''); + $deniedDomains[] = $mainDomain; + + if (!empty($sitesDomain)) { + $deniedDomains[] = $sitesDomain; + } + + if (!empty($functionsDomain)) { + $deniedDomains[] = $functionsDomain; + } + + $denyListDomains = System::getEnv('_APP_CUSTOM_DOMAIN_DENY_LIST', ''); + $denyListDomains = \array_map('trim', explode(',', $denyListDomains)); + foreach ($denyListDomains as $denyListDomain) { + if (empty($denyListDomain)) { + continue; + } + $deniedDomains[] = $denyListDomain; + } + + if (\in_array($value, $deniedDomains)) { + throw new Exception(Exception::GENERAL_ARGUMENT_INVALID, 'This domain name is not allowed. Please use a different domain.'); + } + + try { + $domain = new Domain($value); + } catch (\Throwable) { + throw new Exception(Exception::GENERAL_ARGUMENT_INVALID, 'Domain may not start with http:// or https://.'); } $document = Authorization::skip(fn () => $dbForPlatform->findOne('rules', [ diff --git a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/Action.php b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/Action.php index bb536bc498..f3903d91a7 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/Action.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/Action.php @@ -209,6 +209,14 @@ abstract class Action extends UtopiaAction : Exception::COLUMN_NOT_AVAILABLE; } + /** + * Get the exception for spatial type attribute not supported by the database adapter + */ + protected function getSpatialTypeNotSupportedException(): string + { + return $this->isCollectionsAPI() ? Exception::ATTRIBUTE_TYPE_NOT_SUPPORTED : Exception::COLUMN_TYPE_NOT_SUPPORTED; + } + /** * Get the correct collections context for Events queue. */ @@ -245,6 +253,18 @@ abstract class Action extends UtopiaAction ? UtopiaResponse::MODEL_ATTRIBUTE_RELATIONSHIP : UtopiaResponse::MODEL_COLUMN_RELATIONSHIP, + Database::VAR_POINT => $isCollections + ? UtopiaResponse::MODEL_ATTRIBUTE_POINT + : UtopiaResponse::MODEL_COLUMN_POINT, + + Database::VAR_LINESTRING => $isCollections + ? UtopiaResponse::MODEL_ATTRIBUTE_LINE + : UtopiaResponse::MODEL_COLUMN_LINE, + + Database::VAR_POLYGON => $isCollections + ? UtopiaResponse::MODEL_ATTRIBUTE_POLYGON + : UtopiaResponse::MODEL_COLUMN_POLYGON, + Database::VAR_STRING => match ($format) { APP_DATABASE_ATTRIBUTE_EMAIL => $isCollections ? UtopiaResponse::MODEL_ATTRIBUTE_EMAIL @@ -286,6 +306,10 @@ abstract class Action extends UtopiaAction $default = $attribute->getAttribute('default'); $options = $attribute->getAttribute('options', []); + if (in_array($type, Database::SPATIAL_TYPES) && !$dbForProject->getAdapter()->getSupportForSpatialAttributes()) { + throw new Exception($this->getSpatialTypeNotSupportedException()); + } + $db = Authorization::skip(fn () => $dbForProject->getDocument('databases', $databaseId)); if ($db->isEmpty()) { @@ -434,7 +458,7 @@ abstract class Action extends UtopiaAction return $attribute; } - protected function updateAttribute(string $databaseId, string $collectionId, string $key, Database $dbForProject, Event $queueForEvents, string $type, int $size = null, string $filter = null, string|bool|int|float $default = null, bool $required = null, int|float|null $min = null, int|float|null $max = null, array $elements = null, array $options = [], string $newKey = null): Document + protected function updateAttribute(string $databaseId, string $collectionId, string $key, Database $dbForProject, Event $queueForEvents, string $type, int $size = null, string $filter = null, string|bool|int|float|array $default = null, bool $required = null, int|float|null $min = null, int|float|null $max = null, array $elements = null, array $options = [], string $newKey = null): Document { $db = Authorization::skip(fn () => $dbForProject->getDocument('databases', $databaseId)); diff --git a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/Line/Create.php b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/Line/Create.php new file mode 100644 index 0000000000..4eb3345823 --- /dev/null +++ b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/Line/Create.php @@ -0,0 +1,88 @@ +setHttpMethod(self::HTTP_REQUEST_METHOD_POST) + ->setHttpPath('/v1/databases/:databaseId/collections/:collectionId/attributes/line') + ->desc('Create line attribute') + ->groups(['api', 'database', 'schema']) + ->label('event', 'databases.[databaseId].collections.[collectionId].attributes.[attributeId].create') + ->label('scope', 'collections.write') + ->label('resourceType', RESOURCE_TYPE_DATABASES) + ->label('audits.event', 'attribute.create') + ->label('audits.resource', 'database/{request.databaseId}/collection/{request.collectionId}') + ->label('sdk', new Method( + namespace: $this->getSdkNamespace(), + group: $this->getSdkGroup(), + name: self::getName(), + description: '/docs/references/databases/create-line-attribute.md', + auth: [AuthType::KEY], + responses: [ + new SDKResponse( + code: SwooleResponse::STATUS_CODE_ACCEPTED, + model: $this->getResponseModel(), + ) + ], + deprecated: new Deprecated( + since: '1.8.0', + replaceWith: 'tablesDB.createLineColumn', + ), + )) + ->param('databaseId', '', new UID(), 'Database ID.') + ->param('collectionId', '', new UID(), 'Collection ID. You can create a new collection using the Database service [server integration](https://appwrite.io/docs/server/databases#databasesCreateCollection).') + ->param('key', '', new Key(), 'Attribute Key.') + ->param('required', null, new Boolean(), 'Is attribute required?') + ->param('default', null, new Nullable(new Spatial(Database::VAR_LINESTRING)), 'Default value for attribute when not provided, two-dimensional array of coordinate pairs, [[longitude, latitude], [longitude, latitude], …], listing the vertices of the line in order. Cannot be set when attribute is required.', true) + ->inject('response') + ->inject('dbForProject') + ->inject('queueForDatabase') + ->inject('queueForEvents') + ->callback($this->action(...)); + } + + public function action(string $databaseId, string $collectionId, string $key, ?bool $required, ?array $default, UtopiaResponse $response, Database $dbForProject, EventDatabase $queueForDatabase, Event $queueForEvents): void + { + $attribute = $this->createAttribute($databaseId, $collectionId, new Document([ + 'key' => $key, + 'type' => Database::VAR_LINESTRING, + 'required' => $required, + 'default' => $default + ]), $response, $dbForProject, $queueForDatabase, $queueForEvents); + + $response + ->setStatusCode(SwooleResponse::STATUS_CODE_ACCEPTED) + ->dynamic($attribute, $this->getResponseModel()); + } +} diff --git a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/Line/Update.php b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/Line/Update.php new file mode 100644 index 0000000000..8fcb867923 --- /dev/null +++ b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/Line/Update.php @@ -0,0 +1,93 @@ +setHttpMethod(self::HTTP_REQUEST_METHOD_PATCH) + ->setHttpPath('/v1/databases/:databaseId/collections/:collectionId/attributes/line/:key') + ->desc('Update line attribute') + ->groups(['api', 'database', 'schema']) + ->label('scope', 'collections.write') + ->label('resourceType', RESOURCE_TYPE_DATABASES) + ->label('event', 'databases.[databaseId].collections.[collectionId].attributes.[attributeId].update') + ->label('audits.event', 'attribute.update') + ->label('audits.resource', 'database/{request.databaseId}/collection/{request.collectionId}') + ->label('sdk', new Method( + namespace: $this->getSdkNamespace(), + group: $this->getSdkGroup(), + name: self::getName(), + description: '/docs/references/databases/update-line-attribute.md', + auth: [AuthType::KEY], + responses: [ + new SDKResponse( + code: SwooleResponse::STATUS_CODE_OK, + model: $this->getResponseModel(), + ) + ], + contentType: ContentType::JSON, + deprecated: new Deprecated( + since: '1.8.0', + replaceWith: 'tablesDB.updateLineColumn', + ), + )) + ->param('databaseId', '', new UID(), 'Database ID.') + ->param('collectionId', '', new UID(), 'Collection ID. You can create a new collection using the Database service [server integration](https://appwrite.io/docs/server/databases#createCollection).') + ->param('key', '', new Key(), 'Attribute Key.') + ->param('required', null, new Boolean(), 'Is attribute required?') + ->param('default', null, new Nullable(new Spatial(Database::VAR_LINESTRING)), 'Default value for attribute when not provided, two-dimensional array of coordinate pairs, [[longitude, latitude], [longitude, latitude], …], listing the vertices of the line in order. Cannot be set when attribute is required.', true) + ->param('newKey', null, new Key(), 'New attribute key.', true) + ->inject('response') + ->inject('dbForProject') + ->inject('queueForEvents') + ->callback($this->action(...)); + } + + public function action(string $databaseId, string $collectionId, string $key, ?bool $required, ?array $default, ?string $newKey, UtopiaResponse $response, Database $dbForProject, Event $queueForEvents): void + { + $attribute = $this->updateAttribute( + databaseId: $databaseId, + collectionId: $collectionId, + key: $key, + dbForProject: $dbForProject, + queueForEvents: $queueForEvents, + type: Database::VAR_LINESTRING, + default: $default, + required: $required, + newKey: $newKey + ); + + $response + ->setStatusCode(SwooleResponse::STATUS_CODE_OK) + ->dynamic($attribute, $this->getResponseModel()); + } +} diff --git a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/Point/Create.php b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/Point/Create.php new file mode 100644 index 0000000000..47c88497ba --- /dev/null +++ b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/Point/Create.php @@ -0,0 +1,88 @@ +setHttpMethod(self::HTTP_REQUEST_METHOD_POST) + ->setHttpPath('/v1/databases/:databaseId/collections/:collectionId/attributes/point') + ->desc('Create point attribute') + ->groups(['api', 'database', 'schema']) + ->label('event', 'databases.[databaseId].collections.[collectionId].attributes.[attributeId].create') + ->label('scope', 'collections.write') + ->label('resourceType', RESOURCE_TYPE_DATABASES) + ->label('audits.event', 'attribute.create') + ->label('audits.resource', 'database/{request.databaseId}/collection/{request.collectionId}') + ->label('sdk', new Method( + namespace: $this->getSdkNamespace(), + group: $this->getSdkGroup(), + name: self::getName(), + description: '/docs/references/databases/create-point-attribute.md', + auth: [AuthType::KEY], + responses: [ + new SDKResponse( + code: SwooleResponse::STATUS_CODE_ACCEPTED, + model: $this->getResponseModel(), + ) + ], + deprecated: new Deprecated( + since: '1.8.0', + replaceWith: 'tablesDB.createPointColumn', + ), + )) + ->param('databaseId', '', new UID(), 'Database ID.') + ->param('collectionId', '', new UID(), 'Collection ID. You can create a new collection using the Database service [server integration](https://appwrite.io/docs/server/databases#databasesCreateCollection).') + ->param('key', '', new Key(), 'Attribute Key.') + ->param('required', null, new Boolean(), 'Is attribute required?') + ->param('default', null, new Nullable(new Spatial(Database::VAR_POINT)), 'Default value for attribute when not provided, array of two numbers [longitude, latitude], representing a single coordinate. Cannot be set when attribute is required.', true) + ->inject('response') + ->inject('dbForProject') + ->inject('queueForDatabase') + ->inject('queueForEvents') + ->callback($this->action(...)); + } + + public function action(string $databaseId, string $collectionId, string $key, ?bool $required, ?array $default, UtopiaResponse $response, Database $dbForProject, EventDatabase $queueForDatabase, Event $queueForEvents): void + { + $attribute = $this->createAttribute($databaseId, $collectionId, new Document([ + 'key' => $key, + 'type' => Database::VAR_POINT, + 'required' => $required, + 'default' => $default, + ]), $response, $dbForProject, $queueForDatabase, $queueForEvents); + + $response + ->setStatusCode(SwooleResponse::STATUS_CODE_ACCEPTED) + ->dynamic($attribute, $this->getResponseModel()); + } +} diff --git a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/Point/Update.php b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/Point/Update.php new file mode 100644 index 0000000000..bffe802927 --- /dev/null +++ b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/Point/Update.php @@ -0,0 +1,93 @@ +setHttpMethod(self::HTTP_REQUEST_METHOD_PATCH) + ->setHttpPath('/v1/databases/:databaseId/collections/:collectionId/attributes/point/:key') + ->desc('Update point attribute') + ->groups(['api', 'database', 'schema']) + ->label('scope', 'collections.write') + ->label('resourceType', RESOURCE_TYPE_DATABASES) + ->label('event', 'databases.[databaseId].collections.[collectionId].attributes.[attributeId].update') + ->label('audits.event', 'attribute.update') + ->label('audits.resource', 'database/{request.databaseId}/collection/{request.collectionId}') + ->label('sdk', new Method( + namespace: $this->getSdkNamespace(), + group: $this->getSdkGroup(), + name: self::getName(), + description: '/docs/references/databases/update-point-attribute.md', + auth: [AuthType::KEY], + responses: [ + new SDKResponse( + code: SwooleResponse::STATUS_CODE_OK, + model: $this->getResponseModel(), + ) + ], + contentType: ContentType::JSON, + deprecated: new Deprecated( + since: '1.8.0', + replaceWith: 'tablesDB.updatePointColumn', + ), + )) + ->param('databaseId', '', new UID(), 'Database ID.') + ->param('collectionId', '', new UID(), 'Collection ID. You can create a new collection using the Database service [server integration](https://appwrite.io/docs/server/databases#createCollection).') + ->param('key', '', new Key(), 'Attribute Key.') + ->param('required', null, new Boolean(), 'Is attribute required?') + ->param('default', null, new Nullable(new Spatial(Database::VAR_POINT)), 'Default value for attribute when not provided, array of two numbers [longitude, latitude], representing a single coordinate. Cannot be set when attribute is required.', true) + ->param('newKey', null, new Key(), 'New attribute key.', true) + ->inject('response') + ->inject('dbForProject') + ->inject('queueForEvents') + ->callback($this->action(...)); + } + + public function action(string $databaseId, string $collectionId, string $key, ?bool $required, ?array $default, ?string $newKey, UtopiaResponse $response, Database $dbForProject, Event $queueForEvents): void + { + $attribute = $this->updateAttribute( + databaseId: $databaseId, + collectionId: $collectionId, + key: $key, + dbForProject: $dbForProject, + queueForEvents: $queueForEvents, + type: Database::VAR_POINT, + default: $default, + required: $required, + newKey: $newKey + ); + + $response + ->setStatusCode(SwooleResponse::STATUS_CODE_OK) + ->dynamic($attribute, $this->getResponseModel()); + } +} diff --git a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/Polygon/Create.php b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/Polygon/Create.php new file mode 100644 index 0000000000..6cc74254ae --- /dev/null +++ b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/Polygon/Create.php @@ -0,0 +1,88 @@ +setHttpMethod(self::HTTP_REQUEST_METHOD_POST) + ->setHttpPath('/v1/databases/:databaseId/collections/:collectionId/attributes/polygon') + ->desc('Create polygon attribute') + ->groups(['api', 'database', 'schema']) + ->label('event', 'databases.[databaseId].collections.[collectionId].attributes.[attributeId].create') + ->label('scope', 'collections.write') + ->label('resourceType', RESOURCE_TYPE_DATABASES) + ->label('audits.event', 'attribute.create') + ->label('audits.resource', 'database/{request.databaseId}/collection/{request.collectionId}') + ->label('sdk', new Method( + namespace: $this->getSdkNamespace(), + group: $this->getSdkGroup(), + name: self::getName(), + description: '/docs/references/databases/create-polygon-attribute.md', + auth: [AuthType::KEY], + responses: [ + new SDKResponse( + code: SwooleResponse::STATUS_CODE_ACCEPTED, + model: $this->getResponseModel(), + ) + ], + deprecated: new Deprecated( + since: '1.8.0', + replaceWith: 'tablesDB.createPolygonColumn', + ), + )) + ->param('databaseId', '', new UID(), 'Database ID.') + ->param('collectionId', '', new UID(), 'Collection ID. You can create a new collection using the Database service [server integration](https://appwrite.io/docs/server/databases#databasesCreateCollection).') + ->param('key', '', new Key(), 'Attribute Key.') + ->param('required', null, new Boolean(), 'Is attribute required?') + ->param('default', null, new Nullable(new Spatial(Database::VAR_POLYGON)), 'Default value for attribute when not provided, three-dimensional array where the outer array holds one or more linear rings, [[[longitude, latitude], …], …], the first ring is the exterior boundary, any additional rings are interior holes, and each ring must start and end with the same coordinate pair. Cannot be set when attribute is required.', true) + ->inject('response') + ->inject('dbForProject') + ->inject('queueForDatabase') + ->inject('queueForEvents') + ->callback($this->action(...)); + } + + public function action(string $databaseId, string $collectionId, string $key, ?bool $required, ?array $default, UtopiaResponse $response, Database $dbForProject, EventDatabase $queueForDatabase, Event $queueForEvents): void + { + $attribute = $this->createAttribute($databaseId, $collectionId, new Document([ + 'key' => $key, + 'type' => Database::VAR_POLYGON, + 'required' => $required, + 'default' => $default, + ]), $response, $dbForProject, $queueForDatabase, $queueForEvents); + + $response + ->setStatusCode(SwooleResponse::STATUS_CODE_ACCEPTED) + ->dynamic($attribute, $this->getResponseModel()); + } +} diff --git a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/Polygon/Update.php b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/Polygon/Update.php new file mode 100644 index 0000000000..d78bfa8ef0 --- /dev/null +++ b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/Polygon/Update.php @@ -0,0 +1,93 @@ +setHttpMethod(self::HTTP_REQUEST_METHOD_PATCH) + ->setHttpPath('/v1/databases/:databaseId/collections/:collectionId/attributes/polygon/:key') + ->desc('Update polygon attribute') + ->groups(['api', 'database', 'schema']) + ->label('scope', 'collections.write') + ->label('resourceType', RESOURCE_TYPE_DATABASES) + ->label('event', 'databases.[databaseId].collections.[collectionId].attributes.[attributeId].update') + ->label('audits.event', 'attribute.update') + ->label('audits.resource', 'database/{request.databaseId}/collection/{request.collectionId}') + ->label('sdk', new Method( + namespace: $this->getSdkNamespace(), + group: $this->getSdkGroup(), + name: self::getName(), + description: '/docs/references/databases/update-polygon-attribute.md', + auth: [AuthType::KEY], + responses: [ + new SDKResponse( + code: SwooleResponse::STATUS_CODE_OK, + model: $this->getResponseModel(), + ) + ], + contentType: ContentType::JSON, + deprecated: new Deprecated( + since: '1.8.0', + replaceWith: 'tablesDB.updatePolygonColumn', + ), + )) + ->param('databaseId', '', new UID(), 'Database ID.') + ->param('collectionId', '', new UID(), 'Collection ID. You can create a new collection using the Database service [server integration](https://appwrite.io/docs/server/databases#createCollection).') + ->param('key', '', new Key(), 'Attribute Key.') + ->param('required', null, new Boolean(), 'Is attribute required?') + ->param('default', null, new Nullable(new Spatial(Database::VAR_POLYGON)), 'Default value for attribute when not provided, three-dimensional array where the outer array holds one or more linear rings, [[[longitude, latitude], …], …], the first ring is the exterior boundary, any additional rings are interior holes, and each ring must start and end with the same coordinate pair. Cannot be set when attribute is required.', true) + ->param('newKey', null, new Key(), 'New attribute key.', true) + ->inject('response') + ->inject('dbForProject') + ->inject('queueForEvents') + ->callback($this->action(...)); + } + + public function action(string $databaseId, string $collectionId, string $key, ?bool $required, ?array $default, ?string $newKey, UtopiaResponse $response, Database $dbForProject, Event $queueForEvents): void + { + $attribute = $this->updateAttribute( + databaseId: $databaseId, + collectionId: $collectionId, + key: $key, + dbForProject: $dbForProject, + queueForEvents: $queueForEvents, + type: Database::VAR_POLYGON, + default: $default, + required: $required, + newKey: $newKey + ); + + $response + ->setStatusCode(SwooleResponse::STATUS_CODE_OK) + ->dynamic($attribute, $this->getResponseModel()); + } +} diff --git a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Documents/Action.php b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Documents/Action.php index ca5dc91cb4..d1d0738990 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Documents/Action.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Documents/Action.php @@ -27,9 +27,18 @@ abstract class Action extends AppwriteAction $this->context = ROWS; } - // Use the same helper method to ensure consistency $contextId = '$' . $this->getCollectionsEventsContext() . 'Id'; - $this->removableAttributes = ['$databaseId', $contextId]; + $this->removableAttributes = [ + '*' => [ + '$sequence', + '$databaseId', + $contextId, + ], + 'privileged' => [ + '$createdAt', + '$updatedAt', + ], + ]; return parent::setHttpPath($path); } @@ -200,11 +209,19 @@ abstract class Action extends AppwriteAction * Remove configured removable attributes from a document. * Used for relationship path handling to remove API-specific attributes. */ - protected function removeReadonlyAttributes(Document $document): void - { - foreach ($this->removableAttributes as $attribute) { - $document->removeAttribute($attribute); + protected function removeReadonlyAttributes( + Document|array $document, + bool $privileged = false, + ): Document|array { + foreach ($this->removableAttributes['*'] as $attribute) { + unset($document[$attribute]); } + if (!$privileged) { + foreach ($this->removableAttributes['privileged'] ?? [] as $attribute) { + unset($document[$attribute]); + } + } + return $document; } /** diff --git a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Documents/Bulk/Update.php b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Documents/Bulk/Update.php index b5a4750c4f..0f0ae14020 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Documents/Bulk/Update.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Documents/Bulk/Update.php @@ -127,6 +127,8 @@ class Update extends Action } } + $data = $this->removeReadonlyAttributes($data, privileged: true); + $documents = []; try { diff --git a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Documents/Bulk/Upsert.php b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Documents/Bulk/Upsert.php index d7d6e1abbe..395e3d757b 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Documents/Bulk/Upsert.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Documents/Bulk/Upsert.php @@ -2,6 +2,7 @@ namespace Appwrite\Platform\Modules\Databases\Http\Databases\Collections\Documents\Bulk; +use Appwrite\Event\Event; use Appwrite\Event\StatsUsage; use Appwrite\Extend\Exception; use Appwrite\Platform\Modules\Databases\Http\Databases\Collections\Documents\Action; @@ -39,7 +40,7 @@ class Upsert extends Action $this ->setHttpMethod(self::HTTP_REQUEST_METHOD_PUT) ->setHttpPath('/v1/databases/:databaseId/collections/:collectionId/documents') - ->desc('Create or update documents') + ->desc('Upsert documents') ->groups(['api', 'database']) ->label('scope', 'documents.write') ->label('resourceType', RESOURCE_TYPE_DATABASES) @@ -74,11 +75,15 @@ class Upsert extends Action ->inject('response') ->inject('dbForProject') ->inject('queueForStatsUsage') + ->inject('queueForEvents') + ->inject('queueForRealtime') + ->inject('queueForFunctions') + ->inject('queueForWebhooks') ->inject('plan') ->callback($this->action(...)); } - public function action(string $databaseId, string $collectionId, array $documents, UtopiaResponse $response, Database $dbForProject, StatsUsage $queueForStatsUsage, array $plan): void + public function action(string $databaseId, string $collectionId, array $documents, UtopiaResponse $response, Database $dbForProject, StatsUsage $queueForStatsUsage, Event $queueForEvents, Event $queueForRealtime, Event $queueForFunctions, Event $queueForWebhooks, array $plan): void { $database = $dbForProject->getDocument('databases', $databaseId); if ($database->isEmpty()) { @@ -100,6 +105,7 @@ class Upsert extends Action } foreach ($documents as $key => $document) { + $document = $this->removeReadonlyAttributes($document, privileged: true); $documents[$key] = new Document($document); } @@ -140,5 +146,16 @@ class Upsert extends Action 'total' => $modified, $this->getSdkGroup() => $upserted ]), $this->getResponseModel()); + + $this->triggerBulk( + 'databases.[databaseId].collections.[collectionId].documents.[documentId].upsert', + $database, + $collection, + $upserted, + $queueForEvents, + $queueForRealtime, + $queueForFunctions, + $queueForWebhooks + ); } } diff --git a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Documents/Create.php b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Documents/Create.php index 3ea693d94b..44f3c2ba7a 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Documents/Create.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Documents/Create.php @@ -116,7 +116,7 @@ class Create extends Action ->param('databaseId', '', new UID(), 'Database ID.') ->param('documentId', '', new CustomId(), 'Document ID. Choose a custom ID or generate a random ID with `ID.unique()`. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can\'t start with a special char. Max length is 36 chars.', true) ->param('collectionId', '', new UID(), 'Collection ID. You can create a new collection using the Database service [server integration](https://appwrite.io/docs/server/databases#databasesCreateCollection). Make sure to define attributes before creating documents.') - ->param('data', [], new JSON(), 'Document data as JSON object.', true) + ->param('data', [], new JSON(), 'Document data as JSON object.', true, example: '{"username":"walter.obrien","email":"walter.obrien@example.com","fullName":"Walter O\'Brien","age":30,"isAdmin":false}') ->param('permissions', null, new Permissions(APP_LIMIT_ARRAY_PARAMS_SIZE, [Database::PERMISSION_READ, Database::PERMISSION_UPDATE, Database::PERMISSION_DELETE, Database::PERMISSION_WRITE]), 'An array of permissions strings. By default, only the current user is granted all permissions. [Learn more about permissions](https://appwrite.io/docs/permissions).', true) ->param('documents', [], fn (array $plan) => new ArrayList(new JSON(), $plan['databasesBatchSize'] ?? APP_LIMIT_DATABASE_BATCH), 'Array of documents data as JSON objects.', true, ['plan']) ->inject('response') @@ -254,7 +254,7 @@ class Create extends Action $operations = 0; - $checkPermissions = function (Document $collection, Document $document, string $permission) use (&$checkPermissions, $dbForProject, $database, &$operations) { + $checkPermissions = function (Document $collection, Document $document, string $permission) use ($isAPIKey, $isPrivilegedUser, &$checkPermissions, $dbForProject, $database, &$operations) { $operations++; $documentSecurity = $collection->getAttribute('documentSecurity', false); @@ -307,6 +307,8 @@ class Create extends Action $relation = new Document($relation); } if ($relation instanceof Document) { + $relation = $this->removeReadonlyAttributes($relation, $isAPIKey || $isPrivilegedUser); + $current = Authorization::skip( fn () => $dbForProject->getDocument('database_' . $database->getSequence() . '_collection_' . $relatedCollection->getSequence(), $relation->getId()) ); @@ -318,7 +320,6 @@ class Create extends Action $relation['$id'] = ID::unique(); } } else { - $this->removeReadonlyAttributes($relation); $relation->setAttribute('$collection', $relatedCollection->getId()); $type = Database::PERMISSION_UPDATE; } @@ -353,22 +354,10 @@ class Create extends Action // Assign a unique ID if needed, otherwise use the provided ID. $document['$id'] = $sourceId === 'unique()' ? ID::unique() : $sourceId; - - // Allowing to add createdAt and updatedAt timestamps if server side(api key - if (!$isAPIKey && !$isPrivilegedUser) { - if (isset($document['$createdAt'])) { - throw new Exception($this->getInvalidStructureException(), 'Attribute "$createdAt" can not be modified. Please use a server SDK with an API key to modify server attributes.'); - } - - if (isset($document['$updatedAt'])) { - throw new Exception($this->getInvalidStructureException(), 'Attribute "$updatedAt" can not be modified. Please use a server SDK with an API key to modify server attributes.'); - } - } - + $document = $this->removeReadonlyAttributes($document, $isAPIKey || $isPrivilegedUser); $document = new Document($document); $setPermissions($document, $permissions); $checkPermissions($collection, $document, Database::PERMISSION_CREATE); - return $document; }, $documents); diff --git a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Documents/Delete.php b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Documents/Delete.php index 4ae1624f73..f34b4630c2 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Documents/Delete.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Documents/Delete.php @@ -117,6 +117,7 @@ class Delete extends Action } $collectionsCache = []; + $this->processDocument( database: $database, collection: $collection, diff --git a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Documents/Update.php b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Documents/Update.php index 4f5055abc4..8382bdd5e9 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Documents/Update.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Documents/Update.php @@ -109,16 +109,6 @@ class Update extends Action throw new Exception($this->getParentNotFoundException()); } - // Allowing to add createdAt and updatedAt timestamps if server side(api key) - if (!$isAPIKey && !$isPrivilegedUser) { - if (isset($data['$createdAt'])) { - throw new Exception($this->getInvalidStructureException(), 'Attribute "$createdAt" can not be modified. Please use a server SDK with an API key to modify server attributes.'); - } - - if (isset($data['$updatedAt'])) { - throw new Exception($this->getInvalidStructureException(), 'Attribute "$updatedAt" can not be modified. Please use a server SDK with an API key to modify server attributes.'); - } - } // Read permission should not be required for update /** @var Document $document */ $document = Authorization::skip(fn () => $dbForProject->getDocument('database_' . $database->getSequence() . '_collection_' . $collection->getSequence(), $documentId)); @@ -161,12 +151,12 @@ class Update extends Action $data['$id'] = $documentId; $data['$permissions'] = $permissions; + $data = $this->removeReadonlyAttributes($data, $isAPIKey || $isPrivilegedUser); $newDocument = new Document($data); $operations = 0; - $setCollection = (function (Document $collection, Document $document) use (&$setCollection, $dbForProject, $database, &$operations) { - + $setCollection = (function (Document $collection, Document $document) use ($isAPIKey, $isPrivilegedUser, &$setCollection, $dbForProject, $database, &$operations) { $operations++; $relationships = \array_filter( @@ -205,11 +195,13 @@ class Update extends Action $relation = new Document($relation); } if ($relation instanceof Document) { + $relation = $this->removeReadonlyAttributes($relation, $isAPIKey || $isPrivilegedUser); + $oldDocument = Authorization::skip(fn () => $dbForProject->getDocument( 'database_' . $database->getSequence() . '_collection_' . $relatedCollection->getSequence(), $relation->getId() )); - $this->removeReadonlyAttributes($relation); + // Attribute $collection is required for Utopia. $relation->setAttribute( '$collection', diff --git a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Documents/Upsert.php b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Documents/Upsert.php index 8427ee6cd2..54b1cad950 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Documents/Upsert.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Documents/Upsert.php @@ -45,7 +45,7 @@ class Upsert extends Action $this ->setHttpMethod(self::HTTP_REQUEST_METHOD_PUT) ->setHttpPath('/v1/databases/:databaseId/collections/:collectionId/documents/:documentId') - ->desc('Create or update a document') + ->desc('Upsert a document') ->groups(['api', 'database']) ->label('event', 'databases.[databaseId].collections.[collectionId].documents.[documentId].upsert') ->label('scope', 'documents.write') @@ -121,7 +121,8 @@ class Upsert extends Action ]; $permissions = Permission::aggregate($permissions, $allowedPermissions); - // if no permission, upsert permission from the old document if present (update scenario) else add default permission (create scenario) + + // If no permission, upsert permission from the old document if present (update scenario) else add default permission (create scenario) if (\is_null($permissions)) { $oldDocument = Authorization::skip(fn () => $dbForProject->getDocument('database_' . $database->getSequence() . '_collection_' . $collection->getSequence(), $documentId)); if ($oldDocument->isEmpty()) { @@ -157,24 +158,14 @@ class Upsert extends Action } } } - // Allowing to add createdAt and updatedAt timestamps if server side(api key) - if (!$isAPIKey && !$isPrivilegedUser) { - if (isset($data['$createdAt'])) { - throw new Exception($this->getInvalidStructureException(), 'Attribute "$createdAt" can not be modified. Please use a server SDK with an API key to modify server attributes.'); - } - - if (isset($data['$updatedAt'])) { - throw new Exception($this->getInvalidStructureException(), 'Attribute "$updatedAt" can not be modified. Please use a server SDK with an API key to modify server attributes.'); - } - } $data['$id'] = $documentId; $data['$permissions'] = $permissions ?? []; + $data = $this->removeReadonlyAttributes($data, $isAPIKey || $isPrivilegedUser); $newDocument = new Document($data); $operations = 0; - $setCollection = (function (Document $collection, Document $document) use (&$setCollection, $dbForProject, $database, &$operations) { - + $setCollection = (function (Document $collection, Document $document) use ($isAPIKey, $isPrivilegedUser, &$setCollection, $dbForProject, $database, &$operations) { $operations++; $relationships = \array_filter( @@ -213,11 +204,13 @@ class Upsert extends Action $relation = new Document($relation); } if ($relation instanceof Document) { + $relation = $this->removeReadonlyAttributes($relation, $isAPIKey || $isPrivilegedUser); + $oldDocument = Authorization::skip(fn () => $dbForProject->getDocument( 'database_' . $database->getSequence() . '_collection_' . $relatedCollection->getSequence(), $relation->getId() )); - $this->removeReadonlyAttributes($relation); + // Attribute $collection is required for Utopia. $relation->setAttribute( '$collection', diff --git a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Documents/XList.php b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Documents/XList.php index 57ca550c18..9c8405cf18 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Documents/XList.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Documents/XList.php @@ -176,7 +176,7 @@ class XList extends Action } // Check which removable attributes are explicitly requested - foreach ($this->removableAttributes as $attribute) { + foreach ($this->removableAttributes['*'] as $attribute) { if (\in_array($attribute, $values, true)) { $requestedAttributes[$attribute] = true; } @@ -186,7 +186,7 @@ class XList extends Action if (!$hasWildcard) { foreach ($documents as $document) { // Remove attributes that are not explicitly requested - foreach ($this->removableAttributes as $attribute) { + foreach ($this->removableAttributes['*'] as $attribute) { if (!isset($requestedAttributes[$attribute])) { $document->removeAttribute($attribute); } diff --git a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Indexes/Create.php b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Indexes/Create.php index 04baa093d8..733259f091 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Indexes/Create.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Indexes/Create.php @@ -71,7 +71,7 @@ class Create extends Action ->param('databaseId', '', new UID(), 'Database ID.') ->param('collectionId', '', new UID(), 'Collection ID. You can create a new collection using the Database service [server integration](https://appwrite.io/docs/server/databases#databasesCreateCollection).') ->param('key', null, new Key(), 'Index Key.') - ->param('type', null, new WhiteList([Database::INDEX_KEY, Database::INDEX_FULLTEXT, Database::INDEX_UNIQUE]), 'Index type.') + ->param('type', null, new WhiteList([Database::INDEX_KEY, Database::INDEX_FULLTEXT, Database::INDEX_UNIQUE, Database::INDEX_SPATIAL]), 'Index type.') ->param('attributes', null, new ArrayList(new Key(true), APP_LIMIT_ARRAY_PARAMS_SIZE), 'Array of attributes to index. Maximum of ' . APP_LIMIT_ARRAY_PARAMS_SIZE . ' attributes are allowed, each 32 characters long.') ->param('orders', [], new ArrayList(new WhiteList(['ASC', 'DESC'], false, Database::VAR_STRING), APP_LIMIT_ARRAY_PARAMS_SIZE), 'Array of index orders. Maximum of ' . APP_LIMIT_ARRAY_PARAMS_SIZE . ' orders are allowed.', true) ->param('lengths', [], new ArrayList(new Nullable(new Integer()), APP_LIMIT_ARRAY_PARAMS_SIZE), 'Length of index. Maximum of ' . APP_LIMIT_ARRAY_PARAMS_SIZE, optional: true) @@ -190,11 +190,21 @@ class Create extends Action 'orders' => $orders, ]); + $maxIndexLength = $dbForProject->getAdapter()->getMaxIndexLength(); + $internalIndexesKeys = $dbForProject->getAdapter()->getInternalIndexesKeys(); + $supportForIndexArray = $dbForProject->getAdapter()->getSupportForIndexArray(); + $supportForSpatialAttributes = $dbForProject->getAdapter()->getSupportForSpatialAttributes(); + $supportForSpatialIndexNull = $dbForProject->getAdapter()->getSupportForSpatialIndexNull(); + $supportForSpatialIndexOrder = $dbForProject->getAdapter()->getSupportForSpatialIndexOrder(); + $validator = new IndexValidator( $collection->getAttribute('attributes'), - $dbForProject->getAdapter()->getMaxIndexLength(), - $dbForProject->getAdapter()->getInternalIndexesKeys(), - $dbForProject->getAdapter()->getSupportForIndexArray() + $maxIndexLength, + $internalIndexesKeys, + $supportForIndexArray, + $supportForSpatialAttributes, + $supportForSpatialIndexNull, + $supportForSpatialIndexOrder ); if (!$validator->isValid($index)) { diff --git a/src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Tables/Columns/Boolean/Create.php b/src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Tables/Columns/Boolean/Create.php index cd4f7fb84d..5222d2e133 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Tables/Columns/Boolean/Create.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Tables/Columns/Boolean/Create.php @@ -32,7 +32,7 @@ class Create extends BooleanCreate ->desc('Create boolean column') ->groups(['api', 'database', 'schema']) ->label('event', 'databases.[databaseId].tables.[tableId].columns.[columnId].create') - ->label('scope', 'tables.write') + ->label('scope', ['tables.write', 'collections.write']) ->label('resourceType', RESOURCE_TYPE_DATABASES) ->label('audits.event', 'column.create') ->label('audits.resource', 'database/{request.databaseId}/table/{request.tableId}') diff --git a/src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Tables/Columns/Boolean/Update.php b/src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Tables/Columns/Boolean/Update.php index d8fb48fba1..3c6ef50813 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Tables/Columns/Boolean/Update.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Tables/Columns/Boolean/Update.php @@ -33,7 +33,7 @@ class Update extends BooleanUpdate ->setHttpPath('/v1/tablesdb/:databaseId/tables/:tableId/columns/boolean/:key') ->desc('Update boolean column') ->groups(['api', 'database', 'schema']) - ->label('scope', 'tables.write') + ->label('scope', ['tables.write', 'collections.write']) ->label('resourceType', RESOURCE_TYPE_DATABASES) ->label('event', 'databases.[databaseId].tables.[tableId].columns.[columnId].update') ->label('audits.event', 'column.update') diff --git a/src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Tables/Columns/Datetime/Create.php b/src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Tables/Columns/Datetime/Create.php index e060e04d7d..9598278ffc 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Tables/Columns/Datetime/Create.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Tables/Columns/Datetime/Create.php @@ -33,7 +33,7 @@ class Create extends DatetimeCreate ->setHttpPath('/v1/tablesdb/:databaseId/tables/:tableId/columns/datetime') ->desc('Create datetime column') ->groups(['api', 'database']) - ->label('scope', 'tables.write') + ->label('scope', ['tables.write', 'collections.write']) ->label('resourceType', RESOURCE_TYPE_DATABASES) ->label('event', 'databases.[databaseId].tables.[tableId].columns.[columnId].create') ->label('audits.event', 'column.create') diff --git a/src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Tables/Columns/Datetime/Update.php b/src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Tables/Columns/Datetime/Update.php index bfba375443..d7b5ec2448 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Tables/Columns/Datetime/Update.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Tables/Columns/Datetime/Update.php @@ -35,7 +35,7 @@ class Update extends DatetimeUpdate ->setHttpPath('/v1/tablesdb/:databaseId/tables/:tableId/columns/datetime/:key') ->desc('Update dateTime column') ->groups(['api', 'database', 'schema']) - ->label('scope', 'tables.write') + ->label('scope', ['tables.write', 'collections.write']) ->label('resourceType', RESOURCE_TYPE_DATABASES) ->label('event', 'databases.[databaseId].tables.[tableId].columns.[columnId].update') ->label('audits.event', 'column.update') diff --git a/src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Tables/Columns/Delete.php b/src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Tables/Columns/Delete.php index 555af833df..50a148ce19 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Tables/Columns/Delete.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Tables/Columns/Delete.php @@ -32,7 +32,7 @@ class Delete extends AttributesDelete ->setHttpPath('/v1/tablesdb/:databaseId/tables/:tableId/columns/:key') ->desc('Delete column') ->groups(['api', 'database', 'schema']) - ->label('scope', 'tables.write') + ->label('scope', ['tables.write', 'collections.write']) ->label('resourceType', RESOURCE_TYPE_DATABASES) ->label('event', 'databases.[databaseId].tables.[tableId].columns.[columnId].update') ->label('audits.event', 'column.delete') diff --git a/src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Tables/Columns/Email/Create.php b/src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Tables/Columns/Email/Create.php index b2d09d4511..e28a216fff 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Tables/Columns/Email/Create.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Tables/Columns/Email/Create.php @@ -32,7 +32,7 @@ class Create extends EmailCreate ->setHttpPath('/v1/tablesdb/:databaseId/tables/:tableId/columns/email') ->desc('Create email column') ->groups(['api', 'database', 'schema']) - ->label('scope', 'tables.write') + ->label('scope', ['tables.write', 'collections.write']) ->label('resourceType', RESOURCE_TYPE_DATABASES) ->label('event', 'databases.[databaseId].tables.[tableId].columns.[columnId].create') ->label('audits.event', 'column.create') diff --git a/src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Tables/Columns/Email/Update.php b/src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Tables/Columns/Email/Update.php index 15f85eef81..0fb856acb9 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Tables/Columns/Email/Update.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Tables/Columns/Email/Update.php @@ -34,7 +34,7 @@ class Update extends EmailUpdate ->setHttpPath('/v1/tablesdb/:databaseId/tables/:tableId/columns/email/:key') ->desc('Update email column') ->groups(['api', 'database', 'schema']) - ->label('scope', 'tables.write') + ->label('scope', ['tables.write', 'collections.write']) ->label('resourceType', RESOURCE_TYPE_DATABASES) ->label('event', 'databases.[databaseId].tables.[tableId].columns.[columnId].update') ->label('audits.event', 'column.update') diff --git a/src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Tables/Columns/Enum/Create.php b/src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Tables/Columns/Enum/Create.php index 52972deadf..5b9d89c7e9 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Tables/Columns/Enum/Create.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Tables/Columns/Enum/Create.php @@ -34,7 +34,7 @@ class Create extends EnumCreate ->setHttpPath('/v1/tablesdb/:databaseId/tables/:tableId/columns/enum') ->desc('Create enum column') ->groups(['api', 'database', 'schema']) - ->label('scope', 'tables.write') + ->label('scope', ['tables.write', 'collections.write']) ->label('resourceType', RESOURCE_TYPE_DATABASES) ->label('event', 'databases.[databaseId].tables.[tableId].columns.[columnId].create') ->label('audits.event', 'column.create') diff --git a/src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Tables/Columns/Enum/Update.php b/src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Tables/Columns/Enum/Update.php index cd9c111812..0c00e3f268 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Tables/Columns/Enum/Update.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Tables/Columns/Enum/Update.php @@ -36,7 +36,7 @@ class Update extends EnumUpdate ->setHttpPath('/v1/tablesdb/:databaseId/tables/:tableId/columns/enum/:key') ->desc('Update enum column') ->groups(['api', 'database', 'schema']) - ->label('scope', 'tables.write') + ->label('scope', ['tables.write', 'collections.write']) ->label('resourceType', RESOURCE_TYPE_DATABASES) ->label('event', 'databases.[databaseId].tables.[tableId].columns.[columnId].update') ->label('audits.event', 'column.update') diff --git a/src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Tables/Columns/Float/Create.php b/src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Tables/Columns/Float/Create.php index 0a60796679..5967b00196 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Tables/Columns/Float/Create.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Tables/Columns/Float/Create.php @@ -32,7 +32,7 @@ class Create extends FloatCreate ->setHttpPath('/v1/tablesdb/:databaseId/tables/:tableId/columns/float') ->desc('Create float column') ->groups(['api', 'database', 'schema']) - ->label('scope', 'tables.write') + ->label('scope', ['tables.write', 'collections.write']) ->label('resourceType', RESOURCE_TYPE_DATABASES) ->label('event', 'databases.[databaseId].tables.[tableId].columns.[columnId].create') ->label('audits.event', 'column.create') diff --git a/src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Tables/Columns/Float/Update.php b/src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Tables/Columns/Float/Update.php index d4f8328e30..9486b3a75c 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Tables/Columns/Float/Update.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Tables/Columns/Float/Update.php @@ -34,7 +34,7 @@ class Update extends FloatUpdate ->setHttpPath('/v1/tablesdb/:databaseId/tables/:tableId/columns/float/:key') ->desc('Update float column') ->groups(['api', 'database', 'schema']) - ->label('scope', 'tables.write') + ->label('scope', ['tables.write', 'collections.write']) ->label('resourceType', RESOURCE_TYPE_DATABASES) ->label('event', 'databases.[databaseId].tables.[tableId].columns.[columnId].update') ->label('audits.event', 'column.update') diff --git a/src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Tables/Columns/Get.php b/src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Tables/Columns/Get.php index 8debcb11f3..d536a7aaf2 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Tables/Columns/Get.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Tables/Columns/Get.php @@ -41,7 +41,7 @@ class Get extends AttributesGet ->setHttpPath('/v1/tablesdb/:databaseId/tables/:tableId/columns/:key') ->desc('Get column') ->groups(['api', 'database']) - ->label('scope', 'tables.read') + ->label('scope', ['tables.read', 'collections.read']) ->label('resourceType', RESOURCE_TYPE_DATABASES) ->label('sdk', new Method( namespace: $this->getSdkNamespace(), diff --git a/src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Tables/Columns/IP/Create.php b/src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Tables/Columns/IP/Create.php index eca17b037d..325a9382e5 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Tables/Columns/IP/Create.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Tables/Columns/IP/Create.php @@ -32,7 +32,7 @@ class Create extends IPCreate ->setHttpPath('/v1/tablesdb/:databaseId/tables/:tableId/columns/ip') ->desc('Create IP address column') ->groups(['api', 'database', 'schema']) - ->label('scope', 'tables.write') + ->label('scope', ['tables.write', 'collections.write']) ->label('resourceType', RESOURCE_TYPE_DATABASES) ->label('event', 'databases.[databaseId].tables.[tableId].columns.[columnId].create') ->label('audits.event', 'column.create') diff --git a/src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Tables/Columns/IP/Update.php b/src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Tables/Columns/IP/Update.php index 501de3659a..b9e6368307 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Tables/Columns/IP/Update.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Tables/Columns/IP/Update.php @@ -34,7 +34,7 @@ class Update extends IPUpdate ->setHttpPath('/v1/tablesdb/:databaseId/tables/:tableId/columns/ip/:key') ->desc('Update IP address column') ->groups(['api', 'database', 'schema']) - ->label('scope', 'tables.write') + ->label('scope', ['tables.write', 'collections.write']) ->label('resourceType', RESOURCE_TYPE_DATABASES) ->label('event', 'databases.[databaseId].tables.[tableId].columns.[columnId].update') ->label('audits.event', 'column.update') diff --git a/src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Tables/Columns/Integer/Create.php b/src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Tables/Columns/Integer/Create.php index 0201ebda87..bd6fec3f53 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Tables/Columns/Integer/Create.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Tables/Columns/Integer/Create.php @@ -32,7 +32,7 @@ class Create extends IntegerCreate ->setHttpPath('/v1/tablesdb/:databaseId/tables/:tableId/columns/integer') ->desc('Create integer column') ->groups(['api', 'database', 'schema']) - ->label('scope', 'tables.write') + ->label('scope', ['tables.write', 'collections.write']) ->label('resourceType', RESOURCE_TYPE_DATABASES) ->label('event', 'databases.[databaseId].tables.[tableId].columns.[columnId].create') ->label('audits.event', 'column.create') diff --git a/src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Tables/Columns/Integer/Update.php b/src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Tables/Columns/Integer/Update.php index 0667069a39..be92811d1b 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Tables/Columns/Integer/Update.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Tables/Columns/Integer/Update.php @@ -34,7 +34,7 @@ class Update extends IntegerUpdate ->setHttpPath('/v1/tablesdb/:databaseId/tables/:tableId/columns/integer/:key') ->desc('Update integer column') ->groups(['api', 'database', 'schema']) - ->label('scope', 'tables.write') + ->label('scope', ['tables.write', 'collections.write']) ->label('resourceType', RESOURCE_TYPE_DATABASES) ->label('event', 'databases.[databaseId].tables.[tableId].columns.[columnId].update') ->label('audits.event', 'column.update') diff --git a/src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Tables/Columns/Line/Create.php b/src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Tables/Columns/Line/Create.php new file mode 100644 index 0000000000..f60d4dd5b8 --- /dev/null +++ b/src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Tables/Columns/Line/Create.php @@ -0,0 +1,66 @@ +setHttpMethod(self::HTTP_REQUEST_METHOD_POST) + ->setHttpPath('/v1/tablesdb/:databaseId/tables/:tableId/columns/line') + ->desc('Create line column') + ->groups(['api', 'database', 'schema']) + ->label('event', 'databases.[databaseId].tables.[tableId].columns.[columnId].create') + ->label('scope', ['tables.write', 'collections.write']) + ->label('resourceType', RESOURCE_TYPE_DATABASES) + ->label('audits.event', 'column.create') + ->label('audits.resource', 'database/{request.databaseId}/table/{request.tableId}') + ->label('sdk', new Method( + namespace: $this->getSdkNamespace(), + group: $this->getSdkGroup(), + name: self::getName(), + description: '/docs/references/tablesdb/create-line-column.md', + auth: [AuthType::KEY], + responses: [ + new SDKResponse( + code: SwooleResponse::STATUS_CODE_ACCEPTED, + model: $this->getResponseModel(), + ) + ] + )) + ->param('databaseId', '', new UID(), 'Database ID.') + ->param('tableId', '', new UID(), 'Table ID. You can create a new table using the TablesDB service [server integration](https://appwrite.io/docs/server/tablesdb#tablesDBCreate).') + ->param('key', '', new Key(), 'Column Key.') + ->param('required', null, new Boolean(), 'Is column required?') + ->param('default', null, new Nullable(new Spatial(Database::VAR_LINESTRING)), 'Default value for column when not provided, two-dimensional array of coordinate pairs, [[longitude, latitude], [longitude, latitude], …], listing the vertices of the line in order. Cannot be set when column is required.', true) + ->inject('response') + ->inject('dbForProject') + ->inject('queueForDatabase') + ->inject('queueForEvents') + ->callback($this->action(...)); + } +} diff --git a/src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Tables/Columns/Line/Update.php b/src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Tables/Columns/Line/Update.php new file mode 100644 index 0000000000..19c6df202d --- /dev/null +++ b/src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Tables/Columns/Line/Update.php @@ -0,0 +1,68 @@ +setHttpMethod(self::HTTP_REQUEST_METHOD_PATCH) + ->setHttpPath('/v1/tablesdb/:databaseId/tables/:tableId/columns/line/:key') + ->desc('Update line column') + ->groups(['api', 'database', 'schema']) + ->label('scope', ['tables.write', 'collections.write']) + ->label('resourceType', RESOURCE_TYPE_DATABASES) + ->label('event', 'databases.[databaseId].tables.[tableId].columns.[columnId].update') + ->label('audits.event', 'column.update') + ->label('audits.resource', 'database/{request.databaseId}/table/{request.tableId}') + ->label('sdk', new Method( + namespace: $this->getSdkNamespace(), + group: $this->getSdkGroup(), + name: self::getName(), + description: '/docs/references/tablesdb/update-line-column.md', + auth: [AuthType::KEY], + responses: [ + new SDKResponse( + code: SwooleResponse::STATUS_CODE_OK, + model: $this->getResponseModel(), + ) + ], + contentType: ContentType::JSON + )) + ->param('databaseId', '', new UID(), 'Database ID.') + ->param('tableId', '', new UID(), 'Table ID. You can create a new table using the TablesDB service [server integration](https://appwrite.io/docs/server/tablesdb#tablesDBCreate).') + ->param('key', '', new Key(), 'Column Key.') + ->param('required', null, new Boolean(), 'Is column required?') + ->param('default', null, new Nullable(new Spatial(Database::VAR_LINESTRING)), 'Default value for column when not provided, two-dimensional array of coordinate pairs, [[longitude, latitude], [longitude, latitude], …], listing the vertices of the line in order. Cannot be set when column is required.', true) + ->param('newKey', null, new Key(), 'New Column Key.', true) + ->inject('response') + ->inject('dbForProject') + ->inject('queueForEvents') + ->callback($this->action(...)); + } +} diff --git a/src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Tables/Columns/Point/Create.php b/src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Tables/Columns/Point/Create.php new file mode 100644 index 0000000000..47d97e8077 --- /dev/null +++ b/src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Tables/Columns/Point/Create.php @@ -0,0 +1,66 @@ +setHttpMethod(self::HTTP_REQUEST_METHOD_POST) + ->setHttpPath('/v1/tablesdb/:databaseId/tables/:tableId/columns/point') + ->desc('Create point column') + ->groups(['api', 'database', 'schema']) + ->label('event', 'databases.[databaseId].tables.[tableId].columns.[columnId].create') + ->label('scope', ['tables.write', 'collections.write']) + ->label('resourceType', RESOURCE_TYPE_DATABASES) + ->label('audits.event', 'column.create') + ->label('audits.resource', 'database/{request.databaseId}/table/{request.tableId}') + ->label('sdk', new Method( + namespace: $this->getSdkNamespace(), + group: $this->getSdkGroup(), + name: self::getName(), + description: '/docs/references/tablesdb/create-point-column.md', + auth: [AuthType::KEY], + responses: [ + new SDKResponse( + code: SwooleResponse::STATUS_CODE_ACCEPTED, + model: $this->getResponseModel(), + ) + ] + )) + ->param('databaseId', '', new UID(), 'Database ID.') + ->param('tableId', '', new UID(), 'Table ID. You can create a new table using the TablesDB service [server integration](https://appwrite.io/docs/server/tablesdb#tablesDBCreate).') + ->param('key', '', new Key(), 'Column Key.') + ->param('required', null, new Boolean(), 'Is column required?') + ->param('default', null, new Nullable(new Spatial(Database::VAR_POINT)), 'Default value for column when not provided, array of two numbers [longitude, latitude], representing a single coordinate. Cannot be set when column is required.', true) + ->inject('response') + ->inject('dbForProject') + ->inject('queueForDatabase') + ->inject('queueForEvents') + ->callback($this->action(...)); + } +} diff --git a/src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Tables/Columns/Point/Update.php b/src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Tables/Columns/Point/Update.php new file mode 100644 index 0000000000..2e98bf2cf9 --- /dev/null +++ b/src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Tables/Columns/Point/Update.php @@ -0,0 +1,68 @@ +setHttpMethod(self::HTTP_REQUEST_METHOD_PATCH) + ->setHttpPath('/v1/tablesdb/:databaseId/tables/:tableId/columns/point/:key') + ->desc('Update point column') + ->groups(['api', 'database', 'schema']) + ->label('scope', ['tables.write', 'collections.write']) + ->label('resourceType', RESOURCE_TYPE_DATABASES) + ->label('event', 'databases.[databaseId].tables.[tableId].columns.[columnId].update') + ->label('audits.event', 'column.update') + ->label('audits.resource', 'database/{request.databaseId}/table/{request.tableId}') + ->label('sdk', new Method( + namespace: $this->getSdkNamespace(), + group: $this->getSdkGroup(), + name: self::getName(), + description: '/docs/references/tablesdb/update-point-column.md', + auth: [AuthType::KEY], + responses: [ + new SDKResponse( + code: SwooleResponse::STATUS_CODE_OK, + model: $this->getResponseModel(), + ) + ], + contentType: ContentType::JSON + )) + ->param('databaseId', '', new UID(), 'Database ID.') + ->param('tableId', '', new UID(), 'Table ID. You can create a new table using the TablesDB service [server integration](https://appwrite.io/docs/server/tablesdb#tablesDBCreate).') + ->param('key', '', new Key(), 'Column Key.') + ->param('required', null, new Boolean(), 'Is column required?') + ->param('default', null, new Nullable(new Spatial(Database::VAR_POINT)), 'Default value for column when not provided, array of two numbers [longitude, latitude], representing a single coordinate. Cannot be set when column is required.', true) + ->param('newKey', null, new Key(), 'New Column Key.', true) + ->inject('response') + ->inject('dbForProject') + ->inject('queueForEvents') + ->callback($this->action(...)); + } +} diff --git a/src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Tables/Columns/Polygon/Create.php b/src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Tables/Columns/Polygon/Create.php new file mode 100644 index 0000000000..371d5f8fd5 --- /dev/null +++ b/src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Tables/Columns/Polygon/Create.php @@ -0,0 +1,66 @@ +setHttpMethod(self::HTTP_REQUEST_METHOD_POST) + ->setHttpPath('/v1/tablesdb/:databaseId/tables/:tableId/columns/polygon') + ->desc('Create polygon column') + ->groups(['api', 'database', 'schema']) + ->label('event', 'databases.[databaseId].tables.[tableId].columns.[columnId].create') + ->label('scope', ['tables.write', 'collections.write']) + ->label('resourceType', RESOURCE_TYPE_DATABASES) + ->label('audits.event', 'column.create') + ->label('audits.resource', 'database/{request.databaseId}/table/{request.tableId}') + ->label('sdk', new Method( + namespace: $this->getSdkNamespace(), + group: $this->getSdkGroup(), + name: self::getName(), + description: '/docs/references/tablesdb/create-polygon-column.md', + auth: [AuthType::KEY], + responses: [ + new SDKResponse( + code: SwooleResponse::STATUS_CODE_ACCEPTED, + model: $this->getResponseModel(), + ) + ] + )) + ->param('databaseId', '', new UID(), 'Database ID.') + ->param('tableId', '', new UID(), 'Table ID. You can create a new table using the TablesDB service [server integration](https://appwrite.io/docs/server/tablesdb#tablesDBCreate).') + ->param('key', '', new Key(), 'Column Key.') + ->param('required', null, new Boolean(), 'Is column required?') + ->param('default', null, new Nullable(new Spatial(Database::VAR_POLYGON)), 'Default value for column when not provided, three-dimensional array where the outer array holds one or more linear rings, [[[longitude, latitude], …], …], the first ring is the exterior boundary, any additional rings are interior holes, and each ring must start and end with the same coordinate pair. Cannot be set when column is required.', true) + ->inject('response') + ->inject('dbForProject') + ->inject('queueForDatabase') + ->inject('queueForEvents') + ->callback($this->action(...)); + } +} diff --git a/src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Tables/Columns/Polygon/Update.php b/src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Tables/Columns/Polygon/Update.php new file mode 100644 index 0000000000..c5654b77d4 --- /dev/null +++ b/src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Tables/Columns/Polygon/Update.php @@ -0,0 +1,68 @@ +setHttpMethod(self::HTTP_REQUEST_METHOD_PATCH) + ->setHttpPath('/v1/tablesdb/:databaseId/tables/:tableId/columns/polygon/:key') + ->desc('Update polygon column') + ->groups(['api', 'database', 'schema']) + ->label('scope', ['tables.write', 'collections.write']) + ->label('resourceType', RESOURCE_TYPE_DATABASES) + ->label('event', 'databases.[databaseId].tables.[tableId].columns.[columnId].update') + ->label('audits.event', 'column.update') + ->label('audits.resource', 'database/{request.databaseId}/table/{request.tableId}') + ->label('sdk', new Method( + namespace: $this->getSdkNamespace(), + group: $this->getSdkGroup(), + name: self::getName(), + description: '/docs/references/tablesdb/update-polygon-column.md', + auth: [AuthType::KEY], + responses: [ + new SDKResponse( + code: SwooleResponse::STATUS_CODE_OK, + model: $this->getResponseModel(), + ) + ], + contentType: ContentType::JSON + )) + ->param('databaseId', '', new UID(), 'Database ID.') + ->param('tableId', '', new UID(), 'Table ID. You can create a new table using the TablesDB service [server integration](https://appwrite.io/docs/server/tablesdb#tablesDBCreate).') + ->param('key', '', new Key(), 'Column Key.') + ->param('required', null, new Boolean(), 'Is column required?') + ->param('default', null, new Nullable(new Spatial(Database::VAR_POLYGON)), 'Default value for column when not provided, three-dimensional array where the outer array holds one or more linear rings, [[[longitude, latitude], …], …], the first ring is the exterior boundary, any additional rings are interior holes, and each ring must start and end with the same coordinate pair. Cannot be set when column is required.', true) + ->param('newKey', null, new Key(), 'New Column Key.', true) + ->inject('response') + ->inject('dbForProject') + ->inject('queueForEvents') + ->callback($this->action(...)); + } +} diff --git a/src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Tables/Columns/Relationship/Create.php b/src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Tables/Columns/Relationship/Create.php index 4b94ee2d21..b6f9663f77 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Tables/Columns/Relationship/Create.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Tables/Columns/Relationship/Create.php @@ -33,7 +33,7 @@ class Create extends RelationshipCreate ->setHttpPath('/v1/tablesdb/:databaseId/tables/:tableId/columns/relationship') ->desc('Create relationship column') ->groups(['api', 'database']) - ->label('scope', 'tables.write') + ->label('scope', ['tables.write', 'collections.write']) ->label('resourceType', RESOURCE_TYPE_DATABASES) ->label('event', 'databases.[databaseId].tables.[tableId].columns.[columnId].create') ->label('audits.event', 'column.create') diff --git a/src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Tables/Columns/Relationship/Update.php b/src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Tables/Columns/Relationship/Update.php index 47269fc329..421e11af91 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Tables/Columns/Relationship/Update.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Tables/Columns/Relationship/Update.php @@ -33,7 +33,7 @@ class Update extends RelationshipUpdate ->setHttpPath('/v1/tablesdb/:databaseId/tables/:tableId/columns/:key/relationship') ->desc('Update relationship column') ->groups(['api', 'database', 'schema']) - ->label('scope', 'tables.write') + ->label('scope', ['tables.write', 'collections.write']) ->label('resourceType', RESOURCE_TYPE_DATABASES) ->label('event', 'databases.[databaseId].tables.[tableId].columns.[columnId].update') ->label('audits.event', 'column.update') diff --git a/src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Tables/Columns/String/Create.php b/src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Tables/Columns/String/Create.php index a16c3cde28..14f0c8321e 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Tables/Columns/String/Create.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Tables/Columns/String/Create.php @@ -34,7 +34,7 @@ class Create extends StringCreate ->setHttpPath('/v1/tablesdb/:databaseId/tables/:tableId/columns/string') ->desc('Create string column') ->groups(['api', 'database', 'schema']) - ->label('scope', 'tables.write') + ->label('scope', ['tables.write', 'collections.write']) ->label('resourceType', RESOURCE_TYPE_DATABASES) ->label('event', 'databases.[databaseId].tables.[tableId].columns.[columnId].create') ->label('audits.event', 'column.create') diff --git a/src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Tables/Columns/String/Update.php b/src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Tables/Columns/String/Update.php index adf1fbae4a..fc45557f3b 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Tables/Columns/String/Update.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Tables/Columns/String/Update.php @@ -36,7 +36,7 @@ class Update extends StringUpdate ->setHttpPath('/v1/tablesdb/:databaseId/tables/:tableId/columns/string/:key') ->desc('Update string column') ->groups(['api', 'database', 'schema']) - ->label('scope', 'tables.write') + ->label('scope', ['tables.write', 'collections.write']) ->label('resourceType', RESOURCE_TYPE_DATABASES) ->label('event', 'databases.[databaseId].tables.[tableId].columns.[columnId].update') ->label('audits.event', 'column.update') diff --git a/src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Tables/Columns/URL/Create.php b/src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Tables/Columns/URL/Create.php index ea2271b85a..bc53ad5250 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Tables/Columns/URL/Create.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Tables/Columns/URL/Create.php @@ -32,7 +32,7 @@ class Create extends URLCreate ->setHttpPath('/v1/tablesdb/:databaseId/tables/:tableId/columns/url') ->desc('Create URL column') ->groups(['api', 'database', 'schema']) - ->label('scope', 'tables.write') + ->label('scope', ['tables.write', 'collections.write']) ->label('resourceType', RESOURCE_TYPE_DATABASES) ->label('event', 'databases.[databaseId].tables.[tableId].columns.[columnId].create') ->label('audits.event', 'column.create') diff --git a/src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Tables/Columns/URL/Update.php b/src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Tables/Columns/URL/Update.php index 565cc91680..36bd7dc054 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Tables/Columns/URL/Update.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Tables/Columns/URL/Update.php @@ -34,7 +34,7 @@ class Update extends URLUpdate ->setHttpPath('/v1/tablesdb/:databaseId/tables/:tableId/columns/url/:key') ->desc('Update URL column') ->groups(['api', 'database', 'schema']) - ->label('scope', 'tables.write') + ->label('scope', ['tables.write', 'collections.write']) ->label('resourceType', RESOURCE_TYPE_DATABASES) ->label('event', 'databases.[databaseId].tables.[tableId].columns.[columnId].update') ->label('audits.event', 'column.update') diff --git a/src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Tables/Columns/XList.php b/src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Tables/Columns/XList.php index adfff05fc7..5f5d16fede 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Tables/Columns/XList.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Tables/Columns/XList.php @@ -31,7 +31,7 @@ class XList extends AttributesXList ->setHttpPath('/v1/tablesdb/:databaseId/tables/:tableId/columns') ->desc('List columns') ->groups(['api', 'database']) - ->label('scope', 'tables.read') + ->label('scope', ['tables.read', 'collections.read']) ->label('resourceType', RESOURCE_TYPE_DATABASES) ->label('sdk', new Method( namespace: $this->getSdkNamespace(), diff --git a/src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Tables/Create.php b/src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Tables/Create.php index d3216d4dd4..3965e12a74 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Tables/Create.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Tables/Create.php @@ -35,13 +35,13 @@ class Create extends CollectionCreate ->desc('Create table') ->groups(['api', 'database']) ->label('event', 'databases.[databaseId].tables.[tableId].create') - ->label('scope', 'tables.write') + ->label('scope', ['tables.write', 'collections.write']) ->label('resourceType', RESOURCE_TYPE_DATABASES) ->label('audits.event', 'table.create') ->label('audits.resource', 'database/{request.databaseId}/table/{response.$id}') ->label('sdk', new Method( namespace: $this->getSdkNamespace(), - group: null, + group: 'tables', name: self::getName(), description: '/docs/references/tablesdb/create-table.md', auth: [AuthType::KEY], diff --git a/src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Tables/Delete.php b/src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Tables/Delete.php index 51779d71c7..9bfdf42cef 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Tables/Delete.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Tables/Delete.php @@ -30,14 +30,14 @@ class Delete extends CollectionDelete ->setHttpPath('/v1/tablesdb/:databaseId/tables/:tableId') ->desc('Delete table') ->groups(['api', 'database', 'schema']) - ->label('scope', 'tables.write') + ->label('scope', ['tables.write', 'collections.write']) ->label('resourceType', RESOURCE_TYPE_DATABASES) ->label('event', 'databases.[databaseId].tables.[tableId].delete') ->label('audits.event', 'table.delete') ->label('audits.resource', 'database/{request.databaseId}/table/{request.tableId}') ->label('sdk', new Method( namespace: $this->getSdkNamespace(), - group: null, + group: 'tables', name: self::getName(), description: '/docs/references/tablesdb/delete-table.md', auth: [AuthType::KEY], diff --git a/src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Tables/Get.php b/src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Tables/Get.php index d14a15da51..a7d33478f7 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Tables/Get.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Tables/Get.php @@ -30,11 +30,11 @@ class Get extends CollectionGet ->setHttpPath('/v1/tablesdb/:databaseId/tables/:tableId') ->desc('Get table') ->groups(['api', 'database']) - ->label('scope', 'tables.read') + ->label('scope', ['tables.read', 'collections.read']) ->label('resourceType', RESOURCE_TYPE_DATABASES) ->label('sdk', new Method( namespace: $this->getSdkNamespace(), - group: null, + group: 'tables', name: self::getName(), description: '/docs/references/tablesdb/get-table.md', auth: [AuthType::KEY], diff --git a/src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Tables/Indexes/Create.php b/src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Tables/Indexes/Create.php index 34d594bebd..a2a5c8b453 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Tables/Indexes/Create.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Tables/Indexes/Create.php @@ -37,7 +37,7 @@ class Create extends IndexCreate ->desc('Create index') ->groups(['api', 'database']) ->label('event', 'databases.[databaseId].tables.[tableId].indexes.[indexId].create') - ->label('scope', 'tables.write') + ->label('scope', ['tables.write', 'collections.write']) ->label('resourceType', RESOURCE_TYPE_DATABASES) ->label('audits.event', 'index.create') ->label('audits.resource', 'database/{request.databaseId}/table/{request.tableId}') @@ -58,7 +58,7 @@ class Create extends IndexCreate ->param('databaseId', '', new UID(), 'Database ID.') ->param('tableId', '', new UID(), 'Table ID. You can create a new table using the Database service [server integration](https://appwrite.io/docs/server/tablesdb#tablesDBCreate).') ->param('key', null, new Key(), 'Index Key.') - ->param('type', null, new WhiteList([Database::INDEX_KEY, Database::INDEX_FULLTEXT, Database::INDEX_UNIQUE]), 'Index type.') + ->param('type', null, new WhiteList([Database::INDEX_KEY, Database::INDEX_FULLTEXT, Database::INDEX_UNIQUE, Database::INDEX_SPATIAL]), 'Index type.') ->param('columns', null, new ArrayList(new Key(true), APP_LIMIT_ARRAY_PARAMS_SIZE), 'Array of columns to index. Maximum of ' . APP_LIMIT_ARRAY_PARAMS_SIZE . ' columns are allowed, each 32 characters long.') ->param('orders', [], new ArrayList(new WhiteList(['ASC', 'DESC'], false, Database::VAR_STRING), APP_LIMIT_ARRAY_PARAMS_SIZE), 'Array of index orders. Maximum of ' . APP_LIMIT_ARRAY_PARAMS_SIZE . ' orders are allowed.', true) ->param('lengths', [], new ArrayList(new Nullable(new Integer()), APP_LIMIT_ARRAY_PARAMS_SIZE), 'Length of index. Maximum of ' . APP_LIMIT_ARRAY_PARAMS_SIZE, optional: true) diff --git a/src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Tables/Indexes/Delete.php b/src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Tables/Indexes/Delete.php index d3040da62f..586bad78f4 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Tables/Indexes/Delete.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Tables/Indexes/Delete.php @@ -35,7 +35,7 @@ class Delete extends IndexDelete ->setHttpPath('/v1/tablesdb/:databaseId/tables/:tableId/indexes/:key') ->desc('Delete index') ->groups(['api', 'database']) - ->label('scope', 'tables.write') + ->label('scope', ['tables.write', 'collections.write']) ->label('resourceType', RESOURCE_TYPE_DATABASES) ->label('event', 'databases.[databaseId].tables.[tableId].indexes.[indexId].update') ->label('audits.event', 'index.delete') diff --git a/src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Tables/Indexes/Get.php b/src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Tables/Indexes/Get.php index c4bdd5d2cf..3f2978b547 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Tables/Indexes/Get.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Tables/Indexes/Get.php @@ -31,7 +31,7 @@ class Get extends IndexGet ->setHttpPath('/v1/tablesdb/:databaseId/tables/:tableId/indexes/:key') ->desc('Get index') ->groups(['api', 'database']) - ->label('scope', 'tables.read') + ->label('scope', ['tables.read', 'collections.read']) ->label('resourceType', RESOURCE_TYPE_DATABASES) ->label('sdk', new Method( namespace: $this->getSdkNamespace(), diff --git a/src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Tables/Indexes/XList.php b/src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Tables/Indexes/XList.php index 7be32d88a6..c275fd2771 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Tables/Indexes/XList.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Tables/Indexes/XList.php @@ -31,7 +31,7 @@ class XList extends IndexXList ->setHttpPath('/v1/tablesdb/:databaseId/tables/:tableId/indexes') ->desc('List indexes') ->groups(['api', 'database']) - ->label('scope', 'tables.read') + ->label('scope', ['tables.read', 'collections.read']) ->label('resourceType', RESOURCE_TYPE_DATABASES) ->label('sdk', new Method( namespace: $this->getSdkNamespace(), diff --git a/src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Tables/Logs/XList.php b/src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Tables/Logs/XList.php index a659f1b23b..6d386df4f6 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Tables/Logs/XList.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Tables/Logs/XList.php @@ -27,7 +27,7 @@ class XList extends CollectionLogXList ->setHttpPath('/v1/tablesdb/:databaseId/tables/:tableId/logs') ->desc('List table logs') ->groups(['api', 'database']) - ->label('scope', 'tables.read') + ->label('scope', ['tables.read', 'collections.read']) ->label('resourceType', RESOURCE_TYPE_DATABASES) ->label('sdk', new Method( namespace: $this->getSdkNamespace(), diff --git a/src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Tables/Rows/Bulk/Delete.php b/src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Tables/Rows/Bulk/Delete.php index c80d2d6827..c9729d714d 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Tables/Rows/Bulk/Delete.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Tables/Rows/Bulk/Delete.php @@ -32,7 +32,7 @@ class Delete extends DocumentsDelete ->setHttpPath('/v1/tablesdb/:databaseId/tables/:tableId/rows') ->desc('Delete rows') ->groups(['api', 'database']) - ->label('scope', 'rows.write') + ->label('scope', ['rows.write', 'documents.write']) ->label('resourceType', RESOURCE_TYPE_DATABASES) ->label('audits.event', 'rows.delete') ->label('audits.resource', 'database/{request.databaseId}/table/{request.tableId}') diff --git a/src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Tables/Rows/Bulk/Update.php b/src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Tables/Rows/Bulk/Update.php index bc9d4ee0aa..13778b9474 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Tables/Rows/Bulk/Update.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Tables/Rows/Bulk/Update.php @@ -33,7 +33,7 @@ class Update extends DocumentsUpdate ->setHttpPath('/v1/tablesdb/:databaseId/tables/:tableId/rows') ->desc('Update rows') ->groups(['api', 'database']) - ->label('scope', 'rows.write') + ->label('scope', ['rows.write', 'documents.write']) ->label('resourceType', RESOURCE_TYPE_DATABASES) ->label('audits.event', 'rows.update') ->label('audits.resource', 'database/{request.databaseId}/table/{request.tableId}') diff --git a/src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Tables/Rows/Bulk/Upsert.php b/src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Tables/Rows/Bulk/Upsert.php index ca0511c9c2..26c5c8030c 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Tables/Rows/Bulk/Upsert.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Tables/Rows/Bulk/Upsert.php @@ -30,9 +30,9 @@ class Upsert extends DocumentsUpsert $this ->setHttpMethod(self::HTTP_REQUEST_METHOD_PUT) ->setHttpPath('/v1/tablesdb/:databaseId/tables/:tableId/rows') - ->desc('Create or update rows') + ->desc('Upsert rows') ->groups(['api', 'database']) - ->label('scope', 'rows.write') + ->label('scope', ['rows.write', 'documents.write']) ->label('resourceType', RESOURCE_TYPE_DATABASES) ->label('audits.event', 'row.create') ->label('audits.resource', 'database/{request.databaseId}/table/{request.tableId}') @@ -61,6 +61,10 @@ class Upsert extends DocumentsUpsert ->inject('response') ->inject('dbForProject') ->inject('queueForStatsUsage') + ->inject('queueForEvents') + ->inject('queueForRealtime') + ->inject('queueForFunctions') + ->inject('queueForWebhooks') ->inject('plan') ->callback($this->action(...)); } diff --git a/src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Tables/Rows/Column/Decrement.php b/src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Tables/Rows/Column/Decrement.php index 08769ae86a..46e9c8d6af 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Tables/Rows/Column/Decrement.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Tables/Rows/Column/Decrement.php @@ -33,7 +33,7 @@ class Decrement extends DecrementDocumentAttribute ->desc('Decrement row column') ->groups(['api', 'database']) ->label('event', 'databases.[databaseId].tables.[tableId].rows.[rowId].update') - ->label('scope', 'rows.write') + ->label('scope', ['rows.write', 'documents.write']) ->label('resourceType', RESOURCE_TYPE_DATABASES) ->label('audits.event', 'rows.update') ->label('audits.resource', 'database/{request.databaseId}/table/{request.tableId}') diff --git a/src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Tables/Rows/Column/Increment.php b/src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Tables/Rows/Column/Increment.php index 22e396e6bd..d921e9b8be 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Tables/Rows/Column/Increment.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Tables/Rows/Column/Increment.php @@ -33,7 +33,7 @@ class Increment extends IncrementDocumentAttribute ->desc('Increment row column') ->groups(['api', 'database']) ->label('event', 'databases.[databaseId].tables.[tableId].rows.[rowId].update') - ->label('scope', 'rows.write') + ->label('scope', ['rows.write', 'documents.write']) ->label('resourceType', RESOURCE_TYPE_DATABASES) ->label('audits.event', 'rows.update') ->label('audits.resource', 'database/{request.databaseId}/table/{request.tableId}') diff --git a/src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Tables/Rows/Create.php b/src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Tables/Rows/Create.php index c099c2ce27..cf38bac63b 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Tables/Rows/Create.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Tables/Rows/Create.php @@ -41,7 +41,7 @@ class Create extends DocumentCreate ->setHttpPath('/v1/tablesdb/:databaseId/tables/:tableId/rows') ->desc('Create row') ->groups(['api', 'database']) - ->label('scope', 'rows.write') + ->label('scope', ['rows.write', 'documents.write']) ->label('resourceType', RESOURCE_TYPE_DATABASES) ->label('audits.event', 'row.create') ->label('audits.resource', 'database/{request.databaseId}/table/{request.tableId}') @@ -95,9 +95,9 @@ class Create extends DocumentCreate ->param('databaseId', '', new UID(), 'Database ID.') ->param('rowId', '', new CustomId(), 'Row ID. Choose a custom ID or generate a random ID with `ID.unique()`. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can\'t start with a special char. Max length is 36 chars.', true) ->param('tableId', '', new UID(), 'Table ID. You can create a new table using the Database service [server integration](https://appwrite.io/docs/server/tablesdb#tablesDBCreate). Make sure to define columns before creating rows.') - ->param('data', [], new JSON(), 'Row data as JSON object.', true) + ->param('data', [], new JSON(), 'Row data as JSON object.', true, example: '{"username":"walter.obrien","email":"walter.obrien@example.com","fullName":"Walter O\'Brien","age":30,"isAdmin":false}') ->param('permissions', null, new Permissions(APP_LIMIT_ARRAY_PARAMS_SIZE, [Database::PERMISSION_READ, Database::PERMISSION_UPDATE, Database::PERMISSION_DELETE, Database::PERMISSION_WRITE]), 'An array of permissions strings. By default, only the current user is granted all permissions. [Learn more about permissions](https://appwrite.io/docs/permissions).', true) - ->param('rows', [], fn (array $plan) => new ArrayList(new JSON(), $plan['databasesBatchSize'] ?? APP_LIMIT_DATABASE_BATCH), 'Array of documents data as JSON objects.', true, ['plan']) + ->param('rows', [], fn (array $plan) => new ArrayList(new JSON(), $plan['databasesBatchSize'] ?? APP_LIMIT_DATABASE_BATCH), 'Array of rows data as JSON objects.', true, ['plan']) ->inject('response') ->inject('dbForProject') ->inject('user') diff --git a/src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Tables/Rows/Delete.php b/src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Tables/Rows/Delete.php index 672efd28f5..7ac954c5dd 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Tables/Rows/Delete.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Tables/Rows/Delete.php @@ -36,7 +36,7 @@ class Delete extends DocumentDelete ->setHttpPath('/v1/tablesdb/:databaseId/tables/:tableId/rows/:rowId') ->desc('Delete row') ->groups(['api', 'database']) - ->label('scope', 'rows.write') + ->label('scope', ['rows.write', 'documents.write']) ->label('resourceType', RESOURCE_TYPE_DATABASES) ->label('event', 'databases.[databaseId].tables.[tableId].rows.[rowId].delete') ->label('audits.event', 'row.delete') diff --git a/src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Tables/Rows/Get.php b/src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Tables/Rows/Get.php index af9567d848..5704f75d82 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Tables/Rows/Get.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Tables/Rows/Get.php @@ -32,7 +32,7 @@ class Get extends DocumentGet ->setHttpPath('/v1/tablesdb/:databaseId/tables/:tableId/rows/:rowId') ->desc('Get row') ->groups(['api', 'database']) - ->label('scope', 'rows.read') + ->label('scope', ['rows.read', 'documents.read']) ->label('resourceType', RESOURCE_TYPE_DATABASES) ->label('sdk', new Method( namespace: $this->getSdkNamespace(), diff --git a/src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Tables/Rows/Logs/XList.php b/src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Tables/Rows/Logs/XList.php index 24b664d812..a80249070b 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Tables/Rows/Logs/XList.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Tables/Rows/Logs/XList.php @@ -27,7 +27,7 @@ class XList extends DocumentLogXList ->setHttpPath('/v1/tablesdb/:databaseId/tables/:tableId/rows/:rowId/logs') ->desc('List row logs') ->groups(['api', 'database']) - ->label('scope', 'rows.read') + ->label('scope', ['rows.read', 'documents.read']) ->label('resourceType', RESOURCE_TYPE_DATABASES) ->label('sdk', new Method( namespace: $this->getSdkNamespace(), diff --git a/src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Tables/Rows/Update.php b/src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Tables/Rows/Update.php index a38ae37b58..b0e321b262 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Tables/Rows/Update.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Tables/Rows/Update.php @@ -34,7 +34,7 @@ class Update extends DocumentUpdate ->desc('Update row') ->groups(['api', 'database']) ->label('event', 'databases.[databaseId].tables.[tableId].rows.[rowId].update') - ->label('scope', 'rows.write') + ->label('scope', ['rows.write', 'documents.write']) ->label('resourceType', RESOURCE_TYPE_DATABASES) ->label('audits.event', 'row.update') ->label('audits.resource', 'database/{request.databaseId}/table/{request.tableId}/row/{response.$id}') diff --git a/src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Tables/Rows/Upsert.php b/src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Tables/Rows/Upsert.php index 234e504916..c2695379e3 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Tables/Rows/Upsert.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Tables/Rows/Upsert.php @@ -31,10 +31,10 @@ class Upsert extends DocumentUpsert $this ->setHttpMethod(self::HTTP_REQUEST_METHOD_PUT) ->setHttpPath('/v1/tablesdb/:databaseId/tables/:tableId/rows/:rowId') - ->desc('Create or update a row') + ->desc('Upsert a row') ->groups(['api', 'database']) ->label('event', 'databases.[databaseId].tables.[tableId].rows.[rowId].upsert') - ->label('scope', 'rows.write') + ->label('scope', ['rows.write', 'documents.write']) ->label('resourceType', RESOURCE_TYPE_DATABASES) ->label('audits.event', 'row.upsert') ->label('audits.resource', 'database/{request.databaseId}/table/{request.tableId}/row/{response.$id}') diff --git a/src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Tables/Rows/XList.php b/src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Tables/Rows/XList.php index e86f0e0dd6..5d503f1c59 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Tables/Rows/XList.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Tables/Rows/XList.php @@ -32,7 +32,7 @@ class XList extends DocumentXList ->setHttpPath('/v1/tablesdb/:databaseId/tables/:tableId/rows') ->desc('List rows') ->groups(['api', 'database']) - ->label('scope', 'rows.read') + ->label('scope', ['rows.read', 'documents.read']) ->label('resourceType', RESOURCE_TYPE_DATABASES) ->label('sdk', new Method( namespace: $this->getSdkNamespace(), diff --git a/src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Tables/Update.php b/src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Tables/Update.php index 22adc17dc8..0fcdf319d2 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Tables/Update.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Tables/Update.php @@ -33,14 +33,14 @@ class Update extends CollectionUpdate ->setHttpPath('/v1/tablesdb/:databaseId/tables/:tableId') ->desc('Update table') ->groups(['api', 'database', 'schema']) - ->label('scope', 'tables.write') + ->label('scope', ['tables.write', 'collections.write']) ->label('resourceType', RESOURCE_TYPE_DATABASES) ->label('event', 'databases.[databaseId].tables.[tableId].update') ->label('audits.event', 'table.update') ->label('audits.resource', 'database/{request.databaseId}/table/{request.tableId}') ->label('sdk', new Method( namespace: $this->getSdkNamespace(), - group: null, + group: 'tables', name: self::getName(), description: '/docs/references/tablesdb/update-table.md', auth: [AuthType::KEY], diff --git a/src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Tables/Usage/Get.php b/src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Tables/Usage/Get.php index 0cda3770f9..87f720e689 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Tables/Usage/Get.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Tables/Usage/Get.php @@ -31,7 +31,7 @@ class Get extends CollectionUsageGet ->setHttpPath('/v1/tablesdb/:databaseId/tables/:tableId/usage') ->desc('Get table usage stats') ->groups(['api', 'database', 'usage']) - ->label('scope', 'tables.read') + ->label('scope', ['tables.read', 'collections.read']) ->label('resourceType', RESOURCE_TYPE_DATABASES) ->label('sdk', new Method( namespace: $this->getSdkNamespace(), diff --git a/src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Tables/XList.php b/src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Tables/XList.php index 4bb4bb0d27..d9a92e41b1 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Tables/XList.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Tables/XList.php @@ -32,11 +32,11 @@ class XList extends CollectionXList ->setHttpPath('/v1/tablesdb/:databaseId/tables') ->desc('List tables') ->groups(['api', 'database']) - ->label('scope', 'tables.read') + ->label('scope', ['tables.read', 'collections.read']) ->label('resourceType', RESOURCE_TYPE_DATABASES) ->label('sdk', new Method( namespace: $this->getSdkNamespace(), - group: null, + group: 'tables', name: self::getName(), description: '/docs/references/tablesdb/list-tables.md', auth: [AuthType::KEY], diff --git a/src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Usage/Get.php b/src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Usage/Get.php index dba7feee31..89b9fbd8c2 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Usage/Get.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Usage/Get.php @@ -26,7 +26,7 @@ class Get extends DatabaseUsageGet ->setHttpPath('/v1/tablesdb/:databaseId/usage') ->desc('Get TablesDB usage stats') ->groups(['api', 'database', 'usage']) - ->label('scope', 'tables.read') + ->label('scope', ['tables.read', 'collections.read']) ->label('resourceType', RESOURCE_TYPE_DATABASES) ->label('sdk', [ new Method( diff --git a/src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Usage/XList.php b/src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Usage/XList.php index a67976211c..0bd96fc40a 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Usage/XList.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Usage/XList.php @@ -25,7 +25,7 @@ class XList extends DatabaseUsageXList ->setHttpPath('/v1/tablesdb/usage') ->desc('Get TablesDB usage stats') ->groups(['api', 'database', 'usage']) - ->label('scope', 'tables.read') + ->label('scope', ['tables.read', 'collections.read']) ->label('resourceType', RESOURCE_TYPE_DATABASES) ->label('sdk', [ new Method( diff --git a/src/Appwrite/Platform/Modules/Databases/Services/Registry/Collections.php b/src/Appwrite/Platform/Modules/Databases/Services/Registry/Collections.php index bb0002ed47..404f784611 100644 --- a/src/Appwrite/Platform/Modules/Databases/Services/Registry/Collections.php +++ b/src/Appwrite/Platform/Modules/Databases/Services/Registry/Collections.php @@ -18,6 +18,12 @@ use Appwrite\Platform\Modules\Databases\Http\Databases\Collections\Attributes\In use Appwrite\Platform\Modules\Databases\Http\Databases\Collections\Attributes\Integer\Update as UpdateIntegerAttribute; use Appwrite\Platform\Modules\Databases\Http\Databases\Collections\Attributes\IP\Create as CreateIPAttribute; use Appwrite\Platform\Modules\Databases\Http\Databases\Collections\Attributes\IP\Update as UpdateIPAttribute; +use Appwrite\Platform\Modules\Databases\Http\Databases\Collections\Attributes\Line\Create as CreateLineAttribute; +use Appwrite\Platform\Modules\Databases\Http\Databases\Collections\Attributes\Line\Update as UpdateLineAttribute; +use Appwrite\Platform\Modules\Databases\Http\Databases\Collections\Attributes\Point\Create as CreatePointAttribute; +use Appwrite\Platform\Modules\Databases\Http\Databases\Collections\Attributes\Point\Update as UpdatePointAttribute; +use Appwrite\Platform\Modules\Databases\Http\Databases\Collections\Attributes\Polygon\Create as CreatePolygonAttribute; +use Appwrite\Platform\Modules\Databases\Http\Databases\Collections\Attributes\Polygon\Update as UpdatePolygonAttribute; use Appwrite\Platform\Modules\Databases\Http\Databases\Collections\Attributes\Relationship\Create as CreateRelationshipAttribute; use Appwrite\Platform\Modules\Databases\Http\Databases\Collections\Attributes\Relationship\Update as UpdateRelationshipAttribute; use Appwrite\Platform\Modules\Databases\Http\Databases\Collections\Attributes\String\Create as CreateStringAttribute; @@ -132,6 +138,18 @@ class Collections extends Base $service->addAction(CreateIPAttribute::getName(), new CreateIPAttribute()); $service->addAction(UpdateIPAttribute::getName(), new UpdateIPAttribute()); + // Attribute: Line + $service->addAction(CreateLineAttribute::getName(), new CreateLineAttribute()); + $service->addAction(UpdateLineAttribute::getName(), new UpdateLineAttribute()); + + // Attribute: Point + $service->addAction(CreatePointAttribute::getName(), new CreatePointAttribute()); + $service->addAction(UpdatePointAttribute::getName(), new UpdatePointAttribute()); + + // Attribute: Polygon + $service->addAction(CreatePolygonAttribute::getName(), new CreatePolygonAttribute()); + $service->addAction(UpdatePolygonAttribute::getName(), new UpdatePolygonAttribute()); + // Attribute: Relationship $service->addAction(CreateRelationshipAttribute::getName(), new CreateRelationshipAttribute()); $service->addAction(UpdateRelationshipAttribute::getName(), new UpdateRelationshipAttribute()); diff --git a/src/Appwrite/Platform/Modules/Databases/Services/Registry/Tables.php b/src/Appwrite/Platform/Modules/Databases/Services/Registry/Tables.php index 7772aff933..d570745148 100644 --- a/src/Appwrite/Platform/Modules/Databases/Services/Registry/Tables.php +++ b/src/Appwrite/Platform/Modules/Databases/Services/Registry/Tables.php @@ -21,6 +21,12 @@ use Appwrite\Platform\Modules\Databases\Http\TablesDB\Tables\Columns\Integer\Cre use Appwrite\Platform\Modules\Databases\Http\TablesDB\Tables\Columns\Integer\Update as UpdateInteger; use Appwrite\Platform\Modules\Databases\Http\TablesDB\Tables\Columns\IP\Create as CreateIP; use Appwrite\Platform\Modules\Databases\Http\TablesDB\Tables\Columns\IP\Update as UpdateIP; +use Appwrite\Platform\Modules\Databases\Http\TablesDB\Tables\Columns\Line\Create as CreateLine; +use Appwrite\Platform\Modules\Databases\Http\TablesDB\Tables\Columns\Line\Update as UpdateLine; +use Appwrite\Platform\Modules\Databases\Http\TablesDB\Tables\Columns\Point\Create as CreatePoint; +use Appwrite\Platform\Modules\Databases\Http\TablesDB\Tables\Columns\Point\Update as UpdatePoint; +use Appwrite\Platform\Modules\Databases\Http\TablesDB\Tables\Columns\Polygon\Create as CreatePolygon; +use Appwrite\Platform\Modules\Databases\Http\TablesDB\Tables\Columns\Polygon\Update as UpdatePolygon; use Appwrite\Platform\Modules\Databases\Http\TablesDB\Tables\Columns\Relationship\Create as CreateRelationship; use Appwrite\Platform\Modules\Databases\Http\TablesDB\Tables\Columns\Relationship\Update as UpdateRelationship; use Appwrite\Platform\Modules\Databases\Http\TablesDB\Tables\Columns\String\Create as CreateString; @@ -134,6 +140,18 @@ class Tables extends Base $service->addAction(CreateIP::getName(), new CreateIP()); $service->addAction(UpdateIP::getName(), new UpdateIP()); + // Column: Line + $service->addAction(CreateLine::getName(), new CreateLine()); + $service->addAction(UpdateLine::getName(), new UpdateLine()); + + // Column: Point + $service->addAction(CreatePoint::getName(), new CreatePoint()); + $service->addAction(UpdatePoint::getName(), new UpdatePoint()); + + // Column: Polygon + $service->addAction(CreatePolygon::getName(), new CreatePolygon()); + $service->addAction(UpdatePolygon::getName(), new UpdatePolygon()); + // Column: Relationship $service->addAction(CreateRelationship::getName(), new CreateRelationship()); $service->addAction(UpdateRelationship::getName(), new UpdateRelationship()); diff --git a/src/Appwrite/Platform/Modules/Databases/Workers/Databases.php b/src/Appwrite/Platform/Modules/Databases/Workers/Databases.php index 22f1e6a2f2..9a98d77d2d 100644 --- a/src/Appwrite/Platform/Modules/Databases/Workers/Databases.php +++ b/src/Appwrite/Platform/Modules/Databases/Workers/Databases.php @@ -64,14 +64,6 @@ class Databases extends Action $collection = new Document($payload['table'] ?? $payload['collection'] ?? []); $database = new Document($payload['database'] ?? []); - Console::info("Processing database operation: \n" . \json_encode([ - 'type' => $type, - 'projectId' => $project->getId(), - 'databaseId' => $database->getId(), - 'collectionId' => $collection->getId(), - 'documentId' => $document->getId(), - ], JSON_PRETTY_PRINT)); - $log->addTag('projectId', $project->getId()); $log->addTag('type', $type); diff --git a/src/Appwrite/Platform/Modules/Functions/Http/Deployments/XList.php b/src/Appwrite/Platform/Modules/Functions/Http/Deployments/XList.php index 996df299d0..2850c5b279 100644 --- a/src/Appwrite/Platform/Modules/Functions/Http/Deployments/XList.php +++ b/src/Appwrite/Platform/Modules/Functions/Http/Deployments/XList.php @@ -3,10 +3,12 @@ namespace Appwrite\Platform\Modules\Functions\Http\Deployments; use Appwrite\Extend\Exception; +use Appwrite\Platform\Modules\Compute\Base; use Appwrite\SDK\AuthType; use Appwrite\SDK\Method; use Appwrite\SDK\Response as SDKResponse; use Appwrite\Utopia\Database\Validator\Queries\Deployments; +use Appwrite\Utopia\Request; use Appwrite\Utopia\Response; use Utopia\Database\Database; use Utopia\Database\Document; @@ -19,7 +21,7 @@ use Utopia\Platform\Action; use Utopia\Platform\Scope\HTTP; use Utopia\Validator\Text; -class XList extends Action +class XList extends Base { use HTTP; @@ -55,6 +57,7 @@ class XList extends Action ->param('functionId', '', new UID(), 'Function ID.') ->param('queries', [], new Deployments(), 'Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Maximum of ' . APP_LIMIT_ARRAY_PARAMS_SIZE . ' queries are allowed, each ' . APP_LIMIT_ARRAY_ELEMENT_SIZE . ' characters long. You may filter on the following attributes: ' . implode(', ', Deployments::ALLOWED_ATTRIBUTES), true) ->param('search', '', new Text(256), 'Search term to filter your list results. Max length: 256 chars.', true) + ->inject('request') ->inject('response') ->inject('dbForProject') ->callback($this->action(...)); @@ -64,6 +67,7 @@ class XList extends Action string $functionId, array $queries, string $search, + Request $request, Response $response, Database $dbForProject ) { @@ -121,6 +125,7 @@ class XList extends Action throw new Exception(Exception::DATABASE_QUERY_ORDER_NULL, "The order attribute '{$e->getAttribute()}' had a null value. Cursor pagination requires all documents order attribute values are non-null."); } + $this->applySelectQueries($request, $response, Response::MODEL_DEPLOYMENT); $response->dynamic(new Document([ 'deployments' => $results, 'total' => $total, diff --git a/src/Appwrite/Platform/Modules/Functions/Http/Executions/Create.php b/src/Appwrite/Platform/Modules/Functions/Http/Executions/Create.php index 64056b7db7..1603e8f997 100644 --- a/src/Appwrite/Platform/Modules/Functions/Http/Executions/Create.php +++ b/src/Appwrite/Platform/Modules/Functions/Http/Executions/Create.php @@ -80,7 +80,7 @@ class Create extends Base ->param('body', '', new Text(10485760, 0), 'HTTP body of execution. Default value is empty string.', true) ->param('async', false, new Boolean(true), 'Execute code in the background. Default value is false.', true) ->param('path', '/', new Text(2048), 'HTTP path of execution. Path can include query params. Default value is /', true) - ->param('method', 'POST', new Whitelist(['GET', 'POST', 'PUT', 'PATCH', 'DELETE', 'OPTIONS'], true), 'HTTP method of execution. Default value is GET.', true) + ->param('method', 'POST', new Whitelist(['GET', 'POST', 'PUT', 'PATCH', 'DELETE', 'OPTIONS', 'HEAD'], true), 'HTTP method of execution. Default value is POST.', true) ->param('headers', [], new AnyOf([new Assoc(), new Text(65535)], AnyOf::TYPE_MIXED), 'HTTP headers of execution. Defaults to empty.', true) ->param('scheduledAt', null, new Text(100), 'Scheduled execution time in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. DateTime value must be in future with precision in minutes.', true) ->inject('response') @@ -221,6 +221,8 @@ class Create extends Base 'scopes' => $function->getAttribute('scopes', []) ]); + $executionId = ID::unique(); + $headers['x-appwrite-execution-id'] = $executionId ?? ''; $headers['x-appwrite-key'] = API_KEY_DYNAMIC . '_' . $apiKey; $headers['x-appwrite-trigger'] = 'http'; $headers['x-appwrite-user-id'] = $user->getId() ?? ''; @@ -228,8 +230,9 @@ class Create extends Base $headers['x-appwrite-country-code'] = ''; $headers['x-appwrite-continent-code'] = ''; $headers['x-appwrite-continent-eu'] = 'false'; + $ip = $request->getIP(); + $headers['x-appwrite-client-ip'] = $ip; - $ip = $headers['x-real-ip'] ?? ''; if (!empty($ip)) { $record = $geodb->get($ip); @@ -249,7 +252,7 @@ class Create extends Base } } - $executionId = ID::unique(); + $status = $async ? 'waiting' : 'processing'; @@ -481,6 +484,8 @@ class Create extends Base $execution = Authorization::skip(fn () => $dbForProject->createDocument('executions', $execution)); } + $executionResponse['headers']['x-appwrite-execution-id'] = $execution->getId(); + $headers = []; foreach (($executionResponse['headers'] ?? []) as $key => $value) { $headers[] = ['name' => $key, 'value' => $value]; diff --git a/src/Appwrite/Platform/Modules/Projects/Http/Projects/XList.php b/src/Appwrite/Platform/Modules/Projects/Http/Projects/XList.php new file mode 100644 index 0000000000..3d06103e75 --- /dev/null +++ b/src/Appwrite/Platform/Modules/Projects/Http/Projects/XList.php @@ -0,0 +1,116 @@ +setHttpMethod(Action::HTTP_REQUEST_METHOD_GET) + ->setHttpPath('/v1/projects') + ->desc('List projects') + ->groups(['api', 'projects']) + ->label('scope', 'projects.read') + ->label('sdk', new Method( + namespace: 'projects', + group: 'projects', + name: 'list', + description: <<param('queries', [], $this->getQueriesValidator(), 'Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Maximum of ' . APP_LIMIT_ARRAY_PARAMS_SIZE . ' queries are allowed, each ' . APP_LIMIT_ARRAY_ELEMENT_SIZE . ' characters long. You may filter on the following attributes: ' . implode(', ', Projects::ALLOWED_ATTRIBUTES), true) + ->param('search', '', new Text(256), 'Search term to filter your list results. Max length: 256 chars.', true) + ->inject('response') + ->inject('dbForPlatform') + ->callback($this->action(...)); + } + + public function action(array $queries, string $search, Response $response, Database $dbForPlatform) + { + try { + $queries = Query::parseQueries($queries); + } catch (QueryException $e) { + throw new Exception(Exception::GENERAL_QUERY_INVALID, $e->getMessage()); + } + + if (!empty($search)) { + $queries[] = Query::search('search', $search); + } + + /** + * Get cursor document if there was a cursor query, we use array_filter and reset for reference $cursor to $queries + */ + $cursor = \array_filter($queries, function ($query) { + return \in_array($query->getMethod(), [Query::TYPE_CURSOR_AFTER, Query::TYPE_CURSOR_BEFORE]); + }); + $cursor = reset($cursor); + if ($cursor) { + /** @var Query $cursor */ + + $validator = new Cursor(); + if (!$validator->isValid($cursor)) { + throw new Exception(Exception::GENERAL_QUERY_INVALID, $validator->getDescription()); + } + + $projectId = $cursor->getValue(); + $cursorDocument = $dbForPlatform->getDocument('projects', $projectId); + + if ($cursorDocument->isEmpty()) { + throw new Exception(Exception::GENERAL_CURSOR_NOT_FOUND, "Project '{$projectId}' for the 'cursor' value not found."); + } + + $cursor->setValue($cursorDocument); + } + + $filterQueries = Query::groupByType($queries)['filters']; + try { + $projects = $dbForPlatform->find('projects', $queries); + $total = $dbForPlatform->count('projects', $filterQueries, APP_LIMIT_COUNT); + } catch (Order $e) { + throw new Exception(Exception::DATABASE_QUERY_ORDER_NULL, "The order attribute '{$e->getAttribute()}' had a null value. Cursor pagination requires all documents order attribute values are non-null."); + } + $response->dynamic(new Document([ + 'projects' => $projects, + 'total' => $total, + ]), Response::MODEL_PROJECT_LIST); + } +} diff --git a/src/Appwrite/Platform/Modules/Projects/Services/Http.php b/src/Appwrite/Platform/Modules/Projects/Services/Http.php index cec8ed6d16..2a0dd0aa60 100644 --- a/src/Appwrite/Platform/Modules/Projects/Services/Http.php +++ b/src/Appwrite/Platform/Modules/Projects/Services/Http.php @@ -7,6 +7,7 @@ use Appwrite\Platform\Modules\Projects\Http\DevKeys\Delete as DeleteDevKey; use Appwrite\Platform\Modules\Projects\Http\DevKeys\Get as GetDevKey; use Appwrite\Platform\Modules\Projects\Http\DevKeys\Update as UpdateDevKey; use Appwrite\Platform\Modules\Projects\Http\DevKeys\XList as ListDevKeys; +use Appwrite\Platform\Modules\Projects\Http\Projects\XList as ListProjects; use Utopia\Platform\Service; class Http extends Service @@ -19,5 +20,7 @@ class Http extends Service $this->addAction(GetDevKey::getName(), new GetDevKey()); $this->addAction(ListDevKeys::getName(), new ListDevKeys()); $this->addAction(DeleteDevKey::getName(), new DeleteDevKey()); + + $this->addAction(ListProjects::getName(), new ListProjects()); } } diff --git a/src/Appwrite/Platform/Modules/Proxy/Http/Rules/API/Create.php b/src/Appwrite/Platform/Modules/Proxy/Http/Rules/API/Create.php index 4efe8176f6..4cc8f48e7c 100644 --- a/src/Appwrite/Platform/Modules/Proxy/Http/Rules/API/Create.php +++ b/src/Appwrite/Platform/Modules/Proxy/Http/Rules/API/Create.php @@ -71,6 +71,24 @@ class Create extends Action public function action(string $domain, Response $response, Document $project, Certificate $queueForCertificates, Event $queueForEvents, Database $dbForPlatform) { + $sitesDomain = System::getEnv('_APP_DOMAIN_SITES', ''); + $functionsDomain = System::getEnv('_APP_DOMAIN_FUNCTIONS', ''); + + $restrictions = []; + if (!empty($sitesDomain)) { + $domainLevel = \count(\explode('.', $sitesDomain)); + $restrictions[] = ValidatorDomain::createRestriction($sitesDomain, $domainLevel + 1, ['commit-', 'branch-']); + } + if (!empty($functionsDomain)) { + $domainLevel = \count(\explode('.', $functionsDomain)); + $restrictions[] = ValidatorDomain::createRestriction($functionsDomain, $domainLevel + 1); + } + $validator = new ValidatorDomain($restrictions); + + if (!$validator->isValid($domain)) { + throw new Exception(Exception::GENERAL_ARGUMENT_INVALID, 'This domain name is not allowed. Please use a different domain.'); + } + $deniedDomains = [ 'localhost', APP_HOSTNAME_INTERNAL @@ -79,12 +97,10 @@ class Create extends Action $mainDomain = System::getEnv('_APP_DOMAIN', ''); $deniedDomains[] = $mainDomain; - $sitesDomain = System::getEnv('_APP_DOMAIN_SITES', ''); if (!empty($sitesDomain)) { $deniedDomains[] = $sitesDomain; } - $functionsDomain = System::getEnv('_APP_DOMAIN_FUNCTIONS', ''); if (!empty($functionsDomain)) { $deniedDomains[] = $functionsDomain; } @@ -102,10 +118,6 @@ class Create extends Action throw new Exception(Exception::GENERAL_ARGUMENT_INVALID, 'This domain name is not allowed. Please use a different domain.'); } - if (\str_starts_with($domain, 'commit-') || \str_starts_with($domain, 'branch-')) { - throw new Exception(Exception::GENERAL_ARGUMENT_INVALID, 'This domain name is not allowed. Please use a different domain.'); - } - try { $domain = new Domain($domain); } catch (\Throwable) { diff --git a/src/Appwrite/Platform/Modules/Proxy/Http/Rules/Delete.php b/src/Appwrite/Platform/Modules/Proxy/Http/Rules/Delete.php new file mode 100644 index 0000000000..5d76cc161e --- /dev/null +++ b/src/Appwrite/Platform/Modules/Proxy/Http/Rules/Delete.php @@ -0,0 +1,88 @@ +setHttpMethod(Action::HTTP_REQUEST_METHOD_DELETE) + ->setHttpPath('/v1/proxy/rules/:ruleId') + ->desc('Delete rule') + ->groups(['api', 'proxy']) + ->label('scope', 'rules.write') + ->label('event', 'rules.[ruleId].delete') + ->label('audits.event', 'rules.delete') + ->label('audits.resource', 'rule/{request.ruleId}') + ->label('sdk', new Method( + namespace: 'proxy', + group: null, + name: 'deleteRule', + description: <<param('ruleId', '', new UID(), 'Rule ID.') + ->inject('response') + ->inject('project') + ->inject('dbForPlatform') + ->inject('queueForDeletes') + ->inject('queueForEvents') + ->callback($this->action(...)); + } + + public function action( + string $ruleId, + Response $response, + Document $project, + Database $dbForPlatform, + DeleteEvent $queueForDeletes, + Event $queueForEvents + ) { + $rule = $dbForPlatform->getDocument('rules', $ruleId); + + if ($rule->isEmpty() || $rule->getAttribute('projectInternalId') !== $project->getSequence()) { + throw new Exception(Exception::RULE_NOT_FOUND); + } + + $dbForPlatform->deleteDocument('rules', $rule->getId()); + + $queueForDeletes + ->setType(DELETE_TYPE_DOCUMENT) + ->setDocument($rule); + + $queueForEvents->setParam('ruleId', $rule->getId()); + + $response->noContent(); + } +} diff --git a/src/Appwrite/Platform/Modules/Proxy/Http/Rules/Function/Create.php b/src/Appwrite/Platform/Modules/Proxy/Http/Rules/Function/Create.php index 1c8fe7b04d..5839e03e25 100644 --- a/src/Appwrite/Platform/Modules/Proxy/Http/Rules/Function/Create.php +++ b/src/Appwrite/Platform/Modules/Proxy/Http/Rules/Function/Create.php @@ -76,6 +76,24 @@ class Create extends Action public function action(string $domain, string $functionId, string $branch, Response $response, Document $project, Certificate $queueForCertificates, Event $queueForEvents, Database $dbForPlatform, Database $dbForProject) { + $sitesDomain = System::getEnv('_APP_DOMAIN_SITES', ''); + $functionsDomain = System::getEnv('_APP_DOMAIN_FUNCTIONS', ''); + + $restrictions = []; + if (!empty($sitesDomain)) { + $domainLevel = \count(\explode('.', $sitesDomain)); + $restrictions[] = ValidatorDomain::createRestriction($sitesDomain, $domainLevel + 1, ['commit-', 'branch-']); + } + if (!empty($functionsDomain)) { + $domainLevel = \count(\explode('.', $functionsDomain)); + $restrictions[] = ValidatorDomain::createRestriction($functionsDomain, $domainLevel + 1); + } + $validator = new ValidatorDomain($restrictions); + + if (!$validator->isValid($domain)) { + throw new Exception(Exception::GENERAL_ARGUMENT_INVALID, 'This domain name is not allowed. Please use a different domain.'); + } + $deniedDomains = [ 'localhost', APP_HOSTNAME_INTERNAL @@ -84,12 +102,10 @@ class Create extends Action $mainDomain = System::getEnv('_APP_DOMAIN', ''); $deniedDomains[] = $mainDomain; - $sitesDomain = System::getEnv('_APP_DOMAIN_SITES', ''); if (!empty($sitesDomain)) { $deniedDomains[] = $sitesDomain; } - $functionsDomain = System::getEnv('_APP_DOMAIN_FUNCTIONS', ''); if (!empty($functionsDomain)) { $deniedDomains[] = $functionsDomain; } @@ -107,10 +123,6 @@ class Create extends Action throw new Exception(Exception::GENERAL_ARGUMENT_INVALID, 'This domain name is not allowed. Please use a different domain.'); } - if (\str_starts_with($domain, 'commit-') || \str_starts_with($domain, 'branch-')) { - throw new Exception(Exception::GENERAL_ARGUMENT_INVALID, 'This domain name is not allowed. Please use a different domain.'); - } - try { $domain = new Domain($domain); } catch (\Throwable) { diff --git a/src/Appwrite/Platform/Modules/Proxy/Http/Rules/Get.php b/src/Appwrite/Platform/Modules/Proxy/Http/Rules/Get.php new file mode 100644 index 0000000000..77aa3df581 --- /dev/null +++ b/src/Appwrite/Platform/Modules/Proxy/Http/Rules/Get.php @@ -0,0 +1,73 @@ +setHttpMethod(Action::HTTP_REQUEST_METHOD_GET) + ->setHttpPath('/v1/proxy/rules/:ruleId') + ->desc('Get rule') + ->groups(['api', 'proxy']) + ->label('scope', 'rules.read') + ->label('sdk', new Method( + namespace: 'proxy', + group: null, + name: 'getRule', + description: <<param('ruleId', '', new UID(), 'Rule ID.') + ->inject('response') + ->inject('project') + ->inject('dbForPlatform') + ->callback($this->action(...)); + } + + public function action( + string $ruleId, + Response $response, + Document $project, + Database $dbForPlatform + ) { + $rule = $dbForPlatform->getDocument('rules', $ruleId); + + if ($rule->isEmpty() || $rule->getAttribute('projectInternalId') !== $project->getSequence()) { + throw new Exception(Exception::RULE_NOT_FOUND); + } + + $certificate = $dbForPlatform->getDocument('certificates', $rule->getAttribute('certificateId', '')); + $rule->setAttribute('logs', $certificate->getAttribute('logs', '')); + $rule->setAttribute('renewAt', $certificate->getAttribute('renewDate', '')); + + $response->dynamic($rule, Response::MODEL_PROXY_RULE); + } +} diff --git a/src/Appwrite/Platform/Modules/Proxy/Http/Rules/Redirect/Create.php b/src/Appwrite/Platform/Modules/Proxy/Http/Rules/Redirect/Create.php index 580d92bc74..1dfef8bcc7 100644 --- a/src/Appwrite/Platform/Modules/Proxy/Http/Rules/Redirect/Create.php +++ b/src/Appwrite/Platform/Modules/Proxy/Http/Rules/Redirect/Create.php @@ -79,6 +79,24 @@ class Create extends Action public function action(string $domain, string $url, int $statusCode, string $resourceId, string $resourceType, Response $response, Document $project, Certificate $queueForCertificates, Event $queueForEvents, Database $dbForPlatform, Database $dbForProject) { + $sitesDomain = System::getEnv('_APP_DOMAIN_SITES', ''); + $functionsDomain = System::getEnv('_APP_DOMAIN_FUNCTIONS', ''); + + $restrictions = []; + if (!empty($sitesDomain)) { + $domainLevel = \count(\explode('.', $sitesDomain)); + $restrictions[] = ValidatorDomain::createRestriction($sitesDomain, $domainLevel + 1, ['commit-', 'branch-']); + } + if (!empty($functionsDomain)) { + $domainLevel = \count(\explode('.', $functionsDomain)); + $restrictions[] = ValidatorDomain::createRestriction($functionsDomain, $domainLevel + 1); + } + $validator = new ValidatorDomain($restrictions); + + if (!$validator->isValid($domain)) { + throw new Exception(Exception::GENERAL_ARGUMENT_INVALID, 'This domain name is not allowed. Please use a different domain.'); + } + $deniedDomains = [ 'localhost', APP_HOSTNAME_INTERNAL @@ -87,12 +105,10 @@ class Create extends Action $mainDomain = System::getEnv('_APP_DOMAIN', ''); $deniedDomains[] = $mainDomain; - $sitesDomain = System::getEnv('_APP_DOMAIN_SITES', ''); if (!empty($sitesDomain)) { $deniedDomains[] = $sitesDomain; } - $functionsDomain = System::getEnv('_APP_DOMAIN_FUNCTIONS', ''); if (!empty($functionsDomain)) { $deniedDomains[] = $functionsDomain; } @@ -110,10 +126,6 @@ class Create extends Action throw new Exception(Exception::GENERAL_ARGUMENT_INVALID, 'This domain name is not allowed. Please use a different domain.'); } - if (\str_starts_with($domain, 'commit-') || \str_starts_with($domain, 'branch-')) { - throw new Exception(Exception::GENERAL_ARGUMENT_INVALID, 'This domain name is not allowed. Please use a different domain.'); - } - try { $domain = new Domain($domain); } catch (\Throwable) { diff --git a/src/Appwrite/Platform/Modules/Proxy/Http/Rules/Site/Create.php b/src/Appwrite/Platform/Modules/Proxy/Http/Rules/Site/Create.php index 7a5a1f4952..43cf09eaca 100644 --- a/src/Appwrite/Platform/Modules/Proxy/Http/Rules/Site/Create.php +++ b/src/Appwrite/Platform/Modules/Proxy/Http/Rules/Site/Create.php @@ -76,6 +76,24 @@ class Create extends Action public function action(string $domain, string $siteId, string $branch, Response $response, Document $project, Certificate $queueForCertificates, Event $queueForEvents, Database $dbForPlatform, Database $dbForProject) { + $sitesDomain = System::getEnv('_APP_DOMAIN_SITES', ''); + $functionsDomain = System::getEnv('_APP_DOMAIN_FUNCTIONS', ''); + + $restrictions = []; + if (!empty($sitesDomain)) { + $domainLevel = \count(\explode('.', $sitesDomain)); + $restrictions[] = ValidatorDomain::createRestriction($sitesDomain, $domainLevel + 1, ['commit-', 'branch-']); + } + if (!empty($functionsDomain)) { + $domainLevel = \count(\explode('.', $functionsDomain)); + $restrictions[] = ValidatorDomain::createRestriction($functionsDomain, $domainLevel + 1); + } + $validator = new ValidatorDomain($restrictions); + + if (!$validator->isValid($domain)) { + throw new Exception(Exception::GENERAL_ARGUMENT_INVALID, 'This domain name is not allowed. Please use a different domain.'); + } + $deniedDomains = [ 'localhost', APP_HOSTNAME_INTERNAL @@ -84,12 +102,10 @@ class Create extends Action $mainDomain = System::getEnv('_APP_DOMAIN', ''); $deniedDomains[] = $mainDomain; - $sitesDomain = System::getEnv('_APP_DOMAIN_SITES', ''); if (!empty($sitesDomain)) { $deniedDomains[] = $sitesDomain; } - $functionsDomain = System::getEnv('_APP_DOMAIN_FUNCTIONS', ''); if (!empty($functionsDomain)) { $deniedDomains[] = $functionsDomain; } @@ -107,10 +123,6 @@ class Create extends Action throw new Exception(Exception::GENERAL_ARGUMENT_INVALID, 'This domain name is not allowed. Please use a different domain.'); } - if (\str_starts_with($domain, 'commit-') || \str_starts_with($domain, 'branch-')) { - throw new Exception(Exception::GENERAL_ARGUMENT_INVALID, 'This domain name is not allowed. Please use a different domain.'); - } - try { $domain = new Domain($domain); } catch (\Throwable) { diff --git a/src/Appwrite/Platform/Modules/Proxy/Http/Rules/Verification/Update.php b/src/Appwrite/Platform/Modules/Proxy/Http/Rules/Verification/Update.php new file mode 100644 index 0000000000..3d52d203c3 --- /dev/null +++ b/src/Appwrite/Platform/Modules/Proxy/Http/Rules/Verification/Update.php @@ -0,0 +1,186 @@ +setHttpMethod(Action::HTTP_REQUEST_METHOD_PATCH) + ->setHttpPath('/v1/proxy/rules/:ruleId/verification') + ->desc('Update rule verification status') + ->groups(['api', 'proxy']) + ->label('scope', 'rules.write') + ->label('event', 'rules.[ruleId].update') + ->label('audits.event', 'rule.update') + ->label('audits.resource', 'rule/{response.$id}') + ->label('sdk', new Method( + namespace: 'proxy', + group: null, + name: 'updateRuleVerification', + description: <<param('ruleId', '', new UID(), 'Rule ID.') + ->inject('response') + ->inject('queueForCertificates') + ->inject('queueForEvents') + ->inject('project') + ->inject('dbForPlatform') + ->inject('log') + ->callback($this->action(...)); + } + + public function action( + string $ruleId, + Response $response, + Certificate $queueForCertificates, + Event $queueForEvents, + Document $project, + Database $dbForPlatform, + Log $log + ) { + $rule = $dbForPlatform->getDocument('rules', $ruleId); + + if ($rule->isEmpty() || $rule->getAttribute('projectInternalId') !== $project->getSequence()) { + throw new Exception(Exception::RULE_NOT_FOUND); + } + + $targetCNAME = null; + switch ($rule->getAttribute('type', '')) { + case 'api': + // For example: fra.cloud.appwrite.io + $targetCNAME = new Domain(System::getEnv('_APP_DOMAIN_TARGET_CNAME', '')); + break; + case 'redirect': + // For example: appwrite.network + $targetCNAME = new Domain(System::getEnv('_APP_DOMAIN_SITES', '')); + break; + case 'deployment': + switch ($rule->getAttribute('deploymentResourceType', '')) { + case 'function': + // For example: fra.appwrite.run + $targetCNAME = new Domain(System::getEnv('_APP_DOMAIN_FUNCTIONS', '')); + break; + case 'site': + // For example: appwrite.network + $targetCNAME = new Domain(System::getEnv('_APP_DOMAIN_SITES', '')); + break; + default: + break; + } + // no break + default: + break; + } + + $validators = []; + + if (!is_null($targetCNAME)) { + if ($targetCNAME->isKnown() && !$targetCNAME->isTest()) { + $validators[] = new DNS($targetCNAME->get(), DNS::RECORD_CNAME); + } + } + + if ((new IP(IP::V4))->isValid(System::getEnv('_APP_DOMAIN_TARGET_A', ''))) { + $validators[] = new DNS(System::getEnv('_APP_DOMAIN_TARGET_A', ''), DNS::RECORD_A); + } + if ((new IP(IP::V6))->isValid(System::getEnv('_APP_DOMAIN_TARGET_AAAA', ''))) { + $validators[] = new DNS(System::getEnv('_APP_DOMAIN_TARGET_AAAA', ''), DNS::RECORD_AAAA); + } + + if (empty($validators)) { + throw new Exception(Exception::GENERAL_SERVER_ERROR, 'At least one of domain targets environment variable must be configured.'); + } + + if ($rule->getAttribute('verification') === true) { + return $response->dynamic($rule, Response::MODEL_PROXY_RULE); + } + + $validator = new AnyOf($validators, AnyOf::TYPE_STRING); + $domain = new Domain($rule->getAttribute('domain', '')); + + $validationStart = \microtime(true); + if (!$validator->isValid($domain->get())) { + $log->addExtra('dnsTiming', \strval(\microtime(true) - $validationStart)); + $log->addTag('dnsDomain', $domain->get()); + + $errors = []; + foreach ($validators as $validator) { + if (!empty($validator->getLogs())) { + $errors[] = $validator->getLogs(); + } + } + + $error = \implode("\n", $errors); + $log->addExtra('dnsResponse', \is_array($error) ? \json_encode($error) : \strval($error)); + + throw new Exception(Exception::RULE_VERIFICATION_FAILED); + } + + // Ensure CAA won't block certificate issuance + if (!empty(System::getEnv('_APP_DOMAIN_TARGET_CAA', ''))) { + $validationStart = \microtime(true); + $validator = new DNS(System::getEnv('_APP_DOMAIN_TARGET_CAA', ''), DNS::RECORD_CAA); + if (!$validator->isValid($domain->get())) { + $log->addExtra('dnsTimingCaa', \strval(\microtime(true) - $validationStart)); + $log->addTag('dnsDomain', $domain->get()); + $error = $validator->getDescription(); + $log->addExtra('dnsResponse', \is_array($error) ? \json_encode($error) : \strval($error)); + throw new Exception(Exception::RULE_VERIFICATION_FAILED, 'Domain verification failed because CAA records do not allow Appwrite\'s certificate issuer.'); + } + } + + $dbForPlatform->updateDocument('rules', $rule->getId(), $rule->setAttribute('status', 'verifying')); + + // Issue a TLS certificate when domain is verified + $queueForCertificates + ->setDomain(new Document([ + 'domain' => $rule->getAttribute('domain'), + 'domainType' => $rule->getAttribute('deploymentResourceType', $rule->getAttribute('type')), + ])) + ->trigger(); + + $queueForEvents->setParam('ruleId', $rule->getId()); + + $certificate = $dbForPlatform->getDocument('certificates', $rule->getAttribute('certificateId', '')); + $rule->setAttribute('logs', $certificate->getAttribute('logs', '')); + + $response->dynamic($rule, Response::MODEL_PROXY_RULE); + } +} diff --git a/src/Appwrite/Platform/Modules/Proxy/Http/Rules/XList.php b/src/Appwrite/Platform/Modules/Proxy/Http/Rules/XList.php new file mode 100644 index 0000000000..e084cf76b2 --- /dev/null +++ b/src/Appwrite/Platform/Modules/Proxy/Http/Rules/XList.php @@ -0,0 +1,118 @@ +setHttpMethod(Action::HTTP_REQUEST_METHOD_GET) + ->setHttpPath('/v1/proxy/rules') + ->desc('List rules') + ->groups(['api', 'proxy']) + ->label('scope', 'rules.read') + ->label('sdk', new Method( + namespace: 'proxy', + group: null, + name: 'listRules', + description: <<param('queries', [], new Rules(), 'Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/databases#querying-documents). Maximum of ' . APP_LIMIT_ARRAY_PARAMS_SIZE . ' queries are allowed, each ' . APP_LIMIT_ARRAY_ELEMENT_SIZE . ' characters long. You may filter on the following attributes: ' . implode(', ', Rules::ALLOWED_ATTRIBUTES), true) + ->param('search', '', new Text(256), 'Search term to filter your list results. Max length: 256 chars.', true) + ->inject('response') + ->inject('project') + ->inject('dbForPlatform') + ->callback($this->action(...)); + } + + public function action( + array $queries, + string $search, + Response $response, + Document $project, + Database $dbForPlatform + ) { + try { + $queries = Query::parseQueries($queries); + } catch (QueryException $e) { + throw new Exception(Exception::GENERAL_QUERY_INVALID, $e->getMessage()); + } + + if (!empty($search)) { + $queries[] = Query::search('search', $search); + } + + $queries[] = Query::equal('projectInternalId', [$project->getSequence()]); + + /** + * Get cursor document if there was a cursor query, we use array_filter and reset for reference $cursor to $queries + */ + $cursor = \array_filter($queries, function ($query) { + return \in_array($query->getMethod(), [Query::TYPE_CURSOR_AFTER, Query::TYPE_CURSOR_BEFORE]); + }); + $cursor = reset($cursor); + if ($cursor) { + /** @var Query $cursor */ + + $validator = new Cursor(); + if (!$validator->isValid($cursor)) { + throw new Exception(Exception::GENERAL_QUERY_INVALID, $validator->getDescription()); + } + + $ruleId = $cursor->getValue(); + $cursorDocument = $dbForPlatform->getDocument('rules', $ruleId); + + if ($cursorDocument->isEmpty()) { + throw new Exception(Exception::GENERAL_CURSOR_NOT_FOUND, "Rule '{$ruleId}' for the 'cursor' value not found."); + } + + $cursor->setValue($cursorDocument); + } + + $filterQueries = Query::groupByType($queries)['filters']; + + $rules = $dbForPlatform->find('rules', $queries); + foreach ($rules as $rule) { + $certificate = $dbForPlatform->getDocument('certificates', $rule->getAttribute('certificateId', '')); + $rule->setAttribute('logs', $certificate->getAttribute('logs', '')); + $rule->setAttribute('renewAt', $certificate->getAttribute('renewDate', '')); + } + + $response->dynamic(new Document([ + 'rules' => $rules, + 'total' => $dbForPlatform->count('rules', $filterQueries, APP_LIMIT_COUNT), + ]), Response::MODEL_PROXY_RULE_LIST); + } +} diff --git a/src/Appwrite/Platform/Modules/Proxy/Services/Http.php b/src/Appwrite/Platform/Modules/Proxy/Services/Http.php index c5f11ad5be..980c64cc54 100644 --- a/src/Appwrite/Platform/Modules/Proxy/Services/Http.php +++ b/src/Appwrite/Platform/Modules/Proxy/Services/Http.php @@ -3,9 +3,13 @@ namespace Appwrite\Platform\Modules\Proxy\Services; use Appwrite\Platform\Modules\Proxy\Http\Rules\API\Create as CreateAPIRule; +use Appwrite\Platform\Modules\Proxy\Http\Rules\Delete as DeleteRule; use Appwrite\Platform\Modules\Proxy\Http\Rules\Function\Create as CreateFunctionRule; +use Appwrite\Platform\Modules\Proxy\Http\Rules\Get as GetRule; use Appwrite\Platform\Modules\Proxy\Http\Rules\Redirect\Create as CreateRedirectRule; use Appwrite\Platform\Modules\Proxy\Http\Rules\Site\Create as CreateSiteRule; +use Appwrite\Platform\Modules\Proxy\Http\Rules\Verification\Update as UpdateRuleVerification; +use Appwrite\Platform\Modules\Proxy\Http\Rules\XList as ListRules; use Utopia\Platform\Service; class Http extends Service @@ -19,5 +23,9 @@ class Http extends Service $this->addAction(CreateSiteRule::getName(), new CreateSiteRule()); $this->addAction(CreateFunctionRule::getName(), new CreateFunctionRule()); $this->addAction(CreateRedirectRule::getName(), new CreateRedirectRule()); + $this->addAction(GetRule::getName(), new GetRule()); + $this->addAction(ListRules::getName(), new ListRules()); + $this->addAction(DeleteRule::getName(), new DeleteRule()); + $this->addAction(UpdateRuleVerification::getName(), new UpdateRuleVerification()); } } diff --git a/src/Appwrite/Platform/Modules/Sites/Http/Deployments/XList.php b/src/Appwrite/Platform/Modules/Sites/Http/Deployments/XList.php index a1a79ec155..436cd69b52 100644 --- a/src/Appwrite/Platform/Modules/Sites/Http/Deployments/XList.php +++ b/src/Appwrite/Platform/Modules/Sites/Http/Deployments/XList.php @@ -3,10 +3,12 @@ namespace Appwrite\Platform\Modules\Sites\Http\Deployments; use Appwrite\Extend\Exception; +use Appwrite\Platform\Modules\Compute\Base; use Appwrite\SDK\AuthType; use Appwrite\SDK\Method; use Appwrite\SDK\Response as SDKResponse; use Appwrite\Utopia\Database\Validator\Queries\Deployments; +use Appwrite\Utopia\Request; use Appwrite\Utopia\Response; use Utopia\Database\Database; use Utopia\Database\Document; @@ -19,7 +21,7 @@ use Utopia\Platform\Action; use Utopia\Platform\Scope\HTTP; use Utopia\Validator\Text; -class XList extends Action +class XList extends Base { use HTTP; @@ -55,13 +57,20 @@ class XList extends Action ->param('siteId', '', new UID(), 'Site ID.') ->param('queries', [], new Deployments(), 'Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Maximum of ' . APP_LIMIT_ARRAY_PARAMS_SIZE . ' queries are allowed, each ' . APP_LIMIT_ARRAY_ELEMENT_SIZE . ' characters long. You may filter on the following attributes: ' . implode(', ', Deployments::ALLOWED_ATTRIBUTES), true) ->param('search', '', new Text(256), 'Search term to filter your list results. Max length: 256 chars.', true) + ->inject('request') ->inject('response') ->inject('dbForProject') ->callback($this->action(...)); } - public function action(string $siteId, array $queries, string $search, Response $response, Database $dbForProject) - { + public function action( + string $siteId, + array $queries, + string $search, + Request $request, + Response $response, + Database $dbForProject + ) { $site = $dbForProject->getDocument('sites', $siteId); if ($site->isEmpty()) { @@ -116,6 +125,7 @@ class XList extends Action throw new Exception(Exception::DATABASE_QUERY_ORDER_NULL, "The order attribute '{$e->getAttribute()}' had a null value. Cursor pagination requires all documents order attribute values are non-null."); } + $this->applySelectQueries($request, $response, Response::MODEL_DEPLOYMENT); $response->dynamic(new Document([ 'deployments' => $results, 'total' => $total, diff --git a/src/Appwrite/Platform/Tasks/SDKs.php b/src/Appwrite/Platform/Tasks/SDKs.php index f673651147..e5c18338bf 100644 --- a/src/Appwrite/Platform/Tasks/SDKs.php +++ b/src/Appwrite/Platform/Tasks/SDKs.php @@ -62,6 +62,9 @@ class SDKs extends Action $production ??= Console::confirm('Type "Appwrite" to push code to production git repos'); $production = $production === 'Appwrite'; $message ??= Console::confirm('Please enter your commit message:'); + + $createPr = Console::confirm('Should we create pull request automatically? (yes/no)'); + $createPr = $createPr === 'yes'; } if (!\in_array($version, [ @@ -315,6 +318,47 @@ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND Console::success("Pushed {$language['name']} SDK to {$gitUrl}"); + if ($createPr) { + $prTitle = "feat: {$language['name']} SDK update for version {$language['version']}"; + $prBody = "This PR contains updates to the {$language['name']} SDK for version {$language['version']}."; + + $repoName = $language['gitRepoName']; + if (!$production) { + $repoName = 'aw-tests/' . $language['gitRepoName']; + } else { + $repoName = $language['gitUserName'] . '/' . $language['gitRepoName']; + } + + Console::info("Creating pull request for {$language['name']} SDK..."); + + $prCommand = 'cd ' . $target . ' && \ + gh pr create \ + --repo "' . $repoName . '" \ + --title "' . $prTitle . '" \ + --body "' . $prBody . '" \ + --base "' . $repoBranch . '" \ + --head "' . $gitBranch . '" \ + 2>&1'; + + $prOutput = []; + $prReturnCode = 0; + \exec($prCommand, $prOutput, $prReturnCode); + + if ($prReturnCode === 0) { + Console::success("Successfully created pull request for {$language['name']} SDK"); + if (!empty($prOutput)) { + Console::info("PR URL: " . end($prOutput)); + } + } else { + $errorMessage = implode("\n", $prOutput); + if (strpos($errorMessage, 'already exists') !== false) { + Console::warning("Pull request already exists for {$language['name']} SDK"); + } else { + Console::error("Failed to create pull request for {$language['name']} SDK: " . $errorMessage); + } + } + } + \exec('rm -rf ' . $target); Console::success("Remove temp directory '{$target}' for {$language['name']} SDK"); } diff --git a/src/Appwrite/Platform/Workers/Audits.php b/src/Appwrite/Platform/Workers/Audits.php index 04b562a219..a88e2e641f 100644 --- a/src/Appwrite/Platform/Workers/Audits.php +++ b/src/Appwrite/Platform/Workers/Audits.php @@ -131,21 +131,23 @@ class Audits extends Action return new NoCommit(); } - try { - foreach ($this->logs as $sequence => $projectLogs) { - $dbForProject = $getProjectDB($projectLogs['project']); + foreach ($this->logs as $sequence => $projectLogs) { + try { + Console::log('Processing Project "' . $sequence . '" batch with ' . count($projectLogs['logs']) . ' events'); - Console::log('Processing batch with ' . count($projectLogs['logs']) . ' events'); + $projectDocument = $projectLogs['project']; + $dbForProject = $getProjectDB($projectDocument); $audit = new Audit($dbForProject); - $audit->logBatch($projectLogs['logs']); - Console::success('Audit logs processed successfully'); + Console::success('Audit logs processed successfully'); + } catch (Throwable $e) { + Console::error('Error processing audit logs for Project "' . $sequence . '": ' . $e->getMessage()); + } finally { unset($this->logs[$sequence]); } - } catch (Throwable $e) { - Console::error('Error processing audit logs: ' . $e->getMessage()); } + $this->lastTriggeredTime = time(); return new Commit(); } diff --git a/src/Appwrite/Platform/Workers/Certificates.php b/src/Appwrite/Platform/Workers/Certificates.php index a3fad056bf..73447b5515 100644 --- a/src/Appwrite/Platform/Workers/Certificates.php +++ b/src/Appwrite/Platform/Workers/Certificates.php @@ -93,12 +93,13 @@ class Certificates extends Action $document = new Document($payload['domain'] ?? []); $domain = new Domain($document->getAttribute('domain', '')); $skipRenewCheck = $payload['skipRenewCheck'] ?? false; + $validationDomain = $payload['validationDomain'] ?? null; $log->addTag('domain', $domain->get()); $domainType = $document->getAttribute('domainType'); - $this->execute($domain, $domainType, $dbForPlatform, $queueForMails, $queueForEvents, $queueForWebhooks, $queueForFunctions, $queueForRealtime, $log, $certificates, $skipRenewCheck, $plan); + $this->execute($domain, $domainType, $dbForPlatform, $queueForMails, $queueForEvents, $queueForWebhooks, $queueForFunctions, $queueForRealtime, $log, $certificates, $skipRenewCheck, $plan, $validationDomain); } /** @@ -112,6 +113,7 @@ class Certificates extends Action * @param CertificatesAdapter $certificates * @param bool $skipRenewCheck * @param array $plan + * @param string|null $validationDomain * @return void * @throws Throwable * @throws \Utopia\Database\Exception @@ -128,7 +130,8 @@ class Certificates extends Action Log $log, CertificatesAdapter $certificates, bool $skipRenewCheck = false, - array $plan = [] + array $plan = [], + ?string $validationDomain = null ): void { /** * 1. Read arguments and validate domain @@ -171,9 +174,12 @@ class Certificates extends Action $success = false; try { + $date = \date('H:i:s'); + $certificate->setAttribute('logs', "\033[90m[{$date}] \033[97mCertificate generation started. \033[0m\n"); + // Validate domain and DNS records. Skip if job is forced if (!$skipRenewCheck) { - $mainDomain = $this->getMainDomain(); + $mainDomain = $validationDomain ?? $this->getMainDomain(); $isMainDomain = !isset($mainDomain) || $domain->get() === $mainDomain; $this->validateDomain($domain, $isMainDomain, $log); @@ -198,9 +204,11 @@ class Certificates extends Action $success = true; } catch (Throwable $e) { $logs = $e->getMessage(); + $currentLogs = $certificate->getAttribute('logs', ''); + $date = \date('H:i:s'); + $errorMessage = "\033[90m[{$date}] \033[31mCertificate generation failed: \033[0m\n"; - // Set exception as log in certificate document - $certificate->setAttribute('logs', \mb_strcut($logs, 0, 1000000));// Limit to 1MB + $certificate->setAttribute('logs', $currentLogs . $errorMessage . \mb_strcut($logs, 0, 500000));// Limit to 500kb // Increase attempts count $attempts = $certificate->getAttribute('attempts', 0) + 1; @@ -381,22 +389,22 @@ class Certificates extends Action $template->setParam('{{error}}', \nl2br($errorMessage)); $template->setParam('{{attempts}}', $attempt); - $template->setParam('{{logoUrl}}', $plan['logoUrl'] ?? APP_EMAIL_LOGO_URL); - $template->setParam('{{accentColor}}', $plan['accentColor'] ?? APP_EMAIL_ACCENT_COLOR); - $template->setParam('{{twitterUrl}}', $plan['twitterUrl'] ?? APP_SOCIAL_TWITTER); - $template->setParam('{{discordUrl}}', $plan['discordUrl'] ?? APP_SOCIAL_DISCORD); - $template->setParam('{{githubUrl}}', $plan['githubUrl'] ?? APP_SOCIAL_GITHUB_APPWRITE); - $template->setParam('{{termsUrl}}', $plan['termsUrl'] ?? APP_EMAIL_TERMS_URL); - $template->setParam('{{privacyUrl}}', $plan['privacyUrl'] ?? APP_EMAIL_PRIVACY_URL); - $body = $template->render(); $emailVariables = [ 'direction' => $locale->getText('settings.direction'), + 'domain' => $domain, + 'logoUrl' => $plan['logoUrl'] ?? APP_EMAIL_LOGO_URL, + 'accentColor' => $plan['accentColor'] ?? APP_EMAIL_ACCENT_COLOR, + 'twitterUrl' => $plan['twitterUrl'] ?? APP_SOCIAL_TWITTER, + 'discordUrl' => $plan['discordUrl'] ?? APP_SOCIAL_DISCORD, + 'githubUrl' => $plan['githubUrl'] ?? APP_SOCIAL_GITHUB_APPWRITE, + 'termsUrl' => $plan['termsUrl'] ?? APP_EMAIL_TERMS_URL, + 'privacyUrl' => $plan['privacyUrl'] ?? APP_EMAIL_PRIVACY_URL, ]; - $subject = \sprintf($locale->getText("emails.certificate.subject"), $domain); - $preview = \sprintf($locale->getText("emails.certificate.preview"), $domain); + $subject = $locale->getText("emails.certificate.subject"); + $preview = $locale->getText("emails.certificate.preview"); $queueForMails ->setSubject($subject) diff --git a/src/Appwrite/Platform/Workers/Deletes.php b/src/Appwrite/Platform/Workers/Deletes.php index aa511c2209..a07d0b3cbe 100644 --- a/src/Appwrite/Platform/Workers/Deletes.php +++ b/src/Appwrite/Platform/Workers/Deletes.php @@ -1192,7 +1192,7 @@ class Deletes extends Action * @param Document $document rule document * @return void */ - private function deleteRule(Database $dbForPlatform, Document $document, CertificatesAdapter $certificates): void + protected function deleteRule(Database $dbForPlatform, Document $document, CertificatesAdapter $certificates): void { $domain = $document->getAttribute('domain'); $certificates->deleteCertificate($domain); diff --git a/src/Appwrite/Platform/Workers/Functions.php b/src/Appwrite/Platform/Workers/Functions.php index 864d6451b8..df1833ad33 100644 --- a/src/Appwrite/Platform/Workers/Functions.php +++ b/src/Appwrite/Platform/Workers/Functions.php @@ -264,6 +264,8 @@ class Functions extends Action string $jwt = null, string $event = null, ): void { + $executionId = ID::unique(); + $headers['x-appwrite-execution-id'] = $executionId ?? ''; $headers['x-appwrite-trigger'] = $trigger; $headers['x-appwrite-event'] = $event ?? ''; $headers['x-appwrite-user-id'] = $user->getId() ?? ''; @@ -276,7 +278,6 @@ class Functions extends Action } } - $executionId = ID::unique(); $execution = new Document([ '$id' => $executionId, '$permissions' => $user->isEmpty() ? [] : [Permission::read(Role::user($user->getId()))], @@ -397,6 +398,7 @@ class Functions extends Action 'scopes' => $function->getAttribute('scopes', []) ]); + $headers['x-appwrite-execution-id'] = $executionId ?? ''; $headers['x-appwrite-key'] = API_KEY_DYNAMIC . '_' . $apiKey; $headers['x-appwrite-trigger'] = $trigger; $headers['x-appwrite-event'] = $event ?? ''; @@ -409,6 +411,8 @@ class Functions extends Action /** Create execution or update execution status */ $execution = $dbForProject->getDocument('executions', $executionId ?? ''); if ($execution->isEmpty()) { + $executionId = ID::unique(); + $headers['x-appwrite-execution-id'] = $executionId; $headersFiltered = []; foreach ($headers as $key => $value) { if (\in_array(\strtolower($key), FUNCTION_ALLOWLIST_HEADERS_REQUEST)) { @@ -416,7 +420,6 @@ class Functions extends Action } } - $executionId = ID::unique(); $execution = new Document([ '$id' => $executionId, '$permissions' => $user->isEmpty() ? [] : [Permission::read(Role::user($user->getId()))], @@ -543,6 +546,8 @@ class Functions extends Action $status = $executionResponse['statusCode'] >= 500 ? 'failed' : 'completed'; + $executionResponse['headers']['x-appwrite-execution-id'] = $execution->getId(); + $headersFiltered = []; foreach ($executionResponse['headers'] as $key => $value) { if (\in_array(\strtolower($key), FUNCTION_ALLOWLIST_HEADERS_RESPONSE)) { diff --git a/src/Appwrite/Platform/Workers/Migrations.php b/src/Appwrite/Platform/Workers/Migrations.php index 39adb37374..cd7a6a1058 100644 --- a/src/Appwrite/Platform/Workers/Migrations.php +++ b/src/Appwrite/Platform/Workers/Migrations.php @@ -204,7 +204,6 @@ class Migrations extends Action // set the errors back without trace $clonedMigrationDocument->setAttribute('errors', $errorMessages); - /** Trigger Realtime Events */ $queueForRealtime ->setProject($project) diff --git a/src/Appwrite/Platform/Workers/StatsResources.php b/src/Appwrite/Platform/Workers/StatsResources.php index 98c9d01a87..da8c086bf4 100644 --- a/src/Appwrite/Platform/Workers/StatsResources.php +++ b/src/Appwrite/Platform/Workers/StatsResources.php @@ -432,11 +432,20 @@ class StatsResources extends Action protected function writeDocuments(Database $dbForLogs, Document $project): void { - $dbForLogs->createOrUpdateDocuments( - 'stats', - $this->documents - ); - $this->documents = []; - Console::success('Stats written to logs db for project: ' . $project->getId() . '(' . $project->getSequence() . ')'); + $message = 'Stats writeDocuments project: ' . $project->getId() . '(' . $project->getSequence() . ')'; + + try { + $dbForLogs->createOrUpdateDocuments( + 'stats', + $this->documents + ); + + Console::success($message . ' | Documents: ' . count($this->documents)); + } catch (\Throwable $e) { + Console::error('Error: ' . $message . ' | Exception: ' . $e->getMessage()); + throw $e; + } finally { + $this->documents = []; + } } } diff --git a/src/Appwrite/SDK/Method.php b/src/Appwrite/SDK/Method.php index 77e3e1f1af..8d11b07198 100644 --- a/src/Appwrite/SDK/Method.php +++ b/src/Appwrite/SDK/Method.php @@ -24,7 +24,7 @@ class Method * @param array $responses * @param ContentType $contentType * @param MethodType|null $type - * @param bool|Deprecated $deprecated + * @param Deprecated|null $deprecated * @param array|bool $hide * @param bool $packaging * @param ContentType $requestType @@ -41,7 +41,7 @@ class Method protected array $responses, protected ContentType $contentType = ContentType::JSON, protected ?MethodType $type = null, - protected bool|Deprecated $deprecated = false, + protected ?Deprecated $deprecated = null, protected array|bool $hide = false, protected bool $packaging = false, protected ContentType $requestType = ContentType::JSON, @@ -185,10 +185,10 @@ class Method public function isDeprecated(): bool { - return $this->deprecated !== false; + return $this->deprecated !== null; } - public function getDeprecated(): bool|Deprecated + public function getDeprecated(): ?Deprecated { return $this->deprecated; } diff --git a/src/Appwrite/SDK/Specification/Format/OpenAPI3.php b/src/Appwrite/SDK/Specification/Format/OpenAPI3.php index 4bc8093187..c9c2135ab3 100644 --- a/src/Appwrite/SDK/Specification/Format/OpenAPI3.php +++ b/src/Appwrite/SDK/Specification/Format/OpenAPI3.php @@ -3,15 +3,16 @@ namespace Appwrite\SDK\Specification\Format; use Appwrite\SDK\AuthType; -use Appwrite\SDK\Deprecated; use Appwrite\SDK\Method; use Appwrite\SDK\MethodType; use Appwrite\SDK\Response; use Appwrite\SDK\Specification\Format; use Appwrite\Template\Template; use Appwrite\Utopia\Response\Model; +use Utopia\Database\Database; use Utopia\Database\Helpers\Permission; use Utopia\Database\Helpers\Role; +use Utopia\Database\Validator\Spatial; use Utopia\Validator; use Utopia\Validator\ArrayList; use Utopia\Validator\Nullable; @@ -156,7 +157,7 @@ class OpenAPI3 extends Format 'weight' => $route->getOrder(), 'cookies' => $route->getLabel('sdk.cookies', false), 'type' => $sdk->getType()->value ?? '', - 'demo' => Template::fromCamelCaseToDash($namespace) . '/' . Template::fromCamelCaseToDash($methodName) . '.md', + 'demo' => \strtolower($namespace) . '/' . Template::fromCamelCaseToDash($methodName) . '.md', 'edit' => 'https://github.com/appwrite/appwrite/edit/master' . $sdk->getDescription() ?? '', 'rate-limit' => $route->getLabel('abuse-limit', 0), 'rate-time' => $route->getLabel('abuse-time', 3600), @@ -167,7 +168,7 @@ class OpenAPI3 extends Format ], ]; - if ($sdk->getDeprecated() instanceof Deprecated) { + if ($sdk->getDeprecated()) { $temp['x-appwrite']['deprecated'] = [ 'since' => $sdk->getDeprecated()->getSince(), 'replaceWith' => $sdk->getDeprecated()->getReplaceWith(), @@ -222,11 +223,11 @@ class OpenAPI3 extends Format 'required' => [], 'responses' => [], 'description' => ($desc) ? \file_get_contents($desc) : '', - 'demo' => Template::fromCamelCaseToDash($namespace) . '/' . Template::fromCamelCaseToDash($methodObj->getMethodName()) . '.md', + 'demo' => \strtolower($namespace) . '/' . Template::fromCamelCaseToDash($methodObj->getMethodName()) . '.md', ]; // add deprecation only if method has it! - if ($methodObj->getDeprecated() instanceof Deprecated) { + if ($methodObj->getDeprecated()) { $additionalMethod['deprecated'] = [ 'since' => $methodObj->getDeprecated()->getSince(), 'replaceWith' => $methodObj->getDeprecated()->getReplaceWith(), @@ -434,7 +435,7 @@ class OpenAPI3 extends Format case 'Utopia\Validator\Assoc': $param['default'] = (empty($param['default'])) ? new \stdClass() : $param['default']; $node['schema']['type'] = 'object'; - $node['schema']['x-example'] = '{}'; + $node['schema']['x-example'] = ($param['example'] ?? '') ?: '{}'; break; case 'Utopia\Storage\Validator\File': $consumes = ['multipart/form-data']; @@ -448,6 +449,20 @@ class OpenAPI3 extends Format 'type' => $validator->getValidator()->getType(), ]; break; + case 'Utopia\Database\Validator\Spatial': + /** @var Spatial $validator */ + $node['schema']['type'] = 'array'; + $node['schema']['items'] = [ + 'oneOf' => [ + ['type' => 'array'] + ] + ]; + $node['schema']['x-example'] = match ($validator->getSpatialType()) { + Database::VAR_POINT => '[1, 2]', + Database::VAR_LINESTRING => '[[1, 2], [3, 4], [5, 6]]', + Database::VAR_POLYGON => '[[[1, 2], [3, 4], [5, 6], [1, 2]]]', + }; + break; case 'Appwrite\Utopia\Database\Validator\Queries\Columns': case 'Appwrite\Utopia\Database\Validator\Queries\Attributes': case 'Appwrite\Utopia\Database\Validator\Queries\Buckets': @@ -672,6 +687,10 @@ class OpenAPI3 extends Format $output['components']['schemas'][$model->getType()]['properties'][$name]['additionalProperties'] = true; break; + case 'array': + $type = 'array'; + break; + case 'integer': $type = 'integer'; $format = 'int32'; diff --git a/src/Appwrite/SDK/Specification/Format/Swagger2.php b/src/Appwrite/SDK/Specification/Format/Swagger2.php index 225ede4f00..a923f40ffa 100644 --- a/src/Appwrite/SDK/Specification/Format/Swagger2.php +++ b/src/Appwrite/SDK/Specification/Format/Swagger2.php @@ -3,15 +3,16 @@ namespace Appwrite\SDK\Specification\Format; use Appwrite\SDK\AuthType; -use Appwrite\SDK\Deprecated; use Appwrite\SDK\Method; use Appwrite\SDK\MethodType; use Appwrite\SDK\Response; use Appwrite\SDK\Specification\Format; use Appwrite\Template\Template; use Appwrite\Utopia\Response\Model; +use Utopia\Database\Database; use Utopia\Database\Helpers\Permission; use Utopia\Database\Helpers\Role; +use Utopia\Database\Validator\Spatial; use Utopia\Route; use Utopia\Validator; use Utopia\Validator\ArrayList; @@ -160,7 +161,7 @@ class Swagger2 extends Format 'weight' => $route->getOrder(), 'cookies' => $route->getLabel('sdk.cookies', false), 'type' => $sdk->getType()->value ?? '', - 'demo' => Template::fromCamelCaseToDash($namespace) . '/' . Template::fromCamelCaseToDash($methodName) . '.md', + 'demo' => \strtolower($namespace) . '/' . Template::fromCamelCaseToDash($methodName) . '.md', 'edit' => 'https://github.com/appwrite/appwrite/edit/master' . $sdk->getDescription() ?? '', 'rate-limit' => $route->getLabel('abuse-limit', 0), 'rate-time' => $route->getLabel('abuse-time', 3600), @@ -171,7 +172,7 @@ class Swagger2 extends Format ], ]; - if ($sdk->getDeprecated() instanceof Deprecated) { + if ($sdk->getDeprecated()) { $temp['x-appwrite']['deprecated'] = [ 'since' => $sdk->getDeprecated()->getSince(), 'replaceWith' => $sdk->getDeprecated()->getReplaceWith(), @@ -231,11 +232,11 @@ class Swagger2 extends Format 'required' => [], 'responses' => [], 'description' => ($desc) ? \file_get_contents($desc) : '', - 'demo' => Template::fromCamelCaseToDash($namespace) . '/' . Template::fromCamelCaseToDash($methodObj->getMethodName()) . '.md', + 'demo' => \strtolower($namespace) . '/' . Template::fromCamelCaseToDash($methodObj->getMethodName()) . '.md', ]; // add deprecation only if method has it! - if ($methodObj->getDeprecated() instanceof Deprecated) { + if ($methodObj->getDeprecated()) { $additionalMethod['deprecated'] = [ 'since' => $methodObj->getDeprecated()->getSince(), 'replaceWith' => $methodObj->getDeprecated()->getReplaceWith(), @@ -350,11 +351,10 @@ class Swagger2 extends Format } } - if (!empty($scope)) { // && 'public' != $scope + if (!empty($scope)) { $securities = ['Project' => []]; foreach ($sdk->getAuth() as $security) { - /** @var AuthType $security */ if (\array_key_exists($security->value, $this->keys)) { $securities[$security->value] = []; } @@ -464,12 +464,26 @@ class Swagger2 extends Format 'type' => $validator->getValidator()->getType(), ]; break; + case 'Utopia\Database\Validator\Spatial': + /** @var Spatial $validator */ + $node['type'] = 'array'; + $node['schema']['items'] = [ + 'oneOf' => [ + ['type' => 'array'] + ] + ]; + $node['x-example'] = match ($validator->getSpatialType()) { + Database::VAR_POINT => '[1, 2]', + Database::VAR_LINESTRING => '[[1, 2], [3, 4], [5, 6]]', + Database::VAR_POLYGON => '[[[1, 2], [3, 4], [5, 6], [1, 2]]]', + }; + break; case 'Utopia\Validator\JSON': case 'Utopia\Validator\Mock': case 'Utopia\Validator\Assoc': $node['type'] = 'object'; $node['default'] = (empty($param['default'])) ? new \stdClass() : $param['default']; - $node['x-example'] = '{}'; + $node['x-example'] = ($param['example'] ?? '') ?: '{}'; break; case 'Utopia\Storage\Validator\File': $consumes = ['multipart/form-data']; @@ -680,6 +694,10 @@ class Swagger2 extends Format $type = 'object'; break; + case 'array': + $type = 'array'; + break; + case 'integer': $type = 'integer'; $format = 'int32'; diff --git a/src/Appwrite/Template/Template.php b/src/Appwrite/Template/Template.php index e0568c98e9..c8744c87bb 100644 --- a/src/Appwrite/Template/Template.php +++ b/src/Appwrite/Template/Template.php @@ -173,6 +173,6 @@ class Template extends View */ public static function fromCamelCaseToDash($input): string { - return \str_replace([' ', '_'], '-', \strtolower(\preg_replace('/([a-zA-Z])(?=[A-Z])/', '$1-', $input))); + return \str_replace([' ', '_'], '', \strtolower(\preg_replace('/(? $key, 'type' => $attribute['type'], 'array' => $attribute['array'], ]); + + $allAttributes[] = $attributeDocument; + + if (isset($allowedAttributesLookup[$key])) { + $attributes[] = $attributeDocument; + } } - $attributes[] = new Document([ - 'key' => '$id', - 'type' => Database::VAR_STRING, - 'array' => false, - ]); - $attributes[] = new Document([ - 'key' => '$createdAt', - 'type' => Database::VAR_DATETIME, - 'array' => false, - ]); - $attributes[] = new Document([ - 'key' => '$updatedAt', - 'type' => Database::VAR_DATETIME, - 'array' => false, - ]); - $attributes[] = new Document([ - 'key' => '$sequence', - 'type' => Database::VAR_INTEGER, - 'array' => false, - ]); + $internalAttributes = [ + new Document([ + 'key' => '$id', + 'type' => Database::VAR_STRING, + 'array' => false, + ]), + new Document([ + 'key' => '$createdAt', + 'type' => Database::VAR_DATETIME, + 'array' => false, + ]), + new Document([ + 'key' => '$updatedAt', + 'type' => Database::VAR_DATETIME, + 'array' => false, + ]), + new Document([ + 'key' => '$sequence', + 'type' => Database::VAR_INTEGER, + 'array' => false, + ]) + ]; + + foreach ($internalAttributes as $attribute) { + $attributes[] = $attribute; + $allAttributes[] = $attribute; + } @@ -86,6 +97,15 @@ class Base extends Queries new Order($attributes), ]; + if ($this->isSelectQueryAllowed()) { + $validators[] = new Select($allAttributes); + } + parent::__construct($validators); } + + public function isSelectQueryAllowed(): bool + { + return false; + } } diff --git a/src/Appwrite/Utopia/Database/Validator/Queries/Deployments.php b/src/Appwrite/Utopia/Database/Validator/Queries/Deployments.php index 73631ecfb8..6348e69cd9 100644 --- a/src/Appwrite/Utopia/Database/Validator/Queries/Deployments.php +++ b/src/Appwrite/Utopia/Database/Validator/Queries/Deployments.php @@ -22,4 +22,9 @@ class Deployments extends Base { parent::__construct('deployments', self::ALLOWED_ATTRIBUTES); } + + public function isSelectQueryAllowed(): bool + { + return true; + } } diff --git a/src/Appwrite/Utopia/Request/Filters/V20.php b/src/Appwrite/Utopia/Request/Filters/V20.php index bb25f39c8e..c8622f8b7a 100644 --- a/src/Appwrite/Utopia/Request/Filters/V20.php +++ b/src/Appwrite/Utopia/Request/Filters/V20.php @@ -32,55 +32,67 @@ class V20 extends Filter */ protected function manageSelectQueries(array $content): array { - $hasWildcard = false; - if (! isset($content['queries'])) { - $hasWildcard = true; - // only query, make it json encoded! - $content['queries'] = [Query::select(['*'])->toString()]; + if (!isset($content['queries'])) { + $content['queries'] = []; + } + + // Handle case where queries is an array but empty + if (\is_array($content['queries'])) { + $content['queries'] = \array_filter($content['queries'], function ($q) { + if (\is_object($q) && empty((array)$q)) { + return false; + } + if (\is_string($q) && \trim($q) === '') { + return false; + } + if (empty($q)) { + return false; + } + return true; + }); } try { $parsed = Query::parseQueries($content['queries']); } catch (QueryException) { - // don't crash! return $content; } $selections = Query::groupByType($parsed)['selections'] ?? []; - if (! $hasWildcard) { - // check if any select includes a wildcard as we added one above + // Check if we need to add wildcard + relationships + // This happens when: + // 1. No select queries exist, OR + // 2. A wildcard select exists + $needsRelationships = empty($selections); + if (!$needsRelationships) { foreach ($selections as $select) { if (\in_array('*', $select->getValues(), true)) { - $hasWildcard = true; + $needsRelationships = true; break; } } } /** - * Add `keys.*` for all model types! + * Add wildcard and relationship selects for backward compatibility */ - if ($hasWildcard) { + if ($needsRelationships) { $relatedKeys = $this->getRelatedCollectionKeys(); + $selects = \array_values(\array_unique(\array_merge(['*'], $relatedKeys))); - if (! empty($relatedKeys)) { - $selects = \array_values(\array_unique(\array_merge(['*'], $relatedKeys))); + // Remove any existing select queries + $parsed = \array_filter( + $parsed, + fn ($query) => $query->getMethod() !== Query::TYPE_SELECT + ); - // remove previous select queries - $parsed = \array_filter( - $parsed, - fn ($query) => $query->getMethod() !== Query::TYPE_SELECT - ); - - // add wildcard + relationship(s) selects - $parsed[] = Query::select($selects); - } + // Add wildcard + relationship(s) selects + $parsed[] = Query::select($selects); } $resolvedQueries = []; foreach ($parsed as $query) { - // make em json encoded! $resolvedQueries[] = $query->toString(); } @@ -91,37 +103,89 @@ class V20 extends Filter /** * Returns all relationship attribute keys in `key.*` format for use with `Query::select`. + * Recursively includes nested relationships up to 3 levels deep. + * Prevents infinite loops by tracking all visited collections in the current path. */ - private function getRelatedCollectionKeys(): array - { - $dbForProject = $this->getDbForProject(); + private function getRelatedCollectionKeys( + ?string $databaseId = null, + ?string $collectionId = null, + ?string $prefix = null, + int $depth = 1, + array $visited = [] + ): array { + $databaseId ??= $this->getParamValue('databaseId'); + $collectionId ??= $this->getParamValue('collectionId'); + if ( + empty($databaseId) || + empty($collectionId) || + $depth > Database::RELATION_MAX_DEPTH + ) { + return []; + } + + // Check if we've already visited this collection in the current path to prevent cycles + if (in_array($collectionId, $visited)) { + return []; + } + + $visited[] = $collectionId; + + $dbForProject = $this->getDbForProject(); if ($dbForProject === null) { return []; } - $databaseId = $this->getParamValue('databaseId'); - $collectionId = $this->getParamValue('collectionId'); - - if (empty($databaseId) || empty($collectionId)) { + $database = Authorization::skip(fn () => $dbForProject->getDocument('databases', $databaseId)); + if ($database->isEmpty()) { return []; } - $database = Authorization::skip(fn () => $dbForProject->getDocument('databases', $databaseId)); - - $collection = $dbForProject->getDocument( + $collection = Authorization::skip(fn () => $dbForProject->getDocument( 'database_' . $database->getSequence(), $collectionId - ); + )); + if ($collection->isEmpty()) { + return []; + } $attributes = $collection->getAttribute('attributes', []); + $relationshipKeys = []; - return \array_values(\array_map( - fn ($attr) => $attr['key'] . '.*', - \array_filter( - $attributes, - fn ($attr) => ($attr['type'] ?? null) === Database::VAR_RELATIONSHIP - ) - )); + foreach ($attributes as $attr) { + if ( + ($attr['type'] ?? null) !== Database::VAR_RELATIONSHIP || + $attr['status'] !== 'available' + ) { + continue; + } + + $key = $attr['key']; + $fullKey = $prefix ? $prefix . '.' . $key : $key; + $relatedCollectionId = $attr['relatedCollection'] ?? null; + + // Skip this relationship entirely if it points to an already visited collection + if ($relatedCollectionId && in_array($relatedCollectionId, $visited)) { + continue; + } + + // Add the wildcard select for this relationship + $relationshipKeys[] = $fullKey . '.*'; + + // Continue recursively if we have a related collection + if ($relatedCollectionId) { + $nestedKeys = $this->getRelatedCollectionKeys( + $databaseId, + $relatedCollectionId, + $fullKey, + $depth + 1, + $visited + ); + + $relationshipKeys = \array_merge($relationshipKeys, $nestedKeys); + } + } + + return \array_values(\array_unique($relationshipKeys)); } } diff --git a/src/Appwrite/Utopia/Response.php b/src/Appwrite/Utopia/Response.php index cec275869a..67fc83b9fd 100644 --- a/src/Appwrite/Utopia/Response.php +++ b/src/Appwrite/Utopia/Response.php @@ -23,7 +23,10 @@ use Appwrite\Utopia\Response\Model\AttributeEnum; use Appwrite\Utopia\Response\Model\AttributeFloat; use Appwrite\Utopia\Response\Model\AttributeInteger; use Appwrite\Utopia\Response\Model\AttributeIP; +use Appwrite\Utopia\Response\Model\AttributeLine; use Appwrite\Utopia\Response\Model\AttributeList; +use Appwrite\Utopia\Response\Model\AttributePoint; +use Appwrite\Utopia\Response\Model\AttributePolygon; use Appwrite\Utopia\Response\Model\AttributeRelationship; use Appwrite\Utopia\Response\Model\AttributeString; use Appwrite\Utopia\Response\Model\AttributeURL; @@ -41,7 +44,10 @@ use Appwrite\Utopia\Response\Model\ColumnFloat; use Appwrite\Utopia\Response\Model\ColumnIndex; use Appwrite\Utopia\Response\Model\ColumnInteger; use Appwrite\Utopia\Response\Model\ColumnIP; +use Appwrite\Utopia\Response\Model\ColumnLine; use Appwrite\Utopia\Response\Model\ColumnList; +use Appwrite\Utopia\Response\Model\ColumnPoint; +use Appwrite\Utopia\Response\Model\ColumnPolygon; use Appwrite\Utopia\Response\Model\ColumnRelationship; use Appwrite\Utopia\Response\Model\ColumnString; use Appwrite\Utopia\Response\Model\ColumnURL; @@ -203,6 +209,9 @@ class Response extends SwooleResponse public const MODEL_ATTRIBUTE_URL = 'attributeUrl'; public const MODEL_ATTRIBUTE_DATETIME = 'attributeDatetime'; public const MODEL_ATTRIBUTE_RELATIONSHIP = 'attributeRelationship'; + public const MODEL_ATTRIBUTE_POINT = 'attributePoint'; + public const MODEL_ATTRIBUTE_LINE = 'attributeLine'; + public const MODEL_ATTRIBUTE_POLYGON = 'attributePolygon'; // Database Columns public const MODEL_COLUMN = 'column'; @@ -217,6 +226,9 @@ class Response extends SwooleResponse public const MODEL_COLUMN_URL = 'columnUrl'; public const MODEL_COLUMN_DATETIME = 'columnDatetime'; public const MODEL_COLUMN_RELATIONSHIP = 'columnRelationship'; + public const MODEL_COLUMN_POINT = 'columnPoint'; + public const MODEL_COLUMN_LINE = 'columnLine'; + public const MODEL_COLUMN_POLYGON = 'columnPolygon'; // Users public const MODEL_ACCOUNT = 'account'; @@ -399,13 +411,17 @@ class Response extends SwooleResponse */ protected static bool $showSensitive = false; + protected SwooleHTTPResponse $swoole; + /** * Response constructor. * - * @param float $time + * @param SwooleHTTPResponse $response Native response to be passed to parent constructor */ public function __construct(SwooleHTTPResponse $response) { + $this->swoole = $response; + $this // General ->setModel(new None()) @@ -482,6 +498,9 @@ class Response extends SwooleResponse ->setModel(new AttributeURL()) ->setModel(new AttributeDatetime()) ->setModel(new AttributeRelationship()) + ->setModel(new AttributePoint()) + ->setModel(new AttributeLine()) + ->setModel(new AttributePolygon()) // Table API Models ->setModel(new Table()) ->setModel(new Column()) @@ -496,6 +515,9 @@ class Response extends SwooleResponse ->setModel(new ColumnURL()) ->setModel(new ColumnDatetime()) ->setModel(new ColumnRelationship()) + ->setModel(new ColumnPoint()) + ->setModel(new ColumnLine()) + ->setModel(new ColumnPolygon()) ->setModel(new Index()) ->setModel(new ColumnIndex()) ->setModel(new Row()) @@ -933,18 +955,6 @@ class Response extends SwooleResponse return !empty($this->filters); } - /** - * Set Header - * - * @param string $key - * @param string $value - * @return void - */ - public function setHeader(string $key, string $value): void - { - $this->sendHeader($key, $value); - } - /** * Static wrapper to show sensitive data in response * diff --git a/src/Appwrite/Utopia/Response/Filters/V20.php b/src/Appwrite/Utopia/Response/Filters/V20.php index 96e847fa1f..8bccd3ea1d 100644 --- a/src/Appwrite/Utopia/Response/Filters/V20.php +++ b/src/Appwrite/Utopia/Response/Filters/V20.php @@ -12,18 +12,15 @@ class V20 extends Filter { $parsedResponse = $content; - $parsedResponse = match($model) { + return match($model) { Response::MODEL_DOCUMENT => $this->parseDocument($content), Response::MODEL_DOCUMENT_LIST => $this->handleList($content, 'documents', fn ($item) => $this->parseDocument($item)), default => $parsedResponse, }; - - return $parsedResponse; } protected function parseDocument(array $content): array { - unset($content['$sequence']); return $content; } } diff --git a/src/Appwrite/Utopia/Response/Model.php b/src/Appwrite/Utopia/Response/Model.php index 962da4834c..04468521b6 100644 --- a/src/Appwrite/Utopia/Response/Model.php +++ b/src/Appwrite/Utopia/Response/Model.php @@ -15,6 +15,7 @@ abstract class Model public const TYPE_DATETIME_EXAMPLE = '2020-10-15T06:38:00.000+00:00'; public const TYPE_RELATIONSHIP = 'relationship'; public const TYPE_PAYLOAD = 'payload'; + public const TYPE_ARRAY = 'array'; /** * @var bool @@ -44,6 +45,7 @@ abstract class Model /** * Filter Document Structure + * @param Document $document Document to apply filter on * * @return Document */ @@ -105,7 +107,7 @@ abstract class Model * @param string $key * @return Model */ - protected function removeRule(string $key): self + public function removeRule(string $key): self { if (isset($this->rules[$key])) { unset($this->rules[$key]); diff --git a/src/Appwrite/Utopia/Response/Model/AttributeLine.php b/src/Appwrite/Utopia/Response/Model/AttributeLine.php new file mode 100644 index 0000000000..4f8ed60e89 --- /dev/null +++ b/src/Appwrite/Utopia/Response/Model/AttributeLine.php @@ -0,0 +1,47 @@ +addRule('default', [ + 'type' => self::TYPE_ARRAY, + 'description' => 'Default value for attribute when not provided. Cannot be set when attribute is required.', + 'default' => null, + 'required' => false, + 'example' => [[0, 0], [1, 1]] + ]) + ; + } + + public array $conditions = [ + 'type' => 'linestring', + ]; + + /** + * Get Name + * + * @return string + */ + public function getName(): string + { + return 'AttributeLine'; + } + + /** + * Get Type + * + * @return string + */ + public function getType(): string + { + return Response::MODEL_ATTRIBUTE_LINE; + } +} diff --git a/src/Appwrite/Utopia/Response/Model/AttributeList.php b/src/Appwrite/Utopia/Response/Model/AttributeList.php index 8b04475a14..6b9a7365bd 100644 --- a/src/Appwrite/Utopia/Response/Model/AttributeList.php +++ b/src/Appwrite/Utopia/Response/Model/AttributeList.php @@ -27,6 +27,9 @@ class AttributeList extends Model Response::MODEL_ATTRIBUTE_IP, Response::MODEL_ATTRIBUTE_DATETIME, Response::MODEL_ATTRIBUTE_RELATIONSHIP, + Response::MODEL_ATTRIBUTE_POINT, + Response::MODEL_ATTRIBUTE_LINE, + Response::MODEL_ATTRIBUTE_POLYGON, Response::MODEL_ATTRIBUTE_STRING // needs to be last, since its condition would dominate any other string attribute ], 'description' => 'List of attributes.', diff --git a/src/Appwrite/Utopia/Response/Model/AttributePoint.php b/src/Appwrite/Utopia/Response/Model/AttributePoint.php new file mode 100644 index 0000000000..19f7056b41 --- /dev/null +++ b/src/Appwrite/Utopia/Response/Model/AttributePoint.php @@ -0,0 +1,47 @@ +addRule('default', [ + 'type' => self::TYPE_ARRAY, + 'description' => 'Default value for attribute when not provided. Cannot be set when attribute is required.', + 'default' => null, + 'required' => false, + 'example' => [0, 0] + ]) + ; + } + + public array $conditions = [ + 'type' => 'point', + ]; + + /** + * Get Name + * + * @return string + */ + public function getName(): string + { + return 'AttributePoint'; + } + + /** + * Get Type + * + * @return string + */ + public function getType(): string + { + return Response::MODEL_ATTRIBUTE_POINT; + } +} diff --git a/src/Appwrite/Utopia/Response/Model/AttributePolygon.php b/src/Appwrite/Utopia/Response/Model/AttributePolygon.php new file mode 100644 index 0000000000..13caa19ccf --- /dev/null +++ b/src/Appwrite/Utopia/Response/Model/AttributePolygon.php @@ -0,0 +1,47 @@ +addRule('default', [ + 'type' => self::TYPE_ARRAY, + 'description' => 'Default value for attribute when not provided. Cannot be set when attribute is required.', + 'default' => null, + 'required' => false, + 'example' => [[[0, 0], [0, 10]], [[10, 10], [0, 0]]] + ]) + ; + } + + public array $conditions = [ + 'type' => 'polygon', + ]; + + /** + * Get Name + * + * @return string + */ + public function getName(): string + { + return 'AttributePolygon'; + } + + /** + * Get Type + * + * @return string + */ + public function getType(): string + { + return Response::MODEL_ATTRIBUTE_POLYGON; + } +} diff --git a/src/Appwrite/Utopia/Response/Model/Collection.php b/src/Appwrite/Utopia/Response/Model/Collection.php index 2c2bf0cca8..9350b6298c 100644 --- a/src/Appwrite/Utopia/Response/Model/Collection.php +++ b/src/Appwrite/Utopia/Response/Model/Collection.php @@ -70,6 +70,9 @@ class Collection extends Model Response::MODEL_ATTRIBUTE_IP, Response::MODEL_ATTRIBUTE_DATETIME, Response::MODEL_ATTRIBUTE_RELATIONSHIP, + Response::MODEL_ATTRIBUTE_POINT, + Response::MODEL_ATTRIBUTE_LINE, + Response::MODEL_ATTRIBUTE_POLYGON, Response::MODEL_ATTRIBUTE_STRING, // needs to be last, since its condition would dominate any other string attribute ], 'description' => 'Collection attributes.', diff --git a/src/Appwrite/Utopia/Response/Model/ColumnLine.php b/src/Appwrite/Utopia/Response/Model/ColumnLine.php new file mode 100644 index 0000000000..e46741d0f3 --- /dev/null +++ b/src/Appwrite/Utopia/Response/Model/ColumnLine.php @@ -0,0 +1,47 @@ +addRule('default', [ + 'type' => self::TYPE_ARRAY, + 'description' => 'Default value for column when not provided. Cannot be set when column is required.', + 'default' => null, + 'required' => false, + 'example' => [[0, 0], [1, 1]] + ]) + ; + } + + public array $conditions = [ + 'type' => 'linestring', + ]; + + /** + * Get Name + * + * @return string + */ + public function getName(): string + { + return 'ColumnLine'; + } + + /** + * Get Type + * + * @return string + */ + public function getType(): string + { + return Response::MODEL_COLUMN_LINE; + } +} diff --git a/src/Appwrite/Utopia/Response/Model/ColumnList.php b/src/Appwrite/Utopia/Response/Model/ColumnList.php index 0c9f5a49b5..4e76645d1b 100644 --- a/src/Appwrite/Utopia/Response/Model/ColumnList.php +++ b/src/Appwrite/Utopia/Response/Model/ColumnList.php @@ -27,6 +27,9 @@ class ColumnList extends Model Response::MODEL_COLUMN_IP, Response::MODEL_COLUMN_DATETIME, Response::MODEL_COLUMN_RELATIONSHIP, + Response::MODEL_COLUMN_POINT, + Response::MODEL_COLUMN_LINE, + Response::MODEL_COLUMN_POLYGON, Response::MODEL_COLUMN_STRING // needs to be last, since its condition would dominate any other string attribute ], 'description' => 'List of columns.', diff --git a/src/Appwrite/Utopia/Response/Model/ColumnPoint.php b/src/Appwrite/Utopia/Response/Model/ColumnPoint.php new file mode 100644 index 0000000000..ccc68b283b --- /dev/null +++ b/src/Appwrite/Utopia/Response/Model/ColumnPoint.php @@ -0,0 +1,47 @@ +addRule('default', [ + 'type' => self::TYPE_ARRAY, + 'description' => 'Default value for column when not provided. Cannot be set when column is required.', + 'default' => null, + 'required' => false, + 'example' => [0, 0] + ]) + ; + } + + public array $conditions = [ + 'type' => 'point', + ]; + + /** + * Get Name + * + * @return string + */ + public function getName(): string + { + return 'ColumnPoint'; + } + + /** + * Get Type + * + * @return string + */ + public function getType(): string + { + return Response::MODEL_COLUMN_POINT; + } +} diff --git a/src/Appwrite/Utopia/Response/Model/ColumnPolygon.php b/src/Appwrite/Utopia/Response/Model/ColumnPolygon.php new file mode 100644 index 0000000000..811b51fdc1 --- /dev/null +++ b/src/Appwrite/Utopia/Response/Model/ColumnPolygon.php @@ -0,0 +1,47 @@ +addRule('default', [ + 'type' => self::TYPE_ARRAY, + 'description' => 'Default value for column when not provided. Cannot be set when column is required.', + 'default' => null, + 'required' => false, + 'example' => [[[0, 0], [0, 10]], [[10, 10], [0, 0]]] + ]) + ; + } + + public array $conditions = [ + 'type' => 'polygon', + ]; + + /** + * Get Name + * + * @return string + */ + public function getName(): string + { + return 'ColumnPolygon'; + } + + /** + * Get Type + * + * @return string + */ + public function getType(): string + { + return Response::MODEL_COLUMN_POLYGON; + } +} diff --git a/src/Appwrite/Utopia/Response/Model/Row.php b/src/Appwrite/Utopia/Response/Model/Row.php index 77df48ce89..14a9ec9cda 100644 --- a/src/Appwrite/Utopia/Response/Model/Row.php +++ b/src/Appwrite/Utopia/Response/Model/Row.php @@ -41,18 +41,21 @@ class Row extends Any 'description' => 'Row automatically incrementing ID.', 'default' => 0, 'example' => 1, + 'readOnly' => true, ]) ->addRule('$tableId', [ 'type' => self::TYPE_STRING, 'description' => 'Table ID.', 'default' => '', 'example' => '5e5ea5c15117e', + 'readOnly' => true, ]) ->addRule('$databaseId', [ 'type' => self::TYPE_STRING, 'description' => 'Database ID.', 'default' => '', 'example' => '5e5ea5c15117e', + 'readOnly' => true, ]) ->addRule('$createdAt', [ 'type' => self::TYPE_DATETIME, @@ -79,6 +82,7 @@ class Row extends Any { $document->removeAttribute('$collection'); $document->removeAttribute('$tenant'); + $document->setAttribute('$sequence', (int)$document->getAttribute('$sequence', 0)); foreach ($document->getAttributes() as $column) { if (\is_array($column)) { diff --git a/src/Appwrite/Utopia/Response/Model/Table.php b/src/Appwrite/Utopia/Response/Model/Table.php index 722edcd4cf..5018ab38db 100644 --- a/src/Appwrite/Utopia/Response/Model/Table.php +++ b/src/Appwrite/Utopia/Response/Model/Table.php @@ -71,6 +71,9 @@ class Table extends Model Response::MODEL_COLUMN_IP, Response::MODEL_COLUMN_DATETIME, Response::MODEL_COLUMN_RELATIONSHIP, + Response::MODEL_COLUMN_POINT, + Response::MODEL_COLUMN_LINE, + Response::MODEL_COLUMN_POLYGON, Response::MODEL_COLUMN_STRING, // needs to be last, since its condition would dominate any other string attribute ], 'description' => 'Table columns.', diff --git a/src/Executor/Executor.php b/src/Executor/Executor.php index df4c5fd8f5..30c6132b76 100644 --- a/src/Executor/Executor.php +++ b/src/Executor/Executor.php @@ -9,6 +9,12 @@ use Utopia\System\System; class Executor { + // 0.8.6 is last version with object-based headers + public const RESPONSE_FORMAT_OBJECT_HEADERS = '0.10.0'; + + // 0.9.0 is first version with array-based headers + public const RESPONSE_FORMAT_ARRAY_HEADERS = '0.11.0'; + public const METHOD_GET = 'GET'; public const METHOD_POST = 'POST'; public const METHOD_PUT = 'PUT'; @@ -170,6 +176,7 @@ class Executor * @param string $entrypoint * @param string $runtimeEntrypoint * @param bool $logging + * @param string $responseFormat * * @return array */ @@ -190,7 +197,8 @@ class Executor int $memory, bool $logging, string $runtimeEntrypoint = '', - ?int $requestTimeout = null + ?int $requestTimeout = null, + string $responseFormat = self::RESPONSE_FORMAT_OBJECT_HEADERS ) { if (empty($headers['host'])) { $headers['host'] = System::getEnv('_APP_DOMAIN', ''); @@ -232,7 +240,7 @@ class Executor $requestTimeout = $timeout + 15; } - $response = $this->call($this->endpoint, self::METHOD_POST, $route, [ 'x-opr-runtime-id' => $runtimeId, 'content-type' => 'multipart/form-data', 'accept' => 'multipart/form-data' ], $params, true, $requestTimeout); + $response = $this->call($this->endpoint, self::METHOD_POST, $route, [ 'x-opr-runtime-id' => $runtimeId, 'content-type' => 'multipart/form-data', 'accept' => 'multipart/form-data', 'x-executor-response-format' => $responseFormat ], $params, true, $requestTimeout); $status = $response['headers']['status-code']; if ($status >= 400) { diff --git a/tests/e2e/Client.php b/tests/e2e/Client.php index e411b68454..6b81713654 100644 --- a/tests/e2e/Client.php +++ b/tests/e2e/Client.php @@ -108,6 +108,20 @@ class Client return $this; } + /** + * Set Response Format + * + * @param string $value + * + * @return self $this + */ + public function setResponseFormat(string $value): self + { + $this->addHeader('X-Appwrite-Response-Format', $value); + + return $this; + } + /** * @param bool $status true * @return self $this diff --git a/tests/e2e/General/HTTPTest.php b/tests/e2e/General/HTTPTest.php index bce6e7206f..4657e6f2ad 100644 --- a/tests/e2e/General/HTTPTest.php +++ b/tests/e2e/General/HTTPTest.php @@ -153,7 +153,6 @@ class HTTPTest extends Scope $this->assertIsString($body['client-flutter']); $this->assertIsString($body['console-web']); $this->assertIsString($body['server-nodejs']); - $this->assertIsString($body['server-deno']); $this->assertIsString($body['server-php']); $this->assertIsString($body['server-python']); $this->assertIsString($body['server-ruby']); diff --git a/tests/e2e/General/UsageTest.php b/tests/e2e/General/UsageTest.php index 962f737cff..290865b809 100644 --- a/tests/e2e/General/UsageTest.php +++ b/tests/e2e/General/UsageTest.php @@ -1291,7 +1291,7 @@ class UsageTest extends Scope 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders()), [ - 'domain' => 'test-' . ID::unique() . System::getEnv('_APP_DOMAIN_FUNCTIONS'), + 'domain' => 'test-' . ID::unique() . '.' . System::getEnv('_APP_DOMAIN_FUNCTIONS'), 'functionId' => $functionId, ], ); diff --git a/tests/e2e/Scopes/Scope.php b/tests/e2e/Scopes/Scope.php index ef3a5411a3..57f55f16cc 100644 --- a/tests/e2e/Scopes/Scope.php +++ b/tests/e2e/Scopes/Scope.php @@ -28,6 +28,17 @@ abstract class Scope extends TestCase { $this->client = new Client(); $this->client->setEndpoint($this->endpoint); + + $format = System::getEnv('_APP_E2E_RESPONSE_FORMAT'); + if (!empty($format)) { + if ( + !\preg_match('/^\d+\.\d+\.\d+$/', $format) || + !\version_compare($format, APP_VERSION_STABLE, '<=') + ) { + throw new \Exception('E2E response format must be ' . APP_VERSION_STABLE . ' or lower.'); + } + $this->client->setResponseFormat($format); + } } protected function tearDown(): void diff --git a/tests/e2e/Services/Databases/Legacy/DatabasesBase.php b/tests/e2e/Services/Databases/Legacy/DatabasesBase.php index 28e30a6b12..1fc05915f1 100644 --- a/tests/e2e/Services/Databases/Legacy/DatabasesBase.php +++ b/tests/e2e/Services/Databases/Legacy/DatabasesBase.php @@ -1726,6 +1726,7 @@ trait DatabasesBase return $data; } + /** * @depends testCreateIndexes */ @@ -2240,6 +2241,55 @@ trait DatabasesBase $this->assertArrayHasKey('$permissions', $library3['body']); $this->assertCount(3, $library3['body']['$permissions']); $this->assertNotEmpty($library3['body']['$permissions']); + + // Readonly attributes are ignored + $personNoPerm = $this->client->call(Client::METHOD_PUT, '/databases/' . $databaseId . '/collections/' . $person['body']['$id'] . '/documents/' . $newPersonId, array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), [ + 'data' => [ + '$id' => 'some-other-id', + '$collectionId' => 'some-other-collection', + '$databaseId' => 'some-other-database', + '$createdAt' => '2024-01-01T00:00:00Z', + '$updatedAt' => '2024-01-01T00:00:00Z', + 'library' => [ + '$id' => 'library3', + 'libraryName' => 'Library 3', + '$createdAt' => '2024-01-01T00:00:00Z', + '$updatedAt' => '2024-01-01T00:00:00Z', + ], + ], + ]); + + $update = $personNoPerm; + $update['body']['$id'] = 'random'; + $update['body']['$sequence'] = 123; + $update['body']['$databaseId'] = 'random'; + $update['body']['$collectionId'] = 'random'; + $update['body']['$createdAt'] = '2024-01-01T00:00:00.000+00:00'; + $update['body']['$updatedAt'] = '2024-01-01T00:00:00.000+00:00'; + + $upserted = $this->client->call(Client::METHOD_PUT, '/databases/' . $databaseId . '/collections/' . $person['body']['$id'] . '/documents/' . $newPersonId, array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), [ + 'data' => $update['body'] + ]); + + $this->assertEquals(200, $upserted['headers']['status-code']); + $this->assertEquals($personNoPerm['body']['$id'], $upserted['body']['$id']); + $this->assertEquals($personNoPerm['body']['$collectionId'], $upserted['body']['$collectionId']); + $this->assertEquals($personNoPerm['body']['$databaseId'], $upserted['body']['$databaseId']); + $this->assertEquals($personNoPerm['body']['$sequence'], $upserted['body']['$sequence']); + + if ($this->getSide() === 'client') { + $this->assertEquals($personNoPerm['body']['$createdAt'], $upserted['body']['$createdAt']); + $this->assertNotEquals('2024-01-01T00:00:00.000+00:00', $upserted['body']['$updatedAt']); + } else { + $this->assertEquals('2024-01-01T00:00:00.000+00:00', $upserted['body']['$createdAt']); + $this->assertEquals('2024-01-01T00:00:00.000+00:00', $upserted['body']['$updatedAt']); + } } } @@ -3029,6 +3079,37 @@ trait DatabasesBase $this->assertEquals(200, $response['headers']['status-code']); + // Test readonly attributes are ignored + $response = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/collections/' . $data['moviesId'] . '/documents/' . $id, array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-timestamp' => DateTime::formatTz(DateTime::now()), + ], $this->getHeaders()), [ + 'data' => [ + '$id' => 'newId', + '$sequence' => 9999, + '$collectionId' => 'newCollectionId', + '$databaseId' => 'newDatabaseId', + '$createdAt' => '2024-01-01T00:00:00.000+00:00', + '$updatedAt' => '2024-01-01T00:00:00.000+00:00', + 'title' => 'Thor: Ragnarok', + ], + ]); + + $this->assertEquals(200, $response['headers']['status-code']); + $this->assertEquals($id, $response['body']['$id']); + $this->assertEquals($data['moviesId'], $response['body']['$collectionId']); + $this->assertEquals($databaseId, $response['body']['$databaseId']); + $this->assertNotEquals(9999, $response['body']['$sequence']); + + if ($this->getSide() === 'client') { + $this->assertNotEquals('2024-01-01T00:00:00.000+00:00', $response['body']['$createdAt']); + $this->assertNotEquals('2024-01-01T00:00:00.000+00:00', $response['body']['$updatedAt']); + } else { + $this->assertEquals('2024-01-01T00:00:00.000+00:00', $response['body']['$createdAt']); + $this->assertEquals('2024-01-01T00:00:00.000+00:00', $response['body']['$updatedAt']); + } + return []; } @@ -4289,7 +4370,9 @@ trait DatabasesBase ] ]); if ($this->getSide() === 'client') { - $this->assertEquals($document['headers']['status-code'], 400); + $this->assertEquals($document['body']['title'], 'Again Updated Date Test'); + $this->assertNotEquals($document['body']['$createdAt'], DateTime::formatTz('2022-08-01 13:09:23.040')); + $this->assertNotEquals($document['body']['$updatedAt'], DateTime::formatTz('2022-08-01 13:09:23.050')); } else { $this->assertEquals($document['body']['title'], 'Again Updated Date Test'); $this->assertEquals($document['body']['$createdAt'], DateTime::formatTz('2022-08-01 13:09:23.040')); @@ -5823,4 +5906,1924 @@ trait DatabasesBase ]); $this->assertEquals(400, $inc3['headers']['status-code']); } + + public function testSpatialPointAttributes(): void + { + $database = $this->client->call(Client::METHOD_POST, '/databases', [ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'] + ], [ + 'databaseId' => ID::unique(), + 'name' => 'Spatial Point Test Database' + ]); + + $databaseId = $database['body']['$id']; + + // Create collection with spatial and non-spatial attributes + $collection = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/collections', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'] + ]), [ + 'collectionId' => ID::unique(), + 'name' => 'Spatial Point Collection', + 'documentSecurity' => true, + 'permissions' => [ + Permission::create(Role::user($this->getUser()['$id'])), + Permission::read(Role::user($this->getUser()['$id'])), + Permission::update(Role::user($this->getUser()['$id'])), + Permission::delete(Role::user($this->getUser()['$id'])), + ], + ]); + + $collectionId = $collection['body']['$id']; + + // Create string attribute + $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/collections/' . $collectionId . '/attributes/string', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'] + ]), [ + 'key' => 'name', + 'size' => 256, + 'required' => true, + ]); + + // Create point attribute - handle both 201 (created) and 200 (already exists) + $response = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/collections/' . $collectionId . '/attributes/point', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'] + ]), [ + 'key' => 'location', + 'required' => true, + ]); + + $this->assertEquals(202, $response['headers']['status-code']); + + sleep(2); + + // Test 1: Create document with point attribute + $response = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/collections/' . $collectionId . '/documents', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), [ + 'documentId' => ID::unique(), + 'data' => [ + 'name' => 'Test Location', + 'location' => [40.7128, -74.0060] // New York coordinates + ] + ]); + + $this->assertEquals(201, $response['headers']['status-code']); + $this->assertEquals([40.7128, -74.0060], $response['body']['location']); + $documentId = $response['body']['$id']; + + // Test 2: Read document with point attribute + $response = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/collections/' . $collectionId . '/documents/' . $documentId, array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders())); + + $this->assertEquals(200, $response['headers']['status-code']); + $this->assertEquals([40.7128, -74.0060], $response['body']['location']); + + // Test 3: Update document with new point coordinates + $response = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/collections/' . $collectionId . '/documents/' . $documentId, array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), [ + 'data' => [ + 'location' => [40.7589, -73.9851] // Times Square coordinates + ] + ]); + + $this->assertEquals(200, $response['headers']['status-code']); + $this->assertEquals([40.7589, -73.9851], $response['body']['location']); + + // Test 4: Upsert document with point attribute + $response = $this->client->call(Client::METHOD_PUT, '/databases/' . $databaseId . '/collections/' . $collectionId . '/documents/' . ID::unique(), array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), [ + 'documentId' => ID::unique(), + 'data' => [ + 'name' => 'Upserted Location', + 'location' => [34.0522, -118.2437] // Los Angeles coordinates + ] + ]); + + $this->assertEquals(200, $response['headers']['status-code']); + $this->assertEquals([34.0522, -118.2437], $response['body']['location']); + + // Test 5: Create document without permissions (should fail) + $response = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/collections/' . $collectionId . '/documents', [ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], [ + 'documentId' => ID::unique(), + 'data' => [ + 'name' => 'Unauthorized Location', + 'location' => [0, 0] + ] + ]); + + $this->assertEquals(401, $response['headers']['status-code']); + + // Cleanup + $this->client->call(Client::METHOD_DELETE, '/databases/' . $databaseId . '/collections/' . $collectionId, array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'] + ])); + + $this->client->call(Client::METHOD_DELETE, '/databases/' . $databaseId, array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'] + ])); + } + + public function testSpatialLineAttributes(): void + { + $database = $this->client->call(Client::METHOD_POST, '/databases', [ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'] + ], [ + 'databaseId' => ID::unique(), + 'name' => 'Spatial Line Test Database' + ]); + + $databaseId = $database['body']['$id']; + + // Create collection with spatial and non-spatial attributes + $collection = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/collections', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'] + ]), [ + 'collectionId' => ID::unique(), + 'name' => 'Spatial Line Collection', + 'documentSecurity' => true, + 'permissions' => [ + Permission::create(Role::user($this->getUser()['$id'])), + Permission::read(Role::user($this->getUser()['$id'])), + Permission::update(Role::user($this->getUser()['$id'])), + Permission::delete(Role::user($this->getUser()['$id'])), + ], + ]); + + $collectionId = $collection['body']['$id']; + + // Create integer attribute + $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/collections/' . $collectionId . '/attributes/integer', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'] + ]), [ + 'key' => 'distance', + 'required' => true, + ]); + + // Create line attribute + $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/collections/' . $collectionId . '/attributes/line', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'] + ]), [ + 'key' => 'route', + 'required' => true, + ]); + + sleep(2); + + // Test 1: Create document with line attribute + $response = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/collections/' . $collectionId . '/documents', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), [ + 'documentId' => ID::unique(), + 'data' => [ + 'distance' => 100, + 'route' => [[40.7128, -74.0060], [40.7589, -73.9851]] // Line from Downtown to Times Square + ] + ]); + + $this->assertEquals(201, $response['headers']['status-code']); + $this->assertEquals([[40.7128, -74.0060], [40.7589, -73.9851]], $response['body']['route']); + $documentId = $response['body']['$id']; + + // Test 2: Read document with line attribute + $response = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/collections/' . $collectionId . '/documents/' . $documentId, array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders())); + + $this->assertEquals(200, $response['headers']['status-code']); + $this->assertEquals([[40.7128, -74.0060], [40.7589, -73.9851]], $response['body']['route']); + + // Test 3: Update document with new line coordinates + $response = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/collections/' . $collectionId . '/documents/' . $documentId, array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), [ + 'data' => [ + 'route' => [[40.7128, -74.0060], [40.7589, -73.9851], [40.7505, -73.9934]] // Extended route + ] + ]); + + $this->assertEquals(200, $response['headers']['status-code']); + $this->assertEquals([[40.7128, -74.0060], [40.7589, -73.9851], [40.7505, -73.9934]], $response['body']['route']); + + // Test 4: Upsert document with line attribute + $response = $this->client->call(Client::METHOD_PUT, '/databases/' . $databaseId . '/collections/' . $collectionId . '/documents/' . ID::unique(), array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), [ + 'documentId' => ID::unique(), + 'data' => [ + 'distance' => 200, + 'route' => [[34.0522, -118.2437], [34.0736, -118.2400]] // LA route + ] + ]); + + $this->assertEquals(200, $response['headers']['status-code']); + $this->assertEquals([[34.0522, -118.2437], [34.0736, -118.2400]], $response['body']['route']); + + // Test 5: Delete document + $response = $this->client->call(Client::METHOD_DELETE, '/databases/' . $databaseId . '/collections/' . $collectionId . '/documents/' . $documentId, array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders())); + + $this->assertEquals(204, $response['headers']['status-code']); + + // Test 6: Verify document is deleted + $response = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/collections/' . $collectionId . '/documents/' . $documentId, array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders())); + + $this->assertEquals(404, $response['headers']['status-code']); + + // Cleanup + $this->client->call(Client::METHOD_DELETE, '/databases/' . $databaseId . '/collections/' . $collectionId, array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'] + ])); + + $this->client->call(Client::METHOD_DELETE, '/databases/' . $databaseId, array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'] + ])); + } + + public function testSpatialPolygonAttributes(): void + { + $database = $this->client->call(Client::METHOD_POST, '/databases', [ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'] + ], [ + 'databaseId' => ID::unique(), + 'name' => 'Spatial Polygon Test Database' + ]); + + $databaseId = $database['body']['$id']; + + // Create collection with spatial and non-spatial attributes + $collection = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/collections', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'] + ]), [ + 'collectionId' => ID::unique(), + 'name' => 'Spatial Polygon Collection', + 'documentSecurity' => true, + 'permissions' => [ + Permission::create(Role::user($this->getUser()['$id'])), + Permission::read(Role::user($this->getUser()['$id'])), + Permission::update(Role::user($this->getUser()['$id'])), + Permission::delete(Role::user($this->getUser()['$id'])), + ], + ]); + + $collectionId = $collection['body']['$id']; + + // Create boolean attribute + $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/collections/' . $collectionId . '/attributes/boolean', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'] + ]), [ + 'key' => 'active', + 'required' => true, + ]); + + // Create polygon attribute + $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/collections/' . $collectionId . '/attributes/polygon', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'] + ]), [ + 'key' => 'area', + 'required' => true, + ]); + + sleep(2); + + // Test 1: Create document with polygon attribute + $response = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/collections/' . $collectionId . '/documents', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), [ + 'documentId' => ID::unique(), + 'data' => [ + 'active' => true, + 'area' => [[[40.7128, -74.0060], [40.7589, -74.0060], [40.7589, -73.9851], [40.7128, -73.9851], [40.7128, -74.0060]]] // Manhattan area + ] + ]); + + $this->assertEquals(201, $response['headers']['status-code']); + $this->assertEquals([[[40.7128, -74.0060], [40.7589, -74.0060], [40.7589, -73.9851], [40.7128, -73.9851], [40.7128, -74.0060]]], $response['body']['area']); + $documentId = $response['body']['$id']; + + // Test 2: Read document with polygon attribute + $response = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/collections/' . $collectionId . '/documents/' . $documentId, array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders())); + + $this->assertEquals(200, $response['headers']['status-code']); + $this->assertEquals([[[40.7128, -74.0060], [40.7589, -74.0060], [40.7589, -73.9851], [40.7128, -73.9851], [40.7128, -74.0060]]], $response['body']['area']); + + // Test 3: Update document with new polygon coordinates + $response = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/collections/' . $collectionId . '/documents/' . $documentId, array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), [ + 'data' => [ + 'area' => [[[40.7128, -74.0060], [40.7589, -74.0060], [40.7589, -73.9851], [40.7128, -73.9851], [40.7505, -73.9934], [40.7128, -74.0060]]] // Extended area + ] + ]); + + $this->assertEquals(200, $response['headers']['status-code']); + $this->assertEquals([[[40.7128, -74.0060], [40.7589, -74.0060], [40.7589, -73.9851], [40.7128, -73.9851], [40.7505, -73.9934], [40.7128, -74.0060]]], $response['body']['area']); + + // Test 4: Upsert document with polygon attribute + $response = $this->client->call(Client::METHOD_PUT, '/databases/' . $databaseId . '/collections/' . $collectionId . '/documents/' . ID::unique(), array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), [ + 'documentId' => ID::unique(), + 'data' => [ + 'active' => false, + 'area' => [[[34.0522, -118.2437], [34.0736, -118.2437], [34.0736, -118.2400], [34.0522, -118.2400], [34.0522, -118.2437]]] // LA area + ] + ]); + + $this->assertEquals(200, $response['headers']['status-code']); + $this->assertEquals([[[34.0522, -118.2437], [34.0736, -118.2437], [34.0736, -118.2400], [34.0522, -118.2400], [34.0522, -118.2437]]], $response['body']['area']); + + // Test 5: Create document without required polygon attribute (should fail) + $response = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/collections/' . $collectionId . '/documents', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), [ + 'documentId' => ID::unique(), + 'data' => [ + 'active' => true + // Missing required 'area' attribute + ] + ]); + + $this->assertEquals(400, $response['headers']['status-code']); + + // Cleanup + $this->client->call(Client::METHOD_DELETE, '/databases/' . $databaseId . '/collections/' . $collectionId, array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'] + ])); + + $this->client->call(Client::METHOD_DELETE, '/databases/' . $databaseId, array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'] + ])); + } + + public function testSpatialAttributesMixedCollection(): void + { + $database = $this->client->call(Client::METHOD_POST, '/databases', [ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'] + ], [ + 'databaseId' => ID::unique(), + 'name' => 'Mixed Spatial Test Database' + ]); + + $databaseId = $database['body']['$id']; + + // Create collection with multiple spatial and non-spatial attributes + $collection = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/collections', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'] + ]), [ + 'collectionId' => ID::unique(), + 'name' => 'Mixed Spatial Collection', + 'documentSecurity' => true, + 'permissions' => [ + Permission::create(Role::user($this->getUser()['$id'])), + Permission::read(Role::user($this->getUser()['$id'])), + Permission::update(Role::user($this->getUser()['$id'])), + Permission::delete(Role::user($this->getUser()['$id'])), + ], + ]); + + $collectionId = $collection['body']['$id']; + + // Create multiple attributes + $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/collections/' . $collectionId . '/attributes/string', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'] + ]), [ + 'key' => 'name', + 'size' => 256, + 'required' => true, + ]); + + $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/collections/' . $collectionId . '/attributes/point', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'] + ]), [ + 'key' => 'center', + 'required' => true, + ]); + + $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/collections/' . $collectionId . '/attributes/line', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'] + ]), [ + 'key' => 'boundary', + 'required' => false, + ]); + + $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/collections/' . $collectionId . '/attributes/polygon', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'] + ]), [ + 'key' => 'coverage', + 'required' => true, + ]); + + sleep(3); + + // Test 1: Create document with all spatial attributes + $response = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/collections/' . $collectionId . '/documents', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), [ + 'documentId' => ID::unique(), + 'data' => [ + 'name' => 'Central Park', + 'center' => [40.7829, -73.9654], + 'boundary' => [[40.7649, -73.9814], [40.8009, -73.9494]], + 'coverage' => [[[40.7649, -73.9814], [40.8009, -73.9814], [40.8009, -73.9494], [40.7649, -73.9494], [40.7649, -73.9814]]] + ] + ]); + + $this->assertEquals(201, $response['headers']['status-code']); + $this->assertEquals([40.7829, -73.9654], $response['body']['center']); + $this->assertEquals([[40.7649, -73.9814], [40.8009, -73.9494]], $response['body']['boundary']); + $this->assertEquals([[[40.7649, -73.9814], [40.8009, -73.9814], [40.8009, -73.9494], [40.7649, -73.9494], [40.7649, -73.9814]]], $response['body']['coverage']); + $documentId = $response['body']['$id']; + + // Test 2: Update document with new spatial data + $response = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/collections/' . $collectionId . '/documents/' . $documentId, array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), [ + 'data' => [ + 'center' => [40.7505, -73.9934], + 'boundary' => [[40.7305, -74.0134], [40.7705, -73.9734]], + 'coverage' => [[[40.7305, -74.0134], [40.7705, -74.0134], [40.7705, -73.9734], [40.7305, -73.9734], [40.7305, -74.0134]]] + ] + ]); + + $this->assertEquals(200, $response['headers']['status-code']); + $this->assertEquals([40.7505, -73.9934], $response['body']['center']); + $this->assertEquals([[40.7305, -74.0134], [40.7705, -73.9734]], $response['body']['boundary']); + $this->assertEquals([[[40.7305, -74.0134], [40.7705, -74.0134], [40.7705, -73.9734], [40.7305, -73.9734], [40.7305, -74.0134]]], $response['body']['coverage']); + + // Test 3: Create document with minimal required attributes + $response = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/collections/' . $collectionId . '/documents', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), [ + 'documentId' => ID::unique(), + 'data' => [ + 'name' => 'Minimal Location', + 'center' => [0, 0], + 'coverage' => [[[0, 0], [1, 0], [1, 1], [0, 1], [0, 0]]] + ] + ]); + + $this->assertEquals(201, $response['headers']['status-code']); + $this->assertEquals([0, 0], $response['body']['center']); + + // Test 4: Test permission validation - create without user context + $response = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/collections/' . $collectionId . '/documents', [ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], [ + 'documentId' => ID::unique(), + 'data' => [ + 'name' => 'Unauthorized Location', + 'center' => [0, 0], + 'coverage' => [[[0, 0], [1, 0], [1, 1], [0, 1], [0, 0]]] + ] + ]); + + $this->assertEquals(401, $response['headers']['status-code']); + + // Cleanup + $this->client->call(Client::METHOD_DELETE, '/databases/' . $databaseId . '/collections/' . $collectionId, array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'] + ])); + + $this->client->call(Client::METHOD_DELETE, '/databases/' . $databaseId, array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'] + ])); + } + + public function testUpdateSpatialAttributes(): void + { + $database = $this->client->call(Client::METHOD_POST, '/databases', [ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'] + ], [ + 'databaseId' => ID::unique(), + 'name' => 'Update Spatial Attributes Test Database' + ]); + + $databaseId = $database['body']['$id']; + + // Create collection with spatial attributes + $collection = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/collections', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'] + ]), [ + 'collectionId' => ID::unique(), + 'name' => 'Update Spatial Attributes Collection', + 'documentSecurity' => true, + 'permissions' => [ + Permission::create(Role::user($this->getUser()['$id'])), + Permission::read(Role::user($this->getUser()['$id'])), + Permission::update(Role::user($this->getUser()['$id'])), + Permission::delete(Role::user($this->getUser()['$id'])), + ], + ]); + + $collectionId = $collection['body']['$id']; + + // Create string attribute + $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/collections/' . $collectionId . '/attributes/string', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'] + ]), [ + 'key' => 'name', + 'size' => 256, + 'required' => true, + ]); + + // Create point attribute + $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/collections/' . $collectionId . '/attributes/point', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'] + ]), [ + 'key' => 'location', + 'required' => true, + ]); + + // Create line attribute + $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/collections/' . $collectionId . '/attributes/line', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'] + ]), [ + 'key' => 'route', + 'required' => false, + ]); + + // Create polygon attribute + $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/collections/' . $collectionId . '/attributes/polygon', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'] + ]), [ + 'key' => 'area', + 'required' => true, + ]); + + sleep(2); + + // Test 1: Update point attribute - change required status + $response = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/collections/' . $collectionId . '/attributes/point/location', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'] + ]), [ + 'required' => false, + 'default' => null, + ]); + + $this->assertEquals(200, $response['headers']['status-code']); + $this->assertEquals(false, $response['body']['required']); + + // Test 2: Update line attribute - change required status and add default value + $response = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/collections/' . $collectionId . '/attributes/line/route', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'] + ]), [ + 'required' => false, + 'default' => [[0, 0], [1, 1]], + ]); + + $this->assertEquals(200, $response['headers']['status-code']); + $this->assertEquals(false, $response['body']['required']); + $this->assertEquals([[0, 0], [1, 1]], $response['body']['default']); + + // Test 3: Update polygon attribute - change key name + $response = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/collections/' . $collectionId . '/attributes/polygon/area', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'] + ]), [ + 'newKey' => 'coverage', + 'default' => null, + 'required' => false + ]); + + $this->assertEquals(200, $response['headers']['status-code']); + $this->assertEquals('coverage', $response['body']['key']); + + // Test 4: Update point attribute - add default value + $response = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/collections/' . $collectionId . '/attributes/point/location', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'] + ]), [ + 'default' => [0, 0], + 'required' => false + ]); + + $this->assertEquals(200, $response['headers']['status-code']); + $this->assertEquals([0, 0], $response['body']['default']); + + // Test 5: Verify attribute updates by creating a document + $response = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/collections/' . $collectionId . '/documents', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), [ + 'documentId' => ID::unique(), + 'data' => [ + 'name' => 'Test Location', + 'coverage' => [[[0, 0], [10, 0], [10, 10], [0, 10], [0, 0]]] + ] + ]); + + $this->assertEquals(201, $response['headers']['status-code']); + $this->assertEquals([0, 0], $response['body']['location']); // Should use default value + $this->assertEquals([[0, 0], [1, 1]], $response['body']['route']); // Should use default value + + // Cleanup + $this->client->call(Client::METHOD_DELETE, '/databases/' . $databaseId . '/collections/' . $collectionId, array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'] + ])); + + $this->client->call(Client::METHOD_DELETE, '/databases/' . $databaseId, array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'] + ])); + } + + public function testSpatialQuery(): void + { + $database = $this->client->call(Client::METHOD_POST, '/databases', [ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'] + ], [ + 'databaseId' => ID::unique(), + 'name' => 'Spatial Query Test Database' + ]); + + $this->assertNotEmpty($database['body']['$id']); + $databaseId = $database['body']['$id']; + + // Create collection with spatial attributes + $collection = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/collections', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'] + ]), [ + 'collectionId' => ID::unique(), + 'name' => 'Spatial Query Collection', + 'documentSecurity' => true, + 'permissions' => [ + Permission::create(Role::any()), + Permission::read(Role::any()), + Permission::delete(Role::any()), + Permission::update(Role::any()), + ], + ]); + + $this->assertEquals(201, $collection['headers']['status-code']); + $collectionId = $collection['body']['$id']; + + // Create string attribute + $nameAttribute = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/collections/' . $collectionId . '/attributes/string', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'] + ]), [ + 'key' => 'name', + 'size' => 256, + 'required' => true, + ]); + + $this->assertEquals(202, $nameAttribute['headers']['status-code']); + + // Create point attribute + $pointAttribute = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/collections/' . $collectionId . '/attributes/point', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'] + ]), [ + 'key' => 'pointAttr', + 'required' => true, + ]); + + $this->assertEquals(202, $pointAttribute['headers']['status-code']); + + // Create line attribute + $lineAttribute = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/collections/' . $collectionId . '/attributes/line', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'] + ]), [ + 'key' => 'lineAttr', + 'required' => true, + ]); + + $this->assertEquals(202, $lineAttribute['headers']['status-code']); + + // Create polygon attribute + $polygonAttribute = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/collections/' . $collectionId . '/attributes/polygon', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'] + ]), [ + 'key' => 'polyAttr', + 'required' => true, + ]); + + $this->assertEquals(202, $polygonAttribute['headers']['status-code']); + + // Wait for attributes to be created + sleep(2); + + // Create test documents with spatial data + $documents = [ + [ + '$id' => 'doc1', + 'name' => 'Test Document 1', + 'pointAttr' => [6.0, 6.0], + 'lineAttr' => [[1.0, 1.0], [2.0, 2.0]], + 'polyAttr' => [[[0.0, 0.0], [10.0, 0.0], [10.0, 10.0], [0.0, 10.0], [0.0, 0.0]]] + ], + [ + '$id' => 'doc2', + 'name' => 'Test Document 2', + 'pointAttr' => [7.0, 6.0], + 'lineAttr' => [[10.0, 10.0], [20.0, 20.0]], + 'polyAttr' => [[[20.0, 20.0], [30.0, 20.0], [30.0, 30.0], [20.0, 30.0], [20.0, 20.0]]] + ], + [ + '$id' => 'doc3', + 'name' => 'Test Document 3', + 'pointAttr' => [25.0, 25.0], + 'lineAttr' => [[25.0, 25.0], [35.0, 35.0]], + 'polyAttr' => [[[40.0, 40.0], [50.0, 40.0], [50.0, 50.0], [40.0, 50.0], [40.0, 40.0]]] + ] + ]; + + foreach ($documents as $doc) { + $response = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/collections/' . $collectionId . '/documents', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), [ + 'documentId' => $doc['$id'], + 'data' => [ + 'name' => $doc['name'], + 'pointAttr' => $doc['pointAttr'], + 'lineAttr' => $doc['lineAttr'], + 'polyAttr' => $doc['polyAttr'] + ] + ]); + + $this->assertEquals(201, $response['headers']['status-code']); + } + + // Test 1: Equality on non-spatial attribute (name) + $response = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/collections/' . $collectionId . '/documents', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), [ + 'queries' => [Query::equal('name', ['Test Document 1'])->toString()] + ]); + + $this->assertEquals(200, $response['headers']['status-code']); + $this->assertCount(1, $response['body']['documents']); + $this->assertEquals('doc1', $response['body']['documents'][0]['$id']); + + // Test 3: Polygon attribute queries + $response = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/collections/' . $collectionId . '/documents', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), [ + 'queries' => [Query::equal('polyAttr', [[[[0.0, 0.0], [10.0, 0.0], [10.0, 10.0], [0.0, 10.0], [0.0, 0.0]]]])->toString()] + ]); + + $this->assertEquals(200, $response['headers']['status-code']); + $this->assertCount(1, $response['body']['documents']); + $this->assertEquals('doc1', $response['body']['documents'][0]['$id']); + + // Test 4: Not equal queries + $response = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/collections/' . $collectionId . '/documents', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), [ + 'queries' => [Query::notEqual('pointAttr', [[6.0, 6.0]])->toString()] + ]); + + $this->assertEquals(200, $response['headers']['status-code']); + $this->assertCount(2, $response['body']['documents']); + + // Test 4.1: contains on line (point on line) + $response = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/collections/' . $collectionId . '/documents', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), [ + 'queries' => [Query::contains('lineAttr', [[1.1, 1.1]])->toString()] + ]); + $this->assertEquals(200, $response['headers']['status-code']); + $this->assertCount(1, $response['body']['documents']); + $this->assertEquals('doc1', $response['body']['documents'][0]['$id']); + + // Test 4.2: notContains on polygon (point outside all polygons) + $response = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/collections/' . $collectionId . '/documents', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), [ + 'queries' => [Query::notContains('polyAttr', [[15.0, 15.0]])->toString()] + ]); + $this->assertEquals(200, $response['headers']['status-code']); + $this->assertEquals(3, $response['body']['total']); + + // Test 4.3: intersects on polygon (point inside doc1 polygon) + $response = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/collections/' . $collectionId . '/documents', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), [ + 'queries' => [Query::intersects('polyAttr', [5.0, 5.0])->toString()] + ]); + $this->assertEquals(200, $response['headers']['status-code']); + $this->assertEquals(1, $response['body']['total']); + $this->assertEquals('doc1', $response['body']['documents'][0]['$id']); + + // Test 4.4: notIntersects on polygon (point outside all polygons) + $response = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/collections/' . $collectionId . '/documents', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), [ + 'queries' => [Query::notIntersects('polyAttr', [60.0, 60.0])->toString()] + ]); + $this->assertEquals(200, $response['headers']['status-code']); + $this->assertEquals(3, $response['body']['total']); + + // Test 4.5: overlaps on polygon (polygon overlapping doc1) + $overlapPoly = [[[5.0, 5.0], [12.0, 5.0], [12.0, 12.0], [5.0, 12.0], [5.0, 5.0]]]; + $response = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/collections/' . $collectionId . '/documents', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), [ + 'queries' => [Query::overlaps('polyAttr', $overlapPoly)->toString()] + ]); + $this->assertEquals(200, $response['headers']['status-code']); + $this->assertEquals(1, $response['body']['total']); + $this->assertEquals('doc1', $response['body']['documents'][0]['$id']); + + // Test 4.6: notOverlaps on polygon (polygon that overlaps none) + $noOverlapPoly = [[[60.0, 60.0], [70.0, 60.0], [70.0, 70.0], [60.0, 70.0], [60.0, 60.0]]]; + $response = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/collections/' . $collectionId . '/documents', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), [ + 'queries' => [Query::notOverlaps('polyAttr', $noOverlapPoly)->toString()] + ]); + $this->assertEquals(200, $response['headers']['status-code']); + $this->assertEquals(3, $response['body']['total']); + + // Test 4.7: distance (equals) on point + $response = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/collections/' . $collectionId . '/documents', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), [ + 'queries' => [Query::distanceEqual('pointAttr', [6.0, 6.0], 1.0)->toString()] + ]); + $this->assertEquals(200, $response['headers']['status-code']); + $this->assertEquals(1, $response['body']['total']); + $this->assertEquals('doc2', $response['body']['documents'][0]['$id']); + + // Test 4.8: notDistance (outside radius) on point + $response = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/collections/' . $collectionId . '/documents', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), [ + 'queries' => [Query::distanceNotEqual('pointAttr', [6.0, 6.0], 1.0)->toString()] + ]); + $this->assertEquals(200, $response['headers']['status-code']); + $this->assertEquals(2, $response['body']['total']); + + // Test 4.9: distanceGreaterThan + $response = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/collections/' . $collectionId . '/documents', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), [ + 'queries' => [Query::distanceGreaterThan('pointAttr', [6.0, 6.0], 5.0)->toString()] + ]); + $this->assertEquals(200, $response['headers']['status-code']); + $this->assertEquals(1, $response['body']['total']); + + // Test 4.10: distanceLessThan + $response = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/collections/' . $collectionId . '/documents', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), [ + 'queries' => [Query::distanceLessThan('pointAttr', [6.0, 6.0], 0.5)->toString()] + ]); + $this->assertEquals(200, $response['headers']['status-code']); + $this->assertEquals(1, $response['body']['total']); + + // Test 4.11: crosses on line (query line crosses doc1 line) + $crossLine = [[1.0, 2.0], [2.0, 1.0]]; + $response = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/collections/' . $collectionId . '/documents', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), [ + 'queries' => [Query::crosses('lineAttr', $crossLine)->toString()] + ]); + $this->assertEquals(200, $response['headers']['status-code']); + $this->assertEquals(1, $response['body']['total']); + $this->assertEquals('doc1', $response['body']['documents'][0]['$id']); + + // Test 4.12: notCrosses on line (query line does not cross any stored lines) + $nonCrossLine = [[0.0, 1.0], [0.0, 2.0]]; + $response = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/collections/' . $collectionId . '/documents', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), [ + 'queries' => [Query::notCrosses('lineAttr', $nonCrossLine)->toString()] + ]); + $this->assertEquals(200, $response['headers']['status-code']); + $this->assertEquals(3, $response['body']['total']); + + // Test 4.13: touches on polygon (query polygon touches doc1 polygon at corner) + $touchPoly = [[[10.0, 10.0], [20.0, 10.0], [20.0, 20.0], [10.0, 20.0], [10.0, 10.0]]]; + $response = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/collections/' . $collectionId . '/documents', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), [ + 'queries' => [Query::touches('polyAttr', $touchPoly)->toString()] + ]); + $this->assertEquals(200, $response['headers']['status-code']); + $this->assertEquals(2, $response['body']['total']); + $this->assertEquals('doc1', $response['body']['documents'][0]['$id']); + + // Test 4.14: notTouches on polygon (polygon far away should not touch) + $farPoly = [[[60.0, 60.0], [70.0, 60.0], [70.0, 70.0], [60.0, 70.0], [60.0, 60.0]]]; + $response = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/collections/' . $collectionId . '/documents', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), [ + 'queries' => [Query::notTouches('polyAttr', $farPoly)->toString()] + ]); + $this->assertEquals(200, $response['headers']['status-code']); + $this->assertEquals(3, $response['body']['total']); + + // Test 5: Select specific attributes + $response = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/collections/' . $collectionId . '/documents', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), [ + 'queries' => [Query::select(['name', 'pointAttr'])->toString()] + ]); + + $this->assertEquals(200, $response['headers']['status-code']); + $this->assertCount(3, $response['body']['documents']); + + foreach ($response['body']['documents'] as $doc) { + $this->assertArrayHasKey('name', $doc); + $this->assertArrayHasKey('pointAttr', $doc); + $this->assertArrayNotHasKey('lineAttr', $doc); + $this->assertArrayNotHasKey('polyAttr', $doc); + } + + // Test 6: Order by name + $response = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/collections/' . $collectionId . '/documents', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), [ + 'queries' => [Query::orderAsc('name')->toString()] + ]); + + $this->assertEquals(200, $response['headers']['status-code']); + $this->assertCount(3, $response['body']['documents']); + $this->assertEquals('Test Document 1', $response['body']['documents'][0]['name']); + $this->assertEquals('Test Document 2', $response['body']['documents'][1]['name']); + $this->assertEquals('Test Document 3', $response['body']['documents'][2]['name']); + + // Test 7: Limit results + $response = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/collections/' . $collectionId . '/documents', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), [ + 'queries' => [Query::limit(2)->toString()] + ]); + + $this->assertEquals(200, $response['headers']['status-code']); + $this->assertCount(2, $response['body']['documents']); + + // Test 8: Offset results + $response = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/collections/' . $collectionId . '/documents', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), [ + 'queries' => [Query::offset(1)->toString(), Query::limit(2)->toString()] + ]); + + $this->assertEquals(200, $response['headers']['status-code']); + $this->assertCount(2, $response['body']['documents']); + + // Test 9: Complex query with multiple conditions + $response = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/collections/' . $collectionId . '/documents', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), [ + 'queries' => [ + Query::select(['name', 'pointAttr'])->toString(), + Query::orderAsc('name')->toString(), + Query::limit(1)->toString() + ] + ]); + + $this->assertEquals(200, $response['headers']['status-code']); + $this->assertCount(1, $response['body']['documents']); + $this->assertEquals('Test Document 1', $response['body']['documents'][0]['name']); + + // Test 11: Query with no results + $response = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/collections/' . $collectionId . '/documents', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), [ + 'queries' => [Query::equal('name', ['Non-existent Document'])->toString()] + ]); + + $this->assertEquals(200, $response['headers']['status-code']); + $this->assertCount(0, $response['body']['documents']); + + // Cleanup + $this->client->call(Client::METHOD_DELETE, '/databases/' . $databaseId . '/collections/' . $collectionId, array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'] + ])); + + $this->client->call(Client::METHOD_DELETE, '/databases/' . $databaseId, array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'] + ])); + } + + public function testSpatialRelationshipOneToOne(): void + { + $database = $this->client->call(Client::METHOD_POST, '/databases', [ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'] + ], [ + 'databaseId' => ID::unique(), + 'name' => 'Spatial OneToOne Test DB' + ]); + + $databaseId = $database['body']['$id']; + + $place = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/collections', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'] + ]), [ + 'collectionId' => ID::unique(), + 'name' => 'Place', + 'documentSecurity' => true, + 'permissions' => [ + Permission::create(Role::user($this->getUser()['$id'])), + Permission::read(Role::user($this->getUser()['$id'])), + Permission::update(Role::user($this->getUser()['$id'])), + Permission::delete(Role::user($this->getUser()['$id'])), + ], + ]); + $placeId = $place['body']['$id']; + + $location = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/collections', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'] + ]), [ + 'collectionId' => ID::unique(), + 'name' => 'Location', + 'documentSecurity' => true, + 'permissions' => [ + Permission::create(Role::user($this->getUser()['$id'])), + Permission::read(Role::user($this->getUser()['$id'])), + Permission::update(Role::user($this->getUser()['$id'])), + Permission::delete(Role::user($this->getUser()['$id'])), + ], + ]); + $locationId = $location['body']['$id']; + + // attributes + $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/collections/' . $placeId . '/attributes/string', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'] + ]), [ + 'key' => 'name', + 'size' => 255, + 'required' => true, + ]); + + $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/collections/' . $locationId . '/attributes/point', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'] + ]), [ + 'key' => 'coordinates', + 'required' => true, + ]); + + sleep(2); + + // relationship: place.oneToOne -> location + $relation = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/collections/' . $placeId . '/attributes/relationship', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'] + ]), [ + 'relatedCollectionId' => $locationId, + 'type' => Database::RELATION_ONE_TO_ONE, + 'key' => 'location', + 'twoWay' => true, + 'twoWayKey' => 'place', + 'onDelete' => Database::RELATION_MUTATE_CASCADE, + ]); + $this->assertEquals(202, $relation['headers']['status-code']); + + sleep(2); + + // create doc with nested spatial related doc + $doc = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/collections/' . $placeId . '/documents', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), [ + 'documentId' => ID::unique(), + 'data' => [ + 'name' => 'Museum', + 'location' => [ + '$id' => ID::unique(), + 'coordinates' => [40.7794, -73.9632], + ], + ], + 'permissions' => [ + Permission::read(Role::user($this->getUser()['$id'])), + Permission::update(Role::user($this->getUser()['$id'])), + Permission::delete(Role::user($this->getUser()['$id'])), + ] + ]); + $this->assertEquals(201, $doc['headers']['status-code']); + $this->assertEquals([40.7794, -73.9632], $doc['body']['location']['coordinates']); + + // fetch with select to ensure relationship shape + $fetched = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/collections/' . $placeId . '/documents/' . $doc['body']['$id'], array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), [ + 'queries' => [ + Query::select(['name', 'location.coordinates'])->toString() + ] + ]); + $this->assertEquals(200, $fetched['headers']['status-code']); + $this->assertEquals([40.7794, -73.9632], $fetched['body']['location']['coordinates']); + + // cleanup + $this->client->call(Client::METHOD_DELETE, '/databases/' . $databaseId . '/collections/' . $placeId, array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'] + ])); + $this->client->call(Client::METHOD_DELETE, '/databases/' . $databaseId . '/collections/' . $locationId, array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'] + ])); + $this->client->call(Client::METHOD_DELETE, '/databases/' . $databaseId, array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'] + ])); + } + + public function testSpatialRelationshipOneToMany(): void + { + $database = $this->client->call(Client::METHOD_POST, '/databases', [ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'] + ], [ + 'databaseId' => ID::unique(), + 'name' => 'Spatial OneToMany Test DB' + ]); + $databaseId = $database['body']['$id']; + + $person = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/collections', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'] + ]), [ + 'collectionId' => ID::unique(), + 'name' => 'Person', + 'documentSecurity' => true, + 'permissions' => [ + Permission::create(Role::user($this->getUser()['$id'])), + Permission::read(Role::user($this->getUser()['$id'])), + Permission::update(Role::user($this->getUser()['$id'])), + Permission::delete(Role::user($this->getUser()['$id'])), + ], + ]); + $personId = $person['body']['$id']; + + $visit = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/collections', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'] + ]), [ + 'collectionId' => ID::unique(), + 'name' => 'Visit', + 'documentSecurity' => true, + 'permissions' => [ + Permission::create(Role::user($this->getUser()['$id'])), + Permission::read(Role::user($this->getUser()['$id'])), + Permission::update(Role::user($this->getUser()['$id'])), + Permission::delete(Role::user($this->getUser()['$id'])), + ], + ]); + $visitId = $visit['body']['$id']; + + // attributes + $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/collections/' . $personId . '/attributes/string', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'] + ]), [ + 'key' => 'fullName', + 'size' => 255, + 'required' => true, + ]); + $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/collections/' . $visitId . '/attributes/point', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'] + ]), [ + 'key' => 'point', + 'required' => true, + ]); + + sleep(2); + + // relationship person.oneToMany -> visit + $rel = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/collections/' . $personId . '/attributes/relationship', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'] + ]), [ + 'relatedCollectionId' => $visitId, + 'type' => Database::RELATION_ONE_TO_MANY, + 'key' => 'visits', + 'twoWay' => true, + 'twoWayKey' => 'person', + ]); + $this->assertEquals(202, $rel['headers']['status-code']); + + sleep(2); + + $personDoc = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/collections/' . $personId . '/documents', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), [ + 'documentId' => 'person-spatial-1', + 'data' => [ + 'fullName' => 'Alice', + 'visits' => [ + [ '$id' => 'visit-1', 'point' => [40.7589, -73.9851] ], + [ '$id' => 'visit-2', 'point' => [40.7505, -73.9934] ], + ], + ], + 'permissions' => [ + Permission::read(Role::user($this->getUser()['$id'])), + Permission::update(Role::user($this->getUser()['$id'])), + Permission::delete(Role::user($this->getUser()['$id'])), + ] + ]); + $this->assertEquals(201, $personDoc['headers']['status-code']); + $this->assertCount(2, $personDoc['body']['visits']); + $this->assertEquals([40.7589, -73.9851], $personDoc['body']['visits'][0]['point']); + + $visitDoc = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/collections/' . $visitId . '/documents/visit-2', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), [ + 'queries' => [ + Query::select(['point', 'person.$id'])->toString() + ] + ]); + $this->assertEquals(200, $visitDoc['headers']['status-code']); + $this->assertEquals('person-spatial-1', $visitDoc['body']['person']['$id']); + + // cleanup + $this->client->call(Client::METHOD_DELETE, '/databases/' . $databaseId . '/collections/' . $personId, array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'] + ])); + $this->client->call(Client::METHOD_DELETE, '/databases/' . $databaseId . '/collections/' . $visitId, array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'] + ])); + $this->client->call(Client::METHOD_DELETE, '/databases/' . $databaseId, array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'] + ])); + } + + public function testSpatialRelationshipManyToOne(): void + { + $database = $this->client->call(Client::METHOD_POST, '/databases', [ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'] + ], [ + 'databaseId' => ID::unique(), + 'name' => 'Spatial ManyToOne Test DB' + ]); + $databaseId = $database['body']['$id']; + + $cities = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/collections', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'] + ]), [ + 'collectionId' => ID::unique(), + 'name' => 'City', + 'documentSecurity' => true, + 'permissions' => [ + Permission::create(Role::user($this->getUser()['$id'])), + Permission::read(Role::user($this->getUser()['$id'])), + ], + ]); + $citiesId = $cities['body']['$id']; + + $stores = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/collections', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'] + ]), [ + 'collectionId' => ID::unique(), + 'name' => 'Store', + 'documentSecurity' => true, + 'permissions' => [ + Permission::create(Role::user($this->getUser()['$id'])), + Permission::read(Role::user($this->getUser()['$id'])), + ], + ]); + $storesId = $stores['body']['$id']; + + // attributes + $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/collections/' . $citiesId . '/attributes/polygon', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'] + ]), [ + 'key' => 'area', + 'required' => true, + ]); + $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/collections/' . $storesId . '/attributes/string', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'] + ]), [ + 'key' => 'name', + 'size' => 255, + 'required' => true, + ]); + + sleep(2); + + // relationship stores.manyToOne -> cities + $rel = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/collections/' . $storesId . '/attributes/relationship', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'] + ]), [ + 'relatedCollectionId' => $citiesId, + 'type' => Database::RELATION_MANY_TO_ONE, + 'key' => 'city', + 'twoWay' => true, + 'twoWayKey' => 'stores', + ]); + $this->assertEquals(202, $rel['headers']['status-code']); + + sleep(2); + + $store = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/collections/' . $storesId . '/documents', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), [ + 'documentId' => 'store-1', + 'data' => [ + 'name' => 'Main Store', + 'city' => [ + '$id' => ID::unique(), + 'area' => [[[40.7128, -74.0060], [40.7589, -74.0060], [40.7589, -73.9851], [40.7128, -73.9851], [40.7128, -74.0060]]] + ], + ] + ]); + $this->assertEquals(201, $store['headers']['status-code']); + $this->assertEquals('Main Store', $store['body']['name']); + $this->assertEquals([[[40.7128, -74.0060], [40.7589, -74.0060], [40.7589, -73.9851], [40.7128, -73.9851], [40.7128, -74.0060]]], $store['body']['city']['area']); + + $city = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/collections/' . $citiesId . '/documents/' . $store['body']['city']['$id'], array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), [ + 'queries' => [ + Query::select(['stores.$id'])->toString() + ] + ]); + $this->assertEquals(200, $city['headers']['status-code']); + $this->assertEquals('store-1', $city['body']['stores'][0]['$id']); + + // cleanup + $this->client->call(Client::METHOD_DELETE, '/databases/' . $databaseId . '/collections/' . $storesId, array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'] + ])); + $this->client->call(Client::METHOD_DELETE, '/databases/' . $databaseId . '/collections/' . $citiesId, array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'] + ])); + $this->client->call(Client::METHOD_DELETE, '/databases/' . $databaseId, array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'] + ])); + } + + public function testSpatialRelationshipManyToMany(): void + { + $database = $this->client->call(Client::METHOD_POST, '/databases', [ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'] + ], [ + 'databaseId' => ID::unique(), + 'name' => 'Spatial ManyToMany Test DB' + ]); + $databaseId = $database['body']['$id']; + + $drivers = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/collections', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'] + ]), [ + 'collectionId' => ID::unique(), + 'name' => 'Drivers', + 'documentSecurity' => true, + 'permissions' => [ + Permission::create(Role::user($this->getUser()['$id'])), + Permission::read(Role::user($this->getUser()['$id'])), + ], + ]); + $driversId = $drivers['body']['$id']; + + $zones = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/collections', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'] + ]), [ + 'collectionId' => ID::unique(), + 'name' => 'Zones', + 'documentSecurity' => true, + 'permissions' => [ + Permission::create(Role::user($this->getUser()['$id'])), + Permission::read(Role::user($this->getUser()['$id'])), + ], + ]); + $zonesId = $zones['body']['$id']; + + // attributes + $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/collections/' . $driversId . '/attributes/point', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'] + ]), [ + 'key' => 'home', + 'required' => true, + ]); + $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/collections/' . $zonesId . '/attributes/polygon', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'] + ]), [ + 'key' => 'area', + 'required' => true, + ]); + + sleep(2); + + // relationship drivers.manyToMany <-> zones + $rel = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/collections/' . $driversId . '/attributes/relationship', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'] + ]), [ + 'relatedCollectionId' => $zonesId, + 'type' => Database::RELATION_MANY_TO_MANY, + 'key' => 'zones', + 'twoWay' => true, + 'twoWayKey' => 'drivers', + ]); + $this->assertEquals(202, $rel['headers']['status-code']); + + sleep(2); + + // create driver with two zones containing spatial polygons + $driver = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/collections/' . $driversId . '/documents', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), [ + 'documentId' => 'driver-1', + 'data' => [ + 'home' => [40.7128, -74.0060], + 'zones' => [ + [ '$id' => 'zone-1', 'area' => [[[0,0],[10,0],[10,10],[0,10],[0,0]]]], + [ '$id' => 'zone-2', 'area' => [[[20,20],[30,20],[30,30],[20,30],[20,20]]]], + ], + ] + ]); + $this->assertEquals(201, $driver['headers']['status-code']); + $this->assertCount(2, $driver['body']['zones']); + $this->assertEquals([40.7128, -74.0060], $driver['body']['home']); + + $zone = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/collections/' . $zonesId . '/documents/zone-1', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), [ + 'queries' => [ + Query::select(['drivers.$id'])->toString() + ] + ]); + $this->assertEquals(200, $zone['headers']['status-code']); + $this->assertEquals('driver-1', $zone['body']['drivers'][0]['$id']); + + // cleanup + $this->client->call(Client::METHOD_DELETE, '/databases/' . $databaseId . '/collections/' . $driversId, array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'] + ])); + $this->client->call(Client::METHOD_DELETE, '/databases/' . $databaseId . '/collections/' . $zonesId, array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'] + ])); + $this->client->call(Client::METHOD_DELETE, '/databases/' . $databaseId, array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'] + ])); + } + + public function testSpatialIndex(): void + { + $database = $this->client->call(Client::METHOD_POST, '/databases', [ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'] + ], [ + 'databaseId' => ID::unique(), + 'name' => 'Spatial Index Test DB' + ]); + $this->assertEquals(201, $database['headers']['status-code']); + $databaseId = $database['body']['$id']; + + $collection = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/collections', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'] + ]), [ + 'collectionId' => ID::unique(), + 'name' => 'SpatialIdx', + 'documentSecurity' => true, + 'permissions' => [ + Permission::create(Role::any()), + Permission::read(Role::any()), + Permission::update(Role::any()), + Permission::delete(Role::any()), + ], + ]); + $this->assertEquals(201, $collection['headers']['status-code']); + $collectionId = $collection['body']['$id']; + + // Create spatial attributes: one required, one optional + $reqPoint = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/collections/' . $collectionId . '/attributes/point', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'] + ]), [ + 'key' => 'pRequired', + 'required' => true, + ]); + $this->assertEquals(202, $reqPoint['headers']['status-code']); + + $optPoint = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/collections/' . $collectionId . '/attributes/point', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'] + ]), [ + 'key' => 'pOptional', + 'required' => false, + ]); + $this->assertEquals(202, $optPoint['headers']['status-code']); + + // Ensure attributes are available + sleep(2); + + // Create index on required spatial attribute (should succeed) + $okIndex = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/collections/' . $collectionId . '/indexes', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'] + ]), [ + 'key' => 'idx_required_point', + 'type' => Database::INDEX_SPATIAL, + 'attributes' => ['pRequired'], + ]); + $this->assertEquals(202, $okIndex['headers']['status-code']); + + // Create index on optional spatial attribute (should fail in case of mariadb) + $badIndex = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/collections/' . $collectionId . '/indexes', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'] + ]), [ + 'key' => 'idx_optional_point', + 'type' => Database::INDEX_SPATIAL, + 'attributes' => ['pOptional'], + ]); + $this->assertEquals(400, $badIndex['headers']['status-code']); + + // updating the attribute to required to create index + $updated = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/collections/' . $collectionId . '/attributes/point/'.'pOptional', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'] + ]), [ + 'required' => true, + 'default' => null + ]); + $this->assertEquals(200, $updated['headers']['status-code']); + + sleep(2); + $retriedIndex = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/collections/' . $collectionId . '/indexes', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'] + ]), [ + 'key' => 'idx_optional_point', + 'type' => Database::INDEX_SPATIAL, + 'attributes' => ['pOptional'], + ]); + $this->assertEquals(202, $retriedIndex['headers']['status-code']); + + // Cleanup + $this->client->call(Client::METHOD_DELETE, '/databases/' . $databaseId . '/collections/' . $collectionId, array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'] + ])); + } + + public function testSpatialDistanceInMeter(): void + { + $database = $this->client->call(Client::METHOD_POST, '/databases', [ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'] + ], [ + 'databaseId' => ID::unique(), + 'name' => 'Spatial Distance Meters Database' + ]); + + $databaseId = $database['body']['$id']; + + // Create collection with spatial attribute + $collection = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/collections', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'] + ]), [ + 'collectionId' => ID::unique(), + 'name' => 'Spatial Distance Meters Collection', + 'documentSecurity' => true, + 'permissions' => [ + Permission::create(Role::any()), + Permission::read(Role::any()), + Permission::update(Role::any()), + Permission::delete(Role::any()), + ], + ]); + + $collectionId = $collection['body']['$id']; + + // Create point attribute + $response = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/collections/' . $collectionId . '/attributes/point', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'] + ]), [ + 'key' => 'loc', + 'required' => true, + ]); + + $this->assertEquals(202, $response['headers']['status-code']); + sleep(2); + + // Create spatial index + $indexResponse = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/collections/' . $collectionId . '/indexes', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'] + ]), [ + 'key' => 'idx_loc', + 'type' => Database::INDEX_SPATIAL, + 'attributes' => ['loc'], + ]); + + sleep(2); + $this->assertEquals(202, $indexResponse['headers']['status-code']); + + + // Two points roughly ~1000 meters apart by latitude delta (~0.009 deg ≈ 1km) + $p0 = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/collections/' . $collectionId . '/documents', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), [ + 'documentId' => 'p0', + 'data' => [ + 'loc' => [0.0000, 0.0000] + ] + ]); + + $p1 = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/collections/' . $collectionId . '/documents', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), [ + 'documentId' => 'p1', + 'data' => [ + 'loc' => [0.0090, 0.0000] + ] + ]); + + $this->assertEquals(201, $p0['headers']['status-code']); + $this->assertEquals(201, $p1['headers']['status-code']); + + // distanceLessThan with meters=true: within 1500m should include both + $within1_5km = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/collections/' . $collectionId . '/documents', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), [ + 'queries' => [Query::distanceLessThan('loc', [0.0000, 0.0000], 1500, true)->toString()] + ]); + + $this->assertEquals(200, $within1_5km['headers']['status-code']); + $this->assertCount(2, $within1_5km['body']['documents']); + + // Within 500m should include only p0 (exact point) + $within500m = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/collections/' . $collectionId . '/documents', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), [ + 'queries' => [Query::distanceLessThan('loc', [0.0000, 0.0000], 500, true)->toString()] + ]); + + $this->assertEquals(200, $within500m['headers']['status-code']); + $this->assertCount(1, $within500m['body']['documents']); + $this->assertEquals('p0', $within500m['body']['documents'][0]['$id']); + + // distanceGreaterThan 500m should include only p1 + $greater500m = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/collections/' . $collectionId . '/documents', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), [ + 'queries' => [Query::distanceGreaterThan('loc', [0.0000, 0.0000], 500, true)->toString()] + ]); + + $this->assertEquals(200, $greater500m['headers']['status-code']); + $this->assertCount(1, $greater500m['body']['documents']); + $this->assertEquals('p1', $greater500m['body']['documents'][0]['$id']); + + // distanceEqual with 0m should return exact match p0 + $equalZero = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/collections/' . $collectionId . '/documents', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), [ + 'queries' => [Query::distanceEqual('loc', [0.0000, 0.0000], 0, true)->toString()] + ]); + + $this->assertEquals(200, $equalZero['headers']['status-code']); + $this->assertEquals('p0', $equalZero['body']['documents'][0]['$id']); + + // distanceNotEqual with 0m should return p1 + $notEqualZero = $this->client->call(Client::METHOD_GET, '/databases/' . $databaseId . '/collections/' . $collectionId . '/documents', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), [ + 'queries' => [Query::distanceNotEqual('loc', [0.0000, 0.0000], 0, true)->toString()] + ]); + + $this->assertEquals(200, $notEqualZero['headers']['status-code']); + $this->assertEquals('p1', $notEqualZero['body']['documents'][0]['$id']); + + // Cleanup + $this->client->call(Client::METHOD_DELETE, '/databases/' . $databaseId . '/collections/' . $collectionId, array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'] + ])); + + $this->client->call(Client::METHOD_DELETE, '/databases/' . $databaseId, array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'] + ])); + } } diff --git a/tests/e2e/Services/Databases/Legacy/DatabasesCustomClientTest.php b/tests/e2e/Services/Databases/Legacy/DatabasesCustomClientTest.php index 893d6019f2..40d8c4257a 100644 --- a/tests/e2e/Services/Databases/Legacy/DatabasesCustomClientTest.php +++ b/tests/e2e/Services/Databases/Legacy/DatabasesCustomClientTest.php @@ -903,157 +903,4 @@ class DatabasesCustomClientTest extends Scope $this->assertEquals(200, $response['headers']['status-code']); } - public function testModifyCreatedAtUpdatedAtSingleDocument(): void - { - $database = $this->client->call(Client::METHOD_POST, '/databases', [ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - 'x-appwrite-key' => $this->getProject()['apiKey'] - ], [ - 'databaseId' => ID::unique(), - 'name' => 'Test Database' - ]); - - $databaseId = $database['body']['$id']; - - $table = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/collections', array_merge([ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - 'x-appwrite-key' => $this->getProject()['apiKey'] - ]), [ - 'collectionId' => ID::unique(), - 'name' => 'Test Table', - 'documentsecurity' => true, - 'permissions' => [ - Permission::create(Role::user($this->getUser()['$id'])), - Permission::read(Role::user($this->getUser()['$id'])), - Permission::update(Role::user($this->getUser()['$id'])), - Permission::delete(Role::user($this->getUser()['$id'])), - ], - ]); - $collectionId = $table['body']['$id']; - - // Create string column - $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/collections/' . $collectionId . '/attributes/string', array_merge([ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - 'x-appwrite-key' => $this->getProject()['apiKey'] - ]), [ - 'key' => 'title', - 'size' => 256, - 'required' => true, - ]); - - sleep(1); - - // Test 1: Try to create document with $createdAt - should return 400 - $response = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/collections/' . $collectionId . '/documents', array_merge([ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - ], $this->getHeaders()), [ - 'documentId' => ID::unique(), - 'data' => [ - 'title' => 'Test Movie', - '$createdAt' => '2000-01-01T10:00:00.000+00:00' - ] - ]); - - $this->assertEquals(400, $response['headers']['status-code']); - - // Test 2: Try to create document with $updatedAt - should return 400 - $response = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/collections/' . $collectionId . '/documents', array_merge([ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - ], $this->getHeaders()), [ - 'documentId' => ID::unique(), - 'data' => [ - 'title' => 'Test Movie', - '$updatedAt' => '2000-01-01T10:00:00.000+00:00' - ] - ]); - - $this->assertEquals(400, $response['headers']['status-code']); - - // Test 3: Try to create document with both $createdAt and $updatedAt - should return 400 - $response = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/collections/' . $collectionId . '/documents', array_merge([ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - ], $this->getHeaders()), [ - 'documentId' => ID::unique(), - 'data' => [ - 'title' => 'Test Movie', - '$createdAt' => '2000-01-01T10:00:00.000+00:00', - '$updatedAt' => '2000-01-01T10:00:00.000+00:00' - ] - ]); - - $this->assertEquals(400, $response['headers']['status-code']); - - // Test 4: Create a valid document first - $validRow = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/collections/' . $collectionId . '/documents', array_merge([ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - ], $this->getHeaders()), [ - 'documentId' => ID::unique(), - 'data' => [ - 'title' => 'Valid Movie' - ] - ]); - - $this->assertEquals(201, $validRow['headers']['status-code']); - $documentId = $validRow['body']['$id']; - - // Test 5: Try to update document with $createdAt - should return 400 - $response = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/collections/' . $collectionId . '/documents/' . $documentId, array_merge([ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - ], $this->getHeaders()), [ - 'data' => [ - 'title' => 'Updated Movie', - '$createdAt' => '2000-01-01T10:00:00.000+00:00' - ] - ]); - - $this->assertEquals(400, $response['headers']['status-code']); - - // Test 6: Try to update document with $updatedAt - should return 400 - $response = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/collections/' . $collectionId . '/documents/' . $documentId, array_merge([ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - ], $this->getHeaders()), [ - 'data' => [ - 'title' => 'Updated Movie', - '$updatedAt' => '2000-01-01T10:00:00.000+00:00' - ] - ]); - - $this->assertEquals(400, $response['headers']['status-code']); - - // Test 7: Try to update document with both $createdAt and $updatedAt - should return 400 - $response = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/collections/' . $collectionId . '/documents/' . $documentId, array_merge([ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - ], $this->getHeaders()), [ - 'data' => [ - 'title' => 'Updated Movie', - '$createdAt' => '2000-01-01T10:00:00.000+00:00', - '$updatedAt' => '2000-01-01T10:00:00.000+00:00' - ] - ]); - - $this->assertEquals(400, $response['headers']['status-code']); - - // Cleanup - $this->client->call(Client::METHOD_DELETE, '/databases/' . $databaseId . '/collections/' . $collectionId, array_merge([ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - 'x-appwrite-key' => $this->getProject()['apiKey'] - ])); - - $this->client->call(Client::METHOD_DELETE, '/databases/' . $databaseId, array_merge([ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - 'x-appwrite-key' => $this->getProject()['apiKey'] - ])); - } } diff --git a/tests/e2e/Services/Databases/Legacy/DatabasesCustomServerTest.php b/tests/e2e/Services/Databases/Legacy/DatabasesCustomServerTest.php index bddf33dbb6..a4ad6f33df 100644 --- a/tests/e2e/Services/Databases/Legacy/DatabasesCustomServerTest.php +++ b/tests/e2e/Services/Databases/Legacy/DatabasesCustomServerTest.php @@ -6200,4 +6200,561 @@ class DatabasesCustomServerTest extends Scope 'x-appwrite-key' => $this->getProject()['apiKey'] ])); } + + public function testSpatialBulkOperations(): void + { + // Create database + $database = $this->client->call(Client::METHOD_POST, '/databases', [ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'] + ], [ + 'databaseId' => ID::unique(), + 'name' => 'Spatial Bulk Operations Test Database' + ]); + + $this->assertNotEmpty($database['body']['$id']); + $databaseId = $database['body']['$id']; + + // Create collection with spatial attributes + $collection = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/collections', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'] + ]), [ + 'collectionId' => ID::unique(), + 'name' => 'Spatial Bulk Operations Collection', + 'documentSecurity' => true, + 'permissions' => [ + Permission::create(Role::any()), + Permission::read(Role::any()), + Permission::delete(Role::any()), + Permission::update(Role::any()), + ], + ]); + + $this->assertEquals(201, $collection['headers']['status-code']); + $collectionId = $collection['body']['$id']; + + // Create string attribute + $nameAttribute = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/collections/' . $collectionId . '/attributes/string', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'] + ]), [ + 'key' => 'name', + 'size' => 256, + 'required' => true, + ]); + + $this->assertEquals(202, $nameAttribute['headers']['status-code']); + + // Create point attribute + $pointAttribute = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/collections/' . $collectionId . '/attributes/point', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'] + ]), [ + 'key' => 'location', + 'required' => true, + ]); + + $this->assertEquals(202, $pointAttribute['headers']['status-code']); + + // Create polygon attribute + $polygonAttribute = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/collections/' . $collectionId . '/attributes/polygon', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'] + ]), [ + 'key' => 'area', + 'required' => false, + ]); + + $this->assertEquals(202, $polygonAttribute['headers']['status-code']); + + // Wait for attributes to be created + sleep(2); + + // Test 1: Bulk create with spatial data + $spatialDocuments = []; + for ($i = 0; $i < 5; $i++) { + $spatialDocuments[] = [ + '$id' => ID::unique(), + 'name' => 'Location ' . $i, + 'location' => [10.0 + $i, 20.0 + $i], // POINT + 'area' => [ + [10.0 + $i, 20.0 + $i], + [11.0 + $i, 20.0 + $i], + [11.0 + $i, 21.0 + $i], + [10.0 + $i, 21.0 + $i], + [10.0 + $i, 20.0 + $i] + ] // POLYGON + ]; + } + + $response = $this->client->call(Client::METHOD_POST, "/databases/{$databaseId}/collections/{$collectionId}/documents", array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), [ + 'documents' => $spatialDocuments, + ]); + + $this->assertEquals(201, $response['headers']['status-code']); + $this->assertCount(5, $response['body']['documents']); + + // Verify created documents have proper spatial data + foreach ($response['body']['documents'] as $index => $document) { + $this->assertNotEmpty($document['$id']); + $this->assertNotEmpty($document['name']); + $this->assertIsArray($document['location']); + $this->assertIsArray($document['area']); + $this->assertCount(2, $document['location']); // POINT has 2 coordinates + + // Check polygon structure - it might be stored as an array of arrays + if (is_array($document['area'][0])) { + $this->assertGreaterThan(1, count($document['area'][0])); // POLYGON has multiple points + } else { + $this->assertGreaterThan(1, count($document['area'])); // POLYGON has multiple points + } + + $this->assertEquals('Location ' . $index, $document['name']); + $this->assertEquals([10.0 + $index, 20.0 + $index], $document['location']); + } + + // Test 2: Bulk update with spatial data + $response = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/collections/' . $collectionId . '/documents', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), [ + 'data' => [ + 'name' => 'Updated Location', + 'location' => [15.0, 25.0], // New POINT + 'area' => [ + [15.0, 25.0], + [16.0, 25.0], + [16.0, 26.0], + [15.0, 26.0], + [15.0, 25.0] + ] // New POLYGON + ], + ]); + + $this->assertEquals(200, $response['headers']['status-code']); + $this->assertCount(5, $response['body']['documents']); + + // Verify updated documents + foreach ($response['body']['documents'] as $document) { + $this->assertEquals('Updated Location', $document['name']); + $this->assertEquals([15.0, 25.0], $document['location']); + // The area might be stored as an array of arrays, so check the first element + $this->assertIsArray($document['area']); + if (is_array($document['area'][0])) { + // If it's an array of arrays, check the first polygon + $this->assertEquals([ + [15.0, 25.0], + [16.0, 25.0], + [16.0, 26.0], + [15.0, 26.0], + [15.0, 25.0] + ], $document['area'][0]); + } else { + // If it's a direct array, check the whole thing + $this->assertEquals([ + [15.0, 25.0], + [16.0, 25.0], + [16.0, 26.0], + [15.0, 26.0], + [15.0, 25.0] + ], $document['area']); + } + } + + // Test 3: Bulk upsert with spatial data + $upsertDocuments = [ + [ + '$id' => 'upsert1', + 'name' => 'Upsert Location 1', + 'location' => [30.0, 40.0], + 'area' => [ + [30.0, 40.0], + [31.0, 40.0], + [31.0, 41.0], + [30.0, 41.0], + [30.0, 40.0] + ] + ], + [ + '$id' => 'upsert2', + 'name' => 'Upsert Location 2', + 'location' => [35.0, 45.0], + 'area' => [ + [35.0, 45.0], + [36.0, 45.0], + [36.0, 46.0], + [35.0, 46.0], + [35.0, 45.0] + ] + ] + ]; + + $response = $this->client->call(Client::METHOD_PUT, '/databases/' . $databaseId . '/collections/' . $collectionId . '/documents', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), [ + 'documents' => $upsertDocuments, + ]); + + $this->assertEquals(200, $response['headers']['status-code']); + $this->assertCount(2, $response['body']['documents']); + + // Verify upserted documents + foreach ($response['body']['documents'] as $document) { + $this->assertNotEmpty($document['$id']); + $this->assertIsArray($document['location']); + $this->assertIsArray($document['area']); + + // Verify the spatial data structure + $this->assertCount(2, $document['location']); // POINT has 2 coordinates + if (is_array($document['area'][0])) { + $this->assertGreaterThan(1, count($document['area'][0])); // POLYGON has multiple points + } else { + $this->assertGreaterThan(1, count($document['area'])); // POLYGON has multiple points + } + } + + // Test 4: Edge cases for spatial bulk operations + + // Test 4a: Invalid point coordinates (should fail) + $response = $this->client->call(Client::METHOD_POST, "/databases/{$databaseId}/collections/{$collectionId}/documents", array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), [ + 'documents' => [ + [ + '$id' => ID::unique(), + 'name' => 'Invalid Point', + 'location' => [1000.0, 2000.0], + 'area' => [10.0 , 10.0] + ] + ], + ]); + + // invalid polygon + $this->assertEquals(400, $response['headers']['status-code']); + + $response = $this->client->call(Client::METHOD_POST, "/databases/{$databaseId}/collections/{$collectionId}/documents", array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), [ + 'documents' => [ + [ + '$id' => ID::unique(), + 'name' => 'Invalid Polygon', + 'location' => [10.0, 20.0], + 'area' => [ + [10.0, 20.0], + [11.0, 20.0] + ] + ] + ], + ]); + + $this->assertEquals(400, $response['headers']['status-code']); + + $response = $this->client->call(Client::METHOD_POST, "/databases/{$databaseId}/collections/{$collectionId}/documents", array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), [ + 'documents' => [ + [ + '$id' => ID::unique(), + 'name' => 'Missing Location', + // Missing required 'location' attribute + 'area' => [ + [10.0, 20.0], + [11.0, 20.0], + [11.0, 21.0], + [10.0, 21.0], + [10.0, 20.0] + ] + ] + ], + ]); + + // This should fail due to missing required attribute + $this->assertEquals(400, $response['headers']['status-code']); + + // Test 4e: Mixed valid and invalid documents in bulk (should fail) + $response = $this->client->call(Client::METHOD_POST, "/databases/{$databaseId}/collections/{$collectionId}/documents", array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), [ + 'documents' => [ + [ + '$id' => ID::unique(), + 'name' => 'Valid Document', + 'location' => [10.0, 20.0], + 'area' => [ + [10.0, 20.0], + [11.0, 20.0], + [11.0, 21.0], + [10.0, 21.0], + [10.0, 20.0] + ] + ], + [ + '$id' => ID::unique(), + 'name' => 'Invalid Document', + // Missing required 'location' attribute + 'area' => [ + [10.0, 20.0], + [11.0, 20.0], + [11.0, 21.0], + [10.0, 21.0], + [10.0, 20.0] + ] + ] + ], + ]); + + // This should fail due to mixed valid/invalid documents + $this->assertEquals(400, $response['headers']['status-code']); + + // Test 4f: Very large spatial data (stress test) + $largePolygon = []; + for ($i = 0; $i < 1000; $i++) { + $largePolygon[] = [$i * 0.001, $i * 0.001]; + } + $largePolygon[] = [0, 0]; // Close the polygon + + $response = $this->client->call(Client::METHOD_POST, "/databases/{$databaseId}/collections/{$collectionId}/documents", array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), [ + 'documents' => [ + [ + '$id' => ID::unique(), + 'name' => 'Large Polygon Test', + 'location' => [0.0, 0.0], + 'area' => $largePolygon + ] + ], + ]); + + $this->assertEquals(201, $response['headers']['status-code']); + + // Test 4g: Null values in spatial attributes (should fail) + $response = $this->client->call(Client::METHOD_POST, "/databases/{$databaseId}/collections/{$collectionId}/documents", array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), [ + 'documents' => [ + [ + '$id' => ID::unique(), + 'name' => 'Null Values Test', + 'location' => null, // Null point + 'area' => null // Null polygon + ] + ], + ]); + + // This should fail due to null values + $this->assertEquals(400, $response['headers']['status-code']); + + // Test 4h: Bulk operations with spatial data exceeding limits + $largeBulkDocuments = []; + for ($i = 0; $i < 100; $i++) { + $largeBulkDocuments[] = [ + '$id' => ID::unique(), + 'name' => 'Bulk Test ' . $i, + 'location' => [$i * 0.1, $i * 0.1], + 'area' => [ + [$i * 0.1, $i * 0.1], + [($i + 1) * 0.1, $i * 0.1], + [($i + 1) * 0.1, ($i + 1) * 0.1], + [$i * 0.1, ($i + 1) * 0.1], + [$i * 0.1, $i * 0.1] + ] + ]; + } + + $response = $this->client->call(Client::METHOD_POST, "/databases/{$databaseId}/collections/{$collectionId}/documents", array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), [ + 'documents' => $largeBulkDocuments, + ]); + + $this->assertEquals(201, $response['headers']['status-code']); + + // Cleanup + $this->client->call(Client::METHOD_DELETE, '/databases/' . $databaseId . '/collections/' . $collectionId, array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'] + ])); + + $this->client->call(Client::METHOD_DELETE, '/databases/' . $databaseId, array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'] + ])); + } + + public function testSpatialBulkOperationsWithLineStrings(): void + { + // Create database + $database = $this->client->call(Client::METHOD_POST, '/databases', [ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'] + ], [ + 'databaseId' => ID::unique(), + 'name' => 'Spatial LineString Bulk Operations Test Database' + ]); + + $this->assertNotEmpty($database['body']['$id']); + $databaseId = $database['body']['$id']; + + // Create collection with line string attributes + $collection = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/collections', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'] + ]), [ + 'collectionId' => ID::unique(), + 'name' => 'Spatial LineString Bulk Operations Collection', + 'documentSecurity' => true, + 'permissions' => [ + Permission::create(Role::any()), + Permission::read(Role::any()), + Permission::delete(Role::any()), + Permission::update(Role::any()), + ], + ]); + + $this->assertEquals(201, $collection['headers']['status-code']); + $collectionId = $collection['body']['$id']; + + // Create string attribute + $nameAttribute = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/collections/' . $collectionId . '/attributes/string', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'] + ]), [ + 'key' => 'name', + 'size' => 256, + 'required' => true, + ]); + + $this->assertEquals(202, $nameAttribute['headers']['status-code']); + + // Create line string attribute + $lineAttribute = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/collections/' . $collectionId . '/attributes/line', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'] + ]), [ + 'key' => 'path', + 'required' => true, + ]); + + // Handle both 201 (created) and 202 (accepted) status codes + $this->assertEquals(202, $lineAttribute['headers']['status-code']); + + // Wait for attributes to be created + sleep(2); + + // Test bulk create with line string data + $lineStringDocuments = []; + for ($i = 0; $i < 3; $i++) { + $lineStringDocuments[] = [ + '$id' => ID::unique(), + 'name' => 'Path ' . $i, + 'path' => [ + [$i * 10, $i * 10], + [($i + 1) * 10, ($i + 1) * 10], + [($i + 2) * 10, ($i + 2) * 10] + ] // LINE STRING with 3 points + ]; + } + + $response = $this->client->call(Client::METHOD_POST, "/databases/{$databaseId}/collections/{$collectionId}/documents", array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), [ + 'documents' => $lineStringDocuments, + ]); + + $this->assertEquals(201, $response['headers']['status-code']); + $this->assertCount(3, $response['body']['documents']); + + // Verify created documents have proper line string data + foreach ($response['body']['documents'] as $index => $document) { + $this->assertNotEmpty($document['$id']); + $this->assertNotEmpty($document['name']); + $this->assertIsArray($document['path']); + $this->assertGreaterThan(1, count($document['path'])); // LINE STRING has multiple points + $this->assertEquals('Path ' . $index, $document['name']); + $this->assertCount(3, $document['path']); // Each line string has 3 points + } + + // Test bulk update with line string data + $response = $this->client->call(Client::METHOD_PATCH, '/databases/' . $databaseId . '/collections/' . $collectionId . '/documents', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), [ + 'data' => [ + 'name' => 'Updated Path', + 'path' => [ + [0, 0], + [50, 50], + [100, 100] + ] // New LINE STRING + ], + ]); + + $this->assertEquals(200, $response['headers']['status-code']); + $this->assertCount(3, $response['body']['documents']); + + // Verify updated documents + foreach ($response['body']['documents'] as $document) { + $this->assertEquals('Updated Path', $document['name']); + $this->assertEquals([ + [0, 0], + [50, 50], + [100, 100] + ], $document['path']); + } + + // Test: Invalid line string (single point - should fail) + $response = $this->client->call(Client::METHOD_POST, "/databases/{$databaseId}/collections/{$collectionId}/documents", array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), [ + 'documents' => [ + [ + '$id' => ID::unique(), + 'name' => 'Invalid Line String', + 'path' => [[10, 20]] // Single point - invalid line string + ] + ], + ]); + + $this->assertEquals(400, $response['headers']['status-code']); + + // Cleanup + $this->client->call(Client::METHOD_DELETE, '/databases/' . $databaseId . '/collections/' . $collectionId, array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'] + ])); + + $this->client->call(Client::METHOD_DELETE, '/databases/' . $databaseId, array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'] + ])); + } } diff --git a/tests/e2e/Services/Databases/TablesDB/DatabasesBase.php b/tests/e2e/Services/Databases/TablesDB/DatabasesBase.php index 4fc97d35a8..21d24c9d38 100644 --- a/tests/e2e/Services/Databases/TablesDB/DatabasesBase.php +++ b/tests/e2e/Services/Databases/TablesDB/DatabasesBase.php @@ -1649,6 +1649,8 @@ trait DatabasesBase $this->assertEquals($row1['body']['actors'][0], 'Chris Evans'); $this->assertEquals($row1['body']['actors'][1], 'Samuel Jackson'); $this->assertEquals($row1['body']['birthDay'], '1975-06-12T12:12:55.000+00:00'); + $this->assertTrue(array_key_exists('$sequence', $row1['body'])); + $this->assertIsInt($row1['body']['$sequence']); $this->assertEquals(201, $row2['headers']['status-code']); $this->assertEquals($data['moviesId'], $row2['body']['$tableId']); @@ -4291,9 +4293,10 @@ trait DatabasesBase ]); if ($this->getSide() === 'client') { - $this->assertEquals($row['headers']['status-code'], 400); - } else { $this->assertEquals($row['body']['title'], 'Again Updated Date Test'); + $this->assertNotEquals($row['body']['$createdAt'], DateTime::formatTz('2022-08-01 13:09:23.040')); + $this->assertNotEquals($row['body']['$updatedAt'], DateTime::formatTz('2022-08-01 13:09:23.050')); + } else { $this->assertEquals($row['body']['$createdAt'], DateTime::formatTz('2022-08-01 13:09:23.040')); $this->assertEquals($row['body']['$updatedAt'], DateTime::formatTz('2022-08-01 13:09:23.050')); @@ -4883,7 +4886,7 @@ trait DatabasesBase if($this->isMongoDB()) { $this->markTestSkipped('MongoDB is not supported for this test'); } - + $databaseId = $data['databaseId']; // Create album table @@ -6384,6 +6387,192 @@ trait DatabasesBase // $this->assertEquals('Latest Event', $rows['body']['rows'][0]['name']); // } + /** + * @throws \Utopia\Database\Exception + * @throws \Utopia\Database\Exception\Query + */ +// public function testCreatedBetween(): void +// { +// // Create database +// $database = $this->client->call(Client::METHOD_POST, '/tablesdb', [ +// 'content-type' => 'application/json', +// 'x-appwrite-project' => $this->getProject()['$id'], +// 'x-appwrite-key' => $this->getProject()['apiKey'] +// ], [ +// 'databaseId' => ID::unique(), +// 'name' => 'CreatedBetween test' +// ]); +// +// $this->assertNotEmpty($database['body']['$id']); +// $this->assertEquals(201, $database['headers']['status-code']); +// $this->assertEquals('CreatedBetween test', $database['body']['name']); +// +// $databaseId = $database['body']['$id']; +// +// // Create Collection +// $articles = $this->client->call(Client::METHOD_POST, '/tablesdb/' . $databaseId . '/tables', array_merge([ +// 'content-type' => 'application/json', +// 'x-appwrite-project' => $this->getProject()['$id'], +// 'x-appwrite-key' => $this->getProject()['apiKey'] +// ]), [ +// 'tableId' => ID::unique(), +// 'name' => 'Articles', +// 'rowSecurity' => true, +// 'permissions' => [ +// Permission::create(Role::user($this->getUser()['$id'])), +// ], +// ]); +// +// $this->assertEquals(201, $articles['headers']['status-code']); +// $this->assertEquals($articles['body']['name'], 'Articles'); +// +// // Create Attributes +// $title = $this->client->call(Client::METHOD_POST, '/tablesdb/' . $databaseId . '/tables/' . $articles['body']['$id'] . '/columns/string', array_merge([ +// 'content-type' => 'application/json', +// 'x-appwrite-project' => $this->getProject()['$id'], +// 'x-appwrite-key' => $this->getProject()['apiKey'] +// ]), [ +// 'key' => 'title', +// 'size' => 256, +// 'required' => true, +// ]); +// $this->assertEquals(202, $title['headers']['status-code']); +// +// $content = $this->client->call(Client::METHOD_POST, '/tablesdb/' . $databaseId . '/tables/' . $articles['body']['$id'] . '/columns/string', array_merge([ +// 'content-type' => 'application/json', +// 'x-appwrite-project' => $this->getProject()['$id'], +// 'x-appwrite-key' => $this->getProject()['apiKey'] +// ]), [ +// 'key' => 'content', +// 'size' => 5000, +// 'required' => true, +// ]); +// $this->assertEquals(202, $content['headers']['status-code']); +// +// // Wait for attributes to be available +// sleep(2); +// +// // Create first article +// $row1 = $this->client->call(Client::METHOD_POST, '/tablesdb/' . $databaseId . '/tables/' . $articles['body']['$id'] . '/rows', array_merge([ +// 'content-type' => 'application/json', +// 'x-appwrite-project' => $this->getProject()['$id'], +// ], $this->getHeaders()), [ +// 'rowId' => ID::unique(), +// 'data' => [ +// 'title' => 'First Article', +// 'content' => 'This is the first article content', +// ], +// 'permissions' => [ +// Permission::read(Role::user($this->getUser()['$id'])), +// ] +// ]); +// $this->assertEquals(201, $row1['headers']['status-code']); +// $firstArticleCreatedAt = $row1['body']['$createdAt']; +// +// // Sleep to ensure different timestamps +// sleep(1); +// +// // Create second article +// $row2 = $this->client->call(Client::METHOD_POST, '/tablesdb/' . $databaseId . '/tables/' . $articles['body']['$id'] . '/rows', array_merge([ +// 'content-type' => 'application/json', +// 'x-appwrite-project' => $this->getProject()['$id'], +// ], $this->getHeaders()), [ +// 'rowId' => ID::unique(), +// 'data' => [ +// 'title' => 'Second Article', +// 'content' => 'This is the second article content', +// ], +// 'permissions' => [ +// Permission::read(Role::user($this->getUser()['$id'])), +// ] +// ]); +// $this->assertEquals(201, $row2['headers']['status-code']); +// $secondArticleCreatedAt = $row2['body']['$createdAt']; +// +// // Sleep again +// sleep(1); +// +// // Create third article +// $row3 = $this->client->call(Client::METHOD_POST, '/tablesdb/' . $databaseId . '/tables/' . $articles['body']['$id'] . '/rows', array_merge([ +// 'content-type' => 'application/json', +// 'x-appwrite-project' => $this->getProject()['$id'], +// ], $this->getHeaders()), [ +// 'rowId' => ID::unique(), +// 'data' => [ +// 'title' => 'Third Article', +// 'content' => 'This is the third article content', +// ], +// 'permissions' => [ +// Permission::read(Role::user($this->getUser()['$id'])), +// ] +// ]); +// $this->assertEquals(201, $row3['headers']['status-code']); +// $thirdArticleCreatedAt = $row3['body']['$createdAt']; +// +// // Sleep again +// sleep(1); +// +// // Create fourth article +// $row4 = $this->client->call(Client::METHOD_POST, '/tablesdb/' . $databaseId . '/tables/' . $articles['body']['$id'] . '/rows', array_merge([ +// 'content-type' => 'application/json', +// 'x-appwrite-project' => $this->getProject()['$id'], +// ], $this->getHeaders()), [ +// 'rowId' => ID::unique(), +// 'data' => [ +// 'title' => 'Fourth Article', +// 'content' => 'This is the fourth article content', +// ], +// 'permissions' => [ +// Permission::read(Role::user($this->getUser()['$id'])), +// ] +// ]); +// $this->assertEquals(201, $row4['headers']['status-code']); +// +// // Test createdBetween query - should return articles created between first and third (inclusive) +// $rows = $this->client->call( +// Client::METHOD_GET, +// '/tablesdb/' . $databaseId . '/tables/' . $articles['body']['$id'] . '/rows', +// array_merge([ +// 'content-type' => 'application/json', +// 'x-appwrite-project' => $this->getProject()['$id'], +// ], $this->getHeaders()), +// [ +// 'queries' => [ +// Query::createdBetween($firstArticleCreatedAt, $thirdArticleCreatedAt)->toString(), +// ], +// ] +// ); +// +// $this->assertEquals(200, $rows['headers']['status-code']); +// $this->assertCount(3, $rows['body']['rows']); +// +// // Verify the returned articles are the correct ones +// $titles = array_column($rows['body']['rows'], 'title'); +// $this->assertContains('First Article', $titles); +// $this->assertContains('Second Article', $titles); +// $this->assertContains('Third Article', $titles); +// $this->assertNotContains('Fourth Article', $titles); +// +// // Test createdBetween query - should return only the second article when using its timestamp for both bounds +// $rows = $this->client->call( +// Client::METHOD_GET, +// '/tablesdb/' . $databaseId . '/tables/' . $articles['body']['$id'] . '/rows', +// array_merge([ +// 'content-type' => 'application/json', +// 'x-appwrite-project' => $this->getProject()['$id'], +// ], $this->getHeaders()), +// [ +// 'queries' => [ +// Query::createdBetween($secondArticleCreatedAt, $secondArticleCreatedAt)->toString(), +// ], +// ] +// ); +// +// $this->assertEquals(200, $rows['headers']['status-code']); +// $this->assertCount(1, $rows['body']['rows']); +// $this->assertEquals('Second Article', $rows['body']['rows'][0]['title']); +// } + /** * @throws \Utopia\Database\Exception * @throws \Utopia\Database\Exception\Query @@ -6730,6 +6919,249 @@ trait DatabasesBase // $this->assertEquals('delivered', $rows['body']['rows'][0]['status']); // } + /** + * @throws \Utopia\Database\Exception + * @throws \Utopia\Database\Exception\Query + */ +// public function testUpdatedBetween(): void +// { +// // Create database +// $database = $this->client->call(Client::METHOD_POST, '/tablesdb', [ +// 'content-type' => 'application/json', +// 'x-appwrite-project' => $this->getProject()['$id'], +// 'x-appwrite-key' => $this->getProject()['apiKey'] +// ], [ +// 'databaseId' => ID::unique(), +// 'name' => 'UpdatedBetween test' +// ]); +// +// $this->assertNotEmpty($database['body']['$id']); +// $this->assertEquals(201, $database['headers']['status-code']); +// $this->assertEquals('UpdatedBetween test', $database['body']['name']); +// +// $databaseId = $database['body']['$id']; +// +// // Create Collection +// $products = $this->client->call(Client::METHOD_POST, '/tablesdb/' . $databaseId . '/tables', array_merge([ +// 'content-type' => 'application/json', +// 'x-appwrite-project' => $this->getProject()['$id'], +// 'x-appwrite-key' => $this->getProject()['apiKey'] +// ]), [ +// 'tableId' => ID::unique(), +// 'name' => 'Products', +// 'rowSecurity' => true, +// 'permissions' => [ +// Permission::create(Role::user($this->getUser()['$id'])), +// ], +// ]); +// +// $this->assertEquals(201, $products['headers']['status-code']); +// $this->assertEquals($products['body']['name'], 'Products'); +// +// // Create Attributes +// $name = $this->client->call(Client::METHOD_POST, '/tablesdb/' . $databaseId . '/tables/' . $products['body']['$id'] . '/columns/string', array_merge([ +// 'content-type' => 'application/json', +// 'x-appwrite-project' => $this->getProject()['$id'], +// 'x-appwrite-key' => $this->getProject()['apiKey'] +// ]), [ +// 'key' => 'name', +// 'size' => 256, +// 'required' => true, +// ]); +// $this->assertEquals(202, $name['headers']['status-code']); +// +// $price = $this->client->call(Client::METHOD_POST, '/tablesdb/' . $databaseId . '/tables/' . $products['body']['$id'] . '/columns/float', array_merge([ +// 'content-type' => 'application/json', +// 'x-appwrite-project' => $this->getProject()['$id'], +// 'x-appwrite-key' => $this->getProject()['apiKey'] +// ]), [ +// 'key' => 'price', +// 'required' => true, +// ]); +// $this->assertEquals(202, $price['headers']['status-code']); +// +// // Wait for attributes to be available +// sleep(2); +// +// // Create first product +// $row1 = $this->client->call(Client::METHOD_POST, '/tablesdb/' . $databaseId . '/tables/' . $products['body']['$id'] . '/rows', array_merge([ +// 'content-type' => 'application/json', +// 'x-appwrite-project' => $this->getProject()['$id'], +// ], $this->getHeaders()), [ +// 'rowId' => ID::unique(), +// 'data' => [ +// 'name' => 'Product A', +// 'price' => 99.99, +// ], +// 'permissions' => [ +// Permission::read(Role::user($this->getUser()['$id'])), +// Permission::update(Role::user($this->getUser()['$id'])), +// ] +// ]); +// $this->assertEquals(201, $row1['headers']['status-code']); +// +// // Sleep to ensure different timestamps +// sleep(1); +// +// // Create second product +// $row2 = $this->client->call(Client::METHOD_POST, '/tablesdb/' . $databaseId . '/tables/' . $products['body']['$id'] . '/rows', array_merge([ +// 'content-type' => 'application/json', +// 'x-appwrite-project' => $this->getProject()['$id'], +// ], $this->getHeaders()), [ +// 'rowId' => ID::unique(), +// 'data' => [ +// 'name' => 'Product B', +// 'price' => 149.99, +// ], +// 'permissions' => [ +// Permission::read(Role::user($this->getUser()['$id'])), +// Permission::update(Role::user($this->getUser()['$id'])), +// ] +// ]); +// $this->assertEquals(201, $row2['headers']['status-code']); +// +// // Sleep again +// sleep(1); +// +// // Create third product +// $row3 = $this->client->call(Client::METHOD_POST, '/tablesdb/' . $databaseId . '/tables/' . $products['body']['$id'] . '/rows', array_merge([ +// 'content-type' => 'application/json', +// 'x-appwrite-project' => $this->getProject()['$id'], +// ], $this->getHeaders()), [ +// 'rowId' => ID::unique(), +// 'data' => [ +// 'name' => 'Product C', +// 'price' => 199.99, +// ], +// 'permissions' => [ +// Permission::read(Role::user($this->getUser()['$id'])), +// Permission::update(Role::user($this->getUser()['$id'])), +// ] +// ]); +// $this->assertEquals(201, $row3['headers']['status-code']); +// +// // Sleep again +// sleep(1); +// +// // Create fourth product +// $row4 = $this->client->call(Client::METHOD_POST, '/tablesdb/' . $databaseId . '/tables/' . $products['body']['$id'] . '/rows', array_merge([ +// 'content-type' => 'application/json', +// 'x-appwrite-project' => $this->getProject()['$id'], +// ], $this->getHeaders()), [ +// 'rowId' => ID::unique(), +// 'data' => [ +// 'name' => 'Product D', +// 'price' => 249.99, +// ], +// 'permissions' => [ +// Permission::read(Role::user($this->getUser()['$id'])), +// Permission::update(Role::user($this->getUser()['$id'])), +// ] +// ]); +// $this->assertEquals(201, $row4['headers']['status-code']); +// +// // Now update products in sequence to get different updatedAt timestamps +// sleep(1); +// +// // Update first product +// $update1 = $this->client->call(Client::METHOD_PATCH, '/tablesdb/' . $databaseId . '/tables/' . $products['body']['$id'] . '/rows/' . $row1['body']['$id'], array_merge([ +// 'content-type' => 'application/json', +// 'x-appwrite-project' => $this->getProject()['$id'], +// ], $this->getHeaders()), [ +// 'data' => [ +// 'price' => 89.99, +// ] +// ]); +// $this->assertEquals(200, $update1['headers']['status-code']); +// $firstProductUpdatedAt = $update1['body']['$updatedAt']; +// +// sleep(1); +// +// // Update second product +// $update2 = $this->client->call(Client::METHOD_PATCH, '/tablesdb/' . $databaseId . '/tables/' . $products['body']['$id'] . '/rows/' . $row2['body']['$id'], array_merge([ +// 'content-type' => 'application/json', +// 'x-appwrite-project' => $this->getProject()['$id'], +// ], $this->getHeaders()), [ +// 'data' => [ +// 'price' => 139.99, +// ] +// ]); +// $this->assertEquals(200, $update2['headers']['status-code']); +// $secondProductUpdatedAt = $update2['body']['$updatedAt']; +// +// sleep(1); +// +// // Update third product +// $update3 = $this->client->call(Client::METHOD_PATCH, '/tablesdb/' . $databaseId . '/tables/' . $products['body']['$id'] . '/rows/' . $row3['body']['$id'], array_merge([ +// 'content-type' => 'application/json', +// 'x-appwrite-project' => $this->getProject()['$id'], +// ], $this->getHeaders()), [ +// 'data' => [ +// 'price' => 189.99, +// ] +// ]); +// $this->assertEquals(200, $update3['headers']['status-code']); +// $thirdProductUpdatedAt = $update3['body']['$updatedAt']; +// +// sleep(1); +// +// // Update fourth product +// $update4 = $this->client->call(Client::METHOD_PATCH, '/tablesdb/' . $databaseId . '/tables/' . $products['body']['$id'] . '/rows/' . $row4['body']['$id'], array_merge([ +// 'content-type' => 'application/json', +// 'x-appwrite-project' => $this->getProject()['$id'], +// ], $this->getHeaders()), [ +// 'data' => [ +// 'price' => 239.99, +// ] +// ]); +// $this->assertEquals(200, $update4['headers']['status-code']); +// +// // Test updatedBetween query - should return products updated between first and third (inclusive) +// $rows = $this->client->call( +// Client::METHOD_GET, +// '/tablesdb/' . $databaseId . '/tables/' . $products['body']['$id'] . '/rows', +// array_merge([ +// 'content-type' => 'application/json', +// 'x-appwrite-project' => $this->getProject()['$id'], +// ], $this->getHeaders()), +// [ +// 'queries' => [ +// Query::updatedBetween($firstProductUpdatedAt, $thirdProductUpdatedAt)->toString(), +// ], +// ] +// ); +// +// $this->assertEquals(200, $rows['headers']['status-code']); +// $this->assertCount(3, $rows['body']['rows']); +// +// // Verify the returned products are the correct ones +// $names = array_column($rows['body']['rows'], 'name'); +// $this->assertContains('Product A', $names); +// $this->assertContains('Product B', $names); +// $this->assertContains('Product C', $names); +// $this->assertNotContains('Product D', $names); +// +// // Test updatedBetween query - should return only the second product when using its timestamp for both bounds +// $rows = $this->client->call( +// Client::METHOD_GET, +// '/tablesdb/' . $databaseId . '/tables/' . $products['body']['$id'] . '/rows', +// array_merge([ +// 'content-type' => 'application/json', +// 'x-appwrite-project' => $this->getProject()['$id'], +// ], $this->getHeaders()), +// [ +// 'queries' => [ +// Query::updatedBetween($secondProductUpdatedAt, $secondProductUpdatedAt)->toString(), +// ], +// ] +// ); +// +// $this->assertEquals(200, $rows['headers']['status-code']); +// $this->assertCount(1, $rows['body']['rows']); +// $this->assertEquals('Product B', $rows['body']['rows'][0]['name']); +// $this->assertEquals(139.99, $rows['body']['rows'][0]['price']); +// } + /** * @depends testCreateDatabase * @param array $data @@ -7128,4 +7560,1321 @@ trait DatabasesBase ]); $this->assertEquals(400, $inc3['headers']['status-code']); } + +// public function testSpatialPointColumns(): void +// { +// $database = $this->client->call(Client::METHOD_POST, '/tablesdb', [ +// 'content-type' => 'application/json', +// 'x-appwrite-project' => $this->getProject()['$id'], +// 'x-appwrite-key' => $this->getProject()['apiKey'] +// ], [ +// 'databaseId' => ID::unique(), +// 'name' => 'Spatial Point Test Database' +// ]); +// +// $databaseId = $database['body']['$id']; +// +// // Create table with spatial and non-spatial columns +// $table = $this->client->call(Client::METHOD_POST, '/tablesdb/' . $databaseId . '/tables', array_merge([ +// 'content-type' => 'application/json', +// 'x-appwrite-project' => $this->getProject()['$id'], +// 'x-appwrite-key' => $this->getProject()['apiKey'] +// ]), [ +// 'tableId' => ID::unique(), +// 'name' => 'Spatial Point Table', +// 'rowSecurity' => true, +// 'permissions' => [ +// Permission::create(Role::user($this->getUser()['$id'])), +// Permission::read(Role::user($this->getUser()['$id'])), +// Permission::update(Role::user($this->getUser()['$id'])), +// Permission::delete(Role::user($this->getUser()['$id'])), +// ], +// ]); +// +// $tableId = $table['body']['$id']; +// +// // Create string column +// $this->client->call(Client::METHOD_POST, '/tablesdb/' . $databaseId . '/tables/' . $tableId . '/columns/string', array_merge([ +// 'content-type' => 'application/json', +// 'x-appwrite-project' => $this->getProject()['$id'], +// 'x-appwrite-key' => $this->getProject()['apiKey'] +// ]), [ +// 'key' => 'name', +// 'size' => 256, +// 'required' => true, +// ]); +// +// // Create point column +// $response = $this->client->call(Client::METHOD_POST, '/tablesdb/' . $databaseId . '/tables/' . $tableId . '/columns/point', array_merge([ +// 'content-type' => 'application/json', +// 'x-appwrite-project' => $this->getProject()['$id'], +// 'x-appwrite-key' => $this->getProject()['apiKey'] +// ]), [ +// 'key' => 'location', +// 'required' => true, +// ]); +// +// $this->assertEquals(202, $response['headers']['status-code']); +// +// sleep(2); +// +// // Create row with point column +// $response = $this->client->call(Client::METHOD_POST, '/tablesdb/' . $databaseId . '/tables/' . $tableId . '/rows', array_merge([ +// 'content-type' => 'application/json', +// 'x-appwrite-project' => $this->getProject()['$id'], +// ], $this->getHeaders()), [ +// 'rowId' => ID::unique(), +// 'data' => [ +// 'name' => 'Test Location', +// 'location' => [40.7128, -74.0060] +// ] +// ]); +// +// $this->assertEquals(201, $response['headers']['status-code']); +// $this->assertEquals([40.7128, -74.0060], $response['body']['location']); +// $rowId = $response['body']['$id']; +// +// // Read row with point column +// $response = $this->client->call(Client::METHOD_GET, '/tablesdb/' . $databaseId . '/tables/' . $tableId . '/rows/' . $rowId, array_merge([ +// 'content-type' => 'application/json', +// 'x-appwrite-project' => $this->getProject()['$id'], +// ], $this->getHeaders())); +// +// $this->assertEquals(200, $response['headers']['status-code']); +// $this->assertEquals([40.7128, -74.0060], $response['body']['location']); +// +// // Update row with new point coordinates +// $response = $this->client->call(Client::METHOD_PATCH, '/tablesdb/' . $databaseId . '/tables/' . $tableId . '/rows/' . $rowId, array_merge([ +// 'content-type' => 'application/json', +// 'x-appwrite-project' => $this->getProject()['$id'], +// ], $this->getHeaders()), [ +// 'data' => [ +// 'location' => [40.7589, -73.9851] +// ] +// ]); +// +// $this->assertEquals(200, $response['headers']['status-code']); +// $this->assertEquals([40.7589, -73.9851], $response['body']['location']); +// +// // Upsert row with point column +// $response = $this->client->call(Client::METHOD_PUT, '/tablesdb/' . $databaseId . '/tables/' . $tableId . '/rows/' . ID::unique(), array_merge([ +// 'content-type' => 'application/json', +// 'x-appwrite-project' => $this->getProject()['$id'], +// ], $this->getHeaders()), [ +// 'rowId' => ID::unique(), +// 'data' => [ +// 'name' => 'Upserted Location', +// 'location' => [34.0522, -118.2437] +// ] +// ]); +// +// $this->assertEquals(200, $response['headers']['status-code']); +// $this->assertEquals([34.0522, -118.2437], $response['body']['location']); +// +// // Create row without permissions (should fail) +// $response = $this->client->call(Client::METHOD_POST, '/tablesdb/' . $databaseId . '/tables/' . $tableId . '/rows', [ +// 'content-type' => 'application/json', +// 'x-appwrite-project' => $this->getProject()['$id'], +// ], [ +// 'rowId' => ID::unique(), +// 'data' => [ +// 'name' => 'Unauthorized Location', +// 'location' => [0, 0] +// ] +// ]); +// +// $this->assertEquals(401, $response['headers']['status-code']); +// +// // Cleanup +// $this->client->call(Client::METHOD_DELETE, '/tablesdb/' . $databaseId . '/tables/' . $tableId, array_merge([ +// 'content-type' => 'application/json', +// 'x-appwrite-project' => $this->getProject()['$id'], +// 'x-appwrite-key' => $this->getProject()['apiKey'] +// ])); +// +// $this->client->call(Client::METHOD_DELETE, '/tablesdb/' . $databaseId, array_merge([ +// 'content-type' => 'application/json', +// 'x-appwrite-project' => $this->getProject()['$id'], +// 'x-appwrite-key' => $this->getProject()['apiKey'] +// ])); +// } +// +// public function testSpatialLineColumns(): void +// { +// $database = $this->client->call(Client::METHOD_POST, '/tablesdb', [ +// 'content-type' => 'application/json', +// 'x-appwrite-project' => $this->getProject()['$id'], +// 'x-appwrite-key' => $this->getProject()['apiKey'] +// ], [ +// 'databaseId' => ID::unique(), +// 'name' => 'Spatial Line Test Database' +// ]); +// +// $databaseId = $database['body']['$id']; +// +// // Create table with spatial and non-spatial columns +// $table = $this->client->call(Client::METHOD_POST, '/tablesdb/' . $databaseId . '/tables', array_merge([ +// 'content-type' => 'application/json', +// 'x-appwrite-project' => $this->getProject()['$id'], +// 'x-appwrite-key' => $this->getProject()['apiKey'] +// ]), [ +// 'tableId' => ID::unique(), +// 'name' => 'Spatial Line Table', +// 'rowSecurity' => true, +// 'permissions' => [ +// Permission::create(Role::user($this->getUser()['$id'])), +// Permission::read(Role::user($this->getUser()['$id'])), +// Permission::update(Role::user($this->getUser()['$id'])), +// Permission::delete(Role::user($this->getUser()['$id'])), +// ], +// ]); +// +// $tableId = $table['body']['$id']; +// +// // Create integer column +// $this->client->call(Client::METHOD_POST, '/tablesdb/' . $databaseId . '/tables/' . $tableId . '/columns/integer', array_merge([ +// 'content-type' => 'application/json', +// 'x-appwrite-project' => $this->getProject()['$id'], +// 'x-appwrite-key' => $this->getProject()['apiKey'] +// ]), [ +// 'key' => 'distance', +// 'required' => true, +// ]); +// +// // Create line column +// $this->client->call(Client::METHOD_POST, '/tablesdb/' . $databaseId . '/tables/' . $tableId . '/columns/line', array_merge([ +// 'content-type' => 'application/json', +// 'x-appwrite-project' => $this->getProject()['$id'], +// 'x-appwrite-key' => $this->getProject()['apiKey'] +// ]), [ +// 'key' => 'route', +// 'required' => true, +// ]); +// +// sleep(2); +// +// // Create row with line column +// $response = $this->client->call(Client::METHOD_POST, '/tablesdb/' . $databaseId . '/tables/' . $tableId . '/rows', array_merge([ +// 'content-type' => 'application/json', +// 'x-appwrite-project' => $this->getProject()['$id'], +// ], $this->getHeaders()), [ +// 'rowId' => ID::unique(), +// 'data' => [ +// 'distance' => 100, +// 'route' => [[40.7128, -74.0060], [40.7589, -73.9851]] +// ] +// ]); +// +// $this->assertEquals(201, $response['headers']['status-code']); +// $this->assertEquals([[40.7128, -74.0060], [40.7589, -73.9851]], $response['body']['route']); +// $rowId = $response['body']['$id']; +// +// // Read row +// $response = $this->client->call(Client::METHOD_GET, '/tablesdb/' . $databaseId . '/tables/' . $tableId . '/rows/' . $rowId, array_merge([ +// 'content-type' => 'application/json', +// 'x-appwrite-project' => $this->getProject()['$id'], +// ], $this->getHeaders())); +// $this->assertEquals(200, $response['headers']['status-code']); +// $this->assertEquals([[40.7128, -74.0060], [40.7589, -73.9851]], $response['body']['route']); +// +// // Update row +// $response = $this->client->call(Client::METHOD_PATCH, '/tablesdb/' . $databaseId . '/tables/' . $tableId . '/rows/' . $rowId, array_merge([ +// 'content-type' => 'application/json', +// 'x-appwrite-project' => $this->getProject()['$id'], +// ], $this->getHeaders()), [ +// 'data' => [ +// 'route' => [[40.7128, -74.0060], [40.7589, -73.9851], [40.7505, -73.9934]] +// ] +// ]); +// +// $this->assertEquals(200, $response['headers']['status-code']); +// $this->assertEquals([[40.7128, -74.0060], [40.7589, -73.9851], [40.7505, -73.9934]], $response['body']['route']); +// +// // Upsert row with line column +// $response = $this->client->call(Client::METHOD_PUT, '/tablesdb/' . $databaseId . '/tables/' . $tableId . '/rows/' . ID::unique(), array_merge([ +// 'content-type' => 'application/json', +// 'x-appwrite-project' => $this->getProject()['$id'], +// ], $this->getHeaders()), [ +// 'rowId' => ID::unique(), +// 'data' => [ +// 'distance' => 200, +// 'route' => [[34.0522, -118.2437], [34.0736, -118.2400]] +// ] +// ]); +// +// $this->assertEquals(200, $response['headers']['status-code']); +// $this->assertEquals([[34.0522, -118.2437], [34.0736, -118.2400]], $response['body']['route']); +// +// // Delete row +// $response = $this->client->call(Client::METHOD_DELETE, '/tablesdb/' . $databaseId . '/tables/' . $tableId . '/rows/' . $rowId, array_merge([ +// 'content-type' => 'application/json', +// 'x-appwrite-project' => $this->getProject()['$id'], +// ], $this->getHeaders())); +// $this->assertEquals(204, $response['headers']['status-code']); +// +// // Verify row is deleted +// $response = $this->client->call(Client::METHOD_GET, '/tablesdb/' . $databaseId . '/tables/' . $tableId . '/rows/' . $rowId, array_merge([ +// 'content-type' => 'application/json', +// 'x-appwrite-project' => $this->getProject()['$id'], +// ], $this->getHeaders())); +// $this->assertEquals(404, $response['headers']['status-code']); +// +// // Cleanup +// $this->client->call(Client::METHOD_DELETE, '/tablesdb/' . $databaseId . '/tables/' . $tableId, array_merge([ +// 'content-type' => 'application/json', +// 'x-appwrite-project' => $this->getProject()['$id'], +// 'x-appwrite-key' => $this->getProject()['apiKey'] +// ])); +// +// $this->client->call(Client::METHOD_DELETE, '/tablesdb/' . $databaseId, array_merge([ +// 'content-type' => 'application/json', +// 'x-appwrite-project' => $this->getProject()['$id'], +// 'x-appwrite-key' => $this->getProject()['apiKey'] +// ])); +// } +// +// public function testSpatialPolygonColumns(): void +// { +// $database = $this->client->call(Client::METHOD_POST, '/tablesdb', [ +// 'content-type' => 'application/json', +// 'x-appwrite-project' => $this->getProject()['$id'], +// 'x-appwrite-key' => $this->getProject()['apiKey'] +// ], [ +// 'databaseId' => ID::unique(), +// 'name' => 'Spatial Polygon Test Database' +// ]); +// +// $databaseId = $database['body']['$id']; +// +// // Create table with spatial and non-spatial columns +// $table = $this->client->call(Client::METHOD_POST, '/tablesdb/' . $databaseId . '/tables', array_merge([ +// 'content-type' => 'application/json', +// 'x-appwrite-project' => $this->getProject()['$id'], +// 'x-appwrite-key' => $this->getProject()['apiKey'] +// ]), [ +// 'tableId' => ID::unique(), +// 'name' => 'Spatial Polygon Table', +// 'rowSecurity' => true, +// 'permissions' => [ +// Permission::create(Role::user($this->getUser()['$id'])), +// Permission::read(Role::user($this->getUser()['$id'])), +// Permission::update(Role::user($this->getUser()['$id'])), +// Permission::delete(Role::user($this->getUser()['$id'])), +// ], +// ]); +// +// $tableId = $table['body']['$id']; +// +// // Create boolean column +// $this->client->call(Client::METHOD_POST, '/tablesdb/' . $databaseId . '/tables/' . $tableId . '/columns/boolean', array_merge([ +// 'content-type' => 'application/json', +// 'x-appwrite-project' => $this->getProject()['$id'], +// 'x-appwrite-key' => $this->getProject()['apiKey'] +// ]), [ +// 'key' => 'active', +// 'required' => true, +// ]); +// +// // Create polygon column +// $this->client->call(Client::METHOD_POST, '/tablesdb/' . $databaseId . '/tables/' . $tableId . '/columns/polygon', array_merge([ +// 'content-type' => 'application/json', +// 'x-appwrite-project' => $this->getProject()['$id'], +// 'x-appwrite-key' => $this->getProject()['apiKey'] +// ]), [ +// 'key' => 'area', +// 'required' => true, +// ]); +// +// sleep(2); +// +// // Create row with polygon column +// $response = $this->client->call(Client::METHOD_POST, '/tablesdb/' . $databaseId . '/tables/' . $tableId . '/rows', array_merge([ +// 'content-type' => 'application/json', +// 'x-appwrite-project' => $this->getProject()['$id'], +// ], $this->getHeaders()), [ +// 'rowId' => ID::unique(), +// 'data' => [ +// 'active' => true, +// 'area' => [[[40.7128, -74.0060], [40.7589, -74.0060], [40.7589, -73.9851], [40.7128, -73.9851], [40.7128, -74.0060]]] +// ] +// ]); +// +// $this->assertEquals(201, $response['headers']['status-code']); +// $this->assertEquals([[[40.7128, -74.0060], [40.7589, -74.0060], [40.7589, -73.9851], [40.7128, -73.9851], [40.7128, -74.0060]]], $response['body']['area']); +// $rowId = $response['body']['$id']; +// +// // Read row +// $response = $this->client->call(Client::METHOD_GET, '/tablesdb/' . $databaseId . '/tables/' . $tableId . '/rows/' . $rowId, array_merge([ +// 'content-type' => 'application/json', +// 'x-appwrite-project' => $this->getProject()['$id'], +// ], $this->getHeaders())); +// $this->assertEquals(200, $response['headers']['status-code']); +// $this->assertEquals([[[40.7128, -74.0060], [40.7589, -74.0060], [40.7589, -73.9851], [40.7128, -73.9851], [40.7128, -74.0060]]], $response['body']['area']); +// +// // Update row with new polygon +// $response = $this->client->call(Client::METHOD_PATCH, '/tablesdb/' . $databaseId . '/tables/' . $tableId . '/rows/' . $rowId, array_merge([ +// 'content-type' => 'application/json', +// 'x-appwrite-project' => $this->getProject()['$id'], +// ], $this->getHeaders()), [ +// 'data' => [ +// 'area' => [[[40.7128, -74.0060], [40.7589, -74.0060], [40.7589, -73.9851], [40.7128, -73.9851], [40.7505, -73.9934], [40.7128, -74.0060]]] +// ] +// ]); +// +// $this->assertEquals(200, $response['headers']['status-code']); +// $this->assertEquals([[[40.7128, -74.0060], [40.7589, -74.0060], [40.7589, -73.9851], [40.7128, -73.9851], [40.7505, -73.9934], [40.7128, -74.0060]]], $response['body']['area']); +// +// // Upsert row with polygon column +// $response = $this->client->call(Client::METHOD_PUT, '/tablesdb/' . $databaseId . '/tables/' . $tableId . '/rows/' . ID::unique(), array_merge([ +// 'content-type' => 'application/json', +// 'x-appwrite-project' => $this->getProject()['$id'], +// ], $this->getHeaders()), [ +// 'rowId' => ID::unique(), +// 'data' => [ +// 'active' => false, +// 'area' => [[[34.0522, -118.2437], [34.0736, -118.2437], [34.0736, -118.2400], [34.0522, -118.2400], [34.0522, -118.2437]]] +// ] +// ]); +// +// $this->assertEquals(200, $response['headers']['status-code']); +// $this->assertEquals([[[34.0522, -118.2437], [34.0736, -118.2437], [34.0736, -118.2400], [34.0522, -118.2400], [34.0522, -118.2437]]], $response['body']['area']); +// +// // Create row missing required polygon (should fail) +// $response = $this->client->call(Client::METHOD_POST, '/tablesdb/' . $databaseId . '/tables/' . $tableId . '/rows', array_merge([ +// 'content-type' => 'application/json', +// 'x-appwrite-project' => $this->getProject()['$id'], +// ], $this->getHeaders()), [ +// 'rowId' => ID::unique(), +// 'data' => [ +// 'active' => true +// ] +// ]); +// $this->assertEquals(400, $response['headers']['status-code']); +// +// // Cleanup +// $this->client->call(Client::METHOD_DELETE, '/tablesdb/' . $databaseId . '/tables/' . $tableId, array_merge([ +// 'content-type' => 'application/json', +// 'x-appwrite-project' => $this->getProject()['$id'], +// 'x-appwrite-key' => $this->getProject()['apiKey'] +// ])); +// +// $this->client->call(Client::METHOD_DELETE, '/tablesdb/' . $databaseId, array_merge([ +// 'content-type' => 'application/json', +// 'x-appwrite-project' => $this->getProject()['$id'], +// 'x-appwrite-key' => $this->getProject()['apiKey'] +// ])); +// } +// +// public function testSpatialColumnsMixedTable(): void +// { +// $database = $this->client->call(Client::METHOD_POST, '/tablesdb', [ +// 'content-type' => 'application/json', +// 'x-appwrite-project' => $this->getProject()['$id'], +// 'x-appwrite-key' => $this->getProject()['apiKey'] +// ], [ +// 'databaseId' => ID::unique(), +// 'name' => 'Mixed Spatial Test Database' +// ]); +// +// $databaseId = $database['body']['$id']; +// +// // Create table with multiple spatial and non-spatial columns +// $table = $this->client->call(Client::METHOD_POST, '/tablesdb/' . $databaseId . '/tables', array_merge([ +// 'content-type' => 'application/json', +// 'x-appwrite-project' => $this->getProject()['$id'], +// 'x-appwrite-key' => $this->getProject()['apiKey'] +// ]), [ +// 'tableId' => ID::unique(), +// 'name' => 'Mixed Spatial Table', +// 'rowSecurity' => true, +// 'permissions' => [ +// Permission::create(Role::user($this->getUser()['$id'])), +// Permission::read(Role::user($this->getUser()['$id'])), +// Permission::update(Role::user($this->getUser()['$id'])), +// Permission::delete(Role::user($this->getUser()['$id'])), +// ], +// ]); +// +// $tableId = $table['body']['$id']; +// +// // Create multiple columns +// $this->client->call(Client::METHOD_POST, '/tablesdb/' . $databaseId . '/tables/' . $tableId . '/columns/string', array_merge([ +// 'content-type' => 'application/json', +// 'x-appwrite-project' => $this->getProject()['$id'], +// 'x-appwrite-key' => $this->getProject()['apiKey'] +// ]), [ +// 'key' => 'name', +// 'size' => 256, +// 'required' => true, +// ]); +// +// $this->client->call(Client::METHOD_POST, '/tablesdb/' . $databaseId . '/tables/' . $tableId . '/columns/point', array_merge([ +// 'content-type' => 'application/json', +// 'x-appwrite-project' => $this->getProject()['$id'], +// 'x-appwrite-key' => $this->getProject()['apiKey'] +// ]), [ +// 'key' => 'center', +// 'required' => true, +// ]); +// +// $this->client->call(Client::METHOD_POST, '/tablesdb/' . $databaseId . '/tables/' . $tableId . '/columns/line', array_merge([ +// 'content-type' => 'application/json', +// 'x-appwrite-project' => $this->getProject()['$id'], +// 'x-appwrite-key' => $this->getProject()['apiKey'] +// ]), [ +// 'key' => 'boundary', +// 'required' => false, +// ]); +// +// $this->client->call(Client::METHOD_POST, '/tablesdb/' . $databaseId . '/tables/' . $tableId . '/columns/polygon', array_merge([ +// 'content-type' => 'application/json', +// 'x-appwrite-project' => $this->getProject()['$id'], +// 'x-appwrite-key' => $this->getProject()['apiKey'] +// ]), [ +// 'key' => 'coverage', +// 'required' => true, +// ]); +// +// sleep(3); +// +// // Create row with all spatial columns +// $response = $this->client->call(Client::METHOD_POST, '/tablesdb/' . $databaseId . '/tables/' . $tableId . '/rows', array_merge([ +// 'content-type' => 'application/json', +// 'x-appwrite-project' => $this->getProject()['$id'], +// ], $this->getHeaders()), [ +// 'rowId' => ID::unique(), +// 'data' => [ +// 'name' => 'Central Park', +// 'center' => [40.7829, -73.9654], +// 'boundary' => [[40.7649, -73.9814], [40.8009, -73.9494]], +// 'coverage' => [[[40.7649, -73.9814], [40.8009, -73.9814], [40.8009, -73.9494], [40.7649, -73.9494], [40.7649, -73.9814]]] +// ] +// ]); +// +// $this->assertEquals(201, $response['headers']['status-code']); +// $this->assertEquals([40.7829, -73.9654], $response['body']['center']); +// $this->assertEquals([[40.7649, -73.9814], [40.8009, -73.9494]], $response['body']['boundary']); +// $this->assertEquals([[[40.7649, -73.9814], [40.8009, -73.9814], [40.8009, -73.9494], [40.7649, -73.9494], [40.7649, -73.9814]]], $response['body']['coverage']); +// $rowId = $response['body']['$id']; +// +// // Update row with new spatial data +// $response = $this->client->call(Client::METHOD_PATCH, '/tablesdb/' . $databaseId . '/tables/' . $tableId . '/rows/' . $rowId, array_merge([ +// 'content-type' => 'application/json', +// 'x-appwrite-project' => $this->getProject()['$id'], +// ], $this->getHeaders()), [ +// 'data' => [ +// 'center' => [40.7505, -73.9934], +// 'boundary' => [[40.7305, -74.0134], [40.7705, -73.9734]], +// 'coverage' => [[[40.7305, -74.0134], [40.7705, -74.0134], [40.7705, -73.9734], [40.7305, -73.9734], [40.7305, -74.0134]]] +// ] +// ]); +// +// $this->assertEquals(200, $response['headers']['status-code']); +// $this->assertEquals([40.7505, -73.9934], $response['body']['center']); +// $this->assertEquals([[40.7305, -74.0134], [40.7705, -73.9734]], $response['body']['boundary']); +// $this->assertEquals([[[40.7305, -74.0134], [40.7705, -74.0134], [40.7705, -73.9734], [40.7305, -73.9734], [40.7305, -74.0134]]], $response['body']['coverage']); +// +// // Create row with minimal required columns +// $response = $this->client->call(Client::METHOD_POST, '/tablesdb/' . $databaseId . '/tables/' . $tableId . '/rows', array_merge([ +// 'content-type' => 'application/json', +// 'x-appwrite-project' => $this->getProject()['$id'], +// ], $this->getHeaders()), [ +// 'rowId' => ID::unique(), +// 'data' => [ +// 'name' => 'Minimal Location', +// 'center' => [0, 0], +// 'coverage' => [[[0, 0], [1, 0], [1, 1], [0, 1], [0, 0]]] +// ] +// ]); +// +// $this->assertEquals(201, $response['headers']['status-code']); +// $this->assertEquals([0, 0], $response['body']['center']); +// +// // Permission validation - create without user context +// $response = $this->client->call(Client::METHOD_POST, '/tablesdb/' . $databaseId . '/tables/' . $tableId . '/rows', [ +// 'content-type' => 'application/json', +// 'x-appwrite-project' => $this->getProject()['$id'], +// ], [ +// 'rowId' => ID::unique(), +// 'data' => [ +// 'name' => 'Unauthorized Location', +// 'center' => [0, 0], +// 'coverage' => [[[0, 0], [1, 0], [1, 1], [0, 1], [0, 0]]] +// ] +// ]); +// +// $this->assertEquals(401, $response['headers']['status-code']); +// +// // Cleanup +// $this->client->call(Client::METHOD_DELETE, '/tablesdb/' . $databaseId . '/tables/' . $tableId, array_merge([ +// 'content-type' => 'application/json', +// 'x-appwrite-project' => $this->getProject()['$id'], +// 'x-appwrite-key' => $this->getProject()['apiKey'] +// ])); +// +// $this->client->call(Client::METHOD_DELETE, '/tablesdb/' . $databaseId, array_merge([ +// 'content-type' => 'application/json', +// 'x-appwrite-project' => $this->getProject()['$id'], +// 'x-appwrite-key' => $this->getProject()['apiKey'] +// ])); +// } +// +// public function testSpatialQuery(): void +// { +// $database = $this->client->call(Client::METHOD_POST, '/tablesdb', [ +// 'content-type' => 'application/json', +// 'x-appwrite-project' => $this->getProject()['$id'], +// 'x-appwrite-key' => $this->getProject()['apiKey'] +// ], [ +// 'databaseId' => ID::unique(), +// 'name' => 'Spatial Query Test Database' +// ]); +// +// $this->assertNotEmpty($database['body']['$id']); +// $databaseId = $database['body']['$id']; +// +// // Create table with spatial columns +// $table = $this->client->call(Client::METHOD_POST, '/tablesdb/' . $databaseId . '/tables', array_merge([ +// 'content-type' => 'application/json', +// 'x-appwrite-project' => $this->getProject()['$id'], +// 'x-appwrite-key' => $this->getProject()['apiKey'] +// ]), [ +// 'tableId' => ID::unique(), +// 'name' => 'Spatial Query Table', +// 'rowSecurity' => true, +// 'permissions' => [ +// Permission::create(Role::any()), +// Permission::read(Role::any()), +// Permission::delete(Role::any()), +// Permission::update(Role::any()), +// ], +// ]); +// +// $this->assertEquals(201, $table['headers']['status-code']); +// $tableId = $table['body']['$id']; +// +// // Create string column +// $nameColumn = $this->client->call(Client::METHOD_POST, '/tablesdb/' . $databaseId . '/tables/' . $tableId . '/columns/string', array_merge([ +// 'content-type' => 'application/json', +// 'x-appwrite-project' => $this->getProject()['$id'], +// 'x-appwrite-key' => $this->getProject()['apiKey'] +// ]), [ +// 'key' => 'name', +// 'size' => 256, +// 'required' => true, +// ]); +// $this->assertEquals(202, $nameColumn['headers']['status-code']); +// +// // Create point column +// $pointColumn = $this->client->call(Client::METHOD_POST, '/tablesdb/' . $databaseId . '/tables/' . $tableId . '/columns/point', array_merge([ +// 'content-type' => 'application/json', +// 'x-appwrite-project' => $this->getProject()['$id'], +// 'x-appwrite-key' => $this->getProject()['apiKey'] +// ]), [ +// 'key' => 'pointAttr', +// 'required' => true, +// ]); +// $this->assertEquals(202, $pointColumn['headers']['status-code']); +// +// // Create line column +// $lineColumn = $this->client->call(Client::METHOD_POST, '/tablesdb/' . $databaseId . '/tables/' . $tableId . '/columns/line', array_merge([ +// 'content-type' => 'application/json', +// 'x-appwrite-project' => $this->getProject()['$id'], +// 'x-appwrite-key' => $this->getProject()['apiKey'] +// ]), [ +// 'key' => 'lineAttr', +// 'required' => true, +// ]); +// $this->assertEquals(202, $lineColumn['headers']['status-code']); +// +// // Create polygon column +// $polygonColumn = $this->client->call(Client::METHOD_POST, '/tablesdb/' . $databaseId . '/tables/' . $tableId . '/columns/polygon', array_merge([ +// 'content-type' => 'application/json', +// 'x-appwrite-project' => $this->getProject()['$id'], +// 'x-appwrite-key' => $this->getProject()['apiKey'] +// ]), [ +// 'key' => 'polyAttr', +// 'required' => true, +// ]); +// $this->assertEquals(202, $polygonColumn['headers']['status-code']); +// +// // Wait for columns to be created +// sleep(2); +// +// // Create test rows with spatial data +// $rows = [ +// [ +// '$id' => 'row1', +// 'name' => 'Test Row 1', +// 'pointAttr' => [6.0, 6.0], +// 'lineAttr' => [[1.0, 1.0], [2.0, 2.0]], +// 'polyAttr' => [[[0.0, 0.0], [10.0, 0.0], [10.0, 10.0], [0.0, 10.0], [0.0, 0.0]]] +// ], +// [ +// '$id' => 'row2', +// 'name' => 'Test Row 2', +// 'pointAttr' => [7.0, 6.0], +// 'lineAttr' => [[10.0, 10.0], [20.0, 20.0]], +// 'polyAttr' => [[[20.0, 20.0], [30.0, 20.0], [30.0, 30.0], [20.0, 30.0], [20.0, 20.0]]] +// ], +// [ +// '$id' => 'row3', +// 'name' => 'Test Row 3', +// 'pointAttr' => [25.0, 25.0], +// 'lineAttr' => [[25.0, 25.0], [35.0, 35.0]], +// 'polyAttr' => [[[40.0, 40.0], [50.0, 40.0], [50.0, 50.0], [40.0, 50.0], [40.0, 40.0]]] +// ] +// ]; +// +// foreach ($rows as $r) { +// $response = $this->client->call(Client::METHOD_POST, '/tablesdb/' . $databaseId . '/tables/' . $tableId . '/rows', array_merge([ +// 'content-type' => 'application/json', +// 'x-appwrite-project' => $this->getProject()['$id'], +// ], $this->getHeaders()), [ +// 'rowId' => $r['$id'], +// 'data' => [ +// 'name' => $r['name'], +// 'pointAttr' => $r['pointAttr'], +// 'lineAttr' => $r['lineAttr'], +// 'polyAttr' => $r['polyAttr'] +// ] +// ]); +// $this->assertEquals(201, $response['headers']['status-code']); +// } +// +// // Equality on non-spatial column (name) +// $response = $this->client->call(Client::METHOD_GET, '/tablesdb/' . $databaseId . '/tables/' . $tableId . '/rows', array_merge([ +// 'content-type' => 'application/json', +// 'x-appwrite-project' => $this->getProject()['$id'], +// ], $this->getHeaders()), [ +// 'queries' => [Query::equal('name', ['Test Row 1'])->toString()] +// ]); +// $this->assertEquals(200, $response['headers']['status-code']); +// $this->assertCount(1, $response['body']['rows']); +// $this->assertEquals('row1', $response['body']['rows'][0]['$id']); +// +// // Polygon column queries +// $response = $this->client->call(Client::METHOD_GET, '/tablesdb/' . $databaseId . '/tables/' . $tableId . '/rows', array_merge([ +// 'content-type' => 'application/json', +// 'x-appwrite-project' => $this->getProject()['$id'], +// ], $this->getHeaders()), [ +// 'queries' => [Query::equal('polyAttr', [[[[0.0, 0.0], [10.0, 0.0], [10.0, 10.0], [0.0, 10.0], [0.0, 0.0]]]])->toString()] +// ]); +// $this->assertEquals(200, $response['headers']['status-code']); +// $this->assertCount(1, $response['body']['rows']); +// $this->assertEquals('row1', $response['body']['rows'][0]['$id']); +// +// // Not equal queries +// $response = $this->client->call(Client::METHOD_GET, '/tablesdb/' . $databaseId . '/tables/' . $tableId . '/rows', array_merge([ +// 'content-type' => 'application/json', +// 'x-appwrite-project' => $this->getProject()['$id'], +// ], $this->getHeaders()), [ +// 'queries' => [Query::notEqual('pointAttr', [[6.0, 6.0]])->toString()] +// ]); +// $this->assertEquals(200, $response['headers']['status-code']); +// $this->assertCount(2, $response['body']['rows']); +// +// // contains on line (point on line) +// $response = $this->client->call(Client::METHOD_GET, '/tablesdb/' . $databaseId . '/tables/' . $tableId . '/rows', array_merge([ +// 'content-type' => 'application/json', +// 'x-appwrite-project' => $this->getProject()['$id'], +// ], $this->getHeaders()), [ +// 'queries' => [Query::contains('lineAttr', [[1.1, 1.1]])->toString()] +// ]); +// $this->assertEquals(200, $response['headers']['status-code']); +// $this->assertCount(1, $response['body']['rows']); +// $this->assertEquals('row1', $response['body']['rows'][0]['$id']); +// +// // notContains on polygon (point outside all polygons) +// $response = $this->client->call(Client::METHOD_GET, '/tablesdb/' . $databaseId . '/tables/' . $tableId . '/rows', array_merge([ +// 'content-type' => 'application/json', +// 'x-appwrite-project' => $this->getProject()['$id'], +// ], $this->getHeaders()), [ +// 'queries' => [Query::notContains('polyAttr', [[15.0, 15.0]])->toString()] +// ]); +// $this->assertEquals(200, $response['headers']['status-code']); +// $this->assertEquals(3, $response['body']['total']); +// +// // intersects on polygon (point inside row1 polygon) +// $response = $this->client->call(Client::METHOD_GET, '/tablesdb/' . $databaseId . '/tables/' . $tableId . '/rows', array_merge([ +// 'content-type' => 'application/json', +// 'x-appwrite-project' => $this->getProject()['$id'], +// ], $this->getHeaders()), [ +// 'queries' => [Query::intersects('polyAttr', [5.0, 5.0])->toString()] +// ]); +// $this->assertEquals(200, $response['headers']['status-code']); +// $this->assertEquals(1, $response['body']['total']); +// $this->assertEquals('row1', $response['body']['rows'][0]['$id']); +// +// // notIntersects on polygon (point outside all polygons) +// $response = $this->client->call(Client::METHOD_GET, '/tablesdb/' . $databaseId . '/tables/' . $tableId . '/rows', array_merge([ +// 'content-type' => 'application/json', +// 'x-appwrite-project' => $this->getProject()['$id'], +// ], $this->getHeaders()), [ +// 'queries' => [Query::notIntersects('polyAttr', [60.0, 60.0])->toString()] +// ]); +// $this->assertEquals(200, $response['headers']['status-code']); +// $this->assertEquals(3, $response['body']['total']); +// +// // overlaps on polygon (polygon overlapping row1) +// $overlapPoly = [[[5.0, 5.0], [12.0, 5.0], [12.0, 12.0], [5.0, 12.0], [5.0, 5.0]]]; +// $response = $this->client->call(Client::METHOD_GET, '/tablesdb/' . $databaseId . '/tables/' . $tableId . '/rows', array_merge([ +// 'content-type' => 'application/json', +// 'x-appwrite-project' => $this->getProject()['$id'], +// ], $this->getHeaders()), [ +// 'queries' => [Query::overlaps('polyAttr', $overlapPoly)->toString()] +// ]); +// $this->assertEquals(200, $response['headers']['status-code']); +// $this->assertEquals(1, $response['body']['total']); +// $this->assertEquals('row1', $response['body']['rows'][0]['$id']); +// +// // notOverlaps on polygon (polygon that overlaps none) +// $noOverlapPoly = [[[60.0, 60.0], [70.0, 60.0], [70.0, 70.0], [60.0, 70.0], [60.0, 60.0]]]; +// $response = $this->client->call(Client::METHOD_GET, '/tablesdb/' . $databaseId . '/tables/' . $tableId . '/rows', array_merge([ +// 'content-type' => 'application/json', +// 'x-appwrite-project' => $this->getProject()['$id'], +// ], $this->getHeaders()), [ +// 'queries' => [Query::notOverlaps('polyAttr', $noOverlapPoly)->toString()] +// ]); +// $this->assertEquals(200, $response['headers']['status-code']); +// $this->assertEquals(3, $response['body']['total']); +// +// // distance (equals) on point +// $response = $this->client->call(Client::METHOD_GET, '/tablesdb/' . $databaseId . '/tables/' . $tableId . '/rows', array_merge([ +// 'content-type' => 'application/json', +// 'x-appwrite-project' => $this->getProject()['$id'], +// ], $this->getHeaders()), [ +// 'queries' => [Query::distanceEqual('pointAttr', [6.0, 6.0], 1.0)->toString()] +// ]); +// $this->assertEquals(200, $response['headers']['status-code']); +// $this->assertEquals(1, $response['body']['total']); +// $this->assertEquals('row2', $response['body']['rows'][0]['$id']); +// +// // notDistance (outside radius) on point +// $response = $this->client->call(Client::METHOD_GET, '/tablesdb/' . $databaseId . '/tables/' . $tableId . '/rows', array_merge([ +// 'content-type' => 'application/json', +// 'x-appwrite-project' => $this->getProject()['$id'], +// ], $this->getHeaders()), [ +// 'queries' => [Query::distanceNotEqual('pointAttr', [6.0, 6.0], 1.0)->toString()] +// ]); +// $this->assertEquals(200, $response['headers']['status-code']); +// $this->assertEquals(2, $response['body']['total']); +// +// // distanceGreaterThan +// $response = $this->client->call(Client::METHOD_GET, '/tablesdb/' . $databaseId . '/tables/' . $tableId . '/rows', array_merge([ +// 'content-type' => 'application/json', +// 'x-appwrite-project' => $this->getProject()['$id'], +// ], $this->getHeaders()), [ +// 'queries' => [Query::distanceGreaterThan('pointAttr', [6.0, 6.0], 5.0)->toString()] +// ]); +// $this->assertEquals(200, $response['headers']['status-code']); +// $this->assertEquals(1, $response['body']['total']); +// +// // distanceLessThan +// $response = $this->client->call(Client::METHOD_GET, '/tablesdb/' . $databaseId . '/tables/' . $tableId . '/rows', array_merge([ +// 'content-type' => 'application/json', +// 'x-appwrite-project' => $this->getProject()['$id'], +// ], $this->getHeaders()), [ +// 'queries' => [Query::distanceLessThan('pointAttr', [6.0, 6.0], 0.5)->toString()] +// ]); +// $this->assertEquals(200, $response['headers']['status-code']); +// $this->assertEquals(1, $response['body']['total']); +// +// // crosses on line (query line crosses row1 line) +// $crossLine = [[1.0, 2.0], [2.0, 1.0]]; +// $response = $this->client->call(Client::METHOD_GET, '/tablesdb/' . $databaseId . '/tables/' . $tableId . '/rows', array_merge([ +// 'content-type' => 'application/json', +// 'x-appwrite-project' => $this->getProject()['$id'], +// ], $this->getHeaders()), [ +// 'queries' => [Query::crosses('lineAttr', $crossLine)->toString()] +// ]); +// $this->assertEquals(200, $response['headers']['status-code']); +// $this->assertEquals(1, $response['body']['total']); +// $this->assertEquals('row1', $response['body']['rows'][0]['$id']); +// +// // notCrosses on line (query line does not cross any stored lines) +// $nonCrossLine = [[0.0, 1.0], [0.0, 2.0]]; +// $response = $this->client->call(Client::METHOD_GET, '/tablesdb/' . $databaseId . '/tables/' . $tableId . '/rows', array_merge([ +// 'content-type' => 'application/json', +// 'x-appwrite-project' => $this->getProject()['$id'], +// ], $this->getHeaders()), [ +// 'queries' => [Query::notCrosses('lineAttr', $nonCrossLine)->toString()] +// ]); +// $this->assertEquals(200, $response['headers']['status-code']); +// $this->assertEquals(3, $response['body']['total']); +// +// // touches on polygon (query polygon touches row1 polygon at corner) +// $touchPoly = [[[10.0, 10.0], [20.0, 10.0], [20.0, 20.0], [10.0, 20.0], [10.0, 10.0]]]; +// $response = $this->client->call(Client::METHOD_GET, '/tablesdb/' . $databaseId . '/tables/' . $tableId . '/rows', array_merge([ +// 'content-type' => 'application/json', +// 'x-appwrite-project' => $this->getProject()['$id'], +// ], $this->getHeaders()), [ +// 'queries' => [Query::touches('polyAttr', $touchPoly)->toString()] +// ]); +// $this->assertEquals(200, $response['headers']['status-code']); +// $this->assertEquals(2, $response['body']['total']); +// $this->assertEquals('row1', $response['body']['rows'][0]['$id']); +// +// // notTouches on polygon (polygon far away should not touch) +// $farPoly = [[[60.0, 60.0], [70.0, 60.0], [70.0, 70.0], [60.0, 70.0], [60.0, 60.0]]]; +// $response = $this->client->call(Client::METHOD_GET, '/tablesdb/' . $databaseId . '/tables/' . $tableId . '/rows', array_merge([ +// 'content-type' => 'application/json', +// 'x-appwrite-project' => $this->getProject()['$id'], +// ], $this->getHeaders()), [ +// 'queries' => [Query::notTouches('polyAttr', $farPoly)->toString()] +// ]); +// $this->assertEquals(200, $response['headers']['status-code']); +// $this->assertEquals(3, $response['body']['total']); +// +// // Select specific columns +// $response = $this->client->call(Client::METHOD_GET, '/tablesdb/' . $databaseId . '/tables/' . $tableId . '/rows', array_merge([ +// 'content-type' => 'application/json', +// 'x-appwrite-project' => $this->getProject()['$id'], +// ], $this->getHeaders()), [ +// 'queries' => [Query::select(['name', 'pointAttr'])->toString()] +// ]); +// $this->assertEquals(200, $response['headers']['status-code']); +// $this->assertCount(3, $response['body']['rows']); +// foreach ($response['body']['rows'] as $doc) { +// $this->assertArrayHasKey('name', $doc); +// $this->assertArrayHasKey('pointAttr', $doc); +// $this->assertArrayNotHasKey('lineAttr', $doc); +// $this->assertArrayNotHasKey('polyAttr', $doc); +// } +// +// // Order by name +// $response = $this->client->call(Client::METHOD_GET, '/tablesdb/' . $databaseId . '/tables/' . $tableId . '/rows', array_merge([ +// 'content-type' => 'application/json', +// 'x-appwrite-project' => $this->getProject()['$id'], +// ], $this->getHeaders()), [ +// 'queries' => [Query::orderAsc('name')->toString()] +// ]); +// $this->assertEquals(200, $response['headers']['status-code']); +// $this->assertCount(3, $response['body']['rows']); +// $this->assertEquals('Test Row 1', $response['body']['rows'][0]['name']); +// $this->assertEquals('Test Row 2', $response['body']['rows'][1]['name']); +// $this->assertEquals('Test Row 3', $response['body']['rows'][2]['name']); +// +// // Limit results +// $response = $this->client->call(Client::METHOD_GET, '/tablesdb/' . $databaseId . '/tables/' . $tableId . '/rows', array_merge([ +// 'content-type' => 'application/json', +// 'x-appwrite-project' => $this->getProject()['$id'], +// ], $this->getHeaders()), [ +// 'queries' => [Query::limit(2)->toString()] +// ]); +// $this->assertEquals(200, $response['headers']['status-code']); +// $this->assertCount(2, $response['body']['rows']); +// +// // Offset results +// $response = $this->client->call(Client::METHOD_GET, '/tablesdb/' . $databaseId . '/tables/' . $tableId . '/rows', array_merge([ +// 'content-type' => 'application/json', +// 'x-appwrite-project' => $this->getProject()['$id'], +// ], $this->getHeaders()), [ +// 'queries' => [Query::offset(1)->toString(), Query::limit(2)->toString()] +// ]); +// $this->assertEquals(200, $response['headers']['status-code']); +// $this->assertCount(2, $response['body']['rows']); +// +// // Complex query with multiple conditions +// $response = $this->client->call(Client::METHOD_GET, '/tablesdb/' . $databaseId . '/tables/' . $tableId . '/rows', array_merge([ +// 'content-type' => 'application/json', +// 'x-appwrite-project' => $this->getProject()['$id'], +// ], $this->getHeaders()), [ +// 'queries' => [ +// Query::select(['name', 'pointAttr'])->toString(), +// Query::orderAsc('name')->toString(), +// Query::limit(1)->toString() +// ] +// ]); +// $this->assertEquals(200, $response['headers']['status-code']); +// $this->assertCount(1, $response['body']['rows']); +// $this->assertEquals('Test Row 1', $response['body']['rows'][0]['name']); +// +// // Query with no results +// $response = $this->client->call(Client::METHOD_GET, '/tablesdb/' . $databaseId . '/tables/' . $tableId . '/rows', array_merge([ +// 'content-type' => 'application/json', +// 'x-appwrite-project' => $this->getProject()['$id'], +// ], $this->getHeaders()), [ +// 'queries' => [Query::equal('name', ['Non-existent Row'])->toString()] +// ]); +// $this->assertEquals(200, $response['headers']['status-code']); +// $this->assertCount(0, $response['body']['rows']); +// +// // Cleanup +// $this->client->call(Client::METHOD_DELETE, '/tablesdb/' . $databaseId . '/tables/' . $tableId, array_merge([ +// 'content-type' => 'application/json', +// 'x-appwrite-project' => $this->getProject()['$id'], +// 'x-appwrite-key' => $this->getProject()['apiKey'] +// ])); +// } + +// public function testSpatialIndex(): void +// { +// $database = $this->client->call(Client::METHOD_POST, '/tablesdb', [ +// 'content-type' => 'application/json', +// 'x-appwrite-project' => $this->getProject()['$id'], +// 'x-appwrite-key' => $this->getProject()['apiKey'] +// ], [ +// 'databaseId' => ID::unique(), +// 'name' => 'Spatial Index Test DB' +// ]); +// $this->assertEquals(201, $database['headers']['status-code']); +// $databaseId = $database['body']['$id']; +// +// $table = $this->client->call(Client::METHOD_POST, '/tablesdb/' . $databaseId . '/tables', array_merge([ +// 'content-type' => 'application/json', +// 'x-appwrite-project' => $this->getProject()['$id'], +// 'x-appwrite-key' => $this->getProject()['apiKey'] +// ]), [ +// 'tableId' => ID::unique(), +// 'name' => 'SpatialIdx', +// 'rowSecurity' => true, +// 'permissions' => [ +// Permission::create(Role::any()), +// Permission::read(Role::any()), +// Permission::update(Role::any()), +// Permission::delete(Role::any()), +// ], +// ]); +// $this->assertEquals(201, $table['headers']['status-code']); +// $tableId = $table['body']['$id']; +// +// // Create spatial columns: one required, one optional +// $reqPoint = $this->client->call(Client::METHOD_POST, '/tablesdb/' . $databaseId . '/tables/' . $tableId . '/columns/point', array_merge([ +// 'content-type' => 'application/json', +// 'x-appwrite-project' => $this->getProject()['$id'], +// 'x-appwrite-key' => $this->getProject()['apiKey'] +// ]), [ +// 'key' => 'pRequired', +// 'required' => true, +// ]); +// $this->assertEquals(202, $reqPoint['headers']['status-code']); +// +// $optPoint = $this->client->call(Client::METHOD_POST, '/tablesdb/' . $databaseId . '/tables/' . $tableId . '/columns/point', array_merge([ +// 'content-type' => 'application/json', +// 'x-appwrite-project' => $this->getProject()['$id'], +// 'x-appwrite-key' => $this->getProject()['apiKey'] +// ]), [ +// 'key' => 'pOptional', +// 'required' => false, +// ]); +// $this->assertEquals(202, $optPoint['headers']['status-code']); +// +// // Ensure columns are available +// sleep(2); +// +// // Create index on required spatial column (should succeed) +// $okIndex = $this->client->call(Client::METHOD_POST, '/tablesdb/' . $databaseId . '/tables/' . $tableId . '/indexes', array_merge([ +// 'content-type' => 'application/json', +// 'x-appwrite-project' => $this->getProject()['$id'], +// 'x-appwrite-key' => $this->getProject()['apiKey'] +// ]), [ +// 'key' => 'idx_required_point', +// 'type' => Database::INDEX_SPATIAL, +// 'columns' => ['pRequired'], +// ]); +// $this->assertEquals(202, $okIndex['headers']['status-code']); +// +// // Create index on optional spatial column (should fail in case of mariadb) +// $badIndex = $this->client->call(Client::METHOD_POST, '/tablesdb/' . $databaseId . '/tables/' . $tableId . '/indexes', array_merge([ +// 'content-type' => 'application/json', +// 'x-appwrite-project' => $this->getProject()['$id'], +// 'x-appwrite-key' => $this->getProject()['apiKey'] +// ]), [ +// 'key' => 'idx_optional_point', +// 'type' => Database::INDEX_SPATIAL, +// 'columns' => ['pOptional'], +// ]); +// $this->assertEquals(400, $badIndex['headers']['status-code']); +// +// // making it required to create index on it +// $updated = $this->client->call(Client::METHOD_PATCH, '/tablesdb/' . $databaseId . '/tables/' . $tableId . '/columns/point/'.'pOptional', array_merge([ +// 'content-type' => 'application/json', +// 'x-appwrite-project' => $this->getProject()['$id'], +// 'x-appwrite-key' => $this->getProject()['apiKey'] +// ]), [ +// 'required' => true, +// 'default' => null +// ]); +// $this->assertEquals(200, $updated['headers']['status-code']); +// +// sleep(2); +// +// $retriedIndex = $this->client->call(Client::METHOD_POST, '/tablesdb/' . $databaseId . '/tables/' . $tableId . '/indexes', array_merge([ +// 'content-type' => 'application/json', +// 'x-appwrite-project' => $this->getProject()['$id'], +// 'x-appwrite-key' => $this->getProject()['apiKey'] +// ]), [ +// 'key' => 'idx_optional_point', +// 'type' => Database::INDEX_SPATIAL, +// 'columns' => ['pOptional'], +// ]); +// $this->assertEquals(202, $retriedIndex['headers']['status-code']); +// +// // Cleanup +// $this->client->call(Client::METHOD_DELETE, '/tablesdb/' . $databaseId . '/tables/' . $tableId, array_merge([ +// 'content-type' => 'application/json', +// 'x-appwrite-project' => $this->getProject()['$id'], +// 'x-appwrite-key' => $this->getProject()['apiKey'] +// ])); +// $this->client->call(Client::METHOD_DELETE, '/tablesdb/' . $databaseId, array_merge([ +// 'content-type' => 'application/json', +// 'x-appwrite-project' => $this->getProject()['$id'], +// 'x-appwrite-key' => $this->getProject()['apiKey'] +// ])); +// } + +// public function testUpdateSpatialColumns(): void +// { +// $database = $this->client->call(Client::METHOD_POST, '/tablesdb', [ +// 'content-type' => 'application/json', +// 'x-appwrite-project' => $this->getProject()['$id'], +// 'x-appwrite-key' => $this->getProject()['apiKey'] +// ], [ +// 'databaseId' => ID::unique(), +// 'name' => 'Update Spatial Columns Test Database' +// ]); +// +// $databaseId = $database['body']['$id']; +// +// // Create table with spatial columns +// $table = $this->client->call(Client::METHOD_POST, '/tablesdb/' . $databaseId . '/tables', array_merge([ +// 'content-type' => 'application/json', +// 'x-appwrite-project' => $this->getProject()['$id'], +// 'x-appwrite-key' => $this->getProject()['apiKey'] +// ]), [ +// 'tableId' => ID::unique(), +// 'name' => 'Update Spatial Columns Table', +// 'rowSecurity' => true, +// 'permissions' => [ +// Permission::create(Role::user($this->getUser()['$id'])), +// Permission::read(Role::user($this->getUser()['$id'])), +// Permission::update(Role::user($this->getUser()['$id'])), +// Permission::delete(Role::user($this->getUser()['$id'])), +// ], +// ]); +// +// $tableId = $table['body']['$id']; +// +// // Create string column +// $this->client->call(Client::METHOD_POST, '/tablesdb/' . $databaseId . '/tables/' . $tableId . '/columns/string', array_merge([ +// 'content-type' => 'application/json', +// 'x-appwrite-project' => $this->getProject()['$id'], +// 'x-appwrite-key' => $this->getProject()['apiKey'] +// ]), [ +// 'key' => 'name', +// 'size' => 256, +// 'required' => true, +// ]); +// +// // Create point column +// $this->client->call(Client::METHOD_POST, '/tablesdb/' . $databaseId . '/tables/' . $tableId . '/columns/point', array_merge([ +// 'content-type' => 'application/json', +// 'x-appwrite-project' => $this->getProject()['$id'], +// 'x-appwrite-key' => $this->getProject()['apiKey'] +// ]), [ +// 'key' => 'location', +// 'required' => true, +// ]); +// +// // Create line column +// $this->client->call(Client::METHOD_POST, '/tablesdb/' . $databaseId . '/tables/' . $tableId . '/columns/line', array_merge([ +// 'content-type' => 'application/json', +// 'x-appwrite-project' => $this->getProject()['$id'], +// 'x-appwrite-key' => $this->getProject()['apiKey'] +// ]), [ +// 'key' => 'route', +// 'required' => false, +// ]); +// +// // Create polygon column +// $this->client->call(Client::METHOD_POST, '/tablesdb/' . $databaseId . '/tables/' . $tableId . '/columns/polygon', array_merge([ +// 'content-type' => 'application/json', +// 'x-appwrite-project' => $this->getProject()['$id'], +// 'x-appwrite-key' => $this->getProject()['apiKey'] +// ]), [ +// 'key' => 'area', +// 'required' => true, +// ]); +// +// sleep(2); +// +// // Test 1: Update point column - change required status +// $response = $this->client->call(Client::METHOD_PATCH, '/tablesdb/' . $databaseId . '/tables/' . $tableId . '/columns/point/location', array_merge([ +// 'content-type' => 'application/json', +// 'x-appwrite-project' => $this->getProject()['$id'], +// 'x-appwrite-key' => $this->getProject()['apiKey'] +// ]), [ +// 'required' => false, +// 'default' => null, +// ]); +// +// $this->assertEquals(200, $response['headers']['status-code']); +// $this->assertEquals(false, $response['body']['required']); +// +// // Test 2: Update line column - change required status and add default value +// $response = $this->client->call(Client::METHOD_PATCH, '/tablesdb/' . $databaseId . '/tables/' . $tableId . '/columns/line/route', array_merge([ +// 'content-type' => 'application/json', +// 'x-appwrite-project' => $this->getProject()['$id'], +// 'x-appwrite-key' => $this->getProject()['apiKey'] +// ]), [ +// 'required' => false, +// 'default' => [[0, 0], [1, 1]], +// ]); +// +// $this->assertEquals(200, $response['headers']['status-code']); +// $this->assertEquals(false, $response['body']['required']); +// $this->assertEquals([[0, 0], [1, 1]], $response['body']['default']); +// +// // Test 3: Update polygon column - change key name +// $response = $this->client->call(Client::METHOD_PATCH, '/tablesdb/' . $databaseId . '/tables/' . $tableId . '/columns/polygon/area', array_merge([ +// 'content-type' => 'application/json', +// 'x-appwrite-project' => $this->getProject()['$id'], +// 'x-appwrite-key' => $this->getProject()['apiKey'] +// ]), [ +// 'newKey' => 'coverage', +// 'default' => null, +// 'required' => false +// ]); +// +// $this->assertEquals(200, $response['headers']['status-code']); +// $this->assertEquals('coverage', $response['body']['key']); +// +// // Test 4: Update point column - add default value +// $response = $this->client->call(Client::METHOD_PATCH, '/tablesdb/' . $databaseId . '/tables/' . $tableId . '/columns/point/location', array_merge([ +// 'content-type' => 'application/json', +// 'x-appwrite-project' => $this->getProject()['$id'], +// 'x-appwrite-key' => $this->getProject()['apiKey'] +// ]), [ +// 'default' => [0, 0], +// 'required' => false +// ]); +// $this->assertEquals(200, $response['headers']['status-code']); +// $this->assertEquals([0, 0], $response['body']['default']); +// +// // Test 5: Verify column updates by creating a row +// $response = $this->client->call(Client::METHOD_POST, '/tablesdb/' . $databaseId . '/tables/' . $tableId . '/rows', array_merge([ +// 'content-type' => 'application/json', +// 'x-appwrite-project' => $this->getProject()['$id'], +// ], $this->getHeaders()), [ +// 'rowId' => ID::unique(), +// 'data' => [ +// 'name' => 'Test Location', +// 'coverage' => [[[0, 0], [10, 0], [10, 10], [0, 10], [0, 0]]] +// ] +// ]); +// +// $this->assertEquals(201, $response['headers']['status-code']); +// $this->assertEquals([0, 0], $response['body']['location']); // Should use default value +// $this->assertEquals([[0, 0], [1, 1]], $response['body']['route']); // Should use default value +// +// // Cleanup +// $this->client->call(Client::METHOD_DELETE, '/tablesdb/' . $databaseId . '/tables/' . $tableId, array_merge([ +// 'content-type' => 'application/json', +// 'x-appwrite-project' => $this->getProject()['$id'], +// 'x-appwrite-key' => $this->getProject()['apiKey'] +// ])); +// +// $this->client->call(Client::METHOD_DELETE, '/tablesdb/' . $databaseId, array_merge([ +// 'content-type' => 'application/json', +// 'x-appwrite-project' => $this->getProject()['$id'], +// 'x-appwrite-key' => $this->getProject()['apiKey'] +// ])); +// } +// public function testSpatialDistanceInMeter(): void +// { +// $headers = [ +// 'content-type' => 'application/json', +// 'x-appwrite-project' => $this->getProject()['$id'], +// 'x-appwrite-key' => $this->getProject()['apiKey'] +// ]; +// +// // Create database +// $database = $this->client->call(Client::METHOD_POST, '/tablesdb', $headers, [ +// 'databaseId' => ID::unique(), +// 'name' => 'Spatial Distance Meters Database' +// ]); +// $databaseId = $database['body']['$id']; +// +// // Create table +// $table = $this->client->call(Client::METHOD_POST, "/tablesdb/{$databaseId}/tables", $headers, [ +// 'tableId' => ID::unique(), +// 'name' => 'Spatial Distance Meters Table', +// 'rowSecurity' => true, +// 'permissions' => [ +// Permission::create(Role::any()), +// Permission::read(Role::any()), +// Permission::update(Role::any()), +// Permission::delete(Role::any()), +// ], +// ]); +// $tableId = $table['body']['$id']; +// +// // Create point column +// $resp = $this->client->call(Client::METHOD_POST, "/tablesdb/{$databaseId}/tables/{$tableId}/columns/point", $headers, [ +// 'key' => 'loc', +// 'required' => true, +// ]); +// $this->assertEquals(202, $resp['headers']['status-code']); +// +// sleep(2); +// +// // Create spatial index +// $indexResp = $this->client->call(Client::METHOD_POST, "/tablesdb/{$databaseId}/tables/{$tableId}/indexes", $headers, [ +// 'key' => 'idx_loc', +// 'type' => Database::INDEX_SPATIAL, +// 'columns' => ['loc'], +// ]); +// $this->assertEquals(202, $indexResp['headers']['status-code']); +// +// +// // Insert two points ~1km apart +// $points = [ +// 'p0' => [0.0000, 0.0000], +// 'p1' => [0.0090, 0.0000] +// ]; +// +// foreach ($points as $id => $loc) { +// $rowResp = $this->client->call(Client::METHOD_POST, "/tablesdb/{$databaseId}/tables/{$tableId}/rows", $headers, [ +// 'rowId' => $id, +// 'data' => ['loc' => $loc] +// ]); +// $this->assertEquals(201, $rowResp['headers']['status-code']); +// } +// +// // Queries +// $queries = [ +// 'within1_5km' => Query::distanceLessThan('loc', [0.0, 0.0], 1500, true), +// 'within500m' => Query::distanceLessThan('loc', [0.0, 0.0], 500, true), +// 'greater500m' => Query::distanceGreaterThan('loc', [0.0, 0.0], 500, true), +// 'equal0m' => Query::distanceEqual('loc', [0.0, 0.0], 0, true), +// 'notEqual0m' => Query::distanceNotEqual('loc', [0.0, 0.0], 0, true), +// ]; +// +// // Assertions +// $results = [ +// 'within1_5km' => 2, +// 'within500m' => 1, +// 'greater500m' => 1, +// 'equal0m' => 'p0', +// 'notEqual0m' => 'p1' +// ]; +// +// foreach ($queries as $key => $query) { +// $resp = $this->client->call(Client::METHOD_GET, "/tablesdb/{$databaseId}/tables/{$tableId}/rows", $headers, [ +// 'queries' => [$query->toString()] +// ]); +// $this->assertEquals(200, $resp['headers']['status-code']); +// if (is_int($results[$key])) { +// $this->assertCount($results[$key], $resp['body']['rows']); +// } else { +// $this->assertEquals($results[$key], $resp['body']['rows'][0]['$id']); +// } +// } +// +// // Cleanup +// $this->client->call(Client::METHOD_DELETE, "/tablesdb/{$databaseId}/tables/{$tableId}", $headers); +// $this->client->call(Client::METHOD_DELETE, "/tablesdb/{$databaseId}", $headers); +// } + } diff --git a/tests/e2e/Services/Databases/TablesDB/DatabasesCustomClientTest.php b/tests/e2e/Services/Databases/TablesDB/DatabasesCustomClientTest.php index b8b2c8b7ec..b2b6a57073 100644 --- a/tests/e2e/Services/Databases/TablesDB/DatabasesCustomClientTest.php +++ b/tests/e2e/Services/Databases/TablesDB/DatabasesCustomClientTest.php @@ -906,158 +906,4 @@ class DatabasesCustomClientTest extends Scope $this->assertEquals(200, $response['headers']['status-code']); } - - public function testModifyCreatedAtUpdatedAtSingleRow(): void - { - $database = $this->client->call(Client::METHOD_POST, '/tablesdb', [ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - 'x-appwrite-key' => $this->getProject()['apiKey'] - ], [ - 'databaseId' => ID::unique(), - 'name' => 'Test Database' - ]); - - $databaseId = $database['body']['$id']; - - $table = $this->client->call(Client::METHOD_POST, '/tablesdb/' . $databaseId . '/tables', array_merge([ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - 'x-appwrite-key' => $this->getProject()['apiKey'] - ]), [ - 'tableId' => ID::unique(), - 'name' => 'Test Table', - 'rowSecurity' => true, - 'permissions' => [ - Permission::create(Role::user($this->getUser()['$id'])), - Permission::read(Role::user($this->getUser()['$id'])), - Permission::update(Role::user($this->getUser()['$id'])), - Permission::delete(Role::user($this->getUser()['$id'])), - ], - ]); - $tableId = $table['body']['$id']; - - // Create string column - $this->client->call(Client::METHOD_POST, '/tablesdb/' . $databaseId . '/tables/' . $tableId . '/columns/string', array_merge([ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - 'x-appwrite-key' => $this->getProject()['apiKey'] - ]), [ - 'key' => 'title', - 'size' => 256, - 'required' => true, - ]); - - sleep(1); - - // Test 1: Try to create row with $createdAt - should return 400 - $response = $this->client->call(Client::METHOD_POST, '/tablesdb/' . $databaseId . '/tables/' . $tableId . '/rows', array_merge([ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - ], $this->getHeaders()), [ - 'rowId' => ID::unique(), - 'data' => [ - 'title' => 'Test Movie', - '$createdAt' => '2000-01-01T10:00:00.000+00:00' - ] - ]); - - $this->assertEquals(400, $response['headers']['status-code']); - - // Test 2: Try to create row with $updatedAt - should return 400 - $response = $this->client->call(Client::METHOD_POST, '/tablesdb/' . $databaseId . '/tables/' . $tableId . '/rows', array_merge([ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - ], $this->getHeaders()), [ - 'rowId' => ID::unique(), - 'data' => [ - 'title' => 'Test Movie', - '$updatedAt' => '2000-01-01T10:00:00.000+00:00' - ] - ]); - - $this->assertEquals(400, $response['headers']['status-code']); - - // Test 3: Try to create row with both $createdAt and $updatedAt - should return 400 - $response = $this->client->call(Client::METHOD_POST, '/tablesdb/' . $databaseId . '/tables/' . $tableId . '/rows', array_merge([ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - ], $this->getHeaders()), [ - 'rowId' => ID::unique(), - 'data' => [ - 'title' => 'Test Movie', - '$createdAt' => '2000-01-01T10:00:00.000+00:00', - '$updatedAt' => '2000-01-01T10:00:00.000+00:00' - ] - ]); - - $this->assertEquals(400, $response['headers']['status-code']); - - // Test 4: Create a valid row first - $validRow = $this->client->call(Client::METHOD_POST, '/tablesdb/' . $databaseId . '/tables/' . $tableId . '/rows', array_merge([ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - ], $this->getHeaders()), [ - 'rowId' => ID::unique(), - 'data' => [ - 'title' => 'Valid Movie' - ] - ]); - - $this->assertEquals(201, $validRow['headers']['status-code']); - $rowId = $validRow['body']['$id']; - - // Test 5: Try to update row with $createdAt - should return 400 - $response = $this->client->call(Client::METHOD_PATCH, '/tablesdb/' . $databaseId . '/tables/' . $tableId . '/rows/' . $rowId, array_merge([ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - ], $this->getHeaders()), [ - 'data' => [ - 'title' => 'Updated Movie', - '$createdAt' => '2000-01-01T10:00:00.000+00:00' - ] - ]); - - $this->assertEquals(400, $response['headers']['status-code']); - - // Test 6: Try to update row with $updatedAt - should return 400 - $response = $this->client->call(Client::METHOD_PATCH, '/tablesdb/' . $databaseId . '/tables/' . $tableId . '/rows/' . $rowId, array_merge([ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - ], $this->getHeaders()), [ - 'data' => [ - 'title' => 'Updated Movie', - '$updatedAt' => '2000-01-01T10:00:00.000+00:00' - ] - ]); - - $this->assertEquals(400, $response['headers']['status-code']); - - // Test 7: Try to update row with both $createdAt and $updatedAt - should return 400 - $response = $this->client->call(Client::METHOD_PATCH, '/tablesdb/' . $databaseId . '/tables/' . $tableId . '/rows/' . $rowId, array_merge([ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - ], $this->getHeaders()), [ - 'data' => [ - 'title' => 'Updated Movie', - '$createdAt' => '2000-01-01T10:00:00.000+00:00', - '$updatedAt' => '2000-01-01T10:00:00.000+00:00' - ] - ]); - - $this->assertEquals(400, $response['headers']['status-code']); - - // Cleanup - $this->client->call(Client::METHOD_DELETE, '/tablesdb/' . $databaseId . '/tables/' . $tableId, array_merge([ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - 'x-appwrite-key' => $this->getProject()['apiKey'] - ])); - - $this->client->call(Client::METHOD_DELETE, '/tablesdb/' . $databaseId, array_merge([ - 'content-type' => 'application/json', - 'x-appwrite-project' => $this->getProject()['$id'], - 'x-appwrite-key' => $this->getProject()['apiKey'] - ])); - } } diff --git a/tests/e2e/Services/Databases/TablesDB/DatabasesCustomServerTest.php b/tests/e2e/Services/Databases/TablesDB/DatabasesCustomServerTest.php index 685360e65e..0583850036 100644 --- a/tests/e2e/Services/Databases/TablesDB/DatabasesCustomServerTest.php +++ b/tests/e2e/Services/Databases/TablesDB/DatabasesCustomServerTest.php @@ -6166,4 +6166,569 @@ class DatabasesCustomServerTest extends Scope 'x-appwrite-key' => $this->getProject()['apiKey'] ])); } + + public function testSpatialBulkOperations(): void + { + // Create database + $database = $this->client->call(Client::METHOD_POST, '/tablesdb', [ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'] + ], [ + 'databaseId' => ID::unique(), + 'name' => 'Spatial Bulk Operations Test Database' + ]); + + $this->assertNotEmpty($database['body']['$id']); + $databaseId = $database['body']['$id']; + + // Create table with spatial columns + $table = $this->client->call(Client::METHOD_POST, '/tablesdb/' . $databaseId . '/tables', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'] + ]), [ + 'tableId' => ID::unique(), + 'name' => 'Spatial Bulk Operations Table', + 'rowSecurity' => true, + 'permissions' => [ + Permission::create(Role::any()), + Permission::read(Role::any()), + Permission::delete(Role::any()), + Permission::update(Role::any()), + ], + ]); + + $this->assertEquals(201, $table['headers']['status-code']); + $tableId = $table['body']['$id']; + + // Create string column + $nameColumn = $this->client->call(Client::METHOD_POST, '/tablesdb/' . $databaseId . '/tables/' . $tableId . '/columns/string', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'] + ]), [ + 'key' => 'name', + 'size' => 256, + 'required' => true, + ]); + + $this->assertEquals(202, $nameColumn['headers']['status-code']); + + // Create point column + $pointColumn = $this->client->call(Client::METHOD_POST, '/tablesdb/' . $databaseId . '/tables/' . $tableId . '/columns/point', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'] + ]), [ + 'key' => 'location', + 'required' => true, + ]); + + $this->assertEquals(202, $pointColumn['headers']['status-code']); + + // Create polygon column + $polygonColumn = $this->client->call(Client::METHOD_POST, '/tablesdb/' . $databaseId . '/tables/' . $tableId . '/columns/polygon', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'] + ]), [ + 'key' => 'area', + 'required' => false, + ]); + + $this->assertEquals(202, $polygonColumn['headers']['status-code']); + + // Wait for columns to be created + sleep(2); + + // Test 1: Bulk create with spatial data + $spatialRows = []; + for ($i = 0; $i < 5; $i++) { + $spatialRows[] = [ + '$id' => ID::unique(), + 'name' => 'Location ' . $i, + 'location' => [10.0 + $i, 20.0 + $i], // POINT + 'area' => [ + [10.0 + $i, 20.0 + $i], + [11.0 + $i, 20.0 + $i], + [11.0 + $i, 21.0 + $i], + [10.0 + $i, 21.0 + $i], + [10.0 + $i, 20.0 + $i] + ] // POLYGON + ]; + } + + $response = $this->client->call(Client::METHOD_POST, "/tablesdb/{$databaseId}/tables/{$tableId}/rows", array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), [ + 'rows' => $spatialRows, + ]); + + $this->assertEquals(201, $response['headers']['status-code']); + $this->assertCount(5, $response['body']['rows']); + + // Verify created rows have proper spatial data + foreach ($response['body']['rows'] as $index => $row) { + $this->assertNotEmpty($row['$id']); + $this->assertNotEmpty($row['name']); + $this->assertIsArray($row['location']); + $this->assertIsArray($row['area']); + $this->assertCount(2, $row['location']); // POINT has 2 coordinates + + // Check polygon structure - it might be stored as an array of arrays + if (is_array($row['area'][0])) { + $this->assertGreaterThan(1, count($row['area'][0])); // POLYGON has multiple points + } else { + $this->assertGreaterThan(1, count($row['area'])); // POLYGON has multiple points + } + + $this->assertEquals('Location ' . $index, $row['name']); + $this->assertEquals([10.0 + $index, 20.0 + $index], $row['location']); + } + + // Test 2: Bulk update with spatial data + $response = $this->client->call(Client::METHOD_PATCH, '/tablesdb/' . $databaseId . '/tables/' . $tableId . '/rows', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), [ + 'data' => [ + 'name' => 'Updated Location', + 'location' => [15.0, 25.0], // New POINT + 'area' => [ + [15.0, 25.0], + [16.0, 25.0], + [16.0, 26.0], + [15.0, 26.0], + [15.0, 25.0] + ] // New POLYGON + ], + ]); + + $this->assertEquals(200, $response['headers']['status-code']); + $this->assertCount(5, $response['body']['rows']); + + // Verify updated rows + foreach ($response['body']['rows'] as $row) { + $this->assertEquals('Updated Location', $row['name']); + $this->assertEquals([15.0, 25.0], $row['location']); + // The area might be stored as an array of arrays, so check the first element + $this->assertIsArray($row['area']); + if (is_array($row['area'][0])) { + // If it's an array of arrays, check the first polygon + $this->assertEquals([ + [15.0, 25.0], + [16.0, 25.0], + [16.0, 26.0], + [15.0, 26.0], + [15.0, 25.0] + ], $row['area'][0]); + } else { + // If it's a direct array, check the whole thing + $this->assertEquals([ + [15.0, 25.0], + [16.0, 25.0], + [16.0, 26.0], + [15.0, 26.0], + [15.0, 25.0] + ], $row['area']); + } + } + + // Test 3: Bulk upsert with spatial data + $upsertRows = [ + [ + '$id' => 'upsert1', + 'name' => 'Upsert Location 1', + 'location' => [30.0, 40.0], + 'area' => [ + [30.0, 40.0], + [31.0, 40.0], + [31.0, 41.0], + [30.0, 41.0], + [30.0, 40.0] + ] + ], + [ + '$id' => 'upsert2', + 'name' => 'Upsert Location 2', + 'location' => [35.0, 45.0], + 'area' => [ + [35.0, 45.0], + [36.0, 45.0], + [36.0, 46.0], + [35.0, 46.0], + [35.0, 45.0] + ] + ] + ]; + + $response = $this->client->call(Client::METHOD_PUT, '/tablesdb/' . $databaseId . '/tables/' . $tableId . '/rows', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), [ + 'rows' => $upsertRows, + ]); + + $this->assertEquals(200, $response['headers']['status-code']); + $this->assertCount(2, $response['body']['rows']); + + // Verify upserted rows + foreach ($response['body']['rows'] as $row) { + $this->assertNotEmpty($row['$id']); + $this->assertIsArray($row['location']); + $this->assertIsArray($row['area']); + + // Verify the spatial data structure + $this->assertCount(2, $row['location']); // POINT has 2 coordinates + if (is_array($row['area'][0])) { + $this->assertGreaterThan(1, count($row['area'][0])); // POLYGON has multiple points + } else { + $this->assertGreaterThan(1, count($row['area'])); // POLYGON has multiple points + } + } + + // Test 4: Edge cases for spatial bulk operations + + // Test 4a: Invalid point coordinates (should fail) + $response = $this->client->call(Client::METHOD_POST, "/tablesdb/{$databaseId}/tables/{$tableId}/rows", array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), [ + 'rows' => [ + [ + '$id' => ID::unique(), + 'name' => 'Invalid Point', + 'location' => [1000.0, 2000.0], // Invalid coordinates + 'area' => [ + [10.0, 20.0], + [11.0, 20.0], + [11.0, 21.0], + [10.0, 21.0], + [10.0, 20.0] + ] + ] + ], + ]); + + // Coordinates are not validated strictly; creation should succeed + $this->assertEquals(201, $response['headers']['status-code']); + + // Test 4b: Invalid polygon (insufficient points - should fail) + $response = $this->client->call(Client::METHOD_POST, "/tablesdb/{$databaseId}/tables/{$tableId}/rows", array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), [ + 'rows' => [ + [ + '$id' => ID::unique(), + 'name' => 'Invalid Polygon', + 'location' => [10.0, 20.0], + 'area' => [ + [10.0, 20.0], + [11.0, 20.0] + ] + ] + ], + ]); + + $this->assertEquals(400, $response['headers']['status-code']); + + // Test 4c: Missing required location (should fail) + $response = $this->client->call(Client::METHOD_POST, "/tablesdb/{$databaseId}/tables/{$tableId}/rows", array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), [ + 'rows' => [ + [ + '$id' => ID::unique(), + 'name' => 'Missing Location', + // Missing required 'location' attribute + 'area' => [ + [10.0, 20.0], + [11.0, 20.0], + [11.0, 21.0], + [10.0, 21.0], + [10.0, 20.0] + ] + ] + ], + ]); + + // This should fail due to missing required attribute + $this->assertEquals(400, $response['headers']['status-code']); + + // Test 4d: Mixed valid and invalid rows in bulk (should fail) + $response = $this->client->call(Client::METHOD_POST, "/tablesdb/{$databaseId}/tables/{$tableId}/rows", array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), [ + 'rows' => [ + [ + '$id' => ID::unique(), + 'name' => 'Valid Row', + 'location' => [10.0, 20.0], + 'area' => [ + [10.0, 20.0], + [11.0, 20.0], + [11.0, 21.0], + [10.0, 21.0], + [10.0, 20.0] + ] + ], + [ + '$id' => ID::unique(), + 'name' => 'Invalid Row', + // Missing required 'location' attribute + 'area' => [ + [10.0, 20.0], + [11.0, 20.0], + [11.0, 21.0], + [10.0, 21.0], + [10.0, 20.0] + ] + ] + ], + ]); + + // This should fail due to mixed valid/invalid rows + $this->assertEquals(400, $response['headers']['status-code']); + + // Test 4e: Very large spatial data (stress test) + $largePolygon = []; + for ($i = 0; $i < 1000; $i++) { + $largePolygon[] = [$i * 0.001, $i * 0.001]; + } + $largePolygon[] = [0, 0]; // Close the polygon + + $response = $this->client->call(Client::METHOD_POST, "/tablesdb/{$databaseId}/tables/{$tableId}/rows", array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), [ + 'rows' => [ + [ + '$id' => ID::unique(), + 'name' => 'Large Polygon Test', + 'location' => [0.0, 0.0], + 'area' => $largePolygon + ] + ], + ]); + + $this->assertEquals(201, $response['headers']['status-code']); + + // Test 4f: Null values in spatial attributes (should fail) + $response = $this->client->call(Client::METHOD_POST, "/tablesdb/{$databaseId}/tables/{$tableId}/rows", array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), [ + 'rows' => [ + [ + '$id' => ID::unique(), + 'name' => 'Null Values Test', + 'location' => null, // Null point + 'area' => null // Null polygon + ] + ], + ]); + + // This should fail due to null values + $this->assertEquals(400, $response['headers']['status-code']); + + // Test 4g: Bulk operations with spatial data exceeding limits + $largeBulkRows = []; + for ($i = 0; $i < 100; $i++) { + $largeBulkRows[] = [ + '$id' => ID::unique(), + 'name' => 'Bulk Test ' . $i, + 'location' => [$i * 0.1, $i * 0.1], + 'area' => [ + [$i * 0.1, $i * 0.1], + [($i + 1) * 0.1, $i * 0.1], + [($i + 1) * 0.1, ($i + 1) * 0.1], + [$i * 0.1, ($i + 1) * 0.1], + [$i * 0.1, $i * 0.1] + ] + ]; + } + + $response = $this->client->call(Client::METHOD_POST, "/tablesdb/{$databaseId}/tables/{$tableId}/rows", array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), [ + 'rows' => $largeBulkRows, + ]); + + $this->assertEquals(201, $response['headers']['status-code']); + + // Cleanup + $this->client->call(Client::METHOD_DELETE, '/tablesdb/' . $databaseId . '/tables/' . $tableId, array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'] + ])); + + $this->client->call(Client::METHOD_DELETE, '/tablesdb/' . $databaseId, array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'] + ])); + } + + public function testSpatialBulkOperationsWithLineStrings(): void + { + // Create database + $database = $this->client->call(Client::METHOD_POST, '/tablesdb', [ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'] + ], [ + 'databaseId' => ID::unique(), + 'name' => 'Spatial LineString Bulk Operations Test Database' + ]); + + $this->assertNotEmpty($database['body']['$id']); + $databaseId = $database['body']['$id']; + + // Create table with line string columns + $table = $this->client->call(Client::METHOD_POST, '/tablesdb/' . $databaseId . '/tables', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'] + ]), [ + 'tableId' => ID::unique(), + 'name' => 'Spatial LineString Bulk Operations Table', + 'rowSecurity' => true, + 'permissions' => [ + Permission::create(Role::any()), + Permission::read(Role::any()), + Permission::delete(Role::any()), + Permission::update(Role::any()), + ], + ]); + + $this->assertEquals(201, $table['headers']['status-code']); + $tableId = $table['body']['$id']; + + // Create string column + $nameColumn = $this->client->call(Client::METHOD_POST, '/tablesdb/' . $databaseId . '/tables/' . $tableId . '/columns/string', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'] + ]), [ + 'key' => 'name', + 'size' => 256, + 'required' => true, + ]); + + $this->assertEquals(202, $nameColumn['headers']['status-code']); + + // Create line string column + $lineColumn = $this->client->call(Client::METHOD_POST, '/tablesdb/' . $databaseId . '/tables/' . $tableId . '/columns/line', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'] + ]), [ + 'key' => 'path', + 'required' => true, + ]); + + // Handle both 201 (created) and 202 (accepted) status codes + $this->assertEquals(202, $lineColumn['headers']['status-code']); + + // Wait for columns to be created + sleep(2); + + // Test bulk create with line string data + $lineStringRows = []; + for ($i = 0; $i < 3; $i++) { + $lineStringRows[] = [ + '$id' => ID::unique(), + 'name' => 'Path ' . $i, + 'path' => [ + [$i * 10, $i * 10], + [($i + 1) * 10, ($i + 1) * 10], + [($i + 2) * 10, ($i + 2) * 10] + ] // LINE STRING with 3 points + ]; + } + + $response = $this->client->call(Client::METHOD_POST, "/tablesdb/{$databaseId}/tables/{$tableId}/rows", array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), [ + 'rows' => $lineStringRows, + ]); + + $this->assertEquals(201, $response['headers']['status-code']); + $this->assertCount(3, $response['body']['rows']); + + // Verify created rows have proper line string data + foreach ($response['body']['rows'] as $index => $row) { + $this->assertNotEmpty($row['$id']); + $this->assertNotEmpty($row['name']); + $this->assertIsArray($row['path']); + $this->assertGreaterThan(1, count($row['path'])); // LINE STRING has multiple points + $this->assertEquals('Path ' . $index, $row['name']); + $this->assertCount(3, $row['path']); // Each line string has 3 points + } + + // Test bulk update with line string data + $response = $this->client->call(Client::METHOD_PATCH, '/tablesdb/' . $databaseId . '/tables/' . $tableId . '/rows', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), [ + 'data' => [ + 'name' => 'Updated Path', + 'path' => [ + [0, 0], + [50, 50], + [100, 100] + ] // New LINE STRING + ], + ]); + + $this->assertEquals(200, $response['headers']['status-code']); + $this->assertCount(3, $response['body']['rows']); + + // Verify updated rows + foreach ($response['body']['rows'] as $row) { + $this->assertEquals('Updated Path', $row['name']); + $this->assertEquals([ + [0, 0], + [50, 50], + [100, 100] + ], $row['path']); + } + + // Test: Invalid line string (single point - should fail) + $response = $this->client->call(Client::METHOD_POST, "/tablesdb/{$databaseId}/tables/{$tableId}/rows", array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), [ + 'rows' => [ + [ + '$id' => ID::unique(), + 'name' => 'Invalid Line String', + 'path' => [[10, 20]] // Single point - invalid line string + ] + ], + ]); + + $this->assertEquals(400, $response['headers']['status-code']); + + // Cleanup + $this->client->call(Client::METHOD_DELETE, '/tablesdb/' . $databaseId . '/tables/' . $tableId, array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'] + ])); + + $this->client->call(Client::METHOD_DELETE, '/tablesdb/' . $databaseId, array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'] + ])); + } } diff --git a/tests/e2e/Services/Functions/FunctionsCustomClientTest.php b/tests/e2e/Services/Functions/FunctionsCustomClientTest.php index a60c9e59cf..f8b7bae325 100644 --- a/tests/e2e/Services/Functions/FunctionsCustomClientTest.php +++ b/tests/e2e/Services/Functions/FunctionsCustomClientTest.php @@ -142,6 +142,19 @@ class FunctionsCustomClientTest extends Scope ]); $output = json_decode($execution['body']['responseBody'], true); $this->assertEquals(201, $execution['headers']['status-code']); + + $this->assertNotEmpty($execution['body']['responseHeaders']); + + $executionIdHeader = null; + foreach ($execution['body']['responseHeaders'] as $header) { + if ($header['name'] === 'x-appwrite-execution-id') { + $executionIdHeader = $header['value']; + break; + } + } + $this->assertNotEmpty($executionIdHeader); + $this->assertEquals($execution['body']['$id'], $executionIdHeader); + $this->assertEquals(200, $execution['body']['responseStatusCode']); $this->assertGreaterThan(0, $execution['body']['duration']); $this->assertEquals('completed', $execution['body']['status']); @@ -159,6 +172,11 @@ class FunctionsCustomClientTest extends Scope $this->assertNotEmpty($output['APPWRITE_FUNCTION_JWT']); $this->assertEquals($this->getProject()['$id'], $output['APPWRITE_FUNCTION_PROJECT_ID']); + $executionId = $execution['body']['$id'] ?? ''; + $this->assertNotEmpty($output['APPWRITE_FUNCTION_EXECUTION_ID']); + $this->assertEquals($executionId, $output['APPWRITE_FUNCTION_EXECUTION_ID']); + $this->assertNotEmpty($output['APPWRITE_FUNCTION_CLIENT_IP']); + $execution = $this->createExecution($functionId, [ 'body' => 'foobar', 'async' => true diff --git a/tests/e2e/Services/Functions/FunctionsCustomServerTest.php b/tests/e2e/Services/Functions/FunctionsCustomServerTest.php index 1d993c19b7..0d63791151 100644 --- a/tests/e2e/Services/Functions/FunctionsCustomServerTest.php +++ b/tests/e2e/Services/Functions/FunctionsCustomServerTest.php @@ -721,6 +721,30 @@ class FunctionsCustomServerTest extends Scope $this->assertEquals($deployments['headers']['status-code'], 200); $this->assertCount(1, $deployments['body']['deployments']); + $deployments = $this->listDeployments($functionId, [ + 'queries' => [ + Query::select(['status'])->toString(), + ], + ]); + + $this->assertEquals($deployments['headers']['status-code'], 200); + $this->assertArrayHasKey('status', $deployments['body']['deployments'][0]); + $this->assertArrayHasKey('status', $deployments['body']['deployments'][1]); + $this->assertArrayNotHasKey('sourceSize', $deployments['body']['deployments'][0]); + $this->assertArrayNotHasKey('sourceSize', $deployments['body']['deployments'][1]); + + // Extra select query check, for attribute not allowed by filter queries + $deployments = $this->listDeployments($functionId, [ + 'queries' => [ + Query::select(['buildLogs'])->toString(), + ], + ]); + $this->assertEquals($deployments['headers']['status-code'], 200); + $this->assertArrayHasKey('buildLogs', $deployments['body']['deployments'][0]); + $this->assertArrayHasKey('buildLogs', $deployments['body']['deployments'][1]); + $this->assertArrayNotHasKey('sourceSize', $deployments['body']['deployments'][0]); + $this->assertArrayNotHasKey('sourceSize', $deployments['body']['deployments'][1]); + $deployments = $this->listDeployments($functionId, [ 'queries' => [ Query::offset(1)->toString(), @@ -892,6 +916,19 @@ class FunctionsCustomServerTest extends Scope ]); $this->assertEquals(201, $execution['headers']['status-code']); + + $this->assertNotEmpty($execution['body']['responseHeaders']); + + $executionIdHeader = null; + foreach ($execution['body']['responseHeaders'] as $header) { + if ($header['name'] === 'x-appwrite-execution-id') { + $executionIdHeader = $header['value']; + break; + } + } + $this->assertNotEmpty($executionIdHeader); + $this->assertEquals($execution['body']['$id'], $executionIdHeader); + $this->assertNotEmpty($execution['body']['$id']); $this->assertNotEmpty($execution['body']['functionId']); $this->assertEquals(true, (new DatetimeValidator())->isValid($execution['body']['$createdAt'])); @@ -912,6 +949,26 @@ class FunctionsCustomServerTest extends Scope $executionId = $execution['body']['$id'] ?? ''; + /** Test create execution with HEAD method */ + $execution = $this->createExecution($data['functionId'], [ + 'async' => 'false', + 'method' => 'HEAD', + ]); + + $this->assertEquals(201, $execution['headers']['status-code']); + $this->assertEquals('completed', $execution['body']['status']); + $this->assertEquals(200, $execution['body']['responseStatusCode']); + $this->assertIsArray($execution['body']['responseHeaders']); + $this->assertEmpty($execution['body']['responseBody']); // For HEAD requests, response body is empty + + /** Delete execution */ + $execution = $this->client->call(Client::METHOD_DELETE, '/functions/' . $data['functionId'] . '/executions/' . $execution['body']['$id'], array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), []); + $this->assertEquals(204, $execution['headers']['status-code']); + + /** Test create execution with 400 status code */ $execution = $this->createExecution($data['functionId'], [ 'async' => 'false', 'path' => '/?code=400' @@ -921,11 +978,11 @@ class FunctionsCustomServerTest extends Scope $this->assertEquals('completed', $execution['body']['status']); $this->assertEquals(400, $execution['body']['responseStatusCode']); + /** Delete execution */ $execution = $this->client->call(Client::METHOD_DELETE, '/functions/' . $data['functionId'] . '/executions/' . $execution['body']['$id'], array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders()), []); - $this->assertEquals(204, $execution['headers']['status-code']); return array_merge($data, ['executionId' => $executionId]); @@ -1160,6 +1217,12 @@ class FunctionsCustomServerTest extends Scope $this->assertEquals(1, $output['APPWRITE_FUNCTION_CPUS']); $this->assertEquals(1024, $output['APPWRITE_FUNCTION_MEMORY']); + // Test execution ID and client IP + $executionId = $execution['body']['$id'] ?? ''; + $this->assertNotEmpty($output['APPWRITE_FUNCTION_EXECUTION_ID']); + $this->assertEquals($executionId, $output['APPWRITE_FUNCTION_EXECUTION_ID']); + $this->assertNotEmpty($output['APPWRITE_FUNCTION_CLIENT_IP']); + // Change the specs to 1vcpu 512mb $function = $this->client->call(Client::METHOD_PUT, '/functions/' . $data['functionId'], array_merge([ 'content-type' => 'application/json', @@ -1532,6 +1595,9 @@ class FunctionsCustomServerTest extends Scope $this->assertEquals(204, $lastExecution['responseStatusCode']); $this->assertStringContainsString($userId, $lastExecution['logs']); $this->assertStringContainsString('Event User', $lastExecution['logs']); + $this->assertNotEmpty($lastExecution['$id']); + $headers = array_column($lastExecution['requestHeaders'] ?? [], 'value', 'name'); + $this->assertEmpty($headers['x-appwrite-client-ip'] ?? ''); }, 20_000, 500); $this->cleanupFunction($functionId); @@ -1676,6 +1742,9 @@ class FunctionsCustomServerTest extends Scope $this->assertEquals(200, $response['headers']['status-code']); $this->assertEquals($cookie, $response['body']); + $this->assertArrayHasKey('x-appwrite-execution-id', $response['headers']); + $this->assertNotEmpty($response['headers']['x-appwrite-execution-id']); + // Async execution document creation $this->assertEventually(function () use ($functionId) { $executions = $this->client->call(Client::METHOD_GET, '/functions/' . $functionId . '/executions', array_merge([ diff --git a/tests/e2e/Services/FunctionsSchedule/FunctionsScheduleTest.php b/tests/e2e/Services/FunctionsSchedule/FunctionsScheduleTest.php index c3dd2c7fc8..c9ec978cba 100644 --- a/tests/e2e/Services/FunctionsSchedule/FunctionsScheduleTest.php +++ b/tests/e2e/Services/FunctionsSchedule/FunctionsScheduleTest.php @@ -62,6 +62,9 @@ class FunctionsScheduleTest extends Scope $this->assertNotEmpty($asyncExecution['logs']); $this->assertNotEmpty($asyncExecution['errors']); $this->assertGreaterThan(0, $asyncExecution['duration']); + $this->assertNotEmpty($asyncExecution['$id']); + $headers = array_column($asyncExecution['requestHeaders'] ?? [], 'value', 'name'); + $this->assertEmpty($headers['x-appwrite-client-ip'] ?? ''); }, 60000, 500); $this->cleanupFunction($functionId); @@ -118,7 +121,9 @@ class FunctionsScheduleTest extends Scope $this->assertEquals('scheduled', $execution['body']['status']); $this->assertEquals('PATCH', $execution['body']['requestMethod']); $this->assertEquals('/custom-path', $execution['body']['requestPath']); - $this->assertCount(0, $execution['body']['requestHeaders']); + $this->assertCount(1, $execution['body']['requestHeaders']); + $this->assertEquals('x-appwrite-client-ip', $execution['body']['requestHeaders'][0]['name']); + $this->assertNotEmpty($execution['body']['requestHeaders'][0]['value']); \sleep(120); diff --git a/tests/e2e/Services/GraphQL/Base.php b/tests/e2e/Services/GraphQL/Base.php index 46effc795a..9f5a93dd00 100644 --- a/tests/e2e/Services/GraphQL/Base.php +++ b/tests/e2e/Services/GraphQL/Base.php @@ -45,6 +45,9 @@ trait Base public const string CREATE_IP_ATTRIBUTE = 'create_ip_attribute'; public const string CREATE_ENUM_ATTRIBUTE = 'create_enum_attribute'; public const string CREATE_DATETIME_ATTRIBUTE = 'create_datetime_attribute'; + public const string CREATE_POINT_ATTRIBUTE = 'create_point_attribute'; + public const string CREATE_LINE_ATTRIBUTE = 'create_line_attribute'; + public const string CREATE_POLYGON_ATTRIBUTE = 'create_polygon_attribute'; public const string CREATE_RELATIONSHIP_ATTRIBUTE = 'create_relationship_attribute'; public const string UPDATE_STRING_ATTRIBUTE = 'update_string_attribute'; @@ -56,6 +59,9 @@ trait Base public const string UPDATE_IP_ATTRIBUTE = 'update_ip_attribute'; public const string UPDATE_ENUM_ATTRIBUTE = 'update_enum_attribute'; public const string UPDATE_DATETIME_ATTRIBUTE = 'update_datetime_attribute'; + public const string UPDATE_POINT_ATTRIBUTE = 'update_point_attribute'; + public const string UPDATE_LINE_ATTRIBUTE = 'update_line_attribute'; + public const string UPDATE_POLYGON_ATTRIBUTE = 'update_polygon_attribute'; public const string UPDATE_RELATIONSHIP_ATTRIBUTE = 'update_relationship_attribute'; public const string GET_ATTRIBUTES = 'get_attributes'; @@ -72,6 +78,9 @@ trait Base public const string CREATE_IP_COLUMN = 'create_ip_column'; public const string CREATE_ENUM_COLUMN = 'create_enum_column'; public const string CREATE_DATETIME_COLUMN = 'create_datetime_column'; + public const string CREATE_POINT_COLUMN = 'create_point_column'; + public const string CREATE_LINE_COLUMN = 'create_line_column'; + public const string CREATE_POLYGON_COLUMN = 'create_polygon_column'; public const string CREATE_RELATIONSHIP_COLUMN = 'create_relationship_column'; public const string UPDATE_STRING_COLUMN = 'update_string_column'; @@ -83,6 +92,9 @@ trait Base public const string UPDATE_IP_COLUMN = 'update_ip_column'; public const string UPDATE_ENUM_COLUMN = 'update_enum_column'; public const string UPDATE_DATETIME_COLUMN = 'update_datetime_column'; + public const string UPDATE_POINT_COLUMN = 'update_point_column'; + public const string UPDATE_LINE_COLUMN = 'update_line_column'; + public const string UPDATE_POLYGON_COLUMN = 'update_polygon_column'; public const string UPDATE_RELATIONSHIP_COLUMN = 'update_relationship_column'; public const string GET_COLUMNS = 'get_columns'; @@ -930,6 +942,35 @@ trait Base array } }'; + case self::CREATE_POINT_COLUMN: + return 'mutation createPointColumn($databaseId: String!, $tableId: String!, $key: String!, $required: Boolean!, $array: Boolean){ + tablesDBCreatePointColumn(databaseId: $databaseId, tableId: $tableId, key: $key, required: $required, array: $array) { + key + required + array + status + } + }'; + + case self::CREATE_LINE_COLUMN: + return 'mutation createLineColumn($databaseId: String!, $tableId: String!, $key: String!, $required: Boolean!, $array: Boolean){ + tablesDBCreateLineColumn(databaseId: $databaseId, tableId: $tableId, key: $key, required: $required, array: $array) { + key + required + array + status + } + }'; + + case self::CREATE_POLYGON_COLUMN: + return 'mutation createPolygonColumn($databaseId: String!, $tableId: String!, $key: String!, $required: Boolean!, $array: Boolean){ + tablesDBCreatePolygonColumn(databaseId: $databaseId, tableId: $tableId, key: $key, required: $required, array: $array) { + key + required + array + status + } + }'; case self::CREATE_RELATIONSHIP_COLUMN: return 'mutation createRelationshipColumn($databaseId: String!, $tableId: String!, $relatedTableId: String!, $type: String!, $twoWay: Boolean, $key: String, $twoWayKey: String, $onDelete: String){ tablesDBCreateRelationshipColumn(databaseId: $databaseId, tableId: $tableId, relatedTableId: $relatedTableId, type: $type, twoWay: $twoWay, key: $key, twoWayKey: $twoWayKey, onDelete: $onDelete) { @@ -1009,6 +1050,27 @@ trait Base default } }'; + case self::UPDATE_POINT_COLUMN: + return 'mutation updatePointColumn($databaseId: String!, $tableId: String!, $key: String!, $required: Boolean!){ + tablesDBUpdatePointColumn(databaseId: $databaseId, tableId: $tableId, key: $key, required: $required) { + required + } + }'; + + case self::UPDATE_LINE_COLUMN: + return 'mutation updateLineColumn($databaseId: String!, $tableId: String!, $key: String!, $required: Boolean!){ + tablesDBUpdateLineColumn(databaseId: $databaseId, tableId: $tableId, key: $key, required: $required) { + required + } + }'; + + case self::UPDATE_POLYGON_COLUMN: + return 'mutation updatePolygonColumn($databaseId: String!, $tableId: String!, $key: String!, $required: Boolean!){ + tablesDBUpdatePolygonColumn(databaseId: $databaseId, tableId: $tableId, key: $key, required: $required) { + required + } + }'; + case self::UPDATE_RELATIONSHIP_COLUMN: return 'mutation updateRelationshipColumn($databaseId: String!, $tableId: String!, $key: String!, $onDelete: String){ tablesDBUpdateRelationshipColumn(databaseId: $databaseId, tableId: $tableId, key: $key, onDelete: $onDelete) { diff --git a/tests/e2e/Services/GraphQL/ScopeTest.php b/tests/e2e/Services/GraphQL/ScopeTest.php index e5b3385030..4020e8330a 100644 --- a/tests/e2e/Services/GraphQL/ScopeTest.php +++ b/tests/e2e/Services/GraphQL/ScopeTest.php @@ -33,7 +33,7 @@ class ScopeTest extends Scope 'x-appwrite-key' => $apiKey, ], $gqlPayload); - $message = "app.{$projectId}@service.localhost (role: applications) missing scope (databases.write)"; + $message = "app.{$projectId}@service.localhost (role: applications) missing scopes ([\"databases.write\"])"; $this->assertArrayHasKey('errors', $database['body']); $this->assertEquals($message, $database['body']['errors'][0]['message']); } diff --git a/tests/e2e/Services/Proxy/ProxyCustomServerTest.php b/tests/e2e/Services/Proxy/ProxyCustomServerTest.php index da23b9ab7c..5a1cd1dea6 100644 --- a/tests/e2e/Services/Proxy/ProxyCustomServerTest.php +++ b/tests/e2e/Services/Proxy/ProxyCustomServerTest.php @@ -70,12 +70,29 @@ class ProxyCustomServerTest extends Scope $this->assertNotEmpty($siteId); $this->assertNotEmpty($deploymentId); + $rule = $this->createSiteRule('commit-' . $domain, $siteId); + $this->assertEquals(201, $rule['headers']['status-code']); + $this->cleanupRule($rule['body']['$id']); + + $rule = $this->createSiteRule('branch-' . $domain, $siteId); + $this->assertEquals(201, $rule['headers']['status-code']); + $this->cleanupRule($rule['body']['$id']); + + $rule = $this->createSiteRule('anything-' . $domain, $siteId); + $this->assertEquals(201, $rule['headers']['status-code']); + $this->cleanupRule($rule['body']['$id']); + + $domain = \uniqid() . '-vcs.' . System::getEnv('_APP_DOMAIN_SITES', ''); + $rule = $this->createSiteRule('commit-' . $domain, $siteId); $this->assertEquals(400, $rule['headers']['status-code']); $rule = $this->createSiteRule('branch-' . $domain, $siteId); $this->assertEquals(400, $rule['headers']['status-code']); + $rule = $this->createSiteRule('subdomain.anything-' . $domain, $siteId); + $this->assertEquals(400, $rule['headers']['status-code']); + $rule = $this->createSiteRule('anything-' . $domain, $siteId); $this->assertEquals(201, $rule['headers']['status-code']); $this->cleanupRule($rule['body']['$id']); diff --git a/tests/e2e/Services/Realtime/RealtimeCustomClientTest.php b/tests/e2e/Services/Realtime/RealtimeCustomClientTest.php index 60f58bd8ee..3e57c5e9bc 100644 --- a/tests/e2e/Services/Realtime/RealtimeCustomClientTest.php +++ b/tests/e2e/Services/Realtime/RealtimeCustomClientTest.php @@ -1188,6 +1188,55 @@ class RealtimeCustomClientTest extends Scope $this->assertArrayHasKey('$permissions', $response['data']['payload']); $this->assertIsArray($response['data']['payload']['$permissions']); + // bulk upsert + $this->client->call(Client::METHOD_PUT, "/databases/{$databaseId}/collections/{$actorsId}/documents", array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'] + ]), [ + 'documents' => [ + [ + '$id' => ID::unique(), + 'name' => 'Robert Downey Jr.', + '$permissions' => [ + Permission::read(Role::any()), + Permission::update(Role::any()), + Permission::delete(Role::any()), + ], + ] + ], + ]); + + $response = json_decode($client->receive(), true); + $this->assertArrayHasKey('type', $response); + $this->assertArrayHasKey('data', $response); + $this->assertEquals('event', $response['type']); + $this->assertNotEmpty($response['data']); + $this->assertArrayHasKey('timestamp', $response['data']); + $this->assertCount(6, $response['data']['channels']); + + $this->assertContains("databases.{$databaseId}.collections.{$actorsId}.documents.{$response['data']['payload']['$id']}.upsert", $response['data']['events']); + $this->assertContains("databases.*.collections.*.documents.*.upsert", $response['data']['events']); + $this->assertContains("databases.{$databaseId}.collections.*.documents.*.upsert", $response['data']['events']); + $this->assertContains("databases.*.collections.{$actorsId}.documents.*.upsert", $response['data']['events']); + $this->assertContains("databases.{$databaseId}.collections.{$actorsId}.documents.*", $response['data']['events']); + $this->assertContains("databases.*.collections.*.documents.*", $response['data']['events']); + $this->assertContains("databases.{$databaseId}.collections.*.documents.*", $response['data']['events']); + $this->assertContains("databases.*.collections.{$actorsId}.documents.*", $response['data']['events']); + $this->assertContains("databases.{$databaseId}.collections.{$actorsId}", $response['data']['events']); + $this->assertContains("databases.*.collections.*", $response['data']['events']); + $this->assertContains("databases.{$databaseId}.collections.*", $response['data']['events']); + $this->assertContains("databases.*.collections.{$actorsId}", $response['data']['events']); + $this->assertContains("databases.{$databaseId}.collections.*.documents.*.upsert", $response['data']['events']); + $this->assertContains("databases.*", $response['data']['events']); + + $this->assertNotEmpty($response['data']['payload']); + $this->assertIsArray($response['data']['payload']); + $this->assertArrayHasKey('$id', $response['data']['payload']); + $this->assertArrayHasKey('name', $response['data']['payload']); + $this->assertArrayHasKey('$permissions', $response['data']['payload']); + $this->assertIsArray($response['data']['payload']['$permissions']); + $client->close(); } @@ -1644,6 +1693,107 @@ class RealtimeCustomClientTest extends Scope $this->assertIsArray($response2['data']['payload']['$permissions']); } + // bulk upsert + $this->client->call(Client::METHOD_PUT, "/databases/{$databaseId}/collections/{$actorsId}/documents", array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'] + ]), [ + 'documents' => [ + [ + '$id' => ID::unique(), + 'name' => 'Robert Downey Jr.', + '$permissions' => [ + Permission::read(Role::user($user1Id)), + ], + ], + [ + '$id' => ID::unique(), + 'name' => 'Thor', + '$permissions' => [ + Permission::read(Role::user($user2Id)), + ], + ] + ], + ]); + + $response = json_decode($client1->receive(), true); + $this->assertArrayHasKey('type', $response); + $this->assertArrayHasKey('data', $response); + $this->assertEquals('event', $response['type']); + $this->assertNotEmpty($response['data']); + $this->assertArrayHasKey('timestamp', $response['data']); + $this->assertCount(6, $response['data']['channels']); + + $this->assertContains("databases.{$databaseId}.collections.{$actorsId}.documents.{$response['data']['payload']['$id']}.upsert", $response['data']['events']); + $this->assertContains("databases.*.collections.*.documents.*.upsert", $response['data']['events']); + $this->assertContains("databases.{$databaseId}.collections.*.documents.*.upsert", $response['data']['events']); + $this->assertContains("databases.*.collections.{$actorsId}.documents.*.upsert", $response['data']['events']); + $this->assertContains("databases.{$databaseId}.collections.{$actorsId}.documents.*", $response['data']['events']); + $this->assertContains("databases.*.collections.*.documents.*", $response['data']['events']); + $this->assertContains("databases.{$databaseId}.collections.*.documents.*", $response['data']['events']); + $this->assertContains("databases.*.collections.{$actorsId}.documents.*", $response['data']['events']); + $this->assertContains("databases.{$databaseId}.collections.{$actorsId}", $response['data']['events']); + $this->assertContains("databases.*.collections.*", $response['data']['events']); + $this->assertContains("databases.{$databaseId}.collections.*", $response['data']['events']); + $this->assertContains("databases.*.collections.{$actorsId}", $response['data']['events']); + $this->assertContains("databases.{$databaseId}.collections.*.documents.*.upsert", $response['data']['events']); + $this->assertContains("databases.*", $response['data']['events']); + + $this->assertNotEmpty($response['data']['payload']); + $this->assertIsArray($response['data']['payload']); + $this->assertArrayHasKey('$id', $response['data']['payload']); + $this->assertArrayHasKey('name', $response['data']['payload']); + $this->assertArrayHasKey('$permissions', $response['data']['payload']); + $this->assertIsArray($response['data']['payload']['$permissions']); + + // client1 shouldnot receive more than 1 event + try { + json_decode(json_decode($client1->receive(), true)); + $this->fail('Expected TimeoutException was not thrown.'); + } catch (Exception $e) { + $this->assertInstanceOf(TimeoutException::class, $e); + } + + $response = json_decode($client2->receive(), true); + $this->assertArrayHasKey('type', $response); + $this->assertArrayHasKey('data', $response); + $this->assertEquals('event', $response['type']); + $this->assertNotEmpty($response['data']); + $this->assertArrayHasKey('timestamp', $response['data']); + $this->assertCount(6, $response['data']['channels']); + + $this->assertContains("databases.{$databaseId}.collections.{$actorsId}.documents.{$response['data']['payload']['$id']}.upsert", $response['data']['events']); + $this->assertContains("databases.*.collections.*.documents.*.upsert", $response['data']['events']); + $this->assertContains("databases.{$databaseId}.collections.*.documents.*.upsert", $response['data']['events']); + $this->assertContains("databases.*.collections.{$actorsId}.documents.*.upsert", $response['data']['events']); + $this->assertContains("databases.{$databaseId}.collections.{$actorsId}.documents.*", $response['data']['events']); + $this->assertContains("databases.*.collections.*.documents.*", $response['data']['events']); + $this->assertContains("databases.{$databaseId}.collections.*.documents.*", $response['data']['events']); + $this->assertContains("databases.*.collections.{$actorsId}.documents.*", $response['data']['events']); + $this->assertContains("databases.{$databaseId}.collections.{$actorsId}", $response['data']['events']); + $this->assertContains("databases.*.collections.*", $response['data']['events']); + $this->assertContains("databases.{$databaseId}.collections.*", $response['data']['events']); + $this->assertContains("databases.*.collections.{$actorsId}", $response['data']['events']); + $this->assertContains("databases.{$databaseId}.collections.*.documents.*.upsert", $response['data']['events']); + $this->assertContains("databases.*", $response['data']['events']); + + $this->assertNotEmpty($response['data']['payload']); + $this->assertIsArray($response['data']['payload']); + $this->assertArrayHasKey('$id', $response['data']['payload']); + $this->assertArrayHasKey('name', $response['data']['payload']); + $this->assertArrayHasKey('$permissions', $response['data']['payload']); + $this->assertIsArray($response['data']['payload']['$permissions']); + + // client2 shouldnot receive more than 1 event + try { + json_decode(json_decode($client2->receive(), true)); + $this->fail('Expected TimeoutException was not thrown.'); + } catch (Exception $e) { + $this->assertInstanceOf(TimeoutException::class, $e); + } + + $client1->close(); $client2->close(); } diff --git a/tests/e2e/Services/Sites/SitesCustomServerTest.php b/tests/e2e/Services/Sites/SitesCustomServerTest.php index 0e792d6c36..c8301b9428 100644 --- a/tests/e2e/Services/Sites/SitesCustomServerTest.php +++ b/tests/e2e/Services/Sites/SitesCustomServerTest.php @@ -1052,6 +1052,30 @@ class SitesCustomServerTest extends Scope $this->assertEquals($deployments['headers']['status-code'], 200); $this->assertCount(1, $deployments['body']['deployments']); + $deployments = $this->listDeployments($siteId, [ + 'queries' => [ + Query::select(['status'])->toString(), + ], + ]); + + $this->assertEquals($deployments['headers']['status-code'], 200); + $this->assertArrayHasKey('status', $deployments['body']['deployments'][0]); + $this->assertArrayHasKey('status', $deployments['body']['deployments'][1]); + $this->assertArrayNotHasKey('sourceSize', $deployments['body']['deployments'][0]); + $this->assertArrayNotHasKey('sourceSize', $deployments['body']['deployments'][1]); + + // Extra select query check, for attribute not allowed by filter queries + $deployments = $this->listDeployments($siteId, [ + 'queries' => [ + Query::select(['buildLogs'])->toString(), + ], + ]); + $this->assertEquals($deployments['headers']['status-code'], 200); + $this->assertArrayHasKey('buildLogs', $deployments['body']['deployments'][0]); + $this->assertArrayHasKey('buildLogs', $deployments['body']['deployments'][1]); + $this->assertArrayNotHasKey('sourceSize', $deployments['body']['deployments'][0]); + $this->assertArrayNotHasKey('sourceSize', $deployments['body']['deployments'][1]); + $deployments = $this->listDeployments($siteId, [ 'queries' => [ Query::offset(1)->toString(), @@ -1433,6 +1457,9 @@ class SitesCustomServerTest extends Scope $this->assertEquals(200, $response['headers']['status-code']); $this->assertStringContainsString("Index page", $response['body']); + $this->assertArrayHasKey('x-appwrite-log-id', $response['headers']); + $this->assertNotEmpty($response['headers']['x-appwrite-log-id']); + $response = $proxyClient->call(Client::METHOD_GET, '/contact', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], @@ -2748,11 +2775,13 @@ class SitesCustomServerTest extends Scope $proxyClient->setEndpoint('http://' . $domain); $response = $proxyClient->call(Client::METHOD_GET, '/cookies', [ - 'cookie' => 'custom-session-id=abcd123' + 'cookie' => 'custom-session-id=abcd123; custom-user-id=efgh456' ]); $this->assertEquals(200, $response['headers']['status-code']); - $this->assertEquals("abcd123", $response['body']); + $this->assertEquals("abcd123;efgh456", $response['body']); + $this->assertEquals("value-one", $response['cookies']['my-cookie-one']); + $this->assertEquals("value-two", $response['cookies']['my-cookie-two']); $this->cleanupSite($siteId); } diff --git a/tests/e2e/Services/Users/UsersBase.php b/tests/e2e/Services/Users/UsersBase.php index a324ee870a..654128c2d1 100644 --- a/tests/e2e/Services/Users/UsersBase.php +++ b/tests/e2e/Services/Users/UsersBase.php @@ -446,6 +446,19 @@ trait UsersBase $user1 = $response['body']['users'][1]; + // This test ensures that by default, endpoints dont support select queries + // If we add select query to this endpoint, you will need to remove this test + // Please make sure to add it to another place, unless all endpoints support select queries + $response = $this->client->call(Client::METHOD_GET, '/users', array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders()), [ + 'queries' => [ + Query::select(['name'])->toString() + ] + ]); + $this->assertEquals($response['headers']['status-code'], 400); + $response = $this->client->call(Client::METHOD_GET, '/users', array_merge([ 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], diff --git a/tests/resources/functions/basic/index.js b/tests/resources/functions/basic/index.js index 1eb9d38c58..47f7100b5b 100644 --- a/tests/resources/functions/basic/index.js +++ b/tests/resources/functions/basic/index.js @@ -41,6 +41,8 @@ module.exports = async(context) => { 'APPWRITE_FUNCTION_PROJECT_ID' : process.env.APPWRITE_FUNCTION_PROJECT_ID, 'APPWRITE_FUNCTION_MEMORY' : process.env.APPWRITE_FUNCTION_MEMORY, 'APPWRITE_FUNCTION_CPUS' : process.env.APPWRITE_FUNCTION_CPUS, + 'APPWRITE_FUNCTION_EXECUTION_ID': context.req.headers['x-appwrite-execution-id'] ?? '', + 'APPWRITE_FUNCTION_CLIENT_IP': context.req.headers['x-appwrite-client-ip'] ?? '', 'CUSTOM_VARIABLE' : process.env.CUSTOM_VARIABLE }, +statusCode); } \ No newline at end of file diff --git a/tests/resources/sites/astro/src/pages/cookies.js b/tests/resources/sites/astro/src/pages/cookies.js index 5f5efac833..65911c8aeb 100644 --- a/tests/resources/sites/astro/src/pages/cookies.js +++ b/tests/resources/sites/astro/src/pages/cookies.js @@ -1,4 +1,9 @@ export async function GET(context) { const sessionId = context.cookies.get("custom-session-id")?.value ?? 'Custom session ID missing'; - return new Response(sessionId); + const userId = context.cookies.get("custom-user-id")?.value ?? 'Custom user ID missing'; + + context.cookies.set('my-cookie-one', 'value-one'); + context.cookies.set('my-cookie-two', 'value-two'); + + return new Response(sessionId + ";" + userId); }