From 0ad70d0f87a34a7e5ef6e43a0b1c408fd55a4e1b Mon Sep 17 00:00:00 2001 From: Torsten Dittmann Date: Wed, 3 Jul 2024 18:00:44 +0200 Subject: [PATCH 1/8] feat: 1.6.x --- README.md | 4 +- Sources/Appwrite/Client.swift | 6 ++ Sources/Appwrite/Services/Account.swift | 6 +- Sources/Appwrite/Services/Functions.swift | 94 +++++++++++++++++-- Sources/Appwrite/Services/Users.swift | 43 +++++++++ Sources/AppwriteEnums/Name.swift | 2 +- Sources/AppwriteEnums/Runtime.swift | 1 + Sources/AppwriteModels/Build.swift | 84 +++++++++++++++++ Sources/AppwriteModels/Function.swift | 7 ++ .../account/create-anonymous-session.md | 2 +- .../account/create-email-password-session.md | 2 +- docs/examples/account/create-email-token.md | 2 +- docs/examples/account/create-j-w-t.md | 2 +- .../account/create-magic-u-r-l-token.md | 2 +- .../account/create-mfa-authenticator.md | 2 +- docs/examples/account/create-mfa-challenge.md | 2 +- .../account/create-mfa-recovery-codes.md | 2 +- docs/examples/account/create-o-auth2token.md | 2 +- docs/examples/account/create-phone-token.md | 2 +- .../account/create-phone-verification.md | 2 +- docs/examples/account/create-recovery.md | 2 +- docs/examples/account/create-session.md | 2 +- docs/examples/account/create-verification.md | 2 +- docs/examples/account/create.md | 2 +- docs/examples/account/delete-identity.md | 2 +- .../account/delete-mfa-authenticator.md | 2 +- docs/examples/account/delete-session.md | 2 +- docs/examples/account/delete-sessions.md | 2 +- .../account/get-mfa-recovery-codes.md | 2 +- docs/examples/account/get-prefs.md | 2 +- docs/examples/account/get-session.md | 2 +- docs/examples/account/get.md | 2 +- docs/examples/account/list-identities.md | 2 +- docs/examples/account/list-logs.md | 2 +- docs/examples/account/list-mfa-factors.md | 2 +- docs/examples/account/list-sessions.md | 2 +- docs/examples/account/update-email.md | 2 +- docs/examples/account/update-m-f-a.md | 2 +- .../account/update-magic-u-r-l-session.md | 2 +- .../account/update-mfa-authenticator.md | 2 +- docs/examples/account/update-mfa-challenge.md | 2 +- .../account/update-mfa-recovery-codes.md | 2 +- docs/examples/account/update-name.md | 2 +- docs/examples/account/update-password.md | 2 +- docs/examples/account/update-phone-session.md | 2 +- .../account/update-phone-verification.md | 2 +- docs/examples/account/update-phone.md | 2 +- docs/examples/account/update-prefs.md | 2 +- docs/examples/account/update-recovery.md | 2 +- docs/examples/account/update-session.md | 2 +- docs/examples/account/update-status.md | 2 +- docs/examples/account/update-verification.md | 2 +- docs/examples/avatars/get-browser.md | 2 +- docs/examples/avatars/get-credit-card.md | 2 +- docs/examples/avatars/get-favicon.md | 2 +- docs/examples/avatars/get-flag.md | 2 +- docs/examples/avatars/get-image.md | 2 +- docs/examples/avatars/get-initials.md | 2 +- docs/examples/avatars/get-q-r.md | 2 +- .../databases/create-boolean-attribute.md | 4 +- docs/examples/databases/create-collection.md | 4 +- .../databases/create-datetime-attribute.md | 4 +- docs/examples/databases/create-document.md | 2 +- .../databases/create-email-attribute.md | 4 +- .../databases/create-enum-attribute.md | 4 +- .../databases/create-float-attribute.md | 4 +- docs/examples/databases/create-index.md | 4 +- .../databases/create-integer-attribute.md | 4 +- .../examples/databases/create-ip-attribute.md | 4 +- .../create-relationship-attribute.md | 4 +- .../databases/create-string-attribute.md | 4 +- .../databases/create-url-attribute.md | 4 +- docs/examples/databases/create.md | 4 +- docs/examples/databases/delete-attribute.md | 4 +- docs/examples/databases/delete-collection.md | 4 +- docs/examples/databases/delete-document.md | 2 +- docs/examples/databases/delete-index.md | 4 +- docs/examples/databases/delete.md | 4 +- docs/examples/databases/get-attribute.md | 4 +- docs/examples/databases/get-collection.md | 4 +- docs/examples/databases/get-document.md | 2 +- docs/examples/databases/get-index.md | 4 +- docs/examples/databases/get.md | 4 +- docs/examples/databases/list-attributes.md | 4 +- docs/examples/databases/list-collections.md | 4 +- docs/examples/databases/list-documents.md | 2 +- docs/examples/databases/list-indexes.md | 4 +- docs/examples/databases/list.md | 4 +- .../databases/update-boolean-attribute.md | 4 +- docs/examples/databases/update-collection.md | 4 +- .../databases/update-datetime-attribute.md | 4 +- docs/examples/databases/update-document.md | 2 +- .../databases/update-email-attribute.md | 4 +- .../databases/update-enum-attribute.md | 4 +- .../databases/update-float-attribute.md | 4 +- .../databases/update-integer-attribute.md | 4 +- .../examples/databases/update-ip-attribute.md | 4 +- .../update-relationship-attribute.md | 4 +- .../databases/update-string-attribute.md | 4 +- .../databases/update-url-attribute.md | 4 +- docs/examples/databases/update.md | 4 +- docs/examples/functions/create-build.md | 6 +- docs/examples/functions/create-deployment.md | 4 +- docs/examples/functions/create-execution.md | 5 +- docs/examples/functions/create-variable.md | 4 +- docs/examples/functions/create.md | 5 +- docs/examples/functions/delete-deployment.md | 4 +- docs/examples/functions/delete-execution.md | 14 +++ docs/examples/functions/delete-variable.md | 4 +- docs/examples/functions/delete.md | 4 +- .../examples/functions/download-deployment.md | 4 +- docs/examples/functions/get-deployment.md | 4 +- docs/examples/functions/get-execution.md | 2 +- docs/examples/functions/get-variable.md | 4 +- docs/examples/functions/get.md | 4 +- docs/examples/functions/list-deployments.md | 4 +- docs/examples/functions/list-executions.md | 2 +- docs/examples/functions/list-runtimes.md | 4 +- docs/examples/functions/list-variables.md | 4 +- docs/examples/functions/list.md | 4 +- .../functions/update-deployment-build.md | 14 +++ docs/examples/functions/update-deployment.md | 4 +- docs/examples/functions/update-variable.md | 4 +- docs/examples/functions/update.md | 5 +- docs/examples/graphql/mutation.md | 4 +- docs/examples/graphql/query.md | 4 +- docs/examples/health/get-antivirus.md | 4 +- docs/examples/health/get-cache.md | 4 +- docs/examples/health/get-certificate.md | 4 +- docs/examples/health/get-d-b.md | 4 +- docs/examples/health/get-failed-jobs.md | 4 +- docs/examples/health/get-pub-sub.md | 4 +- docs/examples/health/get-queue-builds.md | 4 +- .../examples/health/get-queue-certificates.md | 4 +- docs/examples/health/get-queue-databases.md | 4 +- docs/examples/health/get-queue-deletes.md | 4 +- docs/examples/health/get-queue-functions.md | 4 +- docs/examples/health/get-queue-logs.md | 4 +- docs/examples/health/get-queue-mails.md | 4 +- docs/examples/health/get-queue-messaging.md | 4 +- docs/examples/health/get-queue-migrations.md | 4 +- docs/examples/health/get-queue-usage-dump.md | 4 +- docs/examples/health/get-queue-usage.md | 4 +- docs/examples/health/get-queue-webhooks.md | 4 +- docs/examples/health/get-queue.md | 4 +- docs/examples/health/get-storage-local.md | 4 +- docs/examples/health/get-storage.md | 4 +- docs/examples/health/get-time.md | 4 +- docs/examples/health/get.md | 4 +- docs/examples/locale/get.md | 2 +- docs/examples/locale/list-codes.md | 2 +- docs/examples/locale/list-continents.md | 2 +- docs/examples/locale/list-countries-e-u.md | 2 +- docs/examples/locale/list-countries-phones.md | 2 +- docs/examples/locale/list-countries.md | 2 +- docs/examples/locale/list-currencies.md | 2 +- docs/examples/locale/list-languages.md | 2 +- .../messaging/create-apns-provider.md | 4 +- docs/examples/messaging/create-email.md | 4 +- .../examples/messaging/create-fcm-provider.md | 4 +- .../messaging/create-mailgun-provider.md | 4 +- .../messaging/create-msg91provider.md | 4 +- docs/examples/messaging/create-push.md | 4 +- .../messaging/create-sendgrid-provider.md | 4 +- docs/examples/messaging/create-sms.md | 4 +- .../messaging/create-smtp-provider.md | 4 +- docs/examples/messaging/create-subscriber.md | 4 +- .../messaging/create-telesign-provider.md | 4 +- .../messaging/create-textmagic-provider.md | 4 +- docs/examples/messaging/create-topic.md | 4 +- .../messaging/create-twilio-provider.md | 4 +- .../messaging/create-vonage-provider.md | 4 +- docs/examples/messaging/delete-provider.md | 4 +- docs/examples/messaging/delete-subscriber.md | 4 +- docs/examples/messaging/delete-topic.md | 4 +- docs/examples/messaging/delete.md | 4 +- docs/examples/messaging/get-message.md | 4 +- docs/examples/messaging/get-provider.md | 4 +- docs/examples/messaging/get-subscriber.md | 4 +- docs/examples/messaging/get-topic.md | 4 +- docs/examples/messaging/list-message-logs.md | 4 +- docs/examples/messaging/list-messages.md | 4 +- docs/examples/messaging/list-provider-logs.md | 4 +- docs/examples/messaging/list-providers.md | 4 +- .../messaging/list-subscriber-logs.md | 4 +- docs/examples/messaging/list-subscribers.md | 4 +- docs/examples/messaging/list-targets.md | 4 +- docs/examples/messaging/list-topic-logs.md | 4 +- docs/examples/messaging/list-topics.md | 4 +- .../messaging/update-apns-provider.md | 4 +- docs/examples/messaging/update-email.md | 4 +- .../examples/messaging/update-fcm-provider.md | 4 +- .../messaging/update-mailgun-provider.md | 4 +- .../messaging/update-msg91provider.md | 4 +- docs/examples/messaging/update-push.md | 4 +- .../messaging/update-sendgrid-provider.md | 4 +- docs/examples/messaging/update-sms.md | 4 +- .../messaging/update-smtp-provider.md | 4 +- .../messaging/update-telesign-provider.md | 4 +- .../messaging/update-textmagic-provider.md | 4 +- docs/examples/messaging/update-topic.md | 4 +- .../messaging/update-twilio-provider.md | 4 +- .../messaging/update-vonage-provider.md | 4 +- docs/examples/storage/create-bucket.md | 4 +- docs/examples/storage/create-file.md | 2 +- docs/examples/storage/delete-bucket.md | 4 +- docs/examples/storage/delete-file.md | 2 +- docs/examples/storage/get-bucket.md | 4 +- docs/examples/storage/get-file-download.md | 2 +- docs/examples/storage/get-file-preview.md | 2 +- docs/examples/storage/get-file-view.md | 2 +- docs/examples/storage/get-file.md | 2 +- docs/examples/storage/list-buckets.md | 4 +- docs/examples/storage/list-files.md | 2 +- docs/examples/storage/update-bucket.md | 4 +- docs/examples/storage/update-file.md | 2 +- docs/examples/teams/create-membership.md | 2 +- docs/examples/teams/create.md | 2 +- docs/examples/teams/delete-membership.md | 2 +- docs/examples/teams/delete.md | 2 +- docs/examples/teams/get-membership.md | 2 +- docs/examples/teams/get-prefs.md | 2 +- docs/examples/teams/get.md | 2 +- docs/examples/teams/list-memberships.md | 2 +- docs/examples/teams/list.md | 2 +- .../teams/update-membership-status.md | 2 +- docs/examples/teams/update-membership.md | 2 +- docs/examples/teams/update-name.md | 2 +- docs/examples/teams/update-prefs.md | 2 +- docs/examples/users/create-argon2user.md | 4 +- docs/examples/users/create-bcrypt-user.md | 4 +- docs/examples/users/create-j-w-t.md | 15 +++ docs/examples/users/create-m-d5user.md | 4 +- .../users/create-mfa-recovery-codes.md | 4 +- docs/examples/users/create-p-h-pass-user.md | 4 +- docs/examples/users/create-s-h-a-user.md | 4 +- .../users/create-scrypt-modified-user.md | 4 +- docs/examples/users/create-scrypt-user.md | 4 +- docs/examples/users/create-session.md | 4 +- docs/examples/users/create-target.md | 4 +- docs/examples/users/create-token.md | 4 +- docs/examples/users/create.md | 4 +- docs/examples/users/delete-identity.md | 4 +- .../users/delete-mfa-authenticator.md | 4 +- docs/examples/users/delete-session.md | 4 +- docs/examples/users/delete-sessions.md | 4 +- docs/examples/users/delete-target.md | 4 +- docs/examples/users/delete.md | 4 +- docs/examples/users/get-mfa-recovery-codes.md | 4 +- docs/examples/users/get-prefs.md | 4 +- docs/examples/users/get-target.md | 4 +- docs/examples/users/get.md | 4 +- docs/examples/users/list-identities.md | 4 +- docs/examples/users/list-logs.md | 4 +- docs/examples/users/list-memberships.md | 4 +- docs/examples/users/list-mfa-factors.md | 4 +- docs/examples/users/list-sessions.md | 4 +- docs/examples/users/list-targets.md | 4 +- docs/examples/users/list.md | 4 +- .../users/update-email-verification.md | 4 +- docs/examples/users/update-email.md | 4 +- docs/examples/users/update-labels.md | 4 +- .../users/update-mfa-recovery-codes.md | 4 +- docs/examples/users/update-mfa.md | 4 +- docs/examples/users/update-name.md | 4 +- docs/examples/users/update-password.md | 4 +- .../users/update-phone-verification.md | 4 +- docs/examples/users/update-phone.md | 4 +- docs/examples/users/update-prefs.md | 4 +- docs/examples/users/update-status.md | 4 +- docs/examples/users/update-target.md | 4 +- 271 files changed, 710 insertions(+), 449 deletions(-) create mode 100644 Sources/AppwriteModels/Build.swift create mode 100644 docs/examples/functions/delete-execution.md create mode 100644 docs/examples/functions/update-deployment-build.md create mode 100644 docs/examples/users/create-j-w-t.md diff --git a/README.md b/README.md index 277e55c..fbbc21c 100644 --- a/README.md +++ b/README.md @@ -2,12 +2,12 @@ ![Swift Package Manager](https://img.shields.io/github/v/release/appwrite/sdk-for-swift.svg?color=green&style=flat-square) ![License](https://img.shields.io/github/license/appwrite/sdk-for-swift.svg?style=flat-square) -![Version](https://img.shields.io/badge/api%20version-1.5.6-blue.svg?style=flat-square) +![Version](https://img.shields.io/badge/api%20version-1.5.7-blue.svg?style=flat-square) [![Build Status](https://img.shields.io/travis/com/appwrite/sdk-generator?style=flat-square)](https://travis-ci.com/appwrite/sdk-generator) [![Twitter Account](https://img.shields.io/twitter/follow/appwrite?color=00acee&label=twitter&style=flat-square)](https://twitter.com/appwrite) [![Discord](https://img.shields.io/discord/564160730845151244?label=discord&style=flat-square)](https://appwrite.io/discord) -**This SDK is compatible with Appwrite server version 1.5.x. For older versions, please check [previous releases](https://github.com/appwrite/sdk-for-swift/releases).** +**This SDK is compatible with Appwrite server version 1.6.x. For older versions, please check [previous releases](https://github.com/appwrite/sdk-for-swift/releases).** > This is the Swift SDK for integrating with Appwrite from your Swift server-side code. If you're looking for the Apple SDK you should check [appwrite/sdk-for-apple](https://github.com/appwrite/sdk-for-apple) diff --git a/Sources/Appwrite/Client.swift b/Sources/Appwrite/Client.swift index 7e89019..ed77521 100644 --- a/Sources/Appwrite/Client.swift +++ b/Sources/Appwrite/Client.swift @@ -386,6 +386,12 @@ open class Client { timeout: .seconds(30) ) + if let warning = response.headers["x-appwrite-warning"].first { + warning.split(separator: ";").forEach { warning in + print("Warning: \(warning)") + } + } + switch response.status.code { case 0..<400: switch T.self { diff --git a/Sources/Appwrite/Services/Account.swift b/Sources/Appwrite/Services/Account.swift index 4219e5e..065a7cb 100644 --- a/Sources/Appwrite/Services/Account.swift +++ b/Sources/Appwrite/Services/Account.swift @@ -290,7 +290,7 @@ open class Account: Service { /// open func createJWT( ) async throws -> AppwriteModels.Jwt { - let apiPath: String = "/account/jwt" + let apiPath: String = "/account/jwts" let apiParams: [String: Any] = [:] @@ -443,7 +443,7 @@ open class Account: Service { /// /// Verify an authenticator app after adding it using the [add /// authenticator](/docs/references/cloud/client-web/account#createMfaAuthenticator) - /// method. add + /// method. /// /// @param AppwriteEnums.AuthenticatorType type /// @param String otp @@ -484,7 +484,7 @@ open class Account: Service { /// /// Verify an authenticator app after adding it using the [add /// authenticator](/docs/references/cloud/client-web/account#createMfaAuthenticator) - /// method. add + /// method. /// /// @param AppwriteEnums.AuthenticatorType type /// @param String otp diff --git a/Sources/Appwrite/Services/Functions.swift b/Sources/Appwrite/Services/Functions.swift index 1a50199..f223d93 100644 --- a/Sources/Appwrite/Services/Functions.swift +++ b/Sources/Appwrite/Services/Functions.swift @@ -66,6 +66,7 @@ open class Functions: Service { /// @param Bool logging /// @param String entrypoint /// @param String commands + /// @param [String] scopes /// @param String installationId /// @param String providerRepositoryId /// @param String providerBranch @@ -90,6 +91,7 @@ open class Functions: Service { logging: Bool? = nil, entrypoint: String? = nil, commands: String? = nil, + scopes: [String]? = nil, installationId: String? = nil, providerRepositoryId: String? = nil, providerBranch: String? = nil, @@ -114,6 +116,7 @@ open class Functions: Service { "logging": logging, "entrypoint": entrypoint, "commands": commands, + "scopes": scopes, "installationId": installationId, "providerRepositoryId": providerRepositoryId, "providerBranch": providerBranch, @@ -223,6 +226,7 @@ open class Functions: Service { /// @param Bool logging /// @param String entrypoint /// @param String commands + /// @param [String] scopes /// @param String installationId /// @param String providerRepositoryId /// @param String providerBranch @@ -243,6 +247,7 @@ open class Functions: Service { logging: Bool? = nil, entrypoint: String? = nil, commands: String? = nil, + scopes: [String]? = nil, installationId: String? = nil, providerRepositoryId: String? = nil, providerBranch: String? = nil, @@ -263,6 +268,7 @@ open class Functions: Service { "logging": logging, "entrypoint": entrypoint, "commands": commands, + "scopes": scopes, "installationId": installationId, "providerRepositoryId": providerRepositoryId, "providerBranch": providerBranch, @@ -526,10 +532,7 @@ open class Functions: Service { } /// - /// Create build - /// - /// Create a new build for an Appwrite Function deployment. This endpoint can - /// be used to retry a failed build. + /// Rebuild deployment /// /// @param String functionId /// @param String deploymentId @@ -540,14 +543,15 @@ open class Functions: Service { open func createBuild( functionId: String, deploymentId: String, - buildId: String + buildId: String? = nil ) async throws -> Any { - let apiPath: String = "/functions/{functionId}/deployments/{deploymentId}/builds/{buildId}" + let apiPath: String = "/functions/{functionId}/deployments/{deploymentId}/build" .replacingOccurrences(of: "{functionId}", with: functionId) .replacingOccurrences(of: "{deploymentId}", with: deploymentId) - .replacingOccurrences(of: "{buildId}", with: buildId) - let apiParams: [String: Any] = [:] + let apiParams: [String: Any?] = [ + "buildId": buildId + ] let apiHeaders: [String: String] = [ "content-type": "application/json" @@ -560,6 +564,41 @@ open class Functions: Service { params: apiParams ) } + /// + /// Cancel deployment + /// + /// @param String functionId + /// @param String deploymentId + /// @throws Exception + /// @return array + /// + open func updateDeploymentBuild( + functionId: String, + deploymentId: String + ) async throws -> AppwriteModels.Build { + let apiPath: String = "/functions/{functionId}/deployments/{deploymentId}/build" + .replacingOccurrences(of: "{functionId}", with: functionId) + .replacingOccurrences(of: "{deploymentId}", with: deploymentId) + + let apiParams: [String: Any] = [:] + + let apiHeaders: [String: String] = [ + "content-type": "application/json" + ] + + let converter: (Any) -> AppwriteModels.Build = { response in + return AppwriteModels.Build.from(map: response as! [String: Any]) + } + + return try await client.call( + method: "PATCH", + path: apiPath, + headers: apiHeaders, + params: apiParams, + converter: converter + ) + } + /// /// Download Deployment /// @@ -648,6 +687,7 @@ open class Functions: Service { /// @param String path /// @param AppwriteEnums.ExecutionMethod method /// @param Any headers + /// @param String scheduledAt /// @throws Exception /// @return array /// @@ -657,7 +697,8 @@ open class Functions: Service { async: Bool? = nil, path: String? = nil, method: AppwriteEnums.ExecutionMethod? = nil, - headers: Any? = nil + headers: Any? = nil, + scheduledAt: String? = nil ) async throws -> AppwriteModels.Execution { let apiPath: String = "/functions/{functionId}/executions" .replacingOccurrences(of: "{functionId}", with: functionId) @@ -667,7 +708,8 @@ open class Functions: Service { "async": async, "path": path, "method": method, - "headers": headers + "headers": headers, + "scheduledAt": scheduledAt ] let apiHeaders: [String: String] = [ @@ -724,6 +766,38 @@ open class Functions: Service { ) } + /// + /// Delete execution + /// + /// Delete a function execution by its unique ID. + /// + /// + /// @param String functionId + /// @param String executionId + /// @throws Exception + /// @return array + /// + open func deleteExecution( + functionId: String, + executionId: String + ) async throws -> Any { + let apiPath: String = "/functions/{functionId}/executions/{executionId}" + .replacingOccurrences(of: "{functionId}", with: functionId) + .replacingOccurrences(of: "{executionId}", with: executionId) + + let apiParams: [String: Any] = [:] + + let apiHeaders: [String: String] = [ + "content-type": "application/json" + ] + + return try await client.call( + method: "DELETE", + path: apiPath, + headers: apiHeaders, + params: apiParams ) + } + /// /// List variables /// diff --git a/Sources/Appwrite/Services/Users.swift b/Sources/Appwrite/Services/Users.swift index 2e63dd2..62d2fc6 100644 --- a/Sources/Appwrite/Services/Users.swift +++ b/Sources/Appwrite/Services/Users.swift @@ -962,6 +962,49 @@ open class Users: Service { ) } + /// + /// Create user JWT + /// + /// Use this endpoint to create a JSON Web Token for user by its unique ID. You + /// can use the resulting JWT to authenticate on behalf of the user. The JWT + /// secret will become invalid if the session it uses gets deleted. + /// + /// @param String userId + /// @param String sessionId + /// @param Int duration + /// @throws Exception + /// @return array + /// + open func createJWT( + userId: String, + sessionId: String? = nil, + duration: Int? = nil + ) async throws -> AppwriteModels.Jwt { + let apiPath: String = "/users/{userId}/jwts" + .replacingOccurrences(of: "{userId}", with: userId) + + let apiParams: [String: Any?] = [ + "sessionId": sessionId, + "duration": duration + ] + + let apiHeaders: [String: String] = [ + "content-type": "application/json" + ] + + let converter: (Any) -> AppwriteModels.Jwt = { response in + return AppwriteModels.Jwt.from(map: response as! [String: Any]) + } + + return try await client.call( + method: "POST", + path: apiPath, + headers: apiHeaders, + params: apiParams, + converter: converter + ) + } + /// /// Update user labels /// diff --git a/Sources/AppwriteEnums/Name.swift b/Sources/AppwriteEnums/Name.swift index a92cdf5..f792c31 100644 --- a/Sources/AppwriteEnums/Name.swift +++ b/Sources/AppwriteEnums/Name.swift @@ -8,7 +8,7 @@ public enum Name: String, Codable { case v1Functions = "v1-functions" case v1Usage = "v1-usage" case v1UsageDump = "v1-usage-dump" - case webhooksv1 = "webhooksv1" + case v1Webhooks = "v1-webhooks" case v1Certificates = "v1-certificates" case v1Builds = "v1-builds" case v1Messaging = "v1-messaging" diff --git a/Sources/AppwriteEnums/Runtime.swift b/Sources/AppwriteEnums/Runtime.swift index 424bfe6..c0b96fb 100644 --- a/Sources/AppwriteEnums/Runtime.swift +++ b/Sources/AppwriteEnums/Runtime.swift @@ -46,6 +46,7 @@ public enum Runtime: String, Codable { case cpp17 = "cpp-17" case cpp20 = "cpp-20" case bun10 = "bun-1.0" + case go122 = "go-1.22" public func encode(to encoder: Encoder) throws { var container = encoder.singleValueContainer() diff --git a/Sources/AppwriteModels/Build.swift b/Sources/AppwriteModels/Build.swift new file mode 100644 index 0000000..1de9b05 --- /dev/null +++ b/Sources/AppwriteModels/Build.swift @@ -0,0 +1,84 @@ +import Foundation +import JSONCodable + +/// Build +public class Build { + + /// Build ID. + public let id: String + + /// The deployment that created this build. + public let deploymentId: String + + /// The build status. There are a few different types and each one means something different. \nFailed - The deployment build has failed. More details can usually be found in buildStderr\nReady - The deployment build was successful and the deployment is ready to be deployed\nProcessing - The deployment is currently waiting to have a build triggered\nBuilding - The deployment is currently being built + public let status: String + + /// The stdout of the build. + public let stdout: String + + /// The stderr of the build. + public let stderr: String + + /// The deployment creation date in ISO 8601 format. + public let startTime: String + + /// The time the build was finished in ISO 8601 format. + public let endTime: String + + /// The build duration in seconds. + public let duration: Int + + /// The code size in bytes. + public let size: Int + + + init( + id: String, + deploymentId: String, + status: String, + stdout: String, + stderr: String, + startTime: String, + endTime: String, + duration: Int, + size: Int + ) { + self.id = id + self.deploymentId = deploymentId + self.status = status + self.stdout = stdout + self.stderr = stderr + self.startTime = startTime + self.endTime = endTime + self.duration = duration + self.size = size + } + + public func toMap() -> [String: Any] { + return [ + "$id": id as Any, + "deploymentId": deploymentId as Any, + "status": status as Any, + "stdout": stdout as Any, + "stderr": stderr as Any, + "startTime": startTime as Any, + "endTime": endTime as Any, + "duration": duration as Any, + "size": size as Any + ] + } + + public static func from(map: [String: Any] ) -> Build { + return Build( + id: map["$id"] as! String, + deploymentId: map["deploymentId"] as! String, + status: map["status"] as! String, + stdout: map["stdout"] as! String, + stderr: map["stderr"] as! String, + startTime: map["startTime"] as! String, + endTime: map["endTime"] as! String, + duration: map["duration"] as! Int, + size: map["size"] as! Int + ) + } +} diff --git a/Sources/AppwriteModels/Function.swift b/Sources/AppwriteModels/Function.swift index e1dcba5..d193104 100644 --- a/Sources/AppwriteModels/Function.swift +++ b/Sources/AppwriteModels/Function.swift @@ -34,6 +34,9 @@ public class Function { /// Function's active deployment ID. public let deployment: String + /// Allowed permission scopes. + public let scopes: [Any] + /// Function variables. public let vars: [Variable] @@ -82,6 +85,7 @@ public class Function { logging: Bool, runtime: String, deployment: String, + scopes: [Any], vars: [Variable], events: [Any], schedule: String, @@ -105,6 +109,7 @@ public class Function { self.logging = logging self.runtime = runtime self.deployment = deployment + self.scopes = scopes self.vars = vars self.events = events self.schedule = schedule @@ -131,6 +136,7 @@ public class Function { "logging": logging as Any, "runtime": runtime as Any, "deployment": deployment as Any, + "scopes": scopes as Any, "vars": vars.map { $0.toMap() } as Any, "events": events as Any, "schedule": schedule as Any, @@ -158,6 +164,7 @@ public class Function { logging: map["logging"] as! Bool, runtime: map["runtime"] as! String, deployment: map["deployment"] as! String, + scopes: map["scopes"] as! [Any], vars: (map["vars"] as! [[String: Any]]).map { Variable.from(map: $0) }, events: map["events"] as! [Any], schedule: map["schedule"] as! String, diff --git a/docs/examples/account/create-anonymous-session.md b/docs/examples/account/create-anonymous-session.md index 9904f6f..6392cc4 100644 --- a/docs/examples/account/create-anonymous-session.md +++ b/docs/examples/account/create-anonymous-session.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID let account = Account(client) diff --git a/docs/examples/account/create-email-password-session.md b/docs/examples/account/create-email-password-session.md index 8740f0c..2ff62e4 100644 --- a/docs/examples/account/create-email-password-session.md +++ b/docs/examples/account/create-email-password-session.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID let account = Account(client) diff --git a/docs/examples/account/create-email-token.md b/docs/examples/account/create-email-token.md index 40535d5..1da4ecb 100644 --- a/docs/examples/account/create-email-token.md +++ b/docs/examples/account/create-email-token.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID let account = Account(client) diff --git a/docs/examples/account/create-j-w-t.md b/docs/examples/account/create-j-w-t.md index c18c3c9..ade54e6 100644 --- a/docs/examples/account/create-j-w-t.md +++ b/docs/examples/account/create-j-w-t.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID let account = Account(client) diff --git a/docs/examples/account/create-magic-u-r-l-token.md b/docs/examples/account/create-magic-u-r-l-token.md index 1fd7360..83d763c 100644 --- a/docs/examples/account/create-magic-u-r-l-token.md +++ b/docs/examples/account/create-magic-u-r-l-token.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID let account = Account(client) diff --git a/docs/examples/account/create-mfa-authenticator.md b/docs/examples/account/create-mfa-authenticator.md index ff53e0b..1d1bf46 100644 --- a/docs/examples/account/create-mfa-authenticator.md +++ b/docs/examples/account/create-mfa-authenticator.md @@ -3,7 +3,7 @@ import AppwriteEnums let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with let account = Account(client) diff --git a/docs/examples/account/create-mfa-challenge.md b/docs/examples/account/create-mfa-challenge.md index 4045203..3798884 100644 --- a/docs/examples/account/create-mfa-challenge.md +++ b/docs/examples/account/create-mfa-challenge.md @@ -3,7 +3,7 @@ import AppwriteEnums let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID let account = Account(client) diff --git a/docs/examples/account/create-mfa-recovery-codes.md b/docs/examples/account/create-mfa-recovery-codes.md index 77bb2ef..acbd337 100644 --- a/docs/examples/account/create-mfa-recovery-codes.md +++ b/docs/examples/account/create-mfa-recovery-codes.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with let account = Account(client) diff --git a/docs/examples/account/create-o-auth2token.md b/docs/examples/account/create-o-auth2token.md index 677450e..4224c6b 100644 --- a/docs/examples/account/create-o-auth2token.md +++ b/docs/examples/account/create-o-auth2token.md @@ -3,7 +3,7 @@ import AppwriteEnums let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID let account = Account(client) diff --git a/docs/examples/account/create-phone-token.md b/docs/examples/account/create-phone-token.md index a0c3a8c..f8cff78 100644 --- a/docs/examples/account/create-phone-token.md +++ b/docs/examples/account/create-phone-token.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID let account = Account(client) diff --git a/docs/examples/account/create-phone-verification.md b/docs/examples/account/create-phone-verification.md index 1391fe5..3d2af4a 100644 --- a/docs/examples/account/create-phone-verification.md +++ b/docs/examples/account/create-phone-verification.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with let account = Account(client) diff --git a/docs/examples/account/create-recovery.md b/docs/examples/account/create-recovery.md index 1069fd4..3926a86 100644 --- a/docs/examples/account/create-recovery.md +++ b/docs/examples/account/create-recovery.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with let account = Account(client) diff --git a/docs/examples/account/create-session.md b/docs/examples/account/create-session.md index 4ed985d..2bdecc7 100644 --- a/docs/examples/account/create-session.md +++ b/docs/examples/account/create-session.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID let account = Account(client) diff --git a/docs/examples/account/create-verification.md b/docs/examples/account/create-verification.md index 259bb51..96b414c 100644 --- a/docs/examples/account/create-verification.md +++ b/docs/examples/account/create-verification.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with let account = Account(client) diff --git a/docs/examples/account/create.md b/docs/examples/account/create.md index e7caef4..cb8dd10 100644 --- a/docs/examples/account/create.md +++ b/docs/examples/account/create.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID let account = Account(client) diff --git a/docs/examples/account/delete-identity.md b/docs/examples/account/delete-identity.md index 59001b4..1a25053 100644 --- a/docs/examples/account/delete-identity.md +++ b/docs/examples/account/delete-identity.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with let account = Account(client) diff --git a/docs/examples/account/delete-mfa-authenticator.md b/docs/examples/account/delete-mfa-authenticator.md index eeee94c..e4f76e6 100644 --- a/docs/examples/account/delete-mfa-authenticator.md +++ b/docs/examples/account/delete-mfa-authenticator.md @@ -3,7 +3,7 @@ import AppwriteEnums let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with let account = Account(client) diff --git a/docs/examples/account/delete-session.md b/docs/examples/account/delete-session.md index c0682f4..e452a6c 100644 --- a/docs/examples/account/delete-session.md +++ b/docs/examples/account/delete-session.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with let account = Account(client) diff --git a/docs/examples/account/delete-sessions.md b/docs/examples/account/delete-sessions.md index bfd1689..08f667c 100644 --- a/docs/examples/account/delete-sessions.md +++ b/docs/examples/account/delete-sessions.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with let account = Account(client) diff --git a/docs/examples/account/get-mfa-recovery-codes.md b/docs/examples/account/get-mfa-recovery-codes.md index d24b4f9..d8d30b3 100644 --- a/docs/examples/account/get-mfa-recovery-codes.md +++ b/docs/examples/account/get-mfa-recovery-codes.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with let account = Account(client) diff --git a/docs/examples/account/get-prefs.md b/docs/examples/account/get-prefs.md index 6351eb2..eed9833 100644 --- a/docs/examples/account/get-prefs.md +++ b/docs/examples/account/get-prefs.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with let account = Account(client) diff --git a/docs/examples/account/get-session.md b/docs/examples/account/get-session.md index 49f0f57..6f3bce3 100644 --- a/docs/examples/account/get-session.md +++ b/docs/examples/account/get-session.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with let account = Account(client) diff --git a/docs/examples/account/get.md b/docs/examples/account/get.md index 701135b..80ae682 100644 --- a/docs/examples/account/get.md +++ b/docs/examples/account/get.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with let account = Account(client) diff --git a/docs/examples/account/list-identities.md b/docs/examples/account/list-identities.md index 9737195..175508b 100644 --- a/docs/examples/account/list-identities.md +++ b/docs/examples/account/list-identities.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with let account = Account(client) diff --git a/docs/examples/account/list-logs.md b/docs/examples/account/list-logs.md index 28b72f7..c2e505a 100644 --- a/docs/examples/account/list-logs.md +++ b/docs/examples/account/list-logs.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with let account = Account(client) diff --git a/docs/examples/account/list-mfa-factors.md b/docs/examples/account/list-mfa-factors.md index 0fcf12e..41dd98a 100644 --- a/docs/examples/account/list-mfa-factors.md +++ b/docs/examples/account/list-mfa-factors.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with let account = Account(client) diff --git a/docs/examples/account/list-sessions.md b/docs/examples/account/list-sessions.md index 6d8b674..922c8f3 100644 --- a/docs/examples/account/list-sessions.md +++ b/docs/examples/account/list-sessions.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with let account = Account(client) diff --git a/docs/examples/account/update-email.md b/docs/examples/account/update-email.md index 21e907a..7a94b49 100644 --- a/docs/examples/account/update-email.md +++ b/docs/examples/account/update-email.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with let account = Account(client) diff --git a/docs/examples/account/update-m-f-a.md b/docs/examples/account/update-m-f-a.md index 35f69fb..46c849d 100644 --- a/docs/examples/account/update-m-f-a.md +++ b/docs/examples/account/update-m-f-a.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with let account = Account(client) diff --git a/docs/examples/account/update-magic-u-r-l-session.md b/docs/examples/account/update-magic-u-r-l-session.md index 6950792..6571266 100644 --- a/docs/examples/account/update-magic-u-r-l-session.md +++ b/docs/examples/account/update-magic-u-r-l-session.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID let account = Account(client) diff --git a/docs/examples/account/update-mfa-authenticator.md b/docs/examples/account/update-mfa-authenticator.md index cde9bf2..2bb3ce7 100644 --- a/docs/examples/account/update-mfa-authenticator.md +++ b/docs/examples/account/update-mfa-authenticator.md @@ -3,7 +3,7 @@ import AppwriteEnums let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with let account = Account(client) diff --git a/docs/examples/account/update-mfa-challenge.md b/docs/examples/account/update-mfa-challenge.md index 13bd81e..2eac96d 100644 --- a/docs/examples/account/update-mfa-challenge.md +++ b/docs/examples/account/update-mfa-challenge.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with let account = Account(client) diff --git a/docs/examples/account/update-mfa-recovery-codes.md b/docs/examples/account/update-mfa-recovery-codes.md index b194a21..f06ede4 100644 --- a/docs/examples/account/update-mfa-recovery-codes.md +++ b/docs/examples/account/update-mfa-recovery-codes.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with let account = Account(client) diff --git a/docs/examples/account/update-name.md b/docs/examples/account/update-name.md index 89b64ee..d51f9d2 100644 --- a/docs/examples/account/update-name.md +++ b/docs/examples/account/update-name.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with let account = Account(client) diff --git a/docs/examples/account/update-password.md b/docs/examples/account/update-password.md index aca1588..d9232b8 100644 --- a/docs/examples/account/update-password.md +++ b/docs/examples/account/update-password.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with let account = Account(client) diff --git a/docs/examples/account/update-phone-session.md b/docs/examples/account/update-phone-session.md index 71d404e..df1feae 100644 --- a/docs/examples/account/update-phone-session.md +++ b/docs/examples/account/update-phone-session.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID let account = Account(client) diff --git a/docs/examples/account/update-phone-verification.md b/docs/examples/account/update-phone-verification.md index c4aee72..20085ac 100644 --- a/docs/examples/account/update-phone-verification.md +++ b/docs/examples/account/update-phone-verification.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with let account = Account(client) diff --git a/docs/examples/account/update-phone.md b/docs/examples/account/update-phone.md index 0c1517b..c7c817b 100644 --- a/docs/examples/account/update-phone.md +++ b/docs/examples/account/update-phone.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with let account = Account(client) diff --git a/docs/examples/account/update-prefs.md b/docs/examples/account/update-prefs.md index b39d943..3fc0a9c 100644 --- a/docs/examples/account/update-prefs.md +++ b/docs/examples/account/update-prefs.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with let account = Account(client) diff --git a/docs/examples/account/update-recovery.md b/docs/examples/account/update-recovery.md index e6df185..0b8d463 100644 --- a/docs/examples/account/update-recovery.md +++ b/docs/examples/account/update-recovery.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with let account = Account(client) diff --git a/docs/examples/account/update-session.md b/docs/examples/account/update-session.md index 3e7a0be..40b88d8 100644 --- a/docs/examples/account/update-session.md +++ b/docs/examples/account/update-session.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with let account = Account(client) diff --git a/docs/examples/account/update-status.md b/docs/examples/account/update-status.md index 979cf37..1d2f7f2 100644 --- a/docs/examples/account/update-status.md +++ b/docs/examples/account/update-status.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with let account = Account(client) diff --git a/docs/examples/account/update-verification.md b/docs/examples/account/update-verification.md index 2d79cfc..07c1131 100644 --- a/docs/examples/account/update-verification.md +++ b/docs/examples/account/update-verification.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with let account = Account(client) diff --git a/docs/examples/avatars/get-browser.md b/docs/examples/avatars/get-browser.md index dbe9f60..3ac6c59 100644 --- a/docs/examples/avatars/get-browser.md +++ b/docs/examples/avatars/get-browser.md @@ -3,7 +3,7 @@ import AppwriteEnums let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with let avatars = Avatars(client) diff --git a/docs/examples/avatars/get-credit-card.md b/docs/examples/avatars/get-credit-card.md index 9475b42..306ceb8 100644 --- a/docs/examples/avatars/get-credit-card.md +++ b/docs/examples/avatars/get-credit-card.md @@ -3,7 +3,7 @@ import AppwriteEnums let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with let avatars = Avatars(client) diff --git a/docs/examples/avatars/get-favicon.md b/docs/examples/avatars/get-favicon.md index bb5ed29..9121f07 100644 --- a/docs/examples/avatars/get-favicon.md +++ b/docs/examples/avatars/get-favicon.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with let avatars = Avatars(client) diff --git a/docs/examples/avatars/get-flag.md b/docs/examples/avatars/get-flag.md index ecde3c8..3c9bd75 100644 --- a/docs/examples/avatars/get-flag.md +++ b/docs/examples/avatars/get-flag.md @@ -3,7 +3,7 @@ import AppwriteEnums let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with let avatars = Avatars(client) diff --git a/docs/examples/avatars/get-image.md b/docs/examples/avatars/get-image.md index 37fa82b..e32b515 100644 --- a/docs/examples/avatars/get-image.md +++ b/docs/examples/avatars/get-image.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with let avatars = Avatars(client) diff --git a/docs/examples/avatars/get-initials.md b/docs/examples/avatars/get-initials.md index d324dcb..bba0538 100644 --- a/docs/examples/avatars/get-initials.md +++ b/docs/examples/avatars/get-initials.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with let avatars = Avatars(client) diff --git a/docs/examples/avatars/get-q-r.md b/docs/examples/avatars/get-q-r.md index 3c418c2..d84500b 100644 --- a/docs/examples/avatars/get-q-r.md +++ b/docs/examples/avatars/get-q-r.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with let avatars = Avatars(client) diff --git a/docs/examples/databases/create-boolean-attribute.md b/docs/examples/databases/create-boolean-attribute.md index c7ffdd0..ac737f7 100644 --- a/docs/examples/databases/create-boolean-attribute.md +++ b/docs/examples/databases/create-boolean-attribute.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let databases = Databases(client) diff --git a/docs/examples/databases/create-collection.md b/docs/examples/databases/create-collection.md index 241b381..46984d4 100644 --- a/docs/examples/databases/create-collection.md +++ b/docs/examples/databases/create-collection.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let databases = Databases(client) diff --git a/docs/examples/databases/create-datetime-attribute.md b/docs/examples/databases/create-datetime-attribute.md index 022be46..e88ecbc 100644 --- a/docs/examples/databases/create-datetime-attribute.md +++ b/docs/examples/databases/create-datetime-attribute.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let databases = Databases(client) diff --git a/docs/examples/databases/create-document.md b/docs/examples/databases/create-document.md index aac1abd..78ea97b 100644 --- a/docs/examples/databases/create-document.md +++ b/docs/examples/databases/create-document.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with let databases = Databases(client) diff --git a/docs/examples/databases/create-email-attribute.md b/docs/examples/databases/create-email-attribute.md index e64ce2f..f0325b8 100644 --- a/docs/examples/databases/create-email-attribute.md +++ b/docs/examples/databases/create-email-attribute.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let databases = Databases(client) diff --git a/docs/examples/databases/create-enum-attribute.md b/docs/examples/databases/create-enum-attribute.md index ca05520..3773e7e 100644 --- a/docs/examples/databases/create-enum-attribute.md +++ b/docs/examples/databases/create-enum-attribute.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let databases = Databases(client) diff --git a/docs/examples/databases/create-float-attribute.md b/docs/examples/databases/create-float-attribute.md index 9353b2f..e303345 100644 --- a/docs/examples/databases/create-float-attribute.md +++ b/docs/examples/databases/create-float-attribute.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let databases = Databases(client) diff --git a/docs/examples/databases/create-index.md b/docs/examples/databases/create-index.md index 03d0b96..6f8d526 100644 --- a/docs/examples/databases/create-index.md +++ b/docs/examples/databases/create-index.md @@ -3,8 +3,8 @@ import AppwriteEnums let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let databases = Databases(client) diff --git a/docs/examples/databases/create-integer-attribute.md b/docs/examples/databases/create-integer-attribute.md index b43fd66..f51508c 100644 --- a/docs/examples/databases/create-integer-attribute.md +++ b/docs/examples/databases/create-integer-attribute.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let databases = Databases(client) diff --git a/docs/examples/databases/create-ip-attribute.md b/docs/examples/databases/create-ip-attribute.md index 8c3af36..57283b5 100644 --- a/docs/examples/databases/create-ip-attribute.md +++ b/docs/examples/databases/create-ip-attribute.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let databases = Databases(client) diff --git a/docs/examples/databases/create-relationship-attribute.md b/docs/examples/databases/create-relationship-attribute.md index faee863..8ed18bf 100644 --- a/docs/examples/databases/create-relationship-attribute.md +++ b/docs/examples/databases/create-relationship-attribute.md @@ -3,8 +3,8 @@ import AppwriteEnums let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let databases = Databases(client) diff --git a/docs/examples/databases/create-string-attribute.md b/docs/examples/databases/create-string-attribute.md index e3b4763..eb6a42c 100644 --- a/docs/examples/databases/create-string-attribute.md +++ b/docs/examples/databases/create-string-attribute.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let databases = Databases(client) diff --git a/docs/examples/databases/create-url-attribute.md b/docs/examples/databases/create-url-attribute.md index ebd7ef4..79773fe 100644 --- a/docs/examples/databases/create-url-attribute.md +++ b/docs/examples/databases/create-url-attribute.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let databases = Databases(client) diff --git a/docs/examples/databases/create.md b/docs/examples/databases/create.md index b6eb502..9ce32c4 100644 --- a/docs/examples/databases/create.md +++ b/docs/examples/databases/create.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let databases = Databases(client) diff --git a/docs/examples/databases/delete-attribute.md b/docs/examples/databases/delete-attribute.md index 7f0690d..b2eeb4a 100644 --- a/docs/examples/databases/delete-attribute.md +++ b/docs/examples/databases/delete-attribute.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let databases = Databases(client) diff --git a/docs/examples/databases/delete-collection.md b/docs/examples/databases/delete-collection.md index 2f22e55..987ecee 100644 --- a/docs/examples/databases/delete-collection.md +++ b/docs/examples/databases/delete-collection.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let databases = Databases(client) diff --git a/docs/examples/databases/delete-document.md b/docs/examples/databases/delete-document.md index e072833..38a1ae2 100644 --- a/docs/examples/databases/delete-document.md +++ b/docs/examples/databases/delete-document.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with let databases = Databases(client) diff --git a/docs/examples/databases/delete-index.md b/docs/examples/databases/delete-index.md index df7015f..e07f1a9 100644 --- a/docs/examples/databases/delete-index.md +++ b/docs/examples/databases/delete-index.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let databases = Databases(client) diff --git a/docs/examples/databases/delete.md b/docs/examples/databases/delete.md index d6ef6c4..101fa35 100644 --- a/docs/examples/databases/delete.md +++ b/docs/examples/databases/delete.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let databases = Databases(client) diff --git a/docs/examples/databases/get-attribute.md b/docs/examples/databases/get-attribute.md index 4910e2b..3395449 100644 --- a/docs/examples/databases/get-attribute.md +++ b/docs/examples/databases/get-attribute.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let databases = Databases(client) diff --git a/docs/examples/databases/get-collection.md b/docs/examples/databases/get-collection.md index 6fed239..f99d553 100644 --- a/docs/examples/databases/get-collection.md +++ b/docs/examples/databases/get-collection.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let databases = Databases(client) diff --git a/docs/examples/databases/get-document.md b/docs/examples/databases/get-document.md index 27338b8..dee5699 100644 --- a/docs/examples/databases/get-document.md +++ b/docs/examples/databases/get-document.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with let databases = Databases(client) diff --git a/docs/examples/databases/get-index.md b/docs/examples/databases/get-index.md index 572b04d..1ab80c9 100644 --- a/docs/examples/databases/get-index.md +++ b/docs/examples/databases/get-index.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let databases = Databases(client) diff --git a/docs/examples/databases/get.md b/docs/examples/databases/get.md index f6ba954..ecddbc2 100644 --- a/docs/examples/databases/get.md +++ b/docs/examples/databases/get.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let databases = Databases(client) diff --git a/docs/examples/databases/list-attributes.md b/docs/examples/databases/list-attributes.md index 2e5a5af..15393cb 100644 --- a/docs/examples/databases/list-attributes.md +++ b/docs/examples/databases/list-attributes.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let databases = Databases(client) diff --git a/docs/examples/databases/list-collections.md b/docs/examples/databases/list-collections.md index bfa60eb..96f68b6 100644 --- a/docs/examples/databases/list-collections.md +++ b/docs/examples/databases/list-collections.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let databases = Databases(client) diff --git a/docs/examples/databases/list-documents.md b/docs/examples/databases/list-documents.md index 45683f8..8fc3698 100644 --- a/docs/examples/databases/list-documents.md +++ b/docs/examples/databases/list-documents.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with let databases = Databases(client) diff --git a/docs/examples/databases/list-indexes.md b/docs/examples/databases/list-indexes.md index 643f510..cdfcca8 100644 --- a/docs/examples/databases/list-indexes.md +++ b/docs/examples/databases/list-indexes.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let databases = Databases(client) diff --git a/docs/examples/databases/list.md b/docs/examples/databases/list.md index e65284b..8236f5d 100644 --- a/docs/examples/databases/list.md +++ b/docs/examples/databases/list.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let databases = Databases(client) diff --git a/docs/examples/databases/update-boolean-attribute.md b/docs/examples/databases/update-boolean-attribute.md index 9829393..354aadd 100644 --- a/docs/examples/databases/update-boolean-attribute.md +++ b/docs/examples/databases/update-boolean-attribute.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let databases = Databases(client) diff --git a/docs/examples/databases/update-collection.md b/docs/examples/databases/update-collection.md index 4338b1a..1d1d062 100644 --- a/docs/examples/databases/update-collection.md +++ b/docs/examples/databases/update-collection.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let databases = Databases(client) diff --git a/docs/examples/databases/update-datetime-attribute.md b/docs/examples/databases/update-datetime-attribute.md index 41324dd..1bdcef6 100644 --- a/docs/examples/databases/update-datetime-attribute.md +++ b/docs/examples/databases/update-datetime-attribute.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let databases = Databases(client) diff --git a/docs/examples/databases/update-document.md b/docs/examples/databases/update-document.md index 52e6a52..d00bf5d 100644 --- a/docs/examples/databases/update-document.md +++ b/docs/examples/databases/update-document.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with let databases = Databases(client) diff --git a/docs/examples/databases/update-email-attribute.md b/docs/examples/databases/update-email-attribute.md index c5e1f16..8cc4630 100644 --- a/docs/examples/databases/update-email-attribute.md +++ b/docs/examples/databases/update-email-attribute.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let databases = Databases(client) diff --git a/docs/examples/databases/update-enum-attribute.md b/docs/examples/databases/update-enum-attribute.md index 4f68238..ac9f1bd 100644 --- a/docs/examples/databases/update-enum-attribute.md +++ b/docs/examples/databases/update-enum-attribute.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let databases = Databases(client) diff --git a/docs/examples/databases/update-float-attribute.md b/docs/examples/databases/update-float-attribute.md index c95c12f..faee58b 100644 --- a/docs/examples/databases/update-float-attribute.md +++ b/docs/examples/databases/update-float-attribute.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let databases = Databases(client) diff --git a/docs/examples/databases/update-integer-attribute.md b/docs/examples/databases/update-integer-attribute.md index 5e26e2a..a91d97d 100644 --- a/docs/examples/databases/update-integer-attribute.md +++ b/docs/examples/databases/update-integer-attribute.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let databases = Databases(client) diff --git a/docs/examples/databases/update-ip-attribute.md b/docs/examples/databases/update-ip-attribute.md index 99bbbb6..895700a 100644 --- a/docs/examples/databases/update-ip-attribute.md +++ b/docs/examples/databases/update-ip-attribute.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let databases = Databases(client) diff --git a/docs/examples/databases/update-relationship-attribute.md b/docs/examples/databases/update-relationship-attribute.md index fa5bd54..7b4f399 100644 --- a/docs/examples/databases/update-relationship-attribute.md +++ b/docs/examples/databases/update-relationship-attribute.md @@ -3,8 +3,8 @@ import AppwriteEnums let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let databases = Databases(client) diff --git a/docs/examples/databases/update-string-attribute.md b/docs/examples/databases/update-string-attribute.md index fe381e0..102e4b7 100644 --- a/docs/examples/databases/update-string-attribute.md +++ b/docs/examples/databases/update-string-attribute.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let databases = Databases(client) diff --git a/docs/examples/databases/update-url-attribute.md b/docs/examples/databases/update-url-attribute.md index e3f7bb2..bc081e0 100644 --- a/docs/examples/databases/update-url-attribute.md +++ b/docs/examples/databases/update-url-attribute.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let databases = Databases(client) diff --git a/docs/examples/databases/update.md b/docs/examples/databases/update.md index 9d60ad4..3b49ba0 100644 --- a/docs/examples/databases/update.md +++ b/docs/examples/databases/update.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let databases = Databases(client) diff --git a/docs/examples/functions/create-build.md b/docs/examples/functions/create-build.md index d2ce165..bddaf6e 100644 --- a/docs/examples/functions/create-build.md +++ b/docs/examples/functions/create-build.md @@ -2,14 +2,14 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let functions = Functions(client) let result = try await functions.createBuild( functionId: "", deploymentId: "", - buildId: "" + buildId: "" // optional ) diff --git a/docs/examples/functions/create-deployment.md b/docs/examples/functions/create-deployment.md index 7eeee10..ea2e8df 100644 --- a/docs/examples/functions/create-deployment.md +++ b/docs/examples/functions/create-deployment.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let functions = Functions(client) diff --git a/docs/examples/functions/create-execution.md b/docs/examples/functions/create-execution.md index cf6acb5..9acfdea 100644 --- a/docs/examples/functions/create-execution.md +++ b/docs/examples/functions/create-execution.md @@ -3,7 +3,7 @@ import AppwriteEnums let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with let functions = Functions(client) @@ -14,6 +14,7 @@ let execution = try await functions.createExecution( async: false, // optional path: "", // optional method: .gET, // optional - headers: [:] // optional + headers: [:], // optional + scheduledAt: "" // optional ) diff --git a/docs/examples/functions/create-variable.md b/docs/examples/functions/create-variable.md index e1e78f7..e1cd727 100644 --- a/docs/examples/functions/create-variable.md +++ b/docs/examples/functions/create-variable.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let functions = Functions(client) diff --git a/docs/examples/functions/create.md b/docs/examples/functions/create.md index ab776cb..e508281 100644 --- a/docs/examples/functions/create.md +++ b/docs/examples/functions/create.md @@ -3,8 +3,8 @@ import AppwriteEnums let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let functions = Functions(client) @@ -20,6 +20,7 @@ let function = try await functions.create( logging: false, // optional entrypoint: "", // optional commands: "", // optional + scopes: [], // optional installationId: "", // optional providerRepositoryId: "", // optional providerBranch: "", // optional diff --git a/docs/examples/functions/delete-deployment.md b/docs/examples/functions/delete-deployment.md index ad5fd23..177cc5e 100644 --- a/docs/examples/functions/delete-deployment.md +++ b/docs/examples/functions/delete-deployment.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let functions = Functions(client) diff --git a/docs/examples/functions/delete-execution.md b/docs/examples/functions/delete-execution.md new file mode 100644 index 0000000..8d04d87 --- /dev/null +++ b/docs/examples/functions/delete-execution.md @@ -0,0 +1,14 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +let functions = Functions(client) + +let result = try await functions.deleteExecution( + functionId: "", + executionId: "" +) + diff --git a/docs/examples/functions/delete-variable.md b/docs/examples/functions/delete-variable.md index 08ae7e9..5f31d46 100644 --- a/docs/examples/functions/delete-variable.md +++ b/docs/examples/functions/delete-variable.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let functions = Functions(client) diff --git a/docs/examples/functions/delete.md b/docs/examples/functions/delete.md index ff9a12f..1999a00 100644 --- a/docs/examples/functions/delete.md +++ b/docs/examples/functions/delete.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let functions = Functions(client) diff --git a/docs/examples/functions/download-deployment.md b/docs/examples/functions/download-deployment.md index e01e8fe..5e50b67 100644 --- a/docs/examples/functions/download-deployment.md +++ b/docs/examples/functions/download-deployment.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let functions = Functions(client) diff --git a/docs/examples/functions/get-deployment.md b/docs/examples/functions/get-deployment.md index 7246236..a4ce8a7 100644 --- a/docs/examples/functions/get-deployment.md +++ b/docs/examples/functions/get-deployment.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let functions = Functions(client) diff --git a/docs/examples/functions/get-execution.md b/docs/examples/functions/get-execution.md index 6b16cc4..8358745 100644 --- a/docs/examples/functions/get-execution.md +++ b/docs/examples/functions/get-execution.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with let functions = Functions(client) diff --git a/docs/examples/functions/get-variable.md b/docs/examples/functions/get-variable.md index 17b7060..25452ac 100644 --- a/docs/examples/functions/get-variable.md +++ b/docs/examples/functions/get-variable.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let functions = Functions(client) diff --git a/docs/examples/functions/get.md b/docs/examples/functions/get.md index 5063dfc..27721b7 100644 --- a/docs/examples/functions/get.md +++ b/docs/examples/functions/get.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let functions = Functions(client) diff --git a/docs/examples/functions/list-deployments.md b/docs/examples/functions/list-deployments.md index 21b737d..2f7c5e0 100644 --- a/docs/examples/functions/list-deployments.md +++ b/docs/examples/functions/list-deployments.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let functions = Functions(client) diff --git a/docs/examples/functions/list-executions.md b/docs/examples/functions/list-executions.md index c25b06e..ec12403 100644 --- a/docs/examples/functions/list-executions.md +++ b/docs/examples/functions/list-executions.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with let functions = Functions(client) diff --git a/docs/examples/functions/list-runtimes.md b/docs/examples/functions/list-runtimes.md index 6a54375..8c75286 100644 --- a/docs/examples/functions/list-runtimes.md +++ b/docs/examples/functions/list-runtimes.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let functions = Functions(client) diff --git a/docs/examples/functions/list-variables.md b/docs/examples/functions/list-variables.md index cbddf45..d82c9fd 100644 --- a/docs/examples/functions/list-variables.md +++ b/docs/examples/functions/list-variables.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let functions = Functions(client) diff --git a/docs/examples/functions/list.md b/docs/examples/functions/list.md index 475cab3..6f5a848 100644 --- a/docs/examples/functions/list.md +++ b/docs/examples/functions/list.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let functions = Functions(client) diff --git a/docs/examples/functions/update-deployment-build.md b/docs/examples/functions/update-deployment-build.md new file mode 100644 index 0000000..4c96a55 --- /dev/null +++ b/docs/examples/functions/update-deployment-build.md @@ -0,0 +1,14 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +let functions = Functions(client) + +let build = try await functions.updateDeploymentBuild( + functionId: "", + deploymentId: "" +) + diff --git a/docs/examples/functions/update-deployment.md b/docs/examples/functions/update-deployment.md index 49730d2..7e28c63 100644 --- a/docs/examples/functions/update-deployment.md +++ b/docs/examples/functions/update-deployment.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let functions = Functions(client) diff --git a/docs/examples/functions/update-variable.md b/docs/examples/functions/update-variable.md index 5e46825..8a72e38 100644 --- a/docs/examples/functions/update-variable.md +++ b/docs/examples/functions/update-variable.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let functions = Functions(client) diff --git a/docs/examples/functions/update.md b/docs/examples/functions/update.md index 51b7aa7..61a0f00 100644 --- a/docs/examples/functions/update.md +++ b/docs/examples/functions/update.md @@ -3,8 +3,8 @@ import AppwriteEnums let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let functions = Functions(client) @@ -20,6 +20,7 @@ let function = try await functions.update( logging: false, // optional entrypoint: "", // optional commands: "", // optional + scopes: [], // optional installationId: "", // optional providerRepositoryId: "", // optional providerBranch: "", // optional diff --git a/docs/examples/graphql/mutation.md b/docs/examples/graphql/mutation.md index db869d4..808526f 100644 --- a/docs/examples/graphql/mutation.md +++ b/docs/examples/graphql/mutation.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let graphql = Graphql(client) diff --git a/docs/examples/graphql/query.md b/docs/examples/graphql/query.md index 5e97508..a528957 100644 --- a/docs/examples/graphql/query.md +++ b/docs/examples/graphql/query.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let graphql = Graphql(client) diff --git a/docs/examples/health/get-antivirus.md b/docs/examples/health/get-antivirus.md index cab0d98..5ff9d32 100644 --- a/docs/examples/health/get-antivirus.md +++ b/docs/examples/health/get-antivirus.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let health = Health(client) diff --git a/docs/examples/health/get-cache.md b/docs/examples/health/get-cache.md index a682d63..74e304c 100644 --- a/docs/examples/health/get-cache.md +++ b/docs/examples/health/get-cache.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let health = Health(client) diff --git a/docs/examples/health/get-certificate.md b/docs/examples/health/get-certificate.md index 6014dd5..5fcb837 100644 --- a/docs/examples/health/get-certificate.md +++ b/docs/examples/health/get-certificate.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let health = Health(client) diff --git a/docs/examples/health/get-d-b.md b/docs/examples/health/get-d-b.md index 8164549..e3b7e50 100644 --- a/docs/examples/health/get-d-b.md +++ b/docs/examples/health/get-d-b.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let health = Health(client) diff --git a/docs/examples/health/get-failed-jobs.md b/docs/examples/health/get-failed-jobs.md index b76dc69..6727f0b 100644 --- a/docs/examples/health/get-failed-jobs.md +++ b/docs/examples/health/get-failed-jobs.md @@ -3,8 +3,8 @@ import AppwriteEnums let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let health = Health(client) diff --git a/docs/examples/health/get-pub-sub.md b/docs/examples/health/get-pub-sub.md index 5bf0271..ef2cd3a 100644 --- a/docs/examples/health/get-pub-sub.md +++ b/docs/examples/health/get-pub-sub.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let health = Health(client) diff --git a/docs/examples/health/get-queue-builds.md b/docs/examples/health/get-queue-builds.md index af09ed2..d583a7e 100644 --- a/docs/examples/health/get-queue-builds.md +++ b/docs/examples/health/get-queue-builds.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let health = Health(client) diff --git a/docs/examples/health/get-queue-certificates.md b/docs/examples/health/get-queue-certificates.md index 48d39f2..80b933e 100644 --- a/docs/examples/health/get-queue-certificates.md +++ b/docs/examples/health/get-queue-certificates.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let health = Health(client) diff --git a/docs/examples/health/get-queue-databases.md b/docs/examples/health/get-queue-databases.md index 016146d..b45ab17 100644 --- a/docs/examples/health/get-queue-databases.md +++ b/docs/examples/health/get-queue-databases.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let health = Health(client) diff --git a/docs/examples/health/get-queue-deletes.md b/docs/examples/health/get-queue-deletes.md index 33ea238..611700f 100644 --- a/docs/examples/health/get-queue-deletes.md +++ b/docs/examples/health/get-queue-deletes.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let health = Health(client) diff --git a/docs/examples/health/get-queue-functions.md b/docs/examples/health/get-queue-functions.md index a66e8ac..6defa50 100644 --- a/docs/examples/health/get-queue-functions.md +++ b/docs/examples/health/get-queue-functions.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let health = Health(client) diff --git a/docs/examples/health/get-queue-logs.md b/docs/examples/health/get-queue-logs.md index 6bdf95f..e09daf2 100644 --- a/docs/examples/health/get-queue-logs.md +++ b/docs/examples/health/get-queue-logs.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let health = Health(client) diff --git a/docs/examples/health/get-queue-mails.md b/docs/examples/health/get-queue-mails.md index 6424b4d..9e01f9a 100644 --- a/docs/examples/health/get-queue-mails.md +++ b/docs/examples/health/get-queue-mails.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let health = Health(client) diff --git a/docs/examples/health/get-queue-messaging.md b/docs/examples/health/get-queue-messaging.md index 31db7ac..b8c053a 100644 --- a/docs/examples/health/get-queue-messaging.md +++ b/docs/examples/health/get-queue-messaging.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let health = Health(client) diff --git a/docs/examples/health/get-queue-migrations.md b/docs/examples/health/get-queue-migrations.md index 503d0bf..73a6e25 100644 --- a/docs/examples/health/get-queue-migrations.md +++ b/docs/examples/health/get-queue-migrations.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let health = Health(client) diff --git a/docs/examples/health/get-queue-usage-dump.md b/docs/examples/health/get-queue-usage-dump.md index 3537c4c..b17cf47 100644 --- a/docs/examples/health/get-queue-usage-dump.md +++ b/docs/examples/health/get-queue-usage-dump.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let health = Health(client) diff --git a/docs/examples/health/get-queue-usage.md b/docs/examples/health/get-queue-usage.md index 586e635..ce37f40 100644 --- a/docs/examples/health/get-queue-usage.md +++ b/docs/examples/health/get-queue-usage.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let health = Health(client) diff --git a/docs/examples/health/get-queue-webhooks.md b/docs/examples/health/get-queue-webhooks.md index dcfd11e..f4ed9ec 100644 --- a/docs/examples/health/get-queue-webhooks.md +++ b/docs/examples/health/get-queue-webhooks.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let health = Health(client) diff --git a/docs/examples/health/get-queue.md b/docs/examples/health/get-queue.md index 6f8131d..d368835 100644 --- a/docs/examples/health/get-queue.md +++ b/docs/examples/health/get-queue.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let health = Health(client) diff --git a/docs/examples/health/get-storage-local.md b/docs/examples/health/get-storage-local.md index ee80798..4044ba2 100644 --- a/docs/examples/health/get-storage-local.md +++ b/docs/examples/health/get-storage-local.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let health = Health(client) diff --git a/docs/examples/health/get-storage.md b/docs/examples/health/get-storage.md index eccd97d..761aace 100644 --- a/docs/examples/health/get-storage.md +++ b/docs/examples/health/get-storage.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let health = Health(client) diff --git a/docs/examples/health/get-time.md b/docs/examples/health/get-time.md index f6d66d9..af08562 100644 --- a/docs/examples/health/get-time.md +++ b/docs/examples/health/get-time.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let health = Health(client) diff --git a/docs/examples/health/get.md b/docs/examples/health/get.md index 828f345..e63e18c 100644 --- a/docs/examples/health/get.md +++ b/docs/examples/health/get.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let health = Health(client) diff --git a/docs/examples/locale/get.md b/docs/examples/locale/get.md index cabd64c..b94af37 100644 --- a/docs/examples/locale/get.md +++ b/docs/examples/locale/get.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with let locale = Locale(client) diff --git a/docs/examples/locale/list-codes.md b/docs/examples/locale/list-codes.md index d870428..247f8f3 100644 --- a/docs/examples/locale/list-codes.md +++ b/docs/examples/locale/list-codes.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with let locale = Locale(client) diff --git a/docs/examples/locale/list-continents.md b/docs/examples/locale/list-continents.md index fd700f3..481a205 100644 --- a/docs/examples/locale/list-continents.md +++ b/docs/examples/locale/list-continents.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with let locale = Locale(client) diff --git a/docs/examples/locale/list-countries-e-u.md b/docs/examples/locale/list-countries-e-u.md index 8cf5ca1..047877d 100644 --- a/docs/examples/locale/list-countries-e-u.md +++ b/docs/examples/locale/list-countries-e-u.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with let locale = Locale(client) diff --git a/docs/examples/locale/list-countries-phones.md b/docs/examples/locale/list-countries-phones.md index aa0ca92..c7e182a 100644 --- a/docs/examples/locale/list-countries-phones.md +++ b/docs/examples/locale/list-countries-phones.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with let locale = Locale(client) diff --git a/docs/examples/locale/list-countries.md b/docs/examples/locale/list-countries.md index b82c61c..e0ec084 100644 --- a/docs/examples/locale/list-countries.md +++ b/docs/examples/locale/list-countries.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with let locale = Locale(client) diff --git a/docs/examples/locale/list-currencies.md b/docs/examples/locale/list-currencies.md index 43a48a1..280909d 100644 --- a/docs/examples/locale/list-currencies.md +++ b/docs/examples/locale/list-currencies.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with let locale = Locale(client) diff --git a/docs/examples/locale/list-languages.md b/docs/examples/locale/list-languages.md index 0aedcd7..1dcc6dd 100644 --- a/docs/examples/locale/list-languages.md +++ b/docs/examples/locale/list-languages.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with let locale = Locale(client) diff --git a/docs/examples/messaging/create-apns-provider.md b/docs/examples/messaging/create-apns-provider.md index f16352c..f38b435 100644 --- a/docs/examples/messaging/create-apns-provider.md +++ b/docs/examples/messaging/create-apns-provider.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let messaging = Messaging(client) diff --git a/docs/examples/messaging/create-email.md b/docs/examples/messaging/create-email.md index d1a5f86..ede0a3b 100644 --- a/docs/examples/messaging/create-email.md +++ b/docs/examples/messaging/create-email.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let messaging = Messaging(client) diff --git a/docs/examples/messaging/create-fcm-provider.md b/docs/examples/messaging/create-fcm-provider.md index 6a39c33..b4e8df3 100644 --- a/docs/examples/messaging/create-fcm-provider.md +++ b/docs/examples/messaging/create-fcm-provider.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let messaging = Messaging(client) diff --git a/docs/examples/messaging/create-mailgun-provider.md b/docs/examples/messaging/create-mailgun-provider.md index 752ec02..c5f958b 100644 --- a/docs/examples/messaging/create-mailgun-provider.md +++ b/docs/examples/messaging/create-mailgun-provider.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let messaging = Messaging(client) diff --git a/docs/examples/messaging/create-msg91provider.md b/docs/examples/messaging/create-msg91provider.md index 35647c6..8e39051 100644 --- a/docs/examples/messaging/create-msg91provider.md +++ b/docs/examples/messaging/create-msg91provider.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let messaging = Messaging(client) diff --git a/docs/examples/messaging/create-push.md b/docs/examples/messaging/create-push.md index c62f36d..7aed2b5 100644 --- a/docs/examples/messaging/create-push.md +++ b/docs/examples/messaging/create-push.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let messaging = Messaging(client) diff --git a/docs/examples/messaging/create-sendgrid-provider.md b/docs/examples/messaging/create-sendgrid-provider.md index 3f435bc..22d1f05 100644 --- a/docs/examples/messaging/create-sendgrid-provider.md +++ b/docs/examples/messaging/create-sendgrid-provider.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let messaging = Messaging(client) diff --git a/docs/examples/messaging/create-sms.md b/docs/examples/messaging/create-sms.md index ae46519..10936db 100644 --- a/docs/examples/messaging/create-sms.md +++ b/docs/examples/messaging/create-sms.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let messaging = Messaging(client) diff --git a/docs/examples/messaging/create-smtp-provider.md b/docs/examples/messaging/create-smtp-provider.md index ba097b1..bd0d4c0 100644 --- a/docs/examples/messaging/create-smtp-provider.md +++ b/docs/examples/messaging/create-smtp-provider.md @@ -3,8 +3,8 @@ import AppwriteEnums let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let messaging = Messaging(client) diff --git a/docs/examples/messaging/create-subscriber.md b/docs/examples/messaging/create-subscriber.md index 68afa34..170a307 100644 --- a/docs/examples/messaging/create-subscriber.md +++ b/docs/examples/messaging/create-subscriber.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setJWT("<YOUR_JWT>") // Your secret JSON Web Token let messaging = Messaging(client) diff --git a/docs/examples/messaging/create-telesign-provider.md b/docs/examples/messaging/create-telesign-provider.md index e960d5a..bc4ab89 100644 --- a/docs/examples/messaging/create-telesign-provider.md +++ b/docs/examples/messaging/create-telesign-provider.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let messaging = Messaging(client) diff --git a/docs/examples/messaging/create-textmagic-provider.md b/docs/examples/messaging/create-textmagic-provider.md index 3619348..735bd57 100644 --- a/docs/examples/messaging/create-textmagic-provider.md +++ b/docs/examples/messaging/create-textmagic-provider.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let messaging = Messaging(client) diff --git a/docs/examples/messaging/create-topic.md b/docs/examples/messaging/create-topic.md index c6227a4..f44aa65 100644 --- a/docs/examples/messaging/create-topic.md +++ b/docs/examples/messaging/create-topic.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let messaging = Messaging(client) diff --git a/docs/examples/messaging/create-twilio-provider.md b/docs/examples/messaging/create-twilio-provider.md index 131b54c..8a3594d 100644 --- a/docs/examples/messaging/create-twilio-provider.md +++ b/docs/examples/messaging/create-twilio-provider.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let messaging = Messaging(client) diff --git a/docs/examples/messaging/create-vonage-provider.md b/docs/examples/messaging/create-vonage-provider.md index 6090014..0a932e5 100644 --- a/docs/examples/messaging/create-vonage-provider.md +++ b/docs/examples/messaging/create-vonage-provider.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let messaging = Messaging(client) diff --git a/docs/examples/messaging/delete-provider.md b/docs/examples/messaging/delete-provider.md index ffc9b69..2a8f049 100644 --- a/docs/examples/messaging/delete-provider.md +++ b/docs/examples/messaging/delete-provider.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let messaging = Messaging(client) diff --git a/docs/examples/messaging/delete-subscriber.md b/docs/examples/messaging/delete-subscriber.md index 24e86a1..ea1f546 100644 --- a/docs/examples/messaging/delete-subscriber.md +++ b/docs/examples/messaging/delete-subscriber.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // Your secret JSON Web Token + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setJWT("<YOUR_JWT>") // Your secret JSON Web Token let messaging = Messaging(client) diff --git a/docs/examples/messaging/delete-topic.md b/docs/examples/messaging/delete-topic.md index 771d984..76c7c7b 100644 --- a/docs/examples/messaging/delete-topic.md +++ b/docs/examples/messaging/delete-topic.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let messaging = Messaging(client) diff --git a/docs/examples/messaging/delete.md b/docs/examples/messaging/delete.md index 148c945..e94f4b9 100644 --- a/docs/examples/messaging/delete.md +++ b/docs/examples/messaging/delete.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let messaging = Messaging(client) diff --git a/docs/examples/messaging/get-message.md b/docs/examples/messaging/get-message.md index 358dade..27256d8 100644 --- a/docs/examples/messaging/get-message.md +++ b/docs/examples/messaging/get-message.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let messaging = Messaging(client) diff --git a/docs/examples/messaging/get-provider.md b/docs/examples/messaging/get-provider.md index 419f2a5..7647290 100644 --- a/docs/examples/messaging/get-provider.md +++ b/docs/examples/messaging/get-provider.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let messaging = Messaging(client) diff --git a/docs/examples/messaging/get-subscriber.md b/docs/examples/messaging/get-subscriber.md index fbc702d..ebccc35 100644 --- a/docs/examples/messaging/get-subscriber.md +++ b/docs/examples/messaging/get-subscriber.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let messaging = Messaging(client) diff --git a/docs/examples/messaging/get-topic.md b/docs/examples/messaging/get-topic.md index 06723c5..421023c 100644 --- a/docs/examples/messaging/get-topic.md +++ b/docs/examples/messaging/get-topic.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let messaging = Messaging(client) diff --git a/docs/examples/messaging/list-message-logs.md b/docs/examples/messaging/list-message-logs.md index 4512e06..61d2cec 100644 --- a/docs/examples/messaging/list-message-logs.md +++ b/docs/examples/messaging/list-message-logs.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let messaging = Messaging(client) diff --git a/docs/examples/messaging/list-messages.md b/docs/examples/messaging/list-messages.md index c47f9be..8912603 100644 --- a/docs/examples/messaging/list-messages.md +++ b/docs/examples/messaging/list-messages.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let messaging = Messaging(client) diff --git a/docs/examples/messaging/list-provider-logs.md b/docs/examples/messaging/list-provider-logs.md index 8fcb13f..2ad9cd7 100644 --- a/docs/examples/messaging/list-provider-logs.md +++ b/docs/examples/messaging/list-provider-logs.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let messaging = Messaging(client) diff --git a/docs/examples/messaging/list-providers.md b/docs/examples/messaging/list-providers.md index dc395dc..0bce1e7 100644 --- a/docs/examples/messaging/list-providers.md +++ b/docs/examples/messaging/list-providers.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let messaging = Messaging(client) diff --git a/docs/examples/messaging/list-subscriber-logs.md b/docs/examples/messaging/list-subscriber-logs.md index 0debb66..78dea44 100644 --- a/docs/examples/messaging/list-subscriber-logs.md +++ b/docs/examples/messaging/list-subscriber-logs.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let messaging = Messaging(client) diff --git a/docs/examples/messaging/list-subscribers.md b/docs/examples/messaging/list-subscribers.md index 9d2be03..35b3daa 100644 --- a/docs/examples/messaging/list-subscribers.md +++ b/docs/examples/messaging/list-subscribers.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let messaging = Messaging(client) diff --git a/docs/examples/messaging/list-targets.md b/docs/examples/messaging/list-targets.md index facdb44..e469da3 100644 --- a/docs/examples/messaging/list-targets.md +++ b/docs/examples/messaging/list-targets.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let messaging = Messaging(client) diff --git a/docs/examples/messaging/list-topic-logs.md b/docs/examples/messaging/list-topic-logs.md index 396ca6c..c8d13bf 100644 --- a/docs/examples/messaging/list-topic-logs.md +++ b/docs/examples/messaging/list-topic-logs.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let messaging = Messaging(client) diff --git a/docs/examples/messaging/list-topics.md b/docs/examples/messaging/list-topics.md index 5ee0981..3a6ba4c 100644 --- a/docs/examples/messaging/list-topics.md +++ b/docs/examples/messaging/list-topics.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let messaging = Messaging(client) diff --git a/docs/examples/messaging/update-apns-provider.md b/docs/examples/messaging/update-apns-provider.md index 071d2ee..7202530 100644 --- a/docs/examples/messaging/update-apns-provider.md +++ b/docs/examples/messaging/update-apns-provider.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let messaging = Messaging(client) diff --git a/docs/examples/messaging/update-email.md b/docs/examples/messaging/update-email.md index 358bf5d..e27c826 100644 --- a/docs/examples/messaging/update-email.md +++ b/docs/examples/messaging/update-email.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let messaging = Messaging(client) diff --git a/docs/examples/messaging/update-fcm-provider.md b/docs/examples/messaging/update-fcm-provider.md index 428eaca..b62ba88 100644 --- a/docs/examples/messaging/update-fcm-provider.md +++ b/docs/examples/messaging/update-fcm-provider.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let messaging = Messaging(client) diff --git a/docs/examples/messaging/update-mailgun-provider.md b/docs/examples/messaging/update-mailgun-provider.md index 63d27b8..d684a96 100644 --- a/docs/examples/messaging/update-mailgun-provider.md +++ b/docs/examples/messaging/update-mailgun-provider.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let messaging = Messaging(client) diff --git a/docs/examples/messaging/update-msg91provider.md b/docs/examples/messaging/update-msg91provider.md index 5d8cebb..aac6942 100644 --- a/docs/examples/messaging/update-msg91provider.md +++ b/docs/examples/messaging/update-msg91provider.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let messaging = Messaging(client) diff --git a/docs/examples/messaging/update-push.md b/docs/examples/messaging/update-push.md index 5344fb3..c793143 100644 --- a/docs/examples/messaging/update-push.md +++ b/docs/examples/messaging/update-push.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let messaging = Messaging(client) diff --git a/docs/examples/messaging/update-sendgrid-provider.md b/docs/examples/messaging/update-sendgrid-provider.md index 0ec24c4..811fb05 100644 --- a/docs/examples/messaging/update-sendgrid-provider.md +++ b/docs/examples/messaging/update-sendgrid-provider.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let messaging = Messaging(client) diff --git a/docs/examples/messaging/update-sms.md b/docs/examples/messaging/update-sms.md index cf588c9..db1262e 100644 --- a/docs/examples/messaging/update-sms.md +++ b/docs/examples/messaging/update-sms.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let messaging = Messaging(client) diff --git a/docs/examples/messaging/update-smtp-provider.md b/docs/examples/messaging/update-smtp-provider.md index 3c71a83..98f7a21 100644 --- a/docs/examples/messaging/update-smtp-provider.md +++ b/docs/examples/messaging/update-smtp-provider.md @@ -3,8 +3,8 @@ import AppwriteEnums let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let messaging = Messaging(client) diff --git a/docs/examples/messaging/update-telesign-provider.md b/docs/examples/messaging/update-telesign-provider.md index 51dc3ba..cc3f0ea 100644 --- a/docs/examples/messaging/update-telesign-provider.md +++ b/docs/examples/messaging/update-telesign-provider.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let messaging = Messaging(client) diff --git a/docs/examples/messaging/update-textmagic-provider.md b/docs/examples/messaging/update-textmagic-provider.md index 530da15..68961c4 100644 --- a/docs/examples/messaging/update-textmagic-provider.md +++ b/docs/examples/messaging/update-textmagic-provider.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let messaging = Messaging(client) diff --git a/docs/examples/messaging/update-topic.md b/docs/examples/messaging/update-topic.md index 5d645df..5abbf7a 100644 --- a/docs/examples/messaging/update-topic.md +++ b/docs/examples/messaging/update-topic.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let messaging = Messaging(client) diff --git a/docs/examples/messaging/update-twilio-provider.md b/docs/examples/messaging/update-twilio-provider.md index d505416..a48f18c 100644 --- a/docs/examples/messaging/update-twilio-provider.md +++ b/docs/examples/messaging/update-twilio-provider.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let messaging = Messaging(client) diff --git a/docs/examples/messaging/update-vonage-provider.md b/docs/examples/messaging/update-vonage-provider.md index 6a0e4ae..1c8e47c 100644 --- a/docs/examples/messaging/update-vonage-provider.md +++ b/docs/examples/messaging/update-vonage-provider.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let messaging = Messaging(client) diff --git a/docs/examples/storage/create-bucket.md b/docs/examples/storage/create-bucket.md index 57c8bee..7c934ec 100644 --- a/docs/examples/storage/create-bucket.md +++ b/docs/examples/storage/create-bucket.md @@ -3,8 +3,8 @@ import AppwriteEnums let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let storage = Storage(client) diff --git a/docs/examples/storage/create-file.md b/docs/examples/storage/create-file.md index cdf2215..7ce485a 100644 --- a/docs/examples/storage/create-file.md +++ b/docs/examples/storage/create-file.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with let storage = Storage(client) diff --git a/docs/examples/storage/delete-bucket.md b/docs/examples/storage/delete-bucket.md index 4bef175..e85ce3b 100644 --- a/docs/examples/storage/delete-bucket.md +++ b/docs/examples/storage/delete-bucket.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let storage = Storage(client) diff --git a/docs/examples/storage/delete-file.md b/docs/examples/storage/delete-file.md index 151bd96..8a9ceee 100644 --- a/docs/examples/storage/delete-file.md +++ b/docs/examples/storage/delete-file.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with let storage = Storage(client) diff --git a/docs/examples/storage/get-bucket.md b/docs/examples/storage/get-bucket.md index 9e92b87..4e78e32 100644 --- a/docs/examples/storage/get-bucket.md +++ b/docs/examples/storage/get-bucket.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let storage = Storage(client) diff --git a/docs/examples/storage/get-file-download.md b/docs/examples/storage/get-file-download.md index 90379b0..be3db0c 100644 --- a/docs/examples/storage/get-file-download.md +++ b/docs/examples/storage/get-file-download.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with let storage = Storage(client) diff --git a/docs/examples/storage/get-file-preview.md b/docs/examples/storage/get-file-preview.md index 4377ce9..cab3fc6 100644 --- a/docs/examples/storage/get-file-preview.md +++ b/docs/examples/storage/get-file-preview.md @@ -3,7 +3,7 @@ import AppwriteEnums let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with let storage = Storage(client) diff --git a/docs/examples/storage/get-file-view.md b/docs/examples/storage/get-file-view.md index ff035c5..d1275a7 100644 --- a/docs/examples/storage/get-file-view.md +++ b/docs/examples/storage/get-file-view.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with let storage = Storage(client) diff --git a/docs/examples/storage/get-file.md b/docs/examples/storage/get-file.md index 4ab1605..1f70f49 100644 --- a/docs/examples/storage/get-file.md +++ b/docs/examples/storage/get-file.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with let storage = Storage(client) diff --git a/docs/examples/storage/list-buckets.md b/docs/examples/storage/list-buckets.md index a538679..9fb0b4e 100644 --- a/docs/examples/storage/list-buckets.md +++ b/docs/examples/storage/list-buckets.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let storage = Storage(client) diff --git a/docs/examples/storage/list-files.md b/docs/examples/storage/list-files.md index 18bbc35..cb415b0 100644 --- a/docs/examples/storage/list-files.md +++ b/docs/examples/storage/list-files.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with let storage = Storage(client) diff --git a/docs/examples/storage/update-bucket.md b/docs/examples/storage/update-bucket.md index 472a243..adb1c35 100644 --- a/docs/examples/storage/update-bucket.md +++ b/docs/examples/storage/update-bucket.md @@ -3,8 +3,8 @@ import AppwriteEnums let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let storage = Storage(client) diff --git a/docs/examples/storage/update-file.md b/docs/examples/storage/update-file.md index 708138a..0685099 100644 --- a/docs/examples/storage/update-file.md +++ b/docs/examples/storage/update-file.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with let storage = Storage(client) diff --git a/docs/examples/teams/create-membership.md b/docs/examples/teams/create-membership.md index 215fcf2..f4d7942 100644 --- a/docs/examples/teams/create-membership.md +++ b/docs/examples/teams/create-membership.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with let teams = Teams(client) diff --git a/docs/examples/teams/create.md b/docs/examples/teams/create.md index 5b46ca3..a3e2249 100644 --- a/docs/examples/teams/create.md +++ b/docs/examples/teams/create.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with let teams = Teams(client) diff --git a/docs/examples/teams/delete-membership.md b/docs/examples/teams/delete-membership.md index df1607b..dac308b 100644 --- a/docs/examples/teams/delete-membership.md +++ b/docs/examples/teams/delete-membership.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with let teams = Teams(client) diff --git a/docs/examples/teams/delete.md b/docs/examples/teams/delete.md index 9393066..0014ac0 100644 --- a/docs/examples/teams/delete.md +++ b/docs/examples/teams/delete.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with let teams = Teams(client) diff --git a/docs/examples/teams/get-membership.md b/docs/examples/teams/get-membership.md index 5a640c3..6d9627f 100644 --- a/docs/examples/teams/get-membership.md +++ b/docs/examples/teams/get-membership.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with let teams = Teams(client) diff --git a/docs/examples/teams/get-prefs.md b/docs/examples/teams/get-prefs.md index 966c06b..00d2c94 100644 --- a/docs/examples/teams/get-prefs.md +++ b/docs/examples/teams/get-prefs.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with let teams = Teams(client) diff --git a/docs/examples/teams/get.md b/docs/examples/teams/get.md index 0b0f921..14da194 100644 --- a/docs/examples/teams/get.md +++ b/docs/examples/teams/get.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with let teams = Teams(client) diff --git a/docs/examples/teams/list-memberships.md b/docs/examples/teams/list-memberships.md index 1edb4d7..14268f9 100644 --- a/docs/examples/teams/list-memberships.md +++ b/docs/examples/teams/list-memberships.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with let teams = Teams(client) diff --git a/docs/examples/teams/list.md b/docs/examples/teams/list.md index 5c69c52..c0ab352 100644 --- a/docs/examples/teams/list.md +++ b/docs/examples/teams/list.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with let teams = Teams(client) diff --git a/docs/examples/teams/update-membership-status.md b/docs/examples/teams/update-membership-status.md index 1630b8c..c6ea959 100644 --- a/docs/examples/teams/update-membership-status.md +++ b/docs/examples/teams/update-membership-status.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with let teams = Teams(client) diff --git a/docs/examples/teams/update-membership.md b/docs/examples/teams/update-membership.md index 5948c43..2342740 100644 --- a/docs/examples/teams/update-membership.md +++ b/docs/examples/teams/update-membership.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with let teams = Teams(client) diff --git a/docs/examples/teams/update-name.md b/docs/examples/teams/update-name.md index 3425f5d..450884b 100644 --- a/docs/examples/teams/update-name.md +++ b/docs/examples/teams/update-name.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with let teams = Teams(client) diff --git a/docs/examples/teams/update-prefs.md b/docs/examples/teams/update-prefs.md index fce81c6..4f5e1d1 100644 --- a/docs/examples/teams/update-prefs.md +++ b/docs/examples/teams/update-prefs.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with let teams = Teams(client) diff --git a/docs/examples/users/create-argon2user.md b/docs/examples/users/create-argon2user.md index f122745..af9bc4b 100644 --- a/docs/examples/users/create-argon2user.md +++ b/docs/examples/users/create-argon2user.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let users = Users(client) diff --git a/docs/examples/users/create-bcrypt-user.md b/docs/examples/users/create-bcrypt-user.md index 24f5343..fa65ed9 100644 --- a/docs/examples/users/create-bcrypt-user.md +++ b/docs/examples/users/create-bcrypt-user.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let users = Users(client) diff --git a/docs/examples/users/create-j-w-t.md b/docs/examples/users/create-j-w-t.md new file mode 100644 index 0000000..4bb01a7 --- /dev/null +++ b/docs/examples/users/create-j-w-t.md @@ -0,0 +1,15 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +let users = Users(client) + +let jwt = try await users.createJWT( + userId: "", + sessionId: "", // optional + duration: 0 // optional +) + diff --git a/docs/examples/users/create-m-d5user.md b/docs/examples/users/create-m-d5user.md index 48eadab..7dac068 100644 --- a/docs/examples/users/create-m-d5user.md +++ b/docs/examples/users/create-m-d5user.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let users = Users(client) diff --git a/docs/examples/users/create-mfa-recovery-codes.md b/docs/examples/users/create-mfa-recovery-codes.md index fd3b6fe..d525d6a 100644 --- a/docs/examples/users/create-mfa-recovery-codes.md +++ b/docs/examples/users/create-mfa-recovery-codes.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let users = Users(client) diff --git a/docs/examples/users/create-p-h-pass-user.md b/docs/examples/users/create-p-h-pass-user.md index 491c29f..1c9f2dc 100644 --- a/docs/examples/users/create-p-h-pass-user.md +++ b/docs/examples/users/create-p-h-pass-user.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let users = Users(client) diff --git a/docs/examples/users/create-s-h-a-user.md b/docs/examples/users/create-s-h-a-user.md index b841a0f..e05f420 100644 --- a/docs/examples/users/create-s-h-a-user.md +++ b/docs/examples/users/create-s-h-a-user.md @@ -3,8 +3,8 @@ import AppwriteEnums let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let users = Users(client) diff --git a/docs/examples/users/create-scrypt-modified-user.md b/docs/examples/users/create-scrypt-modified-user.md index 8b14724..d994e8a 100644 --- a/docs/examples/users/create-scrypt-modified-user.md +++ b/docs/examples/users/create-scrypt-modified-user.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let users = Users(client) diff --git a/docs/examples/users/create-scrypt-user.md b/docs/examples/users/create-scrypt-user.md index 579336e..1279031 100644 --- a/docs/examples/users/create-scrypt-user.md +++ b/docs/examples/users/create-scrypt-user.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let users = Users(client) diff --git a/docs/examples/users/create-session.md b/docs/examples/users/create-session.md index 3e506dc..f27717c 100644 --- a/docs/examples/users/create-session.md +++ b/docs/examples/users/create-session.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let users = Users(client) diff --git a/docs/examples/users/create-target.md b/docs/examples/users/create-target.md index e52aa11..9eaf28d 100644 --- a/docs/examples/users/create-target.md +++ b/docs/examples/users/create-target.md @@ -3,8 +3,8 @@ import AppwriteEnums let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let users = Users(client) diff --git a/docs/examples/users/create-token.md b/docs/examples/users/create-token.md index 94d3499..bc5691b 100644 --- a/docs/examples/users/create-token.md +++ b/docs/examples/users/create-token.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let users = Users(client) diff --git a/docs/examples/users/create.md b/docs/examples/users/create.md index 1393f6a..4bd7474 100644 --- a/docs/examples/users/create.md +++ b/docs/examples/users/create.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let users = Users(client) diff --git a/docs/examples/users/delete-identity.md b/docs/examples/users/delete-identity.md index 9fa0d4c..3003a4f 100644 --- a/docs/examples/users/delete-identity.md +++ b/docs/examples/users/delete-identity.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let users = Users(client) diff --git a/docs/examples/users/delete-mfa-authenticator.md b/docs/examples/users/delete-mfa-authenticator.md index f55282a..b96ce46 100644 --- a/docs/examples/users/delete-mfa-authenticator.md +++ b/docs/examples/users/delete-mfa-authenticator.md @@ -3,8 +3,8 @@ import AppwriteEnums let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let users = Users(client) diff --git a/docs/examples/users/delete-session.md b/docs/examples/users/delete-session.md index 6308430..f9e4856 100644 --- a/docs/examples/users/delete-session.md +++ b/docs/examples/users/delete-session.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let users = Users(client) diff --git a/docs/examples/users/delete-sessions.md b/docs/examples/users/delete-sessions.md index 0aaea4f..87a73d5 100644 --- a/docs/examples/users/delete-sessions.md +++ b/docs/examples/users/delete-sessions.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let users = Users(client) diff --git a/docs/examples/users/delete-target.md b/docs/examples/users/delete-target.md index 2f9f843..f628f39 100644 --- a/docs/examples/users/delete-target.md +++ b/docs/examples/users/delete-target.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let users = Users(client) diff --git a/docs/examples/users/delete.md b/docs/examples/users/delete.md index 5d26ebc..76aabd1 100644 --- a/docs/examples/users/delete.md +++ b/docs/examples/users/delete.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let users = Users(client) diff --git a/docs/examples/users/get-mfa-recovery-codes.md b/docs/examples/users/get-mfa-recovery-codes.md index 93300d1..db8a01d 100644 --- a/docs/examples/users/get-mfa-recovery-codes.md +++ b/docs/examples/users/get-mfa-recovery-codes.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let users = Users(client) diff --git a/docs/examples/users/get-prefs.md b/docs/examples/users/get-prefs.md index fa718a6..732a00b 100644 --- a/docs/examples/users/get-prefs.md +++ b/docs/examples/users/get-prefs.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let users = Users(client) diff --git a/docs/examples/users/get-target.md b/docs/examples/users/get-target.md index 0f4e373..8217a3e 100644 --- a/docs/examples/users/get-target.md +++ b/docs/examples/users/get-target.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let users = Users(client) diff --git a/docs/examples/users/get.md b/docs/examples/users/get.md index 730a7e4..221d3c9 100644 --- a/docs/examples/users/get.md +++ b/docs/examples/users/get.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let users = Users(client) diff --git a/docs/examples/users/list-identities.md b/docs/examples/users/list-identities.md index 7a18c6a..21ed27b 100644 --- a/docs/examples/users/list-identities.md +++ b/docs/examples/users/list-identities.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let users = Users(client) diff --git a/docs/examples/users/list-logs.md b/docs/examples/users/list-logs.md index e6fb943..e078c2a 100644 --- a/docs/examples/users/list-logs.md +++ b/docs/examples/users/list-logs.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let users = Users(client) diff --git a/docs/examples/users/list-memberships.md b/docs/examples/users/list-memberships.md index 9d86073..86fbf72 100644 --- a/docs/examples/users/list-memberships.md +++ b/docs/examples/users/list-memberships.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let users = Users(client) diff --git a/docs/examples/users/list-mfa-factors.md b/docs/examples/users/list-mfa-factors.md index 698df04..87b123b 100644 --- a/docs/examples/users/list-mfa-factors.md +++ b/docs/examples/users/list-mfa-factors.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let users = Users(client) diff --git a/docs/examples/users/list-sessions.md b/docs/examples/users/list-sessions.md index 8a76f75..3c494e3 100644 --- a/docs/examples/users/list-sessions.md +++ b/docs/examples/users/list-sessions.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let users = Users(client) diff --git a/docs/examples/users/list-targets.md b/docs/examples/users/list-targets.md index 6ff1aa4..541715c 100644 --- a/docs/examples/users/list-targets.md +++ b/docs/examples/users/list-targets.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let users = Users(client) diff --git a/docs/examples/users/list.md b/docs/examples/users/list.md index de98510..0bc4d85 100644 --- a/docs/examples/users/list.md +++ b/docs/examples/users/list.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let users = Users(client) diff --git a/docs/examples/users/update-email-verification.md b/docs/examples/users/update-email-verification.md index 86ed9ef..de43107 100644 --- a/docs/examples/users/update-email-verification.md +++ b/docs/examples/users/update-email-verification.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let users = Users(client) diff --git a/docs/examples/users/update-email.md b/docs/examples/users/update-email.md index 5ac30bb..5cbf2ef 100644 --- a/docs/examples/users/update-email.md +++ b/docs/examples/users/update-email.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let users = Users(client) diff --git a/docs/examples/users/update-labels.md b/docs/examples/users/update-labels.md index 7180c87..3734194 100644 --- a/docs/examples/users/update-labels.md +++ b/docs/examples/users/update-labels.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let users = Users(client) diff --git a/docs/examples/users/update-mfa-recovery-codes.md b/docs/examples/users/update-mfa-recovery-codes.md index d933d2d..48de0ab 100644 --- a/docs/examples/users/update-mfa-recovery-codes.md +++ b/docs/examples/users/update-mfa-recovery-codes.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let users = Users(client) diff --git a/docs/examples/users/update-mfa.md b/docs/examples/users/update-mfa.md index 1cd25a6..0612a31 100644 --- a/docs/examples/users/update-mfa.md +++ b/docs/examples/users/update-mfa.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let users = Users(client) diff --git a/docs/examples/users/update-name.md b/docs/examples/users/update-name.md index 75c801d..03914f9 100644 --- a/docs/examples/users/update-name.md +++ b/docs/examples/users/update-name.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let users = Users(client) diff --git a/docs/examples/users/update-password.md b/docs/examples/users/update-password.md index 9fc7483..054875c 100644 --- a/docs/examples/users/update-password.md +++ b/docs/examples/users/update-password.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let users = Users(client) diff --git a/docs/examples/users/update-phone-verification.md b/docs/examples/users/update-phone-verification.md index 80c2f13..b0a3fe8 100644 --- a/docs/examples/users/update-phone-verification.md +++ b/docs/examples/users/update-phone-verification.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let users = Users(client) diff --git a/docs/examples/users/update-phone.md b/docs/examples/users/update-phone.md index bf175e6..d29676f 100644 --- a/docs/examples/users/update-phone.md +++ b/docs/examples/users/update-phone.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let users = Users(client) diff --git a/docs/examples/users/update-prefs.md b/docs/examples/users/update-prefs.md index 2a67532..19d2aad 100644 --- a/docs/examples/users/update-prefs.md +++ b/docs/examples/users/update-prefs.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let users = Users(client) diff --git a/docs/examples/users/update-status.md b/docs/examples/users/update-status.md index 3de9ce6..90ea4f6 100644 --- a/docs/examples/users/update-status.md +++ b/docs/examples/users/update-status.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let users = Users(client) diff --git a/docs/examples/users/update-target.md b/docs/examples/users/update-target.md index c08e6cc..d06d616 100644 --- a/docs/examples/users/update-target.md +++ b/docs/examples/users/update-target.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key let users = Users(client) From 1672cb0f3a09a5d642260a44e6a01ef51980edcd Mon Sep 17 00:00:00 2001 From: root Date: Sat, 17 Aug 2024 08:51:08 +0000 Subject: [PATCH 2/8] chore: release rc --- Package.swift | 4 +- README.md | 4 +- Sources/Appwrite/Client.swift | 4 +- Sources/Appwrite/Services/Account.swift | 14 +- Sources/Appwrite/Services/Avatars.swift | 2 + Sources/Appwrite/Services/Functions.swift | 116 +++++++++++++-- Sources/AppwriteModels/Execution.swift | 13 +- Sources/AppwriteModels/Runtime.swift | 7 + Sources/AppwriteModels/TemplateFunction.swift | 140 ++++++++++++++++++ .../AppwriteModels/TemplateFunctionList.swift | 35 +++++ Sources/AppwriteModels/TemplateRuntime.swift | 49 ++++++ Sources/AppwriteModels/TemplateVariable.swift | 63 ++++++++ .../account/delete-mfa-authenticator.md | 3 +- docs/examples/functions/create.md | 2 +- ...ployment.md => get-deployment-download.md} | 4 +- docs/examples/functions/get-template.md | 12 ++ docs/examples/functions/list-templates.md | 15 ++ 17 files changed, 449 insertions(+), 38 deletions(-) create mode 100644 Sources/AppwriteModels/TemplateFunction.swift create mode 100644 Sources/AppwriteModels/TemplateFunctionList.swift create mode 100644 Sources/AppwriteModels/TemplateRuntime.swift create mode 100644 Sources/AppwriteModels/TemplateVariable.swift rename docs/examples/functions/{download-deployment.md => get-deployment-download.md} (70%) create mode 100644 docs/examples/functions/get-template.md create mode 100644 docs/examples/functions/list-templates.md diff --git a/Package.swift b/Package.swift index 91daadf..3e916e1 100644 --- a/Package.swift +++ b/Package.swift @@ -22,8 +22,8 @@ let package = Package( ), ], dependencies: [ - .package(url: "https://github.com/swift-server/async-http-client.git", from: "1.9.0"), - .package(url: "https://github.com/apple/swift-nio.git", from: "2.32.0"), + .package(url: "https://github.com/swift-server/async-http-client.git", from: "1.19.0"), + .package(url: "https://github.com/apple/swift-nio.git", from: "2.58.0"), ], targets: [ .target( diff --git a/README.md b/README.md index fbbc21c..cabb58f 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ ![Swift Package Manager](https://img.shields.io/github/v/release/appwrite/sdk-for-swift.svg?color=green&style=flat-square) ![License](https://img.shields.io/github/license/appwrite/sdk-for-swift.svg?style=flat-square) -![Version](https://img.shields.io/badge/api%20version-1.5.7-blue.svg?style=flat-square) +![Version](https://img.shields.io/badge/api%20version-1.6.0-blue.svg?style=flat-square) [![Build Status](https://img.shields.io/travis/com/appwrite/sdk-generator?style=flat-square)](https://travis-ci.com/appwrite/sdk-generator) [![Twitter Account](https://img.shields.io/twitter/follow/appwrite?color=00acee&label=twitter&style=flat-square)](https://twitter.com/appwrite) [![Discord](https://img.shields.io/discord/564160730845151244?label=discord&style=flat-square)](https://appwrite.io/discord) @@ -33,7 +33,7 @@ Add the package to your `Package.swift` dependencies: ```swift dependencies: [ - .package(url: "git@github.com:appwrite/sdk-for-swift.git", from: "5.0.2"), + .package(url: "git@github.com:appwrite/sdk-for-swift.git", from: "6.0.0-rc.1"), ], ``` diff --git a/Sources/Appwrite/Client.swift b/Sources/Appwrite/Client.swift index ed77521..021e269 100644 --- a/Sources/Appwrite/Client.swift +++ b/Sources/Appwrite/Client.swift @@ -21,8 +21,8 @@ open class Client { "x-sdk-name": "Swift", "x-sdk-platform": "server", "x-sdk-language": "swift", - "x-sdk-version": "5.0.2", - "x-appwrite-response-format": "1.5.0" + "x-sdk-version": "6.0.0-rc.1", + "x-appwrite-response-format": "1.6.0" ] internal var config: [String: String] = [:] diff --git a/Sources/Appwrite/Services/Account.swift b/Sources/Appwrite/Services/Account.swift index 065a7cb..06dbc35 100644 --- a/Sources/Appwrite/Services/Account.swift +++ b/Sources/Appwrite/Services/Account.swift @@ -402,7 +402,7 @@ open class Account: Service { } /// - /// Add Authenticator + /// Create Authenticator /// /// Add an authenticator app to be used as an MFA factor. Verify the /// authenticator using the [verify @@ -508,20 +508,16 @@ open class Account: Service { /// Delete an authenticator for a user by ID. /// /// @param AppwriteEnums.AuthenticatorType type - /// @param String otp /// @throws Exception /// @return array /// open func deleteMfaAuthenticator( - type: AppwriteEnums.AuthenticatorType, - otp: String + type: AppwriteEnums.AuthenticatorType ) async throws -> Any { let apiPath: String = "/account/mfa/authenticators/{type}" .replacingOccurrences(of: "{type}", with: type.rawValue) - let apiParams: [String: Any?] = [ - "otp": otp - ] + let apiParams: [String: Any] = [:] let apiHeaders: [String: String] = [ "content-type": "application/json" @@ -535,7 +531,7 @@ open class Account: Service { } /// - /// Create 2FA Challenge + /// Create MFA Challenge /// /// Begin the process of MFA verification after sign-in. Finish the flow with /// [updateMfaChallenge](/docs/references/cloud/client-web/account#updateMfaChallenge) @@ -1877,7 +1873,7 @@ open class Account: Service { } /// - /// Create phone verification (confirmation) + /// Update phone verification (confirmation) /// /// Use this endpoint to complete the user phone verification process. Use the /// **userId** and **secret** that were sent to your user's phone number to diff --git a/Sources/Appwrite/Services/Avatars.swift b/Sources/Appwrite/Services/Avatars.swift index 182bd62..8699edf 100644 --- a/Sources/Appwrite/Services/Avatars.swift +++ b/Sources/Appwrite/Services/Avatars.swift @@ -111,6 +111,7 @@ open class Avatars: Service { /// Use this endpoint to fetch the favorite icon (AKA favicon) of any remote /// website URL. /// + /// This endpoint does not follow HTTP redirects. /// /// @param String url /// @throws Exception @@ -200,6 +201,7 @@ open class Avatars: Service { /// image at source quality. If dimensions are not specified, the default size /// of image returned is 400x400px. /// + /// This endpoint does not follow HTTP redirects. /// /// @param String url /// @param Int width diff --git a/Sources/Appwrite/Services/Functions.swift b/Sources/Appwrite/Services/Functions.swift index f223d93..1084a6c 100644 --- a/Sources/Appwrite/Services/Functions.swift +++ b/Sources/Appwrite/Services/Functions.swift @@ -75,7 +75,7 @@ open class Functions: Service { /// @param String templateRepository /// @param String templateOwner /// @param String templateRootDirectory - /// @param String templateBranch + /// @param String templateVersion /// @throws Exception /// @return array /// @@ -100,7 +100,7 @@ open class Functions: Service { templateRepository: String? = nil, templateOwner: String? = nil, templateRootDirectory: String? = nil, - templateBranch: String? = nil + templateVersion: String? = nil ) async throws -> AppwriteModels.Function { let apiPath: String = "/functions" @@ -125,7 +125,7 @@ open class Functions: Service { "templateRepository": templateRepository, "templateOwner": templateOwner, "templateRootDirectory": templateRootDirectory, - "templateBranch": templateBranch + "templateVersion": templateVersion ] let apiHeaders: [String: String] = [ @@ -176,6 +176,88 @@ open class Functions: Service { ) } + /// + /// List function templates + /// + /// List available function templates. You can use template details in + /// [createFunction](/docs/references/cloud/server-nodejs/functions#create) + /// method. + /// + /// @param [String] runtimes + /// @param [String] useCases + /// @param Int limit + /// @param Int offset + /// @throws Exception + /// @return array + /// + open func listTemplates( + runtimes: [String]? = nil, + useCases: [String]? = nil, + limit: Int? = nil, + offset: Int? = nil + ) async throws -> AppwriteModels.TemplateFunctionList { + let apiPath: String = "/functions/templates" + + let apiParams: [String: Any?] = [ + "runtimes": runtimes, + "useCases": useCases, + "limit": limit, + "offset": offset + ] + + let apiHeaders: [String: String] = [ + "content-type": "application/json" + ] + + let converter: (Any) -> AppwriteModels.TemplateFunctionList = { response in + return AppwriteModels.TemplateFunctionList.from(map: response as! [String: Any]) + } + + return try await client.call( + method: "GET", + path: apiPath, + headers: apiHeaders, + params: apiParams, + converter: converter + ) + } + + /// + /// Get function template + /// + /// Get a function template using ID. You can use template details in + /// [createFunction](/docs/references/cloud/server-nodejs/functions#create) + /// method. + /// + /// @param String templateId + /// @throws Exception + /// @return array + /// + open func getTemplate( + templateId: String + ) async throws -> AppwriteModels.TemplateFunction { + let apiPath: String = "/functions/templates/{templateId}" + .replacingOccurrences(of: "{templateId}", with: templateId) + + let apiParams: [String: Any] = [:] + + let apiHeaders: [String: String] = [ + "content-type": "application/json" + ] + + let converter: (Any) -> AppwriteModels.TemplateFunction = { response in + return AppwriteModels.TemplateFunction.from(map: response as! [String: Any]) + } + + return try await client.call( + method: "GET", + path: apiPath, + headers: apiHeaders, + params: apiParams, + converter: converter + ) + } + /// /// Get function /// @@ -462,7 +544,7 @@ open class Functions: Service { } /// - /// Update function deployment + /// Update deployment /// /// Update the function code deployment ID using the unique function ID. Use /// this endpoint to switch the code deployment that should be executed by the @@ -600,7 +682,7 @@ open class Functions: Service { } /// - /// Download Deployment + /// Download deployment /// /// Get a Deployment's contents by its unique ID. This endpoint supports range /// requests for partial or streaming file download. @@ -610,7 +692,7 @@ open class Functions: Service { /// @throws Exception /// @return array /// - open func downloadDeployment( + open func getDeploymentDownload( functionId: String, deploymentId: String ) async throws -> ByteBuffer { @@ -698,12 +780,13 @@ open class Functions: Service { path: String? = nil, method: AppwriteEnums.ExecutionMethod? = nil, headers: Any? = nil, - scheduledAt: String? = nil + scheduledAt: String? = nil, + onProgress: ((UploadProgress) -> Void)? = nil ) async throws -> AppwriteModels.Execution { let apiPath: String = "/functions/{functionId}/executions" .replacingOccurrences(of: "{functionId}", with: functionId) - let apiParams: [String: Any?] = [ + var apiParams: [String: Any?] = [ "body": body, "async": async, "path": path, @@ -712,20 +795,23 @@ open class Functions: Service { "scheduledAt": scheduledAt ] - let apiHeaders: [String: String] = [ - "content-type": "application/json" + var apiHeaders: [String: String] = [ + "content-type": "multipart/form-data" ] let converter: (Any) -> AppwriteModels.Execution = { response in return AppwriteModels.Execution.from(map: response as! [String: Any]) } - return try await client.call( - method: "POST", + let idParamName: String? = nil + return try await client.chunkedUpload( path: apiPath, - headers: apiHeaders, - params: apiParams, - converter: converter + headers: &apiHeaders, + params: &apiParams, + paramName: paramName, + idParamName: idParamName, + converter: converter, + onProgress: onProgress ) } diff --git a/Sources/AppwriteModels/Execution.swift b/Sources/AppwriteModels/Execution.swift index 2cb6d9a..add85f6 100644 --- a/Sources/AppwriteModels/Execution.swift +++ b/Sources/AppwriteModels/Execution.swift @@ -52,6 +52,9 @@ public class Execution { /// Function execution duration in seconds. public let duration: Double + /// The scheduled time for execution. If left empty, execution will be queued immediately. + public let scheduledAt: String?? + init( id: String, @@ -69,7 +72,8 @@ public class Execution { responseHeaders: [Headers], logs: String, errors: String, - duration: Double + duration: Double, + scheduledAt: String?? ) { self.id = id self.createdAt = createdAt @@ -87,6 +91,7 @@ public class Execution { self.logs = logs self.errors = errors self.duration = duration + self.scheduledAt = scheduledAt } public func toMap() -> [String: Any] { @@ -106,7 +111,8 @@ public class Execution { "responseHeaders": responseHeaders.map { $0.toMap() } as Any, "logs": logs as Any, "errors": errors as Any, - "duration": duration as Any + "duration": duration as Any, + "scheduledAt": scheduledAt as Any ] } @@ -127,7 +133,8 @@ public class Execution { responseHeaders: (map["responseHeaders"] as! [[String: Any]]).map { Headers.from(map: $0) }, logs: map["logs"] as! String, errors: map["errors"] as! String, - duration: map["duration"] as! Double + duration: map["duration"] as! Double, + scheduledAt: map["scheduledAt"] as? String? ) } } diff --git a/Sources/AppwriteModels/Runtime.swift b/Sources/AppwriteModels/Runtime.swift index 2e524ba..66906e1 100644 --- a/Sources/AppwriteModels/Runtime.swift +++ b/Sources/AppwriteModels/Runtime.swift @@ -7,6 +7,9 @@ public class Runtime { /// Runtime ID. public let id: String + /// Parent runtime key. + public let key: String + /// Runtime Name. public let name: String @@ -28,6 +31,7 @@ public class Runtime { init( id: String, + key: String, name: String, version: String, base: String, @@ -36,6 +40,7 @@ public class Runtime { supports: [Any] ) { self.id = id + self.key = key self.name = name self.version = version self.base = base @@ -47,6 +52,7 @@ public class Runtime { public func toMap() -> [String: Any] { return [ "$id": id as Any, + "key": key as Any, "name": name as Any, "version": version as Any, "base": base as Any, @@ -59,6 +65,7 @@ public class Runtime { public static func from(map: [String: Any] ) -> Runtime { return Runtime( id: map["$id"] as! String, + key: map["key"] as! String, name: map["name"] as! String, version: map["version"] as! String, base: map["base"] as! String, diff --git a/Sources/AppwriteModels/TemplateFunction.swift b/Sources/AppwriteModels/TemplateFunction.swift new file mode 100644 index 0000000..e174a05 --- /dev/null +++ b/Sources/AppwriteModels/TemplateFunction.swift @@ -0,0 +1,140 @@ +import Foundation +import JSONCodable + +/// Template Function +public class TemplateFunction { + + /// Function Template Icon. + public let icon: String + + /// Function Template ID. + public let id: String + + /// Function Template Name. + public let name: String + + /// Function Template Tagline. + public let tagline: String + + /// Execution permissions. + public let permissions: [Any] + + /// Function trigger events. + public let events: [Any] + + /// Function execution schedult in CRON format. + public let cron: String + + /// Function execution timeout in seconds. + public let timeout: Int + + /// Function use cases. + public let useCases: [Any] + + /// List of runtimes that can be used with this template. + public let runtimes: [TemplateRuntime] + + /// Function Template Instructions. + public let instructions: String + + /// VCS (Version Control System) Provider. + public let vcsProvider: String + + /// VCS (Version Control System) Repository ID + public let providerRepositoryId: String + + /// VCS (Version Control System) Owner. + public let providerOwner: String + + /// VCS (Version Control System) branch version (tag). + public let providerVersion: String + + /// Function variables. + public let variables: [TemplateVariable] + + /// Function scopes. + public let scopes: [Any] + + + init( + icon: String, + id: String, + name: String, + tagline: String, + permissions: [Any], + events: [Any], + cron: String, + timeout: Int, + useCases: [Any], + runtimes: [TemplateRuntime], + instructions: String, + vcsProvider: String, + providerRepositoryId: String, + providerOwner: String, + providerVersion: String, + variables: [TemplateVariable], + scopes: [Any] + ) { + self.icon = icon + self.id = id + self.name = name + self.tagline = tagline + self.permissions = permissions + self.events = events + self.cron = cron + self.timeout = timeout + self.useCases = useCases + self.runtimes = runtimes + self.instructions = instructions + self.vcsProvider = vcsProvider + self.providerRepositoryId = providerRepositoryId + self.providerOwner = providerOwner + self.providerVersion = providerVersion + self.variables = variables + self.scopes = scopes + } + + public func toMap() -> [String: Any] { + return [ + "icon": icon as Any, + "id": id as Any, + "name": name as Any, + "tagline": tagline as Any, + "permissions": permissions as Any, + "events": events as Any, + "cron": cron as Any, + "timeout": timeout as Any, + "useCases": useCases as Any, + "runtimes": runtimes.map { $0.toMap() } as Any, + "instructions": instructions as Any, + "vcsProvider": vcsProvider as Any, + "providerRepositoryId": providerRepositoryId as Any, + "providerOwner": providerOwner as Any, + "providerVersion": providerVersion as Any, + "variables": variables.map { $0.toMap() } as Any, + "scopes": scopes as Any + ] + } + + public static func from(map: [String: Any] ) -> TemplateFunction { + return TemplateFunction( + icon: map["icon"] as! String, + id: map["id"] as! String, + name: map["name"] as! String, + tagline: map["tagline"] as! String, + permissions: map["permissions"] as! [Any], + events: map["events"] as! [Any], + cron: map["cron"] as! String, + timeout: map["timeout"] as! Int, + useCases: map["useCases"] as! [Any], + runtimes: (map["runtimes"] as! [[String: Any]]).map { TemplateRuntime.from(map: $0) }, + instructions: map["instructions"] as! String, + vcsProvider: map["vcsProvider"] as! String, + providerRepositoryId: map["providerRepositoryId"] as! String, + providerOwner: map["providerOwner"] as! String, + providerVersion: map["providerVersion"] as! String, + variables: (map["variables"] as! [[String: Any]]).map { TemplateVariable.from(map: $0) }, + scopes: map["scopes"] as! [Any] + ) + } +} diff --git a/Sources/AppwriteModels/TemplateFunctionList.swift b/Sources/AppwriteModels/TemplateFunctionList.swift new file mode 100644 index 0000000..2fe319b --- /dev/null +++ b/Sources/AppwriteModels/TemplateFunctionList.swift @@ -0,0 +1,35 @@ +import Foundation +import JSONCodable + +/// Function Templates List +public class TemplateFunctionList { + + /// Total number of templates documents that matched your query. + public let total: Int + + /// List of templates. + public let templates: [TemplateFunction] + + + init( + total: Int, + templates: [TemplateFunction] + ) { + self.total = total + self.templates = templates + } + + public func toMap() -> [String: Any] { + return [ + "total": total as Any, + "templates": templates.map { $0.toMap() } as Any + ] + } + + public static func from(map: [String: Any] ) -> TemplateFunctionList { + return TemplateFunctionList( + total: map["total"] as! Int, + templates: (map["templates"] as! [[String: Any]]).map { TemplateFunction.from(map: $0) } + ) + } +} diff --git a/Sources/AppwriteModels/TemplateRuntime.swift b/Sources/AppwriteModels/TemplateRuntime.swift new file mode 100644 index 0000000..637c020 --- /dev/null +++ b/Sources/AppwriteModels/TemplateRuntime.swift @@ -0,0 +1,49 @@ +import Foundation +import JSONCodable + +/// Template Runtime +public class TemplateRuntime { + + /// Runtime Name. + public let name: String + + /// The build command used to build the deployment. + public let commands: String + + /// The entrypoint file used to execute the deployment. + public let entrypoint: String + + /// Path to function in VCS (Version Control System) repository + public let providerRootDirectory: String + + + init( + name: String, + commands: String, + entrypoint: String, + providerRootDirectory: String + ) { + self.name = name + self.commands = commands + self.entrypoint = entrypoint + self.providerRootDirectory = providerRootDirectory + } + + public func toMap() -> [String: Any] { + return [ + "name": name as Any, + "commands": commands as Any, + "entrypoint": entrypoint as Any, + "providerRootDirectory": providerRootDirectory as Any + ] + } + + public static func from(map: [String: Any] ) -> TemplateRuntime { + return TemplateRuntime( + name: map["name"] as! String, + commands: map["commands"] as! String, + entrypoint: map["entrypoint"] as! String, + providerRootDirectory: map["providerRootDirectory"] as! String + ) + } +} diff --git a/Sources/AppwriteModels/TemplateVariable.swift b/Sources/AppwriteModels/TemplateVariable.swift new file mode 100644 index 0000000..71c0a57 --- /dev/null +++ b/Sources/AppwriteModels/TemplateVariable.swift @@ -0,0 +1,63 @@ +import Foundation +import JSONCodable + +/// Template Variable +public class TemplateVariable { + + /// Variable Name. + public let name: String + + /// Variable Description. + public let description: String + + /// Variable Value. + public let value: String + + /// Variable Placeholder. + public let placeholder: String + + /// Is the variable required? + public let `required`: Bool + + /// Variable Type. + public let type: String + + + init( + name: String, + description: String, + value: String, + placeholder: String, + `required`: Bool, + type: String + ) { + self.name = name + self.description = description + self.value = value + self.placeholder = placeholder + self.`required` = `required` + self.type = type + } + + public func toMap() -> [String: Any] { + return [ + "name": name as Any, + "description": description as Any, + "value": value as Any, + "placeholder": placeholder as Any, + "`required`": `required` as Any, + "type": type as Any + ] + } + + public static func from(map: [String: Any] ) -> TemplateVariable { + return TemplateVariable( + name: map["name"] as! String, + description: map["description"] as! String, + value: map["value"] as! String, + placeholder: map["placeholder"] as! String, + `required`: map["required"] as! Bool, + type: map["type"] as! String + ) + } +} diff --git a/docs/examples/account/delete-mfa-authenticator.md b/docs/examples/account/delete-mfa-authenticator.md index e4f76e6..6d8854a 100644 --- a/docs/examples/account/delete-mfa-authenticator.md +++ b/docs/examples/account/delete-mfa-authenticator.md @@ -9,7 +9,6 @@ let client = Client() let account = Account(client) let result = try await account.deleteMfaAuthenticator( - type: .totp, - otp: "" + type: .totp ) diff --git a/docs/examples/functions/create.md b/docs/examples/functions/create.md index e508281..96d4b3f 100644 --- a/docs/examples/functions/create.md +++ b/docs/examples/functions/create.md @@ -29,6 +29,6 @@ let function = try await functions.create( templateRepository: "", // optional templateOwner: "", // optional templateRootDirectory: "", // optional - templateBranch: "" // optional + templateVersion: "" // optional ) diff --git a/docs/examples/functions/download-deployment.md b/docs/examples/functions/get-deployment-download.md similarity index 70% rename from docs/examples/functions/download-deployment.md rename to docs/examples/functions/get-deployment-download.md index 5e50b67..3d640a8 100644 --- a/docs/examples/functions/download-deployment.md +++ b/docs/examples/functions/get-deployment-download.md @@ -3,11 +3,11 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>") // Your secret API key + .setSession("") // The user session to authenticate with let functions = Functions(client) -let bytes = try await functions.downloadDeployment( +let bytes = try await functions.getDeploymentDownload( functionId: "", deploymentId: "" ) diff --git a/docs/examples/functions/get-template.md b/docs/examples/functions/get-template.md new file mode 100644 index 0000000..e4fa185 --- /dev/null +++ b/docs/examples/functions/get-template.md @@ -0,0 +1,12 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + +let functions = Functions(client) + +let templateFunction = try await functions.getTemplate( + templateId: "" +) + diff --git a/docs/examples/functions/list-templates.md b/docs/examples/functions/list-templates.md new file mode 100644 index 0000000..d93beef --- /dev/null +++ b/docs/examples/functions/list-templates.md @@ -0,0 +1,15 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + +let functions = Functions(client) + +let templateFunctionList = try await functions.listTemplates( + runtimes: [], // optional + useCases: [], // optional + limit: 1, // optional + offset: 0 // optional +) + From 778d3f46bb09893d203f93fdb00221b349fbcdb0 Mon Sep 17 00:00:00 2001 From: root Date: Tue, 20 Aug 2024 11:04:34 +0000 Subject: [PATCH 3/8] chore: update SDKs to new RC version --- README.md | 2 +- Sources/Appwrite/Client.swift | 2 +- Sources/Appwrite/Services/Functions.swift | 68 ++++++++++++++----- Sources/AppwriteModels/Function.swift | 13 +++- Sources/AppwriteModels/Specification.swift | 49 +++++++++++++ .../AppwriteModels/SpecificationList.swift | 35 ++++++++++ docs/examples/functions/create.md | 3 +- .../examples/functions/list-specifications.md | 11 +++ docs/examples/functions/update.md | 3 +- 9 files changed, 162 insertions(+), 24 deletions(-) create mode 100644 Sources/AppwriteModels/Specification.swift create mode 100644 Sources/AppwriteModels/SpecificationList.swift create mode 100644 docs/examples/functions/list-specifications.md diff --git a/README.md b/README.md index cabb58f..097eb55 100644 --- a/README.md +++ b/README.md @@ -33,7 +33,7 @@ Add the package to your `Package.swift` dependencies: ```swift dependencies: [ - .package(url: "git@github.com:appwrite/sdk-for-swift.git", from: "6.0.0-rc.1"), + .package(url: "git@github.com:appwrite/sdk-for-swift.git", from: "6.0.0-rc.2"), ], ``` diff --git a/Sources/Appwrite/Client.swift b/Sources/Appwrite/Client.swift index 021e269..5e231e2 100644 --- a/Sources/Appwrite/Client.swift +++ b/Sources/Appwrite/Client.swift @@ -21,7 +21,7 @@ open class Client { "x-sdk-name": "Swift", "x-sdk-platform": "server", "x-sdk-language": "swift", - "x-sdk-version": "6.0.0-rc.1", + "x-sdk-version": "6.0.0-rc.2", "x-appwrite-response-format": "1.6.0" ] diff --git a/Sources/Appwrite/Services/Functions.swift b/Sources/Appwrite/Services/Functions.swift index 1084a6c..8cee053 100644 --- a/Sources/Appwrite/Services/Functions.swift +++ b/Sources/Appwrite/Services/Functions.swift @@ -76,6 +76,7 @@ open class Functions: Service { /// @param String templateOwner /// @param String templateRootDirectory /// @param String templateVersion + /// @param String specification /// @throws Exception /// @return array /// @@ -100,7 +101,8 @@ open class Functions: Service { templateRepository: String? = nil, templateOwner: String? = nil, templateRootDirectory: String? = nil, - templateVersion: String? = nil + templateVersion: String? = nil, + specification: String? = nil ) async throws -> AppwriteModels.Function { let apiPath: String = "/functions" @@ -125,7 +127,8 @@ open class Functions: Service { "templateRepository": templateRepository, "templateOwner": templateOwner, "templateRootDirectory": templateRootDirectory, - "templateVersion": templateVersion + "templateVersion": templateVersion, + "specification": specification ] let apiHeaders: [String: String] = [ @@ -176,6 +179,38 @@ open class Functions: Service { ) } + /// + /// List available function runtime specifications + /// + /// List allowed function specifications for this instance. + /// + /// + /// @throws Exception + /// @return array + /// + open func listSpecifications( + ) async throws -> AppwriteModels.SpecificationList { + let apiPath: String = "/functions/specifications" + + let apiParams: [String: Any] = [:] + + let apiHeaders: [String: String] = [ + "content-type": "application/json" + ] + + let converter: (Any) -> AppwriteModels.SpecificationList = { response in + return AppwriteModels.SpecificationList.from(map: response as! [String: Any]) + } + + return try await client.call( + method: "GET", + path: apiPath, + headers: apiHeaders, + params: apiParams, + converter: converter + ) + } + /// /// List function templates /// @@ -314,6 +349,7 @@ open class Functions: Service { /// @param String providerBranch /// @param Bool providerSilentMode /// @param String providerRootDirectory + /// @param String specification /// @throws Exception /// @return array /// @@ -334,7 +370,8 @@ open class Functions: Service { providerRepositoryId: String? = nil, providerBranch: String? = nil, providerSilentMode: Bool? = nil, - providerRootDirectory: String? = nil + providerRootDirectory: String? = nil, + specification: String? = nil ) async throws -> AppwriteModels.Function { let apiPath: String = "/functions/{functionId}" .replacingOccurrences(of: "{functionId}", with: functionId) @@ -355,7 +392,8 @@ open class Functions: Service { "providerRepositoryId": providerRepositoryId, "providerBranch": providerBranch, "providerSilentMode": providerSilentMode, - "providerRootDirectory": providerRootDirectory + "providerRootDirectory": providerRootDirectory, + "specification": specification ] let apiHeaders: [String: String] = [ @@ -780,13 +818,12 @@ open class Functions: Service { path: String? = nil, method: AppwriteEnums.ExecutionMethod? = nil, headers: Any? = nil, - scheduledAt: String? = nil, - onProgress: ((UploadProgress) -> Void)? = nil + scheduledAt: String? = nil ) async throws -> AppwriteModels.Execution { let apiPath: String = "/functions/{functionId}/executions" .replacingOccurrences(of: "{functionId}", with: functionId) - var apiParams: [String: Any?] = [ + let apiParams: [String: Any?] = [ "body": body, "async": async, "path": path, @@ -795,23 +832,20 @@ open class Functions: Service { "scheduledAt": scheduledAt ] - var apiHeaders: [String: String] = [ - "content-type": "multipart/form-data" + let apiHeaders: [String: String] = [ + "content-type": "application/json" ] let converter: (Any) -> AppwriteModels.Execution = { response in return AppwriteModels.Execution.from(map: response as! [String: Any]) } - let idParamName: String? = nil - return try await client.chunkedUpload( + return try await client.call( + method: "POST", path: apiPath, - headers: &apiHeaders, - params: &apiParams, - paramName: paramName, - idParamName: idParamName, - converter: converter, - onProgress: onProgress + headers: apiHeaders, + params: apiParams, + converter: converter ) } diff --git a/Sources/AppwriteModels/Function.swift b/Sources/AppwriteModels/Function.swift index d193104..2eb3f97 100644 --- a/Sources/AppwriteModels/Function.swift +++ b/Sources/AppwriteModels/Function.swift @@ -73,6 +73,9 @@ public class Function { /// Is VCS (Version Control System) connection is in silent mode? When in silence mode, no comments will be posted on the repository pull or merge requests public let providerSilentMode: Bool + /// Machine specification for builds and executions. + public let specification: String + init( id: String, @@ -97,7 +100,8 @@ public class Function { providerRepositoryId: String, providerBranch: String, providerRootDirectory: String, - providerSilentMode: Bool + providerSilentMode: Bool, + specification: String ) { self.id = id self.createdAt = createdAt @@ -122,6 +126,7 @@ public class Function { self.providerBranch = providerBranch self.providerRootDirectory = providerRootDirectory self.providerSilentMode = providerSilentMode + self.specification = specification } public func toMap() -> [String: Any] { @@ -148,7 +153,8 @@ public class Function { "providerRepositoryId": providerRepositoryId as Any, "providerBranch": providerBranch as Any, "providerRootDirectory": providerRootDirectory as Any, - "providerSilentMode": providerSilentMode as Any + "providerSilentMode": providerSilentMode as Any, + "specification": specification as Any ] } @@ -176,7 +182,8 @@ public class Function { providerRepositoryId: map["providerRepositoryId"] as! String, providerBranch: map["providerBranch"] as! String, providerRootDirectory: map["providerRootDirectory"] as! String, - providerSilentMode: map["providerSilentMode"] as! Bool + providerSilentMode: map["providerSilentMode"] as! Bool, + specification: map["specification"] as! String ) } } diff --git a/Sources/AppwriteModels/Specification.swift b/Sources/AppwriteModels/Specification.swift new file mode 100644 index 0000000..fd9e49b --- /dev/null +++ b/Sources/AppwriteModels/Specification.swift @@ -0,0 +1,49 @@ +import Foundation +import JSONCodable + +/// Specification +public class Specification { + + /// Memory size in MB. + public let memory: Int + + /// Number of CPUs. + public let cpus: Double + + /// Is size enabled. + public let enabled: Bool + + /// Size slug. + public let slug: String + + + init( + memory: Int, + cpus: Double, + enabled: Bool, + slug: String + ) { + self.memory = memory + self.cpus = cpus + self.enabled = enabled + self.slug = slug + } + + public func toMap() -> [String: Any] { + return [ + "memory": memory as Any, + "cpus": cpus as Any, + "enabled": enabled as Any, + "slug": slug as Any + ] + } + + public static func from(map: [String: Any] ) -> Specification { + return Specification( + memory: map["memory"] as! Int, + cpus: map["cpus"] as! Double, + enabled: map["enabled"] as! Bool, + slug: map["slug"] as! String + ) + } +} diff --git a/Sources/AppwriteModels/SpecificationList.swift b/Sources/AppwriteModels/SpecificationList.swift new file mode 100644 index 0000000..fbe93ca --- /dev/null +++ b/Sources/AppwriteModels/SpecificationList.swift @@ -0,0 +1,35 @@ +import Foundation +import JSONCodable + +/// Specifications List +public class SpecificationList { + + /// Total number of specifications documents that matched your query. + public let total: Int + + /// List of specifications. + public let specifications: [Specification] + + + init( + total: Int, + specifications: [Specification] + ) { + self.total = total + self.specifications = specifications + } + + public func toMap() -> [String: Any] { + return [ + "total": total as Any, + "specifications": specifications.map { $0.toMap() } as Any + ] + } + + public static func from(map: [String: Any] ) -> SpecificationList { + return SpecificationList( + total: map["total"] as! Int, + specifications: (map["specifications"] as! [[String: Any]]).map { Specification.from(map: $0) } + ) + } +} diff --git a/docs/examples/functions/create.md b/docs/examples/functions/create.md index 96d4b3f..8e2c1d7 100644 --- a/docs/examples/functions/create.md +++ b/docs/examples/functions/create.md @@ -29,6 +29,7 @@ let function = try await functions.create( templateRepository: "", // optional templateOwner: "", // optional templateRootDirectory: "", // optional - templateVersion: "" // optional + templateVersion: "", // optional + specification: "" // optional ) diff --git a/docs/examples/functions/list-specifications.md b/docs/examples/functions/list-specifications.md new file mode 100644 index 0000000..8708d38 --- /dev/null +++ b/docs/examples/functions/list-specifications.md @@ -0,0 +1,11 @@ +import Appwrite + +let client = Client() + .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint + .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setKey("<YOUR_API_KEY>") // Your secret API key + +let functions = Functions(client) + +let specificationList = try await functions.listSpecifications() + diff --git a/docs/examples/functions/update.md b/docs/examples/functions/update.md index 61a0f00..4271775 100644 --- a/docs/examples/functions/update.md +++ b/docs/examples/functions/update.md @@ -25,6 +25,7 @@ let function = try await functions.update( providerRepositoryId: "", // optional providerBranch: "", // optional providerSilentMode: false, // optional - providerRootDirectory: "" // optional + providerRootDirectory: "", // optional + specification: "" // optional ) From da746b17f233c75f4c57f074f4df9c2b6ef1b025 Mon Sep 17 00:00:00 2001 From: root Date: Fri, 23 Aug 2024 10:51:40 +0000 Subject: [PATCH 4/8] chore: updates for next rc release --- README.md | 2 +- Sources/Appwrite/Client.swift | 2 +- Sources/AppwriteEnums/Runtime.swift | 2 +- Sources/AppwriteModels/Deployment.swift | 7 +++++++ docs/examples/account/create-anonymous-session.md | 2 +- docs/examples/account/create-email-password-session.md | 2 +- docs/examples/account/create-email-token.md | 2 +- docs/examples/account/create-j-w-t.md | 2 +- docs/examples/account/create-magic-u-r-l-token.md | 2 +- docs/examples/account/create-mfa-authenticator.md | 2 +- docs/examples/account/create-mfa-challenge.md | 2 +- docs/examples/account/create-mfa-recovery-codes.md | 2 +- docs/examples/account/create-o-auth2token.md | 2 +- docs/examples/account/create-phone-token.md | 2 +- docs/examples/account/create-phone-verification.md | 2 +- docs/examples/account/create-recovery.md | 2 +- docs/examples/account/create-session.md | 2 +- docs/examples/account/create-verification.md | 2 +- docs/examples/account/create.md | 2 +- docs/examples/account/delete-identity.md | 2 +- docs/examples/account/delete-mfa-authenticator.md | 2 +- docs/examples/account/delete-session.md | 2 +- docs/examples/account/delete-sessions.md | 2 +- docs/examples/account/get-mfa-recovery-codes.md | 2 +- docs/examples/account/get-prefs.md | 2 +- docs/examples/account/get-session.md | 2 +- docs/examples/account/get.md | 2 +- docs/examples/account/list-identities.md | 2 +- docs/examples/account/list-logs.md | 2 +- docs/examples/account/list-mfa-factors.md | 2 +- docs/examples/account/list-sessions.md | 2 +- docs/examples/account/update-email.md | 2 +- docs/examples/account/update-m-f-a.md | 2 +- docs/examples/account/update-magic-u-r-l-session.md | 2 +- docs/examples/account/update-mfa-authenticator.md | 2 +- docs/examples/account/update-mfa-challenge.md | 2 +- docs/examples/account/update-mfa-recovery-codes.md | 2 +- docs/examples/account/update-name.md | 2 +- docs/examples/account/update-password.md | 2 +- docs/examples/account/update-phone-session.md | 2 +- docs/examples/account/update-phone-verification.md | 2 +- docs/examples/account/update-phone.md | 2 +- docs/examples/account/update-prefs.md | 2 +- docs/examples/account/update-recovery.md | 2 +- docs/examples/account/update-session.md | 2 +- docs/examples/account/update-status.md | 2 +- docs/examples/account/update-verification.md | 2 +- docs/examples/avatars/get-browser.md | 2 +- docs/examples/avatars/get-credit-card.md | 2 +- docs/examples/avatars/get-favicon.md | 2 +- docs/examples/avatars/get-flag.md | 2 +- docs/examples/avatars/get-image.md | 2 +- docs/examples/avatars/get-initials.md | 2 +- docs/examples/avatars/get-q-r.md | 2 +- docs/examples/databases/create-boolean-attribute.md | 4 ++-- docs/examples/databases/create-collection.md | 4 ++-- docs/examples/databases/create-datetime-attribute.md | 4 ++-- docs/examples/databases/create-document.md | 2 +- docs/examples/databases/create-email-attribute.md | 4 ++-- docs/examples/databases/create-enum-attribute.md | 4 ++-- docs/examples/databases/create-float-attribute.md | 4 ++-- docs/examples/databases/create-index.md | 4 ++-- docs/examples/databases/create-integer-attribute.md | 4 ++-- docs/examples/databases/create-ip-attribute.md | 4 ++-- docs/examples/databases/create-relationship-attribute.md | 4 ++-- docs/examples/databases/create-string-attribute.md | 4 ++-- docs/examples/databases/create-url-attribute.md | 4 ++-- docs/examples/databases/create.md | 4 ++-- docs/examples/databases/delete-attribute.md | 4 ++-- docs/examples/databases/delete-collection.md | 4 ++-- docs/examples/databases/delete-document.md | 2 +- docs/examples/databases/delete-index.md | 4 ++-- docs/examples/databases/delete.md | 4 ++-- docs/examples/databases/get-attribute.md | 4 ++-- docs/examples/databases/get-collection.md | 4 ++-- docs/examples/databases/get-document.md | 2 +- docs/examples/databases/get-index.md | 4 ++-- docs/examples/databases/get.md | 4 ++-- docs/examples/databases/list-attributes.md | 4 ++-- docs/examples/databases/list-collections.md | 4 ++-- docs/examples/databases/list-documents.md | 2 +- docs/examples/databases/list-indexes.md | 4 ++-- docs/examples/databases/list.md | 4 ++-- docs/examples/databases/update-boolean-attribute.md | 4 ++-- docs/examples/databases/update-collection.md | 4 ++-- docs/examples/databases/update-datetime-attribute.md | 4 ++-- docs/examples/databases/update-document.md | 2 +- docs/examples/databases/update-email-attribute.md | 4 ++-- docs/examples/databases/update-enum-attribute.md | 4 ++-- docs/examples/databases/update-float-attribute.md | 4 ++-- docs/examples/databases/update-integer-attribute.md | 4 ++-- docs/examples/databases/update-ip-attribute.md | 4 ++-- docs/examples/databases/update-relationship-attribute.md | 4 ++-- docs/examples/databases/update-string-attribute.md | 4 ++-- docs/examples/databases/update-url-attribute.md | 4 ++-- docs/examples/databases/update.md | 4 ++-- docs/examples/functions/create-build.md | 4 ++-- docs/examples/functions/create-deployment.md | 4 ++-- docs/examples/functions/create-execution.md | 2 +- docs/examples/functions/create-variable.md | 4 ++-- docs/examples/functions/create.md | 4 ++-- docs/examples/functions/delete-deployment.md | 4 ++-- docs/examples/functions/delete-execution.md | 4 ++-- docs/examples/functions/delete-variable.md | 4 ++-- docs/examples/functions/delete.md | 4 ++-- docs/examples/functions/get-deployment-download.md | 2 +- docs/examples/functions/get-deployment.md | 4 ++-- docs/examples/functions/get-execution.md | 2 +- docs/examples/functions/get-template.md | 2 +- docs/examples/functions/get-variable.md | 4 ++-- docs/examples/functions/get.md | 4 ++-- docs/examples/functions/list-deployments.md | 4 ++-- docs/examples/functions/list-executions.md | 2 +- docs/examples/functions/list-runtimes.md | 4 ++-- docs/examples/functions/list-specifications.md | 4 ++-- docs/examples/functions/list-templates.md | 2 +- docs/examples/functions/list-variables.md | 4 ++-- docs/examples/functions/list.md | 4 ++-- docs/examples/functions/update-deployment-build.md | 4 ++-- docs/examples/functions/update-deployment.md | 4 ++-- docs/examples/functions/update-variable.md | 4 ++-- docs/examples/functions/update.md | 4 ++-- docs/examples/graphql/mutation.md | 4 ++-- docs/examples/graphql/query.md | 4 ++-- docs/examples/health/get-antivirus.md | 4 ++-- docs/examples/health/get-cache.md | 4 ++-- docs/examples/health/get-certificate.md | 4 ++-- docs/examples/health/get-d-b.md | 4 ++-- docs/examples/health/get-failed-jobs.md | 4 ++-- docs/examples/health/get-pub-sub.md | 4 ++-- docs/examples/health/get-queue-builds.md | 4 ++-- docs/examples/health/get-queue-certificates.md | 4 ++-- docs/examples/health/get-queue-databases.md | 4 ++-- docs/examples/health/get-queue-deletes.md | 4 ++-- docs/examples/health/get-queue-functions.md | 4 ++-- docs/examples/health/get-queue-logs.md | 4 ++-- docs/examples/health/get-queue-mails.md | 4 ++-- docs/examples/health/get-queue-messaging.md | 4 ++-- docs/examples/health/get-queue-migrations.md | 4 ++-- docs/examples/health/get-queue-usage-dump.md | 4 ++-- docs/examples/health/get-queue-usage.md | 4 ++-- docs/examples/health/get-queue-webhooks.md | 4 ++-- docs/examples/health/get-queue.md | 4 ++-- docs/examples/health/get-storage-local.md | 4 ++-- docs/examples/health/get-storage.md | 4 ++-- docs/examples/health/get-time.md | 4 ++-- docs/examples/health/get.md | 4 ++-- docs/examples/locale/get.md | 2 +- docs/examples/locale/list-codes.md | 2 +- docs/examples/locale/list-continents.md | 2 +- docs/examples/locale/list-countries-e-u.md | 2 +- docs/examples/locale/list-countries-phones.md | 2 +- docs/examples/locale/list-countries.md | 2 +- docs/examples/locale/list-currencies.md | 2 +- docs/examples/locale/list-languages.md | 2 +- docs/examples/messaging/create-apns-provider.md | 4 ++-- docs/examples/messaging/create-email.md | 4 ++-- docs/examples/messaging/create-fcm-provider.md | 4 ++-- docs/examples/messaging/create-mailgun-provider.md | 4 ++-- docs/examples/messaging/create-msg91provider.md | 4 ++-- docs/examples/messaging/create-push.md | 4 ++-- docs/examples/messaging/create-sendgrid-provider.md | 4 ++-- docs/examples/messaging/create-sms.md | 4 ++-- docs/examples/messaging/create-smtp-provider.md | 4 ++-- docs/examples/messaging/create-subscriber.md | 4 ++-- docs/examples/messaging/create-telesign-provider.md | 4 ++-- docs/examples/messaging/create-textmagic-provider.md | 4 ++-- docs/examples/messaging/create-topic.md | 4 ++-- docs/examples/messaging/create-twilio-provider.md | 4 ++-- docs/examples/messaging/create-vonage-provider.md | 4 ++-- docs/examples/messaging/delete-provider.md | 4 ++-- docs/examples/messaging/delete-subscriber.md | 4 ++-- docs/examples/messaging/delete-topic.md | 4 ++-- docs/examples/messaging/delete.md | 4 ++-- docs/examples/messaging/get-message.md | 4 ++-- docs/examples/messaging/get-provider.md | 4 ++-- docs/examples/messaging/get-subscriber.md | 4 ++-- docs/examples/messaging/get-topic.md | 4 ++-- docs/examples/messaging/list-message-logs.md | 4 ++-- docs/examples/messaging/list-messages.md | 4 ++-- docs/examples/messaging/list-provider-logs.md | 4 ++-- docs/examples/messaging/list-providers.md | 4 ++-- docs/examples/messaging/list-subscriber-logs.md | 4 ++-- docs/examples/messaging/list-subscribers.md | 4 ++-- docs/examples/messaging/list-targets.md | 4 ++-- docs/examples/messaging/list-topic-logs.md | 4 ++-- docs/examples/messaging/list-topics.md | 4 ++-- docs/examples/messaging/update-apns-provider.md | 4 ++-- docs/examples/messaging/update-email.md | 4 ++-- docs/examples/messaging/update-fcm-provider.md | 4 ++-- docs/examples/messaging/update-mailgun-provider.md | 4 ++-- docs/examples/messaging/update-msg91provider.md | 4 ++-- docs/examples/messaging/update-push.md | 4 ++-- docs/examples/messaging/update-sendgrid-provider.md | 4 ++-- docs/examples/messaging/update-sms.md | 4 ++-- docs/examples/messaging/update-smtp-provider.md | 4 ++-- docs/examples/messaging/update-telesign-provider.md | 4 ++-- docs/examples/messaging/update-textmagic-provider.md | 4 ++-- docs/examples/messaging/update-topic.md | 4 ++-- docs/examples/messaging/update-twilio-provider.md | 4 ++-- docs/examples/messaging/update-vonage-provider.md | 4 ++-- docs/examples/storage/create-bucket.md | 4 ++-- docs/examples/storage/create-file.md | 2 +- docs/examples/storage/delete-bucket.md | 4 ++-- docs/examples/storage/delete-file.md | 2 +- docs/examples/storage/get-bucket.md | 4 ++-- docs/examples/storage/get-file-download.md | 2 +- docs/examples/storage/get-file-preview.md | 2 +- docs/examples/storage/get-file-view.md | 2 +- docs/examples/storage/get-file.md | 2 +- docs/examples/storage/list-buckets.md | 4 ++-- docs/examples/storage/list-files.md | 2 +- docs/examples/storage/update-bucket.md | 4 ++-- docs/examples/storage/update-file.md | 2 +- docs/examples/teams/create-membership.md | 2 +- docs/examples/teams/create.md | 2 +- docs/examples/teams/delete-membership.md | 2 +- docs/examples/teams/delete.md | 2 +- docs/examples/teams/get-membership.md | 2 +- docs/examples/teams/get-prefs.md | 2 +- docs/examples/teams/get.md | 2 +- docs/examples/teams/list-memberships.md | 2 +- docs/examples/teams/list.md | 2 +- docs/examples/teams/update-membership-status.md | 2 +- docs/examples/teams/update-membership.md | 2 +- docs/examples/teams/update-name.md | 2 +- docs/examples/teams/update-prefs.md | 2 +- docs/examples/users/create-argon2user.md | 4 ++-- docs/examples/users/create-bcrypt-user.md | 4 ++-- docs/examples/users/create-j-w-t.md | 4 ++-- docs/examples/users/create-m-d5user.md | 4 ++-- docs/examples/users/create-mfa-recovery-codes.md | 4 ++-- docs/examples/users/create-p-h-pass-user.md | 4 ++-- docs/examples/users/create-s-h-a-user.md | 4 ++-- docs/examples/users/create-scrypt-modified-user.md | 4 ++-- docs/examples/users/create-scrypt-user.md | 4 ++-- docs/examples/users/create-session.md | 4 ++-- docs/examples/users/create-target.md | 4 ++-- docs/examples/users/create-token.md | 4 ++-- docs/examples/users/create.md | 4 ++-- docs/examples/users/delete-identity.md | 4 ++-- docs/examples/users/delete-mfa-authenticator.md | 4 ++-- docs/examples/users/delete-session.md | 4 ++-- docs/examples/users/delete-sessions.md | 4 ++-- docs/examples/users/delete-target.md | 4 ++-- docs/examples/users/delete.md | 4 ++-- docs/examples/users/get-mfa-recovery-codes.md | 4 ++-- docs/examples/users/get-prefs.md | 4 ++-- docs/examples/users/get-target.md | 4 ++-- docs/examples/users/get.md | 4 ++-- docs/examples/users/list-identities.md | 4 ++-- docs/examples/users/list-logs.md | 4 ++-- docs/examples/users/list-memberships.md | 4 ++-- docs/examples/users/list-mfa-factors.md | 4 ++-- docs/examples/users/list-sessions.md | 4 ++-- docs/examples/users/list-targets.md | 4 ++-- docs/examples/users/list.md | 4 ++-- docs/examples/users/update-email-verification.md | 4 ++-- docs/examples/users/update-email.md | 4 ++-- docs/examples/users/update-labels.md | 4 ++-- docs/examples/users/update-mfa-recovery-codes.md | 4 ++-- docs/examples/users/update-mfa.md | 4 ++-- docs/examples/users/update-name.md | 4 ++-- docs/examples/users/update-password.md | 4 ++-- docs/examples/users/update-phone-verification.md | 4 ++-- docs/examples/users/update-phone.md | 4 ++-- docs/examples/users/update-prefs.md | 4 ++-- docs/examples/users/update-status.md | 4 ++-- docs/examples/users/update-target.md | 4 ++-- 269 files changed, 450 insertions(+), 443 deletions(-) diff --git a/README.md b/README.md index 097eb55..2c84763 100644 --- a/README.md +++ b/README.md @@ -33,7 +33,7 @@ Add the package to your `Package.swift` dependencies: ```swift dependencies: [ - .package(url: "git@github.com:appwrite/sdk-for-swift.git", from: "6.0.0-rc.2"), + .package(url: "git@github.com:appwrite/sdk-for-swift.git", from: "6.0.0-rc.3"), ], ``` diff --git a/Sources/Appwrite/Client.swift b/Sources/Appwrite/Client.swift index 5e231e2..f56a19c 100644 --- a/Sources/Appwrite/Client.swift +++ b/Sources/Appwrite/Client.swift @@ -21,7 +21,7 @@ open class Client { "x-sdk-name": "Swift", "x-sdk-platform": "server", "x-sdk-language": "swift", - "x-sdk-version": "6.0.0-rc.2", + "x-sdk-version": "6.0.0-rc.3", "x-appwrite-response-format": "1.6.0" ] diff --git a/Sources/AppwriteEnums/Runtime.swift b/Sources/AppwriteEnums/Runtime.swift index c0b96fb..12abf93 100644 --- a/Sources/AppwriteEnums/Runtime.swift +++ b/Sources/AppwriteEnums/Runtime.swift @@ -46,7 +46,7 @@ public enum Runtime: String, Codable { case cpp17 = "cpp-17" case cpp20 = "cpp-20" case bun10 = "bun-1.0" - case go122 = "go-1.22" + case go123 = "go-1.23" public func encode(to encoder: Encoder) throws { var container = encoder.singleValueContainer() diff --git a/Sources/AppwriteModels/Deployment.swift b/Sources/AppwriteModels/Deployment.swift index c285005..3c7f9d9 100644 --- a/Sources/AppwriteModels/Deployment.swift +++ b/Sources/AppwriteModels/Deployment.swift @@ -28,6 +28,9 @@ public class Deployment { /// The code size in bytes. public let size: Int + /// The build output size in bytes. + public let buildSize: Int + /// The current build ID. public let buildId: String @@ -83,6 +86,7 @@ public class Deployment { resourceType: String, entrypoint: String, size: Int, + buildSize: Int, buildId: String, activate: Bool, status: String, @@ -107,6 +111,7 @@ public class Deployment { self.resourceType = resourceType self.entrypoint = entrypoint self.size = size + self.buildSize = buildSize self.buildId = buildId self.activate = activate self.status = status @@ -134,6 +139,7 @@ public class Deployment { "resourceType": resourceType as Any, "entrypoint": entrypoint as Any, "size": size as Any, + "buildSize": buildSize as Any, "buildId": buildId as Any, "activate": activate as Any, "status": status as Any, @@ -162,6 +168,7 @@ public class Deployment { resourceType: map["resourceType"] as! String, entrypoint: map["entrypoint"] as! String, size: map["size"] as! Int, + buildSize: map["buildSize"] as! Int, buildId: map["buildId"] as! String, activate: map["activate"] as! Bool, status: map["status"] as! String, diff --git a/docs/examples/account/create-anonymous-session.md b/docs/examples/account/create-anonymous-session.md index 6392cc4..f676bac 100644 --- a/docs/examples/account/create-anonymous-session.md +++ b/docs/examples/account/create-anonymous-session.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setProject("") // Your project ID let account = Account(client) diff --git a/docs/examples/account/create-email-password-session.md b/docs/examples/account/create-email-password-session.md index 2ff62e4..1505182 100644 --- a/docs/examples/account/create-email-password-session.md +++ b/docs/examples/account/create-email-password-session.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setProject("") // Your project ID let account = Account(client) diff --git a/docs/examples/account/create-email-token.md b/docs/examples/account/create-email-token.md index 1da4ecb..b9d39ff 100644 --- a/docs/examples/account/create-email-token.md +++ b/docs/examples/account/create-email-token.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setProject("") // Your project ID let account = Account(client) diff --git a/docs/examples/account/create-j-w-t.md b/docs/examples/account/create-j-w-t.md index ade54e6..c1c0f22 100644 --- a/docs/examples/account/create-j-w-t.md +++ b/docs/examples/account/create-j-w-t.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setProject("") // Your project ID let account = Account(client) diff --git a/docs/examples/account/create-magic-u-r-l-token.md b/docs/examples/account/create-magic-u-r-l-token.md index 83d763c..83eb681 100644 --- a/docs/examples/account/create-magic-u-r-l-token.md +++ b/docs/examples/account/create-magic-u-r-l-token.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setProject("") // Your project ID let account = Account(client) diff --git a/docs/examples/account/create-mfa-authenticator.md b/docs/examples/account/create-mfa-authenticator.md index 1d1bf46..70294e9 100644 --- a/docs/examples/account/create-mfa-authenticator.md +++ b/docs/examples/account/create-mfa-authenticator.md @@ -3,7 +3,7 @@ import AppwriteEnums let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setProject("") // Your project ID .setSession("") // The user session to authenticate with let account = Account(client) diff --git a/docs/examples/account/create-mfa-challenge.md b/docs/examples/account/create-mfa-challenge.md index 3798884..6d262d9 100644 --- a/docs/examples/account/create-mfa-challenge.md +++ b/docs/examples/account/create-mfa-challenge.md @@ -3,7 +3,7 @@ import AppwriteEnums let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setProject("") // Your project ID let account = Account(client) diff --git a/docs/examples/account/create-mfa-recovery-codes.md b/docs/examples/account/create-mfa-recovery-codes.md index acbd337..8480f41 100644 --- a/docs/examples/account/create-mfa-recovery-codes.md +++ b/docs/examples/account/create-mfa-recovery-codes.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setProject("") // Your project ID .setSession("") // The user session to authenticate with let account = Account(client) diff --git a/docs/examples/account/create-o-auth2token.md b/docs/examples/account/create-o-auth2token.md index 4224c6b..7bbfe98 100644 --- a/docs/examples/account/create-o-auth2token.md +++ b/docs/examples/account/create-o-auth2token.md @@ -3,7 +3,7 @@ import AppwriteEnums let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setProject("") // Your project ID let account = Account(client) diff --git a/docs/examples/account/create-phone-token.md b/docs/examples/account/create-phone-token.md index f8cff78..acb7a69 100644 --- a/docs/examples/account/create-phone-token.md +++ b/docs/examples/account/create-phone-token.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setProject("") // Your project ID let account = Account(client) diff --git a/docs/examples/account/create-phone-verification.md b/docs/examples/account/create-phone-verification.md index 3d2af4a..8bab0b7 100644 --- a/docs/examples/account/create-phone-verification.md +++ b/docs/examples/account/create-phone-verification.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setProject("") // Your project ID .setSession("") // The user session to authenticate with let account = Account(client) diff --git a/docs/examples/account/create-recovery.md b/docs/examples/account/create-recovery.md index 3926a86..f110d5b 100644 --- a/docs/examples/account/create-recovery.md +++ b/docs/examples/account/create-recovery.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setProject("") // Your project ID .setSession("") // The user session to authenticate with let account = Account(client) diff --git a/docs/examples/account/create-session.md b/docs/examples/account/create-session.md index 2bdecc7..3ea5119 100644 --- a/docs/examples/account/create-session.md +++ b/docs/examples/account/create-session.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setProject("") // Your project ID let account = Account(client) diff --git a/docs/examples/account/create-verification.md b/docs/examples/account/create-verification.md index 96b414c..305adca 100644 --- a/docs/examples/account/create-verification.md +++ b/docs/examples/account/create-verification.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setProject("") // Your project ID .setSession("") // The user session to authenticate with let account = Account(client) diff --git a/docs/examples/account/create.md b/docs/examples/account/create.md index cb8dd10..cad7e44 100644 --- a/docs/examples/account/create.md +++ b/docs/examples/account/create.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setProject("") // Your project ID let account = Account(client) diff --git a/docs/examples/account/delete-identity.md b/docs/examples/account/delete-identity.md index 1a25053..e032250 100644 --- a/docs/examples/account/delete-identity.md +++ b/docs/examples/account/delete-identity.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setProject("") // Your project ID .setSession("") // The user session to authenticate with let account = Account(client) diff --git a/docs/examples/account/delete-mfa-authenticator.md b/docs/examples/account/delete-mfa-authenticator.md index 6d8854a..9aa02ff 100644 --- a/docs/examples/account/delete-mfa-authenticator.md +++ b/docs/examples/account/delete-mfa-authenticator.md @@ -3,7 +3,7 @@ import AppwriteEnums let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setProject("") // Your project ID .setSession("") // The user session to authenticate with let account = Account(client) diff --git a/docs/examples/account/delete-session.md b/docs/examples/account/delete-session.md index e452a6c..9c685bc 100644 --- a/docs/examples/account/delete-session.md +++ b/docs/examples/account/delete-session.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setProject("") // Your project ID .setSession("") // The user session to authenticate with let account = Account(client) diff --git a/docs/examples/account/delete-sessions.md b/docs/examples/account/delete-sessions.md index 08f667c..59710f1 100644 --- a/docs/examples/account/delete-sessions.md +++ b/docs/examples/account/delete-sessions.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setProject("") // Your project ID .setSession("") // The user session to authenticate with let account = Account(client) diff --git a/docs/examples/account/get-mfa-recovery-codes.md b/docs/examples/account/get-mfa-recovery-codes.md index d8d30b3..34743be 100644 --- a/docs/examples/account/get-mfa-recovery-codes.md +++ b/docs/examples/account/get-mfa-recovery-codes.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setProject("") // Your project ID .setSession("") // The user session to authenticate with let account = Account(client) diff --git a/docs/examples/account/get-prefs.md b/docs/examples/account/get-prefs.md index eed9833..08d9ab5 100644 --- a/docs/examples/account/get-prefs.md +++ b/docs/examples/account/get-prefs.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setProject("") // Your project ID .setSession("") // The user session to authenticate with let account = Account(client) diff --git a/docs/examples/account/get-session.md b/docs/examples/account/get-session.md index 6f3bce3..37747ad 100644 --- a/docs/examples/account/get-session.md +++ b/docs/examples/account/get-session.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setProject("") // Your project ID .setSession("") // The user session to authenticate with let account = Account(client) diff --git a/docs/examples/account/get.md b/docs/examples/account/get.md index 80ae682..91ed56a 100644 --- a/docs/examples/account/get.md +++ b/docs/examples/account/get.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setProject("") // Your project ID .setSession("") // The user session to authenticate with let account = Account(client) diff --git a/docs/examples/account/list-identities.md b/docs/examples/account/list-identities.md index 175508b..96c6fd9 100644 --- a/docs/examples/account/list-identities.md +++ b/docs/examples/account/list-identities.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setProject("") // Your project ID .setSession("") // The user session to authenticate with let account = Account(client) diff --git a/docs/examples/account/list-logs.md b/docs/examples/account/list-logs.md index c2e505a..1a93da0 100644 --- a/docs/examples/account/list-logs.md +++ b/docs/examples/account/list-logs.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setProject("") // Your project ID .setSession("") // The user session to authenticate with let account = Account(client) diff --git a/docs/examples/account/list-mfa-factors.md b/docs/examples/account/list-mfa-factors.md index 41dd98a..72c2f5a 100644 --- a/docs/examples/account/list-mfa-factors.md +++ b/docs/examples/account/list-mfa-factors.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setProject("") // Your project ID .setSession("") // The user session to authenticate with let account = Account(client) diff --git a/docs/examples/account/list-sessions.md b/docs/examples/account/list-sessions.md index 922c8f3..67bb107 100644 --- a/docs/examples/account/list-sessions.md +++ b/docs/examples/account/list-sessions.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setProject("") // Your project ID .setSession("") // The user session to authenticate with let account = Account(client) diff --git a/docs/examples/account/update-email.md b/docs/examples/account/update-email.md index 7a94b49..d8126b5 100644 --- a/docs/examples/account/update-email.md +++ b/docs/examples/account/update-email.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setProject("") // Your project ID .setSession("") // The user session to authenticate with let account = Account(client) diff --git a/docs/examples/account/update-m-f-a.md b/docs/examples/account/update-m-f-a.md index 46c849d..4a471a4 100644 --- a/docs/examples/account/update-m-f-a.md +++ b/docs/examples/account/update-m-f-a.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setProject("") // Your project ID .setSession("") // The user session to authenticate with let account = Account(client) diff --git a/docs/examples/account/update-magic-u-r-l-session.md b/docs/examples/account/update-magic-u-r-l-session.md index 6571266..8e0a26a 100644 --- a/docs/examples/account/update-magic-u-r-l-session.md +++ b/docs/examples/account/update-magic-u-r-l-session.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setProject("") // Your project ID let account = Account(client) diff --git a/docs/examples/account/update-mfa-authenticator.md b/docs/examples/account/update-mfa-authenticator.md index 2bb3ce7..30e2705 100644 --- a/docs/examples/account/update-mfa-authenticator.md +++ b/docs/examples/account/update-mfa-authenticator.md @@ -3,7 +3,7 @@ import AppwriteEnums let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setProject("") // Your project ID .setSession("") // The user session to authenticate with let account = Account(client) diff --git a/docs/examples/account/update-mfa-challenge.md b/docs/examples/account/update-mfa-challenge.md index 2eac96d..eed3bfa 100644 --- a/docs/examples/account/update-mfa-challenge.md +++ b/docs/examples/account/update-mfa-challenge.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setProject("") // Your project ID .setSession("") // The user session to authenticate with let account = Account(client) diff --git a/docs/examples/account/update-mfa-recovery-codes.md b/docs/examples/account/update-mfa-recovery-codes.md index f06ede4..2be8f6f 100644 --- a/docs/examples/account/update-mfa-recovery-codes.md +++ b/docs/examples/account/update-mfa-recovery-codes.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setProject("") // Your project ID .setSession("") // The user session to authenticate with let account = Account(client) diff --git a/docs/examples/account/update-name.md b/docs/examples/account/update-name.md index d51f9d2..419b30a 100644 --- a/docs/examples/account/update-name.md +++ b/docs/examples/account/update-name.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setProject("") // Your project ID .setSession("") // The user session to authenticate with let account = Account(client) diff --git a/docs/examples/account/update-password.md b/docs/examples/account/update-password.md index d9232b8..8358ede 100644 --- a/docs/examples/account/update-password.md +++ b/docs/examples/account/update-password.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setProject("") // Your project ID .setSession("") // The user session to authenticate with let account = Account(client) diff --git a/docs/examples/account/update-phone-session.md b/docs/examples/account/update-phone-session.md index df1feae..50a88cb 100644 --- a/docs/examples/account/update-phone-session.md +++ b/docs/examples/account/update-phone-session.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setProject("") // Your project ID let account = Account(client) diff --git a/docs/examples/account/update-phone-verification.md b/docs/examples/account/update-phone-verification.md index 20085ac..13b0bac 100644 --- a/docs/examples/account/update-phone-verification.md +++ b/docs/examples/account/update-phone-verification.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setProject("") // Your project ID .setSession("") // The user session to authenticate with let account = Account(client) diff --git a/docs/examples/account/update-phone.md b/docs/examples/account/update-phone.md index c7c817b..496ddd9 100644 --- a/docs/examples/account/update-phone.md +++ b/docs/examples/account/update-phone.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setProject("") // Your project ID .setSession("") // The user session to authenticate with let account = Account(client) diff --git a/docs/examples/account/update-prefs.md b/docs/examples/account/update-prefs.md index 3fc0a9c..846764b 100644 --- a/docs/examples/account/update-prefs.md +++ b/docs/examples/account/update-prefs.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setProject("") // Your project ID .setSession("") // The user session to authenticate with let account = Account(client) diff --git a/docs/examples/account/update-recovery.md b/docs/examples/account/update-recovery.md index 0b8d463..82e8683 100644 --- a/docs/examples/account/update-recovery.md +++ b/docs/examples/account/update-recovery.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setProject("") // Your project ID .setSession("") // The user session to authenticate with let account = Account(client) diff --git a/docs/examples/account/update-session.md b/docs/examples/account/update-session.md index 40b88d8..866ea03 100644 --- a/docs/examples/account/update-session.md +++ b/docs/examples/account/update-session.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setProject("") // Your project ID .setSession("") // The user session to authenticate with let account = Account(client) diff --git a/docs/examples/account/update-status.md b/docs/examples/account/update-status.md index 1d2f7f2..d63ceed 100644 --- a/docs/examples/account/update-status.md +++ b/docs/examples/account/update-status.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setProject("") // Your project ID .setSession("") // The user session to authenticate with let account = Account(client) diff --git a/docs/examples/account/update-verification.md b/docs/examples/account/update-verification.md index 07c1131..5bae677 100644 --- a/docs/examples/account/update-verification.md +++ b/docs/examples/account/update-verification.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setProject("") // Your project ID .setSession("") // The user session to authenticate with let account = Account(client) diff --git a/docs/examples/avatars/get-browser.md b/docs/examples/avatars/get-browser.md index 3ac6c59..e2a79f9 100644 --- a/docs/examples/avatars/get-browser.md +++ b/docs/examples/avatars/get-browser.md @@ -3,7 +3,7 @@ import AppwriteEnums let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setProject("") // Your project ID .setSession("") // The user session to authenticate with let avatars = Avatars(client) diff --git a/docs/examples/avatars/get-credit-card.md b/docs/examples/avatars/get-credit-card.md index 306ceb8..741d341 100644 --- a/docs/examples/avatars/get-credit-card.md +++ b/docs/examples/avatars/get-credit-card.md @@ -3,7 +3,7 @@ import AppwriteEnums let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setProject("") // Your project ID .setSession("") // The user session to authenticate with let avatars = Avatars(client) diff --git a/docs/examples/avatars/get-favicon.md b/docs/examples/avatars/get-favicon.md index 9121f07..0ee7ba1 100644 --- a/docs/examples/avatars/get-favicon.md +++ b/docs/examples/avatars/get-favicon.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setProject("") // Your project ID .setSession("") // The user session to authenticate with let avatars = Avatars(client) diff --git a/docs/examples/avatars/get-flag.md b/docs/examples/avatars/get-flag.md index 3c9bd75..2bdd957 100644 --- a/docs/examples/avatars/get-flag.md +++ b/docs/examples/avatars/get-flag.md @@ -3,7 +3,7 @@ import AppwriteEnums let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setProject("") // Your project ID .setSession("") // The user session to authenticate with let avatars = Avatars(client) diff --git a/docs/examples/avatars/get-image.md b/docs/examples/avatars/get-image.md index e32b515..fecadf7 100644 --- a/docs/examples/avatars/get-image.md +++ b/docs/examples/avatars/get-image.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setProject("") // Your project ID .setSession("") // The user session to authenticate with let avatars = Avatars(client) diff --git a/docs/examples/avatars/get-initials.md b/docs/examples/avatars/get-initials.md index bba0538..d5e0905 100644 --- a/docs/examples/avatars/get-initials.md +++ b/docs/examples/avatars/get-initials.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setProject("") // Your project ID .setSession("") // The user session to authenticate with let avatars = Avatars(client) diff --git a/docs/examples/avatars/get-q-r.md b/docs/examples/avatars/get-q-r.md index d84500b..56f4b9c 100644 --- a/docs/examples/avatars/get-q-r.md +++ b/docs/examples/avatars/get-q-r.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setProject("") // Your project ID .setSession("") // The user session to authenticate with let avatars = Avatars(client) diff --git a/docs/examples/databases/create-boolean-attribute.md b/docs/examples/databases/create-boolean-attribute.md index ac737f7..0776be6 100644 --- a/docs/examples/databases/create-boolean-attribute.md +++ b/docs/examples/databases/create-boolean-attribute.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>") // Your secret API key + .setProject("") // Your project ID + .setKey("") // Your secret API key let databases = Databases(client) diff --git a/docs/examples/databases/create-collection.md b/docs/examples/databases/create-collection.md index 46984d4..79c2d59 100644 --- a/docs/examples/databases/create-collection.md +++ b/docs/examples/databases/create-collection.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>") // Your secret API key + .setProject("") // Your project ID + .setKey("") // Your secret API key let databases = Databases(client) diff --git a/docs/examples/databases/create-datetime-attribute.md b/docs/examples/databases/create-datetime-attribute.md index e88ecbc..b4f51d8 100644 --- a/docs/examples/databases/create-datetime-attribute.md +++ b/docs/examples/databases/create-datetime-attribute.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>") // Your secret API key + .setProject("") // Your project ID + .setKey("") // Your secret API key let databases = Databases(client) diff --git a/docs/examples/databases/create-document.md b/docs/examples/databases/create-document.md index 78ea97b..5f480a5 100644 --- a/docs/examples/databases/create-document.md +++ b/docs/examples/databases/create-document.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setProject("") // Your project ID .setSession("") // The user session to authenticate with let databases = Databases(client) diff --git a/docs/examples/databases/create-email-attribute.md b/docs/examples/databases/create-email-attribute.md index f0325b8..7c44f4d 100644 --- a/docs/examples/databases/create-email-attribute.md +++ b/docs/examples/databases/create-email-attribute.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>") // Your secret API key + .setProject("") // Your project ID + .setKey("") // Your secret API key let databases = Databases(client) diff --git a/docs/examples/databases/create-enum-attribute.md b/docs/examples/databases/create-enum-attribute.md index 3773e7e..b1d6808 100644 --- a/docs/examples/databases/create-enum-attribute.md +++ b/docs/examples/databases/create-enum-attribute.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>") // Your secret API key + .setProject("") // Your project ID + .setKey("") // Your secret API key let databases = Databases(client) diff --git a/docs/examples/databases/create-float-attribute.md b/docs/examples/databases/create-float-attribute.md index e303345..780e53b 100644 --- a/docs/examples/databases/create-float-attribute.md +++ b/docs/examples/databases/create-float-attribute.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>") // Your secret API key + .setProject("") // Your project ID + .setKey("") // Your secret API key let databases = Databases(client) diff --git a/docs/examples/databases/create-index.md b/docs/examples/databases/create-index.md index 6f8d526..bd1d26d 100644 --- a/docs/examples/databases/create-index.md +++ b/docs/examples/databases/create-index.md @@ -3,8 +3,8 @@ import AppwriteEnums let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>") // Your secret API key + .setProject("") // Your project ID + .setKey("") // Your secret API key let databases = Databases(client) diff --git a/docs/examples/databases/create-integer-attribute.md b/docs/examples/databases/create-integer-attribute.md index f51508c..03fea65 100644 --- a/docs/examples/databases/create-integer-attribute.md +++ b/docs/examples/databases/create-integer-attribute.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>") // Your secret API key + .setProject("") // Your project ID + .setKey("") // Your secret API key let databases = Databases(client) diff --git a/docs/examples/databases/create-ip-attribute.md b/docs/examples/databases/create-ip-attribute.md index 57283b5..4e601a3 100644 --- a/docs/examples/databases/create-ip-attribute.md +++ b/docs/examples/databases/create-ip-attribute.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>") // Your secret API key + .setProject("") // Your project ID + .setKey("") // Your secret API key let databases = Databases(client) diff --git a/docs/examples/databases/create-relationship-attribute.md b/docs/examples/databases/create-relationship-attribute.md index 8ed18bf..c85b477 100644 --- a/docs/examples/databases/create-relationship-attribute.md +++ b/docs/examples/databases/create-relationship-attribute.md @@ -3,8 +3,8 @@ import AppwriteEnums let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>") // Your secret API key + .setProject("") // Your project ID + .setKey("") // Your secret API key let databases = Databases(client) diff --git a/docs/examples/databases/create-string-attribute.md b/docs/examples/databases/create-string-attribute.md index eb6a42c..6a7ae27 100644 --- a/docs/examples/databases/create-string-attribute.md +++ b/docs/examples/databases/create-string-attribute.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>") // Your secret API key + .setProject("") // Your project ID + .setKey("") // Your secret API key let databases = Databases(client) diff --git a/docs/examples/databases/create-url-attribute.md b/docs/examples/databases/create-url-attribute.md index 79773fe..6d59fed 100644 --- a/docs/examples/databases/create-url-attribute.md +++ b/docs/examples/databases/create-url-attribute.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>") // Your secret API key + .setProject("") // Your project ID + .setKey("") // Your secret API key let databases = Databases(client) diff --git a/docs/examples/databases/create.md b/docs/examples/databases/create.md index 9ce32c4..82689d1 100644 --- a/docs/examples/databases/create.md +++ b/docs/examples/databases/create.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>") // Your secret API key + .setProject("") // Your project ID + .setKey("") // Your secret API key let databases = Databases(client) diff --git a/docs/examples/databases/delete-attribute.md b/docs/examples/databases/delete-attribute.md index b2eeb4a..7fb7c3a 100644 --- a/docs/examples/databases/delete-attribute.md +++ b/docs/examples/databases/delete-attribute.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>") // Your secret API key + .setProject("") // Your project ID + .setKey("") // Your secret API key let databases = Databases(client) diff --git a/docs/examples/databases/delete-collection.md b/docs/examples/databases/delete-collection.md index 987ecee..781e97c 100644 --- a/docs/examples/databases/delete-collection.md +++ b/docs/examples/databases/delete-collection.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>") // Your secret API key + .setProject("") // Your project ID + .setKey("") // Your secret API key let databases = Databases(client) diff --git a/docs/examples/databases/delete-document.md b/docs/examples/databases/delete-document.md index 38a1ae2..f934d5b 100644 --- a/docs/examples/databases/delete-document.md +++ b/docs/examples/databases/delete-document.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setProject("") // Your project ID .setSession("") // The user session to authenticate with let databases = Databases(client) diff --git a/docs/examples/databases/delete-index.md b/docs/examples/databases/delete-index.md index e07f1a9..f819d92 100644 --- a/docs/examples/databases/delete-index.md +++ b/docs/examples/databases/delete-index.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>") // Your secret API key + .setProject("") // Your project ID + .setKey("") // Your secret API key let databases = Databases(client) diff --git a/docs/examples/databases/delete.md b/docs/examples/databases/delete.md index 101fa35..8cb3f88 100644 --- a/docs/examples/databases/delete.md +++ b/docs/examples/databases/delete.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>") // Your secret API key + .setProject("") // Your project ID + .setKey("") // Your secret API key let databases = Databases(client) diff --git a/docs/examples/databases/get-attribute.md b/docs/examples/databases/get-attribute.md index 3395449..f22fd92 100644 --- a/docs/examples/databases/get-attribute.md +++ b/docs/examples/databases/get-attribute.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>") // Your secret API key + .setProject("") // Your project ID + .setKey("") // Your secret API key let databases = Databases(client) diff --git a/docs/examples/databases/get-collection.md b/docs/examples/databases/get-collection.md index f99d553..81b0bf2 100644 --- a/docs/examples/databases/get-collection.md +++ b/docs/examples/databases/get-collection.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>") // Your secret API key + .setProject("") // Your project ID + .setKey("") // Your secret API key let databases = Databases(client) diff --git a/docs/examples/databases/get-document.md b/docs/examples/databases/get-document.md index dee5699..206fddd 100644 --- a/docs/examples/databases/get-document.md +++ b/docs/examples/databases/get-document.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setProject("") // Your project ID .setSession("") // The user session to authenticate with let databases = Databases(client) diff --git a/docs/examples/databases/get-index.md b/docs/examples/databases/get-index.md index 1ab80c9..b2c1b30 100644 --- a/docs/examples/databases/get-index.md +++ b/docs/examples/databases/get-index.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>") // Your secret API key + .setProject("") // Your project ID + .setKey("") // Your secret API key let databases = Databases(client) diff --git a/docs/examples/databases/get.md b/docs/examples/databases/get.md index ecddbc2..37c1598 100644 --- a/docs/examples/databases/get.md +++ b/docs/examples/databases/get.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>") // Your secret API key + .setProject("") // Your project ID + .setKey("") // Your secret API key let databases = Databases(client) diff --git a/docs/examples/databases/list-attributes.md b/docs/examples/databases/list-attributes.md index 15393cb..356b13b 100644 --- a/docs/examples/databases/list-attributes.md +++ b/docs/examples/databases/list-attributes.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>") // Your secret API key + .setProject("") // Your project ID + .setKey("") // Your secret API key let databases = Databases(client) diff --git a/docs/examples/databases/list-collections.md b/docs/examples/databases/list-collections.md index 96f68b6..03db34f 100644 --- a/docs/examples/databases/list-collections.md +++ b/docs/examples/databases/list-collections.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>") // Your secret API key + .setProject("") // Your project ID + .setKey("") // Your secret API key let databases = Databases(client) diff --git a/docs/examples/databases/list-documents.md b/docs/examples/databases/list-documents.md index 8fc3698..11dc91d 100644 --- a/docs/examples/databases/list-documents.md +++ b/docs/examples/databases/list-documents.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setProject("") // Your project ID .setSession("") // The user session to authenticate with let databases = Databases(client) diff --git a/docs/examples/databases/list-indexes.md b/docs/examples/databases/list-indexes.md index cdfcca8..2f37a0b 100644 --- a/docs/examples/databases/list-indexes.md +++ b/docs/examples/databases/list-indexes.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>") // Your secret API key + .setProject("") // Your project ID + .setKey("") // Your secret API key let databases = Databases(client) diff --git a/docs/examples/databases/list.md b/docs/examples/databases/list.md index 8236f5d..e273676 100644 --- a/docs/examples/databases/list.md +++ b/docs/examples/databases/list.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>") // Your secret API key + .setProject("") // Your project ID + .setKey("") // Your secret API key let databases = Databases(client) diff --git a/docs/examples/databases/update-boolean-attribute.md b/docs/examples/databases/update-boolean-attribute.md index 354aadd..c22cccd 100644 --- a/docs/examples/databases/update-boolean-attribute.md +++ b/docs/examples/databases/update-boolean-attribute.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>") // Your secret API key + .setProject("") // Your project ID + .setKey("") // Your secret API key let databases = Databases(client) diff --git a/docs/examples/databases/update-collection.md b/docs/examples/databases/update-collection.md index 1d1d062..741d3c6 100644 --- a/docs/examples/databases/update-collection.md +++ b/docs/examples/databases/update-collection.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>") // Your secret API key + .setProject("") // Your project ID + .setKey("") // Your secret API key let databases = Databases(client) diff --git a/docs/examples/databases/update-datetime-attribute.md b/docs/examples/databases/update-datetime-attribute.md index 1bdcef6..fafcf40 100644 --- a/docs/examples/databases/update-datetime-attribute.md +++ b/docs/examples/databases/update-datetime-attribute.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>") // Your secret API key + .setProject("") // Your project ID + .setKey("") // Your secret API key let databases = Databases(client) diff --git a/docs/examples/databases/update-document.md b/docs/examples/databases/update-document.md index d00bf5d..67cfb96 100644 --- a/docs/examples/databases/update-document.md +++ b/docs/examples/databases/update-document.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setProject("") // Your project ID .setSession("") // The user session to authenticate with let databases = Databases(client) diff --git a/docs/examples/databases/update-email-attribute.md b/docs/examples/databases/update-email-attribute.md index 8cc4630..8a5c3ce 100644 --- a/docs/examples/databases/update-email-attribute.md +++ b/docs/examples/databases/update-email-attribute.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>") // Your secret API key + .setProject("") // Your project ID + .setKey("") // Your secret API key let databases = Databases(client) diff --git a/docs/examples/databases/update-enum-attribute.md b/docs/examples/databases/update-enum-attribute.md index ac9f1bd..1c43d84 100644 --- a/docs/examples/databases/update-enum-attribute.md +++ b/docs/examples/databases/update-enum-attribute.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>") // Your secret API key + .setProject("") // Your project ID + .setKey("") // Your secret API key let databases = Databases(client) diff --git a/docs/examples/databases/update-float-attribute.md b/docs/examples/databases/update-float-attribute.md index faee58b..d869c81 100644 --- a/docs/examples/databases/update-float-attribute.md +++ b/docs/examples/databases/update-float-attribute.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>") // Your secret API key + .setProject("") // Your project ID + .setKey("") // Your secret API key let databases = Databases(client) diff --git a/docs/examples/databases/update-integer-attribute.md b/docs/examples/databases/update-integer-attribute.md index a91d97d..08391b6 100644 --- a/docs/examples/databases/update-integer-attribute.md +++ b/docs/examples/databases/update-integer-attribute.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>") // Your secret API key + .setProject("") // Your project ID + .setKey("") // Your secret API key let databases = Databases(client) diff --git a/docs/examples/databases/update-ip-attribute.md b/docs/examples/databases/update-ip-attribute.md index 895700a..69eb799 100644 --- a/docs/examples/databases/update-ip-attribute.md +++ b/docs/examples/databases/update-ip-attribute.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>") // Your secret API key + .setProject("") // Your project ID + .setKey("") // Your secret API key let databases = Databases(client) diff --git a/docs/examples/databases/update-relationship-attribute.md b/docs/examples/databases/update-relationship-attribute.md index 7b4f399..31bd76d 100644 --- a/docs/examples/databases/update-relationship-attribute.md +++ b/docs/examples/databases/update-relationship-attribute.md @@ -3,8 +3,8 @@ import AppwriteEnums let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>") // Your secret API key + .setProject("") // Your project ID + .setKey("") // Your secret API key let databases = Databases(client) diff --git a/docs/examples/databases/update-string-attribute.md b/docs/examples/databases/update-string-attribute.md index 102e4b7..a7fb46f 100644 --- a/docs/examples/databases/update-string-attribute.md +++ b/docs/examples/databases/update-string-attribute.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>") // Your secret API key + .setProject("") // Your project ID + .setKey("") // Your secret API key let databases = Databases(client) diff --git a/docs/examples/databases/update-url-attribute.md b/docs/examples/databases/update-url-attribute.md index bc081e0..d008c93 100644 --- a/docs/examples/databases/update-url-attribute.md +++ b/docs/examples/databases/update-url-attribute.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>") // Your secret API key + .setProject("") // Your project ID + .setKey("") // Your secret API key let databases = Databases(client) diff --git a/docs/examples/databases/update.md b/docs/examples/databases/update.md index 3b49ba0..a03a74b 100644 --- a/docs/examples/databases/update.md +++ b/docs/examples/databases/update.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>") // Your secret API key + .setProject("") // Your project ID + .setKey("") // Your secret API key let databases = Databases(client) diff --git a/docs/examples/functions/create-build.md b/docs/examples/functions/create-build.md index bddaf6e..f67ac99 100644 --- a/docs/examples/functions/create-build.md +++ b/docs/examples/functions/create-build.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>") // Your secret API key + .setProject("") // Your project ID + .setKey("") // Your secret API key let functions = Functions(client) diff --git a/docs/examples/functions/create-deployment.md b/docs/examples/functions/create-deployment.md index ea2e8df..bcd10ae 100644 --- a/docs/examples/functions/create-deployment.md +++ b/docs/examples/functions/create-deployment.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>") // Your secret API key + .setProject("") // Your project ID + .setKey("") // Your secret API key let functions = Functions(client) diff --git a/docs/examples/functions/create-execution.md b/docs/examples/functions/create-execution.md index 9acfdea..560f1a9 100644 --- a/docs/examples/functions/create-execution.md +++ b/docs/examples/functions/create-execution.md @@ -3,7 +3,7 @@ import AppwriteEnums let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setProject("") // Your project ID .setSession("") // The user session to authenticate with let functions = Functions(client) diff --git a/docs/examples/functions/create-variable.md b/docs/examples/functions/create-variable.md index e1cd727..3af3220 100644 --- a/docs/examples/functions/create-variable.md +++ b/docs/examples/functions/create-variable.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>") // Your secret API key + .setProject("") // Your project ID + .setKey("") // Your secret API key let functions = Functions(client) diff --git a/docs/examples/functions/create.md b/docs/examples/functions/create.md index 8e2c1d7..fb614b5 100644 --- a/docs/examples/functions/create.md +++ b/docs/examples/functions/create.md @@ -3,8 +3,8 @@ import AppwriteEnums let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>") // Your secret API key + .setProject("") // Your project ID + .setKey("") // Your secret API key let functions = Functions(client) diff --git a/docs/examples/functions/delete-deployment.md b/docs/examples/functions/delete-deployment.md index 177cc5e..cf9315e 100644 --- a/docs/examples/functions/delete-deployment.md +++ b/docs/examples/functions/delete-deployment.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>") // Your secret API key + .setProject("") // Your project ID + .setKey("") // Your secret API key let functions = Functions(client) diff --git a/docs/examples/functions/delete-execution.md b/docs/examples/functions/delete-execution.md index 8d04d87..f6e13cd 100644 --- a/docs/examples/functions/delete-execution.md +++ b/docs/examples/functions/delete-execution.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>") // Your secret API key + .setProject("") // Your project ID + .setKey("") // Your secret API key let functions = Functions(client) diff --git a/docs/examples/functions/delete-variable.md b/docs/examples/functions/delete-variable.md index 5f31d46..7d09f11 100644 --- a/docs/examples/functions/delete-variable.md +++ b/docs/examples/functions/delete-variable.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>") // Your secret API key + .setProject("") // Your project ID + .setKey("") // Your secret API key let functions = Functions(client) diff --git a/docs/examples/functions/delete.md b/docs/examples/functions/delete.md index 1999a00..ff1d049 100644 --- a/docs/examples/functions/delete.md +++ b/docs/examples/functions/delete.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>") // Your secret API key + .setProject("") // Your project ID + .setKey("") // Your secret API key let functions = Functions(client) diff --git a/docs/examples/functions/get-deployment-download.md b/docs/examples/functions/get-deployment-download.md index 3d640a8..7db6c4c 100644 --- a/docs/examples/functions/get-deployment-download.md +++ b/docs/examples/functions/get-deployment-download.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setProject("") // Your project ID .setSession("") // The user session to authenticate with let functions = Functions(client) diff --git a/docs/examples/functions/get-deployment.md b/docs/examples/functions/get-deployment.md index a4ce8a7..438b667 100644 --- a/docs/examples/functions/get-deployment.md +++ b/docs/examples/functions/get-deployment.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>") // Your secret API key + .setProject("") // Your project ID + .setKey("") // Your secret API key let functions = Functions(client) diff --git a/docs/examples/functions/get-execution.md b/docs/examples/functions/get-execution.md index 8358745..0aa9d66 100644 --- a/docs/examples/functions/get-execution.md +++ b/docs/examples/functions/get-execution.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setProject("") // Your project ID .setSession("") // The user session to authenticate with let functions = Functions(client) diff --git a/docs/examples/functions/get-template.md b/docs/examples/functions/get-template.md index e4fa185..bc7a9a3 100644 --- a/docs/examples/functions/get-template.md +++ b/docs/examples/functions/get-template.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setProject("") // Your project ID let functions = Functions(client) diff --git a/docs/examples/functions/get-variable.md b/docs/examples/functions/get-variable.md index 25452ac..0832b41 100644 --- a/docs/examples/functions/get-variable.md +++ b/docs/examples/functions/get-variable.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>") // Your secret API key + .setProject("") // Your project ID + .setKey("") // Your secret API key let functions = Functions(client) diff --git a/docs/examples/functions/get.md b/docs/examples/functions/get.md index 27721b7..aa434c0 100644 --- a/docs/examples/functions/get.md +++ b/docs/examples/functions/get.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>") // Your secret API key + .setProject("") // Your project ID + .setKey("") // Your secret API key let functions = Functions(client) diff --git a/docs/examples/functions/list-deployments.md b/docs/examples/functions/list-deployments.md index 2f7c5e0..5f005f0 100644 --- a/docs/examples/functions/list-deployments.md +++ b/docs/examples/functions/list-deployments.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>") // Your secret API key + .setProject("") // Your project ID + .setKey("") // Your secret API key let functions = Functions(client) diff --git a/docs/examples/functions/list-executions.md b/docs/examples/functions/list-executions.md index ec12403..2c28d54 100644 --- a/docs/examples/functions/list-executions.md +++ b/docs/examples/functions/list-executions.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setProject("") // Your project ID .setSession("") // The user session to authenticate with let functions = Functions(client) diff --git a/docs/examples/functions/list-runtimes.md b/docs/examples/functions/list-runtimes.md index 8c75286..bad50b1 100644 --- a/docs/examples/functions/list-runtimes.md +++ b/docs/examples/functions/list-runtimes.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>") // Your secret API key + .setProject("") // Your project ID + .setKey("") // Your secret API key let functions = Functions(client) diff --git a/docs/examples/functions/list-specifications.md b/docs/examples/functions/list-specifications.md index 8708d38..0c9da2d 100644 --- a/docs/examples/functions/list-specifications.md +++ b/docs/examples/functions/list-specifications.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>") // Your secret API key + .setProject("") // Your project ID + .setKey("") // Your secret API key let functions = Functions(client) diff --git a/docs/examples/functions/list-templates.md b/docs/examples/functions/list-templates.md index d93beef..d0090ab 100644 --- a/docs/examples/functions/list-templates.md +++ b/docs/examples/functions/list-templates.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setProject("") // Your project ID let functions = Functions(client) diff --git a/docs/examples/functions/list-variables.md b/docs/examples/functions/list-variables.md index d82c9fd..67030b9 100644 --- a/docs/examples/functions/list-variables.md +++ b/docs/examples/functions/list-variables.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>") // Your secret API key + .setProject("") // Your project ID + .setKey("") // Your secret API key let functions = Functions(client) diff --git a/docs/examples/functions/list.md b/docs/examples/functions/list.md index 6f5a848..f6ed013 100644 --- a/docs/examples/functions/list.md +++ b/docs/examples/functions/list.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>") // Your secret API key + .setProject("") // Your project ID + .setKey("") // Your secret API key let functions = Functions(client) diff --git a/docs/examples/functions/update-deployment-build.md b/docs/examples/functions/update-deployment-build.md index 4c96a55..9003a02 100644 --- a/docs/examples/functions/update-deployment-build.md +++ b/docs/examples/functions/update-deployment-build.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>") // Your secret API key + .setProject("") // Your project ID + .setKey("") // Your secret API key let functions = Functions(client) diff --git a/docs/examples/functions/update-deployment.md b/docs/examples/functions/update-deployment.md index 7e28c63..9ae6ec4 100644 --- a/docs/examples/functions/update-deployment.md +++ b/docs/examples/functions/update-deployment.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>") // Your secret API key + .setProject("") // Your project ID + .setKey("") // Your secret API key let functions = Functions(client) diff --git a/docs/examples/functions/update-variable.md b/docs/examples/functions/update-variable.md index 8a72e38..6716985 100644 --- a/docs/examples/functions/update-variable.md +++ b/docs/examples/functions/update-variable.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>") // Your secret API key + .setProject("") // Your project ID + .setKey("") // Your secret API key let functions = Functions(client) diff --git a/docs/examples/functions/update.md b/docs/examples/functions/update.md index 4271775..dcc4ed6 100644 --- a/docs/examples/functions/update.md +++ b/docs/examples/functions/update.md @@ -3,8 +3,8 @@ import AppwriteEnums let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>") // Your secret API key + .setProject("") // Your project ID + .setKey("") // Your secret API key let functions = Functions(client) diff --git a/docs/examples/graphql/mutation.md b/docs/examples/graphql/mutation.md index 808526f..6d4f747 100644 --- a/docs/examples/graphql/mutation.md +++ b/docs/examples/graphql/mutation.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>") // Your secret API key + .setProject("") // Your project ID + .setKey("") // Your secret API key let graphql = Graphql(client) diff --git a/docs/examples/graphql/query.md b/docs/examples/graphql/query.md index a528957..4a10f57 100644 --- a/docs/examples/graphql/query.md +++ b/docs/examples/graphql/query.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>") // Your secret API key + .setProject("") // Your project ID + .setKey("") // Your secret API key let graphql = Graphql(client) diff --git a/docs/examples/health/get-antivirus.md b/docs/examples/health/get-antivirus.md index 5ff9d32..d45b719 100644 --- a/docs/examples/health/get-antivirus.md +++ b/docs/examples/health/get-antivirus.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>") // Your secret API key + .setProject("") // Your project ID + .setKey("") // Your secret API key let health = Health(client) diff --git a/docs/examples/health/get-cache.md b/docs/examples/health/get-cache.md index 74e304c..4d493c4 100644 --- a/docs/examples/health/get-cache.md +++ b/docs/examples/health/get-cache.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>") // Your secret API key + .setProject("") // Your project ID + .setKey("") // Your secret API key let health = Health(client) diff --git a/docs/examples/health/get-certificate.md b/docs/examples/health/get-certificate.md index 5fcb837..1d2d453 100644 --- a/docs/examples/health/get-certificate.md +++ b/docs/examples/health/get-certificate.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>") // Your secret API key + .setProject("") // Your project ID + .setKey("") // Your secret API key let health = Health(client) diff --git a/docs/examples/health/get-d-b.md b/docs/examples/health/get-d-b.md index e3b7e50..c7b5127 100644 --- a/docs/examples/health/get-d-b.md +++ b/docs/examples/health/get-d-b.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>") // Your secret API key + .setProject("") // Your project ID + .setKey("") // Your secret API key let health = Health(client) diff --git a/docs/examples/health/get-failed-jobs.md b/docs/examples/health/get-failed-jobs.md index 6727f0b..5120c07 100644 --- a/docs/examples/health/get-failed-jobs.md +++ b/docs/examples/health/get-failed-jobs.md @@ -3,8 +3,8 @@ import AppwriteEnums let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>") // Your secret API key + .setProject("") // Your project ID + .setKey("") // Your secret API key let health = Health(client) diff --git a/docs/examples/health/get-pub-sub.md b/docs/examples/health/get-pub-sub.md index ef2cd3a..561fc6b 100644 --- a/docs/examples/health/get-pub-sub.md +++ b/docs/examples/health/get-pub-sub.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>") // Your secret API key + .setProject("") // Your project ID + .setKey("") // Your secret API key let health = Health(client) diff --git a/docs/examples/health/get-queue-builds.md b/docs/examples/health/get-queue-builds.md index d583a7e..81b4fb2 100644 --- a/docs/examples/health/get-queue-builds.md +++ b/docs/examples/health/get-queue-builds.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>") // Your secret API key + .setProject("") // Your project ID + .setKey("") // Your secret API key let health = Health(client) diff --git a/docs/examples/health/get-queue-certificates.md b/docs/examples/health/get-queue-certificates.md index 80b933e..cecb88a 100644 --- a/docs/examples/health/get-queue-certificates.md +++ b/docs/examples/health/get-queue-certificates.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>") // Your secret API key + .setProject("") // Your project ID + .setKey("") // Your secret API key let health = Health(client) diff --git a/docs/examples/health/get-queue-databases.md b/docs/examples/health/get-queue-databases.md index b45ab17..b3fefc8 100644 --- a/docs/examples/health/get-queue-databases.md +++ b/docs/examples/health/get-queue-databases.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>") // Your secret API key + .setProject("") // Your project ID + .setKey("") // Your secret API key let health = Health(client) diff --git a/docs/examples/health/get-queue-deletes.md b/docs/examples/health/get-queue-deletes.md index 611700f..0d90387 100644 --- a/docs/examples/health/get-queue-deletes.md +++ b/docs/examples/health/get-queue-deletes.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>") // Your secret API key + .setProject("") // Your project ID + .setKey("") // Your secret API key let health = Health(client) diff --git a/docs/examples/health/get-queue-functions.md b/docs/examples/health/get-queue-functions.md index 6defa50..961cc62 100644 --- a/docs/examples/health/get-queue-functions.md +++ b/docs/examples/health/get-queue-functions.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>") // Your secret API key + .setProject("") // Your project ID + .setKey("") // Your secret API key let health = Health(client) diff --git a/docs/examples/health/get-queue-logs.md b/docs/examples/health/get-queue-logs.md index e09daf2..34d26ef 100644 --- a/docs/examples/health/get-queue-logs.md +++ b/docs/examples/health/get-queue-logs.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>") // Your secret API key + .setProject("") // Your project ID + .setKey("") // Your secret API key let health = Health(client) diff --git a/docs/examples/health/get-queue-mails.md b/docs/examples/health/get-queue-mails.md index 9e01f9a..f48a96d 100644 --- a/docs/examples/health/get-queue-mails.md +++ b/docs/examples/health/get-queue-mails.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>") // Your secret API key + .setProject("") // Your project ID + .setKey("") // Your secret API key let health = Health(client) diff --git a/docs/examples/health/get-queue-messaging.md b/docs/examples/health/get-queue-messaging.md index b8c053a..7a171bd 100644 --- a/docs/examples/health/get-queue-messaging.md +++ b/docs/examples/health/get-queue-messaging.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>") // Your secret API key + .setProject("") // Your project ID + .setKey("") // Your secret API key let health = Health(client) diff --git a/docs/examples/health/get-queue-migrations.md b/docs/examples/health/get-queue-migrations.md index 73a6e25..f36eb12 100644 --- a/docs/examples/health/get-queue-migrations.md +++ b/docs/examples/health/get-queue-migrations.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>") // Your secret API key + .setProject("") // Your project ID + .setKey("") // Your secret API key let health = Health(client) diff --git a/docs/examples/health/get-queue-usage-dump.md b/docs/examples/health/get-queue-usage-dump.md index b17cf47..df4c043 100644 --- a/docs/examples/health/get-queue-usage-dump.md +++ b/docs/examples/health/get-queue-usage-dump.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>") // Your secret API key + .setProject("") // Your project ID + .setKey("") // Your secret API key let health = Health(client) diff --git a/docs/examples/health/get-queue-usage.md b/docs/examples/health/get-queue-usage.md index ce37f40..b3bc88e 100644 --- a/docs/examples/health/get-queue-usage.md +++ b/docs/examples/health/get-queue-usage.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>") // Your secret API key + .setProject("") // Your project ID + .setKey("") // Your secret API key let health = Health(client) diff --git a/docs/examples/health/get-queue-webhooks.md b/docs/examples/health/get-queue-webhooks.md index f4ed9ec..25ed30f 100644 --- a/docs/examples/health/get-queue-webhooks.md +++ b/docs/examples/health/get-queue-webhooks.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>") // Your secret API key + .setProject("") // Your project ID + .setKey("") // Your secret API key let health = Health(client) diff --git a/docs/examples/health/get-queue.md b/docs/examples/health/get-queue.md index d368835..b7da587 100644 --- a/docs/examples/health/get-queue.md +++ b/docs/examples/health/get-queue.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>") // Your secret API key + .setProject("") // Your project ID + .setKey("") // Your secret API key let health = Health(client) diff --git a/docs/examples/health/get-storage-local.md b/docs/examples/health/get-storage-local.md index 4044ba2..4e85183 100644 --- a/docs/examples/health/get-storage-local.md +++ b/docs/examples/health/get-storage-local.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>") // Your secret API key + .setProject("") // Your project ID + .setKey("") // Your secret API key let health = Health(client) diff --git a/docs/examples/health/get-storage.md b/docs/examples/health/get-storage.md index 761aace..fbe116f 100644 --- a/docs/examples/health/get-storage.md +++ b/docs/examples/health/get-storage.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>") // Your secret API key + .setProject("") // Your project ID + .setKey("") // Your secret API key let health = Health(client) diff --git a/docs/examples/health/get-time.md b/docs/examples/health/get-time.md index af08562..02cca3f 100644 --- a/docs/examples/health/get-time.md +++ b/docs/examples/health/get-time.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>") // Your secret API key + .setProject("") // Your project ID + .setKey("") // Your secret API key let health = Health(client) diff --git a/docs/examples/health/get.md b/docs/examples/health/get.md index e63e18c..140b304 100644 --- a/docs/examples/health/get.md +++ b/docs/examples/health/get.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>") // Your secret API key + .setProject("") // Your project ID + .setKey("") // Your secret API key let health = Health(client) diff --git a/docs/examples/locale/get.md b/docs/examples/locale/get.md index b94af37..94121fd 100644 --- a/docs/examples/locale/get.md +++ b/docs/examples/locale/get.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setProject("") // Your project ID .setSession("") // The user session to authenticate with let locale = Locale(client) diff --git a/docs/examples/locale/list-codes.md b/docs/examples/locale/list-codes.md index 247f8f3..1f41799 100644 --- a/docs/examples/locale/list-codes.md +++ b/docs/examples/locale/list-codes.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setProject("") // Your project ID .setSession("") // The user session to authenticate with let locale = Locale(client) diff --git a/docs/examples/locale/list-continents.md b/docs/examples/locale/list-continents.md index 481a205..f46f3c0 100644 --- a/docs/examples/locale/list-continents.md +++ b/docs/examples/locale/list-continents.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setProject("") // Your project ID .setSession("") // The user session to authenticate with let locale = Locale(client) diff --git a/docs/examples/locale/list-countries-e-u.md b/docs/examples/locale/list-countries-e-u.md index 047877d..ee57e01 100644 --- a/docs/examples/locale/list-countries-e-u.md +++ b/docs/examples/locale/list-countries-e-u.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setProject("") // Your project ID .setSession("") // The user session to authenticate with let locale = Locale(client) diff --git a/docs/examples/locale/list-countries-phones.md b/docs/examples/locale/list-countries-phones.md index c7e182a..9263de6 100644 --- a/docs/examples/locale/list-countries-phones.md +++ b/docs/examples/locale/list-countries-phones.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setProject("") // Your project ID .setSession("") // The user session to authenticate with let locale = Locale(client) diff --git a/docs/examples/locale/list-countries.md b/docs/examples/locale/list-countries.md index e0ec084..d793492 100644 --- a/docs/examples/locale/list-countries.md +++ b/docs/examples/locale/list-countries.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setProject("") // Your project ID .setSession("") // The user session to authenticate with let locale = Locale(client) diff --git a/docs/examples/locale/list-currencies.md b/docs/examples/locale/list-currencies.md index 280909d..eb0ddf7 100644 --- a/docs/examples/locale/list-currencies.md +++ b/docs/examples/locale/list-currencies.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setProject("") // Your project ID .setSession("") // The user session to authenticate with let locale = Locale(client) diff --git a/docs/examples/locale/list-languages.md b/docs/examples/locale/list-languages.md index 1dcc6dd..19a70b2 100644 --- a/docs/examples/locale/list-languages.md +++ b/docs/examples/locale/list-languages.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setProject("") // Your project ID .setSession("") // The user session to authenticate with let locale = Locale(client) diff --git a/docs/examples/messaging/create-apns-provider.md b/docs/examples/messaging/create-apns-provider.md index f38b435..9bbb4da 100644 --- a/docs/examples/messaging/create-apns-provider.md +++ b/docs/examples/messaging/create-apns-provider.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>") // Your secret API key + .setProject("") // Your project ID + .setKey("") // Your secret API key let messaging = Messaging(client) diff --git a/docs/examples/messaging/create-email.md b/docs/examples/messaging/create-email.md index ede0a3b..655daea 100644 --- a/docs/examples/messaging/create-email.md +++ b/docs/examples/messaging/create-email.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>") // Your secret API key + .setProject("") // Your project ID + .setKey("") // Your secret API key let messaging = Messaging(client) diff --git a/docs/examples/messaging/create-fcm-provider.md b/docs/examples/messaging/create-fcm-provider.md index b4e8df3..b127946 100644 --- a/docs/examples/messaging/create-fcm-provider.md +++ b/docs/examples/messaging/create-fcm-provider.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>") // Your secret API key + .setProject("") // Your project ID + .setKey("") // Your secret API key let messaging = Messaging(client) diff --git a/docs/examples/messaging/create-mailgun-provider.md b/docs/examples/messaging/create-mailgun-provider.md index c5f958b..63fd5a1 100644 --- a/docs/examples/messaging/create-mailgun-provider.md +++ b/docs/examples/messaging/create-mailgun-provider.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>") // Your secret API key + .setProject("") // Your project ID + .setKey("") // Your secret API key let messaging = Messaging(client) diff --git a/docs/examples/messaging/create-msg91provider.md b/docs/examples/messaging/create-msg91provider.md index 8e39051..57cd54b 100644 --- a/docs/examples/messaging/create-msg91provider.md +++ b/docs/examples/messaging/create-msg91provider.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>") // Your secret API key + .setProject("") // Your project ID + .setKey("") // Your secret API key let messaging = Messaging(client) diff --git a/docs/examples/messaging/create-push.md b/docs/examples/messaging/create-push.md index 7aed2b5..dbc7bf0 100644 --- a/docs/examples/messaging/create-push.md +++ b/docs/examples/messaging/create-push.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>") // Your secret API key + .setProject("") // Your project ID + .setKey("") // Your secret API key let messaging = Messaging(client) diff --git a/docs/examples/messaging/create-sendgrid-provider.md b/docs/examples/messaging/create-sendgrid-provider.md index 22d1f05..e8b70b6 100644 --- a/docs/examples/messaging/create-sendgrid-provider.md +++ b/docs/examples/messaging/create-sendgrid-provider.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>") // Your secret API key + .setProject("") // Your project ID + .setKey("") // Your secret API key let messaging = Messaging(client) diff --git a/docs/examples/messaging/create-sms.md b/docs/examples/messaging/create-sms.md index 10936db..22ca198 100644 --- a/docs/examples/messaging/create-sms.md +++ b/docs/examples/messaging/create-sms.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>") // Your secret API key + .setProject("") // Your project ID + .setKey("") // Your secret API key let messaging = Messaging(client) diff --git a/docs/examples/messaging/create-smtp-provider.md b/docs/examples/messaging/create-smtp-provider.md index bd0d4c0..5eff641 100644 --- a/docs/examples/messaging/create-smtp-provider.md +++ b/docs/examples/messaging/create-smtp-provider.md @@ -3,8 +3,8 @@ import AppwriteEnums let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>") // Your secret API key + .setProject("") // Your project ID + .setKey("") // Your secret API key let messaging = Messaging(client) diff --git a/docs/examples/messaging/create-subscriber.md b/docs/examples/messaging/create-subscriber.md index 170a307..087ec0e 100644 --- a/docs/examples/messaging/create-subscriber.md +++ b/docs/examples/messaging/create-subscriber.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setJWT("<YOUR_JWT>") // Your secret JSON Web Token + .setProject("") // Your project ID + .setJWT("") // Your secret JSON Web Token let messaging = Messaging(client) diff --git a/docs/examples/messaging/create-telesign-provider.md b/docs/examples/messaging/create-telesign-provider.md index bc4ab89..b9beb15 100644 --- a/docs/examples/messaging/create-telesign-provider.md +++ b/docs/examples/messaging/create-telesign-provider.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>") // Your secret API key + .setProject("") // Your project ID + .setKey("") // Your secret API key let messaging = Messaging(client) diff --git a/docs/examples/messaging/create-textmagic-provider.md b/docs/examples/messaging/create-textmagic-provider.md index 735bd57..f1802d9 100644 --- a/docs/examples/messaging/create-textmagic-provider.md +++ b/docs/examples/messaging/create-textmagic-provider.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>") // Your secret API key + .setProject("") // Your project ID + .setKey("") // Your secret API key let messaging = Messaging(client) diff --git a/docs/examples/messaging/create-topic.md b/docs/examples/messaging/create-topic.md index f44aa65..14f2229 100644 --- a/docs/examples/messaging/create-topic.md +++ b/docs/examples/messaging/create-topic.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>") // Your secret API key + .setProject("") // Your project ID + .setKey("") // Your secret API key let messaging = Messaging(client) diff --git a/docs/examples/messaging/create-twilio-provider.md b/docs/examples/messaging/create-twilio-provider.md index 8a3594d..f0f0d6e 100644 --- a/docs/examples/messaging/create-twilio-provider.md +++ b/docs/examples/messaging/create-twilio-provider.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>") // Your secret API key + .setProject("") // Your project ID + .setKey("") // Your secret API key let messaging = Messaging(client) diff --git a/docs/examples/messaging/create-vonage-provider.md b/docs/examples/messaging/create-vonage-provider.md index 0a932e5..4e683df 100644 --- a/docs/examples/messaging/create-vonage-provider.md +++ b/docs/examples/messaging/create-vonage-provider.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>") // Your secret API key + .setProject("") // Your project ID + .setKey("") // Your secret API key let messaging = Messaging(client) diff --git a/docs/examples/messaging/delete-provider.md b/docs/examples/messaging/delete-provider.md index 2a8f049..3652609 100644 --- a/docs/examples/messaging/delete-provider.md +++ b/docs/examples/messaging/delete-provider.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>") // Your secret API key + .setProject("") // Your project ID + .setKey("") // Your secret API key let messaging = Messaging(client) diff --git a/docs/examples/messaging/delete-subscriber.md b/docs/examples/messaging/delete-subscriber.md index ea1f546..b083fc4 100644 --- a/docs/examples/messaging/delete-subscriber.md +++ b/docs/examples/messaging/delete-subscriber.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setJWT("<YOUR_JWT>") // Your secret JSON Web Token + .setProject("") // Your project ID + .setJWT("") // Your secret JSON Web Token let messaging = Messaging(client) diff --git a/docs/examples/messaging/delete-topic.md b/docs/examples/messaging/delete-topic.md index 76c7c7b..1de4126 100644 --- a/docs/examples/messaging/delete-topic.md +++ b/docs/examples/messaging/delete-topic.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>") // Your secret API key + .setProject("") // Your project ID + .setKey("") // Your secret API key let messaging = Messaging(client) diff --git a/docs/examples/messaging/delete.md b/docs/examples/messaging/delete.md index e94f4b9..2e40780 100644 --- a/docs/examples/messaging/delete.md +++ b/docs/examples/messaging/delete.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>") // Your secret API key + .setProject("") // Your project ID + .setKey("") // Your secret API key let messaging = Messaging(client) diff --git a/docs/examples/messaging/get-message.md b/docs/examples/messaging/get-message.md index 27256d8..5db5f7d 100644 --- a/docs/examples/messaging/get-message.md +++ b/docs/examples/messaging/get-message.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>") // Your secret API key + .setProject("") // Your project ID + .setKey("") // Your secret API key let messaging = Messaging(client) diff --git a/docs/examples/messaging/get-provider.md b/docs/examples/messaging/get-provider.md index 7647290..b5a8156 100644 --- a/docs/examples/messaging/get-provider.md +++ b/docs/examples/messaging/get-provider.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>") // Your secret API key + .setProject("") // Your project ID + .setKey("") // Your secret API key let messaging = Messaging(client) diff --git a/docs/examples/messaging/get-subscriber.md b/docs/examples/messaging/get-subscriber.md index ebccc35..ac4d289 100644 --- a/docs/examples/messaging/get-subscriber.md +++ b/docs/examples/messaging/get-subscriber.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>") // Your secret API key + .setProject("") // Your project ID + .setKey("") // Your secret API key let messaging = Messaging(client) diff --git a/docs/examples/messaging/get-topic.md b/docs/examples/messaging/get-topic.md index 421023c..3d88371 100644 --- a/docs/examples/messaging/get-topic.md +++ b/docs/examples/messaging/get-topic.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>") // Your secret API key + .setProject("") // Your project ID + .setKey("") // Your secret API key let messaging = Messaging(client) diff --git a/docs/examples/messaging/list-message-logs.md b/docs/examples/messaging/list-message-logs.md index 61d2cec..c58ef45 100644 --- a/docs/examples/messaging/list-message-logs.md +++ b/docs/examples/messaging/list-message-logs.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>") // Your secret API key + .setProject("") // Your project ID + .setKey("") // Your secret API key let messaging = Messaging(client) diff --git a/docs/examples/messaging/list-messages.md b/docs/examples/messaging/list-messages.md index 8912603..bfa9222 100644 --- a/docs/examples/messaging/list-messages.md +++ b/docs/examples/messaging/list-messages.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>") // Your secret API key + .setProject("") // Your project ID + .setKey("") // Your secret API key let messaging = Messaging(client) diff --git a/docs/examples/messaging/list-provider-logs.md b/docs/examples/messaging/list-provider-logs.md index 2ad9cd7..55f0d1f 100644 --- a/docs/examples/messaging/list-provider-logs.md +++ b/docs/examples/messaging/list-provider-logs.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>") // Your secret API key + .setProject("") // Your project ID + .setKey("") // Your secret API key let messaging = Messaging(client) diff --git a/docs/examples/messaging/list-providers.md b/docs/examples/messaging/list-providers.md index 0bce1e7..fbb5803 100644 --- a/docs/examples/messaging/list-providers.md +++ b/docs/examples/messaging/list-providers.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>") // Your secret API key + .setProject("") // Your project ID + .setKey("") // Your secret API key let messaging = Messaging(client) diff --git a/docs/examples/messaging/list-subscriber-logs.md b/docs/examples/messaging/list-subscriber-logs.md index 78dea44..a83cb60 100644 --- a/docs/examples/messaging/list-subscriber-logs.md +++ b/docs/examples/messaging/list-subscriber-logs.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>") // Your secret API key + .setProject("") // Your project ID + .setKey("") // Your secret API key let messaging = Messaging(client) diff --git a/docs/examples/messaging/list-subscribers.md b/docs/examples/messaging/list-subscribers.md index 35b3daa..ded4fdf 100644 --- a/docs/examples/messaging/list-subscribers.md +++ b/docs/examples/messaging/list-subscribers.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>") // Your secret API key + .setProject("") // Your project ID + .setKey("") // Your secret API key let messaging = Messaging(client) diff --git a/docs/examples/messaging/list-targets.md b/docs/examples/messaging/list-targets.md index e469da3..00219f1 100644 --- a/docs/examples/messaging/list-targets.md +++ b/docs/examples/messaging/list-targets.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>") // Your secret API key + .setProject("") // Your project ID + .setKey("") // Your secret API key let messaging = Messaging(client) diff --git a/docs/examples/messaging/list-topic-logs.md b/docs/examples/messaging/list-topic-logs.md index c8d13bf..68f121c 100644 --- a/docs/examples/messaging/list-topic-logs.md +++ b/docs/examples/messaging/list-topic-logs.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>") // Your secret API key + .setProject("") // Your project ID + .setKey("") // Your secret API key let messaging = Messaging(client) diff --git a/docs/examples/messaging/list-topics.md b/docs/examples/messaging/list-topics.md index 3a6ba4c..617b13c 100644 --- a/docs/examples/messaging/list-topics.md +++ b/docs/examples/messaging/list-topics.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>") // Your secret API key + .setProject("") // Your project ID + .setKey("") // Your secret API key let messaging = Messaging(client) diff --git a/docs/examples/messaging/update-apns-provider.md b/docs/examples/messaging/update-apns-provider.md index 7202530..012e91e 100644 --- a/docs/examples/messaging/update-apns-provider.md +++ b/docs/examples/messaging/update-apns-provider.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>") // Your secret API key + .setProject("") // Your project ID + .setKey("") // Your secret API key let messaging = Messaging(client) diff --git a/docs/examples/messaging/update-email.md b/docs/examples/messaging/update-email.md index e27c826..e925164 100644 --- a/docs/examples/messaging/update-email.md +++ b/docs/examples/messaging/update-email.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>") // Your secret API key + .setProject("") // Your project ID + .setKey("") // Your secret API key let messaging = Messaging(client) diff --git a/docs/examples/messaging/update-fcm-provider.md b/docs/examples/messaging/update-fcm-provider.md index b62ba88..60a0ce4 100644 --- a/docs/examples/messaging/update-fcm-provider.md +++ b/docs/examples/messaging/update-fcm-provider.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>") // Your secret API key + .setProject("") // Your project ID + .setKey("") // Your secret API key let messaging = Messaging(client) diff --git a/docs/examples/messaging/update-mailgun-provider.md b/docs/examples/messaging/update-mailgun-provider.md index d684a96..bc38526 100644 --- a/docs/examples/messaging/update-mailgun-provider.md +++ b/docs/examples/messaging/update-mailgun-provider.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>") // Your secret API key + .setProject("") // Your project ID + .setKey("") // Your secret API key let messaging = Messaging(client) diff --git a/docs/examples/messaging/update-msg91provider.md b/docs/examples/messaging/update-msg91provider.md index aac6942..3818b7a 100644 --- a/docs/examples/messaging/update-msg91provider.md +++ b/docs/examples/messaging/update-msg91provider.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>") // Your secret API key + .setProject("") // Your project ID + .setKey("") // Your secret API key let messaging = Messaging(client) diff --git a/docs/examples/messaging/update-push.md b/docs/examples/messaging/update-push.md index c793143..40ce34b 100644 --- a/docs/examples/messaging/update-push.md +++ b/docs/examples/messaging/update-push.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>") // Your secret API key + .setProject("") // Your project ID + .setKey("") // Your secret API key let messaging = Messaging(client) diff --git a/docs/examples/messaging/update-sendgrid-provider.md b/docs/examples/messaging/update-sendgrid-provider.md index 811fb05..af950c7 100644 --- a/docs/examples/messaging/update-sendgrid-provider.md +++ b/docs/examples/messaging/update-sendgrid-provider.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>") // Your secret API key + .setProject("") // Your project ID + .setKey("") // Your secret API key let messaging = Messaging(client) diff --git a/docs/examples/messaging/update-sms.md b/docs/examples/messaging/update-sms.md index db1262e..8f44767 100644 --- a/docs/examples/messaging/update-sms.md +++ b/docs/examples/messaging/update-sms.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>") // Your secret API key + .setProject("") // Your project ID + .setKey("") // Your secret API key let messaging = Messaging(client) diff --git a/docs/examples/messaging/update-smtp-provider.md b/docs/examples/messaging/update-smtp-provider.md index 98f7a21..95db505 100644 --- a/docs/examples/messaging/update-smtp-provider.md +++ b/docs/examples/messaging/update-smtp-provider.md @@ -3,8 +3,8 @@ import AppwriteEnums let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>") // Your secret API key + .setProject("") // Your project ID + .setKey("") // Your secret API key let messaging = Messaging(client) diff --git a/docs/examples/messaging/update-telesign-provider.md b/docs/examples/messaging/update-telesign-provider.md index cc3f0ea..0d3279c 100644 --- a/docs/examples/messaging/update-telesign-provider.md +++ b/docs/examples/messaging/update-telesign-provider.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>") // Your secret API key + .setProject("") // Your project ID + .setKey("") // Your secret API key let messaging = Messaging(client) diff --git a/docs/examples/messaging/update-textmagic-provider.md b/docs/examples/messaging/update-textmagic-provider.md index 68961c4..738d27d 100644 --- a/docs/examples/messaging/update-textmagic-provider.md +++ b/docs/examples/messaging/update-textmagic-provider.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>") // Your secret API key + .setProject("") // Your project ID + .setKey("") // Your secret API key let messaging = Messaging(client) diff --git a/docs/examples/messaging/update-topic.md b/docs/examples/messaging/update-topic.md index 5abbf7a..ad5edd1 100644 --- a/docs/examples/messaging/update-topic.md +++ b/docs/examples/messaging/update-topic.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>") // Your secret API key + .setProject("") // Your project ID + .setKey("") // Your secret API key let messaging = Messaging(client) diff --git a/docs/examples/messaging/update-twilio-provider.md b/docs/examples/messaging/update-twilio-provider.md index a48f18c..6320665 100644 --- a/docs/examples/messaging/update-twilio-provider.md +++ b/docs/examples/messaging/update-twilio-provider.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>") // Your secret API key + .setProject("") // Your project ID + .setKey("") // Your secret API key let messaging = Messaging(client) diff --git a/docs/examples/messaging/update-vonage-provider.md b/docs/examples/messaging/update-vonage-provider.md index 1c8e47c..ffdbe95 100644 --- a/docs/examples/messaging/update-vonage-provider.md +++ b/docs/examples/messaging/update-vonage-provider.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>") // Your secret API key + .setProject("") // Your project ID + .setKey("") // Your secret API key let messaging = Messaging(client) diff --git a/docs/examples/storage/create-bucket.md b/docs/examples/storage/create-bucket.md index 7c934ec..4ebbdf8 100644 --- a/docs/examples/storage/create-bucket.md +++ b/docs/examples/storage/create-bucket.md @@ -3,8 +3,8 @@ import AppwriteEnums let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>") // Your secret API key + .setProject("") // Your project ID + .setKey("") // Your secret API key let storage = Storage(client) diff --git a/docs/examples/storage/create-file.md b/docs/examples/storage/create-file.md index 7ce485a..0716cf7 100644 --- a/docs/examples/storage/create-file.md +++ b/docs/examples/storage/create-file.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setProject("") // Your project ID .setSession("") // The user session to authenticate with let storage = Storage(client) diff --git a/docs/examples/storage/delete-bucket.md b/docs/examples/storage/delete-bucket.md index e85ce3b..56c7d3e 100644 --- a/docs/examples/storage/delete-bucket.md +++ b/docs/examples/storage/delete-bucket.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>") // Your secret API key + .setProject("") // Your project ID + .setKey("") // Your secret API key let storage = Storage(client) diff --git a/docs/examples/storage/delete-file.md b/docs/examples/storage/delete-file.md index 8a9ceee..35dca5e 100644 --- a/docs/examples/storage/delete-file.md +++ b/docs/examples/storage/delete-file.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setProject("") // Your project ID .setSession("") // The user session to authenticate with let storage = Storage(client) diff --git a/docs/examples/storage/get-bucket.md b/docs/examples/storage/get-bucket.md index 4e78e32..e33af5c 100644 --- a/docs/examples/storage/get-bucket.md +++ b/docs/examples/storage/get-bucket.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>") // Your secret API key + .setProject("") // Your project ID + .setKey("") // Your secret API key let storage = Storage(client) diff --git a/docs/examples/storage/get-file-download.md b/docs/examples/storage/get-file-download.md index be3db0c..40607d0 100644 --- a/docs/examples/storage/get-file-download.md +++ b/docs/examples/storage/get-file-download.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setProject("") // Your project ID .setSession("") // The user session to authenticate with let storage = Storage(client) diff --git a/docs/examples/storage/get-file-preview.md b/docs/examples/storage/get-file-preview.md index cab3fc6..e337209 100644 --- a/docs/examples/storage/get-file-preview.md +++ b/docs/examples/storage/get-file-preview.md @@ -3,7 +3,7 @@ import AppwriteEnums let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setProject("") // Your project ID .setSession("") // The user session to authenticate with let storage = Storage(client) diff --git a/docs/examples/storage/get-file-view.md b/docs/examples/storage/get-file-view.md index d1275a7..0c88e15 100644 --- a/docs/examples/storage/get-file-view.md +++ b/docs/examples/storage/get-file-view.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setProject("") // Your project ID .setSession("") // The user session to authenticate with let storage = Storage(client) diff --git a/docs/examples/storage/get-file.md b/docs/examples/storage/get-file.md index 1f70f49..a0c997c 100644 --- a/docs/examples/storage/get-file.md +++ b/docs/examples/storage/get-file.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setProject("") // Your project ID .setSession("") // The user session to authenticate with let storage = Storage(client) diff --git a/docs/examples/storage/list-buckets.md b/docs/examples/storage/list-buckets.md index 9fb0b4e..2329b15 100644 --- a/docs/examples/storage/list-buckets.md +++ b/docs/examples/storage/list-buckets.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>") // Your secret API key + .setProject("") // Your project ID + .setKey("") // Your secret API key let storage = Storage(client) diff --git a/docs/examples/storage/list-files.md b/docs/examples/storage/list-files.md index cb415b0..546bd1c 100644 --- a/docs/examples/storage/list-files.md +++ b/docs/examples/storage/list-files.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setProject("") // Your project ID .setSession("") // The user session to authenticate with let storage = Storage(client) diff --git a/docs/examples/storage/update-bucket.md b/docs/examples/storage/update-bucket.md index adb1c35..4122d1f 100644 --- a/docs/examples/storage/update-bucket.md +++ b/docs/examples/storage/update-bucket.md @@ -3,8 +3,8 @@ import AppwriteEnums let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>") // Your secret API key + .setProject("") // Your project ID + .setKey("") // Your secret API key let storage = Storage(client) diff --git a/docs/examples/storage/update-file.md b/docs/examples/storage/update-file.md index 0685099..ca3fc2c 100644 --- a/docs/examples/storage/update-file.md +++ b/docs/examples/storage/update-file.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setProject("") // Your project ID .setSession("") // The user session to authenticate with let storage = Storage(client) diff --git a/docs/examples/teams/create-membership.md b/docs/examples/teams/create-membership.md index f4d7942..5c86f2d 100644 --- a/docs/examples/teams/create-membership.md +++ b/docs/examples/teams/create-membership.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setProject("") // Your project ID .setSession("") // The user session to authenticate with let teams = Teams(client) diff --git a/docs/examples/teams/create.md b/docs/examples/teams/create.md index a3e2249..2533c27 100644 --- a/docs/examples/teams/create.md +++ b/docs/examples/teams/create.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setProject("") // Your project ID .setSession("") // The user session to authenticate with let teams = Teams(client) diff --git a/docs/examples/teams/delete-membership.md b/docs/examples/teams/delete-membership.md index dac308b..e260b01 100644 --- a/docs/examples/teams/delete-membership.md +++ b/docs/examples/teams/delete-membership.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setProject("") // Your project ID .setSession("") // The user session to authenticate with let teams = Teams(client) diff --git a/docs/examples/teams/delete.md b/docs/examples/teams/delete.md index 0014ac0..b9fbcbe 100644 --- a/docs/examples/teams/delete.md +++ b/docs/examples/teams/delete.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setProject("") // Your project ID .setSession("") // The user session to authenticate with let teams = Teams(client) diff --git a/docs/examples/teams/get-membership.md b/docs/examples/teams/get-membership.md index 6d9627f..cce480c 100644 --- a/docs/examples/teams/get-membership.md +++ b/docs/examples/teams/get-membership.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setProject("") // Your project ID .setSession("") // The user session to authenticate with let teams = Teams(client) diff --git a/docs/examples/teams/get-prefs.md b/docs/examples/teams/get-prefs.md index 00d2c94..9ec230d 100644 --- a/docs/examples/teams/get-prefs.md +++ b/docs/examples/teams/get-prefs.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setProject("") // Your project ID .setSession("") // The user session to authenticate with let teams = Teams(client) diff --git a/docs/examples/teams/get.md b/docs/examples/teams/get.md index 14da194..8dce2c1 100644 --- a/docs/examples/teams/get.md +++ b/docs/examples/teams/get.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setProject("") // Your project ID .setSession("") // The user session to authenticate with let teams = Teams(client) diff --git a/docs/examples/teams/list-memberships.md b/docs/examples/teams/list-memberships.md index 14268f9..08b3235 100644 --- a/docs/examples/teams/list-memberships.md +++ b/docs/examples/teams/list-memberships.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setProject("") // Your project ID .setSession("") // The user session to authenticate with let teams = Teams(client) diff --git a/docs/examples/teams/list.md b/docs/examples/teams/list.md index c0ab352..8b6d0a1 100644 --- a/docs/examples/teams/list.md +++ b/docs/examples/teams/list.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setProject("") // Your project ID .setSession("") // The user session to authenticate with let teams = Teams(client) diff --git a/docs/examples/teams/update-membership-status.md b/docs/examples/teams/update-membership-status.md index c6ea959..1ae6d6e 100644 --- a/docs/examples/teams/update-membership-status.md +++ b/docs/examples/teams/update-membership-status.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setProject("") // Your project ID .setSession("") // The user session to authenticate with let teams = Teams(client) diff --git a/docs/examples/teams/update-membership.md b/docs/examples/teams/update-membership.md index 2342740..92b7474 100644 --- a/docs/examples/teams/update-membership.md +++ b/docs/examples/teams/update-membership.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setProject("") // Your project ID .setSession("") // The user session to authenticate with let teams = Teams(client) diff --git a/docs/examples/teams/update-name.md b/docs/examples/teams/update-name.md index 450884b..bc9731b 100644 --- a/docs/examples/teams/update-name.md +++ b/docs/examples/teams/update-name.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setProject("") // Your project ID .setSession("") // The user session to authenticate with let teams = Teams(client) diff --git a/docs/examples/teams/update-prefs.md b/docs/examples/teams/update-prefs.md index 4f5e1d1..b86e937 100644 --- a/docs/examples/teams/update-prefs.md +++ b/docs/examples/teams/update-prefs.md @@ -2,7 +2,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID + .setProject("") // Your project ID .setSession("") // The user session to authenticate with let teams = Teams(client) diff --git a/docs/examples/users/create-argon2user.md b/docs/examples/users/create-argon2user.md index af9bc4b..6f584e4 100644 --- a/docs/examples/users/create-argon2user.md +++ b/docs/examples/users/create-argon2user.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>") // Your secret API key + .setProject("") // Your project ID + .setKey("") // Your secret API key let users = Users(client) diff --git a/docs/examples/users/create-bcrypt-user.md b/docs/examples/users/create-bcrypt-user.md index fa65ed9..cd0960f 100644 --- a/docs/examples/users/create-bcrypt-user.md +++ b/docs/examples/users/create-bcrypt-user.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>") // Your secret API key + .setProject("") // Your project ID + .setKey("") // Your secret API key let users = Users(client) diff --git a/docs/examples/users/create-j-w-t.md b/docs/examples/users/create-j-w-t.md index 4bb01a7..77ef4da 100644 --- a/docs/examples/users/create-j-w-t.md +++ b/docs/examples/users/create-j-w-t.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>") // Your secret API key + .setProject("") // Your project ID + .setKey("") // Your secret API key let users = Users(client) diff --git a/docs/examples/users/create-m-d5user.md b/docs/examples/users/create-m-d5user.md index 7dac068..a305f6a 100644 --- a/docs/examples/users/create-m-d5user.md +++ b/docs/examples/users/create-m-d5user.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>") // Your secret API key + .setProject("") // Your project ID + .setKey("") // Your secret API key let users = Users(client) diff --git a/docs/examples/users/create-mfa-recovery-codes.md b/docs/examples/users/create-mfa-recovery-codes.md index d525d6a..cb25d43 100644 --- a/docs/examples/users/create-mfa-recovery-codes.md +++ b/docs/examples/users/create-mfa-recovery-codes.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>") // Your secret API key + .setProject("") // Your project ID + .setKey("") // Your secret API key let users = Users(client) diff --git a/docs/examples/users/create-p-h-pass-user.md b/docs/examples/users/create-p-h-pass-user.md index 1c9f2dc..5a95af7 100644 --- a/docs/examples/users/create-p-h-pass-user.md +++ b/docs/examples/users/create-p-h-pass-user.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>") // Your secret API key + .setProject("") // Your project ID + .setKey("") // Your secret API key let users = Users(client) diff --git a/docs/examples/users/create-s-h-a-user.md b/docs/examples/users/create-s-h-a-user.md index e05f420..70d6f28 100644 --- a/docs/examples/users/create-s-h-a-user.md +++ b/docs/examples/users/create-s-h-a-user.md @@ -3,8 +3,8 @@ import AppwriteEnums let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>") // Your secret API key + .setProject("") // Your project ID + .setKey("") // Your secret API key let users = Users(client) diff --git a/docs/examples/users/create-scrypt-modified-user.md b/docs/examples/users/create-scrypt-modified-user.md index d994e8a..6270913 100644 --- a/docs/examples/users/create-scrypt-modified-user.md +++ b/docs/examples/users/create-scrypt-modified-user.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>") // Your secret API key + .setProject("") // Your project ID + .setKey("") // Your secret API key let users = Users(client) diff --git a/docs/examples/users/create-scrypt-user.md b/docs/examples/users/create-scrypt-user.md index 1279031..41a0865 100644 --- a/docs/examples/users/create-scrypt-user.md +++ b/docs/examples/users/create-scrypt-user.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>") // Your secret API key + .setProject("") // Your project ID + .setKey("") // Your secret API key let users = Users(client) diff --git a/docs/examples/users/create-session.md b/docs/examples/users/create-session.md index f27717c..764d4d8 100644 --- a/docs/examples/users/create-session.md +++ b/docs/examples/users/create-session.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>") // Your secret API key + .setProject("") // Your project ID + .setKey("") // Your secret API key let users = Users(client) diff --git a/docs/examples/users/create-target.md b/docs/examples/users/create-target.md index 9eaf28d..f6bc443 100644 --- a/docs/examples/users/create-target.md +++ b/docs/examples/users/create-target.md @@ -3,8 +3,8 @@ import AppwriteEnums let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>") // Your secret API key + .setProject("") // Your project ID + .setKey("") // Your secret API key let users = Users(client) diff --git a/docs/examples/users/create-token.md b/docs/examples/users/create-token.md index bc5691b..0d8c363 100644 --- a/docs/examples/users/create-token.md +++ b/docs/examples/users/create-token.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>") // Your secret API key + .setProject("") // Your project ID + .setKey("") // Your secret API key let users = Users(client) diff --git a/docs/examples/users/create.md b/docs/examples/users/create.md index 4bd7474..8c07a78 100644 --- a/docs/examples/users/create.md +++ b/docs/examples/users/create.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>") // Your secret API key + .setProject("") // Your project ID + .setKey("") // Your secret API key let users = Users(client) diff --git a/docs/examples/users/delete-identity.md b/docs/examples/users/delete-identity.md index 3003a4f..c5bf2b3 100644 --- a/docs/examples/users/delete-identity.md +++ b/docs/examples/users/delete-identity.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>") // Your secret API key + .setProject("") // Your project ID + .setKey("") // Your secret API key let users = Users(client) diff --git a/docs/examples/users/delete-mfa-authenticator.md b/docs/examples/users/delete-mfa-authenticator.md index b96ce46..902d0c9 100644 --- a/docs/examples/users/delete-mfa-authenticator.md +++ b/docs/examples/users/delete-mfa-authenticator.md @@ -3,8 +3,8 @@ import AppwriteEnums let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>") // Your secret API key + .setProject("") // Your project ID + .setKey("") // Your secret API key let users = Users(client) diff --git a/docs/examples/users/delete-session.md b/docs/examples/users/delete-session.md index f9e4856..3f191a2 100644 --- a/docs/examples/users/delete-session.md +++ b/docs/examples/users/delete-session.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>") // Your secret API key + .setProject("") // Your project ID + .setKey("") // Your secret API key let users = Users(client) diff --git a/docs/examples/users/delete-sessions.md b/docs/examples/users/delete-sessions.md index 87a73d5..6c4e8bf 100644 --- a/docs/examples/users/delete-sessions.md +++ b/docs/examples/users/delete-sessions.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>") // Your secret API key + .setProject("") // Your project ID + .setKey("") // Your secret API key let users = Users(client) diff --git a/docs/examples/users/delete-target.md b/docs/examples/users/delete-target.md index f628f39..274bb60 100644 --- a/docs/examples/users/delete-target.md +++ b/docs/examples/users/delete-target.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>") // Your secret API key + .setProject("") // Your project ID + .setKey("") // Your secret API key let users = Users(client) diff --git a/docs/examples/users/delete.md b/docs/examples/users/delete.md index 76aabd1..2b28a98 100644 --- a/docs/examples/users/delete.md +++ b/docs/examples/users/delete.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>") // Your secret API key + .setProject("") // Your project ID + .setKey("") // Your secret API key let users = Users(client) diff --git a/docs/examples/users/get-mfa-recovery-codes.md b/docs/examples/users/get-mfa-recovery-codes.md index db8a01d..dc7f471 100644 --- a/docs/examples/users/get-mfa-recovery-codes.md +++ b/docs/examples/users/get-mfa-recovery-codes.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>") // Your secret API key + .setProject("") // Your project ID + .setKey("") // Your secret API key let users = Users(client) diff --git a/docs/examples/users/get-prefs.md b/docs/examples/users/get-prefs.md index 732a00b..aec033a 100644 --- a/docs/examples/users/get-prefs.md +++ b/docs/examples/users/get-prefs.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>") // Your secret API key + .setProject("") // Your project ID + .setKey("") // Your secret API key let users = Users(client) diff --git a/docs/examples/users/get-target.md b/docs/examples/users/get-target.md index 8217a3e..d675381 100644 --- a/docs/examples/users/get-target.md +++ b/docs/examples/users/get-target.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>") // Your secret API key + .setProject("") // Your project ID + .setKey("") // Your secret API key let users = Users(client) diff --git a/docs/examples/users/get.md b/docs/examples/users/get.md index 221d3c9..095c84c 100644 --- a/docs/examples/users/get.md +++ b/docs/examples/users/get.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>") // Your secret API key + .setProject("") // Your project ID + .setKey("") // Your secret API key let users = Users(client) diff --git a/docs/examples/users/list-identities.md b/docs/examples/users/list-identities.md index 21ed27b..b318902 100644 --- a/docs/examples/users/list-identities.md +++ b/docs/examples/users/list-identities.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>") // Your secret API key + .setProject("") // Your project ID + .setKey("") // Your secret API key let users = Users(client) diff --git a/docs/examples/users/list-logs.md b/docs/examples/users/list-logs.md index e078c2a..5e80043 100644 --- a/docs/examples/users/list-logs.md +++ b/docs/examples/users/list-logs.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>") // Your secret API key + .setProject("") // Your project ID + .setKey("") // Your secret API key let users = Users(client) diff --git a/docs/examples/users/list-memberships.md b/docs/examples/users/list-memberships.md index 86fbf72..5ca0152 100644 --- a/docs/examples/users/list-memberships.md +++ b/docs/examples/users/list-memberships.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>") // Your secret API key + .setProject("") // Your project ID + .setKey("") // Your secret API key let users = Users(client) diff --git a/docs/examples/users/list-mfa-factors.md b/docs/examples/users/list-mfa-factors.md index 87b123b..4cf7d7c 100644 --- a/docs/examples/users/list-mfa-factors.md +++ b/docs/examples/users/list-mfa-factors.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>") // Your secret API key + .setProject("") // Your project ID + .setKey("") // Your secret API key let users = Users(client) diff --git a/docs/examples/users/list-sessions.md b/docs/examples/users/list-sessions.md index 3c494e3..035716e 100644 --- a/docs/examples/users/list-sessions.md +++ b/docs/examples/users/list-sessions.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>") // Your secret API key + .setProject("") // Your project ID + .setKey("") // Your secret API key let users = Users(client) diff --git a/docs/examples/users/list-targets.md b/docs/examples/users/list-targets.md index 541715c..3ab651c 100644 --- a/docs/examples/users/list-targets.md +++ b/docs/examples/users/list-targets.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>") // Your secret API key + .setProject("") // Your project ID + .setKey("") // Your secret API key let users = Users(client) diff --git a/docs/examples/users/list.md b/docs/examples/users/list.md index 0bc4d85..aaa619e 100644 --- a/docs/examples/users/list.md +++ b/docs/examples/users/list.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>") // Your secret API key + .setProject("") // Your project ID + .setKey("") // Your secret API key let users = Users(client) diff --git a/docs/examples/users/update-email-verification.md b/docs/examples/users/update-email-verification.md index de43107..cd4b51b 100644 --- a/docs/examples/users/update-email-verification.md +++ b/docs/examples/users/update-email-verification.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>") // Your secret API key + .setProject("") // Your project ID + .setKey("") // Your secret API key let users = Users(client) diff --git a/docs/examples/users/update-email.md b/docs/examples/users/update-email.md index 5cbf2ef..3a80ae5 100644 --- a/docs/examples/users/update-email.md +++ b/docs/examples/users/update-email.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>") // Your secret API key + .setProject("") // Your project ID + .setKey("") // Your secret API key let users = Users(client) diff --git a/docs/examples/users/update-labels.md b/docs/examples/users/update-labels.md index 3734194..5b3000d 100644 --- a/docs/examples/users/update-labels.md +++ b/docs/examples/users/update-labels.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>") // Your secret API key + .setProject("") // Your project ID + .setKey("") // Your secret API key let users = Users(client) diff --git a/docs/examples/users/update-mfa-recovery-codes.md b/docs/examples/users/update-mfa-recovery-codes.md index 48de0ab..528319c 100644 --- a/docs/examples/users/update-mfa-recovery-codes.md +++ b/docs/examples/users/update-mfa-recovery-codes.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>") // Your secret API key + .setProject("") // Your project ID + .setKey("") // Your secret API key let users = Users(client) diff --git a/docs/examples/users/update-mfa.md b/docs/examples/users/update-mfa.md index 0612a31..3fd2571 100644 --- a/docs/examples/users/update-mfa.md +++ b/docs/examples/users/update-mfa.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>") // Your secret API key + .setProject("") // Your project ID + .setKey("") // Your secret API key let users = Users(client) diff --git a/docs/examples/users/update-name.md b/docs/examples/users/update-name.md index 03914f9..bf697be 100644 --- a/docs/examples/users/update-name.md +++ b/docs/examples/users/update-name.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>") // Your secret API key + .setProject("") // Your project ID + .setKey("") // Your secret API key let users = Users(client) diff --git a/docs/examples/users/update-password.md b/docs/examples/users/update-password.md index 054875c..0f35cef 100644 --- a/docs/examples/users/update-password.md +++ b/docs/examples/users/update-password.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>") // Your secret API key + .setProject("") // Your project ID + .setKey("") // Your secret API key let users = Users(client) diff --git a/docs/examples/users/update-phone-verification.md b/docs/examples/users/update-phone-verification.md index b0a3fe8..7f99390 100644 --- a/docs/examples/users/update-phone-verification.md +++ b/docs/examples/users/update-phone-verification.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>") // Your secret API key + .setProject("") // Your project ID + .setKey("") // Your secret API key let users = Users(client) diff --git a/docs/examples/users/update-phone.md b/docs/examples/users/update-phone.md index d29676f..2097c45 100644 --- a/docs/examples/users/update-phone.md +++ b/docs/examples/users/update-phone.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>") // Your secret API key + .setProject("") // Your project ID + .setKey("") // Your secret API key let users = Users(client) diff --git a/docs/examples/users/update-prefs.md b/docs/examples/users/update-prefs.md index 19d2aad..d4818db 100644 --- a/docs/examples/users/update-prefs.md +++ b/docs/examples/users/update-prefs.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>") // Your secret API key + .setProject("") // Your project ID + .setKey("") // Your secret API key let users = Users(client) diff --git a/docs/examples/users/update-status.md b/docs/examples/users/update-status.md index 90ea4f6..2408d05 100644 --- a/docs/examples/users/update-status.md +++ b/docs/examples/users/update-status.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>") // Your secret API key + .setProject("") // Your project ID + .setKey("") // Your secret API key let users = Users(client) diff --git a/docs/examples/users/update-target.md b/docs/examples/users/update-target.md index d06d616..bd3cc7c 100644 --- a/docs/examples/users/update-target.md +++ b/docs/examples/users/update-target.md @@ -2,8 +2,8 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>") // Your secret API key + .setProject("") // Your project ID + .setKey("") // Your secret API key let users = Users(client) From 25d1bd09f3c2e6c5c425ce1cedc0aa186e3a78ff Mon Sep 17 00:00:00 2001 From: root Date: Fri, 23 Aug 2024 15:28:27 +0000 Subject: [PATCH 5/8] chore: update SDKs for appwrite 1.6.0 --- README.md | 2 +- Sources/Appwrite/Client.swift | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 2c84763..de32be1 100644 --- a/README.md +++ b/README.md @@ -33,7 +33,7 @@ Add the package to your `Package.swift` dependencies: ```swift dependencies: [ - .package(url: "git@github.com:appwrite/sdk-for-swift.git", from: "6.0.0-rc.3"), + .package(url: "git@github.com:appwrite/sdk-for-swift.git", from: "6.0.0"), ], ``` diff --git a/Sources/Appwrite/Client.swift b/Sources/Appwrite/Client.swift index f56a19c..126415d 100644 --- a/Sources/Appwrite/Client.swift +++ b/Sources/Appwrite/Client.swift @@ -21,7 +21,7 @@ open class Client { "x-sdk-name": "Swift", "x-sdk-platform": "server", "x-sdk-language": "swift", - "x-sdk-version": "6.0.0-rc.3", + "x-sdk-version": "6.0.0", "x-appwrite-response-format": "1.6.0" ] From f9b4991625a6c63358a9e38f885728249f284006 Mon Sep 17 00:00:00 2001 From: root Date: Tue, 27 Aug 2024 10:56:39 +0000 Subject: [PATCH 6/8] chore: update Appwrite version --- Sources/Appwrite/Services/Functions.swift | 46 ------------------- .../AppwriteModels/TemplateFunctionList.swift | 35 -------------- docs/examples/functions/list-templates.md | 15 ------ 3 files changed, 96 deletions(-) delete mode 100644 Sources/AppwriteModels/TemplateFunctionList.swift delete mode 100644 docs/examples/functions/list-templates.md diff --git a/Sources/Appwrite/Services/Functions.swift b/Sources/Appwrite/Services/Functions.swift index 8cee053..8856066 100644 --- a/Sources/Appwrite/Services/Functions.swift +++ b/Sources/Appwrite/Services/Functions.swift @@ -211,52 +211,6 @@ open class Functions: Service { ) } - /// - /// List function templates - /// - /// List available function templates. You can use template details in - /// [createFunction](/docs/references/cloud/server-nodejs/functions#create) - /// method. - /// - /// @param [String] runtimes - /// @param [String] useCases - /// @param Int limit - /// @param Int offset - /// @throws Exception - /// @return array - /// - open func listTemplates( - runtimes: [String]? = nil, - useCases: [String]? = nil, - limit: Int? = nil, - offset: Int? = nil - ) async throws -> AppwriteModels.TemplateFunctionList { - let apiPath: String = "/functions/templates" - - let apiParams: [String: Any?] = [ - "runtimes": runtimes, - "useCases": useCases, - "limit": limit, - "offset": offset - ] - - let apiHeaders: [String: String] = [ - "content-type": "application/json" - ] - - let converter: (Any) -> AppwriteModels.TemplateFunctionList = { response in - return AppwriteModels.TemplateFunctionList.from(map: response as! [String: Any]) - } - - return try await client.call( - method: "GET", - path: apiPath, - headers: apiHeaders, - params: apiParams, - converter: converter - ) - } - /// /// Get function template /// diff --git a/Sources/AppwriteModels/TemplateFunctionList.swift b/Sources/AppwriteModels/TemplateFunctionList.swift deleted file mode 100644 index 2fe319b..0000000 --- a/Sources/AppwriteModels/TemplateFunctionList.swift +++ /dev/null @@ -1,35 +0,0 @@ -import Foundation -import JSONCodable - -/// Function Templates List -public class TemplateFunctionList { - - /// Total number of templates documents that matched your query. - public let total: Int - - /// List of templates. - public let templates: [TemplateFunction] - - - init( - total: Int, - templates: [TemplateFunction] - ) { - self.total = total - self.templates = templates - } - - public func toMap() -> [String: Any] { - return [ - "total": total as Any, - "templates": templates.map { $0.toMap() } as Any - ] - } - - public static func from(map: [String: Any] ) -> TemplateFunctionList { - return TemplateFunctionList( - total: map["total"] as! Int, - templates: (map["templates"] as! [[String: Any]]).map { TemplateFunction.from(map: $0) } - ) - } -} diff --git a/docs/examples/functions/list-templates.md b/docs/examples/functions/list-templates.md deleted file mode 100644 index d0090ab..0000000 --- a/docs/examples/functions/list-templates.md +++ /dev/null @@ -1,15 +0,0 @@ -import Appwrite - -let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - -let functions = Functions(client) - -let templateFunctionList = try await functions.listTemplates( - runtimes: [], // optional - useCases: [], // optional - limit: 1, // optional - offset: 0 // optional -) - From 25315774e2b8042fa461f44f4f70bb8d64a0840f Mon Sep 17 00:00:00 2001 From: root Date: Tue, 27 Aug 2024 11:18:20 +0000 Subject: [PATCH 7/8] chore: updates for appwrite 1.6.x --- Sources/Appwrite/Services/Functions.swift | 36 ----- Sources/AppwriteModels/TemplateFunction.swift | 140 ------------------ Sources/AppwriteModels/TemplateRuntime.swift | 49 ------ Sources/AppwriteModels/TemplateVariable.swift | 63 -------- .../functions/get-deployment-download.md | 2 +- docs/examples/functions/get-template.md | 12 -- 6 files changed, 1 insertion(+), 301 deletions(-) delete mode 100644 Sources/AppwriteModels/TemplateFunction.swift delete mode 100644 Sources/AppwriteModels/TemplateRuntime.swift delete mode 100644 Sources/AppwriteModels/TemplateVariable.swift delete mode 100644 docs/examples/functions/get-template.md diff --git a/Sources/Appwrite/Services/Functions.swift b/Sources/Appwrite/Services/Functions.swift index 8856066..ba39620 100644 --- a/Sources/Appwrite/Services/Functions.swift +++ b/Sources/Appwrite/Services/Functions.swift @@ -211,42 +211,6 @@ open class Functions: Service { ) } - /// - /// Get function template - /// - /// Get a function template using ID. You can use template details in - /// [createFunction](/docs/references/cloud/server-nodejs/functions#create) - /// method. - /// - /// @param String templateId - /// @throws Exception - /// @return array - /// - open func getTemplate( - templateId: String - ) async throws -> AppwriteModels.TemplateFunction { - let apiPath: String = "/functions/templates/{templateId}" - .replacingOccurrences(of: "{templateId}", with: templateId) - - let apiParams: [String: Any] = [:] - - let apiHeaders: [String: String] = [ - "content-type": "application/json" - ] - - let converter: (Any) -> AppwriteModels.TemplateFunction = { response in - return AppwriteModels.TemplateFunction.from(map: response as! [String: Any]) - } - - return try await client.call( - method: "GET", - path: apiPath, - headers: apiHeaders, - params: apiParams, - converter: converter - ) - } - /// /// Get function /// diff --git a/Sources/AppwriteModels/TemplateFunction.swift b/Sources/AppwriteModels/TemplateFunction.swift deleted file mode 100644 index e174a05..0000000 --- a/Sources/AppwriteModels/TemplateFunction.swift +++ /dev/null @@ -1,140 +0,0 @@ -import Foundation -import JSONCodable - -/// Template Function -public class TemplateFunction { - - /// Function Template Icon. - public let icon: String - - /// Function Template ID. - public let id: String - - /// Function Template Name. - public let name: String - - /// Function Template Tagline. - public let tagline: String - - /// Execution permissions. - public let permissions: [Any] - - /// Function trigger events. - public let events: [Any] - - /// Function execution schedult in CRON format. - public let cron: String - - /// Function execution timeout in seconds. - public let timeout: Int - - /// Function use cases. - public let useCases: [Any] - - /// List of runtimes that can be used with this template. - public let runtimes: [TemplateRuntime] - - /// Function Template Instructions. - public let instructions: String - - /// VCS (Version Control System) Provider. - public let vcsProvider: String - - /// VCS (Version Control System) Repository ID - public let providerRepositoryId: String - - /// VCS (Version Control System) Owner. - public let providerOwner: String - - /// VCS (Version Control System) branch version (tag). - public let providerVersion: String - - /// Function variables. - public let variables: [TemplateVariable] - - /// Function scopes. - public let scopes: [Any] - - - init( - icon: String, - id: String, - name: String, - tagline: String, - permissions: [Any], - events: [Any], - cron: String, - timeout: Int, - useCases: [Any], - runtimes: [TemplateRuntime], - instructions: String, - vcsProvider: String, - providerRepositoryId: String, - providerOwner: String, - providerVersion: String, - variables: [TemplateVariable], - scopes: [Any] - ) { - self.icon = icon - self.id = id - self.name = name - self.tagline = tagline - self.permissions = permissions - self.events = events - self.cron = cron - self.timeout = timeout - self.useCases = useCases - self.runtimes = runtimes - self.instructions = instructions - self.vcsProvider = vcsProvider - self.providerRepositoryId = providerRepositoryId - self.providerOwner = providerOwner - self.providerVersion = providerVersion - self.variables = variables - self.scopes = scopes - } - - public func toMap() -> [String: Any] { - return [ - "icon": icon as Any, - "id": id as Any, - "name": name as Any, - "tagline": tagline as Any, - "permissions": permissions as Any, - "events": events as Any, - "cron": cron as Any, - "timeout": timeout as Any, - "useCases": useCases as Any, - "runtimes": runtimes.map { $0.toMap() } as Any, - "instructions": instructions as Any, - "vcsProvider": vcsProvider as Any, - "providerRepositoryId": providerRepositoryId as Any, - "providerOwner": providerOwner as Any, - "providerVersion": providerVersion as Any, - "variables": variables.map { $0.toMap() } as Any, - "scopes": scopes as Any - ] - } - - public static func from(map: [String: Any] ) -> TemplateFunction { - return TemplateFunction( - icon: map["icon"] as! String, - id: map["id"] as! String, - name: map["name"] as! String, - tagline: map["tagline"] as! String, - permissions: map["permissions"] as! [Any], - events: map["events"] as! [Any], - cron: map["cron"] as! String, - timeout: map["timeout"] as! Int, - useCases: map["useCases"] as! [Any], - runtimes: (map["runtimes"] as! [[String: Any]]).map { TemplateRuntime.from(map: $0) }, - instructions: map["instructions"] as! String, - vcsProvider: map["vcsProvider"] as! String, - providerRepositoryId: map["providerRepositoryId"] as! String, - providerOwner: map["providerOwner"] as! String, - providerVersion: map["providerVersion"] as! String, - variables: (map["variables"] as! [[String: Any]]).map { TemplateVariable.from(map: $0) }, - scopes: map["scopes"] as! [Any] - ) - } -} diff --git a/Sources/AppwriteModels/TemplateRuntime.swift b/Sources/AppwriteModels/TemplateRuntime.swift deleted file mode 100644 index 637c020..0000000 --- a/Sources/AppwriteModels/TemplateRuntime.swift +++ /dev/null @@ -1,49 +0,0 @@ -import Foundation -import JSONCodable - -/// Template Runtime -public class TemplateRuntime { - - /// Runtime Name. - public let name: String - - /// The build command used to build the deployment. - public let commands: String - - /// The entrypoint file used to execute the deployment. - public let entrypoint: String - - /// Path to function in VCS (Version Control System) repository - public let providerRootDirectory: String - - - init( - name: String, - commands: String, - entrypoint: String, - providerRootDirectory: String - ) { - self.name = name - self.commands = commands - self.entrypoint = entrypoint - self.providerRootDirectory = providerRootDirectory - } - - public func toMap() -> [String: Any] { - return [ - "name": name as Any, - "commands": commands as Any, - "entrypoint": entrypoint as Any, - "providerRootDirectory": providerRootDirectory as Any - ] - } - - public static func from(map: [String: Any] ) -> TemplateRuntime { - return TemplateRuntime( - name: map["name"] as! String, - commands: map["commands"] as! String, - entrypoint: map["entrypoint"] as! String, - providerRootDirectory: map["providerRootDirectory"] as! String - ) - } -} diff --git a/Sources/AppwriteModels/TemplateVariable.swift b/Sources/AppwriteModels/TemplateVariable.swift deleted file mode 100644 index 71c0a57..0000000 --- a/Sources/AppwriteModels/TemplateVariable.swift +++ /dev/null @@ -1,63 +0,0 @@ -import Foundation -import JSONCodable - -/// Template Variable -public class TemplateVariable { - - /// Variable Name. - public let name: String - - /// Variable Description. - public let description: String - - /// Variable Value. - public let value: String - - /// Variable Placeholder. - public let placeholder: String - - /// Is the variable required? - public let `required`: Bool - - /// Variable Type. - public let type: String - - - init( - name: String, - description: String, - value: String, - placeholder: String, - `required`: Bool, - type: String - ) { - self.name = name - self.description = description - self.value = value - self.placeholder = placeholder - self.`required` = `required` - self.type = type - } - - public func toMap() -> [String: Any] { - return [ - "name": name as Any, - "description": description as Any, - "value": value as Any, - "placeholder": placeholder as Any, - "`required`": `required` as Any, - "type": type as Any - ] - } - - public static func from(map: [String: Any] ) -> TemplateVariable { - return TemplateVariable( - name: map["name"] as! String, - description: map["description"] as! String, - value: map["value"] as! String, - placeholder: map["placeholder"] as! String, - `required`: map["required"] as! Bool, - type: map["type"] as! String - ) - } -} diff --git a/docs/examples/functions/get-deployment-download.md b/docs/examples/functions/get-deployment-download.md index 7db6c4c..6d08d9b 100644 --- a/docs/examples/functions/get-deployment-download.md +++ b/docs/examples/functions/get-deployment-download.md @@ -3,7 +3,7 @@ import Appwrite let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint .setProject("") // Your project ID - .setSession("") // The user session to authenticate with + .setKey("") // Your secret API key let functions = Functions(client) diff --git a/docs/examples/functions/get-template.md b/docs/examples/functions/get-template.md deleted file mode 100644 index bc7a9a3..0000000 --- a/docs/examples/functions/get-template.md +++ /dev/null @@ -1,12 +0,0 @@ -import Appwrite - -let client = Client() - .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - -let functions = Functions(client) - -let templateFunction = try await functions.getTemplate( - templateId: "" -) - From 738e335dbe79e660e38f6079cf7524a5ff413008 Mon Sep 17 00:00:00 2001 From: root Date: Tue, 27 Aug 2024 11:34:46 +0000 Subject: [PATCH 8/8] chore: update sdks for appwrite 1.6 --- Sources/AppwriteModels/AlgoArgon2.swift | 4 +++ Sources/AppwriteModels/AlgoBcrypt.swift | 1 + Sources/AppwriteModels/AlgoMd5.swift | 1 + Sources/AppwriteModels/AlgoPhpass.swift | 1 + Sources/AppwriteModels/AlgoScrypt.swift | 5 +++ .../AppwriteModels/AlgoScryptModified.swift | 4 +++ Sources/AppwriteModels/AlgoSha.swift | 1 + Sources/AppwriteModels/AttributeBoolean.swift | 15 ++++++--- .../AppwriteModels/AttributeDatetime.swift | 16 +++++++--- Sources/AppwriteModels/AttributeEmail.swift | 16 +++++++--- Sources/AppwriteModels/AttributeEnum.swift | 17 +++++++--- Sources/AppwriteModels/AttributeFloat.swift | 25 ++++++++++----- Sources/AppwriteModels/AttributeInteger.swift | 25 ++++++++++----- Sources/AppwriteModels/AttributeIp.swift | 16 +++++++--- Sources/AppwriteModels/AttributeList.swift | 2 ++ .../AttributeRelationship.swift | 16 ++++++++-- Sources/AppwriteModels/AttributeString.swift | 16 +++++++--- Sources/AppwriteModels/AttributeUrl.swift | 16 +++++++--- Sources/AppwriteModels/Bucket.swift | 12 +++++++ Sources/AppwriteModels/BucketList.swift | 2 ++ Sources/AppwriteModels/Build.swift | 9 ++++++ Sources/AppwriteModels/Collection.swift | 10 ++++++ Sources/AppwriteModels/CollectionList.swift | 2 ++ Sources/AppwriteModels/Continent.swift | 2 ++ Sources/AppwriteModels/ContinentList.swift | 2 ++ Sources/AppwriteModels/Country.swift | 2 ++ Sources/AppwriteModels/CountryList.swift | 2 ++ Sources/AppwriteModels/Currency.swift | 7 +++++ Sources/AppwriteModels/CurrencyList.swift | 2 ++ Sources/AppwriteModels/Database.swift | 5 +++ Sources/AppwriteModels/DatabaseList.swift | 2 ++ Sources/AppwriteModels/Deployment.swift | 24 ++++++++++++++ Sources/AppwriteModels/DeploymentList.swift | 2 ++ Sources/AppwriteModels/Document.swift | 6 ++++ Sources/AppwriteModels/DocumentList.swift | 2 ++ Sources/AppwriteModels/Execution.swift | 21 +++++++++++-- Sources/AppwriteModels/ExecutionList.swift | 2 ++ Sources/AppwriteModels/File.swift | 11 +++++++ Sources/AppwriteModels/FileList.swift | 2 ++ Sources/AppwriteModels/Function.swift | 24 ++++++++++++++ Sources/AppwriteModels/FunctionList.swift | 2 ++ Sources/AppwriteModels/Headers.swift | 2 ++ Sources/AppwriteModels/HealthAntivirus.swift | 2 ++ .../AppwriteModels/HealthCertificate.swift | 6 ++++ Sources/AppwriteModels/HealthQueue.swift | 1 + Sources/AppwriteModels/HealthStatus.swift | 3 ++ Sources/AppwriteModels/HealthTime.swift | 3 ++ Sources/AppwriteModels/Identity.swift | 10 ++++++ Sources/AppwriteModels/IdentityList.swift | 2 ++ Sources/AppwriteModels/Index.swift | 10 ++++-- Sources/AppwriteModels/IndexList.swift | 2 ++ Sources/AppwriteModels/Jwt.swift | 1 + Sources/AppwriteModels/Language.swift | 3 ++ Sources/AppwriteModels/LanguageList.swift | 2 ++ Sources/AppwriteModels/Locale.swift | 7 +++++ Sources/AppwriteModels/LocaleCode.swift | 2 ++ Sources/AppwriteModels/LocaleCodeList.swift | 2 ++ Sources/AppwriteModels/Log.swift | 21 +++++++++++++ Sources/AppwriteModels/LogList.swift | 2 ++ Sources/AppwriteModels/Membership.swift | 13 ++++++++ Sources/AppwriteModels/MembershipList.swift | 2 ++ Sources/AppwriteModels/Message.swift | 25 +++++++++++---- Sources/AppwriteModels/MessageList.swift | 2 ++ Sources/AppwriteModels/MfaChallenge.swift | 4 +++ Sources/AppwriteModels/MfaFactors.swift | 4 +++ Sources/AppwriteModels/MfaRecoveryCodes.swift | 1 + Sources/AppwriteModels/MfaType.swift | 2 ++ Sources/AppwriteModels/Phone.swift | 3 ++ Sources/AppwriteModels/PhoneList.swift | 2 ++ Sources/AppwriteModels/Provider.swift | 13 ++++++-- Sources/AppwriteModels/ProviderList.swift | 2 ++ Sources/AppwriteModels/Runtime.swift | 8 +++++ Sources/AppwriteModels/RuntimeList.swift | 2 ++ Sources/AppwriteModels/Session.swift | 29 +++++++++++++++++ Sources/AppwriteModels/SessionList.swift | 2 ++ Sources/AppwriteModels/Specification.swift | 4 +++ .../AppwriteModels/SpecificationList.swift | 2 ++ Sources/AppwriteModels/Subscriber.swift | 9 ++++++ Sources/AppwriteModels/SubscriberList.swift | 2 ++ Sources/AppwriteModels/Target.swift | 12 +++++-- Sources/AppwriteModels/TargetList.swift | 2 ++ Sources/AppwriteModels/Team.swift | 6 ++++ Sources/AppwriteModels/TeamList.swift | 2 ++ Sources/AppwriteModels/Token.swift | 6 ++++ Sources/AppwriteModels/Topic.swift | 8 +++++ Sources/AppwriteModels/TopicList.swift | 2 ++ Sources/AppwriteModels/User.swift | 31 +++++++++++++++---- Sources/AppwriteModels/UserList.swift | 2 ++ Sources/AppwriteModels/Variable.swift | 7 +++++ Sources/AppwriteModels/VariableList.swift | 2 ++ 90 files changed, 578 insertions(+), 66 deletions(-) diff --git a/Sources/AppwriteModels/AlgoArgon2.swift b/Sources/AppwriteModels/AlgoArgon2.swift index c93c034..b473771 100644 --- a/Sources/AppwriteModels/AlgoArgon2.swift +++ b/Sources/AppwriteModels/AlgoArgon2.swift @@ -7,16 +7,20 @@ public class AlgoArgon2 { /// Algo type. public let type: String + /// Memory used to compute hash. public let memoryCost: Int + /// Amount of time consumed to compute hash public let timeCost: Int + /// Number of threads used to compute hash. public let threads: Int + init( type: String, memoryCost: Int, diff --git a/Sources/AppwriteModels/AlgoBcrypt.swift b/Sources/AppwriteModels/AlgoBcrypt.swift index 8d59f2d..3635cec 100644 --- a/Sources/AppwriteModels/AlgoBcrypt.swift +++ b/Sources/AppwriteModels/AlgoBcrypt.swift @@ -8,6 +8,7 @@ public class AlgoBcrypt { public let type: String + init( type: String ) { diff --git a/Sources/AppwriteModels/AlgoMd5.swift b/Sources/AppwriteModels/AlgoMd5.swift index 050fe5c..db970a6 100644 --- a/Sources/AppwriteModels/AlgoMd5.swift +++ b/Sources/AppwriteModels/AlgoMd5.swift @@ -8,6 +8,7 @@ public class AlgoMd5 { public let type: String + init( type: String ) { diff --git a/Sources/AppwriteModels/AlgoPhpass.swift b/Sources/AppwriteModels/AlgoPhpass.swift index 493463d..fe960fb 100644 --- a/Sources/AppwriteModels/AlgoPhpass.swift +++ b/Sources/AppwriteModels/AlgoPhpass.swift @@ -8,6 +8,7 @@ public class AlgoPhpass { public let type: String + init( type: String ) { diff --git a/Sources/AppwriteModels/AlgoScrypt.swift b/Sources/AppwriteModels/AlgoScrypt.swift index 73254f2..8821bfb 100644 --- a/Sources/AppwriteModels/AlgoScrypt.swift +++ b/Sources/AppwriteModels/AlgoScrypt.swift @@ -7,19 +7,24 @@ public class AlgoScrypt { /// Algo type. public let type: String + /// CPU complexity of computed hash. public let costCpu: Int + /// Memory complexity of computed hash. public let costMemory: Int + /// Parallelization of computed hash. public let costParallel: Int + /// Length used to compute hash. public let length: Int + init( type: String, costCpu: Int, diff --git a/Sources/AppwriteModels/AlgoScryptModified.swift b/Sources/AppwriteModels/AlgoScryptModified.swift index bc1fde5..0adf147 100644 --- a/Sources/AppwriteModels/AlgoScryptModified.swift +++ b/Sources/AppwriteModels/AlgoScryptModified.swift @@ -7,16 +7,20 @@ public class AlgoScryptModified { /// Algo type. public let type: String + /// Salt used to compute hash. public let salt: String + /// Separator used to compute hash. public let saltSeparator: String + /// Key used to compute hash. public let signerKey: String + init( type: String, salt: String, diff --git a/Sources/AppwriteModels/AlgoSha.swift b/Sources/AppwriteModels/AlgoSha.swift index c0a0532..88d6bfc 100644 --- a/Sources/AppwriteModels/AlgoSha.swift +++ b/Sources/AppwriteModels/AlgoSha.swift @@ -8,6 +8,7 @@ public class AlgoSha { public let type: String + init( type: String ) { diff --git a/Sources/AppwriteModels/AttributeBoolean.swift b/Sources/AppwriteModels/AttributeBoolean.swift index ae3a7cc..6df80cb 100644 --- a/Sources/AppwriteModels/AttributeBoolean.swift +++ b/Sources/AppwriteModels/AttributeBoolean.swift @@ -7,23 +7,30 @@ public class AttributeBoolean { /// Attribute Key. public let key: String + /// Attribute type. public let type: String + /// Attribute status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed` public let status: String + /// Error message. Displays error generated on failure of creating or deleting an attribute. public let error: String + /// Is attribute required? public let `required`: Bool + /// Is attribute an array? - public let array: Bool?? + public let array: Bool? + /// Default value for attribute when not provided. Cannot be set when attribute is required. - public let `default`: Bool?? + public let `default`: Bool? + init( @@ -32,8 +39,8 @@ public class AttributeBoolean { status: String, error: String, `required`: Bool, - array: Bool??, - `default`: Bool?? + array: Bool?, + `default`: Bool? ) { self.key = key self.type = type diff --git a/Sources/AppwriteModels/AttributeDatetime.swift b/Sources/AppwriteModels/AttributeDatetime.swift index 0051cc5..7f1017f 100644 --- a/Sources/AppwriteModels/AttributeDatetime.swift +++ b/Sources/AppwriteModels/AttributeDatetime.swift @@ -7,26 +7,34 @@ public class AttributeDatetime { /// Attribute Key. public let key: String + /// Attribute type. public let type: String + /// Attribute status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed` public let status: String + /// Error message. Displays error generated on failure of creating or deleting an attribute. public let error: String + /// Is attribute required? public let `required`: Bool + /// Is attribute an array? - public let array: Bool?? + public let array: Bool? + /// ISO 8601 format. public let format: String + /// Default value for attribute when not provided. Only null is optional - public let `default`: String?? + public let `default`: String? + init( @@ -35,9 +43,9 @@ public class AttributeDatetime { status: String, error: String, `required`: Bool, - array: Bool??, + array: Bool?, format: String, - `default`: String?? + `default`: String? ) { self.key = key self.type = type diff --git a/Sources/AppwriteModels/AttributeEmail.swift b/Sources/AppwriteModels/AttributeEmail.swift index 10c82e3..41d7355 100644 --- a/Sources/AppwriteModels/AttributeEmail.swift +++ b/Sources/AppwriteModels/AttributeEmail.swift @@ -7,26 +7,34 @@ public class AttributeEmail { /// Attribute Key. public let key: String + /// Attribute type. public let type: String + /// Attribute status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed` public let status: String + /// Error message. Displays error generated on failure of creating or deleting an attribute. public let error: String + /// Is attribute required? public let `required`: Bool + /// Is attribute an array? - public let array: Bool?? + public let array: Bool? + /// String format. public let format: String + /// Default value for attribute when not provided. Cannot be set when attribute is required. - public let `default`: String?? + public let `default`: String? + init( @@ -35,9 +43,9 @@ public class AttributeEmail { status: String, error: String, `required`: Bool, - array: Bool??, + array: Bool?, format: String, - `default`: String?? + `default`: String? ) { self.key = key self.type = type diff --git a/Sources/AppwriteModels/AttributeEnum.swift b/Sources/AppwriteModels/AttributeEnum.swift index 85e4972..e576ffb 100644 --- a/Sources/AppwriteModels/AttributeEnum.swift +++ b/Sources/AppwriteModels/AttributeEnum.swift @@ -7,29 +7,38 @@ public class AttributeEnum { /// Attribute Key. public let key: String + /// Attribute type. public let type: String + /// Attribute status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed` public let status: String + /// Error message. Displays error generated on failure of creating or deleting an attribute. public let error: String + /// Is attribute required? public let `required`: Bool + /// Is attribute an array? - public let array: Bool?? + public let array: Bool? + /// Array of elements in enumerated type. public let elements: [Any] + /// String format. public let format: String + /// Default value for attribute when not provided. Cannot be set when attribute is required. - public let `default`: String?? + public let `default`: String? + init( @@ -38,10 +47,10 @@ public class AttributeEnum { status: String, error: String, `required`: Bool, - array: Bool??, + array: Bool?, elements: [Any], format: String, - `default`: String?? + `default`: String? ) { self.key = key self.type = type diff --git a/Sources/AppwriteModels/AttributeFloat.swift b/Sources/AppwriteModels/AttributeFloat.swift index d261213..f7c96fa 100644 --- a/Sources/AppwriteModels/AttributeFloat.swift +++ b/Sources/AppwriteModels/AttributeFloat.swift @@ -7,29 +7,38 @@ public class AttributeFloat { /// Attribute Key. public let key: String + /// Attribute type. public let type: String + /// Attribute status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed` public let status: String + /// Error message. Displays error generated on failure of creating or deleting an attribute. public let error: String + /// Is attribute required? public let `required`: Bool + /// Is attribute an array? - public let array: Bool?? + public let array: Bool? + /// Minimum value to enforce for new documents. - public let min: Double?? + public let min: Double? + /// Maximum value to enforce for new documents. - public let max: Double?? + public let max: Double? + /// Default value for attribute when not provided. Cannot be set when attribute is required. - public let `default`: Double?? + public let `default`: Double? + init( @@ -38,10 +47,10 @@ public class AttributeFloat { status: String, error: String, `required`: Bool, - array: Bool??, - min: Double??, - max: Double??, - `default`: Double?? + array: Bool?, + min: Double?, + max: Double?, + `default`: Double? ) { self.key = key self.type = type diff --git a/Sources/AppwriteModels/AttributeInteger.swift b/Sources/AppwriteModels/AttributeInteger.swift index 9ecd3fe..2158768 100644 --- a/Sources/AppwriteModels/AttributeInteger.swift +++ b/Sources/AppwriteModels/AttributeInteger.swift @@ -7,29 +7,38 @@ public class AttributeInteger { /// Attribute Key. public let key: String + /// Attribute type. public let type: String + /// Attribute status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed` public let status: String + /// Error message. Displays error generated on failure of creating or deleting an attribute. public let error: String + /// Is attribute required? public let `required`: Bool + /// Is attribute an array? - public let array: Bool?? + public let array: Bool? + /// Minimum value to enforce for new documents. - public let min: Int?? + public let min: Int? + /// Maximum value to enforce for new documents. - public let max: Int?? + public let max: Int? + /// Default value for attribute when not provided. Cannot be set when attribute is required. - public let `default`: Int?? + public let `default`: Int? + init( @@ -38,10 +47,10 @@ public class AttributeInteger { status: String, error: String, `required`: Bool, - array: Bool??, - min: Int??, - max: Int??, - `default`: Int?? + array: Bool?, + min: Int?, + max: Int?, + `default`: Int? ) { self.key = key self.type = type diff --git a/Sources/AppwriteModels/AttributeIp.swift b/Sources/AppwriteModels/AttributeIp.swift index cbe8bee..2f4e558 100644 --- a/Sources/AppwriteModels/AttributeIp.swift +++ b/Sources/AppwriteModels/AttributeIp.swift @@ -7,26 +7,34 @@ public class AttributeIp { /// Attribute Key. public let key: String + /// Attribute type. public let type: String + /// Attribute status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed` public let status: String + /// Error message. Displays error generated on failure of creating or deleting an attribute. public let error: String + /// Is attribute required? public let `required`: Bool + /// Is attribute an array? - public let array: Bool?? + public let array: Bool? + /// String format. public let format: String + /// Default value for attribute when not provided. Cannot be set when attribute is required. - public let `default`: String?? + public let `default`: String? + init( @@ -35,9 +43,9 @@ public class AttributeIp { status: String, error: String, `required`: Bool, - array: Bool??, + array: Bool?, format: String, - `default`: String?? + `default`: String? ) { self.key = key self.type = type diff --git a/Sources/AppwriteModels/AttributeList.swift b/Sources/AppwriteModels/AttributeList.swift index a4a070f..d0fd299 100644 --- a/Sources/AppwriteModels/AttributeList.swift +++ b/Sources/AppwriteModels/AttributeList.swift @@ -7,10 +7,12 @@ public class AttributeList { /// Total number of attributes in the given collection. public let total: Int + /// List of attributes. public let attributes: [Any] + init( total: Int, attributes: [Any] diff --git a/Sources/AppwriteModels/AttributeRelationship.swift b/Sources/AppwriteModels/AttributeRelationship.swift index 6e0dbf5..8facd9b 100644 --- a/Sources/AppwriteModels/AttributeRelationship.swift +++ b/Sources/AppwriteModels/AttributeRelationship.swift @@ -7,47 +7,59 @@ public class AttributeRelationship { /// Attribute Key. public let key: String + /// Attribute type. public let type: String + /// Attribute status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed` public let status: String + /// Error message. Displays error generated on failure of creating or deleting an attribute. public let error: String + /// Is attribute required? public let `required`: Bool + /// Is attribute an array? - public let array: Bool?? + public let array: Bool? + /// The ID of the related collection. public let relatedCollection: String + /// The type of the relationship. public let relationType: String + /// Is the relationship two-way? public let twoWay: Bool + /// The key of the two-way relationship. public let twoWayKey: String + /// How deleting the parent document will propagate to child documents. public let onDelete: String + /// Whether this is the parent or child side of the relationship public let side: String + init( key: String, type: String, status: String, error: String, `required`: Bool, - array: Bool??, + array: Bool?, relatedCollection: String, relationType: String, twoWay: Bool, diff --git a/Sources/AppwriteModels/AttributeString.swift b/Sources/AppwriteModels/AttributeString.swift index db692b8..4be6e57 100644 --- a/Sources/AppwriteModels/AttributeString.swift +++ b/Sources/AppwriteModels/AttributeString.swift @@ -7,26 +7,34 @@ public class AttributeString { /// Attribute Key. public let key: String + /// Attribute type. public let type: String + /// Attribute status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed` public let status: String + /// Error message. Displays error generated on failure of creating or deleting an attribute. public let error: String + /// Is attribute required? public let `required`: Bool + /// Is attribute an array? - public let array: Bool?? + public let array: Bool? + /// Attribute size. public let size: Int + /// Default value for attribute when not provided. Cannot be set when attribute is required. - public let `default`: String?? + public let `default`: String? + init( @@ -35,9 +43,9 @@ public class AttributeString { status: String, error: String, `required`: Bool, - array: Bool??, + array: Bool?, size: Int, - `default`: String?? + `default`: String? ) { self.key = key self.type = type diff --git a/Sources/AppwriteModels/AttributeUrl.swift b/Sources/AppwriteModels/AttributeUrl.swift index 8594a32..a038b6e 100644 --- a/Sources/AppwriteModels/AttributeUrl.swift +++ b/Sources/AppwriteModels/AttributeUrl.swift @@ -7,26 +7,34 @@ public class AttributeUrl { /// Attribute Key. public let key: String + /// Attribute type. public let type: String + /// Attribute status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed` public let status: String + /// Error message. Displays error generated on failure of creating or deleting an attribute. public let error: String + /// Is attribute required? public let `required`: Bool + /// Is attribute an array? - public let array: Bool?? + public let array: Bool? + /// String format. public let format: String + /// Default value for attribute when not provided. Cannot be set when attribute is required. - public let `default`: String?? + public let `default`: String? + init( @@ -35,9 +43,9 @@ public class AttributeUrl { status: String, error: String, `required`: Bool, - array: Bool??, + array: Bool?, format: String, - `default`: String?? + `default`: String? ) { self.key = key self.type = type diff --git a/Sources/AppwriteModels/Bucket.swift b/Sources/AppwriteModels/Bucket.swift index 9986ae6..8367728 100644 --- a/Sources/AppwriteModels/Bucket.swift +++ b/Sources/AppwriteModels/Bucket.swift @@ -7,40 +7,52 @@ public class Bucket { /// Bucket ID. public let id: String + /// Bucket creation time in ISO 8601 format. public let createdAt: String + /// Bucket update date in ISO 8601 format. public let updatedAt: String + /// Bucket permissions. [Learn more about permissions](https://appwrite.io/docs/permissions). public let permissions: [Any] + /// Whether file-level security is enabled. [Learn more about permissions](https://appwrite.io/docs/permissions). public let fileSecurity: Bool + /// Bucket name. public let name: String + /// Bucket enabled. public let enabled: Bool + /// Maximum file size supported. public let maximumFileSize: Int + /// Allowed file extensions. public let allowedFileExtensions: [Any] + /// Compression algorithm choosen for compression. Will be one of none, [gzip](https://en.wikipedia.org/wiki/Gzip), or [zstd](https://en.wikipedia.org/wiki/Zstd). public let compression: String + /// Bucket is encrypted. public let encryption: Bool + /// Virus scanning is enabled. public let antivirus: Bool + init( id: String, createdAt: String, diff --git a/Sources/AppwriteModels/BucketList.swift b/Sources/AppwriteModels/BucketList.swift index 2937fa6..2a26b44 100644 --- a/Sources/AppwriteModels/BucketList.swift +++ b/Sources/AppwriteModels/BucketList.swift @@ -7,10 +7,12 @@ public class BucketList { /// Total number of buckets documents that matched your query. public let total: Int + /// List of buckets. public let buckets: [Bucket] + init( total: Int, buckets: [Bucket] diff --git a/Sources/AppwriteModels/Build.swift b/Sources/AppwriteModels/Build.swift index 1de9b05..7f490f7 100644 --- a/Sources/AppwriteModels/Build.swift +++ b/Sources/AppwriteModels/Build.swift @@ -7,31 +7,40 @@ public class Build { /// Build ID. public let id: String + /// The deployment that created this build. public let deploymentId: String + /// The build status. There are a few different types and each one means something different. \nFailed - The deployment build has failed. More details can usually be found in buildStderr\nReady - The deployment build was successful and the deployment is ready to be deployed\nProcessing - The deployment is currently waiting to have a build triggered\nBuilding - The deployment is currently being built public let status: String + /// The stdout of the build. public let stdout: String + /// The stderr of the build. public let stderr: String + /// The deployment creation date in ISO 8601 format. public let startTime: String + /// The time the build was finished in ISO 8601 format. public let endTime: String + /// The build duration in seconds. public let duration: Int + /// The code size in bytes. public let size: Int + init( id: String, deploymentId: String, diff --git a/Sources/AppwriteModels/Collection.swift b/Sources/AppwriteModels/Collection.swift index 7ff6243..2e84d4a 100644 --- a/Sources/AppwriteModels/Collection.swift +++ b/Sources/AppwriteModels/Collection.swift @@ -7,34 +7,44 @@ public class Collection { /// Collection ID. public let id: String + /// Collection creation date in ISO 8601 format. public let createdAt: String + /// Collection update date in ISO 8601 format. public let updatedAt: String + /// Collection permissions. [Learn more about permissions](https://appwrite.io/docs/permissions). public let permissions: [Any] + /// Database ID. public let databaseId: String + /// Collection name. public let name: String + /// Collection enabled. Can be 'enabled' or 'disabled'. When disabled, the collection is inaccessible to users, but remains accessible to Server SDKs using API keys. public let enabled: Bool + /// Whether document-level permissions are enabled. [Learn more about permissions](https://appwrite.io/docs/permissions). public let documentSecurity: Bool + /// Collection attributes. public let attributes: [Any] + /// Collection indexes. public let indexes: [Index] + init( id: String, createdAt: String, diff --git a/Sources/AppwriteModels/CollectionList.swift b/Sources/AppwriteModels/CollectionList.swift index 295cfa0..1abcb60 100644 --- a/Sources/AppwriteModels/CollectionList.swift +++ b/Sources/AppwriteModels/CollectionList.swift @@ -7,10 +7,12 @@ public class CollectionList { /// Total number of collections documents that matched your query. public let total: Int + /// List of collections. public let collections: [Collection] + init( total: Int, collections: [Collection] diff --git a/Sources/AppwriteModels/Continent.swift b/Sources/AppwriteModels/Continent.swift index f181353..7eb40b9 100644 --- a/Sources/AppwriteModels/Continent.swift +++ b/Sources/AppwriteModels/Continent.swift @@ -7,10 +7,12 @@ public class Continent { /// Continent name. public let name: String + /// Continent two letter code. public let code: String + init( name: String, code: String diff --git a/Sources/AppwriteModels/ContinentList.swift b/Sources/AppwriteModels/ContinentList.swift index 3cd7620..0b60954 100644 --- a/Sources/AppwriteModels/ContinentList.swift +++ b/Sources/AppwriteModels/ContinentList.swift @@ -7,10 +7,12 @@ public class ContinentList { /// Total number of continents documents that matched your query. public let total: Int + /// List of continents. public let continents: [Continent] + init( total: Int, continents: [Continent] diff --git a/Sources/AppwriteModels/Country.swift b/Sources/AppwriteModels/Country.swift index 3ce533b..5a79308 100644 --- a/Sources/AppwriteModels/Country.swift +++ b/Sources/AppwriteModels/Country.swift @@ -7,10 +7,12 @@ public class Country { /// Country name. public let name: String + /// Country two-character ISO 3166-1 alpha code. public let code: String + init( name: String, code: String diff --git a/Sources/AppwriteModels/CountryList.swift b/Sources/AppwriteModels/CountryList.swift index 8d120bd..622ebf0 100644 --- a/Sources/AppwriteModels/CountryList.swift +++ b/Sources/AppwriteModels/CountryList.swift @@ -7,10 +7,12 @@ public class CountryList { /// Total number of countries documents that matched your query. public let total: Int + /// List of countries. public let countries: [Country] + init( total: Int, countries: [Country] diff --git a/Sources/AppwriteModels/Currency.swift b/Sources/AppwriteModels/Currency.swift index d93ce0c..7ec64d2 100644 --- a/Sources/AppwriteModels/Currency.swift +++ b/Sources/AppwriteModels/Currency.swift @@ -7,25 +7,32 @@ public class Currency { /// Currency symbol. public let symbol: String + /// Currency name. public let name: String + /// Currency native symbol. public let symbolNative: String + /// Number of decimal digits. public let decimalDigits: Int + /// Currency digit rounding. public let rounding: Double + /// Currency code in [ISO 4217-1](http://en.wikipedia.org/wiki/ISO_4217) three-character format. public let code: String + /// Currency plural name public let namePlural: String + init( symbol: String, name: String, diff --git a/Sources/AppwriteModels/CurrencyList.swift b/Sources/AppwriteModels/CurrencyList.swift index a2e9f00..e42d9ad 100644 --- a/Sources/AppwriteModels/CurrencyList.swift +++ b/Sources/AppwriteModels/CurrencyList.swift @@ -7,10 +7,12 @@ public class CurrencyList { /// Total number of currencies documents that matched your query. public let total: Int + /// List of currencies. public let currencies: [Currency] + init( total: Int, currencies: [Currency] diff --git a/Sources/AppwriteModels/Database.swift b/Sources/AppwriteModels/Database.swift index fd97fe8..6985155 100644 --- a/Sources/AppwriteModels/Database.swift +++ b/Sources/AppwriteModels/Database.swift @@ -7,19 +7,24 @@ public class Database { /// Database ID. public let id: String + /// Database name. public let name: String + /// Database creation date in ISO 8601 format. public let createdAt: String + /// Database update date in ISO 8601 format. public let updatedAt: String + /// If database is enabled. Can be 'enabled' or 'disabled'. When disabled, the database is inaccessible to users, but remains accessible to Server SDKs using API keys. public let enabled: Bool + init( id: String, name: String, diff --git a/Sources/AppwriteModels/DatabaseList.swift b/Sources/AppwriteModels/DatabaseList.swift index 4932ee4..035211c 100644 --- a/Sources/AppwriteModels/DatabaseList.swift +++ b/Sources/AppwriteModels/DatabaseList.swift @@ -7,10 +7,12 @@ public class DatabaseList { /// Total number of databases documents that matched your query. public let total: Int + /// List of databases. public let databases: [Database] + init( total: Int, databases: [Database] diff --git a/Sources/AppwriteModels/Deployment.swift b/Sources/AppwriteModels/Deployment.swift index 3c7f9d9..f2844ff 100644 --- a/Sources/AppwriteModels/Deployment.swift +++ b/Sources/AppwriteModels/Deployment.swift @@ -7,76 +7,100 @@ public class Deployment { /// Deployment ID. public let id: String + /// Deployment creation date in ISO 8601 format. public let createdAt: String + /// Deployment update date in ISO 8601 format. public let updatedAt: String + /// Type of deployment. public let type: String + /// Resource ID. public let resourceId: String + /// Resource type. public let resourceType: String + /// The entrypoint file to use to execute the deployment code. public let entrypoint: String + /// The code size in bytes. public let size: Int + /// The build output size in bytes. public let buildSize: Int + /// The current build ID. public let buildId: String + /// Whether the deployment should be automatically activated. public let activate: Bool + /// The deployment status. Possible values are "processing", "building", "waiting", "ready", and "failed". public let status: String + /// The build logs. public let buildLogs: String + /// The current build time in seconds. public let buildTime: Int + /// The name of the vcs provider repository public let providerRepositoryName: String + /// The name of the vcs provider repository owner public let providerRepositoryOwner: String + /// The url of the vcs provider repository public let providerRepositoryUrl: String + /// The branch of the vcs repository public let providerBranch: String + /// The commit hash of the vcs commit public let providerCommitHash: String + /// The url of vcs commit author public let providerCommitAuthorUrl: String + /// The name of vcs commit author public let providerCommitAuthor: String + /// The commit message public let providerCommitMessage: String + /// The url of the vcs commit public let providerCommitUrl: String + /// The branch of the vcs repository public let providerBranchUrl: String + init( id: String, createdAt: String, diff --git a/Sources/AppwriteModels/DeploymentList.swift b/Sources/AppwriteModels/DeploymentList.swift index aaa874d..098d790 100644 --- a/Sources/AppwriteModels/DeploymentList.swift +++ b/Sources/AppwriteModels/DeploymentList.swift @@ -7,10 +7,12 @@ public class DeploymentList { /// Total number of deployments documents that matched your query. public let total: Int + /// List of deployments. public let deployments: [Deployment] + init( total: Int, deployments: [Deployment] diff --git a/Sources/AppwriteModels/Document.swift b/Sources/AppwriteModels/Document.swift index 94069f9..20a4f86 100644 --- a/Sources/AppwriteModels/Document.swift +++ b/Sources/AppwriteModels/Document.swift @@ -7,21 +7,27 @@ public class Document { /// Document ID. public let id: String + /// Collection ID. public let collectionId: String + /// Database ID. public let databaseId: String + /// Document creation date in ISO 8601 format. public let createdAt: String + /// Document update date in ISO 8601 format. public let updatedAt: String + /// Document permissions. [Learn more about permissions](https://appwrite.io/docs/permissions). public let permissions: [Any] + /// Additional properties public let data: T diff --git a/Sources/AppwriteModels/DocumentList.swift b/Sources/AppwriteModels/DocumentList.swift index 4a573fe..e71c5ad 100644 --- a/Sources/AppwriteModels/DocumentList.swift +++ b/Sources/AppwriteModels/DocumentList.swift @@ -7,10 +7,12 @@ public class DocumentList { /// Total number of documents documents that matched your query. public let total: Int + /// List of documents. public let documents: [Document] + init( total: Int, documents: [Document] diff --git a/Sources/AppwriteModels/Execution.swift b/Sources/AppwriteModels/Execution.swift index add85f6..9301a8b 100644 --- a/Sources/AppwriteModels/Execution.swift +++ b/Sources/AppwriteModels/Execution.swift @@ -7,53 +7,70 @@ public class Execution { /// Execution ID. public let id: String + /// Execution creation date in ISO 8601 format. public let createdAt: String + /// Execution upate date in ISO 8601 format. public let updatedAt: String + /// Execution roles. public let permissions: [Any] + /// Function ID. public let functionId: String + /// The trigger that caused the function to execute. Possible values can be: `http`, `schedule`, or `event`. public let trigger: String + /// The status of the function execution. Possible values can be: `waiting`, `processing`, `completed`, or `failed`. public let status: String + /// HTTP request method type. public let requestMethod: String + /// HTTP request path and query. public let requestPath: String + /// HTTP response headers as a key-value object. This will return only whitelisted headers. All headers are returned if execution is created as synchronous. public let requestHeaders: [Headers] + /// HTTP response status code. public let responseStatusCode: Int + /// HTTP response body. This will return empty unless execution is created as synchronous. public let responseBody: String + /// HTTP response headers as a key-value object. This will return only whitelisted headers. All headers are returned if execution is created as synchronous. public let responseHeaders: [Headers] + /// Function logs. Includes the last 4,000 characters. This will return an empty string unless the response is returned using an API key or as part of a webhook payload. public let logs: String + /// Function errors. Includes the last 4,000 characters. This will return an empty string unless the response is returned using an API key or as part of a webhook payload. public let errors: String + /// Function execution duration in seconds. public let duration: Double + /// The scheduled time for execution. If left empty, execution will be queued immediately. - public let scheduledAt: String?? + public let scheduledAt: String? + init( @@ -73,7 +90,7 @@ public class Execution { logs: String, errors: String, duration: Double, - scheduledAt: String?? + scheduledAt: String? ) { self.id = id self.createdAt = createdAt diff --git a/Sources/AppwriteModels/ExecutionList.swift b/Sources/AppwriteModels/ExecutionList.swift index 8a502d9..ae92f73 100644 --- a/Sources/AppwriteModels/ExecutionList.swift +++ b/Sources/AppwriteModels/ExecutionList.swift @@ -7,10 +7,12 @@ public class ExecutionList { /// Total number of executions documents that matched your query. public let total: Int + /// List of executions. public let executions: [Execution] + init( total: Int, executions: [Execution] diff --git a/Sources/AppwriteModels/File.swift b/Sources/AppwriteModels/File.swift index 04a5b89..e1669ec 100644 --- a/Sources/AppwriteModels/File.swift +++ b/Sources/AppwriteModels/File.swift @@ -7,37 +7,48 @@ public class File { /// File ID. public let id: String + /// Bucket ID. public let bucketId: String + /// File creation date in ISO 8601 format. public let createdAt: String + /// File update date in ISO 8601 format. public let updatedAt: String + /// File permissions. [Learn more about permissions](https://appwrite.io/docs/permissions). public let permissions: [Any] + /// File name. public let name: String + /// File MD5 signature. public let signature: String + /// File mime type. public let mimeType: String + /// File original size in bytes. public let sizeOriginal: Int + /// Total number of chunks available public let chunksTotal: Int + /// Total number of chunks uploaded public let chunksUploaded: Int + init( id: String, bucketId: String, diff --git a/Sources/AppwriteModels/FileList.swift b/Sources/AppwriteModels/FileList.swift index 0d6ad88..51dbd44 100644 --- a/Sources/AppwriteModels/FileList.swift +++ b/Sources/AppwriteModels/FileList.swift @@ -7,10 +7,12 @@ public class FileList { /// Total number of files documents that matched your query. public let total: Int + /// List of files. public let files: [File] + init( total: Int, files: [File] diff --git a/Sources/AppwriteModels/Function.swift b/Sources/AppwriteModels/Function.swift index 2eb3f97..5dda729 100644 --- a/Sources/AppwriteModels/Function.swift +++ b/Sources/AppwriteModels/Function.swift @@ -7,76 +7,100 @@ public class Function { /// Function ID. public let id: String + /// Function creation date in ISO 8601 format. public let createdAt: String + /// Function update date in ISO 8601 format. public let updatedAt: String + /// Execution permissions. public let execute: [Any] + /// Function name. public let name: String + /// Function enabled. public let enabled: Bool + /// Is the function deployed with the latest configuration? This is set to false if you've changed an environment variables, entrypoint, commands, or other settings that needs redeploy to be applied. When the value is false, redeploy the function to update it with the latest configuration. public let live: Bool + /// Whether executions will be logged. When set to false, executions will not be logged, but will reduce resource used by your Appwrite project. public let logging: Bool + /// Function execution runtime. public let runtime: String + /// Function's active deployment ID. public let deployment: String + /// Allowed permission scopes. public let scopes: [Any] + /// Function variables. public let vars: [Variable] + /// Function trigger events. public let events: [Any] + /// Function execution schedult in CRON format. public let schedule: String + /// Function execution timeout in seconds. public let timeout: Int + /// The entrypoint file used to execute the deployment. public let entrypoint: String + /// The build command used to build the deployment. public let commands: String + /// Version of Open Runtimes used for the function. public let version: String + /// Function VCS (Version Control System) installation id. public let installationId: String + /// VCS (Version Control System) Repository ID public let providerRepositoryId: String + /// VCS (Version Control System) branch name public let providerBranch: String + /// Path to function in VCS (Version Control System) repository public let providerRootDirectory: String + /// Is VCS (Version Control System) connection is in silent mode? When in silence mode, no comments will be posted on the repository pull or merge requests public let providerSilentMode: Bool + /// Machine specification for builds and executions. public let specification: String + init( id: String, createdAt: String, diff --git a/Sources/AppwriteModels/FunctionList.swift b/Sources/AppwriteModels/FunctionList.swift index b36bfc6..bb8c38e 100644 --- a/Sources/AppwriteModels/FunctionList.swift +++ b/Sources/AppwriteModels/FunctionList.swift @@ -7,10 +7,12 @@ public class FunctionList { /// Total number of functions documents that matched your query. public let total: Int + /// List of functions. public let functions: [Function] + init( total: Int, functions: [Function] diff --git a/Sources/AppwriteModels/Headers.swift b/Sources/AppwriteModels/Headers.swift index 6f554ac..aa1a95f 100644 --- a/Sources/AppwriteModels/Headers.swift +++ b/Sources/AppwriteModels/Headers.swift @@ -7,10 +7,12 @@ public class Headers { /// Header name. public let name: String + /// Header value. public let value: String + init( name: String, value: String diff --git a/Sources/AppwriteModels/HealthAntivirus.swift b/Sources/AppwriteModels/HealthAntivirus.swift index 17636de..ac14223 100644 --- a/Sources/AppwriteModels/HealthAntivirus.swift +++ b/Sources/AppwriteModels/HealthAntivirus.swift @@ -7,10 +7,12 @@ public class HealthAntivirus { /// Antivirus version. public let version: String + /// Antivirus status. Possible values can are: `disabled`, `offline`, `online` public let status: String + init( version: String, status: String diff --git a/Sources/AppwriteModels/HealthCertificate.swift b/Sources/AppwriteModels/HealthCertificate.swift index 9d7b938..b892537 100644 --- a/Sources/AppwriteModels/HealthCertificate.swift +++ b/Sources/AppwriteModels/HealthCertificate.swift @@ -7,22 +7,28 @@ public class HealthCertificate { /// Certificate name public let name: String + /// Subject SN public let subjectSN: String + /// Issuer organisation public let issuerOrganisation: String + /// Valid from public let validFrom: String + /// Valid to public let validTo: String + /// Signature type SN public let signatureTypeSN: String + init( name: String, subjectSN: String, diff --git a/Sources/AppwriteModels/HealthQueue.swift b/Sources/AppwriteModels/HealthQueue.swift index 43a7906..894f0c4 100644 --- a/Sources/AppwriteModels/HealthQueue.swift +++ b/Sources/AppwriteModels/HealthQueue.swift @@ -8,6 +8,7 @@ public class HealthQueue { public let size: Int + init( size: Int ) { diff --git a/Sources/AppwriteModels/HealthStatus.swift b/Sources/AppwriteModels/HealthStatus.swift index f7fb7e6..293e3f4 100644 --- a/Sources/AppwriteModels/HealthStatus.swift +++ b/Sources/AppwriteModels/HealthStatus.swift @@ -7,13 +7,16 @@ public class HealthStatus { /// Name of the service. public let name: String + /// Duration in milliseconds how long the health check took. public let ping: Int + /// Service status. Possible values can are: `pass`, `fail` public let status: String + init( name: String, ping: Int, diff --git a/Sources/AppwriteModels/HealthTime.swift b/Sources/AppwriteModels/HealthTime.swift index 2f4cf72..7b64f3b 100644 --- a/Sources/AppwriteModels/HealthTime.swift +++ b/Sources/AppwriteModels/HealthTime.swift @@ -7,13 +7,16 @@ public class HealthTime { /// Current unix timestamp on trustful remote server. public let remoteTime: Int + /// Current unix timestamp of local server where Appwrite runs. public let localTime: Int + /// Difference of unix remote and local timestamps in milliseconds. public let diff: Int + init( remoteTime: Int, localTime: Int, diff --git a/Sources/AppwriteModels/Identity.swift b/Sources/AppwriteModels/Identity.swift index fb54237..0c7d09e 100644 --- a/Sources/AppwriteModels/Identity.swift +++ b/Sources/AppwriteModels/Identity.swift @@ -7,34 +7,44 @@ public class Identity { /// Identity ID. public let id: String + /// Identity creation date in ISO 8601 format. public let createdAt: String + /// Identity update date in ISO 8601 format. public let updatedAt: String + /// User ID. public let userId: String + /// Identity Provider. public let provider: String + /// ID of the User in the Identity Provider. public let providerUid: String + /// Email of the User in the Identity Provider. public let providerEmail: String + /// Identity Provider Access Token. public let providerAccessToken: String + /// The date of when the access token expires in ISO 8601 format. public let providerAccessTokenExpiry: String + /// Identity Provider Refresh Token. public let providerRefreshToken: String + init( id: String, createdAt: String, diff --git a/Sources/AppwriteModels/IdentityList.swift b/Sources/AppwriteModels/IdentityList.swift index b068f4c..a6c3477 100644 --- a/Sources/AppwriteModels/IdentityList.swift +++ b/Sources/AppwriteModels/IdentityList.swift @@ -7,10 +7,12 @@ public class IdentityList { /// Total number of identities documents that matched your query. public let total: Int + /// List of identities. public let identities: [Identity] + init( total: Int, identities: [Identity] diff --git a/Sources/AppwriteModels/Index.swift b/Sources/AppwriteModels/Index.swift index 965ca0c..784e368 100644 --- a/Sources/AppwriteModels/Index.swift +++ b/Sources/AppwriteModels/Index.swift @@ -7,20 +7,26 @@ public class Index { /// Index Key. public let key: String + /// Index type. public let type: String + /// Index status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed` public let status: String + /// Error message. Displays error generated on failure of creating or deleting an index. public let error: String + /// Index attributes. public let attributes: [Any] + /// Index orders. - public let orders: [Any]?? + public let orders: [Any]? + init( @@ -29,7 +35,7 @@ public class Index { status: String, error: String, attributes: [Any], - orders: [Any]?? + orders: [Any]? ) { self.key = key self.type = type diff --git a/Sources/AppwriteModels/IndexList.swift b/Sources/AppwriteModels/IndexList.swift index 6ca5ae9..8206078 100644 --- a/Sources/AppwriteModels/IndexList.swift +++ b/Sources/AppwriteModels/IndexList.swift @@ -7,10 +7,12 @@ public class IndexList { /// Total number of indexes documents that matched your query. public let total: Int + /// List of indexes. public let indexes: [Index] + init( total: Int, indexes: [Index] diff --git a/Sources/AppwriteModels/Jwt.swift b/Sources/AppwriteModels/Jwt.swift index 5778435..902f5b2 100644 --- a/Sources/AppwriteModels/Jwt.swift +++ b/Sources/AppwriteModels/Jwt.swift @@ -8,6 +8,7 @@ public class Jwt { public let jwt: String + init( jwt: String ) { diff --git a/Sources/AppwriteModels/Language.swift b/Sources/AppwriteModels/Language.swift index f385d5a..3111149 100644 --- a/Sources/AppwriteModels/Language.swift +++ b/Sources/AppwriteModels/Language.swift @@ -7,13 +7,16 @@ public class Language { /// Language name. public let name: String + /// Language two-character ISO 639-1 codes. public let code: String + /// Language native name. public let nativeName: String + init( name: String, code: String, diff --git a/Sources/AppwriteModels/LanguageList.swift b/Sources/AppwriteModels/LanguageList.swift index b4515e3..acba750 100644 --- a/Sources/AppwriteModels/LanguageList.swift +++ b/Sources/AppwriteModels/LanguageList.swift @@ -7,10 +7,12 @@ public class LanguageList { /// Total number of languages documents that matched your query. public let total: Int + /// List of languages. public let languages: [Language] + init( total: Int, languages: [Language] diff --git a/Sources/AppwriteModels/Locale.swift b/Sources/AppwriteModels/Locale.swift index 7445776..2f4d046 100644 --- a/Sources/AppwriteModels/Locale.swift +++ b/Sources/AppwriteModels/Locale.swift @@ -7,25 +7,32 @@ public class Locale { /// User IP address. public let ip: String + /// Country code in [ISO 3166-1](http://en.wikipedia.org/wiki/ISO_3166-1) two-character format public let countryCode: String + /// Country name. This field support localization. public let country: String + /// Continent code. A two character continent code "AF" for Africa, "AN" for Antarctica, "AS" for Asia, "EU" for Europe, "NA" for North America, "OC" for Oceania, and "SA" for South America. public let continentCode: String + /// Continent name. This field support localization. public let continent: String + /// True if country is part of the European Union. public let eu: Bool + /// Currency code in [ISO 4217-1](http://en.wikipedia.org/wiki/ISO_4217) three-character format public let currency: String + init( ip: String, countryCode: String, diff --git a/Sources/AppwriteModels/LocaleCode.swift b/Sources/AppwriteModels/LocaleCode.swift index 8e561c7..2d6185e 100644 --- a/Sources/AppwriteModels/LocaleCode.swift +++ b/Sources/AppwriteModels/LocaleCode.swift @@ -7,10 +7,12 @@ public class LocaleCode { /// Locale codes in [ISO 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) public let code: String + /// Locale name public let name: String + init( code: String, name: String diff --git a/Sources/AppwriteModels/LocaleCodeList.swift b/Sources/AppwriteModels/LocaleCodeList.swift index 895ef7d..dca47d8 100644 --- a/Sources/AppwriteModels/LocaleCodeList.swift +++ b/Sources/AppwriteModels/LocaleCodeList.swift @@ -7,10 +7,12 @@ public class LocaleCodeList { /// Total number of localeCodes documents that matched your query. public let total: Int + /// List of localeCodes. public let localeCodes: [LocaleCode] + init( total: Int, localeCodes: [LocaleCode] diff --git a/Sources/AppwriteModels/Log.swift b/Sources/AppwriteModels/Log.swift index df5464d..bf0135e 100644 --- a/Sources/AppwriteModels/Log.swift +++ b/Sources/AppwriteModels/Log.swift @@ -7,67 +7,88 @@ public class Log { /// Event name. public let event: String + /// User ID. public let userId: String + /// User Email. public let userEmail: String + /// User Name. public let userName: String + /// API mode when event triggered. public let mode: String + /// IP session in use when the session was created. public let ip: String + /// Log creation date in ISO 8601 format. public let time: String + /// Operating system code name. View list of [available options](https://github.com/appwrite/appwrite/blob/master/docs/lists/os.json). public let osCode: String + /// Operating system name. public let osName: String + /// Operating system version. public let osVersion: String + /// Client type. public let clientType: String + /// Client code name. View list of [available options](https://github.com/appwrite/appwrite/blob/master/docs/lists/clients.json). public let clientCode: String + /// Client name. public let clientName: String + /// Client version. public let clientVersion: String + /// Client engine name. public let clientEngine: String + /// Client engine name. public let clientEngineVersion: String + /// Device name. public let deviceName: String + /// Device brand name. public let deviceBrand: String + /// Device model name. public let deviceModel: String + /// Country two-character ISO 3166-1 alpha code. public let countryCode: String + /// Country name. public let countryName: String + init( event: String, userId: String, diff --git a/Sources/AppwriteModels/LogList.swift b/Sources/AppwriteModels/LogList.swift index 2f99674..241f775 100644 --- a/Sources/AppwriteModels/LogList.swift +++ b/Sources/AppwriteModels/LogList.swift @@ -7,10 +7,12 @@ public class LogList { /// Total number of logs documents that matched your query. public let total: Int + /// List of logs. public let logs: [Log] + init( total: Int, logs: [Log] diff --git a/Sources/AppwriteModels/Membership.swift b/Sources/AppwriteModels/Membership.swift index 55fb199..176b746 100644 --- a/Sources/AppwriteModels/Membership.swift +++ b/Sources/AppwriteModels/Membership.swift @@ -7,43 +7,56 @@ public class Membership { /// Membership ID. public let id: String + /// Membership creation date in ISO 8601 format. public let createdAt: String + /// Membership update date in ISO 8601 format. public let updatedAt: String + /// User ID. public let userId: String + /// User name. public let userName: String + /// User email address. public let userEmail: String + /// Team ID. public let teamId: String + /// Team name. public let teamName: String + /// Date, the user has been invited to join the team in ISO 8601 format. public let invited: String + /// Date, the user has accepted the invitation to join the team in ISO 8601 format. public let joined: String + /// User confirmation status, true if the user has joined the team or false otherwise. public let confirm: Bool + /// Multi factor authentication status, true if the user has MFA enabled or false otherwise. public let mfa: Bool + /// User list of roles public let roles: [Any] + init( id: String, createdAt: String, diff --git a/Sources/AppwriteModels/MembershipList.swift b/Sources/AppwriteModels/MembershipList.swift index f27cc99..5218b20 100644 --- a/Sources/AppwriteModels/MembershipList.swift +++ b/Sources/AppwriteModels/MembershipList.swift @@ -7,10 +7,12 @@ public class MembershipList { /// Total number of memberships documents that matched your query. public let total: Int + /// List of memberships. public let memberships: [Membership] + init( total: Int, memberships: [Membership] diff --git a/Sources/AppwriteModels/Message.swift b/Sources/AppwriteModels/Message.swift index f415ce6..382d98d 100644 --- a/Sources/AppwriteModels/Message.swift +++ b/Sources/AppwriteModels/Message.swift @@ -7,43 +7,56 @@ public class Message { /// Message ID. public let id: String + /// Message creation time in ISO 8601 format. public let createdAt: String + /// Message update date in ISO 8601 format. public let updatedAt: String + /// Message provider type. public let providerType: String + /// Topic IDs set as recipients. public let topics: [Any] + /// User IDs set as recipients. public let users: [Any] + /// Target IDs set as recipients. public let targets: [Any] + /// The scheduled time for message. - public let scheduledAt: String?? + public let scheduledAt: String? + /// The time when the message was delivered. - public let deliveredAt: String?? + public let deliveredAt: String? + /// Delivery errors if any. - public let deliveryErrors: [Any]?? + public let deliveryErrors: [Any]? + /// Number of recipients the message was delivered to. public let deliveredTotal: Int + /// Data of the message. public let data: Any + /// Status of delivery. public let status: String + init( id: String, createdAt: String, @@ -52,9 +65,9 @@ public class Message { topics: [Any], users: [Any], targets: [Any], - scheduledAt: String??, - deliveredAt: String??, - deliveryErrors: [Any]??, + scheduledAt: String?, + deliveredAt: String?, + deliveryErrors: [Any]?, deliveredTotal: Int, data: Any, status: String diff --git a/Sources/AppwriteModels/MessageList.swift b/Sources/AppwriteModels/MessageList.swift index c64f376..e4489cb 100644 --- a/Sources/AppwriteModels/MessageList.swift +++ b/Sources/AppwriteModels/MessageList.swift @@ -7,10 +7,12 @@ public class MessageList { /// Total number of messages documents that matched your query. public let total: Int + /// List of messages. public let messages: [Message] + init( total: Int, messages: [Message] diff --git a/Sources/AppwriteModels/MfaChallenge.swift b/Sources/AppwriteModels/MfaChallenge.swift index 5a1e874..6d7481b 100644 --- a/Sources/AppwriteModels/MfaChallenge.swift +++ b/Sources/AppwriteModels/MfaChallenge.swift @@ -7,16 +7,20 @@ public class MfaChallenge { /// Token ID. public let id: String + /// Token creation date in ISO 8601 format. public let createdAt: String + /// User ID. public let userId: String + /// Token expiration date in ISO 8601 format. public let expire: String + init( id: String, createdAt: String, diff --git a/Sources/AppwriteModels/MfaFactors.swift b/Sources/AppwriteModels/MfaFactors.swift index 716c055..88adf5e 100644 --- a/Sources/AppwriteModels/MfaFactors.swift +++ b/Sources/AppwriteModels/MfaFactors.swift @@ -7,16 +7,20 @@ public class MfaFactors { /// Can TOTP be used for MFA challenge for this account. public let totp: Bool + /// Can phone (SMS) be used for MFA challenge for this account. public let phone: Bool + /// Can email be used for MFA challenge for this account. public let email: Bool + /// Can recovery code be used for MFA challenge for this account. public let recoveryCode: Bool + init( totp: Bool, phone: Bool, diff --git a/Sources/AppwriteModels/MfaRecoveryCodes.swift b/Sources/AppwriteModels/MfaRecoveryCodes.swift index 8dd063b..8b57721 100644 --- a/Sources/AppwriteModels/MfaRecoveryCodes.swift +++ b/Sources/AppwriteModels/MfaRecoveryCodes.swift @@ -8,6 +8,7 @@ public class MfaRecoveryCodes { public let recoveryCodes: [Any] + init( recoveryCodes: [Any] ) { diff --git a/Sources/AppwriteModels/MfaType.swift b/Sources/AppwriteModels/MfaType.swift index 503134f..80c3526 100644 --- a/Sources/AppwriteModels/MfaType.swift +++ b/Sources/AppwriteModels/MfaType.swift @@ -7,10 +7,12 @@ public class MfaType { /// Secret token used for TOTP factor. public let secret: String + /// URI for authenticator apps. public let uri: String + init( secret: String, uri: String diff --git a/Sources/AppwriteModels/Phone.swift b/Sources/AppwriteModels/Phone.swift index 2e113b4..a1bb096 100644 --- a/Sources/AppwriteModels/Phone.swift +++ b/Sources/AppwriteModels/Phone.swift @@ -7,13 +7,16 @@ public class Phone { /// Phone code. public let code: String + /// Country two-character ISO 3166-1 alpha code. public let countryCode: String + /// Country name. public let countryName: String + init( code: String, countryCode: String, diff --git a/Sources/AppwriteModels/PhoneList.swift b/Sources/AppwriteModels/PhoneList.swift index 38a5a6f..6918afa 100644 --- a/Sources/AppwriteModels/PhoneList.swift +++ b/Sources/AppwriteModels/PhoneList.swift @@ -7,10 +7,12 @@ public class PhoneList { /// Total number of phones documents that matched your query. public let total: Int + /// List of phones. public let phones: [Phone] + init( total: Int, phones: [Phone] diff --git a/Sources/AppwriteModels/Provider.swift b/Sources/AppwriteModels/Provider.swift index e3cf2cd..d5545a6 100644 --- a/Sources/AppwriteModels/Provider.swift +++ b/Sources/AppwriteModels/Provider.swift @@ -7,29 +7,38 @@ public class Provider { /// Provider ID. public let id: String + /// Provider creation time in ISO 8601 format. public let createdAt: String + /// Provider update date in ISO 8601 format. public let updatedAt: String + /// The name for the provider instance. public let name: String + /// The name of the provider service. public let provider: String + /// Is provider enabled? public let enabled: Bool + /// Type of provider. public let type: String + /// Provider credentials. public let credentials: Any + /// Provider options. - public let options: Any?? + public let options: Any? + init( @@ -41,7 +50,7 @@ public class Provider { enabled: Bool, type: String, credentials: Any, - options: Any?? + options: Any? ) { self.id = id self.createdAt = createdAt diff --git a/Sources/AppwriteModels/ProviderList.swift b/Sources/AppwriteModels/ProviderList.swift index 16e2293..6e458a5 100644 --- a/Sources/AppwriteModels/ProviderList.swift +++ b/Sources/AppwriteModels/ProviderList.swift @@ -7,10 +7,12 @@ public class ProviderList { /// Total number of providers documents that matched your query. public let total: Int + /// List of providers. public let providers: [Provider] + init( total: Int, providers: [Provider] diff --git a/Sources/AppwriteModels/Runtime.swift b/Sources/AppwriteModels/Runtime.swift index 66906e1..64dc92f 100644 --- a/Sources/AppwriteModels/Runtime.swift +++ b/Sources/AppwriteModels/Runtime.swift @@ -7,28 +7,36 @@ public class Runtime { /// Runtime ID. public let id: String + /// Parent runtime key. public let key: String + /// Runtime Name. public let name: String + /// Runtime version. public let version: String + /// Base Docker image used to build the runtime. public let base: String + /// Image name of Docker Hub. public let image: String + /// Name of the logo image. public let logo: String + /// List of supported architectures. public let supports: [Any] + init( id: String, key: String, diff --git a/Sources/AppwriteModels/RuntimeList.swift b/Sources/AppwriteModels/RuntimeList.swift index 4cd4153..2a2859e 100644 --- a/Sources/AppwriteModels/RuntimeList.swift +++ b/Sources/AppwriteModels/RuntimeList.swift @@ -7,10 +7,12 @@ public class RuntimeList { /// Total number of runtimes documents that matched your query. public let total: Int + /// List of runtimes. public let runtimes: [Runtime] + init( total: Int, runtimes: [Runtime] diff --git a/Sources/AppwriteModels/Session.swift b/Sources/AppwriteModels/Session.swift index 7214468..c6aca5b 100644 --- a/Sources/AppwriteModels/Session.swift +++ b/Sources/AppwriteModels/Session.swift @@ -7,91 +7,120 @@ public class Session { /// Session ID. public let id: String + /// Session creation date in ISO 8601 format. public let createdAt: String + /// Session update date in ISO 8601 format. public let updatedAt: String + /// User ID. public let userId: String + /// Session expiration date in ISO 8601 format. public let expire: String + /// Session Provider. public let provider: String + /// Session Provider User ID. public let providerUid: String + /// Session Provider Access Token. public let providerAccessToken: String + /// The date of when the access token expires in ISO 8601 format. public let providerAccessTokenExpiry: String + /// Session Provider Refresh Token. public let providerRefreshToken: String + /// IP in use when the session was created. public let ip: String + /// Operating system code name. View list of [available options](https://github.com/appwrite/appwrite/blob/master/docs/lists/os.json). public let osCode: String + /// Operating system name. public let osName: String + /// Operating system version. public let osVersion: String + /// Client type. public let clientType: String + /// Client code name. View list of [available options](https://github.com/appwrite/appwrite/blob/master/docs/lists/clients.json). public let clientCode: String + /// Client name. public let clientName: String + /// Client version. public let clientVersion: String + /// Client engine name. public let clientEngine: String + /// Client engine name. public let clientEngineVersion: String + /// Device name. public let deviceName: String + /// Device brand name. public let deviceBrand: String + /// Device model name. public let deviceModel: String + /// Country two-character ISO 3166-1 alpha code. public let countryCode: String + /// Country name. public let countryName: String + /// Returns true if this the current user session. public let current: Bool + /// Returns a list of active session factors. public let factors: [Any] + /// Secret used to authenticate the user. Only included if the request was made with an API key public let secret: String + /// Most recent date in ISO 8601 format when the session successfully passed MFA challenge. public let mfaUpdatedAt: String + init( id: String, createdAt: String, diff --git a/Sources/AppwriteModels/SessionList.swift b/Sources/AppwriteModels/SessionList.swift index 409f72a..c526af9 100644 --- a/Sources/AppwriteModels/SessionList.swift +++ b/Sources/AppwriteModels/SessionList.swift @@ -7,10 +7,12 @@ public class SessionList { /// Total number of sessions documents that matched your query. public let total: Int + /// List of sessions. public let sessions: [Session] + init( total: Int, sessions: [Session] diff --git a/Sources/AppwriteModels/Specification.swift b/Sources/AppwriteModels/Specification.swift index fd9e49b..7a82ce2 100644 --- a/Sources/AppwriteModels/Specification.swift +++ b/Sources/AppwriteModels/Specification.swift @@ -7,16 +7,20 @@ public class Specification { /// Memory size in MB. public let memory: Int + /// Number of CPUs. public let cpus: Double + /// Is size enabled. public let enabled: Bool + /// Size slug. public let slug: String + init( memory: Int, cpus: Double, diff --git a/Sources/AppwriteModels/SpecificationList.swift b/Sources/AppwriteModels/SpecificationList.swift index fbe93ca..462d6c0 100644 --- a/Sources/AppwriteModels/SpecificationList.swift +++ b/Sources/AppwriteModels/SpecificationList.swift @@ -7,10 +7,12 @@ public class SpecificationList { /// Total number of specifications documents that matched your query. public let total: Int + /// List of specifications. public let specifications: [Specification] + init( total: Int, specifications: [Specification] diff --git a/Sources/AppwriteModels/Subscriber.swift b/Sources/AppwriteModels/Subscriber.swift index 5ab202d..f990bb4 100644 --- a/Sources/AppwriteModels/Subscriber.swift +++ b/Sources/AppwriteModels/Subscriber.swift @@ -7,31 +7,40 @@ public class Subscriber { /// Subscriber ID. public let id: String + /// Subscriber creation time in ISO 8601 format. public let createdAt: String + /// Subscriber update date in ISO 8601 format. public let updatedAt: String + /// Target ID. public let targetId: String + /// Target. public let target: Target + /// Topic ID. public let userId: String + /// User Name. public let userName: String + /// Topic ID. public let topicId: String + /// The target provider type. Can be one of the following: `email`, `sms` or `push`. public let providerType: String + init( id: String, createdAt: String, diff --git a/Sources/AppwriteModels/SubscriberList.swift b/Sources/AppwriteModels/SubscriberList.swift index 5d38226..f133c3f 100644 --- a/Sources/AppwriteModels/SubscriberList.swift +++ b/Sources/AppwriteModels/SubscriberList.swift @@ -7,10 +7,12 @@ public class SubscriberList { /// Total number of subscribers documents that matched your query. public let total: Int + /// List of subscribers. public let subscribers: [Subscriber] + init( total: Int, subscribers: [Subscriber] diff --git a/Sources/AppwriteModels/Target.swift b/Sources/AppwriteModels/Target.swift index 5974e3d..eaaf267 100644 --- a/Sources/AppwriteModels/Target.swift +++ b/Sources/AppwriteModels/Target.swift @@ -7,35 +7,43 @@ public class Target { /// Target ID. public let id: String + /// Target creation time in ISO 8601 format. public let createdAt: String + /// Target update date in ISO 8601 format. public let updatedAt: String + /// Target Name. public let name: String + /// User ID. public let userId: String + /// Provider ID. - public let providerId: String?? + public let providerId: String? + /// The target provider type. Can be one of the following: `email`, `sms` or `push`. public let providerType: String + /// The target identifier. public let identifier: String + init( id: String, createdAt: String, updatedAt: String, name: String, userId: String, - providerId: String??, + providerId: String?, providerType: String, identifier: String ) { diff --git a/Sources/AppwriteModels/TargetList.swift b/Sources/AppwriteModels/TargetList.swift index dadd887..c2ba57b 100644 --- a/Sources/AppwriteModels/TargetList.swift +++ b/Sources/AppwriteModels/TargetList.swift @@ -7,10 +7,12 @@ public class TargetList { /// Total number of targets documents that matched your query. public let total: Int + /// List of targets. public let targets: [Target] + init( total: Int, targets: [Target] diff --git a/Sources/AppwriteModels/Team.swift b/Sources/AppwriteModels/Team.swift index a44c305..9830c39 100644 --- a/Sources/AppwriteModels/Team.swift +++ b/Sources/AppwriteModels/Team.swift @@ -7,22 +7,28 @@ public class Team { /// Team ID. public let id: String + /// Team creation date in ISO 8601 format. public let createdAt: String + /// Team update date in ISO 8601 format. public let updatedAt: String + /// Team name. public let name: String + /// Total number of team members. public let total: Int + /// Team preferences as a key-value object public let prefs: Preferences + init( id: String, createdAt: String, diff --git a/Sources/AppwriteModels/TeamList.swift b/Sources/AppwriteModels/TeamList.swift index ec7e0bd..2934a13 100644 --- a/Sources/AppwriteModels/TeamList.swift +++ b/Sources/AppwriteModels/TeamList.swift @@ -7,10 +7,12 @@ public class TeamList { /// Total number of teams documents that matched your query. public let total: Int + /// List of teams. public let teams: [Team] + init( total: Int, teams: [Team] diff --git a/Sources/AppwriteModels/Token.swift b/Sources/AppwriteModels/Token.swift index 31d4b4a..5facdef 100644 --- a/Sources/AppwriteModels/Token.swift +++ b/Sources/AppwriteModels/Token.swift @@ -7,22 +7,28 @@ public class Token { /// Token ID. public let id: String + /// Token creation date in ISO 8601 format. public let createdAt: String + /// User ID. public let userId: String + /// Token secret key. This will return an empty string unless the response is returned using an API key or as part of a webhook payload. public let secret: String + /// Token expiration date in ISO 8601 format. public let expire: String + /// Security phrase of a token. Empty if security phrase was not requested when creating a token. It includes randomly generated phrase which is also sent in the external resource such as email. public let phrase: String + init( id: String, createdAt: String, diff --git a/Sources/AppwriteModels/Topic.swift b/Sources/AppwriteModels/Topic.swift index c8398e6..bb4d44b 100644 --- a/Sources/AppwriteModels/Topic.swift +++ b/Sources/AppwriteModels/Topic.swift @@ -7,28 +7,36 @@ public class Topic { /// Topic ID. public let id: String + /// Topic creation time in ISO 8601 format. public let createdAt: String + /// Topic update date in ISO 8601 format. public let updatedAt: String + /// The name of the topic. public let name: String + /// Total count of email subscribers subscribed to the topic. public let emailTotal: Int + /// Total count of SMS subscribers subscribed to the topic. public let smsTotal: Int + /// Total count of push subscribers subscribed to the topic. public let pushTotal: Int + /// Subscribe permissions. public let subscribe: [Any] + init( id: String, createdAt: String, diff --git a/Sources/AppwriteModels/TopicList.swift b/Sources/AppwriteModels/TopicList.swift index b7d35a0..7c51e8b 100644 --- a/Sources/AppwriteModels/TopicList.swift +++ b/Sources/AppwriteModels/TopicList.swift @@ -7,10 +7,12 @@ public class TopicList { /// Total number of topics documents that matched your query. public let total: Int + /// List of topics. public let topics: [Topic] + init( total: Int, topics: [Topic] diff --git a/Sources/AppwriteModels/User.swift b/Sources/AppwriteModels/User.swift index a6d44be..a087357 100644 --- a/Sources/AppwriteModels/User.swift +++ b/Sources/AppwriteModels/User.swift @@ -7,69 +7,88 @@ public class User { /// User ID. public let id: String + /// User creation date in ISO 8601 format. public let createdAt: String + /// User update date in ISO 8601 format. public let updatedAt: String + /// User name. public let name: String + /// Hashed user password. - public let password: String?? + public let password: String? + /// Password hashing algorithm. - public let hash: String?? + public let hash: String? + /// Password hashing algorithm configuration. - public let hashOptions: Any?? + public let hashOptions: Any? + /// User registration date in ISO 8601 format. public let registration: String + /// User status. Pass `true` for enabled and `false` for disabled. public let status: Bool + /// Labels for the user. public let labels: [Any] + /// Password update time in ISO 8601 format. public let passwordUpdate: String + /// User email address. public let email: String + /// User phone number in E.164 format. public let phone: String + /// Email verification status. public let emailVerification: Bool + /// Phone verification status. public let phoneVerification: Bool + /// Multi factor authentication status. public let mfa: Bool + /// User preferences as a key-value object public let prefs: Preferences + /// A user-owned message receiver. A single user may have multiple e.g. emails, phones, and a browser. Each target is registered with a single provider. public let targets: [Target] + /// Most recent access date in ISO 8601 format. This attribute is only updated again after 24 hours. public let accessedAt: String + init( id: String, createdAt: String, updatedAt: String, name: String, - password: String??, - hash: String??, - hashOptions: Any??, + password: String?, + hash: String?, + hashOptions: Any?, registration: String, status: Bool, labels: [Any], diff --git a/Sources/AppwriteModels/UserList.swift b/Sources/AppwriteModels/UserList.swift index 44eebb2..8a62740 100644 --- a/Sources/AppwriteModels/UserList.swift +++ b/Sources/AppwriteModels/UserList.swift @@ -7,10 +7,12 @@ public class UserList { /// Total number of users documents that matched your query. public let total: Int + /// List of users. public let users: [User] + init( total: Int, users: [User] diff --git a/Sources/AppwriteModels/Variable.swift b/Sources/AppwriteModels/Variable.swift index 63934d1..261f8d6 100644 --- a/Sources/AppwriteModels/Variable.swift +++ b/Sources/AppwriteModels/Variable.swift @@ -7,25 +7,32 @@ public class Variable { /// Variable ID. public let id: String + /// Variable creation date in ISO 8601 format. public let createdAt: String + /// Variable creation date in ISO 8601 format. public let updatedAt: String + /// Variable key. public let key: String + /// Variable value. public let value: String + /// Service to which the variable belongs. Possible values are "project", "function" public let resourceType: String + /// ID of resource to which the variable belongs. If resourceType is "project", it is empty. If resourceType is "function", it is ID of the function. public let resourceId: String + init( id: String, createdAt: String, diff --git a/Sources/AppwriteModels/VariableList.swift b/Sources/AppwriteModels/VariableList.swift index 86c6ddc..01bfa3b 100644 --- a/Sources/AppwriteModels/VariableList.swift +++ b/Sources/AppwriteModels/VariableList.swift @@ -7,10 +7,12 @@ public class VariableList { /// Total number of variables documents that matched your query. public let total: Int + /// List of variables. public let variables: [Variable] + init( total: Int, variables: [Variable]