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 277e55c..de32be1 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.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) -**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) @@ -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"), ], ``` diff --git a/Sources/Appwrite/Client.swift b/Sources/Appwrite/Client.swift index 7e89019..126415d 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", + "x-appwrite-response-format": "1.6.0" ] internal var config: [String: String] = [:] @@ -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..06dbc35 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] = [:] @@ -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 @@ -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 @@ -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 1a50199..ba39620 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 @@ -74,7 +75,8 @@ open class Functions: Service { /// @param String templateRepository /// @param String templateOwner /// @param String templateRootDirectory - /// @param String templateBranch + /// @param String templateVersion + /// @param String specification /// @throws Exception /// @return array /// @@ -90,6 +92,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, @@ -98,7 +101,8 @@ open class Functions: Service { templateRepository: String? = nil, templateOwner: String? = nil, templateRootDirectory: String? = nil, - templateBranch: String? = nil + templateVersion: String? = nil, + specification: String? = nil ) async throws -> AppwriteModels.Function { let apiPath: String = "/functions" @@ -114,6 +118,7 @@ open class Functions: Service { "logging": logging, "entrypoint": entrypoint, "commands": commands, + "scopes": scopes, "installationId": installationId, "providerRepositoryId": providerRepositoryId, "providerBranch": providerBranch, @@ -122,7 +127,8 @@ open class Functions: Service { "templateRepository": templateRepository, "templateOwner": templateOwner, "templateRootDirectory": templateRootDirectory, - "templateBranch": templateBranch + "templateVersion": templateVersion, + "specification": specification ] let apiHeaders: [String: String] = [ @@ -173,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 + ) + } + /// /// Get function /// @@ -223,11 +261,13 @@ 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 /// @param Bool providerSilentMode /// @param String providerRootDirectory + /// @param String specification /// @throws Exception /// @return array /// @@ -243,11 +283,13 @@ 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, 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) @@ -263,11 +305,13 @@ open class Functions: Service { "logging": logging, "entrypoint": entrypoint, "commands": commands, + "scopes": scopes, "installationId": installationId, "providerRepositoryId": providerRepositoryId, "providerBranch": providerBranch, "providerSilentMode": providerSilentMode, - "providerRootDirectory": providerRootDirectory + "providerRootDirectory": providerRootDirectory, + "specification": specification ] let apiHeaders: [String: String] = [ @@ -456,7 +500,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 @@ -526,10 +570,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 +581,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" @@ -561,7 +603,42 @@ open class Functions: Service { } /// - /// Download Deployment + /// 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 /// /// Get a Deployment's contents by its unique ID. This endpoint supports range /// requests for partial or streaming file download. @@ -571,7 +648,7 @@ open class Functions: Service { /// @throws Exception /// @return array /// - open func downloadDeployment( + open func getDeploymentDownload( functionId: String, deploymentId: String ) async throws -> ByteBuffer { @@ -648,6 +725,7 @@ open class Functions: Service { /// @param String path /// @param AppwriteEnums.ExecutionMethod method /// @param Any headers + /// @param String scheduledAt /// @throws Exception /// @return array /// @@ -657,7 +735,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 +746,8 @@ open class Functions: Service { "async": async, "path": path, "method": method, - "headers": headers + "headers": headers, + "scheduledAt": scheduledAt ] let apiHeaders: [String: String] = [ @@ -724,6 +804,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..12abf93 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 go123 = "go-1.23" public func encode(to encoder: Encoder) throws { var container = encoder.singleValueContainer() 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 new file mode 100644 index 0000000..7f490f7 --- /dev/null +++ b/Sources/AppwriteModels/Build.swift @@ -0,0 +1,93 @@ +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/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 c285005..f2844ff 100644 --- a/Sources/AppwriteModels/Deployment.swift +++ b/Sources/AppwriteModels/Deployment.swift @@ -7,73 +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, @@ -83,6 +110,7 @@ public class Deployment { resourceType: String, entrypoint: String, size: Int, + buildSize: Int, buildId: String, activate: Bool, status: String, @@ -107,6 +135,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 +163,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 +192,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/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 2cb6d9a..9301a8b 100644 --- a/Sources/AppwriteModels/Execution.swift +++ b/Sources/AppwriteModels/Execution.swift @@ -7,52 +7,72 @@ 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? + + + init( id: String, createdAt: String, @@ -69,7 +89,8 @@ public class Execution { responseHeaders: [Headers], logs: String, errors: String, - duration: Double + duration: Double, + scheduledAt: String? ) { self.id = id self.createdAt = createdAt @@ -87,6 +108,7 @@ public class Execution { self.logs = logs self.errors = errors self.duration = duration + self.scheduledAt = scheduledAt } public func toMap() -> [String: Any] { @@ -106,7 +128,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 +150,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/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 e1dcba5..5dda729 100644 --- a/Sources/AppwriteModels/Function.swift +++ b/Sources/AppwriteModels/Function.swift @@ -7,70 +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, @@ -82,6 +112,7 @@ public class Function { logging: Bool, runtime: String, deployment: String, + scopes: [Any], vars: [Variable], events: [Any], schedule: String, @@ -93,7 +124,8 @@ public class Function { providerRepositoryId: String, providerBranch: String, providerRootDirectory: String, - providerSilentMode: Bool + providerSilentMode: Bool, + specification: String ) { self.id = id self.createdAt = createdAt @@ -105,6 +137,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 @@ -117,6 +150,7 @@ public class Function { self.providerBranch = providerBranch self.providerRootDirectory = providerRootDirectory self.providerSilentMode = providerSilentMode + self.specification = specification } public func toMap() -> [String: Any] { @@ -131,6 +165,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, @@ -142,7 +177,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 ] } @@ -158,6 +194,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, @@ -169,7 +206,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/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 2e524ba..64dc92f 100644 --- a/Sources/AppwriteModels/Runtime.swift +++ b/Sources/AppwriteModels/Runtime.swift @@ -7,27 +7,39 @@ 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, name: String, version: String, base: String, @@ -36,6 +48,7 @@ public class Runtime { supports: [Any] ) { self.id = id + self.key = key self.name = name self.version = version self.base = base @@ -47,6 +60,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 +73,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/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 new file mode 100644 index 0000000..7a82ce2 --- /dev/null +++ b/Sources/AppwriteModels/Specification.swift @@ -0,0 +1,53 @@ +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..462d6c0 --- /dev/null +++ b/Sources/AppwriteModels/SpecificationList.swift @@ -0,0 +1,37 @@ +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/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] diff --git a/docs/examples/account/create-anonymous-session.md b/docs/examples/account/create-anonymous-session.md index 9904f6f..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("5df5acd0d48c2") // 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 8740f0c..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("5df5acd0d48c2") // 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 40535d5..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("5df5acd0d48c2") // 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 c18c3c9..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("5df5acd0d48c2") // 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 1fd7360..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("5df5acd0d48c2") // 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 ff53e0b..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("5df5acd0d48c2") // 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 4045203..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("5df5acd0d48c2") // 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 77bb2ef..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("5df5acd0d48c2") // 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 677450e..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("5df5acd0d48c2") // 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 a0c3a8c..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("5df5acd0d48c2") // 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 1391fe5..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("5df5acd0d48c2") // 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 1069fd4..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("5df5acd0d48c2") // 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 4ed985d..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("5df5acd0d48c2") // 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 259bb51..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("5df5acd0d48c2") // 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 e7caef4..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("5df5acd0d48c2") // 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 59001b4..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("5df5acd0d48c2") // 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 eeee94c..9aa02ff 100644 --- a/docs/examples/account/delete-mfa-authenticator.md +++ b/docs/examples/account/delete-mfa-authenticator.md @@ -3,13 +3,12 @@ import AppwriteEnums let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint - .setProject("5df5acd0d48c2") // Your project ID + .setProject("") // Your project ID .setSession("") // The user session to authenticate with let account = Account(client) let result = try await account.deleteMfaAuthenticator( - type: .totp, - otp: "" + type: .totp ) diff --git a/docs/examples/account/delete-session.md b/docs/examples/account/delete-session.md index c0682f4..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("5df5acd0d48c2") // 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 bfd1689..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("5df5acd0d48c2") // 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 d24b4f9..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("5df5acd0d48c2") // 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 6351eb2..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("5df5acd0d48c2") // 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 49f0f57..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("5df5acd0d48c2") // 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 701135b..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("5df5acd0d48c2") // 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 9737195..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("5df5acd0d48c2") // 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 28b72f7..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("5df5acd0d48c2") // 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 0fcf12e..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("5df5acd0d48c2") // 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 6d8b674..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("5df5acd0d48c2") // 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 21e907a..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("5df5acd0d48c2") // 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 35f69fb..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("5df5acd0d48c2") // 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 6950792..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("5df5acd0d48c2") // 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 cde9bf2..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("5df5acd0d48c2") // 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 13bd81e..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("5df5acd0d48c2") // 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 b194a21..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("5df5acd0d48c2") // 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 89b64ee..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("5df5acd0d48c2") // 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 aca1588..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("5df5acd0d48c2") // 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 71d404e..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("5df5acd0d48c2") // 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 c4aee72..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("5df5acd0d48c2") // 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 0c1517b..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("5df5acd0d48c2") // 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 b39d943..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("5df5acd0d48c2") // 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 e6df185..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("5df5acd0d48c2") // 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 3e7a0be..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("5df5acd0d48c2") // 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 979cf37..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("5df5acd0d48c2") // 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 2d79cfc..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("5df5acd0d48c2") // 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 dbe9f60..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("5df5acd0d48c2") // 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 9475b42..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("5df5acd0d48c2") // 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 bb5ed29..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("5df5acd0d48c2") // 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 ecde3c8..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("5df5acd0d48c2") // 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 37fa82b..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("5df5acd0d48c2") // 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 d324dcb..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("5df5acd0d48c2") // 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 3c418c2..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("5df5acd0d48c2") // 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 c7ffdd0..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("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // 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 241b381..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("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // 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 022be46..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("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // 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 aac1abd..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("5df5acd0d48c2") // 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 e64ce2f..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("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // 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 ca05520..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("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // 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 9353b2f..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("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // 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 03d0b96..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("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // 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 b43fd66..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("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // 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 8c3af36..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("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // 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 faee863..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("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // 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 e3b4763..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("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // 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 ebd7ef4..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("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // 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 b6eb502..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("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // 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 7f0690d..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("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // 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 2f22e55..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("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // 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 e072833..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("5df5acd0d48c2") // 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 df7015f..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("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // 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 d6ef6c4..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("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // 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 4910e2b..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("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // 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 6fed239..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("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // 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 27338b8..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("5df5acd0d48c2") // 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 572b04d..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("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // 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 f6ba954..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("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // 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 2e5a5af..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("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // 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 bfa60eb..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("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // 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 45683f8..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("5df5acd0d48c2") // 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 643f510..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("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // 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 e65284b..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("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // 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 9829393..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("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // 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 4338b1a..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("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // 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 41324dd..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("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // 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 52e6a52..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("5df5acd0d48c2") // 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 c5e1f16..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("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // 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 4f68238..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("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // 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 c95c12f..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("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // 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 5e26e2a..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("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // 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 99bbbb6..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("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // 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 fa5bd54..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("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // 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 fe381e0..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("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // 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 e3f7bb2..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("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // 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 9d60ad4..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("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // 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 d2ce165..f67ac99 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 + .setKey("") // 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..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("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // 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 cf6acb5..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("5df5acd0d48c2") // Your project ID + .setProject("") // 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..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("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // 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 ab776cb..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("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("") // Your project ID + .setKey("") // 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 @@ -28,6 +29,7 @@ let function = try await functions.create( templateRepository: "", // optional templateOwner: "", // optional templateRootDirectory: "", // optional - templateBranch: "" // optional + templateVersion: "", // optional + specification: "" // optional ) diff --git a/docs/examples/functions/delete-deployment.md b/docs/examples/functions/delete-deployment.md index ad5fd23..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("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // 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 new file mode 100644 index 0000000..f6e13cd --- /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 + .setKey("") // 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..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("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // 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 ff9a12f..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("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("") // Your project ID + .setKey("") // Your secret API key let functions = Functions(client) diff --git a/docs/examples/functions/download-deployment.md b/docs/examples/functions/get-deployment-download.md similarity index 55% rename from docs/examples/functions/download-deployment.md rename to docs/examples/functions/get-deployment-download.md index e01e8fe..6d08d9b 100644 --- a/docs/examples/functions/download-deployment.md +++ b/docs/examples/functions/get-deployment-download.md @@ -2,12 +2,12 @@ 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 + .setKey("") // Your secret API key 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-deployment.md b/docs/examples/functions/get-deployment.md index 7246236..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("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // 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 6b16cc4..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("5df5acd0d48c2") // 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-variable.md b/docs/examples/functions/get-variable.md index 17b7060..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("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // 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 5063dfc..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("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // 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 21b737d..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("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // 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 c25b06e..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("5df5acd0d48c2") // 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 6a54375..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("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // 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 new file mode 100644 index 0000000..0c9da2d --- /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 + .setKey("") // Your secret API key + +let functions = Functions(client) + +let specificationList = try await functions.listSpecifications() + diff --git a/docs/examples/functions/list-variables.md b/docs/examples/functions/list-variables.md index cbddf45..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("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // 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 475cab3..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("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // 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 new file mode 100644 index 0000000..9003a02 --- /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 + .setKey("") // 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..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("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // 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 5e46825..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("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // 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 51b7aa7..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("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("") // Your project ID + .setKey("") // Your secret API key let functions = Functions(client) @@ -20,10 +20,12 @@ let function = try await functions.update( logging: false, // optional entrypoint: "", // optional commands: "", // optional + scopes: [], // optional installationId: "", // optional providerRepositoryId: "", // optional providerBranch: "", // optional providerSilentMode: false, // optional - providerRootDirectory: "" // optional + providerRootDirectory: "", // optional + specification: "" // optional ) diff --git a/docs/examples/graphql/mutation.md b/docs/examples/graphql/mutation.md index db869d4..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("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // 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 5e97508..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("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // 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 cab0d98..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("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // 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 a682d63..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("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // 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 6014dd5..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("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // 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 8164549..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("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // 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 b76dc69..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("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // 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 5bf0271..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("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // 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 af09ed2..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("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // 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 48d39f2..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("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // 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 016146d..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("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // 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 33ea238..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("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // 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 a66e8ac..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("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // 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 6bdf95f..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("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // 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 6424b4d..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("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // 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 31db7ac..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("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // 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 503d0bf..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("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // 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 3537c4c..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("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // 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 586e635..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("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // 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 dcfd11e..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("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // 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 6f8131d..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("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // 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 ee80798..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("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // 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 eccd97d..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("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // 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 f6d66d9..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("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // 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 828f345..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("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // 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 cabd64c..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("5df5acd0d48c2") // 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 d870428..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("5df5acd0d48c2") // 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 fd700f3..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("5df5acd0d48c2") // 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 8cf5ca1..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("5df5acd0d48c2") // 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 aa0ca92..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("5df5acd0d48c2") // 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 b82c61c..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("5df5acd0d48c2") // 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 43a48a1..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("5df5acd0d48c2") // 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 0aedcd7..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("5df5acd0d48c2") // 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 f16352c..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("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // 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 d1a5f86..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("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // 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 6a39c33..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("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // 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 752ec02..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("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // 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 35647c6..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("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // 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 c62f36d..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("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // 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 3f435bc..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("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // 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 ae46519..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("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // 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 ba097b1..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("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // 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 68afa34..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("5df5acd0d48c2") // Your project ID - .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // 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 e960d5a..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("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // 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 3619348..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("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // 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 c6227a4..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("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // 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 131b54c..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("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // 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 6090014..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("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // 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 ffc9b69..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("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // 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 24e86a1..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("5df5acd0d48c2") // Your project ID - .setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...") // 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 771d984..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("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // 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 148c945..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("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // 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 358dade..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("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // 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 419f2a5..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("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // 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 fbc702d..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("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // 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 06723c5..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("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // 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 4512e06..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("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // 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 c47f9be..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("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // 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 8fcb13f..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("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // 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 dc395dc..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("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // 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 0debb66..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("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // 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 9d2be03..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("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // 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 facdb44..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("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // 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 396ca6c..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("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // 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 5ee0981..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("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // 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 071d2ee..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("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // 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 358bf5d..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("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // 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 428eaca..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("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // 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 63d27b8..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("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // 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 5d8cebb..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("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // 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 5344fb3..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("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // 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 0ec24c4..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("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // 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 cf588c9..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("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // 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 3c71a83..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("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // 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 51dc3ba..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("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // 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 530da15..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("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // 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 5d645df..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("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // 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 d505416..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("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // 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 6a0e4ae..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("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // 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 57c8bee..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("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // 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 cdf2215..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("5df5acd0d48c2") // 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 4bef175..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("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // 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 151bd96..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("5df5acd0d48c2") // 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 9e92b87..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("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // 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 90379b0..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("5df5acd0d48c2") // 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 4377ce9..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("5df5acd0d48c2") // 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 ff035c5..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("5df5acd0d48c2") // 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 4ab1605..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("5df5acd0d48c2") // 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 a538679..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("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // 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 18bbc35..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("5df5acd0d48c2") // 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 472a243..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("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // 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 708138a..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("5df5acd0d48c2") // 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 215fcf2..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("5df5acd0d48c2") // 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 5b46ca3..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("5df5acd0d48c2") // 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 df1607b..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("5df5acd0d48c2") // 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 9393066..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("5df5acd0d48c2") // 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 5a640c3..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("5df5acd0d48c2") // 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 966c06b..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("5df5acd0d48c2") // 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 0b0f921..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("5df5acd0d48c2") // 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 1edb4d7..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("5df5acd0d48c2") // 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 5c69c52..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("5df5acd0d48c2") // 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 1630b8c..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("5df5acd0d48c2") // 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 5948c43..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("5df5acd0d48c2") // 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 3425f5d..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("5df5acd0d48c2") // 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 fce81c6..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("5df5acd0d48c2") // 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 f122745..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("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // 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 24f5343..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("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // 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 new file mode 100644 index 0000000..77ef4da --- /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 + .setKey("") // 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..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("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // 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 fd3b6fe..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("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // 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 491c29f..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("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // 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 b841a0f..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("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // 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 8b14724..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("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // 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 579336e..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("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // 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 3e506dc..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("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // 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 e52aa11..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("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // 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 94d3499..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("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // 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 1393f6a..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("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // 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 9fa0d4c..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("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // 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 f55282a..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("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // 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 6308430..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("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // 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 0aaea4f..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("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // 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 2f9f843..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("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // 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 5d26ebc..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("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // 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 93300d1..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("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // 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 fa718a6..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("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // 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 0f4e373..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("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // 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 730a7e4..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("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // 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 7a18c6a..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("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // 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 e6fb943..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("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // 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 9d86073..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("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // 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 698df04..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("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // 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 8a76f75..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("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // 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 6ff1aa4..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("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // 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 de98510..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("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // 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 86ed9ef..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("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // 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 5ac30bb..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("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // 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 7180c87..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("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // 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 d933d2d..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("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // 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 1cd25a6..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("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // 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 75c801d..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("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // 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 9fc7483..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("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // 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 80c2f13..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("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // 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 bf175e6..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("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // 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 2a67532..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("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // 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 3de9ce6..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("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // 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 c08e6cc..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("5df5acd0d48c2") // Your project ID - .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key + .setProject("") // Your project ID + .setKey("") // Your secret API key let users = Users(client)